@sbb-esta/lyne-elements-dev 4.14.2-dev.1785765449 → 4.14.3-dev.1785767609

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/custom-elements.json +1180 -1180
  2. package/package.json +2 -2
@@ -14471,6 +14471,165 @@
14471
14471
  }
14472
14472
  ]
14473
14473
  },
14474
+ {
14475
+ "kind": "javascript-module",
14476
+ "path": "lead-container/lead-container.component.js",
14477
+ "declarations": [
14478
+ {
14479
+ "kind": "class",
14480
+ "description": "The `sbb-lead-container` can be used for product pages to display a lead image and following content.",
14481
+ "name": "SbbLeadContainerElement",
14482
+ "slots": [
14483
+ {
14484
+ "description": "Use the unnamed slot to add any content to the container.",
14485
+ "name": ""
14486
+ },
14487
+ {
14488
+ "description": "Use the image slot to provide the lead image. `sbb-image`, `img` and `picture` elements are supported. For other elements the aspect ratio has to be set manually.",
14489
+ "name": "image"
14490
+ }
14491
+ ],
14492
+ "members": [
14493
+ {
14494
+ "kind": "field",
14495
+ "name": "elementName",
14496
+ "type": {
14497
+ "text": "string"
14498
+ },
14499
+ "privacy": "public",
14500
+ "static": true,
14501
+ "readonly": true,
14502
+ "default": "'sbb-lead-container'",
14503
+ "inheritedFrom": {
14504
+ "name": "SbbElement",
14505
+ "module": "core/base-elements/element.js"
14506
+ }
14507
+ },
14508
+ {
14509
+ "kind": "field",
14510
+ "name": "_hydrationRequired",
14511
+ "type": {
14512
+ "text": "boolean"
14513
+ },
14514
+ "privacy": "private",
14515
+ "default": "!!this.shadowRoot",
14516
+ "inheritedFrom": {
14517
+ "name": "SbbHydrationMixin",
14518
+ "module": "core/mixins/hydration-mixin.js"
14519
+ }
14520
+ },
14521
+ {
14522
+ "kind": "field",
14523
+ "name": "_hydrationComplete",
14524
+ "privacy": "private",
14525
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
14526
+ "inheritedFrom": {
14527
+ "name": "SbbHydrationMixin",
14528
+ "module": "core/mixins/hydration-mixin.js"
14529
+ }
14530
+ },
14531
+ {
14532
+ "kind": "field",
14533
+ "name": "_resolveHydration",
14534
+ "type": {
14535
+ "text": "(hydrationRequired: boolean) => void"
14536
+ },
14537
+ "privacy": "private",
14538
+ "inheritedFrom": {
14539
+ "name": "SbbHydrationMixin",
14540
+ "module": "core/mixins/hydration-mixin.js"
14541
+ }
14542
+ },
14543
+ {
14544
+ "kind": "field",
14545
+ "name": "hydrationRequired",
14546
+ "type": {
14547
+ "text": "boolean"
14548
+ },
14549
+ "privacy": "protected",
14550
+ "description": "Returns whether hydration is required and not completed.",
14551
+ "readonly": true,
14552
+ "inheritedFrom": {
14553
+ "name": "SbbHydrationMixin",
14554
+ "module": "core/mixins/hydration-mixin.js"
14555
+ },
14556
+ "default": "!!this.shadowRoot"
14557
+ },
14558
+ {
14559
+ "kind": "method",
14560
+ "name": "toggleState",
14561
+ "privacy": "protected",
14562
+ "return": {
14563
+ "type": {
14564
+ "text": "void"
14565
+ }
14566
+ },
14567
+ "parameters": [
14568
+ {
14569
+ "name": "value",
14570
+ "type": {
14571
+ "text": "string"
14572
+ }
14573
+ },
14574
+ {
14575
+ "name": "force",
14576
+ "optional": true,
14577
+ "type": {
14578
+ "text": "boolean"
14579
+ }
14580
+ }
14581
+ ],
14582
+ "inheritedFrom": {
14583
+ "name": "SbbElementInternalsMixin",
14584
+ "module": "core/mixins/element-internals-mixin.js"
14585
+ }
14586
+ },
14587
+ {
14588
+ "kind": "field",
14589
+ "name": "['_$sbbElement$']",
14590
+ "type": {
14591
+ "text": "boolean"
14592
+ },
14593
+ "privacy": "public",
14594
+ "static": true,
14595
+ "default": "true",
14596
+ "inheritedFrom": {
14597
+ "name": "SbbElement",
14598
+ "module": "core/base-elements/element.js"
14599
+ }
14600
+ },
14601
+ {
14602
+ "kind": "field",
14603
+ "name": "_controllers",
14604
+ "type": {
14605
+ "text": "Set<SbbReactiveController> | undefined"
14606
+ },
14607
+ "privacy": "private",
14608
+ "inheritedFrom": {
14609
+ "name": "SbbElement",
14610
+ "module": "core/base-elements/element.js"
14611
+ }
14612
+ }
14613
+ ],
14614
+ "superclass": {
14615
+ "name": "SbbElement",
14616
+ "module": "core/base-elements.js"
14617
+ },
14618
+ "tagName": "sbb-lead-container",
14619
+ "customElement": true
14620
+ }
14621
+ ],
14622
+ "exports": [
14623
+ {
14624
+ "kind": "js",
14625
+ "name": "SbbLeadContainerElement",
14626
+ "declaration": {
14627
+ "name": "SbbLeadContainerElement",
14628
+ "module": "lead-container/lead-container.component.js"
14629
+ }
14630
+ }
14631
+ ]
14632
+ },
14474
14633
  {
14475
14634
  "kind": "javascript-module",
14476
14635
  "path": "journey-header/journey-header.component.js",
@@ -14818,165 +14977,6 @@
14818
14977
  }
14819
14978
  ]
14820
14979
  },
14821
- {
14822
- "kind": "javascript-module",
14823
- "path": "lead-container/lead-container.component.js",
14824
- "declarations": [
14825
- {
14826
- "kind": "class",
14827
- "description": "The `sbb-lead-container` can be used for product pages to display a lead image and following content.",
14828
- "name": "SbbLeadContainerElement",
14829
- "slots": [
14830
- {
14831
- "description": "Use the unnamed slot to add any content to the container.",
14832
- "name": ""
14833
- },
14834
- {
14835
- "description": "Use the image slot to provide the lead image. `sbb-image`, `img` and `picture` elements are supported. For other elements the aspect ratio has to be set manually.",
14836
- "name": "image"
14837
- }
14838
- ],
14839
- "members": [
14840
- {
14841
- "kind": "field",
14842
- "name": "elementName",
14843
- "type": {
14844
- "text": "string"
14845
- },
14846
- "privacy": "public",
14847
- "static": true,
14848
- "readonly": true,
14849
- "default": "'sbb-lead-container'",
14850
- "inheritedFrom": {
14851
- "name": "SbbElement",
14852
- "module": "core/base-elements/element.js"
14853
- }
14854
- },
14855
- {
14856
- "kind": "field",
14857
- "name": "_hydrationRequired",
14858
- "type": {
14859
- "text": "boolean"
14860
- },
14861
- "privacy": "private",
14862
- "default": "!!this.shadowRoot",
14863
- "inheritedFrom": {
14864
- "name": "SbbHydrationMixin",
14865
- "module": "core/mixins/hydration-mixin.js"
14866
- }
14867
- },
14868
- {
14869
- "kind": "field",
14870
- "name": "_hydrationComplete",
14871
- "privacy": "private",
14872
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
14873
- "inheritedFrom": {
14874
- "name": "SbbHydrationMixin",
14875
- "module": "core/mixins/hydration-mixin.js"
14876
- }
14877
- },
14878
- {
14879
- "kind": "field",
14880
- "name": "_resolveHydration",
14881
- "type": {
14882
- "text": "(hydrationRequired: boolean) => void"
14883
- },
14884
- "privacy": "private",
14885
- "inheritedFrom": {
14886
- "name": "SbbHydrationMixin",
14887
- "module": "core/mixins/hydration-mixin.js"
14888
- }
14889
- },
14890
- {
14891
- "kind": "field",
14892
- "name": "hydrationRequired",
14893
- "type": {
14894
- "text": "boolean"
14895
- },
14896
- "privacy": "protected",
14897
- "description": "Returns whether hydration is required and not completed.",
14898
- "readonly": true,
14899
- "inheritedFrom": {
14900
- "name": "SbbHydrationMixin",
14901
- "module": "core/mixins/hydration-mixin.js"
14902
- },
14903
- "default": "!!this.shadowRoot"
14904
- },
14905
- {
14906
- "kind": "method",
14907
- "name": "toggleState",
14908
- "privacy": "protected",
14909
- "return": {
14910
- "type": {
14911
- "text": "void"
14912
- }
14913
- },
14914
- "parameters": [
14915
- {
14916
- "name": "value",
14917
- "type": {
14918
- "text": "string"
14919
- }
14920
- },
14921
- {
14922
- "name": "force",
14923
- "optional": true,
14924
- "type": {
14925
- "text": "boolean"
14926
- }
14927
- }
14928
- ],
14929
- "inheritedFrom": {
14930
- "name": "SbbElementInternalsMixin",
14931
- "module": "core/mixins/element-internals-mixin.js"
14932
- }
14933
- },
14934
- {
14935
- "kind": "field",
14936
- "name": "['_$sbbElement$']",
14937
- "type": {
14938
- "text": "boolean"
14939
- },
14940
- "privacy": "public",
14941
- "static": true,
14942
- "default": "true",
14943
- "inheritedFrom": {
14944
- "name": "SbbElement",
14945
- "module": "core/base-elements/element.js"
14946
- }
14947
- },
14948
- {
14949
- "kind": "field",
14950
- "name": "_controllers",
14951
- "type": {
14952
- "text": "Set<SbbReactiveController> | undefined"
14953
- },
14954
- "privacy": "private",
14955
- "inheritedFrom": {
14956
- "name": "SbbElement",
14957
- "module": "core/base-elements/element.js"
14958
- }
14959
- }
14960
- ],
14961
- "superclass": {
14962
- "name": "SbbElement",
14963
- "module": "core/base-elements.js"
14964
- },
14965
- "tagName": "sbb-lead-container",
14966
- "customElement": true
14967
- }
14968
- ],
14969
- "exports": [
14970
- {
14971
- "kind": "js",
14972
- "name": "SbbLeadContainerElement",
14973
- "declaration": {
14974
- "name": "SbbLeadContainerElement",
14975
- "module": "lead-container/lead-container.component.js"
14976
- }
14977
- }
14978
- ]
14979
- },
14980
14980
  {
14981
14981
  "kind": "javascript-module",
14982
14982
  "path": "link/block-link-button.js",
@@ -100441,15 +100441,15 @@
100441
100441
  },
