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

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 +1592 -1592
  2. package/package.json +2 -2
@@ -85456,340 +85456,6 @@
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
- },
85793
85459
  {
85794
85460
  "kind": "javascript-module",
85795
85461
  "path": "dialog/dialog-close-button/dialog-close-button.component.js",
@@ -86810,6 +86476,340 @@
86810
86476
  }
86811
86477
  ]
86812
86478
  },
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,161 +99736,6 @@
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
- },
99894
99739
  {
99895
99740
  "kind": "javascript-module",
99896
99741
  "path": "icon-sidebar/icon-sidebar-link/icon-sidebar-link.component.js",
@@ -100415,6 +100260,161 @@
100415
100260
  }
100416
100261
  ]
100417
100262
  },
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",
@@ -110073,6 +110073,176 @@
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
+ },
110076
110246
  {
110077
110247
  "kind": "javascript-module",
110078
110248
  "path": "mini-calendar/mini-calendar-month/mini-calendar-month.component.js",
@@ -110291,176 +110461,6 @@
110291
110461
  }
110292
110462
  ]
110293
110463
  },
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,20 +120548,28 @@
120548
120548
  },
120549
120549
  {
120550
120550
  "kind": "javascript-module",
120551
- "path": "sidebar/sidebar/sidebar.component.js",
120551
+ "path": "sidebar/sidebar-close-button/sidebar-close-button.component.js",
120552
120552
  "declarations": [
120553
120553
  {
120554
120554
  "kind": "class",
120555
- "description": "This component corresponds to a sidebar that can be opened on the sidebar container.",
120556
- "name": "SbbSidebarElement",
120555
+ "description": "Sidebar close button, intended to be placed inside sbb-sidebar.",
120556
+ "name": "SbbSidebarCloseButtonElement",
120557
120557
  "slots": [
120558
120558
  {
120559
- "description": "Use the unnamed slot to slot any content into the sidebar.",
120560
- "name": ""
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
+ }
120561
120565
  },
120562
120566
  {
120563
- "description": "Use the title slot to add an <sbb-title>.",
120564
- "name": "title"
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
+ }
120565
120573
  }
120566
120574
  ],
120567
120575
  "members": [
@@ -120578,1252 +120586,1220 @@
120578
120586
  "name": "SbbElement",
120579
120587
  "module": "core/base-elements/element.js"
120580
120588
  },
120581
- "default": "'sbb-sidebar'"
120589
+ "default": "'sbb-sidebar-close-button'"
120582
120590
  },
120583
120591
  {
120584
120592
  "kind": "field",
120585
- "name": "color",
120586
- "type": {
120587
- "text": "'white' | 'milk'"
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
+ }
120588
120605
  },
120589
- "privacy": "public",
120590
- "default": "'white'",
120591
- "description": "Background color of the sidebar. Either `white` or `milk`.",
120592
- "attribute": "color",
120593
- "reflects": true
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
+ }
120594
120611
  },
120595
120612
  {
120596
- "kind": "field",
120597
- "name": "mode",
120598
- "type": {
120599
- "text": "'side' | 'over'"
120613
+ "kind": "method",
120614
+ "name": "renderIconName",
120615
+ "privacy": "protected",
120616
+ "return": {
120617
+ "type": {
120618
+ "text": "string"
120619
+ }
120600
120620
  },
120601
- "privacy": "public",
120602
- "default": "'side'",
120603
- "description": "Mode of the sidebar; one of 'side' or 'over'.",
120604
- "attribute": "mode",
120605
- "reflects": true
120621
+ "inheritedFrom": {
120622
+ "name": "SbbIconNameMixin",
120623
+ "module": "icon/icon-name-mixin.js"
120624
+ }
120606
120625
  },
120607
120626
  {
120608
120627
  "kind": "field",
120609
- "name": "position",
120628
+ "name": "size",
120610
120629
  "type": {
120611
- "text": "'start' | 'end'"
120630
+ "text": "SbbButtonSize"
120612
120631
  },
120613
120632
  "privacy": "public",
120614
- "default": "'start'",
120615
- "description": "The side that the sidebar is attached to.",
120616
- "attribute": "position",
120617
- "reflects": true
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
+ }
120618
120641
  },
120619
120642
  {
120620
120643
  "kind": "field",
120621
- "name": "opened",
120644
+ "name": "loading",
120622
120645
  "type": {
120623
120646
  "text": "boolean"
120624
120647
  },
120625
120648
  "privacy": "public",
120626
120649
  "default": "false",
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
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
+ }
120630
120657
  },
120631
120658
  {
120632
120659
  "kind": "field",
120633
- "name": "focusOnOpen",
120660
+ "name": "negative",
120634
120661
  "type": {
120635
120662
  "text": "boolean"
120636
120663
  },
120637
120664
  "privacy": "public",
120638
120665
  "default": "false",
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"
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
+ }
120641
120673
  },
120642
120674
  {
120643
120675
  "kind": "field",
120644
- "name": "container",
120676
+ "name": "iconName",
120645
120677
  "type": {
120646
- "text": "SbbSidebarContainerElement | null"
120678
+ "text": "string"
120647
120679
  },
120648
120680
  "privacy": "public",
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"
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
+ }
120687
120688
  },
