@sbb-esta/lyne-elements-dev 4.0.0-dev.1775957896 → 4.0.0-dev.1775999530

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 +968 -968
  2. package/package.json +2 -2
@@ -119143,15 +119143,15 @@
119143
119143
  },
119144
119144
  {
119145
119145
  "kind": "javascript-module",
119146
- "path": "link/block-link-button/block-link-button.component.js",
119146
+ "path": "link/block-link-static/block-link-static.component.js",
119147
119147
  "declarations": [
119148
119148
  {
119149
119149
  "kind": "class",
119150
- "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
119151
- "name": "SbbBlockLinkButtonElement",
119150
+ "description": "It displays a static link enhanced with the SBB Design.",
119151
+ "name": "SbbBlockLinkStaticElement",
119152
119152
  "slots": [
119153
119153
  {
119154
- "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
119154
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
119155
119155
  "name": ""
119156
119156
  },
119157
119157
  {
@@ -119173,7 +119173,7 @@
119173
119173
  "name": "SbbElement",
119174
119174
  "module": "core/base-elements/element.js"
119175
119175
  },
119176
- "default": "'sbb-block-link-button'"
119176
+ "default": "'sbb-block-link-static'"
119177
119177
  },
119178
119178
  {
119179
119179
  "kind": "field",
@@ -119316,22 +119316,6 @@
119316
119316
  "module": "icon/icon-name-mixin.js"
119317
119317
  }
119318
119318
  },
119319
- {
119320
- "kind": "field",
119321
- "name": "disabledInteractive",
119322
- "type": {
119323
- "text": "boolean"
119324
- },
119325
- "privacy": "public",
119326
- "default": "false",
119327
- "description": "Whether the button should be aria-disabled but stay interactive.",
119328
- "attribute": "disabled-interactive",
119329
- "reflects": true,
119330
- "inheritedFrom": {
119331
- "name": "SbbDisabledInteractiveMixin",
119332
- "module": "core/mixins/disabled-mixin.js"
119333
- }
119334
- },
119335
119319
  {
119336
119320
  "kind": "field",
119337
119321
  "name": "disabled",
@@ -119378,118 +119362,47 @@
119378
119362
  },
119379
119363
  {
119380
119364
  "kind": "field",
119381
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
119365
+ "name": "maybeDisabled",
119382
119366
  "type": {
119383
- "text": "array"
119367
+ "text": "boolean | undefined"
119384
119368
  },
119385
- "privacy": "private",
119369
+ "privacy": "protected",
119386
119370
  "readonly": true,
119387
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
119388
- "inheritedFrom": {
119389
- "name": "SbbButtonBaseElement",
119390
- "module": "core/base-elements/button-base-element.js"
119391
- }
119392
- },
119393
- {
119394
- "kind": "field",
119395
- "name": "value",
119396
- "type": {
119397
- "text": "string"
119398
- },
119399
- "privacy": "public",
119400
- "inheritedFrom": {
119401
- "name": "SbbButtonBaseElement",
119402
- "module": "core/base-elements/button-base-element.js"
119403
- },
119404
- "default": "''",
119405
- "description": "Value of the form element.",
119406
- "attribute": "value"
119407
- },
119408
- {
119409
- "kind": "field",
119410
- "name": "type",
119411
- "privacy": "public",
119412
- "description": "The type attribute to use for the button.",
119413
- "default": "'button'",
119414
- "type": {
119415
- "text": "SbbButtonType"
119416
- },
119417
- "attribute": "type",
119418
119371
  "inheritedFrom": {
119419
- "name": "SbbButtonBaseElement",
119420
- "module": "core/base-elements/button-base-element.js"
119372
+ "name": "SbbActionBaseElement",
119373
+ "module": "core/base-elements/action-base-element.js"
119421
119374
  }
119422
119375
  },
119423
119376
  {
119424
119377
  "kind": "field",
119425
- "name": "form",
119426
- "type": {
119427
- "text": "HTMLFormElement | null"
119428
- },
119429
- "privacy": "public",
119430
- "description": "The `<form>` element to associate the button with.",
119431
- "inheritedFrom": {
119432
- "name": "SbbButtonBaseElement",
119433
- "module": "core/base-elements/button-base-element.js"
119434
- },
119435
- "attribute": "form"
119436
- },
119437
- {
119438
- "kind": "field",
119439
- "name": "_formId",
119378
+ "name": "maybeDisabledInteractive",
119440
119379
  "type": {
119441
- "text": "string"
119380
+ "text": "boolean | undefined"
119442
119381
  },
119443
- "privacy": "private",
119444
- "default": "''",
119445
- "inheritedFrom": {
119446
- "name": "SbbButtonBaseElement",
119447
- "module": "core/base-elements/button-base-element.js"
119448
- }
119449
- },
119450
- {
119451
- "kind": "field",
119452
- "name": "_handleButtonClick",
119453
- "privacy": "private",
119382
+ "privacy": "protected",
119383
+ "readonly": true,
119454
119384
  "inheritedFrom": {
119455
- "name": "SbbButtonBaseElement",
119456
- "module": "core/base-elements/button-base-element.js"
119385
+ "name": "SbbActionBaseElement",
119386
+ "module": "core/base-elements/action-base-element.js"
119457
119387
  }
119458
119388
  },
119459
119389
  {
119460
119390
  "kind": "method",
119461
- "name": "_requestSubmit",
119462
- "privacy": "private",
119391
+ "name": "setupBaseEventHandlers",
119392
+ "privacy": "protected",
119463
119393
  "return": {
119464
119394
  "type": {
119465
119395
  "text": "void"
119466
119396
  }
119467
119397
  },
119468
- "parameters": [
119469
- {
119470
- "name": "form",
119471
- "type": {
119472
- "text": "HTMLFormElement"
119473
- }
119474
- }
119475
- ],
119476
- "inheritedFrom": {
119477
- "name": "SbbButtonBaseElement",
119478
- "module": "core/base-elements/button-base-element.js"
119479
- }
119480
- },
119481
- {
119482
- "kind": "field",
119483
- "name": "_formKeyDown",
119484
- "privacy": "private",
119485
119398
  "inheritedFrom": {
119486
- "name": "SbbButtonBaseElement",
119487
- "module": "core/base-elements/button-base-element.js"
119399
+ "name": "SbbActionBaseElement",
119400
+ "module": "core/base-elements/action-base-element.js"
119488
119401
  }
119489
119402
  },
119490
119403
  {
119491
119404
  "kind": "field",
119492
- "name": "formAssociated",
119405
+ "name": "['_$sbbElement$']",
119493
119406
  "type": {
119494
119407
  "text": "boolean"
119495
119408
  },
@@ -119497,124 +119410,101 @@
119497
119410
  "static": true,
119498
119411
  "default": "true",
119499
119412
  "inheritedFrom": {
119500
- "name": "SbbFormAssociatedMixin",
119501
- "module": "core/mixins/form-associated-mixin.js"
119502
- }
119503
- },
119504
- {
119505
- "kind": "field",
119506
- "name": "name",
119507
- "privacy": "public",
119508
- "description": "Name of the form element. Will be read from name attribute.",
119509
- "type": {
119510
- "text": "string"
119511
- },
119512
- "attribute": "name",
119513
- "inheritedFrom": {
119514
- "name": "SbbFormAssociatedMixin",
119515
- "module": "core/mixins/form-associated-mixin.js"
119413
+ "name": "SbbElement",
119414
+ "module": "core/base-elements/element.js"
119516
119415
  }
119517
119416
  },
119518
119417
  {
119519
119418
  "kind": "field",
119520
- "name": "validity",
119419
+ "name": "role",
119521
119420
  "type": {
119522
- "text": "ValidityState"
119421
+ "text": "ElementInternals['role'] | undefined"
119523
119422
  },
119524
119423
  "privacy": "public",
119525
- "description": "Returns the ValidityState object for this element.",
119526
- "readonly": true,
119424
+ "static": true,
119527
119425
  "inheritedFrom": {
119528
- "name": "SbbFormAssociatedMixin",
119529
- "module": "core/mixins/form-associated-mixin.js"
119426
+ "name": "SbbElement",
119427
+ "module": "core/base-elements/element.js"
119530
119428
  }
119531
119429
  },
119532
119430
  {
119533
119431
  "kind": "field",
119534
- "name": "validationMessage",
119432
+ "name": "_controllers",
119535
119433
  "type": {
119536
- "text": "string"
119434
+ "text": "Set<SbbReactiveController> | undefined"
119537
119435
  },
119538
- "privacy": "public",
119539
- "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.",
119540
- "readonly": true,
119436
+ "privacy": "private",
119541
119437
  "inheritedFrom": {
119542
- "name": "SbbFormAssociatedMixin",
119543
- "module": "core/mixins/form-associated-mixin.js"
119438
+ "name": "SbbElement",
119439
+ "module": "core/base-elements/element.js"
119544
119440
  }
119545
119441
  },
119546
119442
  {
119547
119443
  "kind": "field",
119548
- "name": "willValidate",
119444
+ "name": "_hydrationRequired",
119549
119445
  "type": {
119550
119446
  "text": "boolean"
119551
119447
  },
119552
- "privacy": "public",
119553
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
119554
- "readonly": true,
119448
+ "privacy": "private",
119449
+ "default": "!!this.shadowRoot",
119555
119450
  "inheritedFrom": {
119556
- "name": "SbbFormAssociatedMixin",
119557
- "module": "core/mixins/form-associated-mixin.js"
119451
+ "name": "SbbElement",
119452
+ "module": "core/base-elements/element.js"
119558
119453
  }
119559
119454
  },
119560
119455
  {
119561
119456
  "kind": "field",
119562
- "name": "_validityStates",
119457
+ "name": "_hydrationComplete",
119563
119458
  "privacy": "private",
119564
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
119459
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
119565
119460
  "inheritedFrom": {
119566
- "name": "SbbFormAssociatedMixin",
119567
- "module": "core/mixins/form-associated-mixin.js"
119461
+ "name": "SbbElement",
119462
+ "module": "core/base-elements/element.js"
119568
119463
  }
119569
119464
  },
119570
119465
  {
119571
119466
  "kind": "field",
119572
- "name": "formDisabled",
119467
+ "name": "_resolveHydration",
119573
119468
  "type": {
119574
- "text": "boolean"
119469
+ "text": "(hydrationRequired: boolean) => void"
119575
119470
  },
119576
- "privacy": "protected",
119577
- "default": "false",
119578
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
119471
+ "privacy": "private",
119579
119472
  "inheritedFrom": {
119580
- "name": "SbbFormAssociatedMixin",
119581
- "module": "core/mixins/form-associated-mixin.js"
119473
+ "name": "SbbElement",
119474
+ "module": "core/base-elements/element.js"
119582
119475
  }
119583
119476
  },
119584
119477
  {
119585
- "kind": "method",
119586
- "name": "checkValidity",
119587
- "privacy": "public",
119588
- "return": {
119589
- "type": {
119590
- "text": "boolean"
119591
- }
119478
+ "kind": "field",
119479
+ "name": "_textObserver",
119480
+ "type": {
119481
+ "text": "MutationObserver | undefined"
119592
119482
  },
119593
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
119483
+ "privacy": "private",
119594
119484
  "inheritedFrom": {
119595
- "name": "SbbFormAssociatedMixin",
119596
- "module": "core/mixins/form-associated-mixin.js"
119485
+ "name": "SbbElement",
119486
+ "module": "core/base-elements/element.js"
119597
119487
  }
119598
119488
  },
119599
119489
  {
119600
- "kind": "method",
119601
- "name": "reportValidity",
119602
- "privacy": "public",
119603
- "return": {
119604
- "type": {
119605
- "text": "boolean"
119606
- }
119490
+ "kind": "field",
119491
+ "name": "hydrationRequired",
119492
+ "type": {
119493
+ "text": "boolean"
119607
119494
  },
119608
- "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.",
119495
+ "privacy": "protected",
119496
+ "description": "Returns whether hydration is required and not completed.",
119497
+ "readonly": true,
119609
119498
  "inheritedFrom": {
119610
- "name": "SbbFormAssociatedMixin",
119611
- "module": "core/mixins/form-associated-mixin.js"
119612
- }
119499
+ "name": "SbbElement",
119500
+ "module": "core/base-elements/element.js"
119501
+ },
119502
+ "default": "!!this.shadowRoot"
119613
119503
  },
119614
119504
  {
119615
119505
  "kind": "method",
119616
- "name": "setCustomValidity",
119617
- "privacy": "public",
119506
+ "name": "toggleState",
119507
+ "privacy": "protected",
119618
119508
  "return": {
119619
119509
  "type": {
119620
119510
  "text": "void"
@@ -119622,65 +119512,28 @@
119622
119512
  },
119623
119513
  "parameters": [
119624
119514
  {
119625
- "name": "message",
119515
+ "name": "value",
119626
119516
  "type": {
119627
119517
  "text": "string"
119628
119518
  }
119519
+ },
119520
+ {
119521
+ "name": "force",
119522
+ "optional": true,
119523
+ "type": {
119524
+ "text": "boolean"
119525
+ }
119629
119526
  }
119630
119527
  ],
119631
- "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.",
119632
119528
  "inheritedFrom": {
119633
- "name": "SbbFormAssociatedMixin",
119634
- "module": "core/mixins/form-associated-mixin.js"
119529
+ "name": "SbbElement",
119530
+ "module": "core/base-elements/element.js"
119635
119531
  }
119636
119532
  },
119637
119533
  {
119638
119534
  "kind": "method",
119639
- "name": "_hasDisabledAncestor",
119535
+ "name": "_slotchangeHandler",
119640
119536
  "privacy": "private",
119641
- "return": {
119642
- "type": {
119643
- "text": "boolean"
119644
- }
119645
- },
119646
- "inheritedFrom": {
119647
- "name": "SbbFormAssociatedMixin",
119648
- "module": "core/mixins/form-associated-mixin.js"
119649
- }
119650
- },
119651
- {
119652
- "kind": "method",
119653
- "name": "updateFormValue",
119654
- "privacy": "protected",
119655
- "return": {
119656
- "type": {
119657
- "text": "void"
119658
- }
119659
- },
119660
- "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",
119661
- "inheritedFrom": {
119662
- "name": "SbbFormAssociatedMixin",
119663
- "module": "core/mixins/form-associated-mixin.js"
119664
- }
119665
- },
119666
- {
119667
- "kind": "method",
119668
- "name": "formState",
119669
- "privacy": "protected",
119670
- "return": {
119671
- "type": {
119672
- "text": "FormRestoreState"
119673
- }
119674
- },
119675
- "inheritedFrom": {
119676
- "name": "SbbFormAssociatedMixin",
119677
- "module": "core/mixins/form-associated-mixin.js"
119678
- }
119679
- },
119680
- {
119681
- "kind": "method",
119682
- "name": "setValidityFlag",
119683
- "privacy": "protected",
119684
119537
  "return": {
119685
119538
  "type": {
119686
119539
  "text": "void"
@@ -119688,35 +119541,27 @@
119688
119541
  },
119689
119542
  "parameters": [
119690
119543
  {
119691
- "name": "flag",
119692
- "type": {
119693
- "text": "T"
119694
- }
119695
- },
119696
- {
119697
- "name": "message",
119544
+ "name": "event",
119698
119545
  "type": {
119699
- "text": "string"
119546
+ "text": "Event"
119700
119547
  }
119701
119548
  },
119702
119549
  {
119703
- "name": "flagValue",
119704
- "optional": true,
119550
+ "name": "slot",
119705
119551
  "type": {
119706
- "text": "ValidityStateFlags[T]"
119552
+ "text": "HTMLSlotElement"
119707
119553
  }
119708
119554
  }
119709
119555
  ],
119710
- "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).",
119711
119556
  "inheritedFrom": {
119712
- "name": "SbbFormAssociatedMixin",
119713
- "module": "core/mixins/form-associated-mixin.js"
119557
+ "name": "SbbElement",
119558
+ "module": "core/base-elements/element.js"
119714
119559
  }
119715
119560
  },
119716
119561
  {
119717
119562
  "kind": "method",
119718
- "name": "removeValidityFlag",
119719
- "privacy": "protected",
119563
+ "name": "_handleSlotChangeForSlottedState",
119564
+ "privacy": "private",
119720
119565
  "return": {
119721
119566
  "type": {
119722
119567
  "text": "void"
@@ -119724,772 +119569,877 @@
119724
119569
  },
119725
119570
  "parameters": [
119726
119571
  {
119727
- "name": "flag",
119572
+ "name": "slot",
119728
119573
  "type": {
119729
- "text": "T"
119574
+ "text": "HTMLSlotElement"
119730
119575
  }
119731
119576
  }
119732
119577
  ],
119733
- "description": "Removes the validity state flag entry and updates validity state.",
119734
119578
  "inheritedFrom": {
119735
- "name": "SbbFormAssociatedMixin",
119736
- "module": "core/mixins/form-associated-mixin.js"
119579
+ "name": "SbbElement",
119580
+ "module": "core/base-elements/element.js"
119737
119581
  }
119738
119582
  },
119739
119583
  {
119740
119584
  "kind": "method",
119741
- "name": "validate",
119742
- "privacy": "protected",
119585
+ "name": "_updateSlottedState",
119586
+ "privacy": "private",
119743
119587
  "return": {
119744
119588
  "type": {
119745
119589
  "text": "void"
119746
119590
  }
119747
119591
  },
119748
- "description": "To be called whenever the current element needs to be validated.",
119749
- "inheritedFrom": {
119750
- "name": "SbbFormAssociatedMixin",
119751
- "module": "core/mixins/form-associated-mixin.js"
119752
- }
119753
- },
119754
- {
119755
- "kind": "method",
119756
- "name": "shouldValidate",
119757
- "privacy": "protected",
119758
- "return": {
119759
- "type": {
119760
- "text": "boolean"
119761
- }
119762
- },
119763
119592
  "parameters": [
119764
119593
  {
119765
- "name": "name",
119594
+ "name": "slot",
119766
119595
  "type": {
119767
- "text": "PropertyKey | undefined"
119596
+ "text": "HTMLSlotElement"
119768
119597
  }
119769
119598
  }
119770
119599
  ],
119771
- "description": "Whether validation should be run on a property change with the given name.",
119772
119600
  "inheritedFrom": {
119773
- "name": "SbbFormAssociatedMixin",
119774
- "module": "core/mixins/form-associated-mixin.js"
119601
+ "name": "SbbElement",
119602
+ "module": "core/base-elements/element.js"
119775
119603
  }
119776
119604
  },
119777
119605
  {
119778
119606
  "kind": "method",
119779
- "name": "_setInternalValidity",
119607
+ "name": "_observeTextNodesInSlot",
119780
119608
  "privacy": "private",
119781
119609
  "return": {
119782
119610
  "type": {
119783
119611
  "text": "void"
119784
119612
  }
119785
119613
  },
119786
- "inheritedFrom": {
119787
- "name": "SbbFormAssociatedMixin",
119788
- "module": "core/mixins/form-associated-mixin.js"
119789
- }
119790
- },
119791
- {
119792
- "kind": "field",
119793
- "name": "role",
119794
- "type": {
119795
- "text": "ElementInternals['role']"
119796
- },
119797
- "privacy": "public",
119798
- "static": true,
119799
- "inheritedFrom": {
119800
- "name": "SbbElement",
119801
- "module": "core/base-elements/element.js"
119802
- },
119803
- "readonly": true,
119804
- "default": "'button'"
119805
- },
119806
- {
119807
- "kind": "field",
119808
- "name": "_preventScrollOnSpaceKeydown",
119809
- "privacy": "private",
119810
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
119811
119614
  "parameters": [
119812
119615
  {
119813
- "description": "The origin event.",
119814
- "name": "event"
119616
+ "name": "slot",
119617
+ "type": {
119618
+ "text": "HTMLSlotElement"
119619
+ }
119815
119620
  }
119816
119621
  ],
119817
119622
  "inheritedFrom": {
119818
- "name": "SbbButtonLikeBaseElement",
119819
- "module": "core/base-elements/button-base-element.js"
119820
- }
119821
- },
119822
- {
119823
- "kind": "field",
119824
- "name": "_removeActiveMarker",
119825
- "privacy": "private",
119826
- "inheritedFrom": {
119827
- "name": "SbbButtonLikeBaseElement",
119828
- "module": "core/base-elements/button-base-element.js"
119623
+ "name": "SbbElement",
119624
+ "module": "core/base-elements/element.js"
119829
119625
  }
119830
119626
  },
119831
119627
  {
119832
- "kind": "field",
119833
- "name": "_dispatchClickEventOnSpaceKeyup",
119628
+ "kind": "method",
119629
+ "name": "_hasSlottedContent",
119834
119630
  "privacy": "private",
119835
- "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.",
119631
+ "return": {
119632
+ "type": {
119633
+ "text": "boolean"
119634
+ }
119635
+ },
119836
119636
  "parameters": [
119837
119637
  {
119838
- "description": "The origin event.",
119839
- "name": "event"
119638
+ "name": "slot",
119639
+ "type": {
119640
+ "text": "HTMLSlotElement"
119641
+ }
119840
119642
  }
119841
119643
  ],
119842
119644
  "inheritedFrom": {
119843
- "name": "SbbButtonLikeBaseElement",
119844
- "module": "core/base-elements/button-base-element.js"
119645
+ "name": "SbbElement",
119646
+ "module": "core/base-elements/element.js"
119845
119647
  }
119846
- },
119648
+ }
119649
+ ],
119650
+ "mixins": [
119847
119651
  {
119848
- "kind": "field",
119849
- "name": "_dispatchClickEvent",
119850
- "privacy": "private",
119851
- "inheritedFrom": {
119852
- "name": "SbbButtonLikeBaseElement",
119853
- "module": "core/base-elements/button-base-element.js"
119854
- }
119652
+ "name": "SbbBlockLinkCommonElementMixin",
119653
+ "module": "link/common/block-link-common.js"
119855
119654
  },
119856
119655
  {
119857
- "kind": "field",
119858
- "name": "maybeDisabled",
119656
+ "name": "SbbDisabledMixin",
119657
+ "module": "core.js"
119658
+ }
119659
+ ],
119660
+ "superclass": {
119661
+ "name": "SbbActionBaseElement",
119662
+ "module": "core.js"
119663
+ },
119664
+ "tagName": "sbb-block-link-static",
119665
+ "customElement": true,
119666
+ "attributes": [
119667
+ {
119668
+ "name": "icon-placement",
119859
119669
  "type": {
119860
- "text": "boolean | undefined"
119670
+ "text": "SbbIconPlacement"
119861
119671
  },
119862
- "privacy": "protected",
119863
- "readonly": true,
119672
+ "default": "'start'",
119673
+ "description": "Moves the icon to the end of the component if set to true.",
119674
+ "fieldName": "iconPlacement",
119864
119675
  "inheritedFrom": {
119865
- "name": "SbbActionBaseElement",
119866
- "module": "core/base-elements/action-base-element.js"
119676
+ "name": "SbbBlockLinkCommonElementMixin",
119677
+ "module": "link/common/block-link-common.js"
119867
119678
  }
119868
119679
  },
119869
119680
  {
119870
- "kind": "field",
119871
- "name": "maybeDisabledInteractive",
119681
+ "name": "size",
119872
119682
  "type": {
119873
- "text": "boolean | undefined"
119683
+ "text": "SbbLinkSize"
119874
119684
  },
119875
- "privacy": "protected",
119876
- "readonly": true,
119685
+ "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
119686
+ "default": "'s' / 'xs' (lean)",
119687
+ "fieldName": "size",
119877
119688
  "inheritedFrom": {
119878
- "name": "SbbActionBaseElement",
119879
- "module": "core/base-elements/action-base-element.js"
119689
+ "name": "SbbLinkCommonElementMixin",
119690
+ "module": "link/common/link-common.js"
119880
119691
  }
119881
119692
  },
119882
119693
  {
119883
- "kind": "method",
119884
- "name": "setupBaseEventHandlers",
119885
- "privacy": "protected",
119886
- "return": {
119887
- "type": {
119888
- "text": "void"
119889
- }
119694
+ "name": "icon-name",
119695
+ "type": {
119696
+ "text": "string"
119890
119697
  },
119698
+ "default": "''",
119699
+ "description": "The icon name we want to use, choose from the small icon variants\nfrom the ui-icons category from here\nhttps://icons.app.sbb.ch.",
119700
+ "fieldName": "iconName",
119891
119701
  "inheritedFrom": {
119892
- "name": "SbbActionBaseElement",
119893
- "module": "core/base-elements/action-base-element.js"
119702
+ "name": "SbbIconNameMixin",
119703
+ "module": "icon/icon-name-mixin.js"
119894
119704
  }
119895
119705
  },
119896
119706
  {
119897
- "kind": "field",
119898
- "name": "['_$sbbElement$']",
119707
+ "name": "disabled",
119708
+ "description": "Whether the component is disabled.",
119709
+ "default": "false",
119899
119710
  "type": {
119900
119711
  "text": "boolean"
119901
119712
  },
119902
- "privacy": "public",
119903
- "static": true,
119904
- "default": "true",
119713
+ "fieldName": "disabled",
119905
119714
  "inheritedFrom": {
119906
- "name": "SbbElement",
119907
- "module": "core/base-elements/element.js"
119908
- }
119715
+ "name": "SbbDisabledMixin",
119716
+ "module": "core/mixins/disabled-mixin.js"
119717
+ }
119718
+ }
119719
+ ]
119720
+ }
119721
+ ],
119722
+ "exports": [
119723
+ {
119724
+ "kind": "js",
119725
+ "name": "SbbBlockLinkStaticElement",
119726
+ "declaration": {
119727
+ "name": "SbbBlockLinkStaticElement",
119728
+ "module": "link/block-link-static/block-link-static.component.js"
119729
+ }
119730
+ }
119731
+ ]
119732
+ },
119733
+ {
119734
+ "kind": "javascript-module",
119735
+ "path": "link/block-link-button/block-link-button.component.js",
119736
+ "declarations": [
119737
+ {
119738
+ "kind": "class",
119739
+ "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
119740
+ "name": "SbbBlockLinkButtonElement",
119741
+ "slots": [
119742
+ {
119743
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
119744
+ "name": ""
119909
119745
  },
119746
+ {
119747
+ "description": "Slot used to display the icon, if one is set.",
119748
+ "name": "icon"
119749
+ }
119750
+ ],
119751
+ "members": [
119910
119752
  {
119911
119753
  "kind": "field",
119912
- "name": "_controllers",
119754
+ "name": "elementName",
119913
119755
  "type": {
119914
- "text": "Set<SbbReactiveController> | undefined"
119756
+ "text": "string"
119915
119757
  },
119916
- "privacy": "private",
119758
+ "privacy": "public",
119759
+ "static": true,
119760
+ "readonly": true,
119917
119761
  "inheritedFrom": {
119918
119762
  "name": "SbbElement",
119919
119763
  "module": "core/base-elements/element.js"
119920
- }
119764
+ },
119765
+ "default": "'sbb-block-link-button'"
119921
119766
  },
119922
119767
  {
119923
119768
  "kind": "field",
119924
- "name": "_hydrationRequired",
119769
+ "name": "styles",
119925
119770
  "type": {
119926
- "text": "boolean"
119771
+ "text": "CSSResultGroup"
119927
119772
  },
119928
- "privacy": "private",
119929
- "default": "!!this.shadowRoot",
119773
+ "privacy": "public",
119774
+ "static": true,
119775
+ "default": "[super.styles, unsafeCSS(blockStyle)]",
119930
119776
  "inheritedFrom": {
119931
- "name": "SbbElement",
119932
- "module": "core/base-elements/element.js"
119777
+ "name": "SbbLinkCommonElementMixin",
119778
+ "module": "link/common/link-common.js"
119933
119779
  }
119934
119780
  },
119935
119781
  {
119936
119782
  "kind": "field",
119937
- "name": "_hydrationComplete",
119938
- "privacy": "private",
119939
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
119783
+ "name": "iconPlacement",
119784
+ "type": {
119785
+ "text": "SbbIconPlacement"
119786
+ },
119787
+ "privacy": "public",
119788
+ "default": "'start'",
119789
+ "description": "Moves the icon to the end of the component if set to true.",
119790
+ "attribute": "icon-placement",
119791
+ "reflects": true,
119940
119792
  "inheritedFrom": {
119941
- "name": "SbbElement",
119942
- "module": "core/base-elements/element.js"
119793
+ "name": "SbbBlockLinkCommonElementMixin",
119794
+ "module": "link/common/block-link-common.js"
119943
119795
  }
119944
119796
  },
119945
119797
  {
119946
- "kind": "field",
119947
- "name": "_resolveHydration",
119948
- "type": {
119949
- "text": "(hydrationRequired: boolean) => void"
119798
+ "kind": "method",
119799
+ "name": "renderTemplate",
119800
+ "privacy": "protected",
119801
+ "return": {
119802
+ "type": {
119803
+ "text": "TemplateResult"
119804
+ }
119950
119805
  },
119951
- "privacy": "private",
119806
+ "description": "Override this method to render the component template.",
119952
119807
  "inheritedFrom": {
119953
- "name": "SbbElement",
119954
- "module": "core/base-elements/element.js"
119808
+ "name": "SbbActionBaseElement",
119809
+ "module": "core/base-elements/action-base-element.js"
119955
119810
  }
119956
119811
  },
119957
119812
  {
119958
119813
  "kind": "field",
119959
- "name": "_textObserver",
119814
+ "name": "size",
119960
119815
  "type": {
119961
- "text": "MutationObserver | undefined"
119816
+ "text": "SbbLinkSize"
119962
119817
  },
119963
- "privacy": "private",
119818
+ "privacy": "public",
119819
+ "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
119820
+ "default": "'s' / 'xs' (lean)",
119821
+ "attribute": "size",
119822
+ "reflects": true,
119964
119823
  "inheritedFrom": {
119965
- "name": "SbbElement",
119966
- "module": "core/base-elements/element.js"
119824
+ "name": "SbbLinkCommonElementMixin",
119825
+ "module": "link/common/link-common.js"
119967
119826
  }
119968
119827
  },
119969
119828
  {
119970
119829
  "kind": "field",
119971
- "name": "hydrationRequired",
119830
+ "name": "elementDependencies",
119972
119831
  "type": {
119973
- "text": "boolean"
119832
+ "text": "SbbElementType[]"
119974
119833
  },
119975
- "privacy": "protected",
119976
- "description": "Returns whether hydration is required and not completed.",
119977
- "readonly": true,
119834
+ "privacy": "public",
119835
+ "static": true,
119978
119836
  "inheritedFrom": {
119979
119837
  "name": "SbbElement",
119980
119838
  "module": "core/base-elements/element.js"
119981
119839
  },
119982
- "default": "!!this.shadowRoot"
119840
+ "default": "[SbbIconElement]"
119841
+ },
119842
+ {
119843
+ "kind": "field",
119844
+ "name": "iconName",
119845
+ "type": {
119846
+ "text": "string"
119847
+ },
119848
+ "privacy": "public",
119849
+ "default": "''",
119850
+ "description": "The icon name we want to use, choose from the small icon variants\nfrom the ui-icons category from here\nhttps://icons.app.sbb.ch.",
119851
+ "attribute": "icon-name",
119852
+ "inheritedFrom": {
119853
+ "name": "SbbIconNameMixin",
119854
+ "module": "icon/icon-name-mixin.js"
119855
+ }
119983
119856
  },
119984
119857
  {
119985
119858
  "kind": "method",
119986
- "name": "toggleState",
119859
+ "name": "renderIconSlot",
119987
119860
  "privacy": "protected",
119988
119861
  "return": {
119989
119862
  "type": {
119990
- "text": "void"
119863
+ "text": "TemplateResult"
119991
119864
  }
119992
119865
  },
119993
119866
  "parameters": [
119994
119867
  {
119995
- "name": "value",
119996
- "type": {
119997
- "text": "string"
119998
- }
119999
- },
120000
- {
120001
- "name": "force",
119868
+ "name": "classname",
120002
119869
  "optional": true,
120003
119870
  "type": {
120004
- "text": "boolean"
119871
+ "text": "string"
120005
119872
  }
120006
119873
  }
120007
119874
  ],
120008
119875
  "inheritedFrom": {
120009
- "name": "SbbElement",
120010
- "module": "core/base-elements/element.js"
119876
+ "name": "SbbIconNameMixin",
119877
+ "module": "icon/icon-name-mixin.js"
120011
119878
  }
120012
119879
  },
120013
119880
  {
120014
119881
  "kind": "method",
120015
- "name": "_slotchangeHandler",
120016
- "privacy": "private",
119882
+ "name": "renderIconName",
119883
+ "privacy": "protected",
120017
119884
  "return": {
120018
119885
  "type": {
120019
- "text": "void"
119886
+ "text": "string"
120020
119887
  }
120021
119888
  },
120022
- "parameters": [
120023
- {
120024
- "name": "event",
120025
- "type": {
120026
- "text": "Event"
120027
- }
120028
- },
120029
- {
120030
- "name": "slot",
120031
- "type": {
120032
- "text": "HTMLSlotElement"
120033
- }
120034
- }
120035
- ],
120036
119889
  "inheritedFrom": {
120037
- "name": "SbbElement",
120038
- "module": "core/base-elements/element.js"
119890
+ "name": "SbbIconNameMixin",
119891
+ "module": "icon/icon-name-mixin.js"
120039
119892
  }
120040
119893
  },
120041
119894
  {
120042
119895
  "kind": "method",
120043
- "name": "_handleSlotChangeForSlottedState",
119896
+ "name": "_renderIconName",
120044
119897
  "privacy": "private",
120045
119898
  "return": {
120046
119899
  "type": {
120047
- "text": "void"
119900
+ "text": "string"
120048
119901
  }
120049
119902
  },
120050
- "parameters": [
120051
- {
120052
- "name": "slot",
120053
- "type": {
120054
- "text": "HTMLSlotElement"
120055
- }
120056
- }
120057
- ],
120058
119903
  "inheritedFrom": {
120059
- "name": "SbbElement",
120060
- "module": "core/base-elements/element.js"
119904
+ "name": "SbbIconNameMixin",
119905
+ "module": "icon/icon-name-mixin.js"
120061
119906
  }
120062
119907
  },
120063
119908
  {
120064
- "kind": "method",
120065
- "name": "_updateSlottedState",
120066
- "privacy": "private",
120067
- "return": {
120068
- "type": {
120069
- "text": "void"
120070
- }
119909
+ "kind": "field",
119910
+ "name": "disabledInteractive",
119911
+ "type": {
119912
+ "text": "boolean"
120071
119913
  },
120072
- "parameters": [
120073
- {
120074
- "name": "slot",
120075
- "type": {
120076
- "text": "HTMLSlotElement"
120077
- }
120078
- }
120079
- ],
119914
+ "privacy": "public",
119915
+ "default": "false",
119916
+ "description": "Whether the button should be aria-disabled but stay interactive.",
119917
+ "attribute": "disabled-interactive",
119918
+ "reflects": true,
120080
119919
  "inheritedFrom": {
120081
- "name": "SbbElement",
120082
- "module": "core/base-elements/element.js"
119920
+ "name": "SbbDisabledInteractiveMixin",
119921
+ "module": "core/mixins/disabled-mixin.js"
120083
119922
  }
120084
119923
  },
120085
119924
  {
120086
- "kind": "method",
120087
- "name": "_observeTextNodesInSlot",
119925
+ "kind": "field",
119926
+ "name": "disabled",
119927
+ "privacy": "public",
119928
+ "description": "Whether the component is disabled.",
119929
+ "default": "false",
119930
+ "type": {
119931
+ "text": "boolean"
119932
+ },
119933
+ "attribute": "disabled",
119934
+ "reflects": true,
119935
+ "inheritedFrom": {
119936
+ "name": "SbbDisabledMixin",
119937
+ "module": "core/mixins/disabled-mixin.js"
119938
+ }
119939
+ },
119940
+ {
119941
+ "kind": "field",
119942
+ "name": "#disabled",
120088
119943
  "privacy": "private",
120089
- "return": {
120090
- "type": {
120091
- "text": "void"
120092
- }
119944
+ "type": {
119945
+ "text": "boolean"
120093
119946
  },
120094
- "parameters": [
120095
- {
120096
- "name": "slot",
120097
- "type": {
120098
- "text": "HTMLSlotElement"
120099
- }
120100
- }
120101
- ],
119947
+ "default": "false",
120102
119948
  "inheritedFrom": {
120103
- "name": "SbbElement",
120104
- "module": "core/base-elements/element.js"
119949
+ "name": "SbbDisabledMixin",
119950
+ "module": "core/mixins/disabled-mixin.js"
120105
119951
  }
120106
119952
  },
120107
119953
  {
120108
119954
  "kind": "method",
120109
- "name": "_hasSlottedContent",
120110
- "privacy": "private",
119955
+ "name": "isDisabledExternally",
119956
+ "privacy": "protected",
120111
119957
  "return": {
120112
119958
  "type": {
120113
119959
  "text": "boolean"
120114
119960
  }
120115
119961
  },
120116
- "parameters": [
120117
- {
120118
- "name": "slot",
120119
- "type": {
120120
- "text": "HTMLSlotElement"
120121
- }
120122
- }
120123
- ],
119962
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
120124
119963
  "inheritedFrom": {
120125
- "name": "SbbElement",
120126
- "module": "core/base-elements/element.js"
119964
+ "name": "SbbDisabledMixin",
119965
+ "module": "core/mixins/disabled-mixin.js"
120127
119966
  }
120128
- }
120129
- ],
120130
- "mixins": [
120131
- {
120132
- "name": "SbbBlockLinkCommonElementMixin",
120133
- "module": "link/common/block-link-common.js"
120134
119967
  },
120135
119968
  {
120136
- "name": "SbbDisabledTabIndexActionMixin",
120137
- "module": "core.js"
120138
- }
120139
- ],
120140
- "superclass": {
120141
- "name": "SbbButtonBaseElement",
120142
- "module": "core.js"
120143
- },
120144
- "tagName": "sbb-block-link-button",
120145
- "customElement": true,
120146
- "attributes": [
120147
- {
120148
- "name": "icon-placement",
119969
+ "kind": "field",
119970
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
120149
119971
  "type": {
120150
- "text": "SbbIconPlacement"
119972
+ "text": "array"
120151
119973
  },
120152
- "default": "'start'",
120153
- "description": "Moves the icon to the end of the component if set to true.",
120154
- "fieldName": "iconPlacement",
119974
+ "privacy": "private",
119975
+ "readonly": true,
119976
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
120155
119977
  "inheritedFrom": {
120156
- "name": "SbbBlockLinkCommonElementMixin",
120157
- "module": "link/common/block-link-common.js"
119978
+ "name": "SbbButtonBaseElement",
119979
+ "module": "core/base-elements/button-base-element.js"
120158
119980
  }
120159
119981
  },
120160
119982
  {
120161
- "name": "size",
119983
+ "kind": "field",
119984
+ "name": "value",
120162
119985
  "type": {
120163
- "text": "SbbLinkSize"
119986
+ "text": "string"
120164
119987
  },
120165
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
120166
- "default": "'s' / 'xs' (lean)",
120167
- "fieldName": "size",
119988
+ "privacy": "public",
120168
119989
  "inheritedFrom": {
120169
- "name": "SbbLinkCommonElementMixin",
120170
- "module": "link/common/link-common.js"
120171
- }
120172
- },
120173
- {
120174
- "name": "icon-name",
120175
- "type": {
120176
- "text": "string"
119990
+ "name": "SbbButtonBaseElement",
119991
+ "module": "core/base-elements/button-base-element.js"
120177
119992
  },
120178
119993
  "default": "''",
120179
- "description": "The icon name we want to use, choose from the small icon variants\nfrom the ui-icons category from here\nhttps://icons.app.sbb.ch.",
120180
- "fieldName": "iconName",
120181
- "inheritedFrom": {
120182
- "name": "SbbIconNameMixin",
120183
- "module": "icon/icon-name-mixin.js"
120184
- }
119994
+ "description": "Value of the form element.",
119995
+ "attribute": "value"
120185
119996
  },
120186
119997
  {
120187
- "name": "disabled-interactive",
119998
+ "kind": "field",
119999
+ "name": "type",
120000
+ "privacy": "public",
120001
+ "description": "The type attribute to use for the button.",
120002
+ "default": "'button'",
120188
120003
  "type": {
120189
- "text": "boolean"
120004
+ "text": "SbbButtonType"
120190
120005
  },
120191
- "default": "false",
120192
- "description": "Whether the button should be aria-disabled but stay interactive.",
120193
- "fieldName": "disabledInteractive",
120006
+ "attribute": "type",
120194
120007
  "inheritedFrom": {
120195
- "name": "SbbDisabledInteractiveMixin",
120196
- "module": "core/mixins/disabled-mixin.js"
120008
+ "name": "SbbButtonBaseElement",
120009
+ "module": "core/base-elements/button-base-element.js"
120197
120010
  }
120198
120011
  },
120199
120012
  {
120200
- "name": "disabled",
120201
- "description": "Whether the component is disabled.",
120202
- "default": "false",
120013
+ "kind": "field",
120014
+ "name": "form",
120203
120015
  "type": {
120204
- "text": "boolean"
120016
+ "text": "HTMLFormElement | null"
120205
120017
  },
120206
- "fieldName": "disabled",
120018
+ "privacy": "public",
120019
+ "description": "The `<form>` element to associate the button with.",
120207
120020
  "inheritedFrom": {
120208
- "name": "SbbDisabledMixin",
120209
- "module": "core/mixins/disabled-mixin.js"
120210
- }
120021
+ "name": "SbbButtonBaseElement",
120022
+ "module": "core/base-elements/button-base-element.js"
120023
+ },
120024
+ "attribute": "form"
120211
120025
  },
120212
120026
  {
120213
- "name": "value",
120027
+ "kind": "field",
120028
+ "name": "_formId",
120214
120029
  "type": {
120215
120030
  "text": "string"
120216
120031
  },
120032
+ "privacy": "private",
120217
120033
  "default": "''",
120218
- "description": "Value of the form element.",
120219
- "fieldName": "value",
120220
120034
  "inheritedFrom": {
120221
120035
  "name": "SbbButtonBaseElement",
120222
120036
  "module": "core/base-elements/button-base-element.js"
120223
120037
  }
120224
120038
  },
120225
120039
  {
120226
- "name": "type",
120227
- "description": "The type attribute to use for the button.",
120228
- "default": "'button'",
120229
- "type": {
120230
- "text": "SbbButtonType"
120231
- },
120232
- "fieldName": "type",
120040
+ "kind": "field",
120041
+ "name": "_handleButtonClick",
120042
+ "privacy": "private",
120233
120043
  "inheritedFrom": {
120234
120044
  "name": "SbbButtonBaseElement",
120235
120045
  "module": "core/base-elements/button-base-element.js"
120236
120046
  }
120237
120047
  },
120238
120048
  {
120239
- "name": "form",
120240
- "description": "The `<form>` element to associate the button with.",
120241
- "type": {
120242
- "text": "HTMLFormElement | null"
120049
+ "kind": "method",
120050
+ "name": "_requestSubmit",
120051
+ "privacy": "private",
120052
+ "return": {
120053
+ "type": {
120054
+ "text": "void"
120055
+ }
120243
120056
  },
120244
- "fieldName": "form",
120057
+ "parameters": [
120058
+ {
120059
+ "name": "form",
120060
+ "type": {
120061
+ "text": "HTMLFormElement"
120062
+ }
120063
+ }
120064
+ ],
120245
120065
  "inheritedFrom": {
120246
120066
  "name": "SbbButtonBaseElement",
120247
120067
  "module": "core/base-elements/button-base-element.js"
120248
120068
  }
120249
120069
  },
120250
120070
  {
120071
+ "kind": "field",
120072
+ "name": "_formKeyDown",
120073
+ "privacy": "private",
120074
+ "inheritedFrom": {
120075
+ "name": "SbbButtonBaseElement",
120076
+ "module": "core/base-elements/button-base-element.js"
120077
+ }
120078
+ },
120079
+ {
120080
+ "kind": "field",
120081
+ "name": "formAssociated",
120082
+ "type": {
120083
+ "text": "boolean"
120084
+ },
120085
+ "privacy": "public",
120086
+ "static": true,
120087
+ "default": "true",
120088
+ "inheritedFrom": {
120089
+ "name": "SbbFormAssociatedMixin",
120090
+ "module": "core/mixins/form-associated-mixin.js"
120091
+ }
120092
+ },
120093
+ {
120094
+ "kind": "field",
120251
120095
  "name": "name",
120096
+ "privacy": "public",
120252
120097
  "description": "Name of the form element. Will be read from name attribute.",
120253
120098
  "type": {
120254
120099
  "text": "string"
120255
120100
  },
120256
- "fieldName": "name",
120101
+ "attribute": "name",
120257
120102
  "inheritedFrom": {
120258
120103
  "name": "SbbFormAssociatedMixin",
120259
120104
  "module": "core/mixins/form-associated-mixin.js"
120260
120105
  }
120261
- }
120262
- ]
120263
- }
120264
- ],
120265
- "exports": [
120266
- {
120267
- "kind": "js",
120268
- "name": "SbbBlockLinkButtonElement",
120269
- "declaration": {
120270
- "name": "SbbBlockLinkButtonElement",
120271
- "module": "link/block-link-button/block-link-button.component.js"
120272
- }
120273
- }
120274
- ]
120275
- },
120276
- {
120277
- "kind": "javascript-module",
120278
- "path": "link/block-link-static/block-link-static.component.js",
120279
- "declarations": [
120280
- {
120281
- "kind": "class",
120282
- "description": "It displays a static link enhanced with the SBB Design.",
120283
- "name": "SbbBlockLinkStaticElement",
120284
- "slots": [
120285
- {
120286
- "description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
120287
- "name": ""
120288
120106
  },
120289
120107
  {
120290
- "description": "Slot used to display the icon, if one is set.",
120291
- "name": "icon"
120292
- }
120293
- ],
120294
- "members": [
120108
+ "kind": "field",
120109
+ "name": "validity",
120110
+ "type": {
120111
+ "text": "ValidityState"
120112
+ },
120113
+ "privacy": "public",
120114
+ "description": "Returns the ValidityState object for this element.",
120115
+ "readonly": true,
120116
+ "inheritedFrom": {
120117
+ "name": "SbbFormAssociatedMixin",
120118
+ "module": "core/mixins/form-associated-mixin.js"
120119
+ }
120120
+ },
120295
120121
  {
120296
120122
  "kind": "field",
120297
- "name": "elementName",
120123
+ "name": "validationMessage",
120298
120124
  "type": {
120299
120125
  "text": "string"
120300
120126
  },
120301
120127
  "privacy": "public",
120302
- "static": true,
120128
+ "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.",
120303
120129
  "readonly": true,
120304
120130
  "inheritedFrom": {
120305
- "name": "SbbElement",
120306
- "module": "core/base-elements/element.js"
120307
- },
120308
- "default": "'sbb-block-link-static'"
120131
+ "name": "SbbFormAssociatedMixin",
120132
+ "module": "core/mixins/form-associated-mixin.js"
120133
+ }
120309
120134
  },
120310
120135
  {
120311
120136
  "kind": "field",
120312
- "name": "styles",
120137
+ "name": "willValidate",
120313
120138
  "type": {
120314
- "text": "CSSResultGroup"
120139
+ "text": "boolean"
120315
120140
  },
120316
120141
  "privacy": "public",
120317
- "static": true,
120318
- "default": "[super.styles, unsafeCSS(blockStyle)]",
120142
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
120143
+ "readonly": true,
120319
120144
  "inheritedFrom": {
120320
- "name": "SbbLinkCommonElementMixin",
120321
- "module": "link/common/link-common.js"
120145
+ "name": "SbbFormAssociatedMixin",
120146
+ "module": "core/mixins/form-associated-mixin.js"
120322
120147
  }
120323
120148
  },
120324
120149
  {
120325
120150
  "kind": "field",
120326
- "name": "iconPlacement",
120151
+ "name": "_validityStates",
120152
+ "privacy": "private",
120153
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
120154
+ "inheritedFrom": {
120155
+ "name": "SbbFormAssociatedMixin",
120156
+ "module": "core/mixins/form-associated-mixin.js"
120157
+ }
120158
+ },
120159
+ {
120160
+ "kind": "field",
120161
+ "name": "formDisabled",
120327
120162
  "type": {
120328
- "text": "SbbIconPlacement"
120163
+ "text": "boolean"
120329
120164
  },
120330
- "privacy": "public",
120331
- "default": "'start'",
120332
- "description": "Moves the icon to the end of the component if set to true.",
120333
- "attribute": "icon-placement",
120334
- "reflects": true,
120165
+ "privacy": "protected",
120166
+ "default": "false",
120167
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
120335
120168
  "inheritedFrom": {
120336
- "name": "SbbBlockLinkCommonElementMixin",
120337
- "module": "link/common/block-link-common.js"
120169
+ "name": "SbbFormAssociatedMixin",
120170
+ "module": "core/mixins/form-associated-mixin.js"
120338
120171
  }
120339
120172
  },
120340
120173
  {
120341
120174
  "kind": "method",
120342
- "name": "renderTemplate",
120343
- "privacy": "protected",
120175
+ "name": "checkValidity",
120176
+ "privacy": "public",
120344
120177
  "return": {
120345
120178
  "type": {
120346
- "text": "TemplateResult"
120179
+ "text": "boolean"
120347
120180
  }
120348
120181
  },
120349
- "description": "Override this method to render the component template.",
120182
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
120350
120183
  "inheritedFrom": {
120351
- "name": "SbbActionBaseElement",
120352
- "module": "core/base-elements/action-base-element.js"
120184
+ "name": "SbbFormAssociatedMixin",
120185
+ "module": "core/mixins/form-associated-mixin.js"
120353
120186
  }
120354
120187
  },
120355
120188
  {
120356
- "kind": "field",
120357
- "name": "size",
120358
- "type": {
120359
- "text": "SbbLinkSize"
120189
+ "kind": "method",
120190
+ "name": "reportValidity",
120191
+ "privacy": "public",
120192
+ "return": {
120193
+ "type": {
120194
+ "text": "boolean"
120195
+ }
120360
120196
  },
120197
+ "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.",
120198
+ "inheritedFrom": {
120199
+ "name": "SbbFormAssociatedMixin",
120200
+ "module": "core/mixins/form-associated-mixin.js"
120201
+ }
120202
+ },
120203
+ {
120204
+ "kind": "method",
120205
+ "name": "setCustomValidity",
120361
120206
  "privacy": "public",
120362
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
120363
- "default": "'s' / 'xs' (lean)",
120364
- "attribute": "size",
120365
- "reflects": true,
120207
+ "return": {
120208
+ "type": {
120209
+ "text": "void"
120210
+ }
120211
+ },
120212
+ "parameters": [
120213
+ {
120214
+ "name": "message",
120215
+ "type": {
120216
+ "text": "string"
120217
+ }
120218
+ }
120219
+ ],
120220
+ "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.",
120366
120221
  "inheritedFrom": {
120367
- "name": "SbbLinkCommonElementMixin",
120368
- "module": "link/common/link-common.js"
120222
+ "name": "SbbFormAssociatedMixin",
120223
+ "module": "core/mixins/form-associated-mixin.js"
120369
120224
  }
120370
120225
  },
120371
120226
  {
120372
- "kind": "field",
120373
- "name": "elementDependencies",
120374
- "type": {
120375
- "text": "SbbElementType[]"
120227
+ "kind": "method",
120228
+ "name": "_hasDisabledAncestor",
120229
+ "privacy": "private",
120230
+ "return": {
120231
+ "type": {
120232
+ "text": "boolean"
120233
+ }
120376
120234
  },
120377
- "privacy": "public",
120378
- "static": true,
120379
120235
  "inheritedFrom": {
120380
- "name": "SbbElement",
120381
- "module": "core/base-elements/element.js"
120236
+ "name": "SbbFormAssociatedMixin",
120237
+ "module": "core/mixins/form-associated-mixin.js"
120238
+ }
120239
+ },
120240
+ {
120241
+ "kind": "method",
120242
+ "name": "updateFormValue",
120243
+ "privacy": "protected",
120244
+ "return": {
120245
+ "type": {
120246
+ "text": "void"
120247
+ }
120382
120248
  },
120383
- "default": "[SbbIconElement]"
120249
+ "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",
120250
+ "inheritedFrom": {
120251
+ "name": "SbbFormAssociatedMixin",
120252
+ "module": "core/mixins/form-associated-mixin.js"
120253
+ }
120384
120254
  },
120385
120255
  {
120386
- "kind": "field",
120387
- "name": "iconName",
120388
- "type": {
120389
- "text": "string"
120256
+ "kind": "method",
120257
+ "name": "formState",
120258
+ "privacy": "protected",
120259
+ "return": {
120260
+ "type": {
120261
+ "text": "FormRestoreState"
120262
+ }
120390
120263
  },
120391
- "privacy": "public",
120392
- "default": "''",
120393
- "description": "The icon name we want to use, choose from the small icon variants\nfrom the ui-icons category from here\nhttps://icons.app.sbb.ch.",
120394
- "attribute": "icon-name",
120395
120264
  "inheritedFrom": {
120396
- "name": "SbbIconNameMixin",
120397
- "module": "icon/icon-name-mixin.js"
120265
+ "name": "SbbFormAssociatedMixin",
120266
+ "module": "core/mixins/form-associated-mixin.js"
120398
120267
  }
120399
120268
  },
120400
120269
  {
120401
120270
  "kind": "method",
120402
- "name": "renderIconSlot",
120271
+ "name": "setValidityFlag",
120403
120272
  "privacy": "protected",
120404
120273
  "return": {
120405
120274
  "type": {
120406
- "text": "TemplateResult"
120275
+ "text": "void"
120407
120276
  }
120408
120277
  },
120409
120278
  "parameters": [
120410
120279
  {
120411
- "name": "classname",
120412
- "optional": true,
120280
+ "name": "flag",
120281
+ "type": {
120282
+ "text": "T"
120283
+ }
120284
+ },
120285
+ {
120286
+ "name": "message",
120413
120287
  "type": {
120414
120288
  "text": "string"
120415
120289
  }
120290
+ },
120291
+ {
120292
+ "name": "flagValue",
120293
+ "optional": true,
120294
+ "type": {
120295
+ "text": "ValidityStateFlags[T]"
120296
+ }
120416
120297
  }
120417
120298
  ],
120299
+ "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).",
120418
120300
  "inheritedFrom": {
120419
- "name": "SbbIconNameMixin",
120420
- "module": "icon/icon-name-mixin.js"
120301
+ "name": "SbbFormAssociatedMixin",
120302
+ "module": "core/mixins/form-associated-mixin.js"
120421
120303
  }
120422
120304
  },
120423
120305
  {
120424
120306
  "kind": "method",
120425
- "name": "renderIconName",
120307
+ "name": "removeValidityFlag",
120426
120308
  "privacy": "protected",
120427
120309
  "return": {
120428
120310
  "type": {
120429
- "text": "string"
120311
+ "text": "void"
120430
120312
  }
120431
120313
  },
120314
+ "parameters": [
120315
+ {
120316
+ "name": "flag",
120317
+ "type": {
120318
+ "text": "T"
120319
+ }
120320
+ }
120321
+ ],
120322
+ "description": "Removes the validity state flag entry and updates validity state.",
120432
120323
  "inheritedFrom": {
120433
- "name": "SbbIconNameMixin",
120434
- "module": "icon/icon-name-mixin.js"
120324
+ "name": "SbbFormAssociatedMixin",
120325
+ "module": "core/mixins/form-associated-mixin.js"
120435
120326
  }
120436
120327
  },
120437
120328
  {
120438
120329
  "kind": "method",
120439
- "name": "_renderIconName",
120330
+ "name": "validate",
120331
+ "privacy": "protected",
120332
+ "return": {
120333
+ "type": {
120334
+ "text": "void"
120335
+ }
120336
+ },
120337
+ "description": "To be called whenever the current element needs to be validated.",
120338
+ "inheritedFrom": {
120339
+ "name": "SbbFormAssociatedMixin",
120340
+ "module": "core/mixins/form-associated-mixin.js"
120341
+ }
120342
+ },
120343
+ {
120344
+ "kind": "method",
120345
+ "name": "shouldValidate",
120346
+ "privacy": "protected",
120347
+ "return": {
120348
+ "type": {
120349
+ "text": "boolean"
120350
+ }
120351
+ },
120352
+ "parameters": [
120353
+ {
120354
+ "name": "name",
120355
+ "type": {
120356
+ "text": "PropertyKey | undefined"
120357
+ }
120358
+ }
120359
+ ],
120360
+ "description": "Whether validation should be run on a property change with the given name.",
120361
+ "inheritedFrom": {
120362
+ "name": "SbbFormAssociatedMixin",
120363
+ "module": "core/mixins/form-associated-mixin.js"
120364
+ }
120365
+ },
120366
+ {
120367
+ "kind": "method",
120368
+ "name": "_setInternalValidity",
120440
120369
  "privacy": "private",
120441
120370
  "return": {
120442
120371
  "type": {
120443
- "text": "string"
120372
+ "text": "void"
120444
120373
  }
120445
120374
  },
120446
120375
  "inheritedFrom": {
120447
- "name": "SbbIconNameMixin",
120448
- "module": "icon/icon-name-mixin.js"
120376
+ "name": "SbbFormAssociatedMixin",
120377
+ "module": "core/mixins/form-associated-mixin.js"
120449
120378
  }
120450
120379
  },
120451
120380
  {
120452
120381
  "kind": "field",
120453
- "name": "disabled",
120454
- "privacy": "public",
120455
- "description": "Whether the component is disabled.",
120456
- "default": "false",
120382
+ "name": "role",
120457
120383
  "type": {
120458
- "text": "boolean"
120384
+ "text": "ElementInternals['role']"
120459
120385
  },
120460
- "attribute": "disabled",
120461
- "reflects": true,
120386
+ "privacy": "public",
120387
+ "static": true,
120462
120388
  "inheritedFrom": {
120463
- "name": "SbbDisabledMixin",
120464
- "module": "core/mixins/disabled-mixin.js"
120389
+ "name": "SbbElement",
120390
+ "module": "core/base-elements/element.js"
120391
+ },
120392
+ "readonly": true,
120393
+ "default": "'button'"
120394
+ },
120395
+ {
120396
+ "kind": "field",
120397
+ "name": "_preventScrollOnSpaceKeydown",
120398
+ "privacy": "private",
120399
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
120400
+ "parameters": [
120401
+ {
120402
+ "description": "The origin event.",
120403
+ "name": "event"
120404
+ }
120405
+ ],
120406
+ "inheritedFrom": {
120407
+ "name": "SbbButtonLikeBaseElement",
120408
+ "module": "core/base-elements/button-base-element.js"
120465
120409
  }
120466
120410
  },
120467
120411
  {
120468
120412
  "kind": "field",
120469
- "name": "#disabled",
120413
+ "name": "_removeActiveMarker",
120470
120414
  "privacy": "private",
120471
- "type": {
120472
- "text": "boolean"
120473
- },
120474
- "default": "false",
120475
120415
  "inheritedFrom": {
120476
- "name": "SbbDisabledMixin",
120477
- "module": "core/mixins/disabled-mixin.js"
120416
+ "name": "SbbButtonLikeBaseElement",
120417
+ "module": "core/base-elements/button-base-element.js"
120478
120418
  }
120479
120419
  },
120480
120420
  {
120481
- "kind": "method",
120482
- "name": "isDisabledExternally",
120483
- "privacy": "protected",
120484
- "return": {
120485
- "type": {
120486
- "text": "boolean"
120421
+ "kind": "field",
120422
+ "name": "_dispatchClickEventOnSpaceKeyup",
120423
+ "privacy": "private",
120424
+ "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.",
120425
+ "parameters": [
120426
+ {
120427
+ "description": "The origin event.",
120428
+ "name": "event"
120487
120429
  }
120488
- },
120489
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
120430
+ ],
120490
120431
  "inheritedFrom": {
120491
- "name": "SbbDisabledMixin",
120492
- "module": "core/mixins/disabled-mixin.js"
120432
+ "name": "SbbButtonLikeBaseElement",
120433
+ "module": "core/base-elements/button-base-element.js"
120434
+ }
120435
+ },
120436
+ {
120437
+ "kind": "field",
120438
+ "name": "_dispatchClickEvent",
120439
+ "privacy": "private",
120440
+ "inheritedFrom": {
120441
+ "name": "SbbButtonLikeBaseElement",
120442
+ "module": "core/base-elements/button-base-element.js"
120493
120443
  }
120494
120444
  },
120495
120445
  {
@@ -120546,19 +120496,6 @@
120546
120496
  "module": "core/base-elements/element.js"
120547
120497
  }
120548
120498
  },
120549
- {
120550
- "kind": "field",
120551
- "name": "role",
120552
- "type": {
120553
- "text": "ElementInternals['role'] | undefined"
120554
- },
120555
- "privacy": "public",
120556
- "static": true,
120557
- "inheritedFrom": {
120558
- "name": "SbbElement",
120559
- "module": "core/base-elements/element.js"
120560
- }
120561
- },
120562
120499
  {
120563
120500
  "kind": "field",
120564
120501
  "name": "_controllers",
@@ -120785,15 +120722,15 @@
120785
120722
  "module": "link/common/block-link-common.js"
120786
120723
  },
120787
120724
  {
120788
- "name": "SbbDisabledMixin",
120725
+ "name": "SbbDisabledTabIndexActionMixin",
120789
120726
  "module": "core.js"
120790
120727
  }
120791
120728
  ],
120792
120729
  "superclass": {
120793
- "name": "SbbActionBaseElement",
120730
+ "name": "SbbButtonBaseElement",
120794
120731
  "module": "core.js"
120795
120732
  },
120796
- "tagName": "sbb-block-link-static",
120733
+ "tagName": "sbb-block-link-button",
120797
120734
  "customElement": true,
120798
120735
  "attributes": [
120799
120736
  {
@@ -120835,6 +120772,19 @@
120835
120772
  "module": "icon/icon-name-mixin.js"
120836
120773
  }
120837
120774
  },
120775
+ {
120776
+ "name": "disabled-interactive",
120777
+ "type": {
120778
+ "text": "boolean"
120779
+ },
120780
+ "default": "false",
120781
+ "description": "Whether the button should be aria-disabled but stay interactive.",
120782
+ "fieldName": "disabledInteractive",
120783
+ "inheritedFrom": {
120784
+ "name": "SbbDisabledInteractiveMixin",
120785
+ "module": "core/mixins/disabled-mixin.js"
120786
+ }
120787
+ },
120838
120788
  {
120839
120789
  "name": "disabled",
120840
120790
  "description": "Whether the component is disabled.",
@@ -120847,6 +120797,56 @@
120847
120797
  "name": "SbbDisabledMixin",
120848
120798
  "module": "core/mixins/disabled-mixin.js"
120849
120799
  }
120800
+ },
120801
+ {
120802
+ "name": "value",
120803
+ "type": {
120804
+ "text": "string"
120805
+ },
120806
+ "default": "''",
120807
+ "description": "Value of the form element.",
120808
+ "fieldName": "value",
120809
+ "inheritedFrom": {
120810
+ "name": "SbbButtonBaseElement",
120811
+ "module": "core/base-elements/button-base-element.js"
120812
+ }
120813
+ },
120814
+ {
120815
+ "name": "type",
120816
+ "description": "The type attribute to use for the button.",
120817
+ "default": "'button'",
120818
+ "type": {
120819
+ "text": "SbbButtonType"
120820
+ },
120821
+ "fieldName": "type",
120822
+ "inheritedFrom": {
120823
+ "name": "SbbButtonBaseElement",
120824
+ "module": "core/base-elements/button-base-element.js"
120825
+ }
120826
+ },
120827
+ {
120828
+ "name": "form",
120829
+ "description": "The `<form>` element to associate the button with.",
120830
+ "type": {
120831
+ "text": "HTMLFormElement | null"
120832
+ },
120833
+ "fieldName": "form",
120834
+ "inheritedFrom": {
120835
+ "name": "SbbButtonBaseElement",
120836
+ "module": "core/base-elements/button-base-element.js"
120837
+ }
120838
+ },
120839
+ {
120840
+ "name": "name",
120841
+ "description": "Name of the form element. Will be read from name attribute.",
120842
+ "type": {
120843
+ "text": "string"
120844
+ },
120845
+ "fieldName": "name",
120846
+ "inheritedFrom": {
120847
+ "name": "SbbFormAssociatedMixin",
120848
+ "module": "core/mixins/form-associated-mixin.js"
120849
+ }
120850
120850
  }
120851
120851
  ]
120852
120852
  }
@@ -120854,10 +120854,10 @@
120854
120854
  "exports": [
120855
120855
  {
120856
120856
  "kind": "js",
120857
- "name": "SbbBlockLinkStaticElement",
120857
+ "name": "SbbBlockLinkButtonElement",
120858
120858
  "declaration": {
120859
- "name": "SbbBlockLinkStaticElement",
120860
- "module": "link/block-link-static/block-link-static.component.js"
120859
+ "name": "SbbBlockLinkButtonElement",
120860
+ "module": "link/block-link-button/block-link-button.component.js"
120861
120861
  }
120862
120862
  }
120863
120863
  ]
@@ -153347,12 +153347,12 @@
153347
153347
  },
153348
153348
  {
153349
153349
  "kind": "javascript-module",
153350
- "path": "teaser-product/teaser-product-static/teaser-product-static.component.js",
153350
+ "path": "teaser-product/teaser-product/teaser-product.component.js",
153351
153351
  "declarations": [
153352
153352
  {
153353
153353
  "kind": "class",
153354
- "description": "Displays a text and a footnote, combined with an image, to tease a product.",
153355
- "name": "SbbTeaserProductStaticElement",
153354
+ "description": "Displays a text and a footnote, combined with an image, to tease a product",
153355
+ "name": "SbbTeaserProductElement",
153356
153356
  "cssProperties": [
153357
153357
  {
153358
153358
  "description": "At which percentage the background should start getting transparent.",
@@ -153393,7 +153393,21 @@
153393
153393
  "name": "SbbElement",
153394
153394
  "module": "core/base-elements/element.js"
153395
153395
  },
153396
- "default": "'sbb-teaser-product-static'"
153396
+ "default": "'sbb-teaser-product'"
153397
+ },
153398
+ {
153399
+ "kind": "field",
153400
+ "name": "elementDependencies",
153401
+ "type": {
153402
+ "text": "SbbElementType[]"
153403
+ },
153404
+ "privacy": "public",
153405
+ "static": true,
153406
+ "inheritedFrom": {
153407
+ "name": "SbbElement",
153408
+ "module": "core/base-elements/element.js"
153409
+ },
153410
+ "default": "[SbbScreenReaderOnlyElement]"
153397
153411
  },
153398
153412
  {
153399
153413
  "kind": "field",
@@ -153442,6 +153456,155 @@
153442
153456
  "module": "core/mixins/negative-mixin.js"
153443
153457
  }
153444
153458
  },
153459
+ {
153460
+ "kind": "field",
153461
+ "name": "href",
153462
+ "type": {
153463
+ "text": "string"
153464
+ },
153465
+ "privacy": "public",
153466
+ "default": "''",
153467
+ "description": "The href value you want to link to.",
153468
+ "attribute": "href",
153469
+ "reflects": true,
153470
+ "inheritedFrom": {
153471
+ "name": "SbbLinkBaseElement",
153472
+ "module": "core/base-elements/link-base-element.js"
153473
+ }
153474
+ },
153475
+ {
153476
+ "kind": "field",
153477
+ "name": "target",
153478
+ "type": {
153479
+ "text": "LinkTargetType | string"
153480
+ },
153481
+ "privacy": "public",
153482
+ "default": "''",
153483
+ "description": "Where to display the linked URL.",
153484
+ "attribute": "target",
153485
+ "reflects": true,
153486
+ "inheritedFrom": {
153487
+ "name": "SbbLinkBaseElement",
153488
+ "module": "core/base-elements/link-base-element.js"
153489
+ }
153490
+ },
153491
+ {
153492
+ "kind": "field",
153493
+ "name": "rel",
153494
+ "type": {
153495
+ "text": "string"
153496
+ },
153497
+ "privacy": "public",
153498
+ "default": "''",
153499
+ "description": "The relationship of the linked URL as space-separated link types.",
153500
+ "attribute": "rel",
153501
+ "reflects": true,
153502
+ "inheritedFrom": {
153503
+ "name": "SbbLinkBaseElement",
153504
+ "module": "core/base-elements/link-base-element.js"
153505
+ }
153506
+ },
153507
+ {
153508
+ "kind": "field",
153509
+ "name": "download",
153510
+ "type": {
153511
+ "text": "boolean"
153512
+ },
153513
+ "privacy": "public",
153514
+ "default": "false",
153515
+ "description": "Whether the browser will show the download dialog on click.",
153516
+ "attribute": "download",
153517
+ "reflects": true,
153518
+ "inheritedFrom": {
153519
+ "name": "SbbLinkBaseElement",
153520
+ "module": "core/base-elements/link-base-element.js"
153521
+ }
153522
+ },
153523
+ {
153524
+ "kind": "field",
153525
+ "name": "accessibilityLabel",
153526
+ "type": {
153527
+ "text": "string"
153528
+ },
153529
+ "privacy": "public",
153530
+ "default": "''",
153531
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
153532
+ "attribute": "accessibility-label",
153533
+ "inheritedFrom": {
153534
+ "name": "SbbLinkBaseElement",
153535
+ "module": "core/base-elements/link-base-element.js"
153536
+ }
153537
+ },
153538
+ {
153539
+ "kind": "field",
153540
+ "name": "accessibilityCurrent",
153541
+ "type": {
153542
+ "text": "string"
153543
+ },
153544
+ "privacy": "public",
153545
+ "default": "''",
153546
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
153547
+ "attribute": "accessibility-current",
153548
+ "inheritedFrom": {
153549
+ "name": "SbbLinkBaseElement",
153550
+ "module": "core/base-elements/link-base-element.js"
153551
+ }
153552
+ },
153553
+ {
153554
+ "kind": "field",
153555
+ "name": "language",
153556
+ "privacy": "protected",
153557
+ "default": "new SbbLanguageController(this)",
153558
+ "inheritedFrom": {
153559
+ "name": "SbbLinkBaseElement",
153560
+ "module": "core/base-elements/link-base-element.js"
153561
+ }
153562
+ },
153563
+ {
153564
+ "kind": "field",
153565
+ "name": "anchorRole",
153566
+ "type": {
153567
+ "text": "string | null"
153568
+ },
153569
+ "privacy": "protected",
153570
+ "readonly": true,
153571
+ "default": "null",
153572
+ "inheritedFrom": {
153573
+ "name": "SbbLinkBaseElement",
153574
+ "module": "core/base-elements/link-base-element.js"
153575
+ }
153576
+ },
153577
+ {
153578
+ "kind": "field",
153579
+ "name": "_evaluateRelAttribute",
153580
+ "privacy": "private",
153581
+ "inheritedFrom": {
153582
+ "name": "SbbLinkBaseElement",
153583
+ "module": "core/base-elements/link-base-element.js"
153584
+ }
153585
+ },
153586
+ {
153587
+ "kind": "method",
153588
+ "name": "renderLink",
153589
+ "privacy": "protected",
153590
+ "return": {
153591
+ "type": {
153592
+ "text": "TemplateResult"
153593
+ }
153594
+ },
153595
+ "parameters": [
153596
+ {
153597
+ "name": "renderContent",
153598
+ "type": {
153599
+ "text": "TemplateResult"
153600
+ }
153601
+ }
153602
+ ],
153603
+ "inheritedFrom": {
153604
+ "name": "SbbLinkBaseElement",
153605
+ "module": "core/base-elements/link-base-element.js"
153606
+ }
153607
+ },
153445
153608
  {
153446
153609
  "kind": "field",
153447
153610
  "name": "maybeDisabled",
@@ -153496,19 +153659,6 @@
153496
153659
  "module": "core/base-elements/element.js"
153497
153660
  }
153498
153661
  },
153499
- {
153500
- "kind": "field",
153501
- "name": "elementDependencies",
153502
- "type": {
153503
- "text": "SbbElementType[] | undefined"
153504
- },
153505
- "privacy": "public",
153506
- "static": true,
153507
- "inheritedFrom": {
153508
- "name": "SbbElement",
153509
- "module": "core/base-elements/element.js"
153510
- }
153511
- },
153512
153662
  {
153513
153663
  "kind": "field",
153514
153664
  "name": "role",
@@ -153749,10 +153899,10 @@
153749
153899
  }
153750
153900
  ],
153751
153901
  "superclass": {
153752
- "name": "SbbActionBaseElement",
153902
+ "name": "SbbLinkBaseElement",
153753
153903
  "module": "core.js"
153754
153904
  },
153755
- "tagName": "sbb-teaser-product-static",
153905
+ "tagName": "sbb-teaser-product",
153756
153906
  "customElement": true,
153757
153907
  "attributes": [
153758
153908
  {
@@ -153780,6 +153930,84 @@
153780
153930
  "name": "SbbNegativeMixin",
153781
153931
  "module": "core/mixins/negative-mixin.js"
153782
153932
  }
153933
+ },
153934
+ {
153935
+ "name": "href",
153936
+ "type": {
153937
+ "text": "string"
153938
+ },
153939
+ "default": "''",
153940
+ "description": "The href value you want to link to.",
153941
+ "fieldName": "href",
153942
+ "inheritedFrom": {
153943
+ "name": "SbbLinkBaseElement",
153944
+ "module": "core/base-elements/link-base-element.js"
153945
+ }
153946
+ },
153947
+ {
153948
+ "name": "target",
153949
+ "type": {
153950
+ "text": "LinkTargetType | string"
153951
+ },
153952
+ "default": "''",
153953
+ "description": "Where to display the linked URL.",
153954
+ "fieldName": "target",
153955
+ "inheritedFrom": {
153956
+ "name": "SbbLinkBaseElement",
153957
+ "module": "core/base-elements/link-base-element.js"
153958
+ }
153959
+ },
153960
+ {
153961
+ "name": "rel",
153962
+ "type": {
153963
+ "text": "string"
153964
+ },
153965
+ "default": "''",
153966
+ "description": "The relationship of the linked URL as space-separated link types.",
153967
+ "fieldName": "rel",
153968
+ "inheritedFrom": {
153969
+ "name": "SbbLinkBaseElement",
153970
+ "module": "core/base-elements/link-base-element.js"
153971
+ }
153972
+ },
153973
+ {
153974
+ "name": "download",
153975
+ "type": {
153976
+ "text": "boolean"
153977
+ },
153978
+ "default": "false",
153979
+ "description": "Whether the browser will show the download dialog on click.",
153980
+ "fieldName": "download",
153981
+ "inheritedFrom": {
153982
+ "name": "SbbLinkBaseElement",
153983
+ "module": "core/base-elements/link-base-element.js"
153984
+ }
153985
+ },
153986
+ {
153987
+ "name": "accessibility-label",
153988
+ "type": {
153989
+ "text": "string"
153990
+ },
153991
+ "default": "''",
153992
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
153993
+ "fieldName": "accessibilityLabel",
153994
+ "inheritedFrom": {
153995
+ "name": "SbbLinkBaseElement",
153996
+ "module": "core/base-elements/link-base-element.js"
153997
+ }
153998
+ },
153999
+ {
154000
+ "name": "accessibility-current",
154001
+ "type": {
154002
+ "text": "string"
154003
+ },
154004
+ "default": "''",
154005
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
154006
+ "fieldName": "accessibilityCurrent",
154007
+ "inheritedFrom": {
154008
+ "name": "SbbLinkBaseElement",
154009
+ "module": "core/base-elements/link-base-element.js"
154010
+ }
153783
154011
  }
153784
154012
  ]
153785
154013
  }
@@ -153787,22 +154015,22 @@
153787
154015
  "exports": [
153788
154016
  {
153789
154017
  "kind": "js",
153790
- "name": "SbbTeaserProductStaticElement",
154018
+ "name": "SbbTeaserProductElement",
153791
154019
  "declaration": {
153792
- "name": "SbbTeaserProductStaticElement",
153793
- "module": "teaser-product/teaser-product-static/teaser-product-static.component.js"
154020
+ "name": "SbbTeaserProductElement",
154021
+ "module": "teaser-product/teaser-product/teaser-product.component.js"
153794
154022
  }
153795
154023
  }
153796
154024
  ]
153797
154025
  },
