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

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.
@@ -19811,6 +19811,12 @@
19811
19811
  },
19812
19812
  "privacy": "private"
19813
19813
  },
19814
+ {
19815
+ "kind": "field",
19816
+ "name": "_resizeController",
19817
+ "privacy": "private",
19818
+ "default": "new ResizeController(this, { target: null, callback: () => this._setPopoverPosition(), })"
19819
+ },
19814
19820
  {
19815
19821
  "kind": "field",
19816
19822
  "name": "_escapableOverlayController",
@@ -20739,6 +20745,16 @@
20739
20745
  "module": "popover/popover.component.js"
20740
20746
  }
20741
20747
  },
20748
+ {
20749
+ "kind": "field",
20750
+ "name": "_resizeController",
20751
+ "privacy": "private",
20752
+ "default": "new ResizeController(this, { target: null, callback: () => this._setPopoverPosition(), })",
20753
+ "inheritedFrom": {
20754
+ "name": "SbbPopoverBaseElement",
20755
+ "module": "popover/popover.component.js"
20756
+ }
20757
+ },
20742
20758
  {
20743
20759
  "kind": "field",
20744
20760
  "name": "_escapableOverlayController",
@@ -80517,6 +80533,16 @@
80517
80533
  "module": "popover/popover.component.js"
80518
80534
  }
80519
80535
  },
80536
+ {
80537
+ "kind": "field",
80538
+ "name": "_resizeController",
80539
+ "privacy": "private",
80540
+ "default": "new ResizeController(this, { target: null, callback: () => this._setPopoverPosition(), })",
80541
+ "inheritedFrom": {
80542
+ "name": "SbbPopoverBaseElement",
80543
+ "module": "popover/popover.component.js"
80544
+ }
80545
+ },
80520
80546
  {
80521
80547
  "kind": "field",
80522
80548
  "name": "_escapableOverlayController",
@@ -120432,28 +120458,20 @@
120432
120458
  },
120433
120459
  {
120434
120460
  "kind": "javascript-module",
120435
- "path": "sidebar/sidebar-close-button/sidebar-close-button.component.js",
120461
+ "path": "sidebar/sidebar/sidebar.component.js",
120436
120462
  "declarations": [
120437
120463
  {
120438
120464
  "kind": "class",
120439
- "description": "Sidebar close button, intended to be placed inside sbb-sidebar.",
120440
- "name": "SbbSidebarCloseButtonElement",
120465
+ "description": "This component corresponds to a sidebar that can be opened on the sidebar container.",
120466
+ "name": "SbbSidebarElement",
120441
120467
  "slots": [
120442
120468
  {
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
- }
120469
+ "description": "Use the unnamed slot to slot any content into the sidebar.",
120470
+ "name": ""
120449
120471
  },
120450
120472
  {
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
- }
120473
+ "description": "Use the title slot to add an <sbb-title>.",
120474
+ "name": "title"
120457
120475
  }
120458
120476
  ],
120459
120477
  "members": [
@@ -120470,718 +120488,484 @@
120470
120488
  "name": "SbbElement",
120471
120489
  "module": "core/base-elements/element.js"
120472
120490
  },
120473
- "default": "'sbb-sidebar-close-button'"
120491
+ "default": "'sbb-sidebar'"
120474
120492
  },
120475
120493
  {
120476
120494
  "kind": "field",
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
- }
120495
+ "name": "color",
120496
+ "type": {
120497
+ "text": "'white' | 'milk'"
120489
120498
  },
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
- }
120499
+ "privacy": "public",
120500
+ "default": "'white'",
120501
+ "description": "Background color of the sidebar. Either `white` or `milk`.",
120502
+ "attribute": "color",
120503
+ "reflects": true
120495
120504
  },
120496
120505
  {
120497
- "kind": "method",
120498
- "name": "renderIconName",
120499
- "privacy": "protected",
120500
- "return": {
120501
- "type": {
120502
- "text": "string"
120503
- }
120506
+ "kind": "field",
120507
+ "name": "mode",
120508
+ "type": {
120509
+ "text": "'side' | 'over'"
120504
120510
  },
120505
- "inheritedFrom": {
120506
- "name": "SbbIconNameMixin",
120507
- "module": "icon/icon-name-mixin.js"
120508
- }
120511
+ "privacy": "public",
120512
+ "default": "'side'",
120513
+ "description": "Mode of the sidebar; one of 'side' or 'over'.",
120514
+ "attribute": "mode",
120515
+ "reflects": true
120509
120516
  },
120510
120517
  {
120511
120518
  "kind": "field",
120512
- "name": "size",
120519
+ "name": "position",
120513
120520
  "type": {
120514
- "text": "SbbButtonSize"
120521
+ "text": "'start' | 'end'"
120515
120522
  },
120516
120523
  "privacy": "public",
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
- }
120524
+ "default": "'start'",
120525
+ "description": "The side that the sidebar is attached to.",
120526
+ "attribute": "position",
120527
+ "reflects": true
120525
120528
  },
120526
120529
  {
120527
120530
  "kind": "field",
120528
- "name": "loading",
120531
+ "name": "opened",
120529
120532
  "type": {
120530
120533
  "text": "boolean"
120531
120534
  },
120532
120535
  "privacy": "public",
120533
120536
  "default": "false",
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
- }
120537
+ "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
120538
+ "attribute": "opened",
120539
+ "reflects": true
120541
120540
  },
120542
120541
  {
120543
120542
  "kind": "field",
120544
- "name": "negative",
120543
+ "name": "focusOnOpen",
120545
120544
  "type": {
120546
120545
  "text": "boolean"
120547
120546
  },
120548
120547
  "privacy": "public",
120549
120548
  "default": "false",
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
- }
120549
+ "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.",
120550
+ "attribute": "focus-on-open"
120557
120551
  },
120558
120552
  {
120559
120553
  "kind": "field",
120560
- "name": "iconName",
120554
+ "name": "container",
120561
120555
  "type": {
120562
- "text": "string"
120556
+ "text": "SbbSidebarContainerElement | null"
120563
120557
  },
120564
120558
  "privacy": "public",
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
- }
120559
+ "description": "Returns the SbbSidebarContainerElement where this sidebar is contained.",
120560
+ "readonly": true,
120561
+ "default": "null"
120562
+ },
120563
+ {
120564
+ "kind": "field",
120565
+ "name": "_container",
120566
+ "type": {
120567
+ "text": "SbbSidebarContainerElement | null"
120568
+ },
120569
+ "privacy": "private",
120570
+ "default": "null"
120571
+ },
120572
+ {
120573
+ "kind": "field",
120574
+ "name": "_lastFocusedElement",
120575
+ "type": {
120576
+ "text": "HTMLElement | null"
120577
+ },
120578
+ "privacy": "private",
120579
+ "default": "null"
120580
+ },
120581
+ {
120582
+ "kind": "field",
120583
+ "name": "_focusTrapController",
120584
+ "privacy": "private",
120585
+ "default": "new SbbFocusTrapController(this)"
120586
+ },
120587
+ {
120588
+ "kind": "field",
120589
+ "name": "_escapableOverlayController",
120590
+ "privacy": "private",
120591
+ "default": "new SbbEscapableOverlayController(this)"
120592
+ },
120593
+ {
120594
+ "kind": "field",
120595
+ "name": "_closeOnNavigation",
120596
+ "privacy": "private"
120572
120597
  },