120688
120689
  {
120689
120690
  "kind": "method",
120690
- "name": "toggle",
120691
- "privacy": "public",
120691
+ "name": "renderIconSlot",
120692
+ "privacy": "protected",
120692
120693
  "return": {
120693
120694
  "type": {
120694
- "text": "void"
120695
+ "text": "TemplateResult"
120695
120696
  }
120696
120697
  },
120697
- "description": "Toggles the sidebar visibility."
120698
- },
120699
- {
120700
- "kind": "method",
120701
- "name": "open",
120702
- "privacy": "public",
120703
- "return": {
120704
- "type": {
120705
- "text": "void"
120698
+ "parameters": [
120699
+ {
120700
+ "name": "classname",
120701
+ "optional": true,
120702
+ "type": {
120703
+ "text": "string"
120704
+ }
120706
120705
  }
120707
- },
120708
- "description": "Opens the sidebar.",
120706
+ ],
120709
120707
  "inheritedFrom": {
120710
- "name": "SbbOpenCloseBaseElement",
120711
- "module": "core/base-elements/open-close-base-element.js"
120708
+ "name": "SbbIconNameMixin",
120709
+ "module": "icon/icon-name-mixin.js"
120712
120710
  }
120713
120711
  },
120714
120712
  {
120715
120713
  "kind": "method",
120716
- "name": "_isZeroAnimationDuration",
120714
+ "name": "_renderIconName",
120717
120715
  "privacy": "private",
120718
120716
  "return": {
120719
120717
  "type": {
120720
- "text": "boolean"
120718
+ "text": "string"
120721
120719
  }
120720
+ },
120721
+ "inheritedFrom": {
120722
+ "name": "SbbIconNameMixin",
120723
+ "module": "icon/icon-name-mixin.js"
120722
120724
  }
120723
120725
  },
120724
120726
  {
120725
- "kind": "method",
120726
- "name": "_handleOpening",
120727
- "privacy": "private",
120728
- "return": {
120729
- "type": {
120730
- "text": "void"
120731
- }
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"
120732
120740
  }
120733
120741
  },
120734
120742
  {
120735
- "kind": "method",
120736
- "name": "close",
120743
+ "kind": "field",
120744
+ "name": "disabled",
120737
120745
  "privacy": "public",
120738
- "return": {
120739
- "type": {
120740
- "text": "void"
120741
- }
120746
+ "description": "Whether the component is disabled.",
120747
+ "default": "false",
120748
+ "type": {
120749
+ "text": "boolean"
120742
120750
  },
120743
- "description": "Closes the sidebar.",
120751
+ "attribute": "disabled",
120752
+ "reflects": true,
120744
120753
  "inheritedFrom": {
120745
- "name": "SbbOpenCloseBaseElement",
120746
- "module": "core/base-elements/open-close-base-element.js"
120747
- }
120748
- },
120749
- {
120750
- "kind": "method",
120751
- "name": "_handleClosing",
120752
- "privacy": "private",
120753
- "return": {
120754
- "type": {
120755
- "text": "void"
120756
- }
120754
+ "name": "SbbDisabledMixin",
120755
+ "module": "core/mixins/disabled-mixin.js"
120757
120756
  }
120758
120757
  },
120759
120758
  {
120760
- "kind": "method",
120761
- "name": "_takeFocus",
120759
+ "kind": "field",
120760
+ "name": "#disabled",
120762
120761
  "privacy": "private",
120763
- "return": {
120764
- "type": {
120765
- "text": "void"
120766
- }
120762
+ "type": {
120763
+ "text": "boolean"
120764
+ },
120765
+ "default": "false",
120766
+ "inheritedFrom": {
120767
+ "name": "SbbDisabledMixin",
120768
+ "module": "core/mixins/disabled-mixin.js"
120767
120769
  }
120768
120770
  },
120769
120771
  {
120770
120772
  "kind": "method",
120771
- "name": "cedeFocus",
120773
+ "name": "isDisabledExternally",
120772
120774
  "privacy": "protected",
120773
120775
  "return": {
120774
120776
  "type": {
120775
- "text": "void"
120776
- }
120777
- }
120778
- },
120779
- {
120780
- "kind": "method",
120781
- "name": "_updateSidebarWidth",
120782
- "privacy": "private",
120783
- "return": {
120784
- "type": {
120785
- "text": "void"
120777
+ "text": "boolean"
120786
120778
  }
120787
120779
  },
120788
- "parameters": [
120789
- {
120790
- "name": "oldPosition",
120791
- "optional": true,
120792
- "type": {
120793
- "text": "this['position']"
120794
- }
120795
- }
120796
- ]
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
+ }
120797
120785
  },
120798
120786
  {
120799
- "kind": "method",
120800
- "name": "_buildCssWidthVar",
120801
- "privacy": "private",
120802
- "return": {
120803
- "type": {
120804
- "text": "string"
120805
- }
120787
+ "kind": "field",
120788
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
120789
+ "type": {
120790
+ "text": "array"
120806
120791
  },
120807
- "parameters": [
120808
- {
120809
- "name": "position",
120810
- "default": "this.position"
120811
- }
120812
- ]
120813
- },
120814
- {
120815
- "kind": "method",
120816
- "name": "_isModeOver",
120817
120792
  "privacy": "private",
120818
- "return": {
120819
- "type": {
120820
- "text": "boolean"
120821
- }
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"
120822
120798
  }
120823
120799
  },
120824
120800
  {
120825
- "kind": "method",
120826
- "name": "_onTransitionEnd",
120827
- "privacy": "private",
120828
- "return": {
120829
- "type": {
120830
- "text": "void"
120831
- }
120801
+ "kind": "field",
120802
+ "name": "value",
120803
+ "type": {
120804
+ "text": "string"
120832
120805
  },
120833
- "parameters": [
120834
- {
120835
- "name": "event",
120836
- "type": {
120837
- "text": "TransitionEvent"
120838
- }
120839
- }
120840
- ]
120841
- },
120842
- {
120843
- "kind": "method",
120844
- "name": "_detectScrolledState",
120845
- "privacy": "private",
120846
- "return": {
120847
- "type": {
120848
- "text": "void"
120849
- }
120850
- }
120806
+ "privacy": "public",
120807
+ "inheritedFrom": {
120808
+ "name": "SbbButtonBaseElement",
120809
+ "module": "core/base-elements/button-base-element.js"
120810
+ },
120811
+ "default": "''",
120812
+ "description": "Value of the form element.",
120813
+ "attribute": "value"
120851
120814
  },
120852
120815
  {
120853
120816
  "kind": "field",
120854
- "name": "isAnimating",
120817
+ "name": "type",
120818
+ "privacy": "public",
120819
+ "description": "The type attribute to use for the button.",
120820
+ "default": "'button'",
120855
120821
  "type": {
120856
- "text": "boolean"
120822
+ "text": "SbbButtonType"
120857
120823
  },
120858
- "privacy": "public",
120859
- "default": "false",
120860
- "description": "Whether the component is currently animating.",
120824
+ "attribute": "type",
120861
120825
  "inheritedFrom": {
120862
- "name": "SbbAnimationCompleteMixin",
120863
- "module": "core/mixins/animation-complete-mixin.js"
120826
+ "name": "SbbButtonBaseElement",
120827
+ "module": "core/base-elements/button-base-element.js"
120864
120828
  }
120865
120829
  },
120866
120830
  {
120867
120831
  "kind": "field",
120868
- "name": "animationComplete",
120832
+ "name": "form",
120869
120833
  "type": {
120870
- "text": "Promise<void>"
120834
+ "text": "HTMLFormElement | null"
120871
120835
  },
120872
120836
  "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,
120837
+ "description": "The `<form>` element to associate the button with.",
120875
120838
  "inheritedFrom": {
120876
- "name": "SbbAnimationCompleteMixin",
120877
- "module": "core/mixins/animation-complete-mixin.js"
120878
- }
120839
+ "name": "SbbButtonBaseElement",
120840
+ "module": "core/base-elements/button-base-element.js"
120841
+ },
120842
+ "attribute": "form"
120879
120843
  },
120880
120844
  {
120881
120845
  "kind": "field",
120882
- "name": "_animationPromise",
120846
+ "name": "_formId",
120883
120847
  "type": {
120884
- "text": "Promise<void>"
120848
+ "text": "string"
120885
120849
  },
120886
120850
  "privacy": "private",
120851
+ "default": "''",
120887
120852
  "inheritedFrom": {
120888
- "name": "SbbAnimationCompleteMixin",
120889
- "module": "core/mixins/animation-complete-mixin.js"
120853
+ "name": "SbbButtonBaseElement",
120854
+ "module": "core/base-elements/button-base-element.js"
120890
120855
  }
120891
120856
  },
120892
120857
  {
120893
- "kind": "method",
120894
- "name": "startAnimation",
120895
- "privacy": "protected",
120896
- "return": {
120897
- "type": {
120898
- "text": "void"
120899
- }
120900
- },
120858
+ "kind": "field",
120859
+ "name": "_handleButtonClick",
120860
+ "privacy": "private",
120901
120861
  "inheritedFrom": {
120902
- "name": "SbbAnimationCompleteMixin",
120903
- "module": "core/mixins/animation-complete-mixin.js"
120862
+ "name": "SbbButtonBaseElement",
120863
+ "module": "core/base-elements/button-base-element.js"
120904
120864
  }
120905
120865
  },
120906
120866
  {
120907
120867
  "kind": "method",
120908
- "name": "stopAnimation",
120909
- "privacy": "protected",
120868
+ "name": "_requestSubmit",
120869
+ "privacy": "private",
120910
120870
  "return": {
120911
120871
  "type": {
120912
120872
  "text": "void"
120913
120873
  }
120914
120874
  },
120915
- "description": "Overriding stopAnimation() breaks functionality.",
120875
+ "parameters": [
120876
+ {
120877
+ "name": "form",
120878
+ "type": {
120879
+ "text": "HTMLFormElement"
120880
+ }
120881
+ }
120882
+ ],
120916
120883
  "inheritedFrom": {
120917
- "name": "SbbAnimationCompleteMixin",
120918
- "module": "core/mixins/animation-complete-mixin.js"
120884
+ "name": "SbbButtonBaseElement",
120885
+ "module": "core/base-elements/button-base-element.js"
120919
120886
  }
120920
120887
  },
120921
120888
  {
120922
- "kind": "method",
120923
- "name": "_enqueueAnimation",
120889
+ "kind": "field",
120890
+ "name": "_formKeyDown",
120924
120891
  "privacy": "private",
120925
- "return": {
120926
- "type": {
120927
- "text": "Promise<void>"
120928
- }
120929
- },
120930
120892
  "inheritedFrom": {
120931
- "name": "SbbAnimationCompleteMixin",
120932
- "module": "core/mixins/animation-complete-mixin.js"
120893
+ "name": "SbbButtonBaseElement",
120894
+ "module": "core/base-elements/button-base-element.js"
120933
120895
  }
120934
120896
  },
120935
120897
  {
120936
120898
  "kind": "field",
120937
- "name": "events",
120899
+ "name": "formAssociated",
120900
+ "type": {
120901
+ "text": "boolean"
120902
+ },
120938
120903
  "privacy": "public",
120939
120904
  "static": true,
120940
- "readonly": true,
120941
- "default": "{ beforeopen: 'beforeopen', open: 'open', beforeclose: 'beforeclose', close: 'close', }",
120905
+ "default": "true",
120906
+ "inheritedFrom": {
120907
+ "name": "SbbFormAssociatedMixin",
120908
+ "module": "core/mixins/form-associated-mixin.js"
120909
+ }
120910
+ },
120911
+ {
120912
+ "kind": "field",
120913
+ "name": "name",
120914
+ "privacy": "public",
120915
+ "description": "Name of the form element. Will be read from name attribute.",
120942
120916
  "type": {
120943
- "text": "{\n beforeopen: 'beforeopen',\n open: 'open',\n beforeclose: 'beforeclose',\n close: 'close',\n }"
120917
+ "text": "string"
120944
120918
  },
120919
+ "attribute": "name",
120945
120920
  "inheritedFrom": {
120946
- "name": "SbbOpenCloseBaseElement",
120947
- "module": "core/base-elements/open-close-base-element.js"
120921
+ "name": "SbbFormAssociatedMixin",
120922
+ "module": "core/mixins/form-associated-mixin.js"
120948
120923
  }
120949
120924
  },
120950
120925
  {
120951
120926
  "kind": "field",
120952
- "name": "state",
120953
- "privacy": "protected",
120954
- "description": "The state of the component.",
120927
+ "name": "validity",
120955
120928
  "type": {
120956
- "text": "SbbOpenedClosedState"
120929
+ "text": "ValidityState"
120957
120930
  },
120958
- "default": "'closed'",
120931
+ "privacy": "public",
120932
+ "description": "Returns the ValidityState object for this element.",
120933
+ "readonly": true,
120959
120934
  "inheritedFrom": {
120960
- "name": "SbbOpenCloseBaseElement",
120961
- "module": "core/base-elements/open-close-base-element.js"
120935
+ "name": "SbbFormAssociatedMixin",
120936
+ "module": "core/mixins/form-associated-mixin.js"
120962
120937
  }
120963
120938
  },
120964
120939
  {
120965
120940
  "kind": "field",
120966
- "name": "_state",
120941
+ "name": "validationMessage",
120967
120942
  "type": {
120968
- "text": "SbbOpenedClosedState"
120943
+ "text": "string"
120969
120944
  },
120970
- "privacy": "private",
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,
120971
120948
  "inheritedFrom": {
120972
- "name": "SbbOpenCloseBaseElement",
120973
- "module": "core/base-elements/open-close-base-element.js"
120949
+ "name": "SbbFormAssociatedMixin",
120950
+ "module": "core/mixins/form-associated-mixin.js"
120974
120951
  }
120975
120952
  },
120976
120953
  {
120977
120954
  "kind": "field",
120978
- "name": "isOpen",
120955
+ "name": "willValidate",
120979
120956
  "type": {
120980
120957
  "text": "boolean"
120981
120958
  },
120982
120959
  "privacy": "public",
120983
- "description": "Whether the element is open.",
120960
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
120984
120961
  "readonly": true,
120985
120962
  "inheritedFrom": {
120986
- "name": "SbbOpenCloseBaseElement",
120987
- "module": "core/base-elements/open-close-base-element.js"
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"
120988
120989
  }
120989
120990
  },
120990
120991
  {
120991
120992
  "kind": "method",
120992
- "name": "escapeStrategy",
120993
+ "name": "checkValidity",
120993
120994
  "privacy": "public",
120994
120995
  "return": {
120995
120996
  "type": {
120996
- "text": "void"
120997
+ "text": "boolean"
120997
120998
  }
120998
120999
  },
120999
- "description": "The method which is called on escape key press. Defaults to calling close()",
121000
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
121000
121001
  "inheritedFrom": {
121001
- "name": "SbbOpenCloseBaseElement",
121002
- "module": "core/base-elements/open-close-base-element.js"
121002
+ "name": "SbbFormAssociatedMixin",
121003
+ "module": "core/mixins/form-associated-mixin.js"
121003
121004
  }
121004
121005
  },
121005
121006
  {
121006
121007
  "kind": "method",
121007
- "name": "dispatchBeforeOpenEvent",
121008
- "privacy": "protected",
121008
+ "name": "reportValidity",
121009
+ "privacy": "public",
121009
121010
  "return": {
121010
121011
  "type": {
121011
121012
  "text": "boolean"
121012
121013
  }
121013
121014
  },
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.",
121014
121016
  "inheritedFrom": {
121015
- "name": "SbbOpenCloseBaseElement",
121016
- "module": "core/base-elements/open-close-base-element.js"
121017
+ "name": "SbbFormAssociatedMixin",
121018
+ "module": "core/mixins/form-associated-mixin.js"
121017
121019
  }
121018
121020
  },
121019
121021
  {
121020
121022
  "kind": "method",
121021
- "name": "dispatchOpenEvent",
121022
- "privacy": "protected",
121023
+ "name": "setCustomValidity",
121024
+ "privacy": "public",
121023
121025
  "return": {
121024
121026
  "type": {
121025
- "text": "boolean"
121027
+ "text": "void"
121026
121028
  }
121027
121029
  },
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.",
121028
121039
  "inheritedFrom": {
121029
- "name": "SbbOpenCloseBaseElement",
121030
- "module": "core/base-elements/open-close-base-element.js"
121040
+ "name": "SbbFormAssociatedMixin",
121041
+ "module": "core/mixins/form-associated-mixin.js"
121031
121042
  }
121032
121043
  },
121033
121044
  {
121034
121045
  "kind": "method",
121035
- "name": "dispatchBeforeCloseEvent",
121036
- "privacy": "protected",
121046
+ "name": "_hasDisabledAncestor",
121047
+ "privacy": "private",
121037
121048
  "return": {
121038
121049
  "type": {
121039
121050
  "text": "boolean"
121040
121051
  }
121041
121052
  },
121042
121053
  "inheritedFrom": {
121043
- "name": "SbbOpenCloseBaseElement",
121044
- "module": "core/base-elements/open-close-base-element.js"
121054
+ "name": "SbbFormAssociatedMixin",
121055
+ "module": "core/mixins/form-associated-mixin.js"
121045
121056
  }
121046
121057
  },
121047
121058
  {
121048
121059
  "kind": "method",
121049
- "name": "dispatchCloseEvent",
121060
+ "name": "updateFormValue",
121050
121061
  "privacy": "protected",
121051
121062
  "return": {
121052
121063
  "type": {
121053
- "text": "boolean"
121064
+ "text": "void"
121054
121065
  }
121055
121066
  },
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",
121056
121068
  "inheritedFrom": {
121057
- "name": "SbbOpenCloseBaseElement",
121058
- "module": "core/base-elements/open-close-base-element.js"
121069
+ "name": "SbbFormAssociatedMixin",
121070
+ "module": "core/mixins/form-associated-mixin.js"
121059
121071
  }
121060
121072
  },
121061
121073
  {
121062
- "kind": "field",
121063
- "name": "_hydrationRequired",
121064
- "type": {
121065
- "text": "boolean"
121074
+ "kind": "method",
121075
+ "name": "formState",
121076
+ "privacy": "protected",
121077
+ "return": {
121078
+ "type": {
121079
+ "text": "FormRestoreState"
121080
+ }
121066
121081
  },
121067
- "privacy": "private",
121068
- "default": "!!this.shadowRoot",
121069
121082
  "inheritedFrom": {
121070
- "name": "SbbElement",
121071
- "module": "core/base-elements/element.js"
121083
+ "name": "SbbFormAssociatedMixin",
121084
+ "module": "core/mixins/form-associated-mixin.js"
121072
121085
  }
121073
121086
  },
121074
121087
  {
121075
- "kind": "field",
121076
- "name": "_hydrationComplete",
121077
- "privacy": "private",
121078
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
121088
+ "kind": "method",
121089
+ "name": "setValidityFlag",
121090
+ "privacy": "protected",
121091
+ "return": {
121092
+ "type": {
121093
+ "text": "void"
121094
+ }
121095
+ },
121096
+ "parameters": [
121097
+ {
121098
+ "name": "flag",
121099
+ "type": {
121100
+ "text": "T"
121101
+ }
121102
+ },
121103
+ {
121104
+ "name": "message",
121105
+ "type": {
121106
+ "text": "string"
121107
+ }
121108
+ },
121109
+ {
121110
+ "name": "flagValue",
121111
+ "optional": true,
121112
+ "type": {
121113
+ "text": "ValidityStateFlags[T]"
121114
+ }
121115
+ }
121116
+ ],
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).",
121079
121118
  "inheritedFrom": {
121080
- "name": "SbbElement",
121081
- "module": "core/base-elements/element.js"
121119
+ "name": "SbbFormAssociatedMixin",
121120
+ "module": "core/mixins/form-associated-mixin.js"
121082
121121
  }
121083
121122
  },
121084
121123
  {
121085
- "kind": "field",
121086
- "name": "_resolveHydration",
121087
- "type": {
121088
- "text": "(hydrationRequired: boolean) => void"
121124
+ "kind": "method",
121125
+ "name": "removeValidityFlag",
121126
+ "privacy": "protected",
121127
+ "return": {
121128
+ "type": {
121129
+ "text": "void"
121130
+ }
121089
121131
  },
121090
- "privacy": "private",
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.",
121091
121141
  "inheritedFrom": {
121092
- "name": "SbbElement",
121093
- "module": "core/base-elements/element.js"
121142
+ "name": "SbbFormAssociatedMixin",
121143
+ "module": "core/mixins/form-associated-mixin.js"
121094
121144
  }
121095
121145
  },
121096
121146
  {
121097
- "kind": "field",
121098
- "name": "hydrationRequired",
121099
- "type": {
121100
- "text": "boolean"
121101
- },
121147
+ "kind": "method",
121148
+ "name": "validate",
121102
121149
  "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"
121150
+ "return": {
121151
+ "type": {
121152
+ "text": "void"
121153
+ }
121108
121154
  },
121109
- "default": "!!this.shadowRoot"
121155
+ "description": "To be called whenever the current element needs to be validated.",
121156
+ "inheritedFrom": {
121157
+ "name": "SbbFormAssociatedMixin",
121158
+ "module": "core/mixins/form-associated-mixin.js"
121159
+ }
121110
121160
  },
121111
121161
  {
121112
121162
  "kind": "method",
121113
- "name": "toggleState",
121163
+ "name": "shouldValidate",
121114
121164
  "privacy": "protected",
121115
121165
  "return": {
121116
121166
  "type": {
121117
- "text": "void"
121167
+ "text": "boolean"
121118
121168
  }
121119
121169
  },
121120
121170
  "parameters": [
121121
121171
  {
121122
- "name": "value",
121123
- "type": {
121124
- "text": "string"
121125
- }
121126
- },
121127
- {
121128
- "name": "force",
121129
- "optional": true,
121172
+ "name": "name",
121130
121173
  "type": {
121131
- "text": "boolean"
121174
+ "text": "PropertyKey | undefined"
121132
121175
  }
121133
121176
  }
121134
121177
  ],
121178
+ "description": "Whether validation should be run on a property change with the given name.",
121135
121179
  "inheritedFrom": {
121136
- "name": "SbbElement",
121137
- "module": "core/base-elements/element.js"
121180
+ "name": "SbbFormAssociatedMixin",
121181
+ "module": "core/mixins/form-associated-mixin.js"
121182
+ }
121183
+ },
121184
+ {
121185
+ "kind": "method",
121186
+ "name": "_setInternalValidity",
121187
+ "privacy": "private",
121188
+ "return": {
121189
+ "type": {
121190
+ "text": "void"
121191
+ }
121192
+ },
121193
+ "inheritedFrom": {
121194
+ "name": "SbbFormAssociatedMixin",
121195
+ "module": "core/mixins/form-associated-mixin.js"
121138
121196
  }
121139
121197
  },
121140
121198
  {
121141
121199
  "kind": "field",
121142
- "name": "['_$sbbElement$']",
121200
+ "name": "role",
121143
121201
  "type": {
121144
- "text": "boolean"
121202
+ "text": "ElementInternals['role']"
121145
121203
  },
121146
121204
  "privacy": "public",
121147
121205
  "static": true,
121148
- "default": "true",
121206
+ "readonly": true,
121207
+ "default": "'button'",
121149
121208
  "inheritedFrom": {
121150
- "name": "SbbElement",
121151
- "module": "core/base-elements/element.js"
121209
+ "name": "SbbButtonLikeBaseElement",
121210
+ "module": "core/base-elements/button-base-element.js"
121152
121211
  }
121153
121212
  },
121154
121213
  {
121155
121214
  "kind": "field",
121156
- "name": "_controllers",
121157
- "type": {
121158
- "text": "Set<SbbReactiveController> | undefined"
121159
- },
121215
+ "name": "_preventScrollOnSpaceKeydown",
121160
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
+ ],
121161
121224
  "inheritedFrom": {
121162
- "name": "SbbElement",
121163
- "module": "core/base-elements/element.js"
121225
+ "name": "SbbButtonLikeBaseElement",
121226
+ "module": "core/base-elements/button-base-element.js"
121164
121227
  }
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"
121176
121228
  },
121177
121229
  {
121178
- "name": "mode",
121179
- "type": {
121180
- "text": "'side' | 'over'"
121181
- },
121182
- "default": "'side'",
121183
- "description": "Mode of the sidebar; one of 'side' or 'over'.",
121184
- "fieldName": "mode"
121230
+ "kind": "field",
121231
+ "name": "_removeActiveMarker",
121232
+ "privacy": "private",
121233
+ "inheritedFrom": {
121234
+ "name": "SbbButtonLikeBaseElement",
121235
+ "module": "core/base-elements/button-base-element.js"
121236
+ }
121185
121237
  },
121186
121238
  {
121187
- "name": "position",
121188
- "type": {
121189
- "text": "'start' | 'end'"
121190
- },
121191
- "default": "'start'",
121192
- "description": "The side that the sidebar is attached to.",
121193
- "fieldName": "position"
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
+ ],
121249
+ "inheritedFrom": {
121250
+ "name": "SbbButtonLikeBaseElement",
121251
+ "module": "core/base-elements/button-base-element.js"
121252
+ }
121194
121253
  },
121195
121254
  {
121196
- "name": "opened",
121197
- "type": {
121198
- "text": "boolean"
121199
- },
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"
121255
+ "kind": "field",
121256
+ "name": "_dispatchClickEvent",
121257
+ "privacy": "private",
121258
+ "inheritedFrom": {
121259
+ "name": "SbbButtonLikeBaseElement",
121260
+ "module": "core/base-elements/button-base-element.js"
121261
+ }
121203
121262
  },
121204
121263
  {
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",
121264
+ "kind": "field",
121265
+ "name": "maybeDisabled",
121229
121266
  "type": {
121230
- "text": "Event"
121267
+ "text": "boolean | undefined"
121231
121268
  },
121232
- "description": "Emits whenever the component starts the opening transition. Can be canceled.",
121269
+ "privacy": "protected",
121270
+ "readonly": true,
121233
121271
  "inheritedFrom": {
121234
- "name": "SbbOpenCloseBaseElement",
121235
- "module": "core/base-elements/open-close-base-element.js"
121272
+ "name": "SbbActionBaseElement",
121273
+ "module": "core/base-elements/action-base-element.js"
121236
121274
  }
121237
121275
  },
121238
121276
  {
121239
- "name": "open",
121277
+ "kind": "field",
121278
+ "name": "maybeDisabledInteractive",
121240
121279
  "type": {
121241
- "text": "Event"
121280
+ "text": "boolean | undefined"
121242
121281
  },
121243
- "description": "Emits whenever the component is opened.",
121282
+ "privacy": "protected",
121283
+ "readonly": true,
121244
121284
  "inheritedFrom": {
121245
- "name": "SbbOpenCloseBaseElement",
121246
- "module": "core/base-elements/open-close-base-element.js"
121285
+ "name": "SbbActionBaseElement",
121286
+ "module": "core/base-elements/action-base-element.js"
121247
121287
  }
121248
121288
  },
121249
121289
  {
121250
- "name": "beforeclose",
121251
- "type": {
121252
- "text": "Event"
121290
+ "kind": "method",
121291
+ "name": "setupBaseEventHandlers",
121292
+ "privacy": "protected",
121293
+ "return": {
121294
+ "type": {
121295
+ "text": "void"
121296
+ }
121253
121297
  },
121254
- "description": "Emits whenever the component begins the closing transition. Can be canceled.",
121255
121298
  "inheritedFrom": {
121256
- "name": "SbbOpenCloseBaseElement",
121257
- "module": "core/base-elements/open-close-base-element.js"
121299
+ "name": "SbbActionBaseElement",
121300
+ "module": "core/base-elements/action-base-element.js"
121258
121301
  }
121259
121302
  },
121260
121303
  {
121261
- "name": "close",
121304
+ "kind": "field",
121305
+ "name": "_hydrationRequired",
121262
121306
  "type": {
121263
- "text": "Event"
121307
+ "text": "boolean"
121264
121308
  },
121265
- "description": "Emits whenever the component is closed.",
121309
+ "privacy": "private",
121310
+ "default": "!!this.shadowRoot",
121266
121311
  "inheritedFrom": {
121267
- "name": "SbbOpenCloseBaseElement",
121268
- "module": "core/base-elements/open-close-base-element.js"
121312
+ "name": "SbbElement",
121313
+ "module": "core/base-elements/element.js"
121269
121314
  }
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": [
121315
+ },
121294
121316
  {
121295
- "description": "Use the unnamed slot to add content to the sidebar-close-button. Not intended to be used in this context.",
121296
- "name": "",
121317
+ "kind": "field",
121318
+ "name": "_hydrationComplete",
121319
+ "privacy": "private",
121320
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
121297
121321
  "inheritedFrom": {
121298
- "name": "SbbSecondaryButtonElement",
121299
- "module": "button/secondary-button/secondary-button.component.js"
121322
+ "name": "SbbElement",
121323
+ "module": "core/base-elements/element.js"
121300
121324
  }
121301
121325
  },
121302
121326
  {
121303
- "description": "Slot used to display the icon, if one is set. Not intended to be used in this context.",
121304
- "name": "icon",
121327
+ "kind": "field",
121328
+ "name": "_resolveHydration",
121329
+ "type": {
121330
+ "text": "(hydrationRequired: boolean) => void"
121331
+ },
121332
+ "privacy": "private",
121305
121333
  "inheritedFrom": {
121306
- "name": "SbbSecondaryButtonElement",
121307
- "module": "button/secondary-button/secondary-button.component.js"
121334
+ "name": "SbbElement",
121335
+ "module": "core/base-elements/element.js"
121308
121336
  }
121309
- }
121310
- ],
121311
- "members": [
121337
+ },
121312
121338
  {
121313
121339
  "kind": "field",
121314
- "name": "elementName",
121340
+ "name": "hydrationRequired",
121315
121341
  "type": {
121316
- "text": "string"
121342
+ "text": "boolean"
121317
121343
  },
121318
- "privacy": "public",
121319
- "static": true,
121344
+ "privacy": "protected",
121345
+ "description": "Returns whether hydration is required and not completed.",
121320
121346
  "readonly": true,
121321
121347
  "inheritedFrom": {
121322
121348
  "name": "SbbElement",
121323
121349
  "module": "core/base-elements/element.js"
121324
121350
  },
121325
- "default": "'sbb-sidebar-close-button'"
121326
- },
121327
- {
121328
- "kind": "field",
121329
- "name": "_languageController",
121330
- "privacy": "private",
121331
- "default": "new SbbLanguageController(this)"
121351
+ "default": "!!this.shadowRoot"
121332
121352
  },
121333
121353
  {
121334
121354
  "kind": "method",
121335
- "name": "renderTemplate",
121355
+ "name": "toggleState",
121336
121356
  "privacy": "protected",
121337
121357
  "return": {
121338
121358
  "type": {
121339
- "text": "TemplateResult"
121359
+ "text": "void"
121340
121360
  }
121341
121361
  },
121342
- "description": "Override this method to render the component template.",
121362
+ "parameters": [
121363
+ {
121364
+ "name": "value",
121365
+ "type": {
121366
+ "text": "string"
121367
+ }
121368
+ },
121369
+ {
121370
+ "name": "force",
121371
+ "optional": true,
121372
+ "type": {
121373
+ "text": "boolean"
121374
+ }
121375
+ }
121376
+ ],
121343
121377
  "inheritedFrom": {
121344
- "name": "SbbActionBaseElement",
121345
- "module": "core/base-elements/action-base-element.js"
121378
+ "name": "SbbElement",
121379
+ "module": "core/base-elements/element.js"
121346
121380
  }
121347
121381
  },
121348
121382
  {
121349
- "kind": "method",
121350
- "name": "renderIconName",
121351
- "privacy": "protected",
121352
- "return": {
121353
- "type": {
121354
- "text": "string"
121355
- }
121383
+ "kind": "field",
121384
+ "name": "['_$sbbElement$']",
121385
+ "type": {
121386
+ "text": "boolean"
121356
121387
  },
121388
+ "privacy": "public",
121389
+ "static": true,
121390
+ "default": "true",
121357
121391
  "inheritedFrom": {
121358
- "name": "SbbIconNameMixin",
121359
- "module": "icon/icon-name-mixin.js"
121392
+ "name": "SbbElement",
121393
+ "module": "core/base-elements/element.js"
121360
121394
  }
121361
121395
  },
121362
121396
  {
121363
121397
  "kind": "field",
121398
+ "name": "_controllers",
121399
+ "type": {
121400
+ "text": "Set<SbbReactiveController> | undefined"
121401
+ },
121402
+ "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
+ {
121364
121417
  "name": "size",
121365
121418
  "type": {
121366
121419
  "text": "SbbButtonSize"
121367
121420
  },
121368
- "privacy": "public",
121369
121421
  "description": "Size variant, either l, m or s.",
121370
- "default": "'s'",
121371
- "attribute": "size",
121372
- "reflects": true,
121422
+ "default": "'l' / 's' (lean)",
121423
+ "fieldName": "size",
121373
121424
  "inheritedFrom": {
121374
121425
  "name": "SbbButtonCommonElementMixin",
121375
121426
  "module": "button/common/button-common.js"
121376
121427
  }
121377
121428
  },
121378
121429
  {
121379
- "kind": "field",
121380
121430
  "name": "loading",
121381
121431
  "type": {
121382
121432
  "text": "boolean"
121383
121433
  },
121384
- "privacy": "public",
121385
121434
  "default": "false",
121386
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.",
121387
- "attribute": "loading",
121388
- "reflects": true,
121436
+ "fieldName": "loading",
121389
121437
  "inheritedFrom": {
121390
121438
  "name": "SbbButtonCommonElementMixin",
121391
121439
  "module": "button/common/button-common.js"
121392
121440
  }
121393
121441
  },
121394
121442
  {
121395
- "kind": "field",
121396
121443
  "name": "negative",
121397
121444
  "type": {
121398
121445
  "text": "boolean"
121399
121446
  },
121400
- "privacy": "public",
121401
121447
  "default": "false",
121402
121448
  "description": "Negative coloring variant flag.",
121403
- "attribute": "negative",
121404
- "reflects": true,
121449
+ "fieldName": "negative",
121405
121450
  "inheritedFrom": {
121406
121451
  "name": "SbbNegativeMixin",
121407
121452
  "module": "core/mixins/negative-mixin.js"
121408
121453
  }
121409
121454
  },
121410
121455
  {
121411
- "kind": "field",
121412
- "name": "iconName",
121456
+ "name": "icon-name",
121413
121457
  "type": {
121414
121458
  "text": "string"
121415
121459
  },
121416
- "privacy": "public",
121417
121460
  "default": "''",
121418
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.",
121419
- "attribute": "icon-name",
121420
- "inheritedFrom": {
121421
- "name": "SbbIconNameMixin",
121422
- "module": "icon/icon-name-mixin.js"
121423
- }
121424
- },
121425
- {
121426
- "kind": "method",
121427
- "name": "renderIconSlot",
121428
- "privacy": "protected",
121429
- "return": {
121430
- "type": {
121431
- "text": "TemplateResult"
121432
- }
121433
- },
121434
- "parameters": [
121435
- {
121436
- "name": "classname",
121437
- "optional": true,
121438
- "type": {
121439
- "text": "string"
121440
- }
121441
- }
121442
- ],
121443
- "inheritedFrom": {
121444
- "name": "SbbIconNameMixin",
121445
- "module": "icon/icon-name-mixin.js"
121446
- }
121447
- },
121448
- {
121449
- "kind": "method",
121450
- "name": "_renderIconName",
121451
- "privacy": "private",
121452
- "return": {
121453
- "type": {
121454
- "text": "string"
121455
- }
121456
- },
121462
+ "fieldName": "iconName",
121457
121463
  "inheritedFrom": {
121458
121464
  "name": "SbbIconNameMixin",
121459
121465
  "module": "icon/icon-name-mixin.js"
121460
121466
  }
121461
121467
  },
121462
121468
  {
121463
- "kind": "field",
121464
- "name": "disabledInteractive",
121469
+ "name": "disabled-interactive",
121465
121470
  "type": {
121466
121471
  "text": "boolean"
121467
121472
  },
121468
- "privacy": "public",
121469
121473
  "default": "false",
121470
121474
  "description": "Whether the button should be aria-disabled but stay interactive.",
121471
- "attribute": "disabled-interactive",
121472
- "reflects": true,
121475
+ "fieldName": "disabledInteractive",
121473
121476
  "inheritedFrom": {
121474
121477
  "name": "SbbDisabledInteractiveMixin",
121475
121478
  "module": "core/mixins/disabled-mixin.js"
121476
121479
  }
121477
121480
  },
121478
121481
  {
121479
- "kind": "field",
121480
121482
  "name": "disabled",
121481
- "privacy": "public",
121482
121483
  "description": "Whether the component is disabled.",
121483
121484
  "default": "false",
121484
121485
  "type": {
121485
121486
  "text": "boolean"
121486
121487
  },
121487
- "attribute": "disabled",
121488
- "reflects": true,
121489
- "inheritedFrom": {
121490
- "name": "SbbDisabledMixin",
121491
- "module": "core/mixins/disabled-mixin.js"
121492
- }
121493
- },
121494
- {
121495
- "kind": "field",
121496
- "name": "#disabled",
121497
- "privacy": "private",
121498
- "type": {
121499
- "text": "boolean"
121500
- },
121501
- "default": "false",
121502
- "inheritedFrom": {
121503
- "name": "SbbDisabledMixin",
121504
- "module": "core/mixins/disabled-mixin.js"
121505
- }
121506
- },
121507
- {
121508
- "kind": "method",
121509
- "name": "isDisabledExternally",
121510
- "privacy": "protected",
121511
- "return": {
121512
- "type": {
121513
- "text": "boolean"
121514
- }
121515
- },
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.",
121488
+ "fieldName": "disabled",
121517
121489
  "inheritedFrom": {
121518
121490
  "name": "SbbDisabledMixin",
121519
121491
  "module": "core/mixins/disabled-mixin.js"
121520
121492
  }
121521
121493
  },
121522
121494
  {
121523
- "kind": "field",
121524
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
121525
- "type": {
121526
- "text": "array"
121527
- },
121528
- "privacy": "private",
121529
- "readonly": true,
121530
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
121531
- "inheritedFrom": {
121532
- "name": "SbbButtonBaseElement",
121533
- "module": "core/base-elements/button-base-element.js"
121534
- }
121535
- },
121536
- {
121537
- "kind": "field",
121538
121495
  "name": "value",
121539
121496
  "type": {
121540
121497
  "text": "string"
121541
121498
  },
121542
- "privacy": "public",
121499
+ "default": "''",
121500
+ "description": "Value of the form element.",
121501
+ "fieldName": "value",
121543
121502
  "inheritedFrom": {
121544
121503
  "name": "SbbButtonBaseElement",
121545
121504
  "module": "core/base-elements/button-base-element.js"
121546
- },
121547
- "default": "''",
121548
- "description": "Value of the form element.",
121549
- "attribute": "value"
121505
+ }
121550
121506
  },
121551
121507
  {
121552
- "kind": "field",
121553
121508
  "name": "type",
121554
- "privacy": "public",
121555
121509
  "description": "The type attribute to use for the button.",
121556
121510
  "default": "'button'",
121557
121511
  "type": {
121558
121512
  "text": "SbbButtonType"
121559
121513
  },
121560
- "attribute": "type",
121514
+ "fieldName": "type",
121561
121515
  "inheritedFrom": {
121562
121516
  "name": "SbbButtonBaseElement",
121563
121517
  "module": "core/base-elements/button-base-element.js"
121564
121518
  }
121565
121519
  },
121566
121520
  {
121567
- "kind": "field",
121568
121521
  "name": "form",
121522
+ "description": "The `<form>` element to associate the button with.",
121569
121523
  "type": {
121570
121524
  "text": "HTMLFormElement | null"
121571
121525
  },
121572
- "privacy": "public",
121573
- "description": "The `<form>` element to associate the button with.",
121526
+ "fieldName": "form",
121574
121527
  "inheritedFrom": {
121575
121528
  "name": "SbbButtonBaseElement",
121576
121529
  "module": "core/base-elements/button-base-element.js"
121577
- },
121578
- "attribute": "form"
121530
+ }
121579
121531
  },
121580
121532
  {
121581
- "kind": "field",
121582
- "name": "_formId",
121533
+ "name": "name",
121534
+ "description": "Name of the form element. Will be read from name attribute.",
121583
121535
  "type": {
121584
121536
  "text": "string"
121585
121537
  },
121586
- "privacy": "private",
121587
- "default": "''",
121538
+ "fieldName": "name",
121588
121539
  "inheritedFrom": {
121589
- "name": "SbbButtonBaseElement",
121590
- "module": "core/base-elements/button-base-element.js"
121540
+ "name": "SbbFormAssociatedMixin",
121541
+ "module": "core/mixins/form-associated-mixin.js"
121591
121542
  }
121592
- },
121543
+ }
121544
+ ],
121545
+ "cssProperties": [
121593
121546
  {
121594
- "kind": "field",
121595
- "name": "_handleButtonClick",
121596
- "privacy": "private",
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",
121597
121550
  "inheritedFrom": {
121598
- "name": "SbbButtonBaseElement",
121599
- "module": "core/base-elements/button-base-element.js"
121551
+ "name": "SbbSecondaryButtonElement",
121552
+ "module": "button/secondary-button/secondary-button.component.js"
121600
121553
  }
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": ""
121601
121581
  },
121602
121582
  {
121603
- "kind": "method",
121604
- "name": "_requestSubmit",
121605
- "privacy": "private",
121606
- "return": {
121607
- "type": {
121608
- "text": "void"
121609
- }
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"
121610
121593
  },
121611
- "parameters": [
121612
- {
121613
- "name": "form",
121614
- "type": {
121615
- "text": "HTMLFormElement"
121616
- }
121617
- }
121618
- ],
121594
+ "privacy": "public",
121595
+ "static": true,
121596
+ "readonly": true,
121619
121597
  "inheritedFrom": {
121620
- "name": "SbbButtonBaseElement",
121621
- "module": "core/base-elements/button-base-element.js"
121622
- }
121598
+ "name": "SbbElement",
121599
+ "module": "core/base-elements/element.js"
121600
+ },
121601
+ "default": "'sbb-sidebar'"
121623
121602
  },
