@sbb-esta/lyne-elements-dev 4.11.0-dev.1777277312 → 4.11.0-dev.1777279894

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.
@@ -120432,20 +120432,28 @@
120432
120432
  },
120433
120433
  {
120434
120434
  "kind": "javascript-module",
120435
- "path": "sidebar/sidebar/sidebar.component.js",
120435
+ "path": "sidebar/sidebar-close-button/sidebar-close-button.component.js",
120436
120436
  "declarations": [
120437
120437
  {
120438
120438
  "kind": "class",
120439
- "description": "This component corresponds to a sidebar that can be opened on the sidebar container.",
120440
- "name": "SbbSidebarElement",
120439
+ "description": "Sidebar close button, intended to be placed inside sbb-sidebar.",
120440
+ "name": "SbbSidebarCloseButtonElement",
120441
120441
  "slots": [
120442
120442
  {
120443
- "description": "Use the unnamed slot to slot any content into the sidebar.",
120444
- "name": ""
120443
+ "description": "Use the unnamed slot to add content to the sidebar-close-button. Not intended to be used in this context.",
120444
+ "name": "",
120445
+ "inheritedFrom": {
120446
+ "name": "SbbSecondaryButtonElement",
120447
+ "module": "button/secondary-button/secondary-button.component.js"
120448
+ }
120445
120449
  },
120446
120450
  {
120447
- "description": "Use the title slot to add an <sbb-title>.",
120448
- "name": "title"
120451
+ "description": "Slot used to display the icon, if one is set. Not intended to be used in this context.",
120452
+ "name": "icon",
120453
+ "inheritedFrom": {
120454
+ "name": "SbbSecondaryButtonElement",
120455
+ "module": "button/secondary-button/secondary-button.component.js"
120456
+ }
120449
120457
  }
120450
120458
  ],
120451
120459
  "members": [
@@ -120462,539 +120470,507 @@
120462
120470
  "name": "SbbElement",
120463
120471
  "module": "core/base-elements/element.js"
120464
120472
  },
120465
- "default": "'sbb-sidebar'"
120473
+ "default": "'sbb-sidebar-close-button'"
120466
120474
  },
120467
120475
  {
120468
120476
  "kind": "field",
120469
- "name": "color",
120470
- "type": {
120471
- "text": "'white' | 'milk'"
120477
+ "name": "_languageController",
120478
+ "privacy": "private",
120479
+ "default": "new SbbLanguageController(this)"
120480
+ },
120481
+ {
120482
+ "kind": "method",
120483
+ "name": "renderTemplate",
120484
+ "privacy": "protected",
120485
+ "return": {
120486
+ "type": {
120487
+ "text": "TemplateResult"
120488
+ }
120472
120489
  },
120473
- "privacy": "public",
120474
- "default": "'white'",
120475
- "description": "Background color of the sidebar. Either `white` or `milk`.",
120476
- "attribute": "color",
120477
- "reflects": true
120490
+ "description": "Override this method to render the component template.",
120491
+ "inheritedFrom": {
120492
+ "name": "SbbActionBaseElement",
120493
+ "module": "core/base-elements/action-base-element.js"
120494
+ }
120478
120495
  },
120479
120496
  {
120480
- "kind": "field",
120481
- "name": "mode",
120482
- "type": {
120483
- "text": "'side' | 'over'"
120497
+ "kind": "method",
120498
+ "name": "renderIconName",
120499
+ "privacy": "protected",
120500
+ "return": {
120501
+ "type": {
120502
+ "text": "string"
120503
+ }
120484
120504
  },
120485
- "privacy": "public",
120486
- "default": "'side'",
120487
- "description": "Mode of the sidebar; one of 'side' or 'over'.",
120488
- "attribute": "mode",
120489
- "reflects": true
120505
+ "inheritedFrom": {
120506
+ "name": "SbbIconNameMixin",
120507
+ "module": "icon/icon-name-mixin.js"
120508
+ }
120490
120509
  },
120491
120510
  {
120492
120511
  "kind": "field",
120493
- "name": "position",
120512
+ "name": "size",
120494
120513
  "type": {
120495
- "text": "'start' | 'end'"
120514
+ "text": "SbbButtonSize"
120496
120515
  },
120497
120516
  "privacy": "public",
120498
- "default": "'start'",
120499
- "description": "The side that the sidebar is attached to.",
120500
- "attribute": "position",
120501
- "reflects": true
120517
+ "description": "Size variant, either l, m or s.",
120518
+ "default": "'s'",
120519
+ "attribute": "size",
120520
+ "reflects": true,
120521
+ "inheritedFrom": {
120522
+ "name": "SbbButtonCommonElementMixin",
120523
+ "module": "button/common/button-common.js"
120524
+ }
120502
120525
  },
120503
120526
  {
120504
120527
  "kind": "field",
120505
- "name": "opened",
120528
+ "name": "loading",
120506
120529
  "type": {
120507
120530
  "text": "boolean"
120508
120531
  },
120509
120532
  "privacy": "public",
120510
120533
  "default": "false",
120511
- "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
120512
- "attribute": "opened",
120513
- "reflects": true
120534
+ "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.",
120535
+ "attribute": "loading",
120536
+ "reflects": true,
120537
+ "inheritedFrom": {
120538
+ "name": "SbbButtonCommonElementMixin",
120539
+ "module": "button/common/button-common.js"
120540
+ }
120514
120541
  },
120515
120542
  {
120516
120543
  "kind": "field",
120517
- "name": "focusOnOpen",
120544
+ "name": "negative",
120518
120545
  "type": {
120519
120546
  "text": "boolean"
120520
120547
  },
120521
120548
  "privacy": "public",
120522
120549
  "default": "false",
120523
- "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.",
120524
- "attribute": "focus-on-open"
120550
+ "description": "Negative coloring variant flag.",
120551
+ "attribute": "negative",
120552
+ "reflects": true,
120553
+ "inheritedFrom": {
120554
+ "name": "SbbNegativeMixin",
120555
+ "module": "core/mixins/negative-mixin.js"
120556
+ }
120525
120557
  },
120526
120558
  {
120527
120559
  "kind": "field",
120528
- "name": "container",
120560
+ "name": "iconName",
120529
120561
  "type": {
120530
- "text": "SbbSidebarContainerElement | null"
120562
+ "text": "string"
120531
120563
  },
120532
120564
  "privacy": "public",
120533
- "description": "Returns the SbbSidebarContainerElement where this sidebar is contained.",
120534
- "readonly": true,
120535
- "default": "null"
120536
- },
120537
- {
120538
- "kind": "field",
120539
- "name": "_container",
120540
- "type": {
120541
- "text": "SbbSidebarContainerElement | null"
120542
- },
120543
- "privacy": "private",
120544
- "default": "null"
120545
- },
120546
- {
120547
- "kind": "field",
120548
- "name": "_lastFocusedElement",
120549
- "type": {
120550
- "text": "HTMLElement | null"
120551
- },
120552
- "privacy": "private",
120553
- "default": "null"
120554
- },
120555
- {
120556
- "kind": "field",
120557
- "name": "_focusTrapController",
120558
- "privacy": "private",
120559
- "default": "new SbbFocusTrapController(this)"
120560
- },
120561
- {
120562
- "kind": "field",
120563
- "name": "_escapableOverlayController",
120564
- "privacy": "private",
120565
- "default": "new SbbEscapableOverlayController(this)"
120566
- },
120567
- {
120568
- "kind": "field",
120569
- "name": "_closeOnNavigation",
120570
- "privacy": "private"
120565
+ "default": "''",
120566
+ "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.",
120567
+ "attribute": "icon-name",
120568
+ "inheritedFrom": {
120569
+ "name": "SbbIconNameMixin",
120570
+ "module": "icon/icon-name-mixin.js"
120571
+ }
120571
120572
  },
120572
120573
  {
120573
120574
  "kind": "method",
120574
- "name": "toggle",
120575
- "privacy": "public",
120575
+ "name": "renderIconSlot",
120576
+ "privacy": "protected",
120576
120577
  "return": {
120577
120578
  "type": {
120578
- "text": "void"
120579
+ "text": "TemplateResult"
120579
120580
  }
120580
120581
  },
120581
- "description": "Toggles the sidebar visibility."
120582
- },
120583
- {
120584
- "kind": "method",
120585
- "name": "open",
120586
- "privacy": "public",
120587
- "return": {
120588
- "type": {
120589
- "text": "void"
120582
+ "parameters": [
120583
+ {
120584
+ "name": "classname",
120585
+ "optional": true,
120586
+ "type": {
120587
+ "text": "string"
120588
+ }
120590
120589
  }
120591
- },
120592
- "description": "Opens the sidebar.",
120590
+ ],
120593
120591
  "inheritedFrom": {
120594
- "name": "SbbOpenCloseBaseElement",
120595
- "module": "core/base-elements/open-close-base-element.js"
120592
+ "name": "SbbIconNameMixin",
120593
+ "module": "icon/icon-name-mixin.js"
120596
120594
  }
120597
120595
  },
120598
120596
  {
120599
120597
  "kind": "method",
120600
- "name": "_isZeroAnimationDuration",
120598
+ "name": "_renderIconName",
120601
120599
  "privacy": "private",
120602
120600
  "return": {
120603
120601
  "type": {
120604
- "text": "boolean"
120602
+ "text": "string"
120605
120603
  }
120604
+ },
120605
+ "inheritedFrom": {
120606
+ "name": "SbbIconNameMixin",
120607
+ "module": "icon/icon-name-mixin.js"
120606
120608
  }
120607
120609
  },
120608
120610
  {
120609
- "kind": "method",
120610
- "name": "_handleOpening",
120611
- "privacy": "private",
120612
- "return": {
120613
- "type": {
120614
- "text": "void"
120615
- }
120611
+ "kind": "field",
120612
+ "name": "disabledInteractive",
120613
+ "type": {
120614
+ "text": "boolean"
120615
+ },
120616
+ "privacy": "public",
120617
+ "default": "false",
120618
+ "description": "Whether the button should be aria-disabled but stay interactive.",
120619
+ "attribute": "disabled-interactive",
120620
+ "reflects": true,
120621
+ "inheritedFrom": {
120622
+ "name": "SbbDisabledInteractiveMixin",
120623
+ "module": "core/mixins/disabled-mixin.js"
120616
120624
  }
120617
120625
  },
120618
120626
  {
120619
- "kind": "method",
120620
- "name": "close",
120627
+ "kind": "field",
120628
+ "name": "disabled",
120621
120629
  "privacy": "public",
120622
- "return": {
120623
- "type": {
120624
- "text": "void"
120625
- }
120630
+ "description": "Whether the component is disabled.",
120631
+ "default": "false",
120632
+ "type": {
120633
+ "text": "boolean"
120626
120634
  },
120627
- "description": "Closes the sidebar.",
120635
+ "attribute": "disabled",
120636
+ "reflects": true,
120628
120637
  "inheritedFrom": {
120629
- "name": "SbbOpenCloseBaseElement",
120630
- "module": "core/base-elements/open-close-base-element.js"
120638
+ "name": "SbbDisabledMixin",
120639
+ "module": "core/mixins/disabled-mixin.js"
120631
120640
  }
120632
120641
  },
120633
120642
  {
120634
- "kind": "method",
120635
- "name": "_handleClosing",
120643
+ "kind": "field",
120644
+ "name": "#disabled",
120636
120645
  "privacy": "private",
120637
- "return": {
120638
- "type": {
120639
- "text": "void"
120640
- }
120646
+ "type": {
120647
+ "text": "boolean"
120648
+ },
120649
+ "default": "false",
120650
+ "inheritedFrom": {
120651
+ "name": "SbbDisabledMixin",
120652
+ "module": "core/mixins/disabled-mixin.js"
120641
120653
  }
120642
120654
  },
120643
120655
  {
120644
120656
  "kind": "method",
120645
- "name": "_takeFocus",
120646
- "privacy": "private",
120657
+ "name": "isDisabledExternally",
120658
+ "privacy": "protected",
120647
120659
  "return": {
120648
120660
  "type": {
120649
- "text": "void"
120650
- }
120651
- }
120652
- },
120653
- {
120654
- "kind": "method",
120655
- "name": "cedeFocus",
120656
- "privacy": "protected",
120657
- "return": {
120658
- "type": {
120659
- "text": "void"
120660
- }
120661
- }
120662
- },
120663
- {
120664
- "kind": "method",
120665
- "name": "_updateSidebarWidth",
120666
- "privacy": "private",
120667
- "return": {
120668
- "type": {
120669
- "text": "void"
120661
+ "text": "boolean"
120670
120662
  }
120671
120663
  },
120672
- "parameters": [
120673
- {
120674
- "name": "oldPosition",
120675
- "optional": true,
120676
- "type": {
120677
- "text": "this['position']"
120678
- }
120679
- }
120680
- ]
120664
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
120665
+ "inheritedFrom": {
120666
+ "name": "SbbDisabledMixin",
120667
+ "module": "core/mixins/disabled-mixin.js"
120668
+ }
120681
120669
  },
120682
120670
  {
120683
- "kind": "method",
120684
- "name": "_buildCssWidthVar",
120685
- "privacy": "private",
120686
- "return": {
120687
- "type": {
120688
- "text": "string"
120689
- }
120671
+ "kind": "field",
120672
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
120673
+ "type": {
120674
+ "text": "array"
120690
120675
  },
120691
- "parameters": [
120692
- {
120693
- "name": "position",
120694
- "default": "this.position"
120695
- }
120696
- ]
120697
- },
120698
- {
120699
- "kind": "method",
120700
- "name": "_isModeOver",
120701
120676
  "privacy": "private",
120702
- "return": {
120703
- "type": {
120704
- "text": "boolean"
120705
- }
120677
+ "readonly": true,
120678
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
120679
+ "inheritedFrom": {
120680
+ "name": "SbbButtonBaseElement",
120681
+ "module": "core/base-elements/button-base-element.js"
120706
120682
  }
120707
120683
  },
120708
120684
  {
120709
- "kind": "method",
120710
- "name": "_onTransitionEnd",
120711
- "privacy": "private",
120712
- "return": {
120713
- "type": {
120714
- "text": "void"
120715
- }
120685
+ "kind": "field",
120686
+ "name": "value",
120687
+ "type": {
120688
+ "text": "string"
120716
120689
  },
120717
- "parameters": [
120718
- {
120719
- "name": "event",
120720
- "type": {
120721
- "text": "TransitionEvent"
120722
- }
120723
- }
120724
- ]
120725
- },
120726
- {
120727
- "kind": "method",
120728
- "name": "_detectScrolledState",
120729
- "privacy": "private",
120730
- "return": {
120731
- "type": {
120732
- "text": "void"
120733
- }
120734
- }
120690
+ "privacy": "public",
120691
+ "inheritedFrom": {
120692
+ "name": "SbbButtonBaseElement",
120693
+ "module": "core/base-elements/button-base-element.js"
120694
+ },
120695
+ "default": "''",
120696
+ "description": "Value of the form element.",
120697
+ "attribute": "value"
120735
120698
  },
120736
120699
  {
120737
120700
  "kind": "field",
120738
- "name": "isAnimating",
120701
+ "name": "type",
120702
+ "privacy": "public",
120703
+ "description": "The type attribute to use for the button.",
120704
+ "default": "'button'",
120739
120705
  "type": {
120740
- "text": "boolean"
120706
+ "text": "SbbButtonType"
120741
120707
  },
120742
- "privacy": "public",
120743
- "default": "false",
120744
- "description": "Whether the component is currently animating.",
120708
+ "attribute": "type",
120745
120709
  "inheritedFrom": {
120746
- "name": "SbbAnimationCompleteMixin",
120747
- "module": "core/mixins/animation-complete-mixin.js"
120710
+ "name": "SbbButtonBaseElement",
120711
+ "module": "core/base-elements/button-base-element.js"
120748
120712
  }
120749
120713
  },
120750
120714
  {
120751
120715
  "kind": "field",
120752
- "name": "animationComplete",
120716
+ "name": "form",
120753
120717
  "type": {
120754
- "text": "Promise<void>"
120718
+ "text": "HTMLFormElement | null"
120755
120719
  },
120756
120720
  "privacy": "public",
120757
- "description": "Returns a promise which completes whenever an animation ends.\nWhen a new animation starts, a new Promise is returned.",
120758
- "readonly": true,
120721
+ "description": "The `<form>` element to associate the button with.",
120759
120722
  "inheritedFrom": {
120760
- "name": "SbbAnimationCompleteMixin",
120761
- "module": "core/mixins/animation-complete-mixin.js"
120762
- }
120723
+ "name": "SbbButtonBaseElement",
120724
+ "module": "core/base-elements/button-base-element.js"
120725
+ },
120726
+ "attribute": "form"
120763
120727
  },
120764
120728
  {
120765
120729
  "kind": "field",
120766
- "name": "_animationPromise",
120730
+ "name": "_formId",
120767
120731
  "type": {
120768
- "text": "Promise<void>"
120732
+ "text": "string"
120769
120733
  },
120770
120734
  "privacy": "private",
120735
+ "default": "''",
120771
120736
  "inheritedFrom": {
120772
- "name": "SbbAnimationCompleteMixin",
120773
- "module": "core/mixins/animation-complete-mixin.js"
120737
+ "name": "SbbButtonBaseElement",
120738
+ "module": "core/base-elements/button-base-element.js"
120774
120739
  }
120775
120740
  },
120776
120741
  {
120777
- "kind": "method",
120778
- "name": "startAnimation",
120779
- "privacy": "protected",
120780
- "return": {
120781
- "type": {
120782
- "text": "void"
120783
- }
120784
- },
120742
+ "kind": "field",
120743
+ "name": "_handleButtonClick",
120744
+ "privacy": "private",
120785
120745
  "inheritedFrom": {
120786
- "name": "SbbAnimationCompleteMixin",
120787
- "module": "core/mixins/animation-complete-mixin.js"
120746
+ "name": "SbbButtonBaseElement",
120747
+ "module": "core/base-elements/button-base-element.js"
120788
120748
  }
120789
120749
  },
120790
120750
  {
120791
120751
  "kind": "method",
120792
- "name": "stopAnimation",
120793
- "privacy": "protected",
120752
+ "name": "_requestSubmit",
120753
+ "privacy": "private",
120794
120754
  "return": {
120795
120755
  "type": {
120796
120756
  "text": "void"
120797
120757
  }
120798
120758
  },
120799
- "description": "Overriding stopAnimation() breaks functionality.",
120759
+ "parameters": [
120760
+ {
120761
+ "name": "form",
120762
+ "type": {
120763
+ "text": "HTMLFormElement"
120764
+ }
120765
+ }
120766
+ ],
120800
120767
  "inheritedFrom": {
120801
- "name": "SbbAnimationCompleteMixin",
120802
- "module": "core/mixins/animation-complete-mixin.js"
120768
+ "name": "SbbButtonBaseElement",
120769
+ "module": "core/base-elements/button-base-element.js"
120803
120770
  }
120804
120771
  },
120805
120772
  {
120806
- "kind": "method",
120807
- "name": "_enqueueAnimation",
120773
+ "kind": "field",
120774
+ "name": "_formKeyDown",
120808
120775
  "privacy": "private",
120809
- "return": {
120810
- "type": {
120811
- "text": "Promise<void>"
120812
- }
120813
- },
120814
120776
  "inheritedFrom": {
120815
- "name": "SbbAnimationCompleteMixin",
120816
- "module": "core/mixins/animation-complete-mixin.js"
120777
+ "name": "SbbButtonBaseElement",
120778
+ "module": "core/base-elements/button-base-element.js"
120817
120779
  }
120818
120780
  },
120819
120781
  {
120820
120782
  "kind": "field",
120821
- "name": "events",
120822
- "privacy": "public",
120823
- "static": true,
120824
- "readonly": true,
120825
- "default": "{ beforeopen: 'beforeopen', open: 'open', beforeclose: 'beforeclose', close: 'close', }",
120783
+ "name": "formAssociated",
120826
120784
  "type": {
120827
- "text": "{\n beforeopen: 'beforeopen',\n open: 'open',\n beforeclose: 'beforeclose',\n close: 'close',\n }"
120785
+ "text": "boolean"
120828
120786
  },
120787
+ "privacy": "public",
120788
+ "static": true,
120789
+ "default": "true",
120829
120790
  "inheritedFrom": {
120830
- "name": "SbbOpenCloseBaseElement",
120831
- "module": "core/base-elements/open-close-base-element.js"
120791
+ "name": "SbbFormAssociatedMixin",
120792
+ "module": "core/mixins/form-associated-mixin.js"
120832
120793
  }
120833
120794
  },
120834
120795
  {
120835
120796
  "kind": "field",
120836
- "name": "state",
120837
- "privacy": "protected",
120838
- "description": "The state of the component.",
120797
+ "name": "name",
120798
+ "privacy": "public",
120799
+ "description": "Name of the form element. Will be read from name attribute.",
120839
120800
  "type": {
120840
- "text": "SbbOpenedClosedState"
120801
+ "text": "string"
120841
120802
  },
120842
- "default": "'closed'",
120803
+ "attribute": "name",
120843
120804
  "inheritedFrom": {
120844
- "name": "SbbOpenCloseBaseElement",
120845
- "module": "core/base-elements/open-close-base-element.js"
120805
+ "name": "SbbFormAssociatedMixin",
120806
+ "module": "core/mixins/form-associated-mixin.js"
120846
120807
  }
120847
120808
  },
120848
120809
  {
120849
120810
  "kind": "field",
120850
- "name": "_state",
120811
+ "name": "validity",
120851
120812
  "type": {
120852
- "text": "SbbOpenedClosedState"
120813
+ "text": "ValidityState"
120853
120814
  },
120854
- "privacy": "private",
120815
+ "privacy": "public",
120816
+ "description": "Returns the ValidityState object for this element.",
120817
+ "readonly": true,
120855
120818
  "inheritedFrom": {
120856
- "name": "SbbOpenCloseBaseElement",
120857
- "module": "core/base-elements/open-close-base-element.js"
120819
+ "name": "SbbFormAssociatedMixin",
120820
+ "module": "core/mixins/form-associated-mixin.js"
120858
120821
  }
120859
120822
  },
120860
120823
  {
120861
120824
  "kind": "field",
120862
- "name": "isOpen",
120825
+ "name": "validationMessage",
120863
120826
  "type": {
120864
- "text": "boolean"
120827
+ "text": "string"
120865
120828
  },
120866
120829
  "privacy": "public",
120867
- "description": "Whether the element is open.",
120830
+ "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.",
120868
120831
  "readonly": true,
120869
120832
  "inheritedFrom": {
120870
- "name": "SbbOpenCloseBaseElement",
120871
- "module": "core/base-elements/open-close-base-element.js"
120833
+ "name": "SbbFormAssociatedMixin",
120834
+ "module": "core/mixins/form-associated-mixin.js"
120872
120835
  }
120873
120836
  },
120874
120837
  {
120875
- "kind": "method",
120876
- "name": "escapeStrategy",
120877
- "privacy": "public",
120878
- "return": {
120879
- "type": {
120880
- "text": "void"
120881
- }
120838
+ "kind": "field",
120839
+ "name": "willValidate",
120840
+ "type": {
120841
+ "text": "boolean"
120882
120842
  },
120883
- "description": "The method which is called on escape key press. Defaults to calling close()",
120843
+ "privacy": "public",
120844
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
120845
+ "readonly": true,
120884
120846
  "inheritedFrom": {
120885
- "name": "SbbOpenCloseBaseElement",
120886
- "module": "core/base-elements/open-close-base-element.js"
120847
+ "name": "SbbFormAssociatedMixin",
120848
+ "module": "core/mixins/form-associated-mixin.js"
120887
120849
  }
120888
120850
  },
120889
120851
  {
120890
- "kind": "method",
120891
- "name": "dispatchBeforeOpenEvent",
120892
- "privacy": "protected",
120893
- "return": {
120894
- "type": {
120895
- "text": "boolean"
120896
- }
120897
- },
120852
+ "kind": "field",
120853
+ "name": "_validityStates",
120854
+ "privacy": "private",
120855
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
120898
120856
  "inheritedFrom": {
120899
- "name": "SbbOpenCloseBaseElement",
120900
- "module": "core/base-elements/open-close-base-element.js"
120857
+ "name": "SbbFormAssociatedMixin",
120858
+ "module": "core/mixins/form-associated-mixin.js"
120901
120859
  }
120902
120860
  },
120903
120861
  {
120904
- "kind": "method",
120905
- "name": "dispatchOpenEvent",
120906
- "privacy": "protected",
120907
- "return": {
120908
- "type": {
120909
- "text": "boolean"
120910
- }
120862
+ "kind": "field",
120863
+ "name": "formDisabled",
120864
+ "type": {
120865
+ "text": "boolean"
120911
120866
  },
120867
+ "privacy": "protected",
120868
+ "default": "false",
120869
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
120912
120870
  "inheritedFrom": {
120913
- "name": "SbbOpenCloseBaseElement",
120914
- "module": "core/base-elements/open-close-base-element.js"
120871
+ "name": "SbbFormAssociatedMixin",
120872
+ "module": "core/mixins/form-associated-mixin.js"
120915
120873
  }
120916
120874
  },
120917
120875
  {
120918
120876
  "kind": "method",
120919
- "name": "dispatchBeforeCloseEvent",
120920
- "privacy": "protected",
120877
+ "name": "checkValidity",
120878
+ "privacy": "public",
120921
120879
  "return": {
120922
120880
  "type": {
120923
120881
  "text": "boolean"
120924
120882
  }
120925
120883
  },
120884
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
120926
120885
  "inheritedFrom": {
120927
- "name": "SbbOpenCloseBaseElement",
120928
- "module": "core/base-elements/open-close-base-element.js"
120886
+ "name": "SbbFormAssociatedMixin",
120887
+ "module": "core/mixins/form-associated-mixin.js"
120929
120888
  }
120930
120889
  },
120931
120890
  {
120932
120891
  "kind": "method",
120933
- "name": "dispatchCloseEvent",
120934
- "privacy": "protected",
120892
+ "name": "reportValidity",
120893
+ "privacy": "public",
120935
120894
  "return": {
120936
120895
  "type": {
120937
120896
  "text": "boolean"
120938
120897
  }
120939
120898
  },
120899
+ "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.",
120940
120900
  "inheritedFrom": {
120941
- "name": "SbbOpenCloseBaseElement",
120942
- "module": "core/base-elements/open-close-base-element.js"
120901
+ "name": "SbbFormAssociatedMixin",
120902
+ "module": "core/mixins/form-associated-mixin.js"
120943
120903
  }
120944
120904
  },
120945
120905
  {
120946
- "kind": "field",
120947
- "name": "_hydrationRequired",
120948
- "type": {
120949
- "text": "boolean"
120906
+ "kind": "method",
120907
+ "name": "setCustomValidity",
120908
+ "privacy": "public",
120909
+ "return": {
120910
+ "type": {
120911
+ "text": "void"
120912
+ }
120950
120913
  },
120951
- "privacy": "private",
120952
- "default": "!!this.shadowRoot",
120914
+ "parameters": [
120915
+ {
120916
+ "name": "message",
120917
+ "type": {
120918
+ "text": "string"
120919
+ }
120920
+ }
120921
+ ],
120922
+ "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.",
120953
120923
  "inheritedFrom": {
120954
- "name": "SbbElement",
120955
- "module": "core/base-elements/element.js"
120924
+ "name": "SbbFormAssociatedMixin",
120925
+ "module": "core/mixins/form-associated-mixin.js"
120956
120926
  }
120957
120927
  },
120958
120928
  {
120959
- "kind": "field",
120960
- "name": "_hydrationComplete",
120929
+ "kind": "method",
120930
+ "name": "_hasDisabledAncestor",
120961
120931
  "privacy": "private",
120962
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
120932
+ "return": {
120933
+ "type": {
120934
+ "text": "boolean"
120935
+ }
120936
+ },
120963
120937
  "inheritedFrom": {
120964
- "name": "SbbElement",
120965
- "module": "core/base-elements/element.js"
120938
+ "name": "SbbFormAssociatedMixin",
120939
+ "module": "core/mixins/form-associated-mixin.js"
120966
120940
  }
120967
120941
  },
120968
120942
  {
120969
- "kind": "field",
120970
- "name": "_resolveHydration",
120971
- "type": {
120972
- "text": "(hydrationRequired: boolean) => void"
120943
+ "kind": "method",
120944
+ "name": "updateFormValue",
120945
+ "privacy": "protected",
120946
+ "return": {
120947
+ "type": {
120948
+ "text": "void"
120949
+ }
120973
120950
  },
120974
- "privacy": "private",
120951
+ "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",
120975
120952
  "inheritedFrom": {
120976
- "name": "SbbElement",
120977
- "module": "core/base-elements/element.js"
120953
+ "name": "SbbFormAssociatedMixin",
120954
+ "module": "core/mixins/form-associated-mixin.js"
120978
120955
  }
120979
120956
  },
120980
120957
  {
120981
- "kind": "field",
120982
- "name": "hydrationRequired",
120983
- "type": {
120984
- "text": "boolean"
120985
- },
120958
+ "kind": "method",
120959
+ "name": "formState",
120986
120960
  "privacy": "protected",
120987
- "description": "Returns whether hydration is required and not completed.",
120988
- "readonly": true,
120989
- "inheritedFrom": {
120990
- "name": "SbbElement",
120991
- "module": "core/base-elements/element.js"
120961
+ "return": {
120962
+ "type": {
120963
+ "text": "FormRestoreState"
120964
+ }
120992
120965
  },
120993
- "default": "!!this.shadowRoot"
120966
+ "inheritedFrom": {
120967
+ "name": "SbbFormAssociatedMixin",
120968
+ "module": "core/mixins/form-associated-mixin.js"
120969
+ }
120994
120970
  },
120995
120971
  {
120996
120972
  "kind": "method",
120997
- "name": "toggleState",
120973
+ "name": "setValidityFlag",
120998
120974
  "privacy": "protected",
120999
120975
  "return": {
121000
120976
  "type": {
@@ -121003,227 +120979,192 @@
121003
120979
  },
121004
120980
  "parameters": [
121005
120981
  {
121006
- "name": "value",
120982
+ "name": "flag",
120983
+ "type": {
120984
+ "text": "T"
120985
+ }
120986
+ },
120987
+ {
120988
+ "name": "message",
121007
120989
  "type": {
121008
120990
  "text": "string"
121009
120991
  }
121010
120992
  },
121011
120993
  {
121012
- "name": "force",
120994
+ "name": "flagValue",
121013
120995
  "optional": true,
121014
120996
  "type": {
121015
- "text": "boolean"
120997
+ "text": "ValidityStateFlags[T]"
121016
120998
  }
121017
120999
  }
121018
121000
  ],
121001
+ "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).",
121019
121002
  "inheritedFrom": {
121020
- "name": "SbbElement",
121021
- "module": "core/base-elements/element.js"
121003
+ "name": "SbbFormAssociatedMixin",
121004
+ "module": "core/mixins/form-associated-mixin.js"
121022
121005
  }
121023
121006
  },
121024
121007
  {
121025
- "kind": "field",
121026
- "name": "['_$sbbElement$']",
121027
- "type": {
121028
- "text": "boolean"
121008
+ "kind": "method",
121009
+ "name": "removeValidityFlag",
121010
+ "privacy": "protected",
121011
+ "return": {
121012
+ "type": {
121013
+ "text": "void"
121014
+ }
121029
121015
  },
121030
- "privacy": "public",
121031
- "static": true,
121032
- "default": "true",
121016
+ "parameters": [
121017
+ {
121018
+ "name": "flag",
121019
+ "type": {
121020
+ "text": "T"
121021
+ }
121022
+ }
121023
+ ],
121024
+ "description": "Removes the validity state flag entry and updates validity state.",
121033
121025
  "inheritedFrom": {
121034
- "name": "SbbElement",
121035
- "module": "core/base-elements/element.js"
121026
+ "name": "SbbFormAssociatedMixin",
121027
+ "module": "core/mixins/form-associated-mixin.js"
121036
121028
  }
121037
121029
  },
121038
121030
  {
121039
- "kind": "field",
121040
- "name": "_controllers",
121041
- "type": {
121042
- "text": "Set<SbbReactiveController> | undefined"
121031
+ "kind": "method",
121032
+ "name": "validate",
121033
+ "privacy": "protected",
121034
+ "return": {
121035
+ "type": {
121036
+ "text": "void"
121037
+ }
121043
121038
  },
121044
- "privacy": "private",
121039
+ "description": "To be called whenever the current element needs to be validated.",
121045
121040
  "inheritedFrom": {
121046
- "name": "SbbElement",
121047
- "module": "core/base-elements/element.js"
121041
+ "name": "SbbFormAssociatedMixin",
121042
+ "module": "core/mixins/form-associated-mixin.js"
121048
121043
  }
121049
- }
121050
- ],
121051
- "attributes": [
121052
- {
121053
- "name": "color",
121054
- "type": {
121055
- "text": "'white' | 'milk'"
121056
- },
121057
- "default": "'white'",
121058
- "description": "Background color of the sidebar. Either `white` or `milk`.",
121059
- "fieldName": "color"
121060
- },
121061
- {
121062
- "name": "mode",
121063
- "type": {
121064
- "text": "'side' | 'over'"
121065
- },
121066
- "default": "'side'",
121067
- "description": "Mode of the sidebar; one of 'side' or 'over'.",
121068
- "fieldName": "mode"
121069
- },
121070
- {
121071
- "name": "position",
121072
- "type": {
121073
- "text": "'start' | 'end'"
121074
- },
121075
- "default": "'start'",
121076
- "description": "The side that the sidebar is attached to.",
121077
- "fieldName": "position"
121078
- },
121079
- {
121080
- "name": "opened",
121081
- "type": {
121082
- "text": "boolean"
121083
- },
121084
- "default": "false",
121085
- "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
121086
- "fieldName": "opened"
121087
121044
  },
121088
121045
  {
121089
- "name": "focus-on-open",
121090
- "type": {
121091
- "text": "boolean"
121092
- },
121093
- "default": "false",
121094
- "description": "Whether the sidebar should focus the first focusable element automatically when opened.\nDefaults to false in when mode is set to `side`, otherwise defaults to true.\nIf explicitly enabled, focus will be moved into the sidebar in `side` mode as well.",
121095
- "fieldName": "focusOnOpen"
121096
- }
121097
- ],
121098
- "mixins": [
121099
- {
121100
- "name": "SbbAnimationCompleteMixin",
121101
- "module": "core/mixins.js"
121102
- }
121103
- ],
121104
- "superclass": {
121105
- "name": "SbbOpenCloseBaseElement",
121106
- "module": "core/base-elements.js"
121107
- },
121108
- "tagName": "sbb-sidebar",
121109
- "customElement": true,
121110
- "events": [
121111
- {
121112
- "name": "beforeopen",
121113
- "type": {
121114
- "text": "Event"
121046
+ "kind": "method",
121047
+ "name": "shouldValidate",
121048
+ "privacy": "protected",
121049
+ "return": {
121050
+ "type": {
121051
+ "text": "boolean"
121052
+ }
121115
121053
  },
121116
- "description": "Emits whenever the component starts the opening transition. Can be canceled.",
121054
+ "parameters": [
121055
+ {
121056
+ "name": "name",
121057
+ "type": {
121058
+ "text": "PropertyKey | undefined"
121059
+ }
121060
+ }
121061
+ ],
121062
+ "description": "Whether validation should be run on a property change with the given name.",
121117
121063
  "inheritedFrom": {
121118
- "name": "SbbOpenCloseBaseElement",
121119
- "module": "core/base-elements/open-close-base-element.js"
121064
+ "name": "SbbFormAssociatedMixin",
121065
+ "module": "core/mixins/form-associated-mixin.js"
121120
121066
  }
121121
121067
  },
121122
121068
  {
121123
- "name": "open",
121124
- "type": {
121125
- "text": "Event"
121069
+ "kind": "method",
121070
+ "name": "_setInternalValidity",
121071
+ "privacy": "private",
121072
+ "return": {
121073
+ "type": {
121074
+ "text": "void"
121075
+ }
121126
121076
  },
121127
- "description": "Emits whenever the component is opened.",
121128
121077
  "inheritedFrom": {
121129
- "name": "SbbOpenCloseBaseElement",
121130
- "module": "core/base-elements/open-close-base-element.js"
121078
+ "name": "SbbFormAssociatedMixin",
121079
+ "module": "core/mixins/form-associated-mixin.js"
121131
121080
  }
121132
121081
  },
121133
121082
  {
121134
- "name": "beforeclose",
121083
+ "kind": "field",
121084
+ "name": "role",
121135
121085
  "type": {
121136
- "text": "Event"
121086
+ "text": "ElementInternals['role']"
121137
121087
  },
121138
- "description": "Emits whenever the component begins the closing transition. Can be canceled.",
121088
+ "privacy": "public",
121089
+ "static": true,
121090
+ "readonly": true,
121091
+ "default": "'button'",
121139
121092
  "inheritedFrom": {
121140
- "name": "SbbOpenCloseBaseElement",
121141
- "module": "core/base-elements/open-close-base-element.js"
121093
+ "name": "SbbButtonLikeBaseElement",
121094
+ "module": "core/base-elements/button-base-element.js"
121142
121095
  }
121143
121096
  },
121144
121097
  {
121145
- "name": "close",
121146
- "type": {
121147
- "text": "Event"
121148
- },
121149
- "description": "Emits whenever the component is closed.",
121150
- "inheritedFrom": {
121151
- "name": "SbbOpenCloseBaseElement",
121152
- "module": "core/base-elements/open-close-base-element.js"
121153
- }
121154
- }
121155
- ]
121156
- }
121157
- ],
121158
- "exports": [
121159
- {
121160
- "kind": "js",
121161
- "name": "SbbSidebarElement",
121162
- "declaration": {
121163
- "name": "SbbSidebarElement",
121164
- "module": "sidebar/sidebar/sidebar.component.js"
121165
- }
121166
- }
121167
- ]
121168
- },
121169
- {
121170
- "kind": "javascript-module",
121171
- "path": "sidebar/sidebar-close-button/sidebar-close-button.component.js",
121172
- "declarations": [
121173
- {
121174
- "kind": "class",
121175
- "description": "Sidebar close button, intended to be placed inside sbb-sidebar.",
121176
- "name": "SbbSidebarCloseButtonElement",
121177
- "slots": [
121178
- {
121179
- "description": "Use the unnamed slot to add content to the sidebar-close-button. Not intended to be used in this context.",
121180
- "name": "",
121098
+ "kind": "field",
121099
+ "name": "_preventScrollOnSpaceKeydown",
121100
+ "privacy": "private",
121101
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
121102
+ "parameters": [
121103
+ {
121104
+ "description": "The origin event.",
121105
+ "name": "event"
121106
+ }
121107
+ ],
121181
121108
  "inheritedFrom": {
121182
- "name": "SbbSecondaryButtonElement",
121183
- "module": "button/secondary-button/secondary-button.component.js"
121109
+ "name": "SbbButtonLikeBaseElement",
121110
+ "module": "core/base-elements/button-base-element.js"
121184
121111
  }
121185
121112
  },
121186
121113
  {
121187
- "description": "Slot used to display the icon, if one is set. Not intended to be used in this context.",
121188
- "name": "icon",
121114
+ "kind": "field",
121115
+ "name": "_removeActiveMarker",
121116
+ "privacy": "private",
121189
121117
  "inheritedFrom": {
121190
- "name": "SbbSecondaryButtonElement",
121191
- "module": "button/secondary-button/secondary-button.component.js"
121118
+ "name": "SbbButtonLikeBaseElement",
121119
+ "module": "core/base-elements/button-base-element.js"
121192
121120
  }
121193
- }
121194
- ],
121195
- "members": [
121121
+ },
121196
121122
  {
121197
121123
  "kind": "field",
121198
- "name": "elementName",
121199
- "type": {
121200
- "text": "string"
121201
- },
121202
- "privacy": "public",
121203
- "static": true,
121204
- "readonly": true,
121124
+ "name": "_dispatchClickEventOnSpaceKeyup",
121125
+ "privacy": "private",
121126
+ "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.",
121127
+ "parameters": [
121128
+ {
121129
+ "description": "The origin event.",
121130
+ "name": "event"
121131
+ }
121132
+ ],
121205
121133
  "inheritedFrom": {
121206
- "name": "SbbElement",
121207
- "module": "core/base-elements/element.js"
121208
- },
121209
- "default": "'sbb-sidebar-close-button'"
121134
+ "name": "SbbButtonLikeBaseElement",
121135
+ "module": "core/base-elements/button-base-element.js"
121136
+ }
121210
121137
  },
121211
121138
  {
121212
121139
  "kind": "field",
121213
- "name": "_languageController",
121140
+ "name": "_dispatchClickEvent",
121214
121141
  "privacy": "private",
121215
- "default": "new SbbLanguageController(this)"
121142
+ "inheritedFrom": {
121143
+ "name": "SbbButtonLikeBaseElement",
121144
+ "module": "core/base-elements/button-base-element.js"
121145
+ }
121216
121146
  },
121217
121147
  {
121218
- "kind": "method",
121219
- "name": "renderTemplate",
121148
+ "kind": "field",
121149
+ "name": "maybeDisabled",
121150
+ "type": {
121151
+ "text": "boolean | undefined"
121152
+ },
121220
121153
  "privacy": "protected",
121221
- "return": {
121222
- "type": {
121223
- "text": "TemplateResult"
121224
- }
121154
+ "readonly": true,
121155
+ "inheritedFrom": {
121156
+ "name": "SbbActionBaseElement",
121157
+ "module": "core/base-elements/action-base-element.js"
121158
+ }
121159
+ },
121160
+ {
121161
+ "kind": "field",
121162
+ "name": "maybeDisabledInteractive",
121163
+ "type": {
121164
+ "text": "boolean | undefined"
121225
121165
  },
121226
- "description": "Override this method to render the component template.",
121166
+ "privacy": "protected",
121167
+ "readonly": true,
121227
121168
  "inheritedFrom": {
121228
121169
  "name": "SbbActionBaseElement",
121229
121170
  "module": "core/base-elements/action-base-element.js"
@@ -121231,483 +121172,518 @@
121231
121172
  },
121232
121173
  {
121233
121174
  "kind": "method",
121234
- "name": "renderIconName",
121175
+ "name": "setupBaseEventHandlers",
121235
121176
  "privacy": "protected",
121236
121177
  "return": {
121237
121178
  "type": {
121238
- "text": "string"
121179
+ "text": "void"
121239
121180
  }
121240
121181
  },
121241
121182
  "inheritedFrom": {
121242
- "name": "SbbIconNameMixin",
121243
- "module": "icon/icon-name-mixin.js"
121183
+ "name": "SbbActionBaseElement",
121184
+ "module": "core/base-elements/action-base-element.js"
121244
121185
  }
121245
121186
  },
121246
121187
  {
121247
121188
  "kind": "field",
121248
- "name": "size",
121189
+ "name": "_hydrationRequired",
121249
121190
  "type": {
121250
- "text": "SbbButtonSize"
121191
+ "text": "boolean"
121251
121192
  },
121252
- "privacy": "public",
121253
- "description": "Size variant, either l, m or s.",
121254
- "default": "'s'",
121255
- "attribute": "size",
121256
- "reflects": true,
121193
+ "privacy": "private",
121194
+ "default": "!!this.shadowRoot",
121257
121195
  "inheritedFrom": {
121258
- "name": "SbbButtonCommonElementMixin",
121259
- "module": "button/common/button-common.js"
121196
+ "name": "SbbElement",
121197
+ "module": "core/base-elements/element.js"
121260
121198
  }
121261
121199
  },
121262
121200
  {
121263
121201
  "kind": "field",
121264
- "name": "loading",
121265
- "type": {
121266
- "text": "boolean"
121267
- },
121268
- "privacy": "public",
121269
- "default": "false",
121270
- "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.",
121271
- "attribute": "loading",
121272
- "reflects": true,
121202
+ "name": "_hydrationComplete",
121203
+ "privacy": "private",
121204
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
121273
121205
  "inheritedFrom": {
121274
- "name": "SbbButtonCommonElementMixin",
121275
- "module": "button/common/button-common.js"
121206
+ "name": "SbbElement",
121207
+ "module": "core/base-elements/element.js"
121276
121208
  }
121277
121209
  },
121278
121210
  {
121279
121211
  "kind": "field",
121280
- "name": "negative",
121212
+ "name": "_resolveHydration",
121281
121213
  "type": {
121282
- "text": "boolean"
121214
+ "text": "(hydrationRequired: boolean) => void"
121283
121215
  },
121284
- "privacy": "public",
121285
- "default": "false",
121286
- "description": "Negative coloring variant flag.",
121287
- "attribute": "negative",
121288
- "reflects": true,
121216
+ "privacy": "private",
121289
121217
  "inheritedFrom": {
121290
- "name": "SbbNegativeMixin",
121291
- "module": "core/mixins/negative-mixin.js"
121218
+ "name": "SbbElement",
121219
+ "module": "core/base-elements/element.js"
121292
121220
  }
121293
121221
  },
121294
121222
  {
121295
121223
  "kind": "field",
121296
- "name": "iconName",
121224
+ "name": "hydrationRequired",
121297
121225
  "type": {
121298
- "text": "string"
121226
+ "text": "boolean"
121299
121227
  },
121300
- "privacy": "public",
121301
- "default": "''",
121302
- "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.",
121303
- "attribute": "icon-name",
121228
+ "privacy": "protected",
121229
+ "description": "Returns whether hydration is required and not completed.",
121230
+ "readonly": true,
121304
121231
  "inheritedFrom": {
121305
- "name": "SbbIconNameMixin",
121306
- "module": "icon/icon-name-mixin.js"
121307
- }
121232
+ "name": "SbbElement",
121233
+ "module": "core/base-elements/element.js"
121234
+ },
121235
+ "default": "!!this.shadowRoot"
121308
121236
  },
121309
121237
  {
121310
121238
  "kind": "method",
121311
- "name": "renderIconSlot",
121239
+ "name": "toggleState",
121312
121240
  "privacy": "protected",
121313
121241
  "return": {
121314
121242
  "type": {
121315
- "text": "TemplateResult"
121243
+ "text": "void"
121316
121244
  }
121317
121245
  },
121318
121246
  "parameters": [
121319
121247
  {
121320
- "name": "classname",
121321
- "optional": true,
121248
+ "name": "value",
121322
121249
  "type": {
121323
121250
  "text": "string"
121324
121251
  }
121252
+ },
121253
+ {
121254
+ "name": "force",
121255
+ "optional": true,
121256
+ "type": {
121257
+ "text": "boolean"
121258
+ }
121325
121259
  }
121326
121260
  ],
121327
121261
  "inheritedFrom": {
121328
- "name": "SbbIconNameMixin",
121329
- "module": "icon/icon-name-mixin.js"
121262
+ "name": "SbbElement",
121263
+ "module": "core/base-elements/element.js"
121330
121264
  }
121331
121265
  },
121332
121266
  {
121333
- "kind": "method",
121334
- "name": "_renderIconName",
121335
- "privacy": "private",
121336
- "return": {
121337
- "type": {
121338
- "text": "string"
121339
- }
121267
+ "kind": "field",
121268
+ "name": "['_$sbbElement$']",
121269
+ "type": {
121270
+ "text": "boolean"
121340
121271
  },
121272
+ "privacy": "public",
121273
+ "static": true,
121274
+ "default": "true",
121341
121275
  "inheritedFrom": {
121342
- "name": "SbbIconNameMixin",
121343
- "module": "icon/icon-name-mixin.js"
121276
+ "name": "SbbElement",
121277
+ "module": "core/base-elements/element.js"
121344
121278
  }
121345
121279
  },
121346
121280
  {
121347
121281
  "kind": "field",
121348
- "name": "disabledInteractive",
121282
+ "name": "_controllers",
121283
+ "type": {
121284
+ "text": "Set<SbbReactiveController> | undefined"
121285
+ },
121286
+ "privacy": "private",
121287
+ "inheritedFrom": {
121288
+ "name": "SbbElement",
121289
+ "module": "core/base-elements/element.js"
121290
+ }
121291
+ }
121292
+ ],
121293
+ "superclass": {
121294
+ "name": "SbbSecondaryButtonElement",
121295
+ "module": "button.pure.js"
121296
+ },
121297
+ "tagName": "sbb-sidebar-close-button",
121298
+ "customElement": true,
121299
+ "attributes": [
121300
+ {
121301
+ "name": "size",
121302
+ "type": {
121303
+ "text": "SbbButtonSize"
121304
+ },
121305
+ "description": "Size variant, either l, m or s.",
121306
+ "default": "'l' / 's' (lean)",
121307
+ "fieldName": "size",
121308
+ "inheritedFrom": {
121309
+ "name": "SbbButtonCommonElementMixin",
121310
+ "module": "button/common/button-common.js"
121311
+ }
121312
+ },
121313
+ {
121314
+ "name": "loading",
121349
121315
  "type": {
121350
121316
  "text": "boolean"
121351
121317
  },
121352
- "privacy": "public",
121353
121318
  "default": "false",
121354
- "description": "Whether the button should be aria-disabled but stay interactive.",
121355
- "attribute": "disabled-interactive",
121356
- "reflects": true,
121319
+ "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.",
121320
+ "fieldName": "loading",
121357
121321
  "inheritedFrom": {
121358
- "name": "SbbDisabledInteractiveMixin",
121359
- "module": "core/mixins/disabled-mixin.js"
121322
+ "name": "SbbButtonCommonElementMixin",
121323
+ "module": "button/common/button-common.js"
121360
121324
  }
121361
121325
  },
121362
121326
  {
121363
- "kind": "field",
121364
- "name": "disabled",
121365
- "privacy": "public",
121366
- "description": "Whether the component is disabled.",
121367
- "default": "false",
121327
+ "name": "negative",
121368
121328
  "type": {
121369
121329
  "text": "boolean"
121370
121330
  },
121371
- "attribute": "disabled",
121372
- "reflects": true,
121331
+ "default": "false",
121332
+ "description": "Negative coloring variant flag.",
121333
+ "fieldName": "negative",
121373
121334
  "inheritedFrom": {
121374
- "name": "SbbDisabledMixin",
121375
- "module": "core/mixins/disabled-mixin.js"
121335
+ "name": "SbbNegativeMixin",
121336
+ "module": "core/mixins/negative-mixin.js"
121337
+ }
121338
+ },
121339
+ {
121340
+ "name": "icon-name",
121341
+ "type": {
121342
+ "text": "string"
121343
+ },
121344
+ "default": "''",
121345
+ "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.",
121346
+ "fieldName": "iconName",
121347
+ "inheritedFrom": {
121348
+ "name": "SbbIconNameMixin",
121349
+ "module": "icon/icon-name-mixin.js"
121376
121350
  }
121377
121351
  },
121378
121352
  {
121379
- "kind": "field",
121380
- "name": "#disabled",
121381
- "privacy": "private",
121353
+ "name": "disabled-interactive",
121382
121354
  "type": {
121383
121355
  "text": "boolean"
121384
121356
  },
121385
121357
  "default": "false",
121358
+ "description": "Whether the button should be aria-disabled but stay interactive.",
121359
+ "fieldName": "disabledInteractive",
121386
121360
  "inheritedFrom": {
121387
- "name": "SbbDisabledMixin",
121361
+ "name": "SbbDisabledInteractiveMixin",
121388
121362
  "module": "core/mixins/disabled-mixin.js"
121389
121363
  }
121390
121364
  },
121391
121365
  {
121392
- "kind": "method",
121393
- "name": "isDisabledExternally",
121394
- "privacy": "protected",
121395
- "return": {
121396
- "type": {
121397
- "text": "boolean"
121398
- }
121366
+ "name": "disabled",
121367
+ "description": "Whether the component is disabled.",
121368
+ "default": "false",
121369
+ "type": {
121370
+ "text": "boolean"
121399
121371
  },
121400
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
121372
+ "fieldName": "disabled",
121401
121373
  "inheritedFrom": {
121402
121374
  "name": "SbbDisabledMixin",
121403
121375
  "module": "core/mixins/disabled-mixin.js"
121404
121376
  }
121405
121377
  },
121406
121378
  {
121407
- "kind": "field",
121408
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
121409
- "type": {
121410
- "text": "array"
121411
- },
121412
- "privacy": "private",
121413
- "readonly": true,
121414
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
121415
- "inheritedFrom": {
121416
- "name": "SbbButtonBaseElement",
121417
- "module": "core/base-elements/button-base-element.js"
121418
- }
121419
- },
121420
- {
121421
- "kind": "field",
121422
121379
  "name": "value",
121423
121380
  "type": {
121424
121381
  "text": "string"
121425
121382
  },
121426
- "privacy": "public",
121383
+ "default": "''",
121384
+ "description": "Value of the form element.",
121385
+ "fieldName": "value",
121427
121386
  "inheritedFrom": {
121428
121387
  "name": "SbbButtonBaseElement",
121429
121388
  "module": "core/base-elements/button-base-element.js"
121430
- },
121431
- "default": "''",
121432
- "description": "Value of the form element.",
121433
- "attribute": "value"
121389
+ }
121434
121390
  },
121435
121391
  {
121436
- "kind": "field",
121437
121392
  "name": "type",
121438
- "privacy": "public",
121439
121393
  "description": "The type attribute to use for the button.",
121440
121394
  "default": "'button'",
121441
121395
  "type": {
121442
121396
  "text": "SbbButtonType"
121443
121397
  },
121444
- "attribute": "type",
121398
+ "fieldName": "type",
121445
121399
  "inheritedFrom": {
121446
121400
  "name": "SbbButtonBaseElement",
121447
121401
  "module": "core/base-elements/button-base-element.js"
121448
121402
  }
121449
121403
  },
121450
121404
  {
121451
- "kind": "field",
121452
121405
  "name": "form",
121406
+ "description": "The `<form>` element to associate the button with.",
121453
121407
  "type": {
121454
121408
  "text": "HTMLFormElement | null"
121455
121409
  },
121456
- "privacy": "public",
121457
- "description": "The `<form>` element to associate the button with.",
121410
+ "fieldName": "form",
121458
121411
  "inheritedFrom": {
121459
121412
  "name": "SbbButtonBaseElement",
121460
121413
  "module": "core/base-elements/button-base-element.js"
121461
- },
121462
- "attribute": "form"
121414
+ }
121463
121415
  },
121464
121416
  {
121465
- "kind": "field",
121466
- "name": "_formId",
121417
+ "name": "name",
121418
+ "description": "Name of the form element. Will be read from name attribute.",
121467
121419
  "type": {
121468
121420
  "text": "string"
121469
121421
  },
121470
- "privacy": "private",
121471
- "default": "''",
121422
+ "fieldName": "name",
121472
121423
  "inheritedFrom": {
121473
- "name": "SbbButtonBaseElement",
121474
- "module": "core/base-elements/button-base-element.js"
121424
+ "name": "SbbFormAssociatedMixin",
121425
+ "module": "core/mixins/form-associated-mixin.js"
121475
121426
  }
121476
- },
121427
+ }
121428
+ ],
121429
+ "cssProperties": [
121477
121430
  {
121478
- "kind": "field",
121479
- "name": "_handleButtonClick",
121480
- "privacy": "private",
121431
+ "description": "The delay before the loading animation starts, when setting the button into loading state.",
121432
+ "name": "--sbb-button-loading-delay",
121433
+ "default": "300ms",
121481
121434
  "inheritedFrom": {
121482
- "name": "SbbButtonBaseElement",
121483
- "module": "core/base-elements/button-base-element.js"
121435
+ "name": "SbbSecondaryButtonElement",
121436
+ "module": "button/secondary-button/secondary-button.component.js"
121484
121437
  }
121438
+ }
121439
+ ]
121440
+ }
121441
+ ],
121442
+ "exports": [
121443
+ {
121444
+ "kind": "js",
121445
+ "name": "SbbSidebarCloseButtonElement",
121446
+ "declaration": {
121447
+ "name": "SbbSidebarCloseButtonElement",
121448
+ "module": "sidebar/sidebar-close-button/sidebar-close-button.component.js"
121449
+ }
121450
+ }
121451
+ ]
121452
+ },
121453
+ {
121454
+ "kind": "javascript-module",
121455
+ "path": "sidebar/sidebar/sidebar.component.js",
121456
+ "declarations": [
121457
+ {
121458
+ "kind": "class",
121459
+ "description": "This component corresponds to a sidebar that can be opened on the sidebar container.",
121460
+ "name": "SbbSidebarElement",
121461
+ "slots": [
121462
+ {
121463
+ "description": "Use the unnamed slot to slot any content into the sidebar.",
121464
+ "name": ""
121485
121465
  },
121486
121466
  {
121487
- "kind": "method",
121488
- "name": "_requestSubmit",
121489
- "privacy": "private",
121490
- "return": {
121491
- "type": {
121492
- "text": "void"
121493
- }
121467
+ "description": "Use the title slot to add an <sbb-title>.",
121468
+ "name": "title"
121469
+ }
121470
+ ],
121471
+ "members": [
121472
+ {
121473
+ "kind": "field",
121474
+ "name": "elementName",
121475
+ "type": {
121476
+ "text": "string"
121494
121477
  },
121495
- "parameters": [
121496
- {
121497
- "name": "form",
121498
- "type": {
121499
- "text": "HTMLFormElement"
121500
- }
121501
- }
121502
- ],
121478
+ "privacy": "public",
121479
+ "static": true,
121480
+ "readonly": true,
121503
121481
  "inheritedFrom": {
121504
- "name": "SbbButtonBaseElement",
121505
- "module": "core/base-elements/button-base-element.js"
121506
- }
121482
+ "name": "SbbElement",
121483
+ "module": "core/base-elements/element.js"
121484
+ },
121485
+ "default": "'sbb-sidebar'"
121507
121486
  },
121508
121487
  {
121509
121488
  "kind": "field",
121510
- "name": "_formKeyDown",
121511
- "privacy": "private",
121512
- "inheritedFrom": {
121513
- "name": "SbbButtonBaseElement",
121514
- "module": "core/base-elements/button-base-element.js"
121515
- }
121489
+ "name": "color",
121490
+ "type": {
121491
+ "text": "'white' | 'milk'"
121492
+ },
121493
+ "privacy": "public",
121494
+ "default": "'white'",
121495
+ "description": "Background color of the sidebar. Either `white` or `milk`.",
121496
+ "attribute": "color",
121497
+ "reflects": true
121516
121498
  },
121517
121499
  {
121518
121500
  "kind": "field",
121519
- "name": "formAssociated",
121501
+ "name": "mode",
121520
121502
  "type": {
121521
- "text": "boolean"
121503
+ "text": "'side' | 'over'"
121522
121504
  },
121523
121505
  "privacy": "public",
121524
- "static": true,
121525
- "default": "true",
121526
- "inheritedFrom": {
121527
- "name": "SbbFormAssociatedMixin",
121528
- "module": "core/mixins/form-associated-mixin.js"
121529
- }
121506
+ "default": "'side'",
121507
+ "description": "Mode of the sidebar; one of 'side' or 'over'.",
121508
+ "attribute": "mode",
121509
+ "reflects": true
121530
121510
  },
121531
121511
  {
121532
121512
  "kind": "field",
121533
- "name": "name",
121534
- "privacy": "public",
121535
- "description": "Name of the form element. Will be read from name attribute.",
121513
+ "name": "position",
121536
121514
  "type": {
121537
- "text": "string"
121515
+ "text": "'start' | 'end'"
121538
121516
  },
121539
- "attribute": "name",
121540
- "inheritedFrom": {
121541
- "name": "SbbFormAssociatedMixin",
121542
- "module": "core/mixins/form-associated-mixin.js"
121543
- }
121517
+ "privacy": "public",
121518
+ "default": "'start'",
121519
+ "description": "The side that the sidebar is attached to.",
121520
+ "attribute": "position",
121521
+ "reflects": true
121544
121522
  },
121545
121523
  {
121546
121524
  "kind": "field",
121547
- "name": "validity",
121525
+ "name": "opened",
121548
121526
  "type": {
121549
- "text": "ValidityState"
121527
+ "text": "boolean"
121550
121528
  },
121551
121529
  "privacy": "public",
121552
- "description": "Returns the ValidityState object for this element.",
121553
- "readonly": true,
121554
- "inheritedFrom": {
121555
- "name": "SbbFormAssociatedMixin",
121556
- "module": "core/mixins/form-associated-mixin.js"
121557
- }
121530
+ "default": "false",
121531
+ "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
121532
+ "attribute": "opened",
121533
+ "reflects": true
121558
121534
  },
121559
121535
  {
121560
121536
  "kind": "field",
121561
- "name": "validationMessage",
121537
+ "name": "focusOnOpen",
121562
121538
  "type": {
121563
- "text": "string"
121539
+ "text": "boolean"
121564
121540
  },
121565
121541
  "privacy": "public",
121566
- "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.",
121567
- "readonly": true,
121568
- "inheritedFrom": {
121569
- "name": "SbbFormAssociatedMixin",
121570
- "module": "core/mixins/form-associated-mixin.js"
121571
- }
121542
+ "default": "false",
121543
+ "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.",
121544
+ "attribute": "focus-on-open"
121572
121545
  },
121573
121546
  {
121574
121547
  "kind": "field",
121575
- "name": "willValidate",
121548
+ "name": "container",
121576
121549
  "type": {
121577
- "text": "boolean"
121550
+ "text": "SbbSidebarContainerElement | null"
121578
121551
  },
121579
121552
  "privacy": "public",
121580
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
121553
+ "description": "Returns the SbbSidebarContainerElement where this sidebar is contained.",
121581
121554
  "readonly": true,
121582
- "inheritedFrom": {
121583
- "name": "SbbFormAssociatedMixin",
121584
- "module": "core/mixins/form-associated-mixin.js"
121585
- }
121555
+ "default": "null"
121586
121556
  },
121587
121557
  {
121588
121558
  "kind": "field",
121589
- "name": "_validityStates",
121559
+ "name": "_container",
121560
+ "type": {
121561
+ "text": "SbbSidebarContainerElement | null"
121562
+ },
121590
121563
  "privacy": "private",
121591
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
121592
- "inheritedFrom": {
121593
- "name": "SbbFormAssociatedMixin",
121594
- "module": "core/mixins/form-associated-mixin.js"
121595
- }
121564
+ "default": "null"
121565
+ },
121566
+ {
121567
+ "kind": "field",
121568
+ "name": "_lastFocusedElement",
121569
+ "type": {
121570
+ "text": "HTMLElement | null"
121571
+ },
121572
+ "privacy": "private",
121573
+ "default": "null"
121574
+ },
121575
+ {
121576
+ "kind": "field",
121577
+ "name": "_focusTrapController",
121578
+ "privacy": "private",
121579
+ "default": "new SbbFocusTrapController(this)"
121580
+ },
121581
+ {
121582
+ "kind": "field",
121583
+ "name": "_escapableOverlayController",
121584
+ "privacy": "private",
121585
+ "default": "new SbbEscapableOverlayController(this)"
121596
121586
  },
121597
121587
  {
121598
121588
  "kind": "field",
121599
- "name": "formDisabled",
121600
- "type": {
121601
- "text": "boolean"
121589
+ "name": "_closeOnNavigation",
121590
+ "privacy": "private"
121591
+ },
121592
+ {
121593
+ "kind": "method",
121594
+ "name": "toggle",
121595
+ "privacy": "public",
121596
+ "return": {
121597
+ "type": {
121598
+ "text": "void"
121599
+ }
121602
121600
  },
121603
- "privacy": "protected",
121604
- "default": "false",
121605
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
121606
- "inheritedFrom": {
121607
- "name": "SbbFormAssociatedMixin",
121608
- "module": "core/mixins/form-associated-mixin.js"
121609
- }
121601
+ "description": "Toggles the sidebar visibility."
121610
121602
  },
121611
121603
  {
121612
121604
  "kind": "method",
121613
- "name": "checkValidity",
121605
+ "name": "open",
121614
121606
  "privacy": "public",
121615
121607
  "return": {
121616
121608
  "type": {
121617
- "text": "boolean"
121609
+ "text": "void"
121618
121610
  }
121619
121611
  },
121620
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
121612
+ "description": "Opens the sidebar.",
121621
121613
  "inheritedFrom": {
121622
- "name": "SbbFormAssociatedMixin",
121623
- "module": "core/mixins/form-associated-mixin.js"
121614
+ "name": "SbbOpenCloseBaseElement",
121615
+ "module": "core/base-elements/open-close-base-element.js"
121624
121616
  }
121625
121617
  },
121626
121618
  {
121627
121619
  "kind": "method",
121628
- "name": "reportValidity",
121629
- "privacy": "public",
121620
+ "name": "_isZeroAnimationDuration",
121621
+ "privacy": "private",
121630
121622
  "return": {
121631
121623
  "type": {
121632
121624
  "text": "boolean"
121633
121625
  }
121634
- },
121635
- "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.",
121636
- "inheritedFrom": {
121637
- "name": "SbbFormAssociatedMixin",
121638
- "module": "core/mixins/form-associated-mixin.js"
121639
121626
  }
121640
121627
  },
121641
121628
  {
121642
121629
  "kind": "method",
121643
- "name": "setCustomValidity",
121630
+ "name": "_handleOpening",
121631
+ "privacy": "private",
121632
+ "return": {
121633
+ "type": {
121634
+ "text": "void"
121635
+ }
121636
+ }
121637
+ },
121638
+ {
121639
+ "kind": "method",
121640
+ "name": "close",
121644
121641
  "privacy": "public",
121645
121642
  "return": {
121646
121643
  "type": {
121647
121644
  "text": "void"
121648
121645
  }
121649
121646
  },
121650
- "parameters": [
121651
- {
121652
- "name": "message",
121653
- "type": {
121654
- "text": "string"
121655
- }
121656
- }
121657
- ],
121658
- "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.",
121647
+ "description": "Closes the sidebar.",
121659
121648
  "inheritedFrom": {
121660
- "name": "SbbFormAssociatedMixin",
121661
- "module": "core/mixins/form-associated-mixin.js"
121649
+ "name": "SbbOpenCloseBaseElement",
121650
+ "module": "core/base-elements/open-close-base-element.js"
121662
121651
  }
121663
121652
  },
121664
121653
  {
121665
121654
  "kind": "method",
121666
- "name": "_hasDisabledAncestor",
121655
+ "name": "_handleClosing",
121667
121656
  "privacy": "private",
121668
121657
  "return": {
121669
121658
  "type": {
121670
- "text": "boolean"
121659
+ "text": "void"
121671
121660
  }
121672
- },
121673
- "inheritedFrom": {
121674
- "name": "SbbFormAssociatedMixin",
121675
- "module": "core/mixins/form-associated-mixin.js"
121676
121661
  }
121677
121662
  },
121678
121663
  {
121679
121664
  "kind": "method",
121680
- "name": "updateFormValue",
121681
- "privacy": "protected",
121665
+ "name": "_takeFocus",
121666
+ "privacy": "private",
121682
121667
  "return": {
121683
121668
  "type": {
121684
121669
  "text": "void"
121685
121670
  }
121686
- },
121687
- "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",
121688
- "inheritedFrom": {
121689
- "name": "SbbFormAssociatedMixin",
121690
- "module": "core/mixins/form-associated-mixin.js"
121691
121671
  }
121692
121672
  },
121693
121673
  {
121694
121674
  "kind": "method",
121695
- "name": "formState",
121675
+ "name": "cedeFocus",
121696
121676
  "privacy": "protected",
121697
121677
  "return": {
121698
121678
  "type": {
121699
- "text": "FormRestoreState"
121679
+ "text": "void"
121700
121680
  }
121701
- },
121702
- "inheritedFrom": {
121703
- "name": "SbbFormAssociatedMixin",
121704
- "module": "core/mixins/form-associated-mixin.js"
121705
121681
  }
121706
121682
  },
121707
121683
  {
121708
121684
  "kind": "method",
121709
- "name": "setValidityFlag",
121710
- "privacy": "protected",
121685
+ "name": "_updateSidebarWidth",
121686
+ "privacy": "private",
121711
121687
  "return": {
121712
121688
  "type": {
121713
121689
  "text": "void"
@@ -121715,35 +121691,44 @@
121715
121691
  },
121716
121692
  "parameters": [
121717
121693
  {
121718
- "name": "flag",
121719
- "type": {
121720
- "text": "T"
121721
- }
121722
- },
121723
- {
121724
- "name": "message",
121725
- "type": {
121726
- "text": "string"
121727
- }
121728
- },
121729
- {
121730
- "name": "flagValue",
121694
+ "name": "oldPosition",
121731
121695
  "optional": true,
121732
121696
  "type": {
121733
- "text": "ValidityStateFlags[T]"
121697
+ "text": "this['position']"
121734
121698
  }
121735
121699
  }
121736
- ],
121737
- "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).",
121738
- "inheritedFrom": {
121739
- "name": "SbbFormAssociatedMixin",
121740
- "module": "core/mixins/form-associated-mixin.js"
121700
+ ]
121701
+ },
121702
+ {
121703
+ "kind": "method",
121704
+ "name": "_buildCssWidthVar",
121705
+ "privacy": "private",
121706
+ "return": {
121707
+ "type": {
121708
+ "text": "string"
121709
+ }
121710
+ },
121711
+ "parameters": [
121712
+ {
121713
+ "name": "position",
121714
+ "default": "this.position"
121715
+ }
121716
+ ]
121717
+ },
121718
+ {
121719
+ "kind": "method",
121720
+ "name": "_isModeOver",
121721
+ "privacy": "private",
121722
+ "return": {
121723
+ "type": {
121724
+ "text": "boolean"
121725
+ }
121741
121726
  }
121742
121727
  },
121743
121728
  {
121744
121729
  "kind": "method",
121745
- "name": "removeValidityFlag",
121746
- "privacy": "protected",
121730
+ "name": "_onTransitionEnd",
121731
+ "privacy": "private",
121747
121732
  "return": {
121748
121733
  "type": {
121749
121734
  "text": "void"
@@ -121751,173 +121736,230 @@
121751
121736
  },
121752
121737
  "parameters": [
121753
121738
  {
121754
- "name": "flag",
121739
+ "name": "event",
121755
121740
  "type": {
121756
- "text": "T"
121741
+ "text": "TransitionEvent"
121757
121742
  }
121758
121743
  }
121759
- ],
121760
- "description": "Removes the validity state flag entry and updates validity state.",
121744
+ ]
121745
+ },
121746
+ {
121747
+ "kind": "method",
121748
+ "name": "_detectScrolledState",
121749
+ "privacy": "private",
121750
+ "return": {
121751
+ "type": {
121752
+ "text": "void"
121753
+ }
121754
+ }
121755
+ },
121756
+ {
121757
+ "kind": "field",
121758
+ "name": "isAnimating",
121759
+ "type": {
121760
+ "text": "boolean"
121761
+ },
121762
+ "privacy": "public",
121763
+ "default": "false",
121764
+ "description": "Whether the component is currently animating.",
121761
121765
  "inheritedFrom": {
121762
- "name": "SbbFormAssociatedMixin",
121763
- "module": "core/mixins/form-associated-mixin.js"
121766
+ "name": "SbbAnimationCompleteMixin",
121767
+ "module": "core/mixins/animation-complete-mixin.js"
121768
+ }
121769
+ },
121770
+ {
121771
+ "kind": "field",
121772
+ "name": "animationComplete",
121773
+ "type": {
121774
+ "text": "Promise<void>"
121775
+ },
121776
+ "privacy": "public",
121777
+ "description": "Returns a promise which completes whenever an animation ends.\nWhen a new animation starts, a new Promise is returned.",
121778
+ "readonly": true,
121779
+ "inheritedFrom": {
121780
+ "name": "SbbAnimationCompleteMixin",
121781
+ "module": "core/mixins/animation-complete-mixin.js"
121782
+ }
121783
+ },
121784
+ {
121785
+ "kind": "field",
121786
+ "name": "_animationPromise",
121787
+ "type": {
121788
+ "text": "Promise<void>"
121789
+ },
121790
+ "privacy": "private",
121791
+ "inheritedFrom": {
121792
+ "name": "SbbAnimationCompleteMixin",
121793
+ "module": "core/mixins/animation-complete-mixin.js"
121764
121794
  }
121765
121795
  },
121766
121796
  {
121767
121797
  "kind": "method",
121768
- "name": "validate",
121798
+ "name": "startAnimation",
121769
121799
  "privacy": "protected",
121770
121800
  "return": {
121771
121801
  "type": {
121772
121802
  "text": "void"
121773
121803
  }
121774
121804
  },
121775
- "description": "To be called whenever the current element needs to be validated.",
121776
121805
  "inheritedFrom": {
121777
- "name": "SbbFormAssociatedMixin",
121778
- "module": "core/mixins/form-associated-mixin.js"
121806
+ "name": "SbbAnimationCompleteMixin",
121807
+ "module": "core/mixins/animation-complete-mixin.js"
121779
121808
  }
121780
121809
  },
121781
121810
  {
121782
121811
  "kind": "method",
121783
- "name": "shouldValidate",
121812
+ "name": "stopAnimation",
121784
121813
  "privacy": "protected",
121785
121814
  "return": {
121786
121815
  "type": {
121787
- "text": "boolean"
121816
+ "text": "void"
121788
121817
  }
121789
121818
  },
121790
- "parameters": [
121791
- {
121792
- "name": "name",
121793
- "type": {
121794
- "text": "PropertyKey | undefined"
121795
- }
121796
- }
121797
- ],
121798
- "description": "Whether validation should be run on a property change with the given name.",
121819
+ "description": "Overriding stopAnimation() breaks functionality.",
121799
121820
  "inheritedFrom": {
121800
- "name": "SbbFormAssociatedMixin",
121801
- "module": "core/mixins/form-associated-mixin.js"
121821
+ "name": "SbbAnimationCompleteMixin",
121822
+ "module": "core/mixins/animation-complete-mixin.js"
121802
121823
  }
121803
121824
  },
121804
121825
  {
121805
121826
  "kind": "method",
121806
- "name": "_setInternalValidity",
121827
+ "name": "_enqueueAnimation",
121807
121828
  "privacy": "private",
121808
121829
  "return": {
121809
121830
  "type": {
121810
- "text": "void"
121831
+ "text": "Promise<void>"
121811
121832
  }
121812
121833
  },
121813
121834
  "inheritedFrom": {
121814
- "name": "SbbFormAssociatedMixin",
121815
- "module": "core/mixins/form-associated-mixin.js"
121835
+ "name": "SbbAnimationCompleteMixin",
121836
+ "module": "core/mixins/animation-complete-mixin.js"
121837
+ }
121838
+ },
121839
+ {
121840
+ "kind": "field",
121841
+ "name": "events",
121842
+ "privacy": "public",
121843
+ "static": true,
121844
+ "readonly": true,
121845
+ "default": "{ beforeopen: 'beforeopen', open: 'open', beforeclose: 'beforeclose', close: 'close', }",
121846
+ "type": {
121847
+ "text": "{\n beforeopen: 'beforeopen',\n open: 'open',\n beforeclose: 'beforeclose',\n close: 'close',\n }"
121848
+ },
121849
+ "inheritedFrom": {
121850
+ "name": "SbbOpenCloseBaseElement",
121851
+ "module": "core/base-elements/open-close-base-element.js"
121816
121852
  }
121817
121853
  },
121818
121854
  {
121819
121855
  "kind": "field",
121820
- "name": "role",
121856
+ "name": "state",
121857
+ "privacy": "protected",
121858
+ "description": "The state of the component.",
121821
121859
  "type": {
121822
- "text": "ElementInternals['role']"
121860
+ "text": "SbbOpenedClosedState"
121823
121861
  },
121824
- "privacy": "public",
121825
- "static": true,
121826
- "readonly": true,
121827
- "default": "'button'",
121862
+ "default": "'closed'",
121828
121863
  "inheritedFrom": {
121829
- "name": "SbbButtonLikeBaseElement",
121830
- "module": "core/base-elements/button-base-element.js"
121864
+ "name": "SbbOpenCloseBaseElement",
121865
+ "module": "core/base-elements/open-close-base-element.js"
121831
121866
  }
121832
121867
  },
121833
121868
  {
121834
121869
  "kind": "field",
121835
- "name": "_preventScrollOnSpaceKeydown",
121870
+ "name": "_state",
121871
+ "type": {
121872
+ "text": "SbbOpenedClosedState"
121873
+ },
121836
121874
  "privacy": "private",
121837
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
121838
- "parameters": [
121839
- {
121840
- "description": "The origin event.",
121841
- "name": "event"
121842
- }
121843
- ],
121844
121875
  "inheritedFrom": {
121845
- "name": "SbbButtonLikeBaseElement",
121846
- "module": "core/base-elements/button-base-element.js"
121876
+ "name": "SbbOpenCloseBaseElement",
121877
+ "module": "core/base-elements/open-close-base-element.js"
121847
121878
  }
121848
121879
  },
121849
121880
  {
121850
121881
  "kind": "field",
121851
- "name": "_removeActiveMarker",
121852
- "privacy": "private",
121882
+ "name": "isOpen",
121883
+ "type": {
121884
+ "text": "boolean"
121885
+ },
121886
+ "privacy": "public",
121887
+ "description": "Whether the element is open.",
121888
+ "readonly": true,
121853
121889
  "inheritedFrom": {
121854
- "name": "SbbButtonLikeBaseElement",
121855
- "module": "core/base-elements/button-base-element.js"
121890
+ "name": "SbbOpenCloseBaseElement",
121891
+ "module": "core/base-elements/open-close-base-element.js"
121856
121892
  }
121857
121893
  },
121858
121894
  {
121859
- "kind": "field",
121860
- "name": "_dispatchClickEventOnSpaceKeyup",
121861
- "privacy": "private",
121862
- "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.",
121863
- "parameters": [
121864
- {
121865
- "description": "The origin event.",
121866
- "name": "event"
121895
+ "kind": "method",
121896
+ "name": "escapeStrategy",
121897
+ "privacy": "public",
121898
+ "return": {
121899
+ "type": {
121900
+ "text": "void"
121867
121901
  }
121868
- ],
121902
+ },
121903
+ "description": "The method which is called on escape key press. Defaults to calling close()",
121869
121904
  "inheritedFrom": {
121870
- "name": "SbbButtonLikeBaseElement",
121871
- "module": "core/base-elements/button-base-element.js"
121905
+ "name": "SbbOpenCloseBaseElement",
121906
+ "module": "core/base-elements/open-close-base-element.js"
121872
121907
  }
121873
121908
  },
121874
121909
  {
121875
- "kind": "field",
121876
- "name": "_dispatchClickEvent",
121877
- "privacy": "private",
121910
+ "kind": "method",
121911
+ "name": "dispatchBeforeOpenEvent",
121912
+ "privacy": "protected",
121913
+ "return": {
121914
+ "type": {
121915
+ "text": "boolean"
121916
+ }
121917
+ },
121878
121918
  "inheritedFrom": {
121879
- "name": "SbbButtonLikeBaseElement",
121880
- "module": "core/base-elements/button-base-element.js"
121919
+ "name": "SbbOpenCloseBaseElement",
121920
+ "module": "core/base-elements/open-close-base-element.js"
121881
121921
  }
121882
121922
  },
121883
121923
  {
121884
- "kind": "field",
121885
- "name": "maybeDisabled",
121886
- "type": {
121887
- "text": "boolean | undefined"
121888
- },
121924
+ "kind": "method",
121925
+ "name": "dispatchOpenEvent",
121889
121926
  "privacy": "protected",
121890
- "readonly": true,
121927
+ "return": {
121928
+ "type": {
121929
+ "text": "boolean"
121930
+ }
121931
+ },
121891
121932
  "inheritedFrom": {
121892
- "name": "SbbActionBaseElement",
121893
- "module": "core/base-elements/action-base-element.js"
121933
+ "name": "SbbOpenCloseBaseElement",
121934
+ "module": "core/base-elements/open-close-base-element.js"
121894
121935
  }
121895
121936
  },
121896
121937
  {
121897
- "kind": "field",
121898
- "name": "maybeDisabledInteractive",
121899
- "type": {
121900
- "text": "boolean | undefined"
121901
- },
121938
+ "kind": "method",
121939
+ "name": "dispatchBeforeCloseEvent",
121902
121940
  "privacy": "protected",
121903
- "readonly": true,
121941
+ "return": {
121942
+ "type": {
121943
+ "text": "boolean"
121944
+ }
121945
+ },
121904
121946
  "inheritedFrom": {
121905
- "name": "SbbActionBaseElement",
121906
- "module": "core/base-elements/action-base-element.js"
121947
+ "name": "SbbOpenCloseBaseElement",
121948
+ "module": "core/base-elements/open-close-base-element.js"
121907
121949
  }
121908
121950
  },
121909
121951
  {
121910
121952
  "kind": "method",
121911
- "name": "setupBaseEventHandlers",
121953
+ "name": "dispatchCloseEvent",
121912
121954
  "privacy": "protected",
121913
121955
  "return": {
121914
121956
  "type": {
121915
- "text": "void"
121957
+ "text": "boolean"
121916
121958
  }
121917
121959
  },
121918
121960
  "inheritedFrom": {
121919
- "name": "SbbActionBaseElement",
121920
- "module": "core/base-elements/action-base-element.js"
121961
+ "name": "SbbOpenCloseBaseElement",
121962
+ "module": "core/base-elements/open-close-base-element.js"
121921
121963
  }
121922
121964
  },
121923
121965
  {
@@ -122026,150 +122068,108 @@
122026
122068
  }
122027
122069
  }
122028
122070
  ],
122029
- "superclass": {
122030
- "name": "SbbSecondaryButtonElement",
122031
- "module": "button.pure.js"
122032
- },
122033
- "tagName": "sbb-sidebar-close-button",
122034
- "customElement": true,
122035
122071
  "attributes": [
122036
122072
  {
122037
- "name": "size",
122038
- "type": {
122039
- "text": "SbbButtonSize"
122040
- },
122041
- "description": "Size variant, either l, m or s.",
122042
- "default": "'l' / 's' (lean)",
122043
- "fieldName": "size",
122044
- "inheritedFrom": {
122045
- "name": "SbbButtonCommonElementMixin",
122046
- "module": "button/common/button-common.js"
122047
- }
122048
- },
122049
- {
122050
- "name": "loading",
122073
+ "name": "color",
122051
122074
  "type": {
122052
- "text": "boolean"
122075
+ "text": "'white' | 'milk'"
122053
122076
  },
122054
- "default": "false",
122055
- "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.",
122056
- "fieldName": "loading",
122057
- "inheritedFrom": {
122058
- "name": "SbbButtonCommonElementMixin",
122059
- "module": "button/common/button-common.js"
122060
- }
122077
+ "default": "'white'",
122078
+ "description": "Background color of the sidebar. Either `white` or `milk`.",
122079
+ "fieldName": "color"
122061
122080
  },
122062
122081
  {
122063
- "name": "negative",
122082
+ "name": "mode",
122064
122083
  "type": {
122065
- "text": "boolean"
122084
+ "text": "'side' | 'over'"
122066
122085
  },
122067
- "default": "false",
122068
- "description": "Negative coloring variant flag.",
122069
- "fieldName": "negative",
122070
- "inheritedFrom": {
122071
- "name": "SbbNegativeMixin",
122072
- "module": "core/mixins/negative-mixin.js"
122073
- }
122086
+ "default": "'side'",
122087
+ "description": "Mode of the sidebar; one of 'side' or 'over'.",
122088
+ "fieldName": "mode"
122074
122089
  },
122075
122090
  {
122076
- "name": "icon-name",
122091
+ "name": "position",
122077
122092
  "type": {
122078
- "text": "string"
122093
+ "text": "'start' | 'end'"
122079
122094
  },
122080
- "default": "''",
122081
- "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.",
122082
- "fieldName": "iconName",
122083
- "inheritedFrom": {
122084
- "name": "SbbIconNameMixin",
122085
- "module": "icon/icon-name-mixin.js"
122086
- }
122095
+ "default": "'start'",
122096
+ "description": "The side that the sidebar is attached to.",
122097
+ "fieldName": "position"
122087
122098
  },
122088
122099
  {
122089
- "name": "disabled-interactive",
122100
+ "name": "opened",
122090
122101
  "type": {
122091
122102
  "text": "boolean"
122092
122103
  },
122093
122104
  "default": "false",
122094
- "description": "Whether the button should be aria-disabled but stay interactive.",
122095
- "fieldName": "disabledInteractive",
122096
- "inheritedFrom": {
122097
- "name": "SbbDisabledInteractiveMixin",
122098
- "module": "core/mixins/disabled-mixin.js"
122099
- }
122105
+ "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
122106
+ "fieldName": "opened"
122100
122107
  },
122101
122108
  {
122102
- "name": "disabled",
122103
- "description": "Whether the component is disabled.",
122104
- "default": "false",
122109
+ "name": "focus-on-open",
122105
122110
  "type": {
122106
122111
  "text": "boolean"
122107
122112
  },
122108
- "fieldName": "disabled",
122109
- "inheritedFrom": {
122110
- "name": "SbbDisabledMixin",
122111
- "module": "core/mixins/disabled-mixin.js"
122112
- }
122113
- },
122113
+ "default": "false",
122114
+ "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.",
122115
+ "fieldName": "focusOnOpen"
122116
+ }
122117
+ ],
122118
+ "mixins": [
122114
122119
  {
122115
- "name": "value",
122120
+ "name": "SbbAnimationCompleteMixin",
122121
+ "module": "core/mixins.js"
122122
+ }
122123
+ ],
122124
+ "superclass": {
122125
+ "name": "SbbOpenCloseBaseElement",
122126
+ "module": "core/base-elements.js"
122127
+ },
122128
+ "tagName": "sbb-sidebar",
122129
+ "customElement": true,
122130
+ "events": [
122131
+ {
122132
+ "name": "beforeopen",
122116
122133
  "type": {
122117
- "text": "string"
122134
+ "text": "Event"
122118
122135
  },
122119
- "default": "''",
122120
- "description": "Value of the form element.",
122121
- "fieldName": "value",
122136
+ "description": "Emits whenever the component starts the opening transition. Can be canceled.",
122122
122137
  "inheritedFrom": {
122123
- "name": "SbbButtonBaseElement",
122124
- "module": "core/base-elements/button-base-element.js"
122138
+ "name": "SbbOpenCloseBaseElement",
122139
+ "module": "core/base-elements/open-close-base-element.js"
122125
122140
  }
122126
122141
  },
122127
122142
  {
122128
- "name": "type",
122129
- "description": "The type attribute to use for the button.",
122130
- "default": "'button'",
122143
+ "name": "open",
122131
122144
  "type": {
122132
- "text": "SbbButtonType"
122145
+ "text": "Event"
122133
122146
  },
122134
- "fieldName": "type",
122147
+ "description": "Emits whenever the component is opened.",
122135
122148
  "inheritedFrom": {
122136
- "name": "SbbButtonBaseElement",
122137
- "module": "core/base-elements/button-base-element.js"
122149
+ "name": "SbbOpenCloseBaseElement",
122150
+ "module": "core/base-elements/open-close-base-element.js"
122138
122151
  }
122139
122152
  },
122140
122153
  {
122141
- "name": "form",
122142
- "description": "The `<form>` element to associate the button with.",
122154
+ "name": "beforeclose",
122143
122155
  "type": {
122144
- "text": "HTMLFormElement | null"
122156
+ "text": "Event"
122145
122157
  },
122146
- "fieldName": "form",
122158
+ "description": "Emits whenever the component begins the closing transition. Can be canceled.",
122147
122159
  "inheritedFrom": {
122148
- "name": "SbbButtonBaseElement",
122149
- "module": "core/base-elements/button-base-element.js"
122160
+ "name": "SbbOpenCloseBaseElement",
122161
+ "module": "core/base-elements/open-close-base-element.js"
122150
122162
  }
122151
122163
  },
122152
122164
  {
122153
- "name": "name",
122154
- "description": "Name of the form element. Will be read from name attribute.",
122165
+ "name": "close",
122155
122166
  "type": {
122156
- "text": "string"
122167
+ "text": "Event"
122157
122168
  },
122158
- "fieldName": "name",
122159
- "inheritedFrom": {
122160
- "name": "SbbFormAssociatedMixin",
122161
- "module": "core/mixins/form-associated-mixin.js"
122162
- }
122163
- }
122164
- ],
122165
- "cssProperties": [
122166
- {
122167
- "description": "The delay before the loading animation starts, when setting the button into loading state.",
122168
- "name": "--sbb-button-loading-delay",
122169
- "default": "300ms",
122169
+ "description": "Emits whenever the component is closed.",
122170
122170
  "inheritedFrom": {
122171
- "name": "SbbSecondaryButtonElement",
122172
- "module": "button/secondary-button/secondary-button.component.js"
122171
+ "name": "SbbOpenCloseBaseElement",
122172
+ "module": "core/base-elements/open-close-base-element.js"
122173
122173
  }
122174
122174
  }
122175
122175
  ]
@@ -122178,10 +122178,10 @@
122178
122178
  "exports": [
122179
122179
  {
122180
122180
  "kind": "js",
122181
- "name": "SbbSidebarCloseButtonElement",
122181
+ "name": "SbbSidebarElement",
122182
122182
  "declaration": {
122183
- "name": "SbbSidebarCloseButtonElement",
122184
- "module": "sidebar/sidebar-close-button/sidebar-close-button.component.js"
122183
+ "name": "SbbSidebarElement",
122184
+ "module": "sidebar/sidebar/sidebar.component.js"
122185
122185
  }
122186
122186
  }
122187
122187
  ]
@@ -132653,247 +132653,45 @@
132653
132653
  "description": "Renders list and list slots for slotted children or a number of list slots\ncorresponding to the `data-ssr-child-count` attribute value.\n\nThis is a possible optimization for SSR, as in an SSR Lit environment\nother elements are not available, but might be available in the meta\nframework wrapper (like e.g. React). This allows to provide the number of\nchildren to be passed via the `data-ssr-child-count` attribute value.",
132654
132654
  "inheritedFrom": {
132655
132655
  "name": "SbbNamedSlotListMixin",
132656
- "module": "core/mixins/named-slot-list-mixin.js"
132657
- }
132658
- },
132659
- {
132660
- "kind": "method",
132661
- "name": "listSlotEntries",
132662
- "privacy": "protected",
132663
- "return": {
132664
- "type": {
132665
- "text": "SbbNamedSlotProperties[]"
132666
- }
132667
- },
132668
- "parameters": [
132669
- {
132670
- "name": "listItemAttributes",
132671
- "type": {
132672
- "text": "{\n localNameVisualOnly?: string[];\n }"
132673
- }
132674
- }
132675
- ],
132676
- "description": "Returns an array of SbbNamedSlotProperties, which holds the list slot names and the hidden property;\nits length corresponds to the number of matched children or the `data-ssr-child-count` attribute value.\n\nThis is a possible optimization for SSR, as in an SSR Lit environment\nother elements are not available, but might be available in the meta\nframework wrapper (like e.g. React). This allows to provide the number of\nchildren to be passed via the `data-ssr-child-count` attribute value.",
132677
- "inheritedFrom": {
132678
- "name": "SbbNamedSlotListMixin",
132679
- "module": "core/mixins/named-slot-list-mixin.js"
132680
- }
132681
- },
132682
- {
132683
- "kind": "method",
132684
- "name": "renderHiddenSlot",
132685
- "privacy": "protected",
132686
- "return": {
132687
- "type": {
132688
- "text": "TemplateResult"
132689
- }
132690
- },
132691
- "description": "Returns a hidden slot, which is intended as the children change detection.\nWhen an element without a slot attribute is slotted to the element, it triggers\nthe slotchange event, which can be used to assign it to the appropriate named slot.",
132692
- "inheritedFrom": {
132693
- "name": "SbbNamedSlotListMixin",
132694
- "module": "core/mixins/named-slot-list-mixin.js"
132695
- }
132696
- },
132697
- {
132698
- "kind": "field",
132699
- "name": "_hydrationRequired",
132700
- "type": {
132701
- "text": "boolean"
132702
- },
132703
- "privacy": "private",
132704
- "default": "!!this.shadowRoot",
132705
- "inheritedFrom": {
132706
- "name": "SbbElement",
132707
- "module": "core/base-elements/element.js"
132708
- }
132709
- },
132710
- {
132711
- "kind": "field",
132712
- "name": "_hydrationComplete",
132713
- "privacy": "private",
132714
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
132715
- "inheritedFrom": {
132716
- "name": "SbbElement",
132717
- "module": "core/base-elements/element.js"
132718
- }
132719
- },
132720
- {
132721
- "kind": "field",
132722
- "name": "_resolveHydration",
132723
- "type": {
132724
- "text": "(hydrationRequired: boolean) => void"
132725
- },
132726
- "privacy": "private",
132727
- "inheritedFrom": {
132728
- "name": "SbbElement",
132729
- "module": "core/base-elements/element.js"
132730
- }
132731
- },
132732
- {
132733
- "kind": "field",
132734
- "name": "hydrationRequired",
132735
- "type": {
132736
- "text": "boolean"
132737
- },
132738
- "privacy": "protected",
132739
- "description": "Returns whether hydration is required and not completed.",
132740
- "readonly": true,
132741
- "inheritedFrom": {
132742
- "name": "SbbElement",
132743
- "module": "core/base-elements/element.js"
132744
- },
132745
- "default": "!!this.shadowRoot"
132746
- },
132747
- {
132748
- "kind": "method",
132749
- "name": "toggleState",
132750
- "privacy": "protected",
132751
- "return": {
132752
- "type": {
132753
- "text": "void"
132754
- }
132755
- },
132756
- "parameters": [
132757
- {
132758
- "name": "value",
132759
- "type": {
132760
- "text": "string"
132761
- }
132762
- },
132763
- {
132764
- "name": "force",
132765
- "optional": true,
132766
- "type": {
132767
- "text": "boolean"
132768
- }
132769
- }
132770
- ],
132771
- "inheritedFrom": {
132772
- "name": "SbbElement",
132773
- "module": "core/base-elements/element.js"
132774
- }
132775
- },
132776
- {
132777
- "kind": "field",
132778
- "name": "['_$sbbElement$']",
132779
- "type": {
132780
- "text": "boolean"
132781
- },
132782
- "privacy": "public",
132783
- "static": true,
132784
- "default": "true",
132785
- "inheritedFrom": {
132786
- "name": "SbbElement",
132787
- "module": "core/base-elements/element.js"
132788
- }
132789
- },
132790
- {
132791
- "kind": "field",
132792
- "name": "_controllers",
132793
- "type": {
132794
- "text": "Set<SbbReactiveController> | undefined"
132795
- },
132796
- "privacy": "private",
132797
- "inheritedFrom": {
132798
- "name": "SbbElement",
132799
- "module": "core/base-elements/element.js"
132800
- }
132801
- }
132802
- ],
132803
- "attributes": [
132804
- {
132805
- "name": "direction-label",
132806
- "type": {
132807
- "text": "string"
132808
- },
132809
- "default": "''",
132810
- "description": "General label for \"driving direction\".",
132811
- "fieldName": "directionLabel"
132812
- },
132813
- {
132814
- "name": "direction-label-level",
132815
- "type": {
132816
- "text": "SbbTitleLevel"
132817
- },
132818
- "default": "'6'",
132819
- "description": "Heading level of the direction label, used for screen readers.",
132820
- "fieldName": "directionLabelLevel"
132821
- },
132822
- {
132823
- "name": "station",
132824
- "type": {
132825
- "text": "string"
132826
- },
132827
- "default": "''",
132828
- "description": "Label for the destination station of the train.",
132829
- "fieldName": "station"
132830
- },
132831
- {
132832
- "name": "accessibility-label",
132833
- "type": {
132834
- "text": "string"
132835
- },
132836
- "default": "''",
132837
- "description": "Accessibility label for additional information regarding the leaving direction of the train.",
132838
- "fieldName": "accessibilityLabel"
132839
- },
132840
- {
132841
- "name": "direction",
132842
- "type": {
132843
- "text": "'left' | 'right'"
132844
- },
132845
- "default": "'left'",
132846
- "description": "Controls the direction indicator to show the arrow left or right. Default is left.",
132847
- "fieldName": "direction"
132848
- }
132849
- ],
132850
- "mixins": [
132851
- {
132852
- "name": "SbbNamedSlotListMixin",
132853
- "module": "core/mixins.js"
132854
- }
132855
- ],
132856
- "superclass": {
132857
- "name": "SbbElement",
132858
- "module": "core/base-elements.js"
132859
- },
132860
- "tagName": "sbb-train",
132861
- "customElement": true
132862
- }
132863
- ],
132864
- "exports": [
132865
- {
132866
- "kind": "js",
132867
- "name": "SbbTrainElement",
132868
- "declaration": {
132869
- "name": "SbbTrainElement",
132870
- "module": "train/train/train.component.js"
132871
- }
132872
- }
132873
- ]
132874
- },
132875
- {
132876
- "kind": "javascript-module",
132877
- "path": "train/train-blocked-passage/train-blocked-passage.component.js",
132878
- "declarations": [
132879
- {
132880
- "kind": "class",
132881
- "description": "It visually displays a blocked passage between train wagons.",
132882
- "name": "SbbTrainBlockedPassageElement",
132883
- "members": [
132656
+ "module": "core/mixins/named-slot-list-mixin.js"
132657
+ }
132658
+ },
132884
132659
  {
132885
- "kind": "field",
132886
- "name": "elementName",
132887
- "type": {
132888
- "text": "string"
132660
+ "kind": "method",
132661
+ "name": "listSlotEntries",
132662
+ "privacy": "protected",
132663
+ "return": {
132664
+ "type": {
132665
+ "text": "SbbNamedSlotProperties[]"
132666
+ }
132889
132667
  },
132890
- "privacy": "public",
132891
- "static": true,
132892
- "readonly": true,
132893
- "default": "'sbb-train-blocked-passage'",
132668
+ "parameters": [
132669
+ {
132670
+ "name": "listItemAttributes",
132671
+ "type": {
132672
+ "text": "{\n localNameVisualOnly?: string[];\n }"
132673
+ }
132674
+ }
132675
+ ],
132676
+ "description": "Returns an array of SbbNamedSlotProperties, which holds the list slot names and the hidden property;\nits length corresponds to the number of matched children or the `data-ssr-child-count` attribute value.\n\nThis is a possible optimization for SSR, as in an SSR Lit environment\nother elements are not available, but might be available in the meta\nframework wrapper (like e.g. React). This allows to provide the number of\nchildren to be passed via the `data-ssr-child-count` attribute value.",
132894
132677
  "inheritedFrom": {
132895
- "name": "SbbElement",
132896
- "module": "core/base-elements/element.js"
132678
+ "name": "SbbNamedSlotListMixin",
132679
+ "module": "core/mixins/named-slot-list-mixin.js"
132680
+ }
132681
+ },
132682
+ {
132683
+ "kind": "method",
132684
+ "name": "renderHiddenSlot",
132685
+ "privacy": "protected",
132686
+ "return": {
132687
+ "type": {
132688
+ "text": "TemplateResult"
132689
+ }
132690
+ },
132691
+ "description": "Returns a hidden slot, which is intended as the children change detection.\nWhen an element without a slot attribute is slotted to the element, it triggers\nthe slotchange event, which can be used to assign it to the appropriate named slot.",
132692
+ "inheritedFrom": {
132693
+ "name": "SbbNamedSlotListMixin",
132694
+ "module": "core/mixins/named-slot-list-mixin.js"
132897
132695
  }
132898
132696
  },
132899
132697
  {
@@ -133002,21 +132800,74 @@
133002
132800
  }
133003
132801
  }
133004
132802
  ],
132803
+ "attributes": [
132804
+ {
132805
+ "name": "direction-label",
132806
+ "type": {
132807
+ "text": "string"
132808
+ },
132809
+ "default": "''",
132810
+ "description": "General label for \"driving direction\".",
132811
+ "fieldName": "directionLabel"
132812
+ },
132813
+ {
132814
+ "name": "direction-label-level",
132815
+ "type": {
132816
+ "text": "SbbTitleLevel"
132817
+ },
132818
+ "default": "'6'",
132819
+ "description": "Heading level of the direction label, used for screen readers.",
132820
+ "fieldName": "directionLabelLevel"
132821
+ },
132822
+ {
132823
+ "name": "station",
132824
+ "type": {
132825
+ "text": "string"
132826
+ },
132827
+ "default": "''",
132828
+ "description": "Label for the destination station of the train.",
132829
+ "fieldName": "station"
132830
+ },
132831
+ {
132832
+ "name": "accessibility-label",
132833
+ "type": {
132834
+ "text": "string"
132835
+ },
132836
+ "default": "''",
132837
+ "description": "Accessibility label for additional information regarding the leaving direction of the train.",
132838
+ "fieldName": "accessibilityLabel"
132839
+ },
132840
+ {
132841
+ "name": "direction",
132842
+ "type": {
132843
+ "text": "'left' | 'right'"
132844
+ },
132845
+ "default": "'left'",
132846
+ "description": "Controls the direction indicator to show the arrow left or right. Default is left.",
132847
+ "fieldName": "direction"
132848
+ }
132849
+ ],
132850
+ "mixins": [
132851
+ {
132852
+ "name": "SbbNamedSlotListMixin",
132853
+ "module": "core/mixins.js"
132854
+ }
132855
+ ],
133005
132856
  "superclass": {
133006
132857
  "name": "SbbElement",
133007
132858
  "module": "core/base-elements.js"
133008
132859
  },
133009
- "tagName": "sbb-train-blocked-passage",
132860
+ "tagName": "sbb-train",
133010
132861
  "customElement": true
133011
132862
  }
133012
132863
  ],
133013
132864
  "exports": [
133014
132865
  {
133015
132866
  "kind": "js",
133016
- "name": "SbbTrainBlockedPassageElement",
132867
+ "name": "SbbTrainElement",
133017
132868
  "declaration": {
133018
- "name": "SbbTrainBlockedPassageElement",
133019
- "module": "train/train-blocked-passage/train-blocked-passage.component.js"
132869
+ "name": "SbbTrainElement",
132870
+ "module": "train/train/train.component.js"
133020
132871
  }
133021
132872
  }
133022
132873
  ]
@@ -133353,6 +133204,155 @@
133353
133204
  }
133354
133205
  ]
133355
133206
  },
133207
+ {
133208
+ "kind": "javascript-module",
133209
+ "path": "train/train-blocked-passage/train-blocked-passage.component.js",
133210
+ "declarations": [
133211
+ {
133212
+ "kind": "class",
133213
+ "description": "It visually displays a blocked passage between train wagons.",
133214
+ "name": "SbbTrainBlockedPassageElement",
133215
+ "members": [
133216
+ {
133217
+ "kind": "field",
133218
+ "name": "elementName",
133219
+ "type": {
133220
+ "text": "string"
133221
+ },
133222
+ "privacy": "public",
133223
+ "static": true,
133224
+ "readonly": true,
133225
+ "default": "'sbb-train-blocked-passage'",
133226
+ "inheritedFrom": {
133227
+ "name": "SbbElement",
133228
+ "module": "core/base-elements/element.js"
133229
+ }
133230
+ },
133231
+ {
133232
+ "kind": "field",
133233
+ "name": "_hydrationRequired",
133234
+ "type": {
133235
+ "text": "boolean"
133236
+ },
133237
+ "privacy": "private",
133238
+ "default": "!!this.shadowRoot",
133239
+ "inheritedFrom": {
133240
+ "name": "SbbElement",
133241
+ "module": "core/base-elements/element.js"
133242
+ }
133243
+ },
133244
+ {
133245
+ "kind": "field",
133246
+ "name": "_hydrationComplete",
133247
+ "privacy": "private",
133248
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
133249
+ "inheritedFrom": {
133250
+ "name": "SbbElement",
133251
+ "module": "core/base-elements/element.js"
133252
+ }
133253
+ },
133254
+ {
133255
+ "kind": "field",
133256
+ "name": "_resolveHydration",
133257
+ "type": {
133258
+ "text": "(hydrationRequired: boolean) => void"
133259
+ },
133260
+ "privacy": "private",
133261
+ "inheritedFrom": {
133262
+ "name": "SbbElement",
133263
+ "module": "core/base-elements/element.js"
133264
+ }
133265
+ },
133266
+ {
133267
+ "kind": "field",
133268
+ "name": "hydrationRequired",
133269
+ "type": {
133270
+ "text": "boolean"
133271
+ },
133272
+ "privacy": "protected",
133273
+ "description": "Returns whether hydration is required and not completed.",
133274
+ "readonly": true,
133275
+ "inheritedFrom": {
133276
+ "name": "SbbElement",
133277
+ "module": "core/base-elements/element.js"
133278
+ },
133279
+ "default": "!!this.shadowRoot"
133280
+ },
133281
+ {
133282
+ "kind": "method",
133283
+ "name": "toggleState",
133284
+ "privacy": "protected",
133285
+ "return": {
133286
+ "type": {
133287
+ "text": "void"
133288
+ }
133289
+ },
133290
+ "parameters": [
133291
+ {
133292
+ "name": "value",
133293
+ "type": {
133294
+ "text": "string"
133295
+ }
133296
+ },
133297
+ {
133298
+ "name": "force",
133299
+ "optional": true,
133300
+ "type": {
133301
+ "text": "boolean"
133302
+ }
133303
+ }
133304
+ ],
133305
+ "inheritedFrom": {
133306
+ "name": "SbbElement",
133307
+ "module": "core/base-elements/element.js"
133308
+ }
133309
+ },
133310
+ {
133311
+ "kind": "field",
133312
+ "name": "['_$sbbElement$']",
133313
+ "type": {
133314
+ "text": "boolean"
133315
+ },
133316
+ "privacy": "public",
133317
+ "static": true,
133318
+ "default": "true",
133319
+ "inheritedFrom": {
133320
+ "name": "SbbElement",
133321
+ "module": "core/base-elements/element.js"
133322
+ }
133323
+ },
133324
+ {
133325
+ "kind": "field",
133326
+ "name": "_controllers",
133327
+ "type": {
133328
+ "text": "Set<SbbReactiveController> | undefined"
133329
+ },
133330
+ "privacy": "private",
133331
+ "inheritedFrom": {
133332
+ "name": "SbbElement",
133333
+ "module": "core/base-elements/element.js"
133334
+ }
133335
+ }
133336
+ ],
133337
+ "superclass": {
133338
+ "name": "SbbElement",
133339
+ "module": "core/base-elements.js"
133340
+ },
133341
+ "tagName": "sbb-train-blocked-passage",
133342
+ "customElement": true
133343
+ }
133344
+ ],
133345
+ "exports": [
133346
+ {
133347
+ "kind": "js",
133348
+ "name": "SbbTrainBlockedPassageElement",
133349
+ "declaration": {
133350
+ "name": "SbbTrainBlockedPassageElement",
133351
+ "module": "train/train-blocked-passage/train-blocked-passage.component.js"
133352
+ }
133353
+ }
133354
+ ]
133355
+ },
133356
133356
  {
133357
133357
  "kind": "javascript-module",
133358
133358
  "path": "train/train-wagon/train-wagon.component.js",