@sbb-esta/lyne-elements 3.4.0 → 3.5.0

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.
@@ -62243,6 +62243,17 @@
62243
62243
  "module": "overlay/overlay-base-element.js"
62244
62244
  }
62245
62245
  },
62246
+ {
62247
+ "kind": "method",
62248
+ "name": "announceTitle",
62249
+ "privacy": "public",
62250
+ "return": {
62251
+ "type": {
62252
+ "text": "void"
62253
+ }
62254
+ },
62255
+ "description": "Announce the accessibility label or dialog title for screen readers."
62256
+ },
62246
62257
  {
62247
62258
  "kind": "method",
62248
62259
  "name": "isZeroAnimationDuration",
@@ -74001,15 +74012,15 @@
74001
74012
  },
74002
74013
  {
74003
74014
  "kind": "javascript-module",
74004
- "path": "link/block-link-static/block-link-static.component.js",
74015
+ "path": "link/block-link-button/block-link-button.component.js",
74005
74016
  "declarations": [
74006
74017
  {
74007
74018
  "kind": "class",
74008
- "description": "It displays a static link enhanced with the SBB Design.",
74009
- "name": "SbbBlockLinkStaticElement",
74019
+ "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
74020
+ "name": "SbbBlockLinkButtonElement",
74010
74021
  "slots": [
74011
74022
  {
74012
- "description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
74023
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
74013
74024
  "name": ""
74014
74025
  },
74015
74026
  {
@@ -74023,15 +74034,15 @@
74023
74034
  "module": "link/common.js"
74024
74035
  },
74025
74036
  {
74026
- "name": "SbbDisabledMixin",
74037
+ "name": "SbbDisabledTabIndexActionMixin",
74027
74038
  "module": "core/mixins.js"
74028
74039
  }
74029
74040
  ],
74030
74041
  "superclass": {
74031
- "name": "SbbActionBaseElement",
74042
+ "name": "SbbButtonBaseElement",
74032
74043
  "module": "core/base-elements.js"
74033
74044
  },
74034
- "tagName": "sbb-block-link-static",
74045
+ "tagName": "sbb-block-link-button",
74035
74046
  "customElement": true,
74036
74047
  "attributes": [
74037
74048
  {
@@ -74073,6 +74084,19 @@
74073
74084
  "module": "icon/icon-name-mixin.js"
74074
74085
  }
74075
74086
  },
74087
+ {
74088
+ "name": "disabled-interactive",
74089
+ "type": {
74090
+ "text": "boolean"
74091
+ },
74092
+ "default": "false",
74093
+ "description": "Whether the button should be aria-disabled but stay interactive.",
74094
+ "fieldName": "disabledInteractive",
74095
+ "inheritedFrom": {
74096
+ "name": "SbbDisabledInteractiveMixin",
74097
+ "module": "core/mixins/disabled-mixin.js"
74098
+ }
74099
+ },
74076
74100
  {
74077
74101
  "name": "disabled",
74078
74102
  "description": "Whether the component is disabled.",
@@ -74085,6 +74109,56 @@
74085
74109
  "name": "SbbDisabledMixin",
74086
74110
  "module": "core/mixins/disabled-mixin.js"
74087
74111
  }
74112
+ },
74113
+ {
74114
+ "name": "value",
74115
+ "type": {
74116
+ "text": "string"
74117
+ },
74118
+ "default": "''",
74119
+ "description": "Value of the form element.",
74120
+ "fieldName": "value",
74121
+ "inheritedFrom": {
74122
+ "name": "SbbButtonBaseElement",
74123
+ "module": "core/base-elements/button-base-element.js"
74124
+ }
74125
+ },
74126
+ {
74127
+ "name": "type",
74128
+ "description": "The type attribute to use for the button.",
74129
+ "default": "'button'",
74130
+ "type": {
74131
+ "text": "SbbButtonType"
74132
+ },
74133
+ "fieldName": "type",
74134
+ "inheritedFrom": {
74135
+ "name": "SbbButtonBaseElement",
74136
+ "module": "core/base-elements/button-base-element.js"
74137
+ }
74138
+ },
74139
+ {
74140
+ "name": "form",
74141
+ "description": "The `<form>` element to associate the button with.",
74142
+ "type": {
74143
+ "text": "HTMLFormElement | null"
74144
+ },
74145
+ "fieldName": "form",
74146
+ "inheritedFrom": {
74147
+ "name": "SbbButtonBaseElement",
74148
+ "module": "core/base-elements/button-base-element.js"
74149
+ }
74150
+ },
74151
+ {
74152
+ "name": "name",
74153
+ "description": "Name of the form element. Will be read from name attribute.",
74154
+ "type": {
74155
+ "text": "string"
74156
+ },
74157
+ "fieldName": "name",
74158
+ "inheritedFrom": {
74159
+ "name": "SbbFormAssociatedMixin",
74160
+ "module": "core/mixins/form-associated-mixin.js"
74161
+ }
74088
74162
  }
74089
74163
  ],
74090
74164
  "members": [
@@ -74188,6 +74262,22 @@
74188
74262
  "module": "icon/icon-name-mixin.js"
74189
74263
  }
74190
74264
  },
74265
+ {
74266
+ "kind": "field",
74267
+ "name": "disabledInteractive",
74268
+ "type": {
74269
+ "text": "boolean"
74270
+ },
74271
+ "privacy": "public",
74272
+ "default": "false",
74273
+ "description": "Whether the button should be aria-disabled but stay interactive.",
74274
+ "attribute": "disabled-interactive",
74275
+ "reflects": true,
74276
+ "inheritedFrom": {
74277
+ "name": "SbbDisabledInteractiveMixin",
74278
+ "module": "core/mixins/disabled-mixin.js"
74279
+ }
74280
+ },
74191
74281
  {
74192
74282
  "kind": "field",
74193
74283
  "name": "disabled",
@@ -74232,10 +74322,90 @@
74232
74322
  "module": "core/mixins/disabled-mixin.js"
74233
74323
  }
74234
74324
  },