121624
121603
  {
121625
121604
  "kind": "field",
121626
- "name": "_formKeyDown",
121627
- "privacy": "private",
121628
- "inheritedFrom": {
121629
- "name": "SbbButtonBaseElement",
121630
- "module": "core/base-elements/button-base-element.js"
121631
- }
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
121632
121614
  },
121633
121615
  {
121634
121616
  "kind": "field",
121635
- "name": "formAssociated",
121617
+ "name": "mode",
121636
121618
  "type": {
121637
- "text": "boolean"
121619
+ "text": "'side' | 'over'"
121638
121620
  },
121639
121621
  "privacy": "public",
121640
- "static": true,
121641
- "default": "true",
121642
- "inheritedFrom": {
121643
- "name": "SbbFormAssociatedMixin",
121644
- "module": "core/mixins/form-associated-mixin.js"
121645
- }
121622
+ "default": "'side'",
121623
+ "description": "Mode of the sidebar; one of 'side' or 'over'.",
121624
+ "attribute": "mode",
121625
+ "reflects": true
121646
121626
  },
121647
121627
  {
121648
121628
  "kind": "field",
121649
- "name": "name",
121650
- "privacy": "public",
121651
- "description": "Name of the form element. Will be read from name attribute.",
121629
+ "name": "position",
121652
121630
  "type": {
121653
- "text": "string"
121631
+ "text": "'start' | 'end'"
121654
121632
  },
121655
- "attribute": "name",
121656
- "inheritedFrom": {
121657
- "name": "SbbFormAssociatedMixin",
121658
- "module": "core/mixins/form-associated-mixin.js"
121659
- }
121633
+ "privacy": "public",
121634
+ "default": "'start'",
121635
+ "description": "The side that the sidebar is attached to.",
121636
+ "attribute": "position",
121637
+ "reflects": true
121660
121638
  },