100442
100442
  {
100443
100443
  "kind": "javascript-module",
100444
- "path": "link/block-link/block-link.component.js",
100444
+ "path": "link/block-link-button/block-link-button.component.js",
100445
100445
  "declarations": [
100446
100446
  {
100447
100447
  "kind": "class",
100448
- "description": "It displays a link enhanced with the SBB Design.",
100449
- "name": "SbbBlockLinkElement",
100448
+ "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
100449
+ "name": "SbbBlockLinkButtonElement",
100450
100450
  "slots": [
100451
100451
  {
100452
- "description": "Use the unnamed slot to add content to the `sbb-block-link`.",
100452
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
100453
100453
  "name": ""
100454
100454
  },
100455
100455
  {
@@ -100471,7 +100471,7 @@
100471
100471
  "name": "SbbElement",
100472
100472
  "module": "core/base-elements/element.js"
100473
100473
  },
100474
- "default": "'sbb-block-link'"
100474
+ "default": "'sbb-block-link-button'"
100475
100475
  },
100476
100476
  {
100477
100477
  "kind": "field",
@@ -100600,6 +100600,22 @@
100600
100600
  "module": "icon/icon-name-mixin.js"
100601
100601
  }
100602
100602
  },
100603
+ {
100604
+ "kind": "field",
100605
+ "name": "disabledInteractive",
100606
+ "type": {
100607
+ "text": "boolean"
100608
+ },
100609
+ "privacy": "public",
100610
+ "default": "false",
100611
+ "description": "Whether the button should be aria-disabled but stay interactive.",
100612
+ "attribute": "disabled-interactive",
100613
+ "reflects": true,
100614
+ "inheritedFrom": {
100615
+ "name": "SbbDisabledInteractiveMixin",
100616
+ "module": "core/mixins/disabled-mixin.js"
100617
+ }
100618
+ },
100603
100619
  {
100604
100620
  "kind": "field",
100605
100621
  "name": "disabled",
@@ -100646,151 +100662,479 @@
100646
100662
  },
100647
100663
  {
100648
100664
  "kind": "field",
100649
- "name": "href",
100665
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
100666
+ "type": {
100667
+ "text": "array"
100668
+ },
100669
+ "privacy": "private",
100670
+ "readonly": true,
100671
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
100672
+ "inheritedFrom": {
100673
+ "name": "SbbButtonBaseElement",
100674
+ "module": "core/base-elements/button-base-element.js"
100675
+ }
100676
+ },
100677
+ {
100678
+ "kind": "field",
100679
+ "name": "value",
100650
100680
  "type": {
100651
100681
  "text": "string"
100652
100682
  },
100653
100683
  "privacy": "public",
100684
+ "inheritedFrom": {
100685
+ "name": "SbbButtonBaseElement",
100686
+ "module": "core/base-elements/button-base-element.js"
100687
+ },
100654
100688
  "default": "''",
100655
- "description": "The href value you want to link to.",
100656
- "attribute": "href",
100657
- "reflects": true,
100689
+ "description": "Value of the form element.",
100690
+ "attribute": "value"
100691
+ },
100692
+ {
100693
+ "kind": "field",
100694
+ "name": "type",
100695
+ "privacy": "public",
100696
+ "description": "The type attribute to use for the button.",
100697
+ "default": "'button'",
100698
+ "type": {
100699
+ "text": "SbbButtonType"
100700
+ },
100701
+ "attribute": "type",
100658
100702
  "inheritedFrom": {
100659
- "name": "SbbLinkBaseElement",
100660
- "module": "core/base-elements/link-base-element.js"
100703
+ "name": "SbbButtonBaseElement",
100704
+ "module": "core/base-elements/button-base-element.js"
100661
100705
  }
100662
100706
  },
100663
100707
  {
100664
100708
  "kind": "field",
100665
- "name": "target",
100709
+ "name": "form",
100666
100710
  "type": {
100667
- "text": "LinkTargetType | string"
100711
+ "text": "HTMLFormElement | null"
100668
100712
  },
100669
100713
  "privacy": "public",
100670
- "default": "''",
100671
- "description": "Where to display the linked URL.",
100672
- "attribute": "target",
100673
- "reflects": true,
100714
+ "description": "The `<form>` element to associate the button with.",
100674
100715
  "inheritedFrom": {
100675
- "name": "SbbLinkBaseElement",
100676
- "module": "core/base-elements/link-base-element.js"
100677
- }
100716
+ "name": "SbbButtonBaseElement",
100717
+ "module": "core/base-elements/button-base-element.js"
100718
+ },
100719
+ "attribute": "form"
100678
100720
  },
100679
100721
  {
100680
100722
  "kind": "field",
100681
- "name": "rel",
100723
+ "name": "_formId",
100682
100724
  "type": {
100683
100725
  "text": "string"
100684
100726
  },
100685
- "privacy": "public",
100727
+ "privacy": "private",
100686
100728
  "default": "''",
100687
- "description": "The relationship of the linked URL as space-separated link types.",
100688
- "attribute": "rel",
100689
- "reflects": true,
100690
100729
  "inheritedFrom": {
100691
- "name": "SbbLinkBaseElement",
100692
- "module": "core/base-elements/link-base-element.js"
100730
+ "name": "SbbButtonBaseElement",
100731
+ "module": "core/base-elements/button-base-element.js"
100693
100732
  }
100694
100733
  },
100695
100734
  {
100696
100735
  "kind": "field",
100697
- "name": "download",
100736
+ "name": "_handleButtonClick",
100737
+ "privacy": "private",
100738
+ "inheritedFrom": {
100739
+ "name": "SbbButtonBaseElement",
100740
+ "module": "core/base-elements/button-base-element.js"
100741
+ }
100742
+ },
100743
+ {
100744
+ "kind": "method",
100745
+ "name": "_requestSubmit",
100746
+ "privacy": "private",
100747
+ "return": {
100748
+ "type": {
100749
+ "text": "void"
100750
+ }
100751
+ },
100752
+ "parameters": [
100753
+ {
100754
+ "name": "form",
100755
+ "type": {
100756
+ "text": "HTMLFormElement"
100757
+ }
100758
+ }
100759
+ ],
100760
+ "inheritedFrom": {
100761
+ "name": "SbbButtonBaseElement",
100762
+ "module": "core/base-elements/button-base-element.js"
100763
+ }
100764
+ },
100765
+ {
100766
+ "kind": "field",
100767
+ "name": "_formKeyDown",
100768
+ "privacy": "private",
100769
+ "inheritedFrom": {
100770
+ "name": "SbbButtonBaseElement",
100771
+ "module": "core/base-elements/button-base-element.js"
100772
+ }
100773
+ },
100774
+ {
100775
+ "kind": "field",
100776
+ "name": "formAssociated",
100698
100777
  "type": {
100699
100778
  "text": "boolean"
100700
100779
  },
100701
100780
  "privacy": "public",
100702
- "default": "false",
100703
- "description": "Whether the browser will show the download dialog on click.",
100704
- "attribute": "download",
100705
- "reflects": true,
100781
+ "static": true,
100782
+ "default": "true",
100706
100783
  "inheritedFrom": {
100707
- "name": "SbbLinkBaseElement",
100708
- "module": "core/base-elements/link-base-element.js"
100784
+ "name": "SbbFormAssociatedMixin",
100785
+ "module": "core/mixins/form-associated-mixin.js"
100709
100786
  }
100710
100787
  },
100711
100788
  {
100712
100789
  "kind": "field",
100713
- "name": "accessibilityLabel",
100790
+ "name": "name",
100791
+ "privacy": "public",
100792
+ "description": "Name of the form element. Will be read from name attribute.",
100714
100793
  "type": {
100715
100794
  "text": "string"
100716
100795
  },
100796
+ "attribute": "name",
100797
+ "inheritedFrom": {
100798
+ "name": "SbbFormAssociatedMixin",
100799
+ "module": "core/mixins/form-associated-mixin.js"
100800
+ }
100801
+ },
100802
+ {
100803
+ "kind": "field",
100804
+ "name": "validity",
100805
+ "type": {
100806
+ "text": "ValidityState"
100807
+ },
100717
100808
  "privacy": "public",
100718
- "default": "''",
100719
- "description": "This will be forwarded as aria-label to the inner anchor element.",
100720
- "attribute": "accessibility-label",
100809
+ "description": "Returns the ValidityState object for this element.",
100810
+ "readonly": true,
100721
100811
  "inheritedFrom": {
100722
- "name": "SbbLinkBaseElement",
100723
- "module": "core/base-elements/link-base-element.js"
100812
+ "name": "SbbFormAssociatedMixin",
100813
+ "module": "core/mixins/form-associated-mixin.js"
100724
100814
  }
100725
100815
  },
100726
100816
  {
100727
100817
  "kind": "field",
100728
- "name": "accessibilityCurrent",
100818
+ "name": "validationMessage",
100729
100819
  "type": {
100730
100820
  "text": "string"
100731
100821
  },
100732
100822
  "privacy": "public",
100733
- "default": "''",
100734
- "description": "This will be forwarded as aria-current to the inner anchor element.",
100735
- "attribute": "accessibility-current",
100823
+ "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.",
100824
+ "readonly": true,
100736
100825
  "inheritedFrom": {
100737
- "name": "SbbLinkBaseElement",
100738
- "module": "core/base-elements/link-base-element.js"
100826
+ "name": "SbbFormAssociatedMixin",
100827
+ "module": "core/mixins/form-associated-mixin.js"
100739
100828
  }
100740
100829
  },
100741
100830
  {
100742
100831
  "kind": "field",
100743
- "name": "language",
100744
- "privacy": "protected",
100745
- "default": "new SbbLanguageController(this)",
100832
+ "name": "willValidate",
100833
+ "type": {
100834
+ "text": "boolean"
100835
+ },
100836
+ "privacy": "public",
100837
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
100838
+ "readonly": true,
100746
100839
  "inheritedFrom": {
100747
- "name": "SbbLinkBaseElement",
100748
- "module": "core/base-elements/link-base-element.js"
100840
+ "name": "SbbFormAssociatedMixin",
100841
+ "module": "core/mixins/form-associated-mixin.js"
100749
100842
  }
100750
100843
  },
100751
100844
  {
100752
100845
  "kind": "field",
100753
- "name": "anchorRole",
100846
+ "name": "_validityStates",
100847
+ "privacy": "private",
100848
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
100849
+ "inheritedFrom": {
100850
+ "name": "SbbFormAssociatedMixin",
100851
+ "module": "core/mixins/form-associated-mixin.js"
100852
+ }
100853
+ },
100854
+ {
100855
+ "kind": "field",
100856
+ "name": "formDisabled",
100754
100857
  "type": {
100755
- "text": "string | null"
100858
+ "text": "boolean"
100756
100859
  },
100757
100860
  "privacy": "protected",
100758
- "readonly": true,
100759
- "default": "null",
100861
+ "default": "false",
100862
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
100760
100863
  "inheritedFrom": {
100761
- "name": "SbbLinkBaseElement",
100762
- "module": "core/base-elements/link-base-element.js"
100864
+ "name": "SbbFormAssociatedMixin",
100865
+ "module": "core/mixins/form-associated-mixin.js"
100763
100866
  }
100764
100867
  },
100765
100868
  {
100766
- "kind": "field",
100767
- "name": "_evaluateRelAttribute",
100869
+ "kind": "method",
100870
+ "name": "checkValidity",
100871
+ "privacy": "public",
100872
+ "return": {
100873
+ "type": {
100874
+ "text": "boolean"
100875
+ }
100876
+ },
100877
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
100878
+ "inheritedFrom": {
100879
+ "name": "SbbFormAssociatedMixin",
100880
+ "module": "core/mixins/form-associated-mixin.js"
100881
+ }
100882
+ },
100883
+ {
100884
+ "kind": "method",
100885
+ "name": "reportValidity",
100886
+ "privacy": "public",
100887
+ "return": {
100888
+ "type": {
100889
+ "text": "boolean"
100890
+ }
100891
+ },
100892
+ "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.",
100893
+ "inheritedFrom": {
100894
+ "name": "SbbFormAssociatedMixin",
100895
+ "module": "core/mixins/form-associated-mixin.js"
100896
+ }
100897
+ },
100898
+ {
100899
+ "kind": "method",
100900
+ "name": "setCustomValidity",
100901
+ "privacy": "public",
100902
+ "return": {
100903
+ "type": {
100904
+ "text": "void"
100905
+ }
100906
+ },
100907
+ "parameters": [
100908
+ {
100909
+ "name": "message",
100910
+ "type": {
100911
+ "text": "string"
100912
+ }
100913
+ }
100914
+ ],
100915
+ "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.",
100916
+ "inheritedFrom": {
100917
+ "name": "SbbFormAssociatedMixin",
100918
+ "module": "core/mixins/form-associated-mixin.js"
100919
+ }
100920
+ },
100921
+ {
100922
+ "kind": "method",
100923
+ "name": "_hasDisabledAncestor",
100768
100924
  "privacy": "private",
100925
+ "return": {
100926
+ "type": {
100927
+ "text": "boolean"
100928
+ }
100929
+ },
100769
100930
  "inheritedFrom": {
100770
- "name": "SbbLinkBaseElement",
100771
- "module": "core/base-elements/link-base-element.js"
100931
+ "name": "SbbFormAssociatedMixin",
100932
+ "module": "core/mixins/form-associated-mixin.js"
100772
100933
  }
100773
100934
  },
100774
100935
  {
100775
100936
  "kind": "method",
100776
- "name": "renderLink",
100937
+ "name": "updateFormValue",
100777
100938
  "privacy": "protected",
100778
100939
  "return": {
100779
100940
  "type": {
100780
- "text": "TemplateResult"
100941
+ "text": "void"
100942
+ }
100943
+ },
100944
+ "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",
100945
+ "inheritedFrom": {
100946
+ "name": "SbbFormAssociatedMixin",
100947
+ "module": "core/mixins/form-associated-mixin.js"
100948
+ }
100949
+ },
100950
+ {
100951
+ "kind": "method",
100952
+ "name": "formState",
100953
+ "privacy": "protected",
100954
+ "return": {
100955
+ "type": {
100956
+ "text": "FormRestoreState"
100957
+ }
100958
+ },
100959
+ "inheritedFrom": {
100960
+ "name": "SbbFormAssociatedMixin",
100961
+ "module": "core/mixins/form-associated-mixin.js"
100962
+ }
100963
+ },
100964
+ {
100965
+ "kind": "method",
100966
+ "name": "setValidityFlag",
100967
+ "privacy": "protected",
100968
+ "return": {
100969
+ "type": {
100970
+ "text": "void"
100781
100971
  }
100782
100972
  },
100783
100973
  "parameters": [
100784
100974
  {
100785
- "name": "renderContent",
100975
+ "name": "flag",
100786
100976
  "type": {
100787
- "text": "TemplateResult"
100977
+ "text": "T"
100978
+ }
100979
+ },
100980
+ {
100981
+ "name": "message",
100982
+ "type": {
100983
+ "text": "string"
100984
+ }
100985
+ },
100986
+ {
100987
+ "name": "flagValue",
100988
+ "optional": true,
100989
+ "type": {
100990
+ "text": "ValidityStateFlags[T]"
100788
100991
  }
100789
100992
  }
100790
100993
  ],
100994
+ "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).",
100791
100995
  "inheritedFrom": {
100792
- "name": "SbbLinkBaseElement",
100793
- "module": "core/base-elements/link-base-element.js"
100996
+ "name": "SbbFormAssociatedMixin",
100997
+ "module": "core/mixins/form-associated-mixin.js"
100998
+ }
100999
+ },
101000
+ {
101001
+ "kind": "method",
101002
+ "name": "removeValidityFlag",
101003
+ "privacy": "protected",
101004
+ "return": {
101005
+ "type": {
101006
+ "text": "void"
101007
+ }
101008
+ },
101009
+ "parameters": [
101010
+ {
101011
+ "name": "flag",
101012
+ "type": {
101013
+ "text": "T"
101014
+ }
101015
+ }
101016
+ ],
101017
+ "description": "Removes the validity state flag entry and updates validity state.",
101018
+ "inheritedFrom": {
101019
+ "name": "SbbFormAssociatedMixin",
101020
+ "module": "core/mixins/form-associated-mixin.js"
101021
+ }
101022
+ },
101023
+ {
101024
+ "kind": "method",
101025
+ "name": "validate",
101026
+ "privacy": "protected",
101027
+ "return": {
101028
+ "type": {
101029
+ "text": "void"
101030
+ }
101031
+ },
101032
+ "description": "To be called whenever the current element needs to be validated.",
101033
+ "inheritedFrom": {
101034
+ "name": "SbbFormAssociatedMixin",
101035
+ "module": "core/mixins/form-associated-mixin.js"
101036
+ }
101037
+ },
101038
+ {
101039
+ "kind": "method",
101040
+ "name": "shouldValidate",
101041
+ "privacy": "protected",
101042
+ "return": {
101043
+ "type": {
101044
+ "text": "boolean"
101045
+ }
101046
+ },
101047
+ "parameters": [
101048
+ {
101049
+ "name": "name",
101050
+ "type": {
101051
+ "text": "PropertyKey | undefined"
101052
+ }
101053
+ }
101054
+ ],
101055
+ "description": "Whether validation should be run on a property change with the given name.",
101056
+ "inheritedFrom": {
101057
+ "name": "SbbFormAssociatedMixin",
101058
+ "module": "core/mixins/form-associated-mixin.js"
101059
+ }
101060
+ },
101061
+ {
101062
+ "kind": "method",
101063
+ "name": "_setInternalValidity",
101064
+ "privacy": "private",
101065
+ "return": {
101066
+ "type": {
101067
+ "text": "void"
101068
+ }
101069
+ },
101070
+ "inheritedFrom": {
101071
+ "name": "SbbFormAssociatedMixin",
101072
+ "module": "core/mixins/form-associated-mixin.js"
101073
+ }
101074
+ },
101075
+ {
101076
+ "kind": "field",
101077
+ "name": "role",
101078
+ "type": {
101079
+ "text": "ElementInternals['role']"
101080
+ },
101081
+ "privacy": "public",
101082
+ "static": true,
101083
+ "readonly": true,
101084
+ "default": "'button'",
101085
+ "inheritedFrom": {
101086
+ "name": "SbbButtonLikeBaseElement",
101087
+ "module": "core/base-elements/button-base-element.js"
101088
+ }
101089
+ },
101090
+ {
101091
+ "kind": "field",
101092
+ "name": "_preventScrollOnSpaceKeydown",
101093
+ "privacy": "private",
101094
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
101095
+ "parameters": [
101096
+ {
101097
+ "description": "The origin event.",
101098
+ "name": "event"
101099
+ }
101100
+ ],
101101
+ "inheritedFrom": {
101102
+ "name": "SbbButtonLikeBaseElement",
101103
+ "module": "core/base-elements/button-base-element.js"
101104
+ }
101105
+ },
101106
+ {
101107
+ "kind": "field",
101108
+ "name": "_removeActiveMarker",
101109
+ "privacy": "private",
101110
+ "inheritedFrom": {
101111
+ "name": "SbbButtonLikeBaseElement",
101112
+ "module": "core/base-elements/button-base-element.js"
101113
+ }
101114
+ },
101115
+ {
101116
+ "kind": "field",
101117
+ "name": "_dispatchClickEventOnSpaceKeyup",
101118
+ "privacy": "private",
101119
+ "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.",
101120
+ "parameters": [
101121
+ {
101122
+ "description": "The origin event.",
101123
+ "name": "event"
101124
+ }
101125
+ ],
101126
+ "inheritedFrom": {
101127
+ "name": "SbbButtonLikeBaseElement",
101128
+ "module": "core/base-elements/button-base-element.js"
101129
+ }
101130
+ },
101131
+ {
101132
+ "kind": "field",
101133
+ "name": "_dispatchClickEvent",
101134
+ "privacy": "private",
101135
+ "inheritedFrom": {
101136
+ "name": "SbbButtonLikeBaseElement",
101137
+ "module": "core/base-elements/button-base-element.js"
100794
101138
  }
100795
101139
  },
100796
101140
  {
@@ -100945,15 +101289,15 @@
100945
101289
  "module": "link/common/block-link-common.js"
100946
101290
  },
100947
101291
  {
100948
- "name": "SbbDisabledMixin",
101292
+ "name": "SbbDisabledTabIndexActionMixin",
100949
101293
  "module": "core/mixins.js"
100950
101294
  }
100951
101295
  ],
