@sbb-esta/lyne-elements-dev 4.12.1-dev.1778105140 → 4.12.1-dev.1778136187

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/custom-elements.json +1038 -1038
  2. package/package.json +2 -2
@@ -37045,12 +37045,12 @@
37045
37045
  },
37046
37046
  {
37047
37047
  "kind": "javascript-module",
37048
- "path": "button/accent-button/accent-button.component.js",
37048
+ "path": "button/accent-button-link/accent-button-link.component.js",
37049
37049
  "declarations": [
37050
37050
  {
37051
37051
  "kind": "class",
37052
- "description": "It displays a button enhanced with the SBB Design in the 'accent' variant.",
37053
- "name": "SbbAccentButtonElement",
37052
+ "description": "It displays a button enhanced with the SBB Design in the 'accent' variant, which will behave as a link.",
37053
+ "name": "SbbAccentButtonLinkElement",
37054
37054
  "cssProperties": [
37055
37055
  {
37056
37056
  "description": "The delay before the loading animation starts, when setting the button into loading state.",
@@ -37060,7 +37060,7 @@
37060
37060
  ],
37061
37061
  "slots": [
37062
37062
  {
37063
- "description": "Use the unnamed slot to add content to the accent-button.",
37063
+ "description": "Use the unnamed slot to add content to the accent-button-link.",
37064
37064
  "name": ""
37065
37065
  },
37066
37066
  {
@@ -37078,7 +37078,7 @@
37078
37078
  "privacy": "public",
37079
37079
  "static": true,
37080
37080
  "readonly": true,
37081
- "default": "'sbb-accent-button'",
37081
+ "default": "'sbb-accent-button-link'",
37082
37082
  "inheritedFrom": {
37083
37083
  "name": "SbbElement",
37084
37084
  "module": "core/base-elements/element.js"
@@ -37275,479 +37275,151 @@
37275
37275
  },
37276
37276
  {
37277
37277
  "kind": "field",
37278
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
37279
- "type": {
37280
- "text": "array"
37281
- },
37282
- "privacy": "private",
37283
- "readonly": true,
37284
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
37285
- "inheritedFrom": {
37286
- "name": "SbbButtonBaseElement",
37287
- "module": "core/base-elements/button-base-element.js"
37288
- }
37289
- },
37290
- {
37291
- "kind": "field",
37292
- "name": "value",
37278
+ "name": "href",
37293
37279
  "type": {
37294
37280
  "text": "string"
37295
37281
  },
37296
37282
  "privacy": "public",
37297
37283
  "default": "''",
37298
- "description": "Value of the form element.",
37299
- "attribute": "value",
37300
- "inheritedFrom": {
37301
- "name": "SbbButtonBaseElement",
37302
- "module": "core/base-elements/button-base-element.js"
37303
- }
37304
- },
37305
- {
37306
- "kind": "field",
37307
- "name": "type",
37308
- "privacy": "public",
37309
- "description": "The type attribute to use for the button.",
37310
- "default": "'button'",
37311
- "type": {
37312
- "text": "SbbButtonType"
37313
- },
37314
- "attribute": "type",
37284
+ "description": "The href value you want to link to.",
37285
+ "attribute": "href",
37286
+ "reflects": true,
37315
37287
  "inheritedFrom": {
37316
- "name": "SbbButtonBaseElement",
37317
- "module": "core/base-elements/button-base-element.js"
37288
+ "name": "SbbLinkBaseElement",
37289
+ "module": "core/base-elements/link-base-element.js"
37318
37290
  }
37319
37291
  },
37320
37292
  {
37321
37293
  "kind": "field",
37322
- "name": "form",
37294
+ "name": "target",
37323
37295
  "type": {
37324
- "text": "HTMLFormElement | null"
37296
+ "text": "LinkTargetType | string"
37325
37297
  },
37326
37298
  "privacy": "public",
37327
- "description": "The `<form>` element to associate the button with.",
37328
- "attribute": "form",
37299
+ "default": "''",
37300
+ "description": "Where to display the linked URL.",
37301
+ "attribute": "target",
37302
+ "reflects": true,
37329
37303
  "inheritedFrom": {
37330
- "name": "SbbButtonBaseElement",
37331
- "module": "core/base-elements/button-base-element.js"
37304
+ "name": "SbbLinkBaseElement",
37305
+ "module": "core/base-elements/link-base-element.js"
37332
37306
  }
37333
37307
  },
37334
37308
  {
37335
37309
  "kind": "field",
37336
- "name": "_formId",
37310
+ "name": "rel",
37337
37311
  "type": {
37338
37312
  "text": "string"
37339
37313
  },
37340
- "privacy": "private",
37314
+ "privacy": "public",
37341
37315
  "default": "''",
37316
+ "description": "The relationship of the linked URL as space-separated link types.",
37317
+ "attribute": "rel",
37318
+ "reflects": true,
37342
37319
  "inheritedFrom": {
37343
- "name": "SbbButtonBaseElement",
37344
- "module": "core/base-elements/button-base-element.js"
37345
- }
37346
- },
37347
- {
37348
- "kind": "field",
37349
- "name": "_handleButtonClick",
37350
- "privacy": "private",
37351
- "inheritedFrom": {
37352
- "name": "SbbButtonBaseElement",
37353
- "module": "core/base-elements/button-base-element.js"
37354
- }
37355
- },
37356
- {
37357
- "kind": "method",
37358
- "name": "_requestSubmit",
37359
- "privacy": "private",
37360
- "return": {
37361
- "type": {
37362
- "text": "void"
37363
- }
37364
- },
37365
- "parameters": [
37366
- {
37367
- "name": "form",
37368
- "type": {
37369
- "text": "HTMLFormElement"
37370
- }
37371
- }
37372
- ],
37373
- "inheritedFrom": {
37374
- "name": "SbbButtonBaseElement",
37375
- "module": "core/base-elements/button-base-element.js"
37376
- }
37377
- },
37378
- {
37379
- "kind": "field",
37380
- "name": "_formKeyDown",
37381
- "privacy": "private",
37382
- "inheritedFrom": {
37383
- "name": "SbbButtonBaseElement",
37384
- "module": "core/base-elements/button-base-element.js"
37320
+ "name": "SbbLinkBaseElement",
37321
+ "module": "core/base-elements/link-base-element.js"
37385
37322
  }
37386
37323
  },
37387
37324
  {
37388
37325
  "kind": "field",
37389
- "name": "formAssociated",
37326
+ "name": "download",
37390
37327
  "type": {
37391
37328
  "text": "boolean"
37392
37329
  },
37393
37330
  "privacy": "public",
37394
- "static": true,
37395
- "default": "true",
37331
+ "default": "false",
37332
+ "description": "Whether the browser will show the download dialog on click.",
37333
+ "attribute": "download",
37334
+ "reflects": true,
37396
37335
  "inheritedFrom": {
37397
- "name": "SbbFormAssociatedMixin",
37398
- "module": "core/mixins/form-associated-mixin.js"
37336
+ "name": "SbbLinkBaseElement",
37337
+ "module": "core/base-elements/link-base-element.js"
37399
37338
  }
37400
37339
  },
37401
37340
  {
37402
37341
  "kind": "field",
37403
- "name": "name",
37404
- "privacy": "public",
37405
- "description": "Name of the form element. Will be read from name attribute.",
37342
+ "name": "accessibilityLabel",
37406
37343
  "type": {
37407
37344
  "text": "string"
37408
37345
  },
37409
- "attribute": "name",
37410
- "inheritedFrom": {
37411
- "name": "SbbFormAssociatedMixin",
37412
- "module": "core/mixins/form-associated-mixin.js"
37413
- }
37414
- },
37415
- {
37416
- "kind": "field",
37417
- "name": "validity",
37418
- "type": {
37419
- "text": "ValidityState"
37420
- },
37421
37346
  "privacy": "public",
37422
- "description": "Returns the ValidityState object for this element.",
37423
- "readonly": true,
37347
+ "default": "''",
37348
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
37349
+ "attribute": "accessibility-label",
37424
37350
  "inheritedFrom": {
37425
- "name": "SbbFormAssociatedMixin",
37426
- "module": "core/mixins/form-associated-mixin.js"
37351
+ "name": "SbbLinkBaseElement",
37352
+ "module": "core/base-elements/link-base-element.js"
37427
37353
  }
37428
37354
  },
37429
37355
  {
37430
37356
  "kind": "field",
37431
- "name": "validationMessage",
37357
+ "name": "accessibilityCurrent",
37432
37358
  "type": {
37433
37359
  "text": "string"
37434
37360
  },
37435
37361
  "privacy": "public",
37436
- "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.",
37437
- "readonly": true,
37438
- "inheritedFrom": {
37439
- "name": "SbbFormAssociatedMixin",
37440
- "module": "core/mixins/form-associated-mixin.js"
37441
- }
37442
- },
37443
- {
37444
- "kind": "field",
37445
- "name": "willValidate",
37446
- "type": {
37447
- "text": "boolean"
37448
- },
37449
- "privacy": "public",
37450
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
37451
- "readonly": true,
37362
+ "default": "''",
37363
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
37364
+ "attribute": "accessibility-current",
37452
37365
  "inheritedFrom": {
37453
- "name": "SbbFormAssociatedMixin",
37454
- "module": "core/mixins/form-associated-mixin.js"
37366
+ "name": "SbbLinkBaseElement",
37367
+ "module": "core/base-elements/link-base-element.js"
37455
37368
  }
37456
37369
  },
37457
37370
  {
37458
37371
  "kind": "field",
37459
- "name": "_validityStates",
37460
- "privacy": "private",
37461
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
37372
+ "name": "language",
37373
+ "privacy": "protected",
37374
+ "default": "new SbbLanguageController(this)",
37462
37375
  "inheritedFrom": {
37463
- "name": "SbbFormAssociatedMixin",
37464
- "module": "core/mixins/form-associated-mixin.js"
37376
+ "name": "SbbLinkBaseElement",
37377
+ "module": "core/base-elements/link-base-element.js"
37465
37378
  }
37466
37379
  },
37467
37380
  {
37468
37381
  "kind": "field",
37469
- "name": "formDisabled",
37382
+ "name": "anchorRole",
37470
37383
  "type": {
37471
- "text": "boolean"
37384
+ "text": "string | null"
37472
37385
  },
37473
37386
  "privacy": "protected",
37474
- "default": "false",
37475
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
37476
- "inheritedFrom": {
37477
- "name": "SbbFormAssociatedMixin",
37478
- "module": "core/mixins/form-associated-mixin.js"
37479
- }
37480
- },
37481
- {
37482
- "kind": "method",
37483
- "name": "checkValidity",
37484
- "privacy": "public",
37485
- "return": {
37486
- "type": {
37487
- "text": "boolean"
37488
- }
37489
- },
37490
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
37491
- "inheritedFrom": {
37492
- "name": "SbbFormAssociatedMixin",
37493
- "module": "core/mixins/form-associated-mixin.js"
37494
- }
37495
- },
37496
- {
37497
- "kind": "method",
37498
- "name": "reportValidity",
37499
- "privacy": "public",
37500
- "return": {
37501
- "type": {
37502
- "text": "boolean"
37503
- }
37504
- },
37505
- "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.",
37506
- "inheritedFrom": {
37507
- "name": "SbbFormAssociatedMixin",
37508
- "module": "core/mixins/form-associated-mixin.js"
37509
- }
37510
- },
37511
- {
37512
- "kind": "method",
37513
- "name": "setCustomValidity",
37514
- "privacy": "public",
37515
- "return": {
37516
- "type": {
37517
- "text": "void"
37518
- }
37519
- },
37520
- "parameters": [
37521
- {
37522
- "name": "message",
37523
- "type": {
37524
- "text": "string"
37525
- }
37526
- }
37527
- ],
37528
- "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.",
37387
+ "readonly": true,
37388
+ "default": "null",
37529
37389
  "inheritedFrom": {
37530
- "name": "SbbFormAssociatedMixin",
37531
- "module": "core/mixins/form-associated-mixin.js"
37390
+ "name": "SbbLinkBaseElement",
37391
+ "module": "core/base-elements/link-base-element.js"
37532
37392
  }
37533
37393
  },
37534
37394
  {
37535
- "kind": "method",
37536
- "name": "_hasDisabledAncestor",
37395
+ "kind": "field",
37396
+ "name": "_evaluateRelAttribute",
37537
37397
  "privacy": "private",
37538
- "return": {
37539
- "type": {
37540
- "text": "boolean"
37541
- }
37542
- },
37543
- "inheritedFrom": {
37544
- "name": "SbbFormAssociatedMixin",
37545
- "module": "core/mixins/form-associated-mixin.js"
37546
- }
37547
- },
37548
- {
37549
- "kind": "method",
37550
- "name": "updateFormValue",
37551
- "privacy": "protected",
37552
- "return": {
37553
- "type": {
37554
- "text": "void"
37555
- }
37556
- },
37557
- "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",
37558
- "inheritedFrom": {
37559
- "name": "SbbFormAssociatedMixin",
37560
- "module": "core/mixins/form-associated-mixin.js"
37561
- }
37562
- },
37563
- {
37564
- "kind": "method",
37565
- "name": "formState",
37566
- "privacy": "protected",
37567
- "return": {
37568
- "type": {
37569
- "text": "FormRestoreState"
37570
- }
37571
- },
37572
- "inheritedFrom": {
37573
- "name": "SbbFormAssociatedMixin",
37574
- "module": "core/mixins/form-associated-mixin.js"
37575
- }
37576
- },
37577
- {
37578
- "kind": "method",
37579
- "name": "setValidityFlag",
37580
- "privacy": "protected",
37581
- "return": {
37582
- "type": {
37583
- "text": "void"
37584
- }
37585
- },
37586
- "parameters": [
37587
- {
37588
- "name": "flag",
37589
- "type": {
37590
- "text": "T"
37591
- }
37592
- },
37593
- {
37594
- "name": "message",
37595
- "type": {
37596
- "text": "string"
37597
- }
37598
- },
37599
- {
37600
- "name": "flagValue",
37601
- "optional": true,
37602
- "type": {
37603
- "text": "ValidityStateFlags[T]"
37604
- }
37605
- }
37606
- ],
37607
- "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).",
37608
- "inheritedFrom": {
37609
- "name": "SbbFormAssociatedMixin",
37610
- "module": "core/mixins/form-associated-mixin.js"
37611
- }
37612
- },
37613
- {
37614
- "kind": "method",
37615
- "name": "removeValidityFlag",
37616
- "privacy": "protected",
37617
- "return": {
37618
- "type": {
37619
- "text": "void"
37620
- }
37621
- },
37622
- "parameters": [
37623
- {
37624
- "name": "flag",
37625
- "type": {
37626
- "text": "T"
37627
- }
37628
- }
37629
- ],
37630
- "description": "Removes the validity state flag entry and updates validity state.",
37631
- "inheritedFrom": {
37632
- "name": "SbbFormAssociatedMixin",
37633
- "module": "core/mixins/form-associated-mixin.js"
37634
- }
37635
- },
37636
- {
37637
- "kind": "method",
37638
- "name": "validate",
37639
- "privacy": "protected",
37640
- "return": {
37641
- "type": {
37642
- "text": "void"
37643
- }
37644
- },
37645
- "description": "To be called whenever the current element needs to be validated.",
37646
37398
  "inheritedFrom": {
37647
- "name": "SbbFormAssociatedMixin",
37648
- "module": "core/mixins/form-associated-mixin.js"
37399
+ "name": "SbbLinkBaseElement",
37400
+ "module": "core/base-elements/link-base-element.js"
37649
37401
  }
37650
37402
  },
37651
37403
  {
37652
37404
  "kind": "method",
37653
- "name": "shouldValidate",
37405
+ "name": "renderLink",
37654
37406
  "privacy": "protected",
37655
37407
  "return": {
37656
37408
  "type": {
37657
- "text": "boolean"
37409
+ "text": "TemplateResult"
37658
37410
  }
37659
37411
  },
37660
37412
  "parameters": [
37661
37413
  {
37662
- "name": "name",
37414
+ "name": "renderContent",
37663
37415
  "type": {
37664
- "text": "PropertyKey | undefined"
37416
+ "text": "TemplateResult"
37665
37417
  }
37666
37418
  }
37667
37419
  ],
37668
- "description": "Whether validation should be run on a property change with the given name.",
37669
- "inheritedFrom": {
37670
- "name": "SbbFormAssociatedMixin",
37671
- "module": "core/mixins/form-associated-mixin.js"
37672
- }
37673
- },
37674
- {
37675
- "kind": "method",
37676
- "name": "_setInternalValidity",
37677
- "privacy": "private",
37678
- "return": {
37679
- "type": {
37680
- "text": "void"
37681
- }
37682
- },
37683
- "inheritedFrom": {
37684
- "name": "SbbFormAssociatedMixin",
37685
- "module": "core/mixins/form-associated-mixin.js"
37686
- }
37687
- },
37688
- {
37689
- "kind": "field",
37690
- "name": "role",
37691
- "type": {
37692
- "text": "ElementInternals['role']"
37693
- },
37694
- "privacy": "public",
37695
- "static": true,
37696
- "readonly": true,
37697
- "default": "'button'",
37698
- "inheritedFrom": {
37699
- "name": "SbbButtonLikeBaseElement",
37700
- "module": "core/base-elements/button-base-element.js"
37701
- }
37702
- },
37703
- {
37704
- "kind": "field",
37705
- "name": "_preventScrollOnSpaceKeydown",
37706
- "privacy": "private",
37707
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
37708
- "parameters": [
37709
- {
37710
- "description": "The origin event.",
37711
- "name": "event"
37712
- }
37713
- ],
37714
- "inheritedFrom": {
37715
- "name": "SbbButtonLikeBaseElement",
37716
- "module": "core/base-elements/button-base-element.js"
37717
- }
37718
- },
37719
- {
37720
- "kind": "field",
37721
- "name": "_removeActiveMarker",
37722
- "privacy": "private",
37723
- "inheritedFrom": {
37724
- "name": "SbbButtonLikeBaseElement",
37725
- "module": "core/base-elements/button-base-element.js"
37726
- }
37727
- },
37728
- {
37729
- "kind": "field",
37730
- "name": "_dispatchClickEventOnSpaceKeyup",
37731
- "privacy": "private",
37732
- "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.",
37733
- "parameters": [
37734
- {
37735
- "description": "The origin event.",
37736
- "name": "event"
37737
- }
37738
- ],
37739
- "inheritedFrom": {
37740
- "name": "SbbButtonLikeBaseElement",
37741
- "module": "core/base-elements/button-base-element.js"
37742
- }
37743
- },
37744
- {
37745
- "kind": "field",
37746
- "name": "_dispatchClickEvent",
37747
- "privacy": "private",
37748
37420
  "inheritedFrom": {
37749
- "name": "SbbButtonLikeBaseElement",
37750
- "module": "core/base-elements/button-base-element.js"
37421
+ "name": "SbbLinkBaseElement",
37422
+ "module": "core/base-elements/link-base-element.js"
37751
37423
  }
37752
37424
  },
37753
37425
  {
@@ -37902,15 +37574,19 @@
37902
37574
  "module": "button/common/button-common.js"
37903
37575
  },
37904
37576
  {
37905
- "name": "SbbDisabledTabIndexActionMixin",
37577
+ "name": "SbbDisabledInteractiveMixin",
37578
+ "module": "core/mixins.js"
37579
+ },
37580
+ {
37581
+ "name": "SbbDisabledMixin",
37906
37582
  "module": "core/mixins.js"
37907
37583
  }
37908
37584
  ],
37909
37585
  "superclass": {
37910
- "name": "SbbButtonBaseElement",
37586
+ "name": "SbbLinkBaseElement",
37911
37587
  "module": "core/base-elements.js"
37912
37588
  },
37913
- "tagName": "sbb-accent-button",
37589
+ "tagName": "sbb-accent-button-link",
37914
37590
  "customElement": true,
37915
37591
  "attributes": [
37916
37592
  {
@@ -37992,53 +37668,81 @@
37992
37668
  }
37993
37669
  },
37994
37670
  {
37995
- "name": "value",
37671
+ "name": "href",
37996
37672
  "type": {
37997
37673
  "text": "string"
37998
37674
  },
37999
37675
  "default": "''",
38000
- "description": "Value of the form element.",
38001
- "fieldName": "value",
37676
+ "description": "The href value you want to link to.",
37677
+ "fieldName": "href",
38002
37678
  "inheritedFrom": {
38003
- "name": "SbbButtonBaseElement",
38004
- "module": "core/base-elements/button-base-element.js"
37679
+ "name": "SbbLinkBaseElement",
37680
+ "module": "core/base-elements/link-base-element.js"
38005
37681
  }
38006
37682
  },
38007
37683
  {
38008
- "name": "type",
38009
- "description": "The type attribute to use for the button.",
38010
- "default": "'button'",
37684
+ "name": "target",
38011
37685
  "type": {
38012
- "text": "SbbButtonType"
37686
+ "text": "LinkTargetType | string"
38013
37687
  },
38014
- "fieldName": "type",
37688
+ "default": "''",
37689
+ "description": "Where to display the linked URL.",
37690
+ "fieldName": "target",
38015
37691
  "inheritedFrom": {
38016
- "name": "SbbButtonBaseElement",
38017
- "module": "core/base-elements/button-base-element.js"
37692
+ "name": "SbbLinkBaseElement",
37693
+ "module": "core/base-elements/link-base-element.js"
38018
37694
  }
38019
37695
  },
38020
37696
  {
38021
- "name": "form",
38022
- "description": "The `<form>` element to associate the button with.",
37697
+ "name": "rel",
38023
37698
  "type": {
38024
- "text": "HTMLFormElement | null"
37699
+ "text": "string"
38025
37700
  },
38026
- "fieldName": "form",
37701
+ "default": "''",
37702
+ "description": "The relationship of the linked URL as space-separated link types.",
37703
+ "fieldName": "rel",
38027
37704
  "inheritedFrom": {
38028
- "name": "SbbButtonBaseElement",
38029
- "module": "core/base-elements/button-base-element.js"
37705
+ "name": "SbbLinkBaseElement",
37706
+ "module": "core/base-elements/link-base-element.js"
38030
37707
  }
38031
37708
  },
38032
37709
  {
38033
- "name": "name",
38034
- "description": "Name of the form element. Will be read from name attribute.",
37710
+ "name": "download",
38035
37711
  "type": {
38036
- "text": "string"
37712
+ "text": "boolean"
38037
37713
  },
38038
- "fieldName": "name",
37714
+ "default": "false",
37715
+ "description": "Whether the browser will show the download dialog on click.",
37716
+ "fieldName": "download",
38039
37717
  "inheritedFrom": {
38040
- "name": "SbbFormAssociatedMixin",
38041
- "module": "core/mixins/form-associated-mixin.js"
37718
+ "name": "SbbLinkBaseElement",
37719
+ "module": "core/base-elements/link-base-element.js"
37720
+ }
37721
+ },
37722
+ {
37723
+ "name": "accessibility-label",
37724
+ "type": {
37725
+ "text": "string"
37726
+ },
37727
+ "default": "''",
37728
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
37729
+ "fieldName": "accessibilityLabel",
37730
+ "inheritedFrom": {
37731
+ "name": "SbbLinkBaseElement",
37732
+ "module": "core/base-elements/link-base-element.js"
37733
+ }
37734
+ },
37735
+ {
37736
+ "name": "accessibility-current",
37737
+ "type": {
37738
+ "text": "string"
37739
+ },
37740
+ "default": "''",
37741
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
37742
+ "fieldName": "accessibilityCurrent",
37743
+ "inheritedFrom": {
37744
+ "name": "SbbLinkBaseElement",
37745
+ "module": "core/base-elements/link-base-element.js"
38042
37746
  }
38043
37747
  }
38044
37748
  ]
@@ -38047,22 +37751,22 @@
38047
37751
  "exports": [
38048
37752
  {
38049
37753
  "kind": "js",
38050
- "name": "SbbAccentButtonElement",
37754
+ "name": "SbbAccentButtonLinkElement",
38051
37755
  "declaration": {
38052
- "name": "SbbAccentButtonElement",
38053
- "module": "button/accent-button/accent-button.component.js"
37756
+ "name": "SbbAccentButtonLinkElement",
37757
+ "module": "button/accent-button-link/accent-button-link.component.js"
38054
37758
  }
38055
37759
  }
38056
37760
  ]
38057
37761
  },
38058
37762
  {
38059
37763
  "kind": "javascript-module",
38060
- "path": "button/accent-button-link/accent-button-link.component.js",
37764
+ "path": "button/accent-button/accent-button.component.js",
38061
37765
  "declarations": [
38062
37766
  {
38063
37767
  "kind": "class",
38064
- "description": "It displays a button enhanced with the SBB Design in the 'accent' variant, which will behave as a link.",
38065
- "name": "SbbAccentButtonLinkElement",
37768
+ "description": "It displays a button enhanced with the SBB Design in the 'accent' variant.",
37769
+ "name": "SbbAccentButtonElement",
38066
37770
  "cssProperties": [
38067
37771
  {
38068
37772
  "description": "The delay before the loading animation starts, when setting the button into loading state.",
@@ -38072,7 +37776,7 @@
38072
37776
  ],
38073
37777
  "slots": [
38074
37778
  {
38075
- "description": "Use the unnamed slot to add content to the accent-button-link.",
37779
+ "description": "Use the unnamed slot to add content to the accent-button.",
38076
37780
  "name": ""
38077
37781
  },
38078
37782
  {
@@ -38090,7 +37794,7 @@
38090
37794
  "privacy": "public",
38091
37795
  "static": true,
38092
37796
  "readonly": true,
38093
- "default": "'sbb-accent-button-link'",
37797
+ "default": "'sbb-accent-button'",
38094
37798
  "inheritedFrom": {
38095
37799
  "name": "SbbElement",
38096
37800
  "module": "core/base-elements/element.js"
@@ -38287,151 +37991,479 @@
38287
37991
  },
38288
37992
  {
38289
37993
  "kind": "field",
38290
- "name": "href",
37994
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
37995
+ "type": {
37996
+ "text": "array"
37997
+ },
37998
+ "privacy": "private",
37999
+ "readonly": true,
38000
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
38001
+ "inheritedFrom": {
38002
+ "name": "SbbButtonBaseElement",
38003
+ "module": "core/base-elements/button-base-element.js"
38004
+ }
38005
+ },
38006
+ {
38007
+ "kind": "field",
38008
+ "name": "value",
38291
38009
  "type": {
38292
38010
  "text": "string"
38293
38011
  },
38294
38012
  "privacy": "public",
38295
38013
  "default": "''",
38296
- "description": "The href value you want to link to.",
38297
- "attribute": "href",
38298
- "reflects": true,
38014
+ "description": "Value of the form element.",
38015
+ "attribute": "value",
38299
38016
  "inheritedFrom": {
38300
- "name": "SbbLinkBaseElement",
38301
- "module": "core/base-elements/link-base-element.js"
38017
+ "name": "SbbButtonBaseElement",
38018
+ "module": "core/base-elements/button-base-element.js"
38302
38019
  }
38303
38020
  },
38304
38021
  {
38305
38022
  "kind": "field",
38306
- "name": "target",
38023
+ "name": "type",
38024
+ "privacy": "public",
38025
+ "description": "The type attribute to use for the button.",
38026
+ "default": "'button'",
38307
38027
  "type": {
38308
- "text": "LinkTargetType | string"
38028
+ "text": "SbbButtonType"
38029
+ },
38030
+ "attribute": "type",
38031
+ "inheritedFrom": {
38032
+ "name": "SbbButtonBaseElement",
38033
+ "module": "core/base-elements/button-base-element.js"
38034
+ }
38035
+ },
38036
+ {
38037
+ "kind": "field",
38038
+ "name": "form",
38039
+ "type": {
38040
+ "text": "HTMLFormElement | null"
38309
38041
  },
38310
38042
  "privacy": "public",
38311
- "default": "''",
38312
- "description": "Where to display the linked URL.",
38313
- "attribute": "target",
38314
- "reflects": true,
38043
+ "description": "The `<form>` element to associate the button with.",
38044
+ "attribute": "form",
38315
38045
  "inheritedFrom": {
38316
- "name": "SbbLinkBaseElement",
38317
- "module": "core/base-elements/link-base-element.js"
38046
+ "name": "SbbButtonBaseElement",
38047
+ "module": "core/base-elements/button-base-element.js"
38318
38048
  }
38319
38049
  },
38320
38050
  {
38321
38051
  "kind": "field",
38322
- "name": "rel",
38052
+ "name": "_formId",
38323
38053
  "type": {
38324
38054
  "text": "string"
38325
38055
  },
38326
- "privacy": "public",
38056
+ "privacy": "private",
38327
38057
  "default": "''",
38328
- "description": "The relationship of the linked URL as space-separated link types.",
38329
- "attribute": "rel",
38330
- "reflects": true,
38331
38058
  "inheritedFrom": {
38332
- "name": "SbbLinkBaseElement",
38333
- "module": "core/base-elements/link-base-element.js"
38059
+ "name": "SbbButtonBaseElement",
38060
+ "module": "core/base-elements/button-base-element.js"
38334
38061
  }
38335
38062
  },
38336
38063
  {
38337
38064
  "kind": "field",
38338
- "name": "download",
38065
+ "name": "_handleButtonClick",
38066
+ "privacy": "private",
38067
+ "inheritedFrom": {
38068
+ "name": "SbbButtonBaseElement",
38069
+ "module": "core/base-elements/button-base-element.js"
38070
+ }
38071
+ },
38072
+ {
38073
+ "kind": "method",
38074
+ "name": "_requestSubmit",
38075
+ "privacy": "private",
38076
+ "return": {
38077
+ "type": {
38078
+ "text": "void"
38079
+ }
38080
+ },
38081
+ "parameters": [
38082
+ {
38083
+ "name": "form",
38084
+ "type": {
38085
+ "text": "HTMLFormElement"
38086
+ }
38087
+ }
38088
+ ],
38089
+ "inheritedFrom": {
38090
+ "name": "SbbButtonBaseElement",
38091
+ "module": "core/base-elements/button-base-element.js"
38092
+ }
38093
+ },
38094
+ {
38095
+ "kind": "field",
38096
+ "name": "_formKeyDown",
38097
+ "privacy": "private",
38098
+ "inheritedFrom": {
38099
+ "name": "SbbButtonBaseElement",
38100
+ "module": "core/base-elements/button-base-element.js"
38101
+ }
38102
+ },
38103
+ {
38104
+ "kind": "field",
38105
+ "name": "formAssociated",
38339
38106
  "type": {
38340
38107
  "text": "boolean"
38341
38108
  },
38342
38109
  "privacy": "public",
38343
- "default": "false",
38344
- "description": "Whether the browser will show the download dialog on click.",
38345
- "attribute": "download",
38346
- "reflects": true,
38110
+ "static": true,
38111
+ "default": "true",
38347
38112
  "inheritedFrom": {
38348
- "name": "SbbLinkBaseElement",
38349
- "module": "core/base-elements/link-base-element.js"
38113
+ "name": "SbbFormAssociatedMixin",
38114
+ "module": "core/mixins/form-associated-mixin.js"
38350
38115
  }
38351
38116
  },
38352
38117
  {
38353
38118
  "kind": "field",
38354
- "name": "accessibilityLabel",
38119
+ "name": "name",
38120
+ "privacy": "public",
38121
+ "description": "Name of the form element. Will be read from name attribute.",
38355
38122
  "type": {
38356
38123
  "text": "string"
38357
38124
  },
38125
+ "attribute": "name",
38126
+ "inheritedFrom": {
38127
+ "name": "SbbFormAssociatedMixin",
38128
+ "module": "core/mixins/form-associated-mixin.js"
38129
+ }
38130
+ },
38131
+ {
38132
+ "kind": "field",
38133
+ "name": "validity",
38134
+ "type": {
38135
+ "text": "ValidityState"
38136
+ },
38358
38137
  "privacy": "public",
38359
- "default": "''",
38360
- "description": "This will be forwarded as aria-label to the inner anchor element.",
38361
- "attribute": "accessibility-label",
38138
+ "description": "Returns the ValidityState object for this element.",
38139
+ "readonly": true,
38362
38140
  "inheritedFrom": {
38363
- "name": "SbbLinkBaseElement",
38364
- "module": "core/base-elements/link-base-element.js"
38141
+ "name": "SbbFormAssociatedMixin",
38142
+ "module": "core/mixins/form-associated-mixin.js"
38365
38143
  }
38366
38144
  },
38367
38145
  {
38368
38146
  "kind": "field",
38369
- "name": "accessibilityCurrent",
38147
+ "name": "validationMessage",
38370
38148
  "type": {
38371
38149
  "text": "string"
38372
38150
  },
38373
38151
  "privacy": "public",
38374
- "default": "''",
38375
- "description": "This will be forwarded as aria-current to the inner anchor element.",
38376
- "attribute": "accessibility-current",
38152
+ "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.",
38153
+ "readonly": true,
38377
38154
  "inheritedFrom": {
38378
- "name": "SbbLinkBaseElement",
38379
- "module": "core/base-elements/link-base-element.js"
38155
+ "name": "SbbFormAssociatedMixin",
38156
+ "module": "core/mixins/form-associated-mixin.js"
38380
38157
  }
38381
38158
  },
38382
38159
  {
38383
38160
  "kind": "field",
38384
- "name": "language",
38385
- "privacy": "protected",
38386
- "default": "new SbbLanguageController(this)",
38161
+ "name": "willValidate",
38162
+ "type": {
38163
+ "text": "boolean"
38164
+ },
38165
+ "privacy": "public",
38166
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
38167
+ "readonly": true,
38387
38168
  "inheritedFrom": {
38388
- "name": "SbbLinkBaseElement",
38389
- "module": "core/base-elements/link-base-element.js"
38169
+ "name": "SbbFormAssociatedMixin",
38170
+ "module": "core/mixins/form-associated-mixin.js"
38390
38171
  }
38391
38172
  },
38392
38173
  {
38393
38174
  "kind": "field",
38394
- "name": "anchorRole",
38175
+ "name": "_validityStates",
38176
+ "privacy": "private",
38177
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
38178
+ "inheritedFrom": {
38179
+ "name": "SbbFormAssociatedMixin",
38180
+ "module": "core/mixins/form-associated-mixin.js"
38181
+ }
38182
+ },
38183
+ {
38184
+ "kind": "field",
38185
+ "name": "formDisabled",
38395
38186
  "type": {
38396
- "text": "string | null"
38187
+ "text": "boolean"
38397
38188
  },
38398
38189
  "privacy": "protected",
38399
- "readonly": true,
38400
- "default": "null",
38190
+ "default": "false",
38191
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
38401
38192
  "inheritedFrom": {
38402
- "name": "SbbLinkBaseElement",
38403
- "module": "core/base-elements/link-base-element.js"
38193
+ "name": "SbbFormAssociatedMixin",
38194
+ "module": "core/mixins/form-associated-mixin.js"
38404
38195
  }
38405
38196
  },
38406
38197
  {
38407
- "kind": "field",
38408
- "name": "_evaluateRelAttribute",
38198
+ "kind": "method",
38199
+ "name": "checkValidity",
38200
+ "privacy": "public",
38201
+ "return": {
38202
+ "type": {
38203
+ "text": "boolean"
38204
+ }
38205
+ },
38206
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
38207
+ "inheritedFrom": {
38208
+ "name": "SbbFormAssociatedMixin",
38209
+ "module": "core/mixins/form-associated-mixin.js"
38210
+ }
38211
+ },
38212
+ {
38213
+ "kind": "method",
38214
+ "name": "reportValidity",
38215
+ "privacy": "public",
38216
+ "return": {
38217
+ "type": {
38218
+ "text": "boolean"
38219
+ }
38220
+ },
38221
+ "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.",
38222
+ "inheritedFrom": {
38223
+ "name": "SbbFormAssociatedMixin",
38224
+ "module": "core/mixins/form-associated-mixin.js"
38225
+ }
38226
+ },
38227
+ {
38228
+ "kind": "method",
38229
+ "name": "setCustomValidity",
38230
+ "privacy": "public",
38231
+ "return": {
38232
+ "type": {
38233
+ "text": "void"
38234
+ }
38235
+ },
38236
+ "parameters": [
38237
+ {
38238
+ "name": "message",
38239
+ "type": {
38240
+ "text": "string"
38241
+ }
38242
+ }
38243
+ ],
38244
+ "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.",
38245
+ "inheritedFrom": {
38246
+ "name": "SbbFormAssociatedMixin",
38247
+ "module": "core/mixins/form-associated-mixin.js"
38248
+ }
38249
+ },
38250
+ {
38251
+ "kind": "method",
38252
+ "name": "_hasDisabledAncestor",
38409
38253
  "privacy": "private",
38254
+ "return": {
38255
+ "type": {
38256
+ "text": "boolean"
38257
+ }
38258
+ },
38410
38259
  "inheritedFrom": {
38411
- "name": "SbbLinkBaseElement",
38412
- "module": "core/base-elements/link-base-element.js"
38260
+ "name": "SbbFormAssociatedMixin",
38261
+ "module": "core/mixins/form-associated-mixin.js"
38413
38262
  }
38414
38263
  },
38415
38264
  {
38416
38265
  "kind": "method",
38417
- "name": "renderLink",
38266
+ "name": "updateFormValue",
38418
38267
  "privacy": "protected",
38419
38268
  "return": {
38420
38269
  "type": {
38421
- "text": "TemplateResult"
38270
+ "text": "void"
38271
+ }
38272
+ },
38273
+ "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",
38274
+ "inheritedFrom": {
38275
+ "name": "SbbFormAssociatedMixin",
38276
+ "module": "core/mixins/form-associated-mixin.js"
38277
+ }
38278
+ },
38279
+ {
38280
+ "kind": "method",
38281
+ "name": "formState",
38282
+ "privacy": "protected",
38283
+ "return": {
38284
+ "type": {
38285
+ "text": "FormRestoreState"
38286
+ }
38287
+ },
38288
+ "inheritedFrom": {
38289
+ "name": "SbbFormAssociatedMixin",
38290
+ "module": "core/mixins/form-associated-mixin.js"
38291
+ }
38292
+ },
38293
+ {
38294
+ "kind": "method",
38295
+ "name": "setValidityFlag",
38296
+ "privacy": "protected",
38297
+ "return": {
38298
+ "type": {
38299
+ "text": "void"
38422
38300
  }
38423
38301
  },
38424
38302
  "parameters": [
38425
38303
  {
38426
- "name": "renderContent",
38304
+ "name": "flag",
38427
38305
  "type": {
38428
- "text": "TemplateResult"
38306
+ "text": "T"
38307
+ }
38308
+ },
38309
+ {
38310
+ "name": "message",
38311
+ "type": {
38312
+ "text": "string"
38313
+ }
38314
+ },
38315
+ {
38316
+ "name": "flagValue",
38317
+ "optional": true,
38318
+ "type": {
38319
+ "text": "ValidityStateFlags[T]"
38429
38320
  }
38430
38321
  }
38431
38322
  ],
38323
+ "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).",
38432
38324
  "inheritedFrom": {
38433
- "name": "SbbLinkBaseElement",
38434
- "module": "core/base-elements/link-base-element.js"
38325
+ "name": "SbbFormAssociatedMixin",
38326
+ "module": "core/mixins/form-associated-mixin.js"
38327
+ }
38328
+ },
38329
+ {
38330
+ "kind": "method",
38331
+ "name": "removeValidityFlag",
38332
+ "privacy": "protected",
38333
+ "return": {
38334
+ "type": {
38335
+ "text": "void"
38336
+ }
38337
+ },
38338
+ "parameters": [
38339
+ {
38340
+ "name": "flag",
38341
+ "type": {
38342
+ "text": "T"
38343
+ }
38344
+ }
38345
+ ],
38346
+ "description": "Removes the validity state flag entry and updates validity state.",
38347
+ "inheritedFrom": {
38348
+ "name": "SbbFormAssociatedMixin",
38349
+ "module": "core/mixins/form-associated-mixin.js"
38350
+ }
38351
+ },
38352
+ {
38353
+ "kind": "method",
38354
+ "name": "validate",
38355
+ "privacy": "protected",
38356
+ "return": {
38357
+ "type": {
38358
+ "text": "void"
38359
+ }
38360
+ },
38361
+ "description": "To be called whenever the current element needs to be validated.",
38362
+ "inheritedFrom": {
38363
+ "name": "SbbFormAssociatedMixin",
38364
+ "module": "core/mixins/form-associated-mixin.js"
38365
+ }
38366
+ },
38367
+ {
38368
+ "kind": "method",
38369
+ "name": "shouldValidate",
38370
+ "privacy": "protected",
38371
+ "return": {
38372
+ "type": {
38373
+ "text": "boolean"
38374
+ }
38375
+ },
38376
+ "parameters": [
38377
+ {
38378
+ "name": "name",
38379
+ "type": {
38380
+ "text": "PropertyKey | undefined"
38381
+ }
38382
+ }
38383
+ ],
38384
+ "description": "Whether validation should be run on a property change with the given name.",
38385
+ "inheritedFrom": {
38386
+ "name": "SbbFormAssociatedMixin",
38387
+ "module": "core/mixins/form-associated-mixin.js"
38388
+ }
38389
+ },
38390
+ {
38391
+ "kind": "method",
38392
+ "name": "_setInternalValidity",
38393
+ "privacy": "private",
38394
+ "return": {
38395
+ "type": {
38396
+ "text": "void"
38397
+ }
38398
+ },
38399
+ "inheritedFrom": {
38400
+ "name": "SbbFormAssociatedMixin",
38401
+ "module": "core/mixins/form-associated-mixin.js"
38402
+ }
38403
+ },
38404
+ {
38405
+ "kind": "field",
38406
+ "name": "role",
38407
+ "type": {
38408
+ "text": "ElementInternals['role']"
38409
+ },
38410
+ "privacy": "public",
38411
+ "static": true,
38412
+ "readonly": true,
38413
+ "default": "'button'",
38414
+ "inheritedFrom": {
38415
+ "name": "SbbButtonLikeBaseElement",
38416
+ "module": "core/base-elements/button-base-element.js"
38417
+ }
38418
+ },
38419
+ {
38420
+ "kind": "field",
38421
+ "name": "_preventScrollOnSpaceKeydown",
38422
+ "privacy": "private",
38423
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
38424
+ "parameters": [
38425
+ {
38426
+ "description": "The origin event.",
38427
+ "name": "event"
38428
+ }
38429
+ ],
38430
+ "inheritedFrom": {
38431
+ "name": "SbbButtonLikeBaseElement",
38432
+ "module": "core/base-elements/button-base-element.js"
38433
+ }
38434
+ },
38435
+ {
38436
+ "kind": "field",
38437
+ "name": "_removeActiveMarker",
38438
+ "privacy": "private",
38439
+ "inheritedFrom": {
38440
+ "name": "SbbButtonLikeBaseElement",
38441
+ "module": "core/base-elements/button-base-element.js"
38442
+ }
38443
+ },
38444
+ {
38445
+ "kind": "field",
38446
+ "name": "_dispatchClickEventOnSpaceKeyup",
38447
+ "privacy": "private",
38448
+ "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.",
38449
+ "parameters": [
38450
+ {
38451
+ "description": "The origin event.",
38452
+ "name": "event"
38453
+ }
38454
+ ],
38455
+ "inheritedFrom": {
38456
+ "name": "SbbButtonLikeBaseElement",
38457
+ "module": "core/base-elements/button-base-element.js"
38458
+ }
38459
+ },
38460
+ {
38461
+ "kind": "field",
38462
+ "name": "_dispatchClickEvent",
38463
+ "privacy": "private",
38464
+ "inheritedFrom": {
38465
+ "name": "SbbButtonLikeBaseElement",
38466
+ "module": "core/base-elements/button-base-element.js"
38435
38467
  }
38436
38468
  },
38437
38469
  {
@@ -38586,19 +38618,15 @@
38586
38618
  "module": "button/common/button-common.js"
38587
38619
  },
38588
38620
  {
38589
- "name": "SbbDisabledInteractiveMixin",
38590
- "module": "core/mixins.js"
38591
- },
38592
- {
38593
- "name": "SbbDisabledMixin",
38621
+ "name": "SbbDisabledTabIndexActionMixin",
38594
38622
  "module": "core/mixins.js"
38595
38623
  }
38596
38624
  ],
38597
38625
  "superclass": {
38598
- "name": "SbbLinkBaseElement",
38626
+ "name": "SbbButtonBaseElement",
38599
38627
  "module": "core/base-elements.js"
38600
38628
  },
38601
- "tagName": "sbb-accent-button-link",
38629
+ "tagName": "sbb-accent-button",
38602
38630
  "customElement": true,
38603
38631
  "attributes": [
38604
38632
  {
@@ -38680,81 +38708,53 @@
38680
38708
  }
38681
38709
  },
38682
38710
  {
38683
- "name": "href",
38684
- "type": {
38685
- "text": "string"
38686
- },
38687
- "default": "''",
38688
- "description": "The href value you want to link to.",
38689
- "fieldName": "href",
38690
- "inheritedFrom": {
38691
- "name": "SbbLinkBaseElement",
38692
- "module": "core/base-elements/link-base-element.js"
38693
- }
38694
- },
38695
- {
38696
- "name": "target",
38697
- "type": {
38698
- "text": "LinkTargetType | string"
38699
- },
38700
- "default": "''",
38701
- "description": "Where to display the linked URL.",
38702
- "fieldName": "target",
38703
- "inheritedFrom": {
38704
- "name": "SbbLinkBaseElement",
38705
- "module": "core/base-elements/link-base-element.js"
38706
- }
38707
- },
38708
- {
38709
- "name": "rel",
38711
+ "name": "value",
38710
38712
  "type": {
38711
38713
  "text": "string"
38712
38714
  },
38713
38715
  "default": "''",
38714
- "description": "The relationship of the linked URL as space-separated link types.",
38715
- "fieldName": "rel",
38716
+ "description": "Value of the form element.",
38717
+ "fieldName": "value",
38716
38718
  "inheritedFrom": {
38717
- "name": "SbbLinkBaseElement",
38718
- "module": "core/base-elements/link-base-element.js"
38719
+ "name": "SbbButtonBaseElement",
38720
+ "module": "core/base-elements/button-base-element.js"
38719
38721
  }
38720
38722
  },
38721
38723
  {
38722
- "name": "download",
38724
+ "name": "type",
38725
+ "description": "The type attribute to use for the button.",
38726
+ "default": "'button'",
38723
38727
  "type": {
38724
- "text": "boolean"
38728
+ "text": "SbbButtonType"
38725
38729
  },
38726
- "default": "false",
38727
- "description": "Whether the browser will show the download dialog on click.",
38728
- "fieldName": "download",
38730
+ "fieldName": "type",
38729
38731
  "inheritedFrom": {
38730
- "name": "SbbLinkBaseElement",
38731
- "module": "core/base-elements/link-base-element.js"
38732
+ "name": "SbbButtonBaseElement",
38733
+ "module": "core/base-elements/button-base-element.js"
38732
38734
  }
38733
38735
  },
38734
38736
  {
38735
- "name": "accessibility-label",
38737
+ "name": "form",
38738
+ "description": "The `<form>` element to associate the button with.",
38736
38739
  "type": {
38737
- "text": "string"
38740
+ "text": "HTMLFormElement | null"
38738
38741
  },
38739
- "default": "''",
38740
- "description": "This will be forwarded as aria-label to the inner anchor element.",
38741
- "fieldName": "accessibilityLabel",
38742
+ "fieldName": "form",
38742
38743
  "inheritedFrom": {
38743
- "name": "SbbLinkBaseElement",
38744
- "module": "core/base-elements/link-base-element.js"
38744
+ "name": "SbbButtonBaseElement",
38745
+ "module": "core/base-elements/button-base-element.js"
38745
38746
  }
38746
38747
  },
38747
38748
  {
38748
- "name": "accessibility-current",
38749
+ "name": "name",
38750
+ "description": "Name of the form element. Will be read from name attribute.",
38749
38751
  "type": {
38750
38752
  "text": "string"
38751
38753
  },
38752
- "default": "''",
38753
- "description": "This will be forwarded as aria-current to the inner anchor element.",
38754
- "fieldName": "accessibilityCurrent",
38754
+ "fieldName": "name",
38755
38755
  "inheritedFrom": {
38756
- "name": "SbbLinkBaseElement",
38757
- "module": "core/base-elements/link-base-element.js"
38756
+ "name": "SbbFormAssociatedMixin",
38757
+ "module": "core/mixins/form-associated-mixin.js"
38758
38758
  }
38759
38759
  }
38760
38760
  ]
@@ -38763,10 +38763,10 @@
38763
38763
  "exports": [
38764
38764
  {
38765
38765
  "kind": "js",
38766
- "name": "SbbAccentButtonLinkElement",
38766
+ "name": "SbbAccentButtonElement",
38767
38767
  "declaration": {
38768
- "name": "SbbAccentButtonLinkElement",
38769
- "module": "button/accent-button-link/accent-button-link.component.js"
38768
+ "name": "SbbAccentButtonElement",
38769
+ "module": "button/accent-button/accent-button.component.js"
38770
38770
  }
38771
38771
  }
38772
38772
  ]
@@ -131219,94 +131219,512 @@
131219
131219
  }
131220
131220
  },
131221
131221
  {
131222
- "name": "value",
131222
+ "name": "value",
131223
+ "type": {
131224
+ "text": "string"
131225
+ },
131226
+ "default": "''",
131227
+ "description": "Value of the form element.",
131228
+ "fieldName": "value",
131229
+ "inheritedFrom": {
131230
+ "name": "SbbButtonBaseElement",
131231
+ "module": "core/base-elements/button-base-element.js"
131232
+ }
131233
+ },
131234
+ {
131235
+ "name": "type",
131236
+ "description": "The type attribute to use for the button.",
131237
+ "default": "'button'",
131238
+ "type": {
131239
+ "text": "SbbButtonType"
131240
+ },
131241
+ "fieldName": "type",
131242
+ "inheritedFrom": {
131243
+ "name": "SbbButtonBaseElement",
131244
+ "module": "core/base-elements/button-base-element.js"
131245
+ }
131246
+ },
131247
+ {
131248
+ "name": "form",
131249
+ "description": "The `<form>` element to associate the button with.",
131250
+ "type": {
131251
+ "text": "HTMLFormElement | null"
131252
+ },
131253
+ "fieldName": "form",
131254
+ "inheritedFrom": {
131255
+ "name": "SbbButtonBaseElement",
131256
+ "module": "core/base-elements/button-base-element.js"
131257
+ }
131258
+ },
131259
+ {
131260
+ "name": "name",
131261
+ "description": "Name of the form element. Will be read from name attribute.",
131262
+ "type": {
131263
+ "text": "string"
131264
+ },
131265
+ "fieldName": "name",
131266
+ "inheritedFrom": {
131267
+ "name": "SbbFormAssociatedMixin",
131268
+ "module": "core/mixins/form-associated-mixin.js"
131269
+ }
131270
+ }
131271
+ ],
131272
+ "slots": [
131273
+ {
131274
+ "description": "Use the unnamed slot to add content to the secondary-button.",
131275
+ "name": "",
131276
+ "inheritedFrom": {
131277
+ "name": "SbbSecondaryButtonElement",
131278
+ "module": "button/secondary-button/secondary-button.component.js"
131279
+ }
131280
+ },
131281
+ {
131282
+ "description": "Slot used to display the icon, if one is set.",
131283
+ "name": "icon",
131284
+ "inheritedFrom": {
131285
+ "name": "SbbSecondaryButtonElement",
131286
+ "module": "button/secondary-button/secondary-button.component.js"
131287
+ }
131288
+ }
131289
+ ],
131290
+ "cssProperties": [
131291
+ {
131292
+ "description": "The delay before the loading animation starts, when setting the button into loading state.",
131293
+ "name": "--sbb-button-loading-delay",
131294
+ "default": "300ms",
131295
+ "inheritedFrom": {
131296
+ "name": "SbbSecondaryButtonElement",
131297
+ "module": "button/secondary-button/secondary-button.component.js"
131298
+ }
131299
+ }
131300
+ ]
131301
+ }
131302
+ ],
131303
+ "exports": [
131304
+ {
131305
+ "kind": "js",
131306
+ "name": "SbbTimetableFormSwapButtonElement",
131307
+ "declaration": {
131308
+ "name": "SbbTimetableFormSwapButtonElement",
131309
+ "module": "timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js"
131310
+ }
131311
+ }
131312
+ ]
131313
+ },
131314
+ {
131315
+ "kind": "javascript-module",
131316
+ "path": "toggle/toggle-option/toggle-option.component.js",
131317
+ "declarations": [
131318
+ {
131319
+ "kind": "class",
131320
+ "description": "It displays a toggle option within a `sbb-toggle`.",
131321
+ "name": "SbbToggleOptionElement",
131322
+ "slots": [
131323
+ {
131324
+ "description": "Use the unnamed slot to add content to the label of the toggle option.",
131325
+ "name": ""
131326
+ },
131327
+ {
131328
+ "description": "Slot used to render the `sbb-icon`.",
131329
+ "name": "icon"
131330
+ }
131331
+ ],
131332
+ "members": [
131333
+ {
131334
+ "kind": "field",
131335
+ "name": "elementName",
131336
+ "type": {
131337
+ "text": "string"
131338
+ },
131339
+ "privacy": "public",
131340
+ "static": true,
131341
+ "readonly": true,
131342
+ "default": "'sbb-toggle-option'",
131343
+ "inheritedFrom": {
131344
+ "name": "SbbElement",
131345
+ "module": "core/base-elements/element.js"
131346
+ }
131347
+ },
131348
+ {
131349
+ "kind": "field",
131350
+ "name": "role",
131351
+ "type": {
131352
+ "text": "string"
131353
+ },
131354
+ "privacy": "public",
131355
+ "static": true,
131356
+ "readonly": true,
131357
+ "default": "'radio'"
131358
+ },
131359
+ {
131360
+ "kind": "field",
131361
+ "name": "checked",
131362
+ "type": {
131363
+ "text": "boolean"
131364
+ },
131365
+ "privacy": "public",
131366
+ "default": "false",
131367
+ "description": "Whether the toggle-option is checked.",
131368
+ "attribute": "checked",
131369
+ "reflects": true
131370
+ },
131371
+ {
131372
+ "kind": "field",
131373
+ "name": "value",
131374
+ "type": {
131375
+ "text": "(T = string) | null"
131376
+ },
131377
+ "privacy": "public",
131378
+ "default": "null",
131379
+ "description": "Value of toggle-option.",
131380
+ "attribute": "value"
131381
+ },
131382
+ {
131383
+ "kind": "field",
131384
+ "name": "_toggle",
131385
+ "type": {
131386
+ "text": "SbbToggleElement | null"
131387
+ },
131388
+ "privacy": "private",
131389
+ "default": "null"
131390
+ },
131391
+ {
131392
+ "kind": "method",
131393
+ "name": "_uncheckOtherOptions",
131394
+ "privacy": "private",
131395
+ "return": {
131396
+ "type": {
131397
+ "text": "void"
131398
+ }
131399
+ }
131400
+ },
131401
+ {
131402
+ "kind": "method",
131403
+ "name": "_handleDisabledChange",
131404
+ "privacy": "private",
131405
+ "return": {
131406
+ "type": {
131407
+ "text": "void"
131408
+ }
131409
+ }
131410
+ },
131411
+ {
131412
+ "kind": "method",
131413
+ "name": "_handleInput",
131414
+ "privacy": "private",
131415
+ "return": {
131416
+ "type": {
131417
+ "text": "void"
131418
+ }
131419
+ }
131420
+ },
131421
+ {
131422
+ "kind": "method",
131423
+ "name": "_verifyTabindex",
131424
+ "privacy": "private",
131425
+ "return": {
131426
+ "type": {
131427
+ "text": "void"
131428
+ }
131429
+ }
131430
+ },
131431
+ {
131432
+ "kind": "field",
131433
+ "name": "disabled",
131434
+ "privacy": "public",
131435
+ "description": "Whether the component is disabled.",
131436
+ "default": "false",
131437
+ "type": {
131438
+ "text": "boolean"
131439
+ },
131440
+ "attribute": "disabled",
131441
+ "reflects": true,
131442
+ "inheritedFrom": {
131443
+ "name": "SbbDisabledMixin",
131444
+ "module": "core/mixins/disabled-mixin.js"
131445
+ }
131446
+ },
131447
+ {
131448
+ "kind": "field",
131449
+ "name": "#disabled",
131450
+ "privacy": "private",
131451
+ "type": {
131452
+ "text": "boolean"
131453
+ },
131454
+ "default": "false",
131455
+ "inheritedFrom": {
131456
+ "name": "SbbDisabledMixin",
131457
+ "module": "core/mixins/disabled-mixin.js"
131458
+ }
131459
+ },
131460
+ {
131461
+ "kind": "method",
131462
+ "name": "isDisabledExternally",
131463
+ "privacy": "protected",
131464
+ "return": {
131465
+ "type": {
131466
+ "text": "boolean"
131467
+ }
131468
+ },
131469
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
131470
+ "inheritedFrom": {
131471
+ "name": "SbbDisabledMixin",
131472
+ "module": "core/mixins/disabled-mixin.js"
131473
+ }
131474
+ },
131475
+ {
131476
+ "kind": "field",
131477
+ "name": "iconName",
131478
+ "type": {
131479
+ "text": "string"
131480
+ },
131481
+ "privacy": "public",
131482
+ "default": "''",
131483
+ "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.",
131484
+ "attribute": "icon-name",
131485
+ "inheritedFrom": {
131486
+ "name": "SbbIconNameMixin",
131487
+ "module": "icon/icon-name-mixin.js"
131488
+ }
131489
+ },
131490
+ {
131491
+ "kind": "method",
131492
+ "name": "renderIconSlot",
131493
+ "privacy": "protected",
131494
+ "return": {
131495
+ "type": {
131496
+ "text": "TemplateResult"
131497
+ }
131498
+ },
131499
+ "parameters": [
131500
+ {
131501
+ "name": "classname",
131502
+ "optional": true,
131503
+ "type": {
131504
+ "text": "string"
131505
+ }
131506
+ }
131507
+ ],
131508
+ "inheritedFrom": {
131509
+ "name": "SbbIconNameMixin",
131510
+ "module": "icon/icon-name-mixin.js"
131511
+ }
131512
+ },
131513
+ {
131514
+ "kind": "method",
131515
+ "name": "renderIconName",
131516
+ "privacy": "protected",
131517
+ "return": {
131518
+ "type": {
131519
+ "text": "string"
131520
+ }
131521
+ },
131522
+ "inheritedFrom": {
131523
+ "name": "SbbIconNameMixin",
131524
+ "module": "icon/icon-name-mixin.js"
131525
+ }
131526
+ },
131527
+ {
131528
+ "kind": "method",
131529
+ "name": "_renderIconName",
131530
+ "privacy": "private",
131531
+ "return": {
131532
+ "type": {
131533
+ "text": "string"
131534
+ }
131535
+ },
131536
+ "inheritedFrom": {
131537
+ "name": "SbbIconNameMixin",
131538
+ "module": "icon/icon-name-mixin.js"
131539
+ }
131540
+ },
131541
+ {
131542
+ "kind": "field",
131543
+ "name": "_hydrationRequired",
131544
+ "type": {
131545
+ "text": "boolean"
131546
+ },
131547
+ "privacy": "private",
131548
+ "default": "!!this.shadowRoot",
131549
+ "inheritedFrom": {
131550
+ "name": "SbbElement",
131551
+ "module": "core/base-elements/element.js"
131552
+ }
131553
+ },
131554
+ {
131555
+ "kind": "field",
131556
+ "name": "_hydrationComplete",
131557
+ "privacy": "private",
131558
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
131559
+ "inheritedFrom": {
131560
+ "name": "SbbElement",
131561
+ "module": "core/base-elements/element.js"
131562
+ }
131563
+ },
131564
+ {
131565
+ "kind": "field",
131566
+ "name": "_resolveHydration",
131567
+ "type": {
131568
+ "text": "(hydrationRequired: boolean) => void"
131569
+ },
131570
+ "privacy": "private",
131571
+ "inheritedFrom": {
131572
+ "name": "SbbElement",
131573
+ "module": "core/base-elements/element.js"
131574
+ }
131575
+ },
131576
+ {
131577
+ "kind": "field",
131578
+ "name": "hydrationRequired",
131579
+ "type": {
131580
+ "text": "boolean"
131581
+ },
131582
+ "privacy": "protected",
131583
+ "description": "Returns whether hydration is required and not completed.",
131584
+ "readonly": true,
131585
+ "inheritedFrom": {
131586
+ "name": "SbbElement",
131587
+ "module": "core/base-elements/element.js"
131588
+ },
131589
+ "default": "!!this.shadowRoot"
131590
+ },
131591
+ {
131592
+ "kind": "method",
131593
+ "name": "toggleState",
131594
+ "privacy": "protected",
131595
+ "return": {
131596
+ "type": {
131597
+ "text": "void"
131598
+ }
131599
+ },
131600
+ "parameters": [
131601
+ {
131602
+ "name": "value",
131603
+ "type": {
131604
+ "text": "string"
131605
+ }
131606
+ },
131607
+ {
131608
+ "name": "force",
131609
+ "optional": true,
131610
+ "type": {
131611
+ "text": "boolean"
131612
+ }
131613
+ }
131614
+ ],
131615
+ "inheritedFrom": {
131616
+ "name": "SbbElement",
131617
+ "module": "core/base-elements/element.js"
131618
+ }
131619
+ },
131620
+ {
131621
+ "kind": "field",
131622
+ "name": "['_$sbbElement$']",
131623
+ "type": {
131624
+ "text": "boolean"
131625
+ },
131626
+ "privacy": "public",
131627
+ "static": true,
131628
+ "default": "true",
131629
+ "inheritedFrom": {
131630
+ "name": "SbbElement",
131631
+ "module": "core/base-elements/element.js"
131632
+ }
131633
+ },
131634
+ {
131635
+ "kind": "field",
131636
+ "name": "_controllers",
131637
+ "type": {
131638
+ "text": "Set<SbbReactiveController> | undefined"
131639
+ },
131640
+ "privacy": "private",
131641
+ "inheritedFrom": {
131642
+ "name": "SbbElement",
131643
+ "module": "core/base-elements/element.js"
131644
+ }
131645
+ }
131646
+ ],
131647
+ "events": [
131648
+ {
131649
+ "type": {
131650
+ "text": "InputEvent"
131651
+ },
131652
+ "description": "The input event fires when the value has been changed as a direct result of a user action.",
131653
+ "name": "input"
131654
+ }
131655
+ ],
131656
+ "attributes": [
131657
+ {
131658
+ "name": "checked",
131659
+ "type": {
131660
+ "text": "boolean"
131661
+ },
131662
+ "default": "false",
131663
+ "description": "Whether the toggle-option is checked.",
131664
+ "fieldName": "checked"
131665
+ },
131666
+ {
131667
+ "name": "value",
131668
+ "type": {
131669
+ "text": "T | null"
131670
+ },
131671
+ "default": "null",
131672
+ "description": "Value of toggle-option.",
131673
+ "fieldName": "value"
131674
+ },
131675
+ {
131676
+ "name": "disabled",
131677
+ "description": "Whether the component is disabled.",
131678
+ "default": "false",
131679
+ "type": {
131680
+ "text": "boolean"
131681
+ },
131682
+ "fieldName": "disabled",
131683
+ "inheritedFrom": {
131684
+ "name": "SbbDisabledMixin",
131685
+ "module": "core/mixins/disabled-mixin.js"
131686
+ }
131687
+ },
131688
+ {
131689
+ "name": "icon-name",
131223
131690
  "type": {
131224
131691
  "text": "string"
131225
131692
  },
131226
131693
  "default": "''",
131227
- "description": "Value of the form element.",
131228
- "fieldName": "value",
131229
- "inheritedFrom": {
131230
- "name": "SbbButtonBaseElement",
131231
- "module": "core/base-elements/button-base-element.js"
131232
- }
131233
- },
131234
- {
131235
- "name": "type",
131236
- "description": "The type attribute to use for the button.",
131237
- "default": "'button'",
131238
- "type": {
131239
- "text": "SbbButtonType"
131240
- },
131241
- "fieldName": "type",
131242
- "inheritedFrom": {
131243
- "name": "SbbButtonBaseElement",
131244
- "module": "core/base-elements/button-base-element.js"
131245
- }
131246
- },
131247
- {
131248
- "name": "form",
131249
- "description": "The `<form>` element to associate the button with.",
131250
- "type": {
131251
- "text": "HTMLFormElement | null"
131252
- },
131253
- "fieldName": "form",
131254
- "inheritedFrom": {
131255
- "name": "SbbButtonBaseElement",
131256
- "module": "core/base-elements/button-base-element.js"
131257
- }
131258
- },
131259
- {
131260
- "name": "name",
131261
- "description": "Name of the form element. Will be read from name attribute.",
131262
- "type": {
131263
- "text": "string"
131264
- },
131265
- "fieldName": "name",
131694
+ "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.",
131695
+ "fieldName": "iconName",
131266
131696
  "inheritedFrom": {
131267
- "name": "SbbFormAssociatedMixin",
131268
- "module": "core/mixins/form-associated-mixin.js"
131697
+ "name": "SbbIconNameMixin",
131698
+ "module": "icon/icon-name-mixin.js"
131269
131699
  }
131270
131700
  }
131271
131701
  ],
131272
- "slots": [
131702
+ "mixins": [
131273
131703
  {
131274
- "description": "Use the unnamed slot to add content to the secondary-button.",
131275
- "name": "",
131276
- "inheritedFrom": {
131277
- "name": "SbbSecondaryButtonElement",
131278
- "module": "button/secondary-button/secondary-button.component.js"
131279
- }
131704
+ "name": "SbbDisabledMixin",
131705
+ "module": "core/mixins.js"
131280
131706
  },
131281
131707
  {
131282
- "description": "Slot used to display the icon, if one is set.",
131283
- "name": "icon",
131284
- "inheritedFrom": {
131285
- "name": "SbbSecondaryButtonElement",
131286
- "module": "button/secondary-button/secondary-button.component.js"
131287
- }
131708
+ "name": "SbbIconNameMixin",
131709
+ "module": "icon.js"
131288
131710
  }
131289
131711
  ],
131290
- "cssProperties": [
131291
- {
131292
- "description": "The delay before the loading animation starts, when setting the button into loading state.",
131293
- "name": "--sbb-button-loading-delay",
131294
- "default": "300ms",
131295
- "inheritedFrom": {
131296
- "name": "SbbSecondaryButtonElement",
131297
- "module": "button/secondary-button/secondary-button.component.js"
131298
- }
131299
- }
131300
- ]
131712
+ "superclass": {
131713
+ "name": "SbbElement",
131714
+ "module": "core/base-elements.js"
131715
+ },
131716
+ "tagName": "sbb-toggle-option",
131717
+ "customElement": true,
131718
+ "classGenerics": "T = string"
131301
131719
  }
131302
131720
  ],
131303
131721
  "exports": [
131304
131722
  {
131305
131723
  "kind": "js",
131306
- "name": "SbbTimetableFormSwapButtonElement",
131724
+ "name": "SbbToggleOptionElement",
131307
131725
  "declaration": {
131308
- "name": "SbbTimetableFormSwapButtonElement",
131309
- "module": "timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js"
131726
+ "name": "SbbToggleOptionElement",
131727
+ "module": "toggle/toggle-option/toggle-option.component.js"
131310
131728
  }
131311
131729
  }
131312
131730
  ]
@@ -132080,424 +132498,6 @@
132080
132498
  }
132081
132499
  ]
132082
132500
  },