121661
121639
  {
121662
121640
  "kind": "field",
121663
- "name": "validity",
121641
+ "name": "opened",
121664
121642
  "type": {
121665
- "text": "ValidityState"
121643
+ "text": "boolean"
121666
121644
  },
121667
121645
  "privacy": "public",
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
- }
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
121674
121650
  },
121675
121651
  {
121676
121652
  "kind": "field",
121677
- "name": "validationMessage",
121653
+ "name": "focusOnOpen",
121678
121654
  "type": {
121679
- "text": "string"
121655
+ "text": "boolean"
121680
121656
  },
121681
121657
  "privacy": "public",
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.",
121683
- "readonly": true,
121684
- "inheritedFrom": {
121685
- "name": "SbbFormAssociatedMixin",
121686
- "module": "core/mixins/form-associated-mixin.js"
121687
- }
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"
121688
121661
  },
121689
121662
  {
121690
121663
  "kind": "field",
121691
- "name": "willValidate",
121664
+ "name": "container",
121692
121665
  "type": {
121693
- "text": "boolean"
121666
+ "text": "SbbSidebarContainerElement | null"
121694
121667
  },
121695
121668
  "privacy": "public",
121696
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
121669
+ "description": "Returns the SbbSidebarContainerElement where this sidebar is contained.",
121697
121670
  "readonly": true,
121698
- "inheritedFrom": {
121699
- "name": "SbbFormAssociatedMixin",
121700
- "module": "core/mixins/form-associated-mixin.js"
121701
- }
121671
+ "default": "null"
121702
121672
  },