120573
120598
  {
120574
120599
  "kind": "method",
120575
- "name": "renderIconSlot",
120576
- "privacy": "protected",
120600
+ "name": "toggle",
120601
+ "privacy": "public",
120577
120602
  "return": {
120578
120603
  "type": {
120579
- "text": "TemplateResult"
120604
+ "text": "void"
120580
120605
  }
120581
120606
  },
120582
- "parameters": [
120583
- {
120584
- "name": "classname",
120585
- "optional": true,
120586
- "type": {
120587
- "text": "string"
120588
- }
120607
+ "description": "Toggles the sidebar visibility."
120608
+ },
120609
+ {
120610
+ "kind": "method",
120611
+ "name": "open",
120612
+ "privacy": "public",
120613
+ "return": {
120614
+ "type": {
120615
+ "text": "void"
120589
120616
  }
120590
- ],
120617
+ },
120618
+ "description": "Opens the sidebar.",
120591
120619
  "inheritedFrom": {
120592
- "name": "SbbIconNameMixin",
120593
- "module": "icon/icon-name-mixin.js"
120620
+ "name": "SbbOpenCloseBaseElement",
120621
+ "module": "core/base-elements/open-close-base-element.js"
120594
120622
  }
120595
120623
  },
120596
120624
  {
120597
120625
  "kind": "method",
120598
- "name": "_renderIconName",
120626
+ "name": "_isZeroAnimationDuration",
120599
120627
  "privacy": "private",
120600
120628
  "return": {
120601
120629
  "type": {
120602
- "text": "string"
120630
+ "text": "boolean"
120603
120631
  }
120604
- },
120605
- "inheritedFrom": {
120606
- "name": "SbbIconNameMixin",
120607
- "module": "icon/icon-name-mixin.js"
120608
120632
  }
120609
120633
  },
120610
120634
  {
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"
120635
+ "kind": "method",
120636
+ "name": "_handleOpening",
120637
+ "privacy": "private",
120638
+ "return": {
120639
+ "type": {
120640
+ "text": "void"
120641
+ }
120624
120642
  }
120625
120643
  },
120626
120644
  {
120627
- "kind": "field",
120628
- "name": "disabled",
120645
+ "kind": "method",
120646
+ "name": "close",
120629
120647
  "privacy": "public",
120630
- "description": "Whether the component is disabled.",
120631
- "default": "false",
120632
- "type": {
120633
- "text": "boolean"
120648
+ "return": {
120649
+ "type": {
120650
+ "text": "void"
120651
+ }
120634
120652
  },
120635
- "attribute": "disabled",
120636
- "reflects": true,
120653
+ "description": "Closes the sidebar.",
120637
120654
  "inheritedFrom": {
120638
- "name": "SbbDisabledMixin",
120639
- "module": "core/mixins/disabled-mixin.js"
120655
+ "name": "SbbOpenCloseBaseElement",
120656
+ "module": "core/base-elements/open-close-base-element.js"
120640
120657
  }
120641
120658
  },
120642
120659
  {
120643
- "kind": "field",
120644
- "name": "#disabled",
120660
+ "kind": "method",
120661
+ "name": "_handleClosing",
120645
120662
  "privacy": "private",
120646
- "type": {
120647
- "text": "boolean"
120648
- },
120649
- "default": "false",
120650
- "inheritedFrom": {
120651
- "name": "SbbDisabledMixin",
120652
- "module": "core/mixins/disabled-mixin.js"
120663
+ "return": {
120664
+ "type": {
120665
+ "text": "void"
120666
+ }
120653
120667
  }
120654
120668
  },
120655
120669
  {
120656
120670
  "kind": "method",
120657
- "name": "isDisabledExternally",
120671
+ "name": "_takeFocus",
120672
+ "privacy": "private",
120673
+ "return": {
120674
+ "type": {
120675
+ "text": "void"
120676
+ }
120677
+ }
120678
+ },
120679
+ {
120680
+ "kind": "method",
120681
+ "name": "cedeFocus",
120658
120682
  "privacy": "protected",
120659
120683
  "return": {
120660
120684
  "type": {
120661
- "text": "boolean"
120685
+ "text": "void"
120662
120686
  }
120663
- },
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
120687
  }
120669
120688
  },
120670
120689
  {
120671
- "kind": "field",
120672
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
120673
- "type": {
120674
- "text": "array"
120690
+ "kind": "method",
120691
+ "name": "_updateSidebarWidth",
120692
+ "privacy": "private",
120693
+ "return": {
120694
+ "type": {
120695
+ "text": "void"
120696
+ }
120675
120697
  },
120698
+ "parameters": [
120699
+ {
120700
+ "name": "oldPosition",
120701
+ "optional": true,
120702
+ "type": {
120703
+ "text": "this['position']"
120704
+ }
120705
+ }
120706
+ ]
120707
+ },
120708
+ {
120709
+ "kind": "method",
120710
+ "name": "_buildCssWidthVar",
120676
120711
  "privacy": "private",
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"
120712
+ "return": {
120713
+ "type": {
120714
+ "text": "string"
120715
+ }
120716
+ },
120717
+ "parameters": [
120718
+ {
120719
+ "name": "position",
120720
+ "default": "this.position"
120721
+ }
120722
+ ]
120723
+ },
120724
+ {
120725
+ "kind": "method",
120726
+ "name": "_isModeOver",
120727
+ "privacy": "private",
120728
+ "return": {
120729
+ "type": {
120730
+ "text": "boolean"
120731
+ }
120682
120732
  }
120683
120733
  },
120684
120734
  {
120685
- "kind": "field",
120686
- "name": "value",
120687
- "type": {
120688
- "text": "string"
120689
- },
120690
- "privacy": "public",
120691
- "inheritedFrom": {
120692
- "name": "SbbButtonBaseElement",
120693
- "module": "core/base-elements/button-base-element.js"
120735
+ "kind": "method",
120736
+ "name": "_onTransitionEnd",
120737
+ "privacy": "private",
120738
+ "return": {
120739
+ "type": {
120740
+ "text": "void"
120741
+ }
120694
120742
  },
120695
- "default": "''",
120696
- "description": "Value of the form element.",
120697
- "attribute": "value"
120743
+ "parameters": [
120744
+ {
120745
+ "name": "event",
120746
+ "type": {
120747
+ "text": "TransitionEvent"
120748
+ }
120749
+ }
120750
+ ]
120751
+ },
120752
+ {
120753
+ "kind": "method",
120754
+ "name": "_detectScrolledState",
120755
+ "privacy": "private",
120756
+ "return": {
120757
+ "type": {
120758
+ "text": "void"
120759
+ }
120760
+ }
120698
120761
  },
120699
120762
  {
120700
120763
  "kind": "field",
120701
- "name": "type",
120702
- "privacy": "public",
120703
- "description": "The type attribute to use for the button.",
120704
- "default": "'button'",
120764
+ "name": "isAnimating",
120705
120765
  "type": {
120706
- "text": "SbbButtonType"
120766
+ "text": "boolean"
120707
120767
  },
120708
- "attribute": "type",
120768
+ "privacy": "public",
120769
+ "default": "false",
120770
+ "description": "Whether the component is currently animating.",
120709
120771
  "inheritedFrom": {
120710
- "name": "SbbButtonBaseElement",
120711
- "module": "core/base-elements/button-base-element.js"
120772
+ "name": "SbbAnimationCompleteMixin",
120773
+ "module": "core/mixins/animation-complete-mixin.js"
120712
120774
  }
120713
120775
  },
120714
120776
  {
120715
120777
  "kind": "field",
120716
- "name": "form",
120778
+ "name": "animationComplete",
120717
120779
  "type": {
120718
- "text": "HTMLFormElement | null"
120780
+ "text": "Promise<void>"
120719
120781
  },
120720
120782
  "privacy": "public",
120721
- "description": "The `<form>` element to associate the button with.",
120783
+ "description": "Returns a promise which completes whenever an animation ends.\nWhen a new animation starts, a new Promise is returned.",
120784
+ "readonly": true,
120722
120785
  "inheritedFrom": {
120723
- "name": "SbbButtonBaseElement",
120724
- "module": "core/base-elements/button-base-element.js"
120725
- },
120726
- "attribute": "form"
120786
+ "name": "SbbAnimationCompleteMixin",
120787
+ "module": "core/mixins/animation-complete-mixin.js"
120788
+ }
120727
120789
  },
120728
120790
  {
120729
120791
  "kind": "field",
120730
- "name": "_formId",
120792
+ "name": "_animationPromise",
120731
120793
  "type": {
120732
- "text": "string"
120794
+ "text": "Promise<void>"
120733
120795
  },
120734
120796
  "privacy": "private",
120735
- "default": "''",
120736
120797
  "inheritedFrom": {
120737
- "name": "SbbButtonBaseElement",
120738
- "module": "core/base-elements/button-base-element.js"
120798
+ "name": "SbbAnimationCompleteMixin",
120799
+ "module": "core/mixins/animation-complete-mixin.js"
120739
120800
  }
120740
120801
  },
120741
120802
  {
120742
- "kind": "field",
120743
- "name": "_handleButtonClick",
120744
- "privacy": "private",
120803
+ "kind": "method",
120804
+ "name": "startAnimation",
120805
+ "privacy": "protected",
120806
+ "return": {
120807
+ "type": {
120808
+ "text": "void"
120809
+ }
120810
+ },
120745
120811
  "inheritedFrom": {
120746
- "name": "SbbButtonBaseElement",
120747
- "module": "core/base-elements/button-base-element.js"
120812
+ "name": "SbbAnimationCompleteMixin",
120813
+ "module": "core/mixins/animation-complete-mixin.js"
120748
120814
  }
120749
120815
  },
120750
120816
  {
120751
120817
  "kind": "method",
120752
- "name": "_requestSubmit",
120753
- "privacy": "private",
120818
+ "name": "stopAnimation",
120819
+ "privacy": "protected",
120754
120820
  "return": {
120755
120821
  "type": {
120756
120822
  "text": "void"
120757
120823
  }
120758
120824
  },
120759
- "parameters": [
120760
- {
120761
- "name": "form",
120762
- "type": {
120763
- "text": "HTMLFormElement"
120764
- }
120765
- }
120766
- ],
120825
+ "description": "Overriding stopAnimation() breaks functionality.",
120767
120826
  "inheritedFrom": {
120768
- "name": "SbbButtonBaseElement",
120769
- "module": "core/base-elements/button-base-element.js"
120827
+ "name": "SbbAnimationCompleteMixin",
120828
+ "module": "core/mixins/animation-complete-mixin.js"
120770
120829
  }
120771
120830
  },
120772
120831
  {
120773
- "kind": "field",
120774
- "name": "_formKeyDown",
120832
+ "kind": "method",
120833
+ "name": "_enqueueAnimation",
120775
120834
  "privacy": "private",
120835
+ "return": {
120836
+ "type": {
120837
+ "text": "Promise<void>"
120838
+ }
120839
+ },
120776
120840
  "inheritedFrom": {
120777
- "name": "SbbButtonBaseElement",
120778
- "module": "core/base-elements/button-base-element.js"
120841
+ "name": "SbbAnimationCompleteMixin",
120842
+ "module": "core/mixins/animation-complete-mixin.js"
120779
120843
  }
120780
120844
  },
120781
120845
  {
120782
120846
  "kind": "field",
120783
- "name": "formAssociated",
120784
- "type": {
120785
- "text": "boolean"
120786
- },
120847
+ "name": "events",
120787
120848
  "privacy": "public",
120788
120849
  "static": true,
120789
- "default": "true",
120850
+ "readonly": true,
120851
+ "default": "{ beforeopen: 'beforeopen', open: 'open', beforeclose: 'beforeclose', close: 'close', }",
120852
+ "type": {
120853
+ "text": "{\n beforeopen: 'beforeopen',\n open: 'open',\n beforeclose: 'beforeclose',\n close: 'close',\n }"
120854
+ },
120790
120855
  "inheritedFrom": {
120791
- "name": "SbbFormAssociatedMixin",
120792
- "module": "core/mixins/form-associated-mixin.js"
120856
+ "name": "SbbOpenCloseBaseElement",
120857
+ "module": "core/base-elements/open-close-base-element.js"
120793
120858
  }
120794
120859
  },
120795
120860
  {
120796
120861
  "kind": "field",
120797
- "name": "name",
120798
- "privacy": "public",
120799
- "description": "Name of the form element. Will be read from name attribute.",
120862
+ "name": "state",
120863
+ "privacy": "protected",
120864
+ "description": "The state of the component.",
120800
120865
  "type": {
120801
- "text": "string"
120866
+ "text": "SbbOpenedClosedState"
120802
120867
  },
120803
- "attribute": "name",
120868
+ "default": "'closed'",
120804
120869
  "inheritedFrom": {
120805
- "name": "SbbFormAssociatedMixin",
120806
- "module": "core/mixins/form-associated-mixin.js"
120870
+ "name": "SbbOpenCloseBaseElement",
120871
+ "module": "core/base-elements/open-close-base-element.js"
120807
120872
  }
120808
120873
  },
120809
120874
  {
120810
120875
  "kind": "field",
120811
- "name": "validity",
120876
+ "name": "_state",
120812
120877
  "type": {
120813
- "text": "ValidityState"
120878
+ "text": "SbbOpenedClosedState"
120814
120879
  },
120815
- "privacy": "public",
120816
- "description": "Returns the ValidityState object for this element.",
120817
- "readonly": true,
120880
+ "privacy": "private",
120818
120881
  "inheritedFrom": {
120819
- "name": "SbbFormAssociatedMixin",
120820
- "module": "core/mixins/form-associated-mixin.js"
120882
+ "name": "SbbOpenCloseBaseElement",
120883
+ "module": "core/base-elements/open-close-base-element.js"
120821
120884
  }
120822
120885
  },
120823
120886
  {
120824
120887
  "kind": "field",
120825
- "name": "validationMessage",
120888
+ "name": "isOpen",
120826
120889
  "type": {
120827
- "text": "string"
120890
+ "text": "boolean"
120828
120891
  },
120829
120892
  "privacy": "public",
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.",
120893
+ "description": "Whether the element is open.",
120831
120894
  "readonly": true,
120832
120895
  "inheritedFrom": {
120833
- "name": "SbbFormAssociatedMixin",
120834
- "module": "core/mixins/form-associated-mixin.js"
120835
- }
120836
- },
120837
- {
120838
- "kind": "field",
120839
- "name": "willValidate",
120840
- "type": {
120841
- "text": "boolean"
120842
- },
120843
- "privacy": "public",
120844
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
120845
- "readonly": true,
120846
- "inheritedFrom": {
120847
- "name": "SbbFormAssociatedMixin",
120848
- "module": "core/mixins/form-associated-mixin.js"
120849
- }
120850
- },
120851
- {
120852
- "kind": "field",
120853
- "name": "_validityStates",
120854
- "privacy": "private",
120855
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
120856
- "inheritedFrom": {
120857
- "name": "SbbFormAssociatedMixin",
120858
- "module": "core/mixins/form-associated-mixin.js"
120859
- }
120860
- },
120861
- {
120862
- "kind": "field",
120863
- "name": "formDisabled",
120864
- "type": {
120865
- "text": "boolean"
120866
- },
120867
- "privacy": "protected",
120868
- "default": "false",
120869
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
120870
- "inheritedFrom": {
120871
- "name": "SbbFormAssociatedMixin",
120872
- "module": "core/mixins/form-associated-mixin.js"
120896
+ "name": "SbbOpenCloseBaseElement",
120897
+ "module": "core/base-elements/open-close-base-element.js"
120873
120898
  }
120874
120899
  },
120875
120900
  {
120876
120901
  "kind": "method",
120877
- "name": "checkValidity",
120878
- "privacy": "public",
120879
- "return": {
120880
- "type": {
120881
- "text": "boolean"
120882
- }
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.",
120885
- "inheritedFrom": {
120886
- "name": "SbbFormAssociatedMixin",
120887
- "module": "core/mixins/form-associated-mixin.js"
120888
- }
120889
- },
120890
- {
120891
- "kind": "method",
120892
- "name": "reportValidity",
120893
- "privacy": "public",
120894
- "return": {
120895
- "type": {
120896
- "text": "boolean"
120897
- }
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.",
120900
- "inheritedFrom": {
120901
- "name": "SbbFormAssociatedMixin",
120902
- "module": "core/mixins/form-associated-mixin.js"
120903
- }
120904
- },
120905
- {
120906
- "kind": "method",
120907
- "name": "setCustomValidity",
120902
+ "name": "escapeStrategy",
120908
120903
  "privacy": "public",
120909
120904
  "return": {
120910
120905
  "type": {
120911
120906
  "text": "void"
120912
120907
  }
120913
120908
  },
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.",
120923
- "inheritedFrom": {
120924
- "name": "SbbFormAssociatedMixin",
120925
- "module": "core/mixins/form-associated-mixin.js"
120926
- }
120927
- },
120928
- {
120929
- "kind": "method",
120930
- "name": "_hasDisabledAncestor",
120931
- "privacy": "private",
120932
- "return": {
120933
- "type": {
120934
- "text": "boolean"
120935
- }
120936
- },
120937
- "inheritedFrom": {
120938
- "name": "SbbFormAssociatedMixin",
120939
- "module": "core/mixins/form-associated-mixin.js"
120940
- }
120941
- },
120942
- {
120943
- "kind": "method",
120944
- "name": "updateFormValue",
120945
- "privacy": "protected",
120946
- "return": {
120947
- "type": {
120948
- "text": "void"
120949
- }
120950
- },
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",
120952
- "inheritedFrom": {
120953
- "name": "SbbFormAssociatedMixin",
120954
- "module": "core/mixins/form-associated-mixin.js"
120955
- }
120956
- },
120957
- {
120958
- "kind": "method",
120959
- "name": "formState",
120960
- "privacy": "protected",
120961
- "return": {
120962
- "type": {
120963
- "text": "FormRestoreState"
120964
- }
120965
- },
120966
- "inheritedFrom": {
120967
- "name": "SbbFormAssociatedMixin",
120968
- "module": "core/mixins/form-associated-mixin.js"
120969
- }
120970
- },
120971
- {
120972
- "kind": "method",
120973
- "name": "setValidityFlag",
120974
- "privacy": "protected",
120975
- "return": {
120976
- "type": {
120977
- "text": "void"
120978
- }
120979
- },
120980
- "parameters": [
120981
- {
120982
- "name": "flag",
120983
- "type": {
120984
- "text": "T"
120985
- }
120986
- },
120987
- {
120988
- "name": "message",
120989
- "type": {
120990
- "text": "string"
120991
- }
120992
- },
120993
- {
120994
- "name": "flagValue",
120995
- "optional": true,
120996
- "type": {
120997
- "text": "ValidityStateFlags[T]"
120998
- }
120999
- }
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).",
120909
+ "description": "The method which is called on escape key press. Defaults to calling close()",
121002
120910
  "inheritedFrom": {
121003
- "name": "SbbFormAssociatedMixin",
121004
- "module": "core/mixins/form-associated-mixin.js"
120911
+ "name": "SbbOpenCloseBaseElement",
120912
+ "module": "core/base-elements/open-close-base-element.js"
121005
120913
  }
121006
120914
  },
121007
120915
  {
121008
120916
  "kind": "method",
121009
- "name": "removeValidityFlag",
120917
+ "name": "dispatchBeforeOpenEvent",
121010
120918
  "privacy": "protected",
121011
120919
  "return": {
121012
120920
  "type": {
121013
- "text": "void"
120921
+ "text": "boolean"
121014
120922
  }
121015
120923
  },
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.",
121025
120924
  "inheritedFrom": {
121026
- "name": "SbbFormAssociatedMixin",
121027
- "module": "core/mixins/form-associated-mixin.js"
120925
+ "name": "SbbOpenCloseBaseElement",
120926
+ "module": "core/base-elements/open-close-base-element.js"
121028
120927
  }
121029
120928
  },
121030
120929
  {
121031
120930
  "kind": "method",
121032
- "name": "validate",
120931
+ "name": "dispatchOpenEvent",
121033
120932
  "privacy": "protected",
121034
120933
  "return": {
121035
120934
  "type": {
121036
- "text": "void"
120935
+ "text": "boolean"
121037
120936
  }
121038
120937
  },
121039
- "description": "To be called whenever the current element needs to be validated.",
121040
120938
  "inheritedFrom": {
121041
- "name": "SbbFormAssociatedMixin",
121042
- "module": "core/mixins/form-associated-mixin.js"
120939
+ "name": "SbbOpenCloseBaseElement",
120940
+ "module": "core/base-elements/open-close-base-element.js"
121043
120941
  }
121044
120942
  },
121045
120943
  {
121046
120944
  "kind": "method",
121047
- "name": "shouldValidate",
120945
+ "name": "dispatchBeforeCloseEvent",
121048
120946
  "privacy": "protected",
121049
120947
  "return": {
121050
120948
  "type": {
121051
120949
  "text": "boolean"
121052
120950
  }
121053
120951
  },
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.",
121063
- "inheritedFrom": {
121064
- "name": "SbbFormAssociatedMixin",
121065
- "module": "core/mixins/form-associated-mixin.js"
121066
- }
121067
- },
121068
- {
121069
- "kind": "method",
121070
- "name": "_setInternalValidity",
121071
- "privacy": "private",
121072
- "return": {
121073
- "type": {
121074
- "text": "void"
121075
- }
121076
- },
121077
- "inheritedFrom": {
121078
- "name": "SbbFormAssociatedMixin",
121079
- "module": "core/mixins/form-associated-mixin.js"
121080
- }
121081
- },
121082
- {
121083
- "kind": "field",
121084
- "name": "role",
121085
- "type": {
121086
- "text": "ElementInternals['role']"
121087
- },
121088
- "privacy": "public",
121089
- "static": true,
121090
- "readonly": true,
121091
- "default": "'button'",
121092
- "inheritedFrom": {
121093
- "name": "SbbButtonLikeBaseElement",
121094
- "module": "core/base-elements/button-base-element.js"
121095
- }
121096
- },
121097
- {
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
- ],
121108
- "inheritedFrom": {
121109
- "name": "SbbButtonLikeBaseElement",
121110
- "module": "core/base-elements/button-base-element.js"
121111
- }
121112
- },
121113
- {
121114
- "kind": "field",
121115
- "name": "_removeActiveMarker",
121116
- "privacy": "private",
121117
- "inheritedFrom": {
121118
- "name": "SbbButtonLikeBaseElement",
121119
- "module": "core/base-elements/button-base-element.js"
121120
- }
121121
- },
121122
- {
121123
- "kind": "field",
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
- ],
121133
- "inheritedFrom": {
121134
- "name": "SbbButtonLikeBaseElement",
121135
- "module": "core/base-elements/button-base-element.js"
121136
- }
121137
- },
121138
- {
121139
- "kind": "field",
121140
- "name": "_dispatchClickEvent",
121141
- "privacy": "private",
121142
- "inheritedFrom": {
121143
- "name": "SbbButtonLikeBaseElement",
121144
- "module": "core/base-elements/button-base-element.js"
121145
- }
121146
- },
121147
- {
121148
- "kind": "field",
121149
- "name": "maybeDisabled",
121150
- "type": {
121151
- "text": "boolean | undefined"
121152
- },
121153
- "privacy": "protected",
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"
121165
- },
121166
- "privacy": "protected",
121167
- "readonly": true,
121168
120952
  "inheritedFrom": {
121169
- "name": "SbbActionBaseElement",
121170
- "module": "core/base-elements/action-base-element.js"
120953
+ "name": "SbbOpenCloseBaseElement",
120954
+ "module": "core/base-elements/open-close-base-element.js"
121171
120955
  }
121172
120956
  },
121173
120957
  {
121174
120958
  "kind": "method",
121175
- "name": "setupBaseEventHandlers",
120959
+ "name": "dispatchCloseEvent",
121176
120960
  "privacy": "protected",
121177
120961
  "return": {
121178
120962
  "type": {
121179
- "text": "void"
120963
+ "text": "boolean"
121180
120964
  }
121181
120965
  },
121182
120966
  "inheritedFrom": {
121183
- "name": "SbbActionBaseElement",
121184
- "module": "core/base-elements/action-base-element.js"
120967
+ "name": "SbbOpenCloseBaseElement",
120968
+ "module": "core/base-elements/open-close-base-element.js"
121185
120969
  }
121186
120970
  },
121187
120971
  {
@@ -121290,400 +121074,666 @@
121290
121074
  }
121291
121075
  }
121292
121076
  ],