100952
101296
  "superclass": {
100953
- "name": "SbbLinkBaseElement",
101297
+ "name": "SbbButtonBaseElement",
100954
101298
  "module": "core/base-elements.js"
100955
101299
  },
100956
- "tagName": "sbb-block-link",
101300
+ "tagName": "sbb-block-link-button",
100957
101301
  "customElement": true,
100958
101302
  "attributes": [
100959
101303
  {
@@ -100995,6 +101339,19 @@
100995
101339
  "module": "icon/icon-name-mixin.js"
100996
101340
  }
100997
101341
  },
101342
+ {
101343
+ "name": "disabled-interactive",
101344
+ "type": {
101345
+ "text": "boolean"
101346
+ },
101347
+ "default": "false",
101348
+ "description": "Whether the button should be aria-disabled but stay interactive.",
101349
+ "fieldName": "disabledInteractive",
101350
+ "inheritedFrom": {
101351
+ "name": "SbbDisabledInteractiveMixin",
101352
+ "module": "core/mixins/disabled-mixin.js"
101353
+ }
101354
+ },
100998
101355
  {
100999
101356
  "name": "disabled",
101000
101357
  "description": "Whether the component is disabled.",
@@ -101009,81 +101366,53 @@
101009
101366
  }
101010
101367
  },
101011
101368
  {
101012
- "name": "href",
101369
+ "name": "value",
101013
101370
  "type": {
101014
101371
  "text": "string"
101015
101372
  },
101016
101373
  "default": "''",
101017
- "description": "The href value you want to link to.",
101018
- "fieldName": "href",
101374
+ "description": "Value of the form element.",
101375
+ "fieldName": "value",
101019
101376
  "inheritedFrom": {
101020
- "name": "SbbLinkBaseElement",
101021
- "module": "core/base-elements/link-base-element.js"
101377
+ "name": "SbbButtonBaseElement",
101378
+ "module": "core/base-elements/button-base-element.js"
101022
101379
  }
101023
101380
  },
101024
101381
  {
101025
- "name": "target",
101382
+ "name": "type",
101383
+ "description": "The type attribute to use for the button.",
101384
+ "default": "'button'",
101026
101385
  "type": {
101027
- "text": "LinkTargetType | string"
101028
- },
101029
- "default": "''",
101030
- "description": "Where to display the linked URL.",
101031
- "fieldName": "target",
101032
- "inheritedFrom": {
101033
- "name": "SbbLinkBaseElement",
101034
- "module": "core/base-elements/link-base-element.js"
101035
- }
101036
- },
101037
- {
101038
- "name": "rel",
101039
- "type": {
101040
- "text": "string"
101041
- },
101042
- "default": "''",
101043
- "description": "The relationship of the linked URL as space-separated link types.",
101044
- "fieldName": "rel",
101045
- "inheritedFrom": {
101046
- "name": "SbbLinkBaseElement",
101047
- "module": "core/base-elements/link-base-element.js"
101048
- }
101049
- },
101050
- {
101051
- "name": "download",
101052
- "type": {
101053
- "text": "boolean"
101386
+ "text": "SbbButtonType"
101054
101387
  },
101055
- "default": "false",
101056
- "description": "Whether the browser will show the download dialog on click.",
101057
- "fieldName": "download",
101388
+ "fieldName": "type",
101058
101389
  "inheritedFrom": {
101059
- "name": "SbbLinkBaseElement",
101060
- "module": "core/base-elements/link-base-element.js"
101390
+ "name": "SbbButtonBaseElement",
101391
+ "module": "core/base-elements/button-base-element.js"
101061
101392
  }
101062
101393
  },
101063
101394
  {
101064
- "name": "accessibility-label",
101395
+ "name": "form",
101396
+ "description": "The `<form>` element to associate the button with.",
101065
101397
  "type": {
101066
- "text": "string"
101398
+ "text": "HTMLFormElement | null"
101067
101399
  },
101068
- "default": "''",
101069
- "description": "This will be forwarded as aria-label to the inner anchor element.",
101070
- "fieldName": "accessibilityLabel",
101400
+ "fieldName": "form",
101071
101401
  "inheritedFrom": {
101072
- "name": "SbbLinkBaseElement",
101073
- "module": "core/base-elements/link-base-element.js"
101402
+ "name": "SbbButtonBaseElement",
101403
+ "module": "core/base-elements/button-base-element.js"
101074
101404
  }
101075
101405
  },
101076
101406
  {
101077
- "name": "accessibility-current",
101407
+ "name": "name",
101408
+ "description": "Name of the form element. Will be read from name attribute.",
101078
101409
  "type": {
101079
101410
  "text": "string"
101080
101411
  },
101081
- "default": "''",
101082
- "description": "This will be forwarded as aria-current to the inner anchor element.",
101083
- "fieldName": "accessibilityCurrent",
101412
+ "fieldName": "name",
101084
101413
  "inheritedFrom": {
101085
- "name": "SbbLinkBaseElement",
101086
- "module": "core/base-elements/link-base-element.js"
101414
+ "name": "SbbFormAssociatedMixin",
101415
+ "module": "core/mixins/form-associated-mixin.js"
101087
101416
  }
101088
101417
  }
101089
101418
  ]
@@ -101092,25 +101421,25 @@
101092
101421
  "exports": [
101093
101422
  {
101094
101423
  "kind": "js",
101095
- "name": "SbbBlockLinkElement",
101424
+ "name": "SbbBlockLinkButtonElement",
101096
101425
  "declaration": {
101097
- "name": "SbbBlockLinkElement",
101098
- "module": "link/block-link/block-link.component.js"
101426
+ "name": "SbbBlockLinkButtonElement",
101427
+ "module": "link/block-link-button/block-link-button.component.js"
101099
101428
  }
101100
101429
  }
101101
101430
  ]
101102
101431
  },