121703
121673
  {
121704
121674
  "kind": "field",
121705
- "name": "_validityStates",
121675
+ "name": "_container",
121676
+ "type": {
121677
+ "text": "SbbSidebarContainerElement | null"
121678
+ },
121706
121679
  "privacy": "private",
121707
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
121708
- "inheritedFrom": {
121709
- "name": "SbbFormAssociatedMixin",
121710
- "module": "core/mixins/form-associated-mixin.js"
121711
- }
121680
+ "default": "null"
121712
121681
  },
121713
121682
  {
121714
121683
  "kind": "field",
121715
- "name": "formDisabled",
121684
+ "name": "_lastFocusedElement",
121716
121685
  "type": {
121717
- "text": "boolean"
121686
+ "text": "HTMLElement | null"
121718
121687
  },
121719
- "privacy": "protected",
121720
- "default": "false",
121721
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
121722
- "inheritedFrom": {
121723
- "name": "SbbFormAssociatedMixin",
121724
- "module": "core/mixins/form-associated-mixin.js"
121725
- }
121688
+ "privacy": "private",
121689
+ "default": "null"
121690
+ },
121691
+ {
121692
+ "kind": "field",
121693
+ "name": "_focusTrapController",
121694
+ "privacy": "private",
121695
+ "default": "new SbbFocusTrapController(this)"
121696
+ },
121697
+ {
121698
+ "kind": "field",
121699
+ "name": "_escapableOverlayController",
121700
+ "privacy": "private",
121701
+ "default": "new SbbEscapableOverlayController(this)"
121702
+ },
121703
+ {
121704
+ "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."
121726
121718
  },
