@sbb-esta/lyne-elements-dev 4.5.1-dev.1771973815 → 4.5.1-dev.1772005757

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 +620 -620
  2. package/package.json +2 -2
@@ -79188,48 +79188,6 @@
79188
79188
  }
79189
79189
  ]
79190
79190
  },
79191
- {
79192
- "kind": "javascript-module",
79193
- "path": "icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js",
79194
- "declarations": [
79195
- {
79196
- "kind": "class",
79197
- "description": "Container for the icon sidebar content. Intended to be placed inside an `sbb-icon-sidebar-container` element.",
79198
- "name": "SbbIconSidebarContentElement",
79199
- "slots": [
79200
- {
79201
- "description": "Use the unnamed slot to add any content elements.",
79202
- "name": ""
79203
- }
79204
- ],
79205
- "members": [],
79206
- "superclass": {
79207
- "name": "LitElement",
79208
- "package": "lit"
79209
- },
79210
- "tagName": "sbb-icon-sidebar-content",
79211
- "customElement": true
79212
- }
79213
- ],
79214
- "exports": [
79215
- {
79216
- "kind": "js",
79217
- "name": "SbbIconSidebarContentElement",
79218
- "declaration": {
79219
- "name": "SbbIconSidebarContentElement",
79220
- "module": "icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js"
79221
- }
79222
- },
79223
- {
79224
- "kind": "custom-element-definition",
79225
- "name": "sbb-icon-sidebar-content",
79226
- "declaration": {
79227
- "name": "SbbIconSidebarContentElement",
79228
- "module": "icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js"
79229
- }
79230
- }
79231
- ]
79232
- },
79233
79191
  {
79234
79192
  "kind": "javascript-module",
79235
79193
  "path": "icon-sidebar/icon-sidebar-container/icon-sidebar-container.component.js",
@@ -79303,6 +79261,48 @@
79303
79261
  }
79304
79262
  ]
79305
79263
  },
79264
+ {
79265
+ "kind": "javascript-module",
79266
+ "path": "icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js",
79267
+ "declarations": [
79268
+ {
79269
+ "kind": "class",
79270
+ "description": "Container for the icon sidebar content. Intended to be placed inside an `sbb-icon-sidebar-container` element.",
79271
+ "name": "SbbIconSidebarContentElement",
79272
+ "slots": [
79273
+ {
79274
+ "description": "Use the unnamed slot to add any content elements.",
79275
+ "name": ""
79276
+ }
79277
+ ],
79278
+ "members": [],
79279
+ "superclass": {
79280
+ "name": "LitElement",
79281
+ "package": "lit"
79282
+ },
79283
+ "tagName": "sbb-icon-sidebar-content",
79284
+ "customElement": true
79285
+ }
79286
+ ],
79287
+ "exports": [
79288
+ {
79289
+ "kind": "js",
79290
+ "name": "SbbIconSidebarContentElement",
79291
+ "declaration": {
79292
+ "name": "SbbIconSidebarContentElement",
79293
+ "module": "icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js"
79294
+ }
79295
+ },
79296
+ {
79297
+ "kind": "custom-element-definition",
79298
+ "name": "sbb-icon-sidebar-content",
79299
+ "declaration": {
79300
+ "name": "SbbIconSidebarContentElement",
79301
+ "module": "icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js"
79302
+ }
79303
+ }
79304
+ ]
79305
+ },
79306
79306
  {
79307
79307
  "kind": "javascript-module",
79308
79308
  "path": "icon-sidebar/icon-sidebar-link/icon-sidebar-link.component.js",
@@ -80324,15 +80324,15 @@
80324
80324
  },
80325
80325
  {
80326
80326
  "kind": "javascript-module",
80327
- "path": "link/block-link-button/block-link-button.component.js",
80327
+ "path": "link/block-link-static/block-link-static.component.js",
80328
80328
  "declarations": [
80329
80329
  {
80330
80330
  "kind": "class",
80331
- "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
80332
- "name": "SbbBlockLinkButtonElement",
80331
+ "description": "It displays a static link enhanced with the SBB Design.",
80332
+ "name": "SbbBlockLinkStaticElement",
80333
80333
  "slots": [
80334
80334
  {
80335
- "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
80335
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
80336
80336
  "name": ""
80337
80337
  },
80338
80338
  {
@@ -80346,15 +80346,15 @@
80346
80346
  "module": "link/common.js"
80347
80347
  },
80348
80348
  {
80349
- "name": "SbbDisabledTabIndexActionMixin",
80349
+ "name": "SbbDisabledMixin",
80350
80350
  "module": "core/mixins.js"
80351
80351
  }
80352
80352
  ],
80353
80353
  "superclass": {
80354
- "name": "SbbButtonBaseElement",
80354
+ "name": "SbbActionBaseElement",
80355
80355
  "module": "core/base-elements.js"
80356
80356
  },
80357
- "tagName": "sbb-block-link-button",
80357
+ "tagName": "sbb-block-link-static",
80358
80358
  "customElement": true,
80359
80359
  "attributes": [
80360
80360
  {
@@ -80396,19 +80396,6 @@
80396
80396
  "module": "icon/icon-name-mixin.js"
80397
80397
  }
80398
80398
  },
80399
- {
80400
- "name": "disabled-interactive",
80401
- "type": {
80402
- "text": "boolean"
80403
- },
80404
- "default": "false",
80405
- "description": "Whether the button should be aria-disabled but stay interactive.",
80406
- "fieldName": "disabledInteractive",
80407
- "inheritedFrom": {
80408
- "name": "SbbDisabledInteractiveMixin",
80409
- "module": "core/mixins/disabled-mixin.js"
80410
- }
80411
- },
80412
80399
  {
80413
80400
  "name": "disabled",
80414
80401
  "description": "Whether the component is disabled.",
@@ -80421,56 +80408,6 @@
80421
80408
  "name": "SbbDisabledMixin",
80422
80409
  "module": "core/mixins/disabled-mixin.js"
80423
80410
  }
80424
- },
80425
- {
80426
- "name": "value",
80427
- "type": {
80428
- "text": "string"
80429
- },
80430
- "default": "''",
80431
- "description": "Value of the form element.",
80432
- "fieldName": "value",
80433
- "inheritedFrom": {
80434
- "name": "SbbButtonBaseElement",
80435
- "module": "core/base-elements/button-base-element.js"
80436
- }
80437
- },
80438
- {
80439
- "name": "type",
80440
- "description": "The type attribute to use for the button.",
80441
- "default": "'button'",
80442
- "type": {
80443
- "text": "SbbButtonType"
80444
- },
80445
- "fieldName": "type",
80446
- "inheritedFrom": {
80447
- "name": "SbbButtonBaseElement",
80448
- "module": "core/base-elements/button-base-element.js"
80449
- }
80450
- },
80451
- {
80452
- "name": "form",
80453
- "description": "The `<form>` element to associate the button with.",
80454
- "type": {
80455
- "text": "HTMLFormElement | null"
80456
- },
80457
- "fieldName": "form",
80458
- "inheritedFrom": {
80459
- "name": "SbbButtonBaseElement",
80460
- "module": "core/base-elements/button-base-element.js"
80461
- }
80462
- },
80463
- {
80464
- "name": "name",
80465
- "description": "Name of the form element. Will be read from name attribute.",
80466
- "type": {
80467
- "text": "string"
80468
- },
80469
- "fieldName": "name",
80470
- "inheritedFrom": {
80471
- "name": "SbbFormAssociatedMixin",
80472
- "module": "core/mixins/form-associated-mixin.js"
80473
- }
80474
80411
  }
80475
80412
  ],
80476
80413
  "members": [
@@ -80601,22 +80538,6 @@
80601
80538
  "module": "icon/icon-name-mixin.js"
80602
80539
  }
80603
80540
  },
