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

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 +701 -701
  2. package/package.json +2 -2
@@ -119143,15 +119143,15 @@
119143
119143
  },
119144
119144
  {
119145
119145
  "kind": "javascript-module",
119146
- "path": "link/block-link-static/block-link-static.component.js",
119146
+ "path": "link/block-link-button/block-link-button.component.js",
119147
119147
  "declarations": [
119148
119148
  {
119149
119149
  "kind": "class",
119150
- "description": "It displays a static link enhanced with the SBB Design.",
119151
- "name": "SbbBlockLinkStaticElement",
119150
+ "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
119151
+ "name": "SbbBlockLinkButtonElement",
119152
119152
  "slots": [
119153
119153
  {
119154
- "description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
119154
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
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-static'"
119176
+ "default": "'sbb-block-link-button'"
119177
119177
  },
119178
119178
  {
119179
119179
  "kind": "field",
@@ -119316,6 +119316,22 @@
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
+ },
119319
119335
  {
119320
119336
  "kind": "field",
119321
119337
  "name": "disabled",
@@ -119362,47 +119378,118 @@
119362
119378
  },
119363
119379
  {
119364
119380
  "kind": "field",
119365
- "name": "maybeDisabled",
119381
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
119366
119382
  "type": {
119367
- "text": "boolean | undefined"
119383
+ "text": "array"
119368
119384
  },
119369
- "privacy": "protected",
119385
+ "privacy": "private",
119370
119386
  "readonly": true,
119387
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
119371
119388
  "inheritedFrom": {
119372
- "name": "SbbActionBaseElement",
119373
- "module": "core/base-elements/action-base-element.js"
119389
+ "name": "SbbButtonBaseElement",
119390
+ "module": "core/base-elements/button-base-element.js"
119374
119391
  }
119375
119392
  },
119376
119393
  {
119377
119394
  "kind": "field",
119378
- "name": "maybeDisabledInteractive",
119395
+ "name": "value",
119379
119396
  "type": {
119380
- "text": "boolean | undefined"
119397
+ "text": "string"
119381
119398
  },
119382
- "privacy": "protected",
119383
- "readonly": true,
119399
+ "privacy": "public",
119384
119400
  "inheritedFrom": {
119385
- "name": "SbbActionBaseElement",
119386
- "module": "core/base-elements/action-base-element.js"
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
+ "inheritedFrom": {
119419
+ "name": "SbbButtonBaseElement",
119420
+ "module": "core/base-elements/button-base-element.js"
119421
+ }
119422
+ },
119423
+ {
119424
+ "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",
119440
+ "type": {
119441
+ "text": "string"
119442
+ },
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",
119454
+ "inheritedFrom": {
119455
+ "name": "SbbButtonBaseElement",
119456
+ "module": "core/base-elements/button-base-element.js"
119387
119457
  }
119388
119458
  },
119389
119459
  {
119390
119460
  "kind": "method",
119391
- "name": "setupBaseEventHandlers",
119392
- "privacy": "protected",
119461
+ "name": "_requestSubmit",
119462
+ "privacy": "private",
119393
119463
  "return": {
119394
119464
  "type": {
119395
119465
  "text": "void"
119396
119466
  }
119397
119467
  },
119468
+ "parameters": [
119469
+ {
119470
+ "name": "form",
119471
+ "type": {
119472
+ "text": "HTMLFormElement"
119473
+ }
119474
+ }
119475
+ ],
119398
119476
  "inheritedFrom": {
119399
- "name": "SbbActionBaseElement",
119400
- "module": "core/base-elements/action-base-element.js"
119477
+ "name": "SbbButtonBaseElement",
119478
+ "module": "core/base-elements/button-base-element.js"
119401
119479
  }
119402
119480
  },
119403
119481
  {
119404
119482
  "kind": "field",
119405
- "name": "['_$sbbElement$']",
119483
+ "name": "_formKeyDown",
119484
+ "privacy": "private",
119485
+ "inheritedFrom": {
119486
+ "name": "SbbButtonBaseElement",
119487
+ "module": "core/base-elements/button-base-element.js"
119488
+ }
119489
+ },
119490
+ {
119491
+ "kind": "field",
119492
+ "name": "formAssociated",
119406
119493
  "type": {
119407
119494
  "text": "boolean"
119408
119495
  },
@@ -119410,101 +119497,124 @@
119410
119497
  "static": true,
119411
119498
  "default": "true",
119412
119499
  "inheritedFrom": {
119413
- "name": "SbbElement",
119414
- "module": "core/base-elements/element.js"
119500
+ "name": "SbbFormAssociatedMixin",
119501
+ "module": "core/mixins/form-associated-mixin.js"
119415
119502
  }
119416
119503
  },
119417
119504
  {
119418
119505
  "kind": "field",
119419
- "name": "role",
119506
+ "name": "name",
119507
+ "privacy": "public",
119508
+ "description": "Name of the form element. Will be read from name attribute.",
119420
119509
  "type": {
119421
- "text": "ElementInternals['role'] | undefined"
119510
+ "text": "string"
119511
+ },
119512
+ "attribute": "name",
119513
+ "inheritedFrom": {
119514
+ "name": "SbbFormAssociatedMixin",
119515
+ "module": "core/mixins/form-associated-mixin.js"
119516
+ }
119517
+ },
119518
+ {
119519
+ "kind": "field",
119520
+ "name": "validity",
119521
+ "type": {
119522
+ "text": "ValidityState"
119422
119523
  },
119423
119524
  "privacy": "public",
119424
- "static": true,
119525
+ "description": "Returns the ValidityState object for this element.",
119526
+ "readonly": true,
119425
119527
  "inheritedFrom": {
119426
- "name": "SbbElement",
119427
- "module": "core/base-elements/element.js"
119528
+ "name": "SbbFormAssociatedMixin",
119529
+ "module": "core/mixins/form-associated-mixin.js"
119428
119530
  }
119429
119531
  },
119430
119532
  {
119431
119533
  "kind": "field",
119432
- "name": "_controllers",
119534
+ "name": "validationMessage",
119433
119535
  "type": {
119434
- "text": "Set<SbbReactiveController> | undefined"
119536
+ "text": "string"
119435
119537
  },
119436
- "privacy": "private",
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,
119437
119541
  "inheritedFrom": {
119438
- "name": "SbbElement",
119439
- "module": "core/base-elements/element.js"
119542
+ "name": "SbbFormAssociatedMixin",
119543
+ "module": "core/mixins/form-associated-mixin.js"
119440
119544
  }
119441
119545
  },
119442
119546
  {
119443
119547
  "kind": "field",
119444
- "name": "_hydrationRequired",
119548
+ "name": "willValidate",
119445
119549
  "type": {
119446
119550
  "text": "boolean"
119447
119551
  },
119448
- "privacy": "private",
119449
- "default": "!!this.shadowRoot",
119552
+ "privacy": "public",
119553
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
119554
+ "readonly": true,
119450
119555
  "inheritedFrom": {
119451
- "name": "SbbElement",
119452
- "module": "core/base-elements/element.js"
119556
+ "name": "SbbFormAssociatedMixin",
119557
+ "module": "core/mixins/form-associated-mixin.js"
119453
119558
  }
119454
119559
  },
119455
119560
  {
119456
119561
  "kind": "field",
119457
- "name": "_hydrationComplete",
119562
+ "name": "_validityStates",
119458
119563
  "privacy": "private",
119459
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
119564
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
119460
119565
  "inheritedFrom": {
119461
- "name": "SbbElement",
119462
- "module": "core/base-elements/element.js"
119566
+ "name": "SbbFormAssociatedMixin",
119567
+ "module": "core/mixins/form-associated-mixin.js"
119463
119568
  }
119464
119569
  },
119465
119570
  {
119466
119571
  "kind": "field",
119467
- "name": "_resolveHydration",
119572
+ "name": "formDisabled",
119468
119573
  "type": {
119469
- "text": "(hydrationRequired: boolean) => void"
119574
+ "text": "boolean"
119470
119575
  },
119471
- "privacy": "private",
119576
+ "privacy": "protected",
119577
+ "default": "false",
119578
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
119472
119579
  "inheritedFrom": {
119473
- "name": "SbbElement",
119474
- "module": "core/base-elements/element.js"
119580
+ "name": "SbbFormAssociatedMixin",
119581
+ "module": "core/mixins/form-associated-mixin.js"
119475
119582
  }
119476
119583
  },
119477
119584
  {
119478
- "kind": "field",
119479
- "name": "_textObserver",
119480
- "type": {
119481
- "text": "MutationObserver | undefined"
119585
+ "kind": "method",
119586
+ "name": "checkValidity",
119587
+ "privacy": "public",
119588
+ "return": {
119589
+ "type": {
119590
+ "text": "boolean"
119591
+ }
119482
119592
  },
119483
- "privacy": "private",
119593
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
119484
119594
  "inheritedFrom": {
119485
- "name": "SbbElement",
119486
- "module": "core/base-elements/element.js"
119595
+ "name": "SbbFormAssociatedMixin",
119596
+ "module": "core/mixins/form-associated-mixin.js"
119487
119597
  }
119488
119598
  },
119489
119599
  {
119490
- "kind": "field",
119491
- "name": "hydrationRequired",
119492
- "type": {
119493
- "text": "boolean"
119600
+ "kind": "method",
119601
+ "name": "reportValidity",
119602
+ "privacy": "public",
119603
+ "return": {
119604
+ "type": {
119605
+ "text": "boolean"
119606
+ }
119494
119607
  },
119495
- "privacy": "protected",
119496
- "description": "Returns whether hydration is required and not completed.",
119497
- "readonly": true,
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.",
119498
119609
  "inheritedFrom": {
119499
- "name": "SbbElement",
119500
- "module": "core/base-elements/element.js"
119501
- },
119502
- "default": "!!this.shadowRoot"
119610
+ "name": "SbbFormAssociatedMixin",
119611
+ "module": "core/mixins/form-associated-mixin.js"
119612
+ }
119503
119613
  },
119504
119614
  {
119505
119615
  "kind": "method",
119506
- "name": "toggleState",
119507
- "privacy": "protected",
119616
+ "name": "setCustomValidity",
119617
+ "privacy": "public",
119508
119618
  "return": {
119509
119619
  "type": {
119510
119620
  "text": "void"
@@ -119512,28 +119622,65 @@
119512
119622
  },
119513
119623
  "parameters": [
119514
119624
  {
119515
- "name": "value",
119625
+ "name": "message",
119516
119626
  "type": {
119517
119627
  "text": "string"
119518
119628
  }
119519
- },
119520
- {
119521
- "name": "force",
119522
- "optional": true,
119523
- "type": {
119524
- "text": "boolean"
119525
- }
119526
119629
  }
119527
119630
  ],
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.",
119528
119632
  "inheritedFrom": {
119529
- "name": "SbbElement",
119530
- "module": "core/base-elements/element.js"
119633
+ "name": "SbbFormAssociatedMixin",
119634
+ "module": "core/mixins/form-associated-mixin.js"
119531
119635
  }
119532
119636
  },
119533
119637
  {
119534
119638
  "kind": "method",
119535
- "name": "_slotchangeHandler",
119639
+ "name": "_hasDisabledAncestor",
119536
119640
  "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",
119537
119684
  "return": {
119538
119685
  "type": {
119539
119686
  "text": "void"
@@ -119541,27 +119688,35 @@
119541
119688
  },
119542
119689
  "parameters": [
119543
119690
  {
119544
- "name": "event",
119691
+ "name": "flag",
119545
119692
  "type": {
119546
- "text": "Event"
119693
+ "text": "T"
119547
119694
  }
119548
119695
  },
119549
119696
  {
119550
- "name": "slot",
119697
+ "name": "message",
119551
119698
  "type": {
119552
- "text": "HTMLSlotElement"
119699
+ "text": "string"
119700
+ }
119701
+ },
119702
+ {
119703
+ "name": "flagValue",
119704
+ "optional": true,
119705
+ "type": {
119706
+ "text": "ValidityStateFlags[T]"
119553
119707
  }
119554
119708
  }
119555
119709
  ],
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).",
119556
119711
  "inheritedFrom": {
119557
- "name": "SbbElement",
119558
- "module": "core/base-elements/element.js"
119712
+ "name": "SbbFormAssociatedMixin",
119713
+ "module": "core/mixins/form-associated-mixin.js"
119559
119714
  }
119560
119715
  },
119561
119716
  {
119562
119717
  "kind": "method",
119563
- "name": "_handleSlotChangeForSlottedState",
119564
- "privacy": "private",
119718
+ "name": "removeValidityFlag",
119719
+ "privacy": "protected",
119565
119720
  "return": {
119566
119721
  "type": {
119567
119722
  "text": "void"
@@ -119569,877 +119724,772 @@
119569
119724
  },
119570
119725
  "parameters": [
119571
119726
  {
119572
- "name": "slot",
119727
+ "name": "flag",
119573
119728
  "type": {
119574
- "text": "HTMLSlotElement"
119729
+ "text": "T"
119575
119730
  }
119576
119731
  }
119577
119732
  ],
119733
+ "description": "Removes the validity state flag entry and updates validity state.",
119578
119734
  "inheritedFrom": {
119579
- "name": "SbbElement",
119580
- "module": "core/base-elements/element.js"
119735
+ "name": "SbbFormAssociatedMixin",
119736
+ "module": "core/mixins/form-associated-mixin.js"
119581
119737
  }
119582
119738
  },
119583
119739
  {
119584
119740
  "kind": "method",
119585
- "name": "_updateSlottedState",
119586
- "privacy": "private",
119741
+ "name": "validate",
119742
+ "privacy": "protected",
119587
119743
  "return": {
119588
119744
  "type": {
119589
119745
  "text": "void"
119590
119746
  }
119591
119747
  },
119592
- "parameters": [
119593
- {
119594
- "name": "slot",
119595
- "type": {
119596
- "text": "HTMLSlotElement"
119597
- }
119598
- }
119599
- ],
119748
+ "description": "To be called whenever the current element needs to be validated.",
119600
119749
  "inheritedFrom": {
119601
- "name": "SbbElement",
119602
- "module": "core/base-elements/element.js"
119750
+ "name": "SbbFormAssociatedMixin",
119751
+ "module": "core/mixins/form-associated-mixin.js"
119603
119752
  }
119604
119753
  },
119605
119754
  {
119606
119755
  "kind": "method",
119607
- "name": "_observeTextNodesInSlot",
119608
- "privacy": "private",
119756
+ "name": "shouldValidate",
119757
+ "privacy": "protected",
119609
119758
  "return": {
119610
119759
  "type": {
119611
- "text": "void"
119760
+ "text": "boolean"
119612
119761
  }
119613
119762
  },
119614
119763
  "parameters": [
119615
119764
  {
119616
- "name": "slot",
119765
+ "name": "name",
119617
119766
  "type": {
119618
- "text": "HTMLSlotElement"
119767
+ "text": "PropertyKey | undefined"
119619
119768
  }
119620
119769
  }
119621
119770
  ],
119771
+ "description": "Whether validation should be run on a property change with the given name.",
119622
119772
  "inheritedFrom": {
119623
- "name": "SbbElement",
119624
- "module": "core/base-elements/element.js"
119773
+ "name": "SbbFormAssociatedMixin",
119774
+ "module": "core/mixins/form-associated-mixin.js"
119625
119775
  }
119626
119776
  },
119627
119777
  {
119628
119778
  "kind": "method",
119629
- "name": "_hasSlottedContent",
119779
+ "name": "_setInternalValidity",
119630
119780
  "privacy": "private",
119631
119781
  "return": {
119632
119782
  "type": {
119633
- "text": "boolean"
119783
+ "text": "void"
119634
119784
  }
119635
119785
  },
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.",
119636
119811
  "parameters": [
119637
119812
  {
119638
- "name": "slot",
119639
- "type": {
119640
- "text": "HTMLSlotElement"
119641
- }
119813
+ "description": "The origin event.",
119814
+ "name": "event"
119642
119815
  }
119643
119816
  ],
119644
119817
  "inheritedFrom": {
119645
- "name": "SbbElement",
119646
- "module": "core/base-elements/element.js"
119818
+ "name": "SbbButtonLikeBaseElement",
119819
+ "module": "core/base-elements/button-base-element.js"
119647
119820
  }
119648
- }
119649
- ],
119650
- "mixins": [
119821
+ },
119651
119822
  {
119652
- "name": "SbbBlockLinkCommonElementMixin",
119653
- "module": "link/common/block-link-common.js"
119823
+ "kind": "field",
119824
+ "name": "_removeActiveMarker",
119825
+ "privacy": "private",
119826
+ "inheritedFrom": {
119827
+ "name": "SbbButtonLikeBaseElement",
119828
+ "module": "core/base-elements/button-base-element.js"
119829
+ }
119654
119830
  },
119655
119831
  {
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": [
119832
+ "kind": "field",
119833
+ "name": "_dispatchClickEventOnSpaceKeyup",
119834
+ "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.",
119836
+ "parameters": [
119837
+ {
119838
+ "description": "The origin event.",
119839
+ "name": "event"
119840
+ }
119841
+ ],
119842
+ "inheritedFrom": {
119843
+ "name": "SbbButtonLikeBaseElement",
119844
+ "module": "core/base-elements/button-base-element.js"
119845
+ }
119846
+ },
119667
119847
  {
119668
- "name": "icon-placement",
119848
+ "kind": "field",
119849
+ "name": "_dispatchClickEvent",
119850
+ "privacy": "private",
119851
+ "inheritedFrom": {
119852
+ "name": "SbbButtonLikeBaseElement",
119853
+ "module": "core/base-elements/button-base-element.js"
119854
+ }
119855
+ },
119856
+ {
119857
+ "kind": "field",
119858
+ "name": "maybeDisabled",
119669
119859
  "type": {
119670
- "text": "SbbIconPlacement"
119860
+ "text": "boolean | undefined"
119671
119861
  },
119672
- "default": "'start'",
119673
- "description": "Moves the icon to the end of the component if set to true.",
119674
- "fieldName": "iconPlacement",
119862
+ "privacy": "protected",
119863
+ "readonly": true,
119675
119864
  "inheritedFrom": {
119676
- "name": "SbbBlockLinkCommonElementMixin",
119677
- "module": "link/common/block-link-common.js"
119865
+ "name": "SbbActionBaseElement",
119866
+ "module": "core/base-elements/action-base-element.js"
119678
119867
  }
119679
119868
  },
119680
119869
  {
119681
- "name": "size",
119870
+ "kind": "field",
119871
+ "name": "maybeDisabledInteractive",
119682
119872
  "type": {
119683
- "text": "SbbLinkSize"
119873
+ "text": "boolean | undefined"
119684
119874
  },
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",
119875
+ "privacy": "protected",
119876
+ "readonly": true,
119688
119877
  "inheritedFrom": {
119689
- "name": "SbbLinkCommonElementMixin",
119690
- "module": "link/common/link-common.js"
119878
+ "name": "SbbActionBaseElement",
119879
+ "module": "core/base-elements/action-base-element.js"
119691
119880
  }
119692
119881
  },
119693
119882
  {
119694
- "name": "icon-name",
119695
- "type": {
119696
- "text": "string"
119883
+ "kind": "method",
119884
+ "name": "setupBaseEventHandlers",
119885
+ "privacy": "protected",
119886
+ "return": {
119887
+ "type": {
119888
+ "text": "void"
119889
+ }
119697
119890
  },
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",
119701
119891
  "inheritedFrom": {
119702
- "name": "SbbIconNameMixin",
119703
- "module": "icon/icon-name-mixin.js"
119892
+ "name": "SbbActionBaseElement",
119893
+ "module": "core/base-elements/action-base-element.js"
119704
119894
  }
119705
119895
  },
119706
119896
  {
119707
- "name": "disabled",
119708
- "description": "Whether the component is disabled.",
119709
- "default": "false",
119897
+ "kind": "field",
119898
+ "name": "['_$sbbElement$']",
119710
119899
  "type": {
119711
119900
  "text": "boolean"
119712
119901
  },
119713
- "fieldName": "disabled",
119714
- "inheritedFrom": {
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": ""
119745
- },
119746
- {
119747
- "description": "Slot used to display the icon, if one is set.",
119748
- "name": "icon"
119749
- }
119750
- ],
119751
- "members": [
119752
- {
119753
- "kind": "field",
119754
- "name": "elementName",
119755
- "type": {
119756
- "text": "string"
119757
- },
119758
- "privacy": "public",
119759
- "static": true,
119760
- "readonly": true,
119902
+ "privacy": "public",
119903
+ "static": true,
119904
+ "default": "true",
119761
119905
  "inheritedFrom": {
119762
119906
  "name": "SbbElement",
119763
119907
  "module": "core/base-elements/element.js"
119764
- },
119765
- "default": "'sbb-block-link-button'"
119908
+ }
119766
119909
  },
119767
119910
  {
119768
119911
  "kind": "field",
119769
- "name": "styles",
119912
+ "name": "_controllers",
119770
119913
  "type": {
119771
- "text": "CSSResultGroup"
119914
+ "text": "Set<SbbReactiveController> | undefined"
119772
119915
  },
119773
- "privacy": "public",
119774
- "static": true,
119775
- "default": "[super.styles, unsafeCSS(blockStyle)]",
119916
+ "privacy": "private",
119776
119917
  "inheritedFrom": {
119777
- "name": "SbbLinkCommonElementMixin",
119778
- "module": "link/common/link-common.js"
119918
+ "name": "SbbElement",
119919
+ "module": "core/base-elements/element.js"
119779
119920
  }
119780
119921
  },
119781
119922
  {
119782
119923
  "kind": "field",
119783
- "name": "iconPlacement",
119924
+ "name": "_hydrationRequired",
119784
119925
  "type": {
119785
- "text": "SbbIconPlacement"
119926
+ "text": "boolean"
119786
119927
  },
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,
119928
+ "privacy": "private",
119929
+ "default": "!!this.shadowRoot",
119792
119930
  "inheritedFrom": {
119793
- "name": "SbbBlockLinkCommonElementMixin",
119794
- "module": "link/common/block-link-common.js"
119931
+ "name": "SbbElement",
119932
+ "module": "core/base-elements/element.js"
119795
119933
  }
119796
119934
  },
119797
119935
  {
119798
- "kind": "method",
119799
- "name": "renderTemplate",
119800
- "privacy": "protected",
119801
- "return": {
119802
- "type": {
119803
- "text": "TemplateResult"
119804
- }
119805
- },
119806
- "description": "Override this method to render the component template.",
119936
+ "kind": "field",
119937
+ "name": "_hydrationComplete",
119938
+ "privacy": "private",
119939
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
119807
119940
  "inheritedFrom": {
119808
- "name": "SbbActionBaseElement",
119809
- "module": "core/base-elements/action-base-element.js"
119941
+ "name": "SbbElement",
119942
+ "module": "core/base-elements/element.js"
119810
119943
  }
119811
119944
  },
119812
119945
  {
119813
119946
  "kind": "field",
119814
- "name": "size",
119947
+ "name": "_resolveHydration",
119815
119948
  "type": {
119816
- "text": "SbbLinkSize"
119949
+ "text": "(hydrationRequired: boolean) => void"
119817
119950
  },
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,
119951
+ "privacy": "private",
119823
119952
  "inheritedFrom": {
119824
- "name": "SbbLinkCommonElementMixin",
119825
- "module": "link/common/link-common.js"
119953
+ "name": "SbbElement",
119954
+ "module": "core/base-elements/element.js"
119826
119955
  }
119827
119956
  },
119828
119957
  {
119829
119958
  "kind": "field",
119830
- "name": "elementDependencies",
119959
+ "name": "_textObserver",
119831
119960
  "type": {
119832
- "text": "SbbElementType[]"
119961
+ "text": "MutationObserver | undefined"
119833
119962
  },
119834
- "privacy": "public",
119835
- "static": true,
119963
+ "privacy": "private",
119836
119964
  "inheritedFrom": {
119837
119965
  "name": "SbbElement",
119838
119966
  "module": "core/base-elements/element.js"
119839
- },
119840
- "default": "[SbbIconElement]"
119967
+ }
119841
119968
  },
119842
119969
  {
119843
119970
  "kind": "field",
119844
- "name": "iconName",
119971
+ "name": "hydrationRequired",
119845
119972
  "type": {
119846
- "text": "string"
119973
+ "text": "boolean"
119847
119974
  },
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",
119975
+ "privacy": "protected",
119976
+ "description": "Returns whether hydration is required and not completed.",
119977
+ "readonly": true,
119852
119978
  "inheritedFrom": {
119853
- "name": "SbbIconNameMixin",
119854
- "module": "icon/icon-name-mixin.js"
119855
- }
119979
+ "name": "SbbElement",
119980
+ "module": "core/base-elements/element.js"
119981
+ },
119982
+ "default": "!!this.shadowRoot"
119856
119983
  },
119857
119984
  {
119858
119985
  "kind": "method",
119859
- "name": "renderIconSlot",
119986
+ "name": "toggleState",
119860
119987
  "privacy": "protected",
119861
119988
  "return": {
119862
119989
  "type": {
119863
- "text": "TemplateResult"
119990
+ "text": "void"
119864
119991
  }
119865
119992
  },
119866
119993
  "parameters": [
119867
119994
  {
119868
- "name": "classname",
119869
- "optional": true,
119995
+ "name": "value",
119870
119996
  "type": {
119871
119997
  "text": "string"
119872
119998
  }
119999
+ },
120000
+ {
120001
+ "name": "force",
120002
+ "optional": true,
120003
+ "type": {
120004
+ "text": "boolean"
120005
+ }
119873
120006
  }
119874
120007
  ],
119875
120008
  "inheritedFrom": {
119876
- "name": "SbbIconNameMixin",
119877
- "module": "icon/icon-name-mixin.js"
120009
+ "name": "SbbElement",
120010
+ "module": "core/base-elements/element.js"
119878
120011
  }
119879
120012
  },
119880
120013
  {
119881
120014
  "kind": "method",
119882
- "name": "renderIconName",
119883
- "privacy": "protected",
120015
+ "name": "_slotchangeHandler",
120016
+ "privacy": "private",
119884
120017
  "return": {
119885
120018
  "type": {
119886
- "text": "string"
120019
+ "text": "void"
119887
120020
  }
119888
120021
  },
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
+ ],
119889
120036
  "inheritedFrom": {
119890
- "name": "SbbIconNameMixin",
119891
- "module": "icon/icon-name-mixin.js"
120037
+ "name": "SbbElement",
120038
+ "module": "core/base-elements/element.js"
119892
120039
  }
119893
120040
  },
119894
120041
  {
119895
120042
  "kind": "method",
119896
- "name": "_renderIconName",
120043
+ "name": "_handleSlotChangeForSlottedState",
119897
120044
  "privacy": "private",
119898
120045
  "return": {
119899
120046
  "type": {
119900
- "text": "string"
120047
+ "text": "void"
119901
120048
  }
119902
120049
  },
120050
+ "parameters": [
120051
+ {
120052
+ "name": "slot",
120053
+ "type": {
120054
+ "text": "HTMLSlotElement"
120055
+ }
120056
+ }
120057
+ ],
119903
120058
  "inheritedFrom": {
119904
- "name": "SbbIconNameMixin",
119905
- "module": "icon/icon-name-mixin.js"
119906
- }
119907
- },
119908
- {
119909
- "kind": "field",
119910
- "name": "disabledInteractive",
119911
- "type": {
119912
- "text": "boolean"
119913
- },
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,
119919
- "inheritedFrom": {
119920
- "name": "SbbDisabledInteractiveMixin",
119921
- "module": "core/mixins/disabled-mixin.js"
119922
- }
119923
- },
119924
- {
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"
120059
+ "name": "SbbElement",
120060
+ "module": "core/base-elements/element.js"
119938
120061
  }
119939
120062
  },
119940
120063
  {
119941
- "kind": "field",
119942
- "name": "#disabled",
120064
+ "kind": "method",
120065
+ "name": "_updateSlottedState",
119943
120066
  "privacy": "private",
119944
- "type": {
119945
- "text": "boolean"
120067
+ "return": {
120068
+ "type": {
120069
+ "text": "void"
120070
+ }
119946
120071
  },
119947
- "default": "false",
120072
+ "parameters": [
120073
+ {
120074
+ "name": "slot",
120075
+ "type": {
120076
+ "text": "HTMLSlotElement"
120077
+ }
120078
+ }
120079
+ ],
119948
120080
  "inheritedFrom": {
119949
- "name": "SbbDisabledMixin",
119950
- "module": "core/mixins/disabled-mixin.js"
120081
+ "name": "SbbElement",
120082
+ "module": "core/base-elements/element.js"
119951
120083
  }
119952
120084
  },
119953
120085
  {
119954
120086
  "kind": "method",
119955
- "name": "isDisabledExternally",
119956
- "privacy": "protected",
120087
+ "name": "_observeTextNodesInSlot",
120088
+ "privacy": "private",
119957
120089
  "return": {
119958
120090
  "type": {
119959
- "text": "boolean"
120091
+ "text": "void"
119960
120092
  }
119961
120093
  },
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.",
119963
- "inheritedFrom": {
119964
- "name": "SbbDisabledMixin",
119965
- "module": "core/mixins/disabled-mixin.js"
120094
+ "parameters": [
120095
+ {
120096
+ "name": "slot",
120097
+ "type": {
120098
+ "text": "HTMLSlotElement"
120099
+ }
120100
+ }
120101
+ ],
120102
+ "inheritedFrom": {
120103
+ "name": "SbbElement",
120104
+ "module": "core/base-elements/element.js"
119966
120105
  }
119967
120106
  },
119968
120107
  {
119969
- "kind": "field",
119970
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
119971
- "type": {
119972
- "text": "array"
119973
- },
120108
+ "kind": "method",
120109
+ "name": "_hasSlottedContent",
119974
120110
  "privacy": "private",
119975
- "readonly": true,
119976
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
120111
+ "return": {
120112
+ "type": {
120113
+ "text": "boolean"
120114
+ }
120115
+ },
120116
+ "parameters": [
120117
+ {
120118
+ "name": "slot",
120119
+ "type": {
120120
+ "text": "HTMLSlotElement"
120121
+ }
120122
+ }
120123
+ ],
119977
120124
  "inheritedFrom": {
119978
- "name": "SbbButtonBaseElement",
119979
- "module": "core/base-elements/button-base-element.js"
120125
+ "name": "SbbElement",
120126
+ "module": "core/base-elements/element.js"
119980
120127
  }
120128
+ }
120129
+ ],
120130
+ "mixins": [
120131
+ {
120132
+ "name": "SbbBlockLinkCommonElementMixin",
120133
+ "module": "link/common/block-link-common.js"
119981
120134
  },
119982
120135
  {
119983
- "kind": "field",
119984
- "name": "value",
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",
119985
120149
  "type": {
119986
- "text": "string"
120150
+ "text": "SbbIconPlacement"
119987
120151
  },
119988
- "privacy": "public",
120152
+ "default": "'start'",
120153
+ "description": "Moves the icon to the end of the component if set to true.",
120154
+ "fieldName": "iconPlacement",
119989
120155
  "inheritedFrom": {
119990
- "name": "SbbButtonBaseElement",
119991
- "module": "core/base-elements/button-base-element.js"
119992
- },
119993
- "default": "''",
119994
- "description": "Value of the form element.",
119995
- "attribute": "value"
120156
+ "name": "SbbBlockLinkCommonElementMixin",
120157
+ "module": "link/common/block-link-common.js"
120158
+ }
119996
120159
  },
119997
120160
  {
119998
- "kind": "field",
119999
- "name": "type",
120000
- "privacy": "public",
120001
- "description": "The type attribute to use for the button.",
120002
- "default": "'button'",
120161
+ "name": "size",
120003
120162
  "type": {
120004
- "text": "SbbButtonType"
120163
+ "text": "SbbLinkSize"
120005
120164
  },
120006
- "attribute": "type",
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",
120007
120168
  "inheritedFrom": {
120008
- "name": "SbbButtonBaseElement",
120009
- "module": "core/base-elements/button-base-element.js"
120169
+ "name": "SbbLinkCommonElementMixin",
120170
+ "module": "link/common/link-common.js"
120010
120171
  }
120011
120172
  },
120012
120173
  {
120013
- "kind": "field",
120014
- "name": "form",
120174
+ "name": "icon-name",
120015
120175
  "type": {
120016
- "text": "HTMLFormElement | null"
120176
+ "text": "string"
120017
120177
  },
120018
- "privacy": "public",
120019
- "description": "The `<form>` element to associate the button with.",
120178
+ "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",
120020
120181
  "inheritedFrom": {
120021
- "name": "SbbButtonBaseElement",
120022
- "module": "core/base-elements/button-base-element.js"
120023
- },
120024
- "attribute": "form"
120182
+ "name": "SbbIconNameMixin",
120183
+ "module": "icon/icon-name-mixin.js"
120184
+ }
120025
120185
  },
120026
120186
  {
120027
- "kind": "field",
120028
- "name": "_formId",
120187
+ "name": "disabled-interactive",
120029
120188
  "type": {
120030
- "text": "string"
120189
+ "text": "boolean"
120031
120190
  },
120032
- "privacy": "private",
120033
- "default": "''",
120191
+ "default": "false",
120192
+ "description": "Whether the button should be aria-disabled but stay interactive.",
120193
+ "fieldName": "disabledInteractive",
120034
120194
  "inheritedFrom": {
120035
- "name": "SbbButtonBaseElement",
120036
- "module": "core/base-elements/button-base-element.js"
120195
+ "name": "SbbDisabledInteractiveMixin",
120196
+ "module": "core/mixins/disabled-mixin.js"
120037
120197
  }
120038
120198
  },
120039
120199
  {
120040
- "kind": "field",
120041
- "name": "_handleButtonClick",
120042
- "privacy": "private",
120200
+ "name": "disabled",
120201
+ "description": "Whether the component is disabled.",
120202
+ "default": "false",
120203
+ "type": {
120204
+ "text": "boolean"
120205
+ },
120206
+ "fieldName": "disabled",
120043
120207
  "inheritedFrom": {
120044
- "name": "SbbButtonBaseElement",
120045
- "module": "core/base-elements/button-base-element.js"
120208
+ "name": "SbbDisabledMixin",
120209
+ "module": "core/mixins/disabled-mixin.js"
120046
120210
  }
120047
120211
  },
120048
120212
  {
120049
- "kind": "method",
120050
- "name": "_requestSubmit",
120051
- "privacy": "private",
120052
- "return": {
120053
- "type": {
120054
- "text": "void"
120055
- }
120213
+ "name": "value",
120214
+ "type": {
120215
+ "text": "string"
120056
120216
  },
120057
- "parameters": [
120058
- {
120059
- "name": "form",
120060
- "type": {
120061
- "text": "HTMLFormElement"
120062
- }
120063
- }
120064
- ],
120217
+ "default": "''",
120218
+ "description": "Value of the form element.",
120219
+ "fieldName": "value",
120065
120220
  "inheritedFrom": {
120066
120221
  "name": "SbbButtonBaseElement",
120067
120222
  "module": "core/base-elements/button-base-element.js"
120068
120223
  }
120069
120224
  },
120070
120225
  {
120071
- "kind": "field",
120072
- "name": "_formKeyDown",
120073
- "privacy": "private",
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",
120074
120233
  "inheritedFrom": {
120075
120234
  "name": "SbbButtonBaseElement",
120076
120235
  "module": "core/base-elements/button-base-element.js"
120077
120236
  }
120078
120237
  },
120079
120238
  {
120080
- "kind": "field",
120081
- "name": "formAssociated",
120239
+ "name": "form",
120240
+ "description": "The `<form>` element to associate the button with.",
120082
120241
  "type": {
120083
- "text": "boolean"
120242
+ "text": "HTMLFormElement | null"
120084
120243
  },
120085
- "privacy": "public",
120086
- "static": true,
120087
- "default": "true",
120244
+ "fieldName": "form",
120088
120245
  "inheritedFrom": {
120089
- "name": "SbbFormAssociatedMixin",
120090
- "module": "core/mixins/form-associated-mixin.js"
120246
+ "name": "SbbButtonBaseElement",
120247
+ "module": "core/base-elements/button-base-element.js"
120091
120248
  }
120092
120249
  },
120093
120250
  {
120094
- "kind": "field",
120095
120251
  "name": "name",
120096
- "privacy": "public",
120097
120252
  "description": "Name of the form element. Will be read from name attribute.",
120098
120253
  "type": {
120099
120254
  "text": "string"
120100
120255
  },
120101
- "attribute": "name",
120256
+ "fieldName": "name",
120102
120257
  "inheritedFrom": {
120103
120258
  "name": "SbbFormAssociatedMixin",
120104
120259
  "module": "core/mixins/form-associated-mixin.js"
120105
120260
  }
120106
- },
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": [
120107
120285
  {
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
- }
120286
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
120287
+ "name": ""
120120
120288
  },
120289
+ {
120290
+ "description": "Slot used to display the icon, if one is set.",
120291
+ "name": "icon"
120292
+ }
120293
+ ],
120294
+ "members": [
120121
120295
  {
120122
120296
  "kind": "field",
120123
- "name": "validationMessage",
120297
+ "name": "elementName",
120124
120298
  "type": {
120125
120299
  "text": "string"
120126
120300
  },
120127
120301
  "privacy": "public",
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.",
120302
+ "static": true,
120129
120303
  "readonly": true,
120130
120304
  "inheritedFrom": {
120131
- "name": "SbbFormAssociatedMixin",
120132
- "module": "core/mixins/form-associated-mixin.js"
120133
- }
120305
+ "name": "SbbElement",
120306
+ "module": "core/base-elements/element.js"
120307
+ },
120308
+ "default": "'sbb-block-link-static'"
120134
120309
  },
120135
120310
  {
120136
120311
  "kind": "field",
120137
- "name": "willValidate",
120312
+ "name": "styles",
120138
120313
  "type": {
120139
- "text": "boolean"
120314
+ "text": "CSSResultGroup"
120140
120315
  },
120141
120316
  "privacy": "public",
120142
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
120143
- "readonly": true,
120144
- "inheritedFrom": {
120145
- "name": "SbbFormAssociatedMixin",
120146
- "module": "core/mixins/form-associated-mixin.js"
120147
- }
120148
- },
120149
- {
120150
- "kind": "field",
120151
- "name": "_validityStates",
120152
- "privacy": "private",
120153
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
120317
+ "static": true,
120318
+ "default": "[super.styles, unsafeCSS(blockStyle)]",
120154
120319
  "inheritedFrom": {
120155
- "name": "SbbFormAssociatedMixin",
120156
- "module": "core/mixins/form-associated-mixin.js"
120320
+ "name": "SbbLinkCommonElementMixin",
120321
+ "module": "link/common/link-common.js"
120157
120322
  }
120158
120323
  },
120159
120324
  {
120160
120325
  "kind": "field",
120161
- "name": "formDisabled",
120326
+ "name": "iconPlacement",
120162
120327
  "type": {
120163
- "text": "boolean"
120328
+ "text": "SbbIconPlacement"
120164
120329
  },
120165
- "privacy": "protected",
120166
- "default": "false",
120167
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
120168
- "inheritedFrom": {
120169
- "name": "SbbFormAssociatedMixin",
120170
- "module": "core/mixins/form-associated-mixin.js"
120171
- }
120172
- },
120173
- {
120174
- "kind": "method",
120175
- "name": "checkValidity",
120176
120330
  "privacy": "public",
120177
- "return": {
120178
- "type": {
120179
- "text": "boolean"
120180
- }
120181
- },
120182
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
120183
- "inheritedFrom": {
120184
- "name": "SbbFormAssociatedMixin",
120185
- "module": "core/mixins/form-associated-mixin.js"
120186
- }
120187
- },
120188
- {
120189
- "kind": "method",
120190
- "name": "reportValidity",
120191
- "privacy": "public",
120192
- "return": {
120193
- "type": {
120194
- "text": "boolean"
120195
- }
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.",
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,
120198
120335
  "inheritedFrom": {
120199
- "name": "SbbFormAssociatedMixin",
120200
- "module": "core/mixins/form-associated-mixin.js"
120336
+ "name": "SbbBlockLinkCommonElementMixin",
120337
+ "module": "link/common/block-link-common.js"
120201
120338
  }
120202
120339
  },
120203
120340
  {
120204
120341
  "kind": "method",
120205
- "name": "setCustomValidity",
120206
- "privacy": "public",
120342
+ "name": "renderTemplate",
120343
+ "privacy": "protected",
120207
120344
  "return": {
120208
120345
  "type": {
120209
- "text": "void"
120346
+ "text": "TemplateResult"
120210
120347
  }
120211
120348
  },
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.",
120349
+ "description": "Override this method to render the component template.",
120221
120350
  "inheritedFrom": {
120222
- "name": "SbbFormAssociatedMixin",
120223
- "module": "core/mixins/form-associated-mixin.js"
120351
+ "name": "SbbActionBaseElement",
120352
+ "module": "core/base-elements/action-base-element.js"
120224
120353
  }
120225
120354
  },
120226
120355
  {
120227
- "kind": "method",
120228
- "name": "_hasDisabledAncestor",
120229
- "privacy": "private",
120230
- "return": {
120231
- "type": {
120232
- "text": "boolean"
120233
- }
120356
+ "kind": "field",
120357
+ "name": "size",
120358
+ "type": {
120359
+ "text": "SbbLinkSize"
120234
120360
  },
120361
+ "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,
120235
120366
  "inheritedFrom": {
120236
- "name": "SbbFormAssociatedMixin",
120237
- "module": "core/mixins/form-associated-mixin.js"
120367
+ "name": "SbbLinkCommonElementMixin",
120368
+ "module": "link/common/link-common.js"
120238
120369
  }
120239
120370
  },
120240
120371
  {
120241
- "kind": "method",
120242
- "name": "updateFormValue",
120243
- "privacy": "protected",
120244
- "return": {
120245
- "type": {
120246
- "text": "void"
120247
- }
120372
+ "kind": "field",
120373
+ "name": "elementDependencies",
120374
+ "type": {
120375
+ "text": "SbbElementType[]"
120248
120376
  },
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",
120377
+ "privacy": "public",
120378
+ "static": true,
120250
120379
  "inheritedFrom": {
120251
- "name": "SbbFormAssociatedMixin",
120252
- "module": "core/mixins/form-associated-mixin.js"
120253
- }
120254
- },
120255
- {
120256
- "kind": "method",
120257
- "name": "formState",
120258
- "privacy": "protected",
120259
- "return": {
120260
- "type": {
120261
- "text": "FormRestoreState"
120262
- }
120380
+ "name": "SbbElement",
120381
+ "module": "core/base-elements/element.js"
120263
120382
  },
120264
- "inheritedFrom": {
120265
- "name": "SbbFormAssociatedMixin",
120266
- "module": "core/mixins/form-associated-mixin.js"
120267
- }
120383
+ "default": "[SbbIconElement]"
120268
120384
  },
120269
120385
  {
120270
- "kind": "method",
120271
- "name": "setValidityFlag",
120272
- "privacy": "protected",
120273
- "return": {
120274
- "type": {
120275
- "text": "void"
120276
- }
120386
+ "kind": "field",
120387
+ "name": "iconName",
120388
+ "type": {
120389
+ "text": "string"
120277
120390
  },
120278
- "parameters": [
120279
- {
120280
- "name": "flag",
120281
- "type": {
120282
- "text": "T"
120283
- }
120284
- },
120285
- {
120286
- "name": "message",
120287
- "type": {
120288
- "text": "string"
120289
- }
120290
- },
120291
- {
120292
- "name": "flagValue",
120293
- "optional": true,
120294
- "type": {
120295
- "text": "ValidityStateFlags[T]"
120296
- }
120297
- }
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).",
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",
120300
120395
  "inheritedFrom": {
120301
- "name": "SbbFormAssociatedMixin",
120302
- "module": "core/mixins/form-associated-mixin.js"
120396
+ "name": "SbbIconNameMixin",
120397
+ "module": "icon/icon-name-mixin.js"
120303
120398
  }
120304
120399
  },
120305
120400
  {
120306
120401
  "kind": "method",
120307
- "name": "removeValidityFlag",
120402
+ "name": "renderIconSlot",
120308
120403
  "privacy": "protected",
120309
120404
  "return": {
120310
120405
  "type": {
120311
- "text": "void"
120406
+ "text": "TemplateResult"
120312
120407
  }
120313
120408
  },
120314
120409
  "parameters": [
120315
120410
  {
120316
- "name": "flag",
120411
+ "name": "classname",
120412
+ "optional": true,
120317
120413
  "type": {
120318
- "text": "T"
120414
+ "text": "string"
120319
120415
  }
120320
120416
  }
120321
120417
  ],
120322
- "description": "Removes the validity state flag entry and updates validity state.",
120323
- "inheritedFrom": {
120324
- "name": "SbbFormAssociatedMixin",
120325
- "module": "core/mixins/form-associated-mixin.js"
120326
- }
120327
- },
120328
- {
120329
- "kind": "method",
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
120418
  "inheritedFrom": {
120339
- "name": "SbbFormAssociatedMixin",
120340
- "module": "core/mixins/form-associated-mixin.js"
120419
+ "name": "SbbIconNameMixin",
120420
+ "module": "icon/icon-name-mixin.js"
120341
120421
  }
120342
120422
  },
120343
120423
  {
120344
120424
  "kind": "method",
120345
- "name": "shouldValidate",
120425
+ "name": "renderIconName",
120346
120426
  "privacy": "protected",
120347
120427
  "return": {
120348
120428
  "type": {
120349
- "text": "boolean"
120429
+ "text": "string"
120350
120430
  }
120351
120431
  },
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
120432
  "inheritedFrom": {
120362
- "name": "SbbFormAssociatedMixin",
120363
- "module": "core/mixins/form-associated-mixin.js"
120433
+ "name": "SbbIconNameMixin",
120434
+ "module": "icon/icon-name-mixin.js"
120364
120435
  }
120365
120436
  },
120366
120437
  {
120367
120438
  "kind": "method",
120368
- "name": "_setInternalValidity",
120439
+ "name": "_renderIconName",
120369
120440
  "privacy": "private",
120370
120441
  "return": {
120371
120442
  "type": {
120372
- "text": "void"
120443
+ "text": "string"
120373
120444
  }
120374
120445
  },
120375
120446
  "inheritedFrom": {
120376
- "name": "SbbFormAssociatedMixin",
120377
- "module": "core/mixins/form-associated-mixin.js"
120447
+ "name": "SbbIconNameMixin",
120448
+ "module": "icon/icon-name-mixin.js"
120378
120449
  }
120379
120450
  },
120380
120451
  {
120381
120452
  "kind": "field",
120382
- "name": "role",
120383
- "type": {
120384
- "text": "ElementInternals['role']"
120385
- },
120453
+ "name": "disabled",
120386
120454
  "privacy": "public",
120387
- "static": true,
120388
- "inheritedFrom": {
120389
- "name": "SbbElement",
120390
- "module": "core/base-elements/element.js"
120455
+ "description": "Whether the component is disabled.",
120456
+ "default": "false",
120457
+ "type": {
120458
+ "text": "boolean"
120391
120459
  },
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
- ],
120460
+ "attribute": "disabled",
120461
+ "reflects": true,
120406
120462
  "inheritedFrom": {
120407
- "name": "SbbButtonLikeBaseElement",
120408
- "module": "core/base-elements/button-base-element.js"
120463
+ "name": "SbbDisabledMixin",
120464
+ "module": "core/mixins/disabled-mixin.js"
120409
120465
  }
120410
120466
  },
120411
120467
  {
120412
120468
  "kind": "field",
120413
- "name": "_removeActiveMarker",
120469
+ "name": "#disabled",
120414
120470
  "privacy": "private",
120471
+ "type": {
120472
+ "text": "boolean"
120473
+ },
120474
+ "default": "false",
120415
120475
  "inheritedFrom": {
120416
- "name": "SbbButtonLikeBaseElement",
120417
- "module": "core/base-elements/button-base-element.js"
120476
+ "name": "SbbDisabledMixin",
120477
+ "module": "core/mixins/disabled-mixin.js"
120418
120478
  }
120419
120479
  },
120420
120480
  {
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"
120481
+ "kind": "method",
120482
+ "name": "isDisabledExternally",
120483
+ "privacy": "protected",
120484
+ "return": {
120485
+ "type": {
120486
+ "text": "boolean"
120429
120487
  }
120430
- ],
120431
- "inheritedFrom": {
120432
- "name": "SbbButtonLikeBaseElement",
120433
- "module": "core/base-elements/button-base-element.js"
120434
- }
120435
- },
120436
- {
120437
- "kind": "field",
120438
- "name": "_dispatchClickEvent",
120439
- "privacy": "private",
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.",
120440
120490
  "inheritedFrom": {
120441
- "name": "SbbButtonLikeBaseElement",
120442
- "module": "core/base-elements/button-base-element.js"
120491
+ "name": "SbbDisabledMixin",
120492
+ "module": "core/mixins/disabled-mixin.js"
120443
120493
  }
120444
120494
  },
120445
120495
  {
@@ -120496,6 +120546,19 @@
120496
120546
  "module": "core/base-elements/element.js"
120497
120547
  }
120498
120548
  },
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
+ },
120499
120562
  {
120500
120563
  "kind": "field",
120501
120564
  "name": "_controllers",
@@ -120722,15 +120785,15 @@
120722
120785
  "module": "link/common/block-link-common.js"
120723
120786
  },
120724
120787
  {
120725
- "name": "SbbDisabledTabIndexActionMixin",
120788
+ "name": "SbbDisabledMixin",
120726
120789
  "module": "core.js"
120727
120790
  }
120728
120791
  ],
120729
120792
  "superclass": {
120730
- "name": "SbbButtonBaseElement",
120793
+ "name": "SbbActionBaseElement",
120731
120794
  "module": "core.js"
120732
120795
  },
120733
- "tagName": "sbb-block-link-button",
120796
+ "tagName": "sbb-block-link-static",
120734
120797
  "customElement": true,
120735
120798
  "attributes": [
120736
120799
  {
@@ -120772,19 +120835,6 @@
120772
120835
  "module": "icon/icon-name-mixin.js"
120773
120836
  }
120774
120837
  },
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
- },
120788
120838
  {
120789
120839
  "name": "disabled",
120790
120840
  "description": "Whether the component is disabled.",
@@ -120797,56 +120847,6 @@
120797
120847
  "name": "SbbDisabledMixin",
120798
120848
  "module": "core/mixins/disabled-mixin.js"
120799
120849
  }
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": "SbbBlockLinkButtonElement",
120857
+ "name": "SbbBlockLinkStaticElement",
120858
120858
  "declaration": {
120859
- "name": "SbbBlockLinkButtonElement",
120860
- "module": "link/block-link-button/block-link-button.component.js"
120859
+ "name": "SbbBlockLinkStaticElement",
120860
+ "module": "link/block-link-static/block-link-static.component.js"
120861
120861
  }
120862
120862
  }
120863
120863
  ]