121077
+ "attributes": [
121078
+ {
121079
+ "name": "color",
121080
+ "type": {
121081
+ "text": "'white' | 'milk'"
121082
+ },
121083
+ "default": "'white'",
121084
+ "description": "Background color of the sidebar. Either `white` or `milk`.",
121085
+ "fieldName": "color"
121086
+ },
121087
+ {
121088
+ "name": "mode",
121089
+ "type": {
121090
+ "text": "'side' | 'over'"
121091
+ },
121092
+ "default": "'side'",
121093
+ "description": "Mode of the sidebar; one of 'side' or 'over'.",
121094
+ "fieldName": "mode"
121095
+ },
121096
+ {
121097
+ "name": "position",
121098
+ "type": {
121099
+ "text": "'start' | 'end'"
121100
+ },
121101
+ "default": "'start'",
121102
+ "description": "The side that the sidebar is attached to.",
121103
+ "fieldName": "position"
121104
+ },
121105
+ {
121106
+ "name": "opened",
121107
+ "type": {
121108
+ "text": "boolean"
121109
+ },
121110
+ "default": "false",
121111
+ "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
121112
+ "fieldName": "opened"
121113
+ },
121114
+ {
121115
+ "name": "focus-on-open",
121116
+ "type": {
121117
+ "text": "boolean"
121118
+ },
121119
+ "default": "false",
121120
+ "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.",
121121
+ "fieldName": "focusOnOpen"
121122
+ }
121123
+ ],
121124
+ "mixins": [
121125
+ {
121126
+ "name": "SbbAnimationCompleteMixin",
121127
+ "module": "core/mixins.js"
121128
+ }
121129
+ ],
121293
121130
  "superclass": {
121294
- "name": "SbbSecondaryButtonElement",
121295
- "module": "button.pure.js"
121131
+ "name": "SbbOpenCloseBaseElement",
121132
+ "module": "core/base-elements.js"
121296
121133
  },
