@sbb-esta/lyne-elements-dev 4.5.1-dev.1772005757 → 4.5.1-dev.1772010259
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.
- package/custom-elements.json +1161 -1161
- package/package.json +2 -2
package/custom-elements.json
CHANGED
|
@@ -80324,15 +80324,15 @@
|
|
|
80324
80324
|
},
|
|
80325
80325
|
{
|
|
80326
80326
|
"kind": "javascript-module",
|
|
80327
|
-
"path": "link/block-link-
|
|
80327
|
+
"path": "link/block-link-button/block-link-button.component.js",
|
|
80328
80328
|
"declarations": [
|
|
80329
80329
|
{
|
|
80330
80330
|
"kind": "class",
|
|
80331
|
-
"description": "It displays a
|
|
80332
|
-
"name": "
|
|
80331
|
+
"description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
|
|
80332
|
+
"name": "SbbBlockLinkButtonElement",
|
|
80333
80333
|
"slots": [
|
|
80334
80334
|
{
|
|
80335
|
-
"description": "Use the unnamed slot to add content to the `sbb-block-link-
|
|
80335
|
+
"description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
|
|
80336
80336
|
"name": ""
|
|
80337
80337
|
},
|
|
80338
80338
|
{
|
|
@@ -80346,15 +80346,15 @@
|
|
|
80346
80346
|
"module": "link/common.js"
|
|
80347
80347
|
},
|
|
80348
80348
|
{
|
|
80349
|
-
"name": "
|
|
80349
|
+
"name": "SbbDisabledTabIndexActionMixin",
|
|
80350
80350
|
"module": "core/mixins.js"
|
|
80351
80351
|
}
|
|
80352
80352
|
],
|
|
80353
80353
|
"superclass": {
|
|
80354
|
-
"name": "
|
|
80354
|
+
"name": "SbbButtonBaseElement",
|
|
80355
80355
|
"module": "core/base-elements.js"
|
|
80356
80356
|
},
|
|
80357
|
-
"tagName": "sbb-block-link-
|
|
80357
|
+
"tagName": "sbb-block-link-button",
|
|
80358
80358
|
"customElement": true,
|
|
80359
80359
|
"attributes": [
|
|
80360
80360
|
{
|
|
@@ -80396,6 +80396,19 @@
|
|
|
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
|
+
},
|
|
80399
80412
|
{
|
|
80400
80413
|
"name": "disabled",
|
|
80401
80414
|
"description": "Whether the component is disabled.",
|
|
@@ -80408,6 +80421,56 @@
|
|
|
80408
80421
|
"name": "SbbDisabledMixin",
|
|
80409
80422
|
"module": "core/mixins/disabled-mixin.js"
|
|
80410
80423
|
}
|
|
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
|
+
}
|
|
80411
80474
|
}
|
|
80412
80475
|
],
|
|
80413
80476
|
"members": [
|
|
@@ -80538,6 +80601,22 @@
|
|
|
80538
80601
|
"module": "icon/icon-name-mixin.js"
|
|
80539
80602
|
}
|
|
80540
80603
|
},
|
|
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
|
+
},
|
|
80541
80620
|
{
|
|
80542
80621
|
"kind": "field",
|
|
80543
80622
|
"name": "disabled",
|
|
@@ -80582,10 +80661,90 @@
|
|
|
80582
80661
|
"module": "core/mixins/disabled-mixin.js"
|
|
80583
80662
|
}
|
|
80584
80663
|
},
|
|
80664
|
+
{
|
|
80665
|
+
"kind": "field",
|
|
80666
|
+
"name": "_elementsOnWhichEnterPressTriggersSubmit",
|
|
80667
|
+
"type": {
|
|
80668
|
+
"text": "array"
|
|
80669
|
+
},
|
|
80670
|
+
"privacy": "private",
|
|
80671
|
+
"readonly": true,
|
|
80672
|
+
"default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
|
|
80673
|
+
"inheritedFrom": {
|
|
80674
|
+
"name": "SbbButtonBaseElement",
|
|
80675
|
+
"module": "core/base-elements/button-base-element.js"
|
|
80676
|
+
}
|
|
80677
|
+
},
|
|
80678
|
+
{
|
|
80679
|
+
"kind": "field",
|
|
80680
|
+
"name": "value",
|
|
80681
|
+
"type": {
|
|
80682
|
+
"text": "string"
|
|
80683
|
+
},
|
|
80684
|
+
"privacy": "public",
|
|
80685
|
+
"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"
|
|
80692
|
+
},
|
|
80693
|
+
{
|
|
80694
|
+
"kind": "field",
|
|
80695
|
+
"name": "type",
|
|
80696
|
+
"privacy": "public",
|
|
80697
|
+
"description": "The type attribute to use for the button.",
|
|
80698
|
+
"default": "'button'",
|
|
80699
|
+
"type": {
|
|
80700
|
+
"text": "SbbButtonType"
|
|
80701
|
+
},
|
|
80702
|
+
"attribute": "type",
|
|
80703
|
+
"inheritedFrom": {
|
|
80704
|
+
"name": "SbbButtonBaseElement",
|
|
80705
|
+
"module": "core/base-elements/button-base-element.js"
|
|
80706
|
+
}
|
|
80707
|
+
},
|
|
80708
|
+
{
|
|
80709
|
+
"kind": "field",
|
|
80710
|
+
"name": "form",
|
|
80711
|
+
"type": {
|
|
80712
|
+
"text": "HTMLFormElement | null"
|
|
80713
|
+
},
|
|
80714
|
+
"privacy": "public",
|
|
80715
|
+
"description": "The `<form>` element to associate the button with.",
|
|
80716
|
+
"inheritedFrom": {
|
|
80717
|
+
"name": "SbbButtonBaseElement",
|
|
80718
|
+
"module": "core/base-elements/button-base-element.js"
|
|
80719
|
+
},
|
|
80720
|
+
"attribute": "form"
|
|
80721
|
+
},
|
|
80722
|
+
{
|
|
80723
|
+
"kind": "field",
|
|
80724
|
+
"name": "_formId",
|
|
80725
|
+
"type": {
|
|
80726
|
+
"text": "string"
|
|
80727
|
+
},
|
|
80728
|
+
"privacy": "private",
|
|
80729
|
+
"default": "''",
|
|
80730
|
+
"inheritedFrom": {
|
|
80731
|
+
"name": "SbbButtonBaseElement",
|
|
80732
|
+
"module": "core/base-elements/button-base-element.js"
|
|
80733
|
+
}
|
|
80734
|
+
},
|
|
80735
|
+
{
|
|
80736
|
+
"kind": "field",
|
|
80737
|
+
"name": "_handleButtonClick",
|
|
80738
|
+
"privacy": "private",
|
|
80739
|
+
"inheritedFrom": {
|
|
80740
|
+
"name": "SbbButtonBaseElement",
|
|
80741
|
+
"module": "core/base-elements/button-base-element.js"
|
|
80742
|
+
}
|
|
80743
|
+
},
|
|
80585
80744
|
{
|
|
80586
80745
|
"kind": "method",
|
|
80587
|
-
"name": "
|
|
80588
|
-
"privacy": "
|
|
80746
|
+
"name": "_requestSubmit",
|
|
80747
|
+
"privacy": "private",
|
|
80589
80748
|
"return": {
|
|
80590
80749
|
"type": {
|
|
80591
80750
|
"text": "void"
|
|
@@ -80593,509 +80752,396 @@
|
|
|
80593
80752
|
},
|
|
80594
80753
|
"parameters": [
|
|
80595
80754
|
{
|
|
80596
|
-
"name": "
|
|
80597
|
-
"type": {
|
|
80598
|
-
"text": "string"
|
|
80599
|
-
}
|
|
80600
|
-
},
|
|
80601
|
-
{
|
|
80602
|
-
"name": "force",
|
|
80603
|
-
"optional": true,
|
|
80755
|
+
"name": "form",
|
|
80604
80756
|
"type": {
|
|
80605
|
-
"text": "
|
|
80757
|
+
"text": "HTMLFormElement"
|
|
80606
80758
|
}
|
|
80607
80759
|
}
|
|
80608
80760
|
],
|
|
80609
80761
|
"inheritedFrom": {
|
|
80610
|
-
"name": "
|
|
80611
|
-
"module": "core/base-elements/
|
|
80762
|
+
"name": "SbbButtonBaseElement",
|
|
80763
|
+
"module": "core/base-elements/button-base-element.js"
|
|
80612
80764
|
}
|
|
80613
80765
|
},
|
|
80614
80766
|
{
|
|
80615
80767
|
"kind": "field",
|
|
80616
|
-
"name": "
|
|
80768
|
+
"name": "_formKeyDown",
|
|
80769
|
+
"privacy": "private",
|
|
80770
|
+
"inheritedFrom": {
|
|
80771
|
+
"name": "SbbButtonBaseElement",
|
|
80772
|
+
"module": "core/base-elements/button-base-element.js"
|
|
80773
|
+
}
|
|
80774
|
+
},
|
|
80775
|
+
{
|
|
80776
|
+
"kind": "field",
|
|
80777
|
+
"name": "formAssociated",
|
|
80617
80778
|
"type": {
|
|
80618
|
-
"text": "boolean
|
|
80779
|
+
"text": "boolean"
|
|
80619
80780
|
},
|
|
80620
|
-
"privacy": "
|
|
80621
|
-
"
|
|
80781
|
+
"privacy": "public",
|
|
80782
|
+
"static": true,
|
|
80783
|
+
"default": "true",
|
|
80622
80784
|
"inheritedFrom": {
|
|
80623
|
-
"name": "
|
|
80624
|
-
"module": "core/
|
|
80785
|
+
"name": "SbbFormAssociatedMixin",
|
|
80786
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
80625
80787
|
}
|
|
80626
80788
|
},
|
|
80627
80789
|
{
|
|
80628
80790
|
"kind": "field",
|
|
80629
|
-
"name": "
|
|
80791
|
+
"name": "name",
|
|
80792
|
+
"privacy": "public",
|
|
80793
|
+
"description": "Name of the form element. Will be read from name attribute.",
|
|
80630
80794
|
"type": {
|
|
80631
|
-
"text": "
|
|
80795
|
+
"text": "string"
|
|
80632
80796
|
},
|
|
80633
|
-
"
|
|
80634
|
-
"readonly": true,
|
|
80797
|
+
"attribute": "name",
|
|
80635
80798
|
"inheritedFrom": {
|
|
80636
|
-
"name": "
|
|
80637
|
-
"module": "core/
|
|
80799
|
+
"name": "SbbFormAssociatedMixin",
|
|
80800
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
80638
80801
|
}
|
|
80639
80802
|
},
|
|
80640
80803
|
{
|
|
80641
|
-
"kind": "
|
|
80642
|
-
"name": "
|
|
80643
|
-
"
|
|
80644
|
-
|
|
80645
|
-
"type": {
|
|
80646
|
-
"text": "void"
|
|
80647
|
-
}
|
|
80804
|
+
"kind": "field",
|
|
80805
|
+
"name": "validity",
|
|
80806
|
+
"type": {
|
|
80807
|
+
"text": "ValidityState"
|
|
80648
80808
|
},
|
|
80809
|
+
"privacy": "public",
|
|
80810
|
+
"description": "Returns the ValidityState object for this element.",
|
|
80811
|
+
"readonly": true,
|
|
80649
80812
|
"inheritedFrom": {
|
|
80650
|
-
"name": "
|
|
80651
|
-
"module": "core/
|
|
80813
|
+
"name": "SbbFormAssociatedMixin",
|
|
80814
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
80652
80815
|
}
|
|
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": ""
|
|
80688
|
-
},
|
|
80689
|
-
{
|
|
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
80816
|
},
|
|
80699
80817
|
{
|
|
80700
|
-
"
|
|
80701
|
-
"
|
|
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",
|
|
80818
|
+
"kind": "field",
|
|
80819
|
+
"name": "validationMessage",
|
|
80713
80820
|
"type": {
|
|
80714
|
-
"text": "
|
|
80821
|
+
"text": "string"
|
|
80715
80822
|
},
|
|
80716
|
-
"
|
|
80717
|
-
"description": "
|
|
80718
|
-
"
|
|
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,
|
|
80719
80826
|
"inheritedFrom": {
|
|
80720
|
-
"name": "
|
|
80721
|
-
"module": "
|
|
80827
|
+
"name": "SbbFormAssociatedMixin",
|
|
80828
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
80722
80829
|
}
|
|
80723
80830
|
},
|
|
80724
80831
|
{
|
|
80725
|
-
"
|
|
80832
|
+
"kind": "field",
|
|
80833
|
+
"name": "willValidate",
|
|
80726
80834
|
"type": {
|
|
80727
|
-
"text": "
|
|
80835
|
+
"text": "boolean"
|
|
80728
80836
|
},
|
|
80729
|
-
"
|
|
80730
|
-
"
|
|
80731
|
-
"
|
|
80837
|
+
"privacy": "public",
|
|
80838
|
+
"description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
|
|
80839
|
+
"readonly": true,
|
|
80732
80840
|
"inheritedFrom": {
|
|
80733
|
-
"name": "
|
|
80734
|
-
"module": "
|
|
80841
|
+
"name": "SbbFormAssociatedMixin",
|
|
80842
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
80735
80843
|
}
|
|
80736
80844
|
},
|
|
80737
80845
|
{
|
|
80738
|
-
"
|
|
80739
|
-
"
|
|
80740
|
-
|
|
80741
|
-
},
|
|
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",
|
|
80846
|
+
"kind": "field",
|
|
80847
|
+
"name": "_validityStates",
|
|
80848
|
+
"privacy": "private",
|
|
80849
|
+
"default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
|
|
80745
80850
|
"inheritedFrom": {
|
|
80746
|
-
"name": "
|
|
80747
|
-
"module": "
|
|
80851
|
+
"name": "SbbFormAssociatedMixin",
|
|
80852
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
80748
80853
|
}
|
|
80749
80854
|
},
|
|
80750
80855
|
{
|
|
80751
|
-
"
|
|
80856
|
+
"kind": "field",
|
|
80857
|
+
"name": "formDisabled",
|
|
80752
80858
|
"type": {
|
|
80753
80859
|
"text": "boolean"
|
|
80754
80860
|
},
|
|
80861
|
+
"privacy": "protected",
|
|
80755
80862
|
"default": "false",
|
|
80756
|
-
"description": "
|
|
80757
|
-
"fieldName": "disabledInteractive",
|
|
80863
|
+
"description": "Whenever a surrounding form or fieldset is changing its disabled state.",
|
|
80758
80864
|
"inheritedFrom": {
|
|
80759
|
-
"name": "
|
|
80760
|
-
"module": "core/mixins/
|
|
80865
|
+
"name": "SbbFormAssociatedMixin",
|
|
80866
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
80761
80867
|
}
|
|
80762
80868
|
},
|
|
80763
80869
|
{
|
|
80764
|
-
"
|
|
80765
|
-
"
|
|
80766
|
-
"
|
|
80767
|
-
"
|
|
80768
|
-
"
|
|
80870
|
+
"kind": "method",
|
|
80871
|
+
"name": "checkValidity",
|
|
80872
|
+
"privacy": "public",
|
|
80873
|
+
"return": {
|
|
80874
|
+
"type": {
|
|
80875
|
+
"text": "boolean"
|
|
80876
|
+
}
|
|
80769
80877
|
},
|
|
80770
|
-
"
|
|
80878
|
+
"description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
|
|
80771
80879
|
"inheritedFrom": {
|
|
80772
|
-
"name": "
|
|
80773
|
-
"module": "core/mixins/
|
|
80880
|
+
"name": "SbbFormAssociatedMixin",
|
|
80881
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
80774
80882
|
}
|
|
80775
80883
|
},
|
|
80776
80884
|
{
|
|
80777
|
-
"
|
|
80778
|
-
"
|
|
80779
|
-
|
|
80885
|
+
"kind": "method",
|
|
80886
|
+
"name": "reportValidity",
|
|
80887
|
+
"privacy": "public",
|
|
80888
|
+
"return": {
|
|
80889
|
+
"type": {
|
|
80890
|
+
"text": "boolean"
|
|
80891
|
+
}
|
|
80780
80892
|
},
|
|
80781
|
-
"
|
|
80782
|
-
"description": "Value of the form element.",
|
|
80783
|
-
"fieldName": "value",
|
|
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.",
|
|
80784
80894
|
"inheritedFrom": {
|
|
80785
|
-
"name": "
|
|
80786
|
-
"module": "core/
|
|
80895
|
+
"name": "SbbFormAssociatedMixin",
|
|
80896
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
80787
80897
|
}
|
|
80788
80898
|
},
|
|
80789
80899
|
{
|
|
80790
|
-
"
|
|
80791
|
-
"
|
|
80792
|
-
"
|
|
80793
|
-
"
|
|
80794
|
-
"
|
|
80900
|
+
"kind": "method",
|
|
80901
|
+
"name": "setCustomValidity",
|
|
80902
|
+
"privacy": "public",
|
|
80903
|
+
"return": {
|
|
80904
|
+
"type": {
|
|
80905
|
+
"text": "void"
|
|
80906
|
+
}
|
|
80795
80907
|
},
|
|
80796
|
-
"
|
|
80908
|
+
"parameters": [
|
|
80909
|
+
{
|
|
80910
|
+
"name": "message",
|
|
80911
|
+
"type": {
|
|
80912
|
+
"text": "string"
|
|
80913
|
+
}
|
|
80914
|
+
}
|
|
80915
|
+
],
|
|
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.",
|
|
80797
80917
|
"inheritedFrom": {
|
|
80798
|
-
"name": "
|
|
80799
|
-
"module": "core/
|
|
80918
|
+
"name": "SbbFormAssociatedMixin",
|
|
80919
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
80800
80920
|
}
|
|
80801
80921
|
},
|
|
80802
80922
|
{
|
|
80803
|
-
"
|
|
80804
|
-
"
|
|
80805
|
-
"
|
|
80806
|
-
|
|
80923
|
+
"kind": "method",
|
|
80924
|
+
"name": "_hasDisabledAncestor",
|
|
80925
|
+
"privacy": "private",
|
|
80926
|
+
"return": {
|
|
80927
|
+
"type": {
|
|
80928
|
+
"text": "boolean"
|
|
80929
|
+
}
|
|
80807
80930
|
},
|
|
80808
|
-
"fieldName": "form",
|
|
80809
80931
|
"inheritedFrom": {
|
|
80810
|
-
"name": "
|
|
80811
|
-
"module": "core/
|
|
80932
|
+
"name": "SbbFormAssociatedMixin",
|
|
80933
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
80812
80934
|
}
|
|
80813
80935
|
},
|
|
80814
80936
|
{
|
|
80815
|
-
"
|
|
80816
|
-
"
|
|
80817
|
-
"
|
|
80818
|
-
|
|
80937
|
+
"kind": "method",
|
|
80938
|
+
"name": "updateFormValue",
|
|
80939
|
+
"privacy": "protected",
|
|
80940
|
+
"return": {
|
|
80941
|
+
"type": {
|
|
80942
|
+
"text": "void"
|
|
80943
|
+
}
|
|
80819
80944
|
},
|
|
80820
|
-
"
|
|
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",
|
|
80821
80946
|
"inheritedFrom": {
|
|
80822
80947
|
"name": "SbbFormAssociatedMixin",
|
|
80823
80948
|
"module": "core/mixins/form-associated-mixin.js"
|
|
80824
80949
|
}
|
|
80825
|
-
}
|
|
80826
|
-
],
|
|
80827
|
-
"members": [
|
|
80828
|
-
{
|
|
80829
|
-
"kind": "field",
|
|
80830
|
-
"name": "styles",
|
|
80831
|
-
"type": {
|
|
80832
|
-
"text": "CSSResultGroup"
|
|
80833
|
-
},
|
|
80834
|
-
"privacy": "public",
|
|
80835
|
-
"static": true,
|
|
80836
|
-
"default": "[boxSizingStyles, style, blockStyle]",
|
|
80837
|
-
"inheritedFrom": {
|
|
80838
|
-
"name": "SbbLinkCommonElementMixin",
|
|
80839
|
-
"module": "link/common/link-common.js"
|
|
80840
|
-
}
|
|
80841
80950
|
},
|
|
80842
80951
|
{
|
|
80843
|
-
"kind": "
|
|
80844
|
-
"name": "
|
|
80845
|
-
"
|
|
80846
|
-
|
|
80952
|
+
"kind": "method",
|
|
80953
|
+
"name": "formState",
|
|
80954
|
+
"privacy": "protected",
|
|
80955
|
+
"return": {
|
|
80956
|
+
"type": {
|
|
80957
|
+
"text": "FormRestoreState"
|
|
80958
|
+
}
|
|
80847
80959
|
},
|
|
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,
|
|
80853
80960
|
"inheritedFrom": {
|
|
80854
|
-
"name": "
|
|
80855
|
-
"module": "
|
|
80961
|
+
"name": "SbbFormAssociatedMixin",
|
|
80962
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
80856
80963
|
}
|
|
80857
80964
|
},
|
|
80858
80965
|
{
|
|
80859
80966
|
"kind": "method",
|
|
80860
|
-
"name": "
|
|
80967
|
+
"name": "setValidityFlag",
|
|
80861
80968
|
"privacy": "protected",
|
|
80862
80969
|
"return": {
|
|
80863
80970
|
"type": {
|
|
80864
|
-
"text": "
|
|
80971
|
+
"text": "void"
|
|
80865
80972
|
}
|
|
80866
80973
|
},
|
|
80867
|
-
"
|
|
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).",
|
|
80868
80996
|
"inheritedFrom": {
|
|
80869
|
-
"name": "
|
|
80870
|
-
"module": "core/
|
|
80871
|
-
}
|
|
80872
|
-
},
|
|
80873
|
-
{
|
|
80874
|
-
"kind": "field",
|
|
80875
|
-
"name": "size",
|
|
80876
|
-
"type": {
|
|
80877
|
-
"text": "SbbLinkSize"
|
|
80878
|
-
},
|
|
80879
|
-
"privacy": "public",
|
|
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"
|
|
80894
|
-
},
|
|
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",
|
|
80899
|
-
"inheritedFrom": {
|
|
80900
|
-
"name": "SbbIconNameMixin",
|
|
80901
|
-
"module": "icon/icon-name-mixin.js"
|
|
80997
|
+
"name": "SbbFormAssociatedMixin",
|
|
80998
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
80902
80999
|
}
|
|
80903
81000
|
},
|
|
80904
81001
|
{
|
|
80905
81002
|
"kind": "method",
|
|
80906
|
-
"name": "
|
|
81003
|
+
"name": "removeValidityFlag",
|
|
80907
81004
|
"privacy": "protected",
|
|
80908
81005
|
"return": {
|
|
80909
81006
|
"type": {
|
|
80910
|
-
"text": "
|
|
81007
|
+
"text": "void"
|
|
80911
81008
|
}
|
|
80912
81009
|
},
|
|
80913
81010
|
"parameters": [
|
|
80914
81011
|
{
|
|
80915
|
-
"name": "
|
|
80916
|
-
"optional": true,
|
|
81012
|
+
"name": "flag",
|
|
80917
81013
|
"type": {
|
|
80918
|
-
"text": "
|
|
81014
|
+
"text": "T"
|
|
80919
81015
|
}
|
|
80920
81016
|
}
|
|
80921
81017
|
],
|
|
81018
|
+
"description": "Removes the validity state flag entry and updates validity state.",
|
|
80922
81019
|
"inheritedFrom": {
|
|
80923
|
-
"name": "
|
|
80924
|
-
"module": "
|
|
81020
|
+
"name": "SbbFormAssociatedMixin",
|
|
81021
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
80925
81022
|
}
|
|
80926
81023
|
},
|
|
80927
81024
|
{
|
|
80928
81025
|
"kind": "method",
|
|
80929
|
-
"name": "
|
|
81026
|
+
"name": "validate",
|
|
80930
81027
|
"privacy": "protected",
|
|
80931
81028
|
"return": {
|
|
80932
81029
|
"type": {
|
|
80933
|
-
"text": "
|
|
81030
|
+
"text": "void"
|
|
80934
81031
|
}
|
|
80935
81032
|
},
|
|
81033
|
+
"description": "To be called whenever the current element needs to be validated.",
|
|
80936
81034
|
"inheritedFrom": {
|
|
80937
|
-
"name": "
|
|
80938
|
-
"module": "
|
|
81035
|
+
"name": "SbbFormAssociatedMixin",
|
|
81036
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
80939
81037
|
}
|
|
80940
81038
|
},
|
|
80941
81039
|
{
|
|
80942
81040
|
"kind": "method",
|
|
80943
|
-
"name": "
|
|
80944
|
-
"privacy": "
|
|
81041
|
+
"name": "shouldValidate",
|
|
81042
|
+
"privacy": "protected",
|
|
80945
81043
|
"return": {
|
|
80946
81044
|
"type": {
|
|
80947
|
-
"text": "
|
|
81045
|
+
"text": "boolean"
|
|
80948
81046
|
}
|
|
80949
81047
|
},
|
|
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.",
|
|
80950
81057
|
"inheritedFrom": {
|
|
80951
|
-
"name": "
|
|
80952
|
-
"module": "
|
|
80953
|
-
}
|
|
80954
|
-
},
|
|
80955
|
-
{
|
|
80956
|
-
"kind": "field",
|
|
80957
|
-
"name": "disabledInteractive",
|
|
80958
|
-
"type": {
|
|
80959
|
-
"text": "boolean"
|
|
80960
|
-
},
|
|
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,
|
|
80966
|
-
"inheritedFrom": {
|
|
80967
|
-
"name": "SbbDisabledInteractiveMixin",
|
|
80968
|
-
"module": "core/mixins/disabled-mixin.js"
|
|
80969
|
-
}
|
|
80970
|
-
},
|
|
80971
|
-
{
|
|
80972
|
-
"kind": "field",
|
|
80973
|
-
"name": "disabled",
|
|
80974
|
-
"privacy": "public",
|
|
80975
|
-
"description": "Whether the component is disabled.",
|
|
80976
|
-
"default": "false",
|
|
80977
|
-
"type": {
|
|
80978
|
-
"text": "boolean"
|
|
80979
|
-
},
|
|
80980
|
-
"attribute": "disabled",
|
|
80981
|
-
"reflects": true,
|
|
80982
|
-
"inheritedFrom": {
|
|
80983
|
-
"name": "SbbDisabledMixin",
|
|
80984
|
-
"module": "core/mixins/disabled-mixin.js"
|
|
80985
|
-
}
|
|
80986
|
-
},
|
|
80987
|
-
{
|
|
80988
|
-
"kind": "field",
|
|
80989
|
-
"name": "#disabled",
|
|
80990
|
-
"privacy": "private",
|
|
80991
|
-
"type": {
|
|
80992
|
-
"text": "boolean"
|
|
80993
|
-
},
|
|
80994
|
-
"default": "false",
|
|
80995
|
-
"inheritedFrom": {
|
|
80996
|
-
"name": "SbbDisabledMixin",
|
|
80997
|
-
"module": "core/mixins/disabled-mixin.js"
|
|
81058
|
+
"name": "SbbFormAssociatedMixin",
|
|
81059
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
80998
81060
|
}
|
|
80999
81061
|
},
|
|
81000
81062
|
{
|
|
81001
81063
|
"kind": "method",
|
|
81002
|
-
"name": "
|
|
81003
|
-
"privacy": "
|
|
81064
|
+
"name": "_setInternalValidity",
|
|
81065
|
+
"privacy": "private",
|
|
81004
81066
|
"return": {
|
|
81005
81067
|
"type": {
|
|
81006
|
-
"text": "
|
|
81068
|
+
"text": "void"
|
|
81007
81069
|
}
|
|
81008
81070
|
},
|
|
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.",
|
|
81010
81071
|
"inheritedFrom": {
|
|
81011
|
-
"name": "
|
|
81012
|
-
"module": "core/mixins/
|
|
81072
|
+
"name": "SbbFormAssociatedMixin",
|
|
81073
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
81013
81074
|
}
|
|
81014
81075
|
},
|
|
81015
81076
|
{
|
|
81016
81077
|
"kind": "field",
|
|
81017
|
-
"name": "
|
|
81078
|
+
"name": "role",
|
|
81018
81079
|
"type": {
|
|
81019
|
-
"text": "
|
|
81080
|
+
"text": "ElementInternals['role']"
|
|
81020
81081
|
},
|
|
81021
|
-
"privacy": "
|
|
81082
|
+
"privacy": "public",
|
|
81083
|
+
"static": true,
|
|
81022
81084
|
"readonly": true,
|
|
81023
|
-
"default": "
|
|
81085
|
+
"default": "'button'",
|
|
81024
81086
|
"inheritedFrom": {
|
|
81025
|
-
"name": "
|
|
81087
|
+
"name": "SbbButtonLikeBaseElement",
|
|
81026
81088
|
"module": "core/base-elements/button-base-element.js"
|
|
81027
81089
|
}
|
|
81028
81090
|
},
|
|
81029
81091
|
{
|
|
81030
81092
|
"kind": "field",
|
|
81031
|
-
"name": "
|
|
81032
|
-
"
|
|
81033
|
-
|
|
81034
|
-
|
|
81035
|
-
|
|
81036
|
-
|
|
81037
|
-
|
|
81038
|
-
|
|
81039
|
-
|
|
81040
|
-
"default": "''",
|
|
81041
|
-
"description": "Value of the form element.",
|
|
81042
|
-
"attribute": "value"
|
|
81043
|
-
},
|
|
81044
|
-
{
|
|
81045
|
-
"kind": "field",
|
|
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",
|
|
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
|
+
],
|
|
81054
81102
|
"inheritedFrom": {
|
|
81055
|
-
"name": "
|
|
81103
|
+
"name": "SbbButtonLikeBaseElement",
|
|
81056
81104
|
"module": "core/base-elements/button-base-element.js"
|
|
81057
81105
|
}
|
|
81058
81106
|
},
|
|
81059
81107
|
{
|
|
81060
81108
|
"kind": "field",
|
|
81061
|
-
"name": "
|
|
81062
|
-
"
|
|
81063
|
-
"text": "HTMLFormElement | null"
|
|
81064
|
-
},
|
|
81065
|
-
"privacy": "public",
|
|
81066
|
-
"description": "The `<form>` element to associate the button with.",
|
|
81109
|
+
"name": "_removeActiveMarker",
|
|
81110
|
+
"privacy": "private",
|
|
81067
81111
|
"inheritedFrom": {
|
|
81068
|
-
"name": "
|
|
81112
|
+
"name": "SbbButtonLikeBaseElement",
|
|
81069
81113
|
"module": "core/base-elements/button-base-element.js"
|
|
81070
|
-
}
|
|
81071
|
-
"attribute": "form"
|
|
81114
|
+
}
|
|
81072
81115
|
},
|
|
81073
81116
|
{
|
|
81074
81117
|
"kind": "field",
|
|
81075
|
-
"name": "
|
|
81076
|
-
"type": {
|
|
81077
|
-
"text": "string"
|
|
81078
|
-
},
|
|
81118
|
+
"name": "_dispatchClickEventOnSpaceKeyup",
|
|
81079
81119
|
"privacy": "private",
|
|
81080
|
-
"
|
|
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
|
+
],
|
|
81081
81127
|
"inheritedFrom": {
|
|
81082
|
-
"name": "
|
|
81128
|
+
"name": "SbbButtonLikeBaseElement",
|
|
81083
81129
|
"module": "core/base-elements/button-base-element.js"
|
|
81084
81130
|
}
|
|
81085
81131
|
},
|
|
81086
81132
|
{
|
|
81087
81133
|
"kind": "field",
|
|
81088
|
-
"name": "
|
|
81134
|
+
"name": "_dispatchClickEvent",
|
|
81089
81135
|
"privacy": "private",
|
|
81090
81136
|
"inheritedFrom": {
|
|
81091
|
-
"name": "
|
|
81137
|
+
"name": "SbbButtonLikeBaseElement",
|
|
81092
81138
|
"module": "core/base-elements/button-base-element.js"
|
|
81093
81139
|
}
|
|
81094
81140
|
},
|
|
81095
81141
|
{
|
|
81096
81142
|
"kind": "method",
|
|
81097
|
-
"name": "
|
|
81098
|
-
"privacy": "
|
|
81143
|
+
"name": "toggleState",
|
|
81144
|
+
"privacy": "protected",
|
|
81099
81145
|
"return": {
|
|
81100
81146
|
"type": {
|
|
81101
81147
|
"text": "void"
|
|
@@ -81103,390 +81149,344 @@
|
|
|
81103
81149
|
},
|
|
81104
81150
|
"parameters": [
|
|
81105
81151
|
{
|
|
81106
|
-
"name": "
|
|
81152
|
+
"name": "value",
|
|
81107
81153
|
"type": {
|
|
81108
|
-
"text": "
|
|
81154
|
+
"text": "string"
|
|
81155
|
+
}
|
|
81156
|
+
},
|
|
81157
|
+
{
|
|
81158
|
+
"name": "force",
|
|
81159
|
+
"optional": true,
|
|
81160
|
+
"type": {
|
|
81161
|
+
"text": "boolean"
|
|
81109
81162
|
}
|
|
81110
81163
|
}
|
|
81111
81164
|
],
|
|
81112
81165
|
"inheritedFrom": {
|
|
81113
|
-
"name": "
|
|
81114
|
-
"module": "core/base-elements/
|
|
81166
|
+
"name": "SbbActionBaseElement",
|
|
81167
|
+
"module": "core/base-elements/action-base-element.js"
|
|
81115
81168
|
}
|
|
81116
81169
|
},
|
|
81117
81170
|
{
|
|
81118
81171
|
"kind": "field",
|
|
81119
|
-
"name": "
|
|
81120
|
-
"
|
|
81172
|
+
"name": "maybeDisabled",
|
|
81173
|
+
"type": {
|
|
81174
|
+
"text": "boolean | undefined"
|
|
81175
|
+
},
|
|
81176
|
+
"privacy": "protected",
|
|
81177
|
+
"readonly": true,
|
|
81121
81178
|
"inheritedFrom": {
|
|
81122
|
-
"name": "
|
|
81123
|
-
"module": "core/base-elements/
|
|
81179
|
+
"name": "SbbActionBaseElement",
|
|
81180
|
+
"module": "core/base-elements/action-base-element.js"
|
|
81124
81181
|
}
|
|
81125
81182
|
},
|
|
81126
81183
|
{
|
|
81127
81184
|
"kind": "field",
|
|
81128
|
-
"name": "
|
|
81185
|
+
"name": "maybeDisabledInteractive",
|
|
81129
81186
|
"type": {
|
|
81130
|
-
"text": "boolean"
|
|
81187
|
+
"text": "boolean | undefined"
|
|
81131
81188
|
},
|
|
81132
|
-
"privacy": "
|
|
81133
|
-
"
|
|
81134
|
-
"default": "true",
|
|
81189
|
+
"privacy": "protected",
|
|
81190
|
+
"readonly": true,
|
|
81135
81191
|
"inheritedFrom": {
|
|
81136
|
-
"name": "
|
|
81137
|
-
"module": "core/
|
|
81192
|
+
"name": "SbbActionBaseElement",
|
|
81193
|
+
"module": "core/base-elements/action-base-element.js"
|
|
81138
81194
|
}
|
|
81139
81195
|
},
|
|
81140
81196
|
{
|
|
81141
|
-
"kind": "
|
|
81142
|
-
"name": "
|
|
81143
|
-
"privacy": "
|
|
81144
|
-
"
|
|
81145
|
-
|
|
81146
|
-
|
|
81197
|
+
"kind": "method",
|
|
81198
|
+
"name": "setupBaseEventHandlers",
|
|
81199
|
+
"privacy": "protected",
|
|
81200
|
+
"return": {
|
|
81201
|
+
"type": {
|
|
81202
|
+
"text": "void"
|
|
81203
|
+
}
|
|
81147
81204
|
},
|
|
81148
|
-
"attribute": "name",
|
|
81149
81205
|
"inheritedFrom": {
|
|
81150
|
-
"name": "
|
|
81151
|
-
"module": "core/
|
|
81206
|
+
"name": "SbbActionBaseElement",
|
|
81207
|
+
"module": "core/base-elements/action-base-element.js"
|
|
81152
81208
|
}
|
|
81153
|
-
}
|
|
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": [
|
|
81154
81241
|
{
|
|
81155
|
-
"
|
|
81156
|
-
"name": "
|
|
81157
|
-
"type": {
|
|
81158
|
-
"text": "ValidityState"
|
|
81159
|
-
},
|
|
81160
|
-
"privacy": "public",
|
|
81161
|
-
"description": "Returns the ValidityState object for this element.",
|
|
81162
|
-
"readonly": true,
|
|
81163
|
-
"inheritedFrom": {
|
|
81164
|
-
"name": "SbbFormAssociatedMixin",
|
|
81165
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
81166
|
-
}
|
|
81242
|
+
"description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
|
|
81243
|
+
"name": ""
|
|
81167
81244
|
},
|
|
81168
81245
|
{
|
|
81169
|
-
"
|
|
81170
|
-
"name": "
|
|
81171
|
-
|
|
81172
|
-
|
|
81173
|
-
|
|
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,
|
|
81177
|
-
"inheritedFrom": {
|
|
81178
|
-
"name": "SbbFormAssociatedMixin",
|
|
81179
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
81180
|
-
}
|
|
81181
|
-
},
|
|
81246
|
+
"description": "Slot used to display the icon, if one is set.",
|
|
81247
|
+
"name": "icon"
|
|
81248
|
+
}
|
|
81249
|
+
],
|
|
81250
|
+
"mixins": [
|
|
81182
81251
|
{
|
|
81183
|
-
"
|
|
81184
|
-
"
|
|
81185
|
-
"type": {
|
|
81186
|
-
"text": "boolean"
|
|
81187
|
-
},
|
|
81188
|
-
"privacy": "public",
|
|
81189
|
-
"description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
|
|
81190
|
-
"readonly": true,
|
|
81191
|
-
"inheritedFrom": {
|
|
81192
|
-
"name": "SbbFormAssociatedMixin",
|
|
81193
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
81194
|
-
}
|
|
81252
|
+
"name": "SbbBlockLinkCommonElementMixin",
|
|
81253
|
+
"module": "link/common.js"
|
|
81195
81254
|
},
|
|
81196
81255
|
{
|
|
81197
|
-
"
|
|
81198
|
-
"
|
|
81199
|
-
|
|
81200
|
-
|
|
81201
|
-
|
|
81202
|
-
|
|
81203
|
-
|
|
81204
|
-
|
|
81205
|
-
|
|
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": [
|
|
81206
81267
|
{
|
|
81207
|
-
"
|
|
81208
|
-
"name": "formDisabled",
|
|
81268
|
+
"name": "icon-placement",
|
|
81209
81269
|
"type": {
|
|
81210
|
-
"text": "
|
|
81211
|
-
},
|
|
81212
|
-
"privacy": "protected",
|
|
81213
|
-
"default": "false",
|
|
81214
|
-
"description": "Whenever a surrounding form or fieldset is changing its disabled state.",
|
|
81215
|
-
"inheritedFrom": {
|
|
81216
|
-
"name": "SbbFormAssociatedMixin",
|
|
81217
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
81218
|
-
}
|
|
81219
|
-
},
|
|
81220
|
-
{
|
|
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
|
-
}
|
|
81270
|
+
"text": "SbbIconPlacement"
|
|
81243
81271
|
},
|
|
81244
|
-
"
|
|
81272
|
+
"default": "'start'",
|
|
81273
|
+
"description": "Moves the icon to the end of the component if set to true.",
|
|
81274
|
+
"fieldName": "iconPlacement",
|
|
81245
81275
|
"inheritedFrom": {
|
|
81246
|
-
"name": "
|
|
81247
|
-
"module": "
|
|
81276
|
+
"name": "SbbBlockLinkCommonElementMixin",
|
|
81277
|
+
"module": "link/common/block-link-common.js"
|
|
81248
81278
|
}
|
|
81249
81279
|
},
|
|
81250
81280
|
{
|
|
81251
|
-
"
|
|
81252
|
-
"
|
|
81253
|
-
|
|
81254
|
-
"return": {
|
|
81255
|
-
"type": {
|
|
81256
|
-
"text": "void"
|
|
81257
|
-
}
|
|
81281
|
+
"name": "size",
|
|
81282
|
+
"type": {
|
|
81283
|
+
"text": "SbbLinkSize"
|
|
81258
81284
|
},
|
|
81259
|
-
"
|
|
81260
|
-
|
|
81261
|
-
|
|
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.",
|
|
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",
|
|
81268
81288
|
"inheritedFrom": {
|
|
81269
|
-
"name": "
|
|
81270
|
-
"module": "
|
|
81289
|
+
"name": "SbbLinkCommonElementMixin",
|
|
81290
|
+
"module": "link/common/link-common.js"
|
|
81271
81291
|
}
|
|
81272
81292
|
},
|
|
81273
81293
|
{
|
|
81274
|
-
"
|
|
81275
|
-
"
|
|
81276
|
-
|
|
81277
|
-
"return": {
|
|
81278
|
-
"type": {
|
|
81279
|
-
"text": "boolean"
|
|
81280
|
-
}
|
|
81294
|
+
"name": "icon-name",
|
|
81295
|
+
"type": {
|
|
81296
|
+
"text": "string"
|
|
81281
81297
|
},
|
|
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",
|
|
81282
81301
|
"inheritedFrom": {
|
|
81283
|
-
"name": "
|
|
81284
|
-
"module": "
|
|
81302
|
+
"name": "SbbIconNameMixin",
|
|
81303
|
+
"module": "icon/icon-name-mixin.js"
|
|
81285
81304
|
}
|
|
81286
81305
|
},
|
|
81287
81306
|
{
|
|
81288
|
-
"
|
|
81289
|
-
"
|
|
81290
|
-
"
|
|
81291
|
-
"
|
|
81292
|
-
"
|
|
81293
|
-
"text": "void"
|
|
81294
|
-
}
|
|
81307
|
+
"name": "disabled",
|
|
81308
|
+
"description": "Whether the component is disabled.",
|
|
81309
|
+
"default": "false",
|
|
81310
|
+
"type": {
|
|
81311
|
+
"text": "boolean"
|
|
81295
81312
|
},
|
|
81296
|
-
"
|
|
81313
|
+
"fieldName": "disabled",
|
|
81297
81314
|
"inheritedFrom": {
|
|
81298
|
-
"name": "
|
|
81299
|
-
"module": "core/mixins/
|
|
81315
|
+
"name": "SbbDisabledMixin",
|
|
81316
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
81300
81317
|
}
|
|
81301
|
-
}
|
|
81318
|
+
}
|
|
81319
|
+
],
|
|
81320
|
+
"members": [
|
|
81302
81321
|
{
|
|
81303
|
-
"kind": "
|
|
81304
|
-
"name": "
|
|
81305
|
-
"
|
|
81306
|
-
|
|
81307
|
-
"type": {
|
|
81308
|
-
"text": "FormRestoreState"
|
|
81309
|
-
}
|
|
81322
|
+
"kind": "field",
|
|
81323
|
+
"name": "styles",
|
|
81324
|
+
"type": {
|
|
81325
|
+
"text": "CSSResultGroup"
|
|
81310
81326
|
},
|
|
81327
|
+
"privacy": "public",
|
|
81328
|
+
"static": true,
|
|
81329
|
+
"default": "[boxSizingStyles, style, blockStyle]",
|
|
81311
81330
|
"inheritedFrom": {
|
|
81312
|
-
"name": "
|
|
81313
|
-
"module": "
|
|
81331
|
+
"name": "SbbLinkCommonElementMixin",
|
|
81332
|
+
"module": "link/common/link-common.js"
|
|
81314
81333
|
}
|
|
81315
81334
|
},
|
|
81316
81335
|
{
|
|
81317
|
-
"kind": "
|
|
81318
|
-
"name": "
|
|
81319
|
-
"
|
|
81320
|
-
|
|
81321
|
-
|
|
81322
|
-
|
|
81323
|
-
|
|
81324
|
-
|
|
81325
|
-
"
|
|
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).",
|
|
81336
|
+
"kind": "field",
|
|
81337
|
+
"name": "iconPlacement",
|
|
81338
|
+
"type": {
|
|
81339
|
+
"text": "SbbIconPlacement"
|
|
81340
|
+
},
|
|
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,
|
|
81347
81346
|
"inheritedFrom": {
|
|
81348
|
-
"name": "
|
|
81349
|
-
"module": "
|
|
81347
|
+
"name": "SbbBlockLinkCommonElementMixin",
|
|
81348
|
+
"module": "link/common/block-link-common.js"
|
|
81350
81349
|
}
|
|
81351
81350
|
},
|
|
81352
81351
|
{
|
|
81353
81352
|
"kind": "method",
|
|
81354
|
-
"name": "
|
|
81353
|
+
"name": "renderTemplate",
|
|
81355
81354
|
"privacy": "protected",
|
|
81356
81355
|
"return": {
|
|
81357
81356
|
"type": {
|
|
81358
|
-
"text": "
|
|
81357
|
+
"text": "TemplateResult"
|
|
81359
81358
|
}
|
|
81360
81359
|
},
|
|
81361
|
-
"
|
|
81362
|
-
{
|
|
81363
|
-
"name": "flag",
|
|
81364
|
-
"type": {
|
|
81365
|
-
"text": "T"
|
|
81366
|
-
}
|
|
81367
|
-
}
|
|
81368
|
-
],
|
|
81369
|
-
"description": "Removes the validity state flag entry and updates validity state.",
|
|
81360
|
+
"description": "Override this method to render the component template.",
|
|
81370
81361
|
"inheritedFrom": {
|
|
81371
|
-
"name": "
|
|
81372
|
-
"module": "core/
|
|
81362
|
+
"name": "SbbActionBaseElement",
|
|
81363
|
+
"module": "core/base-elements/action-base-element.js"
|
|
81373
81364
|
}
|
|
81374
81365
|
},
|
|
81375
81366
|
{
|
|
81376
|
-
"kind": "
|
|
81377
|
-
"name": "
|
|
81378
|
-
"
|
|
81379
|
-
|
|
81380
|
-
"type": {
|
|
81381
|
-
"text": "void"
|
|
81382
|
-
}
|
|
81367
|
+
"kind": "field",
|
|
81368
|
+
"name": "size",
|
|
81369
|
+
"type": {
|
|
81370
|
+
"text": "SbbLinkSize"
|
|
81383
81371
|
},
|
|
81384
|
-
"
|
|
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,
|
|
81385
81377
|
"inheritedFrom": {
|
|
81386
|
-
"name": "
|
|
81387
|
-
"module": "
|
|
81378
|
+
"name": "SbbLinkCommonElementMixin",
|
|
81379
|
+
"module": "link/common/link-common.js"
|
|
81380
|
+
}
|
|
81381
|
+
},
|
|
81382
|
+
{
|
|
81383
|
+
"kind": "field",
|
|
81384
|
+
"name": "iconName",
|
|
81385
|
+
"type": {
|
|
81386
|
+
"text": "string"
|
|
81387
|
+
},
|
|
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",
|
|
81392
|
+
"inheritedFrom": {
|
|
81393
|
+
"name": "SbbIconNameMixin",
|
|
81394
|
+
"module": "icon/icon-name-mixin.js"
|
|
81388
81395
|
}
|
|
81389
81396
|
},
|
|
81390
81397
|
{
|
|
81391
81398
|
"kind": "method",
|
|
81392
|
-
"name": "
|
|
81399
|
+
"name": "renderIconSlot",
|
|
81393
81400
|
"privacy": "protected",
|
|
81394
81401
|
"return": {
|
|
81395
81402
|
"type": {
|
|
81396
|
-
"text": "
|
|
81403
|
+
"text": "TemplateResult"
|
|
81397
81404
|
}
|
|
81398
81405
|
},
|
|
81399
81406
|
"parameters": [
|
|
81400
81407
|
{
|
|
81401
|
-
"name": "
|
|
81408
|
+
"name": "classname",
|
|
81409
|
+
"optional": true,
|
|
81402
81410
|
"type": {
|
|
81403
|
-
"text": "
|
|
81411
|
+
"text": "string"
|
|
81404
81412
|
}
|
|
81405
81413
|
}
|
|
81406
81414
|
],
|
|
81407
|
-
"description": "Whether validation should be run on a property change with the given name.",
|
|
81408
81415
|
"inheritedFrom": {
|
|
81409
|
-
"name": "
|
|
81410
|
-
"module": "
|
|
81416
|
+
"name": "SbbIconNameMixin",
|
|
81417
|
+
"module": "icon/icon-name-mixin.js"
|
|
81411
81418
|
}
|
|
81412
81419
|
},
|
|
81413
81420
|
{
|
|
81414
81421
|
"kind": "method",
|
|
81415
|
-
"name": "
|
|
81416
|
-
"privacy": "
|
|
81422
|
+
"name": "renderIconName",
|
|
81423
|
+
"privacy": "protected",
|
|
81417
81424
|
"return": {
|
|
81418
81425
|
"type": {
|
|
81419
|
-
"text": "
|
|
81426
|
+
"text": "string"
|
|
81420
81427
|
}
|
|
81421
81428
|
},
|
|
81422
81429
|
"inheritedFrom": {
|
|
81423
|
-
"name": "
|
|
81424
|
-
"module": "
|
|
81425
|
-
}
|
|
81426
|
-
},
|
|
81427
|
-
{
|
|
81428
|
-
"kind": "field",
|
|
81429
|
-
"name": "role",
|
|
81430
|
-
"type": {
|
|
81431
|
-
"text": "ElementInternals['role']"
|
|
81432
|
-
},
|
|
81433
|
-
"privacy": "public",
|
|
81434
|
-
"static": true,
|
|
81435
|
-
"readonly": true,
|
|
81436
|
-
"default": "'button'",
|
|
81437
|
-
"inheritedFrom": {
|
|
81438
|
-
"name": "SbbButtonLikeBaseElement",
|
|
81439
|
-
"module": "core/base-elements/button-base-element.js"
|
|
81430
|
+
"name": "SbbIconNameMixin",
|
|
81431
|
+
"module": "icon/icon-name-mixin.js"
|
|
81440
81432
|
}
|
|
81441
81433
|
},
|
|
81442
81434
|
{
|
|
81443
|
-
"kind": "
|
|
81444
|
-
"name": "
|
|
81435
|
+
"kind": "method",
|
|
81436
|
+
"name": "_renderIconName",
|
|
81445
81437
|
"privacy": "private",
|
|
81446
|
-
"
|
|
81447
|
-
|
|
81448
|
-
|
|
81449
|
-
"description": "The origin event.",
|
|
81450
|
-
"name": "event"
|
|
81438
|
+
"return": {
|
|
81439
|
+
"type": {
|
|
81440
|
+
"text": "string"
|
|
81451
81441
|
}
|
|
81452
|
-
|
|
81442
|
+
},
|
|
81453
81443
|
"inheritedFrom": {
|
|
81454
|
-
"name": "
|
|
81455
|
-
"module": "
|
|
81444
|
+
"name": "SbbIconNameMixin",
|
|
81445
|
+
"module": "icon/icon-name-mixin.js"
|
|
81456
81446
|
}
|
|
81457
81447
|
},
|
|
81458
81448
|
{
|
|
81459
81449
|
"kind": "field",
|
|
81460
|
-
"name": "
|
|
81461
|
-
"privacy": "
|
|
81450
|
+
"name": "disabled",
|
|
81451
|
+
"privacy": "public",
|
|
81452
|
+
"description": "Whether the component is disabled.",
|
|
81453
|
+
"default": "false",
|
|
81454
|
+
"type": {
|
|
81455
|
+
"text": "boolean"
|
|
81456
|
+
},
|
|
81457
|
+
"attribute": "disabled",
|
|
81458
|
+
"reflects": true,
|
|
81462
81459
|
"inheritedFrom": {
|
|
81463
|
-
"name": "
|
|
81464
|
-
"module": "core/
|
|
81460
|
+
"name": "SbbDisabledMixin",
|
|
81461
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
81465
81462
|
}
|
|
81466
81463
|
},
|
|
81467
81464
|
{
|
|
81468
81465
|
"kind": "field",
|
|
81469
|
-
"name": "
|
|
81466
|
+
"name": "#disabled",
|
|
81470
81467
|
"privacy": "private",
|
|
81471
|
-
"
|
|
81472
|
-
|
|
81473
|
-
|
|
81474
|
-
|
|
81475
|
-
"name": "event"
|
|
81476
|
-
}
|
|
81477
|
-
],
|
|
81468
|
+
"type": {
|
|
81469
|
+
"text": "boolean"
|
|
81470
|
+
},
|
|
81471
|
+
"default": "false",
|
|
81478
81472
|
"inheritedFrom": {
|
|
81479
|
-
"name": "
|
|
81480
|
-
"module": "core/
|
|
81473
|
+
"name": "SbbDisabledMixin",
|
|
81474
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
81481
81475
|
}
|
|
81482
81476
|
},
|
|
81483
81477
|
{
|
|
81484
|
-
"kind": "
|
|
81485
|
-
"name": "
|
|
81486
|
-
"privacy": "
|
|
81478
|
+
"kind": "method",
|
|
81479
|
+
"name": "isDisabledExternally",
|
|
81480
|
+
"privacy": "protected",
|
|
81481
|
+
"return": {
|
|
81482
|
+
"type": {
|
|
81483
|
+
"text": "boolean"
|
|
81484
|
+
}
|
|
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.",
|
|
81487
81487
|
"inheritedFrom": {
|
|
81488
|
-
"name": "
|
|
81489
|
-
"module": "core/
|
|
81488
|
+
"name": "SbbDisabledMixin",
|
|
81489
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
81490
81490
|
}
|
|
81491
81491
|
},
|
|
81492
81492
|
{
|
|
@@ -81564,18 +81564,18 @@
|
|
|
81564
81564
|
"exports": [
|
|
81565
81565
|
{
|
|
81566
81566
|
"kind": "js",
|
|
81567
|
-
"name": "
|
|
81567
|
+
"name": "SbbBlockLinkStaticElement",
|
|
81568
81568
|
"declaration": {
|
|
81569
|
-
"name": "
|
|
81570
|
-
"module": "link/block-link-
|
|
81569
|
+
"name": "SbbBlockLinkStaticElement",
|
|
81570
|
+
"module": "link/block-link-static/block-link-static.component.js"
|
|
81571
81571
|
}
|
|
81572
81572
|
},
|
|
81573
81573
|
{
|
|
81574
81574
|
"kind": "custom-element-definition",
|
|
81575
|
-
"name": "sbb-block-link-
|
|
81575
|
+
"name": "sbb-block-link-static",
|
|
81576
81576
|
"declaration": {
|
|
81577
|
-
"name": "
|
|
81578
|
-
"module": "link/block-link-
|
|
81577
|
+
"name": "SbbBlockLinkStaticElement",
|
|
81578
|
+
"module": "link/block-link-static/block-link-static.component.js"
|
|
81579
81579
|
}
|
|
81580
81580
|
}
|
|
81581
81581
|
]
|
|
@@ -109800,16 +109800,20 @@
|
|
|
109800
109800
|
},
|
|
109801
109801
|
{
|
|
109802
109802
|
"kind": "javascript-module",
|
|
109803
|
-
"path": "toggle/toggle/toggle.component.js",
|
|
109803
|
+
"path": "toggle/toggle-option/toggle-option.component.js",
|
|
109804
109804
|
"declarations": [
|
|
109805
109805
|
{
|
|
109806
109806
|
"kind": "class",
|
|
109807
|
-
"description": "It
|
|
109808
|
-
"name": "
|
|
109807
|
+
"description": "It displays a toggle option within a `sbb-toggle`.",
|
|
109808
|
+
"name": "SbbToggleOptionElement",
|
|
109809
109809
|
"slots": [
|
|
109810
109810
|
{
|
|
109811
|
-
"description": "Use the unnamed slot to add
|
|
109811
|
+
"description": "Use the unnamed slot to add content to the label of the toggle option.",
|
|
109812
109812
|
"name": ""
|
|
109813
|
+
},
|
|
109814
|
+
{
|
|
109815
|
+
"description": "Slot used to render the `sbb-icon`.",
|
|
109816
|
+
"name": "icon"
|
|
109813
109817
|
}
|
|
109814
109818
|
],
|
|
109815
109819
|
"members": [
|
|
@@ -109821,126 +109825,54 @@
|
|
|
109821
109825
|
},
|
|
109822
109826
|
"privacy": "public",
|
|
109823
109827
|
"static": true,
|
|
109824
|
-
"readonly": true,
|
|
109825
|
-
"default": "'
|
|
109826
|
-
},
|
|
109827
|
-
{
|
|
109828
|
-
"kind": "field",
|
|
109829
|
-
"name": "events",
|
|
109830
|
-
"privacy": "public",
|
|
109831
|
-
"static": true,
|
|
109832
|
-
"readonly": true,
|
|
109833
|
-
"default": "{ change: 'change', }",
|
|
109834
|
-
"type": {
|
|
109835
|
-
"text": "{\n change: 'change',\n }"
|
|
109836
|
-
}
|
|
109837
|
-
},
|
|
109838
|
-
{
|
|
109839
|
-
"kind": "field",
|
|
109840
|
-
"name": "even",
|
|
109841
|
-
"type": {
|
|
109842
|
-
"text": "boolean"
|
|
109843
|
-
},
|
|
109844
|
-
"privacy": "public",
|
|
109845
|
-
"default": "false",
|
|
109846
|
-
"description": "If true, set the width of the component fixed; if false,\nthe width is dynamic based on the label of the sbb-toggle-option.",
|
|
109847
|
-
"attribute": "even",
|
|
109848
|
-
"reflects": true
|
|
109849
|
-
},
|
|
109850
|
-
{
|
|
109851
|
-
"kind": "field",
|
|
109852
|
-
"name": "size",
|
|
109853
|
-
"type": {
|
|
109854
|
-
"text": "'s' | 'm'"
|
|
109855
|
-
},
|
|
109856
|
-
"privacy": "public",
|
|
109857
|
-
"description": "Size variant, either m or s.",
|
|
109858
|
-
"default": "'m' / 's' (lean)",
|
|
109859
|
-
"attribute": "size",
|
|
109860
|
-
"reflects": true
|
|
109861
|
-
},
|
|
109862
|
-
{
|
|
109863
|
-
"kind": "field",
|
|
109864
|
-
"name": "value",
|
|
109865
|
-
"type": {
|
|
109866
|
-
"text": "(T = string) | null"
|
|
109867
|
-
},
|
|
109868
|
-
"privacy": "public",
|
|
109869
|
-
"description": "The value of the toggle. It needs to be mutable since it is updated whenever\na new option is selected (see the `onToggleOptionSelect()` method).",
|
|
109870
|
-
"attribute": "value",
|
|
109871
|
-
"inheritedFrom": {
|
|
109872
|
-
"name": "SbbFormAssociatedMixin",
|
|
109873
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
109874
|
-
}
|
|
109875
|
-
},
|
|
109876
|
-
{
|
|
109877
|
-
"kind": "field",
|
|
109878
|
-
"name": "_fallbackValue",
|
|
109879
|
-
"type": {
|
|
109880
|
-
"text": "T | null"
|
|
109881
|
-
},
|
|
109882
|
-
"privacy": "private",
|
|
109883
|
-
"default": "null"
|
|
109828
|
+
"readonly": true,
|
|
109829
|
+
"default": "'radio'"
|
|
109884
109830
|
},
|
|
109885
109831
|
{
|
|
109886
109832
|
"kind": "field",
|
|
109887
|
-
"name": "
|
|
109833
|
+
"name": "checked",
|
|
109888
109834
|
"type": {
|
|
109889
|
-
"text": "
|
|
109835
|
+
"text": "boolean"
|
|
109890
109836
|
},
|
|
109891
109837
|
"privacy": "public",
|
|
109892
|
-
"
|
|
109893
|
-
"
|
|
109838
|
+
"default": "false",
|
|
109839
|
+
"description": "Whether the toggle-option is checked.",
|
|
109840
|
+
"attribute": "checked",
|
|
109841
|
+
"reflects": true
|
|
109894
109842
|
},
|
|
109895
109843
|
{
|
|
109896
|
-
"kind": "
|
|
109897
|
-
"name": "
|
|
109898
|
-
"
|
|
109899
|
-
|
|
109900
|
-
"type": {
|
|
109901
|
-
"text": "Promise<T>"
|
|
109902
|
-
}
|
|
109844
|
+
"kind": "field",
|
|
109845
|
+
"name": "value",
|
|
109846
|
+
"type": {
|
|
109847
|
+
"text": "(T = string) | null"
|
|
109903
109848
|
},
|
|
109904
|
-
"
|
|
109905
|
-
|
|
109906
|
-
|
|
109907
|
-
|
|
109908
|
-
"text": "FormData"
|
|
109909
|
-
}
|
|
109910
|
-
}
|
|
109911
|
-
]
|
|
109849
|
+
"privacy": "public",
|
|
109850
|
+
"default": "null",
|
|
109851
|
+
"description": "Value of toggle-option.",
|
|
109852
|
+
"attribute": "value"
|
|
109912
109853
|
},
|
|
109913
109854
|
{
|
|
109914
|
-
"kind": "
|
|
109915
|
-
"name": "
|
|
109855
|
+
"kind": "field",
|
|
109856
|
+
"name": "_toggle",
|
|
109857
|
+
"type": {
|
|
109858
|
+
"text": "SbbToggleElement | null"
|
|
109859
|
+
},
|
|
109916
109860
|
"privacy": "private",
|
|
109917
|
-
"
|
|
109918
|
-
"type": {
|
|
109919
|
-
"text": "void"
|
|
109920
|
-
}
|
|
109921
|
-
}
|
|
109861
|
+
"default": "null"
|
|
109922
109862
|
},
|
|
109923
109863
|
{
|
|
109924
109864
|
"kind": "method",
|
|
109925
|
-
"name": "
|
|
109865
|
+
"name": "_uncheckOtherOptions",
|
|
109926
109866
|
"privacy": "private",
|
|
109927
109867
|
"return": {
|
|
109928
109868
|
"type": {
|
|
109929
109869
|
"text": "void"
|
|
109930
109870
|
}
|
|
109931
|
-
}
|
|
109932
|
-
"parameters": [
|
|
109933
|
-
{
|
|
109934
|
-
"name": "value",
|
|
109935
|
-
"type": {
|
|
109936
|
-
"text": "T | null"
|
|
109937
|
-
}
|
|
109938
|
-
}
|
|
109939
|
-
]
|
|
109871
|
+
}
|
|
109940
109872
|
},
|
|
109941
109873
|
{
|
|
109942
109874
|
"kind": "method",
|
|
109943
|
-
"name": "
|
|
109875
|
+
"name": "_handleDisabledChange",
|
|
109944
109876
|
"privacy": "private",
|
|
109945
109877
|
"return": {
|
|
109946
109878
|
"type": {
|
|
@@ -109956,44 +109888,17 @@
|
|
|
109956
109888
|
"type": {
|
|
109957
109889
|
"text": "void"
|
|
109958
109890
|
}
|
|
109959
|
-
}
|
|
109960
|
-
"description": "Called on user interaction (click or keyboard)"
|
|
109961
|
-
},
|
|
109962
|
-
{
|
|
109963
|
-
"kind": "method",
|
|
109964
|
-
"name": "_handleKeyDown",
|
|
109965
|
-
"privacy": "private",
|
|
109966
|
-
"return": {
|
|
109967
|
-
"type": {
|
|
109968
|
-
"text": "void"
|
|
109969
|
-
}
|
|
109970
|
-
},
|
|
109971
|
-
"parameters": [
|
|
109972
|
-
{
|
|
109973
|
-
"name": "evt",
|
|
109974
|
-
"type": {
|
|
109975
|
-
"text": "KeyboardEvent"
|
|
109976
|
-
}
|
|
109977
|
-
}
|
|
109978
|
-
]
|
|
109891
|
+
}
|
|
109979
109892
|
},
|
|
109980
109893
|
{
|
|
109981
109894
|
"kind": "method",
|
|
109982
|
-
"name": "
|
|
109895
|
+
"name": "_verifyTabindex",
|
|
109983
109896
|
"privacy": "private",
|
|
109984
109897
|
"return": {
|
|
109985
109898
|
"type": {
|
|
109986
109899
|
"text": "void"
|
|
109987
109900
|
}
|
|
109988
|
-
}
|
|
109989
|
-
"parameters": [
|
|
109990
|
-
{
|
|
109991
|
-
"name": "option",
|
|
109992
|
-
"type": {
|
|
109993
|
-
"text": "SbbToggleOptionElement<T> | undefined"
|
|
109994
|
-
}
|
|
109995
|
-
}
|
|
109996
|
-
]
|
|
109901
|
+
}
|
|
109997
109902
|
},
|
|
109998
109903
|
{
|
|
109999
109904
|
"kind": "field",
|
|
@@ -110041,211 +109946,73 @@
|
|
|
110041
109946
|
},
|
|
110042
109947
|
{
|
|
110043
109948
|
"kind": "field",
|
|
110044
|
-
"name": "
|
|
110045
|
-
"type": {
|
|
110046
|
-
"text": "boolean"
|
|
110047
|
-
},
|
|
110048
|
-
"privacy": "public",
|
|
110049
|
-
"static": true,
|
|
110050
|
-
"default": "true",
|
|
110051
|
-
"inheritedFrom": {
|
|
110052
|
-
"name": "SbbFormAssociatedMixin",
|
|
110053
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
110054
|
-
}
|
|
110055
|
-
},
|
|
110056
|
-
{
|
|
110057
|
-
"kind": "field",
|
|
110058
|
-
"name": "form",
|
|
110059
|
-
"type": {
|
|
110060
|
-
"text": "HTMLFormElement | null"
|
|
110061
|
-
},
|
|
110062
|
-
"privacy": "public",
|
|
110063
|
-
"description": "Returns the form owner of this element.",
|
|
110064
|
-
"readonly": true,
|
|
110065
|
-
"inheritedFrom": {
|
|
110066
|
-
"name": "SbbFormAssociatedMixin",
|
|
110067
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
110068
|
-
}
|
|
110069
|
-
},
|
|
110070
|
-
{
|
|
110071
|
-
"kind": "field",
|
|
110072
|
-
"name": "name",
|
|
110073
|
-
"privacy": "public",
|
|
110074
|
-
"description": "Name of the form element. Will be read from name attribute.",
|
|
110075
|
-
"type": {
|
|
110076
|
-
"text": "string"
|
|
110077
|
-
},
|
|
110078
|
-
"attribute": "name",
|
|
110079
|
-
"inheritedFrom": {
|
|
110080
|
-
"name": "SbbFormAssociatedMixin",
|
|
110081
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
110082
|
-
}
|
|
110083
|
-
},
|
|
110084
|
-
{
|
|
110085
|
-
"kind": "field",
|
|
110086
|
-
"name": "validity",
|
|
110087
|
-
"type": {
|
|
110088
|
-
"text": "ValidityState"
|
|
110089
|
-
},
|
|
110090
|
-
"privacy": "public",
|
|
110091
|
-
"description": "Returns the ValidityState object for this element.",
|
|
110092
|
-
"readonly": true,
|
|
110093
|
-
"inheritedFrom": {
|
|
110094
|
-
"name": "SbbFormAssociatedMixin",
|
|
110095
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
110096
|
-
}
|
|
110097
|
-
},
|
|
110098
|
-
{
|
|
110099
|
-
"kind": "field",
|
|
110100
|
-
"name": "validationMessage",
|
|
109949
|
+
"name": "iconName",
|
|
110101
109950
|
"type": {
|
|
110102
109951
|
"text": "string"
|
|
110103
109952
|
},
|
|
110104
109953
|
"privacy": "public",
|
|
110105
|
-
"
|
|
110106
|
-
"
|
|
110107
|
-
"
|
|
110108
|
-
"name": "SbbFormAssociatedMixin",
|
|
110109
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
110110
|
-
}
|
|
110111
|
-
},
|
|
110112
|
-
{
|
|
110113
|
-
"kind": "field",
|
|
110114
|
-
"name": "willValidate",
|
|
110115
|
-
"type": {
|
|
110116
|
-
"text": "boolean"
|
|
110117
|
-
},
|
|
110118
|
-
"privacy": "public",
|
|
110119
|
-
"description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
|
|
110120
|
-
"readonly": true,
|
|
110121
|
-
"inheritedFrom": {
|
|
110122
|
-
"name": "SbbFormAssociatedMixin",
|
|
110123
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
110124
|
-
}
|
|
110125
|
-
},
|
|
110126
|
-
{
|
|
110127
|
-
"kind": "field",
|
|
110128
|
-
"name": "_validityStates",
|
|
110129
|
-
"privacy": "private",
|
|
110130
|
-
"default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
|
|
110131
|
-
"inheritedFrom": {
|
|
110132
|
-
"name": "SbbFormAssociatedMixin",
|
|
110133
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
110134
|
-
}
|
|
110135
|
-
},
|
|
110136
|
-
{
|
|
110137
|
-
"kind": "field",
|
|
110138
|
-
"name": "formDisabled",
|
|
110139
|
-
"type": {
|
|
110140
|
-
"text": "boolean"
|
|
110141
|
-
},
|
|
110142
|
-
"privacy": "protected",
|
|
110143
|
-
"default": "false",
|
|
110144
|
-
"description": "Whenever a surrounding form or fieldset is changing its disabled state.",
|
|
110145
|
-
"inheritedFrom": {
|
|
110146
|
-
"name": "SbbFormAssociatedMixin",
|
|
110147
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
110148
|
-
}
|
|
110149
|
-
},
|
|
110150
|
-
{
|
|
110151
|
-
"kind": "method",
|
|
110152
|
-
"name": "checkValidity",
|
|
110153
|
-
"privacy": "public",
|
|
110154
|
-
"return": {
|
|
110155
|
-
"type": {
|
|
110156
|
-
"text": "boolean"
|
|
110157
|
-
}
|
|
110158
|
-
},
|
|
110159
|
-
"description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
|
|
110160
|
-
"inheritedFrom": {
|
|
110161
|
-
"name": "SbbFormAssociatedMixin",
|
|
110162
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
110163
|
-
}
|
|
110164
|
-
},
|
|
110165
|
-
{
|
|
110166
|
-
"kind": "method",
|
|
110167
|
-
"name": "reportValidity",
|
|
110168
|
-
"privacy": "public",
|
|
110169
|
-
"return": {
|
|
110170
|
-
"type": {
|
|
110171
|
-
"text": "boolean"
|
|
110172
|
-
}
|
|
110173
|
-
},
|
|
110174
|
-
"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.",
|
|
110175
|
-
"inheritedFrom": {
|
|
110176
|
-
"name": "SbbFormAssociatedMixin",
|
|
110177
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
110178
|
-
}
|
|
110179
|
-
},
|
|
110180
|
-
{
|
|
110181
|
-
"kind": "method",
|
|
110182
|
-
"name": "setCustomValidity",
|
|
110183
|
-
"privacy": "public",
|
|
110184
|
-
"return": {
|
|
110185
|
-
"type": {
|
|
110186
|
-
"text": "void"
|
|
110187
|
-
}
|
|
110188
|
-
},
|
|
110189
|
-
"parameters": [
|
|
110190
|
-
{
|
|
110191
|
-
"name": "message",
|
|
110192
|
-
"type": {
|
|
110193
|
-
"text": "string"
|
|
110194
|
-
}
|
|
110195
|
-
}
|
|
110196
|
-
],
|
|
110197
|
-
"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.",
|
|
109954
|
+
"default": "''",
|
|
109955
|
+
"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.",
|
|
109956
|
+
"attribute": "icon-name",
|
|
110198
109957
|
"inheritedFrom": {
|
|
110199
|
-
"name": "
|
|
110200
|
-
"module": "
|
|
109958
|
+
"name": "SbbIconNameMixin",
|
|
109959
|
+
"module": "icon/icon-name-mixin.js"
|
|
110201
109960
|
}
|
|
110202
109961
|
},
|
|
110203
109962
|
{
|
|
110204
|
-
"kind": "method",
|
|
110205
|
-
"name": "
|
|
110206
|
-
"privacy": "
|
|
109963
|
+
"kind": "method",
|
|
109964
|
+
"name": "renderIconSlot",
|
|
109965
|
+
"privacy": "protected",
|
|
110207
109966
|
"return": {
|
|
110208
109967
|
"type": {
|
|
110209
|
-
"text": "
|
|
109968
|
+
"text": "TemplateResult"
|
|
110210
109969
|
}
|
|
110211
109970
|
},
|
|
109971
|
+
"parameters": [
|
|
109972
|
+
{
|
|
109973
|
+
"name": "classname",
|
|
109974
|
+
"optional": true,
|
|
109975
|
+
"type": {
|
|
109976
|
+
"text": "string"
|
|
109977
|
+
}
|
|
109978
|
+
}
|
|
109979
|
+
],
|
|
110212
109980
|
"inheritedFrom": {
|
|
110213
|
-
"name": "
|
|
110214
|
-
"module": "
|
|
109981
|
+
"name": "SbbIconNameMixin",
|
|
109982
|
+
"module": "icon/icon-name-mixin.js"
|
|
110215
109983
|
}
|
|
110216
109984
|
},
|
|
110217
109985
|
{
|
|
110218
109986
|
"kind": "method",
|
|
110219
|
-
"name": "
|
|
109987
|
+
"name": "renderIconName",
|
|
110220
109988
|
"privacy": "protected",
|
|
110221
109989
|
"return": {
|
|
110222
109990
|
"type": {
|
|
110223
|
-
"text": "
|
|
109991
|
+
"text": "string"
|
|
110224
109992
|
}
|
|
110225
109993
|
},
|
|
110226
|
-
"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",
|
|
110227
109994
|
"inheritedFrom": {
|
|
110228
|
-
"name": "
|
|
110229
|
-
"module": "
|
|
109995
|
+
"name": "SbbIconNameMixin",
|
|
109996
|
+
"module": "icon/icon-name-mixin.js"
|
|
110230
109997
|
}
|
|
110231
109998
|
},
|
|
110232
109999
|
{
|
|
110233
110000
|
"kind": "method",
|
|
110234
|
-
"name": "
|
|
110235
|
-
"privacy": "
|
|
110001
|
+
"name": "_renderIconName",
|
|
110002
|
+
"privacy": "private",
|
|
110236
110003
|
"return": {
|
|
110237
110004
|
"type": {
|
|
110238
|
-
"text": "
|
|
110005
|
+
"text": "string"
|
|
110239
110006
|
}
|
|
110240
110007
|
},
|
|
110241
110008
|
"inheritedFrom": {
|
|
110242
|
-
"name": "
|
|
110243
|
-
"module": "
|
|
110009
|
+
"name": "SbbIconNameMixin",
|
|
110010
|
+
"module": "icon/icon-name-mixin.js"
|
|
110244
110011
|
}
|
|
110245
110012
|
},
|
|
110246
110013
|
{
|
|
110247
110014
|
"kind": "method",
|
|
110248
|
-
"name": "
|
|
110015
|
+
"name": "toggleState",
|
|
110249
110016
|
"privacy": "protected",
|
|
110250
110017
|
"return": {
|
|
110251
110018
|
"type": {
|
|
@@ -110254,110 +110021,278 @@
|
|
|
110254
110021
|
},
|
|
110255
110022
|
"parameters": [
|
|
110256
110023
|
{
|
|
110257
|
-
"name": "
|
|
110258
|
-
"type": {
|
|
110259
|
-
"text": "T"
|
|
110260
|
-
}
|
|
110261
|
-
},
|
|
110262
|
-
{
|
|
110263
|
-
"name": "message",
|
|
110024
|
+
"name": "value",
|
|
110264
110025
|
"type": {
|
|
110265
110026
|
"text": "string"
|
|
110266
110027
|
}
|
|
110267
110028
|
},
|
|
110268
110029
|
{
|
|
110269
|
-
"name": "
|
|
110030
|
+
"name": "force",
|
|
110270
110031
|
"optional": true,
|
|
110271
110032
|
"type": {
|
|
110272
|
-
"text": "
|
|
110033
|
+
"text": "boolean"
|
|
110273
110034
|
}
|
|
110274
110035
|
}
|
|
110275
110036
|
],
|
|
110276
|
-
"
|
|
110037
|
+
"inheritedFrom": {
|
|
110038
|
+
"name": "SbbElementInternalsMixin",
|
|
110039
|
+
"module": "core/mixins/element-internals-mixin.js"
|
|
110040
|
+
}
|
|
110041
|
+
}
|
|
110042
|
+
],
|
|
110043
|
+
"attributes": [
|
|
110044
|
+
{
|
|
110045
|
+
"name": "checked",
|
|
110046
|
+
"type": {
|
|
110047
|
+
"text": "boolean"
|
|
110048
|
+
},
|
|
110049
|
+
"default": "false",
|
|
110050
|
+
"description": "Whether the toggle-option is checked.",
|
|
110051
|
+
"fieldName": "checked"
|
|
110052
|
+
},
|
|
110053
|
+
{
|
|
110054
|
+
"name": "value",
|
|
110055
|
+
"type": {
|
|
110056
|
+
"text": "T | null"
|
|
110057
|
+
},
|
|
110058
|
+
"default": "null",
|
|
110059
|
+
"description": "Value of toggle-option.",
|
|
110060
|
+
"fieldName": "value"
|
|
110061
|
+
},
|
|
110062
|
+
{
|
|
110063
|
+
"name": "disabled",
|
|
110064
|
+
"description": "Whether the component is disabled.",
|
|
110065
|
+
"default": "false",
|
|
110066
|
+
"type": {
|
|
110067
|
+
"text": "boolean"
|
|
110068
|
+
},
|
|
110069
|
+
"fieldName": "disabled",
|
|
110070
|
+
"inheritedFrom": {
|
|
110071
|
+
"name": "SbbDisabledMixin",
|
|
110072
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
110073
|
+
}
|
|
110074
|
+
},
|
|
110075
|
+
{
|
|
110076
|
+
"name": "icon-name",
|
|
110077
|
+
"type": {
|
|
110078
|
+
"text": "string"
|
|
110079
|
+
},
|
|
110080
|
+
"default": "''",
|
|
110081
|
+
"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.",
|
|
110082
|
+
"fieldName": "iconName",
|
|
110083
|
+
"inheritedFrom": {
|
|
110084
|
+
"name": "SbbIconNameMixin",
|
|
110085
|
+
"module": "icon/icon-name-mixin.js"
|
|
110086
|
+
}
|
|
110087
|
+
}
|
|
110088
|
+
],
|
|
110089
|
+
"mixins": [
|
|
110090
|
+
{
|
|
110091
|
+
"name": "SbbDisabledMixin",
|
|
110092
|
+
"module": "core/mixins.js"
|
|
110093
|
+
},
|
|
110094
|
+
{
|
|
110095
|
+
"name": "SbbIconNameMixin",
|
|
110096
|
+
"module": "icon.js"
|
|
110097
|
+
},
|
|
110098
|
+
{
|
|
110099
|
+
"name": "SbbElementInternalsMixin",
|
|
110100
|
+
"module": "core/mixins.js"
|
|
110101
|
+
}
|
|
110102
|
+
],
|
|
110103
|
+
"superclass": {
|
|
110104
|
+
"name": "LitElement",
|
|
110105
|
+
"package": "lit"
|
|
110106
|
+
},
|
|
110107
|
+
"classGenerics": "T = string",
|
|
110108
|
+
"tagName": "sbb-toggle-option",
|
|
110109
|
+
"customElement": true
|
|
110110
|
+
}
|
|
110111
|
+
],
|
|
110112
|
+
"exports": [
|
|
110113
|
+
{
|
|
110114
|
+
"kind": "js",
|
|
110115
|
+
"name": "SbbToggleOptionElement",
|
|
110116
|
+
"declaration": {
|
|
110117
|
+
"name": "SbbToggleOptionElement",
|
|
110118
|
+
"module": "toggle/toggle-option/toggle-option.component.js"
|
|
110119
|
+
}
|
|
110120
|
+
},
|
|
110121
|
+
{
|
|
110122
|
+
"kind": "custom-element-definition",
|
|
110123
|
+
"name": "sbb-toggle-option",
|
|
110124
|
+
"declaration": {
|
|
110125
|
+
"name": "SbbToggleOptionElement",
|
|
110126
|
+
"module": "toggle/toggle-option/toggle-option.component.js"
|
|
110127
|
+
}
|
|
110128
|
+
}
|
|
110129
|
+
]
|
|
110130
|
+
},
|
|
110131
|
+
{
|
|
110132
|
+
"kind": "javascript-module",
|
|
110133
|
+
"path": "toggle/toggle/toggle.component.js",
|
|
110134
|
+
"declarations": [
|
|
110135
|
+
{
|
|
110136
|
+
"kind": "class",
|
|
110137
|
+
"description": "It can be used as a container for two `sbb-toggle-option`, acting as a toggle button.",
|
|
110138
|
+
"name": "SbbToggleElement",
|
|
110139
|
+
"slots": [
|
|
110140
|
+
{
|
|
110141
|
+
"description": "Use the unnamed slot to add `<sbb-toggle-option>` elements to the toggle.",
|
|
110142
|
+
"name": ""
|
|
110143
|
+
}
|
|
110144
|
+
],
|
|
110145
|
+
"members": [
|
|
110146
|
+
{
|
|
110147
|
+
"kind": "field",
|
|
110148
|
+
"name": "role",
|
|
110149
|
+
"type": {
|
|
110150
|
+
"text": "string"
|
|
110151
|
+
},
|
|
110152
|
+
"privacy": "public",
|
|
110153
|
+
"static": true,
|
|
110154
|
+
"readonly": true,
|
|
110155
|
+
"default": "'radiogroup'"
|
|
110156
|
+
},
|
|
110157
|
+
{
|
|
110158
|
+
"kind": "field",
|
|
110159
|
+
"name": "events",
|
|
110160
|
+
"privacy": "public",
|
|
110161
|
+
"static": true,
|
|
110162
|
+
"readonly": true,
|
|
110163
|
+
"default": "{ change: 'change', }",
|
|
110164
|
+
"type": {
|
|
110165
|
+
"text": "{\n change: 'change',\n }"
|
|
110166
|
+
}
|
|
110167
|
+
},
|
|
110168
|
+
{
|
|
110169
|
+
"kind": "field",
|
|
110170
|
+
"name": "even",
|
|
110171
|
+
"type": {
|
|
110172
|
+
"text": "boolean"
|
|
110173
|
+
},
|
|
110174
|
+
"privacy": "public",
|
|
110175
|
+
"default": "false",
|
|
110176
|
+
"description": "If true, set the width of the component fixed; if false,\nthe width is dynamic based on the label of the sbb-toggle-option.",
|
|
110177
|
+
"attribute": "even",
|
|
110178
|
+
"reflects": true
|
|
110179
|
+
},
|
|
110180
|
+
{
|
|
110181
|
+
"kind": "field",
|
|
110182
|
+
"name": "size",
|
|
110183
|
+
"type": {
|
|
110184
|
+
"text": "'s' | 'm'"
|
|
110185
|
+
},
|
|
110186
|
+
"privacy": "public",
|
|
110187
|
+
"description": "Size variant, either m or s.",
|
|
110188
|
+
"default": "'m' / 's' (lean)",
|
|
110189
|
+
"attribute": "size",
|
|
110190
|
+
"reflects": true
|
|
110191
|
+
},
|
|
110192
|
+
{
|
|
110193
|
+
"kind": "field",
|
|
110194
|
+
"name": "value",
|
|
110195
|
+
"type": {
|
|
110196
|
+
"text": "(T = string) | null"
|
|
110197
|
+
},
|
|
110198
|
+
"privacy": "public",
|
|
110199
|
+
"description": "The value of the toggle. It needs to be mutable since it is updated whenever\na new option is selected (see the `onToggleOptionSelect()` method).",
|
|
110200
|
+
"attribute": "value",
|
|
110277
110201
|
"inheritedFrom": {
|
|
110278
110202
|
"name": "SbbFormAssociatedMixin",
|
|
110279
110203
|
"module": "core/mixins/form-associated-mixin.js"
|
|
110280
110204
|
}
|
|
110281
110205
|
},
|
|
110206
|
+
{
|
|
110207
|
+
"kind": "field",
|
|
110208
|
+
"name": "_fallbackValue",
|
|
110209
|
+
"type": {
|
|
110210
|
+
"text": "T | null"
|
|
110211
|
+
},
|
|
110212
|
+
"privacy": "private",
|
|
110213
|
+
"default": "null"
|
|
110214
|
+
},
|
|
110215
|
+
{
|
|
110216
|
+
"kind": "field",
|
|
110217
|
+
"name": "options",
|
|
110218
|
+
"type": {
|
|
110219
|
+
"text": "SbbToggleOptionElement<T>[]"
|
|
110220
|
+
},
|
|
110221
|
+
"privacy": "public",
|
|
110222
|
+
"description": "The child instances of sbb-toggle-option as an array.",
|
|
110223
|
+
"readonly": true
|
|
110224
|
+
},
|
|
110282
110225
|
{
|
|
110283
110226
|
"kind": "method",
|
|
110284
|
-
"name": "
|
|
110285
|
-
"privacy": "
|
|
110227
|
+
"name": "_readFormData",
|
|
110228
|
+
"privacy": "private",
|
|
110286
110229
|
"return": {
|
|
110287
110230
|
"type": {
|
|
110288
|
-
"text": "
|
|
110231
|
+
"text": "Promise<T>"
|
|
110289
110232
|
}
|
|
110290
110233
|
},
|
|
110291
110234
|
"parameters": [
|
|
110292
110235
|
{
|
|
110293
|
-
"name": "
|
|
110236
|
+
"name": "formData",
|
|
110294
110237
|
"type": {
|
|
110295
|
-
"text": "
|
|
110238
|
+
"text": "FormData"
|
|
110296
110239
|
}
|
|
110297
110240
|
}
|
|
110298
|
-
]
|
|
110299
|
-
"description": "Removes the validity state flag entry and updates validity state.",
|
|
110300
|
-
"inheritedFrom": {
|
|
110301
|
-
"name": "SbbFormAssociatedMixin",
|
|
110302
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
110303
|
-
}
|
|
110241
|
+
]
|
|
110304
110242
|
},
|
|
110305
110243
|
{
|
|
110306
110244
|
"kind": "method",
|
|
110307
|
-
"name": "
|
|
110308
|
-
"privacy": "
|
|
110245
|
+
"name": "_updateToggle",
|
|
110246
|
+
"privacy": "private",
|
|
110309
110247
|
"return": {
|
|
110310
110248
|
"type": {
|
|
110311
110249
|
"text": "void"
|
|
110312
110250
|
}
|
|
110313
|
-
},
|
|
110314
|
-
"description": "To be called whenever the current element needs to be validated.",
|
|
110315
|
-
"inheritedFrom": {
|
|
110316
|
-
"name": "SbbFormAssociatedMixin",
|
|
110317
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
110318
110251
|
}
|
|
110319
110252
|
},
|
|
110320
110253
|
{
|
|
110321
110254
|
"kind": "method",
|
|
110322
|
-
"name": "
|
|
110323
|
-
"privacy": "
|
|
110255
|
+
"name": "_valueChanged",
|
|
110256
|
+
"privacy": "private",
|
|
110324
110257
|
"return": {
|
|
110325
110258
|
"type": {
|
|
110326
|
-
"text": "
|
|
110259
|
+
"text": "void"
|
|
110327
110260
|
}
|
|
110328
110261
|
},
|
|
110329
110262
|
"parameters": [
|
|
110330
110263
|
{
|
|
110331
|
-
"name": "
|
|
110264
|
+
"name": "value",
|
|
110332
110265
|
"type": {
|
|
110333
|
-
"text": "
|
|
110266
|
+
"text": "T | null"
|
|
110334
110267
|
}
|
|
110335
110268
|
}
|
|
110336
|
-
]
|
|
110337
|
-
|
|
110338
|
-
|
|
110339
|
-
|
|
110340
|
-
|
|
110269
|
+
]
|
|
110270
|
+
},
|
|
110271
|
+
{
|
|
110272
|
+
"kind": "method",
|
|
110273
|
+
"name": "_updateDisabled",
|
|
110274
|
+
"privacy": "private",
|
|
110275
|
+
"return": {
|
|
110276
|
+
"type": {
|
|
110277
|
+
"text": "void"
|
|
110278
|
+
}
|
|
110341
110279
|
}
|
|
110342
110280
|
},
|
|
110343
110281
|
{
|
|
110344
110282
|
"kind": "method",
|
|
110345
|
-
"name": "
|
|
110283
|
+
"name": "_handleInput",
|
|
110346
110284
|
"privacy": "private",
|
|
110347
110285
|
"return": {
|
|
110348
110286
|
"type": {
|
|
110349
110287
|
"text": "void"
|
|
110350
110288
|
}
|
|
110351
110289
|
},
|
|
110352
|
-
"
|
|
110353
|
-
"name": "SbbFormAssociatedMixin",
|
|
110354
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
110355
|
-
}
|
|
110290
|
+
"description": "Called on user interaction (click or keyboard)"
|
|
110356
110291
|
},
|
|
110357
110292
|
{
|
|
110358
110293
|
"kind": "method",
|
|
110359
|
-
"name": "
|
|
110360
|
-
"privacy": "
|
|
110294
|
+
"name": "_handleKeyDown",
|
|
110295
|
+
"privacy": "private",
|
|
110361
110296
|
"return": {
|
|
110362
110297
|
"type": {
|
|
110363
110298
|
"text": "void"
|
|
@@ -110365,339 +110300,388 @@
|
|
|
110365
110300
|
},
|
|
110366
110301
|
"parameters": [
|
|
110367
110302
|
{
|
|
110368
|
-
"name": "
|
|
110303
|
+
"name": "evt",
|
|
110369
110304
|
"type": {
|
|
110370
|
-
"text": "
|
|
110305
|
+
"text": "KeyboardEvent"
|
|
110371
110306
|
}
|
|
110372
|
-
}
|
|
110307
|
+
}
|
|
110308
|
+
]
|
|
110309
|
+
},
|
|
110310
|
+
{
|
|
110311
|
+
"kind": "method",
|
|
110312
|
+
"name": "_selectAndFocusOption",
|
|
110313
|
+
"privacy": "private",
|
|
110314
|
+
"return": {
|
|
110315
|
+
"type": {
|
|
110316
|
+
"text": "void"
|
|
110317
|
+
}
|
|
110318
|
+
},
|
|
110319
|
+
"parameters": [
|
|
110373
110320
|
{
|
|
110374
|
-
"name": "
|
|
110375
|
-
"optional": true,
|
|
110321
|
+
"name": "option",
|
|
110376
110322
|
"type": {
|
|
110377
|
-
"text": "
|
|
110323
|
+
"text": "SbbToggleOptionElement<T> | undefined"
|
|
110378
110324
|
}
|
|
110379
110325
|
}
|
|
110380
|
-
]
|
|
110381
|
-
|
|
110382
|
-
"name": "SbbElementInternalsMixin",
|
|
110383
|
-
"module": "core/mixins/element-internals-mixin.js"
|
|
110384
|
-
}
|
|
110385
|
-
}
|
|
110386
|
-
],
|
|
110387
|
-
"events": [
|
|
110326
|
+
]
|
|
110327
|
+
},
|
|
110388
110328
|
{
|
|
110389
|
-
"
|
|
110329
|
+
"kind": "field",
|
|
110330
|
+
"name": "disabled",
|
|
110331
|
+
"privacy": "public",
|
|
110332
|
+
"description": "Whether the component is disabled.",
|
|
110333
|
+
"default": "false",
|
|
110390
110334
|
"type": {
|
|
110391
|
-
"text": "
|
|
110335
|
+
"text": "boolean"
|
|
110392
110336
|
},
|
|
110393
|
-
"
|
|
110394
|
-
|
|
110395
|
-
|
|
110396
|
-
|
|
110337
|
+
"attribute": "disabled",
|
|
110338
|
+
"reflects": true,
|
|
110339
|
+
"inheritedFrom": {
|
|
110340
|
+
"name": "SbbDisabledMixin",
|
|
110341
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
110342
|
+
}
|
|
110343
|
+
},
|
|
110397
110344
|
{
|
|
110398
|
-
"
|
|
110345
|
+
"kind": "field",
|
|
110346
|
+
"name": "#disabled",
|
|
110347
|
+
"privacy": "private",
|
|
110399
110348
|
"type": {
|
|
110400
110349
|
"text": "boolean"
|
|
110401
110350
|
},
|
|
110402
110351
|
"default": "false",
|
|
110403
|
-
"
|
|
110404
|
-
|
|
110352
|
+
"inheritedFrom": {
|
|
110353
|
+
"name": "SbbDisabledMixin",
|
|
110354
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
110355
|
+
}
|
|
110405
110356
|
},
|
|
110406
110357
|
{
|
|
110407
|
-
"
|
|
110408
|
-
"
|
|
110409
|
-
|
|
110358
|
+
"kind": "method",
|
|
110359
|
+
"name": "isDisabledExternally",
|
|
110360
|
+
"privacy": "protected",
|
|
110361
|
+
"return": {
|
|
110362
|
+
"type": {
|
|
110363
|
+
"text": "boolean"
|
|
110364
|
+
}
|
|
110410
110365
|
},
|
|
110411
|
-
"description": "
|
|
110412
|
-
"
|
|
110413
|
-
|
|
110366
|
+
"description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
|
|
110367
|
+
"inheritedFrom": {
|
|
110368
|
+
"name": "SbbDisabledMixin",
|
|
110369
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
110370
|
+
}
|
|
110414
110371
|
},
|
|
110415
110372
|
{
|
|
110416
|
-
"
|
|
110417
|
-
"
|
|
110373
|
+
"kind": "field",
|
|
110374
|
+
"name": "formAssociated",
|
|
110418
110375
|
"type": {
|
|
110419
|
-
"text": "
|
|
110376
|
+
"text": "boolean"
|
|
110420
110377
|
},
|
|
110421
|
-
"
|
|
110378
|
+
"privacy": "public",
|
|
110379
|
+
"static": true,
|
|
110380
|
+
"default": "true",
|
|
110381
|
+
"inheritedFrom": {
|
|
110382
|
+
"name": "SbbFormAssociatedMixin",
|
|
110383
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
110384
|
+
}
|
|
110422
110385
|
},
|
|
110423
110386
|
{
|
|
110424
|
-
"
|
|
110425
|
-
"
|
|
110426
|
-
"default": "false",
|
|
110387
|
+
"kind": "field",
|
|
110388
|
+
"name": "form",
|
|
110427
110389
|
"type": {
|
|
110428
|
-
"text": "
|
|
110390
|
+
"text": "HTMLFormElement | null"
|
|
110429
110391
|
},
|
|
110430
|
-
"
|
|
110392
|
+
"privacy": "public",
|
|
110393
|
+
"description": "Returns the form owner of this element.",
|
|
110394
|
+
"readonly": true,
|
|
110431
110395
|
"inheritedFrom": {
|
|
110432
|
-
"name": "
|
|
110433
|
-
"module": "core/mixins/
|
|
110396
|
+
"name": "SbbFormAssociatedMixin",
|
|
110397
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
110434
110398
|
}
|
|
110435
110399
|
},
|
|
110436
110400
|
{
|
|
110401
|
+
"kind": "field",
|
|
110437
110402
|
"name": "name",
|
|
110403
|
+
"privacy": "public",
|
|
110438
110404
|
"description": "Name of the form element. Will be read from name attribute.",
|
|
110439
110405
|
"type": {
|
|
110440
110406
|
"text": "string"
|
|
110441
110407
|
},
|
|
110442
|
-
"
|
|
110408
|
+
"attribute": "name",
|
|
110443
110409
|
"inheritedFrom": {
|
|
110444
110410
|
"name": "SbbFormAssociatedMixin",
|
|
110445
110411
|
"module": "core/mixins/form-associated-mixin.js"
|
|
110446
110412
|
}
|
|
110447
|
-
}
|
|
110448
|
-
],
|
|
110449
|
-
"mixins": [
|
|
110450
|
-
{
|
|
110451
|
-
"name": "SbbDisabledMixin",
|
|
110452
|
-
"module": "core/mixins.js"
|
|
110453
110413
|
},
|
|
110454
110414
|
{
|
|
110455
|
-
"
|
|
110456
|
-
"
|
|
110457
|
-
|
|
110458
|
-
|
|
110459
|
-
|
|
110460
|
-
"
|
|
110461
|
-
|
|
110462
|
-
|
|
110463
|
-
|
|
110464
|
-
|
|
110465
|
-
|
|
110466
|
-
|
|
110467
|
-
"classGenerics": "T = string",
|
|
110468
|
-
"tagName": "sbb-toggle",
|
|
110469
|
-
"customElement": true
|
|
110470
|
-
}
|
|
110471
|
-
],
|
|
110472
|
-
"exports": [
|
|
110473
|
-
{
|
|
110474
|
-
"kind": "js",
|
|
110475
|
-
"name": "SbbToggleElement",
|
|
110476
|
-
"declaration": {
|
|
110477
|
-
"name": "SbbToggleElement",
|
|
110478
|
-
"module": "toggle/toggle/toggle.component.js"
|
|
110479
|
-
}
|
|
110480
|
-
},
|
|
110481
|
-
{
|
|
110482
|
-
"kind": "custom-element-definition",
|
|
110483
|
-
"name": "sbb-toggle",
|
|
110484
|
-
"declaration": {
|
|
110485
|
-
"name": "SbbToggleElement",
|
|
110486
|
-
"module": "toggle/toggle/toggle.component.js"
|
|
110487
|
-
}
|
|
110488
|
-
}
|
|
110489
|
-
]
|
|
110490
|
-
},
|
|
110491
|
-
{
|
|
110492
|
-
"kind": "javascript-module",
|
|
110493
|
-
"path": "toggle/toggle-option/toggle-option.component.js",
|
|
110494
|
-
"declarations": [
|
|
110495
|
-
{
|
|
110496
|
-
"kind": "class",
|
|
110497
|
-
"description": "It displays a toggle option within a `sbb-toggle`.",
|
|
110498
|
-
"name": "SbbToggleOptionElement",
|
|
110499
|
-
"slots": [
|
|
110500
|
-
{
|
|
110501
|
-
"description": "Use the unnamed slot to add content to the label of the toggle option.",
|
|
110502
|
-
"name": ""
|
|
110415
|
+
"kind": "field",
|
|
110416
|
+
"name": "validity",
|
|
110417
|
+
"type": {
|
|
110418
|
+
"text": "ValidityState"
|
|
110419
|
+
},
|
|
110420
|
+
"privacy": "public",
|
|
110421
|
+
"description": "Returns the ValidityState object for this element.",
|
|
110422
|
+
"readonly": true,
|
|
110423
|
+
"inheritedFrom": {
|
|
110424
|
+
"name": "SbbFormAssociatedMixin",
|
|
110425
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
110426
|
+
}
|
|
110503
110427
|
},
|
|
110504
|
-
{
|
|
110505
|
-
"description": "Slot used to render the `sbb-icon`.",
|
|
110506
|
-
"name": "icon"
|
|
110507
|
-
}
|
|
110508
|
-
],
|
|
110509
|
-
"members": [
|
|
110510
110428
|
{
|
|
110511
110429
|
"kind": "field",
|
|
110512
|
-
"name": "
|
|
110430
|
+
"name": "validationMessage",
|
|
110513
110431
|
"type": {
|
|
110514
110432
|
"text": "string"
|
|
110515
110433
|
},
|
|
110516
110434
|
"privacy": "public",
|
|
110517
|
-
"
|
|
110435
|
+
"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.",
|
|
110518
110436
|
"readonly": true,
|
|
110519
|
-
"
|
|
110437
|
+
"inheritedFrom": {
|
|
110438
|
+
"name": "SbbFormAssociatedMixin",
|
|
110439
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
110440
|
+
}
|
|
110520
110441
|
},
|
|
110521
110442
|
{
|
|
110522
110443
|
"kind": "field",
|
|
110523
|
-
"name": "
|
|
110444
|
+
"name": "willValidate",
|
|
110524
110445
|
"type": {
|
|
110525
110446
|
"text": "boolean"
|
|
110526
110447
|
},
|
|
110527
110448
|
"privacy": "public",
|
|
110528
|
-
"
|
|
110529
|
-
"
|
|
110530
|
-
"
|
|
110531
|
-
|
|
110449
|
+
"description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
|
|
110450
|
+
"readonly": true,
|
|
110451
|
+
"inheritedFrom": {
|
|
110452
|
+
"name": "SbbFormAssociatedMixin",
|
|
110453
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
110454
|
+
}
|
|
110532
110455
|
},
|
|
110533
110456
|
{
|
|
110534
110457
|
"kind": "field",
|
|
110535
|
-
"name": "
|
|
110536
|
-
"
|
|
110537
|
-
|
|
110538
|
-
|
|
110539
|
-
|
|
110540
|
-
|
|
110541
|
-
|
|
110542
|
-
"attribute": "value"
|
|
110458
|
+
"name": "_validityStates",
|
|
110459
|
+
"privacy": "private",
|
|
110460
|
+
"default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
|
|
110461
|
+
"inheritedFrom": {
|
|
110462
|
+
"name": "SbbFormAssociatedMixin",
|
|
110463
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
110464
|
+
}
|
|
110543
110465
|
},
|
|
110544
110466
|
{
|
|
110545
110467
|
"kind": "field",
|
|
110546
|
-
"name": "
|
|
110468
|
+
"name": "formDisabled",
|
|
110547
110469
|
"type": {
|
|
110548
|
-
"text": "
|
|
110470
|
+
"text": "boolean"
|
|
110549
110471
|
},
|
|
110550
|
-
"privacy": "
|
|
110551
|
-
"default": "
|
|
110472
|
+
"privacy": "protected",
|
|
110473
|
+
"default": "false",
|
|
110474
|
+
"description": "Whenever a surrounding form or fieldset is changing its disabled state.",
|
|
110475
|
+
"inheritedFrom": {
|
|
110476
|
+
"name": "SbbFormAssociatedMixin",
|
|
110477
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
110478
|
+
}
|
|
110552
110479
|
},
|
|
110553
110480
|
{
|
|
110554
110481
|
"kind": "method",
|
|
110555
|
-
"name": "
|
|
110556
|
-
"privacy": "
|
|
110482
|
+
"name": "checkValidity",
|
|
110483
|
+
"privacy": "public",
|
|
110557
110484
|
"return": {
|
|
110558
110485
|
"type": {
|
|
110559
|
-
"text": "
|
|
110486
|
+
"text": "boolean"
|
|
110560
110487
|
}
|
|
110488
|
+
},
|
|
110489
|
+
"description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
|
|
110490
|
+
"inheritedFrom": {
|
|
110491
|
+
"name": "SbbFormAssociatedMixin",
|
|
110492
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
110561
110493
|
}
|
|
110562
110494
|
},
|
|
110563
110495
|
{
|
|
110564
110496
|
"kind": "method",
|
|
110565
|
-
"name": "
|
|
110566
|
-
"privacy": "
|
|
110497
|
+
"name": "reportValidity",
|
|
110498
|
+
"privacy": "public",
|
|
110567
110499
|
"return": {
|
|
110568
110500
|
"type": {
|
|
110569
|
-
"text": "
|
|
110501
|
+
"text": "boolean"
|
|
110570
110502
|
}
|
|
110503
|
+
},
|
|
110504
|
+
"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.",
|
|
110505
|
+
"inheritedFrom": {
|
|
110506
|
+
"name": "SbbFormAssociatedMixin",
|
|
110507
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
110571
110508
|
}
|
|
110572
110509
|
},
|
|
110573
110510
|
{
|
|
110574
110511
|
"kind": "method",
|
|
110575
|
-
"name": "
|
|
110576
|
-
"privacy": "
|
|
110512
|
+
"name": "setCustomValidity",
|
|
110513
|
+
"privacy": "public",
|
|
110577
110514
|
"return": {
|
|
110578
110515
|
"type": {
|
|
110579
110516
|
"text": "void"
|
|
110580
110517
|
}
|
|
110518
|
+
},
|
|
110519
|
+
"parameters": [
|
|
110520
|
+
{
|
|
110521
|
+
"name": "message",
|
|
110522
|
+
"type": {
|
|
110523
|
+
"text": "string"
|
|
110524
|
+
}
|
|
110525
|
+
}
|
|
110526
|
+
],
|
|
110527
|
+
"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.",
|
|
110528
|
+
"inheritedFrom": {
|
|
110529
|
+
"name": "SbbFormAssociatedMixin",
|
|
110530
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
110581
110531
|
}
|
|
110582
110532
|
},
|
|
110583
110533
|
{
|
|
110584
110534
|
"kind": "method",
|
|
110585
|
-
"name": "
|
|
110535
|
+
"name": "_hasDisabledAncestor",
|
|
110586
110536
|
"privacy": "private",
|
|
110587
110537
|
"return": {
|
|
110588
110538
|
"type": {
|
|
110589
|
-
"text": "
|
|
110539
|
+
"text": "boolean"
|
|
110590
110540
|
}
|
|
110591
|
-
}
|
|
110592
|
-
},
|
|
110593
|
-
{
|
|
110594
|
-
"kind": "field",
|
|
110595
|
-
"name": "disabled",
|
|
110596
|
-
"privacy": "public",
|
|
110597
|
-
"description": "Whether the component is disabled.",
|
|
110598
|
-
"default": "false",
|
|
110599
|
-
"type": {
|
|
110600
|
-
"text": "boolean"
|
|
110601
110541
|
},
|
|
110602
|
-
"attribute": "disabled",
|
|
110603
|
-
"reflects": true,
|
|
110604
110542
|
"inheritedFrom": {
|
|
110605
|
-
"name": "
|
|
110606
|
-
"module": "core/mixins/
|
|
110543
|
+
"name": "SbbFormAssociatedMixin",
|
|
110544
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
110607
110545
|
}
|
|
110608
110546
|
},
|
|
110609
110547
|
{
|
|
110610
|
-
"kind": "
|
|
110611
|
-
"name": "
|
|
110612
|
-
"privacy": "
|
|
110613
|
-
"
|
|
110614
|
-
"
|
|
110548
|
+
"kind": "method",
|
|
110549
|
+
"name": "updateFormValue",
|
|
110550
|
+
"privacy": "protected",
|
|
110551
|
+
"return": {
|
|
110552
|
+
"type": {
|
|
110553
|
+
"text": "void"
|
|
110554
|
+
}
|
|
110615
110555
|
},
|
|
110616
|
-
"
|
|
110556
|
+
"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",
|
|
110617
110557
|
"inheritedFrom": {
|
|
110618
|
-
"name": "
|
|
110619
|
-
"module": "core/mixins/
|
|
110558
|
+
"name": "SbbFormAssociatedMixin",
|
|
110559
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
110620
110560
|
}
|
|
110621
110561
|
},
|
|
110622
110562
|
{
|
|
110623
110563
|
"kind": "method",
|
|
110624
|
-
"name": "
|
|
110564
|
+
"name": "formState",
|
|
110625
110565
|
"privacy": "protected",
|
|
110626
110566
|
"return": {
|
|
110627
110567
|
"type": {
|
|
110628
|
-
"text": "
|
|
110568
|
+
"text": "FormRestoreState"
|
|
110629
110569
|
}
|
|
110630
110570
|
},
|
|
110631
|
-
"description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
|
|
110632
110571
|
"inheritedFrom": {
|
|
110633
|
-
"name": "
|
|
110634
|
-
"module": "core/mixins/
|
|
110572
|
+
"name": "SbbFormAssociatedMixin",
|
|
110573
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
110635
110574
|
}
|
|
110636
110575
|
},
|
|
110637
110576
|
{
|
|
110638
|
-
"kind": "
|
|
110639
|
-
"name": "
|
|
110640
|
-
"
|
|
110641
|
-
|
|
110577
|
+
"kind": "method",
|
|
110578
|
+
"name": "setValidityFlag",
|
|
110579
|
+
"privacy": "protected",
|
|
110580
|
+
"return": {
|
|
110581
|
+
"type": {
|
|
110582
|
+
"text": "void"
|
|
110583
|
+
}
|
|
110642
110584
|
},
|
|
110643
|
-
"
|
|
110644
|
-
|
|
110645
|
-
|
|
110646
|
-
|
|
110585
|
+
"parameters": [
|
|
110586
|
+
{
|
|
110587
|
+
"name": "flag",
|
|
110588
|
+
"type": {
|
|
110589
|
+
"text": "T"
|
|
110590
|
+
}
|
|
110591
|
+
},
|
|
110592
|
+
{
|
|
110593
|
+
"name": "message",
|
|
110594
|
+
"type": {
|
|
110595
|
+
"text": "string"
|
|
110596
|
+
}
|
|
110597
|
+
},
|
|
110598
|
+
{
|
|
110599
|
+
"name": "flagValue",
|
|
110600
|
+
"optional": true,
|
|
110601
|
+
"type": {
|
|
110602
|
+
"text": "ValidityStateFlags[T]"
|
|
110603
|
+
}
|
|
110604
|
+
}
|
|
110605
|
+
],
|
|
110606
|
+
"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).",
|
|
110647
110607
|
"inheritedFrom": {
|
|
110648
|
-
"name": "
|
|
110649
|
-
"module": "
|
|
110608
|
+
"name": "SbbFormAssociatedMixin",
|
|
110609
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
110650
110610
|
}
|
|
110651
110611
|
},
|
|
110652
110612
|
{
|
|
110653
110613
|
"kind": "method",
|
|
110654
|
-
"name": "
|
|
110614
|
+
"name": "removeValidityFlag",
|
|
110655
110615
|
"privacy": "protected",
|
|
110656
110616
|
"return": {
|
|
110657
110617
|
"type": {
|
|
110658
|
-
"text": "
|
|
110618
|
+
"text": "void"
|
|
110659
110619
|
}
|
|
110660
110620
|
},
|
|
110661
110621
|
"parameters": [
|
|
110662
110622
|
{
|
|
110663
|
-
"name": "
|
|
110664
|
-
"optional": true,
|
|
110623
|
+
"name": "flag",
|
|
110665
110624
|
"type": {
|
|
110666
|
-
"text": "
|
|
110625
|
+
"text": "T"
|
|
110667
110626
|
}
|
|
110668
110627
|
}
|
|
110669
110628
|
],
|
|
110629
|
+
"description": "Removes the validity state flag entry and updates validity state.",
|
|
110670
110630
|
"inheritedFrom": {
|
|
110671
|
-
"name": "
|
|
110672
|
-
"module": "
|
|
110631
|
+
"name": "SbbFormAssociatedMixin",
|
|
110632
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
110673
110633
|
}
|
|
110674
110634
|
},
|
|
110675
110635
|
{
|
|
110676
110636
|
"kind": "method",
|
|
110677
|
-
"name": "
|
|
110637
|
+
"name": "validate",
|
|
110678
110638
|
"privacy": "protected",
|
|
110679
110639
|
"return": {
|
|
110680
110640
|
"type": {
|
|
110681
|
-
"text": "
|
|
110641
|
+
"text": "void"
|
|
110682
110642
|
}
|
|
110683
110643
|
},
|
|
110644
|
+
"description": "To be called whenever the current element needs to be validated.",
|
|
110684
110645
|
"inheritedFrom": {
|
|
110685
|
-
"name": "
|
|
110686
|
-
"module": "
|
|
110646
|
+
"name": "SbbFormAssociatedMixin",
|
|
110647
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
110687
110648
|
}
|
|
110688
110649
|
},
|
|
110689
110650
|
{
|
|
110690
110651
|
"kind": "method",
|
|
110691
|
-
"name": "
|
|
110652
|
+
"name": "shouldValidate",
|
|
110653
|
+
"privacy": "protected",
|
|
110654
|
+
"return": {
|
|
110655
|
+
"type": {
|
|
110656
|
+
"text": "boolean"
|
|
110657
|
+
}
|
|
110658
|
+
},
|
|
110659
|
+
"parameters": [
|
|
110660
|
+
{
|
|
110661
|
+
"name": "name",
|
|
110662
|
+
"type": {
|
|
110663
|
+
"text": "PropertyKey | undefined"
|
|
110664
|
+
}
|
|
110665
|
+
}
|
|
110666
|
+
],
|
|
110667
|
+
"description": "Whether validation should be run on a property change with the given name.",
|
|
110668
|
+
"inheritedFrom": {
|
|
110669
|
+
"name": "SbbFormAssociatedMixin",
|
|
110670
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
110671
|
+
}
|
|
110672
|
+
},
|
|
110673
|
+
{
|
|
110674
|
+
"kind": "method",
|
|
110675
|
+
"name": "_setInternalValidity",
|
|
110692
110676
|
"privacy": "private",
|
|
110693
110677
|
"return": {
|
|
110694
110678
|
"type": {
|
|
110695
|
-
"text": "
|
|
110679
|
+
"text": "void"
|
|
110696
110680
|
}
|
|
110697
110681
|
},
|
|
110698
110682
|
"inheritedFrom": {
|
|
110699
|
-
"name": "
|
|
110700
|
-
"module": "
|
|
110683
|
+
"name": "SbbFormAssociatedMixin",
|
|
110684
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
110701
110685
|
}
|
|
110702
110686
|
},
|
|
110703
110687
|
{
|
|
@@ -110730,23 +110714,40 @@
|
|
|
110730
110714
|
}
|
|
110731
110715
|
}
|
|
110732
110716
|
],
|
|
110717
|
+
"events": [
|
|
110718
|
+
{
|
|
110719
|
+
"name": "change",
|
|
110720
|
+
"type": {
|
|
110721
|
+
"text": "Event"
|
|
110722
|
+
},
|
|
110723
|
+
"description": "The change event is fired when the user modifies the element's value.\nUnlike the input event, the change event is not necessarily fired\nfor each alteration to an element's value."
|
|
110724
|
+
}
|
|
110725
|
+
],
|
|
110733
110726
|
"attributes": [
|
|
110734
110727
|
{
|
|
110735
|
-
"name": "
|
|
110728
|
+
"name": "even",
|
|
110736
110729
|
"type": {
|
|
110737
110730
|
"text": "boolean"
|
|
110738
110731
|
},
|
|
110739
110732
|
"default": "false",
|
|
110740
|
-
"description": "
|
|
110741
|
-
"fieldName": "
|
|
110733
|
+
"description": "If true, set the width of the component fixed; if false,\nthe width is dynamic based on the label of the sbb-toggle-option.",
|
|
110734
|
+
"fieldName": "even"
|
|
110735
|
+
},
|
|
110736
|
+
{
|
|
110737
|
+
"name": "size",
|
|
110738
|
+
"type": {
|
|
110739
|
+
"text": "'s' | 'm'"
|
|
110740
|
+
},
|
|
110741
|
+
"description": "Size variant, either m or s.",
|
|
110742
|
+
"default": "'m' / 's' (lean)",
|
|
110743
|
+
"fieldName": "size"
|
|
110742
110744
|
},
|
|
110743
110745
|
{
|
|
110744
110746
|
"name": "value",
|
|
110747
|
+
"description": "The value of the toggle. It needs to be mutable since it is updated whenever\na new option is selected (see the `onToggleOptionSelect()` method).",
|
|
110745
110748
|
"type": {
|
|
110746
110749
|
"text": "T | null"
|
|
110747
110750
|
},
|
|
110748
|
-
"default": "null",
|
|
110749
|
-
"description": "Value of toggle-option.",
|
|
110750
110751
|
"fieldName": "value"
|
|
110751
110752
|
},
|
|
110752
110753
|
{
|
|
@@ -110763,16 +110764,15 @@
|
|
|
110763
110764
|
}
|
|
110764
110765
|
},
|
|
110765
110766
|
{
|
|
110766
|
-
"name": "
|
|
110767
|
+
"name": "name",
|
|
110768
|
+
"description": "Name of the form element. Will be read from name attribute.",
|
|
110767
110769
|
"type": {
|
|
110768
110770
|
"text": "string"
|
|
110769
110771
|
},
|
|
110770
|
-
"
|
|
110771
|
-
"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.",
|
|
110772
|
-
"fieldName": "iconName",
|
|
110772
|
+
"fieldName": "name",
|
|
110773
110773
|
"inheritedFrom": {
|
|
110774
|
-
"name": "
|
|
110775
|
-
"module": "
|
|
110774
|
+
"name": "SbbFormAssociatedMixin",
|
|
110775
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
110776
110776
|
}
|
|
110777
110777
|
}
|
|
110778
110778
|
],
|
|
@@ -110782,8 +110782,8 @@
|
|
|
110782
110782
|
"module": "core/mixins.js"
|
|
110783
110783
|
},
|
|
110784
110784
|
{
|
|
110785
|
-
"name": "
|
|
110786
|
-
"module": "
|
|
110785
|
+
"name": "SbbFormAssociatedMixin",
|
|
110786
|
+
"module": "core/mixins.js"
|
|
110787
110787
|
},
|
|
110788
110788
|
{
|
|
110789
110789
|
"name": "SbbElementInternalsMixin",
|
|
@@ -110795,25 +110795,25 @@
|
|
|
110795
110795
|
"package": "lit"
|
|
110796
110796
|
},
|
|
110797
110797
|
"classGenerics": "T = string",
|
|
110798
|
-
"tagName": "sbb-toggle
|
|
110798
|
+
"tagName": "sbb-toggle",
|
|
110799
110799
|
"customElement": true
|
|
110800
110800
|
}
|
|
110801
110801
|
],
|
|
110802
110802
|
"exports": [
|
|
110803
110803
|
{
|
|
110804
110804
|
"kind": "js",
|
|
110805
|
-
"name": "
|
|
110805
|
+
"name": "SbbToggleElement",
|
|
110806
110806
|
"declaration": {
|
|
110807
|
-
"name": "
|
|
110808
|
-
"module": "toggle/toggle
|
|
110807
|
+
"name": "SbbToggleElement",
|
|
110808
|
+
"module": "toggle/toggle/toggle.component.js"
|
|
110809
110809
|
}
|
|
110810
110810
|
},
|
|
110811
110811
|
{
|
|
110812
110812
|
"kind": "custom-element-definition",
|
|
110813
|
-
"name": "sbb-toggle
|
|
110813
|
+
"name": "sbb-toggle",
|
|
110814
110814
|
"declaration": {
|
|
110815
|
-
"name": "
|
|
110816
|
-
"module": "toggle/toggle
|
|
110815
|
+
"name": "SbbToggleElement",
|
|
110816
|
+
"module": "toggle/toggle/toggle.component.js"
|
|
110817
110817
|
}
|
|
110818
110818
|
}
|
|
110819
110819
|
]
|