74325
+ {
74326
+ "kind": "field",
74327
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
74328
+ "type": {
74329
+ "text": "array"
74330
+ },
74331
+ "privacy": "private",
74332
+ "readonly": true,
74333
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
74334
+ "inheritedFrom": {
74335
+ "name": "SbbButtonBaseElement",
74336
+ "module": "core/base-elements/button-base-element.js"
74337
+ }
74338
+ },
74339
+ {
74340
+ "kind": "field",
74341
+ "name": "value",
74342
+ "type": {
74343
+ "text": "string"
74344
+ },
74345
+ "privacy": "public",
74346
+ "inheritedFrom": {
74347
+ "name": "SbbButtonBaseElement",
74348
+ "module": "core/base-elements/button-base-element.js"
74349
+ },
74350
+ "default": "''",
74351
+ "description": "Value of the form element.",
74352
+ "attribute": "value"
74353
+ },
74354
+ {
74355
+ "kind": "field",
74356
+ "name": "type",
74357
+ "privacy": "public",
74358
+ "description": "The type attribute to use for the button.",
74359
+ "default": "'button'",
74360
+ "type": {
74361
+ "text": "SbbButtonType"
74362
+ },
74363
+ "attribute": "type",
74364
+ "inheritedFrom": {
74365
+ "name": "SbbButtonBaseElement",
74366
+ "module": "core/base-elements/button-base-element.js"
74367
+ }
74368
+ },
74369
+ {
74370
+ "kind": "field",
74371
+ "name": "form",
74372
+ "type": {
74373
+ "text": "HTMLFormElement | null"
74374
+ },
74375
+ "privacy": "public",
74376
+ "description": "The `<form>` element to associate the button with.",
74377
+ "inheritedFrom": {
74378
+ "name": "SbbButtonBaseElement",
74379
+ "module": "core/base-elements/button-base-element.js"
74380
+ },
74381
+ "attribute": "form"
74382
+ },
74383
+ {
74384
+ "kind": "field",
74385
+ "name": "_formId",
74386
+ "type": {
74387
+ "text": "string"
74388
+ },
74389
+ "privacy": "private",
74390
+ "default": "''",
74391
+ "inheritedFrom": {
74392
+ "name": "SbbButtonBaseElement",
74393
+ "module": "core/base-elements/button-base-element.js"
74394
+ }
74395
+ },
74396
+ {
74397
+ "kind": "field",
74398
+ "name": "_handleButtonClick",
74399
+ "privacy": "private",
74400
+ "inheritedFrom": {
74401
+ "name": "SbbButtonBaseElement",
74402
+ "module": "core/base-elements/button-base-element.js"
74403
+ }
74404
+ },
74235
74405
  {
74236
74406
  "kind": "method",
74237
- "name": "toggleState",
74238
- "privacy": "protected",
74407
+ "name": "_requestSubmit",
74408
+ "privacy": "private",
74239
74409
  "return": {
74240
74410
  "type": {
74241
74411
  "text": "void"
@@ -74243,873 +74413,714 @@
74243
74413
  },
74244
74414
  "parameters": [
74245
74415
  {
74246
- "name": "state",
74247
- "type": {
74248
- "text": "string"
74249
- }
74250
- },
74251
- {
74252
- "name": "force",
74253
- "optional": true,
74416
+ "name": "form",
74254
74417
  "type": {
74255
- "text": "boolean"
74418
+ "text": "HTMLFormElement"
74256
74419
  }
74257
74420
  }
74258
74421
  ],
74259
74422
  "inheritedFrom": {
74260
- "name": "SbbActionBaseElement",
74261
- "module": "core/base-elements/action-base-element.js"
74423
+ "name": "SbbButtonBaseElement",
74424
+ "module": "core/base-elements/button-base-element.js"
74262
74425
  }
74263
74426
  },
74264
74427
  {
74265
74428
  "kind": "field",
74266
- "name": "maybeDisabled",
74429
+ "name": "_formKeyDown",
74430
+ "privacy": "private",
74431
+ "inheritedFrom": {
74432
+ "name": "SbbButtonBaseElement",
74433
+ "module": "core/base-elements/button-base-element.js"
74434
+ }
74435
+ },
74436
+ {
74437
+ "kind": "field",
74438
+ "name": "formAssociated",
74267
74439
  "type": {
74268
- "text": "boolean | undefined"
74440
+ "text": "boolean"
74269
74441
  },
74270
- "privacy": "protected",
74271
- "readonly": true,
74442
+ "privacy": "public",
74443
+ "static": true,
74444
+ "default": "true",
74272
74445
  "inheritedFrom": {
74273
- "name": "SbbActionBaseElement",
74274
- "module": "core/base-elements/action-base-element.js"
74446
+ "name": "SbbFormAssociatedMixin",
74447
+ "module": "core/mixins/form-associated-mixin.js"
74275
74448
  }
74276
74449
  },
74277
74450
  {
74278
74451
  "kind": "field",
74279
- "name": "maybeDisabledInteractive",
74452
+ "name": "name",
74453
+ "privacy": "public",
74454
+ "description": "Name of the form element. Will be read from name attribute.",
74280
74455
  "type": {
74281
- "text": "boolean | undefined"
74456
+ "text": "string"
74282
74457
  },
74283
- "privacy": "protected",
74284
- "readonly": true,
74458
+ "attribute": "name",
74285
74459
  "inheritedFrom": {
74286
- "name": "SbbActionBaseElement",
74287
- "module": "core/base-elements/action-base-element.js"
74460
+ "name": "SbbFormAssociatedMixin",
74461
+ "module": "core/mixins/form-associated-mixin.js"
74288
74462
  }
74289
74463
  },
74290
74464
  {
74291
- "kind": "method",
74292
- "name": "setupBaseEventHandlers",
74293
- "privacy": "protected",
74294
- "return": {
74295
- "type": {
74296
- "text": "void"
74297
- }
74465
+ "kind": "field",
74466
+ "name": "validity",
74467
+ "type": {
74468
+ "text": "ValidityState"
74298
74469
  },
74470
+ "privacy": "public",
74471
+ "description": "Returns the ValidityState object for this element.",
74472
+ "readonly": true,
74299
74473
  "inheritedFrom": {
74300
- "name": "SbbActionBaseElement",
74301
- "module": "core/base-elements/action-base-element.js"
74302
- }
74303
- }
74304
- ]
74305
- }
74306
- ],
74307
- "exports": [
74308
- {
74309
- "kind": "js",
74310
- "name": "SbbBlockLinkStaticElement",
74311
- "declaration": {
74312
- "name": "SbbBlockLinkStaticElement",
74313
- "module": "link/block-link-static/block-link-static.component.js"
74314
- }
74315
- },
74316
- {
74317
- "kind": "custom-element-definition",
74318
- "name": "sbb-block-link-static",
74319
- "declaration": {
74320
- "name": "SbbBlockLinkStaticElement",
74321
- "module": "link/block-link-static/block-link-static.component.js"
74322
- }
74323
- }
74324
- ]
74325
- },
74326
- {
74327
- "kind": "javascript-module",
74328
- "path": "link/block-link-button/block-link-button.component.js",
74329
- "declarations": [
74330
- {
74331
- "kind": "class",
74332
- "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
74333
- "name": "SbbBlockLinkButtonElement",
74334
- "slots": [
74335
- {
74336
- "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
74337
- "name": ""
74338
- },
74339
- {
74340
- "description": "Slot used to display the icon, if one is set.",
74341
- "name": "icon"
74342
- }
74343
- ],
74344
- "mixins": [
74345
- {
74346
- "name": "SbbBlockLinkCommonElementMixin",
74347
- "module": "link/common.js"
74348
- },
74349
- {
74350
- "name": "SbbDisabledTabIndexActionMixin",
74351
- "module": "core/mixins.js"
74352
- }
74353
- ],
74354
- "superclass": {
74355
- "name": "SbbButtonBaseElement",
74356
- "module": "core/base-elements.js"
74357
- },
74358
- "tagName": "sbb-block-link-button",
74359
- "customElement": true,
74360
- "attributes": [
74361
- {
74362
- "name": "icon-placement",
74363
- "type": {
74364
- "text": "SbbIconPlacement"
74365
- },
74366
- "default": "'start'",
74367
- "description": "Moves the icon to the end of the component if set to true.",
74368
- "fieldName": "iconPlacement",
74369
- "inheritedFrom": {
74370
- "name": "SbbBlockLinkCommonElementMixin",
74371
- "module": "link/common/block-link-common.js"
74474
+ "name": "SbbFormAssociatedMixin",
74475
+ "module": "core/mixins/form-associated-mixin.js"
74372
74476
  }
74373
74477
  },
74374
74478
  {
74375
- "name": "size",
74376
- "type": {
74377
- "text": "SbbLinkSize"
74378
- },
74379
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
74380
- "default": "'s' / 'xs' (lean)",
74381
- "fieldName": "size",
74382
- "inheritedFrom": {
74383
- "name": "SbbLinkCommonElementMixin",
74384
- "module": "link/common/link-common.js"
74385
- }
74386
- },
74387
- {
74388
- "name": "icon-name",
74479
+ "kind": "field",
74480
+ "name": "validationMessage",
74389
74481
  "type": {
74390
74482
  "text": "string"
74391
74483
  },
74392
- "default": "''",
74393
- "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.",
74394
- "fieldName": "iconName",
74484
+ "privacy": "public",
74485
+ "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.",
74486
+ "readonly": true,
74395
74487
  "inheritedFrom": {
74396
- "name": "SbbIconNameMixin",
74397
- "module": "icon/icon-name-mixin.js"
74488
+ "name": "SbbFormAssociatedMixin",
74489
+ "module": "core/mixins/form-associated-mixin.js"
74398
74490
  }
74399
74491
  },
74400
74492
  {
74401
- "name": "disabled-interactive",
74493
+ "kind": "field",
74494
+ "name": "willValidate",
74402
74495
  "type": {
74403
74496
  "text": "boolean"
74404
74497
  },
74405
- "default": "false",
74406
- "description": "Whether the button should be aria-disabled but stay interactive.",
74407
- "fieldName": "disabledInteractive",
74498
+ "privacy": "public",
74499
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
74500
+ "readonly": true,
74408
74501
  "inheritedFrom": {
74409
- "name": "SbbDisabledInteractiveMixin",
74410
- "module": "core/mixins/disabled-mixin.js"
74502
+ "name": "SbbFormAssociatedMixin",
74503
+ "module": "core/mixins/form-associated-mixin.js"
74411
74504
  }
74412
74505
  },
74413
74506
  {
74414
- "name": "disabled",
74415
- "description": "Whether the component is disabled.",
74416
- "default": "false",
74417
- "type": {
74418
- "text": "boolean"
74419
- },
74420
- "fieldName": "disabled",
74507
+ "kind": "field",
74508
+ "name": "_validityStates",
74509
+ "privacy": "private",
74510
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
74421
74511
  "inheritedFrom": {
74422
- "name": "SbbDisabledMixin",
74423
- "module": "core/mixins/disabled-mixin.js"
74512
+ "name": "SbbFormAssociatedMixin",
74513
+ "module": "core/mixins/form-associated-mixin.js"
74424
74514
  }
74425
74515
  },
74426
74516
  {
74427
- "name": "value",
74517
+ "kind": "field",
74518
+ "name": "formDisabled",
74428
74519
  "type": {
74429
- "text": "string"
74520
+ "text": "boolean"
74430
74521
  },
74431
- "default": "''",
74432
- "description": "Value of the form element.",
74433
- "fieldName": "value",
74522
+ "privacy": "protected",
74523
+ "default": "false",
74524
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
74434
74525
  "inheritedFrom": {
74435
- "name": "SbbButtonBaseElement",
74436
- "module": "core/base-elements/button-base-element.js"
74526
+ "name": "SbbFormAssociatedMixin",
74527
+ "module": "core/mixins/form-associated-mixin.js"
74437
74528
  }
74438
74529
  },
74439
74530
  {
74440
- "name": "type",
74441
- "description": "The type attribute to use for the button.",
74442
- "default": "'button'",
74443
- "type": {
74444
- "text": "SbbButtonType"
74531
+ "kind": "method",
74532
+ "name": "checkValidity",
74533
+ "privacy": "public",
74534
+ "return": {
74535
+ "type": {
74536
+ "text": "boolean"
74537
+ }
74445
74538
  },
74446
- "fieldName": "type",
74539
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
74447
74540
  "inheritedFrom": {
74448
- "name": "SbbButtonBaseElement",
74449
- "module": "core/base-elements/button-base-element.js"
74541
+ "name": "SbbFormAssociatedMixin",
74542
+ "module": "core/mixins/form-associated-mixin.js"
74450
74543
  }
74451
74544
  },
74452
74545
  {
74453
- "name": "form",
74454
- "description": "The `<form>` element to associate the button with.",
74455
- "type": {
74456
- "text": "HTMLFormElement | null"
74546
+ "kind": "method",
74547
+ "name": "reportValidity",
74548
+ "privacy": "public",
74549
+ "return": {
74550
+ "type": {
74551
+ "text": "boolean"
74552
+ }
74457
74553
  },
74458
- "fieldName": "form",
74554
+ "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.",
74459
74555
  "inheritedFrom": {
74460
- "name": "SbbButtonBaseElement",
74461
- "module": "core/base-elements/button-base-element.js"
74556
+ "name": "SbbFormAssociatedMixin",
74557
+ "module": "core/mixins/form-associated-mixin.js"
74462
74558
  }
74463
74559
  },
74464
74560
  {
74465
- "name": "name",
74466
- "description": "Name of the form element. Will be read from name attribute.",
74467
- "type": {
74468
- "text": "string"
74561
+ "kind": "method",
74562
+ "name": "setCustomValidity",
74563
+ "privacy": "public",
74564
+ "return": {
74565
+ "type": {
74566
+ "text": "void"
74567
+ }
74469
74568
  },
74470
- "fieldName": "name",
74569
+ "parameters": [
74570
+ {
74571
+ "name": "message",
74572
+ "type": {
74573
+ "text": "string"
74574
+ }
74575
+ }
74576
+ ],
74577
+ "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.",
74471
74578
  "inheritedFrom": {
74472
74579
  "name": "SbbFormAssociatedMixin",
74473
74580
  "module": "core/mixins/form-associated-mixin.js"
74474
74581
  }
74475
- }
74476
- ],
74477
- "members": [
74478
- {
74479
- "kind": "field",
74480
- "name": "styles",
74481
- "type": {
74482
- "text": "CSSResultGroup"
74483
- },
74484
- "privacy": "public",
74485
- "static": true,
74486
- "default": "[style, blockStyle]",
74487
- "inheritedFrom": {
74488
- "name": "SbbLinkCommonElementMixin",
74489
- "module": "link/common/link-common.js"
74490
- }
74491
74582
  },
74492
74583
  {
74493
- "kind": "field",
74494
- "name": "iconPlacement",
74495
- "type": {
74496
- "text": "SbbIconPlacement"
74584
+ "kind": "method",
74585
+ "name": "_hasDisabledAncestor",
74586
+ "privacy": "private",
74587
+ "return": {
74588
+ "type": {
74589
+ "text": "boolean"
74590
+ }
74497
74591
  },
74498
- "privacy": "public",
74499
- "default": "'start'",
74500
- "description": "Moves the icon to the end of the component if set to true.",
74501
- "attribute": "icon-placement",
74502
- "reflects": true,
74503
74592
  "inheritedFrom": {
74504
- "name": "SbbBlockLinkCommonElementMixin",
74505
- "module": "link/common/block-link-common.js"
74593
+ "name": "SbbFormAssociatedMixin",
74594
+ "module": "core/mixins/form-associated-mixin.js"
74506
74595
  }
74507
74596
  },
74508
74597
  {
74509
74598
  "kind": "method",
74510
- "name": "renderTemplate",
74599
+ "name": "updateFormValue",
74511
74600
  "privacy": "protected",
74512
74601
  "return": {
74513
74602
  "type": {
74514
- "text": "TemplateResult"
74603
+ "text": "void"
74515
74604
  }
74516
74605
  },
74517
- "description": "Override this method to render the component template.",
74518
- "inheritedFrom": {
74519
- "name": "SbbActionBaseElement",
74520
- "module": "core/base-elements/action-base-element.js"
74521
- }
74522
- },
74523
- {
74524
- "kind": "field",
74525
- "name": "size",
74526
- "type": {
74527
- "text": "SbbLinkSize"
74528
- },
74529
- "privacy": "public",
74530
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
74531
- "default": "'s' / 'xs' (lean)",
74532
- "attribute": "size",
74533
- "reflects": true,
74606
+ "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",
74534
74607
  "inheritedFrom": {
74535
- "name": "SbbLinkCommonElementMixin",
74536
- "module": "link/common/link-common.js"
74608
+ "name": "SbbFormAssociatedMixin",
74609
+ "module": "core/mixins/form-associated-mixin.js"
74537
74610
  }
74538
74611
  },
74539
74612
  {
74540
- "kind": "field",
74541
- "name": "iconName",
74542
- "type": {
74543
- "text": "string"
74613
+ "kind": "method",
74614
+ "name": "formState",
74615
+ "privacy": "protected",
74616
+ "return": {
74617
+ "type": {
74618
+ "text": "FormRestoreState"
74619
+ }
74544
74620
  },
74545
- "privacy": "public",
74546
- "default": "''",
74547
- "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.",
74548
- "attribute": "icon-name",
74549
- "reflects": true,
74550
74621
  "inheritedFrom": {
74551
- "name": "SbbIconNameMixin",
74552
- "module": "icon/icon-name-mixin.js"
74622
+ "name": "SbbFormAssociatedMixin",
74623
+ "module": "core/mixins/form-associated-mixin.js"
74553
74624
  }
74554
74625
  },
74555
74626
  {
74556
74627
  "kind": "method",
74557
- "name": "renderIconSlot",
74628
+ "name": "setValidityFlag",
74558
74629
  "privacy": "protected",
74559
74630
  "return": {
74560
74631
  "type": {
74561
- "text": "TemplateResult"
74632
+ "text": "void"
74562
74633
  }
74563
74634
  },
74564
74635
  "parameters": [
74565
74636
  {
74566
- "name": "classname",
74567
- "optional": true,
74637
+ "name": "flag",
74638
+ "type": {
74639
+ "text": "T"
74640
+ }
74641
+ },
74642
+ {
74643
+ "name": "message",
74568
74644
  "type": {
74569
74645
  "text": "string"
74570
74646
  }
74647
+ },
74648
+ {
74649
+ "name": "flagValue",
74650
+ "optional": true,
74651
+ "type": {
74652
+ "text": "ValidityStateFlags[T]"
74653
+ }
74571
74654
  }
74572
74655
  ],
74656
+ "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).",
74573
74657
  "inheritedFrom": {
74574
- "name": "SbbIconNameMixin",
74575
- "module": "icon/icon-name-mixin.js"
74576
- }
74577
- },
74578
- {
74579
- "kind": "field",
74580
- "name": "disabledInteractive",
74581
- "type": {
74582
- "text": "boolean"
74583
- },
74584
- "privacy": "public",
74585
- "default": "false",
74586
- "description": "Whether the button should be aria-disabled but stay interactive.",
74587
- "attribute": "disabled-interactive",
74588
- "reflects": true,
74589
- "inheritedFrom": {
74590
- "name": "SbbDisabledInteractiveMixin",
74591
- "module": "core/mixins/disabled-mixin.js"
74658
+ "name": "SbbFormAssociatedMixin",
74659
+ "module": "core/mixins/form-associated-mixin.js"
74592
74660
  }
74593
74661
  },
74594
74662
  {
74595
- "kind": "field",
74596
- "name": "disabled",
74597
- "privacy": "public",
74598
- "description": "Whether the component is disabled.",
74599
- "default": "false",
74600
- "type": {
74601
- "text": "boolean"
74663
+ "kind": "method",
74664
+ "name": "removeValidityFlag",
74665
+ "privacy": "protected",
74666
+ "return": {
74667
+ "type": {
74668
+ "text": "void"
74669
+ }
74602
74670
  },
74603
- "attribute": "disabled",
74604
- "reflects": true,
74671
+ "parameters": [
74672
+ {
74673
+ "name": "flag",
74674
+ "type": {
74675
+ "text": "T"
74676
+ }
74677
+ }
74678
+ ],
74679
+ "description": "Removes the validity state flag entry and updates validity state.",
74605
74680
  "inheritedFrom": {
74606
- "name": "SbbDisabledMixin",
74607
- "module": "core/mixins/disabled-mixin.js"
74681
+ "name": "SbbFormAssociatedMixin",
74682
+ "module": "core/mixins/form-associated-mixin.js"
74608
74683
  }
74609
74684
  },
74610
74685
  {
74611
- "kind": "field",
74612
- "name": "#disabled",
74613
- "privacy": "private",
74614
- "type": {
74615
- "text": "boolean"
74686
+ "kind": "method",
74687
+ "name": "validate",
74688
+ "privacy": "protected",
74689
+ "return": {
74690
+ "type": {
74691
+ "text": "void"
74692
+ }
74616
74693
  },
74617
- "default": "false",
74694
+ "description": "To be called whenever the current element needs to be validated.",
74618
74695
  "inheritedFrom": {
74619
- "name": "SbbDisabledMixin",
74620
- "module": "core/mixins/disabled-mixin.js"
74696
+ "name": "SbbFormAssociatedMixin",
74697
+ "module": "core/mixins/form-associated-mixin.js"
74621
74698
  }
74622
74699
  },
74623
74700
  {
74624
74701
  "kind": "method",
74625
- "name": "isDisabledExternally",
74702
+ "name": "shouldValidate",
74626
74703
  "privacy": "protected",
74627
74704
  "return": {
74628
74705
  "type": {
74629
74706
  "text": "boolean"
74630
74707
  }
74631
74708
  },
74632
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
74709
+ "parameters": [
74710
+ {
74711
+ "name": "name",
74712
+ "type": {
74713
+ "text": "PropertyKey | undefined"
74714
+ }
74715
+ }
74716
+ ],
74717
+ "description": "Whether validation should be run on a property change with the given name.",
74633
74718
  "inheritedFrom": {
74634
- "name": "SbbDisabledMixin",
74635
- "module": "core/mixins/disabled-mixin.js"
74719
+ "name": "SbbFormAssociatedMixin",
74720
+ "module": "core/mixins/form-associated-mixin.js"
74636
74721
  }
74637
74722
  },
74638
74723
  {
74639
- "kind": "field",
74640
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
74641
- "type": {
74642
- "text": "array"
74643
- },
74724
+ "kind": "method",
74725
+ "name": "_setInternalValidity",
74644
74726
  "privacy": "private",
74645
- "readonly": true,
74646
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
74647
- "inheritedFrom": {
74648
- "name": "SbbButtonBaseElement",
74649
- "module": "core/base-elements/button-base-element.js"
74650
- }
74651
- },
74652
- {
74653
- "kind": "field",
74654
- "name": "value",
74655
- "type": {
74656
- "text": "string"
74657
- },
74658
- "privacy": "public",
74659
- "inheritedFrom": {
74660
- "name": "SbbButtonBaseElement",
74661
- "module": "core/base-elements/button-base-element.js"
74662
- },
74663
- "default": "''",
74664
- "description": "Value of the form element.",
74665
- "attribute": "value"
74666
- },
74667
- {
74668
- "kind": "field",
74669
- "name": "type",
74670
- "privacy": "public",
74671
- "description": "The type attribute to use for the button.",
74672
- "default": "'button'",
74673
- "type": {
74674
- "text": "SbbButtonType"
74727
+ "return": {
74728
+ "type": {
74729
+ "text": "void"
74730
+ }
74675
74731
  },
74676
- "attribute": "type",
74677
74732
  "inheritedFrom": {
74678
- "name": "SbbButtonBaseElement",
74679
- "module": "core/base-elements/button-base-element.js"
74733
+ "name": "SbbFormAssociatedMixin",
74734
+ "module": "core/mixins/form-associated-mixin.js"
74680
74735
  }
74681
74736
  },
74682
74737
  {
74683
74738
  "kind": "field",
74684
- "name": "form",
74739
+ "name": "role",
74685
74740
  "type": {
74686
- "text": "HTMLFormElement | null"
74741
+ "text": "ElementInternals['role']"
74687
74742
  },
74688
74743
  "privacy": "public",
74689
- "description": "The `<form>` element to associate the button with.",
74690
- "inheritedFrom": {
74691
- "name": "SbbButtonBaseElement",
74692
- "module": "core/base-elements/button-base-element.js"
74693
- },
74694
- "attribute": "form"
74695
- },
74696
- {
74697
- "kind": "field",
74698
- "name": "_formId",
74699
- "type": {
74700
- "text": "string"
74701
- },
74702
- "privacy": "private",
74703
- "default": "''",
74704
- "inheritedFrom": {
74705
- "name": "SbbButtonBaseElement",
74706
- "module": "core/base-elements/button-base-element.js"
74707
- }
74708
- },
74709
- {
74710
- "kind": "field",
74711
- "name": "_handleButtonClick",
74712
- "privacy": "private",
74744
+ "static": true,
74745
+ "readonly": true,
74746
+ "default": "'button'",
74713
74747
  "inheritedFrom": {
74714
- "name": "SbbButtonBaseElement",
74748
+ "name": "SbbButtonLikeBaseElement",
74715
74749
  "module": "core/base-elements/button-base-element.js"
74716
74750
  }
74717
74751
  },
74718
74752
  {
74719
- "kind": "method",
74720
- "name": "_requestSubmit",
74753
+ "kind": "field",
74754
+ "name": "_preventScrollOnSpaceKeydown",
74721
74755
  "privacy": "private",
74722
- "return": {
74723
- "type": {
74724
- "text": "void"
74725
- }
74726
- },
74756
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets data-active attribute.",
74727
74757
  "parameters": [
74728
74758
  {
74729
- "name": "form",
74730
- "type": {
74731
- "text": "HTMLFormElement"
74732
- }
74759
+ "description": "The origin event.",
74760
+ "name": "event"
74733
74761
  }
74734
74762
  ],
74735
74763
  "inheritedFrom": {
74736
- "name": "SbbButtonBaseElement",
74764
+ "name": "SbbButtonLikeBaseElement",
74737
74765
  "module": "core/base-elements/button-base-element.js"
74738
74766
  }
74739
74767
  },
74740
74768
  {
74741
74769
  "kind": "field",
74742
- "name": "_formKeyDown",
74770
+ "name": "_removeActiveMarker",
74743
74771
  "privacy": "private",
74744
74772
  "inheritedFrom": {
74745
- "name": "SbbButtonBaseElement",
74773
+ "name": "SbbButtonLikeBaseElement",
74746
74774
  "module": "core/base-elements/button-base-element.js"
74747
74775
  }
74748
74776
  },
74749
74777
  {
74750
74778
  "kind": "field",
74751
- "name": "formAssociated",
74752
- "type": {
74753
- "text": "boolean"
74754
- },
74755
- "privacy": "public",
74756
- "static": true,
74757
- "default": "true",
74779
+ "name": "_dispatchClickEventOnSpaceKeyup",
74780
+ "privacy": "private",
74781
+ "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.",
74782
+ "parameters": [
74783
+ {
74784
+ "description": "The origin event.",
74785
+ "name": "event"
74786
+ }
74787
+ ],
74758
74788
  "inheritedFrom": {
74759
- "name": "SbbFormAssociatedMixin",
74760
- "module": "core/mixins/form-associated-mixin.js"
74789
+ "name": "SbbButtonLikeBaseElement",
74790
+ "module": "core/base-elements/button-base-element.js"
74761
74791
  }
74762
74792
  },
74763
74793
  {
74764
74794
  "kind": "field",
74765
- "name": "name",
74766
- "privacy": "public",
74767
- "description": "Name of the form element. Will be read from name attribute.",
74768
- "type": {
74769
- "text": "string"
74770
- },
74771
- "attribute": "name",
74795
+ "name": "_dispatchClickEvent",
74796
+ "privacy": "private",
74772
74797
  "inheritedFrom": {
74773
- "name": "SbbFormAssociatedMixin",
74774
- "module": "core/mixins/form-associated-mixin.js"
74798
+ "name": "SbbButtonLikeBaseElement",
74799
+ "module": "core/base-elements/button-base-element.js"
74775
74800
  }
74776
74801
  },
74777
74802
  {
74778
- "kind": "field",
74779
- "name": "validity",
74780
- "type": {
74781
- "text": "ValidityState"
74803
+ "kind": "method",
74804
+ "name": "toggleState",
74805
+ "privacy": "protected",
74806
+ "return": {
74807
+ "type": {
74808
+ "text": "void"
74809
+ }
74782
74810
  },
74783
- "privacy": "public",
74784
- "description": "Returns the ValidityState object for this element.",
74785
- "readonly": true,
74811
+ "parameters": [
74812
+ {
74813
+ "name": "state",
74814
+ "type": {
74815
+ "text": "string"
74816
+ }
74817
+ },
74818
+ {
74819
+ "name": "force",
74820
+ "optional": true,
74821
+ "type": {
74822
+ "text": "boolean"
74823
+ }
74824
+ }
74825
+ ],
74786
74826
  "inheritedFrom": {
74787
- "name": "SbbFormAssociatedMixin",
74788
- "module": "core/mixins/form-associated-mixin.js"
74827
+ "name": "SbbActionBaseElement",
74828
+ "module": "core/base-elements/action-base-element.js"
74789
74829
  }
74790
74830
  },
74791
74831
  {
74792
74832
  "kind": "field",
74793
- "name": "validationMessage",
74833
+ "name": "maybeDisabled",
74794
74834
  "type": {
74795
- "text": "string"
74835
+ "text": "boolean | undefined"
74796
74836
  },
74797
- "privacy": "public",
74798
- "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.",
74837
+ "privacy": "protected",
74799
74838
  "readonly": true,
74800
74839
  "inheritedFrom": {
74801
- "name": "SbbFormAssociatedMixin",
74802
- "module": "core/mixins/form-associated-mixin.js"
74840
+ "name": "SbbActionBaseElement",
74841
+ "module": "core/base-elements/action-base-element.js"
74803
74842
  }
74804
74843
  },
74805
74844
  {
74806
74845
  "kind": "field",
74807
- "name": "willValidate",
74846
+ "name": "maybeDisabledInteractive",
74808
74847
  "type": {
74809
- "text": "boolean"
74848
+ "text": "boolean | undefined"
74810
74849
  },
74811
- "privacy": "public",
74812
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
74850
+ "privacy": "protected",
74813
74851
  "readonly": true,
74814
74852
  "inheritedFrom": {
74815
- "name": "SbbFormAssociatedMixin",
74816
- "module": "core/mixins/form-associated-mixin.js"
74853
+ "name": "SbbActionBaseElement",
74854
+ "module": "core/base-elements/action-base-element.js"
74817
74855
  }
74818
74856
  },
74819
74857
  {
74820
- "kind": "field",
74821
- "name": "_validityStates",
74822
- "privacy": "private",
74823
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
74858
+ "kind": "method",
74859
+ "name": "setupBaseEventHandlers",
74860
+ "privacy": "protected",
74861
+ "return": {
74862
+ "type": {
74863
+ "text": "void"
74864
+ }
74865
+ },
74824
74866
  "inheritedFrom": {
74825
- "name": "SbbFormAssociatedMixin",
74826
- "module": "core/mixins/form-associated-mixin.js"
74867
+ "name": "SbbActionBaseElement",
74868
+ "module": "core/base-elements/action-base-element.js"
74827
74869
  }
74870
+ }
74871
+ ]
74872
+ }
74873
+ ],
74874
+ "exports": [
74875
+ {
74876
+ "kind": "js",
74877
+ "name": "SbbBlockLinkButtonElement",
74878
+ "declaration": {
74879
+ "name": "SbbBlockLinkButtonElement",
74880
+ "module": "link/block-link-button/block-link-button.component.js"
74881
+ }
74882
+ },
74883
+ {
74884
+ "kind": "custom-element-definition",
74885
+ "name": "sbb-block-link-button",
74886
+ "declaration": {
74887
+ "name": "SbbBlockLinkButtonElement",
74888
+ "module": "link/block-link-button/block-link-button.component.js"
74889
+ }
74890
+ }
74891
+ ]
74892
+ },
74893
+ {
74894
+ "kind": "javascript-module",
74895
+ "path": "link/block-link-static/block-link-static.component.js",
74896
+ "declarations": [
74897
+ {
74898
+ "kind": "class",
74899
+ "description": "It displays a static link enhanced with the SBB Design.",
74900
+ "name": "SbbBlockLinkStaticElement",
74901
+ "slots": [
74902
+ {
74903
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
74904
+ "name": ""
74828
74905
  },
74829
74906
  {
74830
- "kind": "field",
74831
- "name": "formDisabled",
74832
- "type": {
74833
- "text": "boolean"
74834
- },
74835
- "privacy": "protected",
74836
- "default": "false",
74837
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
74838
- "inheritedFrom": {
74839
- "name": "SbbFormAssociatedMixin",
74840
- "module": "core/mixins/form-associated-mixin.js"
74841
- }
74907
+ "description": "Slot used to display the icon, if one is set.",
74908
+ "name": "icon"
74909
+ }
74910
+ ],
74911
+ "mixins": [
74912
+ {
74913
+ "name": "SbbBlockLinkCommonElementMixin",
74914
+ "module": "link/common.js"
74842
74915
  },
74843
74916
  {
74844
- "kind": "method",
74845
- "name": "checkValidity",
74846
- "privacy": "public",
74847
- "return": {
74848
- "type": {
74849
- "text": "boolean"
74850
- }
74917
+ "name": "SbbDisabledMixin",
74918
+ "module": "core/mixins.js"
74919
+ }
74920
+ ],
74921
+ "superclass": {
74922
+ "name": "SbbActionBaseElement",
74923
+ "module": "core/base-elements.js"
74924
+ },
74925
+ "tagName": "sbb-block-link-static",
74926
+ "customElement": true,
74927
+ "attributes": [
74928
+ {
74929
+ "name": "icon-placement",
74930
+ "type": {
74931
+ "text": "SbbIconPlacement"
74851
74932
  },
74852
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
74933
+ "default": "'start'",
74934
+ "description": "Moves the icon to the end of the component if set to true.",
74935
+ "fieldName": "iconPlacement",
74853
74936
  "inheritedFrom": {
74854
- "name": "SbbFormAssociatedMixin",
74855
- "module": "core/mixins/form-associated-mixin.js"
74937
+ "name": "SbbBlockLinkCommonElementMixin",
74938
+ "module": "link/common/block-link-common.js"
74856
74939
  }
74857
74940
  },
74858
74941
  {
74859
- "kind": "method",
74860
- "name": "reportValidity",
74861
- "privacy": "public",
74862
- "return": {
74863
- "type": {
74864
- "text": "boolean"
74865
- }
74942
+ "name": "size",
74943
+ "type": {
74944
+ "text": "SbbLinkSize"
74866
74945
  },
74867
- "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.",
74946
+ "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
74947
+ "default": "'s' / 'xs' (lean)",
74948
+ "fieldName": "size",
74868
74949
  "inheritedFrom": {
74869
- "name": "SbbFormAssociatedMixin",
74870
- "module": "core/mixins/form-associated-mixin.js"
74950
+ "name": "SbbLinkCommonElementMixin",
74951
+ "module": "link/common/link-common.js"
74871
74952
  }
74872
74953
  },
74873
74954
  {
74874
- "kind": "method",
74875
- "name": "setCustomValidity",
74876
- "privacy": "public",
74877
- "return": {
74878
- "type": {
74879
- "text": "void"
74880
- }
74955
+ "name": "icon-name",
74956
+ "type": {
74957
+ "text": "string"
74881
74958
  },
74882
- "parameters": [
74883
- {
74884
- "name": "message",
74885
- "type": {
74886
- "text": "string"
74887
- }
74888
- }
74889
- ],
74890
- "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.",
74959
+ "default": "''",
74960
+ "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.",
74961
+ "fieldName": "iconName",
74891
74962
  "inheritedFrom": {
74892
- "name": "SbbFormAssociatedMixin",
74893
- "module": "core/mixins/form-associated-mixin.js"
74963
+ "name": "SbbIconNameMixin",
74964
+ "module": "icon/icon-name-mixin.js"
74894
74965
  }
74895
74966
  },
74896
74967
  {
74897
- "kind": "method",
74898
- "name": "_hasDisabledAncestor",
74899
- "privacy": "private",
74900
- "return": {
74901
- "type": {
74902
- "text": "boolean"
74903
- }
74968
+ "name": "disabled",
74969
+ "description": "Whether the component is disabled.",
74970
+ "default": "false",
74971
+ "type": {
74972
+ "text": "boolean"
74904
74973
  },
74974
+ "fieldName": "disabled",
74905
74975
  "inheritedFrom": {
74906
- "name": "SbbFormAssociatedMixin",
74907
- "module": "core/mixins/form-associated-mixin.js"
74976
+ "name": "SbbDisabledMixin",
74977
+ "module": "core/mixins/disabled-mixin.js"
74908
74978
  }
74909
- },
74979
+ }
74980
+ ],
74981
+ "members": [
74910
74982
  {
74911
- "kind": "method",
74912
- "name": "updateFormValue",
74913
- "privacy": "protected",
74914
- "return": {
74915
- "type": {
74916
- "text": "void"
74917
- }
74983
+ "kind": "field",
74984
+ "name": "styles",
74985
+ "type": {
74986
+ "text": "CSSResultGroup"
74918
74987
  },
74919
- "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",
74988
+ "privacy": "public",
74989
+ "static": true,
74990
+ "default": "[style, blockStyle]",
74920
74991
  "inheritedFrom": {
74921
- "name": "SbbFormAssociatedMixin",
74922
- "module": "core/mixins/form-associated-mixin.js"
74992
+ "name": "SbbLinkCommonElementMixin",
74993
+ "module": "link/common/link-common.js"
74923
74994
  }
74924
74995
  },
74925
74996
  {
74926
- "kind": "method",
74927
- "name": "formState",
74928
- "privacy": "protected",
74929
- "return": {
74930
- "type": {
74931
- "text": "FormRestoreState"
74932
- }
74997
+ "kind": "field",
74998
+ "name": "iconPlacement",
74999
+ "type": {
75000
+ "text": "SbbIconPlacement"
74933
75001
  },
75002
+ "privacy": "public",
75003
+ "default": "'start'",
75004
+ "description": "Moves the icon to the end of the component if set to true.",
75005
+ "attribute": "icon-placement",
75006
+ "reflects": true,
74934
75007
  "inheritedFrom": {
74935
- "name": "SbbFormAssociatedMixin",
74936
- "module": "core/mixins/form-associated-mixin.js"
75008
+ "name": "SbbBlockLinkCommonElementMixin",
75009
+ "module": "link/common/block-link-common.js"
74937
75010
  }
74938
75011
  },
74939
75012
  {
74940
75013
  "kind": "method",
74941
- "name": "setValidityFlag",
75014
+ "name": "renderTemplate",
74942
75015
  "privacy": "protected",
74943
75016
  "return": {
74944
75017
  "type": {
74945
- "text": "void"
75018
+ "text": "TemplateResult"
74946
75019
  }
74947
75020
  },
74948
- "parameters": [
74949
- {
74950
- "name": "flag",
74951
- "type": {
74952
- "text": "T"
74953
- }
74954
- },
74955
- {
74956
- "name": "message",
74957
- "type": {
74958
- "text": "string"
74959
- }
74960
- },
74961
- {
74962
- "name": "flagValue",
74963
- "optional": true,
74964
- "type": {
74965
- "text": "ValidityStateFlags[T]"
74966
- }
74967
- }
74968
- ],
74969
- "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).",
75021
+ "description": "Override this method to render the component template.",
74970
75022
  "inheritedFrom": {
74971
- "name": "SbbFormAssociatedMixin",
74972
- "module": "core/mixins/form-associated-mixin.js"
75023
+ "name": "SbbActionBaseElement",
75024
+ "module": "core/base-elements/action-base-element.js"
74973
75025
  }
74974
75026
  },
74975
75027
  {
74976
- "kind": "method",
74977
- "name": "removeValidityFlag",
74978
- "privacy": "protected",
74979
- "return": {
74980
- "type": {
74981
- "text": "void"
74982
- }
75028
+ "kind": "field",
75029
+ "name": "size",
75030
+ "type": {
75031
+ "text": "SbbLinkSize"
74983
75032
  },
74984
- "parameters": [
74985
- {
74986
- "name": "flag",
74987
- "type": {
74988
- "text": "T"
74989
- }
74990
- }
74991
- ],
74992
- "description": "Removes the validity state flag entry and updates validity state.",
75033
+ "privacy": "public",
75034
+ "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
75035
+ "default": "'s' / 'xs' (lean)",
75036
+ "attribute": "size",
75037
+ "reflects": true,
74993
75038
  "inheritedFrom": {
74994
- "name": "SbbFormAssociatedMixin",
74995
- "module": "core/mixins/form-associated-mixin.js"
75039
+ "name": "SbbLinkCommonElementMixin",
75040
+ "module": "link/common/link-common.js"
74996
75041
  }
74997
75042
  },
74998
75043
  {
74999
- "kind": "method",
75000
- "name": "validate",
75001
- "privacy": "protected",
75002
- "return": {
75003
- "type": {
75004
- "text": "void"
75005
- }
75044
+ "kind": "field",
75045
+ "name": "iconName",
75046
+ "type": {
75047
+ "text": "string"
75006
75048
  },
75007
- "description": "To be called whenever the current element needs to be validated.",
75049
+ "privacy": "public",
75050
+ "default": "''",
75051
+ "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.",
75052
+ "attribute": "icon-name",
75053
+ "reflects": true,
75008
75054
  "inheritedFrom": {
75009
- "name": "SbbFormAssociatedMixin",
75010
- "module": "core/mixins/form-associated-mixin.js"
75055
+ "name": "SbbIconNameMixin",
75056
+ "module": "icon/icon-name-mixin.js"
75011
75057
  }
75012
75058
  },
75013
75059
  {
75014
75060
  "kind": "method",
75015
- "name": "shouldValidate",
75061
+ "name": "renderIconSlot",
75016
75062
  "privacy": "protected",
75017
75063
  "return": {
75018
75064
  "type": {
75019
- "text": "boolean"
75065
+ "text": "TemplateResult"
75020
75066
  }
75021
75067
  },
75022
75068
  "parameters": [
75023
75069
  {
75024
- "name": "name",
75070
+ "name": "classname",
75071
+ "optional": true,
75025
75072
  "type": {
75026
- "text": "PropertyKey | undefined"
75073
+ "text": "string"
75027
75074
  }
75028
75075
  }
75029
75076
  ],
75030
- "description": "Whether validation should be run on a property change with the given name.",
75031
- "inheritedFrom": {
75032
- "name": "SbbFormAssociatedMixin",
75033
- "module": "core/mixins/form-associated-mixin.js"
75034
- }
75035
- },
75036
- {
75037
- "kind": "method",
75038
- "name": "_setInternalValidity",
75039
- "privacy": "private",
75040
- "return": {
75041
- "type": {
75042
- "text": "void"
75043
- }
75044
- },
75045
75077
  "inheritedFrom": {
75046
- "name": "SbbFormAssociatedMixin",
75047
- "module": "core/mixins/form-associated-mixin.js"
75078
+ "name": "SbbIconNameMixin",
75079
+ "module": "icon/icon-name-mixin.js"
75048
75080
  }
75049
75081
  },
75050
75082
  {
75051
75083
  "kind": "field",
75052
- "name": "role",
75084
+ "name": "disabled",
75085
+ "privacy": "public",
75086
+ "description": "Whether the component is disabled.",
75087
+ "default": "false",
75053
75088
  "type": {
75054
- "text": "ElementInternals['role']"
75089
+ "text": "boolean"
75055
75090
  },
75056
- "privacy": "public",
75057
- "static": true,
75058
- "readonly": true,
75059
- "default": "'button'",
75060
- "inheritedFrom": {
75061
- "name": "SbbButtonLikeBaseElement",
75062
- "module": "core/base-elements/button-base-element.js"
75063
- }
75064
- },
75065
- {
75066
- "kind": "field",
75067
- "name": "_preventScrollOnSpaceKeydown",
75068
- "privacy": "private",
75069
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets data-active attribute.",
75070
- "parameters": [
75071
- {
75072
- "description": "The origin event.",
75073
- "name": "event"
75074
- }
75075
- ],
75091
+ "attribute": "disabled",
75092
+ "reflects": true,
75076
75093
  "inheritedFrom": {
75077
- "name": "SbbButtonLikeBaseElement",
75078
- "module": "core/base-elements/button-base-element.js"
75094
+ "name": "SbbDisabledMixin",
75095
+ "module": "core/mixins/disabled-mixin.js"
75079
75096
  }
75080
75097
  },
75081
75098
  {
75082
75099
  "kind": "field",
75083
- "name": "_removeActiveMarker",
75100
+ "name": "#disabled",
75084
75101
  "privacy": "private",
75102
+ "type": {
75103
+ "text": "boolean"
75104
+ },
75105
+ "default": "false",
75085
75106
  "inheritedFrom": {
75086
- "name": "SbbButtonLikeBaseElement",
75087
- "module": "core/base-elements/button-base-element.js"
75107
+ "name": "SbbDisabledMixin",
75108
+ "module": "core/mixins/disabled-mixin.js"
75088
75109
  }
75089
75110
  },
75090
75111
  {
75091
- "kind": "field",
75092
- "name": "_dispatchClickEventOnSpaceKeyup",
75093
- "privacy": "private",
75094
- "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.",
75095
- "parameters": [
75096
- {
75097
- "description": "The origin event.",
75098
- "name": "event"
75112
+ "kind": "method",
75113
+ "name": "isDisabledExternally",
75114
+ "privacy": "protected",
75115
+ "return": {
75116
+ "type": {
75117
+ "text": "boolean"
75099
75118
  }
75100
- ],
75101
- "inheritedFrom": {
75102
- "name": "SbbButtonLikeBaseElement",
75103
- "module": "core/base-elements/button-base-element.js"
75104
- }
75105
- },
75106
- {
75107
- "kind": "field",
75108
- "name": "_dispatchClickEvent",
75109
- "privacy": "private",
75119
+ },
75120
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
75110
75121
  "inheritedFrom": {
75111
- "name": "SbbButtonLikeBaseElement",
75112
- "module": "core/base-elements/button-base-element.js"
75122
+ "name": "SbbDisabledMixin",
75123
+ "module": "core/mixins/disabled-mixin.js"
75113
75124
  }
75114
75125
  },
75115
75126
  {
@@ -75187,18 +75198,18 @@
75187
75198
  "exports": [
75188
75199
  {
75189
75200
  "kind": "js",
75190
- "name": "SbbBlockLinkButtonElement",
75201
+ "name": "SbbBlockLinkStaticElement",
75191
75202
  "declaration": {
75192
- "name": "SbbBlockLinkButtonElement",
75193
- "module": "link/block-link-button/block-link-button.component.js"
75203
+ "name": "SbbBlockLinkStaticElement",
75204
+ "module": "link/block-link-static/block-link-static.component.js"
75194
75205
  }
75195
75206
  },
75196
75207
  {
75197
75208
  "kind": "custom-element-definition",
75198
- "name": "sbb-block-link-button",
75209
+ "name": "sbb-block-link-static",
75199
75210
  "declaration": {
75200
- "name": "SbbBlockLinkButtonElement",
75201
- "module": "link/block-link-button/block-link-button.component.js"
75211
+ "name": "SbbBlockLinkStaticElement",
75212
+ "module": "link/block-link-static/block-link-static.component.js"
75202
75213
  }
75203
75214
  }
75204
75215
  ]