121297
- "tagName": "sbb-sidebar-close-button",
121134
+ "tagName": "sbb-sidebar",
121298
121135
  "customElement": true,
121299
- "attributes": [
121136
+ "events": [
121300
121137
  {
121138
+ "name": "beforeopen",
121139
+ "type": {
121140
+ "text": "Event"
121141
+ },
121142
+ "description": "Emits whenever the component starts the opening transition. Can be canceled.",
121143
+ "inheritedFrom": {
121144
+ "name": "SbbOpenCloseBaseElement",
121145
+ "module": "core/base-elements/open-close-base-element.js"
121146
+ }
121147
+ },
121148
+ {
121149
+ "name": "open",
121150
+ "type": {
121151
+ "text": "Event"
121152
+ },
121153
+ "description": "Emits whenever the component is opened.",
121154
+ "inheritedFrom": {
121155
+ "name": "SbbOpenCloseBaseElement",
121156
+ "module": "core/base-elements/open-close-base-element.js"
121157
+ }
121158
+ },
121159
+ {
121160
+ "name": "beforeclose",
121161
+ "type": {
121162
+ "text": "Event"
121163
+ },
121164
+ "description": "Emits whenever the component begins the closing transition. Can be canceled.",
121165
+ "inheritedFrom": {
121166
+ "name": "SbbOpenCloseBaseElement",
121167
+ "module": "core/base-elements/open-close-base-element.js"
121168
+ }
121169
+ },
121170
+ {
121171
+ "name": "close",
121172
+ "type": {
121173
+ "text": "Event"
121174
+ },
121175
+ "description": "Emits whenever the component is closed.",
121176
+ "inheritedFrom": {
121177
+ "name": "SbbOpenCloseBaseElement",
121178
+ "module": "core/base-elements/open-close-base-element.js"
121179
+ }
121180
+ }
121181
+ ]
121182
+ }
121183
+ ],
121184
+ "exports": [
121185
+ {
121186
+ "kind": "js",
121187
+ "name": "SbbSidebarElement",
121188
+ "declaration": {
121189
+ "name": "SbbSidebarElement",
121190
+ "module": "sidebar/sidebar/sidebar.component.js"
121191
+ }
121192
+ }
121193
+ ]
121194
+ },
121195
+ {
121196
+ "kind": "javascript-module",
121197
+ "path": "sidebar/sidebar-close-button/sidebar-close-button.component.js",
121198
+ "declarations": [
121199
+ {
121200
+ "kind": "class",
121201
+ "description": "Sidebar close button, intended to be placed inside sbb-sidebar.",
121202
+ "name": "SbbSidebarCloseButtonElement",
121203
+ "slots": [
121204
+ {
121205
+ "description": "Use the unnamed slot to add content to the sidebar-close-button. Not intended to be used in this context.",
121206
+ "name": "",
121207
+ "inheritedFrom": {
121208
+ "name": "SbbSecondaryButtonElement",
121209
+ "module": "button/secondary-button/secondary-button.component.js"
121210
+ }
121211
+ },
121212
+ {
121213
+ "description": "Slot used to display the icon, if one is set. Not intended to be used in this context.",
121214
+ "name": "icon",
121215
+ "inheritedFrom": {
121216
+ "name": "SbbSecondaryButtonElement",
121217
+ "module": "button/secondary-button/secondary-button.component.js"
121218
+ }
121219
+ }
121220
+ ],
121221
+ "members": [
121222
+ {
121223
+ "kind": "field",
121224
+ "name": "elementName",
121225
+ "type": {
121226
+ "text": "string"
121227
+ },
121228
+ "privacy": "public",
121229
+ "static": true,
121230
+ "readonly": true,
121231
+ "inheritedFrom": {
121232
+ "name": "SbbElement",
121233
+ "module": "core/base-elements/element.js"
121234
+ },
121235
+ "default": "'sbb-sidebar-close-button'"
121236
+ },
121237
+ {
121238
+ "kind": "field",
121239
+ "name": "_languageController",
121240
+ "privacy": "private",
121241
+ "default": "new SbbLanguageController(this)"
121242
+ },
121243
+ {
121244
+ "kind": "method",
121245
+ "name": "renderTemplate",
121246
+ "privacy": "protected",
121247
+ "return": {
121248
+ "type": {
121249
+ "text": "TemplateResult"
121250
+ }
121251
+ },
121252
+ "description": "Override this method to render the component template.",
121253
+ "inheritedFrom": {
121254
+ "name": "SbbActionBaseElement",
121255
+ "module": "core/base-elements/action-base-element.js"
121256
+ }
121257
+ },
121258
+ {
121259
+ "kind": "method",
121260
+ "name": "renderIconName",
121261
+ "privacy": "protected",
121262
+ "return": {
121263
+ "type": {
121264
+ "text": "string"
121265
+ }
121266
+ },
121267
+ "inheritedFrom": {
121268
+ "name": "SbbIconNameMixin",
121269
+ "module": "icon/icon-name-mixin.js"
121270
+ }
121271
+ },
121272
+ {
121273
+ "kind": "field",
121301
121274
  "name": "size",
121302
121275
  "type": {
121303
121276
  "text": "SbbButtonSize"
121304
121277
  },
121278
+ "privacy": "public",
121305
121279
  "description": "Size variant, either l, m or s.",
121306
- "default": "'l' / 's' (lean)",
121307
- "fieldName": "size",
121280
+ "default": "'s'",
121281
+ "attribute": "size",
121282
+ "reflects": true,
121308
121283
  "inheritedFrom": {
121309
121284
  "name": "SbbButtonCommonElementMixin",
121310
121285
  "module": "button/common/button-common.js"
121311
121286
  }
121312
121287
  },
121313
121288
  {
121289
+ "kind": "field",
121314
121290
  "name": "loading",
121315
121291
  "type": {
121316
121292
  "text": "boolean"
121317
121293
  },
121294
+ "privacy": "public",
121318
121295
  "default": "false",
121319
121296
  "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",
121297
+ "attribute": "loading",
121298
+ "reflects": true,
121321
121299
  "inheritedFrom": {
121322
121300
  "name": "SbbButtonCommonElementMixin",
121323
121301
  "module": "button/common/button-common.js"
121324
121302
  }
121325
121303
  },
121326
121304
  {
121305
+ "kind": "field",
121327
121306
  "name": "negative",
121328
121307
  "type": {
121329
121308
  "text": "boolean"
121330
121309
  },
121310
+ "privacy": "public",
121331
121311
  "default": "false",
121332
121312
  "description": "Negative coloring variant flag.",
121333
- "fieldName": "negative",
121313
+ "attribute": "negative",
121314
+ "reflects": true,
121334
121315
  "inheritedFrom": {
121335
121316
  "name": "SbbNegativeMixin",
121336
121317
  "module": "core/mixins/negative-mixin.js"
121337
121318
  }
121338
121319
  },
121339
121320
  {
121340
- "name": "icon-name",
121321
+ "kind": "field",
121322
+ "name": "iconName",
121341
121323
  "type": {
121342
121324
  "text": "string"
121343
121325
  },
121326
+ "privacy": "public",
121344
121327
  "default": "''",
121345
121328
  "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",
121329
+ "attribute": "icon-name",
121347
121330
  "inheritedFrom": {
121348
121331
  "name": "SbbIconNameMixin",
121349
121332
  "module": "icon/icon-name-mixin.js"
121350
121333
  }
121351
121334
  },
121352
121335
  {
121353
- "name": "disabled-interactive",
121336
+ "kind": "method",
121337
+ "name": "renderIconSlot",
121338
+ "privacy": "protected",
121339
+ "return": {
121340
+ "type": {
121341
+ "text": "TemplateResult"
121342
+ }
121343
+ },
121344
+ "parameters": [
121345
+ {
121346
+ "name": "classname",
121347
+ "optional": true,
121348
+ "type": {
121349
+ "text": "string"
121350
+ }
121351
+ }
121352
+ ],
121353
+ "inheritedFrom": {
121354
+ "name": "SbbIconNameMixin",
121355
+ "module": "icon/icon-name-mixin.js"
121356
+ }
121357
+ },
121358
+ {
121359
+ "kind": "method",
121360
+ "name": "_renderIconName",
121361
+ "privacy": "private",
121362
+ "return": {
121363
+ "type": {
121364
+ "text": "string"
121365
+ }
121366
+ },
121367
+ "inheritedFrom": {
121368
+ "name": "SbbIconNameMixin",
121369
+ "module": "icon/icon-name-mixin.js"
121370
+ }
121371
+ },
121372
+ {
121373
+ "kind": "field",
121374
+ "name": "disabledInteractive",
121354
121375
  "type": {
121355
121376
  "text": "boolean"
121356
121377
  },
121378
+ "privacy": "public",
121357
121379
  "default": "false",
121358
121380
  "description": "Whether the button should be aria-disabled but stay interactive.",
121359
- "fieldName": "disabledInteractive",
121381
+ "attribute": "disabled-interactive",
121382
+ "reflects": true,
121360
121383
  "inheritedFrom": {
121361
121384
  "name": "SbbDisabledInteractiveMixin",
121362
121385
  "module": "core/mixins/disabled-mixin.js"
121363
121386
  }
121364
121387
  },
121365
121388
  {
121389
+ "kind": "field",
121366
121390
  "name": "disabled",
121391
+ "privacy": "public",
121367
121392
  "description": "Whether the component is disabled.",
121368
121393
  "default": "false",
121369
121394
  "type": {
121370
121395
  "text": "boolean"
121371
121396
  },
121372
- "fieldName": "disabled",
121397
+ "attribute": "disabled",
121398
+ "reflects": true,
121373
121399
  "inheritedFrom": {
121374
121400
  "name": "SbbDisabledMixin",
121375
121401
  "module": "core/mixins/disabled-mixin.js"
121376
121402
  }
121377
121403
  },
121378
121404
  {
121379
- "name": "value",
121405
+ "kind": "field",
121406
+ "name": "#disabled",
121407
+ "privacy": "private",
121380
121408
  "type": {
121381
- "text": "string"
121409
+ "text": "boolean"
121382
121410
  },
121383
- "default": "''",
121384
- "description": "Value of the form element.",
121385
- "fieldName": "value",
121411
+ "default": "false",
121386
121412
  "inheritedFrom": {
121387
- "name": "SbbButtonBaseElement",
121388
- "module": "core/base-elements/button-base-element.js"
121413
+ "name": "SbbDisabledMixin",
121414
+ "module": "core/mixins/disabled-mixin.js"
121389
121415
  }
121390
121416
  },
121391
121417
  {
121392
- "name": "type",
121393
- "description": "The type attribute to use for the button.",
121394
- "default": "'button'",
121395
- "type": {
121396
- "text": "SbbButtonType"
121418
+ "kind": "method",
121419
+ "name": "isDisabledExternally",
121420
+ "privacy": "protected",
121421
+ "return": {
121422
+ "type": {
121423
+ "text": "boolean"
121424
+ }
121397
121425
  },
121398
- "fieldName": "type",
121426
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
121399
121427
  "inheritedFrom": {
121400
- "name": "SbbButtonBaseElement",
121401
- "module": "core/base-elements/button-base-element.js"
121428
+ "name": "SbbDisabledMixin",
121429
+ "module": "core/mixins/disabled-mixin.js"
121402
121430
  }
121403
121431
  },
121404
121432
  {
121405
- "name": "form",
121406
- "description": "The `<form>` element to associate the button with.",
121433
+ "kind": "field",
121434
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
121407
121435
  "type": {
121408
- "text": "HTMLFormElement | null"
121436
+ "text": "array"
121409
121437
  },
121410
- "fieldName": "form",
121438
+ "privacy": "private",
121439
+ "readonly": true,
121440
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
121411
121441
  "inheritedFrom": {
121412
121442
  "name": "SbbButtonBaseElement",
121413
121443
  "module": "core/base-elements/button-base-element.js"
121414
121444
  }
121415
121445
  },
121416
121446
  {
121417
- "name": "name",
121418
- "description": "Name of the form element. Will be read from name attribute.",
121447
+ "kind": "field",
121448
+ "name": "value",
121419
121449
  "type": {
121420
121450
  "text": "string"
121421
121451
  },
121422
- "fieldName": "name",
121452
+ "privacy": "public",
121423
121453
  "inheritedFrom": {
121424
- "name": "SbbFormAssociatedMixin",
121425
- "module": "core/mixins/form-associated-mixin.js"
121426
- }
121427
- }
121428
- ],
121429
- "cssProperties": [
121454
+ "name": "SbbButtonBaseElement",
121455
+ "module": "core/base-elements/button-base-element.js"
121456
+ },
121457
+ "default": "''",
121458
+ "description": "Value of the form element.",
121459
+ "attribute": "value"
121460
+ },
121430
121461
  {
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",
121462
+ "kind": "field",
121463
+ "name": "type",
121464
+ "privacy": "public",
121465
+ "description": "The type attribute to use for the button.",
121466
+ "default": "'button'",
121467
+ "type": {
121468
+ "text": "SbbButtonType"
121469
+ },
121470
+ "attribute": "type",
121434
121471
  "inheritedFrom": {
121435
- "name": "SbbSecondaryButtonElement",
121436
- "module": "button/secondary-button/secondary-button.component.js"
121472
+ "name": "SbbButtonBaseElement",
121473
+ "module": "core/base-elements/button-base-element.js"
121437
121474
  }
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": ""
121465
121475
  },
121466
- {
121467
- "description": "Use the title slot to add an <sbb-title>.",
121468
- "name": "title"
121469
- }
121470
- ],
121471
- "members": [
121472
121476
  {
121473
121477
  "kind": "field",
121474
- "name": "elementName",
121478
+ "name": "form",
121475
121479
  "type": {
121476
- "text": "string"
121480
+ "text": "HTMLFormElement | null"
121477
121481
  },
121478
121482
  "privacy": "public",
121479
- "static": true,
121480
- "readonly": true,
121483
+ "description": "The `<form>` element to associate the button with.",
121481
121484
  "inheritedFrom": {
121482
- "name": "SbbElement",
121483
- "module": "core/base-elements/element.js"
121485
+ "name": "SbbButtonBaseElement",
121486
+ "module": "core/base-elements/button-base-element.js"
121484
121487
  },
121485
- "default": "'sbb-sidebar'"
121488
+ "attribute": "form"
121486
121489
  },
121487
121490
  {
121488
121491
  "kind": "field",
121489
- "name": "color",
121492
+ "name": "_formId",
121490
121493
  "type": {
121491
- "text": "'white' | 'milk'"
121494
+ "text": "string"
121492
121495
  },
121493
- "privacy": "public",
121494
- "default": "'white'",
121495
- "description": "Background color of the sidebar. Either `white` or `milk`.",
121496
- "attribute": "color",
121497
- "reflects": true
121496
+ "privacy": "private",
121497
+ "default": "''",
121498
+ "inheritedFrom": {
121499
+ "name": "SbbButtonBaseElement",
121500
+ "module": "core/base-elements/button-base-element.js"
121501
+ }
121498
121502
  },
121499
121503
  {
121500
121504
  "kind": "field",
121501
- "name": "mode",
121502
- "type": {
121503
- "text": "'side' | 'over'"
121505
+ "name": "_handleButtonClick",
121506
+ "privacy": "private",
121507
+ "inheritedFrom": {
121508
+ "name": "SbbButtonBaseElement",
121509
+ "module": "core/base-elements/button-base-element.js"
121510
+ }
121511
+ },
121512
+ {
121513
+ "kind": "method",
121514
+ "name": "_requestSubmit",
121515
+ "privacy": "private",
121516
+ "return": {
121517
+ "type": {
121518
+ "text": "void"
121519
+ }
121504
121520
  },
121505
- "privacy": "public",
121506
- "default": "'side'",
121507
- "description": "Mode of the sidebar; one of 'side' or 'over'.",
121508
- "attribute": "mode",
121509
- "reflects": true
121521
+ "parameters": [
121522
+ {
121523
+ "name": "form",
121524
+ "type": {
121525
+ "text": "HTMLFormElement"
121526
+ }
121527
+ }
121528
+ ],
121529
+ "inheritedFrom": {
121530
+ "name": "SbbButtonBaseElement",
121531
+ "module": "core/base-elements/button-base-element.js"
121532
+ }
121510
121533
  },
121511
121534
  {
121512
121535
  "kind": "field",
121513
- "name": "position",
121514
- "type": {
121515
- "text": "'start' | 'end'"
121516
- },
121517
- "privacy": "public",
121518
- "default": "'start'",
121519
- "description": "The side that the sidebar is attached to.",
121520
- "attribute": "position",
121521
- "reflects": true
121536
+ "name": "_formKeyDown",
121537
+ "privacy": "private",
121538
+ "inheritedFrom": {
121539
+ "name": "SbbButtonBaseElement",
121540
+ "module": "core/base-elements/button-base-element.js"
121541
+ }
121522
121542
  },
121523
121543
  {
121524
121544
  "kind": "field",
121525
- "name": "opened",
121545
+ "name": "formAssociated",
121526
121546
  "type": {
121527
121547
  "text": "boolean"
121528
121548
  },
121529
121549
  "privacy": "public",
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
121550
+ "static": true,
121551
+ "default": "true",
121552
+ "inheritedFrom": {
121553
+ "name": "SbbFormAssociatedMixin",
121554
+ "module": "core/mixins/form-associated-mixin.js"
121555
+ }
121534
121556
  },
121535
121557
  {
121536
121558
  "kind": "field",
121537
- "name": "focusOnOpen",
121559
+ "name": "name",
121560
+ "privacy": "public",
121561
+ "description": "Name of the form element. Will be read from name attribute.",
121538
121562
  "type": {
121539
- "text": "boolean"
121563
+ "text": "string"
121540
121564
  },
121541
- "privacy": "public",
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"
121565
+ "attribute": "name",
121566
+ "inheritedFrom": {
121567
+ "name": "SbbFormAssociatedMixin",
121568
+ "module": "core/mixins/form-associated-mixin.js"
121569
+ }
121545
121570
  },
121546
121571
  {
121547
121572
  "kind": "field",
121548
- "name": "container",
121573
+ "name": "validity",
121549
121574
  "type": {
121550
- "text": "SbbSidebarContainerElement | null"
121575
+ "text": "ValidityState"
121551
121576
  },
121552
121577
  "privacy": "public",
121553
- "description": "Returns the SbbSidebarContainerElement where this sidebar is contained.",
121578
+ "description": "Returns the ValidityState object for this element.",
121554
121579
  "readonly": true,
121555
- "default": "null"
121580
+ "inheritedFrom": {
121581
+ "name": "SbbFormAssociatedMixin",
121582
+ "module": "core/mixins/form-associated-mixin.js"
121583
+ }
121556
121584
  },
121557
121585
  {
121558
121586
  "kind": "field",
121559
- "name": "_container",
121587
+ "name": "validationMessage",
121560
121588
  "type": {
121561
- "text": "SbbSidebarContainerElement | null"
121589
+ "text": "string"
121562
121590
  },
121563
- "privacy": "private",
121564
- "default": "null"
121591
+ "privacy": "public",
121592
+ "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.",
121593
+ "readonly": true,
121594
+ "inheritedFrom": {
121595
+ "name": "SbbFormAssociatedMixin",
121596
+ "module": "core/mixins/form-associated-mixin.js"
121597
+ }
121565
121598
  },
121566
121599
  {
121567
121600
  "kind": "field",
121568
- "name": "_lastFocusedElement",
121601
+ "name": "willValidate",
121569
121602
  "type": {
121570
- "text": "HTMLElement | null"
121603
+ "text": "boolean"
121571
121604
  },
121572
- "privacy": "private",
121573
- "default": "null"
121574
- },
121575
- {
121576
- "kind": "field",
121577
- "name": "_focusTrapController",
121578
- "privacy": "private",
121579
- "default": "new SbbFocusTrapController(this)"
121605
+ "privacy": "public",
121606
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
121607
+ "readonly": true,
121608
+ "inheritedFrom": {
121609
+ "name": "SbbFormAssociatedMixin",
121610
+ "module": "core/mixins/form-associated-mixin.js"
121611
+ }
121580
121612
  },
121581
121613
  {
121582
121614
  "kind": "field",
121583
- "name": "_escapableOverlayController",
121615
+ "name": "_validityStates",
121584
121616
  "privacy": "private",
121585
- "default": "new SbbEscapableOverlayController(this)"
121617
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
121618
+ "inheritedFrom": {
121619
+ "name": "SbbFormAssociatedMixin",
121620
+ "module": "core/mixins/form-associated-mixin.js"
121621
+ }
121586
121622
  },
121587
121623
  {
121588
121624
  "kind": "field",
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
- }
121600
- },
121601
- "description": "Toggles the sidebar visibility."
121602
- },
121603
- {
121604
- "kind": "method",
121605
- "name": "open",
121606
- "privacy": "public",
121607
- "return": {
121608
- "type": {
121609
- "text": "void"
121610
- }
121625
+ "name": "formDisabled",
121626
+ "type": {
121627
+ "text": "boolean"
121611
121628
  },
121612
- "description": "Opens the sidebar.",
121629
+ "privacy": "protected",
121630
+ "default": "false",
121631
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
121613
121632
  "inheritedFrom": {
121614
- "name": "SbbOpenCloseBaseElement",
121615
- "module": "core/base-elements/open-close-base-element.js"
121633
+ "name": "SbbFormAssociatedMixin",
121634
+ "module": "core/mixins/form-associated-mixin.js"
121616
121635
  }
121617
121636
  },
121618
121637
  {
121619
121638
  "kind": "method",
121620
- "name": "_isZeroAnimationDuration",
121621
- "privacy": "private",
121639
+ "name": "checkValidity",
121640
+ "privacy": "public",
121622
121641
  "return": {
121623
121642
  "type": {
121624
121643
  "text": "boolean"
121625
121644
  }
121645
+ },
121646
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
121647
+ "inheritedFrom": {
121648
+ "name": "SbbFormAssociatedMixin",
121649
+ "module": "core/mixins/form-associated-mixin.js"
121626
121650
  }
121627
121651
  },
121628
121652
  {
121629
121653
  "kind": "method",
121630
- "name": "_handleOpening",
121631
- "privacy": "private",
121654
+ "name": "reportValidity",
121655
+ "privacy": "public",
121632
121656
  "return": {
121633
121657
  "type": {
121634
- "text": "void"
121658
+ "text": "boolean"
121635
121659
  }
121660
+ },
121661
+ "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.",
121662
+ "inheritedFrom": {
121663
+ "name": "SbbFormAssociatedMixin",
121664
+ "module": "core/mixins/form-associated-mixin.js"
121636
121665
  }
121637
121666
  },
121638
121667
  {
121639
121668
  "kind": "method",
121640
- "name": "close",
121669
+ "name": "setCustomValidity",
121641
121670
  "privacy": "public",
121642
121671
  "return": {
121643
121672
  "type": {
121644
121673
  "text": "void"
121645
121674
  }
121646
121675
  },
121647
- "description": "Closes the sidebar.",
121676
+ "parameters": [
121677
+ {
121678
+ "name": "message",
121679
+ "type": {
121680
+ "text": "string"
121681
+ }
121682
+ }
121683
+ ],
121684
+ "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.",
121648
121685
  "inheritedFrom": {
121649
- "name": "SbbOpenCloseBaseElement",
121650
- "module": "core/base-elements/open-close-base-element.js"
121686
+ "name": "SbbFormAssociatedMixin",
121687
+ "module": "core/mixins/form-associated-mixin.js"
121651
121688
  }
121652
121689
  },
121653
121690
  {
121654
121691
  "kind": "method",
121655
- "name": "_handleClosing",
121692
+ "name": "_hasDisabledAncestor",
121656
121693
  "privacy": "private",
121657
121694
  "return": {
121658
121695
  "type": {
121659
- "text": "void"
121696
+ "text": "boolean"
121660
121697
  }
121698
+ },
121699
+ "inheritedFrom": {
121700
+ "name": "SbbFormAssociatedMixin",
121701
+ "module": "core/mixins/form-associated-mixin.js"
121661
121702
  }
121662
121703
  },
121663
121704
  {
121664
121705
  "kind": "method",
121665
- "name": "_takeFocus",
121666
- "privacy": "private",
121706
+ "name": "updateFormValue",
121707
+ "privacy": "protected",
121667
121708
  "return": {
121668
121709
  "type": {
121669
121710
  "text": "void"
121670
121711
  }
121712
+ },
121713
+ "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",
121714
+ "inheritedFrom": {
121715
+ "name": "SbbFormAssociatedMixin",
121716
+ "module": "core/mixins/form-associated-mixin.js"
121671
121717
  }
121672
121718
  },
121673
121719
  {
121674
121720
  "kind": "method",
121675
- "name": "cedeFocus",
121721
+ "name": "formState",
121676
121722
  "privacy": "protected",
121677
121723
  "return": {
121678
121724
  "type": {
121679
- "text": "void"
121725
+ "text": "FormRestoreState"
121680
121726
  }
121727
+ },
121728
+ "inheritedFrom": {
121729
+ "name": "SbbFormAssociatedMixin",
121730
+ "module": "core/mixins/form-associated-mixin.js"
121681
121731
  }
121682
121732
  },
121683
121733
  {
121684
121734
  "kind": "method",
121685
- "name": "_updateSidebarWidth",
121686
- "privacy": "private",
121735
+ "name": "setValidityFlag",
121736
+ "privacy": "protected",
121687
121737
  "return": {
121688
121738
  "type": {
121689
121739
  "text": "void"
@@ -121691,44 +121741,35 @@
121691
121741
  },
121692
121742
  "parameters": [
121693
121743
  {
121694
- "name": "oldPosition",
121695
- "optional": true,
121744
+ "name": "flag",
121696
121745
  "type": {
121697
- "text": "this['position']"
121746
+ "text": "T"
121698
121747
  }
121699
- }
121700
- ]
121701
- },
121702
- {
121703
- "kind": "method",
121704
- "name": "_buildCssWidthVar",
121705
- "privacy": "private",
121706
- "return": {
121707
- "type": {
121708
- "text": "string"
121709
- }
121710
- },
121711
- "parameters": [
121748
+ },
121712
121749
  {
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"
121750
+ "name": "message",
121751
+ "type": {
121752
+ "text": "string"
121753
+ }
121754
+ },
121755
+ {
121756
+ "name": "flagValue",
121757
+ "optional": true,
121758
+ "type": {
121759
+ "text": "ValidityStateFlags[T]"
121760
+ }
121725
121761
  }
121762
+ ],
121763
+ "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).",
121764
+ "inheritedFrom": {
121765
+ "name": "SbbFormAssociatedMixin",
121766
+ "module": "core/mixins/form-associated-mixin.js"
121726
121767
  }
121727
121768
  },
121728
121769
  {
121729
121770
  "kind": "method",
121730
- "name": "_onTransitionEnd",
121731
- "privacy": "private",
121771
+ "name": "removeValidityFlag",
121772
+ "privacy": "protected",
121732
121773
  "return": {
121733
121774
  "type": {
121734
121775
  "text": "void"
@@ -121736,230 +121777,173 @@
121736
121777
  },
121737
121778
  "parameters": [
121738
121779
  {
121739
- "name": "event",
121780
+ "name": "flag",
121740
121781
  "type": {
121741
- "text": "TransitionEvent"
121782
+ "text": "T"
121742
121783
  }
121743
121784
  }
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.",
121765
- "inheritedFrom": {
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",
121785
+ ],
121786
+ "description": "Removes the validity state flag entry and updates validity state.",
121791
121787
  "inheritedFrom": {
121792
- "name": "SbbAnimationCompleteMixin",
121793
- "module": "core/mixins/animation-complete-mixin.js"
121788
+ "name": "SbbFormAssociatedMixin",
121789
+ "module": "core/mixins/form-associated-mixin.js"
121794
121790
  }
121795
121791
  },
121796
121792
  {
121797
121793
  "kind": "method",
121798
- "name": "startAnimation",
121794
+ "name": "validate",
121799
121795
  "privacy": "protected",
121800
121796
  "return": {
121801
121797
  "type": {
121802
121798
  "text": "void"
121803
121799
  }
121804
121800
  },
121801
+ "description": "To be called whenever the current element needs to be validated.",
121805
121802
  "inheritedFrom": {
121806
- "name": "SbbAnimationCompleteMixin",
121807
- "module": "core/mixins/animation-complete-mixin.js"
121803
+ "name": "SbbFormAssociatedMixin",
121804
+ "module": "core/mixins/form-associated-mixin.js"
121808
121805
  }
121809
121806
  },
121810
121807
  {
121811
121808
  "kind": "method",
121812
- "name": "stopAnimation",
121809
+ "name": "shouldValidate",
121813
121810
  "privacy": "protected",
121814
121811
  "return": {
121815
121812
  "type": {
121816
- "text": "void"
121813
+ "text": "boolean"
121817
121814
  }
121818
121815
  },
121819
- "description": "Overriding stopAnimation() breaks functionality.",
121816
+ "parameters": [
121817
+ {
121818
+ "name": "name",
121819
+ "type": {
121820
+ "text": "PropertyKey | undefined"
121821
+ }
121822
+ }
121823
+ ],
121824
+ "description": "Whether validation should be run on a property change with the given name.",
121820
121825
  "inheritedFrom": {
121821
- "name": "SbbAnimationCompleteMixin",
121822
- "module": "core/mixins/animation-complete-mixin.js"
121826
+ "name": "SbbFormAssociatedMixin",
121827
+ "module": "core/mixins/form-associated-mixin.js"
121823
121828
  }
121824
121829
  },
121825
121830
  {
121826
121831
  "kind": "method",
121827
- "name": "_enqueueAnimation",
121832
+ "name": "_setInternalValidity",
121828
121833
  "privacy": "private",
121829
121834
  "return": {
121830
121835
  "type": {
121831
- "text": "Promise<void>"
121836
+ "text": "void"
121832
121837
  }
121833
121838
  },
121834
121839
  "inheritedFrom": {
121835
- "name": "SbbAnimationCompleteMixin",
121836
- "module": "core/mixins/animation-complete-mixin.js"
121840
+ "name": "SbbFormAssociatedMixin",
121841
+ "module": "core/mixins/form-associated-mixin.js"
121837
121842
  }
121838
121843
  },
121839
121844
  {
121840
121845
  "kind": "field",
121841
- "name": "events",
121846
+ "name": "role",
121847
+ "type": {
121848
+ "text": "ElementInternals['role']"
121849
+ },
121842
121850
  "privacy": "public",
121843
121851
  "static": true,
121844
121852
  "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
- },
121853
+ "default": "'button'",
121849
121854
  "inheritedFrom": {
121850
- "name": "SbbOpenCloseBaseElement",
121851
- "module": "core/base-elements/open-close-base-element.js"
121855
+ "name": "SbbButtonLikeBaseElement",
121856
+ "module": "core/base-elements/button-base-element.js"
121852
121857
  }
121853
121858
  },
121854
121859
  {
121855
121860
  "kind": "field",
121856
- "name": "state",
121857
- "privacy": "protected",
121858
- "description": "The state of the component.",
121859
- "type": {
121860
- "text": "SbbOpenedClosedState"
121861
- },
121862
- "default": "'closed'",
121861
+ "name": "_preventScrollOnSpaceKeydown",
121862
+ "privacy": "private",
121863
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
121864
+ "parameters": [
121865
+ {
121866
+ "description": "The origin event.",
121867
+ "name": "event"
121868
+ }
121869
+ ],
121863
121870
  "inheritedFrom": {
121864
- "name": "SbbOpenCloseBaseElement",
121865
- "module": "core/base-elements/open-close-base-element.js"
121871
+ "name": "SbbButtonLikeBaseElement",
121872
+ "module": "core/base-elements/button-base-element.js"
121866
121873
  }
121867
121874
  },
121868
121875
  {
121869
121876
  "kind": "field",
121870
- "name": "_state",
121871
- "type": {
121872
- "text": "SbbOpenedClosedState"
121873
- },
121877
+ "name": "_removeActiveMarker",
121874
121878
  "privacy": "private",
121875
121879
  "inheritedFrom": {
121876
- "name": "SbbOpenCloseBaseElement",
121877
- "module": "core/base-elements/open-close-base-element.js"
121880
+ "name": "SbbButtonLikeBaseElement",
121881
+ "module": "core/base-elements/button-base-element.js"
121878
121882
  }
121879
121883
  },
121880
121884
  {
121881
121885
  "kind": "field",
121882
- "name": "isOpen",
121883
- "type": {
121884
- "text": "boolean"
121885
- },
121886
- "privacy": "public",
121887
- "description": "Whether the element is open.",
121888
- "readonly": true,
121889
- "inheritedFrom": {
121890
- "name": "SbbOpenCloseBaseElement",
121891
- "module": "core/base-elements/open-close-base-element.js"
121892
- }
121893
- },
121894
- {
121895
- "kind": "method",
121896
- "name": "escapeStrategy",
121897
- "privacy": "public",
121898
- "return": {
121899
- "type": {
121900
- "text": "void"
121886
+ "name": "_dispatchClickEventOnSpaceKeyup",
121887
+ "privacy": "private",
121888
+ "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.",
121889
+ "parameters": [
121890
+ {
121891
+ "description": "The origin event.",
121892
+ "name": "event"
121901
121893
  }
121902
- },
121903
- "description": "The method which is called on escape key press. Defaults to calling close()",
121894
+ ],
121904
121895
  "inheritedFrom": {
121905
- "name": "SbbOpenCloseBaseElement",
121906
- "module": "core/base-elements/open-close-base-element.js"
121896
+ "name": "SbbButtonLikeBaseElement",
121897
+ "module": "core/base-elements/button-base-element.js"
121907
121898
  }
121908
121899
  },
121909
121900
  {
121910
- "kind": "method",
121911
- "name": "dispatchBeforeOpenEvent",
121912
- "privacy": "protected",
121913
- "return": {
121914
- "type": {
121915
- "text": "boolean"
121916
- }
121917
- },
121901
+ "kind": "field",
121902
+ "name": "_dispatchClickEvent",
121903
+ "privacy": "private",
121918
121904
  "inheritedFrom": {
121919
- "name": "SbbOpenCloseBaseElement",
121920
- "module": "core/base-elements/open-close-base-element.js"
121905
+ "name": "SbbButtonLikeBaseElement",
121906
+ "module": "core/base-elements/button-base-element.js"
121921
121907
  }
121922
121908
  },
121923
121909
  {
121924
- "kind": "method",
121925
- "name": "dispatchOpenEvent",
121926
- "privacy": "protected",
121927
- "return": {
121928
- "type": {
121929
- "text": "boolean"
121930
- }
121910
+ "kind": "field",
121911
+ "name": "maybeDisabled",
121912
+ "type": {
121913
+ "text": "boolean | undefined"
121931
121914
  },
121915
+ "privacy": "protected",
121916
+ "readonly": true,
121932
121917
  "inheritedFrom": {
121933
- "name": "SbbOpenCloseBaseElement",
121934
- "module": "core/base-elements/open-close-base-element.js"
121918
+ "name": "SbbActionBaseElement",
121919
+ "module": "core/base-elements/action-base-element.js"
121935
121920
  }
121936
121921
  },
121937
121922
  {
121938
- "kind": "method",
121939
- "name": "dispatchBeforeCloseEvent",
121940
- "privacy": "protected",
121941
- "return": {
121942
- "type": {
121943
- "text": "boolean"
121944
- }
121923
+ "kind": "field",
121924
+ "name": "maybeDisabledInteractive",
121925
+ "type": {
121926
+ "text": "boolean | undefined"
121945
121927
  },
121928
+ "privacy": "protected",
121929
+ "readonly": true,
121946
121930
  "inheritedFrom": {
121947
- "name": "SbbOpenCloseBaseElement",
121948
- "module": "core/base-elements/open-close-base-element.js"
121931
+ "name": "SbbActionBaseElement",
121932
+ "module": "core/base-elements/action-base-element.js"
121949
121933
  }
121950
121934
  },
121951
121935
  {
121952
121936
  "kind": "method",
121953
- "name": "dispatchCloseEvent",
121937
+ "name": "setupBaseEventHandlers",
121954
121938
  "privacy": "protected",
121955
121939
  "return": {
121956
121940
  "type": {
121957
- "text": "boolean"
121941
+ "text": "void"
121958
121942
  }
121959
121943
  },
121960
121944
  "inheritedFrom": {
121961
- "name": "SbbOpenCloseBaseElement",
121962
- "module": "core/base-elements/open-close-base-element.js"
121945
+ "name": "SbbActionBaseElement",
121946
+ "module": "core/base-elements/action-base-element.js"
121963
121947
  }
121964
121948
  },
121965
121949
  {
@@ -122068,108 +122052,150 @@
122068
122052
  }
122069
122053
  }
122070
122054
  ],
122055
+ "superclass": {
122056
+ "name": "SbbSecondaryButtonElement",
122057
+ "module": "button.pure.js"
122058
+ },
122059
+ "tagName": "sbb-sidebar-close-button",
122060
+ "customElement": true,
122071
122061
  "attributes": [
122072
122062
  {
122073
- "name": "color",
122063
+ "name": "size",
122074
122064
  "type": {
122075
- "text": "'white' | 'milk'"
122065
+ "text": "SbbButtonSize"
122076
122066
  },
122077
- "default": "'white'",
122078
- "description": "Background color of the sidebar. Either `white` or `milk`.",
122079
- "fieldName": "color"
122067
+ "description": "Size variant, either l, m or s.",
122068
+ "default": "'l' / 's' (lean)",
122069
+ "fieldName": "size",
122070
+ "inheritedFrom": {
122071
+ "name": "SbbButtonCommonElementMixin",
122072
+ "module": "button/common/button-common.js"
122073
+ }
122080
122074
  },
122081
122075
  {
122082
- "name": "mode",
122076
+ "name": "loading",
122083
122077
  "type": {
122084
- "text": "'side' | 'over'"
122078
+ "text": "boolean"
122085
122079
  },
122086
- "default": "'side'",
122087
- "description": "Mode of the sidebar; one of 'side' or 'over'.",
122088
- "fieldName": "mode"
122080
+ "default": "false",
122081
+ "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.",
122082
+ "fieldName": "loading",
122083
+ "inheritedFrom": {
122084
+ "name": "SbbButtonCommonElementMixin",
122085
+ "module": "button/common/button-common.js"
122086
+ }
122089
122087
  },
122090
122088
  {
122091
- "name": "position",
122089
+ "name": "negative",
122092
122090
  "type": {
122093
- "text": "'start' | 'end'"
122091
+ "text": "boolean"
122094
122092
  },
122095
- "default": "'start'",
122096
- "description": "The side that the sidebar is attached to.",
122097
- "fieldName": "position"
122093
+ "default": "false",
122094
+ "description": "Negative coloring variant flag.",
122095
+ "fieldName": "negative",
122096
+ "inheritedFrom": {
122097
+ "name": "SbbNegativeMixin",
122098
+ "module": "core/mixins/negative-mixin.js"
122099
+ }
122098
122100
  },
122099
122101
  {
122100
- "name": "opened",
122102
+ "name": "icon-name",
122101
122103
  "type": {
122102
- "text": "boolean"
122104
+ "text": "string"
122103
122105
  },
122104
- "default": "false",
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"
122106
+ "default": "''",
122107
+ "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.",
122108
+ "fieldName": "iconName",
122109
+ "inheritedFrom": {
122110
+ "name": "SbbIconNameMixin",
122111
+ "module": "icon/icon-name-mixin.js"
122112
+ }
122107
122113
  },
122108
122114
  {
122109
- "name": "focus-on-open",
122115
+ "name": "disabled-interactive",
122110
122116
  "type": {
122111
122117
  "text": "boolean"
122112
122118
  },
122113
122119
  "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": [
122120
+ "description": "Whether the button should be aria-disabled but stay interactive.",
122121
+ "fieldName": "disabledInteractive",
122122
+ "inheritedFrom": {
122123
+ "name": "SbbDisabledInteractiveMixin",
122124
+ "module": "core/mixins/disabled-mixin.js"
122125
+ }
122126
+ },
122119
122127
  {
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": [
122128
+ "name": "disabled",
122129
+ "description": "Whether the component is disabled.",
122130
+ "default": "false",
122131
+ "type": {
122132
+ "text": "boolean"
122133
+ },
122134
+ "fieldName": "disabled",
122135
+ "inheritedFrom": {
122136
+ "name": "SbbDisabledMixin",
122137
+ "module": "core/mixins/disabled-mixin.js"
122138
+ }
122139
+ },
122131
122140
  {
122132
- "name": "beforeopen",
122141
+ "name": "value",
122133
122142
  "type": {
122134
- "text": "Event"
122143
+ "text": "string"
122135
122144
  },
122136
- "description": "Emits whenever the component starts the opening transition. Can be canceled.",
122145
+ "default": "''",
122146
+ "description": "Value of the form element.",
122147
+ "fieldName": "value",
122137
122148
  "inheritedFrom": {
122138
- "name": "SbbOpenCloseBaseElement",
122139
- "module": "core/base-elements/open-close-base-element.js"
122149
+ "name": "SbbButtonBaseElement",
122150
+ "module": "core/base-elements/button-base-element.js"
122140
122151
  }
122141
122152
  },
122142
122153
  {
122143
- "name": "open",
122154
+ "name": "type",
122155
+ "description": "The type attribute to use for the button.",
122156
+ "default": "'button'",
122144
122157
  "type": {
122145
- "text": "Event"
122158
+ "text": "SbbButtonType"
122146
122159
  },
122147
- "description": "Emits whenever the component is opened.",
122160
+ "fieldName": "type",
122148
122161
  "inheritedFrom": {
122149
- "name": "SbbOpenCloseBaseElement",
122150
- "module": "core/base-elements/open-close-base-element.js"
122162
+ "name": "SbbButtonBaseElement",
122163
+ "module": "core/base-elements/button-base-element.js"
122151
122164
  }
122152
122165
  },
122153
122166
  {
122154
- "name": "beforeclose",
122167
+ "name": "form",
122168
+ "description": "The `<form>` element to associate the button with.",
122155
122169
  "type": {
122156
- "text": "Event"
122170
+ "text": "HTMLFormElement | null"
122157
122171
  },
122158
- "description": "Emits whenever the component begins the closing transition. Can be canceled.",
122172
+ "fieldName": "form",
122159
122173
  "inheritedFrom": {
122160
- "name": "SbbOpenCloseBaseElement",
122161
- "module": "core/base-elements/open-close-base-element.js"
122174
+ "name": "SbbButtonBaseElement",
122175
+ "module": "core/base-elements/button-base-element.js"
122162
122176
  }
122163
122177
  },
122164
122178
  {
122165
- "name": "close",
122179
+ "name": "name",
122180
+ "description": "Name of the form element. Will be read from name attribute.",
122166
122181
  "type": {
122167
- "text": "Event"
122182
+ "text": "string"
122168
122183
  },
122169
- "description": "Emits whenever the component is closed.",
122184
+ "fieldName": "name",
122170
122185
  "inheritedFrom": {
122171
- "name": "SbbOpenCloseBaseElement",
122172
- "module": "core/base-elements/open-close-base-element.js"
122186
+ "name": "SbbFormAssociatedMixin",
122187
+ "module": "core/mixins/form-associated-mixin.js"
122188
+ }
122189
+ }
122190
+ ],
122191
+ "cssProperties": [
122192
+ {
122193
+ "description": "The delay before the loading animation starts, when setting the button into loading state.",
122194
+ "name": "--sbb-button-loading-delay",
122195
+ "default": "300ms",
122196
+ "inheritedFrom": {
122197
+ "name": "SbbSecondaryButtonElement",
122198
+ "module": "button/secondary-button/secondary-button.component.js"
122173
122199
  }
122174
122200
  }
122175
122201
  ]
@@ -122178,10 +122204,10 @@
122178
122204
  "exports": [
122179
122205
  {
122180
122206
  "kind": "js",
122181
- "name": "SbbSidebarElement",
122207
+ "name": "SbbSidebarCloseButtonElement",
122182
122208
  "declaration": {
122183
- "name": "SbbSidebarElement",
122184
- "module": "sidebar/sidebar/sidebar.component.js"
122209
+ "name": "SbbSidebarCloseButtonElement",
122210
+ "module": "sidebar/sidebar-close-button/sidebar-close-button.component.js"
122185
122211
  }
122186
122212
  }
122187
122213
  ]
@@ -132872,6 +132898,155 @@
132872
132898
  }
132873
132899
  ]
132874
132900
  },
132901
+ {
132902
+ "kind": "javascript-module",
132903
+ "path": "train/train-blocked-passage/train-blocked-passage.component.js",
132904
+ "declarations": [
132905
+ {
132906
+ "kind": "class",
132907
+ "description": "It visually displays a blocked passage between train wagons.",
132908
+ "name": "SbbTrainBlockedPassageElement",
132909
+ "members": [
132910
+ {
132911
+ "kind": "field",
132912
+ "name": "elementName",
132913
+ "type": {
132914
+ "text": "string"
132915
+ },
132916
+ "privacy": "public",
132917
+ "static": true,
132918
+ "readonly": true,
132919
+ "default": "'sbb-train-blocked-passage'",
132920
+ "inheritedFrom": {
132921
+ "name": "SbbElement",
132922
+ "module": "core/base-elements/element.js"
132923
+ }
132924
+ },
132925
+ {
132926
+ "kind": "field",
132927
+ "name": "_hydrationRequired",
132928
+ "type": {
132929
+ "text": "boolean"
132930
+ },
132931
+ "privacy": "private",
132932
+ "default": "!!this.shadowRoot",
132933
+ "inheritedFrom": {
132934
+ "name": "SbbElement",
132935
+ "module": "core/base-elements/element.js"
132936
+ }
132937
+ },
132938
+ {
132939
+ "kind": "field",
132940
+ "name": "_hydrationComplete",
132941
+ "privacy": "private",
132942
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
132943
+ "inheritedFrom": {
132944
+ "name": "SbbElement",
132945
+ "module": "core/base-elements/element.js"
132946
+ }
132947
+ },
132948
+ {
132949
+ "kind": "field",
132950
+ "name": "_resolveHydration",
132951
+ "type": {
132952
+ "text": "(hydrationRequired: boolean) => void"
132953
+ },
132954
+ "privacy": "private",
132955
+ "inheritedFrom": {
132956
+ "name": "SbbElement",
132957
+ "module": "core/base-elements/element.js"
132958
+ }
132959
+ },
132960
+ {
132961
+ "kind": "field",
132962
+ "name": "hydrationRequired",
132963
+ "type": {
132964
+ "text": "boolean"
132965
+ },
132966
+ "privacy": "protected",
132967
+ "description": "Returns whether hydration is required and not completed.",
132968
+ "readonly": true,
132969
+ "inheritedFrom": {
132970
+ "name": "SbbElement",
132971
+ "module": "core/base-elements/element.js"
132972
+ },
132973
+ "default": "!!this.shadowRoot"
132974
+ },
132975
+ {
132976
+ "kind": "method",
132977
+ "name": "toggleState",
132978
+ "privacy": "protected",
132979
+ "return": {
132980
+ "type": {
132981
+ "text": "void"
132982
+ }
132983
+ },
132984
+ "parameters": [
132985
+ {
132986
+ "name": "value",
132987
+ "type": {
132988
+ "text": "string"
132989
+ }
132990
+ },
132991
+ {
132992
+ "name": "force",
132993
+ "optional": true,
132994
+ "type": {
132995
+ "text": "boolean"
132996
+ }
132997
+ }
132998
+ ],
132999
+ "inheritedFrom": {
133000
+ "name": "SbbElement",
133001
+ "module": "core/base-elements/element.js"
133002
+ }
133003
+ },
133004
+ {
133005
+ "kind": "field",
133006
+ "name": "['_$sbbElement$']",
133007
+ "type": {
133008
+ "text": "boolean"
133009
+ },
133010
+ "privacy": "public",
133011
+ "static": true,
133012
+ "default": "true",
133013
+ "inheritedFrom": {
133014
+ "name": "SbbElement",
133015
+ "module": "core/base-elements/element.js"
133016
+ }
133017
+ },
133018
+ {
133019
+ "kind": "field",
133020
+ "name": "_controllers",
133021
+ "type": {
133022
+ "text": "Set<SbbReactiveController> | undefined"
133023
+ },
133024
+ "privacy": "private",
133025
+ "inheritedFrom": {
133026
+ "name": "SbbElement",
133027
+ "module": "core/base-elements/element.js"
133028
+ }
133029
+ }
133030
+ ],
133031
+ "superclass": {
133032
+ "name": "SbbElement",
133033
+ "module": "core/base-elements.js"
133034
+ },
133035
+ "tagName": "sbb-train-blocked-passage",
133036
+ "customElement": true
133037
+ }
133038
+ ],
133039
+ "exports": [
133040
+ {
133041
+ "kind": "js",
133042
+ "name": "SbbTrainBlockedPassageElement",
133043
+ "declaration": {
133044
+ "name": "SbbTrainBlockedPassageElement",
133045
+ "module": "train/train-blocked-passage/train-blocked-passage.component.js"
133046
+ }
133047
+ }
133048
+ ]
133049
+ },
132875
133050
  {
132876
133051
  "kind": "javascript-module",
132877
133052
  "path": "train/train-formation/train-formation.component.js",
@@ -133204,155 +133379,6 @@
133204
133379
  }
133205
133380
  ]
133206
133381
  },
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
133382
  {
133357
133383
  "kind": "javascript-module",
133358
133384
  "path": "train/train-wagon/train-wagon.component.js",