101103
101432
  {
101104
101433
  "kind": "javascript-module",
101105
- "path": "link/block-link-button/block-link-button.component.js",
101434
+ "path": "link/block-link/block-link.component.js",
101106
101435
  "declarations": [
101107
101436
  {
101108
101437
  "kind": "class",
101109
- "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
101110
- "name": "SbbBlockLinkButtonElement",
101438
+ "description": "It displays a link enhanced with the SBB Design.",
101439
+ "name": "SbbBlockLinkElement",
101111
101440
  "slots": [
101112
101441
  {
101113
- "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
101442
+ "description": "Use the unnamed slot to add content to the `sbb-block-link`.",
101114
101443
  "name": ""
101115
101444
  },
101116
101445
  {
@@ -101132,7 +101461,7 @@
101132
101461
  "name": "SbbElement",
101133
101462
  "module": "core/base-elements/element.js"
101134
101463
  },
101135
- "default": "'sbb-block-link-button'"
101464
+ "default": "'sbb-block-link'"
101136
101465
  },
101137
101466
  {
101138
101467
  "kind": "field",
@@ -101261,22 +101590,6 @@
101261
101590
  "module": "icon/icon-name-mixin.js"
101262
101591
  }
101263
101592
  },
101264
- {
101265
- "kind": "field",
101266
- "name": "disabledInteractive",
101267
- "type": {
101268
- "text": "boolean"
101269
- },
101270
- "privacy": "public",
101271
- "default": "false",
101272
- "description": "Whether the button should be aria-disabled but stay interactive.",
101273
- "attribute": "disabled-interactive",
101274
- "reflects": true,
101275
- "inheritedFrom": {
101276
- "name": "SbbDisabledInteractiveMixin",
101277
- "module": "core/mixins/disabled-mixin.js"
101278
- }
101279
- },
101280
101593
  {
101281
101594
  "kind": "field",
101282
101595
  "name": "disabled",
@@ -101323,479 +101636,151 @@
101323
101636
  },
101324
101637
  {
101325
101638
  "kind": "field",
101326
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
101327
- "type": {
101328
- "text": "array"
101329
- },
101330
- "privacy": "private",
101331
- "readonly": true,
101332
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
101333
- "inheritedFrom": {
101334
- "name": "SbbButtonBaseElement",
101335
- "module": "core/base-elements/button-base-element.js"
101336
- }
101337
- },
101338
- {
101339
- "kind": "field",
101340
- "name": "value",
101639
+ "name": "href",
101341
101640
  "type": {
101342
101641
  "text": "string"
101343
101642
  },
101344
101643
  "privacy": "public",
101345
- "inheritedFrom": {
101346
- "name": "SbbButtonBaseElement",
101347
- "module": "core/base-elements/button-base-element.js"
101348
- },
101349
101644
  "default": "''",
101350
- "description": "Value of the form element.",
101351
- "attribute": "value"
101352
- },
101353
- {
101354
- "kind": "field",
101355
- "name": "type",
101356
- "privacy": "public",
101357
- "description": "The type attribute to use for the button.",
101358
- "default": "'button'",
101359
- "type": {
101360
- "text": "SbbButtonType"
101361
- },
101362
- "attribute": "type",
101645
+ "description": "The href value you want to link to.",
101646
+ "attribute": "href",
101647
+ "reflects": true,
101363
101648
  "inheritedFrom": {
101364
- "name": "SbbButtonBaseElement",
101365
- "module": "core/base-elements/button-base-element.js"
101649
+ "name": "SbbLinkBaseElement",
101650
+ "module": "core/base-elements/link-base-element.js"
101366
101651
  }
101367
101652
  },
101368
101653
  {
101369
101654
  "kind": "field",
101370
- "name": "form",
101655
+ "name": "target",
101371
101656
  "type": {
101372
- "text": "HTMLFormElement | null"
101657
+ "text": "LinkTargetType | string"
101373
101658
  },
101374
101659
  "privacy": "public",
101375
- "description": "The `<form>` element to associate the button with.",
101660
+ "default": "''",
101661
+ "description": "Where to display the linked URL.",
101662
+ "attribute": "target",
101663
+ "reflects": true,
101376
101664
  "inheritedFrom": {
101377
- "name": "SbbButtonBaseElement",
101378
- "module": "core/base-elements/button-base-element.js"
101379
- },
101380
- "attribute": "form"
101665
+ "name": "SbbLinkBaseElement",
101666
+ "module": "core/base-elements/link-base-element.js"
101667
+ }
101381
101668
  },
101382
101669
  {
101383
101670
  "kind": "field",
101384
- "name": "_formId",
101671
+ "name": "rel",
101385
101672
  "type": {
101386
101673
  "text": "string"
101387
101674
  },
101388
- "privacy": "private",
101675
+ "privacy": "public",
101389
101676
  "default": "''",
101677
+ "description": "The relationship of the linked URL as space-separated link types.",
101678
+ "attribute": "rel",
101679
+ "reflects": true,
101390
101680
  "inheritedFrom": {
101391
- "name": "SbbButtonBaseElement",
101392
- "module": "core/base-elements/button-base-element.js"
101393
- }
101394
- },
101395
- {
101396
- "kind": "field",
101397
- "name": "_handleButtonClick",
101398
- "privacy": "private",
101399
- "inheritedFrom": {
101400
- "name": "SbbButtonBaseElement",
101401
- "module": "core/base-elements/button-base-element.js"
101402
- }
101403
- },
101404
- {
101405
- "kind": "method",
101406
- "name": "_requestSubmit",
101407
- "privacy": "private",
101408
- "return": {
101409
- "type": {
101410
- "text": "void"
101411
- }
101412
- },
101413
- "parameters": [
101414
- {
101415
- "name": "form",
101416
- "type": {
101417
- "text": "HTMLFormElement"
101418
- }
101419
- }
101420
- ],
101421
- "inheritedFrom": {
101422
- "name": "SbbButtonBaseElement",
101423
- "module": "core/base-elements/button-base-element.js"
101424
- }
101425
- },
101426
- {
101427
- "kind": "field",
101428
- "name": "_formKeyDown",
101429
- "privacy": "private",
101430
- "inheritedFrom": {
101431
- "name": "SbbButtonBaseElement",
101432
- "module": "core/base-elements/button-base-element.js"
101681
+ "name": "SbbLinkBaseElement",
101682
+ "module": "core/base-elements/link-base-element.js"
101433
101683
  }
101434
101684
  },
101435
101685
  {
101436
101686
  "kind": "field",
101437
- "name": "formAssociated",
101687
+ "name": "download",
101438
101688
  "type": {
101439
101689
  "text": "boolean"
101440
101690
  },
101441
101691
  "privacy": "public",
101442
- "static": true,
101443
- "default": "true",
101692
+ "default": "false",
101693
+ "description": "Whether the browser will show the download dialog on click.",
101694
+ "attribute": "download",
101695
+ "reflects": true,
101444
101696
  "inheritedFrom": {
101445
- "name": "SbbFormAssociatedMixin",
101446
- "module": "core/mixins/form-associated-mixin.js"
101697
+ "name": "SbbLinkBaseElement",
101698
+ "module": "core/base-elements/link-base-element.js"
101447
101699
  }
101448
101700
  },
101449
101701
  {
101450
101702
  "kind": "field",
101451
- "name": "name",
101452
- "privacy": "public",
101453
- "description": "Name of the form element. Will be read from name attribute.",
101703
+ "name": "accessibilityLabel",
101454
101704
  "type": {
101455
101705
  "text": "string"
101456
101706
  },
101457
- "attribute": "name",
101458
- "inheritedFrom": {
101459
- "name": "SbbFormAssociatedMixin",
101460
- "module": "core/mixins/form-associated-mixin.js"
101461
- }
101462
- },
101463
- {
101464
- "kind": "field",
101465
- "name": "validity",
101466
- "type": {
101467
- "text": "ValidityState"
101468
- },
101469
101707
  "privacy": "public",
101470
- "description": "Returns the ValidityState object for this element.",
101471
- "readonly": true,
101708
+ "default": "''",
101709
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
101710
+ "attribute": "accessibility-label",
101472
101711
  "inheritedFrom": {
101473
- "name": "SbbFormAssociatedMixin",
101474
- "module": "core/mixins/form-associated-mixin.js"
101712
+ "name": "SbbLinkBaseElement",
101713
+ "module": "core/base-elements/link-base-element.js"
101475
101714
  }
101476
101715
  },
101477
101716
  {
101478
101717
  "kind": "field",
101479
- "name": "validationMessage",
101718
+ "name": "accessibilityCurrent",
101480
101719
  "type": {
101481
101720
  "text": "string"
101482
101721
  },
101483
101722
  "privacy": "public",
101484
- "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.",
101485
- "readonly": true,
101486
- "inheritedFrom": {
101487
- "name": "SbbFormAssociatedMixin",
101488
- "module": "core/mixins/form-associated-mixin.js"
101489
- }
101490
- },
101491
- {
101492
- "kind": "field",
101493
- "name": "willValidate",
101494
- "type": {
101495
- "text": "boolean"
101496
- },
101497
- "privacy": "public",
101498
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
101499
- "readonly": true,
101723
+ "default": "''",
101724
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
101725
+ "attribute": "accessibility-current",
101500
101726
  "inheritedFrom": {
101501
- "name": "SbbFormAssociatedMixin",
101502
- "module": "core/mixins/form-associated-mixin.js"
101727
+ "name": "SbbLinkBaseElement",
101728
+ "module": "core/base-elements/link-base-element.js"
101503
101729
  }
101504
101730
  },
101505
101731
  {
101506
101732
  "kind": "field",
101507
- "name": "_validityStates",
101508
- "privacy": "private",
101509
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
101733
+ "name": "language",
101734
+ "privacy": "protected",
101735
+ "default": "new SbbLanguageController(this)",
101510
101736
  "inheritedFrom": {
101511
- "name": "SbbFormAssociatedMixin",
101512
- "module": "core/mixins/form-associated-mixin.js"
101737
+ "name": "SbbLinkBaseElement",
101738
+ "module": "core/base-elements/link-base-element.js"
101513
101739
  }
101514
101740
  },
101515
101741
  {
101516
101742
  "kind": "field",
101517
- "name": "formDisabled",
101743
+ "name": "anchorRole",
101518
101744
  "type": {
101519
- "text": "boolean"
101745
+ "text": "string | null"
101520
101746
  },
101521
101747
  "privacy": "protected",
101522
- "default": "false",
101523
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
101524
- "inheritedFrom": {
101525
- "name": "SbbFormAssociatedMixin",
101526
- "module": "core/mixins/form-associated-mixin.js"
101527
- }
101528
- },
101529
- {
101530
- "kind": "method",
101531
- "name": "checkValidity",
101532
- "privacy": "public",
101533
- "return": {
101534
- "type": {
101535
- "text": "boolean"
101536
- }
101537
- },
101538
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
101539
- "inheritedFrom": {
101540
- "name": "SbbFormAssociatedMixin",
101541
- "module": "core/mixins/form-associated-mixin.js"
101542
- }
101543
- },
101544
- {
101545
- "kind": "method",
101546
- "name": "reportValidity",
101547
- "privacy": "public",
101548
- "return": {
101549
- "type": {
101550
- "text": "boolean"
101551
- }
101552
- },
101553
- "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.",
101554
- "inheritedFrom": {
101555
- "name": "SbbFormAssociatedMixin",
101556
- "module": "core/mixins/form-associated-mixin.js"
101557
- }
101558
- },
101559
- {
101560
- "kind": "method",
101561
- "name": "setCustomValidity",
101562
- "privacy": "public",
101563
- "return": {
101564
- "type": {
101565
- "text": "void"
101566
- }
101567
- },
101568
- "parameters": [
101569
- {
101570
- "name": "message",
101571
- "type": {
101572
- "text": "string"
101573
- }
101574
- }
101575
- ],
101576
- "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.",
101748
+ "readonly": true,
101749
+ "default": "null",
101577
101750
  "inheritedFrom": {
101578
- "name": "SbbFormAssociatedMixin",
101579
- "module": "core/mixins/form-associated-mixin.js"
101751
+ "name": "SbbLinkBaseElement",
101752
+ "module": "core/base-elements/link-base-element.js"
101580
101753
  }
101581
101754
  },
101582
101755
  {
101583
- "kind": "method",
101584
- "name": "_hasDisabledAncestor",
101756
+ "kind": "field",
101757
+ "name": "_evaluateRelAttribute",
101585
101758
  "privacy": "private",
101586
- "return": {
101587
- "type": {
101588
- "text": "boolean"
101589
- }
101590
- },
101591
- "inheritedFrom": {
101592
- "name": "SbbFormAssociatedMixin",
101593
- "module": "core/mixins/form-associated-mixin.js"
101594
- }
101595
- },
101596
- {
101597
- "kind": "method",
101598
- "name": "updateFormValue",
101599
- "privacy": "protected",
101600
- "return": {
101601
- "type": {
101602
- "text": "void"
101603
- }
101604
- },
101605
- "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",
101606
- "inheritedFrom": {
101607
- "name": "SbbFormAssociatedMixin",
101608
- "module": "core/mixins/form-associated-mixin.js"
101609
- }
101610
- },
101611
- {
101612
- "kind": "method",
101613
- "name": "formState",
101614
- "privacy": "protected",
101615
- "return": {
101616
- "type": {
101617
- "text": "FormRestoreState"
101618
- }
101619
- },
101620
- "inheritedFrom": {
101621
- "name": "SbbFormAssociatedMixin",
101622
- "module": "core/mixins/form-associated-mixin.js"
101623
- }
101624
- },
101625
- {
101626
- "kind": "method",
101627
- "name": "setValidityFlag",
101628
- "privacy": "protected",
101629
- "return": {
101630
- "type": {
101631
- "text": "void"
101632
- }
101633
- },
101634
- "parameters": [
101635
- {
101636
- "name": "flag",
101637
- "type": {
101638
- "text": "T"
101639
- }
101640
- },
101641
- {
101642
- "name": "message",
101643
- "type": {
101644
- "text": "string"
101645
- }
101646
- },
101647
- {
101648
- "name": "flagValue",
101649
- "optional": true,
101650
- "type": {
101651
- "text": "ValidityStateFlags[T]"
101652
- }
101653
- }
101654
- ],
101655
- "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).",
101656
- "inheritedFrom": {
101657
- "name": "SbbFormAssociatedMixin",
101658
- "module": "core/mixins/form-associated-mixin.js"
101659
- }
101660
- },
101661
- {
101662
- "kind": "method",
101663
- "name": "removeValidityFlag",
101664
- "privacy": "protected",
101665
- "return": {
101666
- "type": {
101667
- "text": "void"
101668
- }
101669
- },
101670
- "parameters": [
101671
- {
101672
- "name": "flag",
101673
- "type": {
101674
- "text": "T"
101675
- }
101676
- }
101677
- ],
101678
- "description": "Removes the validity state flag entry and updates validity state.",
101679
- "inheritedFrom": {
101680
- "name": "SbbFormAssociatedMixin",
101681
- "module": "core/mixins/form-associated-mixin.js"
101682
- }
101683
- },
101684
- {
101685
- "kind": "method",
101686
- "name": "validate",
101687
- "privacy": "protected",
101688
- "return": {
101689
- "type": {
101690
- "text": "void"
101691
- }
101692
- },
101693
- "description": "To be called whenever the current element needs to be validated.",
101694
101759
  "inheritedFrom": {
101695
- "name": "SbbFormAssociatedMixin",
101696
- "module": "core/mixins/form-associated-mixin.js"
101760
+ "name": "SbbLinkBaseElement",
101761
+ "module": "core/base-elements/link-base-element.js"
101697
101762
  }
101698
101763
  },
101699
101764
  {
101700
101765
  "kind": "method",
101701
- "name": "shouldValidate",
101766
+ "name": "renderLink",
101702
101767
  "privacy": "protected",
101703
101768
  "return": {
101704
101769
  "type": {
101705
- "text": "boolean"
101770
+ "text": "TemplateResult"
101706
101771
  }
101707
101772
  },
101708
101773
  "parameters": [
101709
101774
  {
101710
- "name": "name",
101775
+ "name": "renderContent",
101711
101776
  "type": {
101712
- "text": "PropertyKey | undefined"
101777
+ "text": "TemplateResult"
101713
101778
  }
101714
101779
  }
101715
101780
  ],
101716
- "description": "Whether validation should be run on a property change with the given name.",
101717
- "inheritedFrom": {
101718
- "name": "SbbFormAssociatedMixin",
101719
- "module": "core/mixins/form-associated-mixin.js"
101720
- }
101721
- },
101722
- {
101723
- "kind": "method",
101724
- "name": "_setInternalValidity",
101725
- "privacy": "private",
101726
- "return": {
101727
- "type": {
101728
- "text": "void"
101729
- }
101730
- },
101731
101781
  "inheritedFrom": {
101732
- "name": "SbbFormAssociatedMixin",
101733
- "module": "core/mixins/form-associated-mixin.js"
101734
- }
101735
- },
101736
- {
101737
- "kind": "field",
101738
- "name": "role",
101739
- "type": {
101740
- "text": "ElementInternals['role']"
101741
- },
101742
- "privacy": "public",
101743
- "static": true,
101744
- "readonly": true,
101745
- "default": "'button'",
101746
- "inheritedFrom": {
101747
- "name": "SbbButtonLikeBaseElement",
101748
- "module": "core/base-elements/button-base-element.js"
101749
- }
101750
- },
101751
- {
101752
- "kind": "field",
101753
- "name": "_preventScrollOnSpaceKeydown",
101754
- "privacy": "private",
101755
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
101756
- "parameters": [
101757
- {
101758
- "description": "The origin event.",
101759
- "name": "event"
101760
- }
101761
- ],
101762
- "inheritedFrom": {
101763
- "name": "SbbButtonLikeBaseElement",
101764
- "module": "core/base-elements/button-base-element.js"
101765
- }
101766
- },
101767
- {
101768
- "kind": "field",
101769
- "name": "_removeActiveMarker",
101770
- "privacy": "private",
101771
- "inheritedFrom": {
101772
- "name": "SbbButtonLikeBaseElement",
101773
- "module": "core/base-elements/button-base-element.js"
101774
- }
101775
- },
101776
- {
101777
- "kind": "field",
101778
- "name": "_dispatchClickEventOnSpaceKeyup",
101779
- "privacy": "private",
101780
- "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.",
101781
- "parameters": [
101782
- {
101783
- "description": "The origin event.",
101784
- "name": "event"
101785
- }
101786
- ],
101787
- "inheritedFrom": {
101788
- "name": "SbbButtonLikeBaseElement",
101789
- "module": "core/base-elements/button-base-element.js"
101790
- }
101791
- },
101792
- {
101793
- "kind": "field",
101794
- "name": "_dispatchClickEvent",
101795
- "privacy": "private",
101796
- "inheritedFrom": {
101797
- "name": "SbbButtonLikeBaseElement",
101798
- "module": "core/base-elements/button-base-element.js"
101782
+ "name": "SbbLinkBaseElement",
101783
+ "module": "core/base-elements/link-base-element.js"
101799
101784
  }
101800
101785
  },
101801
101786
  {
@@ -101950,15 +101935,15 @@
101950
101935
  "module": "link/common/block-link-common.js"
101951
101936
  },
101952
101937
  {
101953
- "name": "SbbDisabledTabIndexActionMixin",
101938
+ "name": "SbbDisabledMixin",
101954
101939
  "module": "core/mixins.js"
101955
101940
  }
101956
101941
  ],