132083
- {
132084
- "kind": "javascript-module",
132085
- "path": "toggle/toggle-option/toggle-option.component.js",
132086
- "declarations": [
132087
- {
132088
- "kind": "class",
132089
- "description": "It displays a toggle option within a `sbb-toggle`.",
132090
- "name": "SbbToggleOptionElement",
132091
- "slots": [
132092
- {
132093
- "description": "Use the unnamed slot to add content to the label of the toggle option.",
132094
- "name": ""
132095
- },
132096
- {
132097
- "description": "Slot used to render the `sbb-icon`.",
132098
- "name": "icon"
132099
- }
132100
- ],
132101
- "members": [
132102
- {
132103
- "kind": "field",
132104
- "name": "elementName",
132105
- "type": {
132106
- "text": "string"
132107
- },
132108
- "privacy": "public",
132109
- "static": true,
132110
- "readonly": true,
132111
- "default": "'sbb-toggle-option'",
132112
- "inheritedFrom": {
132113
- "name": "SbbElement",
132114
- "module": "core/base-elements/element.js"
132115
- }
132116
- },
132117
- {
132118
- "kind": "field",
132119
- "name": "role",
132120
- "type": {
132121
- "text": "string"
132122
- },
132123
- "privacy": "public",
132124
- "static": true,
132125
- "readonly": true,
132126
- "default": "'radio'"
132127
- },
132128
- {
132129
- "kind": "field",
132130
- "name": "checked",
132131
- "type": {
132132
- "text": "boolean"
132133
- },
132134
- "privacy": "public",
132135
- "default": "false",
132136
- "description": "Whether the toggle-option is checked.",
132137
- "attribute": "checked",
132138
- "reflects": true
132139
- },
132140
- {
132141
- "kind": "field",
132142
- "name": "value",
132143
- "type": {
132144
- "text": "(T = string) | null"
132145
- },
132146
- "privacy": "public",
132147
- "default": "null",
132148
- "description": "Value of toggle-option.",
132149
- "attribute": "value"
132150
- },
132151
- {
132152
- "kind": "field",
132153
- "name": "_toggle",
132154
- "type": {
132155
- "text": "SbbToggleElement | null"
132156
- },
132157
- "privacy": "private",
132158
- "default": "null"
132159
- },
132160
- {
132161
- "kind": "method",
132162
- "name": "_uncheckOtherOptions",
132163
- "privacy": "private",
132164
- "return": {
132165
- "type": {
132166
- "text": "void"
132167
- }
132168
- }
132169
- },
132170
- {
132171
- "kind": "method",
132172
- "name": "_handleDisabledChange",
132173
- "privacy": "private",
132174
- "return": {
132175
- "type": {
132176
- "text": "void"
132177
- }
132178
- }
132179
- },
132180
- {
132181
- "kind": "method",
132182
- "name": "_handleInput",
132183
- "privacy": "private",
132184
- "return": {
132185
- "type": {
132186
- "text": "void"
132187
- }
132188
- }
132189
- },
132190
- {
132191
- "kind": "method",
132192
- "name": "_verifyTabindex",
132193
- "privacy": "private",
132194
- "return": {
132195
- "type": {
132196
- "text": "void"
132197
- }
132198
- }
132199
- },
132200
- {
132201
- "kind": "field",
132202
- "name": "disabled",
132203
- "privacy": "public",
132204
- "description": "Whether the component is disabled.",
132205
- "default": "false",
132206
- "type": {
132207
- "text": "boolean"
132208
- },
132209
- "attribute": "disabled",
132210
- "reflects": true,
132211
- "inheritedFrom": {
132212
- "name": "SbbDisabledMixin",
132213
- "module": "core/mixins/disabled-mixin.js"
132214
- }
132215
- },
132216
- {
132217
- "kind": "field",
132218
- "name": "#disabled",
132219
- "privacy": "private",
132220
- "type": {
132221
- "text": "boolean"
132222
- },
132223
- "default": "false",
132224
- "inheritedFrom": {
132225
- "name": "SbbDisabledMixin",
132226
- "module": "core/mixins/disabled-mixin.js"
132227
- }
132228
- },
132229
- {
132230
- "kind": "method",
132231
- "name": "isDisabledExternally",
132232
- "privacy": "protected",
132233
- "return": {
132234
- "type": {
132235
- "text": "boolean"
132236
- }
132237
- },
132238
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
132239
- "inheritedFrom": {
132240
- "name": "SbbDisabledMixin",
132241
- "module": "core/mixins/disabled-mixin.js"
132242
- }
132243
- },
132244
- {
132245
- "kind": "field",
132246
- "name": "iconName",
132247
- "type": {
132248
- "text": "string"
132249
- },
132250
- "privacy": "public",
132251
- "default": "''",
132252
- "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.",
132253
- "attribute": "icon-name",
132254
- "inheritedFrom": {
132255
- "name": "SbbIconNameMixin",
132256
- "module": "icon/icon-name-mixin.js"
132257
- }
132258
- },
132259
- {
132260
- "kind": "method",
132261
- "name": "renderIconSlot",
132262
- "privacy": "protected",
132263
- "return": {
132264
- "type": {
132265
- "text": "TemplateResult"
132266
- }
132267
- },
132268
- "parameters": [
132269
- {
132270
- "name": "classname",
132271
- "optional": true,
132272
- "type": {
132273
- "text": "string"
132274
- }
132275
- }
132276
- ],
132277
- "inheritedFrom": {
132278
- "name": "SbbIconNameMixin",
132279
- "module": "icon/icon-name-mixin.js"
132280
- }
132281
- },
132282
- {
132283
- "kind": "method",
132284
- "name": "renderIconName",
132285
- "privacy": "protected",
132286
- "return": {
132287
- "type": {
132288
- "text": "string"
132289
- }
132290
- },
132291
- "inheritedFrom": {
132292
- "name": "SbbIconNameMixin",
132293
- "module": "icon/icon-name-mixin.js"
132294
- }
132295
- },
132296
- {
132297
- "kind": "method",
132298
- "name": "_renderIconName",
132299
- "privacy": "private",
132300
- "return": {
132301
- "type": {
132302
- "text": "string"
132303
- }
132304
- },
132305
- "inheritedFrom": {
132306
- "name": "SbbIconNameMixin",
132307
- "module": "icon/icon-name-mixin.js"
132308
- }
132309
- },
132310
- {
132311
- "kind": "field",
132312
- "name": "_hydrationRequired",
132313
- "type": {
132314
- "text": "boolean"
132315
- },
132316
- "privacy": "private",
132317
- "default": "!!this.shadowRoot",
132318
- "inheritedFrom": {
132319
- "name": "SbbElement",
132320
- "module": "core/base-elements/element.js"
132321
- }
132322
- },
132323
- {
132324
- "kind": "field",
132325
- "name": "_hydrationComplete",
132326
- "privacy": "private",
132327
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
132328
- "inheritedFrom": {
132329
- "name": "SbbElement",
132330
- "module": "core/base-elements/element.js"
132331
- }
132332
- },
132333
- {
132334
- "kind": "field",
132335
- "name": "_resolveHydration",
132336
- "type": {
132337
- "text": "(hydrationRequired: boolean) => void"
132338
- },
132339
- "privacy": "private",
132340
- "inheritedFrom": {
132341
- "name": "SbbElement",
132342
- "module": "core/base-elements/element.js"
132343
- }
132344
- },
132345
- {
132346
- "kind": "field",
132347
- "name": "hydrationRequired",
132348
- "type": {
132349
- "text": "boolean"
132350
- },
132351
- "privacy": "protected",
132352
- "description": "Returns whether hydration is required and not completed.",
132353
- "readonly": true,
132354
- "inheritedFrom": {
132355
- "name": "SbbElement",
132356
- "module": "core/base-elements/element.js"
132357
- },
132358
- "default": "!!this.shadowRoot"
132359
- },
132360
- {
132361
- "kind": "method",
132362
- "name": "toggleState",
132363
- "privacy": "protected",
132364
- "return": {
132365
- "type": {
132366
- "text": "void"
132367
- }
132368
- },
132369
- "parameters": [
132370
- {
132371
- "name": "value",
132372
- "type": {
132373
- "text": "string"
132374
- }
132375
- },
132376
- {
132377
- "name": "force",
132378
- "optional": true,
132379
- "type": {
132380
- "text": "boolean"
132381
- }
132382
- }
132383
- ],
132384
- "inheritedFrom": {
132385
- "name": "SbbElement",
132386
- "module": "core/base-elements/element.js"
132387
- }
132388
- },
132389
- {
132390
- "kind": "field",
132391
- "name": "['_$sbbElement$']",
132392
- "type": {
132393
- "text": "boolean"
132394
- },
132395
- "privacy": "public",
132396
- "static": true,
132397
- "default": "true",
132398
- "inheritedFrom": {
132399
- "name": "SbbElement",
132400
- "module": "core/base-elements/element.js"
132401
- }
132402
- },
132403
- {
132404
- "kind": "field",
132405
- "name": "_controllers",
132406
- "type": {
132407
- "text": "Set<SbbReactiveController> | undefined"
132408
- },
132409
- "privacy": "private",
132410
- "inheritedFrom": {
132411
- "name": "SbbElement",
132412
- "module": "core/base-elements/element.js"
132413
- }
132414
- }
132415
- ],
132416
- "events": [
132417
- {
132418
- "type": {
132419
- "text": "InputEvent"
132420
- },
132421
- "description": "The input event fires when the value has been changed as a direct result of a user action.",
132422
- "name": "input"
132423
- }
132424
- ],
132425
- "attributes": [
132426
- {
132427
- "name": "checked",
132428
- "type": {
132429
- "text": "boolean"
132430
- },
132431
- "default": "false",
132432
- "description": "Whether the toggle-option is checked.",
132433
- "fieldName": "checked"
132434
- },
132435
- {
132436
- "name": "value",
132437
- "type": {
132438
- "text": "T | null"
132439
- },
132440
- "default": "null",
132441
- "description": "Value of toggle-option.",
132442
- "fieldName": "value"
132443
- },
132444
- {
132445
- "name": "disabled",
132446
- "description": "Whether the component is disabled.",
132447
- "default": "false",
132448
- "type": {
132449
- "text": "boolean"
132450
- },
132451
- "fieldName": "disabled",
132452
- "inheritedFrom": {
132453
- "name": "SbbDisabledMixin",
132454
- "module": "core/mixins/disabled-mixin.js"
132455
- }
132456
- },
132457
- {
132458
- "name": "icon-name",
132459
- "type": {
132460
- "text": "string"
132461
- },
132462
- "default": "''",
132463
- "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.",
132464
- "fieldName": "iconName",
132465
- "inheritedFrom": {
132466
- "name": "SbbIconNameMixin",
132467
- "module": "icon/icon-name-mixin.js"
132468
- }
132469
- }
132470
- ],
132471
- "mixins": [
132472
- {
132473
- "name": "SbbDisabledMixin",
132474
- "module": "core/mixins.js"
132475
- },
132476
- {
132477
- "name": "SbbIconNameMixin",
132478
- "module": "icon.js"
132479
- }
132480
- ],
132481
- "superclass": {
132482
- "name": "SbbElement",
132483
- "module": "core/base-elements.js"
132484
- },
132485
- "tagName": "sbb-toggle-option",
132486
- "customElement": true,
132487
- "classGenerics": "T = string"
132488
- }
132489
- ],
132490
- "exports": [
132491
- {
132492
- "kind": "js",
132493
- "name": "SbbToggleOptionElement",
132494
- "declaration": {
132495
- "name": "SbbToggleOptionElement",
132496
- "module": "toggle/toggle-option/toggle-option.component.js"
132497
- }
132498
- }
132499
- ]
132500
- },
132501
132501
  {
132502
132502
  "kind": "javascript-module",
132503
132503
  "path": "train/train/train.component.js",