121727
121719
  {
121728
121720
  "kind": "method",
121729
- "name": "checkValidity",
121721
+ "name": "open",
121730
121722
  "privacy": "public",
121731
121723
  "return": {
121732
121724
  "type": {
121733
- "text": "boolean"
121725
+ "text": "void"
121734
121726
  }
121735
121727
  },
121736
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
121728
+ "description": "Opens the sidebar.",
121737
121729
  "inheritedFrom": {
121738
- "name": "SbbFormAssociatedMixin",
121739
- "module": "core/mixins/form-associated-mixin.js"
121730
+ "name": "SbbOpenCloseBaseElement",
121731
+ "module": "core/base-elements/open-close-base-element.js"
121740
121732
  }
121741
121733
  },
121742
121734
  {
121743
121735
  "kind": "method",
121744
- "name": "reportValidity",
121745
- "privacy": "public",
121736
+ "name": "_isZeroAnimationDuration",
121737
+ "privacy": "private",
121746
121738
  "return": {
121747
121739
  "type": {
121748
121740
  "text": "boolean"
121749
121741
  }
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"
121755
121742
  }
121756
121743
  },
121757
121744
  {
121758
121745
  "kind": "method",
121759
- "name": "setCustomValidity",
121746
+ "name": "_handleOpening",
121747
+ "privacy": "private",
121748
+ "return": {
121749
+ "type": {
121750
+ "text": "void"
121751
+ }
121752
+ }
121753
+ },
121754
+ {
121755
+ "kind": "method",
121756
+ "name": "close",
121760
121757
  "privacy": "public",
121761
121758
  "return": {
121762
121759
  "type": {
121763
121760
  "text": "void"
121764
121761
  }
121765
121762
  },
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.",
121763
+ "description": "Closes the sidebar.",
121775
121764
  "inheritedFrom": {
121776
- "name": "SbbFormAssociatedMixin",
121777
- "module": "core/mixins/form-associated-mixin.js"
121765
+ "name": "SbbOpenCloseBaseElement",
121766
+ "module": "core/base-elements/open-close-base-element.js"
121778
121767
  }
121779
121768
  },
121780
121769
  {
121781
121770
  "kind": "method",
121782
- "name": "_hasDisabledAncestor",
121771
+ "name": "_handleClosing",
121783
121772
  "privacy": "private",
121784
121773
  "return": {
121785
121774
  "type": {
121786
- "text": "boolean"
121775
+ "text": "void"
121787
121776
  }
121788
- },
121789
- "inheritedFrom": {
121790
- "name": "SbbFormAssociatedMixin",
121791
- "module": "core/mixins/form-associated-mixin.js"
121792
121777
  }
121793
121778
  },
121794
121779
  {
121795
121780
  "kind": "method",
121796
- "name": "updateFormValue",
121797
- "privacy": "protected",
121781
+ "name": "_takeFocus",
121782
+ "privacy": "private",
121798
121783
  "return": {
121799
121784
  "type": {
121800
121785
  "text": "void"
121801
121786
  }
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"
121807
121787
  }
121808
121788
  },
121809
121789
  {
121810
121790
  "kind": "method",
121811
- "name": "formState",
121791
+ "name": "cedeFocus",
121812
121792
  "privacy": "protected",
121813
121793
  "return": {
121814
121794
  "type": {
121815
- "text": "FormRestoreState"
121795
+ "text": "void"
121816
121796
  }
121817
- },
121818
- "inheritedFrom": {
121819
- "name": "SbbFormAssociatedMixin",
121820
- "module": "core/mixins/form-associated-mixin.js"
121821
121797
  }
121822
121798
  },