101957
101942
  "superclass": {
101958
- "name": "SbbButtonBaseElement",
101943
+ "name": "SbbLinkBaseElement",
101959
101944
  "module": "core/base-elements.js"
101960
101945
  },
101961
- "tagName": "sbb-block-link-button",
101946
+ "tagName": "sbb-block-link",
101962
101947
  "customElement": true,
101963
101948
  "attributes": [
101964
101949
  {
@@ -102001,79 +101986,94 @@
102001
101986
  }
102002
101987
  },
102003
101988
  {
102004
- "name": "disabled-interactive",
101989
+ "name": "disabled",
101990
+ "description": "Whether the component is disabled.",
101991
+ "default": "false",
102005
101992
  "type": {
102006
101993
  "text": "boolean"
102007
101994
  },
102008
- "default": "false",
102009
- "description": "Whether the button should be aria-disabled but stay interactive.",
102010
- "fieldName": "disabledInteractive",
101995
+ "fieldName": "disabled",
102011
101996
  "inheritedFrom": {
102012
- "name": "SbbDisabledInteractiveMixin",
101997
+ "name": "SbbDisabledMixin",
102013
101998
  "module": "core/mixins/disabled-mixin.js"
102014
101999
  }
102015
102000
  },
102016
102001
  {
102017
- "name": "disabled",
102018
- "description": "Whether the component is disabled.",
102019
- "default": "false",
102002
+ "name": "href",
102020
102003
  "type": {
102021
- "text": "boolean"
102004
+ "text": "string"
102022
102005
  },
102023
- "fieldName": "disabled",
102006
+ "default": "''",
102007
+ "description": "The href value you want to link to.",
102008
+ "fieldName": "href",
102024
102009
  "inheritedFrom": {
102025
- "name": "SbbDisabledMixin",
102026
- "module": "core/mixins/disabled-mixin.js"
102010
+ "name": "SbbLinkBaseElement",
102011
+ "module": "core/base-elements/link-base-element.js"
102027
102012
  }
102028
102013
  },
102029
102014
  {
102030
- "name": "value",
102015
+ "name": "target",
102016
+ "type": {
102017
+ "text": "LinkTargetType | string"
102018
+ },
102019
+ "default": "''",
102020
+ "description": "Where to display the linked URL.",
102021
+ "fieldName": "target",
102022
+ "inheritedFrom": {
102023
+ "name": "SbbLinkBaseElement",
102024
+ "module": "core/base-elements/link-base-element.js"
102025
+ }
102026
+ },
102027
+ {
102028
+ "name": "rel",
102031
102029
  "type": {
102032
102030
  "text": "string"
102033
102031
  },
102034
102032
  "default": "''",
102035
- "description": "Value of the form element.",
102036
- "fieldName": "value",
102033
+ "description": "The relationship of the linked URL as space-separated link types.",
102034
+ "fieldName": "rel",
102037
102035
  "inheritedFrom": {
102038
- "name": "SbbButtonBaseElement",
102039
- "module": "core/base-elements/button-base-element.js"
102036
+ "name": "SbbLinkBaseElement",
102037
+ "module": "core/base-elements/link-base-element.js"
102040
102038
  }
102041
102039
  },
102042
102040
  {
102043
- "name": "type",
102044
- "description": "The type attribute to use for the button.",
102045
- "default": "'button'",
102041
+ "name": "download",
102046
102042
  "type": {
102047
- "text": "SbbButtonType"
102043
+ "text": "boolean"
102048
102044
  },
102049
- "fieldName": "type",
102045
+ "default": "false",
102046
+ "description": "Whether the browser will show the download dialog on click.",
102047
+ "fieldName": "download",
102050
102048
  "inheritedFrom": {
102051
- "name": "SbbButtonBaseElement",
102052
- "module": "core/base-elements/button-base-element.js"
102049
+ "name": "SbbLinkBaseElement",
102050
+ "module": "core/base-elements/link-base-element.js"
102053
102051
  }
102054
102052
  },
102055
102053
  {
102056
- "name": "form",
102057
- "description": "The `<form>` element to associate the button with.",
102054
+ "name": "accessibility-label",
102058
102055
  "type": {
102059
- "text": "HTMLFormElement | null"
102056
+ "text": "string"
102060
102057
  },
102061
- "fieldName": "form",
102058
+ "default": "''",
102059
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
102060
+ "fieldName": "accessibilityLabel",
102062
102061
  "inheritedFrom": {
102063
- "name": "SbbButtonBaseElement",
102064
- "module": "core/base-elements/button-base-element.js"
102062
+ "name": "SbbLinkBaseElement",
102063
+ "module": "core/base-elements/link-base-element.js"
102065
102064
  }
102066
102065
  },
102067
102066
  {
102068
- "name": "name",
102069
- "description": "Name of the form element. Will be read from name attribute.",
102067
+ "name": "accessibility-current",
102070
102068
  "type": {
102071
102069
  "text": "string"
102072
102070
  },
102073
- "fieldName": "name",
102071
+ "default": "''",
102072
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
102073
+ "fieldName": "accessibilityCurrent",
102074
102074
  "inheritedFrom": {
102075
- "name": "SbbFormAssociatedMixin",
102076
- "module": "core/mixins/form-associated-mixin.js"
102075
+ "name": "SbbLinkBaseElement",
102076
+ "module": "core/base-elements/link-base-element.js"
102077
102077
  }
102078
102078
  }
102079
102079
  ]
@@ -102082,10 +102082,10 @@
102082
102082
  "exports": [
102083
102083
  {
102084
102084
  "kind": "js",
102085
- "name": "SbbBlockLinkButtonElement",
102085
+ "name": "SbbBlockLinkElement",
102086
102086
  "declaration": {
102087
- "name": "SbbBlockLinkButtonElement",
102088
- "module": "link/block-link-button/block-link-button.component.js"
102087
+ "name": "SbbBlockLinkElement",
102088
+ "module": "link/block-link/block-link.component.js"
102089
102089
  }
102090
102090
  }
102091
102091
  ]
@@ -128279,12 +128279,12 @@
128279
128279
  },