153798
154026
  {
153799
154027
  "kind": "javascript-module",
153800
- "path": "teaser-product/teaser-product/teaser-product.component.js",
154028
+ "path": "teaser-product/teaser-product-static/teaser-product-static.component.js",
153801
154029
  "declarations": [
153802
154030
  {
153803
154031
  "kind": "class",
153804
- "description": "Displays a text and a footnote, combined with an image, to tease a product",
153805
- "name": "SbbTeaserProductElement",
154032
+ "description": "Displays a text and a footnote, combined with an image, to tease a product.",
154033
+ "name": "SbbTeaserProductStaticElement",
153806
154034
  "cssProperties": [
153807
154035
  {
153808
154036
  "description": "At which percentage the background should start getting transparent.",
@@ -153843,21 +154071,7 @@
153843
154071
  "name": "SbbElement",
153844
154072
  "module": "core/base-elements/element.js"
153845
154073
  },
153846
- "default": "'sbb-teaser-product'"
153847
- },
153848
- {
153849
- "kind": "field",
153850
- "name": "elementDependencies",
153851
- "type": {
153852
- "text": "SbbElementType[]"
153853
- },
153854
- "privacy": "public",
153855
- "static": true,
153856
- "inheritedFrom": {
153857
- "name": "SbbElement",
153858
- "module": "core/base-elements/element.js"
153859
- },
153860
- "default": "[SbbScreenReaderOnlyElement]"
154074
+ "default": "'sbb-teaser-product-static'"
153861
154075
  },
153862
154076
  {
153863
154077
  "kind": "field",
@@ -153906,155 +154120,6 @@
153906
154120
  "module": "core/mixins/negative-mixin.js"
153907
154121
  }
153908
154122
  },
153909
- {
153910
- "kind": "field",
153911
- "name": "href",
153912
- "type": {
153913
- "text": "string"
153914
- },
153915
- "privacy": "public",
153916
- "default": "''",
153917
- "description": "The href value you want to link to.",
153918
- "attribute": "href",
153919
- "reflects": true,
153920
- "inheritedFrom": {
153921
- "name": "SbbLinkBaseElement",
153922
- "module": "core/base-elements/link-base-element.js"
153923
- }
153924
- },
153925
- {
153926
- "kind": "field",
153927
- "name": "target",
153928
- "type": {
153929
- "text": "LinkTargetType | string"
153930
- },
153931
- "privacy": "public",
153932
- "default": "''",
153933
- "description": "Where to display the linked URL.",
153934
- "attribute": "target",
153935
- "reflects": true,
153936
- "inheritedFrom": {
153937
- "name": "SbbLinkBaseElement",
153938
- "module": "core/base-elements/link-base-element.js"
153939
- }
153940
- },
153941
- {
153942
- "kind": "field",
153943
- "name": "rel",
153944
- "type": {
153945
- "text": "string"
153946
- },
153947
- "privacy": "public",
153948
- "default": "''",
153949
- "description": "The relationship of the linked URL as space-separated link types.",
153950
- "attribute": "rel",
153951
- "reflects": true,
153952
- "inheritedFrom": {
153953
- "name": "SbbLinkBaseElement",
153954
- "module": "core/base-elements/link-base-element.js"
153955
- }
153956
- },
153957
- {
153958
- "kind": "field",
153959
- "name": "download",
153960
- "type": {
153961
- "text": "boolean"
153962
- },
153963
- "privacy": "public",
153964
- "default": "false",
153965
- "description": "Whether the browser will show the download dialog on click.",
153966
- "attribute": "download",
153967
- "reflects": true,
153968
- "inheritedFrom": {
153969
- "name": "SbbLinkBaseElement",
153970
- "module": "core/base-elements/link-base-element.js"
153971
- }
153972
- },
153973
- {
153974
- "kind": "field",
153975
- "name": "accessibilityLabel",
153976
- "type": {
153977
- "text": "string"
153978
- },
153979
- "privacy": "public",
153980
- "default": "''",
153981
- "description": "This will be forwarded as aria-label to the inner anchor element.",
153982
- "attribute": "accessibility-label",
153983
- "inheritedFrom": {
153984
- "name": "SbbLinkBaseElement",
153985
- "module": "core/base-elements/link-base-element.js"
153986
- }
153987
- },
153988
- {
153989
- "kind": "field",
153990
- "name": "accessibilityCurrent",
153991
- "type": {
153992
- "text": "string"
153993
- },
153994
- "privacy": "public",
153995
- "default": "''",
153996
- "description": "This will be forwarded as aria-current to the inner anchor element.",
153997
- "attribute": "accessibility-current",
153998
- "inheritedFrom": {
153999
- "name": "SbbLinkBaseElement",
154000
- "module": "core/base-elements/link-base-element.js"
154001
- }
154002
- },
154003
- {
154004
- "kind": "field",
154005
- "name": "language",
154006
- "privacy": "protected",
154007
- "default": "new SbbLanguageController(this)",
154008
- "inheritedFrom": {
154009
- "name": "SbbLinkBaseElement",
154010
- "module": "core/base-elements/link-base-element.js"
154011
- }
154012
- },
154013
- {
154014
- "kind": "field",
154015
- "name": "anchorRole",
154016
- "type": {
154017
- "text": "string | null"
154018
- },
154019
- "privacy": "protected",
154020
- "readonly": true,
154021
- "default": "null",
154022
- "inheritedFrom": {
154023
- "name": "SbbLinkBaseElement",
154024
- "module": "core/base-elements/link-base-element.js"
154025
- }
154026
- },
154027
- {
154028
- "kind": "field",
154029
- "name": "_evaluateRelAttribute",
154030
- "privacy": "private",
154031
- "inheritedFrom": {
154032
- "name": "SbbLinkBaseElement",
154033
- "module": "core/base-elements/link-base-element.js"
154034
- }
154035
- },
154036
- {
154037
- "kind": "method",
154038
- "name": "renderLink",
154039
- "privacy": "protected",
154040
- "return": {
154041
- "type": {
154042
- "text": "TemplateResult"
154043
- }
154044
- },
154045
- "parameters": [
154046
- {
154047
- "name": "renderContent",
154048
- "type": {
154049
- "text": "TemplateResult"
154050
- }
154051
- }
154052
- ],
154053
- "inheritedFrom": {
154054
- "name": "SbbLinkBaseElement",
154055
- "module": "core/base-elements/link-base-element.js"
154056
- }
154057
- },
154058
154123
  {
154059
154124
  "kind": "field",
154060
154125
  "name": "maybeDisabled",
@@ -154109,6 +154174,19 @@
154109
154174
  "module": "core/base-elements/element.js"
154110
154175
  }
154111
154176
  },
154177
+ {
154178
+ "kind": "field",
154179
+ "name": "elementDependencies",
154180
+ "type": {
154181
+ "text": "SbbElementType[] | undefined"
154182
+ },
154183
+ "privacy": "public",
154184
+ "static": true,
154185
+ "inheritedFrom": {
154186
+ "name": "SbbElement",
154187
+ "module": "core/base-elements/element.js"
154188
+ }
154189
+ },
154112
154190
  {
154113
154191
  "kind": "field",
154114
154192
  "name": "role",
@@ -154349,10 +154427,10 @@
154349
154427
  }
154350
154428
  ],