80604
- {
80605
- "kind": "field",
80606
- "name": "disabledInteractive",
80607
- "type": {
80608
- "text": "boolean"
80609
- },
80610
- "privacy": "public",
80611
- "default": "false",
80612
- "description": "Whether the button should be aria-disabled but stay interactive.",
80613
- "attribute": "disabled-interactive",
80614
- "reflects": true,
80615
- "inheritedFrom": {
80616
- "name": "SbbDisabledInteractiveMixin",
80617
- "module": "core/mixins/disabled-mixin.js"
80618
- }
80619
- },
80620
80541
  {
80621
80542
  "kind": "field",
80622
80543
  "name": "disabled",
@@ -80662,486 +80583,519 @@
80662
80583
  }
80663
80584
  },
80664
80585
  {
80665
- "kind": "field",
80666
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
80667
- "type": {
80668
- "text": "array"
80586
+ "kind": "method",
80587
+ "name": "toggleState",
80588
+ "privacy": "protected",
80589
+ "return": {
80590
+ "type": {
80591
+ "text": "void"
80592
+ }
80669
80593
  },
80670
- "privacy": "private",
80671
- "readonly": true,
80672
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
80594
+ "parameters": [
80595
+ {
80596
+ "name": "value",
80597
+ "type": {
80598
+ "text": "string"
80599
+ }
80600
+ },
80601
+ {
80602
+ "name": "force",
80603
+ "optional": true,
80604
+ "type": {
80605
+ "text": "boolean"
80606
+ }
80607
+ }
80608
+ ],
80673
80609
  "inheritedFrom": {
80674
- "name": "SbbButtonBaseElement",
80675
- "module": "core/base-elements/button-base-element.js"
80610
+ "name": "SbbActionBaseElement",
80611
+ "module": "core/base-elements/action-base-element.js"
80676
80612
  }
80677
80613
  },
80678
80614
  {
80679
80615
  "kind": "field",
80680
- "name": "value",
80616
+ "name": "maybeDisabled",
80681
80617
  "type": {
80682
- "text": "string"
80618
+ "text": "boolean | undefined"
80683
80619
  },
80684
- "privacy": "public",
80620
+ "privacy": "protected",
80621
+ "readonly": true,
80685
80622
  "inheritedFrom": {
80686
- "name": "SbbButtonBaseElement",
80687
- "module": "core/base-elements/button-base-element.js"
80688
- },
80689
- "default": "''",
80690
- "description": "Value of the form element.",
80691
- "attribute": "value"
80623
+ "name": "SbbActionBaseElement",
80624
+ "module": "core/base-elements/action-base-element.js"
80625
+ }
80692
80626
  },
80693
80627
  {
80694
80628
  "kind": "field",
80695
- "name": "type",
80696
- "privacy": "public",
80697
- "description": "The type attribute to use for the button.",
80698
- "default": "'button'",
80629
+ "name": "maybeDisabledInteractive",
80699
80630
  "type": {
80700
- "text": "SbbButtonType"
80631
+ "text": "boolean | undefined"
80701
80632
  },
80702
- "attribute": "type",
80633
+ "privacy": "protected",
80634
+ "readonly": true,
80703
80635
  "inheritedFrom": {
80704
- "name": "SbbButtonBaseElement",
80705
- "module": "core/base-elements/button-base-element.js"
80636
+ "name": "SbbActionBaseElement",
80637
+ "module": "core/base-elements/action-base-element.js"
80706
80638
  }
80707
80639
  },