128280
128280
  {
128281
128281
  "kind": "javascript-module",
128282
- "path": "teaser-product/teaser-product-static/teaser-product-static.component.js",
128282
+ "path": "teaser-product/teaser-product/teaser-product.component.js",
128283
128283
  "declarations": [
128284
128284
  {
128285
128285
  "kind": "class",
128286
- "description": "Displays a text and a footnote, combined with an image, to tease a product.",
128287
- "name": "SbbTeaserProductStaticElement",
128286
+ "description": "Displays a text and a footnote, combined with an image, to tease a product",
128287
+ "name": "SbbTeaserProductElement",
128288
128288
  "cssProperties": [
128289
128289
  {
128290
128290
  "description": "At which percentage the background should start getting transparent.",
@@ -128325,7 +128325,7 @@
128325
128325
  "name": "SbbElement",
128326
128326
  "module": "core/base-elements/element.js"
128327
128327
  },
128328
- "default": "'sbb-teaser-product-static'"
128328
+ "default": "'sbb-teaser-product'"
128329
128329
  },
128330
128330
  {
128331
128331
  "kind": "field",
@@ -128374,6 +128374,155 @@
128374
128374
  "module": "core/mixins/negative-mixin.js"
128375
128375
  }
128376
128376
  },
128377
+ {
128378
+ "kind": "field",
128379
+ "name": "href",
128380
+ "type": {
128381
+ "text": "string"
128382
+ },
128383
+ "privacy": "public",
128384
+ "default": "''",
128385
+ "description": "The href value you want to link to.",
128386
+ "attribute": "href",
128387
+ "reflects": true,
128388
+ "inheritedFrom": {
128389
+ "name": "SbbLinkBaseElement",
128390
+ "module": "core/base-elements/link-base-element.js"
128391
+ }
128392
+ },
128393
+ {
128394
+ "kind": "field",
128395
+ "name": "target",
128396
+ "type": {
128397
+ "text": "LinkTargetType | string"
128398
+ },
128399
+ "privacy": "public",
128400
+ "default": "''",
128401
+ "description": "Where to display the linked URL.",
128402
+ "attribute": "target",
128403
+ "reflects": true,
128404
+ "inheritedFrom": {
128405
+ "name": "SbbLinkBaseElement",
128406
+ "module": "core/base-elements/link-base-element.js"
128407
+ }
128408
+ },
128409
+ {
128410
+ "kind": "field",
128411
+ "name": "rel",
128412
+ "type": {
128413
+ "text": "string"
128414
+ },
128415
+ "privacy": "public",
128416
+ "default": "''",
128417
+ "description": "The relationship of the linked URL as space-separated link types.",
128418
+ "attribute": "rel",
128419
+ "reflects": true,
128420
+ "inheritedFrom": {
128421
+ "name": "SbbLinkBaseElement",
128422
+ "module": "core/base-elements/link-base-element.js"
128423
+ }
128424
+ },
128425
+ {
128426
+ "kind": "field",
128427
+ "name": "download",
128428
+ "type": {
128429
+ "text": "boolean"
128430
+ },
128431
+ "privacy": "public",
128432
+ "default": "false",
128433
+ "description": "Whether the browser will show the download dialog on click.",
128434
+ "attribute": "download",
128435
+ "reflects": true,
128436
+ "inheritedFrom": {
128437
+ "name": "SbbLinkBaseElement",
128438
+ "module": "core/base-elements/link-base-element.js"
128439
+ }
128440
+ },
128441
+ {
128442
+ "kind": "field",
128443
+ "name": "accessibilityLabel",
128444
+ "type": {
128445
+ "text": "string"
128446
+ },
128447
+ "privacy": "public",
128448
+ "default": "''",
128449
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
128450
+ "attribute": "accessibility-label",
128451
+ "inheritedFrom": {
128452
+ "name": "SbbLinkBaseElement",
128453
+ "module": "core/base-elements/link-base-element.js"
128454
+ }
128455
+ },
128456
+ {
128457
+ "kind": "field",
128458
+ "name": "accessibilityCurrent",
128459
+ "type": {
128460
+ "text": "string"
128461
+ },
128462
+ "privacy": "public",
128463
+ "default": "''",
128464
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
128465
+ "attribute": "accessibility-current",
128466
+ "inheritedFrom": {
128467
+ "name": "SbbLinkBaseElement",
128468
+ "module": "core/base-elements/link-base-element.js"
128469
+ }
128470
+ },
128471
+ {
128472
+ "kind": "field",
128473
+ "name": "language",
128474
+ "privacy": "protected",
128475
+ "default": "new SbbLanguageController(this)",
128476
+ "inheritedFrom": {
128477
+ "name": "SbbLinkBaseElement",
128478
+ "module": "core/base-elements/link-base-element.js"
128479
+ }
128480
+ },
128481
+ {
128482
+ "kind": "field",
128483
+ "name": "anchorRole",
128484
+ "type": {
128485
+ "text": "string | null"
128486
+ },
128487
+ "privacy": "protected",
128488
+ "readonly": true,
128489
+ "default": "null",
128490
+ "inheritedFrom": {
128491
+ "name": "SbbLinkBaseElement",
128492
+ "module": "core/base-elements/link-base-element.js"
128493
+ }
128494
+ },
128495
+ {
128496
+ "kind": "field",
128497
+ "name": "_evaluateRelAttribute",
128498
+ "privacy": "private",
128499
+ "inheritedFrom": {
128500
+ "name": "SbbLinkBaseElement",
128501
+ "module": "core/base-elements/link-base-element.js"
128502
+ }
128503
+ },
128504
+ {
128505
+ "kind": "method",
128506
+ "name": "renderLink",
128507
+ "privacy": "protected",
128508
+ "return": {
128509
+ "type": {
128510
+ "text": "TemplateResult"
128511
+ }
128512
+ },
128513
+ "parameters": [
128514
+ {
128515
+ "name": "renderContent",
128516
+ "type": {
128517
+ "text": "TemplateResult"
128518
+ }
128519
+ }
128520
+ ],
128521
+ "inheritedFrom": {
128522
+ "name": "SbbLinkBaseElement",
128523
+ "module": "core/base-elements/link-base-element.js"
128524
+ }
128525
+ },
128377
128526
  {
128378
128527
  "kind": "field",
128379
128528
  "name": "maybeDisabled",
@@ -128527,10 +128676,10 @@
128527
128676
  }
128528
128677
  ],
128529
128678
  "superclass": {
128530
- "name": "SbbActionBaseElement",
128679
+ "name": "SbbLinkBaseElement",
128531
128680
  "module": "core/base-elements.js"
128532
128681
  },
128533
- "tagName": "sbb-teaser-product-static",
128682
+ "tagName": "sbb-teaser-product",
128534
128683
  "customElement": true,
128535
128684
  "attributes": [
128536
128685
  {
@@ -128558,6 +128707,84 @@
128558
128707
  "name": "SbbNegativeMixin",
128559
128708
  "module": "core/mixins/negative-mixin.js"
128560
128709
  }
128710
+ },
128711
+ {
128712
+ "name": "href",
128713
+ "type": {
128714
+ "text": "string"
128715
+ },
128716
+ "default": "''",
128717
+ "description": "The href value you want to link to.",
128718
+ "fieldName": "href",
128719
+ "inheritedFrom": {
128720
+ "name": "SbbLinkBaseElement",
128721
+ "module": "core/base-elements/link-base-element.js"
128722
+ }
128723
+ },
128724
+ {
128725
+ "name": "target",
128726
+ "type": {
128727
+ "text": "LinkTargetType | string"
128728
+ },
128729
+ "default": "''",
128730
+ "description": "Where to display the linked URL.",
128731
+ "fieldName": "target",
128732
+ "inheritedFrom": {
128733
+ "name": "SbbLinkBaseElement",
128734
+ "module": "core/base-elements/link-base-element.js"
128735
+ }
128736
+ },
128737
+ {
128738
+ "name": "rel",
128739
+ "type": {
128740
+ "text": "string"
128741
+ },
128742
+ "default": "''",
128743
+ "description": "The relationship of the linked URL as space-separated link types.",
128744
+ "fieldName": "rel",
128745
+ "inheritedFrom": {
128746
+ "name": "SbbLinkBaseElement",
128747
+ "module": "core/base-elements/link-base-element.js"
128748
+ }
128749
+ },
128750
+ {
128751
+ "name": "download",
128752
+ "type": {
128753
+ "text": "boolean"
128754
+ },
128755
+ "default": "false",
128756
+ "description": "Whether the browser will show the download dialog on click.",
128757
+ "fieldName": "download",
128758
+ "inheritedFrom": {
128759
+ "name": "SbbLinkBaseElement",
128760
+ "module": "core/base-elements/link-base-element.js"
128761
+ }
128762
+ },
128763
+ {
128764
+ "name": "accessibility-label",
128765
+ "type": {
128766
+ "text": "string"
128767
+ },
128768
+ "default": "''",
128769
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
128770
+ "fieldName": "accessibilityLabel",
128771
+ "inheritedFrom": {
128772
+ "name": "SbbLinkBaseElement",
128773
+ "module": "core/base-elements/link-base-element.js"
128774
+ }
128775
+ },
128776
+ {
128777
+ "name": "accessibility-current",
128778
+ "type": {
128779
+ "text": "string"
128780
+ },
128781
+ "default": "''",
128782
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
128783
+ "fieldName": "accessibilityCurrent",
128784
+ "inheritedFrom": {
128785
+ "name": "SbbLinkBaseElement",
128786
+ "module": "core/base-elements/link-base-element.js"
128787
+ }
128561
128788
  }
128562
128789
  ]
128563
128790
  }
@@ -128565,22 +128792,22 @@
128565
128792
  "exports": [
128566
128793
  {
128567
128794
  "kind": "js",
128568
- "name": "SbbTeaserProductStaticElement",
128795
+ "name": "SbbTeaserProductElement",
128569
128796
  "declaration": {
128570
- "name": "SbbTeaserProductStaticElement",
128571
- "module": "teaser-product/teaser-product-static/teaser-product-static.component.js"
128797
+ "name": "SbbTeaserProductElement",
128798
+ "module": "teaser-product/teaser-product/teaser-product.component.js"
128572
128799
  }
128573
128800
  }
128574
128801
  ]
128575
128802
  },
128576
128803
  {
128577
128804
  "kind": "javascript-module",
128578
- "path": "teaser-product/teaser-product/teaser-product.component.js",
128805
+ "path": "teaser-product/teaser-product-static/teaser-product-static.component.js",
128579
128806
  "declarations": [
128580
128807
  {
128581
128808
  "kind": "class",
128582
- "description": "Displays a text and a footnote, combined with an image, to tease a product",
128583
- "name": "SbbTeaserProductElement",
128809
+ "description": "Displays a text and a footnote, combined with an image, to tease a product.",
128810
+ "name": "SbbTeaserProductStaticElement",
128584
128811
  "cssProperties": [
128585
128812
  {
128586
128813
  "description": "At which percentage the background should start getting transparent.",
@@ -128621,7 +128848,7 @@
128621
128848
  "name": "SbbElement",
128622
128849
  "module": "core/base-elements/element.js"
128623
128850
  },
128624
- "default": "'sbb-teaser-product'"
128851
+ "default": "'sbb-teaser-product-static'"
128625
128852
  },
128626
128853
  {
128627
128854
  "kind": "field",
@@ -128670,155 +128897,6 @@
128670
128897
  "module": "core/mixins/negative-mixin.js"
128671
128898
  }
128672
128899
  },
128673
- {
128674
- "kind": "field",
128675
- "name": "href",
128676
- "type": {
128677
- "text": "string"
128678
- },
128679
- "privacy": "public",
128680
- "default": "''",
128681
- "description": "The href value you want to link to.",
128682
- "attribute": "href",
128683
- "reflects": true,
128684
- "inheritedFrom": {
128685
- "name": "SbbLinkBaseElement",
128686
- "module": "core/base-elements/link-base-element.js"
128687
- }
128688
- },
128689
- {
128690
- "kind": "field",
128691
- "name": "target",
128692
- "type": {
128693
- "text": "LinkTargetType | string"
128694
- },
128695
- "privacy": "public",
128696
- "default": "''",
128697
- "description": "Where to display the linked URL.",
128698
- "attribute": "target",
128699
- "reflects": true,
128700
- "inheritedFrom": {
128701
- "name": "SbbLinkBaseElement",
128702
- "module": "core/base-elements/link-base-element.js"
128703
- }
128704
- },
128705
- {
128706
- "kind": "field",
128707
- "name": "rel",
128708
- "type": {
128709
- "text": "string"
128710
- },
128711
- "privacy": "public",
128712
- "default": "''",
128713
- "description": "The relationship of the linked URL as space-separated link types.",
128714
- "attribute": "rel",
128715
- "reflects": true,
128716
- "inheritedFrom": {
128717
- "name": "SbbLinkBaseElement",
128718
- "module": "core/base-elements/link-base-element.js"
128719
- }
128720
- },
128721
- {
128722
- "kind": "field",
128723
- "name": "download",
128724
- "type": {
128725
- "text": "boolean"
128726
- },
128727
- "privacy": "public",
128728
- "default": "false",
128729
- "description": "Whether the browser will show the download dialog on click.",
128730
- "attribute": "download",
128731
- "reflects": true,
128732
- "inheritedFrom": {
128733
- "name": "SbbLinkBaseElement",
128734
- "module": "core/base-elements/link-base-element.js"
128735
- }
128736
- },
128737
- {
128738
- "kind": "field",
128739
- "name": "accessibilityLabel",
128740
- "type": {
128741
- "text": "string"
128742
- },
128743
- "privacy": "public",
128744
- "default": "''",
128745
- "description": "This will be forwarded as aria-label to the inner anchor element.",
128746
- "attribute": "accessibility-label",
128747
- "inheritedFrom": {
128748
- "name": "SbbLinkBaseElement",
128749
- "module": "core/base-elements/link-base-element.js"
128750
- }
128751
- },
128752
- {
128753
- "kind": "field",
128754
- "name": "accessibilityCurrent",
128755
- "type": {
128756
- "text": "string"
128757
- },
128758
- "privacy": "public",
128759
- "default": "''",
128760
- "description": "This will be forwarded as aria-current to the inner anchor element.",
128761
- "attribute": "accessibility-current",
128762
- "inheritedFrom": {
128763
- "name": "SbbLinkBaseElement",
128764
- "module": "core/base-elements/link-base-element.js"
128765
- }
128766
- },
128767
- {
128768
- "kind": "field",
128769
- "name": "language",
128770
- "privacy": "protected",
128771
- "default": "new SbbLanguageController(this)",
128772
- "inheritedFrom": {
128773
- "name": "SbbLinkBaseElement",
128774
- "module": "core/base-elements/link-base-element.js"
128775
- }
128776
- },
128777
- {
128778
- "kind": "field",
128779
- "name": "anchorRole",
128780
- "type": {
128781
- "text": "string | null"
128782
- },
128783
- "privacy": "protected",
128784
- "readonly": true,
128785
- "default": "null",
128786
- "inheritedFrom": {
128787
- "name": "SbbLinkBaseElement",
128788
- "module": "core/base-elements/link-base-element.js"
128789
- }
128790
- },
128791
- {
128792
- "kind": "field",
128793
- "name": "_evaluateRelAttribute",
128794
- "privacy": "private",
128795
- "inheritedFrom": {
128796
- "name": "SbbLinkBaseElement",
128797
- "module": "core/base-elements/link-base-element.js"
128798
- }
128799
- },
128800
- {
128801
- "kind": "method",
128802
- "name": "renderLink",
128803
- "privacy": "protected",
128804
- "return": {
128805
- "type": {
128806
- "text": "TemplateResult"
128807
- }
128808
- },
128809
- "parameters": [
128810
- {
128811
- "name": "renderContent",
128812
- "type": {
128813
- "text": "TemplateResult"
128814
- }
128815
- }
128816
- ],
128817
- "inheritedFrom": {
128818
- "name": "SbbLinkBaseElement",
128819
- "module": "core/base-elements/link-base-element.js"
128820
- }
128821
- },
128822
128900
  {
128823
128901
  "kind": "field",
128824
128902
  "name": "maybeDisabled",
@@ -128972,10 +129050,10 @@
128972
129050
  }
128973
129051
  ],
128974
129052
  "superclass": {
128975
- "name": "SbbLinkBaseElement",
129053
+ "name": "SbbActionBaseElement",
128976
129054
  "module": "core/base-elements.js"
128977
129055
  },
128978
- "tagName": "sbb-teaser-product",
129056
+ "tagName": "sbb-teaser-product-static",
128979
129057
  "customElement": true,
128980
129058
  "attributes": [
128981
129059
  {
@@ -129003,84 +129081,6 @@
129003
129081
  "name": "SbbNegativeMixin",
129004
129082
  "module": "core/mixins/negative-mixin.js"
129005
129083
  }
129006
- },
129007
- {
129008
- "name": "href",
129009
- "type": {
129010
- "text": "string"
129011
- },
129012
- "default": "''",
129013
- "description": "The href value you want to link to.",
129014
- "fieldName": "href",
129015
- "inheritedFrom": {
129016
- "name": "SbbLinkBaseElement",
129017
- "module": "core/base-elements/link-base-element.js"
129018
- }
129019
- },
129020
- {
129021
- "name": "target",
129022
- "type": {
129023
- "text": "LinkTargetType | string"
129024
- },
129025
- "default": "''",
129026
- "description": "Where to display the linked URL.",
129027
- "fieldName": "target",
129028
- "inheritedFrom": {
129029
- "name": "SbbLinkBaseElement",
129030
- "module": "core/base-elements/link-base-element.js"
129031
- }
129032
- },
129033
- {
129034
- "name": "rel",
129035
- "type": {
129036
- "text": "string"
129037
- },
129038
- "default": "''",
129039
- "description": "The relationship of the linked URL as space-separated link types.",
129040
- "fieldName": "rel",
129041
- "inheritedFrom": {
129042
- "name": "SbbLinkBaseElement",
129043
- "module": "core/base-elements/link-base-element.js"
129044
- }
129045
- },
129046
- {
129047
- "name": "download",
129048
- "type": {
129049
- "text": "boolean"
129050
- },
129051
- "default": "false",
129052
- "description": "Whether the browser will show the download dialog on click.",
129053
- "fieldName": "download",
129054
- "inheritedFrom": {
129055
- "name": "SbbLinkBaseElement",
129056
- "module": "core/base-elements/link-base-element.js"
129057
- }
129058
- },
129059
- {
129060
- "name": "accessibility-label",
129061
- "type": {
129062
- "text": "string"
129063
- },
129064
- "default": "''",
129065
- "description": "This will be forwarded as aria-label to the inner anchor element.",
129066
- "fieldName": "accessibilityLabel",
129067
- "inheritedFrom": {
129068
- "name": "SbbLinkBaseElement",
129069
- "module": "core/base-elements/link-base-element.js"
129070
- }
129071
- },
129072
- {
129073
- "name": "accessibility-current",
129074
- "type": {
129075
- "text": "string"
129076
- },
129077
- "default": "''",
129078
- "description": "This will be forwarded as aria-current to the inner anchor element.",
129079
- "fieldName": "accessibilityCurrent",
129080
- "inheritedFrom": {
129081
- "name": "SbbLinkBaseElement",
129082
- "module": "core/base-elements/link-base-element.js"
129083
- }
129084
129084
  }
129085
129085
  ]