121823
121799
  {
121824
121800
  "kind": "method",
121825
- "name": "setValidityFlag",
121826
- "privacy": "protected",
121801
+ "name": "_updateSidebarWidth",
121802
+ "privacy": "private",
121827
121803
  "return": {
121828
121804
  "type": {
121829
121805
  "text": "void"
@@ -121831,209 +121807,275 @@
121831
121807
  },
121832
121808
  "parameters": [
121833
121809
  {
121834
- "name": "flag",
121835
- "type": {
121836
- "text": "T"
121837
- }
121838
- },
121839
- {
121840
- "name": "message",
121841
- "type": {
121842
- "text": "string"
121843
- }
121844
- },
121845
- {
121846
- "name": "flagValue",
121810
+ "name": "oldPosition",
121847
121811
  "optional": true,
121848
121812
  "type": {
121849
- "text": "ValidityStateFlags[T]"
121813
+ "text": "this['position']"
121850
121814
  }
121851
121815
  }
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"
121857
- }
121816
+ ]
121858
121817
  },
121859
121818
  {
121860
121819
  "kind": "method",
121861
- "name": "removeValidityFlag",
121862
- "privacy": "protected",
121820
+ "name": "_buildCssWidthVar",
121821
+ "privacy": "private",
121863
121822
  "return": {
121864
121823
  "type": {
121865
- "text": "void"
121824
+ "text": "string"
121866
121825
  }
121867
121826
  },
121868
121827
  "parameters": [
121869
121828
  {
121870
- "name": "flag",
121871
- "type": {
121872
- "text": "T"
121873
- }
121829
+ "name": "position",
121830
+ "default": "this.position"
121874
121831
  }
121875
- ],
121876
- "description": "Removes the validity state flag entry and updates validity state.",
121877
- "inheritedFrom": {
121878
- "name": "SbbFormAssociatedMixin",
121879
- "module": "core/mixins/form-associated-mixin.js"
121880
- }
121832
+ ]
121881
121833
  },
121882
121834
  {
121883
121835
  "kind": "method",
121884
- "name": "validate",
121885
- "privacy": "protected",
121836
+ "name": "_isModeOver",
121837
+ "privacy": "private",
121886
121838
  "return": {
121887
121839
  "type": {
121888
- "text": "void"
121840
+ "text": "boolean"
121889
121841
  }
121890
- },
121891
- "description": "To be called whenever the current element needs to be validated.",
121892
- "inheritedFrom": {
121893
- "name": "SbbFormAssociatedMixin",
121894
- "module": "core/mixins/form-associated-mixin.js"
121895
121842
  }
121896
121843
  },
121897
121844
  {
121898
121845
  "kind": "method",
121899
- "name": "shouldValidate",
121900
- "privacy": "protected",
121846
+ "name": "_onTransitionEnd",
121847
+ "privacy": "private",
121901
121848
  "return": {
121902
121849
  "type": {
121903
- "text": "boolean"
121850
+ "text": "void"
121904
121851
  }
121905
121852
  },
121906
121853
  "parameters": [
121907
121854
  {
121908
- "name": "name",
121855
+ "name": "event",
121909
121856
  "type": {
121910
- "text": "PropertyKey | undefined"
121857
+ "text": "TransitionEvent"
121911
121858
  }
121912
121859
  }
121913
- ],
121914
- "description": "Whether validation should be run on a property change with the given name.",
121915
- "inheritedFrom": {
121916
- "name": "SbbFormAssociatedMixin",
121917
- "module": "core/mixins/form-associated-mixin.js"
121918
- }
121860
+ ]
121919
121861
  },
121920
121862
  {
121921
121863
  "kind": "method",
121922
- "name": "_setInternalValidity",
121864
+ "name": "_detectScrolledState",
121923
121865
  "privacy": "private",
121924
121866
  "return": {
121925
121867
  "type": {
121926
121868
  "text": "void"
121927
121869
  }
121870
+ }
121871
+ },
121872
+ {
121873
+ "kind": "field",
121874
+ "name": "isAnimating",
121875
+ "type": {
121876
+ "text": "boolean"
121928
121877
  },
121878
+ "privacy": "public",
121879
+ "default": "false",
121880
+ "description": "Whether the component is currently animating.",
121929
121881
  "inheritedFrom": {
121930
- "name": "SbbFormAssociatedMixin",
121931
- "module": "core/mixins/form-associated-mixin.js"
121882
+ "name": "SbbAnimationCompleteMixin",
121883
+ "module": "core/mixins/animation-complete-mixin.js"
121932
121884
  }
121933
121885
  },
121934
121886
  {
121935
121887
  "kind": "field",
121936
- "name": "role",
121888
+ "name": "animationComplete",
121937
121889
  "type": {
121938
- "text": "ElementInternals['role']"
121890
+ "text": "Promise<void>"
121939
121891
  },
121940
121892
  "privacy": "public",
121941
- "static": true,
121893
+ "description": "Returns a promise which completes whenever an animation ends.\nWhen a new animation starts, a new Promise is returned.",
121942
121894
  "readonly": true,
121943
- "default": "'button'",
121944
121895
  "inheritedFrom": {
121945
- "name": "SbbButtonLikeBaseElement",
121946
- "module": "core/base-elements/button-base-element.js"
121896
+ "name": "SbbAnimationCompleteMixin",
121897
+ "module": "core/mixins/animation-complete-mixin.js"
121947
121898
  }
121948
121899
  },
121949
121900
  {
121950
121901
  "kind": "field",
121951
- "name": "_preventScrollOnSpaceKeydown",
121902
+ "name": "_animationPromise",
121903
+ "type": {
121904
+ "text": "Promise<void>"
121905
+ },
121952
121906
  "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"
121907
+ "inheritedFrom": {
121908
+ "name": "SbbAnimationCompleteMixin",
121909
+ "module": "core/mixins/animation-complete-mixin.js"
121910
+ }
121911
+ },
121912
+ {
121913
+ "kind": "method",
121914
+ "name": "startAnimation",
121915
+ "privacy": "protected",
121916
+ "return": {
121917
+ "type": {
121918
+ "text": "void"
121958
121919
  }
121959
- ],
121920
+ },
121960
121921
  "inheritedFrom": {
121961
- "name": "SbbButtonLikeBaseElement",
121962
- "module": "core/base-elements/button-base-element.js"
121922
+ "name": "SbbAnimationCompleteMixin",
121923
+ "module": "core/mixins/animation-complete-mixin.js"
121963
121924
  }
121964
121925
  },
121965
121926
  {
121966
- "kind": "field",
121967
- "name": "_removeActiveMarker",
121968
- "privacy": "private",
121927
+ "kind": "method",
121928
+ "name": "stopAnimation",
121929
+ "privacy": "protected",
121930
+ "return": {
121931
+ "type": {
121932
+ "text": "void"
121933
+ }
121934
+ },
121935
+ "description": "Overriding stopAnimation() breaks functionality.",
121969
121936
  "inheritedFrom": {
121970
- "name": "SbbButtonLikeBaseElement",
121971
- "module": "core/base-elements/button-base-element.js"
121937
+ "name": "SbbAnimationCompleteMixin",
121938
+ "module": "core/mixins/animation-complete-mixin.js"
121972
121939
  }
121973
121940
  },
121974
121941
  {
121975
- "kind": "field",
121976
- "name": "_dispatchClickEventOnSpaceKeyup",
121942
+ "kind": "method",
121943
+ "name": "_enqueueAnimation",
121977
121944
  "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"
121945
+ "return": {
121946
+ "type": {
121947
+ "text": "Promise<void>"
121983
121948
  }
121984
- ],
121949
+ },
121985
121950
  "inheritedFrom": {
121986
- "name": "SbbButtonLikeBaseElement",
121987
- "module": "core/base-elements/button-base-element.js"
121951
+ "name": "SbbAnimationCompleteMixin",
121952
+ "module": "core/mixins/animation-complete-mixin.js"
121988
121953
  }
121989
121954
  },
121990
121955
  {
121991
121956
  "kind": "field",
121992
- "name": "_dispatchClickEvent",
121993
- "privacy": "private",
121957
+ "name": "events",
121958
+ "privacy": "public",
121959
+ "static": true,
121960
+ "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
+ },
121994
121965
  "inheritedFrom": {
121995
- "name": "SbbButtonLikeBaseElement",
121996
- "module": "core/base-elements/button-base-element.js"
121966
+ "name": "SbbOpenCloseBaseElement",
121967
+ "module": "core/base-elements/open-close-base-element.js"
121997
121968
  }
121998
121969
  },
121999
121970
  {
122000
121971
  "kind": "field",
122001
- "name": "maybeDisabled",
121972
+ "name": "state",
121973
+ "privacy": "protected",
121974
+ "description": "The state of the component.",
122002
121975
  "type": {
122003
- "text": "boolean | undefined"
121976
+ "text": "SbbOpenedClosedState"
122004
121977
  },
122005
- "privacy": "protected",
122006
- "readonly": true,
121978
+ "default": "'closed'",
122007
121979
  "inheritedFrom": {
122008
- "name": "SbbActionBaseElement",
122009
- "module": "core/base-elements/action-base-element.js"
121980
+ "name": "SbbOpenCloseBaseElement",
121981
+ "module": "core/base-elements/open-close-base-element.js"
122010
121982
  }
122011
121983
  },