154351
154429
  "superclass": {
154352
- "name": "SbbLinkBaseElement",
154430
+ "name": "SbbActionBaseElement",
154353
154431
  "module": "core.js"
154354
154432
  },
154355
- "tagName": "sbb-teaser-product",
154433
+ "tagName": "sbb-teaser-product-static",
154356
154434
  "customElement": true,
154357
154435
  "attributes": [
154358
154436
  {
@@ -154380,84 +154458,6 @@
154380
154458
  "name": "SbbNegativeMixin",
154381
154459
  "module": "core/mixins/negative-mixin.js"
154382
154460
  }
154383
- },
154384
- {
154385
- "name": "href",
154386
- "type": {
154387
- "text": "string"
154388
- },
154389
- "default": "''",
154390
- "description": "The href value you want to link to.",
154391
- "fieldName": "href",
154392
- "inheritedFrom": {
154393
- "name": "SbbLinkBaseElement",
154394
- "module": "core/base-elements/link-base-element.js"
154395
- }
154396
- },
154397
- {
154398
- "name": "target",
154399
- "type": {
154400
- "text": "LinkTargetType | string"
154401
- },
154402
- "default": "''",
154403
- "description": "Where to display the linked URL.",
154404
- "fieldName": "target",
154405
- "inheritedFrom": {
154406
- "name": "SbbLinkBaseElement",
154407
- "module": "core/base-elements/link-base-element.js"
154408
- }
154409
- },
154410
- {
154411
- "name": "rel",
154412
- "type": {
154413
- "text": "string"
154414
- },
154415
- "default": "''",
154416
- "description": "The relationship of the linked URL as space-separated link types.",
154417
- "fieldName": "rel",
154418
- "inheritedFrom": {
154419
- "name": "SbbLinkBaseElement",
154420
- "module": "core/base-elements/link-base-element.js"
154421
- }
154422
- },
154423
- {
154424
- "name": "download",
154425
- "type": {
154426
- "text": "boolean"
154427
- },
154428
- "default": "false",
154429
- "description": "Whether the browser will show the download dialog on click.",
154430
- "fieldName": "download",
154431
- "inheritedFrom": {
154432
- "name": "SbbLinkBaseElement",
154433
- "module": "core/base-elements/link-base-element.js"
154434
- }
154435
- },
154436
- {
154437
- "name": "accessibility-label",
154438
- "type": {
154439
- "text": "string"
154440
- },
154441
- "default": "''",
154442
- "description": "This will be forwarded as aria-label to the inner anchor element.",
154443
- "fieldName": "accessibilityLabel",
154444
- "inheritedFrom": {
154445
- "name": "SbbLinkBaseElement",
154446
- "module": "core/base-elements/link-base-element.js"
154447
- }
154448
- },
154449
- {
154450
- "name": "accessibility-current",
154451
- "type": {
154452
- "text": "string"
154453
- },
154454
- "default": "''",
154455
- "description": "This will be forwarded as aria-current to the inner anchor element.",
154456
- "fieldName": "accessibilityCurrent",
154457
- "inheritedFrom": {
154458
- "name": "SbbLinkBaseElement",
154459
- "module": "core/base-elements/link-base-element.js"
154460
- }
154461
154461
  }
154462
154462
  ]
154463
154463
  }
@@ -154465,10 +154465,10 @@
154465
154465
  "exports": [
154466
154466
  {
154467
154467
  "kind": "js",
154468
- "name": "SbbTeaserProductElement",
154468
+ "name": "SbbTeaserProductStaticElement",
154469
154469
  "declaration": {
154470
- "name": "SbbTeaserProductElement",
154471
- "module": "teaser-product/teaser-product/teaser-product.component.js"
154470
+ "name": "SbbTeaserProductStaticElement",
154471
+ "module": "teaser-product/teaser-product-static/teaser-product-static.component.js"
154472
154472
  }
154473
154473
  }
154474
154474
  ]