129086
129086
  }
@@ -129088,10 +129088,10 @@
129088
129088
  "exports": [
129089
129089
  {
129090
129090
  "kind": "js",
129091
- "name": "SbbTeaserProductElement",
129091
+ "name": "SbbTeaserProductStaticElement",
129092
129092
  "declaration": {
129093
- "name": "SbbTeaserProductElement",
129094
- "module": "teaser-product/teaser-product/teaser-product.component.js"
129093
+ "name": "SbbTeaserProductStaticElement",
129094
+ "module": "teaser-product/teaser-product-static/teaser-product-static.component.js"
129095
129095
  }
129096
129096
  }
129097
129097
  ]
@@ -133186,15 +133186,22 @@
133186
133186
  },
133187
133187
  {
133188
133188
  "kind": "javascript-module",
133189
- "path": "train/train-wagon/train-wagon.component.js",
133189
+ "path": "train/train-formation/train-formation.component.js",
133190
133190
  "declarations": [
133191
133191
  {
133192
133192
  "kind": "class",
133193
- "description": "It displays a train compartment within a `sbb-train` component.",
133194
- "name": "SbbTrainWagonElement",
133193
+ "description": "It displays a train composition, acting as a container for one or more `sbb-train` component.",
133194
+ "name": "SbbTrainFormationElement",
133195
+ "cssProperties": [
133196
+ {
133197
+ "description": "Defines the inline padding inside the horizontal scrolling area.",
133198
+ "name": "--sbb-train-formation-padding-inline",
133199
+ "default": "0px"
133200
+ }
133201
+ ],
133195
133202
  "slots": [
133196
133203
  {
133197
- "description": "Use the unnamed slot to add one or more `sbb-icon` for meta-information of the `sbb-train-wagon`.",
133204
+ "description": "Use the unnamed slot to add 'sbb-train' elements to the `sbb-train-formation`.",
133198
133205
  "name": ""
133199
133206
  }
133200
133207
  ],
@@ -133208,35 +133215,12 @@
133208
133215
  "privacy": "public",
133209
133216
  "static": true,
133210
133217
  "readonly": true,
133211
- "default": "'sbb-train-wagon'",
133218
+ "default": "'sbb-train-formation'",
133212
133219
  "inheritedFrom": {
133213
133220
  "name": "SbbElement",
133214
133221
  "module": "core/base-elements/element.js"
133215
133222
  }
133216
133223
  },
133217
- {
133218
- "kind": "field",
133219
- "name": "events",
133220
- "privacy": "public",
133221
- "static": true,
133222
- "readonly": true,
133223
- "default": "{ sectorchange: 'sectorchange', }",
133224
- "type": {
133225
- "text": "{\n sectorchange: 'sectorchange',\n }"
133226
- }
133227
- },
133228
- {
133229
- "kind": "field",
133230
- "name": "type",
133231
- "type": {
133232
- "text": "| 'wagon'\n | 'wagon-end-left'\n | 'wagon-end-right'\n | 'couchette'\n | 'sleeping'\n | 'restaurant'\n | 'locomotive'\n | 'closed'"
133233
- },
133234
- "privacy": "public",
133235
- "default": "'wagon'",
133236
- "description": "Wagon type.\nFor `wagon-end-left` and `wagon-end-right`, please set the corresponding value of the `blockedPassage` property.",
133237
- "attribute": "type",
133238
- "reflects": true
133239
- },
133240
133224
  {
133241
133225
  "kind": "field",
133242
133226
  "name": "listChildLocalNames",
@@ -133246,7 +133230,7 @@
133246
133230
  "privacy": "protected",
133247
133231
  "readonly": true,
133248
133232
  "description": "A list of lower-cased tag names to match against. (e.g. `sbb-link`)",
133249
- "default": "['sbb-icon']",
133233
+ "default": "['sbb-train']",
133250
133234
  "inheritedFrom": {
133251
133235
  "name": "SbbNamedSlotListMixin",
133252
133236
  "module": "core/mixins/named-slot-list-mixin.js"
@@ -133254,71 +133238,24 @@
133254
133238
  },
133255
133239
  {
133256
133240
  "kind": "field",
133257
- "name": "occupancy",
133258
- "type": {
133259
- "text": "SbbOccupancy | null"
133260
- },
133261
- "privacy": "public",
133262
- "default": "null",
133263
- "description": "Occupancy of a wagon.",
133264
- "attribute": "occupancy"
133265
- },
133266
- {
133267
- "kind": "field",
133268
- "name": "sector",
133269
- "type": {
133270
- "text": "string"
133271
- },
133272
- "privacy": "public",
133273
- "default": "''",
133274
- "description": "Sector in which the wagon stops.",
133275
- "attribute": "sector",
133276
- "reflects": true
133277
- },
133278
- {
133279
- "kind": "field",
133280
- "name": "blockedPassage",
133281
- "type": {
133282
- "text": "'previous' | 'next' | 'both' | 'none'"
133283
- },
133284
- "privacy": "public",
133285
- "default": "'none'",
133286
- "description": "Accessibility text for blocked passages of the wagon.",
133287
- "attribute": "blocked-passage"
133288
- },
133289
- {
133290
- "kind": "field",
133291
- "name": "wagonClass",
133292
- "type": {
133293
- "text": "'1' | '2' | null"
133294
- },
133295
- "privacy": "public",
133296
- "default": "null",
133297
- "description": "Class label",
133298
- "attribute": "wagon-class"
133299
- },
133300
- {
133301
- "kind": "field",
133302
- "name": "label",
133241
+ "name": "view",
133303
133242
  "type": {
133304
- "text": "string"
133243
+ "text": "'side' | 'top'"
133305
133244
  },
133306
133245
  "privacy": "public",
133307
- "default": "''",
133308
- "description": "Wagon number",
133309
- "attribute": "label",
133246
+ "default": "'side'",
133247
+ "description": "Whether the view of the wagons is from side or top perspective.",
133248
+ "attribute": "view",
133310
133249
  "reflects": true
133311
133250
  },
133312
133251
  {
133313
133252
  "kind": "field",
133314
- "name": "additionalAccessibilityText",
133253
+ "name": "_sectors",
133315
133254
  "type": {
133316
- "text": "string"
133255
+ "text": "AggregatedSector[]"
133317
133256
  },
133318
- "privacy": "public",
133319
- "default": "''",
133320
- "description": "Additional accessibility text which will be appended to the end.",
133321
- "attribute": "additional-accessibility-text"
133257
+ "privacy": "private",
133258
+ "default": "[]"
133322
133259
  },
133323
133260
  {
133324
133261
  "kind": "field",
@@ -133328,23 +133265,22 @@
133328
133265
  },
133329
133266
  {
133330
133267
  "kind": "method",
133331
- "name": "_sectorChanged",
133268
+ "name": "_readSectors",
133332
133269
  "privacy": "private",
133333
133270
  "return": {
133334
133271
  "type": {
133335
133272
  "text": "void"
133336
133273
  }
133337
- }
133338
- },
133339
- {
133340
- "kind": "method",
133341
- "name": "_typeLabel",
133342
- "privacy": "private",
133343
- "return": {
133344
- "type": {
133345
- "text": "string"
133274
+ },
133275
+ "parameters": [
133276
+ {
133277
+ "name": "event",
133278
+ "optional": true,
133279
+ "type": {
133280
+ "text": "Event"
133281
+ }
133346
133282
  }
133347
- }
133283
+ ]
133348
133284
  },
133349
133285
  {
133350
133286
  "kind": "field",
@@ -133546,67 +133482,13 @@
133546
133482
  ],
133547
133483
  "attributes": [
133548
133484
  {
133549
- "name": "type",
133550
- "type": {
133551
- "text": "| 'wagon'\n | 'wagon-end-left'\n | 'wagon-end-right'\n | 'couchette'\n | 'sleeping'\n | 'restaurant'\n | 'locomotive'\n | 'closed'"
133552
- },
133553
- "default": "'wagon'",
133554
- "description": "Wagon type.\nFor `wagon-end-left` and `wagon-end-right`, please set the corresponding value of the `blockedPassage` property.",
133555
- "fieldName": "type"
133556
- },
133557
- {
133558
- "name": "occupancy",
133559
- "type": {
133560
- "text": "SbbOccupancy | null"
133561
- },
133562
- "default": "null",
133563
- "description": "Occupancy of a wagon.",
133564
- "fieldName": "occupancy"
133565
- },
133566
- {
133567
- "name": "sector",
133568
- "type": {
133569
- "text": "string"
133570
- },
133571
- "default": "''",
133572
- "description": "Sector in which the wagon stops.",
133573
- "fieldName": "sector"
133574
- },
133575
- {
133576
- "name": "blocked-passage",
133577
- "type": {
133578
- "text": "'previous' | 'next' | 'both' | 'none'"
133579
- },
133580
- "default": "'none'",
133581
- "description": "Accessibility text for blocked passages of the wagon.",
133582
- "fieldName": "blockedPassage"
133583
- },
133584
- {
133585
- "name": "wagon-class",
133586
- "type": {
133587
- "text": "'1' | '2' | null"
133588
- },
133589
- "default": "null",
133590
- "description": "Class label",
133591
- "fieldName": "wagonClass"
133592
- },
133593
- {
133594
- "name": "label",
133595
- "type": {
133596
- "text": "string"
133597
- },
133598
- "default": "''",
133599
- "description": "Wagon number",
133600
- "fieldName": "label"
133601
- },
133602
- {
133603
- "name": "additional-accessibility-text",
133485
+ "name": "view",
133604
133486
  "type": {
133605
- "text": "string"
133487
+ "text": "'side' | 'top'"
133606
133488
  },
133607
- "default": "''",
133608
- "description": "Additional accessibility text which will be appended to the end.",
133609
- "fieldName": "additionalAccessibilityText"
133489
+ "default": "'side'",
133490
+ "description": "Whether the view of the wagons is from side or top perspective.",
133491
+ "fieldName": "view"
133610
133492
  }
133611
133493
  ],
133612
133494
  "mixins": [
@@ -133619,39 +133501,32 @@
133619
133501
  "name": "SbbElement",
133620
133502
  "module": "core/base-elements.js"
133621
133503
  },
133622
- "tagName": "sbb-train-wagon",
133504
+ "tagName": "sbb-train-formation",
133623
133505
  "customElement": true
133624
133506
  }
133625
133507
  ],
133626
133508
  "exports": [
133627
133509
  {
133628
133510
  "kind": "js",
133629
- "name": "SbbTrainWagonElement",
133511
+ "name": "SbbTrainFormationElement",
133630
133512
  "declaration": {
133631
- "name": "SbbTrainWagonElement",
133632
- "module": "train/train-wagon/train-wagon.component.js"
133513
+ "name": "SbbTrainFormationElement",
133514
+ "module": "train/train-formation/train-formation.component.js"
133633
133515
  }
133634
133516
  }
133635
133517
  ]
133636
133518
  },
