@sbb-esta/lyne-elements-dev 4.9.0-dev.1775058583 → 4.9.0-dev.1775065821

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 +1008 -1008
  2. package/package.json +2 -2
@@ -36962,12 +36962,12 @@
36962
36962
  },
36963
36963
  {
36964
36964
  "kind": "javascript-module",
36965
- "path": "button/accent-button-link/accent-button-link.component.js",
36965
+ "path": "button/accent-button/accent-button.component.js",
36966
36966
  "declarations": [
36967
36967
  {
36968
36968
  "kind": "class",
36969
- "description": "It displays a button enhanced with the SBB Design in the 'accent' variant, which will behave as a link.",
36970
- "name": "SbbAccentButtonLinkElement",
36969
+ "description": "It displays a button enhanced with the SBB Design in the 'accent' variant.",
36970
+ "name": "SbbAccentButtonElement",
36971
36971
  "cssProperties": [
36972
36972
  {
36973
36973
  "description": "The delay before the loading animation starts, when setting the button into loading state.",
@@ -36977,7 +36977,7 @@
36977
36977
  ],
36978
36978
  "slots": [
36979
36979
  {
36980
- "description": "Use the unnamed slot to add content to the accent-button-link.",
36980
+ "description": "Use the unnamed slot to add content to the accent-button.",
36981
36981
  "name": ""
36982
36982
  },
36983
36983
  {
@@ -36995,7 +36995,7 @@
36995
36995
  "privacy": "public",
36996
36996
  "static": true,
36997
36997
  "readonly": true,
36998
- "default": "'sbb-accent-button-link'",
36998
+ "default": "'sbb-accent-button'",
36999
36999
  "inheritedFrom": {
37000
37000
  "name": "SbbElement",
37001
37001
  "module": "core/base-elements/element.js"
@@ -37192,1195 +37192,1163 @@
37192
37192
  },
37193
37193
  {
37194
37194
  "kind": "field",
37195
- "name": "href",
37196
- "type": {
37197
- "text": "string"
37198
- },
37199
- "privacy": "public",
37200
- "default": "''",
37201
- "description": "The href value you want to link to.",
37202
- "attribute": "href",
37203
- "reflects": true,
37204
- "inheritedFrom": {
37205
- "name": "SbbLinkBaseElement",
37206
- "module": "core/base-elements/link-base-element.js"
37207
- }
37208
- },
37209
- {
37210
- "kind": "field",
37211
- "name": "target",
37195
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
37212
37196
  "type": {
37213
- "text": "LinkTargetType | string"
37197
+ "text": "array"
37214
37198
  },
37215
- "privacy": "public",
37216
- "default": "''",
37217
- "description": "Where to display the linked URL.",
37218
- "attribute": "target",
37219
- "reflects": true,
37199
+ "privacy": "private",
37200
+ "readonly": true,
37201
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
37220
37202
  "inheritedFrom": {
37221
- "name": "SbbLinkBaseElement",
37222
- "module": "core/base-elements/link-base-element.js"
37203
+ "name": "SbbButtonBaseElement",
37204
+ "module": "core/base-elements/button-base-element.js"
37223
37205
  }
37224
37206
  },
37225
37207
  {
37226
37208
  "kind": "field",
37227
- "name": "rel",
37209
+ "name": "value",
37228
37210
  "type": {
37229
37211
  "text": "string"
37230
37212
  },
37231
37213
  "privacy": "public",
37232
37214
  "default": "''",
37233
- "description": "The relationship of the linked URL as space-separated link types.",
37234
- "attribute": "rel",
37235
- "reflects": true,
37215
+ "description": "Value of the form element.",
37216
+ "attribute": "value",
37236
37217
  "inheritedFrom": {
37237
- "name": "SbbLinkBaseElement",
37238
- "module": "core/base-elements/link-base-element.js"
37218
+ "name": "SbbButtonBaseElement",
37219
+ "module": "core/base-elements/button-base-element.js"
37239
37220
  }
37240
37221
  },
37241
37222
  {
37242
37223
  "kind": "field",
37243
- "name": "download",
37224
+ "name": "type",
37225
+ "privacy": "public",
37226
+ "description": "The type attribute to use for the button.",
37227
+ "default": "'button'",
37244
37228
  "type": {
37245
- "text": "boolean"
37229
+ "text": "SbbButtonType"
37246
37230
  },
37247
- "privacy": "public",
37248
- "default": "false",
37249
- "description": "Whether the browser will show the download dialog on click.",
37250
- "attribute": "download",
37251
- "reflects": true,
37231
+ "attribute": "type",
37252
37232
  "inheritedFrom": {
37253
- "name": "SbbLinkBaseElement",
37254
- "module": "core/base-elements/link-base-element.js"
37233
+ "name": "SbbButtonBaseElement",
37234
+ "module": "core/base-elements/button-base-element.js"
37255
37235
  }
37256
37236
  },
37257
37237
  {
37258
37238
  "kind": "field",
37259
- "name": "accessibilityLabel",
37239
+ "name": "form",
37260
37240
  "type": {
37261
- "text": "string"
37241
+ "text": "HTMLFormElement | null"
37262
37242
  },
37263
37243
  "privacy": "public",
37264
- "default": "''",
37265
- "description": "This will be forwarded as aria-label to the inner anchor element.",
37266
- "attribute": "accessibility-label",
37244
+ "description": "The `<form>` element to associate the button with.",
37245
+ "attribute": "form",
37267
37246
  "inheritedFrom": {
37268
- "name": "SbbLinkBaseElement",
37269
- "module": "core/base-elements/link-base-element.js"
37247
+ "name": "SbbButtonBaseElement",
37248
+ "module": "core/base-elements/button-base-element.js"
37270
37249
  }
37271
37250
  },
37272
37251
  {
37273
37252
  "kind": "field",
37274
- "name": "accessibilityCurrent",
37253
+ "name": "_formId",
37275
37254
  "type": {
37276
37255
  "text": "string"
37277
37256
  },
37278
- "privacy": "public",
37257
+ "privacy": "private",
37279
37258
  "default": "''",
37280
- "description": "This will be forwarded as aria-current to the inner anchor element.",
37281
- "attribute": "accessibility-current",
37282
- "inheritedFrom": {
37283
- "name": "SbbLinkBaseElement",
37284
- "module": "core/base-elements/link-base-element.js"
37285
- }
37286
- },
37287
- {
37288
- "kind": "field",
37289
- "name": "language",
37290
- "privacy": "protected",
37291
- "default": "new SbbLanguageController(this)",
37292
- "inheritedFrom": {
37293
- "name": "SbbLinkBaseElement",
37294
- "module": "core/base-elements/link-base-element.js"
37295
- }
37296
- },
37297
- {
37298
- "kind": "field",
37299
- "name": "anchorRole",
37300
- "type": {
37301
- "text": "string | null"
37302
- },
37303
- "privacy": "protected",
37304
- "readonly": true,
37305
- "default": "null",
37306
37259
  "inheritedFrom": {
37307
- "name": "SbbLinkBaseElement",
37308
- "module": "core/base-elements/link-base-element.js"
37260
+ "name": "SbbButtonBaseElement",
37261
+ "module": "core/base-elements/button-base-element.js"
37309
37262
  }
37310
37263
  },
37311
37264
  {
37312
37265
  "kind": "field",
37313
- "name": "_evaluateRelAttribute",
37266
+ "name": "_handleButtonClick",
37314
37267
  "privacy": "private",
37315
37268
  "inheritedFrom": {
37316
- "name": "SbbLinkBaseElement",
37317
- "module": "core/base-elements/link-base-element.js"
37269
+ "name": "SbbButtonBaseElement",
37270
+ "module": "core/base-elements/button-base-element.js"
37318
37271
  }
37319
37272
  },
37320
37273
  {
37321
37274
  "kind": "method",
37322
- "name": "renderLink",
37323
- "privacy": "protected",
37275
+ "name": "_requestSubmit",
37276
+ "privacy": "private",
37324
37277
  "return": {
37325
37278
  "type": {
37326
- "text": "TemplateResult"
37279
+ "text": "void"
37327
37280
  }
37328
37281
  },
37329
37282
  "parameters": [
37330
37283
  {
37331
- "name": "renderContent",
37284
+ "name": "form",
37332
37285
  "type": {
37333
- "text": "TemplateResult"
37286
+ "text": "HTMLFormElement"
37334
37287
  }
37335
37288
  }
37336
37289
  ],
37337
37290
  "inheritedFrom": {
37338
- "name": "SbbLinkBaseElement",
37339
- "module": "core/base-elements/link-base-element.js"
37291
+ "name": "SbbButtonBaseElement",
37292
+ "module": "core/base-elements/button-base-element.js"
37340
37293
  }
37341
37294
  },
37342
37295
  {
37343
37296
  "kind": "field",
37344
- "name": "maybeDisabled",
37345
- "type": {
37346
- "text": "boolean | undefined"
37347
- },
37348
- "privacy": "protected",
37349
- "readonly": true,
37297
+ "name": "_formKeyDown",
37298
+ "privacy": "private",
37350
37299
  "inheritedFrom": {
37351
- "name": "SbbActionBaseElement",
37352
- "module": "core/base-elements/action-base-element.js"
37300
+ "name": "SbbButtonBaseElement",
37301
+ "module": "core/base-elements/button-base-element.js"
37353
37302
  }
37354
37303
  },
37355
37304
  {
37356
37305
  "kind": "field",
37357
- "name": "maybeDisabledInteractive",
37306
+ "name": "formAssociated",
37358
37307
  "type": {
37359
- "text": "boolean | undefined"
37308
+ "text": "boolean"
37360
37309
  },
37361
- "privacy": "protected",
37362
- "readonly": true,
37310
+ "privacy": "public",
37311
+ "static": true,
37312
+ "default": "true",
37363
37313
  "inheritedFrom": {
37364
- "name": "SbbActionBaseElement",
37365
- "module": "core/base-elements/action-base-element.js"
37314
+ "name": "SbbFormAssociatedMixin",
37315
+ "module": "core/mixins/form-associated-mixin.js"
37366
37316
  }
37367
37317
  },
37368
37318
  {
37369
- "kind": "method",
37370
- "name": "setupBaseEventHandlers",
37371
- "privacy": "protected",
37372
- "return": {
37373
- "type": {
37374
- "text": "void"
37375
- }
37319
+ "kind": "field",
37320
+ "name": "name",
37321
+ "privacy": "public",
37322
+ "description": "Name of the form element. Will be read from name attribute.",
37323
+ "type": {
37324
+ "text": "string"
37376
37325
  },
37326
+ "attribute": "name",
37377
37327
  "inheritedFrom": {
37378
- "name": "SbbActionBaseElement",
37379
- "module": "core/base-elements/action-base-element.js"
37328
+ "name": "SbbFormAssociatedMixin",
37329
+ "module": "core/mixins/form-associated-mixin.js"
37380
37330
  }
37381
37331
  },
37382
37332
  {
37383
37333
  "kind": "field",
37384
- "name": "_hydrationRequired",
37334
+ "name": "validity",
37385
37335
  "type": {
37386
- "text": "boolean"
37336
+ "text": "ValidityState"
37387
37337
  },
37388
- "privacy": "private",
37389
- "default": "!!this.shadowRoot",
37338
+ "privacy": "public",
37339
+ "description": "Returns the ValidityState object for this element.",
37340
+ "readonly": true,
37390
37341
  "inheritedFrom": {
37391
- "name": "SbbHydrationMixin",
37392
- "module": "core/mixins/hydration-mixin.js"
37342
+ "name": "SbbFormAssociatedMixin",
37343
+ "module": "core/mixins/form-associated-mixin.js"
37393
37344
  }
37394
37345
  },
37395
37346
  {
37396
37347
  "kind": "field",
37397
- "name": "_hydrationComplete",
37398
- "privacy": "private",
37399
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
37348
+ "name": "validationMessage",
37349
+ "type": {
37350
+ "text": "string"
37351
+ },
37352
+ "privacy": "public",
37353
+ "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.",
37354
+ "readonly": true,
37400
37355
  "inheritedFrom": {
37401
- "name": "SbbHydrationMixin",
37402
- "module": "core/mixins/hydration-mixin.js"
37356
+ "name": "SbbFormAssociatedMixin",
37357
+ "module": "core/mixins/form-associated-mixin.js"
37403
37358
  }
37404
37359
  },
37405
37360
  {
37406
37361
  "kind": "field",
37407
- "name": "_resolveHydration",
37362
+ "name": "willValidate",
37408
37363
  "type": {
37409
- "text": "(hydrationRequired: boolean) => void"
37364
+ "text": "boolean"
37410
37365
  },
37366
+ "privacy": "public",
37367
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
37368
+ "readonly": true,
37369
+ "inheritedFrom": {
37370
+ "name": "SbbFormAssociatedMixin",
37371
+ "module": "core/mixins/form-associated-mixin.js"
37372
+ }
37373
+ },
37374
+ {
37375
+ "kind": "field",
37376
+ "name": "_validityStates",
37411
37377
  "privacy": "private",
37378
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
37412
37379
  "inheritedFrom": {
37413
- "name": "SbbHydrationMixin",
37414
- "module": "core/mixins/hydration-mixin.js"
37380
+ "name": "SbbFormAssociatedMixin",
37381
+ "module": "core/mixins/form-associated-mixin.js"
37415
37382
  }
37416
37383
  },
37417
37384
  {
37418
37385
  "kind": "field",
37419
- "name": "hydrationRequired",
37386
+ "name": "formDisabled",
37420
37387
  "type": {
37421
37388
  "text": "boolean"
37422
37389
  },
37423
37390
  "privacy": "protected",
37424
- "description": "Returns whether hydration is required and not completed.",
37425
- "readonly": true,
37391
+ "default": "false",
37392
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
37426
37393
  "inheritedFrom": {
37427
- "name": "SbbHydrationMixin",
37428
- "module": "core/mixins/hydration-mixin.js"
37429
- },
37430
- "default": "!!this.shadowRoot"
37394
+ "name": "SbbFormAssociatedMixin",
37395
+ "module": "core/mixins/form-associated-mixin.js"
37396
+ }
37431
37397
  },
37432
37398
  {
37433
37399
  "kind": "method",
37434
- "name": "toggleState",
37435
- "privacy": "protected",
37400
+ "name": "checkValidity",
37401
+ "privacy": "public",
37436
37402
  "return": {
37437
37403
  "type": {
37438
- "text": "void"
37404
+ "text": "boolean"
37439
37405
  }
37440
37406
  },
37441
- "parameters": [
37442
- {
37443
- "name": "value",
37444
- "type": {
37445
- "text": "string"
37446
- }
37447
- },
37448
- {
37449
- "name": "force",
37450
- "optional": true,
37407
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
37408
+ "inheritedFrom": {
37409
+ "name": "SbbFormAssociatedMixin",
37410
+ "module": "core/mixins/form-associated-mixin.js"
37411
+ }
37412
+ },
37413
+ {
37414
+ "kind": "method",
37415
+ "name": "reportValidity",
37416
+ "privacy": "public",
37417
+ "return": {
37418
+ "type": {
37419
+ "text": "boolean"
37420
+ }
37421
+ },
37422
+ "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.",
37423
+ "inheritedFrom": {
37424
+ "name": "SbbFormAssociatedMixin",
37425
+ "module": "core/mixins/form-associated-mixin.js"
37426
+ }
37427
+ },
37428
+ {
37429
+ "kind": "method",
37430
+ "name": "setCustomValidity",
37431
+ "privacy": "public",
37432
+ "return": {
37433
+ "type": {
37434
+ "text": "void"
37435
+ }
37436
+ },
37437
+ "parameters": [
37438
+ {
37439
+ "name": "message",
37451
37440
  "type": {
37452
- "text": "boolean"
37441
+ "text": "string"
37453
37442
  }
37454
37443
  }
37455
37444
  ],
37445
+ "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.",
37456
37446
  "inheritedFrom": {
37457
- "name": "SbbElementInternalsMixin",
37458
- "module": "core/mixins/element-internals-mixin.js"
37447
+ "name": "SbbFormAssociatedMixin",
37448
+ "module": "core/mixins/form-associated-mixin.js"
37459
37449
  }
37460
37450
  },
37461
37451
  {
37462
- "kind": "field",
37463
- "name": "['_$sbbElement$']",
37464
- "type": {
37465
- "text": "boolean"
37452
+ "kind": "method",
37453
+ "name": "_hasDisabledAncestor",
37454
+ "privacy": "private",
37455
+ "return": {
37456
+ "type": {
37457
+ "text": "boolean"
37458
+ }
37466
37459
  },
37467
- "privacy": "public",
37468
- "static": true,
37469
- "default": "true",
37470
37460
  "inheritedFrom": {
37471
- "name": "SbbElement",
37472
- "module": "core/base-elements/element.js"
37461
+ "name": "SbbFormAssociatedMixin",
37462
+ "module": "core/mixins/form-associated-mixin.js"
37473
37463
  }
37474
37464
  },
37475
37465
  {
37476
- "kind": "field",
37477
- "name": "_controllers",
37478
- "type": {
37479
- "text": "Set<SbbReactiveController> | undefined"
37466
+ "kind": "method",
37467
+ "name": "updateFormValue",
37468
+ "privacy": "protected",
37469
+ "return": {
37470
+ "type": {
37471
+ "text": "void"
37472
+ }
37480
37473
  },
37481
- "privacy": "private",
37474
+ "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",
37482
37475
  "inheritedFrom": {
37483
- "name": "SbbElement",
37484
- "module": "core/base-elements/element.js"
37476
+ "name": "SbbFormAssociatedMixin",
37477
+ "module": "core/mixins/form-associated-mixin.js"
37485
37478
  }
37486
- }
37487
- ],
37488
- "mixins": [
37489
- {
37490
- "name": "SbbButtonCommonElementMixin",
37491
- "module": "button/common/button-common.js"
37492
37479
  },
37493
37480
  {
37494
- "name": "SbbDisabledInteractiveMixin",
37495
- "module": "core/mixins.js"
37481
+ "kind": "method",
37482
+ "name": "formState",
37483
+ "privacy": "protected",
37484
+ "return": {
37485
+ "type": {
37486
+ "text": "FormRestoreState"
37487
+ }
37488
+ },
37489
+ "inheritedFrom": {
37490
+ "name": "SbbFormAssociatedMixin",
37491
+ "module": "core/mixins/form-associated-mixin.js"
37492
+ }
37496
37493
  },
37497
37494
  {
37498
- "name": "SbbDisabledMixin",
37499
- "module": "core/mixins.js"
37500
- }
37501
- ],
37502
- "superclass": {
37503
- "name": "SbbLinkBaseElement",
37504
- "module": "core/base-elements.js"
37505
- },
37506
- "tagName": "sbb-accent-button-link",
37507
- "customElement": true,
37508
- "attributes": [
37509
- {
37510
- "name": "size",
37511
- "type": {
37512
- "text": "SbbButtonSize"
37495
+ "kind": "method",
37496
+ "name": "setValidityFlag",
37497
+ "privacy": "protected",
37498
+ "return": {
37499
+ "type": {
37500
+ "text": "void"
37501
+ }
37513
37502
  },
37514
- "description": "Size variant, either l, m or s.",
37515
- "default": "'l' / 's' (lean)",
37516
- "fieldName": "size",
37503
+ "parameters": [
37504
+ {
37505
+ "name": "flag",
37506
+ "type": {
37507
+ "text": "T"
37508
+ }
37509
+ },
37510
+ {
37511
+ "name": "message",
37512
+ "type": {
37513
+ "text": "string"
37514
+ }
37515
+ },
37516
+ {
37517
+ "name": "flagValue",
37518
+ "optional": true,
37519
+ "type": {
37520
+ "text": "ValidityStateFlags[T]"
37521
+ }
37522
+ }
37523
+ ],
37524
+ "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).",
37517
37525
  "inheritedFrom": {
37518
- "name": "SbbButtonCommonElementMixin",
37519
- "module": "button/common/button-common.js"
37526
+ "name": "SbbFormAssociatedMixin",
37527
+ "module": "core/mixins/form-associated-mixin.js"
37520
37528
  }
37521
37529
  },
37522
37530
  {
37523
- "name": "loading",
37524
- "type": {
37525
- "text": "boolean"
37531
+ "kind": "method",
37532
+ "name": "removeValidityFlag",
37533
+ "privacy": "protected",
37534
+ "return": {
37535
+ "type": {
37536
+ "text": "void"
37537
+ }
37526
37538
  },
37527
- "default": "false",
37528
- "description": "Whether the button indicates a loading state.\nThe animation kicks in after a delay of 300ms, configurable with --sbb-button-loading-delay CSS variable.",
37529
- "fieldName": "loading",
37539
+ "parameters": [
37540
+ {
37541
+ "name": "flag",
37542
+ "type": {
37543
+ "text": "T"
37544
+ }
37545
+ }
37546
+ ],
37547
+ "description": "Removes the validity state flag entry and updates validity state.",
37530
37548
  "inheritedFrom": {
37531
- "name": "SbbButtonCommonElementMixin",
37532
- "module": "button/common/button-common.js"
37549
+ "name": "SbbFormAssociatedMixin",
37550
+ "module": "core/mixins/form-associated-mixin.js"
37533
37551
  }
37534
37552
  },
37535
37553
  {
37536
- "name": "negative",
37537
- "type": {
37538
- "text": "boolean"
37554
+ "kind": "method",
37555
+ "name": "validate",
37556
+ "privacy": "protected",
37557
+ "return": {
37558
+ "type": {
37559
+ "text": "void"
37560
+ }
37539
37561
  },
37540
- "default": "false",
37541
- "description": "Negative coloring variant flag.",
37542
- "fieldName": "negative",
37562
+ "description": "To be called whenever the current element needs to be validated.",
37543
37563
  "inheritedFrom": {
37544
- "name": "SbbNegativeMixin",
37545
- "module": "core/mixins/negative-mixin.js"
37564
+ "name": "SbbFormAssociatedMixin",
37565
+ "module": "core/mixins/form-associated-mixin.js"
37546
37566
  }
37547
37567
  },
37548
37568
  {
37549
- "name": "icon-name",
37550
- "type": {
37551
- "text": "string"
37569
+ "kind": "method",
37570
+ "name": "shouldValidate",
37571
+ "privacy": "protected",
37572
+ "return": {
37573
+ "type": {
37574
+ "text": "boolean"
37575
+ }
37552
37576
  },
37553
- "default": "''",
37554
- "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.",
37555
- "fieldName": "iconName",
37577
+ "parameters": [
37578
+ {
37579
+ "name": "name",
37580
+ "type": {
37581
+ "text": "PropertyKey | undefined"
37582
+ }
37583
+ }
37584
+ ],
37585
+ "description": "Whether validation should be run on a property change with the given name.",
37556
37586
  "inheritedFrom": {
37557
- "name": "SbbIconNameMixin",
37558
- "module": "icon/icon-name-mixin.js"
37587
+ "name": "SbbFormAssociatedMixin",
37588
+ "module": "core/mixins/form-associated-mixin.js"
37559
37589
  }
37560
37590
  },
37561
37591
  {
37562
- "name": "disabled-interactive",
37563
- "type": {
37564
- "text": "boolean"
37592
+ "kind": "method",
37593
+ "name": "_setInternalValidity",
37594
+ "privacy": "private",
37595
+ "return": {
37596
+ "type": {
37597
+ "text": "void"
37598
+ }
37565
37599
  },
37566
- "default": "false",
37567
- "description": "Whether the button should be aria-disabled but stay interactive.",
37568
- "fieldName": "disabledInteractive",
37569
37600
  "inheritedFrom": {
37570
- "name": "SbbDisabledInteractiveMixin",
37571
- "module": "core/mixins/disabled-mixin.js"
37601
+ "name": "SbbFormAssociatedMixin",
37602
+ "module": "core/mixins/form-associated-mixin.js"
37572
37603
  }
37573
37604
  },
37574
37605
  {
37575
- "name": "disabled",
37576
- "description": "Whether the component is disabled.",
37577
- "default": "false",
37606
+ "kind": "field",
37607
+ "name": "role",
37578
37608
  "type": {
37579
- "text": "boolean"
37609
+ "text": "ElementInternals['role']"
37580
37610
  },
37581
- "fieldName": "disabled",
37611
+ "privacy": "public",
37612
+ "static": true,
37613
+ "readonly": true,
37614
+ "default": "'button'",
37582
37615
  "inheritedFrom": {
37583
- "name": "SbbDisabledMixin",
37584
- "module": "core/mixins/disabled-mixin.js"
37616
+ "name": "SbbButtonLikeBaseElement",
37617
+ "module": "core/base-elements/button-base-element.js"
37585
37618
  }
37586
37619
  },
37587
37620
  {
37588
- "name": "href",
37621
+ "kind": "field",
37622
+ "name": "_preventScrollOnSpaceKeydown",
37623
+ "privacy": "private",
37624
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
37625
+ "parameters": [
37626
+ {
37627
+ "description": "The origin event.",
37628
+ "name": "event"
37629
+ }
37630
+ ],
37631
+ "inheritedFrom": {
37632
+ "name": "SbbButtonLikeBaseElement",
37633
+ "module": "core/base-elements/button-base-element.js"
37634
+ }
37635
+ },
37636
+ {
37637
+ "kind": "field",
37638
+ "name": "_removeActiveMarker",
37639
+ "privacy": "private",
37640
+ "inheritedFrom": {
37641
+ "name": "SbbButtonLikeBaseElement",
37642
+ "module": "core/base-elements/button-base-element.js"
37643
+ }
37644
+ },
37645
+ {
37646
+ "kind": "field",
37647
+ "name": "_dispatchClickEventOnSpaceKeyup",
37648
+ "privacy": "private",
37649
+ "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.",
37650
+ "parameters": [
37651
+ {
37652
+ "description": "The origin event.",
37653
+ "name": "event"
37654
+ }
37655
+ ],
37656
+ "inheritedFrom": {
37657
+ "name": "SbbButtonLikeBaseElement",
37658
+ "module": "core/base-elements/button-base-element.js"
37659
+ }
37660
+ },
37661
+ {
37662
+ "kind": "field",
37663
+ "name": "_dispatchClickEvent",
37664
+ "privacy": "private",
37665
+ "inheritedFrom": {
37666
+ "name": "SbbButtonLikeBaseElement",
37667
+ "module": "core/base-elements/button-base-element.js"
37668
+ }
37669
+ },
37670
+ {
37671
+ "kind": "field",
37672
+ "name": "maybeDisabled",
37589
37673
  "type": {
37590
- "text": "string"
37674
+ "text": "boolean | undefined"
37591
37675
  },
37592
- "default": "''",
37593
- "description": "The href value you want to link to.",
37594
- "fieldName": "href",
37676
+ "privacy": "protected",
37677
+ "readonly": true,
37595
37678
  "inheritedFrom": {
37596
- "name": "SbbLinkBaseElement",
37597
- "module": "core/base-elements/link-base-element.js"
37679
+ "name": "SbbActionBaseElement",
37680
+ "module": "core/base-elements/action-base-element.js"
37598
37681
  }
37599
37682
  },
37600
37683
  {
37601
- "name": "target",
37684
+ "kind": "field",
37685
+ "name": "maybeDisabledInteractive",
37602
37686
  "type": {
37603
- "text": "LinkTargetType | string"
37687
+ "text": "boolean | undefined"
37604
37688
  },
37605
- "default": "''",
37606
- "description": "Where to display the linked URL.",
37607
- "fieldName": "target",
37689
+ "privacy": "protected",
37690
+ "readonly": true,
37608
37691
  "inheritedFrom": {
37609
- "name": "SbbLinkBaseElement",
37610
- "module": "core/base-elements/link-base-element.js"
37692
+ "name": "SbbActionBaseElement",
37693
+ "module": "core/base-elements/action-base-element.js"
37611
37694
  }
37612
37695
  },
37613
37696
  {
37614
- "name": "rel",
37615
- "type": {
37616
- "text": "string"
37697
+ "kind": "method",
37698
+ "name": "setupBaseEventHandlers",
37699
+ "privacy": "protected",
37700
+ "return": {
37701
+ "type": {
37702
+ "text": "void"
37703
+ }
37617
37704
  },
37618
- "default": "''",
37619
- "description": "The relationship of the linked URL as space-separated link types.",
37620
- "fieldName": "rel",
37621
37705
  "inheritedFrom": {
37622
- "name": "SbbLinkBaseElement",
37623
- "module": "core/base-elements/link-base-element.js"
37706
+ "name": "SbbActionBaseElement",
37707
+ "module": "core/base-elements/action-base-element.js"
37624
37708
  }
37625
37709
  },
37626
37710
  {
37627
- "name": "download",
37711
+ "kind": "field",
37712
+ "name": "_hydrationRequired",
37628
37713
  "type": {
37629
37714
  "text": "boolean"
37630
37715
  },
37631
- "default": "false",
37632
- "description": "Whether the browser will show the download dialog on click.",
37633
- "fieldName": "download",
37716
+ "privacy": "private",
37717
+ "default": "!!this.shadowRoot",
37634
37718
  "inheritedFrom": {
37635
- "name": "SbbLinkBaseElement",
37636
- "module": "core/base-elements/link-base-element.js"
37719
+ "name": "SbbHydrationMixin",
37720
+ "module": "core/mixins/hydration-mixin.js"
37637
37721
  }
37638
37722
  },
37639
37723
  {
37640
- "name": "accessibility-label",
37641
- "type": {
37642
- "text": "string"
37643
- },
37644
- "default": "''",
37645
- "description": "This will be forwarded as aria-label to the inner anchor element.",
37646
- "fieldName": "accessibilityLabel",
37724
+ "kind": "field",
37725
+ "name": "_hydrationComplete",
37726
+ "privacy": "private",
37727
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
37647
37728
  "inheritedFrom": {
37648
- "name": "SbbLinkBaseElement",
37649
- "module": "core/base-elements/link-base-element.js"
37729
+ "name": "SbbHydrationMixin",
37730
+ "module": "core/mixins/hydration-mixin.js"
37650
37731
  }
37651
37732
  },
37652
37733
  {
37653
- "name": "accessibility-current",
37734
+ "kind": "field",
37735
+ "name": "_resolveHydration",
37654
37736
  "type": {
37655
- "text": "string"
37737
+ "text": "(hydrationRequired: boolean) => void"
37656
37738
  },
37657
- "default": "''",
37658
- "description": "This will be forwarded as aria-current to the inner anchor element.",
37659
- "fieldName": "accessibilityCurrent",
37739
+ "privacy": "private",
37660
37740
  "inheritedFrom": {
37661
- "name": "SbbLinkBaseElement",
37662
- "module": "core/base-elements/link-base-element.js"
37741
+ "name": "SbbHydrationMixin",
37742
+ "module": "core/mixins/hydration-mixin.js"
37663
37743
  }
37664
- }
37665
- ]
37666
- }
37667
- ],
37668
- "exports": [
37669
- {
37670
- "kind": "js",
37671
- "name": "SbbAccentButtonLinkElement",
37672
- "declaration": {
37673
- "name": "SbbAccentButtonLinkElement",
37674
- "module": "button/accent-button-link/accent-button-link.component.js"
37675
- }
37676
- }
37677
- ]
37678
- },
37679
- {
37680
- "kind": "javascript-module",
37681
- "path": "button/accent-button/accent-button.component.js",
37682
- "declarations": [
37683
- {
37684
- "kind": "class",
37685
- "description": "It displays a button enhanced with the SBB Design in the 'accent' variant.",
37686
- "name": "SbbAccentButtonElement",
37687
- "cssProperties": [
37688
- {
37689
- "description": "The delay before the loading animation starts, when setting the button into loading state.",
37690
- "name": "--sbb-button-loading-delay",
37691
- "default": "300ms"
37692
- }
37693
- ],
37694
- "slots": [
37744
+ },
37695
37745
  {
37696
- "description": "Use the unnamed slot to add content to the accent-button.",
37697
- "name": ""
37746
+ "kind": "field",
37747
+ "name": "hydrationRequired",
37748
+ "type": {
37749
+ "text": "boolean"
37750
+ },
37751
+ "privacy": "protected",
37752
+ "description": "Returns whether hydration is required and not completed.",
37753
+ "readonly": true,
37754
+ "inheritedFrom": {
37755
+ "name": "SbbHydrationMixin",
37756
+ "module": "core/mixins/hydration-mixin.js"
37757
+ },
37758
+ "default": "!!this.shadowRoot"
37698
37759
  },
37699
37760
  {
37700
- "description": "Slot used to display the icon, if one is set.",
37701
- "name": "icon"
37702
- }
37703
- ],
37704
- "members": [
37761
+ "kind": "method",
37762
+ "name": "toggleState",
37763
+ "privacy": "protected",
37764
+ "return": {
37765
+ "type": {
37766
+ "text": "void"
37767
+ }
37768
+ },
37769
+ "parameters": [
37770
+ {
37771
+ "name": "value",
37772
+ "type": {
37773
+ "text": "string"
37774
+ }
37775
+ },
37776
+ {
37777
+ "name": "force",
37778
+ "optional": true,
37779
+ "type": {
37780
+ "text": "boolean"
37781
+ }
37782
+ }
37783
+ ],
37784
+ "inheritedFrom": {
37785
+ "name": "SbbElementInternalsMixin",
37786
+ "module": "core/mixins/element-internals-mixin.js"
37787
+ }
37788
+ },
37705
37789
  {
37706
37790
  "kind": "field",
37707
- "name": "elementName",
37791
+ "name": "['_$sbbElement$']",
37708
37792
  "type": {
37709
- "text": "string"
37793
+ "text": "boolean"
37710
37794
  },
37711
37795
  "privacy": "public",
37712
37796
  "static": true,
37713
- "readonly": true,
37714
- "default": "'sbb-accent-button'",
37797
+ "default": "true",
37798
+ "inheritedFrom": {
37799
+ "name": "SbbElement",
37800
+ "module": "core/base-elements/element.js"
37801
+ }
37802
+ },
37803
+ {
37804
+ "kind": "field",
37805
+ "name": "_controllers",
37806
+ "type": {
37807
+ "text": "Set<SbbReactiveController> | undefined"
37808
+ },
37809
+ "privacy": "private",
37715
37810
  "inheritedFrom": {
37716
37811
  "name": "SbbElement",
37717
37812
  "module": "core/base-elements/element.js"
37718
37813
  }
37814
+ }
37815
+ ],
37816
+ "mixins": [
37817
+ {
37818
+ "name": "SbbButtonCommonElementMixin",
37819
+ "module": "button/common/button-common.js"
37719
37820
  },
37720
37821
  {
37721
- "kind": "field",
37822
+ "name": "SbbDisabledTabIndexActionMixin",
37823
+ "module": "core/mixins.js"
37824
+ }
37825
+ ],
37826
+ "superclass": {
37827
+ "name": "SbbButtonBaseElement",
37828
+ "module": "core/base-elements.js"
37829
+ },
37830
+ "tagName": "sbb-accent-button",
37831
+ "customElement": true,
37832
+ "attributes": [
37833
+ {
37722
37834
  "name": "size",
37723
37835
  "type": {
37724
37836
  "text": "SbbButtonSize"
37725
37837
  },
37726
- "privacy": "public",
37727
37838
  "description": "Size variant, either l, m or s.",
37728
37839
  "default": "'l' / 's' (lean)",
37729
- "attribute": "size",
37730
- "reflects": true,
37840
+ "fieldName": "size",
37731
37841
  "inheritedFrom": {
37732
37842
  "name": "SbbButtonCommonElementMixin",
37733
37843
  "module": "button/common/button-common.js"
37734
37844
  }
37735
37845
  },
37736
37846
  {
37737
- "kind": "field",
37738
37847
  "name": "loading",
37739
37848
  "type": {
37740
37849
  "text": "boolean"
37741
37850
  },
37742
- "privacy": "public",
37743
37851
  "default": "false",
37744
37852
  "description": "Whether the button indicates a loading state.\nThe animation kicks in after a delay of 300ms, configurable with --sbb-button-loading-delay CSS variable.",
37745
- "attribute": "loading",
37746
- "reflects": true,
37853
+ "fieldName": "loading",
37747
37854
  "inheritedFrom": {
37748
37855
  "name": "SbbButtonCommonElementMixin",
37749
37856
  "module": "button/common/button-common.js"
37750
37857
  }
37751
37858
  },
37752
37859
  {
37753
- "kind": "method",
37754
- "name": "renderTemplate",
37755
- "privacy": "protected",
37756
- "return": {
37757
- "type": {
37758
- "text": "TemplateResult"
37759
- }
37760
- },
37761
- "description": "Override this method to render the component template.",
37762
- "inheritedFrom": {
37763
- "name": "SbbActionBaseElement",
37764
- "module": "core/base-elements/action-base-element.js"
37765
- }
37766
- },
37767
- {
37768
- "kind": "field",
37769
37860
  "name": "negative",
37770
37861
  "type": {
37771
37862
  "text": "boolean"
37772
37863
  },
37773
- "privacy": "public",
37774
37864
  "default": "false",
37775
37865
  "description": "Negative coloring variant flag.",
37776
- "attribute": "negative",
37777
- "reflects": true,
37866
+ "fieldName": "negative",
37778
37867
  "inheritedFrom": {
37779
37868
  "name": "SbbNegativeMixin",
37780
37869
  "module": "core/mixins/negative-mixin.js"
37781
37870
  }
37782
37871
  },
37783
37872
  {
37784
- "kind": "field",
37785
- "name": "iconName",
37873
+ "name": "icon-name",
37786
37874
  "type": {
37787
37875
  "text": "string"
37788
37876
  },
37789
- "privacy": "public",
37790
37877
  "default": "''",
37791
37878
  "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.",
37792
- "attribute": "icon-name",
37793
- "inheritedFrom": {
37794
- "name": "SbbIconNameMixin",
37795
- "module": "icon/icon-name-mixin.js"
37796
- }
37797
- },
37798
- {
37799
- "kind": "method",
37800
- "name": "renderIconSlot",
37801
- "privacy": "protected",
37802
- "return": {
37803
- "type": {
37804
- "text": "TemplateResult"
37805
- }
37806
- },
37807
- "parameters": [
37808
- {
37809
- "name": "classname",
37810
- "optional": true,
37811
- "type": {
37812
- "text": "string"
37813
- }
37814
- }
37815
- ],
37816
- "inheritedFrom": {
37817
- "name": "SbbIconNameMixin",
37818
- "module": "icon/icon-name-mixin.js"
37819
- }
37820
- },
37821
- {
37822
- "kind": "method",
37823
- "name": "renderIconName",
37824
- "privacy": "protected",
37825
- "return": {
37826
- "type": {
37827
- "text": "string"
37828
- }
37829
- },
37830
- "inheritedFrom": {
37831
- "name": "SbbIconNameMixin",
37832
- "module": "icon/icon-name-mixin.js"
37833
- }
37834
- },
37835
- {
37836
- "kind": "method",
37837
- "name": "_renderIconName",
37838
- "privacy": "private",
37839
- "return": {
37840
- "type": {
37841
- "text": "string"
37842
- }
37843
- },
37879
+ "fieldName": "iconName",
37844
37880
  "inheritedFrom": {
37845
37881
  "name": "SbbIconNameMixin",
37846
37882
  "module": "icon/icon-name-mixin.js"
37847
37883
  }
37848
37884
  },
37849
37885
  {
37850
- "kind": "field",
37851
- "name": "disabledInteractive",
37886
+ "name": "disabled-interactive",
37852
37887
  "type": {
37853
37888
  "text": "boolean"
37854
37889
  },
37855
- "privacy": "public",
37856
37890
  "default": "false",
37857
37891
  "description": "Whether the button should be aria-disabled but stay interactive.",
37858
- "attribute": "disabled-interactive",
37859
- "reflects": true,
37892
+ "fieldName": "disabledInteractive",
37860
37893
  "inheritedFrom": {
37861
37894
  "name": "SbbDisabledInteractiveMixin",
37862
37895
  "module": "core/mixins/disabled-mixin.js"
37863
37896
  }
37864
37897
  },
37865
37898
  {
37866
- "kind": "field",
37867
37899
  "name": "disabled",
37868
- "privacy": "public",
37869
37900
  "description": "Whether the component is disabled.",
37870
37901
  "default": "false",
37871
37902
  "type": {
37872
37903
  "text": "boolean"
37873
37904
  },
37874
- "attribute": "disabled",
37875
- "reflects": true,
37876
- "inheritedFrom": {
37877
- "name": "SbbDisabledMixin",
37878
- "module": "core/mixins/disabled-mixin.js"
37879
- }
37880
- },
37881
- {
37882
- "kind": "field",
37883
- "name": "#disabled",
37884
- "privacy": "private",
37885
- "type": {
37886
- "text": "boolean"
37887
- },
37888
- "default": "false",
37889
- "inheritedFrom": {
37890
- "name": "SbbDisabledMixin",
37891
- "module": "core/mixins/disabled-mixin.js"
37892
- }
37893
- },
37894
- {
37895
- "kind": "method",
37896
- "name": "isDisabledExternally",
37897
- "privacy": "protected",
37898
- "return": {
37899
- "type": {
37900
- "text": "boolean"
37901
- }
37902
- },
37903
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
37905
+ "fieldName": "disabled",
37904
37906
  "inheritedFrom": {
37905
37907
  "name": "SbbDisabledMixin",
37906
37908
  "module": "core/mixins/disabled-mixin.js"
37907
37909
  }
37908
37910
  },
37909
37911
  {
37910
- "kind": "field",
37911
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
37912
- "type": {
37913
- "text": "array"
37914
- },
37915
- "privacy": "private",
37916
- "readonly": true,
37917
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
37918
- "inheritedFrom": {
37919
- "name": "SbbButtonBaseElement",
37920
- "module": "core/base-elements/button-base-element.js"
37921
- }
37922
- },
37923
- {
37924
- "kind": "field",
37925
37912
  "name": "value",
37926
37913
  "type": {
37927
37914
  "text": "string"
37928
37915
  },
37929
- "privacy": "public",
37930
37916
  "default": "''",
37931
37917
  "description": "Value of the form element.",
37932
- "attribute": "value",
37918
+ "fieldName": "value",
37933
37919
  "inheritedFrom": {
37934
37920
  "name": "SbbButtonBaseElement",
37935
37921
  "module": "core/base-elements/button-base-element.js"
37936
37922
  }
37937
37923
  },
37938
37924
  {
37939
- "kind": "field",
37940
37925
  "name": "type",
37941
- "privacy": "public",
37942
37926
  "description": "The type attribute to use for the button.",
37943
37927
  "default": "'button'",
37944
37928
  "type": {
37945
37929
  "text": "SbbButtonType"
37946
37930
  },
37947
- "attribute": "type",
37931
+ "fieldName": "type",
37948
37932
  "inheritedFrom": {
37949
37933
  "name": "SbbButtonBaseElement",
37950
37934
  "module": "core/base-elements/button-base-element.js"
37951
37935
  }
37952
37936
  },
37953
37937
  {
37954
- "kind": "field",
37955
37938
  "name": "form",
37939
+ "description": "The `<form>` element to associate the button with.",
37956
37940
  "type": {
37957
37941
  "text": "HTMLFormElement | null"
37958
37942
  },
37959
- "privacy": "public",
37960
- "description": "The `<form>` element to associate the button with.",
37961
- "attribute": "form",
37943
+ "fieldName": "form",
37962
37944
  "inheritedFrom": {
37963
37945
  "name": "SbbButtonBaseElement",
37964
37946
  "module": "core/base-elements/button-base-element.js"
37965
37947
  }
37966
37948
  },
37967
37949
  {
37968
- "kind": "field",
37969
- "name": "_formId",
37950
+ "name": "name",
37951
+ "description": "Name of the form element. Will be read from name attribute.",
37970
37952
  "type": {
37971
37953
  "text": "string"
37972
37954
  },
37973
- "privacy": "private",
37974
- "default": "''",
37975
- "inheritedFrom": {
37976
- "name": "SbbButtonBaseElement",
37977
- "module": "core/base-elements/button-base-element.js"
37978
- }
37979
- },
37980
- {
37981
- "kind": "field",
37982
- "name": "_handleButtonClick",
37983
- "privacy": "private",
37984
- "inheritedFrom": {
37985
- "name": "SbbButtonBaseElement",
37986
- "module": "core/base-elements/button-base-element.js"
37987
- }
37988
- },
37989
- {
37990
- "kind": "method",
37991
- "name": "_requestSubmit",
37992
- "privacy": "private",
37993
- "return": {
37994
- "type": {
37995
- "text": "void"
37996
- }
37997
- },
37998
- "parameters": [
37999
- {
38000
- "name": "form",
38001
- "type": {
38002
- "text": "HTMLFormElement"
38003
- }
38004
- }
38005
- ],
37955
+ "fieldName": "name",
38006
37956
  "inheritedFrom": {
38007
- "name": "SbbButtonBaseElement",
38008
- "module": "core/base-elements/button-base-element.js"
37957
+ "name": "SbbFormAssociatedMixin",
37958
+ "module": "core/mixins/form-associated-mixin.js"
38009
37959
  }
38010
- },
37960
+ }
37961
+ ]
37962
+ }
37963
+ ],
37964
+ "exports": [
37965
+ {
37966
+ "kind": "js",
37967
+ "name": "SbbAccentButtonElement",
37968
+ "declaration": {
37969
+ "name": "SbbAccentButtonElement",
37970
+ "module": "button/accent-button/accent-button.component.js"
37971
+ }
37972
+ }
37973
+ ]
37974
+ },
37975
+ {
37976
+ "kind": "javascript-module",
37977
+ "path": "button/accent-button-link/accent-button-link.component.js",
37978
+ "declarations": [
37979
+ {
37980
+ "kind": "class",
37981
+ "description": "It displays a button enhanced with the SBB Design in the 'accent' variant, which will behave as a link.",
37982
+ "name": "SbbAccentButtonLinkElement",
37983
+ "cssProperties": [
38011
37984
  {
38012
- "kind": "field",
38013
- "name": "_formKeyDown",
38014
- "privacy": "private",
38015
- "inheritedFrom": {
38016
- "name": "SbbButtonBaseElement",
38017
- "module": "core/base-elements/button-base-element.js"
38018
- }
37985
+ "description": "The delay before the loading animation starts, when setting the button into loading state.",
37986
+ "name": "--sbb-button-loading-delay",
37987
+ "default": "300ms"
37988
+ }
37989
+ ],
37990
+ "slots": [
37991
+ {
37992
+ "description": "Use the unnamed slot to add content to the accent-button-link.",
37993
+ "name": ""
38019
37994
  },
37995
+ {
37996
+ "description": "Slot used to display the icon, if one is set.",
37997
+ "name": "icon"
37998
+ }
37999
+ ],
38000
+ "members": [
38020
38001
  {
38021
38002
  "kind": "field",
38022
- "name": "formAssociated",
38003
+ "name": "elementName",
38023
38004
  "type": {
38024
- "text": "boolean"
38005
+ "text": "string"
38025
38006
  },
38026
38007
  "privacy": "public",
38027
38008
  "static": true,
38028
- "default": "true",
38009
+ "readonly": true,
38010
+ "default": "'sbb-accent-button-link'",
38029
38011
  "inheritedFrom": {
38030
- "name": "SbbFormAssociatedMixin",
38031
- "module": "core/mixins/form-associated-mixin.js"
38012
+ "name": "SbbElement",
38013
+ "module": "core/base-elements/element.js"
38032
38014
  }
38033
38015
  },
38034
38016
  {
38035
38017
  "kind": "field",
38036
- "name": "name",
38037
- "privacy": "public",
38038
- "description": "Name of the form element. Will be read from name attribute.",
38018
+ "name": "size",
38039
38019
  "type": {
38040
- "text": "string"
38020
+ "text": "SbbButtonSize"
38041
38021
  },
38042
- "attribute": "name",
38022
+ "privacy": "public",
38023
+ "description": "Size variant, either l, m or s.",
38024
+ "default": "'l' / 's' (lean)",
38025
+ "attribute": "size",
38026
+ "reflects": true,
38043
38027
  "inheritedFrom": {
38044
- "name": "SbbFormAssociatedMixin",
38045
- "module": "core/mixins/form-associated-mixin.js"
38028
+ "name": "SbbButtonCommonElementMixin",
38029
+ "module": "button/common/button-common.js"
38046
38030
  }
38047
38031
  },
38048
38032
  {
38049
38033
  "kind": "field",
38050
- "name": "validity",
38034
+ "name": "loading",
38051
38035
  "type": {
38052
- "text": "ValidityState"
38036
+ "text": "boolean"
38053
38037
  },
38054
38038
  "privacy": "public",
38055
- "description": "Returns the ValidityState object for this element.",
38056
- "readonly": true,
38039
+ "default": "false",
38040
+ "description": "Whether the button indicates a loading state.\nThe animation kicks in after a delay of 300ms, configurable with --sbb-button-loading-delay CSS variable.",
38041
+ "attribute": "loading",
38042
+ "reflects": true,
38057
38043
  "inheritedFrom": {
38058
- "name": "SbbFormAssociatedMixin",
38059
- "module": "core/mixins/form-associated-mixin.js"
38044
+ "name": "SbbButtonCommonElementMixin",
38045
+ "module": "button/common/button-common.js"
38060
38046
  }
38061
38047
  },
38062
38048
  {
38063
- "kind": "field",
38064
- "name": "validationMessage",
38065
- "type": {
38066
- "text": "string"
38049
+ "kind": "method",
38050
+ "name": "renderTemplate",
38051
+ "privacy": "protected",
38052
+ "return": {
38053
+ "type": {
38054
+ "text": "TemplateResult"
38055
+ }
38067
38056
  },
38068
- "privacy": "public",
38069
- "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.",
38070
- "readonly": true,
38057
+ "description": "Override this method to render the component template.",
38071
38058
  "inheritedFrom": {
38072
- "name": "SbbFormAssociatedMixin",
38073
- "module": "core/mixins/form-associated-mixin.js"
38059
+ "name": "SbbActionBaseElement",
38060
+ "module": "core/base-elements/action-base-element.js"
38074
38061
  }
38075
38062
  },
38076
38063
  {
38077
38064
  "kind": "field",
38078
- "name": "willValidate",
38065
+ "name": "negative",
38079
38066
  "type": {
38080
38067
  "text": "boolean"
38081
38068
  },
38082
38069
  "privacy": "public",
38083
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
38084
- "readonly": true,
38085
- "inheritedFrom": {
38086
- "name": "SbbFormAssociatedMixin",
38087
- "module": "core/mixins/form-associated-mixin.js"
38088
- }
38089
- },
38090
- {
38091
- "kind": "field",
38092
- "name": "_validityStates",
38093
- "privacy": "private",
38094
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
38070
+ "default": "false",
38071
+ "description": "Negative coloring variant flag.",
38072
+ "attribute": "negative",
38073
+ "reflects": true,
38095
38074
  "inheritedFrom": {
38096
- "name": "SbbFormAssociatedMixin",
38097
- "module": "core/mixins/form-associated-mixin.js"
38075
+ "name": "SbbNegativeMixin",
38076
+ "module": "core/mixins/negative-mixin.js"
38098
38077
  }
38099
38078
  },
38100
38079
  {
38101
38080
  "kind": "field",
38102
- "name": "formDisabled",
38081
+ "name": "iconName",
38103
38082
  "type": {
38104
- "text": "boolean"
38083
+ "text": "string"
38105
38084
  },
38106
- "privacy": "protected",
38107
- "default": "false",
38108
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
38085
+ "privacy": "public",
38086
+ "default": "''",
38087
+ "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.",
38088
+ "attribute": "icon-name",
38109
38089
  "inheritedFrom": {
38110
- "name": "SbbFormAssociatedMixin",
38111
- "module": "core/mixins/form-associated-mixin.js"
38090
+ "name": "SbbIconNameMixin",
38091
+ "module": "icon/icon-name-mixin.js"
38112
38092
  }
38113
38093
  },
38114
38094
  {
38115
38095
  "kind": "method",
38116
- "name": "checkValidity",
38117
- "privacy": "public",
38096
+ "name": "renderIconSlot",
38097
+ "privacy": "protected",
38118
38098
  "return": {
38119
38099
  "type": {
38120
- "text": "boolean"
38100
+ "text": "TemplateResult"
38121
38101
  }
38122
38102
  },
38123
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
38103
+ "parameters": [
38104
+ {
38105
+ "name": "classname",
38106
+ "optional": true,
38107
+ "type": {
38108
+ "text": "string"
38109
+ }
38110
+ }
38111
+ ],
38124
38112
  "inheritedFrom": {
38125
- "name": "SbbFormAssociatedMixin",
38126
- "module": "core/mixins/form-associated-mixin.js"
38113
+ "name": "SbbIconNameMixin",
38114
+ "module": "icon/icon-name-mixin.js"
38127
38115
  }
38128
38116
  },
38129
38117
  {
38130
38118
  "kind": "method",
38131
- "name": "reportValidity",
38132
- "privacy": "public",
38119
+ "name": "renderIconName",
38120
+ "privacy": "protected",
38133
38121
  "return": {
38134
38122
  "type": {
38135
- "text": "boolean"
38123
+ "text": "string"
38136
38124
  }
38137
38125
  },
38138
- "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.",
38139
38126
  "inheritedFrom": {
38140
- "name": "SbbFormAssociatedMixin",
38141
- "module": "core/mixins/form-associated-mixin.js"
38127
+ "name": "SbbIconNameMixin",
38128
+ "module": "icon/icon-name-mixin.js"
38142
38129
  }
38143
38130
  },
38144
38131
  {
38145
38132
  "kind": "method",
38146
- "name": "setCustomValidity",
38147
- "privacy": "public",
38133
+ "name": "_renderIconName",
38134
+ "privacy": "private",
38148
38135
  "return": {
38149
38136
  "type": {
38150
- "text": "void"
38137
+ "text": "string"
38151
38138
  }
38152
38139
  },
38153
- "parameters": [
38154
- {
38155
- "name": "message",
38156
- "type": {
38157
- "text": "string"
38158
- }
38159
- }
38160
- ],
38161
- "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.",
38162
38140
  "inheritedFrom": {
38163
- "name": "SbbFormAssociatedMixin",
38164
- "module": "core/mixins/form-associated-mixin.js"
38141
+ "name": "SbbIconNameMixin",
38142
+ "module": "icon/icon-name-mixin.js"
38165
38143
  }
38166
38144
  },
38167
38145
  {
38168
- "kind": "method",
38169
- "name": "_hasDisabledAncestor",
38170
- "privacy": "private",
38171
- "return": {
38172
- "type": {
38173
- "text": "boolean"
38174
- }
38146
+ "kind": "field",
38147
+ "name": "disabledInteractive",
38148
+ "type": {
38149
+ "text": "boolean"
38175
38150
  },
38151
+ "privacy": "public",
38152
+ "default": "false",
38153
+ "description": "Whether the button should be aria-disabled but stay interactive.",
38154
+ "attribute": "disabled-interactive",
38155
+ "reflects": true,
38176
38156
  "inheritedFrom": {
38177
- "name": "SbbFormAssociatedMixin",
38178
- "module": "core/mixins/form-associated-mixin.js"
38157
+ "name": "SbbDisabledInteractiveMixin",
38158
+ "module": "core/mixins/disabled-mixin.js"
38179
38159
  }
38180
38160
  },
38181
38161
  {
38182
- "kind": "method",
38183
- "name": "updateFormValue",
38184
- "privacy": "protected",
38185
- "return": {
38186
- "type": {
38187
- "text": "void"
38188
- }
38162
+ "kind": "field",
38163
+ "name": "disabled",
38164
+ "privacy": "public",
38165
+ "description": "Whether the component is disabled.",
38166
+ "default": "false",
38167
+ "type": {
38168
+ "text": "boolean"
38189
38169
  },
38190
- "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",
38170
+ "attribute": "disabled",
38171
+ "reflects": true,
38191
38172
  "inheritedFrom": {
38192
- "name": "SbbFormAssociatedMixin",
38193
- "module": "core/mixins/form-associated-mixin.js"
38173
+ "name": "SbbDisabledMixin",
38174
+ "module": "core/mixins/disabled-mixin.js"
38194
38175
  }
38195
38176
  },
38196
38177
  {
38197
- "kind": "method",
38198
- "name": "formState",
38199
- "privacy": "protected",
38200
- "return": {
38201
- "type": {
38202
- "text": "FormRestoreState"
38203
- }
38178
+ "kind": "field",
38179
+ "name": "#disabled",
38180
+ "privacy": "private",
38181
+ "type": {
38182
+ "text": "boolean"
38204
38183
  },
38184
+ "default": "false",
38205
38185
  "inheritedFrom": {
38206
- "name": "SbbFormAssociatedMixin",
38207
- "module": "core/mixins/form-associated-mixin.js"
38186
+ "name": "SbbDisabledMixin",
38187
+ "module": "core/mixins/disabled-mixin.js"
38208
38188
  }
38209
38189
  },
38210
38190
  {
38211
38191
  "kind": "method",
38212
- "name": "setValidityFlag",
38192
+ "name": "isDisabledExternally",
38213
38193
  "privacy": "protected",
38214
38194
  "return": {
38215
38195
  "type": {
38216
- "text": "void"
38196
+ "text": "boolean"
38217
38197
  }
38218
38198
  },
38219
- "parameters": [
38220
- {
38221
- "name": "flag",
38222
- "type": {
38223
- "text": "T"
38224
- }
38225
- },
38226
- {
38227
- "name": "message",
38228
- "type": {
38229
- "text": "string"
38230
- }
38231
- },
38232
- {
38233
- "name": "flagValue",
38234
- "optional": true,
38235
- "type": {
38236
- "text": "ValidityStateFlags[T]"
38237
- }
38238
- }
38239
- ],
38240
- "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).",
38199
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
38200
+ "inheritedFrom": {
38201
+ "name": "SbbDisabledMixin",
38202
+ "module": "core/mixins/disabled-mixin.js"
38203
+ }
38204
+ },
38205
+ {
38206
+ "kind": "field",
38207
+ "name": "href",
38208
+ "type": {
38209
+ "text": "string"
38210
+ },
38211
+ "privacy": "public",
38212
+ "default": "''",
38213
+ "description": "The href value you want to link to.",
38214
+ "attribute": "href",
38215
+ "reflects": true,
38241
38216
  "inheritedFrom": {
38242
- "name": "SbbFormAssociatedMixin",
38243
- "module": "core/mixins/form-associated-mixin.js"
38217
+ "name": "SbbLinkBaseElement",
38218
+ "module": "core/base-elements/link-base-element.js"
38244
38219
  }
38245
38220
  },
38246
38221
  {
38247
- "kind": "method",
38248
- "name": "removeValidityFlag",
38249
- "privacy": "protected",
38250
- "return": {
38251
- "type": {
38252
- "text": "void"
38253
- }
38222
+ "kind": "field",
38223
+ "name": "target",
38224
+ "type": {
38225
+ "text": "LinkTargetType | string"
38254
38226
  },
38255
- "parameters": [
38256
- {
38257
- "name": "flag",
38258
- "type": {
38259
- "text": "T"
38260
- }
38261
- }
38262
- ],
38263
- "description": "Removes the validity state flag entry and updates validity state.",
38227
+ "privacy": "public",
38228
+ "default": "''",
38229
+ "description": "Where to display the linked URL.",
38230
+ "attribute": "target",
38231
+ "reflects": true,
38264
38232
  "inheritedFrom": {
38265
- "name": "SbbFormAssociatedMixin",
38266
- "module": "core/mixins/form-associated-mixin.js"
38233
+ "name": "SbbLinkBaseElement",
38234
+ "module": "core/base-elements/link-base-element.js"
38267
38235
  }
38268
38236
  },
38269
38237
  {
38270
- "kind": "method",
38271
- "name": "validate",
38272
- "privacy": "protected",
38273
- "return": {
38274
- "type": {
38275
- "text": "void"
38276
- }
38238
+ "kind": "field",
38239
+ "name": "rel",
38240
+ "type": {
38241
+ "text": "string"
38277
38242
  },
38278
- "description": "To be called whenever the current element needs to be validated.",
38243
+ "privacy": "public",
38244
+ "default": "''",
38245
+ "description": "The relationship of the linked URL as space-separated link types.",
38246
+ "attribute": "rel",
38247
+ "reflects": true,
38279
38248
  "inheritedFrom": {
38280
- "name": "SbbFormAssociatedMixin",
38281
- "module": "core/mixins/form-associated-mixin.js"
38249
+ "name": "SbbLinkBaseElement",
38250
+ "module": "core/base-elements/link-base-element.js"
38282
38251
  }
38283
38252
  },
38284
38253
  {
38285
- "kind": "method",
38286
- "name": "shouldValidate",
38287
- "privacy": "protected",
38288
- "return": {
38289
- "type": {
38290
- "text": "boolean"
38291
- }
38254
+ "kind": "field",
38255
+ "name": "download",
38256
+ "type": {
38257
+ "text": "boolean"
38292
38258
  },
38293
- "parameters": [
38294
- {
38295
- "name": "name",
38296
- "type": {
38297
- "text": "PropertyKey | undefined"
38298
- }
38299
- }
38300
- ],
38301
- "description": "Whether validation should be run on a property change with the given name.",
38259
+ "privacy": "public",
38260
+ "default": "false",
38261
+ "description": "Whether the browser will show the download dialog on click.",
38262
+ "attribute": "download",
38263
+ "reflects": true,
38302
38264
  "inheritedFrom": {
38303
- "name": "SbbFormAssociatedMixin",
38304
- "module": "core/mixins/form-associated-mixin.js"
38265
+ "name": "SbbLinkBaseElement",
38266
+ "module": "core/base-elements/link-base-element.js"
38305
38267
  }
38306
38268
  },
38307
38269
  {
38308
- "kind": "method",
38309
- "name": "_setInternalValidity",
38310
- "privacy": "private",
38311
- "return": {
38312
- "type": {
38313
- "text": "void"
38314
- }
38270
+ "kind": "field",
38271
+ "name": "accessibilityLabel",
38272
+ "type": {
38273
+ "text": "string"
38315
38274
  },
38275
+ "privacy": "public",
38276
+ "default": "''",
38277
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
38278
+ "attribute": "accessibility-label",
38316
38279
  "inheritedFrom": {
38317
- "name": "SbbFormAssociatedMixin",
38318
- "module": "core/mixins/form-associated-mixin.js"
38280
+ "name": "SbbLinkBaseElement",
38281
+ "module": "core/base-elements/link-base-element.js"
38319
38282
  }
38320
38283
  },
38321
38284
  {
38322
38285
  "kind": "field",
38323
- "name": "role",
38286
+ "name": "accessibilityCurrent",
38324
38287
  "type": {
38325
- "text": "ElementInternals['role']"
38288
+ "text": "string"
38326
38289
  },
38327
38290
  "privacy": "public",
38328
- "static": true,
38329
- "readonly": true,
38330
- "default": "'button'",
38291
+ "default": "''",
38292
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
38293
+ "attribute": "accessibility-current",
38331
38294
  "inheritedFrom": {
38332
- "name": "SbbButtonLikeBaseElement",
38333
- "module": "core/base-elements/button-base-element.js"
38295
+ "name": "SbbLinkBaseElement",
38296
+ "module": "core/base-elements/link-base-element.js"
38334
38297
  }
38335
38298
  },
38336
38299
  {
38337
38300
  "kind": "field",
38338
- "name": "_preventScrollOnSpaceKeydown",
38339
- "privacy": "private",
38340
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
38341
- "parameters": [
38342
- {
38343
- "description": "The origin event.",
38344
- "name": "event"
38345
- }
38346
- ],
38301
+ "name": "language",
38302
+ "privacy": "protected",
38303
+ "default": "new SbbLanguageController(this)",
38347
38304
  "inheritedFrom": {
38348
- "name": "SbbButtonLikeBaseElement",
38349
- "module": "core/base-elements/button-base-element.js"
38305
+ "name": "SbbLinkBaseElement",
38306
+ "module": "core/base-elements/link-base-element.js"
38350
38307
  }
38351
38308
  },
38352
38309
  {
38353
38310
  "kind": "field",
38354
- "name": "_removeActiveMarker",
38355
- "privacy": "private",
38311
+ "name": "anchorRole",
38312
+ "type": {
38313
+ "text": "string | null"
38314
+ },
38315
+ "privacy": "protected",
38316
+ "readonly": true,
38317
+ "default": "null",
38356
38318
  "inheritedFrom": {
38357
- "name": "SbbButtonLikeBaseElement",
38358
- "module": "core/base-elements/button-base-element.js"
38319
+ "name": "SbbLinkBaseElement",
38320
+ "module": "core/base-elements/link-base-element.js"
38359
38321
  }
38360
38322
  },
38361
38323
  {
38362
38324
  "kind": "field",
38363
- "name": "_dispatchClickEventOnSpaceKeyup",
38325
+ "name": "_evaluateRelAttribute",
38364
38326
  "privacy": "private",
38365
- "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.",
38366
- "parameters": [
38367
- {
38368
- "description": "The origin event.",
38369
- "name": "event"
38370
- }
38371
- ],
38372
38327
  "inheritedFrom": {
38373
- "name": "SbbButtonLikeBaseElement",
38374
- "module": "core/base-elements/button-base-element.js"
38328
+ "name": "SbbLinkBaseElement",
38329
+ "module": "core/base-elements/link-base-element.js"
38375
38330
  }
38376
38331
  },
38377
38332
  {
38378
- "kind": "field",
38379
- "name": "_dispatchClickEvent",
38380
- "privacy": "private",
38333
+ "kind": "method",
38334
+ "name": "renderLink",
38335
+ "privacy": "protected",
38336
+ "return": {
38337
+ "type": {
38338
+ "text": "TemplateResult"
38339
+ }
38340
+ },
38341
+ "parameters": [
38342
+ {
38343
+ "name": "renderContent",
38344
+ "type": {
38345
+ "text": "TemplateResult"
38346
+ }
38347
+ }
38348
+ ],
38381
38349
  "inheritedFrom": {
38382
- "name": "SbbButtonLikeBaseElement",
38383
- "module": "core/base-elements/button-base-element.js"
38350
+ "name": "SbbLinkBaseElement",
38351
+ "module": "core/base-elements/link-base-element.js"
38384
38352
  }
38385
38353
  },
38386
38354
  {
@@ -38535,15 +38503,19 @@
38535
38503
  "module": "button/common/button-common.js"
38536
38504
  },
38537
38505
  {
38538
- "name": "SbbDisabledTabIndexActionMixin",
38506
+ "name": "SbbDisabledInteractiveMixin",
38507
+ "module": "core/mixins.js"
38508
+ },
38509
+ {
38510
+ "name": "SbbDisabledMixin",
38539
38511
  "module": "core/mixins.js"
38540
38512
  }
38541
38513
  ],
38542
38514
  "superclass": {
38543
- "name": "SbbButtonBaseElement",
38515
+ "name": "SbbLinkBaseElement",
38544
38516
  "module": "core/base-elements.js"
38545
38517
  },
38546
- "tagName": "sbb-accent-button",
38518
+ "tagName": "sbb-accent-button-link",
38547
38519
  "customElement": true,
38548
38520
  "attributes": [
38549
38521
  {
@@ -38625,53 +38597,81 @@
38625
38597
  }
38626
38598
  },
38627
38599
  {
38628
- "name": "value",
38600
+ "name": "href",
38629
38601
  "type": {
38630
38602
  "text": "string"
38631
38603
  },
38632
38604
  "default": "''",
38633
- "description": "Value of the form element.",
38634
- "fieldName": "value",
38605
+ "description": "The href value you want to link to.",
38606
+ "fieldName": "href",
38635
38607
  "inheritedFrom": {
38636
- "name": "SbbButtonBaseElement",
38637
- "module": "core/base-elements/button-base-element.js"
38608
+ "name": "SbbLinkBaseElement",
38609
+ "module": "core/base-elements/link-base-element.js"
38638
38610
  }
38639
38611
  },
38640
38612
  {
38641
- "name": "type",
38642
- "description": "The type attribute to use for the button.",
38643
- "default": "'button'",
38613
+ "name": "target",
38644
38614
  "type": {
38645
- "text": "SbbButtonType"
38615
+ "text": "LinkTargetType | string"
38646
38616
  },
38647
- "fieldName": "type",
38617
+ "default": "''",
38618
+ "description": "Where to display the linked URL.",
38619
+ "fieldName": "target",
38648
38620
  "inheritedFrom": {
38649
- "name": "SbbButtonBaseElement",
38650
- "module": "core/base-elements/button-base-element.js"
38621
+ "name": "SbbLinkBaseElement",
38622
+ "module": "core/base-elements/link-base-element.js"
38651
38623
  }
38652
38624
  },
38653
38625
  {
38654
- "name": "form",
38655
- "description": "The `<form>` element to associate the button with.",
38626
+ "name": "rel",
38656
38627
  "type": {
38657
- "text": "HTMLFormElement | null"
38628
+ "text": "string"
38658
38629
  },
38659
- "fieldName": "form",
38630
+ "default": "''",
38631
+ "description": "The relationship of the linked URL as space-separated link types.",
38632
+ "fieldName": "rel",
38660
38633
  "inheritedFrom": {
38661
- "name": "SbbButtonBaseElement",
38662
- "module": "core/base-elements/button-base-element.js"
38634
+ "name": "SbbLinkBaseElement",
38635
+ "module": "core/base-elements/link-base-element.js"
38663
38636
  }
38664
38637
  },
38665
38638
  {
38666
- "name": "name",
38667
- "description": "Name of the form element. Will be read from name attribute.",
38639
+ "name": "download",
38640
+ "type": {
38641
+ "text": "boolean"
38642
+ },
38643
+ "default": "false",
38644
+ "description": "Whether the browser will show the download dialog on click.",
38645
+ "fieldName": "download",
38646
+ "inheritedFrom": {
38647
+ "name": "SbbLinkBaseElement",
38648
+ "module": "core/base-elements/link-base-element.js"
38649
+ }
38650
+ },
38651
+ {
38652
+ "name": "accessibility-label",
38653
+ "type": {
38654
+ "text": "string"
38655
+ },
38656
+ "default": "''",
38657
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
38658
+ "fieldName": "accessibilityLabel",
38659
+ "inheritedFrom": {
38660
+ "name": "SbbLinkBaseElement",
38661
+ "module": "core/base-elements/link-base-element.js"
38662
+ }
38663
+ },
38664
+ {
38665
+ "name": "accessibility-current",
38668
38666
  "type": {
38669
38667
  "text": "string"
38670
38668
  },
38671
- "fieldName": "name",
38669
+ "default": "''",
38670
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
38671
+ "fieldName": "accessibilityCurrent",
38672
38672
  "inheritedFrom": {
38673
- "name": "SbbFormAssociatedMixin",
38674
- "module": "core/mixins/form-associated-mixin.js"
38673
+ "name": "SbbLinkBaseElement",
38674
+ "module": "core/base-elements/link-base-element.js"
38675
38675
  }
38676
38676
  }
38677
38677
  ]
@@ -38680,10 +38680,10 @@
38680
38680
  "exports": [
38681
38681
  {
38682
38682
  "kind": "js",
38683
- "name": "SbbAccentButtonElement",
38683
+ "name": "SbbAccentButtonLinkElement",
38684
38684
  "declaration": {
38685
- "name": "SbbAccentButtonElement",
38686
- "module": "button/accent-button/accent-button.component.js"
38685
+ "name": "SbbAccentButtonLinkElement",
38686
+ "module": "button/accent-button-link/accent-button-link.component.js"
38687
38687
  }
38688
38688
  }
38689
38689
  ]
@@ -60586,26 +60586,260 @@
60586
60586
  "name": "SbbElement",
60587
60587
  "module": "core/base-elements.js"
60588
60588
  },
60589
- "tagName": "sbb-chip-group",
60590
- "customElement": true,
60591
- "classGenerics": "T = string"
60589
+ "tagName": "sbb-chip-group",
60590
+ "customElement": true,
60591
+ "classGenerics": "T = string"
60592
+ }
60593
+ ],
60594
+ "exports": [
60595
+ {
60596
+ "kind": "js",
60597
+ "name": "SbbChipInputTokenEndEvent",
60598
+ "declaration": {
60599
+ "name": "SbbChipInputTokenEndEvent",
60600
+ "module": "chip/chip-group/chip-group.component.js"
60601
+ }
60602
+ },
60603
+ {
60604
+ "kind": "js",
60605
+ "name": "SbbChipGroupElement",
60606
+ "declaration": {
60607
+ "name": "SbbChipGroupElement",
60608
+ "module": "chip/chip-group/chip-group.component.js"
60609
+ }
60610
+ }
60611
+ ]
60612
+ },
60613
+ {
60614
+ "kind": "javascript-module",
60615
+ "path": "container/container/container.component.js",
60616
+ "declarations": [
60617
+ {
60618
+ "kind": "class",
60619
+ "description": "It displays its content with the default page spacing.",
60620
+ "name": "SbbContainerElement",
60621
+ "cssProperties": [
60622
+ {
60623
+ "description": "Use this variable to override the default page spacing. Note that overriding this will disable the standard responsive spacing behavior of the container.",
60624
+ "name": "--sbb-page-spacing-padding"
60625
+ }
60626
+ ],
60627
+ "slots": [
60628
+ {
60629
+ "description": "Use the unnamed slot to add anything to the container.",
60630
+ "name": ""
60631
+ },
60632
+ {
60633
+ "description": "The slot used by the sbb-sticky-bar component.",
60634
+ "name": "sticky-bar"
60635
+ },
60636
+ {
60637
+ "description": "The slot used to slot an `sbb-image` to use as background.",
60638
+ "name": "image"
60639
+ }
60640
+ ],
60641
+ "members": [
60642
+ {
60643
+ "kind": "field",
60644
+ "name": "elementName",
60645
+ "type": {
60646
+ "text": "string"
60647
+ },
60648
+ "privacy": "public",
60649
+ "static": true,
60650
+ "readonly": true,
60651
+ "default": "'sbb-container'",
60652
+ "inheritedFrom": {
60653
+ "name": "SbbElement",
60654
+ "module": "core/base-elements/element.js"
60655
+ }
60656
+ },
60657
+ {
60658
+ "kind": "field",
60659
+ "name": "expanded",
60660
+ "type": {
60661
+ "text": "boolean"
60662
+ },
60663
+ "privacy": "public",
60664
+ "default": "false",
60665
+ "description": "Whether the container is expanded.",
60666
+ "attribute": "expanded",
60667
+ "reflects": true
60668
+ },
60669
+ {
60670
+ "kind": "field",
60671
+ "name": "backgroundExpanded",
60672
+ "type": {
60673
+ "text": "boolean"
60674
+ },
60675
+ "privacy": "public",
60676
+ "default": "false",
60677
+ "description": "Whether the background color is shown on full container width on large screens.",
60678
+ "attribute": "background-expanded",
60679
+ "reflects": true
60680
+ },
60681
+ {
60682
+ "kind": "field",
60683
+ "name": "color",
60684
+ "type": {
60685
+ "text": "| 'transparent'\n | 'white'\n | 'milk'\n | 'midnight'\n | 'charcoal'"
60686
+ },
60687
+ "privacy": "public",
60688
+ "default": "'white'",
60689
+ "description": "Color of the container, like transparent, white etc.",
60690
+ "attribute": "color",
60691
+ "reflects": true
60692
+ },
60693
+ {
60694
+ "kind": "field",
60695
+ "name": "_hydrationRequired",
60696
+ "type": {
60697
+ "text": "boolean"
60698
+ },
60699
+ "privacy": "private",
60700
+ "default": "!!this.shadowRoot",
60701
+ "inheritedFrom": {
60702
+ "name": "SbbHydrationMixin",
60703
+ "module": "core/mixins/hydration-mixin.js"
60704
+ }
60705
+ },
60706
+ {
60707
+ "kind": "field",
60708
+ "name": "_hydrationComplete",
60709
+ "privacy": "private",
60710
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
60711
+ "inheritedFrom": {
60712
+ "name": "SbbHydrationMixin",
60713
+ "module": "core/mixins/hydration-mixin.js"
60714
+ }
60715
+ },
60716
+ {
60717
+ "kind": "field",
60718
+ "name": "_resolveHydration",
60719
+ "type": {
60720
+ "text": "(hydrationRequired: boolean) => void"
60721
+ },
60722
+ "privacy": "private",
60723
+ "inheritedFrom": {
60724
+ "name": "SbbHydrationMixin",
60725
+ "module": "core/mixins/hydration-mixin.js"
60726
+ }
60727
+ },
60728
+ {
60729
+ "kind": "field",
60730
+ "name": "hydrationRequired",
60731
+ "type": {
60732
+ "text": "boolean"
60733
+ },
60734
+ "privacy": "protected",
60735
+ "description": "Returns whether hydration is required and not completed.",
60736
+ "readonly": true,
60737
+ "inheritedFrom": {
60738
+ "name": "SbbHydrationMixin",
60739
+ "module": "core/mixins/hydration-mixin.js"
60740
+ },
60741
+ "default": "!!this.shadowRoot"
60742
+ },
60743
+ {
60744
+ "kind": "method",
60745
+ "name": "toggleState",
60746
+ "privacy": "protected",
60747
+ "return": {
60748
+ "type": {
60749
+ "text": "void"
60750
+ }
60751
+ },
60752
+ "parameters": [
60753
+ {
60754
+ "name": "value",
60755
+ "type": {
60756
+ "text": "string"
60757
+ }
60758
+ },
60759
+ {
60760
+ "name": "force",
60761
+ "optional": true,
60762
+ "type": {
60763
+ "text": "boolean"
60764
+ }
60765
+ }
60766
+ ],
60767
+ "inheritedFrom": {
60768
+ "name": "SbbElementInternalsMixin",
60769
+ "module": "core/mixins/element-internals-mixin.js"
60770
+ }
60771
+ },
60772
+ {
60773
+ "kind": "field",
60774
+ "name": "['_$sbbElement$']",
60775
+ "type": {
60776
+ "text": "boolean"
60777
+ },
60778
+ "privacy": "public",
60779
+ "static": true,
60780
+ "default": "true",
60781
+ "inheritedFrom": {
60782
+ "name": "SbbElement",
60783
+ "module": "core/base-elements/element.js"
60784
+ }
60785
+ },
60786
+ {
60787
+ "kind": "field",
60788
+ "name": "_controllers",
60789
+ "type": {
60790
+ "text": "Set<SbbReactiveController> | undefined"
60791
+ },
60792
+ "privacy": "private",
60793
+ "inheritedFrom": {
60794
+ "name": "SbbElement",
60795
+ "module": "core/base-elements/element.js"
60796
+ }
60797
+ }
60798
+ ],
60799
+ "attributes": [
60800
+ {
60801
+ "name": "expanded",
60802
+ "type": {
60803
+ "text": "boolean"
60804
+ },
60805
+ "default": "false",
60806
+ "description": "Whether the container is expanded.",
60807
+ "fieldName": "expanded"
60808
+ },
60809
+ {
60810
+ "name": "background-expanded",
60811
+ "type": {
60812
+ "text": "boolean"
60813
+ },
60814
+ "default": "false",
60815
+ "description": "Whether the background color is shown on full container width on large screens.",
60816
+ "fieldName": "backgroundExpanded"
60817
+ },
60818
+ {
60819
+ "name": "color",
60820
+ "type": {
60821
+ "text": "| 'transparent'\n | 'white'\n | 'milk'\n | 'midnight'\n | 'charcoal'"
60822
+ },
60823
+ "default": "'white'",
60824
+ "description": "Color of the container, like transparent, white etc.",
60825
+ "fieldName": "color"
60826
+ }
60827
+ ],
60828
+ "superclass": {
60829
+ "name": "SbbElement",
60830
+ "module": "core/base-elements.js"
60831
+ },
60832
+ "tagName": "sbb-container",
60833
+ "customElement": true
60592
60834
  }
60593
60835
  ],
60594
60836
  "exports": [
60595
60837
  {
60596
60838
  "kind": "js",
60597
- "name": "SbbChipInputTokenEndEvent",
60598
- "declaration": {
60599
- "name": "SbbChipInputTokenEndEvent",
60600
- "module": "chip/chip-group/chip-group.component.js"
60601
- }
60602
- },
60603
- {
60604
- "kind": "js",
60605
- "name": "SbbChipGroupElement",
60839
+ "name": "SbbContainerElement",
60606
60840
  "declaration": {
60607
- "name": "SbbChipGroupElement",
60608
- "module": "chip/chip-group/chip-group.component.js"
60841
+ "name": "SbbContainerElement",
60842
+ "module": "container/container/container.component.js"
60609
60843
  }
60610
60844
  }
60611
60845
  ]
@@ -61072,240 +61306,6 @@
61072
61306
  }
61073
61307
  ]
61074
61308
  },
61075
- {
61076
- "kind": "javascript-module",
61077
- "path": "container/container/container.component.js",
61078
- "declarations": [
61079
- {
61080
- "kind": "class",
61081
- "description": "It displays its content with the default page spacing.",
61082
- "name": "SbbContainerElement",
61083
- "cssProperties": [
61084
- {
61085
- "description": "Use this variable to override the default page spacing. Note that overriding this will disable the standard responsive spacing behavior of the container.",
61086
- "name": "--sbb-page-spacing-padding"
61087
- }
61088
- ],
61089
- "slots": [
61090
- {
61091
- "description": "Use the unnamed slot to add anything to the container.",
61092
- "name": ""
61093
- },
61094
- {
61095
- "description": "The slot used by the sbb-sticky-bar component.",
61096
- "name": "sticky-bar"
61097
- },
61098
- {
61099
- "description": "The slot used to slot an `sbb-image` to use as background.",
61100
- "name": "image"
61101
- }
61102
- ],
61103
- "members": [
61104
- {
61105
- "kind": "field",
61106
- "name": "elementName",
61107
- "type": {
61108
- "text": "string"
61109
- },
61110
- "privacy": "public",
61111
- "static": true,
61112
- "readonly": true,
61113
- "default": "'sbb-container'",
61114
- "inheritedFrom": {
61115
- "name": "SbbElement",
61116
- "module": "core/base-elements/element.js"
61117
- }
61118
- },
61119
- {
61120
- "kind": "field",
61121
- "name": "expanded",
61122
- "type": {
61123
- "text": "boolean"
61124
- },
61125
- "privacy": "public",
61126
- "default": "false",
61127
- "description": "Whether the container is expanded.",
61128
- "attribute": "expanded",
61129
- "reflects": true
61130
- },
61131
- {
61132
- "kind": "field",
61133
- "name": "backgroundExpanded",
61134
- "type": {
61135
- "text": "boolean"
61136
- },
61137
- "privacy": "public",
61138
- "default": "false",
61139
- "description": "Whether the background color is shown on full container width on large screens.",
61140
- "attribute": "background-expanded",
61141
- "reflects": true
61142
- },
61143
- {
61144
- "kind": "field",
61145
- "name": "color",
61146
- "type": {
61147
- "text": "| 'transparent'\n | 'white'\n | 'milk'\n | 'midnight'\n | 'charcoal'"
61148
- },
61149
- "privacy": "public",
61150
- "default": "'white'",
61151
- "description": "Color of the container, like transparent, white etc.",
61152
- "attribute": "color",
61153
- "reflects": true
61154
- },
61155
- {
61156
- "kind": "field",
61157
- "name": "_hydrationRequired",
61158
- "type": {
61159
- "text": "boolean"
61160
- },
61161
- "privacy": "private",
61162
- "default": "!!this.shadowRoot",
61163
- "inheritedFrom": {
61164
- "name": "SbbHydrationMixin",
61165
- "module": "core/mixins/hydration-mixin.js"
61166
- }
61167
- },
61168
- {
61169
- "kind": "field",
61170
- "name": "_hydrationComplete",
61171
- "privacy": "private",
61172
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
61173
- "inheritedFrom": {
61174
- "name": "SbbHydrationMixin",
61175
- "module": "core/mixins/hydration-mixin.js"
61176
- }
61177
- },
61178
- {
61179
- "kind": "field",
61180
- "name": "_resolveHydration",
61181
- "type": {
61182
- "text": "(hydrationRequired: boolean) => void"
61183
- },
61184
- "privacy": "private",
61185
- "inheritedFrom": {
61186
- "name": "SbbHydrationMixin",
61187
- "module": "core/mixins/hydration-mixin.js"
61188
- }
61189
- },
61190
- {
61191
- "kind": "field",
61192
- "name": "hydrationRequired",
61193
- "type": {
61194
- "text": "boolean"
61195
- },
61196
- "privacy": "protected",
61197
- "description": "Returns whether hydration is required and not completed.",
61198
- "readonly": true,
61199
- "inheritedFrom": {
61200
- "name": "SbbHydrationMixin",
61201
- "module": "core/mixins/hydration-mixin.js"
61202
- },
61203
- "default": "!!this.shadowRoot"
61204
- },
61205
- {
61206
- "kind": "method",
61207
- "name": "toggleState",
61208
- "privacy": "protected",
61209
- "return": {
61210
- "type": {
61211
- "text": "void"
61212
- }
61213
- },
61214
- "parameters": [
61215
- {
61216
- "name": "value",
61217
- "type": {
61218
- "text": "string"
61219
- }
61220
- },
61221
- {
61222
- "name": "force",
61223
- "optional": true,
61224
- "type": {
61225
- "text": "boolean"
61226
- }
61227
- }
61228
- ],
61229
- "inheritedFrom": {
61230
- "name": "SbbElementInternalsMixin",
61231
- "module": "core/mixins/element-internals-mixin.js"
61232
- }
61233
- },
61234
- {
61235
- "kind": "field",
61236
- "name": "['_$sbbElement$']",
61237
- "type": {
61238
- "text": "boolean"
61239
- },
61240
- "privacy": "public",
61241
- "static": true,
61242
- "default": "true",
61243
- "inheritedFrom": {
61244
- "name": "SbbElement",
61245
- "module": "core/base-elements/element.js"
61246
- }
61247
- },
61248
- {
61249
- "kind": "field",
61250
- "name": "_controllers",
61251
- "type": {
61252
- "text": "Set<SbbReactiveController> | undefined"
61253
- },
61254
- "privacy": "private",
61255
- "inheritedFrom": {
61256
- "name": "SbbElement",
61257
- "module": "core/base-elements/element.js"
61258
- }
61259
- }
61260
- ],
61261
- "attributes": [
61262
- {
61263
- "name": "expanded",
61264
- "type": {
61265
- "text": "boolean"
61266
- },
61267
- "default": "false",
61268
- "description": "Whether the container is expanded.",
61269
- "fieldName": "expanded"
61270
- },
61271
- {
61272
- "name": "background-expanded",
61273
- "type": {
61274
- "text": "boolean"
61275
- },
61276
- "default": "false",
61277
- "description": "Whether the background color is shown on full container width on large screens.",
61278
- "fieldName": "backgroundExpanded"
61279
- },
61280
- {
61281
- "name": "color",
61282
- "type": {
61283
- "text": "| 'transparent'\n | 'white'\n | 'milk'\n | 'midnight'\n | 'charcoal'"
61284
- },
61285
- "default": "'white'",
61286
- "description": "Color of the container, like transparent, white etc.",
61287
- "fieldName": "color"
61288
- }
61289
- ],
61290
- "superclass": {
61291
- "name": "SbbElement",
61292
- "module": "core/base-elements.js"
61293
- },
61294
- "tagName": "sbb-container",
61295
- "customElement": true
61296
- }
61297
- ],
61298
- "exports": [
61299
- {
61300
- "kind": "js",
61301
- "name": "SbbContainerElement",
61302
- "declaration": {
61303
- "name": "SbbContainerElement",
61304
- "module": "container/container/container.component.js"
61305
- }
61306
- }
61307
- ]
61308
- },
61309
61309
  {
61310
61310
  "kind": "javascript-module",
61311
61311
  "path": "core/a11y/arrow-navigation.js",