@sbb-esta/lyne-elements-dev 4.12.1-dev.1777962521 → 4.12.1-dev.1777980762

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 +1212 -1212
  2. package/package.json +2 -2
@@ -97681,6 +97681,192 @@
97681
97681
  }
97682
97682
  ]
97683
97683
  },
97684
+ {
97685
+ "kind": "javascript-module",
97686
+ "path": "header/header-environment/header-environment.component.js",
97687
+ "declarations": [
97688
+ {
97689
+ "kind": "class",
97690
+ "description": "It displays a ribbon inside the header to indicate the current environment.",
97691
+ "name": "SbbHeaderEnvironmentElement",
97692
+ "cssProperties": [
97693
+ {
97694
+ "description": "Can be used change the ribbon color.",
97695
+ "name": "--sbb-header-environment-background-color",
97696
+ "default": "var(sbb-color-granite)"
97697
+ },
97698
+ {
97699
+ "description": "Can be used change the text color.",
97700
+ "name": "--sbb-header-environment-color",
97701
+ "default": "var(sbb-color-white)"
97702
+ }
97703
+ ],
97704
+ "slots": [
97705
+ {
97706
+ "description": "Use the unnamed slot to add the environment.",
97707
+ "name": ""
97708
+ }
97709
+ ],
97710
+ "members": [
97711
+ {
97712
+ "kind": "field",
97713
+ "name": "elementName",
97714
+ "type": {
97715
+ "text": "string"
97716
+ },
97717
+ "privacy": "public",
97718
+ "static": true,
97719
+ "readonly": true,
97720
+ "default": "'sbb-header-environment'",
97721
+ "inheritedFrom": {
97722
+ "name": "SbbElement",
97723
+ "module": "core/base-elements/element.js"
97724
+ }
97725
+ },
97726
+ {
97727
+ "kind": "field",
97728
+ "name": "_env",
97729
+ "type": {
97730
+ "text": "string | null"
97731
+ },
97732
+ "privacy": "private",
97733
+ "default": "null"
97734
+ },
97735
+ {
97736
+ "kind": "method",
97737
+ "name": "_slottedTextChange",
97738
+ "privacy": "private",
97739
+ "return": {
97740
+ "type": {
97741
+ "text": "void"
97742
+ }
97743
+ }
97744
+ },
97745
+ {
97746
+ "kind": "field",
97747
+ "name": "_hydrationRequired",
97748
+ "type": {
97749
+ "text": "boolean"
97750
+ },
97751
+ "privacy": "private",
97752
+ "default": "!!this.shadowRoot",
97753
+ "inheritedFrom": {
97754
+ "name": "SbbElement",
97755
+ "module": "core/base-elements/element.js"
97756
+ }
97757
+ },
97758
+ {
97759
+ "kind": "field",
97760
+ "name": "_hydrationComplete",
97761
+ "privacy": "private",
97762
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
97763
+ "inheritedFrom": {
97764
+ "name": "SbbElement",
97765
+ "module": "core/base-elements/element.js"
97766
+ }
97767
+ },
97768
+ {
97769
+ "kind": "field",
97770
+ "name": "_resolveHydration",
97771
+ "type": {
97772
+ "text": "(hydrationRequired: boolean) => void"
97773
+ },
97774
+ "privacy": "private",
97775
+ "inheritedFrom": {
97776
+ "name": "SbbElement",
97777
+ "module": "core/base-elements/element.js"
97778
+ }
97779
+ },
97780
+ {
97781
+ "kind": "field",
97782
+ "name": "hydrationRequired",
97783
+ "type": {
97784
+ "text": "boolean"
97785
+ },
97786
+ "privacy": "protected",
97787
+ "description": "Returns whether hydration is required and not completed.",
97788
+ "readonly": true,
97789
+ "inheritedFrom": {
97790
+ "name": "SbbElement",
97791
+ "module": "core/base-elements/element.js"
97792
+ },
97793
+ "default": "!!this.shadowRoot"
97794
+ },
97795
+ {
97796
+ "kind": "method",
97797
+ "name": "toggleState",
97798
+ "privacy": "protected",
97799
+ "return": {
97800
+ "type": {
97801
+ "text": "void"
97802
+ }
97803
+ },
97804
+ "parameters": [
97805
+ {
97806
+ "name": "value",
97807
+ "type": {
97808
+ "text": "string"
97809
+ }
97810
+ },
97811
+ {
97812
+ "name": "force",
97813
+ "optional": true,
97814
+ "type": {
97815
+ "text": "boolean"
97816
+ }
97817
+ }
97818
+ ],
97819
+ "inheritedFrom": {
97820
+ "name": "SbbElement",
97821
+ "module": "core/base-elements/element.js"
97822
+ }
97823
+ },
97824
+ {
97825
+ "kind": "field",
97826
+ "name": "['_$sbbElement$']",
97827
+ "type": {
97828
+ "text": "boolean"
97829
+ },
97830
+ "privacy": "public",
97831
+ "static": true,
97832
+ "default": "true",
97833
+ "inheritedFrom": {
97834
+ "name": "SbbElement",
97835
+ "module": "core/base-elements/element.js"
97836
+ }
97837
+ },
97838
+ {
97839
+ "kind": "field",
97840
+ "name": "_controllers",
97841
+ "type": {
97842
+ "text": "Set<SbbReactiveController> | undefined"
97843
+ },
97844
+ "privacy": "private",
97845
+ "inheritedFrom": {
97846
+ "name": "SbbElement",
97847
+ "module": "core/base-elements/element.js"
97848
+ }
97849
+ }
97850
+ ],
97851
+ "superclass": {
97852
+ "name": "SbbElement",
97853
+ "module": "core/base-elements.js"
97854
+ },
97855
+ "tagName": "sbb-header-environment",
97856
+ "customElement": true
97857
+ }
97858
+ ],
97859
+ "exports": [
97860
+ {
97861
+ "kind": "js",
97862
+ "name": "SbbHeaderEnvironmentElement",
97863
+ "declaration": {
97864
+ "name": "SbbHeaderEnvironmentElement",
97865
+ "module": "header/header-environment/header-environment.component.js"
97866
+ }
97867
+ }
97868
+ ]
97869
+ },
97684
97870
  {
97685
97871
  "kind": "javascript-module",
97686
97872
  "path": "header/header-link/header-link.component.js",
@@ -98254,27 +98440,15 @@
98254
98440
  },
