@sbb-esta/lyne-elements-dev 4.6.0-dev.1772417874 → 4.6.0-dev.1772439044
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
CHANGED
|
@@ -81257,15 +81257,15 @@
|
|
|
81257
81257
|
},
|
|
81258
81258
|
{
|
|
81259
81259
|
"kind": "javascript-module",
|
|
81260
|
-
"path": "link/block-link-
|
|
81260
|
+
"path": "link/block-link-button/block-link-button.component.js",
|
|
81261
81261
|
"declarations": [
|
|
81262
81262
|
{
|
|
81263
81263
|
"kind": "class",
|
|
81264
|
-
"description": "It displays a
|
|
81265
|
-
"name": "
|
|
81264
|
+
"description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
|
|
81265
|
+
"name": "SbbBlockLinkButtonElement",
|
|
81266
81266
|
"slots": [
|
|
81267
81267
|
{
|
|
81268
|
-
"description": "Use the unnamed slot to add content to the `sbb-block-link-
|
|
81268
|
+
"description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
|
|
81269
81269
|
"name": ""
|
|
81270
81270
|
},
|
|
81271
81271
|
{
|
|
@@ -81279,15 +81279,15 @@
|
|
|
81279
81279
|
"module": "link/common.js"
|
|
81280
81280
|
},
|
|
81281
81281
|
{
|
|
81282
|
-
"name": "
|
|
81282
|
+
"name": "SbbDisabledTabIndexActionMixin",
|
|
81283
81283
|
"module": "core/mixins.js"
|
|
81284
81284
|
}
|
|
81285
81285
|
],
|
|
81286
81286
|
"superclass": {
|
|
81287
|
-
"name": "
|
|
81287
|
+
"name": "SbbButtonBaseElement",
|
|
81288
81288
|
"module": "core/base-elements.js"
|
|
81289
81289
|
},
|
|
81290
|
-
"tagName": "sbb-block-link-
|
|
81290
|
+
"tagName": "sbb-block-link-button",
|
|
81291
81291
|
"customElement": true,
|
|
81292
81292
|
"attributes": [
|
|
81293
81293
|
{
|
|
@@ -81329,6 +81329,19 @@
|
|
|
81329
81329
|
"module": "icon/icon-name-mixin.js"
|
|
81330
81330
|
}
|
|
81331
81331
|
},
|
|
81332
|
+
{
|
|
81333
|
+
"name": "disabled-interactive",
|
|
81334
|
+
"type": {
|
|
81335
|
+
"text": "boolean"
|
|
81336
|
+
},
|
|
81337
|
+
"default": "false",
|
|
81338
|
+
"description": "Whether the button should be aria-disabled but stay interactive.",
|
|
81339
|
+
"fieldName": "disabledInteractive",
|
|
81340
|
+
"inheritedFrom": {
|
|
81341
|
+
"name": "SbbDisabledInteractiveMixin",
|
|
81342
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
81343
|
+
}
|
|
81344
|
+
},
|
|
81332
81345
|
{
|
|
81333
81346
|
"name": "disabled",
|
|
81334
81347
|
"description": "Whether the component is disabled.",
|
|
@@ -81341,6 +81354,56 @@
|
|
|
81341
81354
|
"name": "SbbDisabledMixin",
|
|
81342
81355
|
"module": "core/mixins/disabled-mixin.js"
|
|
81343
81356
|
}
|
|
81357
|
+
},
|
|
81358
|
+
{
|
|
81359
|
+
"name": "value",
|
|
81360
|
+
"type": {
|
|
81361
|
+
"text": "string"
|
|
81362
|
+
},
|
|
81363
|
+
"default": "''",
|
|
81364
|
+
"description": "Value of the form element.",
|
|
81365
|
+
"fieldName": "value",
|
|
81366
|
+
"inheritedFrom": {
|
|
81367
|
+
"name": "SbbButtonBaseElement",
|
|
81368
|
+
"module": "core/base-elements/button-base-element.js"
|
|
81369
|
+
}
|
|
81370
|
+
},
|
|
81371
|
+
{
|
|
81372
|
+
"name": "type",
|
|
81373
|
+
"description": "The type attribute to use for the button.",
|
|
81374
|
+
"default": "'button'",
|
|
81375
|
+
"type": {
|
|
81376
|
+
"text": "SbbButtonType"
|
|
81377
|
+
},
|
|
81378
|
+
"fieldName": "type",
|
|
81379
|
+
"inheritedFrom": {
|
|
81380
|
+
"name": "SbbButtonBaseElement",
|
|
81381
|
+
"module": "core/base-elements/button-base-element.js"
|
|
81382
|
+
}
|
|
81383
|
+
},
|
|
81384
|
+
{
|
|
81385
|
+
"name": "form",
|
|
81386
|
+
"description": "The `<form>` element to associate the button with.",
|
|
81387
|
+
"type": {
|
|
81388
|
+
"text": "HTMLFormElement | null"
|
|
81389
|
+
},
|
|
81390
|
+
"fieldName": "form",
|
|
81391
|
+
"inheritedFrom": {
|
|
81392
|
+
"name": "SbbButtonBaseElement",
|
|
81393
|
+
"module": "core/base-elements/button-base-element.js"
|
|
81394
|
+
}
|
|
81395
|
+
},
|
|
81396
|
+
{
|
|
81397
|
+
"name": "name",
|
|
81398
|
+
"description": "Name of the form element. Will be read from name attribute.",
|
|
81399
|
+
"type": {
|
|
81400
|
+
"text": "string"
|
|
81401
|
+
},
|
|
81402
|
+
"fieldName": "name",
|
|
81403
|
+
"inheritedFrom": {
|
|
81404
|
+
"name": "SbbFormAssociatedMixin",
|
|
81405
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
81406
|
+
}
|
|
81344
81407
|
}
|
|
81345
81408
|
],
|
|
81346
81409
|
"members": [
|
|
@@ -81471,6 +81534,22 @@
|
|
|
81471
81534
|
"module": "icon/icon-name-mixin.js"
|
|
81472
81535
|
}
|
|
81473
81536
|
},
|
|
81537
|
+
{
|
|
81538
|
+
"kind": "field",
|
|
81539
|
+
"name": "disabledInteractive",
|
|
81540
|
+
"type": {
|
|
81541
|
+
"text": "boolean"
|
|
81542
|
+
},
|
|
81543
|
+
"privacy": "public",
|
|
81544
|
+
"default": "false",
|
|
81545
|
+
"description": "Whether the button should be aria-disabled but stay interactive.",
|
|
81546
|
+
"attribute": "disabled-interactive",
|
|
81547
|
+
"reflects": true,
|
|
81548
|
+
"inheritedFrom": {
|
|
81549
|
+
"name": "SbbDisabledInteractiveMixin",
|
|
81550
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
81551
|
+
}
|
|
81552
|
+
},
|
|
81474
81553
|
{
|
|
81475
81554
|
"kind": "field",
|
|
81476
81555
|
"name": "disabled",
|
|
@@ -81515,10 +81594,90 @@
|
|
|
81515
81594
|
"module": "core/mixins/disabled-mixin.js"
|
|
81516
81595
|
}
|
|
81517
81596
|
},
|
|
81597
|
+
{
|
|
81598
|
+
"kind": "field",
|
|
81599
|
+
"name": "_elementsOnWhichEnterPressTriggersSubmit",
|
|
81600
|
+
"type": {
|
|
81601
|
+
"text": "array"
|
|
81602
|
+
},
|
|
81603
|
+
"privacy": "private",
|
|
81604
|
+
"readonly": true,
|
|
81605
|
+
"default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
|
|
81606
|
+
"inheritedFrom": {
|
|
81607
|
+
"name": "SbbButtonBaseElement",
|
|
81608
|
+
"module": "core/base-elements/button-base-element.js"
|
|
81609
|
+
}
|
|
81610
|
+
},
|
|
81611
|
+
{
|
|
81612
|
+
"kind": "field",
|
|
81613
|
+
"name": "value",
|
|
81614
|
+
"type": {
|
|
81615
|
+
"text": "string"
|
|
81616
|
+
},
|
|
81617
|
+
"privacy": "public",
|
|
81618
|
+
"inheritedFrom": {
|
|
81619
|
+
"name": "SbbButtonBaseElement",
|
|
81620
|
+
"module": "core/base-elements/button-base-element.js"
|
|
81621
|
+
},
|
|
81622
|
+
"default": "''",
|
|
81623
|
+
"description": "Value of the form element.",
|
|
81624
|
+
"attribute": "value"
|
|
81625
|
+
},
|
|
81626
|
+
{
|
|
81627
|
+
"kind": "field",
|
|
81628
|
+
"name": "type",
|
|
81629
|
+
"privacy": "public",
|
|
81630
|
+
"description": "The type attribute to use for the button.",
|
|
81631
|
+
"default": "'button'",
|
|
81632
|
+
"type": {
|
|
81633
|
+
"text": "SbbButtonType"
|
|
81634
|
+
},
|
|
81635
|
+
"attribute": "type",
|
|
81636
|
+
"inheritedFrom": {
|
|
81637
|
+
"name": "SbbButtonBaseElement",
|
|
81638
|
+
"module": "core/base-elements/button-base-element.js"
|
|
81639
|
+
}
|
|
81640
|
+
},
|
|
81641
|
+
{
|
|
81642
|
+
"kind": "field",
|
|
81643
|
+
"name": "form",
|
|
81644
|
+
"type": {
|
|
81645
|
+
"text": "HTMLFormElement | null"
|
|
81646
|
+
},
|
|
81647
|
+
"privacy": "public",
|
|
81648
|
+
"description": "The `<form>` element to associate the button with.",
|
|
81649
|
+
"inheritedFrom": {
|
|
81650
|
+
"name": "SbbButtonBaseElement",
|
|
81651
|
+
"module": "core/base-elements/button-base-element.js"
|
|
81652
|
+
},
|
|
81653
|
+
"attribute": "form"
|
|
81654
|
+
},
|
|
81655
|
+
{
|
|
81656
|
+
"kind": "field",
|
|
81657
|
+
"name": "_formId",
|
|
81658
|
+
"type": {
|
|
81659
|
+
"text": "string"
|
|
81660
|
+
},
|
|
81661
|
+
"privacy": "private",
|
|
81662
|
+
"default": "''",
|
|
81663
|
+
"inheritedFrom": {
|
|
81664
|
+
"name": "SbbButtonBaseElement",
|
|
81665
|
+
"module": "core/base-elements/button-base-element.js"
|
|
81666
|
+
}
|
|
81667
|
+
},
|
|
81668
|
+
{
|
|
81669
|
+
"kind": "field",
|
|
81670
|
+
"name": "_handleButtonClick",
|
|
81671
|
+
"privacy": "private",
|
|
81672
|
+
"inheritedFrom": {
|
|
81673
|
+
"name": "SbbButtonBaseElement",
|
|
81674
|
+
"module": "core/base-elements/button-base-element.js"
|
|
81675
|
+
}
|
|
81676
|
+
},
|
|
81518
81677
|
{
|
|
81519
81678
|
"kind": "method",
|
|
81520
|
-
"name": "
|
|
81521
|
-
"privacy": "
|
|
81679
|
+
"name": "_requestSubmit",
|
|
81680
|
+
"privacy": "private",
|
|
81522
81681
|
"return": {
|
|
81523
81682
|
"type": {
|
|
81524
81683
|
"text": "void"
|
|
@@ -81526,509 +81685,396 @@
|
|
|
81526
81685
|
},
|
|
81527
81686
|
"parameters": [
|
|
81528
81687
|
{
|
|
81529
|
-
"name": "
|
|
81530
|
-
"type": {
|
|
81531
|
-
"text": "string"
|
|
81532
|
-
}
|
|
81533
|
-
},
|
|
81534
|
-
{
|
|
81535
|
-
"name": "force",
|
|
81536
|
-
"optional": true,
|
|
81688
|
+
"name": "form",
|
|
81537
81689
|
"type": {
|
|
81538
|
-
"text": "
|
|
81690
|
+
"text": "HTMLFormElement"
|
|
81539
81691
|
}
|
|
81540
81692
|
}
|
|
81541
81693
|
],
|
|
81542
81694
|
"inheritedFrom": {
|
|
81543
|
-
"name": "
|
|
81544
|
-
"module": "core/base-elements/
|
|
81695
|
+
"name": "SbbButtonBaseElement",
|
|
81696
|
+
"module": "core/base-elements/button-base-element.js"
|
|
81545
81697
|
}
|
|
81546
81698
|
},
|
|
81547
81699
|
{
|
|
81548
81700
|
"kind": "field",
|
|
81549
|
-
"name": "
|
|
81701
|
+
"name": "_formKeyDown",
|
|
81702
|
+
"privacy": "private",
|
|
81703
|
+
"inheritedFrom": {
|
|
81704
|
+
"name": "SbbButtonBaseElement",
|
|
81705
|
+
"module": "core/base-elements/button-base-element.js"
|
|
81706
|
+
}
|
|
81707
|
+
},
|
|
81708
|
+
{
|
|
81709
|
+
"kind": "field",
|
|
81710
|
+
"name": "formAssociated",
|
|
81550
81711
|
"type": {
|
|
81551
|
-
"text": "boolean
|
|
81712
|
+
"text": "boolean"
|
|
81552
81713
|
},
|
|
81553
|
-
"privacy": "
|
|
81554
|
-
"
|
|
81714
|
+
"privacy": "public",
|
|
81715
|
+
"static": true,
|
|
81716
|
+
"default": "true",
|
|
81555
81717
|
"inheritedFrom": {
|
|
81556
|
-
"name": "
|
|
81557
|
-
"module": "core/
|
|
81718
|
+
"name": "SbbFormAssociatedMixin",
|
|
81719
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
81558
81720
|
}
|
|
81559
81721
|
},
|
|
81560
81722
|
{
|
|
81561
81723
|
"kind": "field",
|
|
81562
|
-
"name": "
|
|
81724
|
+
"name": "name",
|
|
81725
|
+
"privacy": "public",
|
|
81726
|
+
"description": "Name of the form element. Will be read from name attribute.",
|
|
81563
81727
|
"type": {
|
|
81564
|
-
"text": "
|
|
81728
|
+
"text": "string"
|
|
81565
81729
|
},
|
|
81566
|
-
"
|
|
81567
|
-
"readonly": true,
|
|
81730
|
+
"attribute": "name",
|
|
81568
81731
|
"inheritedFrom": {
|
|
81569
|
-
"name": "
|
|
81570
|
-
"module": "core/
|
|
81732
|
+
"name": "SbbFormAssociatedMixin",
|
|
81733
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
81571
81734
|
}
|
|
81572
81735
|
},
|
|
81573
81736
|
{
|
|
81574
|
-
"kind": "
|
|
81575
|
-
"name": "
|
|
81576
|
-
"
|
|
81577
|
-
|
|
81578
|
-
"type": {
|
|
81579
|
-
"text": "void"
|
|
81580
|
-
}
|
|
81737
|
+
"kind": "field",
|
|
81738
|
+
"name": "validity",
|
|
81739
|
+
"type": {
|
|
81740
|
+
"text": "ValidityState"
|
|
81581
81741
|
},
|
|
81742
|
+
"privacy": "public",
|
|
81743
|
+
"description": "Returns the ValidityState object for this element.",
|
|
81744
|
+
"readonly": true,
|
|
81582
81745
|
"inheritedFrom": {
|
|
81583
|
-
"name": "
|
|
81584
|
-
"module": "core/
|
|
81746
|
+
"name": "SbbFormAssociatedMixin",
|
|
81747
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
81585
81748
|
}
|
|
81586
|
-
}
|
|
81587
|
-
]
|
|
81588
|
-
}
|
|
81589
|
-
],
|
|
81590
|
-
"exports": [
|
|
81591
|
-
{
|
|
81592
|
-
"kind": "js",
|
|
81593
|
-
"name": "SbbBlockLinkStaticElement",
|
|
81594
|
-
"declaration": {
|
|
81595
|
-
"name": "SbbBlockLinkStaticElement",
|
|
81596
|
-
"module": "link/block-link-static/block-link-static.component.js"
|
|
81597
|
-
}
|
|
81598
|
-
},
|
|
81599
|
-
{
|
|
81600
|
-
"kind": "custom-element-definition",
|
|
81601
|
-
"name": "sbb-block-link-static",
|
|
81602
|
-
"declaration": {
|
|
81603
|
-
"name": "SbbBlockLinkStaticElement",
|
|
81604
|
-
"module": "link/block-link-static/block-link-static.component.js"
|
|
81605
|
-
}
|
|
81606
|
-
}
|
|
81607
|
-
]
|
|
81608
|
-
},
|
|
81609
|
-
{
|
|
81610
|
-
"kind": "javascript-module",
|
|
81611
|
-
"path": "link/block-link-button/block-link-button.component.js",
|
|
81612
|
-
"declarations": [
|
|
81613
|
-
{
|
|
81614
|
-
"kind": "class",
|
|
81615
|
-
"description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
|
|
81616
|
-
"name": "SbbBlockLinkButtonElement",
|
|
81617
|
-
"slots": [
|
|
81618
|
-
{
|
|
81619
|
-
"description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
|
|
81620
|
-
"name": ""
|
|
81621
|
-
},
|
|
81622
|
-
{
|
|
81623
|
-
"description": "Slot used to display the icon, if one is set.",
|
|
81624
|
-
"name": "icon"
|
|
81625
|
-
}
|
|
81626
|
-
],
|
|
81627
|
-
"mixins": [
|
|
81628
|
-
{
|
|
81629
|
-
"name": "SbbBlockLinkCommonElementMixin",
|
|
81630
|
-
"module": "link/common.js"
|
|
81631
81749
|
},
|
|
81632
81750
|
{
|
|
81633
|
-
"
|
|
81634
|
-
"
|
|
81635
|
-
}
|
|
81636
|
-
],
|
|
81637
|
-
"superclass": {
|
|
81638
|
-
"name": "SbbButtonBaseElement",
|
|
81639
|
-
"module": "core/base-elements.js"
|
|
81640
|
-
},
|
|
81641
|
-
"tagName": "sbb-block-link-button",
|
|
81642
|
-
"customElement": true,
|
|
81643
|
-
"attributes": [
|
|
81644
|
-
{
|
|
81645
|
-
"name": "icon-placement",
|
|
81751
|
+
"kind": "field",
|
|
81752
|
+
"name": "validationMessage",
|
|
81646
81753
|
"type": {
|
|
81647
|
-
"text": "
|
|
81754
|
+
"text": "string"
|
|
81648
81755
|
},
|
|
81649
|
-
"
|
|
81650
|
-
"description": "
|
|
81651
|
-
"
|
|
81756
|
+
"privacy": "public",
|
|
81757
|
+
"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.",
|
|
81758
|
+
"readonly": true,
|
|
81652
81759
|
"inheritedFrom": {
|
|
81653
|
-
"name": "
|
|
81654
|
-
"module": "
|
|
81760
|
+
"name": "SbbFormAssociatedMixin",
|
|
81761
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
81655
81762
|
}
|
|
81656
81763
|
},
|
|
81657
81764
|
{
|
|
81658
|
-
"
|
|
81765
|
+
"kind": "field",
|
|
81766
|
+
"name": "willValidate",
|
|
81659
81767
|
"type": {
|
|
81660
|
-
"text": "
|
|
81768
|
+
"text": "boolean"
|
|
81661
81769
|
},
|
|
81662
|
-
"
|
|
81663
|
-
"
|
|
81664
|
-
"
|
|
81770
|
+
"privacy": "public",
|
|
81771
|
+
"description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
|
|
81772
|
+
"readonly": true,
|
|
81665
81773
|
"inheritedFrom": {
|
|
81666
|
-
"name": "
|
|
81667
|
-
"module": "
|
|
81774
|
+
"name": "SbbFormAssociatedMixin",
|
|
81775
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
81668
81776
|
}
|
|
81669
81777
|
},
|
|
81670
81778
|
{
|
|
81671
|
-
"
|
|
81672
|
-
"
|
|
81673
|
-
|
|
81674
|
-
},
|
|
81675
|
-
"default": "''",
|
|
81676
|
-
"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.",
|
|
81677
|
-
"fieldName": "iconName",
|
|
81779
|
+
"kind": "field",
|
|
81780
|
+
"name": "_validityStates",
|
|
81781
|
+
"privacy": "private",
|
|
81782
|
+
"default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
|
|
81678
81783
|
"inheritedFrom": {
|
|
81679
|
-
"name": "
|
|
81680
|
-
"module": "
|
|
81784
|
+
"name": "SbbFormAssociatedMixin",
|
|
81785
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
81681
81786
|
}
|
|
81682
81787
|
},
|
|
81683
81788
|
{
|
|
81684
|
-
"
|
|
81789
|
+
"kind": "field",
|
|
81790
|
+
"name": "formDisabled",
|
|
81685
81791
|
"type": {
|
|
81686
81792
|
"text": "boolean"
|
|
81687
81793
|
},
|
|
81794
|
+
"privacy": "protected",
|
|
81688
81795
|
"default": "false",
|
|
81689
|
-
"description": "
|
|
81690
|
-
"fieldName": "disabledInteractive",
|
|
81796
|
+
"description": "Whenever a surrounding form or fieldset is changing its disabled state.",
|
|
81691
81797
|
"inheritedFrom": {
|
|
81692
|
-
"name": "
|
|
81693
|
-
"module": "core/mixins/
|
|
81798
|
+
"name": "SbbFormAssociatedMixin",
|
|
81799
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
81694
81800
|
}
|
|
81695
81801
|
},
|
|
81696
81802
|
{
|
|
81697
|
-
"
|
|
81698
|
-
"
|
|
81699
|
-
"
|
|
81700
|
-
"
|
|
81701
|
-
"
|
|
81803
|
+
"kind": "method",
|
|
81804
|
+
"name": "checkValidity",
|
|
81805
|
+
"privacy": "public",
|
|
81806
|
+
"return": {
|
|
81807
|
+
"type": {
|
|
81808
|
+
"text": "boolean"
|
|
81809
|
+
}
|
|
81702
81810
|
},
|
|
81703
|
-
"
|
|
81811
|
+
"description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
|
|
81704
81812
|
"inheritedFrom": {
|
|
81705
|
-
"name": "
|
|
81706
|
-
"module": "core/mixins/
|
|
81813
|
+
"name": "SbbFormAssociatedMixin",
|
|
81814
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
81707
81815
|
}
|
|
81708
81816
|
},
|
|
81709
81817
|
{
|
|
81710
|
-
"
|
|
81711
|
-
"
|
|
81712
|
-
|
|
81818
|
+
"kind": "method",
|
|
81819
|
+
"name": "reportValidity",
|
|
81820
|
+
"privacy": "public",
|
|
81821
|
+
"return": {
|
|
81822
|
+
"type": {
|
|
81823
|
+
"text": "boolean"
|
|
81824
|
+
}
|
|
81713
81825
|
},
|
|
81714
|
-
"
|
|
81715
|
-
"description": "Value of the form element.",
|
|
81716
|
-
"fieldName": "value",
|
|
81826
|
+
"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.",
|
|
81717
81827
|
"inheritedFrom": {
|
|
81718
|
-
"name": "
|
|
81719
|
-
"module": "core/
|
|
81828
|
+
"name": "SbbFormAssociatedMixin",
|
|
81829
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
81720
81830
|
}
|
|
81721
81831
|
},
|
|
81722
81832
|
{
|
|
81723
|
-
"
|
|
81724
|
-
"
|
|
81725
|
-
"
|
|
81726
|
-
"
|
|
81727
|
-
"
|
|
81833
|
+
"kind": "method",
|
|
81834
|
+
"name": "setCustomValidity",
|
|
81835
|
+
"privacy": "public",
|
|
81836
|
+
"return": {
|
|
81837
|
+
"type": {
|
|
81838
|
+
"text": "void"
|
|
81839
|
+
}
|
|
81728
81840
|
},
|
|
81729
|
-
"
|
|
81841
|
+
"parameters": [
|
|
81842
|
+
{
|
|
81843
|
+
"name": "message",
|
|
81844
|
+
"type": {
|
|
81845
|
+
"text": "string"
|
|
81846
|
+
}
|
|
81847
|
+
}
|
|
81848
|
+
],
|
|
81849
|
+
"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.",
|
|
81730
81850
|
"inheritedFrom": {
|
|
81731
|
-
"name": "
|
|
81732
|
-
"module": "core/
|
|
81851
|
+
"name": "SbbFormAssociatedMixin",
|
|
81852
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
81733
81853
|
}
|
|
81734
81854
|
},
|
|
81735
81855
|
{
|
|
81736
|
-
"
|
|
81737
|
-
"
|
|
81738
|
-
"
|
|
81739
|
-
|
|
81856
|
+
"kind": "method",
|
|
81857
|
+
"name": "_hasDisabledAncestor",
|
|
81858
|
+
"privacy": "private",
|
|
81859
|
+
"return": {
|
|
81860
|
+
"type": {
|
|
81861
|
+
"text": "boolean"
|
|
81862
|
+
}
|
|
81740
81863
|
},
|
|
81741
|
-
"fieldName": "form",
|
|
81742
81864
|
"inheritedFrom": {
|
|
81743
|
-
"name": "
|
|
81744
|
-
"module": "core/
|
|
81865
|
+
"name": "SbbFormAssociatedMixin",
|
|
81866
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
81745
81867
|
}
|
|
81746
81868
|
},
|
|
81747
81869
|
{
|
|
81748
|
-
"
|
|
81749
|
-
"
|
|
81750
|
-
"
|
|
81751
|
-
|
|
81870
|
+
"kind": "method",
|
|
81871
|
+
"name": "updateFormValue",
|
|
81872
|
+
"privacy": "protected",
|
|
81873
|
+
"return": {
|
|
81874
|
+
"type": {
|
|
81875
|
+
"text": "void"
|
|
81876
|
+
}
|
|
81752
81877
|
},
|
|
81753
|
-
"
|
|
81878
|
+
"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",
|
|
81754
81879
|
"inheritedFrom": {
|
|
81755
81880
|
"name": "SbbFormAssociatedMixin",
|
|
81756
81881
|
"module": "core/mixins/form-associated-mixin.js"
|
|
81757
81882
|
}
|
|
81758
|
-
}
|
|
81759
|
-
],
|
|
81760
|
-
"members": [
|
|
81761
|
-
{
|
|
81762
|
-
"kind": "field",
|
|
81763
|
-
"name": "styles",
|
|
81764
|
-
"type": {
|
|
81765
|
-
"text": "CSSResultGroup"
|
|
81766
|
-
},
|
|
81767
|
-
"privacy": "public",
|
|
81768
|
-
"static": true,
|
|
81769
|
-
"default": "[boxSizingStyles, style, blockStyle]",
|
|
81770
|
-
"inheritedFrom": {
|
|
81771
|
-
"name": "SbbLinkCommonElementMixin",
|
|
81772
|
-
"module": "link/common/link-common.js"
|
|
81773
|
-
}
|
|
81774
81883
|
},
|
|
81775
81884
|
{
|
|
81776
|
-
"kind": "
|
|
81777
|
-
"name": "
|
|
81778
|
-
"
|
|
81779
|
-
|
|
81885
|
+
"kind": "method",
|
|
81886
|
+
"name": "formState",
|
|
81887
|
+
"privacy": "protected",
|
|
81888
|
+
"return": {
|
|
81889
|
+
"type": {
|
|
81890
|
+
"text": "FormRestoreState"
|
|
81891
|
+
}
|
|
81780
81892
|
},
|
|
81781
|
-
"privacy": "public",
|
|
81782
|
-
"default": "'start'",
|
|
81783
|
-
"description": "Moves the icon to the end of the component if set to true.",
|
|
81784
|
-
"attribute": "icon-placement",
|
|
81785
|
-
"reflects": true,
|
|
81786
81893
|
"inheritedFrom": {
|
|
81787
|
-
"name": "
|
|
81788
|
-
"module": "
|
|
81894
|
+
"name": "SbbFormAssociatedMixin",
|
|
81895
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
81789
81896
|
}
|
|
81790
81897
|
},
|
|
81791
81898
|
{
|
|
81792
81899
|
"kind": "method",
|
|
81793
|
-
"name": "
|
|
81900
|
+
"name": "setValidityFlag",
|
|
81794
81901
|
"privacy": "protected",
|
|
81795
81902
|
"return": {
|
|
81796
81903
|
"type": {
|
|
81797
|
-
"text": "
|
|
81904
|
+
"text": "void"
|
|
81798
81905
|
}
|
|
81799
81906
|
},
|
|
81800
|
-
"
|
|
81907
|
+
"parameters": [
|
|
81908
|
+
{
|
|
81909
|
+
"name": "flag",
|
|
81910
|
+
"type": {
|
|
81911
|
+
"text": "T"
|
|
81912
|
+
}
|
|
81913
|
+
},
|
|
81914
|
+
{
|
|
81915
|
+
"name": "message",
|
|
81916
|
+
"type": {
|
|
81917
|
+
"text": "string"
|
|
81918
|
+
}
|
|
81919
|
+
},
|
|
81920
|
+
{
|
|
81921
|
+
"name": "flagValue",
|
|
81922
|
+
"optional": true,
|
|
81923
|
+
"type": {
|
|
81924
|
+
"text": "ValidityStateFlags[T]"
|
|
81925
|
+
}
|
|
81926
|
+
}
|
|
81927
|
+
],
|
|
81928
|
+
"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).",
|
|
81801
81929
|
"inheritedFrom": {
|
|
81802
|
-
"name": "
|
|
81803
|
-
"module": "core/
|
|
81804
|
-
}
|
|
81805
|
-
},
|
|
81806
|
-
{
|
|
81807
|
-
"kind": "field",
|
|
81808
|
-
"name": "size",
|
|
81809
|
-
"type": {
|
|
81810
|
-
"text": "SbbLinkSize"
|
|
81811
|
-
},
|
|
81812
|
-
"privacy": "public",
|
|
81813
|
-
"description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
|
|
81814
|
-
"default": "'s' / 'xs' (lean)",
|
|
81815
|
-
"attribute": "size",
|
|
81816
|
-
"reflects": true,
|
|
81817
|
-
"inheritedFrom": {
|
|
81818
|
-
"name": "SbbLinkCommonElementMixin",
|
|
81819
|
-
"module": "link/common/link-common.js"
|
|
81820
|
-
}
|
|
81821
|
-
},
|
|
81822
|
-
{
|
|
81823
|
-
"kind": "field",
|
|
81824
|
-
"name": "iconName",
|
|
81825
|
-
"type": {
|
|
81826
|
-
"text": "string"
|
|
81827
|
-
},
|
|
81828
|
-
"privacy": "public",
|
|
81829
|
-
"default": "''",
|
|
81830
|
-
"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.",
|
|
81831
|
-
"attribute": "icon-name",
|
|
81832
|
-
"inheritedFrom": {
|
|
81833
|
-
"name": "SbbIconNameMixin",
|
|
81834
|
-
"module": "icon/icon-name-mixin.js"
|
|
81930
|
+
"name": "SbbFormAssociatedMixin",
|
|
81931
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
81835
81932
|
}
|
|
81836
81933
|
},
|
|
81837
81934
|
{
|
|
81838
81935
|
"kind": "method",
|
|
81839
|
-
"name": "
|
|
81936
|
+
"name": "removeValidityFlag",
|
|
81840
81937
|
"privacy": "protected",
|
|
81841
81938
|
"return": {
|
|
81842
81939
|
"type": {
|
|
81843
|
-
"text": "
|
|
81940
|
+
"text": "void"
|
|
81844
81941
|
}
|
|
81845
81942
|
},
|
|
81846
81943
|
"parameters": [
|
|
81847
81944
|
{
|
|
81848
|
-
"name": "
|
|
81849
|
-
"optional": true,
|
|
81945
|
+
"name": "flag",
|
|
81850
81946
|
"type": {
|
|
81851
|
-
"text": "
|
|
81947
|
+
"text": "T"
|
|
81852
81948
|
}
|
|
81853
81949
|
}
|
|
81854
81950
|
],
|
|
81951
|
+
"description": "Removes the validity state flag entry and updates validity state.",
|
|
81855
81952
|
"inheritedFrom": {
|
|
81856
|
-
"name": "
|
|
81857
|
-
"module": "
|
|
81953
|
+
"name": "SbbFormAssociatedMixin",
|
|
81954
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
81858
81955
|
}
|
|
81859
81956
|
},
|
|
81860
81957
|
{
|
|
81861
81958
|
"kind": "method",
|
|
81862
|
-
"name": "
|
|
81959
|
+
"name": "validate",
|
|
81863
81960
|
"privacy": "protected",
|
|
81864
81961
|
"return": {
|
|
81865
81962
|
"type": {
|
|
81866
|
-
"text": "
|
|
81963
|
+
"text": "void"
|
|
81867
81964
|
}
|
|
81868
81965
|
},
|
|
81966
|
+
"description": "To be called whenever the current element needs to be validated.",
|
|
81869
81967
|
"inheritedFrom": {
|
|
81870
|
-
"name": "
|
|
81871
|
-
"module": "
|
|
81968
|
+
"name": "SbbFormAssociatedMixin",
|
|
81969
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
81872
81970
|
}
|
|
81873
81971
|
},
|
|
81874
81972
|
{
|
|
81875
81973
|
"kind": "method",
|
|
81876
|
-
"name": "
|
|
81877
|
-
"privacy": "
|
|
81974
|
+
"name": "shouldValidate",
|
|
81975
|
+
"privacy": "protected",
|
|
81878
81976
|
"return": {
|
|
81879
81977
|
"type": {
|
|
81880
|
-
"text": "
|
|
81978
|
+
"text": "boolean"
|
|
81881
81979
|
}
|
|
81882
81980
|
},
|
|
81981
|
+
"parameters": [
|
|
81982
|
+
{
|
|
81983
|
+
"name": "name",
|
|
81984
|
+
"type": {
|
|
81985
|
+
"text": "PropertyKey | undefined"
|
|
81986
|
+
}
|
|
81987
|
+
}
|
|
81988
|
+
],
|
|
81989
|
+
"description": "Whether validation should be run on a property change with the given name.",
|
|
81883
81990
|
"inheritedFrom": {
|
|
81884
|
-
"name": "
|
|
81885
|
-
"module": "
|
|
81886
|
-
}
|
|
81887
|
-
},
|
|
81888
|
-
{
|
|
81889
|
-
"kind": "field",
|
|
81890
|
-
"name": "disabledInteractive",
|
|
81891
|
-
"type": {
|
|
81892
|
-
"text": "boolean"
|
|
81893
|
-
},
|
|
81894
|
-
"privacy": "public",
|
|
81895
|
-
"default": "false",
|
|
81896
|
-
"description": "Whether the button should be aria-disabled but stay interactive.",
|
|
81897
|
-
"attribute": "disabled-interactive",
|
|
81898
|
-
"reflects": true,
|
|
81899
|
-
"inheritedFrom": {
|
|
81900
|
-
"name": "SbbDisabledInteractiveMixin",
|
|
81901
|
-
"module": "core/mixins/disabled-mixin.js"
|
|
81902
|
-
}
|
|
81903
|
-
},
|
|
81904
|
-
{
|
|
81905
|
-
"kind": "field",
|
|
81906
|
-
"name": "disabled",
|
|
81907
|
-
"privacy": "public",
|
|
81908
|
-
"description": "Whether the component is disabled.",
|
|
81909
|
-
"default": "false",
|
|
81910
|
-
"type": {
|
|
81911
|
-
"text": "boolean"
|
|
81912
|
-
},
|
|
81913
|
-
"attribute": "disabled",
|
|
81914
|
-
"reflects": true,
|
|
81915
|
-
"inheritedFrom": {
|
|
81916
|
-
"name": "SbbDisabledMixin",
|
|
81917
|
-
"module": "core/mixins/disabled-mixin.js"
|
|
81918
|
-
}
|
|
81919
|
-
},
|
|
81920
|
-
{
|
|
81921
|
-
"kind": "field",
|
|
81922
|
-
"name": "#disabled",
|
|
81923
|
-
"privacy": "private",
|
|
81924
|
-
"type": {
|
|
81925
|
-
"text": "boolean"
|
|
81926
|
-
},
|
|
81927
|
-
"default": "false",
|
|
81928
|
-
"inheritedFrom": {
|
|
81929
|
-
"name": "SbbDisabledMixin",
|
|
81930
|
-
"module": "core/mixins/disabled-mixin.js"
|
|
81991
|
+
"name": "SbbFormAssociatedMixin",
|
|
81992
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
81931
81993
|
}
|
|
81932
81994
|
},
|
|
81933
81995
|
{
|
|
81934
81996
|
"kind": "method",
|
|
81935
|
-
"name": "
|
|
81936
|
-
"privacy": "
|
|
81997
|
+
"name": "_setInternalValidity",
|
|
81998
|
+
"privacy": "private",
|
|
81937
81999
|
"return": {
|
|
81938
82000
|
"type": {
|
|
81939
|
-
"text": "
|
|
82001
|
+
"text": "void"
|
|
81940
82002
|
}
|
|
81941
82003
|
},
|
|
81942
|
-
"description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
|
|
81943
82004
|
"inheritedFrom": {
|
|
81944
|
-
"name": "
|
|
81945
|
-
"module": "core/mixins/
|
|
82005
|
+
"name": "SbbFormAssociatedMixin",
|
|
82006
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
81946
82007
|
}
|
|
81947
82008
|
},
|
|
81948
82009
|
{
|
|
81949
82010
|
"kind": "field",
|
|
81950
|
-
"name": "
|
|
82011
|
+
"name": "role",
|
|
81951
82012
|
"type": {
|
|
81952
|
-
"text": "
|
|
82013
|
+
"text": "ElementInternals['role']"
|
|
81953
82014
|
},
|
|
81954
|
-
"privacy": "
|
|
82015
|
+
"privacy": "public",
|
|
82016
|
+
"static": true,
|
|
81955
82017
|
"readonly": true,
|
|
81956
|
-
"default": "
|
|
82018
|
+
"default": "'button'",
|
|
81957
82019
|
"inheritedFrom": {
|
|
81958
|
-
"name": "
|
|
82020
|
+
"name": "SbbButtonLikeBaseElement",
|
|
81959
82021
|
"module": "core/base-elements/button-base-element.js"
|
|
81960
82022
|
}
|
|
81961
82023
|
},
|
|
81962
82024
|
{
|
|
81963
82025
|
"kind": "field",
|
|
81964
|
-
"name": "
|
|
81965
|
-
"
|
|
81966
|
-
|
|
81967
|
-
|
|
81968
|
-
|
|
81969
|
-
|
|
81970
|
-
|
|
81971
|
-
|
|
81972
|
-
|
|
81973
|
-
"default": "''",
|
|
81974
|
-
"description": "Value of the form element.",
|
|
81975
|
-
"attribute": "value"
|
|
81976
|
-
},
|
|
81977
|
-
{
|
|
81978
|
-
"kind": "field",
|
|
81979
|
-
"name": "type",
|
|
81980
|
-
"privacy": "public",
|
|
81981
|
-
"description": "The type attribute to use for the button.",
|
|
81982
|
-
"default": "'button'",
|
|
81983
|
-
"type": {
|
|
81984
|
-
"text": "SbbButtonType"
|
|
81985
|
-
},
|
|
81986
|
-
"attribute": "type",
|
|
82026
|
+
"name": "_preventScrollOnSpaceKeydown",
|
|
82027
|
+
"privacy": "private",
|
|
82028
|
+
"description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
|
|
82029
|
+
"parameters": [
|
|
82030
|
+
{
|
|
82031
|
+
"description": "The origin event.",
|
|
82032
|
+
"name": "event"
|
|
82033
|
+
}
|
|
82034
|
+
],
|
|
81987
82035
|
"inheritedFrom": {
|
|
81988
|
-
"name": "
|
|
82036
|
+
"name": "SbbButtonLikeBaseElement",
|
|
81989
82037
|
"module": "core/base-elements/button-base-element.js"
|
|
81990
82038
|
}
|
|
81991
82039
|
},
|
|
81992
82040
|
{
|
|
81993
82041
|
"kind": "field",
|
|
81994
|
-
"name": "
|
|
81995
|
-
"
|
|
81996
|
-
"text": "HTMLFormElement | null"
|
|
81997
|
-
},
|
|
81998
|
-
"privacy": "public",
|
|
81999
|
-
"description": "The `<form>` element to associate the button with.",
|
|
82042
|
+
"name": "_removeActiveMarker",
|
|
82043
|
+
"privacy": "private",
|
|
82000
82044
|
"inheritedFrom": {
|
|
82001
|
-
"name": "
|
|
82045
|
+
"name": "SbbButtonLikeBaseElement",
|
|
82002
82046
|
"module": "core/base-elements/button-base-element.js"
|
|
82003
|
-
}
|
|
82004
|
-
"attribute": "form"
|
|
82047
|
+
}
|
|
82005
82048
|
},
|
|
82006
82049
|
{
|
|
82007
82050
|
"kind": "field",
|
|
82008
|
-
"name": "
|
|
82009
|
-
"type": {
|
|
82010
|
-
"text": "string"
|
|
82011
|
-
},
|
|
82051
|
+
"name": "_dispatchClickEventOnSpaceKeyup",
|
|
82012
82052
|
"privacy": "private",
|
|
82013
|
-
"
|
|
82053
|
+
"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.",
|
|
82054
|
+
"parameters": [
|
|
82055
|
+
{
|
|
82056
|
+
"description": "The origin event.",
|
|
82057
|
+
"name": "event"
|
|
82058
|
+
}
|
|
82059
|
+
],
|
|
82014
82060
|
"inheritedFrom": {
|
|
82015
|
-
"name": "
|
|
82061
|
+
"name": "SbbButtonLikeBaseElement",
|
|
82016
82062
|
"module": "core/base-elements/button-base-element.js"
|
|
82017
82063
|
}
|
|
82018
82064
|
},
|
|
82019
82065
|
{
|
|
82020
82066
|
"kind": "field",
|
|
82021
|
-
"name": "
|
|
82067
|
+
"name": "_dispatchClickEvent",
|
|
82022
82068
|
"privacy": "private",
|
|
82023
82069
|
"inheritedFrom": {
|
|
82024
|
-
"name": "
|
|
82070
|
+
"name": "SbbButtonLikeBaseElement",
|
|
82025
82071
|
"module": "core/base-elements/button-base-element.js"
|
|
82026
82072
|
}
|
|
82027
82073
|
},
|
|
82028
82074
|
{
|
|
82029
82075
|
"kind": "method",
|
|
82030
|
-
"name": "
|
|
82031
|
-
"privacy": "
|
|
82076
|
+
"name": "toggleState",
|
|
82077
|
+
"privacy": "protected",
|
|
82032
82078
|
"return": {
|
|
82033
82079
|
"type": {
|
|
82034
82080
|
"text": "void"
|
|
@@ -82036,390 +82082,344 @@
|
|
|
82036
82082
|
},
|
|
82037
82083
|
"parameters": [
|
|
82038
82084
|
{
|
|
82039
|
-
"name": "
|
|
82085
|
+
"name": "value",
|
|
82040
82086
|
"type": {
|
|
82041
|
-
"text": "
|
|
82087
|
+
"text": "string"
|
|
82088
|
+
}
|
|
82089
|
+
},
|
|
82090
|
+
{
|
|
82091
|
+
"name": "force",
|
|
82092
|
+
"optional": true,
|
|
82093
|
+
"type": {
|
|
82094
|
+
"text": "boolean"
|
|
82042
82095
|
}
|
|
82043
82096
|
}
|
|
82044
82097
|
],
|
|
82045
82098
|
"inheritedFrom": {
|
|
82046
|
-
"name": "
|
|
82047
|
-
"module": "core/base-elements/
|
|
82099
|
+
"name": "SbbActionBaseElement",
|
|
82100
|
+
"module": "core/base-elements/action-base-element.js"
|
|
82048
82101
|
}
|
|
82049
82102
|
},
|
|
82050
82103
|
{
|
|
82051
82104
|
"kind": "field",
|
|
82052
|
-
"name": "
|
|
82053
|
-
"
|
|
82105
|
+
"name": "maybeDisabled",
|
|
82106
|
+
"type": {
|
|
82107
|
+
"text": "boolean | undefined"
|
|
82108
|
+
},
|
|
82109
|
+
"privacy": "protected",
|
|
82110
|
+
"readonly": true,
|
|
82054
82111
|
"inheritedFrom": {
|
|
82055
|
-
"name": "
|
|
82056
|
-
"module": "core/base-elements/
|
|
82112
|
+
"name": "SbbActionBaseElement",
|
|
82113
|
+
"module": "core/base-elements/action-base-element.js"
|
|
82057
82114
|
}
|
|
82058
82115
|
},
|
|
82059
82116
|
{
|
|
82060
82117
|
"kind": "field",
|
|
82061
|
-
"name": "
|
|
82118
|
+
"name": "maybeDisabledInteractive",
|
|
82062
82119
|
"type": {
|
|
82063
|
-
"text": "boolean"
|
|
82120
|
+
"text": "boolean | undefined"
|
|
82064
82121
|
},
|
|
82065
|
-
"privacy": "
|
|
82066
|
-
"
|
|
82067
|
-
"default": "true",
|
|
82122
|
+
"privacy": "protected",
|
|
82123
|
+
"readonly": true,
|
|
82068
82124
|
"inheritedFrom": {
|
|
82069
|
-
"name": "
|
|
82070
|
-
"module": "core/
|
|
82125
|
+
"name": "SbbActionBaseElement",
|
|
82126
|
+
"module": "core/base-elements/action-base-element.js"
|
|
82071
82127
|
}
|
|
82072
82128
|
},
|
|
82073
82129
|
{
|
|
82074
|
-
"kind": "
|
|
82075
|
-
"name": "
|
|
82076
|
-
"privacy": "
|
|
82077
|
-
"
|
|
82078
|
-
|
|
82079
|
-
|
|
82130
|
+
"kind": "method",
|
|
82131
|
+
"name": "setupBaseEventHandlers",
|
|
82132
|
+
"privacy": "protected",
|
|
82133
|
+
"return": {
|
|
82134
|
+
"type": {
|
|
82135
|
+
"text": "void"
|
|
82136
|
+
}
|
|
82080
82137
|
},
|
|
82081
|
-
"attribute": "name",
|
|
82082
82138
|
"inheritedFrom": {
|
|
82083
|
-
"name": "
|
|
82084
|
-
"module": "core/
|
|
82139
|
+
"name": "SbbActionBaseElement",
|
|
82140
|
+
"module": "core/base-elements/action-base-element.js"
|
|
82085
82141
|
}
|
|
82086
|
-
}
|
|
82142
|
+
}
|
|
82143
|
+
]
|
|
82144
|
+
}
|
|
82145
|
+
],
|
|
82146
|
+
"exports": [
|
|
82147
|
+
{
|
|
82148
|
+
"kind": "js",
|
|
82149
|
+
"name": "SbbBlockLinkButtonElement",
|
|
82150
|
+
"declaration": {
|
|
82151
|
+
"name": "SbbBlockLinkButtonElement",
|
|
82152
|
+
"module": "link/block-link-button/block-link-button.component.js"
|
|
82153
|
+
}
|
|
82154
|
+
},
|
|
82155
|
+
{
|
|
82156
|
+
"kind": "custom-element-definition",
|
|
82157
|
+
"name": "sbb-block-link-button",
|
|
82158
|
+
"declaration": {
|
|
82159
|
+
"name": "SbbBlockLinkButtonElement",
|
|
82160
|
+
"module": "link/block-link-button/block-link-button.component.js"
|
|
82161
|
+
}
|
|
82162
|
+
}
|
|
82163
|
+
]
|
|
82164
|
+
},
|
|
82165
|
+
{
|
|
82166
|
+
"kind": "javascript-module",
|
|
82167
|
+
"path": "link/block-link-static/block-link-static.component.js",
|
|
82168
|
+
"declarations": [
|
|
82169
|
+
{
|
|
82170
|
+
"kind": "class",
|
|
82171
|
+
"description": "It displays a static link enhanced with the SBB Design.",
|
|
82172
|
+
"name": "SbbBlockLinkStaticElement",
|
|
82173
|
+
"slots": [
|
|
82087
82174
|
{
|
|
82088
|
-
"
|
|
82089
|
-
"name": "
|
|
82090
|
-
"type": {
|
|
82091
|
-
"text": "ValidityState"
|
|
82092
|
-
},
|
|
82093
|
-
"privacy": "public",
|
|
82094
|
-
"description": "Returns the ValidityState object for this element.",
|
|
82095
|
-
"readonly": true,
|
|
82096
|
-
"inheritedFrom": {
|
|
82097
|
-
"name": "SbbFormAssociatedMixin",
|
|
82098
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
82099
|
-
}
|
|
82175
|
+
"description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
|
|
82176
|
+
"name": ""
|
|
82100
82177
|
},
|
|
82101
82178
|
{
|
|
82102
|
-
"
|
|
82103
|
-
"name": "
|
|
82104
|
-
|
|
82105
|
-
|
|
82106
|
-
|
|
82107
|
-
"privacy": "public",
|
|
82108
|
-
"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.",
|
|
82109
|
-
"readonly": true,
|
|
82110
|
-
"inheritedFrom": {
|
|
82111
|
-
"name": "SbbFormAssociatedMixin",
|
|
82112
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
82113
|
-
}
|
|
82114
|
-
},
|
|
82179
|
+
"description": "Slot used to display the icon, if one is set.",
|
|
82180
|
+
"name": "icon"
|
|
82181
|
+
}
|
|
82182
|
+
],
|
|
82183
|
+
"mixins": [
|
|
82115
82184
|
{
|
|
82116
|
-
"
|
|
82117
|
-
"
|
|
82118
|
-
"type": {
|
|
82119
|
-
"text": "boolean"
|
|
82120
|
-
},
|
|
82121
|
-
"privacy": "public",
|
|
82122
|
-
"description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
|
|
82123
|
-
"readonly": true,
|
|
82124
|
-
"inheritedFrom": {
|
|
82125
|
-
"name": "SbbFormAssociatedMixin",
|
|
82126
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
82127
|
-
}
|
|
82185
|
+
"name": "SbbBlockLinkCommonElementMixin",
|
|
82186
|
+
"module": "link/common.js"
|
|
82128
82187
|
},
|
|
82129
82188
|
{
|
|
82130
|
-
"
|
|
82131
|
-
"
|
|
82132
|
-
|
|
82133
|
-
|
|
82134
|
-
|
|
82135
|
-
|
|
82136
|
-
|
|
82137
|
-
|
|
82138
|
-
|
|
82189
|
+
"name": "SbbDisabledMixin",
|
|
82190
|
+
"module": "core/mixins.js"
|
|
82191
|
+
}
|
|
82192
|
+
],
|
|
82193
|
+
"superclass": {
|
|
82194
|
+
"name": "SbbActionBaseElement",
|
|
82195
|
+
"module": "core/base-elements.js"
|
|
82196
|
+
},
|
|
82197
|
+
"tagName": "sbb-block-link-static",
|
|
82198
|
+
"customElement": true,
|
|
82199
|
+
"attributes": [
|
|
82139
82200
|
{
|
|
82140
|
-
"
|
|
82141
|
-
"name": "formDisabled",
|
|
82201
|
+
"name": "icon-placement",
|
|
82142
82202
|
"type": {
|
|
82143
|
-
"text": "
|
|
82144
|
-
},
|
|
82145
|
-
"privacy": "protected",
|
|
82146
|
-
"default": "false",
|
|
82147
|
-
"description": "Whenever a surrounding form or fieldset is changing its disabled state.",
|
|
82148
|
-
"inheritedFrom": {
|
|
82149
|
-
"name": "SbbFormAssociatedMixin",
|
|
82150
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
82151
|
-
}
|
|
82152
|
-
},
|
|
82153
|
-
{
|
|
82154
|
-
"kind": "method",
|
|
82155
|
-
"name": "checkValidity",
|
|
82156
|
-
"privacy": "public",
|
|
82157
|
-
"return": {
|
|
82158
|
-
"type": {
|
|
82159
|
-
"text": "boolean"
|
|
82160
|
-
}
|
|
82161
|
-
},
|
|
82162
|
-
"description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
|
|
82163
|
-
"inheritedFrom": {
|
|
82164
|
-
"name": "SbbFormAssociatedMixin",
|
|
82165
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
82166
|
-
}
|
|
82167
|
-
},
|
|
82168
|
-
{
|
|
82169
|
-
"kind": "method",
|
|
82170
|
-
"name": "reportValidity",
|
|
82171
|
-
"privacy": "public",
|
|
82172
|
-
"return": {
|
|
82173
|
-
"type": {
|
|
82174
|
-
"text": "boolean"
|
|
82175
|
-
}
|
|
82203
|
+
"text": "SbbIconPlacement"
|
|
82176
82204
|
},
|
|
82177
|
-
"
|
|
82205
|
+
"default": "'start'",
|
|
82206
|
+
"description": "Moves the icon to the end of the component if set to true.",
|
|
82207
|
+
"fieldName": "iconPlacement",
|
|
82178
82208
|
"inheritedFrom": {
|
|
82179
|
-
"name": "
|
|
82180
|
-
"module": "
|
|
82209
|
+
"name": "SbbBlockLinkCommonElementMixin",
|
|
82210
|
+
"module": "link/common/block-link-common.js"
|
|
82181
82211
|
}
|
|
82182
82212
|
},
|
|
82183
82213
|
{
|
|
82184
|
-
"
|
|
82185
|
-
"
|
|
82186
|
-
|
|
82187
|
-
"return": {
|
|
82188
|
-
"type": {
|
|
82189
|
-
"text": "void"
|
|
82190
|
-
}
|
|
82214
|
+
"name": "size",
|
|
82215
|
+
"type": {
|
|
82216
|
+
"text": "SbbLinkSize"
|
|
82191
82217
|
},
|
|
82192
|
-
"
|
|
82193
|
-
|
|
82194
|
-
|
|
82195
|
-
"type": {
|
|
82196
|
-
"text": "string"
|
|
82197
|
-
}
|
|
82198
|
-
}
|
|
82199
|
-
],
|
|
82200
|
-
"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.",
|
|
82218
|
+
"description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
|
|
82219
|
+
"default": "'s' / 'xs' (lean)",
|
|
82220
|
+
"fieldName": "size",
|
|
82201
82221
|
"inheritedFrom": {
|
|
82202
|
-
"name": "
|
|
82203
|
-
"module": "
|
|
82222
|
+
"name": "SbbLinkCommonElementMixin",
|
|
82223
|
+
"module": "link/common/link-common.js"
|
|
82204
82224
|
}
|
|
82205
82225
|
},
|
|
82206
82226
|
{
|
|
82207
|
-
"
|
|
82208
|
-
"
|
|
82209
|
-
|
|
82210
|
-
"return": {
|
|
82211
|
-
"type": {
|
|
82212
|
-
"text": "boolean"
|
|
82213
|
-
}
|
|
82227
|
+
"name": "icon-name",
|
|
82228
|
+
"type": {
|
|
82229
|
+
"text": "string"
|
|
82214
82230
|
},
|
|
82231
|
+
"default": "''",
|
|
82232
|
+
"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.",
|
|
82233
|
+
"fieldName": "iconName",
|
|
82215
82234
|
"inheritedFrom": {
|
|
82216
|
-
"name": "
|
|
82217
|
-
"module": "
|
|
82235
|
+
"name": "SbbIconNameMixin",
|
|
82236
|
+
"module": "icon/icon-name-mixin.js"
|
|
82218
82237
|
}
|
|
82219
82238
|
},
|
|
82220
82239
|
{
|
|
82221
|
-
"
|
|
82222
|
-
"
|
|
82223
|
-
"
|
|
82224
|
-
"
|
|
82225
|
-
"
|
|
82226
|
-
"text": "void"
|
|
82227
|
-
}
|
|
82240
|
+
"name": "disabled",
|
|
82241
|
+
"description": "Whether the component is disabled.",
|
|
82242
|
+
"default": "false",
|
|
82243
|
+
"type": {
|
|
82244
|
+
"text": "boolean"
|
|
82228
82245
|
},
|
|
82229
|
-
"
|
|
82246
|
+
"fieldName": "disabled",
|
|
82230
82247
|
"inheritedFrom": {
|
|
82231
|
-
"name": "
|
|
82232
|
-
"module": "core/mixins/
|
|
82248
|
+
"name": "SbbDisabledMixin",
|
|
82249
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
82233
82250
|
}
|
|
82234
|
-
}
|
|
82251
|
+
}
|
|
82252
|
+
],
|
|
82253
|
+
"members": [
|
|
82235
82254
|
{
|
|
82236
|
-
"kind": "
|
|
82237
|
-
"name": "
|
|
82238
|
-
"
|
|
82239
|
-
|
|
82240
|
-
"type": {
|
|
82241
|
-
"text": "FormRestoreState"
|
|
82242
|
-
}
|
|
82255
|
+
"kind": "field",
|
|
82256
|
+
"name": "styles",
|
|
82257
|
+
"type": {
|
|
82258
|
+
"text": "CSSResultGroup"
|
|
82243
82259
|
},
|
|
82260
|
+
"privacy": "public",
|
|
82261
|
+
"static": true,
|
|
82262
|
+
"default": "[boxSizingStyles, style, blockStyle]",
|
|
82244
82263
|
"inheritedFrom": {
|
|
82245
|
-
"name": "
|
|
82246
|
-
"module": "
|
|
82264
|
+
"name": "SbbLinkCommonElementMixin",
|
|
82265
|
+
"module": "link/common/link-common.js"
|
|
82247
82266
|
}
|
|
82248
82267
|
},
|
|
82249
82268
|
{
|
|
82250
|
-
"kind": "
|
|
82251
|
-
"name": "
|
|
82252
|
-
"
|
|
82253
|
-
|
|
82254
|
-
|
|
82255
|
-
|
|
82256
|
-
|
|
82257
|
-
|
|
82258
|
-
"
|
|
82259
|
-
|
|
82260
|
-
"name": "flag",
|
|
82261
|
-
"type": {
|
|
82262
|
-
"text": "T"
|
|
82263
|
-
}
|
|
82264
|
-
},
|
|
82265
|
-
{
|
|
82266
|
-
"name": "message",
|
|
82267
|
-
"type": {
|
|
82268
|
-
"text": "string"
|
|
82269
|
-
}
|
|
82270
|
-
},
|
|
82271
|
-
{
|
|
82272
|
-
"name": "flagValue",
|
|
82273
|
-
"optional": true,
|
|
82274
|
-
"type": {
|
|
82275
|
-
"text": "ValidityStateFlags[T]"
|
|
82276
|
-
}
|
|
82277
|
-
}
|
|
82278
|
-
],
|
|
82279
|
-
"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).",
|
|
82269
|
+
"kind": "field",
|
|
82270
|
+
"name": "iconPlacement",
|
|
82271
|
+
"type": {
|
|
82272
|
+
"text": "SbbIconPlacement"
|
|
82273
|
+
},
|
|
82274
|
+
"privacy": "public",
|
|
82275
|
+
"default": "'start'",
|
|
82276
|
+
"description": "Moves the icon to the end of the component if set to true.",
|
|
82277
|
+
"attribute": "icon-placement",
|
|
82278
|
+
"reflects": true,
|
|
82280
82279
|
"inheritedFrom": {
|
|
82281
|
-
"name": "
|
|
82282
|
-
"module": "
|
|
82280
|
+
"name": "SbbBlockLinkCommonElementMixin",
|
|
82281
|
+
"module": "link/common/block-link-common.js"
|
|
82283
82282
|
}
|
|
82284
82283
|
},
|
|
82285
82284
|
{
|
|
82286
82285
|
"kind": "method",
|
|
82287
|
-
"name": "
|
|
82286
|
+
"name": "renderTemplate",
|
|
82288
82287
|
"privacy": "protected",
|
|
82289
82288
|
"return": {
|
|
82290
82289
|
"type": {
|
|
82291
|
-
"text": "
|
|
82290
|
+
"text": "TemplateResult"
|
|
82292
82291
|
}
|
|
82293
82292
|
},
|
|
82294
|
-
"
|
|
82295
|
-
{
|
|
82296
|
-
"name": "flag",
|
|
82297
|
-
"type": {
|
|
82298
|
-
"text": "T"
|
|
82299
|
-
}
|
|
82300
|
-
}
|
|
82301
|
-
],
|
|
82302
|
-
"description": "Removes the validity state flag entry and updates validity state.",
|
|
82293
|
+
"description": "Override this method to render the component template.",
|
|
82303
82294
|
"inheritedFrom": {
|
|
82304
|
-
"name": "
|
|
82305
|
-
"module": "core/
|
|
82295
|
+
"name": "SbbActionBaseElement",
|
|
82296
|
+
"module": "core/base-elements/action-base-element.js"
|
|
82306
82297
|
}
|
|
82307
82298
|
},
|
|
82308
82299
|
{
|
|
82309
|
-
"kind": "
|
|
82310
|
-
"name": "
|
|
82311
|
-
"
|
|
82312
|
-
|
|
82313
|
-
"type": {
|
|
82314
|
-
"text": "void"
|
|
82315
|
-
}
|
|
82300
|
+
"kind": "field",
|
|
82301
|
+
"name": "size",
|
|
82302
|
+
"type": {
|
|
82303
|
+
"text": "SbbLinkSize"
|
|
82316
82304
|
},
|
|
82317
|
-
"
|
|
82305
|
+
"privacy": "public",
|
|
82306
|
+
"description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
|
|
82307
|
+
"default": "'s' / 'xs' (lean)",
|
|
82308
|
+
"attribute": "size",
|
|
82309
|
+
"reflects": true,
|
|
82318
82310
|
"inheritedFrom": {
|
|
82319
|
-
"name": "
|
|
82320
|
-
"module": "
|
|
82311
|
+
"name": "SbbLinkCommonElementMixin",
|
|
82312
|
+
"module": "link/common/link-common.js"
|
|
82313
|
+
}
|
|
82314
|
+
},
|
|
82315
|
+
{
|
|
82316
|
+
"kind": "field",
|
|
82317
|
+
"name": "iconName",
|
|
82318
|
+
"type": {
|
|
82319
|
+
"text": "string"
|
|
82320
|
+
},
|
|
82321
|
+
"privacy": "public",
|
|
82322
|
+
"default": "''",
|
|
82323
|
+
"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.",
|
|
82324
|
+
"attribute": "icon-name",
|
|
82325
|
+
"inheritedFrom": {
|
|
82326
|
+
"name": "SbbIconNameMixin",
|
|
82327
|
+
"module": "icon/icon-name-mixin.js"
|
|
82321
82328
|
}
|
|
82322
82329
|
},
|
|
82323
82330
|
{
|
|
82324
82331
|
"kind": "method",
|
|
82325
|
-
"name": "
|
|
82332
|
+
"name": "renderIconSlot",
|
|
82326
82333
|
"privacy": "protected",
|
|
82327
82334
|
"return": {
|
|
82328
82335
|
"type": {
|
|
82329
|
-
"text": "
|
|
82336
|
+
"text": "TemplateResult"
|
|
82330
82337
|
}
|
|
82331
82338
|
},
|
|
82332
82339
|
"parameters": [
|
|
82333
82340
|
{
|
|
82334
|
-
"name": "
|
|
82341
|
+
"name": "classname",
|
|
82342
|
+
"optional": true,
|
|
82335
82343
|
"type": {
|
|
82336
|
-
"text": "
|
|
82344
|
+
"text": "string"
|
|
82337
82345
|
}
|
|
82338
82346
|
}
|
|
82339
82347
|
],
|
|
82340
|
-
"description": "Whether validation should be run on a property change with the given name.",
|
|
82341
82348
|
"inheritedFrom": {
|
|
82342
|
-
"name": "
|
|
82343
|
-
"module": "
|
|
82349
|
+
"name": "SbbIconNameMixin",
|
|
82350
|
+
"module": "icon/icon-name-mixin.js"
|
|
82344
82351
|
}
|
|
82345
82352
|
},
|
|
82346
82353
|
{
|
|
82347
82354
|
"kind": "method",
|
|
82348
|
-
"name": "
|
|
82349
|
-
"privacy": "
|
|
82355
|
+
"name": "renderIconName",
|
|
82356
|
+
"privacy": "protected",
|
|
82350
82357
|
"return": {
|
|
82351
82358
|
"type": {
|
|
82352
|
-
"text": "
|
|
82359
|
+
"text": "string"
|
|
82353
82360
|
}
|
|
82354
82361
|
},
|
|
82355
82362
|
"inheritedFrom": {
|
|
82356
|
-
"name": "
|
|
82357
|
-
"module": "
|
|
82358
|
-
}
|
|
82359
|
-
},
|
|
82360
|
-
{
|
|
82361
|
-
"kind": "field",
|
|
82362
|
-
"name": "role",
|
|
82363
|
-
"type": {
|
|
82364
|
-
"text": "ElementInternals['role']"
|
|
82365
|
-
},
|
|
82366
|
-
"privacy": "public",
|
|
82367
|
-
"static": true,
|
|
82368
|
-
"readonly": true,
|
|
82369
|
-
"default": "'button'",
|
|
82370
|
-
"inheritedFrom": {
|
|
82371
|
-
"name": "SbbButtonLikeBaseElement",
|
|
82372
|
-
"module": "core/base-elements/button-base-element.js"
|
|
82363
|
+
"name": "SbbIconNameMixin",
|
|
82364
|
+
"module": "icon/icon-name-mixin.js"
|
|
82373
82365
|
}
|
|
82374
82366
|
},
|
|
82375
82367
|
{
|
|
82376
|
-
"kind": "
|
|
82377
|
-
"name": "
|
|
82368
|
+
"kind": "method",
|
|
82369
|
+
"name": "_renderIconName",
|
|
82378
82370
|
"privacy": "private",
|
|
82379
|
-
"
|
|
82380
|
-
|
|
82381
|
-
|
|
82382
|
-
"description": "The origin event.",
|
|
82383
|
-
"name": "event"
|
|
82371
|
+
"return": {
|
|
82372
|
+
"type": {
|
|
82373
|
+
"text": "string"
|
|
82384
82374
|
}
|
|
82385
|
-
|
|
82375
|
+
},
|
|
82386
82376
|
"inheritedFrom": {
|
|
82387
|
-
"name": "
|
|
82388
|
-
"module": "
|
|
82377
|
+
"name": "SbbIconNameMixin",
|
|
82378
|
+
"module": "icon/icon-name-mixin.js"
|
|
82389
82379
|
}
|
|
82390
82380
|
},
|
|
82391
82381
|
{
|
|
82392
82382
|
"kind": "field",
|
|
82393
|
-
"name": "
|
|
82394
|
-
"privacy": "
|
|
82383
|
+
"name": "disabled",
|
|
82384
|
+
"privacy": "public",
|
|
82385
|
+
"description": "Whether the component is disabled.",
|
|
82386
|
+
"default": "false",
|
|
82387
|
+
"type": {
|
|
82388
|
+
"text": "boolean"
|
|
82389
|
+
},
|
|
82390
|
+
"attribute": "disabled",
|
|
82391
|
+
"reflects": true,
|
|
82395
82392
|
"inheritedFrom": {
|
|
82396
|
-
"name": "
|
|
82397
|
-
"module": "core/
|
|
82393
|
+
"name": "SbbDisabledMixin",
|
|
82394
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
82398
82395
|
}
|
|
82399
82396
|
},
|
|
82400
82397
|
{
|
|
82401
82398
|
"kind": "field",
|
|
82402
|
-
"name": "
|
|
82399
|
+
"name": "#disabled",
|
|
82403
82400
|
"privacy": "private",
|
|
82404
|
-
"
|
|
82405
|
-
|
|
82406
|
-
|
|
82407
|
-
|
|
82408
|
-
"name": "event"
|
|
82409
|
-
}
|
|
82410
|
-
],
|
|
82401
|
+
"type": {
|
|
82402
|
+
"text": "boolean"
|
|
82403
|
+
},
|
|
82404
|
+
"default": "false",
|
|
82411
82405
|
"inheritedFrom": {
|
|
82412
|
-
"name": "
|
|
82413
|
-
"module": "core/
|
|
82406
|
+
"name": "SbbDisabledMixin",
|
|
82407
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
82414
82408
|
}
|
|
82415
82409
|
},
|
|
82416
82410
|
{
|
|
82417
|
-
"kind": "
|
|
82418
|
-
"name": "
|
|
82419
|
-
"privacy": "
|
|
82411
|
+
"kind": "method",
|
|
82412
|
+
"name": "isDisabledExternally",
|
|
82413
|
+
"privacy": "protected",
|
|
82414
|
+
"return": {
|
|
82415
|
+
"type": {
|
|
82416
|
+
"text": "boolean"
|
|
82417
|
+
}
|
|
82418
|
+
},
|
|
82419
|
+
"description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
|
|
82420
82420
|
"inheritedFrom": {
|
|
82421
|
-
"name": "
|
|
82422
|
-
"module": "core/
|
|
82421
|
+
"name": "SbbDisabledMixin",
|
|
82422
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
82423
82423
|
}
|
|
82424
82424
|
},
|
|
82425
82425
|
{
|
|
@@ -82497,18 +82497,18 @@
|
|
|
82497
82497
|
"exports": [
|
|
82498
82498
|
{
|
|
82499
82499
|
"kind": "js",
|
|
82500
|
-
"name": "
|
|
82500
|
+
"name": "SbbBlockLinkStaticElement",
|
|
82501
82501
|
"declaration": {
|
|
82502
|
-
"name": "
|
|
82503
|
-
"module": "link/block-link-
|
|
82502
|
+
"name": "SbbBlockLinkStaticElement",
|
|
82503
|
+
"module": "link/block-link-static/block-link-static.component.js"
|
|
82504
82504
|
}
|
|
82505
82505
|
},
|
|
82506
82506
|
{
|
|
82507
82507
|
"kind": "custom-element-definition",
|
|
82508
|
-
"name": "sbb-block-link-
|
|
82508
|
+
"name": "sbb-block-link-static",
|
|
82509
82509
|
"declaration": {
|
|
82510
|
-
"name": "
|
|
82511
|
-
"module": "link/block-link-
|
|
82510
|
+
"name": "SbbBlockLinkStaticElement",
|
|
82511
|
+
"module": "link/block-link-static/block-link-static.component.js"
|
|
82512
82512
|
}
|
|
82513
82513
|
}
|
|
82514
82514
|
]
|
|
@@ -110733,16 +110733,20 @@
|
|
|
110733
110733
|
},
|
|
110734
110734
|
{
|
|
110735
110735
|
"kind": "javascript-module",
|
|
110736
|
-
"path": "toggle/toggle/toggle.component.js",
|
|
110736
|
+
"path": "toggle/toggle-option/toggle-option.component.js",
|
|
110737
110737
|
"declarations": [
|
|
110738
110738
|
{
|
|
110739
110739
|
"kind": "class",
|
|
110740
|
-
"description": "It
|
|
110741
|
-
"name": "
|
|
110740
|
+
"description": "It displays a toggle option within a `sbb-toggle`.",
|
|
110741
|
+
"name": "SbbToggleOptionElement",
|
|
110742
110742
|
"slots": [
|
|
110743
110743
|
{
|
|
110744
|
-
"description": "Use the unnamed slot to add
|
|
110744
|
+
"description": "Use the unnamed slot to add content to the label of the toggle option.",
|
|
110745
110745
|
"name": ""
|
|
110746
|
+
},
|
|
110747
|
+
{
|
|
110748
|
+
"description": "Slot used to render the `sbb-icon`.",
|
|
110749
|
+
"name": "icon"
|
|
110746
110750
|
}
|
|
110747
110751
|
],
|
|
110748
110752
|
"members": [
|
|
@@ -110754,126 +110758,54 @@
|
|
|
110754
110758
|
},
|
|
110755
110759
|
"privacy": "public",
|
|
110756
110760
|
"static": true,
|
|
110757
|
-
"readonly": true,
|
|
110758
|
-
"default": "'
|
|
110759
|
-
},
|
|
110760
|
-
{
|
|
110761
|
-
"kind": "field",
|
|
110762
|
-
"name": "events",
|
|
110763
|
-
"privacy": "public",
|
|
110764
|
-
"static": true,
|
|
110765
|
-
"readonly": true,
|
|
110766
|
-
"default": "{ change: 'change', }",
|
|
110767
|
-
"type": {
|
|
110768
|
-
"text": "{\n change: 'change',\n }"
|
|
110769
|
-
}
|
|
110770
|
-
},
|
|
110771
|
-
{
|
|
110772
|
-
"kind": "field",
|
|
110773
|
-
"name": "even",
|
|
110774
|
-
"type": {
|
|
110775
|
-
"text": "boolean"
|
|
110776
|
-
},
|
|
110777
|
-
"privacy": "public",
|
|
110778
|
-
"default": "false",
|
|
110779
|
-
"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.",
|
|
110780
|
-
"attribute": "even",
|
|
110781
|
-
"reflects": true
|
|
110782
|
-
},
|
|
110783
|
-
{
|
|
110784
|
-
"kind": "field",
|
|
110785
|
-
"name": "size",
|
|
110786
|
-
"type": {
|
|
110787
|
-
"text": "'s' | 'm'"
|
|
110788
|
-
},
|
|
110789
|
-
"privacy": "public",
|
|
110790
|
-
"description": "Size variant, either m or s.",
|
|
110791
|
-
"default": "'m' / 's' (lean)",
|
|
110792
|
-
"attribute": "size",
|
|
110793
|
-
"reflects": true
|
|
110794
|
-
},
|
|
110795
|
-
{
|
|
110796
|
-
"kind": "field",
|
|
110797
|
-
"name": "value",
|
|
110798
|
-
"type": {
|
|
110799
|
-
"text": "(T = string) | null"
|
|
110800
|
-
},
|
|
110801
|
-
"privacy": "public",
|
|
110802
|
-
"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).",
|
|
110803
|
-
"attribute": "value",
|
|
110804
|
-
"inheritedFrom": {
|
|
110805
|
-
"name": "SbbFormAssociatedMixin",
|
|
110806
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
110807
|
-
}
|
|
110808
|
-
},
|
|
110809
|
-
{
|
|
110810
|
-
"kind": "field",
|
|
110811
|
-
"name": "_fallbackValue",
|
|
110812
|
-
"type": {
|
|
110813
|
-
"text": "T | null"
|
|
110814
|
-
},
|
|
110815
|
-
"privacy": "private",
|
|
110816
|
-
"default": "null"
|
|
110761
|
+
"readonly": true,
|
|
110762
|
+
"default": "'radio'"
|
|
110817
110763
|
},
|
|
110818
110764
|
{
|
|
110819
110765
|
"kind": "field",
|
|
110820
|
-
"name": "
|
|
110766
|
+
"name": "checked",
|
|
110821
110767
|
"type": {
|
|
110822
|
-
"text": "
|
|
110768
|
+
"text": "boolean"
|
|
110823
110769
|
},
|
|
110824
110770
|
"privacy": "public",
|
|
110825
|
-
"
|
|
110826
|
-
"
|
|
110771
|
+
"default": "false",
|
|
110772
|
+
"description": "Whether the toggle-option is checked.",
|
|
110773
|
+
"attribute": "checked",
|
|
110774
|
+
"reflects": true
|
|
110827
110775
|
},
|
|
110828
110776
|
{
|
|
110829
|
-
"kind": "
|
|
110830
|
-
"name": "
|
|
110831
|
-
"
|
|
110832
|
-
|
|
110833
|
-
"type": {
|
|
110834
|
-
"text": "Promise<T>"
|
|
110835
|
-
}
|
|
110777
|
+
"kind": "field",
|
|
110778
|
+
"name": "value",
|
|
110779
|
+
"type": {
|
|
110780
|
+
"text": "(T = string) | null"
|
|
110836
110781
|
},
|
|
110837
|
-
"
|
|
110838
|
-
|
|
110839
|
-
|
|
110840
|
-
|
|
110841
|
-
"text": "FormData"
|
|
110842
|
-
}
|
|
110843
|
-
}
|
|
110844
|
-
]
|
|
110782
|
+
"privacy": "public",
|
|
110783
|
+
"default": "null",
|
|
110784
|
+
"description": "Value of toggle-option.",
|
|
110785
|
+
"attribute": "value"
|
|
110845
110786
|
},
|
|
110846
110787
|
{
|
|
110847
|
-
"kind": "
|
|
110848
|
-
"name": "
|
|
110788
|
+
"kind": "field",
|
|
110789
|
+
"name": "_toggle",
|
|
110790
|
+
"type": {
|
|
110791
|
+
"text": "SbbToggleElement | null"
|
|
110792
|
+
},
|
|
110849
110793
|
"privacy": "private",
|
|
110850
|
-
"
|
|
110851
|
-
"type": {
|
|
110852
|
-
"text": "void"
|
|
110853
|
-
}
|
|
110854
|
-
}
|
|
110794
|
+
"default": "null"
|
|
110855
110795
|
},
|
|
110856
110796
|
{
|
|
110857
110797
|
"kind": "method",
|
|
110858
|
-
"name": "
|
|
110798
|
+
"name": "_uncheckOtherOptions",
|
|
110859
110799
|
"privacy": "private",
|
|
110860
110800
|
"return": {
|
|
110861
110801
|
"type": {
|
|
110862
110802
|
"text": "void"
|
|
110863
110803
|
}
|
|
110864
|
-
}
|
|
110865
|
-
"parameters": [
|
|
110866
|
-
{
|
|
110867
|
-
"name": "value",
|
|
110868
|
-
"type": {
|
|
110869
|
-
"text": "T | null"
|
|
110870
|
-
}
|
|
110871
|
-
}
|
|
110872
|
-
]
|
|
110804
|
+
}
|
|
110873
110805
|
},
|
|
110874
110806
|
{
|
|
110875
110807
|
"kind": "method",
|
|
110876
|
-
"name": "
|
|
110808
|
+
"name": "_handleDisabledChange",
|
|
110877
110809
|
"privacy": "private",
|
|
110878
110810
|
"return": {
|
|
110879
110811
|
"type": {
|
|
@@ -110889,44 +110821,17 @@
|
|
|
110889
110821
|
"type": {
|
|
110890
110822
|
"text": "void"
|
|
110891
110823
|
}
|
|
110892
|
-
}
|
|
110893
|
-
"description": "Called on user interaction (click or keyboard)"
|
|
110894
|
-
},
|
|
110895
|
-
{
|
|
110896
|
-
"kind": "method",
|
|
110897
|
-
"name": "_handleKeyDown",
|
|
110898
|
-
"privacy": "private",
|
|
110899
|
-
"return": {
|
|
110900
|
-
"type": {
|
|
110901
|
-
"text": "void"
|
|
110902
|
-
}
|
|
110903
|
-
},
|
|
110904
|
-
"parameters": [
|
|
110905
|
-
{
|
|
110906
|
-
"name": "evt",
|
|
110907
|
-
"type": {
|
|
110908
|
-
"text": "KeyboardEvent"
|
|
110909
|
-
}
|
|
110910
|
-
}
|
|
110911
|
-
]
|
|
110824
|
+
}
|
|
110912
110825
|
},
|
|
110913
110826
|
{
|
|
110914
110827
|
"kind": "method",
|
|
110915
|
-
"name": "
|
|
110828
|
+
"name": "_verifyTabindex",
|
|
110916
110829
|
"privacy": "private",
|
|
110917
110830
|
"return": {
|
|
110918
110831
|
"type": {
|
|
110919
110832
|
"text": "void"
|
|
110920
110833
|
}
|
|
110921
|
-
}
|
|
110922
|
-
"parameters": [
|
|
110923
|
-
{
|
|
110924
|
-
"name": "option",
|
|
110925
|
-
"type": {
|
|
110926
|
-
"text": "SbbToggleOptionElement<T> | undefined"
|
|
110927
|
-
}
|
|
110928
|
-
}
|
|
110929
|
-
]
|
|
110834
|
+
}
|
|
110930
110835
|
},
|
|
110931
110836
|
{
|
|
110932
110837
|
"kind": "field",
|
|
@@ -110974,211 +110879,73 @@
|
|
|
110974
110879
|
},
|
|
110975
110880
|
{
|
|
110976
110881
|
"kind": "field",
|
|
110977
|
-
"name": "
|
|
110978
|
-
"type": {
|
|
110979
|
-
"text": "boolean"
|
|
110980
|
-
},
|
|
110981
|
-
"privacy": "public",
|
|
110982
|
-
"static": true,
|
|
110983
|
-
"default": "true",
|
|
110984
|
-
"inheritedFrom": {
|
|
110985
|
-
"name": "SbbFormAssociatedMixin",
|
|
110986
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
110987
|
-
}
|
|
110988
|
-
},
|
|
110989
|
-
{
|
|
110990
|
-
"kind": "field",
|
|
110991
|
-
"name": "form",
|
|
110992
|
-
"type": {
|
|
110993
|
-
"text": "HTMLFormElement | null"
|
|
110994
|
-
},
|
|
110995
|
-
"privacy": "public",
|
|
110996
|
-
"description": "Returns the form owner of this element.",
|
|
110997
|
-
"readonly": true,
|
|
110998
|
-
"inheritedFrom": {
|
|
110999
|
-
"name": "SbbFormAssociatedMixin",
|
|
111000
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
111001
|
-
}
|
|
111002
|
-
},
|
|
111003
|
-
{
|
|
111004
|
-
"kind": "field",
|
|
111005
|
-
"name": "name",
|
|
111006
|
-
"privacy": "public",
|
|
111007
|
-
"description": "Name of the form element. Will be read from name attribute.",
|
|
111008
|
-
"type": {
|
|
111009
|
-
"text": "string"
|
|
111010
|
-
},
|
|
111011
|
-
"attribute": "name",
|
|
111012
|
-
"inheritedFrom": {
|
|
111013
|
-
"name": "SbbFormAssociatedMixin",
|
|
111014
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
111015
|
-
}
|
|
111016
|
-
},
|
|
111017
|
-
{
|
|
111018
|
-
"kind": "field",
|
|
111019
|
-
"name": "validity",
|
|
111020
|
-
"type": {
|
|
111021
|
-
"text": "ValidityState"
|
|
111022
|
-
},
|
|
111023
|
-
"privacy": "public",
|
|
111024
|
-
"description": "Returns the ValidityState object for this element.",
|
|
111025
|
-
"readonly": true,
|
|
111026
|
-
"inheritedFrom": {
|
|
111027
|
-
"name": "SbbFormAssociatedMixin",
|
|
111028
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
111029
|
-
}
|
|
111030
|
-
},
|
|
111031
|
-
{
|
|
111032
|
-
"kind": "field",
|
|
111033
|
-
"name": "validationMessage",
|
|
110882
|
+
"name": "iconName",
|
|
111034
110883
|
"type": {
|
|
111035
110884
|
"text": "string"
|
|
111036
110885
|
},
|
|
111037
110886
|
"privacy": "public",
|
|
111038
|
-
"
|
|
111039
|
-
"
|
|
111040
|
-
"
|
|
111041
|
-
"name": "SbbFormAssociatedMixin",
|
|
111042
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
111043
|
-
}
|
|
111044
|
-
},
|
|
111045
|
-
{
|
|
111046
|
-
"kind": "field",
|
|
111047
|
-
"name": "willValidate",
|
|
111048
|
-
"type": {
|
|
111049
|
-
"text": "boolean"
|
|
111050
|
-
},
|
|
111051
|
-
"privacy": "public",
|
|
111052
|
-
"description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
|
|
111053
|
-
"readonly": true,
|
|
111054
|
-
"inheritedFrom": {
|
|
111055
|
-
"name": "SbbFormAssociatedMixin",
|
|
111056
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
111057
|
-
}
|
|
111058
|
-
},
|
|
111059
|
-
{
|
|
111060
|
-
"kind": "field",
|
|
111061
|
-
"name": "_validityStates",
|
|
111062
|
-
"privacy": "private",
|
|
111063
|
-
"default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
|
|
111064
|
-
"inheritedFrom": {
|
|
111065
|
-
"name": "SbbFormAssociatedMixin",
|
|
111066
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
111067
|
-
}
|
|
111068
|
-
},
|
|
111069
|
-
{
|
|
111070
|
-
"kind": "field",
|
|
111071
|
-
"name": "formDisabled",
|
|
111072
|
-
"type": {
|
|
111073
|
-
"text": "boolean"
|
|
111074
|
-
},
|
|
111075
|
-
"privacy": "protected",
|
|
111076
|
-
"default": "false",
|
|
111077
|
-
"description": "Whenever a surrounding form or fieldset is changing its disabled state.",
|
|
111078
|
-
"inheritedFrom": {
|
|
111079
|
-
"name": "SbbFormAssociatedMixin",
|
|
111080
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
111081
|
-
}
|
|
111082
|
-
},
|
|
111083
|
-
{
|
|
111084
|
-
"kind": "method",
|
|
111085
|
-
"name": "checkValidity",
|
|
111086
|
-
"privacy": "public",
|
|
111087
|
-
"return": {
|
|
111088
|
-
"type": {
|
|
111089
|
-
"text": "boolean"
|
|
111090
|
-
}
|
|
111091
|
-
},
|
|
111092
|
-
"description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
|
|
111093
|
-
"inheritedFrom": {
|
|
111094
|
-
"name": "SbbFormAssociatedMixin",
|
|
111095
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
111096
|
-
}
|
|
111097
|
-
},
|
|
111098
|
-
{
|
|
111099
|
-
"kind": "method",
|
|
111100
|
-
"name": "reportValidity",
|
|
111101
|
-
"privacy": "public",
|
|
111102
|
-
"return": {
|
|
111103
|
-
"type": {
|
|
111104
|
-
"text": "boolean"
|
|
111105
|
-
}
|
|
111106
|
-
},
|
|
111107
|
-
"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.",
|
|
111108
|
-
"inheritedFrom": {
|
|
111109
|
-
"name": "SbbFormAssociatedMixin",
|
|
111110
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
111111
|
-
}
|
|
111112
|
-
},
|
|
111113
|
-
{
|
|
111114
|
-
"kind": "method",
|
|
111115
|
-
"name": "setCustomValidity",
|
|
111116
|
-
"privacy": "public",
|
|
111117
|
-
"return": {
|
|
111118
|
-
"type": {
|
|
111119
|
-
"text": "void"
|
|
111120
|
-
}
|
|
111121
|
-
},
|
|
111122
|
-
"parameters": [
|
|
111123
|
-
{
|
|
111124
|
-
"name": "message",
|
|
111125
|
-
"type": {
|
|
111126
|
-
"text": "string"
|
|
111127
|
-
}
|
|
111128
|
-
}
|
|
111129
|
-
],
|
|
111130
|
-
"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.",
|
|
110887
|
+
"default": "''",
|
|
110888
|
+
"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.",
|
|
110889
|
+
"attribute": "icon-name",
|
|
111131
110890
|
"inheritedFrom": {
|
|
111132
|
-
"name": "
|
|
111133
|
-
"module": "
|
|
110891
|
+
"name": "SbbIconNameMixin",
|
|
110892
|
+
"module": "icon/icon-name-mixin.js"
|
|
111134
110893
|
}
|
|
111135
110894
|
},
|
|
111136
110895
|
{
|
|
111137
|
-
"kind": "method",
|
|
111138
|
-
"name": "
|
|
111139
|
-
"privacy": "
|
|
110896
|
+
"kind": "method",
|
|
110897
|
+
"name": "renderIconSlot",
|
|
110898
|
+
"privacy": "protected",
|
|
111140
110899
|
"return": {
|
|
111141
110900
|
"type": {
|
|
111142
|
-
"text": "
|
|
110901
|
+
"text": "TemplateResult"
|
|
111143
110902
|
}
|
|
111144
110903
|
},
|
|
110904
|
+
"parameters": [
|
|
110905
|
+
{
|
|
110906
|
+
"name": "classname",
|
|
110907
|
+
"optional": true,
|
|
110908
|
+
"type": {
|
|
110909
|
+
"text": "string"
|
|
110910
|
+
}
|
|
110911
|
+
}
|
|
110912
|
+
],
|
|
111145
110913
|
"inheritedFrom": {
|
|
111146
|
-
"name": "
|
|
111147
|
-
"module": "
|
|
110914
|
+
"name": "SbbIconNameMixin",
|
|
110915
|
+
"module": "icon/icon-name-mixin.js"
|
|
111148
110916
|
}
|
|
111149
110917
|
},
|
|
111150
110918
|
{
|
|
111151
110919
|
"kind": "method",
|
|
111152
|
-
"name": "
|
|
110920
|
+
"name": "renderIconName",
|
|
111153
110921
|
"privacy": "protected",
|
|
111154
110922
|
"return": {
|
|
111155
110923
|
"type": {
|
|
111156
|
-
"text": "
|
|
110924
|
+
"text": "string"
|
|
111157
110925
|
}
|
|
111158
110926
|
},
|
|
111159
|
-
"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",
|
|
111160
110927
|
"inheritedFrom": {
|
|
111161
|
-
"name": "
|
|
111162
|
-
"module": "
|
|
110928
|
+
"name": "SbbIconNameMixin",
|
|
110929
|
+
"module": "icon/icon-name-mixin.js"
|
|
111163
110930
|
}
|
|
111164
110931
|
},
|
|
111165
110932
|
{
|
|
111166
110933
|
"kind": "method",
|
|
111167
|
-
"name": "
|
|
111168
|
-
"privacy": "
|
|
110934
|
+
"name": "_renderIconName",
|
|
110935
|
+
"privacy": "private",
|
|
111169
110936
|
"return": {
|
|
111170
110937
|
"type": {
|
|
111171
|
-
"text": "
|
|
110938
|
+
"text": "string"
|
|
111172
110939
|
}
|
|
111173
110940
|
},
|
|
111174
110941
|
"inheritedFrom": {
|
|
111175
|
-
"name": "
|
|
111176
|
-
"module": "
|
|
110942
|
+
"name": "SbbIconNameMixin",
|
|
110943
|
+
"module": "icon/icon-name-mixin.js"
|
|
111177
110944
|
}
|
|
111178
110945
|
},
|
|
111179
110946
|
{
|
|
111180
110947
|
"kind": "method",
|
|
111181
|
-
"name": "
|
|
110948
|
+
"name": "toggleState",
|
|
111182
110949
|
"privacy": "protected",
|
|
111183
110950
|
"return": {
|
|
111184
110951
|
"type": {
|
|
@@ -111187,110 +110954,278 @@
|
|
|
111187
110954
|
},
|
|
111188
110955
|
"parameters": [
|
|
111189
110956
|
{
|
|
111190
|
-
"name": "
|
|
111191
|
-
"type": {
|
|
111192
|
-
"text": "T"
|
|
111193
|
-
}
|
|
111194
|
-
},
|
|
111195
|
-
{
|
|
111196
|
-
"name": "message",
|
|
110957
|
+
"name": "value",
|
|
111197
110958
|
"type": {
|
|
111198
110959
|
"text": "string"
|
|
111199
110960
|
}
|
|
111200
110961
|
},
|
|
111201
110962
|
{
|
|
111202
|
-
"name": "
|
|
110963
|
+
"name": "force",
|
|
111203
110964
|
"optional": true,
|
|
111204
110965
|
"type": {
|
|
111205
|
-
"text": "
|
|
110966
|
+
"text": "boolean"
|
|
111206
110967
|
}
|
|
111207
110968
|
}
|
|
111208
110969
|
],
|
|
111209
|
-
"
|
|
110970
|
+
"inheritedFrom": {
|
|
110971
|
+
"name": "SbbElementInternalsMixin",
|
|
110972
|
+
"module": "core/mixins/element-internals-mixin.js"
|
|
110973
|
+
}
|
|
110974
|
+
}
|
|
110975
|
+
],
|
|
110976
|
+
"attributes": [
|
|
110977
|
+
{
|
|
110978
|
+
"name": "checked",
|
|
110979
|
+
"type": {
|
|
110980
|
+
"text": "boolean"
|
|
110981
|
+
},
|
|
110982
|
+
"default": "false",
|
|
110983
|
+
"description": "Whether the toggle-option is checked.",
|
|
110984
|
+
"fieldName": "checked"
|
|
110985
|
+
},
|
|
110986
|
+
{
|
|
110987
|
+
"name": "value",
|
|
110988
|
+
"type": {
|
|
110989
|
+
"text": "T | null"
|
|
110990
|
+
},
|
|
110991
|
+
"default": "null",
|
|
110992
|
+
"description": "Value of toggle-option.",
|
|
110993
|
+
"fieldName": "value"
|
|
110994
|
+
},
|
|
110995
|
+
{
|
|
110996
|
+
"name": "disabled",
|
|
110997
|
+
"description": "Whether the component is disabled.",
|
|
110998
|
+
"default": "false",
|
|
110999
|
+
"type": {
|
|
111000
|
+
"text": "boolean"
|
|
111001
|
+
},
|
|
111002
|
+
"fieldName": "disabled",
|
|
111003
|
+
"inheritedFrom": {
|
|
111004
|
+
"name": "SbbDisabledMixin",
|
|
111005
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
111006
|
+
}
|
|
111007
|
+
},
|
|
111008
|
+
{
|
|
111009
|
+
"name": "icon-name",
|
|
111010
|
+
"type": {
|
|
111011
|
+
"text": "string"
|
|
111012
|
+
},
|
|
111013
|
+
"default": "''",
|
|
111014
|
+
"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.",
|
|
111015
|
+
"fieldName": "iconName",
|
|
111016
|
+
"inheritedFrom": {
|
|
111017
|
+
"name": "SbbIconNameMixin",
|
|
111018
|
+
"module": "icon/icon-name-mixin.js"
|
|
111019
|
+
}
|
|
111020
|
+
}
|
|
111021
|
+
],
|
|
111022
|
+
"mixins": [
|
|
111023
|
+
{
|
|
111024
|
+
"name": "SbbDisabledMixin",
|
|
111025
|
+
"module": "core/mixins.js"
|
|
111026
|
+
},
|
|
111027
|
+
{
|
|
111028
|
+
"name": "SbbIconNameMixin",
|
|
111029
|
+
"module": "icon.js"
|
|
111030
|
+
},
|
|
111031
|
+
{
|
|
111032
|
+
"name": "SbbElementInternalsMixin",
|
|
111033
|
+
"module": "core/mixins.js"
|
|
111034
|
+
}
|
|
111035
|
+
],
|
|
111036
|
+
"superclass": {
|
|
111037
|
+
"name": "LitElement",
|
|
111038
|
+
"package": "lit"
|
|
111039
|
+
},
|
|
111040
|
+
"classGenerics": "T = string",
|
|
111041
|
+
"tagName": "sbb-toggle-option",
|
|
111042
|
+
"customElement": true
|
|
111043
|
+
}
|
|
111044
|
+
],
|
|
111045
|
+
"exports": [
|
|
111046
|
+
{
|
|
111047
|
+
"kind": "js",
|
|
111048
|
+
"name": "SbbToggleOptionElement",
|
|
111049
|
+
"declaration": {
|
|
111050
|
+
"name": "SbbToggleOptionElement",
|
|
111051
|
+
"module": "toggle/toggle-option/toggle-option.component.js"
|
|
111052
|
+
}
|
|
111053
|
+
},
|
|
111054
|
+
{
|
|
111055
|
+
"kind": "custom-element-definition",
|
|
111056
|
+
"name": "sbb-toggle-option",
|
|
111057
|
+
"declaration": {
|
|
111058
|
+
"name": "SbbToggleOptionElement",
|
|
111059
|
+
"module": "toggle/toggle-option/toggle-option.component.js"
|
|
111060
|
+
}
|
|
111061
|
+
}
|
|
111062
|
+
]
|
|
111063
|
+
},
|
|
111064
|
+
{
|
|
111065
|
+
"kind": "javascript-module",
|
|
111066
|
+
"path": "toggle/toggle/toggle.component.js",
|
|
111067
|
+
"declarations": [
|
|
111068
|
+
{
|
|
111069
|
+
"kind": "class",
|
|
111070
|
+
"description": "It can be used as a container for two `sbb-toggle-option`, acting as a toggle button.",
|
|
111071
|
+
"name": "SbbToggleElement",
|
|
111072
|
+
"slots": [
|
|
111073
|
+
{
|
|
111074
|
+
"description": "Use the unnamed slot to add `<sbb-toggle-option>` elements to the toggle.",
|
|
111075
|
+
"name": ""
|
|
111076
|
+
}
|
|
111077
|
+
],
|
|
111078
|
+
"members": [
|
|
111079
|
+
{
|
|
111080
|
+
"kind": "field",
|
|
111081
|
+
"name": "role",
|
|
111082
|
+
"type": {
|
|
111083
|
+
"text": "string"
|
|
111084
|
+
},
|
|
111085
|
+
"privacy": "public",
|
|
111086
|
+
"static": true,
|
|
111087
|
+
"readonly": true,
|
|
111088
|
+
"default": "'radiogroup'"
|
|
111089
|
+
},
|
|
111090
|
+
{
|
|
111091
|
+
"kind": "field",
|
|
111092
|
+
"name": "events",
|
|
111093
|
+
"privacy": "public",
|
|
111094
|
+
"static": true,
|
|
111095
|
+
"readonly": true,
|
|
111096
|
+
"default": "{ change: 'change', }",
|
|
111097
|
+
"type": {
|
|
111098
|
+
"text": "{\n change: 'change',\n }"
|
|
111099
|
+
}
|
|
111100
|
+
},
|
|
111101
|
+
{
|
|
111102
|
+
"kind": "field",
|
|
111103
|
+
"name": "even",
|
|
111104
|
+
"type": {
|
|
111105
|
+
"text": "boolean"
|
|
111106
|
+
},
|
|
111107
|
+
"privacy": "public",
|
|
111108
|
+
"default": "false",
|
|
111109
|
+
"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.",
|
|
111110
|
+
"attribute": "even",
|
|
111111
|
+
"reflects": true
|
|
111112
|
+
},
|
|
111113
|
+
{
|
|
111114
|
+
"kind": "field",
|
|
111115
|
+
"name": "size",
|
|
111116
|
+
"type": {
|
|
111117
|
+
"text": "'s' | 'm'"
|
|
111118
|
+
},
|
|
111119
|
+
"privacy": "public",
|
|
111120
|
+
"description": "Size variant, either m or s.",
|
|
111121
|
+
"default": "'m' / 's' (lean)",
|
|
111122
|
+
"attribute": "size",
|
|
111123
|
+
"reflects": true
|
|
111124
|
+
},
|
|
111125
|
+
{
|
|
111126
|
+
"kind": "field",
|
|
111127
|
+
"name": "value",
|
|
111128
|
+
"type": {
|
|
111129
|
+
"text": "(T = string) | null"
|
|
111130
|
+
},
|
|
111131
|
+
"privacy": "public",
|
|
111132
|
+
"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).",
|
|
111133
|
+
"attribute": "value",
|
|
111210
111134
|
"inheritedFrom": {
|
|
111211
111135
|
"name": "SbbFormAssociatedMixin",
|
|
111212
111136
|
"module": "core/mixins/form-associated-mixin.js"
|
|
111213
111137
|
}
|
|
111214
111138
|
},
|
|
111139
|
+
{
|
|
111140
|
+
"kind": "field",
|
|
111141
|
+
"name": "_fallbackValue",
|
|
111142
|
+
"type": {
|
|
111143
|
+
"text": "T | null"
|
|
111144
|
+
},
|
|
111145
|
+
"privacy": "private",
|
|
111146
|
+
"default": "null"
|
|
111147
|
+
},
|
|
111148
|
+
{
|
|
111149
|
+
"kind": "field",
|
|
111150
|
+
"name": "options",
|
|
111151
|
+
"type": {
|
|
111152
|
+
"text": "SbbToggleOptionElement<T>[]"
|
|
111153
|
+
},
|
|
111154
|
+
"privacy": "public",
|
|
111155
|
+
"description": "The child instances of sbb-toggle-option as an array.",
|
|
111156
|
+
"readonly": true
|
|
111157
|
+
},
|
|
111215
111158
|
{
|
|
111216
111159
|
"kind": "method",
|
|
111217
|
-
"name": "
|
|
111218
|
-
"privacy": "
|
|
111160
|
+
"name": "_readFormData",
|
|
111161
|
+
"privacy": "private",
|
|
111219
111162
|
"return": {
|
|
111220
111163
|
"type": {
|
|
111221
|
-
"text": "
|
|
111164
|
+
"text": "Promise<T>"
|
|
111222
111165
|
}
|
|
111223
111166
|
},
|
|
111224
111167
|
"parameters": [
|
|
111225
111168
|
{
|
|
111226
|
-
"name": "
|
|
111169
|
+
"name": "formData",
|
|
111227
111170
|
"type": {
|
|
111228
|
-
"text": "
|
|
111171
|
+
"text": "FormData"
|
|
111229
111172
|
}
|
|
111230
111173
|
}
|
|
111231
|
-
]
|
|
111232
|
-
"description": "Removes the validity state flag entry and updates validity state.",
|
|
111233
|
-
"inheritedFrom": {
|
|
111234
|
-
"name": "SbbFormAssociatedMixin",
|
|
111235
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
111236
|
-
}
|
|
111174
|
+
]
|
|
111237
111175
|
},
|
|
111238
111176
|
{
|
|
111239
111177
|
"kind": "method",
|
|
111240
|
-
"name": "
|
|
111241
|
-
"privacy": "
|
|
111178
|
+
"name": "_updateToggle",
|
|
111179
|
+
"privacy": "private",
|
|
111242
111180
|
"return": {
|
|
111243
111181
|
"type": {
|
|
111244
111182
|
"text": "void"
|
|
111245
111183
|
}
|
|
111246
|
-
},
|
|
111247
|
-
"description": "To be called whenever the current element needs to be validated.",
|
|
111248
|
-
"inheritedFrom": {
|
|
111249
|
-
"name": "SbbFormAssociatedMixin",
|
|
111250
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
111251
111184
|
}
|
|
111252
111185
|
},
|
|
111253
111186
|
{
|
|
111254
111187
|
"kind": "method",
|
|
111255
|
-
"name": "
|
|
111256
|
-
"privacy": "
|
|
111188
|
+
"name": "_valueChanged",
|
|
111189
|
+
"privacy": "private",
|
|
111257
111190
|
"return": {
|
|
111258
111191
|
"type": {
|
|
111259
|
-
"text": "
|
|
111192
|
+
"text": "void"
|
|
111260
111193
|
}
|
|
111261
111194
|
},
|
|
111262
111195
|
"parameters": [
|
|
111263
111196
|
{
|
|
111264
|
-
"name": "
|
|
111197
|
+
"name": "value",
|
|
111265
111198
|
"type": {
|
|
111266
|
-
"text": "
|
|
111199
|
+
"text": "T | null"
|
|
111267
111200
|
}
|
|
111268
111201
|
}
|
|
111269
|
-
]
|
|
111270
|
-
|
|
111271
|
-
|
|
111272
|
-
|
|
111273
|
-
|
|
111202
|
+
]
|
|
111203
|
+
},
|
|
111204
|
+
{
|
|
111205
|
+
"kind": "method",
|
|
111206
|
+
"name": "_updateDisabled",
|
|
111207
|
+
"privacy": "private",
|
|
111208
|
+
"return": {
|
|
111209
|
+
"type": {
|
|
111210
|
+
"text": "void"
|
|
111211
|
+
}
|
|
111274
111212
|
}
|
|
111275
111213
|
},
|
|
111276
111214
|
{
|
|
111277
111215
|
"kind": "method",
|
|
111278
|
-
"name": "
|
|
111216
|
+
"name": "_handleInput",
|
|
111279
111217
|
"privacy": "private",
|
|
111280
111218
|
"return": {
|
|
111281
111219
|
"type": {
|
|
111282
111220
|
"text": "void"
|
|
111283
111221
|
}
|
|
111284
111222
|
},
|
|
111285
|
-
"
|
|
111286
|
-
"name": "SbbFormAssociatedMixin",
|
|
111287
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
111288
|
-
}
|
|
111223
|
+
"description": "Called on user interaction (click or keyboard)"
|
|
111289
111224
|
},
|
|
111290
111225
|
{
|
|
111291
111226
|
"kind": "method",
|
|
111292
|
-
"name": "
|
|
111293
|
-
"privacy": "
|
|
111227
|
+
"name": "_handleKeyDown",
|
|
111228
|
+
"privacy": "private",
|
|
111294
111229
|
"return": {
|
|
111295
111230
|
"type": {
|
|
111296
111231
|
"text": "void"
|
|
@@ -111298,339 +111233,388 @@
|
|
|
111298
111233
|
},
|
|
111299
111234
|
"parameters": [
|
|
111300
111235
|
{
|
|
111301
|
-
"name": "
|
|
111236
|
+
"name": "evt",
|
|
111302
111237
|
"type": {
|
|
111303
|
-
"text": "
|
|
111238
|
+
"text": "KeyboardEvent"
|
|
111304
111239
|
}
|
|
111305
|
-
}
|
|
111240
|
+
}
|
|
111241
|
+
]
|
|
111242
|
+
},
|
|
111243
|
+
{
|
|
111244
|
+
"kind": "method",
|
|
111245
|
+
"name": "_selectAndFocusOption",
|
|
111246
|
+
"privacy": "private",
|
|
111247
|
+
"return": {
|
|
111248
|
+
"type": {
|
|
111249
|
+
"text": "void"
|
|
111250
|
+
}
|
|
111251
|
+
},
|
|
111252
|
+
"parameters": [
|
|
111306
111253
|
{
|
|
111307
|
-
"name": "
|
|
111308
|
-
"optional": true,
|
|
111254
|
+
"name": "option",
|
|
111309
111255
|
"type": {
|
|
111310
|
-
"text": "
|
|
111256
|
+
"text": "SbbToggleOptionElement<T> | undefined"
|
|
111311
111257
|
}
|
|
111312
111258
|
}
|
|
111313
|
-
]
|
|
111314
|
-
|
|
111315
|
-
"name": "SbbElementInternalsMixin",
|
|
111316
|
-
"module": "core/mixins/element-internals-mixin.js"
|
|
111317
|
-
}
|
|
111318
|
-
}
|
|
111319
|
-
],
|
|
111320
|
-
"events": [
|
|
111259
|
+
]
|
|
111260
|
+
},
|
|
111321
111261
|
{
|
|
111322
|
-
"
|
|
111262
|
+
"kind": "field",
|
|
111263
|
+
"name": "disabled",
|
|
111264
|
+
"privacy": "public",
|
|
111265
|
+
"description": "Whether the component is disabled.",
|
|
111266
|
+
"default": "false",
|
|
111323
111267
|
"type": {
|
|
111324
|
-
"text": "
|
|
111268
|
+
"text": "boolean"
|
|
111325
111269
|
},
|
|
111326
|
-
"
|
|
111327
|
-
|
|
111328
|
-
|
|
111329
|
-
|
|
111270
|
+
"attribute": "disabled",
|
|
111271
|
+
"reflects": true,
|
|
111272
|
+
"inheritedFrom": {
|
|
111273
|
+
"name": "SbbDisabledMixin",
|
|
111274
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
111275
|
+
}
|
|
111276
|
+
},
|
|
111330
111277
|
{
|
|
111331
|
-
"
|
|
111278
|
+
"kind": "field",
|
|
111279
|
+
"name": "#disabled",
|
|
111280
|
+
"privacy": "private",
|
|
111332
111281
|
"type": {
|
|
111333
111282
|
"text": "boolean"
|
|
111334
111283
|
},
|
|
111335
111284
|
"default": "false",
|
|
111336
|
-
"
|
|
111337
|
-
|
|
111285
|
+
"inheritedFrom": {
|
|
111286
|
+
"name": "SbbDisabledMixin",
|
|
111287
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
111288
|
+
}
|
|
111338
111289
|
},
|
|
111339
111290
|
{
|
|
111340
|
-
"
|
|
111341
|
-
"
|
|
111342
|
-
|
|
111291
|
+
"kind": "method",
|
|
111292
|
+
"name": "isDisabledExternally",
|
|
111293
|
+
"privacy": "protected",
|
|
111294
|
+
"return": {
|
|
111295
|
+
"type": {
|
|
111296
|
+
"text": "boolean"
|
|
111297
|
+
}
|
|
111343
111298
|
},
|
|
111344
|
-
"description": "
|
|
111345
|
-
"
|
|
111346
|
-
|
|
111299
|
+
"description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
|
|
111300
|
+
"inheritedFrom": {
|
|
111301
|
+
"name": "SbbDisabledMixin",
|
|
111302
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
111303
|
+
}
|
|
111347
111304
|
},
|
|
111348
111305
|
{
|
|
111349
|
-
"
|
|
111350
|
-
"
|
|
111306
|
+
"kind": "field",
|
|
111307
|
+
"name": "formAssociated",
|
|
111351
111308
|
"type": {
|
|
111352
|
-
"text": "
|
|
111309
|
+
"text": "boolean"
|
|
111353
111310
|
},
|
|
111354
|
-
"
|
|
111311
|
+
"privacy": "public",
|
|
111312
|
+
"static": true,
|
|
111313
|
+
"default": "true",
|
|
111314
|
+
"inheritedFrom": {
|
|
111315
|
+
"name": "SbbFormAssociatedMixin",
|
|
111316
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111317
|
+
}
|
|
111355
111318
|
},
|
|
111356
111319
|
{
|
|
111357
|
-
"
|
|
111358
|
-
"
|
|
111359
|
-
"default": "false",
|
|
111320
|
+
"kind": "field",
|
|
111321
|
+
"name": "form",
|
|
111360
111322
|
"type": {
|
|
111361
|
-
"text": "
|
|
111323
|
+
"text": "HTMLFormElement | null"
|
|
111362
111324
|
},
|
|
111363
|
-
"
|
|
111325
|
+
"privacy": "public",
|
|
111326
|
+
"description": "Returns the form owner of this element.",
|
|
111327
|
+
"readonly": true,
|
|
111364
111328
|
"inheritedFrom": {
|
|
111365
|
-
"name": "
|
|
111366
|
-
"module": "core/mixins/
|
|
111329
|
+
"name": "SbbFormAssociatedMixin",
|
|
111330
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111367
111331
|
}
|
|
111368
111332
|
},
|
|
111369
111333
|
{
|
|
111334
|
+
"kind": "field",
|
|
111370
111335
|
"name": "name",
|
|
111336
|
+
"privacy": "public",
|
|
111371
111337
|
"description": "Name of the form element. Will be read from name attribute.",
|
|
111372
111338
|
"type": {
|
|
111373
111339
|
"text": "string"
|
|
111374
111340
|
},
|
|
111375
|
-
"
|
|
111341
|
+
"attribute": "name",
|
|
111376
111342
|
"inheritedFrom": {
|
|
111377
111343
|
"name": "SbbFormAssociatedMixin",
|
|
111378
111344
|
"module": "core/mixins/form-associated-mixin.js"
|
|
111379
111345
|
}
|
|
111380
|
-
}
|
|
111381
|
-
],
|
|
111382
|
-
"mixins": [
|
|
111383
|
-
{
|
|
111384
|
-
"name": "SbbDisabledMixin",
|
|
111385
|
-
"module": "core/mixins.js"
|
|
111386
111346
|
},
|
|
111387
111347
|
{
|
|
111388
|
-
"
|
|
111389
|
-
"
|
|
111390
|
-
|
|
111391
|
-
|
|
111392
|
-
|
|
111393
|
-
"
|
|
111394
|
-
|
|
111395
|
-
|
|
111396
|
-
|
|
111397
|
-
|
|
111398
|
-
|
|
111399
|
-
|
|
111400
|
-
"classGenerics": "T = string",
|
|
111401
|
-
"tagName": "sbb-toggle",
|
|
111402
|
-
"customElement": true
|
|
111403
|
-
}
|
|
111404
|
-
],
|
|
111405
|
-
"exports": [
|
|
111406
|
-
{
|
|
111407
|
-
"kind": "js",
|
|
111408
|
-
"name": "SbbToggleElement",
|
|
111409
|
-
"declaration": {
|
|
111410
|
-
"name": "SbbToggleElement",
|
|
111411
|
-
"module": "toggle/toggle/toggle.component.js"
|
|
111412
|
-
}
|
|
111413
|
-
},
|
|
111414
|
-
{
|
|
111415
|
-
"kind": "custom-element-definition",
|
|
111416
|
-
"name": "sbb-toggle",
|
|
111417
|
-
"declaration": {
|
|
111418
|
-
"name": "SbbToggleElement",
|
|
111419
|
-
"module": "toggle/toggle/toggle.component.js"
|
|
111420
|
-
}
|
|
111421
|
-
}
|
|
111422
|
-
]
|
|
111423
|
-
},
|
|
111424
|
-
{
|
|
111425
|
-
"kind": "javascript-module",
|
|
111426
|
-
"path": "toggle/toggle-option/toggle-option.component.js",
|
|
111427
|
-
"declarations": [
|
|
111428
|
-
{
|
|
111429
|
-
"kind": "class",
|
|
111430
|
-
"description": "It displays a toggle option within a `sbb-toggle`.",
|
|
111431
|
-
"name": "SbbToggleOptionElement",
|
|
111432
|
-
"slots": [
|
|
111433
|
-
{
|
|
111434
|
-
"description": "Use the unnamed slot to add content to the label of the toggle option.",
|
|
111435
|
-
"name": ""
|
|
111348
|
+
"kind": "field",
|
|
111349
|
+
"name": "validity",
|
|
111350
|
+
"type": {
|
|
111351
|
+
"text": "ValidityState"
|
|
111352
|
+
},
|
|
111353
|
+
"privacy": "public",
|
|
111354
|
+
"description": "Returns the ValidityState object for this element.",
|
|
111355
|
+
"readonly": true,
|
|
111356
|
+
"inheritedFrom": {
|
|
111357
|
+
"name": "SbbFormAssociatedMixin",
|
|
111358
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111359
|
+
}
|
|
111436
111360
|
},
|
|
111437
|
-
{
|
|
111438
|
-
"description": "Slot used to render the `sbb-icon`.",
|
|
111439
|
-
"name": "icon"
|
|
111440
|
-
}
|
|
111441
|
-
],
|
|
111442
|
-
"members": [
|
|
111443
111361
|
{
|
|
111444
111362
|
"kind": "field",
|
|
111445
|
-
"name": "
|
|
111363
|
+
"name": "validationMessage",
|
|
111446
111364
|
"type": {
|
|
111447
111365
|
"text": "string"
|
|
111448
111366
|
},
|
|
111449
111367
|
"privacy": "public",
|
|
111450
|
-
"
|
|
111368
|
+
"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.",
|
|
111451
111369
|
"readonly": true,
|
|
111452
|
-
"
|
|
111370
|
+
"inheritedFrom": {
|
|
111371
|
+
"name": "SbbFormAssociatedMixin",
|
|
111372
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111373
|
+
}
|
|
111453
111374
|
},
|
|
111454
111375
|
{
|
|
111455
111376
|
"kind": "field",
|
|
111456
|
-
"name": "
|
|
111377
|
+
"name": "willValidate",
|
|
111457
111378
|
"type": {
|
|
111458
111379
|
"text": "boolean"
|
|
111459
111380
|
},
|
|
111460
111381
|
"privacy": "public",
|
|
111461
|
-
"
|
|
111462
|
-
"
|
|
111463
|
-
"
|
|
111464
|
-
|
|
111382
|
+
"description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
|
|
111383
|
+
"readonly": true,
|
|
111384
|
+
"inheritedFrom": {
|
|
111385
|
+
"name": "SbbFormAssociatedMixin",
|
|
111386
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111387
|
+
}
|
|
111465
111388
|
},
|
|
111466
111389
|
{
|
|
111467
111390
|
"kind": "field",
|
|
111468
|
-
"name": "
|
|
111469
|
-
"
|
|
111470
|
-
|
|
111471
|
-
|
|
111472
|
-
|
|
111473
|
-
|
|
111474
|
-
|
|
111475
|
-
"attribute": "value"
|
|
111391
|
+
"name": "_validityStates",
|
|
111392
|
+
"privacy": "private",
|
|
111393
|
+
"default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
|
|
111394
|
+
"inheritedFrom": {
|
|
111395
|
+
"name": "SbbFormAssociatedMixin",
|
|
111396
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111397
|
+
}
|
|
111476
111398
|
},
|
|
111477
111399
|
{
|
|
111478
111400
|
"kind": "field",
|
|
111479
|
-
"name": "
|
|
111401
|
+
"name": "formDisabled",
|
|
111480
111402
|
"type": {
|
|
111481
|
-
"text": "
|
|
111403
|
+
"text": "boolean"
|
|
111482
111404
|
},
|
|
111483
|
-
"privacy": "
|
|
111484
|
-
"default": "
|
|
111405
|
+
"privacy": "protected",
|
|
111406
|
+
"default": "false",
|
|
111407
|
+
"description": "Whenever a surrounding form or fieldset is changing its disabled state.",
|
|
111408
|
+
"inheritedFrom": {
|
|
111409
|
+
"name": "SbbFormAssociatedMixin",
|
|
111410
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111411
|
+
}
|
|
111485
111412
|
},
|
|
111486
111413
|
{
|
|
111487
111414
|
"kind": "method",
|
|
111488
|
-
"name": "
|
|
111489
|
-
"privacy": "
|
|
111415
|
+
"name": "checkValidity",
|
|
111416
|
+
"privacy": "public",
|
|
111490
111417
|
"return": {
|
|
111491
111418
|
"type": {
|
|
111492
|
-
"text": "
|
|
111419
|
+
"text": "boolean"
|
|
111493
111420
|
}
|
|
111421
|
+
},
|
|
111422
|
+
"description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
|
|
111423
|
+
"inheritedFrom": {
|
|
111424
|
+
"name": "SbbFormAssociatedMixin",
|
|
111425
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111494
111426
|
}
|
|
111495
111427
|
},
|
|
111496
111428
|
{
|
|
111497
111429
|
"kind": "method",
|
|
111498
|
-
"name": "
|
|
111499
|
-
"privacy": "
|
|
111430
|
+
"name": "reportValidity",
|
|
111431
|
+
"privacy": "public",
|
|
111500
111432
|
"return": {
|
|
111501
111433
|
"type": {
|
|
111502
|
-
"text": "
|
|
111434
|
+
"text": "boolean"
|
|
111503
111435
|
}
|
|
111436
|
+
},
|
|
111437
|
+
"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.",
|
|
111438
|
+
"inheritedFrom": {
|
|
111439
|
+
"name": "SbbFormAssociatedMixin",
|
|
111440
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111504
111441
|
}
|
|
111505
111442
|
},
|
|
111506
111443
|
{
|
|
111507
111444
|
"kind": "method",
|
|
111508
|
-
"name": "
|
|
111509
|
-
"privacy": "
|
|
111445
|
+
"name": "setCustomValidity",
|
|
111446
|
+
"privacy": "public",
|
|
111510
111447
|
"return": {
|
|
111511
111448
|
"type": {
|
|
111512
111449
|
"text": "void"
|
|
111513
111450
|
}
|
|
111451
|
+
},
|
|
111452
|
+
"parameters": [
|
|
111453
|
+
{
|
|
111454
|
+
"name": "message",
|
|
111455
|
+
"type": {
|
|
111456
|
+
"text": "string"
|
|
111457
|
+
}
|
|
111458
|
+
}
|
|
111459
|
+
],
|
|
111460
|
+
"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.",
|
|
111461
|
+
"inheritedFrom": {
|
|
111462
|
+
"name": "SbbFormAssociatedMixin",
|
|
111463
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111514
111464
|
}
|
|
111515
111465
|
},
|
|
111516
111466
|
{
|
|
111517
111467
|
"kind": "method",
|
|
111518
|
-
"name": "
|
|
111468
|
+
"name": "_hasDisabledAncestor",
|
|
111519
111469
|
"privacy": "private",
|
|
111520
111470
|
"return": {
|
|
111521
111471
|
"type": {
|
|
111522
|
-
"text": "
|
|
111472
|
+
"text": "boolean"
|
|
111523
111473
|
}
|
|
111524
|
-
}
|
|
111525
|
-
},
|
|
111526
|
-
{
|
|
111527
|
-
"kind": "field",
|
|
111528
|
-
"name": "disabled",
|
|
111529
|
-
"privacy": "public",
|
|
111530
|
-
"description": "Whether the component is disabled.",
|
|
111531
|
-
"default": "false",
|
|
111532
|
-
"type": {
|
|
111533
|
-
"text": "boolean"
|
|
111534
111474
|
},
|
|
111535
|
-
"attribute": "disabled",
|
|
111536
|
-
"reflects": true,
|
|
111537
111475
|
"inheritedFrom": {
|
|
111538
|
-
"name": "
|
|
111539
|
-
"module": "core/mixins/
|
|
111476
|
+
"name": "SbbFormAssociatedMixin",
|
|
111477
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111540
111478
|
}
|
|
111541
111479
|
},
|
|
111542
111480
|
{
|
|
111543
|
-
"kind": "
|
|
111544
|
-
"name": "
|
|
111545
|
-
"privacy": "
|
|
111546
|
-
"
|
|
111547
|
-
"
|
|
111481
|
+
"kind": "method",
|
|
111482
|
+
"name": "updateFormValue",
|
|
111483
|
+
"privacy": "protected",
|
|
111484
|
+
"return": {
|
|
111485
|
+
"type": {
|
|
111486
|
+
"text": "void"
|
|
111487
|
+
}
|
|
111548
111488
|
},
|
|
111549
|
-
"
|
|
111489
|
+
"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",
|
|
111550
111490
|
"inheritedFrom": {
|
|
111551
|
-
"name": "
|
|
111552
|
-
"module": "core/mixins/
|
|
111491
|
+
"name": "SbbFormAssociatedMixin",
|
|
111492
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111553
111493
|
}
|
|
111554
111494
|
},
|
|
111555
111495
|
{
|
|
111556
111496
|
"kind": "method",
|
|
111557
|
-
"name": "
|
|
111497
|
+
"name": "formState",
|
|
111558
111498
|
"privacy": "protected",
|
|
111559
111499
|
"return": {
|
|
111560
111500
|
"type": {
|
|
111561
|
-
"text": "
|
|
111501
|
+
"text": "FormRestoreState"
|
|
111562
111502
|
}
|
|
111563
111503
|
},
|
|
111564
|
-
"description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
|
|
111565
111504
|
"inheritedFrom": {
|
|
111566
|
-
"name": "
|
|
111567
|
-
"module": "core/mixins/
|
|
111505
|
+
"name": "SbbFormAssociatedMixin",
|
|
111506
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111568
111507
|
}
|
|
111569
111508
|
},
|
|
111570
111509
|
{
|
|
111571
|
-
"kind": "
|
|
111572
|
-
"name": "
|
|
111573
|
-
"
|
|
111574
|
-
|
|
111510
|
+
"kind": "method",
|
|
111511
|
+
"name": "setValidityFlag",
|
|
111512
|
+
"privacy": "protected",
|
|
111513
|
+
"return": {
|
|
111514
|
+
"type": {
|
|
111515
|
+
"text": "void"
|
|
111516
|
+
}
|
|
111575
111517
|
},
|
|
111576
|
-
"
|
|
111577
|
-
|
|
111578
|
-
|
|
111579
|
-
|
|
111518
|
+
"parameters": [
|
|
111519
|
+
{
|
|
111520
|
+
"name": "flag",
|
|
111521
|
+
"type": {
|
|
111522
|
+
"text": "T"
|
|
111523
|
+
}
|
|
111524
|
+
},
|
|
111525
|
+
{
|
|
111526
|
+
"name": "message",
|
|
111527
|
+
"type": {
|
|
111528
|
+
"text": "string"
|
|
111529
|
+
}
|
|
111530
|
+
},
|
|
111531
|
+
{
|
|
111532
|
+
"name": "flagValue",
|
|
111533
|
+
"optional": true,
|
|
111534
|
+
"type": {
|
|
111535
|
+
"text": "ValidityStateFlags[T]"
|
|
111536
|
+
}
|
|
111537
|
+
}
|
|
111538
|
+
],
|
|
111539
|
+
"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).",
|
|
111580
111540
|
"inheritedFrom": {
|
|
111581
|
-
"name": "
|
|
111582
|
-
"module": "
|
|
111541
|
+
"name": "SbbFormAssociatedMixin",
|
|
111542
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111583
111543
|
}
|
|
111584
111544
|
},
|
|
111585
111545
|
{
|
|
111586
111546
|
"kind": "method",
|
|
111587
|
-
"name": "
|
|
111547
|
+
"name": "removeValidityFlag",
|
|
111588
111548
|
"privacy": "protected",
|
|
111589
111549
|
"return": {
|
|
111590
111550
|
"type": {
|
|
111591
|
-
"text": "
|
|
111551
|
+
"text": "void"
|
|
111592
111552
|
}
|
|
111593
111553
|
},
|
|
111594
111554
|
"parameters": [
|
|
111595
111555
|
{
|
|
111596
|
-
"name": "
|
|
111597
|
-
"optional": true,
|
|
111556
|
+
"name": "flag",
|
|
111598
111557
|
"type": {
|
|
111599
|
-
"text": "
|
|
111558
|
+
"text": "T"
|
|
111600
111559
|
}
|
|
111601
111560
|
}
|
|
111602
111561
|
],
|
|
111562
|
+
"description": "Removes the validity state flag entry and updates validity state.",
|
|
111603
111563
|
"inheritedFrom": {
|
|
111604
|
-
"name": "
|
|
111605
|
-
"module": "
|
|
111564
|
+
"name": "SbbFormAssociatedMixin",
|
|
111565
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111606
111566
|
}
|
|
111607
111567
|
},
|
|
111608
111568
|
{
|
|
111609
111569
|
"kind": "method",
|
|
111610
|
-
"name": "
|
|
111570
|
+
"name": "validate",
|
|
111611
111571
|
"privacy": "protected",
|
|
111612
111572
|
"return": {
|
|
111613
111573
|
"type": {
|
|
111614
|
-
"text": "
|
|
111574
|
+
"text": "void"
|
|
111615
111575
|
}
|
|
111616
111576
|
},
|
|
111577
|
+
"description": "To be called whenever the current element needs to be validated.",
|
|
111617
111578
|
"inheritedFrom": {
|
|
111618
|
-
"name": "
|
|
111619
|
-
"module": "
|
|
111579
|
+
"name": "SbbFormAssociatedMixin",
|
|
111580
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111620
111581
|
}
|
|
111621
111582
|
},
|
|
111622
111583
|
{
|
|
111623
111584
|
"kind": "method",
|
|
111624
|
-
"name": "
|
|
111585
|
+
"name": "shouldValidate",
|
|
111586
|
+
"privacy": "protected",
|
|
111587
|
+
"return": {
|
|
111588
|
+
"type": {
|
|
111589
|
+
"text": "boolean"
|
|
111590
|
+
}
|
|
111591
|
+
},
|
|
111592
|
+
"parameters": [
|
|
111593
|
+
{
|
|
111594
|
+
"name": "name",
|
|
111595
|
+
"type": {
|
|
111596
|
+
"text": "PropertyKey | undefined"
|
|
111597
|
+
}
|
|
111598
|
+
}
|
|
111599
|
+
],
|
|
111600
|
+
"description": "Whether validation should be run on a property change with the given name.",
|
|
111601
|
+
"inheritedFrom": {
|
|
111602
|
+
"name": "SbbFormAssociatedMixin",
|
|
111603
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111604
|
+
}
|
|
111605
|
+
},
|
|
111606
|
+
{
|
|
111607
|
+
"kind": "method",
|
|
111608
|
+
"name": "_setInternalValidity",
|
|
111625
111609
|
"privacy": "private",
|
|
111626
111610
|
"return": {
|
|
111627
111611
|
"type": {
|
|
111628
|
-
"text": "
|
|
111612
|
+
"text": "void"
|
|
111629
111613
|
}
|
|
111630
111614
|
},
|
|
111631
111615
|
"inheritedFrom": {
|
|
111632
|
-
"name": "
|
|
111633
|
-
"module": "
|
|
111616
|
+
"name": "SbbFormAssociatedMixin",
|
|
111617
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111634
111618
|
}
|
|
111635
111619
|
},
|
|
111636
111620
|
{
|
|
@@ -111663,23 +111647,40 @@
|
|
|
111663
111647
|
}
|
|
111664
111648
|
}
|
|
111665
111649
|
],
|
|
111650
|
+
"events": [
|
|
111651
|
+
{
|
|
111652
|
+
"name": "change",
|
|
111653
|
+
"type": {
|
|
111654
|
+
"text": "Event"
|
|
111655
|
+
},
|
|
111656
|
+
"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."
|
|
111657
|
+
}
|
|
111658
|
+
],
|
|
111666
111659
|
"attributes": [
|
|
111667
111660
|
{
|
|
111668
|
-
"name": "
|
|
111661
|
+
"name": "even",
|
|
111669
111662
|
"type": {
|
|
111670
111663
|
"text": "boolean"
|
|
111671
111664
|
},
|
|
111672
111665
|
"default": "false",
|
|
111673
|
-
"description": "
|
|
111674
|
-
"fieldName": "
|
|
111666
|
+
"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.",
|
|
111667
|
+
"fieldName": "even"
|
|
111668
|
+
},
|
|
111669
|
+
{
|
|
111670
|
+
"name": "size",
|
|
111671
|
+
"type": {
|
|
111672
|
+
"text": "'s' | 'm'"
|
|
111673
|
+
},
|
|
111674
|
+
"description": "Size variant, either m or s.",
|
|
111675
|
+
"default": "'m' / 's' (lean)",
|
|
111676
|
+
"fieldName": "size"
|
|
111675
111677
|
},
|
|
111676
111678
|
{
|
|
111677
111679
|
"name": "value",
|
|
111680
|
+
"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).",
|
|
111678
111681
|
"type": {
|
|
111679
111682
|
"text": "T | null"
|
|
111680
111683
|
},
|
|
111681
|
-
"default": "null",
|
|
111682
|
-
"description": "Value of toggle-option.",
|
|
111683
111684
|
"fieldName": "value"
|
|
111684
111685
|
},
|
|
111685
111686
|
{
|
|
@@ -111696,16 +111697,15 @@
|
|
|
111696
111697
|
}
|
|
111697
111698
|
},
|
|
111698
111699
|
{
|
|
111699
|
-
"name": "
|
|
111700
|
+
"name": "name",
|
|
111701
|
+
"description": "Name of the form element. Will be read from name attribute.",
|
|
111700
111702
|
"type": {
|
|
111701
111703
|
"text": "string"
|
|
111702
111704
|
},
|
|
111703
|
-
"
|
|
111704
|
-
"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.",
|
|
111705
|
-
"fieldName": "iconName",
|
|
111705
|
+
"fieldName": "name",
|
|
111706
111706
|
"inheritedFrom": {
|
|
111707
|
-
"name": "
|
|
111708
|
-
"module": "
|
|
111707
|
+
"name": "SbbFormAssociatedMixin",
|
|
111708
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
111709
111709
|
}
|
|
111710
111710
|
}
|
|
111711
111711
|
],
|
|
@@ -111715,8 +111715,8 @@
|
|
|
111715
111715
|
"module": "core/mixins.js"
|
|
111716
111716
|
},
|
|
111717
111717
|
{
|
|
111718
|
-
"name": "
|
|
111719
|
-
"module": "
|
|
111718
|
+
"name": "SbbFormAssociatedMixin",
|
|
111719
|
+
"module": "core/mixins.js"
|
|
111720
111720
|
},
|
|
111721
111721
|
{
|
|
111722
111722
|
"name": "SbbElementInternalsMixin",
|
|
@@ -111728,25 +111728,25 @@
|
|
|
111728
111728
|
"package": "lit"
|
|
111729
111729
|
},
|
|
111730
111730
|
"classGenerics": "T = string",
|
|
111731
|
-
"tagName": "sbb-toggle
|
|
111731
|
+
"tagName": "sbb-toggle",
|
|
111732
111732
|
"customElement": true
|
|
111733
111733
|
}
|
|
111734
111734
|
],
|
|
111735
111735
|
"exports": [
|
|
111736
111736
|
{
|
|
111737
111737
|
"kind": "js",
|
|
111738
|
-
"name": "
|
|
111738
|
+
"name": "SbbToggleElement",
|
|
111739
111739
|
"declaration": {
|
|
111740
|
-
"name": "
|
|
111741
|
-
"module": "toggle/toggle
|
|
111740
|
+
"name": "SbbToggleElement",
|
|
111741
|
+
"module": "toggle/toggle/toggle.component.js"
|
|
111742
111742
|
}
|
|
111743
111743
|
},
|
|
111744
111744
|
{
|
|
111745
111745
|
"kind": "custom-element-definition",
|
|
111746
|
-
"name": "sbb-toggle
|
|
111746
|
+
"name": "sbb-toggle",
|
|
111747
111747
|
"declaration": {
|
|
111748
|
-
"name": "
|
|
111749
|
-
"module": "toggle/toggle
|
|
111748
|
+
"name": "SbbToggleElement",
|
|
111749
|
+
"module": "toggle/toggle/toggle.component.js"
|
|
111750
111750
|
}
|
|
111751
111751
|
}
|
|
111752
111752
|
]
|