133637
133519
  {
133638
133520
  "kind": "javascript-module",
133639
- "path": "train/train-formation/train-formation.component.js",
133521
+ "path": "train/train-wagon/train-wagon.component.js",
133640
133522
  "declarations": [
133641
133523
  {
133642
133524
  "kind": "class",
133643
- "description": "It displays a train composition, acting as a container for one or more `sbb-train` component.",
133644
- "name": "SbbTrainFormationElement",
133645
- "cssProperties": [
133646
- {
133647
- "description": "Defines the inline padding inside the horizontal scrolling area.",
133648
- "name": "--sbb-train-formation-padding-inline",
133649
- "default": "0px"
133650
- }
133651
- ],
133525
+ "description": "It displays a train compartment within a `sbb-train` component.",
133526
+ "name": "SbbTrainWagonElement",
133652
133527
  "slots": [
133653
133528
  {
133654
- "description": "Use the unnamed slot to add 'sbb-train' elements to the `sbb-train-formation`.",
133529
+ "description": "Use the unnamed slot to add one or more `sbb-icon` for meta-information of the `sbb-train-wagon`.",
133655
133530
  "name": ""
133656
133531
  }
133657
133532
  ],
@@ -133665,12 +133540,35 @@
133665
133540
  "privacy": "public",
133666
133541
  "static": true,
133667
133542
  "readonly": true,
133668
- "default": "'sbb-train-formation'",
133543
+ "default": "'sbb-train-wagon'",
133669
133544
  "inheritedFrom": {
133670
133545
  "name": "SbbElement",
133671
133546
  "module": "core/base-elements/element.js"
133672
133547
  }
133673
133548
  },
133549
+ {
133550
+ "kind": "field",
133551
+ "name": "events",
133552
+ "privacy": "public",
133553
+ "static": true,
133554
+ "readonly": true,
133555
+ "default": "{ sectorchange: 'sectorchange', }",
133556
+ "type": {
133557
+ "text": "{\n sectorchange: 'sectorchange',\n }"
133558
+ }
133559
+ },
133560
+ {
133561
+ "kind": "field",
133562
+ "name": "type",
133563
+ "type": {
133564
+ "text": "| 'wagon'\n | 'wagon-end-left'\n | 'wagon-end-right'\n | 'couchette'\n | 'sleeping'\n | 'restaurant'\n | 'locomotive'\n | 'closed'"
133565
+ },
133566
+ "privacy": "public",
133567
+ "default": "'wagon'",
133568
+ "description": "Wagon type.\nFor `wagon-end-left` and `wagon-end-right`, please set the corresponding value of the `blockedPassage` property.",
133569
+ "attribute": "type",
133570
+ "reflects": true
133571
+ },
133674
133572
  {
133675
133573
  "kind": "field",
133676
133574
  "name": "listChildLocalNames",
@@ -133680,7 +133578,7 @@
133680
133578
  "privacy": "protected",
133681
133579
  "readonly": true,
133682
133580
  "description": "A list of lower-cased tag names to match against. (e.g. `sbb-link`)",
133683
- "default": "['sbb-train']",
133581
+ "default": "['sbb-icon']",
133684
133582
  "inheritedFrom": {
133685
133583
  "name": "SbbNamedSlotListMixin",
133686
133584
  "module": "core/mixins/named-slot-list-mixin.js"
@@ -133688,24 +133586,71 @@
133688
133586
  },
133689
133587
  {
133690
133588
  "kind": "field",
133691
- "name": "view",
133589
+ "name": "occupancy",
133692
133590
  "type": {
133693
- "text": "'side' | 'top'"
133591
+ "text": "SbbOccupancy | null"
133694
133592
  },
133695
133593
  "privacy": "public",
133696
- "default": "'side'",
133697
- "description": "Whether the view of the wagons is from side or top perspective.",
133698
- "attribute": "view",
133594
+ "default": "null",
133595
+ "description": "Occupancy of a wagon.",
133596
+ "attribute": "occupancy"
133597
+ },
133598
+ {
133599
+ "kind": "field",
133600
+ "name": "sector",
133601
+ "type": {
133602
+ "text": "string"
133603
+ },
133604
+ "privacy": "public",
133605
+ "default": "''",
133606
+ "description": "Sector in which the wagon stops.",
133607
+ "attribute": "sector",
133699
133608
  "reflects": true
133700
133609
  },
133701
133610
  {
133702
133611
  "kind": "field",
133703
- "name": "_sectors",
133612
+ "name": "blockedPassage",
133704
133613
  "type": {
133705
- "text": "AggregatedSector[]"
133614
+ "text": "'previous' | 'next' | 'both' | 'none'"
133706
133615
  },
133707
- "privacy": "private",
133708
- "default": "[]"
133616
+ "privacy": "public",
133617
+ "default": "'none'",
133618
+ "description": "Accessibility text for blocked passages of the wagon.",
133619
+ "attribute": "blocked-passage"
133620
+ },
133621
+ {
133622
+ "kind": "field",
133623
+ "name": "wagonClass",
133624
+ "type": {
133625
+ "text": "'1' | '2' | null"
133626
+ },
133627
+ "privacy": "public",
133628
+ "default": "null",
133629
+ "description": "Class label",
133630
+ "attribute": "wagon-class"
133631
+ },
133632
+ {
133633
+ "kind": "field",
133634
+ "name": "label",
133635
+ "type": {
133636
+ "text": "string"
133637
+ },
133638
+ "privacy": "public",
133639
+ "default": "''",
133640
+ "description": "Wagon number",
133641
+ "attribute": "label",
133642
+ "reflects": true
133643
+ },
133644
+ {
133645
+ "kind": "field",
133646
+ "name": "additionalAccessibilityText",
133647
+ "type": {
133648
+ "text": "string"
133649
+ },
133650
+ "privacy": "public",
133651
+ "default": "''",
133652
+ "description": "Additional accessibility text which will be appended to the end.",
133653
+ "attribute": "additional-accessibility-text"
133709
133654
  },
133710
133655
  {
133711
133656
  "kind": "field",
@@ -133715,22 +133660,23 @@
133715
133660
  },
133716
133661
  {
133717
133662
  "kind": "method",
133718
- "name": "_readSectors",
133663
+ "name": "_sectorChanged",
133719
133664
  "privacy": "private",
133720
133665
  "return": {
133721
133666
  "type": {
133722
133667
  "text": "void"
133723
133668
  }
133724
- },
133725
- "parameters": [
133726
- {
133727
- "name": "event",
133728
- "optional": true,
133729
- "type": {
133730
- "text": "Event"
133731
- }
133669
+ }
133670
+ },
133671
+ {
133672
+ "kind": "method",
133673
+ "name": "_typeLabel",
133674
+ "privacy": "private",
133675
+ "return": {
133676
+ "type": {
133677
+ "text": "string"
133732
133678
  }
133733
- ]
133679
+ }
133734
133680
  },
133735
133681
  {
133736
133682
  "kind": "field",
@@ -133932,13 +133878,67 @@
133932
133878
  ],
133933
133879
  "attributes": [
133934
133880
  {
133935
- "name": "view",
133881
+ "name": "type",
133936
133882
  "type": {
133937
- "text": "'side' | 'top'"
133883
+ "text": "| 'wagon'\n | 'wagon-end-left'\n | 'wagon-end-right'\n | 'couchette'\n | 'sleeping'\n | 'restaurant'\n | 'locomotive'\n | 'closed'"
133938
133884
  },
133939
- "default": "'side'",
133940
- "description": "Whether the view of the wagons is from side or top perspective.",
133941
- "fieldName": "view"
133885
+ "default": "'wagon'",
133886
+ "description": "Wagon type.\nFor `wagon-end-left` and `wagon-end-right`, please set the corresponding value of the `blockedPassage` property.",
133887
+ "fieldName": "type"
133888
+ },
133889
+ {
133890
+ "name": "occupancy",
133891
+ "type": {
133892
+ "text": "SbbOccupancy | null"
133893
+ },
133894
+ "default": "null",
133895
+ "description": "Occupancy of a wagon.",
133896
+ "fieldName": "occupancy"
133897
+ },
133898
+ {
133899
+ "name": "sector",
133900
+ "type": {
133901
+ "text": "string"
133902
+ },
133903
+ "default": "''",
133904
+ "description": "Sector in which the wagon stops.",
133905
+ "fieldName": "sector"
133906
+ },
133907
+ {
133908
+ "name": "blocked-passage",
133909
+ "type": {
133910
+ "text": "'previous' | 'next' | 'both' | 'none'"
133911
+ },
133912
+ "default": "'none'",
133913
+ "description": "Accessibility text for blocked passages of the wagon.",
133914
+ "fieldName": "blockedPassage"
133915
+ },
133916
+ {
133917
+ "name": "wagon-class",
133918
+ "type": {
133919
+ "text": "'1' | '2' | null"
133920
+ },
133921
+ "default": "null",
133922
+ "description": "Class label",
133923
+ "fieldName": "wagonClass"
133924
+ },
133925
+ {
133926
+ "name": "label",
133927
+ "type": {
133928
+ "text": "string"
133929
+ },
133930
+ "default": "''",
133931
+ "description": "Wagon number",
133932
+ "fieldName": "label"
133933
+ },
133934
+ {
133935
+ "name": "additional-accessibility-text",
133936
+ "type": {
133937
+ "text": "string"
133938
+ },
133939
+ "default": "''",
133940
+ "description": "Additional accessibility text which will be appended to the end.",
133941
+ "fieldName": "additionalAccessibilityText"
133942
133942
  }
133943
133943
  ],
133944
133944
  "mixins": [
@@ -133951,17 +133951,17 @@
133951
133951
  "name": "SbbElement",
133952
133952
  "module": "core/base-elements.js"
133953
133953
  },
133954
- "tagName": "sbb-train-formation",
133954
+ "tagName": "sbb-train-wagon",
133955
133955
  "customElement": true
133956
133956
  }
133957
133957
  ],
133958
133958
  "exports": [
133959
133959
  {
133960
133960
  "kind": "js",
133961
- "name": "SbbTrainFormationElement",
133961
+ "name": "SbbTrainWagonElement",
133962
133962
  "declaration": {
133963
- "name": "SbbTrainFormationElement",
133964
- "module": "train/train-formation/train-formation.component.js"
133963
+ "name": "SbbTrainWagonElement",
133964
+ "module": "train/train-wagon/train-wagon.component.js"
133965
133965
  }
133966
133966
  }
133967
133967
  ]