98255
98441
  {
98256
98442
  "kind": "javascript-module",
98257
- "path": "header/header-environment/header-environment.component.js",
98443
+ "path": "icon-sidebar/icon-sidebar/icon-sidebar.component.js",
98258
98444
  "declarations": [
98259
98445
  {
98260
98446
  "kind": "class",
98261
- "description": "It displays a ribbon inside the header to indicate the current environment.",
98262
- "name": "SbbHeaderEnvironmentElement",
98263
- "cssProperties": [
98264
- {
98265
- "description": "Can be used change the ribbon color.",
98266
- "name": "--sbb-header-environment-background-color",
98267
- "default": "var(sbb-color-granite)"
98268
- },
98269
- {
98270
- "description": "Can be used change the text color.",
98271
- "name": "--sbb-header-environment-color",
98272
- "default": "var(sbb-color-white)"
98273
- }
98274
- ],
98447
+ "description": "Icon sidebar, can be placed inside a `sbb-icon-sidebar-container` element.",
98448
+ "name": "SbbIconSidebarElement",
98275
98449
  "slots": [
98276
98450
  {
98277
- "description": "Use the unnamed slot to add the environment.",
98451
+ "description": "Use the unnamed slot to slot any content into the icon-sidebar.",
98278
98452
  "name": ""
98279
98453
  }
98280
98454
  ],
@@ -98288,7 +98462,7 @@
98288
98462
  "privacy": "public",
98289
98463
  "static": true,
98290
98464
  "readonly": true,
98291
- "default": "'sbb-header-environment'",
98465
+ "default": "'sbb-icon-sidebar'",
98292
98466
  "inheritedFrom": {
98293
98467
  "name": "SbbElement",
98294
98468
  "module": "core/base-elements/element.js"
@@ -98296,210 +98470,36 @@
98296
98470
  },
98297
98471
  {
98298
98472
  "kind": "field",
98299
- "name": "_env",
98473
+ "name": "role",
98300
98474
  "type": {
98301
- "text": "string | null"
98475
+ "text": "string"
98302
98476
  },
98303
- "privacy": "private",
98304
- "default": "null"
98477
+ "privacy": "public",
98478
+ "static": true,
98479
+ "readonly": true,
98480
+ "default": "'navigation'"
98305
98481
  },
98306
98482
  {
98307
- "kind": "method",
98308
- "name": "_slottedTextChange",
98309
- "privacy": "private",
98310
- "return": {
98311
- "type": {
98312
- "text": "void"
98313
- }
98314
- }
98315
- },
98316
- {
98317
- "kind": "field",
98318
- "name": "_hydrationRequired",
98319
- "type": {
98320
- "text": "boolean"
98321
- },
98322
- "privacy": "private",
98323
- "default": "!!this.shadowRoot",
98324
- "inheritedFrom": {
98325
- "name": "SbbElement",
98326
- "module": "core/base-elements/element.js"
98327
- }
98328
- },
98329
- {
98330
- "kind": "field",
98331
- "name": "_hydrationComplete",
98332
- "privacy": "private",
98333
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
98334
- "inheritedFrom": {
98335
- "name": "SbbElement",
98336
- "module": "core/base-elements/element.js"
98337
- }
98338
- },
98339
- {
98340
- "kind": "field",
98341
- "name": "_resolveHydration",
98342
- "type": {
98343
- "text": "(hydrationRequired: boolean) => void"
98344
- },
98345
- "privacy": "private",
98346
- "inheritedFrom": {
98347
- "name": "SbbElement",
98348
- "module": "core/base-elements/element.js"
98349
- }
98350
- },
98351
- {
98352
- "kind": "field",
98353
- "name": "hydrationRequired",
98354
- "type": {
98355
- "text": "boolean"
98356
- },
98357
- "privacy": "protected",
98358
- "description": "Returns whether hydration is required and not completed.",
98359
- "readonly": true,
98360
- "inheritedFrom": {
98361
- "name": "SbbElement",
98362
- "module": "core/base-elements/element.js"
98363
- },
98364
- "default": "!!this.shadowRoot"
98365
- },
98366
- {
98367
- "kind": "method",
98368
- "name": "toggleState",
98369
- "privacy": "protected",
98370
- "return": {
98371
- "type": {
98372
- "text": "void"
98373
- }
98374
- },
98375
- "parameters": [
98376
- {
98377
- "name": "value",
98378
- "type": {
98379
- "text": "string"
98380
- }
98381
- },
98382
- {
98383
- "name": "force",
98384
- "optional": true,
98385
- "type": {
98386
- "text": "boolean"
98387
- }
98388
- }
98389
- ],
98390
- "inheritedFrom": {
98391
- "name": "SbbElement",
98392
- "module": "core/base-elements/element.js"
98393
- }
98394
- },
98395
- {
98396
- "kind": "field",
98397
- "name": "['_$sbbElement$']",
98398
- "type": {
98399
- "text": "boolean"
98400
- },
98401
- "privacy": "public",
98402
- "static": true,
98403
- "default": "true",
98404
- "inheritedFrom": {
98405
- "name": "SbbElement",
98406
- "module": "core/base-elements/element.js"
98407
- }
98408
- },
98409
- {
98410
- "kind": "field",
98411
- "name": "_controllers",
98412
- "type": {
98413
- "text": "Set<SbbReactiveController> | undefined"
98414
- },
98415
- "privacy": "private",
98416
- "inheritedFrom": {
98417
- "name": "SbbElement",
98418
- "module": "core/base-elements/element.js"
98419
- }
98420
- }
98421
- ],
98422
- "superclass": {
98423
- "name": "SbbElement",
98424
- "module": "core/base-elements.js"
98425
- },
98426
- "tagName": "sbb-header-environment",
98427
- "customElement": true
98428
- }
98429
- ],
98430
- "exports": [
98431
- {
98432
- "kind": "js",
98433
- "name": "SbbHeaderEnvironmentElement",
98434
- "declaration": {
98435
- "name": "SbbHeaderEnvironmentElement",
98436
- "module": "header/header-environment/header-environment.component.js"
98437
- }
98438
- }
98439
- ]
98440
- },
98441
- {
98442
- "kind": "javascript-module",
98443
- "path": "icon-sidebar/icon-sidebar/icon-sidebar.component.js",
98444
- "declarations": [
98445
- {
98446
- "kind": "class",
98447
- "description": "Icon sidebar, can be placed inside a `sbb-icon-sidebar-container` element.",
98448
- "name": "SbbIconSidebarElement",
98449
- "slots": [
98450
- {
98451
- "description": "Use the unnamed slot to slot any content into the icon-sidebar.",
98452
- "name": ""
98453
- }
98454
- ],
98455
- "members": [
98456
- {
98457
- "kind": "field",
98458
- "name": "elementName",
98459
- "type": {
98460
- "text": "string"
98461
- },
98462
- "privacy": "public",
98463
- "static": true,
98464
- "readonly": true,
98465
- "default": "'sbb-icon-sidebar'",
98466
- "inheritedFrom": {
98467
- "name": "SbbElement",
98468
- "module": "core/base-elements/element.js"
98469
- }
98470
- },
98471
- {
98472
- "kind": "field",
98473
- "name": "role",
98474
- "type": {
98475
- "text": "string"
98476
- },
98477
- "privacy": "public",
98478
- "static": true,
98479
- "readonly": true,
98480
- "default": "'navigation'"
98481
- },
98482
- {
98483
- "kind": "field",
98484
- "name": "color",
98485
- "type": {
98486
- "text": "'white' | 'milk'"
98487
- },
98488
- "privacy": "public",
98489
- "default": "'white'",
98490
- "description": "Background color of the icon sidebar. Either `white` or `milk`. *",
98491
- "attribute": "color",
98492
- "reflects": true
98493
- },
98494
- {
98495
- "kind": "field",
98496
- "name": "container",
98497
- "type": {
98498
- "text": "SbbIconSidebarContainerElement | null"
98499
- },
98500
- "privacy": "public",
98501
- "description": "Returns the SbbIconSidebarContainerElement where this icon-sidebar is contained.",
98502
- "readonly": true
98483
+ "kind": "field",
98484
+ "name": "color",
98485
+ "type": {
98486
+ "text": "'white' | 'milk'"
98487
+ },
98488
+ "privacy": "public",
98489
+ "default": "'white'",
98490
+ "description": "Background color of the icon sidebar. Either `white` or `milk`. *",
98491
+ "attribute": "color",
98492
+ "reflects": true
98493
+ },
98494
+ {
98495
+ "kind": "field",
98496
+ "name": "container",
98497
+ "type": {
98498
+ "text": "SbbIconSidebarContainerElement | null"
98499
+ },
98500
+ "privacy": "public",
98501
+ "description": "Returns the SbbIconSidebarContainerElement where this icon-sidebar is contained.",
98502
+ "readonly": true
98503
98503
  },
98504
98504
  {
98505
98505
  "kind": "field",
@@ -100327,15 +100327,15 @@
100327
100327
  },
100328
100328
  {
100329
100329
  "kind": "javascript-module",
100330
- "path": "link/block-link/block-link.component.js",
100330
+ "path": "link/block-link-button/block-link-button.component.js",
100331
100331
  "declarations": [
100332
100332
  {
100333
100333
  "kind": "class",
100334
- "description": "It displays a link enhanced with the SBB Design.",
100335
- "name": "SbbBlockLinkElement",
100334
+ "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
100335
+ "name": "SbbBlockLinkButtonElement",
100336
100336
  "slots": [
100337
100337
  {
100338
- "description": "Use the unnamed slot to add content to the `sbb-block-link`.",
100338
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
100339
100339
  "name": ""
100340
100340
  },
100341
100341
  {
@@ -100357,7 +100357,7 @@
100357
100357
  "name": "SbbElement",
100358
100358
  "module": "core/base-elements/element.js"
100359
100359
  },
100360
- "default": "'sbb-block-link'"
100360
+ "default": "'sbb-block-link-button'"
100361
100361
  },
100362
100362
  {
100363
100363
  "kind": "field",
@@ -100486,6 +100486,22 @@
100486
100486
  "module": "icon/icon-name-mixin.js"
100487
100487
  }
100488
100488
  },
100489
+ {
100490
+ "kind": "field",
100491
+ "name": "disabledInteractive",
100492
+ "type": {
100493
+ "text": "boolean"
100494
+ },
100495
+ "privacy": "public",
100496
+ "default": "false",
100497
+ "description": "Whether the button should be aria-disabled but stay interactive.",
100498
+ "attribute": "disabled-interactive",
100499
+ "reflects": true,
100500
+ "inheritedFrom": {
100501
+ "name": "SbbDisabledInteractiveMixin",
100502
+ "module": "core/mixins/disabled-mixin.js"
100503
+ }
100504
+ },
100489
100505
  {
100490
100506
  "kind": "field",
100491
100507
  "name": "disabled",
@@ -100532,247 +100548,243 @@
100532
100548
  },
100533
100549
  {
100534
100550
  "kind": "field",
100535
- "name": "href",
100551
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
100536
100552
  "type": {
100537
- "text": "string"
100553
+ "text": "array"
100538
100554
  },
100539
- "privacy": "public",
100540
- "default": "''",
100541
- "description": "The href value you want to link to.",
100542
- "attribute": "href",
100543
- "reflects": true,
100555
+ "privacy": "private",
100556
+ "readonly": true,
100557
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
100544
100558
  "inheritedFrom": {
100545
- "name": "SbbLinkBaseElement",
100546
- "module": "core/base-elements/link-base-element.js"
100559
+ "name": "SbbButtonBaseElement",
100560
+ "module": "core/base-elements/button-base-element.js"
100547
100561
  }
100548
100562
  },
100549
100563
  {
100550
100564
  "kind": "field",
100551
- "name": "target",
100565
+ "name": "value",
100552
100566
  "type": {
100553
- "text": "LinkTargetType | string"
100567
+ "text": "string"
100554
100568
  },
100555
100569
  "privacy": "public",
100556
- "default": "''",
100557
- "description": "Where to display the linked URL.",
100558
- "attribute": "target",
100559
- "reflects": true,
100560
100570
  "inheritedFrom": {
100561
- "name": "SbbLinkBaseElement",
100562
- "module": "core/base-elements/link-base-element.js"
100563
- }
100571
+ "name": "SbbButtonBaseElement",
100572
+ "module": "core/base-elements/button-base-element.js"
100573
+ },
100574
+ "default": "''",
100575
+ "description": "Value of the form element.",
100576
+ "attribute": "value"
100564
100577
  },
100565
100578
  {
100566
100579
  "kind": "field",
100567
- "name": "rel",
100580
+ "name": "type",
100581
+ "privacy": "public",
100582
+ "description": "The type attribute to use for the button.",
100583
+ "default": "'button'",
100568
100584
  "type": {
100569
- "text": "string"
100585
+ "text": "SbbButtonType"
100570
100586
  },
100571
- "privacy": "public",
100572
- "default": "''",
100573
- "description": "The relationship of the linked URL as space-separated link types.",
100574
- "attribute": "rel",
100575
- "reflects": true,
100587
+ "attribute": "type",
100576
100588
  "inheritedFrom": {
100577
- "name": "SbbLinkBaseElement",
100578
- "module": "core/base-elements/link-base-element.js"
100589
+ "name": "SbbButtonBaseElement",
100590
+ "module": "core/base-elements/button-base-element.js"
100579
100591
  }
100580
100592
  },
100581
100593
  {
100582
100594
  "kind": "field",
100583
- "name": "download",
100595
+ "name": "form",
100584
100596
  "type": {
100585
- "text": "boolean"
100597
+ "text": "HTMLFormElement | null"
100586
100598
  },
100587
100599
  "privacy": "public",
100588
- "default": "false",
100589
- "description": "Whether the browser will show the download dialog on click.",
100590
- "attribute": "download",
100591
- "reflects": true,
100600
+ "description": "The `<form>` element to associate the button with.",
100592
100601
  "inheritedFrom": {
100593
- "name": "SbbLinkBaseElement",
100594
- "module": "core/base-elements/link-base-element.js"
100595
- }
100596
- },
100597
- {
100598
- "kind": "field",
100599
- "name": "accessibilityLabel",
100600
- "type": {
100601
- "text": "string"
100602
+ "name": "SbbButtonBaseElement",
100603
+ "module": "core/base-elements/button-base-element.js"
100602
100604
  },
100603
- "privacy": "public",
100604
- "default": "''",
100605
- "description": "This will be forwarded as aria-label to the inner anchor element.",
100606
- "attribute": "accessibility-label",
100607
- "inheritedFrom": {
100608
- "name": "SbbLinkBaseElement",
100609
- "module": "core/base-elements/link-base-element.js"
100610
- }
100605
+ "attribute": "form"
100611
100606
  },
100612
100607
  {
100613
100608
  "kind": "field",
100614
- "name": "accessibilityCurrent",
100609
+ "name": "_formId",
100615
100610
  "type": {
100616
100611
  "text": "string"
100617
100612
  },
100618
- "privacy": "public",
100613
+ "privacy": "private",
100619
100614
  "default": "''",
100620
- "description": "This will be forwarded as aria-current to the inner anchor element.",
100621
- "attribute": "accessibility-current",
100622
- "inheritedFrom": {
100623
- "name": "SbbLinkBaseElement",
100624
- "module": "core/base-elements/link-base-element.js"
100625
- }
100626
- },
100627
- {
100628
- "kind": "field",
100629
- "name": "language",
100630
- "privacy": "protected",
100631
- "default": "new SbbLanguageController(this)",
100632
- "inheritedFrom": {
100633
- "name": "SbbLinkBaseElement",
100634
- "module": "core/base-elements/link-base-element.js"
100635
- }
100636
- },
100637
- {
100638
- "kind": "field",
100639
- "name": "anchorRole",
100640
- "type": {
100641
- "text": "string | null"
100642
- },
100643
- "privacy": "protected",
100644
- "readonly": true,
100645
- "default": "null",
100646
100615
  "inheritedFrom": {
100647
- "name": "SbbLinkBaseElement",
100648
- "module": "core/base-elements/link-base-element.js"
100616
+ "name": "SbbButtonBaseElement",
100617
+ "module": "core/base-elements/button-base-element.js"
100649
100618
  }
100650
100619
  },
100651
100620
  {
100652
100621
  "kind": "field",
100653
- "name": "_evaluateRelAttribute",
100622
+ "name": "_handleButtonClick",
100654
100623
  "privacy": "private",
100655
100624
  "inheritedFrom": {
100656
- "name": "SbbLinkBaseElement",
100657
- "module": "core/base-elements/link-base-element.js"
100625
+ "name": "SbbButtonBaseElement",
100626
+ "module": "core/base-elements/button-base-element.js"
100658
100627
  }
100659
100628
  },
100660
100629
  {
100661
100630
  "kind": "method",
100662
- "name": "renderLink",
100663
- "privacy": "protected",
100631
+ "name": "_requestSubmit",
100632
+ "privacy": "private",
100664
100633
  "return": {
100665
100634
  "type": {
100666
- "text": "TemplateResult"
100635
+ "text": "void"
100667
100636
  }
100668
100637
  },
100669
100638
  "parameters": [
100670
100639
  {
100671
- "name": "renderContent",
100640
+ "name": "form",
100672
100641
  "type": {
100673
- "text": "TemplateResult"
100642
+ "text": "HTMLFormElement"
100674
100643
  }
100675
100644
  }
100676
100645
  ],
100677
100646
  "inheritedFrom": {
100678
- "name": "SbbLinkBaseElement",
100679
- "module": "core/base-elements/link-base-element.js"
100647
+ "name": "SbbButtonBaseElement",
100648
+ "module": "core/base-elements/button-base-element.js"
100680
100649
  }
100681
100650
  },
100682
100651
  {
100683
100652
  "kind": "field",
100684
- "name": "maybeDisabled",
100685
- "type": {
100686
- "text": "boolean | undefined"
100687
- },
100688
- "privacy": "protected",
100689
- "readonly": true,
100653
+ "name": "_formKeyDown",
100654
+ "privacy": "private",
100690
100655
  "inheritedFrom": {
100691
- "name": "SbbActionBaseElement",
100692
- "module": "core/base-elements/action-base-element.js"
100656
+ "name": "SbbButtonBaseElement",
100657
+ "module": "core/base-elements/button-base-element.js"
100693
100658
  }
100694
100659
  },
100695
100660
  {
100696
100661
  "kind": "field",
100697
- "name": "maybeDisabledInteractive",
100662
+ "name": "formAssociated",
100698
100663
  "type": {
100699
- "text": "boolean | undefined"
100664
+ "text": "boolean"
100700
100665
  },
100701
- "privacy": "protected",
100702
- "readonly": true,
100666
+ "privacy": "public",
100667
+ "static": true,
100668
+ "default": "true",
100703
100669
  "inheritedFrom": {
100704
- "name": "SbbActionBaseElement",
100705
- "module": "core/base-elements/action-base-element.js"
100670
+ "name": "SbbFormAssociatedMixin",
100671
+ "module": "core/mixins/form-associated-mixin.js"
100706
100672
  }
100707
100673
  },
100708
100674
  {
100709
- "kind": "method",
100710
- "name": "setupBaseEventHandlers",
100711
- "privacy": "protected",
100712
- "return": {
100713
- "type": {
100714
- "text": "void"
100715
- }
100675
+ "kind": "field",
100676
+ "name": "name",
100677
+ "privacy": "public",
100678
+ "description": "Name of the form element. Will be read from name attribute.",
100679
+ "type": {
100680
+ "text": "string"
100716
100681
  },
100682
+ "attribute": "name",
100717
100683
  "inheritedFrom": {
100718
- "name": "SbbActionBaseElement",
100719
- "module": "core/base-elements/action-base-element.js"
100684
+ "name": "SbbFormAssociatedMixin",
100685
+ "module": "core/mixins/form-associated-mixin.js"
100720
100686
  }
100721
100687
  },
100722
100688
  {
100723
100689
  "kind": "field",
100724
- "name": "_hydrationRequired",
100690
+ "name": "validity",
100725
100691
  "type": {
100726
- "text": "boolean"
100692
+ "text": "ValidityState"
100727
100693
  },
100728
- "privacy": "private",
100729
- "default": "!!this.shadowRoot",
100694
+ "privacy": "public",
100695
+ "description": "Returns the ValidityState object for this element.",
100696
+ "readonly": true,
100730
100697
  "inheritedFrom": {
100731
- "name": "SbbElement",
100732
- "module": "core/base-elements/element.js"
100698
+ "name": "SbbFormAssociatedMixin",
100699
+ "module": "core/mixins/form-associated-mixin.js"
100733
100700
  }
100734
100701
  },
100735
100702
  {
100736
100703
  "kind": "field",
100737
- "name": "_hydrationComplete",
100738
- "privacy": "private",
100739
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
100704
+ "name": "validationMessage",
100705
+ "type": {
100706
+ "text": "string"
100707
+ },
100708
+ "privacy": "public",
100709
+ "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.",
100710
+ "readonly": true,
100740
100711
  "inheritedFrom": {
100741
- "name": "SbbElement",
100742
- "module": "core/base-elements/element.js"
100712
+ "name": "SbbFormAssociatedMixin",
100713
+ "module": "core/mixins/form-associated-mixin.js"
100743
100714
  }
100744
100715
  },
100745
100716
  {
100746
100717
  "kind": "field",
100747
- "name": "_resolveHydration",
100718
+ "name": "willValidate",
100748
100719
  "type": {
100749
- "text": "(hydrationRequired: boolean) => void"
100720
+ "text": "boolean"
100750
100721
  },
100722
+ "privacy": "public",
100723
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
100724
+ "readonly": true,
100725
+ "inheritedFrom": {
100726
+ "name": "SbbFormAssociatedMixin",
100727
+ "module": "core/mixins/form-associated-mixin.js"
100728
+ }
100729
+ },
100730
+ {
100731
+ "kind": "field",
100732
+ "name": "_validityStates",
100751
100733
  "privacy": "private",
100734
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
100752
100735
  "inheritedFrom": {
100753
- "name": "SbbElement",
100754
- "module": "core/base-elements/element.js"
100736
+ "name": "SbbFormAssociatedMixin",
100737
+ "module": "core/mixins/form-associated-mixin.js"
100755
100738
  }
100756
100739
  },
100757
100740
  {
100758
100741
  "kind": "field",
100759
- "name": "hydrationRequired",
100742
+ "name": "formDisabled",
100760
100743
  "type": {
100761
100744
  "text": "boolean"
100762
100745
  },
100763
100746
  "privacy": "protected",
100764
- "description": "Returns whether hydration is required and not completed.",
100765
- "readonly": true,
100747
+ "default": "false",
100748
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
100766
100749
  "inheritedFrom": {
100767
- "name": "SbbElement",
100768
- "module": "core/base-elements/element.js"
100750
+ "name": "SbbFormAssociatedMixin",
100751
+ "module": "core/mixins/form-associated-mixin.js"
100752
+ }
100753
+ },
100754
+ {
100755
+ "kind": "method",
100756
+ "name": "checkValidity",
100757
+ "privacy": "public",
100758
+ "return": {
100759
+ "type": {
100760
+ "text": "boolean"
100761
+ }
100769
100762
  },
100770
- "default": "!!this.shadowRoot"
100763
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
100764
+ "inheritedFrom": {
100765
+ "name": "SbbFormAssociatedMixin",
100766
+ "module": "core/mixins/form-associated-mixin.js"
100767
+ }
100771
100768
  },
100772
100769
  {
100773
100770
  "kind": "method",
100774
- "name": "toggleState",
100775
- "privacy": "protected",
100771
+ "name": "reportValidity",
100772
+ "privacy": "public",
100773
+ "return": {
100774
+ "type": {
100775
+ "text": "boolean"
100776
+ }
100777
+ },
100778
+ "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.",
100779
+ "inheritedFrom": {
100780
+ "name": "SbbFormAssociatedMixin",
100781
+ "module": "core/mixins/form-associated-mixin.js"
100782
+ }
100783
+ },
100784
+ {
100785
+ "kind": "method",
100786
+ "name": "setCustomValidity",
100787
+ "privacy": "public",
100776
100788
  "return": {
100777
100789
  "type": {
100778
100790
  "text": "void"
@@ -100780,286 +100792,272 @@
100780
100792
  },
100781
100793
  "parameters": [
100782
100794
  {
100783
- "name": "value",
100795
+ "name": "message",
100784
100796
  "type": {
100785
100797
  "text": "string"
100786
100798
  }
100787
- },
100788
- {
100789
- "name": "force",
100790
- "optional": true,
100791
- "type": {
100792
- "text": "boolean"
100793
- }
100794
100799
  }
100795
100800
  ],
100801
+ "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.",
100796
100802
  "inheritedFrom": {
100797
- "name": "SbbElement",
100798
- "module": "core/base-elements/element.js"
100803
+ "name": "SbbFormAssociatedMixin",
100804
+ "module": "core/mixins/form-associated-mixin.js"
100799
100805
  }
100800
100806
  },
100801
100807
  {
100802
- "kind": "field",
100803
- "name": "['_$sbbElement$']",
100804
- "type": {
100805
- "text": "boolean"
100808
+ "kind": "method",
100809
+ "name": "_hasDisabledAncestor",
100810
+ "privacy": "private",
100811
+ "return": {
100812
+ "type": {
100813
+ "text": "boolean"
100814
+ }
100806
100815
  },
100807
- "privacy": "public",
100808
- "static": true,
100809
- "default": "true",
100810
100816
  "inheritedFrom": {
100811
- "name": "SbbElement",
100812
- "module": "core/base-elements/element.js"
100817
+ "name": "SbbFormAssociatedMixin",
100818
+ "module": "core/mixins/form-associated-mixin.js"
100813
100819
  }
100814
100820
  },
100815
100821
  {
100816
- "kind": "field",
100817
- "name": "_controllers",
100818
- "type": {
100819
- "text": "Set<SbbReactiveController> | undefined"
100820
- },
100821
- "privacy": "private",
100822
- "inheritedFrom": {
100823
- "name": "SbbElement",
100824
- "module": "core/base-elements/element.js"
100822
+ "kind": "method",
100823
+ "name": "updateFormValue",
100824
+ "privacy": "protected",
100825
+ "return": {
100826
+ "type": {
100827
+ "text": "void"
100828
+ }
100829
+ },
100830
+ "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",
100831
+ "inheritedFrom": {
100832
+ "name": "SbbFormAssociatedMixin",
100833
+ "module": "core/mixins/form-associated-mixin.js"
100825
100834
  }
100826
- }
100827
- ],
100828
- "mixins": [
100829
- {
100830
- "name": "SbbBlockLinkCommonElementMixin",
100831
- "module": "link/common/block-link-common.js"
100832
100835
  },
100833
100836
  {
100834
- "name": "SbbDisabledMixin",
100835
- "module": "core/mixins.js"
100836
- }
100837
- ],
100838
- "superclass": {
100839
- "name": "SbbLinkBaseElement",
100840
- "module": "core/base-elements.js"
100841
- },
100842
- "tagName": "sbb-block-link",
100843
- "customElement": true,
100844
- "attributes": [
100845
- {
100846
- "name": "icon-placement",
100847
- "type": {
100848
- "text": "SbbIconPlacement"
100837
+ "kind": "method",
100838
+ "name": "formState",
100839
+ "privacy": "protected",
100840
+ "return": {
100841
+ "type": {
100842
+ "text": "FormRestoreState"
100843
+ }
100849
100844
  },
100850
- "default": "'start'",
100851
- "description": "Moves the icon to the end of the component if set to true.",
100852
- "fieldName": "iconPlacement",
100853
100845
  "inheritedFrom": {
100854
- "name": "SbbBlockLinkCommonElementMixin",
100855
- "module": "link/common/block-link-common.js"
100846
+ "name": "SbbFormAssociatedMixin",
100847
+ "module": "core/mixins/form-associated-mixin.js"
100856
100848
  }
100857
100849
  },
100858
100850
  {
100859
- "name": "size",
100860
- "type": {
100861
- "text": "SbbLinkSize"
100851
+ "kind": "method",
100852
+ "name": "setValidityFlag",
100853
+ "privacy": "protected",
100854
+ "return": {
100855
+ "type": {
100856
+ "text": "void"
100857
+ }
100862
100858
  },
100863
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
100864
- "default": "'s' / 'xs' (lean)",
100865
- "fieldName": "size",
100859
+ "parameters": [
100860
+ {
100861
+ "name": "flag",
100862
+ "type": {
100863
+ "text": "T"
100864
+ }
100865
+ },
100866
+ {
100867
+ "name": "message",
100868
+ "type": {
100869
+ "text": "string"
100870
+ }
100871
+ },
100872
+ {
100873
+ "name": "flagValue",
100874
+ "optional": true,
100875
+ "type": {
100876
+ "text": "ValidityStateFlags[T]"
100877
+ }
100878
+ }
100879
+ ],
100880
+ "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).",
100866
100881
  "inheritedFrom": {
100867
- "name": "SbbLinkCommonElementMixin",
100868
- "module": "link/common/link-common.js"
100882
+ "name": "SbbFormAssociatedMixin",
100883
+ "module": "core/mixins/form-associated-mixin.js"
100869
100884
  }
100870
100885
  },
100871
100886
  {
100872
- "name": "icon-name",
100873
- "type": {
100874
- "text": "string"
100887
+ "kind": "method",
100888
+ "name": "removeValidityFlag",
100889
+ "privacy": "protected",
100890
+ "return": {
100891
+ "type": {
100892
+ "text": "void"
100893
+ }
100875
100894
  },
100876
- "default": "''",
100877
- "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.",
100878
- "fieldName": "iconName",
100895
+ "parameters": [
100896
+ {
100897
+ "name": "flag",
100898
+ "type": {
100899
+ "text": "T"
100900
+ }
100901
+ }
100902
+ ],
100903
+ "description": "Removes the validity state flag entry and updates validity state.",
100879
100904
  "inheritedFrom": {
100880
- "name": "SbbIconNameMixin",
100881
- "module": "icon/icon-name-mixin.js"
100905
+ "name": "SbbFormAssociatedMixin",
100906
+ "module": "core/mixins/form-associated-mixin.js"
100882
100907
  }
100883
100908
  },
100884
100909
  {
100885
- "name": "disabled",
100886
- "description": "Whether the component is disabled.",
100887
- "default": "false",
100888
- "type": {
100889
- "text": "boolean"
100910
+ "kind": "method",
100911
+ "name": "validate",
100912
+ "privacy": "protected",
100913
+ "return": {
100914
+ "type": {
100915
+ "text": "void"
100916
+ }
100890
100917
  },
100891
- "fieldName": "disabled",
100918
+ "description": "To be called whenever the current element needs to be validated.",
100892
100919
  "inheritedFrom": {
100893
- "name": "SbbDisabledMixin",
100894
- "module": "core/mixins/disabled-mixin.js"
100920
+ "name": "SbbFormAssociatedMixin",
100921
+ "module": "core/mixins/form-associated-mixin.js"
100895
100922
  }
100896
100923
  },
100897
100924
  {
100898
- "name": "href",
100899
- "type": {
100900
- "text": "string"
100925
+ "kind": "method",
100926
+ "name": "shouldValidate",
100927
+ "privacy": "protected",
100928
+ "return": {
100929
+ "type": {
100930
+ "text": "boolean"
100931
+ }
100901
100932
  },
100902
- "default": "''",
100903
- "description": "The href value you want to link to.",
100904
- "fieldName": "href",
100933
+ "parameters": [
100934
+ {
100935
+ "name": "name",
100936
+ "type": {
100937
+ "text": "PropertyKey | undefined"
100938
+ }
100939
+ }
100940
+ ],
100941
+ "description": "Whether validation should be run on a property change with the given name.",
100905
100942
  "inheritedFrom": {
100906
- "name": "SbbLinkBaseElement",
100907
- "module": "core/base-elements/link-base-element.js"
100943
+ "name": "SbbFormAssociatedMixin",
100944
+ "module": "core/mixins/form-associated-mixin.js"
100908
100945
  }
100909
100946
  },
100910
100947
  {
100911
- "name": "target",
100912
- "type": {
100913
- "text": "LinkTargetType | string"
100948
+ "kind": "method",
100949
+ "name": "_setInternalValidity",
100950
+ "privacy": "private",
100951
+ "return": {
100952
+ "type": {
100953
+ "text": "void"
100954
+ }
100914
100955
  },
100915
- "default": "''",
100916
- "description": "Where to display the linked URL.",
100917
- "fieldName": "target",
100918
100956
  "inheritedFrom": {
100919
- "name": "SbbLinkBaseElement",
100920
- "module": "core/base-elements/link-base-element.js"
100957
+ "name": "SbbFormAssociatedMixin",
100958
+ "module": "core/mixins/form-associated-mixin.js"
100921
100959
  }
100922
100960
  },
100923
100961
  {
100924
- "name": "rel",
100962
+ "kind": "field",
100963
+ "name": "role",
100925
100964
  "type": {
100926
- "text": "string"
100965
+ "text": "ElementInternals['role']"
100927
100966
  },
100928
- "default": "''",
100929
- "description": "The relationship of the linked URL as space-separated link types.",
100930
- "fieldName": "rel",
100967
+ "privacy": "public",
100968
+ "static": true,
100969
+ "readonly": true,
100970
+ "default": "'button'",
100931
100971
  "inheritedFrom": {
100932
- "name": "SbbLinkBaseElement",
100933
- "module": "core/base-elements/link-base-element.js"
100972
+ "name": "SbbButtonLikeBaseElement",
100973
+ "module": "core/base-elements/button-base-element.js"
100934
100974
  }
100935
100975
  },
100936
100976
  {
100937
- "name": "download",
100938
- "type": {
100939
- "text": "boolean"
100940
- },
100941
- "default": "false",
100942
- "description": "Whether the browser will show the download dialog on click.",
100943
- "fieldName": "download",
100977
+ "kind": "field",
100978
+ "name": "_preventScrollOnSpaceKeydown",
100979
+ "privacy": "private",
100980
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
100981
+ "parameters": [
100982
+ {
100983
+ "description": "The origin event.",
100984
+ "name": "event"
100985
+ }
100986
+ ],
100944
100987
  "inheritedFrom": {
100945
- "name": "SbbLinkBaseElement",
100946
- "module": "core/base-elements/link-base-element.js"
100988
+ "name": "SbbButtonLikeBaseElement",
100989
+ "module": "core/base-elements/button-base-element.js"
100947
100990
  }
100948
100991
  },
100949
100992
  {
100950
- "name": "accessibility-label",
100951
- "type": {
100952
- "text": "string"
100953
- },
100954
- "default": "''",
100955
- "description": "This will be forwarded as aria-label to the inner anchor element.",
100956
- "fieldName": "accessibilityLabel",
100993
+ "kind": "field",
100994
+ "name": "_removeActiveMarker",
100995
+ "privacy": "private",
100957
100996
  "inheritedFrom": {
100958
- "name": "SbbLinkBaseElement",
100959
- "module": "core/base-elements/link-base-element.js"
100997
+ "name": "SbbButtonLikeBaseElement",
100998
+ "module": "core/base-elements/button-base-element.js"
100960
100999
  }
100961
101000
  },
100962
101001
  {
100963
- "name": "accessibility-current",
100964
- "type": {
100965
- "text": "string"
100966
- },
100967
- "default": "''",
100968
- "description": "This will be forwarded as aria-current to the inner anchor element.",
100969
- "fieldName": "accessibilityCurrent",
101002
+ "kind": "field",
101003
+ "name": "_dispatchClickEventOnSpaceKeyup",
101004
+ "privacy": "private",
101005
+ "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.",
101006
+ "parameters": [
101007
+ {
101008
+ "description": "The origin event.",
101009
+ "name": "event"
101010
+ }
101011
+ ],
100970
101012
  "inheritedFrom": {
100971
- "name": "SbbLinkBaseElement",
100972
- "module": "core/base-elements/link-base-element.js"
101013
+ "name": "SbbButtonLikeBaseElement",
101014
+ "module": "core/base-elements/button-base-element.js"
100973
101015
  }
100974
- }
100975
- ]
100976
- }
100977
- ],
100978
- "exports": [
100979
- {
100980
- "kind": "js",
100981
- "name": "SbbBlockLinkElement",
100982
- "declaration": {
100983
- "name": "SbbBlockLinkElement",
100984
- "module": "link/block-link/block-link.component.js"
100985
- }
100986
- }
100987
- ]
100988
- },
100989
- {
100990
- "kind": "javascript-module",
100991
- "path": "link/block-link-button/block-link-button.component.js",
100992
- "declarations": [
100993
- {
100994
- "kind": "class",
100995
- "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
100996
- "name": "SbbBlockLinkButtonElement",
100997
- "slots": [
100998
- {
100999
- "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
101000
- "name": ""
101001
101016
  },
101002
- {
101003
- "description": "Slot used to display the icon, if one is set.",
101004
- "name": "icon"
101005
- }
101006
- ],
101007
- "members": [
101008
101017
  {
101009
101018
  "kind": "field",
101010
- "name": "elementName",
101011
- "type": {
101012
- "text": "string"
101013
- },
101014
- "privacy": "public",
101015
- "static": true,
101016
- "readonly": true,
101019
+ "name": "_dispatchClickEvent",
101020
+ "privacy": "private",
101017
101021
  "inheritedFrom": {
101018
- "name": "SbbElement",
101019
- "module": "core/base-elements/element.js"
101020
- },
101021
- "default": "'sbb-block-link-button'"
101022
+ "name": "SbbButtonLikeBaseElement",
101023
+ "module": "core/base-elements/button-base-element.js"
101024
+ }
101022
101025
  },
101023
101026
  {
101024
101027
  "kind": "field",
101025
- "name": "styles",
101028
+ "name": "maybeDisabled",
101026
101029
  "type": {
101027
- "text": "CSSResultGroup"
101030
+ "text": "boolean | undefined"
101028
101031
  },
101029
- "privacy": "public",
101030
- "static": true,
101031
- "default": "[super.styles, unsafeCSS(blockStyle)]",
101032
+ "privacy": "protected",
101033
+ "readonly": true,
101032
101034
  "inheritedFrom": {
101033
- "name": "SbbLinkCommonElementMixin",
101034
- "module": "link/common/link-common.js"
101035
+ "name": "SbbActionBaseElement",
101036
+ "module": "core/base-elements/action-base-element.js"
101035
101037
  }
101036
101038
  },
101037
101039
  {
101038
101040
  "kind": "field",
101039
- "name": "iconPlacement",
101041
+ "name": "maybeDisabledInteractive",
101040
101042
  "type": {
101041
- "text": "SbbIconPlacement"
101043
+ "text": "boolean | undefined"
101042
101044
  },
101043
- "privacy": "public",
101044
- "default": "'start'",
101045
- "description": "Moves the icon to the end of the component if set to true.",
101046
- "attribute": "icon-placement",
101047
- "reflects": true,
101045
+ "privacy": "protected",
101046
+ "readonly": true,
101048
101047
  "inheritedFrom": {
101049
- "name": "SbbBlockLinkCommonElementMixin",
101050
- "module": "link/common/block-link-common.js"
101048
+ "name": "SbbActionBaseElement",
101049
+ "module": "core/base-elements/action-base-element.js"
101051
101050
  }
101052
101051
  },
101053
101052
  {
101054
101053
  "kind": "method",
101055
- "name": "renderTemplate",
101054
+ "name": "setupBaseEventHandlers",
101056
101055
  "privacy": "protected",
101057
101056
  "return": {
101058
101057
  "type": {
101059
- "text": "TemplateResult"
101058
+ "text": "void"
101060
101059
  }
101061
101060
  },
101062
- "description": "Override this method to render the component template.",
101063
101061
  "inheritedFrom": {
101064
101062
  "name": "SbbActionBaseElement",
101065
101063
  "module": "core/base-elements/action-base-element.js"
@@ -101067,621 +101065,608 @@
101067
101065
  },
101068
101066
  {
101069
101067
  "kind": "field",
101070
- "name": "size",
101068
+ "name": "_hydrationRequired",
101071
101069
  "type": {
101072
- "text": "SbbLinkSize"
101070
+ "text": "boolean"
101073
101071
  },
101074
- "privacy": "public",
101075
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
101076
- "default": "'s' / 'xs' (lean)",
101077
- "attribute": "size",
101078
- "reflects": true,
101072
+ "privacy": "private",
101073
+ "default": "!!this.shadowRoot",
101079
101074
  "inheritedFrom": {
101080
- "name": "SbbLinkCommonElementMixin",
101081
- "module": "link/common/link-common.js"
101075
+ "name": "SbbElement",
101076
+ "module": "core/base-elements/element.js"
101082
101077
  }
101083
101078
  },
101084
101079
  {
101085
101080
  "kind": "field",
101086
- "name": "iconName",
101081
+ "name": "_hydrationComplete",
101082
+ "privacy": "private",
101083
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
101084
+ "inheritedFrom": {
101085
+ "name": "SbbElement",
101086
+ "module": "core/base-elements/element.js"
101087
+ }
101088
+ },
101089
+ {
101090
+ "kind": "field",
101091
+ "name": "_resolveHydration",
101087
101092
  "type": {
101088
- "text": "string"
101093
+ "text": "(hydrationRequired: boolean) => void"
101089
101094
  },
101090
- "privacy": "public",
101091
- "default": "''",
101092
- "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.",
101093
- "attribute": "icon-name",
101095
+ "privacy": "private",
101094
101096
  "inheritedFrom": {
101095
- "name": "SbbIconNameMixin",
101096
- "module": "icon/icon-name-mixin.js"
101097
+ "name": "SbbElement",
101098
+ "module": "core/base-elements/element.js"
101097
101099
  }
101098
101100
  },
101101
+ {
101102
+ "kind": "field",
101103
+ "name": "hydrationRequired",
101104
+ "type": {
101105
+ "text": "boolean"
101106
+ },
101107
+ "privacy": "protected",
101108
+ "description": "Returns whether hydration is required and not completed.",
101109
+ "readonly": true,
101110
+ "inheritedFrom": {
101111
+ "name": "SbbElement",
101112
+ "module": "core/base-elements/element.js"
101113
+ },
101114
+ "default": "!!this.shadowRoot"
101115
+ },
101099
101116
  {
101100
101117
  "kind": "method",
101101
- "name": "renderIconSlot",
101118
+ "name": "toggleState",
101102
101119
  "privacy": "protected",
101103
101120
  "return": {
101104
101121
  "type": {
101105
- "text": "TemplateResult"
101122
+ "text": "void"
101106
101123
  }
101107
101124
  },
101108
101125
  "parameters": [
101109
101126
  {
101110
- "name": "classname",
101111
- "optional": true,
101127
+ "name": "value",
101112
101128
  "type": {
101113
101129
  "text": "string"
101114
101130
  }
101131
+ },
101132
+ {
101133
+ "name": "force",
101134
+ "optional": true,
101135
+ "type": {
101136
+ "text": "boolean"
101137
+ }
101115
101138
  }
101116
101139
  ],
101117
101140
  "inheritedFrom": {
101118
- "name": "SbbIconNameMixin",
101119
- "module": "icon/icon-name-mixin.js"
101141
+ "name": "SbbElement",
101142
+ "module": "core/base-elements/element.js"
101120
101143
  }
101121
101144
  },
101122
101145
  {
101123
- "kind": "method",
101124
- "name": "renderIconName",
101125
- "privacy": "protected",
101126
- "return": {
101127
- "type": {
101128
- "text": "string"
101129
- }
101146
+ "kind": "field",
101147
+ "name": "['_$sbbElement$']",
101148
+ "type": {
101149
+ "text": "boolean"
101130
101150
  },
101151
+ "privacy": "public",
101152
+ "static": true,
101153
+ "default": "true",
101131
101154
  "inheritedFrom": {
101132
- "name": "SbbIconNameMixin",
101133
- "module": "icon/icon-name-mixin.js"
101155
+ "name": "SbbElement",
101156
+ "module": "core/base-elements/element.js"
101134
101157
  }
101135
101158
  },
101136
101159
  {
101137
- "kind": "method",
101138
- "name": "_renderIconName",
101139
- "privacy": "private",
101140
- "return": {
101141
- "type": {
101142
- "text": "string"
101143
- }
101160
+ "kind": "field",
101161
+ "name": "_controllers",
101162
+ "type": {
101163
+ "text": "Set<SbbReactiveController> | undefined"
101144
101164
  },
101165
+ "privacy": "private",
101145
101166
  "inheritedFrom": {
101146
- "name": "SbbIconNameMixin",
101147
- "module": "icon/icon-name-mixin.js"
101167
+ "name": "SbbElement",
101168
+ "module": "core/base-elements/element.js"
101148
101169
  }
101170
+ }
101171
+ ],
101172
+ "mixins": [
101173
+ {
101174
+ "name": "SbbBlockLinkCommonElementMixin",
101175
+ "module": "link/common/block-link-common.js"
101149
101176
  },
101150
101177
  {
101151
- "kind": "field",
101152
- "name": "disabledInteractive",
101178
+ "name": "SbbDisabledTabIndexActionMixin",
101179
+ "module": "core/mixins.js"
101180
+ }
101181
+ ],
101182
+ "superclass": {
101183
+ "name": "SbbButtonBaseElement",
101184
+ "module": "core/base-elements.js"
101185
+ },
101186
+ "tagName": "sbb-block-link-button",
101187
+ "customElement": true,
101188
+ "attributes": [
101189
+ {
101190
+ "name": "icon-placement",
101153
101191
  "type": {
101154
- "text": "boolean"
101192
+ "text": "SbbIconPlacement"
101155
101193
  },
101156
- "privacy": "public",
101157
- "default": "false",
101158
- "description": "Whether the button should be aria-disabled but stay interactive.",
101159
- "attribute": "disabled-interactive",
101160
- "reflects": true,
101194
+ "default": "'start'",
101195
+ "description": "Moves the icon to the end of the component if set to true.",
101196
+ "fieldName": "iconPlacement",
101161
101197
  "inheritedFrom": {
101162
- "name": "SbbDisabledInteractiveMixin",
101163
- "module": "core/mixins/disabled-mixin.js"
101198
+ "name": "SbbBlockLinkCommonElementMixin",
101199
+ "module": "link/common/block-link-common.js"
101164
101200
  }
101165
101201
  },
101166
101202
  {
101167
- "kind": "field",
101168
- "name": "disabled",
101169
- "privacy": "public",
101170
- "description": "Whether the component is disabled.",
101171
- "default": "false",
101203
+ "name": "size",
101172
101204
  "type": {
101173
- "text": "boolean"
101205
+ "text": "SbbLinkSize"
101174
101206
  },
101175
- "attribute": "disabled",
101176
- "reflects": true,
101207
+ "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
101208
+ "default": "'s' / 'xs' (lean)",
101209
+ "fieldName": "size",
101177
101210
  "inheritedFrom": {
101178
- "name": "SbbDisabledMixin",
101179
- "module": "core/mixins/disabled-mixin.js"
101211
+ "name": "SbbLinkCommonElementMixin",
101212
+ "module": "link/common/link-common.js"
101180
101213
  }
101181
101214
  },
101182
101215
  {
101183
- "kind": "field",
101184
- "name": "#disabled",
101185
- "privacy": "private",
101216
+ "name": "icon-name",
101186
101217
  "type": {
101187
- "text": "boolean"
101218
+ "text": "string"
101188
101219
  },
101189
- "default": "false",
101220
+ "default": "''",
101221
+ "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.",
101222
+ "fieldName": "iconName",
101190
101223
  "inheritedFrom": {
101191
- "name": "SbbDisabledMixin",
101192
- "module": "core/mixins/disabled-mixin.js"
101224
+ "name": "SbbIconNameMixin",
101225
+ "module": "icon/icon-name-mixin.js"
101193
101226
  }
101194
101227
  },
101195
101228
  {
101196
- "kind": "method",
101197
- "name": "isDisabledExternally",
101198
- "privacy": "protected",
101199
- "return": {
101200
- "type": {
101201
- "text": "boolean"
101202
- }
101229
+ "name": "disabled-interactive",
101230
+ "type": {
101231
+ "text": "boolean"
101203
101232
  },
101204
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
101233
+ "default": "false",
101234
+ "description": "Whether the button should be aria-disabled but stay interactive.",
101235
+ "fieldName": "disabledInteractive",
101205
101236
  "inheritedFrom": {
101206
- "name": "SbbDisabledMixin",
101237
+ "name": "SbbDisabledInteractiveMixin",
101207
101238
  "module": "core/mixins/disabled-mixin.js"
101208
101239
  }
101209
101240
  },
101210
101241
  {
101211
- "kind": "field",
101212
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
101242
+ "name": "disabled",
101243
+ "description": "Whether the component is disabled.",
101244
+ "default": "false",
101213
101245
  "type": {
101214
- "text": "array"
101246
+ "text": "boolean"
101215
101247
  },
101216
- "privacy": "private",
101217
- "readonly": true,
101218
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
101248
+ "fieldName": "disabled",
101219
101249
  "inheritedFrom": {
101220
- "name": "SbbButtonBaseElement",
101221
- "module": "core/base-elements/button-base-element.js"
101250
+ "name": "SbbDisabledMixin",
101251
+ "module": "core/mixins/disabled-mixin.js"
101222
101252
  }
101223
101253
  },
101224
101254
  {
101225
- "kind": "field",
101226
101255
  "name": "value",
101227
101256
  "type": {
101228
101257
  "text": "string"
101229
101258
  },
101230
- "privacy": "public",
101259
+ "default": "''",
101260
+ "description": "Value of the form element.",
101261
+ "fieldName": "value",
101231
101262
  "inheritedFrom": {
101232
101263
  "name": "SbbButtonBaseElement",
101233
101264
  "module": "core/base-elements/button-base-element.js"
101234
- },
101235
- "default": "''",
101236
- "description": "Value of the form element.",
101237
- "attribute": "value"
101265
+ }
101238
101266
  },
101239
101267
  {
101240
- "kind": "field",
101241
101268
  "name": "type",
101242
- "privacy": "public",
101243
101269
  "description": "The type attribute to use for the button.",
101244
101270
  "default": "'button'",
101245
101271
  "type": {
101246
101272
  "text": "SbbButtonType"
101247
101273
  },
101248
- "attribute": "type",
101274
+ "fieldName": "type",
101249
101275
  "inheritedFrom": {
101250
101276
  "name": "SbbButtonBaseElement",
101251
101277
  "module": "core/base-elements/button-base-element.js"
101252
101278
  }
101253
101279
  },
101254
101280
  {
101255
- "kind": "field",
101256
101281
  "name": "form",
101282
+ "description": "The `<form>` element to associate the button with.",
101257
101283
  "type": {
101258
101284
  "text": "HTMLFormElement | null"
101259
101285
  },
101260
- "privacy": "public",
101261
- "description": "The `<form>` element to associate the button with.",
101286
+ "fieldName": "form",
101262
101287
  "inheritedFrom": {
101263
101288
  "name": "SbbButtonBaseElement",
101264
101289
  "module": "core/base-elements/button-base-element.js"
101265
- },
101266
- "attribute": "form"
101290
+ }
101267
101291
  },
101268
101292
  {
101269
- "kind": "field",
101270
- "name": "_formId",
101293
+ "name": "name",
101294
+ "description": "Name of the form element. Will be read from name attribute.",
101271
101295
  "type": {
101272
101296
  "text": "string"
101273
101297
  },
101274
- "privacy": "private",
101275
- "default": "''",
101276
- "inheritedFrom": {
101277
- "name": "SbbButtonBaseElement",
101278
- "module": "core/base-elements/button-base-element.js"
101279
- }
101280
- },
101281
- {
101282
- "kind": "field",
101283
- "name": "_handleButtonClick",
101284
- "privacy": "private",
101298
+ "fieldName": "name",
101285
101299
  "inheritedFrom": {
101286
- "name": "SbbButtonBaseElement",
101287
- "module": "core/base-elements/button-base-element.js"
101300
+ "name": "SbbFormAssociatedMixin",
101301
+ "module": "core/mixins/form-associated-mixin.js"
101288
101302
  }
101289
- },
101303
+ }
101304
+ ]
101305
+ }
101306
+ ],
101307
+ "exports": [
101308
+ {
101309
+ "kind": "js",
101310
+ "name": "SbbBlockLinkButtonElement",
101311
+ "declaration": {
101312
+ "name": "SbbBlockLinkButtonElement",
101313
+ "module": "link/block-link-button/block-link-button.component.js"
101314
+ }
101315
+ }
101316
+ ]
101317
+ },
101318
+ {
101319
+ "kind": "javascript-module",
101320
+ "path": "link/block-link/block-link.component.js",
101321
+ "declarations": [
101322
+ {
101323
+ "kind": "class",
101324
+ "description": "It displays a link enhanced with the SBB Design.",
101325
+ "name": "SbbBlockLinkElement",
101326
+ "slots": [
101290
101327
  {
101291
- "kind": "method",
101292
- "name": "_requestSubmit",
101293
- "privacy": "private",
101294
- "return": {
101295
- "type": {
101296
- "text": "void"
101297
- }
101298
- },
101299
- "parameters": [
101300
- {
101301
- "name": "form",
101302
- "type": {
101303
- "text": "HTMLFormElement"
101304
- }
101305
- }
101306
- ],
101307
- "inheritedFrom": {
101308
- "name": "SbbButtonBaseElement",
101309
- "module": "core/base-elements/button-base-element.js"
101310
- }
101328
+ "description": "Use the unnamed slot to add content to the `sbb-block-link`.",
101329
+ "name": ""
101311
101330
  },
101312
101331
  {
101313
- "kind": "field",
101314
- "name": "_formKeyDown",
101315
- "privacy": "private",
101316
- "inheritedFrom": {
101317
- "name": "SbbButtonBaseElement",
101318
- "module": "core/base-elements/button-base-element.js"
101319
- }
101320
- },
101332
+ "description": "Slot used to display the icon, if one is set.",
101333
+ "name": "icon"
101334
+ }
101335
+ ],
101336
+ "members": [
101321
101337
  {
101322
101338
  "kind": "field",
101323
- "name": "formAssociated",
101339
+ "name": "elementName",
101324
101340
  "type": {
101325
- "text": "boolean"
101341
+ "text": "string"
101326
101342
  },
101327
101343
  "privacy": "public",
101328
101344
  "static": true,
101329
- "default": "true",
101345
+ "readonly": true,
101330
101346
  "inheritedFrom": {
101331
- "name": "SbbFormAssociatedMixin",
101332
- "module": "core/mixins/form-associated-mixin.js"
101333
- }
101347
+ "name": "SbbElement",
101348
+ "module": "core/base-elements/element.js"
101349
+ },
101350
+ "default": "'sbb-block-link'"
101334
101351
  },
101335
101352
  {
101336
101353
  "kind": "field",
101337
- "name": "name",
101338
- "privacy": "public",
101339
- "description": "Name of the form element. Will be read from name attribute.",
101354
+ "name": "styles",
101340
101355
  "type": {
101341
- "text": "string"
101356
+ "text": "CSSResultGroup"
101342
101357
  },
101343
- "attribute": "name",
101358
+ "privacy": "public",
101359
+ "static": true,
101360
+ "default": "[super.styles, unsafeCSS(blockStyle)]",
101344
101361
  "inheritedFrom": {
101345
- "name": "SbbFormAssociatedMixin",
101346
- "module": "core/mixins/form-associated-mixin.js"
101362
+ "name": "SbbLinkCommonElementMixin",
101363
+ "module": "link/common/link-common.js"
101347
101364
  }
101348
101365
  },
101349
101366
  {
101350
101367
  "kind": "field",
101351
- "name": "validity",
101368
+ "name": "iconPlacement",
101352
101369
  "type": {
101353
- "text": "ValidityState"
101370
+ "text": "SbbIconPlacement"
101354
101371
  },
101355
101372
  "privacy": "public",
101356
- "description": "Returns the ValidityState object for this element.",
101357
- "readonly": true,
101373
+ "default": "'start'",
101374
+ "description": "Moves the icon to the end of the component if set to true.",
101375
+ "attribute": "icon-placement",
101376
+ "reflects": true,
101358
101377
  "inheritedFrom": {
101359
- "name": "SbbFormAssociatedMixin",
101360
- "module": "core/mixins/form-associated-mixin.js"
101378
+ "name": "SbbBlockLinkCommonElementMixin",
101379
+ "module": "link/common/block-link-common.js"
101361
101380
  }
101362
101381
  },
101363
101382
  {
101364
- "kind": "field",
101365
- "name": "validationMessage",
101366
- "type": {
101367
- "text": "string"
101383
+ "kind": "method",
101384
+ "name": "renderTemplate",
101385
+ "privacy": "protected",
101386
+ "return": {
101387
+ "type": {
101388
+ "text": "TemplateResult"
101389
+ }
101368
101390
  },
101369
- "privacy": "public",
101370
- "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.",
101371
- "readonly": true,
101391
+ "description": "Override this method to render the component template.",
101372
101392
  "inheritedFrom": {
101373
- "name": "SbbFormAssociatedMixin",
101374
- "module": "core/mixins/form-associated-mixin.js"
101393
+ "name": "SbbActionBaseElement",
101394
+ "module": "core/base-elements/action-base-element.js"
101375
101395
  }
101376
101396
  },
101377
101397
  {
101378
101398
  "kind": "field",
101379
- "name": "willValidate",
101399
+ "name": "size",
101380
101400
  "type": {
101381
- "text": "boolean"
101401
+ "text": "SbbLinkSize"
101382
101402
  },
101383
101403
  "privacy": "public",
101384
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
101385
- "readonly": true,
101386
- "inheritedFrom": {
101387
- "name": "SbbFormAssociatedMixin",
101388
- "module": "core/mixins/form-associated-mixin.js"
101389
- }
101390
- },
101391
- {
101392
- "kind": "field",
101393
- "name": "_validityStates",
101394
- "privacy": "private",
101395
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
101404
+ "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
101405
+ "default": "'s' / 'xs' (lean)",
101406
+ "attribute": "size",
101407
+ "reflects": true,
101396
101408
  "inheritedFrom": {
101397
- "name": "SbbFormAssociatedMixin",
101398
- "module": "core/mixins/form-associated-mixin.js"
101409
+ "name": "SbbLinkCommonElementMixin",
101410
+ "module": "link/common/link-common.js"
101399
101411
  }
101400
101412
  },
101401
101413
  {
101402
101414
  "kind": "field",
101403
- "name": "formDisabled",
101415
+ "name": "iconName",
101404
101416
  "type": {
101405
- "text": "boolean"
101417
+ "text": "string"
101406
101418
  },
101407
- "privacy": "protected",
101408
- "default": "false",
101409
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
101419
+ "privacy": "public",
101420
+ "default": "''",
101421
+ "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.",
101422
+ "attribute": "icon-name",
101410
101423
  "inheritedFrom": {
101411
- "name": "SbbFormAssociatedMixin",
101412
- "module": "core/mixins/form-associated-mixin.js"
101424
+ "name": "SbbIconNameMixin",
101425
+ "module": "icon/icon-name-mixin.js"
101413
101426
  }
101414
101427
  },
101415
101428
  {
101416
101429
  "kind": "method",
101417
- "name": "checkValidity",
101418
- "privacy": "public",
101430
+ "name": "renderIconSlot",
101431
+ "privacy": "protected",
101419
101432
  "return": {
101420
101433
  "type": {
101421
- "text": "boolean"
101434
+ "text": "TemplateResult"
101422
101435
  }
101423
101436
  },
101424
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
101437
+ "parameters": [
101438
+ {
101439
+ "name": "classname",
101440
+ "optional": true,
101441
+ "type": {
101442
+ "text": "string"
101443
+ }
101444
+ }
101445
+ ],
101425
101446
  "inheritedFrom": {
101426
- "name": "SbbFormAssociatedMixin",
101427
- "module": "core/mixins/form-associated-mixin.js"
101447
+ "name": "SbbIconNameMixin",
101448
+ "module": "icon/icon-name-mixin.js"
101428
101449
  }
101429
101450
  },
101430
101451
  {
101431
101452
  "kind": "method",
101432
- "name": "reportValidity",
101433
- "privacy": "public",
101453
+ "name": "renderIconName",
101454
+ "privacy": "protected",
101434
101455
  "return": {
101435
101456
  "type": {
101436
- "text": "boolean"
101457
+ "text": "string"
101437
101458
  }
101438
101459
  },
101439
- "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.",
101440
101460
  "inheritedFrom": {
101441
- "name": "SbbFormAssociatedMixin",
101442
- "module": "core/mixins/form-associated-mixin.js"
101461
+ "name": "SbbIconNameMixin",
101462
+ "module": "icon/icon-name-mixin.js"
101443
101463
  }
101444
101464
  },
101445
101465
  {
101446
101466
  "kind": "method",
101447
- "name": "setCustomValidity",
101448
- "privacy": "public",
101467
+ "name": "_renderIconName",
101468
+ "privacy": "private",
101449
101469
  "return": {
101450
101470
  "type": {
101451
- "text": "void"
101471
+ "text": "string"
101452
101472
  }
101453
101473
  },
101454
- "parameters": [
101455
- {
101456
- "name": "message",
101457
- "type": {
101458
- "text": "string"
101459
- }
101460
- }
101461
- ],
101462
- "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.",
101463
101474
  "inheritedFrom": {
101464
- "name": "SbbFormAssociatedMixin",
101465
- "module": "core/mixins/form-associated-mixin.js"
101475
+ "name": "SbbIconNameMixin",
101476
+ "module": "icon/icon-name-mixin.js"
101466
101477
  }
101467
101478
  },
101468
101479
  {
101469
- "kind": "method",
101470
- "name": "_hasDisabledAncestor",
101471
- "privacy": "private",
101472
- "return": {
101473
- "type": {
101474
- "text": "boolean"
101475
- }
101480
+ "kind": "field",
101481
+ "name": "disabled",
101482
+ "privacy": "public",
101483
+ "description": "Whether the component is disabled.",
101484
+ "default": "false",
101485
+ "type": {
101486
+ "text": "boolean"
101476
101487
  },
101488
+ "attribute": "disabled",
101489
+ "reflects": true,
101477
101490
  "inheritedFrom": {
101478
- "name": "SbbFormAssociatedMixin",
101479
- "module": "core/mixins/form-associated-mixin.js"
101491
+ "name": "SbbDisabledMixin",
101492
+ "module": "core/mixins/disabled-mixin.js"
101480
101493
  }
101481
101494
  },
101482
101495
  {
101483
- "kind": "method",
101484
- "name": "updateFormValue",
101485
- "privacy": "protected",
101486
- "return": {
101487
- "type": {
101488
- "text": "void"
101489
- }
101496
+ "kind": "field",
101497
+ "name": "#disabled",
101498
+ "privacy": "private",
101499
+ "type": {
101500
+ "text": "boolean"
101490
101501
  },
101491
- "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",
101502
+ "default": "false",
101492
101503
  "inheritedFrom": {
101493
- "name": "SbbFormAssociatedMixin",
101494
- "module": "core/mixins/form-associated-mixin.js"
101504
+ "name": "SbbDisabledMixin",
101505
+ "module": "core/mixins/disabled-mixin.js"
101495
101506
  }
101496
101507
  },
101497
101508
  {
101498
101509
  "kind": "method",
101499
- "name": "formState",
101510
+ "name": "isDisabledExternally",
101500
101511
  "privacy": "protected",
101501
101512
  "return": {
101502
101513
  "type": {
101503
- "text": "FormRestoreState"
101514
+ "text": "boolean"
101504
101515
  }
101505
101516
  },
101517
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
101506
101518
  "inheritedFrom": {
101507
- "name": "SbbFormAssociatedMixin",
101508
- "module": "core/mixins/form-associated-mixin.js"
101519
+ "name": "SbbDisabledMixin",
101520
+ "module": "core/mixins/disabled-mixin.js"
101509
101521
  }
101510
101522
  },
101511
101523
  {
101512
- "kind": "method",
101513
- "name": "setValidityFlag",
101514
- "privacy": "protected",
101515
- "return": {
101516
- "type": {
101517
- "text": "void"
101518
- }
101524
+ "kind": "field",
101525
+ "name": "href",
101526
+ "type": {
101527
+ "text": "string"
101519
101528
  },
101520
- "parameters": [
101521
- {
101522
- "name": "flag",
101523
- "type": {
101524
- "text": "T"
101525
- }
101526
- },
101527
- {
101528
- "name": "message",
101529
- "type": {
101530
- "text": "string"
101531
- }
101532
- },
101533
- {
101534
- "name": "flagValue",
101535
- "optional": true,
101536
- "type": {
101537
- "text": "ValidityStateFlags[T]"
101538
- }
101539
- }
101540
- ],
101541
- "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).",
101529
+ "privacy": "public",
101530
+ "default": "''",
101531
+ "description": "The href value you want to link to.",
101532
+ "attribute": "href",
101533
+ "reflects": true,
101542
101534
  "inheritedFrom": {
101543
- "name": "SbbFormAssociatedMixin",
101544
- "module": "core/mixins/form-associated-mixin.js"
101535
+ "name": "SbbLinkBaseElement",
101536
+ "module": "core/base-elements/link-base-element.js"
101545
101537
  }
101546
101538
  },
101547
101539
  {
101548
- "kind": "method",
101549
- "name": "removeValidityFlag",
101550
- "privacy": "protected",
101551
- "return": {
101552
- "type": {
101553
- "text": "void"
101554
- }
101555
- },
101556
- "parameters": [
101557
- {
101558
- "name": "flag",
101559
- "type": {
101560
- "text": "T"
101561
- }
101562
- }
101563
- ],
101564
- "description": "Removes the validity state flag entry and updates validity state.",
101540
+ "kind": "field",
101541
+ "name": "target",
101542
+ "type": {
101543
+ "text": "LinkTargetType | string"
101544
+ },
101545
+ "privacy": "public",
101546
+ "default": "''",
101547
+ "description": "Where to display the linked URL.",
101548
+ "attribute": "target",
101549
+ "reflects": true,
101565
101550
  "inheritedFrom": {
101566
- "name": "SbbFormAssociatedMixin",
101567
- "module": "core/mixins/form-associated-mixin.js"
101551
+ "name": "SbbLinkBaseElement",
101552
+ "module": "core/base-elements/link-base-element.js"
101568
101553
  }
101569
101554
  },
101570
101555
  {
101571
- "kind": "method",
101572
- "name": "validate",
101573
- "privacy": "protected",
101574
- "return": {
101575
- "type": {
101576
- "text": "void"
101577
- }
101556
+ "kind": "field",
101557
+ "name": "rel",
101558
+ "type": {
101559
+ "text": "string"
101578
101560
  },
101579
- "description": "To be called whenever the current element needs to be validated.",
101561
+ "privacy": "public",
101562
+ "default": "''",
101563
+ "description": "The relationship of the linked URL as space-separated link types.",
101564
+ "attribute": "rel",
101565
+ "reflects": true,
101580
101566
  "inheritedFrom": {
101581
- "name": "SbbFormAssociatedMixin",
101582
- "module": "core/mixins/form-associated-mixin.js"
101567
+ "name": "SbbLinkBaseElement",
101568
+ "module": "core/base-elements/link-base-element.js"
101583
101569
  }
101584
101570
  },
101585
101571
  {
101586
- "kind": "method",
101587
- "name": "shouldValidate",
101588
- "privacy": "protected",
101589
- "return": {
101590
- "type": {
101591
- "text": "boolean"
101592
- }
101572
+ "kind": "field",
101573
+ "name": "download",
101574
+ "type": {
101575
+ "text": "boolean"
101593
101576
  },
101594
- "parameters": [
101595
- {
101596
- "name": "name",
101597
- "type": {
101598
- "text": "PropertyKey | undefined"
101599
- }
101600
- }
101601
- ],
101602
- "description": "Whether validation should be run on a property change with the given name.",
101577
+ "privacy": "public",
101578
+ "default": "false",
101579
+ "description": "Whether the browser will show the download dialog on click.",
101580
+ "attribute": "download",
101581
+ "reflects": true,
101603
101582
  "inheritedFrom": {
101604
- "name": "SbbFormAssociatedMixin",
101605
- "module": "core/mixins/form-associated-mixin.js"
101583
+ "name": "SbbLinkBaseElement",
101584
+ "module": "core/base-elements/link-base-element.js"
101606
101585
  }
101607
101586
  },
101608
101587
  {
101609
- "kind": "method",
101610
- "name": "_setInternalValidity",
101611
- "privacy": "private",
101612
- "return": {
101613
- "type": {
101614
- "text": "void"
101615
- }
101588
+ "kind": "field",
101589
+ "name": "accessibilityLabel",
101590
+ "type": {
101591
+ "text": "string"
101616
101592
  },
101593
+ "privacy": "public",
101594
+ "default": "''",
101595
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
101596
+ "attribute": "accessibility-label",
101617
101597
  "inheritedFrom": {
101618
- "name": "SbbFormAssociatedMixin",
101619
- "module": "core/mixins/form-associated-mixin.js"
101598
+ "name": "SbbLinkBaseElement",
101599
+ "module": "core/base-elements/link-base-element.js"
101620
101600
  }
101621
101601
  },
101622
101602
  {
101623
101603
  "kind": "field",
101624
- "name": "role",
101604
+ "name": "accessibilityCurrent",
101625
101605
  "type": {
101626
- "text": "ElementInternals['role']"
101606
+ "text": "string"
101627
101607
  },
101628
101608
  "privacy": "public",
101629
- "static": true,
101630
- "readonly": true,
101631
- "default": "'button'",
101609
+ "default": "''",
101610
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
101611
+ "attribute": "accessibility-current",
101632
101612
  "inheritedFrom": {
101633
- "name": "SbbButtonLikeBaseElement",
101634
- "module": "core/base-elements/button-base-element.js"
101613
+ "name": "SbbLinkBaseElement",
101614
+ "module": "core/base-elements/link-base-element.js"
101635
101615
  }
101636
101616
  },
101637
101617
  {
101638
101618
  "kind": "field",
101639
- "name": "_preventScrollOnSpaceKeydown",
101640
- "privacy": "private",
101641
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
101642
- "parameters": [
101643
- {
101644
- "description": "The origin event.",
101645
- "name": "event"
101646
- }
101647
- ],
101619
+ "name": "language",
101620
+ "privacy": "protected",
101621
+ "default": "new SbbLanguageController(this)",
101648
101622
  "inheritedFrom": {
101649
- "name": "SbbButtonLikeBaseElement",
101650
- "module": "core/base-elements/button-base-element.js"
101623
+ "name": "SbbLinkBaseElement",
101624
+ "module": "core/base-elements/link-base-element.js"
101651
101625
  }
101652
101626
  },
101653
101627
  {
101654
101628
  "kind": "field",
101655
- "name": "_removeActiveMarker",
101656
- "privacy": "private",
101629
+ "name": "anchorRole",
101630
+ "type": {
101631
+ "text": "string | null"
101632
+ },
101633
+ "privacy": "protected",
101634
+ "readonly": true,
101635
+ "default": "null",
101657
101636
  "inheritedFrom": {
101658
- "name": "SbbButtonLikeBaseElement",
101659
- "module": "core/base-elements/button-base-element.js"
101637
+ "name": "SbbLinkBaseElement",
101638
+ "module": "core/base-elements/link-base-element.js"
101660
101639
  }
101661
101640
  },
101662
101641
  {
101663
101642
  "kind": "field",
101664
- "name": "_dispatchClickEventOnSpaceKeyup",
101643
+ "name": "_evaluateRelAttribute",
101665
101644
  "privacy": "private",
101666
- "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.",
101667
- "parameters": [
101668
- {
101669
- "description": "The origin event.",
101670
- "name": "event"
101671
- }
101672
- ],
101673
101645
  "inheritedFrom": {
101674
- "name": "SbbButtonLikeBaseElement",
101675
- "module": "core/base-elements/button-base-element.js"
101646
+ "name": "SbbLinkBaseElement",
101647
+ "module": "core/base-elements/link-base-element.js"
101676
101648
  }
101677
101649
  },
101678
101650
  {
101679
- "kind": "field",
101680
- "name": "_dispatchClickEvent",
101681
- "privacy": "private",
101651
+ "kind": "method",
101652
+ "name": "renderLink",
101653
+ "privacy": "protected",
101654
+ "return": {
101655
+ "type": {
101656
+ "text": "TemplateResult"
101657
+ }
101658
+ },
101659
+ "parameters": [
101660
+ {
101661
+ "name": "renderContent",
101662
+ "type": {
101663
+ "text": "TemplateResult"
101664
+ }
101665
+ }
101666
+ ],
101682
101667
  "inheritedFrom": {
101683
- "name": "SbbButtonLikeBaseElement",
101684
- "module": "core/base-elements/button-base-element.js"
101668
+ "name": "SbbLinkBaseElement",
101669
+ "module": "core/base-elements/link-base-element.js"
101685
101670
  }
101686
101671
  },
101687
101672
  {
@@ -101836,15 +101821,15 @@
101836
101821
  "module": "link/common/block-link-common.js"
101837
101822
  },
101838
101823
  {
101839
- "name": "SbbDisabledTabIndexActionMixin",
101824
+ "name": "SbbDisabledMixin",
101840
101825
  "module": "core/mixins.js"
101841
101826
  }
101842
101827
  ],
101843
101828
  "superclass": {
101844
- "name": "SbbButtonBaseElement",
101829
+ "name": "SbbLinkBaseElement",
101845
101830
  "module": "core/base-elements.js"
101846
101831
  },
101847
- "tagName": "sbb-block-link-button",
101832
+ "tagName": "sbb-block-link",
101848
101833
  "customElement": true,
101849
101834
  "attributes": [
101850
101835
  {
@@ -101887,79 +101872,94 @@
101887
101872
  }
101888
101873
  },
101889
101874
  {
101890
- "name": "disabled-interactive",
101875
+ "name": "disabled",
101876
+ "description": "Whether the component is disabled.",
101877
+ "default": "false",
101891
101878
  "type": {
101892
101879
  "text": "boolean"
101893
101880
  },
101894
- "default": "false",
101895
- "description": "Whether the button should be aria-disabled but stay interactive.",
101896
- "fieldName": "disabledInteractive",
101881
+ "fieldName": "disabled",
101897
101882
  "inheritedFrom": {
101898
- "name": "SbbDisabledInteractiveMixin",
101883
+ "name": "SbbDisabledMixin",
101899
101884
  "module": "core/mixins/disabled-mixin.js"
101900
101885
  }
101901
101886
  },
101902
101887
  {
101903
- "name": "disabled",
101904
- "description": "Whether the component is disabled.",
101905
- "default": "false",
101888
+ "name": "href",
101906
101889
  "type": {
101907
- "text": "boolean"
101890
+ "text": "string"
101908
101891
  },
101909
- "fieldName": "disabled",
101892
+ "default": "''",
101893
+ "description": "The href value you want to link to.",
101894
+ "fieldName": "href",
101910
101895
  "inheritedFrom": {
101911
- "name": "SbbDisabledMixin",
101912
- "module": "core/mixins/disabled-mixin.js"
101896
+ "name": "SbbLinkBaseElement",
101897
+ "module": "core/base-elements/link-base-element.js"
101913
101898
  }
101914
101899
  },
101915
101900
  {
101916
- "name": "value",
101901
+ "name": "target",
101902
+ "type": {
101903
+ "text": "LinkTargetType | string"
101904
+ },
101905
+ "default": "''",
101906
+ "description": "Where to display the linked URL.",
101907
+ "fieldName": "target",
101908
+ "inheritedFrom": {
101909
+ "name": "SbbLinkBaseElement",
101910
+ "module": "core/base-elements/link-base-element.js"
101911
+ }
101912
+ },
101913
+ {
101914
+ "name": "rel",
101917
101915
  "type": {
101918
101916
  "text": "string"
101919
101917
  },
101920
101918
  "default": "''",
101921
- "description": "Value of the form element.",
101922
- "fieldName": "value",
101919
+ "description": "The relationship of the linked URL as space-separated link types.",
101920
+ "fieldName": "rel",
101923
101921
  "inheritedFrom": {
101924
- "name": "SbbButtonBaseElement",
101925
- "module": "core/base-elements/button-base-element.js"
101922
+ "name": "SbbLinkBaseElement",
101923
+ "module": "core/base-elements/link-base-element.js"
101926
101924
  }
101927
101925
  },
101928
101926
  {
101929
- "name": "type",
101930
- "description": "The type attribute to use for the button.",
101931
- "default": "'button'",
101927
+ "name": "download",
101932
101928
  "type": {
101933
- "text": "SbbButtonType"
101929
+ "text": "boolean"
101934
101930
  },
101935
- "fieldName": "type",
101931
+ "default": "false",
101932
+ "description": "Whether the browser will show the download dialog on click.",
101933
+ "fieldName": "download",
101936
101934
  "inheritedFrom": {
101937
- "name": "SbbButtonBaseElement",
101938
- "module": "core/base-elements/button-base-element.js"
101935
+ "name": "SbbLinkBaseElement",
101936
+ "module": "core/base-elements/link-base-element.js"
101939
101937
  }
101940
101938
  },
101941
101939
  {
101942
- "name": "form",
101943
- "description": "The `<form>` element to associate the button with.",
101940
+ "name": "accessibility-label",
101944
101941
  "type": {
101945
- "text": "HTMLFormElement | null"
101942
+ "text": "string"
101946
101943
  },
101947
- "fieldName": "form",
101944
+ "default": "''",
101945
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
101946
+ "fieldName": "accessibilityLabel",
101948
101947
  "inheritedFrom": {
101949
- "name": "SbbButtonBaseElement",
101950
- "module": "core/base-elements/button-base-element.js"
101948
+ "name": "SbbLinkBaseElement",
101949
+ "module": "core/base-elements/link-base-element.js"
101951
101950
  }
101952
101951
  },
101953
101952
  {
101954
- "name": "name",
101955
- "description": "Name of the form element. Will be read from name attribute.",
101953
+ "name": "accessibility-current",
101956
101954
  "type": {
101957
101955
  "text": "string"
101958
101956
  },
101959
- "fieldName": "name",
101957
+ "default": "''",
101958
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
101959
+ "fieldName": "accessibilityCurrent",
101960
101960
  "inheritedFrom": {
101961
- "name": "SbbFormAssociatedMixin",
101962
- "module": "core/mixins/form-associated-mixin.js"
101961
+ "name": "SbbLinkBaseElement",
101962
+ "module": "core/base-elements/link-base-element.js"
101963
101963
  }
101964
101964
  }
101965
101965
  ]
@@ -101968,10 +101968,10 @@
101968
101968
  "exports": [
101969
101969
  {
101970
101970
  "kind": "js",
101971
- "name": "SbbBlockLinkButtonElement",
101971
+ "name": "SbbBlockLinkElement",
101972
101972
  "declaration": {
101973
- "name": "SbbBlockLinkButtonElement",
101974
- "module": "link/block-link-button/block-link-button.component.js"
101973
+ "name": "SbbBlockLinkElement",
101974
+ "module": "link/block-link/block-link.component.js"
101975
101975
  }
101976
101976
  }
101977
101977
  ]
@@ -128142,12 +128142,12 @@
128142
128142
  },
128143
128143
  {
128144
128144
  "kind": "javascript-module",
128145
- "path": "teaser-product/teaser-product-static/teaser-product-static.component.js",
128145
+ "path": "teaser-product/teaser-product/teaser-product.component.js",
128146
128146
  "declarations": [
128147
128147
  {
128148
128148
  "kind": "class",
128149
- "description": "Displays a text and a footnote, combined with an image, to tease a product.",
128150
- "name": "SbbTeaserProductStaticElement",
128149
+ "description": "Displays a text and a footnote, combined with an image, to tease a product",
128150
+ "name": "SbbTeaserProductElement",
128151
128151
  "cssProperties": [
128152
128152
  {
128153
128153
  "description": "At which percentage the background should start getting transparent.",
@@ -128188,7 +128188,7 @@
128188
128188
  "name": "SbbElement",
128189
128189
  "module": "core/base-elements/element.js"
128190
128190
  },
128191
- "default": "'sbb-teaser-product-static'"
128191
+ "default": "'sbb-teaser-product'"
128192
128192
  },
128193
128193
  {
128194
128194
  "kind": "field",
@@ -128237,6 +128237,155 @@
128237
128237
  "module": "core/mixins/negative-mixin.js"
128238
128238
  }
128239
128239
  },
128240
+ {
128241
+ "kind": "field",
128242
+ "name": "href",
128243
+ "type": {
128244
+ "text": "string"
128245
+ },
128246
+ "privacy": "public",
128247
+ "default": "''",
128248
+ "description": "The href value you want to link to.",
128249
+ "attribute": "href",
128250
+ "reflects": true,
128251
+ "inheritedFrom": {
128252
+ "name": "SbbLinkBaseElement",
128253
+ "module": "core/base-elements/link-base-element.js"
128254
+ }
128255
+ },
128256
+ {
128257
+ "kind": "field",
128258
+ "name": "target",
128259
+ "type": {
128260
+ "text": "LinkTargetType | string"
128261
+ },
128262
+ "privacy": "public",
128263
+ "default": "''",
128264
+ "description": "Where to display the linked URL.",
128265
+ "attribute": "target",
128266
+ "reflects": true,
128267
+ "inheritedFrom": {
128268
+ "name": "SbbLinkBaseElement",
128269
+ "module": "core/base-elements/link-base-element.js"
128270
+ }
128271
+ },
128272
+ {
128273
+ "kind": "field",
128274
+ "name": "rel",
128275
+ "type": {
128276
+ "text": "string"
128277
+ },
128278
+ "privacy": "public",
128279
+ "default": "''",
128280
+ "description": "The relationship of the linked URL as space-separated link types.",
128281
+ "attribute": "rel",
128282
+ "reflects": true,
128283
+ "inheritedFrom": {
128284
+ "name": "SbbLinkBaseElement",
128285
+ "module": "core/base-elements/link-base-element.js"
128286
+ }
128287
+ },
128288
+ {
128289
+ "kind": "field",
128290
+ "name": "download",
128291
+ "type": {
128292
+ "text": "boolean"
128293
+ },
128294
+ "privacy": "public",
128295
+ "default": "false",
128296
+ "description": "Whether the browser will show the download dialog on click.",
128297
+ "attribute": "download",
128298
+ "reflects": true,
128299
+ "inheritedFrom": {
128300
+ "name": "SbbLinkBaseElement",
128301
+ "module": "core/base-elements/link-base-element.js"
128302
+ }
128303
+ },
128304
+ {
128305
+ "kind": "field",
128306
+ "name": "accessibilityLabel",
128307
+ "type": {
128308
+ "text": "string"
128309
+ },
128310
+ "privacy": "public",
128311
+ "default": "''",
128312
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
128313
+ "attribute": "accessibility-label",
128314
+ "inheritedFrom": {
128315
+ "name": "SbbLinkBaseElement",
128316
+ "module": "core/base-elements/link-base-element.js"
128317
+ }
128318
+ },
128319
+ {
128320
+ "kind": "field",
128321
+ "name": "accessibilityCurrent",
128322
+ "type": {
128323
+ "text": "string"
128324
+ },
128325
+ "privacy": "public",
128326
+ "default": "''",
128327
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
128328
+ "attribute": "accessibility-current",
128329
+ "inheritedFrom": {
128330
+ "name": "SbbLinkBaseElement",
128331
+ "module": "core/base-elements/link-base-element.js"
128332
+ }
128333
+ },
128334
+ {
128335
+ "kind": "field",
128336
+ "name": "language",
128337
+ "privacy": "protected",
128338
+ "default": "new SbbLanguageController(this)",
128339
+ "inheritedFrom": {
128340
+ "name": "SbbLinkBaseElement",
128341
+ "module": "core/base-elements/link-base-element.js"
128342
+ }
128343
+ },
128344
+ {
128345
+ "kind": "field",
128346
+ "name": "anchorRole",
128347
+ "type": {
128348
+ "text": "string | null"
128349
+ },
128350
+ "privacy": "protected",
128351
+ "readonly": true,
128352
+ "default": "null",
128353
+ "inheritedFrom": {
128354
+ "name": "SbbLinkBaseElement",
128355
+ "module": "core/base-elements/link-base-element.js"
128356
+ }
128357
+ },
128358
+ {
128359
+ "kind": "field",
128360
+ "name": "_evaluateRelAttribute",
128361
+ "privacy": "private",
128362
+ "inheritedFrom": {
128363
+ "name": "SbbLinkBaseElement",
128364
+ "module": "core/base-elements/link-base-element.js"
128365
+ }
128366
+ },
128367
+ {
128368
+ "kind": "method",
128369
+ "name": "renderLink",
128370
+ "privacy": "protected",
128371
+ "return": {
128372
+ "type": {
128373
+ "text": "TemplateResult"
128374
+ }
128375
+ },
128376
+ "parameters": [
128377
+ {
128378
+ "name": "renderContent",
128379
+ "type": {
128380
+ "text": "TemplateResult"
128381
+ }
128382
+ }
128383
+ ],
128384
+ "inheritedFrom": {
128385
+ "name": "SbbLinkBaseElement",
128386
+ "module": "core/base-elements/link-base-element.js"
128387
+ }
128388
+ },
128240
128389
  {
128241
128390
  "kind": "field",
128242
128391
  "name": "maybeDisabled",
@@ -128390,10 +128539,10 @@
128390
128539
  }
128391
128540
  ],
128392
128541
  "superclass": {
128393
- "name": "SbbActionBaseElement",
128542
+ "name": "SbbLinkBaseElement",
128394
128543
  "module": "core/base-elements.js"
128395
128544
  },
128396
- "tagName": "sbb-teaser-product-static",
128545
+ "tagName": "sbb-teaser-product",
128397
128546
  "customElement": true,
128398
128547
  "attributes": [
128399
128548
  {
@@ -128416,270 +128565,199 @@
128416
128565
  },
128417
128566
  "default": "false",
128418
128567
  "description": "Negative coloring variant flag.",
128419
- "fieldName": "negative",
128420
- "inheritedFrom": {
128421
- "name": "SbbNegativeMixin",
128422
- "module": "core/mixins/negative-mixin.js"
128423
- }
128424
- }
128425
- ]
128426
- }
128427
- ],
128428
- "exports": [
128429
- {
128430
- "kind": "js",
128431
- "name": "SbbTeaserProductStaticElement",
128432
- "declaration": {
128433
- "name": "SbbTeaserProductStaticElement",
128434
- "module": "teaser-product/teaser-product-static/teaser-product-static.component.js"
128435
- }
128436
- }
128437
- ]
128438
- },
128439
- {
128440
- "kind": "javascript-module",
128441
- "path": "teaser-product/teaser-product/teaser-product.component.js",
128442
- "declarations": [
128443
- {
128444
- "kind": "class",
128445
- "description": "Displays a text and a footnote, combined with an image, to tease a product",
128446
- "name": "SbbTeaserProductElement",
128447
- "cssProperties": [
128448
- {
128449
- "description": "At which percentage the background should start getting transparent.",
128450
- "name": "--sbb-teaser-product-background-gradient-start",
128451
- "default": "25%"
128452
- },
128453
- {
128454
- "description": "At which percentage the background should be fully transparent.",
128455
- "name": "--sbb-teaser-product-background-gradient-end",
128456
- "default": "75%"
128457
- }
128458
- ],
128459
- "slots": [
128460
- {
128461
- "description": "Use this slot to provide the main content.",
128462
- "name": ""
128463
- },
128464
- {
128465
- "description": "Use this slot to provide an image or a `sbb-image` as a background.",
128466
- "name": "image"
128467
- },
128468
- {
128469
- "description": "Use this slot to provide a footnote.",
128470
- "name": "footnote"
128471
- }
128472
- ],
128473
- "members": [
128474
- {
128475
- "kind": "field",
128476
- "name": "elementName",
128477
- "type": {
128478
- "text": "string"
128479
- },
128480
- "privacy": "public",
128481
- "static": true,
128482
- "readonly": true,
128483
- "inheritedFrom": {
128484
- "name": "SbbElement",
128485
- "module": "core/base-elements/element.js"
128486
- },
128487
- "default": "'sbb-teaser-product'"
128488
- },
128489
- {
128490
- "kind": "field",
128491
- "name": "imageAlignment",
128492
- "type": {
128493
- "text": "'after' | 'before'"
128494
- },
128495
- "privacy": "public",
128496
- "default": "'after'",
128497
- "description": "Whether the fully visible part of the image is aligned 'before' or 'after' the content.\nOnly relevant starting from large breakpoint.",
128498
- "attribute": "image-alignment",
128499
- "reflects": true,
128500
- "inheritedFrom": {
128501
- "name": "SbbTeaserProductCommonElementMixin",
128502
- "module": "teaser-product/common/teaser-product-common.js"
128503
- }
128504
- },
128505
- {
128506
- "kind": "method",
128507
- "name": "renderTemplate",
128508
- "privacy": "protected",
128509
- "return": {
128510
- "type": {
128511
- "text": "TemplateResult"
128512
- }
128513
- },
128514
- "description": "Override this method to render the component template.",
128515
- "inheritedFrom": {
128516
- "name": "SbbActionBaseElement",
128517
- "module": "core/base-elements/action-base-element.js"
128518
- }
128519
- },
128520
- {
128521
- "kind": "field",
128522
- "name": "negative",
128523
- "type": {
128524
- "text": "boolean"
128525
- },
128526
- "privacy": "public",
128527
- "default": "false",
128528
- "description": "Negative coloring variant flag.",
128529
- "attribute": "negative",
128530
- "reflects": true,
128568
+ "fieldName": "negative",
128531
128569
  "inheritedFrom": {
128532
128570
  "name": "SbbNegativeMixin",
128533
128571
  "module": "core/mixins/negative-mixin.js"
128534
128572
  }
128535
128573
  },
128536
128574
  {
128537
- "kind": "field",
128538
128575
  "name": "href",
128539
128576
  "type": {
128540
128577
  "text": "string"
128541
128578
  },
128542
- "privacy": "public",
128543
128579
  "default": "''",
128544
128580
  "description": "The href value you want to link to.",
128545
- "attribute": "href",
128546
- "reflects": true,
128581
+ "fieldName": "href",
128547
128582
  "inheritedFrom": {
128548
128583
  "name": "SbbLinkBaseElement",
128549
128584
  "module": "core/base-elements/link-base-element.js"
128550
128585
  }
128551
128586
  },
128552
128587
  {
128553
- "kind": "field",
128554
128588
  "name": "target",
128555
128589
  "type": {
128556
128590
  "text": "LinkTargetType | string"
128557
128591
  },
128558
- "privacy": "public",
128559
128592
  "default": "''",
128560
128593
  "description": "Where to display the linked URL.",
128561
- "attribute": "target",
128562
- "reflects": true,
128594
+ "fieldName": "target",
128563
128595
  "inheritedFrom": {
128564
128596
  "name": "SbbLinkBaseElement",
128565
128597
  "module": "core/base-elements/link-base-element.js"
128566
128598
  }
128567
128599
  },
128568
128600
  {
128569
- "kind": "field",
128570
128601
  "name": "rel",
128571
128602
  "type": {
128572
128603
  "text": "string"
128573
128604
  },
128574
- "privacy": "public",
128575
128605
  "default": "''",
128576
128606
  "description": "The relationship of the linked URL as space-separated link types.",
128577
- "attribute": "rel",
128578
- "reflects": true,
128607
+ "fieldName": "rel",
128579
128608
  "inheritedFrom": {
128580
128609
  "name": "SbbLinkBaseElement",
128581
128610
  "module": "core/base-elements/link-base-element.js"
128582
128611
  }
128583
128612
  },
128584
128613
  {
128585
- "kind": "field",
128586
128614
  "name": "download",
128587
128615
  "type": {
128588
128616
  "text": "boolean"
128589
128617
  },
128590
- "privacy": "public",
128591
128618
  "default": "false",
128592
128619
  "description": "Whether the browser will show the download dialog on click.",
128593
- "attribute": "download",
128594
- "reflects": true,
128620
+ "fieldName": "download",
128595
128621
  "inheritedFrom": {
128596
128622
  "name": "SbbLinkBaseElement",
128597
128623
  "module": "core/base-elements/link-base-element.js"
128598
128624
  }
128599
128625
  },
128600
128626
  {
128601
- "kind": "field",
128602
- "name": "accessibilityLabel",
128627
+ "name": "accessibility-label",
128603
128628
  "type": {
128604
128629
  "text": "string"
128605
128630
  },
128606
- "privacy": "public",
128607
128631
  "default": "''",
128608
128632
  "description": "This will be forwarded as aria-label to the inner anchor element.",
128609
- "attribute": "accessibility-label",
128633
+ "fieldName": "accessibilityLabel",
128610
128634
  "inheritedFrom": {
128611
128635
  "name": "SbbLinkBaseElement",
128612
128636
  "module": "core/base-elements/link-base-element.js"
128613
128637
  }
128614
128638
  },
128615
128639
  {
128616
- "kind": "field",
128617
- "name": "accessibilityCurrent",
128640
+ "name": "accessibility-current",
128618
128641
  "type": {
128619
128642
  "text": "string"
128620
128643
  },
128621
- "privacy": "public",
128622
128644
  "default": "''",
128623
128645
  "description": "This will be forwarded as aria-current to the inner anchor element.",
128624
- "attribute": "accessibility-current",
128646
+ "fieldName": "accessibilityCurrent",
128625
128647
  "inheritedFrom": {
128626
128648
  "name": "SbbLinkBaseElement",
128627
128649
  "module": "core/base-elements/link-base-element.js"
128628
128650
  }
128651
+ }
128652
+ ]
128653
+ }
128654
+ ],
128655
+ "exports": [
128656
+ {
128657
+ "kind": "js",
128658
+ "name": "SbbTeaserProductElement",
128659
+ "declaration": {
128660
+ "name": "SbbTeaserProductElement",
128661
+ "module": "teaser-product/teaser-product/teaser-product.component.js"
128662
+ }
128663
+ }
128664
+ ]
128665
+ },
128666
+ {
128667
+ "kind": "javascript-module",
128668
+ "path": "teaser-product/teaser-product-static/teaser-product-static.component.js",
128669
+ "declarations": [
128670
+ {
128671
+ "kind": "class",
128672
+ "description": "Displays a text and a footnote, combined with an image, to tease a product.",
128673
+ "name": "SbbTeaserProductStaticElement",
128674
+ "cssProperties": [
128675
+ {
128676
+ "description": "At which percentage the background should start getting transparent.",
128677
+ "name": "--sbb-teaser-product-background-gradient-start",
128678
+ "default": "25%"
128629
128679
  },
128630
128680
  {
128631
- "kind": "field",
128632
- "name": "language",
128633
- "privacy": "protected",
128634
- "default": "new SbbLanguageController(this)",
128635
- "inheritedFrom": {
128636
- "name": "SbbLinkBaseElement",
128637
- "module": "core/base-elements/link-base-element.js"
128638
- }
128681
+ "description": "At which percentage the background should be fully transparent.",
128682
+ "name": "--sbb-teaser-product-background-gradient-end",
128683
+ "default": "75%"
128684
+ }
128685
+ ],
128686
+ "slots": [
128687
+ {
128688
+ "description": "Use this slot to provide the main content.",
128689
+ "name": ""
128690
+ },
128691
+ {
128692
+ "description": "Use this slot to provide an image or a `sbb-image` as a background.",
128693
+ "name": "image"
128639
128694
  },
128695
+ {
128696
+ "description": "Use this slot to provide a footnote.",
128697
+ "name": "footnote"
128698
+ }
128699
+ ],
128700
+ "members": [
128640
128701
  {
128641
128702
  "kind": "field",
128642
- "name": "anchorRole",
128703
+ "name": "elementName",
128643
128704
  "type": {
128644
- "text": "string | null"
128705
+ "text": "string"
128645
128706
  },
128646
- "privacy": "protected",
128707
+ "privacy": "public",
128708
+ "static": true,
128647
128709
  "readonly": true,
128648
- "default": "null",
128649
128710
  "inheritedFrom": {
128650
- "name": "SbbLinkBaseElement",
128651
- "module": "core/base-elements/link-base-element.js"
128652
- }
128711
+ "name": "SbbElement",
128712
+ "module": "core/base-elements/element.js"
128713
+ },
128714
+ "default": "'sbb-teaser-product-static'"
128653
128715
  },
128654
128716
  {
128655
128717
  "kind": "field",
128656
- "name": "_evaluateRelAttribute",
128657
- "privacy": "private",
128718
+ "name": "imageAlignment",
128719
+ "type": {
128720
+ "text": "'after' | 'before'"
128721
+ },
128722
+ "privacy": "public",
128723
+ "default": "'after'",
128724
+ "description": "Whether the fully visible part of the image is aligned 'before' or 'after' the content.\nOnly relevant starting from large breakpoint.",
128725
+ "attribute": "image-alignment",
128726
+ "reflects": true,
128658
128727
  "inheritedFrom": {
128659
- "name": "SbbLinkBaseElement",
128660
- "module": "core/base-elements/link-base-element.js"
128728
+ "name": "SbbTeaserProductCommonElementMixin",
128729
+ "module": "teaser-product/common/teaser-product-common.js"
128661
128730
  }
128662
128731
  },
128663
128732
  {
128664
128733
  "kind": "method",
128665
- "name": "renderLink",
128734
+ "name": "renderTemplate",
128666
128735
  "privacy": "protected",
128667
128736
  "return": {
128668
128737
  "type": {
128669
128738
  "text": "TemplateResult"
128670
128739
  }
128671
128740
  },
128672
- "parameters": [
128673
- {
128674
- "name": "renderContent",
128675
- "type": {
128676
- "text": "TemplateResult"
128677
- }
128678
- }
128679
- ],
128741
+ "description": "Override this method to render the component template.",
128680
128742
  "inheritedFrom": {
128681
- "name": "SbbLinkBaseElement",
128682
- "module": "core/base-elements/link-base-element.js"
128743
+ "name": "SbbActionBaseElement",
128744
+ "module": "core/base-elements/action-base-element.js"
128745
+ }
128746
+ },
128747
+ {
128748
+ "kind": "field",
128749
+ "name": "negative",
128750
+ "type": {
128751
+ "text": "boolean"
128752
+ },
128753
+ "privacy": "public",
128754
+ "default": "false",
128755
+ "description": "Negative coloring variant flag.",
128756
+ "attribute": "negative",
128757
+ "reflects": true,
128758
+ "inheritedFrom": {
128759
+ "name": "SbbNegativeMixin",
128760
+ "module": "core/mixins/negative-mixin.js"
128683
128761
  }
128684
128762
  },
128685
128763
  {
@@ -128835,10 +128913,10 @@
128835
128913
  }
128836
128914
  ],
128837
128915
  "superclass": {
128838
- "name": "SbbLinkBaseElement",
128916
+ "name": "SbbActionBaseElement",
128839
128917
  "module": "core/base-elements.js"
128840
128918
  },
128841
- "tagName": "sbb-teaser-product",
128919
+ "tagName": "sbb-teaser-product-static",
128842
128920
  "customElement": true,
128843
128921
  "attributes": [
128844
128922
  {
@@ -128866,84 +128944,6 @@
128866
128944
  "name": "SbbNegativeMixin",
128867
128945
  "module": "core/mixins/negative-mixin.js"
128868
128946
  }
128869
- },
128870
- {
128871
- "name": "href",
128872
- "type": {
128873
- "text": "string"
128874
- },
128875
- "default": "''",
128876
- "description": "The href value you want to link to.",
128877
- "fieldName": "href",
128878
- "inheritedFrom": {
128879
- "name": "SbbLinkBaseElement",
128880
- "module": "core/base-elements/link-base-element.js"
128881
- }
128882
- },
128883
- {
128884
- "name": "target",
128885
- "type": {
128886
- "text": "LinkTargetType | string"
128887
- },
128888
- "default": "''",
128889
- "description": "Where to display the linked URL.",
128890
- "fieldName": "target",
128891
- "inheritedFrom": {
128892
- "name": "SbbLinkBaseElement",
128893
- "module": "core/base-elements/link-base-element.js"
128894
- }
128895
- },
128896
- {
128897
- "name": "rel",
128898
- "type": {
128899
- "text": "string"
128900
- },
128901
- "default": "''",
128902
- "description": "The relationship of the linked URL as space-separated link types.",
128903
- "fieldName": "rel",
128904
- "inheritedFrom": {
128905
- "name": "SbbLinkBaseElement",
128906
- "module": "core/base-elements/link-base-element.js"
128907
- }
128908
- },
128909
- {
128910
- "name": "download",
128911
- "type": {
128912
- "text": "boolean"
128913
- },
128914
- "default": "false",
128915
- "description": "Whether the browser will show the download dialog on click.",
128916
- "fieldName": "download",
128917
- "inheritedFrom": {
128918
- "name": "SbbLinkBaseElement",
128919
- "module": "core/base-elements/link-base-element.js"
128920
- }
128921
- },
128922
- {
128923
- "name": "accessibility-label",
128924
- "type": {
128925
- "text": "string"
128926
- },
128927
- "default": "''",
128928
- "description": "This will be forwarded as aria-label to the inner anchor element.",
128929
- "fieldName": "accessibilityLabel",
128930
- "inheritedFrom": {
128931
- "name": "SbbLinkBaseElement",
128932
- "module": "core/base-elements/link-base-element.js"
128933
- }
128934
- },
128935
- {
128936
- "name": "accessibility-current",
128937
- "type": {
128938
- "text": "string"
128939
- },
128940
- "default": "''",
128941
- "description": "This will be forwarded as aria-current to the inner anchor element.",
128942
- "fieldName": "accessibilityCurrent",
128943
- "inheritedFrom": {
128944
- "name": "SbbLinkBaseElement",
128945
- "module": "core/base-elements/link-base-element.js"
128946
- }
128947
128947
  }
128948
128948
  ]
128949
128949
  }
@@ -128951,10 +128951,10 @@
128951
128951
  "exports": [
128952
128952
  {
128953
128953
  "kind": "js",
128954
- "name": "SbbTeaserProductElement",
128954
+ "name": "SbbTeaserProductStaticElement",
128955
128955
  "declaration": {
128956
- "name": "SbbTeaserProductElement",
128957
- "module": "teaser-product/teaser-product/teaser-product.component.js"
128956
+ "name": "SbbTeaserProductStaticElement",
128957
+ "module": "teaser-product/teaser-product-static/teaser-product-static.component.js"
128958
128958
  }
128959
128959
  }
128960
128960
  ]