80708
80640
  {
80709
- "kind": "field",
80710
- "name": "form",
80711
- "type": {
80712
- "text": "HTMLFormElement | null"
80641
+ "kind": "method",
80642
+ "name": "setupBaseEventHandlers",
80643
+ "privacy": "protected",
80644
+ "return": {
80645
+ "type": {
80646
+ "text": "void"
80647
+ }
80713
80648
  },
80714
- "privacy": "public",
80715
- "description": "The `<form>` element to associate the button with.",
80716
80649
  "inheritedFrom": {
80717
- "name": "SbbButtonBaseElement",
80718
- "module": "core/base-elements/button-base-element.js"
80719
- },
80720
- "attribute": "form"
80650
+ "name": "SbbActionBaseElement",
80651
+ "module": "core/base-elements/action-base-element.js"
80652
+ }
80653
+ }
80654
+ ]
80655
+ }
80656
+ ],
80657
+ "exports": [
80658
+ {
80659
+ "kind": "js",
80660
+ "name": "SbbBlockLinkStaticElement",
80661
+ "declaration": {
80662
+ "name": "SbbBlockLinkStaticElement",
80663
+ "module": "link/block-link-static/block-link-static.component.js"
80664
+ }
80665
+ },
80666
+ {
80667
+ "kind": "custom-element-definition",
80668
+ "name": "sbb-block-link-static",
80669
+ "declaration": {
80670
+ "name": "SbbBlockLinkStaticElement",
80671
+ "module": "link/block-link-static/block-link-static.component.js"
80672
+ }
80673
+ }
80674
+ ]
80675
+ },
80676
+ {
80677
+ "kind": "javascript-module",
80678
+ "path": "link/block-link-button/block-link-button.component.js",
80679
+ "declarations": [
80680
+ {
80681
+ "kind": "class",
80682
+ "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
80683
+ "name": "SbbBlockLinkButtonElement",
80684
+ "slots": [
80685
+ {
80686
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
80687
+ "name": ""
80721
80688
  },
80722
80689
  {
80723
- "kind": "field",
80724
- "name": "_formId",
80690
+ "description": "Slot used to display the icon, if one is set.",
80691
+ "name": "icon"
80692
+ }
80693
+ ],
80694
+ "mixins": [
80695
+ {
80696
+ "name": "SbbBlockLinkCommonElementMixin",
80697
+ "module": "link/common.js"
80698
+ },
80699
+ {
80700
+ "name": "SbbDisabledTabIndexActionMixin",
80701
+ "module": "core/mixins.js"
80702
+ }
80703
+ ],
80704
+ "superclass": {
80705
+ "name": "SbbButtonBaseElement",
80706
+ "module": "core/base-elements.js"
80707
+ },
80708
+ "tagName": "sbb-block-link-button",
80709
+ "customElement": true,
80710
+ "attributes": [
80711
+ {
80712
+ "name": "icon-placement",
80725
80713
  "type": {
80726
- "text": "string"
80714
+ "text": "SbbIconPlacement"
80727
80715
  },
80728
- "privacy": "private",
80729
- "default": "''",
80716
+ "default": "'start'",
80717
+ "description": "Moves the icon to the end of the component if set to true.",
80718
+ "fieldName": "iconPlacement",
80730
80719
  "inheritedFrom": {
80731
- "name": "SbbButtonBaseElement",
80732
- "module": "core/base-elements/button-base-element.js"
80720
+ "name": "SbbBlockLinkCommonElementMixin",
80721
+ "module": "link/common/block-link-common.js"
80733
80722
  }
80734
80723
  },
80735
80724
  {
80736
- "kind": "field",
80737
- "name": "_handleButtonClick",
80738
- "privacy": "private",
80725
+ "name": "size",
80726
+ "type": {
80727
+ "text": "SbbLinkSize"
80728
+ },
80729
+ "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
80730
+ "default": "'s' / 'xs' (lean)",
80731
+ "fieldName": "size",
80739
80732
  "inheritedFrom": {
80740
- "name": "SbbButtonBaseElement",
80741
- "module": "core/base-elements/button-base-element.js"
80733
+ "name": "SbbLinkCommonElementMixin",
80734
+ "module": "link/common/link-common.js"
80742
80735
  }
80743
80736
  },
80744
80737
  {
80745
- "kind": "method",
80746
- "name": "_requestSubmit",
80747
- "privacy": "private",
80748
- "return": {
80749
- "type": {
80750
- "text": "void"
80751
- }
80738
+ "name": "icon-name",
80739
+ "type": {
80740
+ "text": "string"
80752
80741
  },
80753
- "parameters": [
80754
- {
80755
- "name": "form",
80756
- "type": {
80757
- "text": "HTMLFormElement"
80758
- }
80759
- }
80760
- ],
80742
+ "default": "''",
80743
+ "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.",
80744
+ "fieldName": "iconName",
80761
80745
  "inheritedFrom": {
80762
- "name": "SbbButtonBaseElement",
80763
- "module": "core/base-elements/button-base-element.js"
80746
+ "name": "SbbIconNameMixin",
80747
+ "module": "icon/icon-name-mixin.js"
80764
80748
  }
80765
80749
  },
80766
80750
  {
80767
- "kind": "field",
80768
- "name": "_formKeyDown",
80769
- "privacy": "private",
80751
+ "name": "disabled-interactive",
80752
+ "type": {
80753
+ "text": "boolean"
80754
+ },
80755
+ "default": "false",
80756
+ "description": "Whether the button should be aria-disabled but stay interactive.",
80757
+ "fieldName": "disabledInteractive",
80770
80758
  "inheritedFrom": {
80771
- "name": "SbbButtonBaseElement",
80772
- "module": "core/base-elements/button-base-element.js"
80759
+ "name": "SbbDisabledInteractiveMixin",
80760
+ "module": "core/mixins/disabled-mixin.js"
80773
80761
  }
80774
80762
  },
80775
80763
  {
80776
- "kind": "field",
80777
- "name": "formAssociated",
80764
+ "name": "disabled",
80765
+ "description": "Whether the component is disabled.",
80766
+ "default": "false",
80778
80767
  "type": {
80779
80768
  "text": "boolean"
80780
80769
  },
80781
- "privacy": "public",
80782
- "static": true,
80783
- "default": "true",
80770
+ "fieldName": "disabled",
80784
80771
  "inheritedFrom": {
80785
- "name": "SbbFormAssociatedMixin",
80786
- "module": "core/mixins/form-associated-mixin.js"
80772
+ "name": "SbbDisabledMixin",
80773
+ "module": "core/mixins/disabled-mixin.js"
80787
80774
  }
80788
80775
  },
80789
80776
  {
80790
- "kind": "field",
80791
- "name": "name",
80792
- "privacy": "public",
80793
- "description": "Name of the form element. Will be read from name attribute.",
80777
+ "name": "value",
80794
80778
  "type": {
80795
80779
  "text": "string"
80796
80780
  },
80797
- "attribute": "name",
80781
+ "default": "''",
80782
+ "description": "Value of the form element.",
80783
+ "fieldName": "value",
80798
80784
  "inheritedFrom": {
80799
- "name": "SbbFormAssociatedMixin",
80800
- "module": "core/mixins/form-associated-mixin.js"
80785
+ "name": "SbbButtonBaseElement",
80786
+ "module": "core/base-elements/button-base-element.js"
80801
80787
  }
80802
80788
  },
80803
80789
  {
80804
- "kind": "field",
80805
- "name": "validity",
80790
+ "name": "type",
80791
+ "description": "The type attribute to use for the button.",
80792
+ "default": "'button'",
80806
80793
  "type": {
80807
- "text": "ValidityState"
80794
+ "text": "SbbButtonType"
80808
80795
  },
80809
- "privacy": "public",
80810
- "description": "Returns the ValidityState object for this element.",
80811
- "readonly": true,
80796
+ "fieldName": "type",
80812
80797
  "inheritedFrom": {
80813
- "name": "SbbFormAssociatedMixin",
80814
- "module": "core/mixins/form-associated-mixin.js"
80798
+ "name": "SbbButtonBaseElement",
80799
+ "module": "core/base-elements/button-base-element.js"
80815
80800
  }
80816
80801
  },
80817
80802
  {
80818
- "kind": "field",
80819
- "name": "validationMessage",
80803
+ "name": "form",
80804
+ "description": "The `<form>` element to associate the button with.",
80820
80805
  "type": {
80821
- "text": "string"
80806
+ "text": "HTMLFormElement | null"
80822
80807
  },
80823
- "privacy": "public",
80824
- "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.",
80825
- "readonly": true,
80808
+ "fieldName": "form",
80826
80809
  "inheritedFrom": {
80827
- "name": "SbbFormAssociatedMixin",
80828
- "module": "core/mixins/form-associated-mixin.js"
80810
+ "name": "SbbButtonBaseElement",
80811
+ "module": "core/base-elements/button-base-element.js"
80829
80812
  }
80830
80813
  },
80831
80814
  {
80832
- "kind": "field",
80833
- "name": "willValidate",
80815
+ "name": "name",
80816
+ "description": "Name of the form element. Will be read from name attribute.",
80834
80817
  "type": {
80835
- "text": "boolean"
80818
+ "text": "string"
80836
80819
  },
80837
- "privacy": "public",
80838
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
80839
- "readonly": true,
80820
+ "fieldName": "name",
80840
80821
  "inheritedFrom": {
80841
80822
  "name": "SbbFormAssociatedMixin",
80842
80823
  "module": "core/mixins/form-associated-mixin.js"
80843
80824
  }
80844
- },
80825
+ }
80826
+ ],
80827
+ "members": [
80845
80828
  {
80846
80829
  "kind": "field",
80847
- "name": "_validityStates",
80848
- "privacy": "private",
80849
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
80830
+ "name": "styles",
80831
+ "type": {
80832
+ "text": "CSSResultGroup"
80833
+ },
80834
+ "privacy": "public",
80835
+ "static": true,
80836
+ "default": "[boxSizingStyles, style, blockStyle]",
80850
80837
  "inheritedFrom": {
80851
- "name": "SbbFormAssociatedMixin",
80852
- "module": "core/mixins/form-associated-mixin.js"
80838
+ "name": "SbbLinkCommonElementMixin",
80839
+ "module": "link/common/link-common.js"
80853
80840
  }
80854
80841
  },
80855
80842
  {
80856
80843
  "kind": "field",
80857
- "name": "formDisabled",
80844
+ "name": "iconPlacement",
80858
80845
  "type": {
80859
- "text": "boolean"
80846
+ "text": "SbbIconPlacement"
80860
80847
  },
80861
- "privacy": "protected",
80862
- "default": "false",
80863
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
80848
+ "privacy": "public",
80849
+ "default": "'start'",
80850
+ "description": "Moves the icon to the end of the component if set to true.",
80851
+ "attribute": "icon-placement",
80852
+ "reflects": true,
80864
80853
  "inheritedFrom": {
80865
- "name": "SbbFormAssociatedMixin",
80866
- "module": "core/mixins/form-associated-mixin.js"
80854
+ "name": "SbbBlockLinkCommonElementMixin",
80855
+ "module": "link/common/block-link-common.js"
80867
80856
  }
80868
80857
  },
80869
80858
  {
80870
80859
  "kind": "method",
80871
- "name": "checkValidity",
80872
- "privacy": "public",
80860
+ "name": "renderTemplate",
80861
+ "privacy": "protected",
80873
80862
  "return": {
80874
80863
  "type": {
80875
- "text": "boolean"
80864
+ "text": "TemplateResult"
80876
80865
  }
80877
80866
  },
80878
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
80867
+ "description": "Override this method to render the component template.",
80879
80868
  "inheritedFrom": {
80880
- "name": "SbbFormAssociatedMixin",
80881
- "module": "core/mixins/form-associated-mixin.js"
80869
+ "name": "SbbActionBaseElement",
80870
+ "module": "core/base-elements/action-base-element.js"
80882
80871
  }
80883
80872
  },
80884
80873
  {
80885
- "kind": "method",
80886
- "name": "reportValidity",
80874
+ "kind": "field",
80875
+ "name": "size",
80876
+ "type": {
80877
+ "text": "SbbLinkSize"
80878
+ },
80887
80879
  "privacy": "public",
80888
- "return": {
80889
- "type": {
80890
- "text": "boolean"
80891
- }
80880
+ "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
80881
+ "default": "'s' / 'xs' (lean)",
80882
+ "attribute": "size",
80883
+ "reflects": true,
80884
+ "inheritedFrom": {
80885
+ "name": "SbbLinkCommonElementMixin",
80886
+ "module": "link/common/link-common.js"
80887
+ }
80888
+ },
80889
+ {
80890
+ "kind": "field",
80891
+ "name": "iconName",
80892
+ "type": {
80893
+ "text": "string"
80892
80894
  },
80893
- "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.",
80895
+ "privacy": "public",
80896
+ "default": "''",
80897
+ "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.",
80898
+ "attribute": "icon-name",
80894
80899
  "inheritedFrom": {
80895
- "name": "SbbFormAssociatedMixin",
80896
- "module": "core/mixins/form-associated-mixin.js"
80900
+ "name": "SbbIconNameMixin",
80901
+ "module": "icon/icon-name-mixin.js"
80897
80902
  }
80898
80903
  },
80899
80904
  {
80900
80905
  "kind": "method",
80901
- "name": "setCustomValidity",
80902
- "privacy": "public",
80906
+ "name": "renderIconSlot",
80907
+ "privacy": "protected",
80903
80908
  "return": {
80904
80909
  "type": {
80905
- "text": "void"
80910
+ "text": "TemplateResult"
80906
80911
  }
80907
80912
  },
80908
80913
  "parameters": [
80909
80914
  {
80910
- "name": "message",
80915
+ "name": "classname",
80916
+ "optional": true,
80911
80917
  "type": {
80912
80918
  "text": "string"
80913
80919
  }
80914
80920
  }
80915
80921
  ],
80916
- "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.",
80917
- "inheritedFrom": {
80918
- "name": "SbbFormAssociatedMixin",
80919
- "module": "core/mixins/form-associated-mixin.js"
80920
- }
80921
- },
80922
- {
80923
- "kind": "method",
80924
- "name": "_hasDisabledAncestor",
80925
- "privacy": "private",
80926
- "return": {
80927
- "type": {
80928
- "text": "boolean"
80929
- }
80930
- },
80931
80922
  "inheritedFrom": {
80932
- "name": "SbbFormAssociatedMixin",
80933
- "module": "core/mixins/form-associated-mixin.js"
80923
+ "name": "SbbIconNameMixin",
80924
+ "module": "icon/icon-name-mixin.js"
80934
80925
  }
80935
80926
  },
80936
80927
  {
80937
80928
  "kind": "method",
80938
- "name": "updateFormValue",
80929
+ "name": "renderIconName",
80939
80930
  "privacy": "protected",
80940
80931
  "return": {
80941
80932
  "type": {
80942
- "text": "void"
80933
+ "text": "string"
80943
80934
  }
80944
80935
  },
80945
- "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",
80946
80936
  "inheritedFrom": {
80947
- "name": "SbbFormAssociatedMixin",
80948
- "module": "core/mixins/form-associated-mixin.js"
80937
+ "name": "SbbIconNameMixin",
80938
+ "module": "icon/icon-name-mixin.js"
80949
80939
  }
80950
80940
  },
80951
80941
  {
80952
80942
  "kind": "method",
80953
- "name": "formState",
80954
- "privacy": "protected",
80943
+ "name": "_renderIconName",
80944
+ "privacy": "private",
80955
80945
  "return": {
80956
80946
  "type": {
80957
- "text": "FormRestoreState"
80947
+ "text": "string"
80958
80948
  }
80959
80949
  },
80960
80950
  "inheritedFrom": {
80961
- "name": "SbbFormAssociatedMixin",
80962
- "module": "core/mixins/form-associated-mixin.js"
80951
+ "name": "SbbIconNameMixin",
80952
+ "module": "icon/icon-name-mixin.js"
80963
80953
  }
80964
80954
  },
80965
80955
  {
80966
- "kind": "method",
80967
- "name": "setValidityFlag",
80968
- "privacy": "protected",
80969
- "return": {
80970
- "type": {
80971
- "text": "void"
80972
- }
80956
+ "kind": "field",
80957
+ "name": "disabledInteractive",
80958
+ "type": {
80959
+ "text": "boolean"
80973
80960
  },
80974
- "parameters": [
80975
- {
80976
- "name": "flag",
80977
- "type": {
80978
- "text": "T"
80979
- }
80980
- },
80981
- {
80982
- "name": "message",
80983
- "type": {
80984
- "text": "string"
80985
- }
80986
- },
80987
- {
80988
- "name": "flagValue",
80989
- "optional": true,
80990
- "type": {
80991
- "text": "ValidityStateFlags[T]"
80992
- }
80993
- }
80994
- ],
80995
- "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).",
80961
+ "privacy": "public",
80962
+ "default": "false",
80963
+ "description": "Whether the button should be aria-disabled but stay interactive.",
80964
+ "attribute": "disabled-interactive",
80965
+ "reflects": true,
80996
80966
  "inheritedFrom": {
80997
- "name": "SbbFormAssociatedMixin",
80998
- "module": "core/mixins/form-associated-mixin.js"
80967
+ "name": "SbbDisabledInteractiveMixin",
80968
+ "module": "core/mixins/disabled-mixin.js"
80999
80969
  }
81000
80970
  },
81001
80971
  {
81002
- "kind": "method",
81003
- "name": "removeValidityFlag",
81004
- "privacy": "protected",
81005
- "return": {
81006
- "type": {
81007
- "text": "void"
81008
- }
80972
+ "kind": "field",
80973
+ "name": "disabled",
80974
+ "privacy": "public",
80975
+ "description": "Whether the component is disabled.",
80976
+ "default": "false",
80977
+ "type": {
80978
+ "text": "boolean"
81009
80979
  },
81010
- "parameters": [
81011
- {
81012
- "name": "flag",
81013
- "type": {
81014
- "text": "T"
81015
- }
81016
- }
81017
- ],
81018
- "description": "Removes the validity state flag entry and updates validity state.",
80980
+ "attribute": "disabled",
80981
+ "reflects": true,
81019
80982
  "inheritedFrom": {
81020
- "name": "SbbFormAssociatedMixin",
81021
- "module": "core/mixins/form-associated-mixin.js"
80983
+ "name": "SbbDisabledMixin",
80984
+ "module": "core/mixins/disabled-mixin.js"
81022
80985
  }
81023
80986
  },
81024
80987
  {
81025
- "kind": "method",
81026
- "name": "validate",
81027
- "privacy": "protected",
81028
- "return": {
81029
- "type": {
81030
- "text": "void"
81031
- }
80988
+ "kind": "field",
80989
+ "name": "#disabled",
80990
+ "privacy": "private",
80991
+ "type": {
80992
+ "text": "boolean"
81032
80993
  },
81033
- "description": "To be called whenever the current element needs to be validated.",
80994
+ "default": "false",
81034
80995
  "inheritedFrom": {
81035
- "name": "SbbFormAssociatedMixin",
81036
- "module": "core/mixins/form-associated-mixin.js"
80996
+ "name": "SbbDisabledMixin",
80997
+ "module": "core/mixins/disabled-mixin.js"
81037
80998
  }
81038
80999
  },
81039
81000
  {
81040
81001
  "kind": "method",
81041
- "name": "shouldValidate",
81002
+ "name": "isDisabledExternally",
81042
81003
  "privacy": "protected",
81043
81004
  "return": {
81044
81005
  "type": {
81045
81006
  "text": "boolean"
81046
81007
  }
81047
81008
  },
81048
- "parameters": [
81049
- {
81050
- "name": "name",
81051
- "type": {
81052
- "text": "PropertyKey | undefined"
81053
- }
81054
- }
81055
- ],
81056
- "description": "Whether validation should be run on a property change with the given name.",
81009
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
81057
81010
  "inheritedFrom": {
81058
- "name": "SbbFormAssociatedMixin",
81059
- "module": "core/mixins/form-associated-mixin.js"
81011
+ "name": "SbbDisabledMixin",
81012
+ "module": "core/mixins/disabled-mixin.js"
81060
81013
  }
81061
81014
  },
81062
81015
  {
81063
- "kind": "method",
81064
- "name": "_setInternalValidity",
81065
- "privacy": "private",
81066
- "return": {
81067
- "type": {
81068
- "text": "void"
81069
- }
81016
+ "kind": "field",
81017
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
81018
+ "type": {
81019
+ "text": "array"
81070
81020
  },
81021
+ "privacy": "private",
81022
+ "readonly": true,
81023
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
81071
81024
  "inheritedFrom": {
81072
- "name": "SbbFormAssociatedMixin",
81073
- "module": "core/mixins/form-associated-mixin.js"
81025
+ "name": "SbbButtonBaseElement",
81026
+ "module": "core/base-elements/button-base-element.js"
81074
81027
  }
81075
81028
  },
81076
81029
  {
81077
81030
  "kind": "field",
81078
- "name": "role",
81031
+ "name": "value",
81079
81032
  "type": {
81080
- "text": "ElementInternals['role']"
81033
+ "text": "string"
81081
81034
  },
81082
81035
  "privacy": "public",
81083
- "static": true,
81084
- "readonly": true,
81085
- "default": "'button'",
81086
81036
  "inheritedFrom": {
81087
- "name": "SbbButtonLikeBaseElement",
81037
+ "name": "SbbButtonBaseElement",
81088
81038
  "module": "core/base-elements/button-base-element.js"
81089
- }
81039
+ },
81040
+ "default": "''",
81041
+ "description": "Value of the form element.",
81042
+ "attribute": "value"
81090
81043
  },
81091
81044
  {
81092
81045
  "kind": "field",
81093
- "name": "_preventScrollOnSpaceKeydown",
81094
- "privacy": "private",
81095
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
81096
- "parameters": [
81097
- {
81098
- "description": "The origin event.",
81099
- "name": "event"
81100
- }
81101
- ],
81046
+ "name": "type",
81047
+ "privacy": "public",
81048
+ "description": "The type attribute to use for the button.",
81049
+ "default": "'button'",
81050
+ "type": {
81051
+ "text": "SbbButtonType"
81052
+ },
81053
+ "attribute": "type",
81102
81054
  "inheritedFrom": {
81103
- "name": "SbbButtonLikeBaseElement",
81055
+ "name": "SbbButtonBaseElement",
81104
81056
  "module": "core/base-elements/button-base-element.js"
81105
81057
  }
81106
81058
  },
81107
81059
  {
81108
81060
  "kind": "field",
81109
- "name": "_removeActiveMarker",
81110
- "privacy": "private",
81061
+ "name": "form",
81062
+ "type": {
81063
+ "text": "HTMLFormElement | null"
81064
+ },
81065
+ "privacy": "public",
81066
+ "description": "The `<form>` element to associate the button with.",
81111
81067
  "inheritedFrom": {
81112
- "name": "SbbButtonLikeBaseElement",
81068
+ "name": "SbbButtonBaseElement",
81113
81069
  "module": "core/base-elements/button-base-element.js"
81114
- }
81070
+ },
81071
+ "attribute": "form"
81115
81072
  },
81116
81073
  {
81117
81074
  "kind": "field",
81118
- "name": "_dispatchClickEventOnSpaceKeyup",
81075
+ "name": "_formId",
81076
+ "type": {
81077
+ "text": "string"
81078
+ },
81119
81079
  "privacy": "private",
81120
- "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.",
81121
- "parameters": [
81122
- {
81123
- "description": "The origin event.",
81124
- "name": "event"
81125
- }
81126
- ],
81080
+ "default": "''",
81127
81081
  "inheritedFrom": {
81128
- "name": "SbbButtonLikeBaseElement",
81082
+ "name": "SbbButtonBaseElement",
81129
81083
  "module": "core/base-elements/button-base-element.js"
81130
81084
  }
81131
81085
  },
81132
81086
  {
81133
81087
  "kind": "field",
81134
- "name": "_dispatchClickEvent",
81088
+ "name": "_handleButtonClick",
81135
81089
  "privacy": "private",
81136
81090
  "inheritedFrom": {
81137
- "name": "SbbButtonLikeBaseElement",
81091
+ "name": "SbbButtonBaseElement",
81138
81092
  "module": "core/base-elements/button-base-element.js"
81139
81093
  }
81140
81094
  },
81141
81095
  {
81142
81096
  "kind": "method",
81143
- "name": "toggleState",
81144
- "privacy": "protected",
81097
+ "name": "_requestSubmit",
81098
+ "privacy": "private",
81145
81099
  "return": {
81146
81100
  "type": {
81147
81101
  "text": "void"
@@ -81149,344 +81103,390 @@
81149
81103
  },
81150
81104
  "parameters": [
81151
81105
  {
81152
- "name": "value",
81153
- "type": {
81154
- "text": "string"
81155
- }
81156
- },
81157
- {
81158
- "name": "force",
81159
- "optional": true,
81106
+ "name": "form",
81160
81107
  "type": {
81161
- "text": "boolean"
81108
+ "text": "HTMLFormElement"
81162
81109
  }
81163
81110
  }
81164
81111
  ],
81165
81112
  "inheritedFrom": {
81166
- "name": "SbbActionBaseElement",
81167
- "module": "core/base-elements/action-base-element.js"
81113
+ "name": "SbbButtonBaseElement",
81114
+ "module": "core/base-elements/button-base-element.js"
81168
81115
  }
81169
81116
  },
81170
81117
  {
81171
81118
  "kind": "field",
81172
- "name": "maybeDisabled",
81173
- "type": {
81174
- "text": "boolean | undefined"
81175
- },
81176
- "privacy": "protected",
81177
- "readonly": true,
81119
+ "name": "_formKeyDown",
81120
+ "privacy": "private",
81178
81121
  "inheritedFrom": {
81179
- "name": "SbbActionBaseElement",
81180
- "module": "core/base-elements/action-base-element.js"
81122
+ "name": "SbbButtonBaseElement",
81123
+ "module": "core/base-elements/button-base-element.js"
81181
81124
  }
81182
81125
  },
81183
81126
  {
81184
81127
  "kind": "field",
81185
- "name": "maybeDisabledInteractive",
81128
+ "name": "formAssociated",
81186
81129
  "type": {
81187
- "text": "boolean | undefined"
81130
+ "text": "boolean"
81188
81131
  },
81189
- "privacy": "protected",
81190
- "readonly": true,
81132
+ "privacy": "public",
81133
+ "static": true,
81134
+ "default": "true",
81191
81135
  "inheritedFrom": {
81192
- "name": "SbbActionBaseElement",
81193
- "module": "core/base-elements/action-base-element.js"
81136
+ "name": "SbbFormAssociatedMixin",
81137
+ "module": "core/mixins/form-associated-mixin.js"
81194
81138
  }
81195
81139
  },
81196
81140
  {
81197
- "kind": "method",
81198
- "name": "setupBaseEventHandlers",
81199
- "privacy": "protected",
81200
- "return": {
81201
- "type": {
81202
- "text": "void"
81203
- }
81141
+ "kind": "field",
81142
+ "name": "name",
81143
+ "privacy": "public",
81144
+ "description": "Name of the form element. Will be read from name attribute.",
81145
+ "type": {
81146
+ "text": "string"
81204
81147
  },
81148
+ "attribute": "name",
81205
81149
  "inheritedFrom": {
81206
- "name": "SbbActionBaseElement",
81207
- "module": "core/base-elements/action-base-element.js"
81150
+ "name": "SbbFormAssociatedMixin",
81151
+ "module": "core/mixins/form-associated-mixin.js"
81208
81152
  }
81209
- }
81210
- ]
81211
- }
81212
- ],
81213
- "exports": [
81214
- {
81215
- "kind": "js",
81216
- "name": "SbbBlockLinkButtonElement",
81217
- "declaration": {
81218
- "name": "SbbBlockLinkButtonElement",
81219
- "module": "link/block-link-button/block-link-button.component.js"
81220
- }
81221
- },
81222
- {
81223
- "kind": "custom-element-definition",
81224
- "name": "sbb-block-link-button",
81225
- "declaration": {
81226
- "name": "SbbBlockLinkButtonElement",
81227
- "module": "link/block-link-button/block-link-button.component.js"
81228
- }
81229
- }
81230
- ]
81231
- },
81232
- {
81233
- "kind": "javascript-module",
81234
- "path": "link/block-link-static/block-link-static.component.js",
81235
- "declarations": [
81236
- {
81237
- "kind": "class",
81238
- "description": "It displays a static link enhanced with the SBB Design.",
81239
- "name": "SbbBlockLinkStaticElement",
81240
- "slots": [
81241
- {
81242
- "description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
81243
- "name": ""
81244
- },
81245
- {
81246
- "description": "Slot used to display the icon, if one is set.",
81247
- "name": "icon"
81248
- }
81249
- ],
81250
- "mixins": [
81251
- {
81252
- "name": "SbbBlockLinkCommonElementMixin",
81253
- "module": "link/common.js"
81254
81153
  },
81255
81154
  {
81256
- "name": "SbbDisabledMixin",
81257
- "module": "core/mixins.js"
81258
- }
81259
- ],
81260
- "superclass": {
81261
- "name": "SbbActionBaseElement",
81262
- "module": "core/base-elements.js"
81263
- },
81264
- "tagName": "sbb-block-link-static",
81265
- "customElement": true,
81266
- "attributes": [
81267
- {
81268
- "name": "icon-placement",
81155
+ "kind": "field",
81156
+ "name": "validity",
81269
81157
  "type": {
81270
- "text": "SbbIconPlacement"
81158
+ "text": "ValidityState"
81271
81159
  },
81272
- "default": "'start'",
81273
- "description": "Moves the icon to the end of the component if set to true.",
81274
- "fieldName": "iconPlacement",
81160
+ "privacy": "public",
81161
+ "description": "Returns the ValidityState object for this element.",
81162
+ "readonly": true,
81275
81163
  "inheritedFrom": {
81276
- "name": "SbbBlockLinkCommonElementMixin",
81277
- "module": "link/common/block-link-common.js"
81164
+ "name": "SbbFormAssociatedMixin",
81165
+ "module": "core/mixins/form-associated-mixin.js"
81278
81166
  }
81279
81167
  },
81280
81168
  {
81281
- "name": "size",
81169
+ "kind": "field",
81170
+ "name": "validationMessage",
81282
81171
  "type": {
81283
- "text": "SbbLinkSize"
81172
+ "text": "string"
81284
81173
  },
81285
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
81286
- "default": "'s' / 'xs' (lean)",
81287
- "fieldName": "size",
81174
+ "privacy": "public",
81175
+ "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.",
81176
+ "readonly": true,
81288
81177
  "inheritedFrom": {
81289
- "name": "SbbLinkCommonElementMixin",
81290
- "module": "link/common/link-common.js"
81178
+ "name": "SbbFormAssociatedMixin",
81179
+ "module": "core/mixins/form-associated-mixin.js"
81291
81180
  }
81292
81181
  },
81293
81182
  {
81294
- "name": "icon-name",
81183
+ "kind": "field",
81184
+ "name": "willValidate",
81295
81185
  "type": {
81296
- "text": "string"
81186
+ "text": "boolean"
81297
81187
  },
81298
- "default": "''",
81299
- "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.",
81300
- "fieldName": "iconName",
81188
+ "privacy": "public",
81189
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
81190
+ "readonly": true,
81301
81191
  "inheritedFrom": {
81302
- "name": "SbbIconNameMixin",
81303
- "module": "icon/icon-name-mixin.js"
81192
+ "name": "SbbFormAssociatedMixin",
81193
+ "module": "core/mixins/form-associated-mixin.js"
81304
81194
  }
81305
81195
  },
81306
81196
  {
81307
- "name": "disabled",
81308
- "description": "Whether the component is disabled.",
81309
- "default": "false",
81197
+ "kind": "field",
81198
+ "name": "_validityStates",
81199
+ "privacy": "private",
81200
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
81201
+ "inheritedFrom": {
81202
+ "name": "SbbFormAssociatedMixin",
81203
+ "module": "core/mixins/form-associated-mixin.js"
81204
+ }
81205
+ },
81206
+ {
81207
+ "kind": "field",
81208
+ "name": "formDisabled",
81310
81209
  "type": {
81311
81210
  "text": "boolean"
81312
81211
  },
81313
- "fieldName": "disabled",
81212
+ "privacy": "protected",
81213
+ "default": "false",
81214
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
81314
81215
  "inheritedFrom": {
81315
- "name": "SbbDisabledMixin",
81316
- "module": "core/mixins/disabled-mixin.js"
81216
+ "name": "SbbFormAssociatedMixin",
81217
+ "module": "core/mixins/form-associated-mixin.js"
81317
81218
  }
81318
- }
81319
- ],
81320
- "members": [
81219
+ },
81321
81220
  {
81322
- "kind": "field",
81323
- "name": "styles",
81324
- "type": {
81325
- "text": "CSSResultGroup"
81221
+ "kind": "method",
81222
+ "name": "checkValidity",
81223
+ "privacy": "public",
81224
+ "return": {
81225
+ "type": {
81226
+ "text": "boolean"
81227
+ }
81228
+ },
81229
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
81230
+ "inheritedFrom": {
81231
+ "name": "SbbFormAssociatedMixin",
81232
+ "module": "core/mixins/form-associated-mixin.js"
81233
+ }
81234
+ },
81235
+ {
81236
+ "kind": "method",
81237
+ "name": "reportValidity",
81238
+ "privacy": "public",
81239
+ "return": {
81240
+ "type": {
81241
+ "text": "boolean"
81242
+ }
81326
81243
  },
81244
+ "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.",
81245
+ "inheritedFrom": {
81246
+ "name": "SbbFormAssociatedMixin",
81247
+ "module": "core/mixins/form-associated-mixin.js"
81248
+ }
81249
+ },
81250
+ {
81251
+ "kind": "method",
81252
+ "name": "setCustomValidity",
81327
81253
  "privacy": "public",
81328
- "static": true,
81329
- "default": "[boxSizingStyles, style, blockStyle]",
81254
+ "return": {
81255
+ "type": {
81256
+ "text": "void"
81257
+ }
81258
+ },
81259
+ "parameters": [
81260
+ {
81261
+ "name": "message",
81262
+ "type": {
81263
+ "text": "string"
81264
+ }
81265
+ }
81266
+ ],
81267
+ "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.",
81330
81268
  "inheritedFrom": {
81331
- "name": "SbbLinkCommonElementMixin",
81332
- "module": "link/common/link-common.js"
81269
+ "name": "SbbFormAssociatedMixin",
81270
+ "module": "core/mixins/form-associated-mixin.js"
81333
81271
  }
81334
81272
  },
81335
81273
  {
81336
- "kind": "field",
81337
- "name": "iconPlacement",
81338
- "type": {
81339
- "text": "SbbIconPlacement"
81274
+ "kind": "method",
81275
+ "name": "_hasDisabledAncestor",
81276
+ "privacy": "private",
81277
+ "return": {
81278
+ "type": {
81279
+ "text": "boolean"
81280
+ }
81340
81281
  },
81341
- "privacy": "public",
81342
- "default": "'start'",
81343
- "description": "Moves the icon to the end of the component if set to true.",
81344
- "attribute": "icon-placement",
81345
- "reflects": true,
81346
81282
  "inheritedFrom": {
81347
- "name": "SbbBlockLinkCommonElementMixin",
81348
- "module": "link/common/block-link-common.js"
81283
+ "name": "SbbFormAssociatedMixin",
81284
+ "module": "core/mixins/form-associated-mixin.js"
81349
81285
  }
81350
81286
  },
81351
81287
  {
81352
81288
  "kind": "method",
81353
- "name": "renderTemplate",
81289
+ "name": "updateFormValue",
81354
81290
  "privacy": "protected",
81355
81291
  "return": {
81356
81292
  "type": {
81357
- "text": "TemplateResult"
81293
+ "text": "void"
81358
81294
  }
81359
81295
  },
81360
- "description": "Override this method to render the component template.",
81296
+ "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",
81361
81297
  "inheritedFrom": {
81362
- "name": "SbbActionBaseElement",
81363
- "module": "core/base-elements/action-base-element.js"
81298
+ "name": "SbbFormAssociatedMixin",
81299
+ "module": "core/mixins/form-associated-mixin.js"
81364
81300
  }
81365
81301
  },
81366
81302
  {
81367
- "kind": "field",
81368
- "name": "size",
81369
- "type": {
81370
- "text": "SbbLinkSize"
81303
+ "kind": "method",
81304
+ "name": "formState",
81305
+ "privacy": "protected",
81306
+ "return": {
81307
+ "type": {
81308
+ "text": "FormRestoreState"
81309
+ }
81371
81310
  },
81372
- "privacy": "public",
81373
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
81374
- "default": "'s' / 'xs' (lean)",
81375
- "attribute": "size",
81376
- "reflects": true,
81377
81311
  "inheritedFrom": {
81378
- "name": "SbbLinkCommonElementMixin",
81379
- "module": "link/common/link-common.js"
81312
+ "name": "SbbFormAssociatedMixin",
81313
+ "module": "core/mixins/form-associated-mixin.js"
81380
81314
  }
81381
81315
  },
81382
81316
  {
81383
- "kind": "field",
81384
- "name": "iconName",
81385
- "type": {
81386
- "text": "string"
81317
+ "kind": "method",
81318
+ "name": "setValidityFlag",
81319
+ "privacy": "protected",
81320
+ "return": {
81321
+ "type": {
81322
+ "text": "void"
81323
+ }
81387
81324
  },
81388
- "privacy": "public",
81389
- "default": "''",
81390
- "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.",
81391
- "attribute": "icon-name",
81325
+ "parameters": [
81326
+ {
81327
+ "name": "flag",
81328
+ "type": {
81329
+ "text": "T"
81330
+ }
81331
+ },
81332
+ {
81333
+ "name": "message",
81334
+ "type": {
81335
+ "text": "string"
81336
+ }
81337
+ },
81338
+ {
81339
+ "name": "flagValue",
81340
+ "optional": true,
81341
+ "type": {
81342
+ "text": "ValidityStateFlags[T]"
81343
+ }
81344
+ }
81345
+ ],
81346
+ "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).",
81392
81347
  "inheritedFrom": {
81393
- "name": "SbbIconNameMixin",
81394
- "module": "icon/icon-name-mixin.js"
81348
+ "name": "SbbFormAssociatedMixin",
81349
+ "module": "core/mixins/form-associated-mixin.js"
81395
81350
  }
81396
81351
  },
81397
81352
  {
81398
81353
  "kind": "method",
81399
- "name": "renderIconSlot",
81354
+ "name": "removeValidityFlag",
81400
81355
  "privacy": "protected",
81401
81356
  "return": {
81402
81357
  "type": {
81403
- "text": "TemplateResult"
81358
+ "text": "void"
81404
81359
  }
81405
81360
  },
81406
81361
  "parameters": [
81407
81362
  {
81408
- "name": "classname",
81409
- "optional": true,
81363
+ "name": "flag",
81410
81364
  "type": {
81411
- "text": "string"
81365
+ "text": "T"
81412
81366
  }
81413
81367
  }
81414
81368
  ],
81369
+ "description": "Removes the validity state flag entry and updates validity state.",
81415
81370
  "inheritedFrom": {
81416
- "name": "SbbIconNameMixin",
81417
- "module": "icon/icon-name-mixin.js"
81371
+ "name": "SbbFormAssociatedMixin",
81372
+ "module": "core/mixins/form-associated-mixin.js"
81418
81373
  }
81419
81374
  },
81420
81375
  {
81421
81376
  "kind": "method",
81422
- "name": "renderIconName",
81377
+ "name": "validate",
81423
81378
  "privacy": "protected",
81424
81379
  "return": {
81425
81380
  "type": {
81426
- "text": "string"
81381
+ "text": "void"
81427
81382
  }
81428
81383
  },
81384
+ "description": "To be called whenever the current element needs to be validated.",
81429
81385
  "inheritedFrom": {
81430
- "name": "SbbIconNameMixin",
81431
- "module": "icon/icon-name-mixin.js"
81386
+ "name": "SbbFormAssociatedMixin",
81387
+ "module": "core/mixins/form-associated-mixin.js"
81432
81388
  }
81433
81389
  },
81434
81390
  {
81435
81391
  "kind": "method",
81436
- "name": "_renderIconName",
81392
+ "name": "shouldValidate",
81393
+ "privacy": "protected",
81394
+ "return": {
81395
+ "type": {
81396
+ "text": "boolean"
81397
+ }
81398
+ },
81399
+ "parameters": [
81400
+ {
81401
+ "name": "name",
81402
+ "type": {
81403
+ "text": "PropertyKey | undefined"
81404
+ }
81405
+ }
81406
+ ],
81407
+ "description": "Whether validation should be run on a property change with the given name.",
81408
+ "inheritedFrom": {
81409
+ "name": "SbbFormAssociatedMixin",
81410
+ "module": "core/mixins/form-associated-mixin.js"
81411
+ }
81412
+ },
81413
+ {
81414
+ "kind": "method",
81415
+ "name": "_setInternalValidity",
81437
81416
  "privacy": "private",
81438
81417
  "return": {
81439
81418
  "type": {
81440
- "text": "string"
81419
+ "text": "void"
81441
81420
  }
81442
81421
  },
81443
81422
  "inheritedFrom": {
81444
- "name": "SbbIconNameMixin",
81445
- "module": "icon/icon-name-mixin.js"
81423
+ "name": "SbbFormAssociatedMixin",
81424
+ "module": "core/mixins/form-associated-mixin.js"
81446
81425
  }
81447
81426
  },
81448
81427
  {
81449
81428
  "kind": "field",
81450
- "name": "disabled",
81451
- "privacy": "public",
81452
- "description": "Whether the component is disabled.",
81453
- "default": "false",
81429
+ "name": "role",
81454
81430
  "type": {
81455
- "text": "boolean"
81431
+ "text": "ElementInternals['role']"
81456
81432
  },
81457
- "attribute": "disabled",
81458
- "reflects": true,
81433
+ "privacy": "public",
81434
+ "static": true,
81435
+ "readonly": true,
81436
+ "default": "'button'",
81459
81437
  "inheritedFrom": {
81460
- "name": "SbbDisabledMixin",
81461
- "module": "core/mixins/disabled-mixin.js"
81438
+ "name": "SbbButtonLikeBaseElement",
81439
+ "module": "core/base-elements/button-base-element.js"
81462
81440
  }
81463
81441
  },
81464
81442
  {
81465
81443
  "kind": "field",
81466
- "name": "#disabled",
81444
+ "name": "_preventScrollOnSpaceKeydown",
81467
81445
  "privacy": "private",
81468
- "type": {
81469
- "text": "boolean"
81470
- },
81471
- "default": "false",
81446
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
81447
+ "parameters": [
81448
+ {
81449
+ "description": "The origin event.",
81450
+ "name": "event"
81451
+ }
81452
+ ],
81472
81453
  "inheritedFrom": {
81473
- "name": "SbbDisabledMixin",
81474
- "module": "core/mixins/disabled-mixin.js"
81454
+ "name": "SbbButtonLikeBaseElement",
81455
+ "module": "core/base-elements/button-base-element.js"
81475
81456
  }
81476
81457
  },
81477
81458
  {
81478
- "kind": "method",
81479
- "name": "isDisabledExternally",
81480
- "privacy": "protected",
81481
- "return": {
81482
- "type": {
81483
- "text": "boolean"
81459
+ "kind": "field",
81460
+ "name": "_removeActiveMarker",
81461
+ "privacy": "private",
81462
+ "inheritedFrom": {
81463
+ "name": "SbbButtonLikeBaseElement",
81464
+ "module": "core/base-elements/button-base-element.js"
81465
+ }
81466
+ },
81467
+ {
81468
+ "kind": "field",
81469
+ "name": "_dispatchClickEventOnSpaceKeyup",
81470
+ "privacy": "private",
81471
+ "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.",
81472
+ "parameters": [
81473
+ {
81474
+ "description": "The origin event.",
81475
+ "name": "event"
81484
81476
  }
81485
- },
81486
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
81477
+ ],
81487
81478
  "inheritedFrom": {
81488
- "name": "SbbDisabledMixin",
81489
- "module": "core/mixins/disabled-mixin.js"
81479
+ "name": "SbbButtonLikeBaseElement",
81480
+ "module": "core/base-elements/button-base-element.js"
81481
+ }
81482
+ },
81483
+ {
81484
+ "kind": "field",
81485
+ "name": "_dispatchClickEvent",
81486
+ "privacy": "private",
81487
+ "inheritedFrom": {
81488
+ "name": "SbbButtonLikeBaseElement",
81489
+ "module": "core/base-elements/button-base-element.js"
81490
81490
  }
81491
81491
  },
81492
81492
  {
@@ -81564,18 +81564,18 @@
81564
81564
  "exports": [
81565
81565
  {
81566
81566
  "kind": "js",
81567
- "name": "SbbBlockLinkStaticElement",
81567
+ "name": "SbbBlockLinkButtonElement",
81568
81568
  "declaration": {
81569
- "name": "SbbBlockLinkStaticElement",
81570
- "module": "link/block-link-static/block-link-static.component.js"
81569
+ "name": "SbbBlockLinkButtonElement",
81570
+ "module": "link/block-link-button/block-link-button.component.js"
81571
81571
  }
81572
81572
  },
81573
81573
  {
81574
81574
  "kind": "custom-element-definition",
81575
- "name": "sbb-block-link-static",
81575
+ "name": "sbb-block-link-button",
81576
81576
  "declaration": {
81577
- "name": "SbbBlockLinkStaticElement",
81578
- "module": "link/block-link-static/block-link-static.component.js"
81577
+ "name": "SbbBlockLinkButtonElement",
81578
+ "module": "link/block-link-button/block-link-button.component.js"
81579
81579
  }
81580
81580
  }
81581
81581
  ]