122012
121984
  {
122013
121985
  "kind": "field",
122014
- "name": "maybeDisabledInteractive",
121986
+ "name": "_state",
122015
121987
  "type": {
122016
- "text": "boolean | undefined"
121988
+ "text": "SbbOpenedClosedState"
122017
121989
  },
122018
- "privacy": "protected",
121990
+ "privacy": "private",
121991
+ "inheritedFrom": {
121992
+ "name": "SbbOpenCloseBaseElement",
121993
+ "module": "core/base-elements/open-close-base-element.js"
121994
+ }
121995
+ },
121996
+ {
121997
+ "kind": "field",
121998
+ "name": "isOpen",
121999
+ "type": {
122000
+ "text": "boolean"
122001
+ },
122002
+ "privacy": "public",
122003
+ "description": "Whether the element is open.",
122019
122004
  "readonly": true,
122020
122005
  "inheritedFrom": {
122021
- "name": "SbbActionBaseElement",
122022
- "module": "core/base-elements/action-base-element.js"
122006
+ "name": "SbbOpenCloseBaseElement",
122007
+ "module": "core/base-elements/open-close-base-element.js"
122023
122008
  }
122024
122009
  },
122025
122010
  {
122026
122011
  "kind": "method",
122027
- "name": "setupBaseEventHandlers",
122028
- "privacy": "protected",
122012
+ "name": "escapeStrategy",
122013
+ "privacy": "public",
122029
122014
  "return": {
122030
122015
  "type": {
122031
122016
  "text": "void"
122032
122017
  }
122033
122018
  },
122019
+ "description": "The method which is called on escape key press. Defaults to calling close()",
122034
122020
  "inheritedFrom": {
122035
- "name": "SbbActionBaseElement",
122036
- "module": "core/base-elements/action-base-element.js"
122021
+ "name": "SbbOpenCloseBaseElement",
122022
+ "module": "core/base-elements/open-close-base-element.js"
122023
+ }
122024
+ },
122025
+ {
122026
+ "kind": "method",
122027
+ "name": "dispatchBeforeOpenEvent",
122028
+ "privacy": "protected",
122029
+ "return": {
122030
+ "type": {
122031
+ "text": "boolean"
122032
+ }
122033
+ },
122034
+ "inheritedFrom": {
122035
+ "name": "SbbOpenCloseBaseElement",
122036
+ "module": "core/base-elements/open-close-base-element.js"
122037
+ }
122038
+ },
122039
+ {
122040
+ "kind": "method",
122041
+ "name": "dispatchOpenEvent",
122042
+ "privacy": "protected",
122043
+ "return": {
122044
+ "type": {
122045
+ "text": "boolean"
122046
+ }
122047
+ },
122048
+ "inheritedFrom": {
122049
+ "name": "SbbOpenCloseBaseElement",
122050
+ "module": "core/base-elements/open-close-base-element.js"
122051
+ }
122052
+ },
122053
+ {
122054
+ "kind": "method",
122055
+ "name": "dispatchBeforeCloseEvent",
122056
+ "privacy": "protected",
122057
+ "return": {
122058
+ "type": {
122059
+ "text": "boolean"
122060
+ }
122061
+ },
122062
+ "inheritedFrom": {
122063
+ "name": "SbbOpenCloseBaseElement",
122064
+ "module": "core/base-elements/open-close-base-element.js"
122065
+ }
122066
+ },
122067
+ {
122068
+ "kind": "method",
122069
+ "name": "dispatchCloseEvent",
122070
+ "privacy": "protected",
122071
+ "return": {
122072
+ "type": {
122073
+ "text": "boolean"
122074
+ }
122075
+ },
122076
+ "inheritedFrom": {
122077
+ "name": "SbbOpenCloseBaseElement",
122078
+ "module": "core/base-elements/open-close-base-element.js"
122037
122079
  }
122038
122080
  },
122039
122081
  {
@@ -122142,150 +122184,108 @@
122142
122184
  }
122143
122185
  }
122144
122186
  ],
122145
- "superclass": {
122146
- "name": "SbbSecondaryButtonElement",
122147
- "module": "button.pure.js"
122148
- },
122149
- "tagName": "sbb-sidebar-close-button",
122150
- "customElement": true,
122151
122187
  "attributes": [
122152
122188
  {
122153
- "name": "size",
122154
- "type": {
122155
- "text": "SbbButtonSize"
122156
- },
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
- }
122164
- },
122165
- {
122166
- "name": "loading",
122189
+ "name": "color",
122167
122190
  "type": {
122168
- "text": "boolean"
122191
+ "text": "'white' | 'milk'"
122169
122192
  },
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
- }
122193
+ "default": "'white'",
122194
+ "description": "Background color of the sidebar. Either `white` or `milk`.",
122195
+ "fieldName": "color"
122177
122196
  },
122178
122197
  {
122179
- "name": "negative",
122198
+ "name": "mode",
122180
122199
  "type": {
122181
- "text": "boolean"
122200
+ "text": "'side' | 'over'"
122182
122201
  },
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
- }
122202
+ "default": "'side'",
122203
+ "description": "Mode of the sidebar; one of 'side' or 'over'.",
122204
+ "fieldName": "mode"
122190
122205
  },
122191
122206
  {
122192
- "name": "icon-name",
122207
+ "name": "position",
122193
122208
  "type": {
122194
- "text": "string"
122209
+ "text": "'start' | 'end'"
122195
122210
  },
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
- }
122211
+ "default": "'start'",
122212
+ "description": "The side that the sidebar is attached to.",
122213
+ "fieldName": "position"
122203
122214
  },
122204
122215
  {
122205
- "name": "disabled-interactive",
122216
+ "name": "opened",
122206
122217
  "type": {
122207
122218
  "text": "boolean"
122208
122219
  },
122209
122220
  "default": "false",
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
- }
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"
122216
122223
  },
122217
122224
  {
122218
- "name": "disabled",
122219
- "description": "Whether the component is disabled.",
122220
- "default": "false",
122225
+ "name": "focus-on-open",
122221
122226
  "type": {
122222
122227
  "text": "boolean"
122223
122228
  },
122224
- "fieldName": "disabled",
122225
- "inheritedFrom": {
122226
- "name": "SbbDisabledMixin",
122227
- "module": "core/mixins/disabled-mixin.js"
122228
- }
122229
- },
122229
+ "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": [
122230
122235
  {
122231
- "name": "value",
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": [
122247
+ {
122248
+ "name": "beforeopen",
122232
122249
  "type": {
122233
- "text": "string"
122250
+ "text": "Event"
122234
122251
  },
122235
- "default": "''",
122236
- "description": "Value of the form element.",
122237
- "fieldName": "value",
122252
+ "description": "Emits whenever the component starts the opening transition. Can be canceled.",
122238
122253
  "inheritedFrom": {
122239
- "name": "SbbButtonBaseElement",
122240
- "module": "core/base-elements/button-base-element.js"
122254
+ "name": "SbbOpenCloseBaseElement",
122255
+ "module": "core/base-elements/open-close-base-element.js"
122241
122256
  }
122242
122257
  },
122243
122258
  {
122244
- "name": "type",
122245
- "description": "The type attribute to use for the button.",
122246
- "default": "'button'",
122259
+ "name": "open",
122247
122260
  "type": {
122248
- "text": "SbbButtonType"
122261
+ "text": "Event"
122249
122262
  },
122250
- "fieldName": "type",
122263
+ "description": "Emits whenever the component is opened.",
122251
122264
  "inheritedFrom": {
122252
- "name": "SbbButtonBaseElement",
122253
- "module": "core/base-elements/button-base-element.js"
122265
+ "name": "SbbOpenCloseBaseElement",
122266
+ "module": "core/base-elements/open-close-base-element.js"
122254
122267
  }
122255
122268
  },
122256
122269
  {
122257
- "name": "form",
122258
- "description": "The `<form>` element to associate the button with.",
122270
+ "name": "beforeclose",
122259
122271
  "type": {
122260
- "text": "HTMLFormElement | null"
122272
+ "text": "Event"
122261
122273
  },
122262
- "fieldName": "form",
122274
+ "description": "Emits whenever the component begins the closing transition. Can be canceled.",
122263
122275
  "inheritedFrom": {
122264
- "name": "SbbButtonBaseElement",
122265
- "module": "core/base-elements/button-base-element.js"
122276
+ "name": "SbbOpenCloseBaseElement",
122277
+ "module": "core/base-elements/open-close-base-element.js"
122266
122278
  }
122267
122279
  },
122268
122280
  {
122269
- "name": "name",
122270
- "description": "Name of the form element. Will be read from name attribute.",
122281
+ "name": "close",
122271
122282
  "type": {
122272
- "text": "string"
122283
+ "text": "Event"
122273
122284
  },
122274
- "fieldName": "name",
122275
- "inheritedFrom": {
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",
122285
+ "description": "Emits whenever the component is closed.",
122286
122286
  "inheritedFrom": {
122287
- "name": "SbbSecondaryButtonElement",
122288
- "module": "button/secondary-button/secondary-button.component.js"
122287
+ "name": "SbbOpenCloseBaseElement",
122288
+ "module": "core/base-elements/open-close-base-element.js"
122289
122289
  }
122290
122290
  }
122291
122291
  ]
@@ -122294,10 +122294,10 @@
122294
122294
  "exports": [
122295
122295
  {
122296
122296
  "kind": "js",
122297
- "name": "SbbSidebarCloseButtonElement",
122297
+ "name": "SbbSidebarElement",
122298
122298
  "declaration": {
122299
- "name": "SbbSidebarCloseButtonElement",
122300
- "module": "sidebar/sidebar-close-button/sidebar-close-button.component.js"
122299
+ "name": "SbbSidebarElement",
122300
+ "module": "sidebar/sidebar/sidebar.component.js"
122301
122301
  }
122302
122302
  }
122303
122303
  ]