@sbb-esta/lyne-elements-dev 4.12.1-dev.1778074064 → 4.12.1-dev.1778133120

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 +1661 -1661
  2. package/package.json +2 -2
@@ -100988,15 +100988,15 @@
100988
100988
  },
100989
100989
  {
100990
100990
  "kind": "javascript-module",
100991
- "path": "link/block-link-static/block-link-static.component.js",
100991
+ "path": "link/block-link-button/block-link-button.component.js",
100992
100992
  "declarations": [
100993
100993
  {
100994
100994
  "kind": "class",
100995
- "description": "It displays a static link enhanced with the SBB Design.",
100996
- "name": "SbbBlockLinkStaticElement",
100995
+ "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
100996
+ "name": "SbbBlockLinkButtonElement",
100997
100997
  "slots": [
100998
100998
  {
100999
- "description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
100999
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
101000
101000
  "name": ""
101001
101001
  },
101002
101002
  {
@@ -101018,7 +101018,7 @@
101018
101018
  "name": "SbbElement",
101019
101019
  "module": "core/base-elements/element.js"
101020
101020
  },
101021
- "default": "'sbb-block-link-static'"
101021
+ "default": "'sbb-block-link-button'"
101022
101022
  },
101023
101023
  {
101024
101024
  "kind": "field",
@@ -101147,6 +101147,22 @@
101147
101147
  "module": "icon/icon-name-mixin.js"
101148
101148
  }
101149
101149
  },
101150
+ {
101151
+ "kind": "field",
101152
+ "name": "disabledInteractive",
101153
+ "type": {
101154
+ "text": "boolean"
101155
+ },
101156
+ "privacy": "public",
101157
+ "default": "false",
101158
+ "description": "Whether the button should be aria-disabled but stay interactive.",
101159
+ "attribute": "disabled-interactive",
101160
+ "reflects": true,
101161
+ "inheritedFrom": {
101162
+ "name": "SbbDisabledInteractiveMixin",
101163
+ "module": "core/mixins/disabled-mixin.js"
101164
+ }
101165
+ },
101150
101166
  {
101151
101167
  "kind": "field",
101152
101168
  "name": "disabled",
@@ -101193,98 +101209,88 @@
101193
101209
  },
101194
101210
  {
101195
101211
  "kind": "field",
101196
- "name": "maybeDisabled",
101212
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
101197
101213
  "type": {
101198
- "text": "boolean | undefined"
101214
+ "text": "array"
101199
101215
  },
101200
- "privacy": "protected",
101216
+ "privacy": "private",
101201
101217
  "readonly": true,
101218
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
101202
101219
  "inheritedFrom": {
101203
- "name": "SbbActionBaseElement",
101204
- "module": "core/base-elements/action-base-element.js"
101220
+ "name": "SbbButtonBaseElement",
101221
+ "module": "core/base-elements/button-base-element.js"
101205
101222
  }
101206
101223
  },
101207
101224
  {
101208
101225
  "kind": "field",
101209
- "name": "maybeDisabledInteractive",
101226
+ "name": "value",
101210
101227
  "type": {
101211
- "text": "boolean | undefined"
101228
+ "text": "string"
101212
101229
  },
101213
- "privacy": "protected",
101214
- "readonly": true,
101230
+ "privacy": "public",
101215
101231
  "inheritedFrom": {
101216
- "name": "SbbActionBaseElement",
101217
- "module": "core/base-elements/action-base-element.js"
101218
- }
101219
- },
101220
- {
101221
- "kind": "method",
101222
- "name": "setupBaseEventHandlers",
101223
- "privacy": "protected",
101224
- "return": {
101225
- "type": {
101226
- "text": "void"
101227
- }
101232
+ "name": "SbbButtonBaseElement",
101233
+ "module": "core/base-elements/button-base-element.js"
101228
101234
  },
101229
- "inheritedFrom": {
101230
- "name": "SbbActionBaseElement",
101231
- "module": "core/base-elements/action-base-element.js"
101232
- }
101235
+ "default": "''",
101236
+ "description": "Value of the form element.",
101237
+ "attribute": "value"
101233
101238
  },
101234
101239
  {
101235
101240
  "kind": "field",
101236
- "name": "_hydrationRequired",
101241
+ "name": "type",
101242
+ "privacy": "public",
101243
+ "description": "The type attribute to use for the button.",
101244
+ "default": "'button'",
101237
101245
  "type": {
101238
- "text": "boolean"
101246
+ "text": "SbbButtonType"
101239
101247
  },
101240
- "privacy": "private",
101241
- "default": "!!this.shadowRoot",
101248
+ "attribute": "type",
101242
101249
  "inheritedFrom": {
101243
- "name": "SbbElement",
101244
- "module": "core/base-elements/element.js"
101250
+ "name": "SbbButtonBaseElement",
101251
+ "module": "core/base-elements/button-base-element.js"
101245
101252
  }
101246
101253
  },
101247
101254
  {
101248
101255
  "kind": "field",
101249
- "name": "_hydrationComplete",
101250
- "privacy": "private",
101251
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
101256
+ "name": "form",
101257
+ "type": {
101258
+ "text": "HTMLFormElement | null"
101259
+ },
101260
+ "privacy": "public",
101261
+ "description": "The `<form>` element to associate the button with.",
101252
101262
  "inheritedFrom": {
101253
- "name": "SbbElement",
101254
- "module": "core/base-elements/element.js"
101255
- }
101263
+ "name": "SbbButtonBaseElement",
101264
+ "module": "core/base-elements/button-base-element.js"
101265
+ },
101266
+ "attribute": "form"
101256
101267
  },
101257
101268
  {
101258
101269
  "kind": "field",
101259
- "name": "_resolveHydration",
101270
+ "name": "_formId",
101260
101271
  "type": {
101261
- "text": "(hydrationRequired: boolean) => void"
101272
+ "text": "string"
101262
101273
  },
101263
101274
  "privacy": "private",
101275
+ "default": "''",
101264
101276
  "inheritedFrom": {
101265
- "name": "SbbElement",
101266
- "module": "core/base-elements/element.js"
101277
+ "name": "SbbButtonBaseElement",
101278
+ "module": "core/base-elements/button-base-element.js"
101267
101279
  }
101268
101280
  },
101269
101281
  {
101270
101282
  "kind": "field",
101271
- "name": "hydrationRequired",
101272
- "type": {
101273
- "text": "boolean"
101274
- },
101275
- "privacy": "protected",
101276
- "description": "Returns whether hydration is required and not completed.",
101277
- "readonly": true,
101283
+ "name": "_handleButtonClick",
101284
+ "privacy": "private",
101278
101285
  "inheritedFrom": {
101279
- "name": "SbbElement",
101280
- "module": "core/base-elements/element.js"
101281
- },
101282
- "default": "!!this.shadowRoot"
101286
+ "name": "SbbButtonBaseElement",
101287
+ "module": "core/base-elements/button-base-element.js"
101288
+ }
101283
101289
  },
101284
101290
  {
101285
101291
  "kind": "method",
101286
- "name": "toggleState",
101287
- "privacy": "protected",
101292
+ "name": "_requestSubmit",
101293
+ "privacy": "private",
101288
101294
  "return": {
101289
101295
  "type": {
101290
101296
  "text": "void"
@@ -101292,27 +101298,29 @@
101292
101298
  },
101293
101299
  "parameters": [
101294
101300
  {
101295
- "name": "value",
101296
- "type": {
101297
- "text": "string"
101298
- }
101299
- },
101300
- {
101301
- "name": "force",
101302
- "optional": true,
101301
+ "name": "form",
101303
101302
  "type": {
101304
- "text": "boolean"
101303
+ "text": "HTMLFormElement"
101305
101304
  }
101306
101305
  }
101307
101306
  ],
101308
101307
  "inheritedFrom": {
101309
- "name": "SbbElement",
101310
- "module": "core/base-elements/element.js"
101308
+ "name": "SbbButtonBaseElement",
101309
+ "module": "core/base-elements/button-base-element.js"
101311
101310
  }
101312
101311
  },
101313
101312
  {
101314
101313
  "kind": "field",
101315
- "name": "['_$sbbElement$']",
101314
+ "name": "_formKeyDown",
101315
+ "privacy": "private",
101316
+ "inheritedFrom": {
101317
+ "name": "SbbButtonBaseElement",
101318
+ "module": "core/base-elements/button-base-element.js"
101319
+ }
101320
+ },
101321
+ {
101322
+ "kind": "field",
101323
+ "name": "formAssociated",
101316
101324
  "type": {
101317
101325
  "text": "boolean"
101318
101326
  },
@@ -101320,566 +101328,456 @@
101320
101328
  "static": true,
101321
101329
  "default": "true",
101322
101330
  "inheritedFrom": {
101323
- "name": "SbbElement",
101324
- "module": "core/base-elements/element.js"
101331
+ "name": "SbbFormAssociatedMixin",
101332
+ "module": "core/mixins/form-associated-mixin.js"
101325
101333
  }
101326
101334
  },
101327
101335
  {
101328
101336
  "kind": "field",
101329
- "name": "_controllers",
101337
+ "name": "name",
101338
+ "privacy": "public",
101339
+ "description": "Name of the form element. Will be read from name attribute.",
101330
101340
  "type": {
101331
- "text": "Set<SbbReactiveController> | undefined"
101341
+ "text": "string"
101332
101342
  },
101333
- "privacy": "private",
101343
+ "attribute": "name",
101334
101344
  "inheritedFrom": {
101335
- "name": "SbbElement",
101336
- "module": "core/base-elements/element.js"
101345
+ "name": "SbbFormAssociatedMixin",
101346
+ "module": "core/mixins/form-associated-mixin.js"
101337
101347
  }
101338
- }
101339
- ],
101340
- "mixins": [
101341
- {
101342
- "name": "SbbBlockLinkCommonElementMixin",
101343
- "module": "link/common/block-link-common.js"
101344
101348
  },
101345
101349
  {
101346
- "name": "SbbDisabledMixin",
101347
- "module": "core/mixins.js"
101348
- }
101349
- ],
101350
- "superclass": {
101351
- "name": "SbbActionBaseElement",
101352
- "module": "core/base-elements.js"
101353
- },
101354
- "tagName": "sbb-block-link-static",
101355
- "customElement": true,
101356
- "attributes": [
101357
- {
101358
- "name": "icon-placement",
101350
+ "kind": "field",
101351
+ "name": "validity",
101359
101352
  "type": {
101360
- "text": "SbbIconPlacement"
101353
+ "text": "ValidityState"
101361
101354
  },
101362
- "default": "'start'",
101363
- "description": "Moves the icon to the end of the component if set to true.",
101364
- "fieldName": "iconPlacement",
101355
+ "privacy": "public",
101356
+ "description": "Returns the ValidityState object for this element.",
101357
+ "readonly": true,
101365
101358
  "inheritedFrom": {
101366
- "name": "SbbBlockLinkCommonElementMixin",
101367
- "module": "link/common/block-link-common.js"
101359
+ "name": "SbbFormAssociatedMixin",
101360
+ "module": "core/mixins/form-associated-mixin.js"
101368
101361
  }
101369
101362
  },
101370
101363
  {
101371
- "name": "size",
101364
+ "kind": "field",
101365
+ "name": "validationMessage",
101372
101366
  "type": {
101373
- "text": "SbbLinkSize"
101367
+ "text": "string"
101374
101368
  },
101375
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
101376
- "default": "'s' / 'xs' (lean)",
101377
- "fieldName": "size",
101369
+ "privacy": "public",
101370
+ "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.",
101371
+ "readonly": true,
101378
101372
  "inheritedFrom": {
101379
- "name": "SbbLinkCommonElementMixin",
101380
- "module": "link/common/link-common.js"
101373
+ "name": "SbbFormAssociatedMixin",
101374
+ "module": "core/mixins/form-associated-mixin.js"
101381
101375
  }
101382
101376
  },
101383
101377
  {
101384
- "name": "icon-name",
101378
+ "kind": "field",
101379
+ "name": "willValidate",
101385
101380
  "type": {
101386
- "text": "string"
101381
+ "text": "boolean"
101387
101382
  },
101388
- "default": "''",
101389
- "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.",
101390
- "fieldName": "iconName",
101383
+ "privacy": "public",
101384
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
101385
+ "readonly": true,
101391
101386
  "inheritedFrom": {
101392
- "name": "SbbIconNameMixin",
101393
- "module": "icon/icon-name-mixin.js"
101387
+ "name": "SbbFormAssociatedMixin",
101388
+ "module": "core/mixins/form-associated-mixin.js"
101394
101389
  }
101395
101390
  },
101396
101391
  {
101397
- "name": "disabled",
101398
- "description": "Whether the component is disabled.",
101399
- "default": "false",
101392
+ "kind": "field",
101393
+ "name": "_validityStates",
101394
+ "privacy": "private",
101395
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
101396
+ "inheritedFrom": {
101397
+ "name": "SbbFormAssociatedMixin",
101398
+ "module": "core/mixins/form-associated-mixin.js"
101399
+ }
101400
+ },
101401
+ {
101402
+ "kind": "field",
101403
+ "name": "formDisabled",
101400
101404
  "type": {
101401
101405
  "text": "boolean"
101402
101406
  },
101403
- "fieldName": "disabled",
101407
+ "privacy": "protected",
101408
+ "default": "false",
101409
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
101404
101410
  "inheritedFrom": {
101405
- "name": "SbbDisabledMixin",
101406
- "module": "core/mixins/disabled-mixin.js"
101411
+ "name": "SbbFormAssociatedMixin",
101412
+ "module": "core/mixins/form-associated-mixin.js"
101407
101413
  }
101408
- }
101409
- ]
101410
- }
101411
- ],
101412
- "exports": [
101413
- {
101414
- "kind": "js",
101415
- "name": "SbbBlockLinkStaticElement",
101416
- "declaration": {
101417
- "name": "SbbBlockLinkStaticElement",
101418
- "module": "link/block-link-static/block-link-static.component.js"
101419
- }
101420
- }
101421
- ]
101422
- },
101423
- {
101424
- "kind": "javascript-module",
101425
- "path": "link/block-link-button/block-link-button.component.js",
101426
- "declarations": [
101427
- {
101428
- "kind": "class",
101429
- "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
101430
- "name": "SbbBlockLinkButtonElement",
101431
- "slots": [
101432
- {
101433
- "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
101434
- "name": ""
101435
101414
  },
101436
101415
  {
101437
- "description": "Slot used to display the icon, if one is set.",
101438
- "name": "icon"
101439
- }
101440
- ],
101441
- "members": [
101442
- {
101443
- "kind": "field",
101444
- "name": "elementName",
101445
- "type": {
101446
- "text": "string"
101447
- },
101416
+ "kind": "method",
101417
+ "name": "checkValidity",
101448
101418
  "privacy": "public",
101449
- "static": true,
101450
- "readonly": true,
101451
- "inheritedFrom": {
101452
- "name": "SbbElement",
101453
- "module": "core/base-elements/element.js"
101419
+ "return": {
101420
+ "type": {
101421
+ "text": "boolean"
101422
+ }
101454
101423
  },
101455
- "default": "'sbb-block-link-button'"
101424
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
101425
+ "inheritedFrom": {
101426
+ "name": "SbbFormAssociatedMixin",
101427
+ "module": "core/mixins/form-associated-mixin.js"
101428
+ }
101456
101429
  },
101457
101430
  {
101458
- "kind": "field",
101459
- "name": "styles",
101460
- "type": {
101461
- "text": "CSSResultGroup"
101462
- },
101431
+ "kind": "method",
101432
+ "name": "reportValidity",
101463
101433
  "privacy": "public",
101464
- "static": true,
101465
- "default": "[super.styles, unsafeCSS(blockStyle)]",
101434
+ "return": {
101435
+ "type": {
101436
+ "text": "boolean"
101437
+ }
101438
+ },
101439
+ "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.",
101466
101440
  "inheritedFrom": {
101467
- "name": "SbbLinkCommonElementMixin",
101468
- "module": "link/common/link-common.js"
101441
+ "name": "SbbFormAssociatedMixin",
101442
+ "module": "core/mixins/form-associated-mixin.js"
101469
101443
  }
101470
101444
  },
101471
101445
  {
101472
- "kind": "field",
101473
- "name": "iconPlacement",
101474
- "type": {
101475
- "text": "SbbIconPlacement"
101476
- },
101446
+ "kind": "method",
101447
+ "name": "setCustomValidity",
101477
101448
  "privacy": "public",
101478
- "default": "'start'",
101479
- "description": "Moves the icon to the end of the component if set to true.",
101480
- "attribute": "icon-placement",
101481
- "reflects": true,
101449
+ "return": {
101450
+ "type": {
101451
+ "text": "void"
101452
+ }
101453
+ },
101454
+ "parameters": [
101455
+ {
101456
+ "name": "message",
101457
+ "type": {
101458
+ "text": "string"
101459
+ }
101460
+ }
101461
+ ],
101462
+ "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.",
101482
101463
  "inheritedFrom": {
101483
- "name": "SbbBlockLinkCommonElementMixin",
101484
- "module": "link/common/block-link-common.js"
101464
+ "name": "SbbFormAssociatedMixin",
101465
+ "module": "core/mixins/form-associated-mixin.js"
101485
101466
  }
101486
101467
  },
101487
101468
  {
101488
101469
  "kind": "method",
101489
- "name": "renderTemplate",
101490
- "privacy": "protected",
101470
+ "name": "_hasDisabledAncestor",
101471
+ "privacy": "private",
101491
101472
  "return": {
101492
101473
  "type": {
101493
- "text": "TemplateResult"
101474
+ "text": "boolean"
101494
101475
  }
101495
101476
  },
101496
- "description": "Override this method to render the component template.",
101497
101477
  "inheritedFrom": {
101498
- "name": "SbbActionBaseElement",
101499
- "module": "core/base-elements/action-base-element.js"
101478
+ "name": "SbbFormAssociatedMixin",
101479
+ "module": "core/mixins/form-associated-mixin.js"
101500
101480
  }
101501
101481
  },
101502
101482
  {
101503
- "kind": "field",
101504
- "name": "size",
101505
- "type": {
101506
- "text": "SbbLinkSize"
101483
+ "kind": "method",
101484
+ "name": "updateFormValue",
101485
+ "privacy": "protected",
101486
+ "return": {
101487
+ "type": {
101488
+ "text": "void"
101489
+ }
101507
101490
  },
101508
- "privacy": "public",
101509
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
101510
- "default": "'s' / 'xs' (lean)",
101511
- "attribute": "size",
101512
- "reflects": true,
101491
+ "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",
101513
101492
  "inheritedFrom": {
101514
- "name": "SbbLinkCommonElementMixin",
101515
- "module": "link/common/link-common.js"
101493
+ "name": "SbbFormAssociatedMixin",
101494
+ "module": "core/mixins/form-associated-mixin.js"
101516
101495
  }
101517
101496
  },
101518
101497
  {
101519
- "kind": "field",
101520
- "name": "iconName",
101521
- "type": {
101522
- "text": "string"
101498
+ "kind": "method",
101499
+ "name": "formState",
101500
+ "privacy": "protected",
101501
+ "return": {
101502
+ "type": {
101503
+ "text": "FormRestoreState"
101504
+ }
101523
101505
  },
101524
- "privacy": "public",
101525
- "default": "''",
101526
- "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.",
101527
- "attribute": "icon-name",
101528
101506
  "inheritedFrom": {
101529
- "name": "SbbIconNameMixin",
101530
- "module": "icon/icon-name-mixin.js"
101507
+ "name": "SbbFormAssociatedMixin",
101508
+ "module": "core/mixins/form-associated-mixin.js"
101531
101509
  }
101532
101510
  },
101533
101511
  {
101534
101512
  "kind": "method",
101535
- "name": "renderIconSlot",
101513
+ "name": "setValidityFlag",
101536
101514
  "privacy": "protected",
101537
101515
  "return": {
101538
101516
  "type": {
101539
- "text": "TemplateResult"
101517
+ "text": "void"
101540
101518
  }
101541
101519
  },
101542
101520
  "parameters": [
101543
101521
  {
101544
- "name": "classname",
101545
- "optional": true,
101522
+ "name": "flag",
101523
+ "type": {
101524
+ "text": "T"
101525
+ }
101526
+ },
101527
+ {
101528
+ "name": "message",
101546
101529
  "type": {
101547
101530
  "text": "string"
101548
101531
  }
101532
+ },
101533
+ {
101534
+ "name": "flagValue",
101535
+ "optional": true,
101536
+ "type": {
101537
+ "text": "ValidityStateFlags[T]"
101538
+ }
101549
101539
  }
101550
101540
  ],
101541
+ "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).",
101551
101542
  "inheritedFrom": {
101552
- "name": "SbbIconNameMixin",
101553
- "module": "icon/icon-name-mixin.js"
101543
+ "name": "SbbFormAssociatedMixin",
101544
+ "module": "core/mixins/form-associated-mixin.js"
101554
101545
  }
101555
101546
  },
101556
101547
  {
101557
101548
  "kind": "method",
101558
- "name": "renderIconName",
101549
+ "name": "removeValidityFlag",
101559
101550
  "privacy": "protected",
101560
101551
  "return": {
101561
101552
  "type": {
101562
- "text": "string"
101553
+ "text": "void"
101563
101554
  }
101564
101555
  },
101556
+ "parameters": [
101557
+ {
101558
+ "name": "flag",
101559
+ "type": {
101560
+ "text": "T"
101561
+ }
101562
+ }
101563
+ ],
101564
+ "description": "Removes the validity state flag entry and updates validity state.",
101565
101565
  "inheritedFrom": {
101566
- "name": "SbbIconNameMixin",
101567
- "module": "icon/icon-name-mixin.js"
101566
+ "name": "SbbFormAssociatedMixin",
101567
+ "module": "core/mixins/form-associated-mixin.js"
101568
101568
  }
101569
101569
  },
101570
101570
  {
101571
101571
  "kind": "method",
101572
- "name": "_renderIconName",
101573
- "privacy": "private",
101572
+ "name": "validate",
101573
+ "privacy": "protected",
101574
101574
  "return": {
101575
101575
  "type": {
101576
- "text": "string"
101576
+ "text": "void"
101577
101577
  }
101578
101578
  },
101579
+ "description": "To be called whenever the current element needs to be validated.",
101579
101580
  "inheritedFrom": {
101580
- "name": "SbbIconNameMixin",
101581
- "module": "icon/icon-name-mixin.js"
101581
+ "name": "SbbFormAssociatedMixin",
101582
+ "module": "core/mixins/form-associated-mixin.js"
101582
101583
  }
101583
101584
  },
101584
101585
  {
101585
- "kind": "field",
101586
- "name": "disabledInteractive",
101587
- "type": {
101588
- "text": "boolean"
101586
+ "kind": "method",
101587
+ "name": "shouldValidate",
101588
+ "privacy": "protected",
101589
+ "return": {
101590
+ "type": {
101591
+ "text": "boolean"
101592
+ }
101589
101593
  },
101590
- "privacy": "public",
101591
- "default": "false",
101592
- "description": "Whether the button should be aria-disabled but stay interactive.",
101593
- "attribute": "disabled-interactive",
101594
- "reflects": true,
101594
+ "parameters": [
101595
+ {
101596
+ "name": "name",
101597
+ "type": {
101598
+ "text": "PropertyKey | undefined"
101599
+ }
101600
+ }
101601
+ ],
101602
+ "description": "Whether validation should be run on a property change with the given name.",
101595
101603
  "inheritedFrom": {
101596
- "name": "SbbDisabledInteractiveMixin",
101597
- "module": "core/mixins/disabled-mixin.js"
101604
+ "name": "SbbFormAssociatedMixin",
101605
+ "module": "core/mixins/form-associated-mixin.js"
101598
101606
  }
101599
101607
  },
101600
101608
  {
101601
- "kind": "field",
101602
- "name": "disabled",
101603
- "privacy": "public",
101604
- "description": "Whether the component is disabled.",
101605
- "default": "false",
101606
- "type": {
101607
- "text": "boolean"
101609
+ "kind": "method",
101610
+ "name": "_setInternalValidity",
101611
+ "privacy": "private",
101612
+ "return": {
101613
+ "type": {
101614
+ "text": "void"
101615
+ }
101608
101616
  },
101609
- "attribute": "disabled",
101610
- "reflects": true,
101611
101617
  "inheritedFrom": {
101612
- "name": "SbbDisabledMixin",
101613
- "module": "core/mixins/disabled-mixin.js"
101618
+ "name": "SbbFormAssociatedMixin",
101619
+ "module": "core/mixins/form-associated-mixin.js"
101614
101620
  }
101615
101621
  },
101616
101622
  {
101617
101623
  "kind": "field",
101618
- "name": "#disabled",
101619
- "privacy": "private",
101624
+ "name": "role",
101620
101625
  "type": {
101621
- "text": "boolean"
101622
- },
101623
- "default": "false",
101624
- "inheritedFrom": {
101625
- "name": "SbbDisabledMixin",
101626
- "module": "core/mixins/disabled-mixin.js"
101627
- }
101628
- },
101629
- {
101630
- "kind": "method",
101631
- "name": "isDisabledExternally",
101632
- "privacy": "protected",
101633
- "return": {
101634
- "type": {
101635
- "text": "boolean"
101636
- }
101637
- },
101638
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
101639
- "inheritedFrom": {
101640
- "name": "SbbDisabledMixin",
101641
- "module": "core/mixins/disabled-mixin.js"
101642
- }
101643
- },
101644
- {
101645
- "kind": "field",
101646
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
101647
- "type": {
101648
- "text": "array"
101649
- },
101650
- "privacy": "private",
101651
- "readonly": true,
101652
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
101653
- "inheritedFrom": {
101654
- "name": "SbbButtonBaseElement",
101655
- "module": "core/base-elements/button-base-element.js"
101656
- }
101657
- },
101658
- {
101659
- "kind": "field",
101660
- "name": "value",
101661
- "type": {
101662
- "text": "string"
101663
- },
101664
- "privacy": "public",
101665
- "inheritedFrom": {
101666
- "name": "SbbButtonBaseElement",
101667
- "module": "core/base-elements/button-base-element.js"
101626
+ "text": "ElementInternals['role']"
101668
101627
  },
101669
- "default": "''",
101670
- "description": "Value of the form element.",
101671
- "attribute": "value"
101672
- },
101673
- {
101674
- "kind": "field",
101675
- "name": "type",
101676
101628
  "privacy": "public",
101677
- "description": "The type attribute to use for the button.",
101629
+ "static": true,
101630
+ "readonly": true,
101678
101631
  "default": "'button'",
101679
- "type": {
101680
- "text": "SbbButtonType"
101681
- },
101682
- "attribute": "type",
101683
101632
  "inheritedFrom": {
101684
- "name": "SbbButtonBaseElement",
101633
+ "name": "SbbButtonLikeBaseElement",
101685
101634
  "module": "core/base-elements/button-base-element.js"
101686
101635
  }
101687
101636
  },
101688
101637
  {
101689
101638
  "kind": "field",
101690
- "name": "form",
101691
- "type": {
101692
- "text": "HTMLFormElement | null"
101693
- },
101694
- "privacy": "public",
101695
- "description": "The `<form>` element to associate the button with.",
101696
- "inheritedFrom": {
101697
- "name": "SbbButtonBaseElement",
101698
- "module": "core/base-elements/button-base-element.js"
101699
- },
101700
- "attribute": "form"
101701
- },
101702
- {
101703
- "kind": "field",
101704
- "name": "_formId",
101705
- "type": {
101706
- "text": "string"
101707
- },
101639
+ "name": "_preventScrollOnSpaceKeydown",
101708
101640
  "privacy": "private",
101709
- "default": "''",
101641
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
101642
+ "parameters": [
101643
+ {
101644
+ "description": "The origin event.",
101645
+ "name": "event"
101646
+ }
101647
+ ],
101710
101648
  "inheritedFrom": {
101711
- "name": "SbbButtonBaseElement",
101649
+ "name": "SbbButtonLikeBaseElement",
101712
101650
  "module": "core/base-elements/button-base-element.js"
101713
101651
  }
101714
101652
  },
101715
101653
  {
101716
101654
  "kind": "field",
101717
- "name": "_handleButtonClick",
101655
+ "name": "_removeActiveMarker",
101718
101656
  "privacy": "private",
101719
101657
  "inheritedFrom": {
101720
- "name": "SbbButtonBaseElement",
101658
+ "name": "SbbButtonLikeBaseElement",
101721
101659
  "module": "core/base-elements/button-base-element.js"
101722
101660
  }
101723
101661
  },
101724
101662
  {
101725
- "kind": "method",
101726
- "name": "_requestSubmit",
101663
+ "kind": "field",
101664
+ "name": "_dispatchClickEventOnSpaceKeyup",
101727
101665
  "privacy": "private",
101728
- "return": {
101729
- "type": {
101730
- "text": "void"
101731
- }
101732
- },
101666
+ "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.",
101733
101667
  "parameters": [
101734
101668
  {
101735
- "name": "form",
101736
- "type": {
101737
- "text": "HTMLFormElement"
101738
- }
101669
+ "description": "The origin event.",
101670
+ "name": "event"
101739
101671
  }
101740
101672
  ],
101741
101673
  "inheritedFrom": {
101742
- "name": "SbbButtonBaseElement",
101674
+ "name": "SbbButtonLikeBaseElement",
101743
101675
  "module": "core/base-elements/button-base-element.js"
101744
101676
  }
101745
101677
  },
101746
101678
  {
101747
101679
  "kind": "field",
101748
- "name": "_formKeyDown",
101680
+ "name": "_dispatchClickEvent",
101749
101681
  "privacy": "private",
101750
101682
  "inheritedFrom": {
101751
- "name": "SbbButtonBaseElement",
101683
+ "name": "SbbButtonLikeBaseElement",
101752
101684
  "module": "core/base-elements/button-base-element.js"
101753
101685
  }
101754
101686
  },
101755
101687
  {
101756
101688
  "kind": "field",
101757
- "name": "formAssociated",
101758
- "type": {
101759
- "text": "boolean"
101760
- },
101761
- "privacy": "public",
101762
- "static": true,
101763
- "default": "true",
101764
- "inheritedFrom": {
101765
- "name": "SbbFormAssociatedMixin",
101766
- "module": "core/mixins/form-associated-mixin.js"
101767
- }
101768
- },
101769
- {
101770
- "kind": "field",
101771
- "name": "name",
101772
- "privacy": "public",
101773
- "description": "Name of the form element. Will be read from name attribute.",
101689
+ "name": "maybeDisabled",
101774
101690
  "type": {
101775
- "text": "string"
101691
+ "text": "boolean | undefined"
101776
101692
  },
101777
- "attribute": "name",
101693
+ "privacy": "protected",
101694
+ "readonly": true,
101778
101695
  "inheritedFrom": {
101779
- "name": "SbbFormAssociatedMixin",
101780
- "module": "core/mixins/form-associated-mixin.js"
101696
+ "name": "SbbActionBaseElement",
101697
+ "module": "core/base-elements/action-base-element.js"
101781
101698
  }
101782
101699
  },
101783
101700
  {
101784
101701
  "kind": "field",
101785
- "name": "validity",
101702
+ "name": "maybeDisabledInteractive",
101786
101703
  "type": {
101787
- "text": "ValidityState"
101704
+ "text": "boolean | undefined"
101788
101705
  },
101789
- "privacy": "public",
101790
- "description": "Returns the ValidityState object for this element.",
101706
+ "privacy": "protected",
101791
101707
  "readonly": true,
101792
101708
  "inheritedFrom": {
101793
- "name": "SbbFormAssociatedMixin",
101794
- "module": "core/mixins/form-associated-mixin.js"
101709
+ "name": "SbbActionBaseElement",
101710
+ "module": "core/base-elements/action-base-element.js"
101795
101711
  }
101796
101712
  },
101797
101713
  {
101798
- "kind": "field",
101799
- "name": "validationMessage",
101800
- "type": {
101801
- "text": "string"
101714
+ "kind": "method",
101715
+ "name": "setupBaseEventHandlers",
101716
+ "privacy": "protected",
101717
+ "return": {
101718
+ "type": {
101719
+ "text": "void"
101720
+ }
101802
101721
  },
101803
- "privacy": "public",
101804
- "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.",
101805
- "readonly": true,
101806
101722
  "inheritedFrom": {
101807
- "name": "SbbFormAssociatedMixin",
101808
- "module": "core/mixins/form-associated-mixin.js"
101723
+ "name": "SbbActionBaseElement",
101724
+ "module": "core/base-elements/action-base-element.js"
101809
101725
  }
101810
101726
  },
101811
101727
  {
101812
101728
  "kind": "field",
101813
- "name": "willValidate",
101729
+ "name": "_hydrationRequired",
101814
101730
  "type": {
101815
101731
  "text": "boolean"
101816
101732
  },
101817
- "privacy": "public",
101818
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
101819
- "readonly": true,
101733
+ "privacy": "private",
101734
+ "default": "!!this.shadowRoot",
101820
101735
  "inheritedFrom": {
101821
- "name": "SbbFormAssociatedMixin",
101822
- "module": "core/mixins/form-associated-mixin.js"
101736
+ "name": "SbbElement",
101737
+ "module": "core/base-elements/element.js"
101823
101738
  }
101824
101739
  },
101825
101740
  {
101826
101741
  "kind": "field",
101827
- "name": "_validityStates",
101742
+ "name": "_hydrationComplete",
101828
101743
  "privacy": "private",
101829
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
101744
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
101830
101745
  "inheritedFrom": {
101831
- "name": "SbbFormAssociatedMixin",
101832
- "module": "core/mixins/form-associated-mixin.js"
101746
+ "name": "SbbElement",
101747
+ "module": "core/base-elements/element.js"
101833
101748
  }
101834
101749
  },
101835
101750
  {
101836
101751
  "kind": "field",
101837
- "name": "formDisabled",
101752
+ "name": "_resolveHydration",
101838
101753
  "type": {
101839
- "text": "boolean"
101754
+ "text": "(hydrationRequired: boolean) => void"
101840
101755
  },
101841
- "privacy": "protected",
101842
- "default": "false",
101843
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
101756
+ "privacy": "private",
101844
101757
  "inheritedFrom": {
101845
- "name": "SbbFormAssociatedMixin",
101846
- "module": "core/mixins/form-associated-mixin.js"
101758
+ "name": "SbbElement",
101759
+ "module": "core/base-elements/element.js"
101847
101760
  }
101848
101761
  },
101849
101762
  {
101850
- "kind": "method",
101851
- "name": "checkValidity",
101852
- "privacy": "public",
101853
- "return": {
101854
- "type": {
101855
- "text": "boolean"
101856
- }
101763
+ "kind": "field",
101764
+ "name": "hydrationRequired",
101765
+ "type": {
101766
+ "text": "boolean"
101857
101767
  },
101858
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
101768
+ "privacy": "protected",
101769
+ "description": "Returns whether hydration is required and not completed.",
101770
+ "readonly": true,
101859
101771
  "inheritedFrom": {
101860
- "name": "SbbFormAssociatedMixin",
101861
- "module": "core/mixins/form-associated-mixin.js"
101862
- }
101863
- },
101864
- {
101865
- "kind": "method",
101866
- "name": "reportValidity",
101867
- "privacy": "public",
101868
- "return": {
101869
- "type": {
101870
- "text": "boolean"
101871
- }
101772
+ "name": "SbbElement",
101773
+ "module": "core/base-elements/element.js"
101872
101774
  },
101873
- "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.",
101874
- "inheritedFrom": {
101875
- "name": "SbbFormAssociatedMixin",
101876
- "module": "core/mixins/form-associated-mixin.js"
101877
- }
101775
+ "default": "!!this.shadowRoot"
101878
101776
  },
101879
101777
  {
101880
101778
  "kind": "method",
101881
- "name": "setCustomValidity",
101882
- "privacy": "public",
101779
+ "name": "toggleState",
101780
+ "privacy": "protected",
101883
101781
  "return": {
101884
101782
  "type": {
101885
101783
  "text": "void"
@@ -101887,235 +101785,400 @@
101887
101785
  },
101888
101786
  "parameters": [
101889
101787
  {
101890
- "name": "message",
101788
+ "name": "value",
101891
101789
  "type": {
101892
101790
  "text": "string"
101893
101791
  }
101792
+ },
101793
+ {
101794
+ "name": "force",
101795
+ "optional": true,
101796
+ "type": {
101797
+ "text": "boolean"
101798
+ }
101894
101799
  }
101895
101800
  ],
101896
- "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.",
101897
101801
  "inheritedFrom": {
101898
- "name": "SbbFormAssociatedMixin",
101899
- "module": "core/mixins/form-associated-mixin.js"
101802
+ "name": "SbbElement",
101803
+ "module": "core/base-elements/element.js"
101900
101804
  }
101901
101805
  },
101902
101806
  {
101903
- "kind": "method",
101904
- "name": "_hasDisabledAncestor",
101905
- "privacy": "private",
101906
- "return": {
101907
- "type": {
101908
- "text": "boolean"
101909
- }
101807
+ "kind": "field",
101808
+ "name": "['_$sbbElement$']",
101809
+ "type": {
101810
+ "text": "boolean"
101910
101811
  },
101812
+ "privacy": "public",
101813
+ "static": true,
101814
+ "default": "true",
101911
101815
  "inheritedFrom": {
101912
- "name": "SbbFormAssociatedMixin",
101913
- "module": "core/mixins/form-associated-mixin.js"
101816
+ "name": "SbbElement",
101817
+ "module": "core/base-elements/element.js"
101914
101818
  }
101915
101819
  },
101916
101820
  {
101917
- "kind": "method",
101918
- "name": "updateFormValue",
101919
- "privacy": "protected",
101920
- "return": {
101921
- "type": {
101922
- "text": "void"
101923
- }
101821
+ "kind": "field",
101822
+ "name": "_controllers",
101823
+ "type": {
101824
+ "text": "Set<SbbReactiveController> | undefined"
101924
101825
  },
101925
- "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",
101826
+ "privacy": "private",
101926
101827
  "inheritedFrom": {
101927
- "name": "SbbFormAssociatedMixin",
101928
- "module": "core/mixins/form-associated-mixin.js"
101828
+ "name": "SbbElement",
101829
+ "module": "core/base-elements/element.js"
101929
101830
  }
101930
- },
101831
+ }
101832
+ ],
101833
+ "mixins": [
101931
101834
  {
101932
- "kind": "method",
101933
- "name": "formState",
101934
- "privacy": "protected",
101935
- "return": {
101936
- "type": {
101937
- "text": "FormRestoreState"
101938
- }
101939
- },
101940
- "inheritedFrom": {
101941
- "name": "SbbFormAssociatedMixin",
101942
- "module": "core/mixins/form-associated-mixin.js"
101943
- }
101835
+ "name": "SbbBlockLinkCommonElementMixin",
101836
+ "module": "link/common/block-link-common.js"
101944
101837
  },
101945
101838
  {
101946
- "kind": "method",
101947
- "name": "setValidityFlag",
101948
- "privacy": "protected",
101949
- "return": {
101950
- "type": {
101951
- "text": "void"
101952
- }
101839
+ "name": "SbbDisabledTabIndexActionMixin",
101840
+ "module": "core/mixins.js"
101841
+ }
101842
+ ],
101843
+ "superclass": {
101844
+ "name": "SbbButtonBaseElement",
101845
+ "module": "core/base-elements.js"
101846
+ },
101847
+ "tagName": "sbb-block-link-button",
101848
+ "customElement": true,
101849
+ "attributes": [
101850
+ {
101851
+ "name": "icon-placement",
101852
+ "type": {
101853
+ "text": "SbbIconPlacement"
101953
101854
  },
101954
- "parameters": [
101955
- {
101956
- "name": "flag",
101957
- "type": {
101958
- "text": "T"
101959
- }
101960
- },
101961
- {
101962
- "name": "message",
101963
- "type": {
101964
- "text": "string"
101965
- }
101966
- },
101967
- {
101968
- "name": "flagValue",
101969
- "optional": true,
101970
- "type": {
101971
- "text": "ValidityStateFlags[T]"
101972
- }
101973
- }
101974
- ],
101975
- "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).",
101855
+ "default": "'start'",
101856
+ "description": "Moves the icon to the end of the component if set to true.",
101857
+ "fieldName": "iconPlacement",
101976
101858
  "inheritedFrom": {
101977
- "name": "SbbFormAssociatedMixin",
101978
- "module": "core/mixins/form-associated-mixin.js"
101859
+ "name": "SbbBlockLinkCommonElementMixin",
101860
+ "module": "link/common/block-link-common.js"
101979
101861
  }
101980
101862
  },
101981
101863
  {
101982
- "kind": "method",
101983
- "name": "removeValidityFlag",
101984
- "privacy": "protected",
101985
- "return": {
101986
- "type": {
101987
- "text": "void"
101988
- }
101864
+ "name": "size",
101865
+ "type": {
101866
+ "text": "SbbLinkSize"
101989
101867
  },
101990
- "parameters": [
101991
- {
101992
- "name": "flag",
101993
- "type": {
101994
- "text": "T"
101995
- }
101996
- }
101997
- ],
101998
- "description": "Removes the validity state flag entry and updates validity state.",
101868
+ "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
101869
+ "default": "'s' / 'xs' (lean)",
101870
+ "fieldName": "size",
101999
101871
  "inheritedFrom": {
102000
- "name": "SbbFormAssociatedMixin",
102001
- "module": "core/mixins/form-associated-mixin.js"
101872
+ "name": "SbbLinkCommonElementMixin",
101873
+ "module": "link/common/link-common.js"
102002
101874
  }
102003
101875
  },
102004
101876
  {
102005
- "kind": "method",
102006
- "name": "validate",
102007
- "privacy": "protected",
102008
- "return": {
102009
- "type": {
102010
- "text": "void"
102011
- }
101877
+ "name": "icon-name",
101878
+ "type": {
101879
+ "text": "string"
102012
101880
  },
102013
- "description": "To be called whenever the current element needs to be validated.",
101881
+ "default": "''",
101882
+ "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.",
101883
+ "fieldName": "iconName",
102014
101884
  "inheritedFrom": {
102015
- "name": "SbbFormAssociatedMixin",
102016
- "module": "core/mixins/form-associated-mixin.js"
101885
+ "name": "SbbIconNameMixin",
101886
+ "module": "icon/icon-name-mixin.js"
102017
101887
  }
102018
101888
  },
102019
101889
  {
102020
- "kind": "method",
102021
- "name": "shouldValidate",
102022
- "privacy": "protected",
102023
- "return": {
102024
- "type": {
102025
- "text": "boolean"
102026
- }
101890
+ "name": "disabled-interactive",
101891
+ "type": {
101892
+ "text": "boolean"
102027
101893
  },
102028
- "parameters": [
102029
- {
102030
- "name": "name",
102031
- "type": {
102032
- "text": "PropertyKey | undefined"
102033
- }
102034
- }
102035
- ],
102036
- "description": "Whether validation should be run on a property change with the given name.",
101894
+ "default": "false",
101895
+ "description": "Whether the button should be aria-disabled but stay interactive.",
101896
+ "fieldName": "disabledInteractive",
102037
101897
  "inheritedFrom": {
102038
- "name": "SbbFormAssociatedMixin",
102039
- "module": "core/mixins/form-associated-mixin.js"
101898
+ "name": "SbbDisabledInteractiveMixin",
101899
+ "module": "core/mixins/disabled-mixin.js"
102040
101900
  }
102041
101901
  },
102042
101902
  {
102043
- "kind": "method",
102044
- "name": "_setInternalValidity",
102045
- "privacy": "private",
102046
- "return": {
102047
- "type": {
102048
- "text": "void"
102049
- }
101903
+ "name": "disabled",
101904
+ "description": "Whether the component is disabled.",
101905
+ "default": "false",
101906
+ "type": {
101907
+ "text": "boolean"
102050
101908
  },
101909
+ "fieldName": "disabled",
102051
101910
  "inheritedFrom": {
102052
- "name": "SbbFormAssociatedMixin",
102053
- "module": "core/mixins/form-associated-mixin.js"
101911
+ "name": "SbbDisabledMixin",
101912
+ "module": "core/mixins/disabled-mixin.js"
102054
101913
  }
102055
101914
  },
102056
101915
  {
102057
- "kind": "field",
102058
- "name": "role",
101916
+ "name": "value",
102059
101917
  "type": {
102060
- "text": "ElementInternals['role']"
101918
+ "text": "string"
102061
101919
  },
102062
- "privacy": "public",
102063
- "static": true,
102064
- "readonly": true,
102065
- "default": "'button'",
101920
+ "default": "''",
101921
+ "description": "Value of the form element.",
101922
+ "fieldName": "value",
102066
101923
  "inheritedFrom": {
102067
- "name": "SbbButtonLikeBaseElement",
101924
+ "name": "SbbButtonBaseElement",
102068
101925
  "module": "core/base-elements/button-base-element.js"
102069
101926
  }
102070
101927
  },
102071
101928
  {
102072
- "kind": "field",
102073
- "name": "_preventScrollOnSpaceKeydown",
102074
- "privacy": "private",
102075
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
102076
- "parameters": [
102077
- {
102078
- "description": "The origin event.",
102079
- "name": "event"
102080
- }
102081
- ],
101929
+ "name": "type",
101930
+ "description": "The type attribute to use for the button.",
101931
+ "default": "'button'",
101932
+ "type": {
101933
+ "text": "SbbButtonType"
101934
+ },
101935
+ "fieldName": "type",
102082
101936
  "inheritedFrom": {
102083
- "name": "SbbButtonLikeBaseElement",
101937
+ "name": "SbbButtonBaseElement",
102084
101938
  "module": "core/base-elements/button-base-element.js"
102085
101939
  }
102086
101940
  },
102087
101941
  {
102088
- "kind": "field",
102089
- "name": "_removeActiveMarker",
102090
- "privacy": "private",
101942
+ "name": "form",
101943
+ "description": "The `<form>` element to associate the button with.",
101944
+ "type": {
101945
+ "text": "HTMLFormElement | null"
101946
+ },
101947
+ "fieldName": "form",
102091
101948
  "inheritedFrom": {
102092
- "name": "SbbButtonLikeBaseElement",
101949
+ "name": "SbbButtonBaseElement",
102093
101950
  "module": "core/base-elements/button-base-element.js"
102094
101951
  }
102095
101952
  },
102096
101953
  {
102097
- "kind": "field",
102098
- "name": "_dispatchClickEventOnSpaceKeyup",
102099
- "privacy": "private",
102100
- "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.",
102101
- "parameters": [
102102
- {
102103
- "description": "The origin event.",
102104
- "name": "event"
102105
- }
102106
- ],
101954
+ "name": "name",
101955
+ "description": "Name of the form element. Will be read from name attribute.",
101956
+ "type": {
101957
+ "text": "string"
101958
+ },
101959
+ "fieldName": "name",
102107
101960
  "inheritedFrom": {
102108
- "name": "SbbButtonLikeBaseElement",
102109
- "module": "core/base-elements/button-base-element.js"
102110
- }
101961
+ "name": "SbbFormAssociatedMixin",
101962
+ "module": "core/mixins/form-associated-mixin.js"
101963
+ }
101964
+ }
101965
+ ]
101966
+ }
101967
+ ],
101968
+ "exports": [
101969
+ {
101970
+ "kind": "js",
101971
+ "name": "SbbBlockLinkButtonElement",
101972
+ "declaration": {
101973
+ "name": "SbbBlockLinkButtonElement",
101974
+ "module": "link/block-link-button/block-link-button.component.js"
101975
+ }
101976
+ }
101977
+ ]
101978
+ },
101979
+ {
101980
+ "kind": "javascript-module",
101981
+ "path": "link/block-link-static/block-link-static.component.js",
101982
+ "declarations": [
101983
+ {
101984
+ "kind": "class",
101985
+ "description": "It displays a static link enhanced with the SBB Design.",
101986
+ "name": "SbbBlockLinkStaticElement",
101987
+ "slots": [
101988
+ {
101989
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
101990
+ "name": ""
101991
+ },
101992
+ {
101993
+ "description": "Slot used to display the icon, if one is set.",
101994
+ "name": "icon"
101995
+ }
101996
+ ],
101997
+ "members": [
101998
+ {
101999
+ "kind": "field",
102000
+ "name": "elementName",
102001
+ "type": {
102002
+ "text": "string"
102003
+ },
102004
+ "privacy": "public",
102005
+ "static": true,
102006
+ "readonly": true,
102007
+ "inheritedFrom": {
102008
+ "name": "SbbElement",
102009
+ "module": "core/base-elements/element.js"
102010
+ },
102011
+ "default": "'sbb-block-link-static'"
102111
102012
  },
102112
102013
  {
102113
102014
  "kind": "field",
102114
- "name": "_dispatchClickEvent",
102015
+ "name": "styles",
102016
+ "type": {
102017
+ "text": "CSSResultGroup"
102018
+ },
102019
+ "privacy": "public",
102020
+ "static": true,
102021
+ "default": "[super.styles, unsafeCSS(blockStyle)]",
102022
+ "inheritedFrom": {
102023
+ "name": "SbbLinkCommonElementMixin",
102024
+ "module": "link/common/link-common.js"
102025
+ }
102026
+ },
102027
+ {
102028
+ "kind": "field",
102029
+ "name": "iconPlacement",
102030
+ "type": {
102031
+ "text": "SbbIconPlacement"
102032
+ },
102033
+ "privacy": "public",
102034
+ "default": "'start'",
102035
+ "description": "Moves the icon to the end of the component if set to true.",
102036
+ "attribute": "icon-placement",
102037
+ "reflects": true,
102038
+ "inheritedFrom": {
102039
+ "name": "SbbBlockLinkCommonElementMixin",
102040
+ "module": "link/common/block-link-common.js"
102041
+ }
102042
+ },
102043
+ {
102044
+ "kind": "method",
102045
+ "name": "renderTemplate",
102046
+ "privacy": "protected",
102047
+ "return": {
102048
+ "type": {
102049
+ "text": "TemplateResult"
102050
+ }
102051
+ },
102052
+ "description": "Override this method to render the component template.",
102053
+ "inheritedFrom": {
102054
+ "name": "SbbActionBaseElement",
102055
+ "module": "core/base-elements/action-base-element.js"
102056
+ }
102057
+ },
102058
+ {
102059
+ "kind": "field",
102060
+ "name": "size",
102061
+ "type": {
102062
+ "text": "SbbLinkSize"
102063
+ },
102064
+ "privacy": "public",
102065
+ "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
102066
+ "default": "'s' / 'xs' (lean)",
102067
+ "attribute": "size",
102068
+ "reflects": true,
102069
+ "inheritedFrom": {
102070
+ "name": "SbbLinkCommonElementMixin",
102071
+ "module": "link/common/link-common.js"
102072
+ }
102073
+ },
102074
+ {
102075
+ "kind": "field",
102076
+ "name": "iconName",
102077
+ "type": {
102078
+ "text": "string"
102079
+ },
102080
+ "privacy": "public",
102081
+ "default": "''",
102082
+ "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.",
102083
+ "attribute": "icon-name",
102084
+ "inheritedFrom": {
102085
+ "name": "SbbIconNameMixin",
102086
+ "module": "icon/icon-name-mixin.js"
102087
+ }
102088
+ },
102089
+ {
102090
+ "kind": "method",
102091
+ "name": "renderIconSlot",
102092
+ "privacy": "protected",
102093
+ "return": {
102094
+ "type": {
102095
+ "text": "TemplateResult"
102096
+ }
102097
+ },
102098
+ "parameters": [
102099
+ {
102100
+ "name": "classname",
102101
+ "optional": true,
102102
+ "type": {
102103
+ "text": "string"
102104
+ }
102105
+ }
102106
+ ],
102107
+ "inheritedFrom": {
102108
+ "name": "SbbIconNameMixin",
102109
+ "module": "icon/icon-name-mixin.js"
102110
+ }
102111
+ },
102112
+ {
102113
+ "kind": "method",
102114
+ "name": "renderIconName",
102115
+ "privacy": "protected",
102116
+ "return": {
102117
+ "type": {
102118
+ "text": "string"
102119
+ }
102120
+ },
102121
+ "inheritedFrom": {
102122
+ "name": "SbbIconNameMixin",
102123
+ "module": "icon/icon-name-mixin.js"
102124
+ }
102125
+ },
102126
+ {
102127
+ "kind": "method",
102128
+ "name": "_renderIconName",
102115
102129
  "privacy": "private",
102130
+ "return": {
102131
+ "type": {
102132
+ "text": "string"
102133
+ }
102134
+ },
102116
102135
  "inheritedFrom": {
102117
- "name": "SbbButtonLikeBaseElement",
102118
- "module": "core/base-elements/button-base-element.js"
102136
+ "name": "SbbIconNameMixin",
102137
+ "module": "icon/icon-name-mixin.js"
102138
+ }
102139
+ },
102140
+ {
102141
+ "kind": "field",
102142
+ "name": "disabled",
102143
+ "privacy": "public",
102144
+ "description": "Whether the component is disabled.",
102145
+ "default": "false",
102146
+ "type": {
102147
+ "text": "boolean"
102148
+ },
102149
+ "attribute": "disabled",
102150
+ "reflects": true,
102151
+ "inheritedFrom": {
102152
+ "name": "SbbDisabledMixin",
102153
+ "module": "core/mixins/disabled-mixin.js"
102154
+ }
102155
+ },
102156
+ {
102157
+ "kind": "field",
102158
+ "name": "#disabled",
102159
+ "privacy": "private",
102160
+ "type": {
102161
+ "text": "boolean"
102162
+ },
102163
+ "default": "false",
102164
+ "inheritedFrom": {
102165
+ "name": "SbbDisabledMixin",
102166
+ "module": "core/mixins/disabled-mixin.js"
102167
+ }
102168
+ },
102169
+ {
102170
+ "kind": "method",
102171
+ "name": "isDisabledExternally",
102172
+ "privacy": "protected",
102173
+ "return": {
102174
+ "type": {
102175
+ "text": "boolean"
102176
+ }
102177
+ },
102178
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
102179
+ "inheritedFrom": {
102180
+ "name": "SbbDisabledMixin",
102181
+ "module": "core/mixins/disabled-mixin.js"
102119
102182
  }
102120
102183
  },
102121
102184
  {
@@ -102270,15 +102333,15 @@
102270
102333
  "module": "link/common/block-link-common.js"
102271
102334
  },
102272
102335
  {
102273
- "name": "SbbDisabledTabIndexActionMixin",
102336
+ "name": "SbbDisabledMixin",
102274
102337
  "module": "core/mixins.js"
102275
102338
  }
102276
102339
  ],
102277
102340
  "superclass": {
102278
- "name": "SbbButtonBaseElement",
102341
+ "name": "SbbActionBaseElement",
102279
102342
  "module": "core/base-elements.js"
102280
102343
  },
102281
- "tagName": "sbb-block-link-button",
102344
+ "tagName": "sbb-block-link-static",
102282
102345
  "customElement": true,
102283
102346
  "attributes": [
102284
102347
  {
@@ -102320,19 +102383,6 @@
102320
102383
  "module": "icon/icon-name-mixin.js"
102321
102384
  }
102322
102385
  },
102323
- {
102324
- "name": "disabled-interactive",
102325
- "type": {
102326
- "text": "boolean"
102327
- },
102328
- "default": "false",
102329
- "description": "Whether the button should be aria-disabled but stay interactive.",
102330
- "fieldName": "disabledInteractive",
102331
- "inheritedFrom": {
102332
- "name": "SbbDisabledInteractiveMixin",
102333
- "module": "core/mixins/disabled-mixin.js"
102334
- }
102335
- },
102336
102386
  {
102337
102387
  "name": "disabled",
102338
102388
  "description": "Whether the component is disabled.",
@@ -102345,56 +102395,6 @@
102345
102395
  "name": "SbbDisabledMixin",
102346
102396
  "module": "core/mixins/disabled-mixin.js"
102347
102397
  }
102348
- },
102349
- {
102350
- "name": "value",
102351
- "type": {
102352
- "text": "string"
102353
- },
102354
- "default": "''",
102355
- "description": "Value of the form element.",
102356
- "fieldName": "value",
102357
- "inheritedFrom": {
102358
- "name": "SbbButtonBaseElement",
102359
- "module": "core/base-elements/button-base-element.js"
102360
- }
102361
- },
102362
- {
102363
- "name": "type",
102364
- "description": "The type attribute to use for the button.",
102365
- "default": "'button'",
102366
- "type": {
102367
- "text": "SbbButtonType"
102368
- },
102369
- "fieldName": "type",
102370
- "inheritedFrom": {
102371
- "name": "SbbButtonBaseElement",
102372
- "module": "core/base-elements/button-base-element.js"
102373
- }
102374
- },
102375
- {
102376
- "name": "form",
102377
- "description": "The `<form>` element to associate the button with.",
102378
- "type": {
102379
- "text": "HTMLFormElement | null"
102380
- },
102381
- "fieldName": "form",
102382
- "inheritedFrom": {
102383
- "name": "SbbButtonBaseElement",
102384
- "module": "core/base-elements/button-base-element.js"
102385
- }
102386
- },
102387
- {
102388
- "name": "name",
102389
- "description": "Name of the form element. Will be read from name attribute.",
102390
- "type": {
102391
- "text": "string"
102392
- },
102393
- "fieldName": "name",
102394
- "inheritedFrom": {
102395
- "name": "SbbFormAssociatedMixin",
102396
- "module": "core/mixins/form-associated-mixin.js"
102397
- }
102398
102398
  }
102399
102399
  ]
102400
102400
  }
@@ -102402,10 +102402,10 @@
102402
102402
  "exports": [
102403
102403
  {
102404
102404
  "kind": "js",
102405
- "name": "SbbBlockLinkButtonElement",
102405
+ "name": "SbbBlockLinkStaticElement",
102406
102406
  "declaration": {
102407
- "name": "SbbBlockLinkButtonElement",
102408
- "module": "link/block-link-button/block-link-button.component.js"
102407
+ "name": "SbbBlockLinkStaticElement",
102408
+ "module": "link/block-link-static/block-link-static.component.js"
102409
102409
  }
102410
102410
  }
102411
102411
  ]
@@ -107243,12 +107243,12 @@
107243
107243
  },
107244
107244
  {
107245
107245
  "kind": "javascript-module",
107246
- "path": "menu/menu-button/menu-button.component.js",
107246
+ "path": "menu/menu-link/menu-link.component.js",
107247
107247
  "declarations": [
107248
107248
  {
107249
107249
  "kind": "class",
107250
- "description": "It displays a button element that can be used in the `sbb-menu` component.",
107251
- "name": "SbbMenuButtonElement",
107250
+ "description": "It displays a link element that can be used in the `sbb-menu` component.",
107251
+ "name": "SbbMenuLinkElement",
107252
107252
  "cssProperties": [
107253
107253
  {
107254
107254
  "description": "Can be used to modify horizontal padding.",
@@ -107258,7 +107258,7 @@
107258
107258
  ],
107259
107259
  "slots": [
107260
107260
  {
107261
- "description": "Use the unnamed slot to add content to the `sbb-menu-button`.",
107261
+ "description": "Use the unnamed slot to add content to the `sbb-menu-link`.",
107262
107262
  "name": ""
107263
107263
  },
107264
107264
  {
@@ -107280,21 +107280,20 @@
107280
107280
  "name": "SbbElement",
107281
107281
  "module": "core/base-elements/element.js"
107282
107282
  },
107283
- "default": "'sbb-menu-button'"
107283
+ "default": "'sbb-menu-link'"
107284
107284
  },
107285
107285
  {
107286
107286
  "kind": "field",
107287
- "name": "role",
107287
+ "name": "anchorRole",
107288
107288
  "type": {
107289
- "text": "ElementInternals['role']"
107289
+ "text": "string"
107290
107290
  },
107291
- "privacy": "public",
107292
- "static": true,
107291
+ "privacy": "protected",
107293
107292
  "readonly": true,
107294
107293
  "default": "'menuitem'",
107295
107294
  "inheritedFrom": {
107296
- "name": "SbbButtonLikeBaseElement",
107297
- "module": "core/base-elements/button-base-element.js"
107295
+ "name": "SbbLinkBaseElement",
107296
+ "module": "core/base-elements/link-base-element.js"
107298
107297
  }
107299
107298
  },
107300
107299
  {
@@ -107313,50 +107312,6 @@
107313
107312
  "module": "core/mixins/disabled-mixin.js"
107314
107313
  }
107315
107314
  },
107316
- {
107317
- "kind": "field",
107318
- "name": "disabled",
107319
- "privacy": "public",
107320
- "description": "Whether the component is disabled.",
107321
- "default": "false",
107322
- "type": {
107323
- "text": "boolean"
107324
- },
107325
- "attribute": "disabled",
107326
- "reflects": true,
107327
- "inheritedFrom": {
107328
- "name": "SbbDisabledMixin",
107329
- "module": "core/mixins/disabled-mixin.js"
107330
- }
107331
- },
107332
- {
107333
- "kind": "field",
107334
- "name": "#disabled",
107335
- "privacy": "private",
107336
- "type": {
107337
- "text": "boolean"
107338
- },
107339
- "default": "false",
107340
- "inheritedFrom": {
107341
- "name": "SbbDisabledMixin",
107342
- "module": "core/mixins/disabled-mixin.js"
107343
- }
107344
- },
107345
- {
107346
- "kind": "method",
107347
- "name": "isDisabledExternally",
107348
- "privacy": "protected",
107349
- "return": {
107350
- "type": {
107351
- "text": "boolean"
107352
- }
107353
- },
107354
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
107355
- "inheritedFrom": {
107356
- "name": "SbbDisabledMixin",
107357
- "module": "core/mixins/disabled-mixin.js"
107358
- }
107359
- },
107360
107315
  {
107361
107316
  "kind": "field",
107362
107317
  "name": "styles",
@@ -107454,243 +107409,277 @@
107454
107409
  },
107455
107410
  {
107456
107411
  "kind": "field",
107457
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
107412
+ "name": "disabled",
107413
+ "privacy": "public",
107414
+ "description": "Whether the component is disabled.",
107415
+ "default": "false",
107458
107416
  "type": {
107459
- "text": "array"
107417
+ "text": "boolean"
107460
107418
  },
107419
+ "attribute": "disabled",
107420
+ "reflects": true,
107421
+ "inheritedFrom": {
107422
+ "name": "SbbDisabledMixin",
107423
+ "module": "core/mixins/disabled-mixin.js"
107424
+ }
107425
+ },
107426
+ {
107427
+ "kind": "field",
107428
+ "name": "#disabled",
107461
107429
  "privacy": "private",
107462
- "readonly": true,
107463
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
107430
+ "type": {
107431
+ "text": "boolean"
107432
+ },
107433
+ "default": "false",
107464
107434
  "inheritedFrom": {
107465
- "name": "SbbButtonBaseElement",
107466
- "module": "core/base-elements/button-base-element.js"
107435
+ "name": "SbbDisabledMixin",
107436
+ "module": "core/mixins/disabled-mixin.js"
107437
+ }
107438
+ },
107439
+ {
107440
+ "kind": "method",
107441
+ "name": "isDisabledExternally",
107442
+ "privacy": "protected",
107443
+ "return": {
107444
+ "type": {
107445
+ "text": "boolean"
107446
+ }
107447
+ },
107448
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
107449
+ "inheritedFrom": {
107450
+ "name": "SbbDisabledMixin",
107451
+ "module": "core/mixins/disabled-mixin.js"
107467
107452
  }
107468
107453
  },
107469
107454
  {
107470
107455
  "kind": "field",
107471
- "name": "value",
107456
+ "name": "href",
107472
107457
  "type": {
107473
107458
  "text": "string"
107474
107459
  },
107475
107460
  "privacy": "public",
107461
+ "default": "''",
107462
+ "description": "The href value you want to link to.",
107463
+ "attribute": "href",
107464
+ "reflects": true,
107476
107465
  "inheritedFrom": {
107477
- "name": "SbbButtonBaseElement",
107478
- "module": "core/base-elements/button-base-element.js"
107466
+ "name": "SbbLinkBaseElement",
107467
+ "module": "core/base-elements/link-base-element.js"
107468
+ }
107469
+ },
107470
+ {
107471
+ "kind": "field",
107472
+ "name": "target",
107473
+ "type": {
107474
+ "text": "LinkTargetType | string"
107479
107475
  },
107476
+ "privacy": "public",
107480
107477
  "default": "''",
107481
- "description": "Value of the form element.",
107482
- "attribute": "value"
107478
+ "description": "Where to display the linked URL.",
107479
+ "attribute": "target",
107480
+ "reflects": true,
107481
+ "inheritedFrom": {
107482
+ "name": "SbbLinkBaseElement",
107483
+ "module": "core/base-elements/link-base-element.js"
107484
+ }
107483
107485
  },
107484
107486
  {
107485
107487
  "kind": "field",
107486
- "name": "type",
107487
- "privacy": "public",
107488
- "description": "The type attribute to use for the button.",
107489
- "default": "'button'",
107488
+ "name": "rel",
107490
107489
  "type": {
107491
- "text": "SbbButtonType"
107490
+ "text": "string"
107492
107491
  },
107493
- "attribute": "type",
107492
+ "privacy": "public",
107493
+ "default": "''",
107494
+ "description": "The relationship of the linked URL as space-separated link types.",
107495
+ "attribute": "rel",
107496
+ "reflects": true,
107494
107497
  "inheritedFrom": {
107495
- "name": "SbbButtonBaseElement",
107496
- "module": "core/base-elements/button-base-element.js"
107498
+ "name": "SbbLinkBaseElement",
107499
+ "module": "core/base-elements/link-base-element.js"
107497
107500
  }
107498
107501
  },
107499
107502
  {
107500
107503
  "kind": "field",
107501
- "name": "form",
107504
+ "name": "download",
107502
107505
  "type": {
107503
- "text": "HTMLFormElement | null"
107506
+ "text": "boolean"
107504
107507
  },
107505
107508
  "privacy": "public",
107506
- "description": "The `<form>` element to associate the button with.",
107509
+ "default": "false",
107510
+ "description": "Whether the browser will show the download dialog on click.",
107511
+ "attribute": "download",
107512
+ "reflects": true,
107507
107513
  "inheritedFrom": {
107508
- "name": "SbbButtonBaseElement",
107509
- "module": "core/base-elements/button-base-element.js"
107514
+ "name": "SbbLinkBaseElement",
107515
+ "module": "core/base-elements/link-base-element.js"
107516
+ }
107517
+ },
107518
+ {
107519
+ "kind": "field",
107520
+ "name": "accessibilityLabel",
107521
+ "type": {
107522
+ "text": "string"
107510
107523
  },
107511
- "attribute": "form"
107524
+ "privacy": "public",
107525
+ "default": "''",
107526
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
107527
+ "attribute": "accessibility-label",
107528
+ "inheritedFrom": {
107529
+ "name": "SbbLinkBaseElement",
107530
+ "module": "core/base-elements/link-base-element.js"
107531
+ }
107512
107532
  },
107513
107533
  {
107514
107534
  "kind": "field",
107515
- "name": "_formId",
107535
+ "name": "accessibilityCurrent",
107516
107536
  "type": {
107517
107537
  "text": "string"
107518
107538
  },
107519
- "privacy": "private",
107539
+ "privacy": "public",
107520
107540
  "default": "''",
107541
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
107542
+ "attribute": "accessibility-current",
107521
107543
  "inheritedFrom": {
107522
- "name": "SbbButtonBaseElement",
107523
- "module": "core/base-elements/button-base-element.js"
107544
+ "name": "SbbLinkBaseElement",
107545
+ "module": "core/base-elements/link-base-element.js"
107524
107546
  }
107525
107547
  },
107526
107548
  {
107527
107549
  "kind": "field",
107528
- "name": "_handleButtonClick",
107550
+ "name": "language",
107551
+ "privacy": "protected",
107552
+ "default": "new SbbLanguageController(this)",
107553
+ "inheritedFrom": {
107554
+ "name": "SbbLinkBaseElement",
107555
+ "module": "core/base-elements/link-base-element.js"
107556
+ }
107557
+ },
107558
+ {
107559
+ "kind": "field",
107560
+ "name": "_evaluateRelAttribute",
107529
107561
  "privacy": "private",
107530
107562
  "inheritedFrom": {
107531
- "name": "SbbButtonBaseElement",
107532
- "module": "core/base-elements/button-base-element.js"
107563
+ "name": "SbbLinkBaseElement",
107564
+ "module": "core/base-elements/link-base-element.js"
107533
107565
  }
107534
107566
  },
107535
107567
  {
107536
107568
  "kind": "method",
107537
- "name": "_requestSubmit",
107538
- "privacy": "private",
107569
+ "name": "renderLink",
107570
+ "privacy": "protected",
107539
107571
  "return": {
107540
107572
  "type": {
107541
- "text": "void"
107573
+ "text": "TemplateResult"
107542
107574
  }
107543
107575
  },
107544
107576
  "parameters": [
107545
107577
  {
107546
- "name": "form",
107578
+ "name": "renderContent",
107547
107579
  "type": {
107548
- "text": "HTMLFormElement"
107580
+ "text": "TemplateResult"
107549
107581
  }
107550
107582
  }
107551
107583
  ],
107552
107584
  "inheritedFrom": {
107553
- "name": "SbbButtonBaseElement",
107554
- "module": "core/base-elements/button-base-element.js"
107555
- }
107556
- },
107557
- {
107558
- "kind": "field",
107559
- "name": "_formKeyDown",
107560
- "privacy": "private",
107561
- "inheritedFrom": {
107562
- "name": "SbbButtonBaseElement",
107563
- "module": "core/base-elements/button-base-element.js"
107564
- }
107565
- },
107566
- {
107567
- "kind": "field",
107568
- "name": "formAssociated",
107569
- "type": {
107570
- "text": "boolean"
107571
- },
107572
- "privacy": "public",
107573
- "static": true,
107574
- "default": "true",
107575
- "inheritedFrom": {
107576
- "name": "SbbFormAssociatedMixin",
107577
- "module": "core/mixins/form-associated-mixin.js"
107585
+ "name": "SbbLinkBaseElement",
107586
+ "module": "core/base-elements/link-base-element.js"
107578
107587
  }
107579
107588
  },
107580
107589
  {
107581
107590
  "kind": "field",
107582
- "name": "name",
107583
- "privacy": "public",
107584
- "description": "Name of the form element. Will be read from name attribute.",
107591
+ "name": "maybeDisabled",
107585
107592
  "type": {
107586
- "text": "string"
107593
+ "text": "boolean | undefined"
107587
107594
  },
107588
- "attribute": "name",
107595
+ "privacy": "protected",
107596
+ "readonly": true,
107589
107597
  "inheritedFrom": {
107590
- "name": "SbbFormAssociatedMixin",
107591
- "module": "core/mixins/form-associated-mixin.js"
107598
+ "name": "SbbActionBaseElement",
107599
+ "module": "core/base-elements/action-base-element.js"
107592
107600
  }
107593
107601
  },
107594
107602
  {
107595
107603
  "kind": "field",
107596
- "name": "validity",
107604
+ "name": "maybeDisabledInteractive",
107597
107605
  "type": {
107598
- "text": "ValidityState"
107606
+ "text": "boolean | undefined"
107599
107607
  },
107600
- "privacy": "public",
107601
- "description": "Returns the ValidityState object for this element.",
107608
+ "privacy": "protected",
107602
107609
  "readonly": true,
107603
107610
  "inheritedFrom": {
107604
- "name": "SbbFormAssociatedMixin",
107605
- "module": "core/mixins/form-associated-mixin.js"
107611
+ "name": "SbbActionBaseElement",
107612
+ "module": "core/base-elements/action-base-element.js"
107606
107613
  }
107607
107614
  },
107608
107615
  {
107609
- "kind": "field",
107610
- "name": "validationMessage",
107611
- "type": {
107612
- "text": "string"
107616
+ "kind": "method",
107617
+ "name": "setupBaseEventHandlers",
107618
+ "privacy": "protected",
107619
+ "return": {
107620
+ "type": {
107621
+ "text": "void"
107622
+ }
107613
107623
  },
107614
- "privacy": "public",
107615
- "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.",
107616
- "readonly": true,
107617
107624
  "inheritedFrom": {
107618
- "name": "SbbFormAssociatedMixin",
107619
- "module": "core/mixins/form-associated-mixin.js"
107625
+ "name": "SbbActionBaseElement",
107626
+ "module": "core/base-elements/action-base-element.js"
107620
107627
  }
107621
107628
  },
107622
107629
  {
107623
107630
  "kind": "field",
107624
- "name": "willValidate",
107631
+ "name": "_hydrationRequired",
107625
107632
  "type": {
107626
107633
  "text": "boolean"
107627
107634
  },
107628
- "privacy": "public",
107629
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
107630
- "readonly": true,
107635
+ "privacy": "private",
107636
+ "default": "!!this.shadowRoot",
107631
107637
  "inheritedFrom": {
107632
- "name": "SbbFormAssociatedMixin",
107633
- "module": "core/mixins/form-associated-mixin.js"
107638
+ "name": "SbbElement",
107639
+ "module": "core/base-elements/element.js"
107634
107640
  }
107635
107641
  },
107636
107642
  {
107637
107643
  "kind": "field",
107638
- "name": "_validityStates",
107644
+ "name": "_hydrationComplete",
107639
107645
  "privacy": "private",
107640
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
107646
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
107641
107647
  "inheritedFrom": {
107642
- "name": "SbbFormAssociatedMixin",
107643
- "module": "core/mixins/form-associated-mixin.js"
107648
+ "name": "SbbElement",
107649
+ "module": "core/base-elements/element.js"
107644
107650
  }
107645
107651
  },
107646
107652
  {
107647
107653
  "kind": "field",
107648
- "name": "formDisabled",
107654
+ "name": "_resolveHydration",
107649
107655
  "type": {
107650
- "text": "boolean"
107656
+ "text": "(hydrationRequired: boolean) => void"
107651
107657
  },
107652
- "privacy": "protected",
107653
- "default": "false",
107654
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
107658
+ "privacy": "private",
107655
107659
  "inheritedFrom": {
107656
- "name": "SbbFormAssociatedMixin",
107657
- "module": "core/mixins/form-associated-mixin.js"
107660
+ "name": "SbbElement",
107661
+ "module": "core/base-elements/element.js"
107658
107662
  }
107659
107663
  },
107660
107664
  {
107661
- "kind": "method",
107662
- "name": "checkValidity",
107663
- "privacy": "public",
107664
- "return": {
107665
- "type": {
107666
- "text": "boolean"
107667
- }
107665
+ "kind": "field",
107666
+ "name": "hydrationRequired",
107667
+ "type": {
107668
+ "text": "boolean"
107668
107669
  },
107669
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
107670
+ "privacy": "protected",
107671
+ "description": "Returns whether hydration is required and not completed.",
107672
+ "readonly": true,
107670
107673
  "inheritedFrom": {
107671
- "name": "SbbFormAssociatedMixin",
107672
- "module": "core/mixins/form-associated-mixin.js"
107673
- }
107674
- },
107675
- {
107676
- "kind": "method",
107677
- "name": "reportValidity",
107678
- "privacy": "public",
107679
- "return": {
107680
- "type": {
107681
- "text": "boolean"
107682
- }
107674
+ "name": "SbbElement",
107675
+ "module": "core/base-elements/element.js"
107683
107676
  },
107684
- "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.",
107685
- "inheritedFrom": {
107686
- "name": "SbbFormAssociatedMixin",
107687
- "module": "core/mixins/form-associated-mixin.js"
107688
- }
107677
+ "default": "!!this.shadowRoot"
107689
107678
  },
107690
107679
  {
107691
107680
  "kind": "method",
107692
- "name": "setCustomValidity",
107693
- "privacy": "public",
107681
+ "name": "toggleState",
107682
+ "privacy": "protected",
107694
107683
  "return": {
107695
107684
  "type": {
107696
107685
  "text": "void"
@@ -107698,208 +107687,250 @@
107698
107687
  },
107699
107688
  "parameters": [
107700
107689
  {
107701
- "name": "message",
107690
+ "name": "value",
107702
107691
  "type": {
107703
107692
  "text": "string"
107704
107693
  }
107694
+ },
107695
+ {
107696
+ "name": "force",
107697
+ "optional": true,
107698
+ "type": {
107699
+ "text": "boolean"
107700
+ }
107705
107701
  }
107706
107702
  ],
107707
- "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.",
107708
107703
  "inheritedFrom": {
107709
- "name": "SbbFormAssociatedMixin",
107710
- "module": "core/mixins/form-associated-mixin.js"
107704
+ "name": "SbbElement",
107705
+ "module": "core/base-elements/element.js"
107711
107706
  }
107712
107707
  },
107713
107708
  {
107714
- "kind": "method",
107715
- "name": "_hasDisabledAncestor",
107709
+ "kind": "field",
107710
+ "name": "['_$sbbElement$']",
107711
+ "type": {
107712
+ "text": "boolean"
107713
+ },
107714
+ "privacy": "public",
107715
+ "static": true,
107716
+ "default": "true",
107717
+ "inheritedFrom": {
107718
+ "name": "SbbElement",
107719
+ "module": "core/base-elements/element.js"
107720
+ }
107721
+ },
107722
+ {
107723
+ "kind": "field",
107724
+ "name": "_controllers",
107725
+ "type": {
107726
+ "text": "Set<SbbReactiveController> | undefined"
107727
+ },
107716
107728
  "privacy": "private",
107717
- "return": {
107718
- "type": {
107719
- "text": "boolean"
107720
- }
107729
+ "inheritedFrom": {
107730
+ "name": "SbbElement",
107731
+ "module": "core/base-elements/element.js"
107732
+ }
107733
+ }
107734
+ ],
107735
+ "mixins": [
107736
+ {
107737
+ "name": "SbbDisabledInteractiveMixin",
107738
+ "module": "core/mixins.js"
107739
+ },
107740
+ {
107741
+ "name": "SbbMenuActionCommonElementMixin",
107742
+ "module": "menu/common/menu-action-common.js"
107743
+ }
107744
+ ],
107745
+ "superclass": {
107746
+ "name": "SbbLinkBaseElement",
107747
+ "module": "core/base-elements.js"
107748
+ },
107749
+ "tagName": "sbb-menu-link",
107750
+ "customElement": true,
107751
+ "attributes": [
107752
+ {
107753
+ "name": "disabled-interactive",
107754
+ "type": {
107755
+ "text": "boolean"
107721
107756
  },
107757
+ "default": "false",
107758
+ "description": "Whether the button should be aria-disabled but stay interactive.",
107759
+ "fieldName": "disabledInteractive",
107722
107760
  "inheritedFrom": {
107723
- "name": "SbbFormAssociatedMixin",
107724
- "module": "core/mixins/form-associated-mixin.js"
107761
+ "name": "SbbDisabledInteractiveMixin",
107762
+ "module": "core/mixins/disabled-mixin.js"
107725
107763
  }
107726
107764
  },
107727
107765
  {
107728
- "kind": "method",
107729
- "name": "updateFormValue",
107730
- "privacy": "protected",
107731
- "return": {
107732
- "type": {
107733
- "text": "void"
107734
- }
107766
+ "name": "icon-name",
107767
+ "type": {
107768
+ "text": "string"
107735
107769
  },
107736
- "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",
107770
+ "default": "''",
107771
+ "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.",
107772
+ "fieldName": "iconName",
107737
107773
  "inheritedFrom": {
107738
- "name": "SbbFormAssociatedMixin",
107739
- "module": "core/mixins/form-associated-mixin.js"
107774
+ "name": "SbbIconNameMixin",
107775
+ "module": "icon/icon-name-mixin.js"
107740
107776
  }
107741
107777
  },
107742
107778
  {
107743
- "kind": "method",
107744
- "name": "formState",
107745
- "privacy": "protected",
107746
- "return": {
107747
- "type": {
107748
- "text": "FormRestoreState"
107749
- }
107779
+ "name": "disabled",
107780
+ "description": "Whether the component is disabled.",
107781
+ "default": "false",
107782
+ "type": {
107783
+ "text": "boolean"
107750
107784
  },
107785
+ "fieldName": "disabled",
107751
107786
  "inheritedFrom": {
107752
- "name": "SbbFormAssociatedMixin",
107753
- "module": "core/mixins/form-associated-mixin.js"
107787
+ "name": "SbbDisabledMixin",
107788
+ "module": "core/mixins/disabled-mixin.js"
107754
107789
  }
107755
107790
  },
107756
107791
  {
107757
- "kind": "method",
107758
- "name": "setValidityFlag",
107759
- "privacy": "protected",
107760
- "return": {
107761
- "type": {
107762
- "text": "void"
107763
- }
107792
+ "name": "href",
107793
+ "type": {
107794
+ "text": "string"
107764
107795
  },
107765
- "parameters": [
107766
- {
107767
- "name": "flag",
107768
- "type": {
107769
- "text": "T"
107770
- }
107771
- },
107772
- {
107773
- "name": "message",
107774
- "type": {
107775
- "text": "string"
107776
- }
107777
- },
107778
- {
107779
- "name": "flagValue",
107780
- "optional": true,
107781
- "type": {
107782
- "text": "ValidityStateFlags[T]"
107783
- }
107784
- }
107785
- ],
107786
- "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).",
107796
+ "default": "''",
107797
+ "description": "The href value you want to link to.",
107798
+ "fieldName": "href",
107787
107799
  "inheritedFrom": {
107788
- "name": "SbbFormAssociatedMixin",
107789
- "module": "core/mixins/form-associated-mixin.js"
107800
+ "name": "SbbLinkBaseElement",
107801
+ "module": "core/base-elements/link-base-element.js"
107790
107802
  }
107791
107803
  },
107792
107804
  {
107793
- "kind": "method",
107794
- "name": "removeValidityFlag",
107795
- "privacy": "protected",
107796
- "return": {
107797
- "type": {
107798
- "text": "void"
107799
- }
107805
+ "name": "target",
107806
+ "type": {
107807
+ "text": "LinkTargetType | string"
107800
107808
  },
107801
- "parameters": [
107802
- {
107803
- "name": "flag",
107804
- "type": {
107805
- "text": "T"
107806
- }
107807
- }
107808
- ],
107809
- "description": "Removes the validity state flag entry and updates validity state.",
107809
+ "default": "''",
107810
+ "description": "Where to display the linked URL.",
107811
+ "fieldName": "target",
107810
107812
  "inheritedFrom": {
107811
- "name": "SbbFormAssociatedMixin",
107812
- "module": "core/mixins/form-associated-mixin.js"
107813
+ "name": "SbbLinkBaseElement",
107814
+ "module": "core/base-elements/link-base-element.js"
107813
107815
  }
107814
107816
  },
107815
107817
  {
107816
- "kind": "method",
107817
- "name": "validate",
107818
- "privacy": "protected",
107819
- "return": {
107820
- "type": {
107821
- "text": "void"
107822
- }
107818
+ "name": "rel",
107819
+ "type": {
107820
+ "text": "string"
107823
107821
  },
107824
- "description": "To be called whenever the current element needs to be validated.",
107822
+ "default": "''",
107823
+ "description": "The relationship of the linked URL as space-separated link types.",
107824
+ "fieldName": "rel",
107825
107825
  "inheritedFrom": {
107826
- "name": "SbbFormAssociatedMixin",
107827
- "module": "core/mixins/form-associated-mixin.js"
107826
+ "name": "SbbLinkBaseElement",
107827
+ "module": "core/base-elements/link-base-element.js"
107828
107828
  }
107829
107829
  },
107830
107830
  {
107831
- "kind": "method",
107832
- "name": "shouldValidate",
107833
- "privacy": "protected",
107834
- "return": {
107835
- "type": {
107836
- "text": "boolean"
107837
- }
107831
+ "name": "download",
107832
+ "type": {
107833
+ "text": "boolean"
107838
107834
  },
107839
- "parameters": [
107840
- {
107841
- "name": "name",
107842
- "type": {
107843
- "text": "PropertyKey | undefined"
107844
- }
107845
- }
107846
- ],
107847
- "description": "Whether validation should be run on a property change with the given name.",
107835
+ "default": "false",
107836
+ "description": "Whether the browser will show the download dialog on click.",
107837
+ "fieldName": "download",
107848
107838
  "inheritedFrom": {
107849
- "name": "SbbFormAssociatedMixin",
107850
- "module": "core/mixins/form-associated-mixin.js"
107839
+ "name": "SbbLinkBaseElement",
107840
+ "module": "core/base-elements/link-base-element.js"
107851
107841
  }
107852
107842
  },
107853
107843
  {
107854
- "kind": "method",
107855
- "name": "_setInternalValidity",
107856
- "privacy": "private",
107857
- "return": {
107858
- "type": {
107859
- "text": "void"
107860
- }
107844
+ "name": "accessibility-label",
107845
+ "type": {
107846
+ "text": "string"
107861
107847
  },
107848
+ "default": "''",
107849
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
107850
+ "fieldName": "accessibilityLabel",
107862
107851
  "inheritedFrom": {
107863
- "name": "SbbFormAssociatedMixin",
107864
- "module": "core/mixins/form-associated-mixin.js"
107852
+ "name": "SbbLinkBaseElement",
107853
+ "module": "core/base-elements/link-base-element.js"
107865
107854
  }
107866
107855
  },
107867
107856
  {
107868
- "kind": "field",
107869
- "name": "_preventScrollOnSpaceKeydown",
107870
- "privacy": "private",
107871
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
107872
- "parameters": [
107873
- {
107874
- "description": "The origin event.",
107875
- "name": "event"
107876
- }
107877
- ],
107857
+ "name": "accessibility-current",
107858
+ "type": {
107859
+ "text": "string"
107860
+ },
107861
+ "default": "''",
107862
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
107863
+ "fieldName": "accessibilityCurrent",
107878
107864
  "inheritedFrom": {
107879
- "name": "SbbButtonLikeBaseElement",
107880
- "module": "core/base-elements/button-base-element.js"
107865
+ "name": "SbbLinkBaseElement",
107866
+ "module": "core/base-elements/link-base-element.js"
107881
107867
  }
107868
+ }
107869
+ ]
107870
+ }
107871
+ ],
107872
+ "exports": [
107873
+ {
107874
+ "kind": "js",
107875
+ "name": "SbbMenuLinkElement",
107876
+ "declaration": {
107877
+ "name": "SbbMenuLinkElement",
107878
+ "module": "menu/menu-link/menu-link.component.js"
107879
+ }
107880
+ }
107881
+ ]
107882
+ },
107883
+ {
107884
+ "kind": "javascript-module",
107885
+ "path": "menu/menu-button/menu-button.component.js",
107886
+ "declarations": [
107887
+ {
107888
+ "kind": "class",
107889
+ "description": "It displays a button element that can be used in the `sbb-menu` component.",
107890
+ "name": "SbbMenuButtonElement",
107891
+ "cssProperties": [
107892
+ {
107893
+ "description": "Can be used to modify horizontal padding.",
107894
+ "name": "--sbb-menu-action-outer-horizontal-padding",
107895
+ "default": "var(--sbb-spacing-fixed-3x)"
107896
+ }
107897
+ ],
107898
+ "slots": [
107899
+ {
107900
+ "description": "Use the unnamed slot to add content to the `sbb-menu-button`.",
107901
+ "name": ""
107882
107902
  },
107903
+ {
107904
+ "description": "Use this slot to provide an icon. If `icon-name` is set, a `sbb-icon` will be used.",
107905
+ "name": "icon"
107906
+ }
107907
+ ],
107908
+ "members": [
107883
107909
  {
107884
107910
  "kind": "field",
107885
- "name": "_removeActiveMarker",
107886
- "privacy": "private",
107911
+ "name": "elementName",
107912
+ "type": {
107913
+ "text": "string"
107914
+ },
107915
+ "privacy": "public",
107916
+ "static": true,
107917
+ "readonly": true,
107887
107918
  "inheritedFrom": {
107888
- "name": "SbbButtonLikeBaseElement",
107889
- "module": "core/base-elements/button-base-element.js"
107890
- }
107919
+ "name": "SbbElement",
107920
+ "module": "core/base-elements/element.js"
107921
+ },
107922
+ "default": "'sbb-menu-button'"
107891
107923
  },
107892
107924
  {
107893
107925
  "kind": "field",
107894
- "name": "_dispatchClickEventOnSpaceKeyup",
107895
- "privacy": "private",
107896
- "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.",
107897
- "parameters": [
107898
- {
107899
- "description": "The origin event.",
107900
- "name": "event"
107901
- }
107902
- ],
107926
+ "name": "role",
107927
+ "type": {
107928
+ "text": "ElementInternals['role']"
107929
+ },
107930
+ "privacy": "public",
107931
+ "static": true,
107932
+ "readonly": true,
107933
+ "default": "'menuitem'",
107903
107934
  "inheritedFrom": {
107904
107935
  "name": "SbbButtonLikeBaseElement",
107905
107936
  "module": "core/base-elements/button-base-element.js"
@@ -107907,622 +107938,619 @@
107907
107938
  },
107908
107939
  {
107909
107940
  "kind": "field",
107910
- "name": "_dispatchClickEvent",
107911
- "privacy": "private",
107941
+ "name": "disabledInteractive",
107942
+ "type": {
107943
+ "text": "boolean"
107944
+ },
107945
+ "privacy": "public",
107946
+ "default": "false",
107947
+ "description": "Whether the button should be aria-disabled but stay interactive.",
107948
+ "attribute": "disabled-interactive",
107949
+ "reflects": true,
107912
107950
  "inheritedFrom": {
107913
- "name": "SbbButtonLikeBaseElement",
107914
- "module": "core/base-elements/button-base-element.js"
107951
+ "name": "SbbDisabledInteractiveMixin",
107952
+ "module": "core/mixins/disabled-mixin.js"
107915
107953
  }
107916
107954
  },
107917
107955
  {
107918
107956
  "kind": "field",
107919
- "name": "maybeDisabled",
107957
+ "name": "disabled",
107958
+ "privacy": "public",
107959
+ "description": "Whether the component is disabled.",
107960
+ "default": "false",
107920
107961
  "type": {
107921
- "text": "boolean | undefined"
107962
+ "text": "boolean"
107922
107963
  },
107923
- "privacy": "protected",
107924
- "readonly": true,
107964
+ "attribute": "disabled",
107965
+ "reflects": true,
107925
107966
  "inheritedFrom": {
107926
- "name": "SbbActionBaseElement",
107927
- "module": "core/base-elements/action-base-element.js"
107967
+ "name": "SbbDisabledMixin",
107968
+ "module": "core/mixins/disabled-mixin.js"
107928
107969
  }
107929
107970
  },
107930
107971
  {
107931
107972
  "kind": "field",
107932
- "name": "maybeDisabledInteractive",
107973
+ "name": "#disabled",
107974
+ "privacy": "private",
107933
107975
  "type": {
107934
- "text": "boolean | undefined"
107976
+ "text": "boolean"
107935
107977
  },
107936
- "privacy": "protected",
107937
- "readonly": true,
107938
- "inheritedFrom": {
107939
- "name": "SbbActionBaseElement",
107940
- "module": "core/base-elements/action-base-element.js"
107978
+ "default": "false",
107979
+ "inheritedFrom": {
107980
+ "name": "SbbDisabledMixin",
107981
+ "module": "core/mixins/disabled-mixin.js"
107941
107982
  }
107942
107983
  },
107943
107984
  {
107944
107985
  "kind": "method",
107945
- "name": "setupBaseEventHandlers",
107986
+ "name": "isDisabledExternally",
107946
107987
  "privacy": "protected",
107947
107988
  "return": {
107948
107989
  "type": {
107949
- "text": "void"
107990
+ "text": "boolean"
107950
107991
  }
107951
107992
  },
107993
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
107952
107994
  "inheritedFrom": {
107953
- "name": "SbbActionBaseElement",
107954
- "module": "core/base-elements/action-base-element.js"
107995
+ "name": "SbbDisabledMixin",
107996
+ "module": "core/mixins/disabled-mixin.js"
107955
107997
  }
107956
107998
  },
107957
107999
  {
107958
108000
  "kind": "field",
107959
- "name": "_hydrationRequired",
108001
+ "name": "styles",
107960
108002
  "type": {
107961
- "text": "boolean"
108003
+ "text": "CSSResultGroup"
107962
108004
  },
107963
- "privacy": "private",
107964
- "default": "!!this.shadowRoot",
107965
- "inheritedFrom": {
107966
- "name": "SbbElement",
107967
- "module": "core/base-elements/element.js"
107968
- }
107969
- },
107970
- {
107971
- "kind": "field",
107972
- "name": "_hydrationComplete",
107973
- "privacy": "private",
107974
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
108005
+ "privacy": "public",
108006
+ "static": true,
108007
+ "default": "[boxSizingStyles, unsafeCSS(style)]",
107975
108008
  "inheritedFrom": {
107976
- "name": "SbbElement",
107977
- "module": "core/base-elements/element.js"
108009
+ "name": "SbbMenuActionCommonElementMixin",
108010
+ "module": "menu/common/menu-action-common.js"
107978
108011
  }
107979
108012
  },
107980
108013
  {
107981
- "kind": "field",
107982
- "name": "_resolveHydration",
107983
- "type": {
107984
- "text": "(hydrationRequired: boolean) => void"
108014
+ "kind": "method",
108015
+ "name": "renderTemplate",
108016
+ "privacy": "protected",
108017
+ "return": {
108018
+ "type": {
108019
+ "text": "TemplateResult"
108020
+ }
107985
108021
  },
107986
- "privacy": "private",
108022
+ "description": "Override this method to render the component template.",
107987
108023
  "inheritedFrom": {
107988
- "name": "SbbElement",
107989
- "module": "core/base-elements/element.js"
108024
+ "name": "SbbActionBaseElement",
108025
+ "module": "core/base-elements/action-base-element.js"
107990
108026
  }
107991
108027
  },
107992
108028
  {
107993
108029
  "kind": "field",
107994
- "name": "hydrationRequired",
108030
+ "name": "iconName",
107995
108031
  "type": {
107996
- "text": "boolean"
108032
+ "text": "string"
107997
108033
  },
107998
- "privacy": "protected",
107999
- "description": "Returns whether hydration is required and not completed.",
108000
- "readonly": true,
108034
+ "privacy": "public",
108035
+ "default": "''",
108036
+ "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.",
108037
+ "attribute": "icon-name",
108001
108038
  "inheritedFrom": {
108002
- "name": "SbbElement",
108003
- "module": "core/base-elements/element.js"
108004
- },
108005
- "default": "!!this.shadowRoot"
108039
+ "name": "SbbIconNameMixin",
108040
+ "module": "icon/icon-name-mixin.js"
108041
+ }
108006
108042
  },
108007
108043
  {
108008
108044
  "kind": "method",
108009
- "name": "toggleState",
108045
+ "name": "renderIconSlot",
108010
108046
  "privacy": "protected",
108011
108047
  "return": {
108012
108048
  "type": {
108013
- "text": "void"
108049
+ "text": "TemplateResult"
108014
108050
  }
108015
108051
  },
108016
108052
  "parameters": [
108017
108053
  {
108018
- "name": "value",
108019
- "type": {
108020
- "text": "string"
108021
- }
108022
- },
108023
- {
108024
- "name": "force",
108054
+ "name": "classname",
108025
108055
  "optional": true,
108026
108056
  "type": {
108027
- "text": "boolean"
108057
+ "text": "string"
108028
108058
  }
108029
108059
  }
108030
108060
  ],
108031
108061
  "inheritedFrom": {
108032
- "name": "SbbElement",
108033
- "module": "core/base-elements/element.js"
108062
+ "name": "SbbIconNameMixin",
108063
+ "module": "icon/icon-name-mixin.js"
108034
108064
  }
108035
108065
  },
108036
108066
  {
108037
- "kind": "field",
108038
- "name": "['_$sbbElement$']",
108039
- "type": {
108040
- "text": "boolean"
108067
+ "kind": "method",
108068
+ "name": "renderIconName",
108069
+ "privacy": "protected",
108070
+ "return": {
108071
+ "type": {
108072
+ "text": "string"
108073
+ }
108041
108074
  },
108042
- "privacy": "public",
108043
- "static": true,
108044
- "default": "true",
108045
108075
  "inheritedFrom": {
108046
- "name": "SbbElement",
108047
- "module": "core/base-elements/element.js"
108076
+ "name": "SbbIconNameMixin",
108077
+ "module": "icon/icon-name-mixin.js"
108078
+ }
108079
+ },
108080
+ {
108081
+ "kind": "method",
108082
+ "name": "_renderIconName",
108083
+ "privacy": "private",
108084
+ "return": {
108085
+ "type": {
108086
+ "text": "string"
108087
+ }
108088
+ },
108089
+ "inheritedFrom": {
108090
+ "name": "SbbIconNameMixin",
108091
+ "module": "icon/icon-name-mixin.js"
108048
108092
  }
108049
108093
  },
108050
108094
  {
108051
108095
  "kind": "field",
108052
- "name": "_controllers",
108096
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
108053
108097
  "type": {
108054
- "text": "Set<SbbReactiveController> | undefined"
108098
+ "text": "array"
108055
108099
  },
108056
108100
  "privacy": "private",
108101
+ "readonly": true,
108102
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
108057
108103
  "inheritedFrom": {
108058
- "name": "SbbElement",
108059
- "module": "core/base-elements/element.js"
108104
+ "name": "SbbButtonBaseElement",
108105
+ "module": "core/base-elements/button-base-element.js"
108060
108106
  }
108061
- }
108062
- ],
108063
- "mixins": [
108064
- {
108065
- "name": "SbbDisabledTabIndexActionMixin",
108066
- "module": "core/mixins.js"
108067
108107
  },
108068
108108
  {
108069
- "name": "SbbMenuActionCommonElementMixin",
108070
- "module": "menu/common/menu-action-common.js"
108071
- }
108072
- ],
108073
- "superclass": {
108074
- "name": "SbbButtonBaseElement",
108075
- "module": "core/base-elements.js"
108076
- },
108077
- "tagName": "sbb-menu-button",
108078
- "customElement": true,
108079
- "attributes": [
108080
- {
108081
- "name": "disabled-interactive",
108109
+ "kind": "field",
108110
+ "name": "value",
108082
108111
  "type": {
108083
- "text": "boolean"
108112
+ "text": "string"
108084
108113
  },
108085
- "default": "false",
108086
- "description": "Whether the button should be aria-disabled but stay interactive.",
108087
- "fieldName": "disabledInteractive",
108114
+ "privacy": "public",
108088
108115
  "inheritedFrom": {
108089
- "name": "SbbDisabledInteractiveMixin",
108090
- "module": "core/mixins/disabled-mixin.js"
108091
- }
108116
+ "name": "SbbButtonBaseElement",
108117
+ "module": "core/base-elements/button-base-element.js"
108118
+ },
108119
+ "default": "''",
108120
+ "description": "Value of the form element.",
108121
+ "attribute": "value"
108092
108122
  },
108093
108123
  {
108094
- "name": "disabled",
108095
- "description": "Whether the component is disabled.",
108096
- "default": "false",
108124
+ "kind": "field",
108125
+ "name": "type",
108126
+ "privacy": "public",
108127
+ "description": "The type attribute to use for the button.",
108128
+ "default": "'button'",
108097
108129
  "type": {
108098
- "text": "boolean"
108130
+ "text": "SbbButtonType"
108099
108131
  },
108100
- "fieldName": "disabled",
108132
+ "attribute": "type",
108101
108133
  "inheritedFrom": {
108102
- "name": "SbbDisabledMixin",
108103
- "module": "core/mixins/disabled-mixin.js"
108134
+ "name": "SbbButtonBaseElement",
108135
+ "module": "core/base-elements/button-base-element.js"
108104
108136
  }
108105
108137
  },
108106
108138
  {
108107
- "name": "icon-name",
108139
+ "kind": "field",
108140
+ "name": "form",
108108
108141
  "type": {
108109
- "text": "string"
108142
+ "text": "HTMLFormElement | null"
108110
108143
  },
108111
- "default": "''",
108112
- "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.",
108113
- "fieldName": "iconName",
108144
+ "privacy": "public",
108145
+ "description": "The `<form>` element to associate the button with.",
108114
108146
  "inheritedFrom": {
108115
- "name": "SbbIconNameMixin",
108116
- "module": "icon/icon-name-mixin.js"
108117
- }
108147
+ "name": "SbbButtonBaseElement",
108148
+ "module": "core/base-elements/button-base-element.js"
108149
+ },
108150
+ "attribute": "form"
108118
108151
  },
108119
108152
  {
108120
- "name": "value",
108153
+ "kind": "field",
108154
+ "name": "_formId",
108121
108155
  "type": {
108122
108156
  "text": "string"
108123
108157
  },
108158
+ "privacy": "private",
108124
108159
  "default": "''",
108125
- "description": "Value of the form element.",
108126
- "fieldName": "value",
108127
108160
  "inheritedFrom": {
108128
108161
  "name": "SbbButtonBaseElement",
108129
108162
  "module": "core/base-elements/button-base-element.js"
108130
108163
  }
108131
108164
  },
108132
108165
  {
108133
- "name": "type",
108134
- "description": "The type attribute to use for the button.",
108135
- "default": "'button'",
108136
- "type": {
108137
- "text": "SbbButtonType"
108138
- },
108139
- "fieldName": "type",
108166
+ "kind": "field",
108167
+ "name": "_handleButtonClick",
108168
+ "privacy": "private",
108140
108169
  "inheritedFrom": {
108141
108170
  "name": "SbbButtonBaseElement",
108142
108171
  "module": "core/base-elements/button-base-element.js"
108143
108172
  }
108144
108173
  },
108145
108174
  {
108146
- "name": "form",
108147
- "description": "The `<form>` element to associate the button with.",
108148
- "type": {
108149
- "text": "HTMLFormElement | null"
108175
+ "kind": "method",
108176
+ "name": "_requestSubmit",
108177
+ "privacy": "private",
108178
+ "return": {
108179
+ "type": {
108180
+ "text": "void"
108181
+ }
108150
108182
  },
108151
- "fieldName": "form",
108183
+ "parameters": [
108184
+ {
108185
+ "name": "form",
108186
+ "type": {
108187
+ "text": "HTMLFormElement"
108188
+ }
108189
+ }
108190
+ ],
108191
+ "inheritedFrom": {
108192
+ "name": "SbbButtonBaseElement",
108193
+ "module": "core/base-elements/button-base-element.js"
108194
+ }
108195
+ },
108196
+ {
108197
+ "kind": "field",
108198
+ "name": "_formKeyDown",
108199
+ "privacy": "private",
108152
108200
  "inheritedFrom": {
108153
108201
  "name": "SbbButtonBaseElement",
108154
108202
  "module": "core/base-elements/button-base-element.js"
108155
108203
  }
108156
108204
  },
108157
108205
  {
108206
+ "kind": "field",
108207
+ "name": "formAssociated",
108208
+ "type": {
108209
+ "text": "boolean"
108210
+ },
108211
+ "privacy": "public",
108212
+ "static": true,
108213
+ "default": "true",
108214
+ "inheritedFrom": {
108215
+ "name": "SbbFormAssociatedMixin",
108216
+ "module": "core/mixins/form-associated-mixin.js"
108217
+ }
108218
+ },
108219
+ {
108220
+ "kind": "field",
108158
108221
  "name": "name",
108222
+ "privacy": "public",
108159
108223
  "description": "Name of the form element. Will be read from name attribute.",
108160
108224
  "type": {
108161
108225
  "text": "string"
108162
108226
  },
108163
- "fieldName": "name",
108227
+ "attribute": "name",
108164
108228
  "inheritedFrom": {
108165
108229
  "name": "SbbFormAssociatedMixin",
108166
108230
  "module": "core/mixins/form-associated-mixin.js"
108167
108231
  }
108168
- }
108169
- ]
108170
- }
108171
- ],
108172
- "exports": [
108173
- {
108174
- "kind": "js",
108175
- "name": "SbbMenuButtonElement",
108176
- "declaration": {
108177
- "name": "SbbMenuButtonElement",
108178
- "module": "menu/menu-button/menu-button.component.js"
108179
- }
108180
- }
108181
- ]
108182
- },
108183
- {
108184
- "kind": "javascript-module",
108185
- "path": "menu/menu-link/menu-link.component.js",
108186
- "declarations": [
108187
- {
108188
- "kind": "class",
108189
- "description": "It displays a link element that can be used in the `sbb-menu` component.",
108190
- "name": "SbbMenuLinkElement",
108191
- "cssProperties": [
108192
- {
108193
- "description": "Can be used to modify horizontal padding.",
108194
- "name": "--sbb-menu-action-outer-horizontal-padding",
108195
- "default": "var(--sbb-spacing-fixed-3x)"
108196
- }
108197
- ],
108198
- "slots": [
108199
- {
108200
- "description": "Use the unnamed slot to add content to the `sbb-menu-link`.",
108201
- "name": ""
108202
108232
  },
108203
- {
108204
- "description": "Use this slot to provide an icon. If `icon-name` is set, a `sbb-icon` will be used.",
108205
- "name": "icon"
108206
- }
108207
- ],
108208
- "members": [
108209
108233
  {
108210
108234
  "kind": "field",
108211
- "name": "elementName",
108235
+ "name": "validity",
108212
108236
  "type": {
108213
- "text": "string"
108237
+ "text": "ValidityState"
108214
108238
  },
108215
108239
  "privacy": "public",
108216
- "static": true,
108240
+ "description": "Returns the ValidityState object for this element.",
108217
108241
  "readonly": true,
108218
108242
  "inheritedFrom": {
108219
- "name": "SbbElement",
108220
- "module": "core/base-elements/element.js"
108221
- },
108222
- "default": "'sbb-menu-link'"
108243
+ "name": "SbbFormAssociatedMixin",
108244
+ "module": "core/mixins/form-associated-mixin.js"
108245
+ }
108223
108246
  },
108224
108247
  {
108225
108248
  "kind": "field",
108226
- "name": "anchorRole",
108249
+ "name": "validationMessage",
108227
108250
  "type": {
108228
108251
  "text": "string"
108229
108252
  },
108230
- "privacy": "protected",
108253
+ "privacy": "public",
108254
+ "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.",
108231
108255
  "readonly": true,
108232
- "default": "'menuitem'",
108233
108256
  "inheritedFrom": {
108234
- "name": "SbbLinkBaseElement",
108235
- "module": "core/base-elements/link-base-element.js"
108257
+ "name": "SbbFormAssociatedMixin",
108258
+ "module": "core/mixins/form-associated-mixin.js"
108236
108259
  }
108237
108260
  },
108238
108261
  {
108239
108262
  "kind": "field",
108240
- "name": "disabledInteractive",
108263
+ "name": "willValidate",
108241
108264
  "type": {
108242
108265
  "text": "boolean"
108243
108266
  },
108244
108267
  "privacy": "public",
108245
- "default": "false",
108246
- "description": "Whether the button should be aria-disabled but stay interactive.",
108247
- "attribute": "disabled-interactive",
108248
- "reflects": true,
108268
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
108269
+ "readonly": true,
108249
108270
  "inheritedFrom": {
108250
- "name": "SbbDisabledInteractiveMixin",
108251
- "module": "core/mixins/disabled-mixin.js"
108271
+ "name": "SbbFormAssociatedMixin",
108272
+ "module": "core/mixins/form-associated-mixin.js"
108252
108273
  }
108253
108274
  },
108254
108275
  {
108255
108276
  "kind": "field",
108256
- "name": "styles",
108277
+ "name": "_validityStates",
108278
+ "privacy": "private",
108279
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
108280
+ "inheritedFrom": {
108281
+ "name": "SbbFormAssociatedMixin",
108282
+ "module": "core/mixins/form-associated-mixin.js"
108283
+ }
108284
+ },
108285
+ {
108286
+ "kind": "field",
108287
+ "name": "formDisabled",
108257
108288
  "type": {
108258
- "text": "CSSResultGroup"
108289
+ "text": "boolean"
108259
108290
  },
108260
- "privacy": "public",
108261
- "static": true,
108262
- "default": "[boxSizingStyles, unsafeCSS(style)]",
108291
+ "privacy": "protected",
108292
+ "default": "false",
108293
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
108263
108294
  "inheritedFrom": {
108264
- "name": "SbbMenuActionCommonElementMixin",
108265
- "module": "menu/common/menu-action-common.js"
108295
+ "name": "SbbFormAssociatedMixin",
108296
+ "module": "core/mixins/form-associated-mixin.js"
108266
108297
  }
108267
108298
  },
108268
108299
  {
108269
108300
  "kind": "method",
108270
- "name": "renderTemplate",
108271
- "privacy": "protected",
108301
+ "name": "checkValidity",
108302
+ "privacy": "public",
108272
108303
  "return": {
108273
108304
  "type": {
108274
- "text": "TemplateResult"
108305
+ "text": "boolean"
108275
108306
  }
108276
108307
  },
108277
- "description": "Override this method to render the component template.",
108308
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
108278
108309
  "inheritedFrom": {
108279
- "name": "SbbActionBaseElement",
108280
- "module": "core/base-elements/action-base-element.js"
108310
+ "name": "SbbFormAssociatedMixin",
108311
+ "module": "core/mixins/form-associated-mixin.js"
108281
108312
  }
108282
108313
  },
108283
108314
  {
108284
- "kind": "field",
108285
- "name": "iconName",
108286
- "type": {
108287
- "text": "string"
108288
- },
108315
+ "kind": "method",
108316
+ "name": "reportValidity",
108289
108317
  "privacy": "public",
108290
- "default": "''",
108291
- "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.",
108292
- "attribute": "icon-name",
108318
+ "return": {
108319
+ "type": {
108320
+ "text": "boolean"
108321
+ }
108322
+ },
108323
+ "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.",
108293
108324
  "inheritedFrom": {
108294
- "name": "SbbIconNameMixin",
108295
- "module": "icon/icon-name-mixin.js"
108325
+ "name": "SbbFormAssociatedMixin",
108326
+ "module": "core/mixins/form-associated-mixin.js"
108296
108327
  }
108297
108328
  },
108298
108329
  {
108299
108330
  "kind": "method",
108300
- "name": "renderIconSlot",
108301
- "privacy": "protected",
108331
+ "name": "setCustomValidity",
108332
+ "privacy": "public",
108302
108333
  "return": {
108303
108334
  "type": {
108304
- "text": "TemplateResult"
108335
+ "text": "void"
108305
108336
  }
108306
108337
  },
108307
108338
  "parameters": [
108308
108339
  {
108309
- "name": "classname",
108310
- "optional": true,
108340
+ "name": "message",
108311
108341
  "type": {
108312
108342
  "text": "string"
108313
108343
  }
108314
108344
  }
108315
108345
  ],
108346
+ "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.",
108316
108347
  "inheritedFrom": {
108317
- "name": "SbbIconNameMixin",
108318
- "module": "icon/icon-name-mixin.js"
108348
+ "name": "SbbFormAssociatedMixin",
108349
+ "module": "core/mixins/form-associated-mixin.js"
108319
108350
  }
108320
108351
  },
108321
108352
  {
108322
108353
  "kind": "method",
108323
- "name": "renderIconName",
108324
- "privacy": "protected",
108354
+ "name": "_hasDisabledAncestor",
108355
+ "privacy": "private",
108325
108356
  "return": {
108326
108357
  "type": {
108327
- "text": "string"
108358
+ "text": "boolean"
108328
108359
  }
108329
108360
  },
108330
108361
  "inheritedFrom": {
108331
- "name": "SbbIconNameMixin",
108332
- "module": "icon/icon-name-mixin.js"
108362
+ "name": "SbbFormAssociatedMixin",
108363
+ "module": "core/mixins/form-associated-mixin.js"
108333
108364
  }
108334
108365
  },
108335
108366
  {
108336
108367
  "kind": "method",
108337
- "name": "_renderIconName",
108338
- "privacy": "private",
108368
+ "name": "updateFormValue",
108369
+ "privacy": "protected",
108339
108370
  "return": {
108340
108371
  "type": {
108341
- "text": "string"
108372
+ "text": "void"
108342
108373
  }
108343
108374
  },
108375
+ "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",
108344
108376
  "inheritedFrom": {
108345
- "name": "SbbIconNameMixin",
108346
- "module": "icon/icon-name-mixin.js"
108347
- }
108348
- },
108349
- {
108350
- "kind": "field",
108351
- "name": "disabled",
108352
- "privacy": "public",
108353
- "description": "Whether the component is disabled.",
108354
- "default": "false",
108355
- "type": {
108356
- "text": "boolean"
108357
- },
108358
- "attribute": "disabled",
108359
- "reflects": true,
108360
- "inheritedFrom": {
108361
- "name": "SbbDisabledMixin",
108362
- "module": "core/mixins/disabled-mixin.js"
108363
- }
108364
- },
108365
- {
108366
- "kind": "field",
108367
- "name": "#disabled",
108368
- "privacy": "private",
108369
- "type": {
108370
- "text": "boolean"
108371
- },
108372
- "default": "false",
108373
- "inheritedFrom": {
108374
- "name": "SbbDisabledMixin",
108375
- "module": "core/mixins/disabled-mixin.js"
108377
+ "name": "SbbFormAssociatedMixin",
108378
+ "module": "core/mixins/form-associated-mixin.js"
108376
108379
  }
108377
108380
  },
108378
108381
  {
108379
108382
  "kind": "method",
108380
- "name": "isDisabledExternally",
108383
+ "name": "formState",
108381
108384
  "privacy": "protected",
108382
108385
  "return": {
108383
108386
  "type": {
108384
- "text": "boolean"
108387
+ "text": "FormRestoreState"
108385
108388
  }
108386
108389
  },
108387
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
108388
- "inheritedFrom": {
108389
- "name": "SbbDisabledMixin",
108390
- "module": "core/mixins/disabled-mixin.js"
108391
- }
108392
- },
108393
- {
108394
- "kind": "field",
108395
- "name": "href",
108396
- "type": {
108397
- "text": "string"
108398
- },
108399
- "privacy": "public",
108400
- "default": "''",
108401
- "description": "The href value you want to link to.",
108402
- "attribute": "href",
108403
- "reflects": true,
108404
108390
  "inheritedFrom": {
108405
- "name": "SbbLinkBaseElement",
108406
- "module": "core/base-elements/link-base-element.js"
108391
+ "name": "SbbFormAssociatedMixin",
108392
+ "module": "core/mixins/form-associated-mixin.js"
108407
108393
  }
108408
108394
  },
108409
108395
  {
108410
- "kind": "field",
108411
- "name": "target",
108412
- "type": {
108413
- "text": "LinkTargetType | string"
108396
+ "kind": "method",
108397
+ "name": "setValidityFlag",
108398
+ "privacy": "protected",
108399
+ "return": {
108400
+ "type": {
108401
+ "text": "void"
108402
+ }
108414
108403
  },
108415
- "privacy": "public",
108416
- "default": "''",
108417
- "description": "Where to display the linked URL.",
108418
- "attribute": "target",
108419
- "reflects": true,
108404
+ "parameters": [
108405
+ {
108406
+ "name": "flag",
108407
+ "type": {
108408
+ "text": "T"
108409
+ }
108410
+ },
108411
+ {
108412
+ "name": "message",
108413
+ "type": {
108414
+ "text": "string"
108415
+ }
108416
+ },
108417
+ {
108418
+ "name": "flagValue",
108419
+ "optional": true,
108420
+ "type": {
108421
+ "text": "ValidityStateFlags[T]"
108422
+ }
108423
+ }
108424
+ ],
108425
+ "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).",
108420
108426
  "inheritedFrom": {
108421
- "name": "SbbLinkBaseElement",
108422
- "module": "core/base-elements/link-base-element.js"
108427
+ "name": "SbbFormAssociatedMixin",
108428
+ "module": "core/mixins/form-associated-mixin.js"
108423
108429
  }
108424
108430
  },
108425
108431
  {
108426
- "kind": "field",
108427
- "name": "rel",
108428
- "type": {
108429
- "text": "string"
108432
+ "kind": "method",
108433
+ "name": "removeValidityFlag",
108434
+ "privacy": "protected",
108435
+ "return": {
108436
+ "type": {
108437
+ "text": "void"
108438
+ }
108430
108439
  },
108431
- "privacy": "public",
108432
- "default": "''",
108433
- "description": "The relationship of the linked URL as space-separated link types.",
108434
- "attribute": "rel",
108435
- "reflects": true,
108440
+ "parameters": [
108441
+ {
108442
+ "name": "flag",
108443
+ "type": {
108444
+ "text": "T"
108445
+ }
108446
+ }
108447
+ ],
108448
+ "description": "Removes the validity state flag entry and updates validity state.",
108436
108449
  "inheritedFrom": {
108437
- "name": "SbbLinkBaseElement",
108438
- "module": "core/base-elements/link-base-element.js"
108450
+ "name": "SbbFormAssociatedMixin",
108451
+ "module": "core/mixins/form-associated-mixin.js"
108439
108452
  }
108440
108453
  },
108441
108454
  {
108442
- "kind": "field",
108443
- "name": "download",
108444
- "type": {
108445
- "text": "boolean"
108455
+ "kind": "method",
108456
+ "name": "validate",
108457
+ "privacy": "protected",
108458
+ "return": {
108459
+ "type": {
108460
+ "text": "void"
108461
+ }
108446
108462
  },
108447
- "privacy": "public",
108448
- "default": "false",
108449
- "description": "Whether the browser will show the download dialog on click.",
108450
- "attribute": "download",
108451
- "reflects": true,
108463
+ "description": "To be called whenever the current element needs to be validated.",
108452
108464
  "inheritedFrom": {
108453
- "name": "SbbLinkBaseElement",
108454
- "module": "core/base-elements/link-base-element.js"
108465
+ "name": "SbbFormAssociatedMixin",
108466
+ "module": "core/mixins/form-associated-mixin.js"
108455
108467
  }
108456
108468
  },
108457
108469
  {
108458
- "kind": "field",
108459
- "name": "accessibilityLabel",
108460
- "type": {
108461
- "text": "string"
108470
+ "kind": "method",
108471
+ "name": "shouldValidate",
108472
+ "privacy": "protected",
108473
+ "return": {
108474
+ "type": {
108475
+ "text": "boolean"
108476
+ }
108462
108477
  },
108463
- "privacy": "public",
108464
- "default": "''",
108465
- "description": "This will be forwarded as aria-label to the inner anchor element.",
108466
- "attribute": "accessibility-label",
108478
+ "parameters": [
108479
+ {
108480
+ "name": "name",
108481
+ "type": {
108482
+ "text": "PropertyKey | undefined"
108483
+ }
108484
+ }
108485
+ ],
108486
+ "description": "Whether validation should be run on a property change with the given name.",
108467
108487
  "inheritedFrom": {
108468
- "name": "SbbLinkBaseElement",
108469
- "module": "core/base-elements/link-base-element.js"
108488
+ "name": "SbbFormAssociatedMixin",
108489
+ "module": "core/mixins/form-associated-mixin.js"
108470
108490
  }
108471
108491
  },
108472
108492
  {
108473
- "kind": "field",
108474
- "name": "accessibilityCurrent",
108475
- "type": {
108476
- "text": "string"
108493
+ "kind": "method",
108494
+ "name": "_setInternalValidity",
108495
+ "privacy": "private",
108496
+ "return": {
108497
+ "type": {
108498
+ "text": "void"
108499
+ }
108477
108500
  },
108478
- "privacy": "public",
108479
- "default": "''",
108480
- "description": "This will be forwarded as aria-current to the inner anchor element.",
108481
- "attribute": "accessibility-current",
108482
108501
  "inheritedFrom": {
108483
- "name": "SbbLinkBaseElement",
108484
- "module": "core/base-elements/link-base-element.js"
108502
+ "name": "SbbFormAssociatedMixin",
108503
+ "module": "core/mixins/form-associated-mixin.js"
108485
108504
  }
108486
108505
  },
108487
108506
  {
108488
108507
  "kind": "field",
108489
- "name": "language",
108490
- "privacy": "protected",
108491
- "default": "new SbbLanguageController(this)",
108508
+ "name": "_preventScrollOnSpaceKeydown",
108509
+ "privacy": "private",
108510
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
108511
+ "parameters": [
108512
+ {
108513
+ "description": "The origin event.",
108514
+ "name": "event"
108515
+ }
108516
+ ],
108492
108517
  "inheritedFrom": {
108493
- "name": "SbbLinkBaseElement",
108494
- "module": "core/base-elements/link-base-element.js"
108518
+ "name": "SbbButtonLikeBaseElement",
108519
+ "module": "core/base-elements/button-base-element.js"
108495
108520
  }
108496
108521
  },
108497
108522
  {
108498
108523
  "kind": "field",
108499
- "name": "_evaluateRelAttribute",
108524
+ "name": "_removeActiveMarker",
108500
108525
  "privacy": "private",
108501
108526
  "inheritedFrom": {
108502
- "name": "SbbLinkBaseElement",
108503
- "module": "core/base-elements/link-base-element.js"
108527
+ "name": "SbbButtonLikeBaseElement",
108528
+ "module": "core/base-elements/button-base-element.js"
108504
108529
  }
108505
108530
  },
108506
108531
  {
108507
- "kind": "method",
108508
- "name": "renderLink",
108509
- "privacy": "protected",
108510
- "return": {
108511
- "type": {
108512
- "text": "TemplateResult"
108513
- }
108514
- },
108532
+ "kind": "field",
108533
+ "name": "_dispatchClickEventOnSpaceKeyup",
108534
+ "privacy": "private",
108535
+ "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.",
108515
108536
  "parameters": [
108516
108537
  {
108517
- "name": "renderContent",
108518
- "type": {
108519
- "text": "TemplateResult"
108520
- }
108538
+ "description": "The origin event.",
108539
+ "name": "event"
108521
108540
  }
108522
108541
  ],
108523
108542
  "inheritedFrom": {
108524
- "name": "SbbLinkBaseElement",
108525
- "module": "core/base-elements/link-base-element.js"
108543
+ "name": "SbbButtonLikeBaseElement",
108544
+ "module": "core/base-elements/button-base-element.js"
108545
+ }
108546
+ },
108547
+ {
108548
+ "kind": "field",
108549
+ "name": "_dispatchClickEvent",
108550
+ "privacy": "private",
108551
+ "inheritedFrom": {
108552
+ "name": "SbbButtonLikeBaseElement",
108553
+ "module": "core/base-elements/button-base-element.js"
108526
108554
  }
108527
108555
  },
108528
108556
  {
@@ -108673,7 +108701,7 @@
108673
108701
  ],
108674
108702
  "mixins": [
108675
108703
  {
108676
- "name": "SbbDisabledInteractiveMixin",
108704
+ "name": "SbbDisabledTabIndexActionMixin",
108677
108705
  "module": "core/mixins.js"
108678
108706
  },
108679
108707
  {
@@ -108682,10 +108710,10 @@
108682
108710
  }
108683
108711
  ],
108684
108712
  "superclass": {
108685
- "name": "SbbLinkBaseElement",
108713
+ "name": "SbbButtonBaseElement",
108686
108714
  "module": "core/base-elements.js"
108687
108715
  },
108688
- "tagName": "sbb-menu-link",
108716
+ "tagName": "sbb-menu-button",
108689
108717
  "customElement": true,
108690
108718
  "attributes": [
108691
108719
  {
@@ -108701,19 +108729,6 @@
108701
108729
  "module": "core/mixins/disabled-mixin.js"
108702
108730
  }
108703
108731
  },
108704
- {
108705
- "name": "icon-name",
108706
- "type": {
108707
- "text": "string"
108708
- },
108709
- "default": "''",
108710
- "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.",
108711
- "fieldName": "iconName",
108712
- "inheritedFrom": {
108713
- "name": "SbbIconNameMixin",
108714
- "module": "icon/icon-name-mixin.js"
108715
- }
108716
- },
108717
108732
  {
108718
108733
  "name": "disabled",
108719
108734
  "description": "Whether the component is disabled.",
@@ -108728,81 +108743,66 @@
108728
108743
  }
108729
108744
  },
108730
108745
  {
108731
- "name": "href",
108746
+ "name": "icon-name",
108732
108747
  "type": {
108733
108748
  "text": "string"
108734
108749
  },
108735
108750
  "default": "''",
108736
- "description": "The href value you want to link to.",
108737
- "fieldName": "href",
108738
- "inheritedFrom": {
108739
- "name": "SbbLinkBaseElement",
108740
- "module": "core/base-elements/link-base-element.js"
108741
- }
108742
- },
108743
- {
108744
- "name": "target",
108745
- "type": {
108746
- "text": "LinkTargetType | string"
108747
- },
108748
- "default": "''",
108749
- "description": "Where to display the linked URL.",
108750
- "fieldName": "target",
108751
+ "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.",
108752
+ "fieldName": "iconName",
108751
108753
  "inheritedFrom": {
108752
- "name": "SbbLinkBaseElement",
108753
- "module": "core/base-elements/link-base-element.js"
108754
+ "name": "SbbIconNameMixin",
108755
+ "module": "icon/icon-name-mixin.js"
108754
108756
  }
108755
108757
  },
108756
108758
  {
108757
- "name": "rel",
108759
+ "name": "value",
108758
108760
  "type": {
108759
108761
  "text": "string"
108760
108762
  },
108761
108763
  "default": "''",
108762
- "description": "The relationship of the linked URL as space-separated link types.",
108763
- "fieldName": "rel",
108764
+ "description": "Value of the form element.",
108765
+ "fieldName": "value",
108764
108766
  "inheritedFrom": {
108765
- "name": "SbbLinkBaseElement",
108766
- "module": "core/base-elements/link-base-element.js"
108767
+ "name": "SbbButtonBaseElement",
108768
+ "module": "core/base-elements/button-base-element.js"
108767
108769
  }
108768
108770
  },
108769
108771
  {
108770
- "name": "download",
108772
+ "name": "type",
108773
+ "description": "The type attribute to use for the button.",
108774
+ "default": "'button'",
108771
108775
  "type": {
108772
- "text": "boolean"
108776
+ "text": "SbbButtonType"
108773
108777
  },
108774
- "default": "false",
108775
- "description": "Whether the browser will show the download dialog on click.",
108776
- "fieldName": "download",
108778
+ "fieldName": "type",
108777
108779
  "inheritedFrom": {
108778
- "name": "SbbLinkBaseElement",
108779
- "module": "core/base-elements/link-base-element.js"
108780
+ "name": "SbbButtonBaseElement",
108781
+ "module": "core/base-elements/button-base-element.js"
108780
108782
  }
108781
108783
  },
108782
108784
  {
108783
- "name": "accessibility-label",
108785
+ "name": "form",
108786
+ "description": "The `<form>` element to associate the button with.",
108784
108787
  "type": {
108785
- "text": "string"
108788
+ "text": "HTMLFormElement | null"
108786
108789
  },
108787
- "default": "''",
108788
- "description": "This will be forwarded as aria-label to the inner anchor element.",
108789
- "fieldName": "accessibilityLabel",
108790
+ "fieldName": "form",
108790
108791
  "inheritedFrom": {
108791
- "name": "SbbLinkBaseElement",
108792
- "module": "core/base-elements/link-base-element.js"
108792
+ "name": "SbbButtonBaseElement",
108793
+ "module": "core/base-elements/button-base-element.js"
108793
108794
  }
108794
108795
  },
108795
108796
  {
108796
- "name": "accessibility-current",
108797
+ "name": "name",
108798
+ "description": "Name of the form element. Will be read from name attribute.",
108797
108799
  "type": {
108798
108800
  "text": "string"
108799
108801
  },
108800
- "default": "''",
108801
- "description": "This will be forwarded as aria-current to the inner anchor element.",
108802
- "fieldName": "accessibilityCurrent",
108802
+ "fieldName": "name",
108803
108803
  "inheritedFrom": {
108804
- "name": "SbbLinkBaseElement",
108805
- "module": "core/base-elements/link-base-element.js"
108804
+ "name": "SbbFormAssociatedMixin",
108805
+ "module": "core/mixins/form-associated-mixin.js"
108806
108806
  }
108807
108807
  }
108808
108808
  ]
@@ -108811,10 +108811,10 @@
108811
108811
  "exports": [
108812
108812
  {
108813
108813
  "kind": "js",
108814
- "name": "SbbMenuLinkElement",
108814
+ "name": "SbbMenuButtonElement",
108815
108815
  "declaration": {
108816
- "name": "SbbMenuLinkElement",
108817
- "module": "menu/menu-link/menu-link.component.js"
108816
+ "name": "SbbMenuButtonElement",
108817
+ "module": "menu/menu-button/menu-button.component.js"
108818
108818
  }
108819
108819
  }
108820
108820
  ]
@@ -124074,6 +124074,261 @@
124074
124074
  }
124075
124075
  ]
124076
124076
  },
124077
+ {
124078
+ "kind": "javascript-module",
124079
+ "path": "table/table-wrapper/table-wrapper.component.js",
124080
+ "declarations": [
124081
+ {
124082
+ "kind": "class",
124083
+ "description": "Wraps a table to enhance its functionality.",
124084
+ "name": "SbbTableWrapperElement",
124085
+ "slots": [
124086
+ {
124087
+ "description": "Use the unnamed slot to add the table.",
124088
+ "name": ""
124089
+ }
124090
+ ],
124091
+ "members": [
124092
+ {
124093
+ "kind": "field",
124094
+ "name": "elementName",
124095
+ "type": {
124096
+ "text": "string"
124097
+ },
124098
+ "privacy": "public",
124099
+ "static": true,
124100
+ "readonly": true,
124101
+ "default": "'sbb-table-wrapper'",
124102
+ "inheritedFrom": {
124103
+ "name": "SbbElement",
124104
+ "module": "core/base-elements/element.js"
124105
+ }
124106
+ },
124107
+ {
124108
+ "kind": "field",
124109
+ "name": "role",
124110
+ "type": {
124111
+ "text": "string"
124112
+ },
124113
+ "privacy": "public",
124114
+ "static": true,
124115
+ "readonly": true,
124116
+ "default": "'section'"
124117
+ },
124118
+ {
124119
+ "kind": "field",
124120
+ "name": "focusable",
124121
+ "type": {
124122
+ "text": "boolean"
124123
+ },
124124
+ "privacy": "public",
124125
+ "default": "false",
124126
+ "description": "Whether the table wrapper is focusable.",
124127
+ "attribute": "focusable",
124128
+ "reflects": true
124129
+ },
124130
+ {
124131
+ "kind": "method",
124132
+ "name": "_updateScrollbarClass",
124133
+ "privacy": "private",
124134
+ "return": {
124135
+ "type": {
124136
+ "text": "void"
124137
+ }
124138
+ }
124139
+ },
124140
+ {
124141
+ "kind": "method",
124142
+ "name": "_checkHorizontalScrollbarOffset",
124143
+ "privacy": "private",
124144
+ "return": {
124145
+ "type": {
124146
+ "text": "void"
124147
+ }
124148
+ },
124149
+ "description": "Calculates whether the table is horizontally scrolled and adds the\ncorresponding class `sbb-table-wrapper-offset-${none | left | right | both}`"
124150
+ },
124151
+ {
124152
+ "kind": "method",
124153
+ "name": "_calculateScrollOffset",
124154
+ "privacy": "private",
124155
+ "return": {
124156
+ "type": {
124157
+ "text": "'none' | 'left' | 'right' | 'both'"
124158
+ }
124159
+ }
124160
+ },
124161
+ {
124162
+ "kind": "field",
124163
+ "name": "negative",
124164
+ "type": {
124165
+ "text": "boolean"
124166
+ },
124167
+ "privacy": "public",
124168
+ "default": "false",
124169
+ "description": "Negative coloring variant flag.",
124170
+ "attribute": "negative",
124171
+ "reflects": true,
124172
+ "inheritedFrom": {
124173
+ "name": "SbbNegativeMixin",
124174
+ "module": "core/mixins/negative-mixin.js"
124175
+ }
124176
+ },
124177
+ {
124178
+ "kind": "field",
124179
+ "name": "_hydrationRequired",
124180
+ "type": {
124181
+ "text": "boolean"
124182
+ },
124183
+ "privacy": "private",
124184
+ "default": "!!this.shadowRoot",
124185
+ "inheritedFrom": {
124186
+ "name": "SbbElement",
124187
+ "module": "core/base-elements/element.js"
124188
+ }
124189
+ },
124190
+ {
124191
+ "kind": "field",
124192
+ "name": "_hydrationComplete",
124193
+ "privacy": "private",
124194
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
124195
+ "inheritedFrom": {
124196
+ "name": "SbbElement",
124197
+ "module": "core/base-elements/element.js"
124198
+ }
124199
+ },
124200
+ {
124201
+ "kind": "field",
124202
+ "name": "_resolveHydration",
124203
+ "type": {
124204
+ "text": "(hydrationRequired: boolean) => void"
124205
+ },
124206
+ "privacy": "private",
124207
+ "inheritedFrom": {
124208
+ "name": "SbbElement",
124209
+ "module": "core/base-elements/element.js"
124210
+ }
124211
+ },
124212
+ {
124213
+ "kind": "field",
124214
+ "name": "hydrationRequired",
124215
+ "type": {
124216
+ "text": "boolean"
124217
+ },
124218
+ "privacy": "protected",
124219
+ "description": "Returns whether hydration is required and not completed.",
124220
+ "readonly": true,
124221
+ "inheritedFrom": {
124222
+ "name": "SbbElement",
124223
+ "module": "core/base-elements/element.js"
124224
+ },
124225
+ "default": "!!this.shadowRoot"
124226
+ },
124227
+ {
124228
+ "kind": "method",
124229
+ "name": "toggleState",
124230
+ "privacy": "protected",
124231
+ "return": {
124232
+ "type": {
124233
+ "text": "void"
124234
+ }
124235
+ },
124236
+ "parameters": [
124237
+ {
124238
+ "name": "value",
124239
+ "type": {
124240
+ "text": "string"
124241
+ }
124242
+ },
124243
+ {
124244
+ "name": "force",
124245
+ "optional": true,
124246
+ "type": {
124247
+ "text": "boolean"
124248
+ }
124249
+ }
124250
+ ],
124251
+ "inheritedFrom": {
124252
+ "name": "SbbElement",
124253
+ "module": "core/base-elements/element.js"
124254
+ }
124255
+ },
124256
+ {
124257
+ "kind": "field",
124258
+ "name": "['_$sbbElement$']",
124259
+ "type": {
124260
+ "text": "boolean"
124261
+ },
124262
+ "privacy": "public",
124263
+ "static": true,
124264
+ "default": "true",
124265
+ "inheritedFrom": {
124266
+ "name": "SbbElement",
124267
+ "module": "core/base-elements/element.js"
124268
+ }
124269
+ },
124270
+ {
124271
+ "kind": "field",
124272
+ "name": "_controllers",
124273
+ "type": {
124274
+ "text": "Set<SbbReactiveController> | undefined"
124275
+ },
124276
+ "privacy": "private",
124277
+ "inheritedFrom": {
124278
+ "name": "SbbElement",
124279
+ "module": "core/base-elements/element.js"
124280
+ }
124281
+ }
124282
+ ],
124283
+ "attributes": [
124284
+ {
124285
+ "name": "focusable",
124286
+ "type": {
124287
+ "text": "boolean"
124288
+ },
124289
+ "default": "false",
124290
+ "description": "Whether the table wrapper is focusable.",
124291
+ "fieldName": "focusable"
124292
+ },
124293
+ {
124294
+ "name": "negative",
124295
+ "type": {
124296
+ "text": "boolean"
124297
+ },
124298
+ "default": "false",
124299
+ "description": "Negative coloring variant flag.",
124300
+ "fieldName": "negative",
124301
+ "inheritedFrom": {
124302
+ "name": "SbbNegativeMixin",
124303
+ "module": "core/mixins/negative-mixin.js"
124304
+ }
124305
+ }
124306
+ ],
124307
+ "mixins": [
124308
+ {
124309
+ "name": "SbbNegativeMixin",
124310
+ "module": "core/mixins.js"
124311
+ }
124312
+ ],
124313
+ "superclass": {
124314
+ "name": "SbbElement",
124315
+ "module": "core/base-elements.js"
124316
+ },
124317
+ "tagName": "sbb-table-wrapper",
124318
+ "customElement": true
124319
+ }
124320
+ ],
124321
+ "exports": [
124322
+ {
124323
+ "kind": "js",
124324
+ "name": "SbbTableWrapperElement",
124325
+ "declaration": {
124326
+ "name": "SbbTableWrapperElement",
124327
+ "module": "table/table-wrapper/table-wrapper.component.js"
124328
+ }
124329
+ }
124330
+ ]
124331
+ },
124077
124332
  {
124078
124333
  "kind": "javascript-module",
124079
124334
  "path": "stepper/stepper/stepper.component.js",
@@ -124705,261 +124960,6 @@
124705
124960
  }
124706
124961
  ]
124707
124962
  },
124708
- {
124709
- "kind": "javascript-module",
124710
- "path": "table/table-wrapper/table-wrapper.component.js",
124711
- "declarations": [
124712
- {
124713
- "kind": "class",
124714
- "description": "Wraps a table to enhance its functionality.",
124715
- "name": "SbbTableWrapperElement",
124716
- "slots": [
124717
- {
124718
- "description": "Use the unnamed slot to add the table.",
124719
- "name": ""
124720
- }
124721
- ],
124722
- "members": [
124723
- {
124724
- "kind": "field",
124725
- "name": "elementName",
124726
- "type": {
124727
- "text": "string"
124728
- },
124729
- "privacy": "public",
124730
- "static": true,
124731
- "readonly": true,
124732
- "default": "'sbb-table-wrapper'",
124733
- "inheritedFrom": {
124734
- "name": "SbbElement",
124735
- "module": "core/base-elements/element.js"
124736
- }
124737
- },
124738
- {
124739
- "kind": "field",
124740
- "name": "role",
124741
- "type": {
124742
- "text": "string"
124743
- },
124744
- "privacy": "public",
124745
- "static": true,
124746
- "readonly": true,
124747
- "default": "'section'"
124748
- },
124749
- {
124750
- "kind": "field",
124751
- "name": "focusable",
124752
- "type": {
124753
- "text": "boolean"
124754
- },
124755
- "privacy": "public",
124756
- "default": "false",
124757
- "description": "Whether the table wrapper is focusable.",
124758
- "attribute": "focusable",
124759
- "reflects": true
124760
- },
124761
- {
124762
- "kind": "method",
124763
- "name": "_updateScrollbarClass",
124764
- "privacy": "private",
124765
- "return": {
124766
- "type": {
124767
- "text": "void"
124768
- }
124769
- }
124770
- },
124771
- {
124772
- "kind": "method",
124773
- "name": "_checkHorizontalScrollbarOffset",
124774
- "privacy": "private",
124775
- "return": {
124776
- "type": {
124777
- "text": "void"
124778
- }
124779
- },
124780
- "description": "Calculates whether the table is horizontally scrolled and adds the\ncorresponding class `sbb-table-wrapper-offset-${none | left | right | both}`"
124781
- },
124782
- {
124783
- "kind": "method",
124784
- "name": "_calculateScrollOffset",
124785
- "privacy": "private",
124786
- "return": {
124787
- "type": {
124788
- "text": "'none' | 'left' | 'right' | 'both'"
124789
- }
124790
- }
124791
- },
124792
- {
124793
- "kind": "field",
124794
- "name": "negative",
124795
- "type": {
124796
- "text": "boolean"
124797
- },
124798
- "privacy": "public",
124799
- "default": "false",
124800
- "description": "Negative coloring variant flag.",
124801
- "attribute": "negative",
124802
- "reflects": true,
124803
- "inheritedFrom": {
124804
- "name": "SbbNegativeMixin",
124805
- "module": "core/mixins/negative-mixin.js"
124806
- }
124807
- },
124808
- {
124809
- "kind": "field",
124810
- "name": "_hydrationRequired",
124811
- "type": {
124812
- "text": "boolean"
124813
- },
124814
- "privacy": "private",
124815
- "default": "!!this.shadowRoot",
124816
- "inheritedFrom": {
124817
- "name": "SbbElement",
124818
- "module": "core/base-elements/element.js"
124819
- }
124820
- },
124821
- {
124822
- "kind": "field",
124823
- "name": "_hydrationComplete",
124824
- "privacy": "private",
124825
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
124826
- "inheritedFrom": {
124827
- "name": "SbbElement",
124828
- "module": "core/base-elements/element.js"
124829
- }
124830
- },
124831
- {
124832
- "kind": "field",
124833
- "name": "_resolveHydration",
124834
- "type": {
124835
- "text": "(hydrationRequired: boolean) => void"
124836
- },
124837
- "privacy": "private",
124838
- "inheritedFrom": {
124839
- "name": "SbbElement",
124840
- "module": "core/base-elements/element.js"
124841
- }
124842
- },
124843
- {
124844
- "kind": "field",
124845
- "name": "hydrationRequired",
124846
- "type": {
124847
- "text": "boolean"
124848
- },
124849
- "privacy": "protected",
124850
- "description": "Returns whether hydration is required and not completed.",
124851
- "readonly": true,
124852
- "inheritedFrom": {
124853
- "name": "SbbElement",
124854
- "module": "core/base-elements/element.js"
124855
- },
124856
- "default": "!!this.shadowRoot"
124857
- },
124858
- {
124859
- "kind": "method",
124860
- "name": "toggleState",
124861
- "privacy": "protected",
124862
- "return": {
124863
- "type": {
124864
- "text": "void"
124865
- }
124866
- },
124867
- "parameters": [
124868
- {
124869
- "name": "value",
124870
- "type": {
124871
- "text": "string"
124872
- }
124873
- },
124874
- {
124875
- "name": "force",
124876
- "optional": true,
124877
- "type": {
124878
- "text": "boolean"
124879
- }
124880
- }
124881
- ],
124882
- "inheritedFrom": {
124883
- "name": "SbbElement",
124884
- "module": "core/base-elements/element.js"
124885
- }
124886
- },
124887
- {
124888
- "kind": "field",
124889
- "name": "['_$sbbElement$']",
124890
- "type": {
124891
- "text": "boolean"
124892
- },
124893
- "privacy": "public",
124894
- "static": true,
124895
- "default": "true",
124896
- "inheritedFrom": {
124897
- "name": "SbbElement",
124898
- "module": "core/base-elements/element.js"
124899
- }
124900
- },
124901
- {
124902
- "kind": "field",
124903
- "name": "_controllers",
124904
- "type": {
124905
- "text": "Set<SbbReactiveController> | undefined"
124906
- },
124907
- "privacy": "private",
124908
- "inheritedFrom": {
124909
- "name": "SbbElement",
124910
- "module": "core/base-elements/element.js"
124911
- }
124912
- }
124913
- ],
124914
- "attributes": [
124915
- {
124916
- "name": "focusable",
124917
- "type": {
124918
- "text": "boolean"
124919
- },
124920
- "default": "false",
124921
- "description": "Whether the table wrapper is focusable.",
124922
- "fieldName": "focusable"
124923
- },
124924
- {
124925
- "name": "negative",
124926
- "type": {
124927
- "text": "boolean"
124928
- },
124929
- "default": "false",
124930
- "description": "Negative coloring variant flag.",
124931
- "fieldName": "negative",
124932
- "inheritedFrom": {
124933
- "name": "SbbNegativeMixin",
124934
- "module": "core/mixins/negative-mixin.js"
124935
- }
124936
- }
124937
- ],
124938
- "mixins": [
124939
- {
124940
- "name": "SbbNegativeMixin",
124941
- "module": "core/mixins.js"
124942
- }
124943
- ],
124944
- "superclass": {
124945
- "name": "SbbElement",
124946
- "module": "core/base-elements.js"
124947
- },
124948
- "tagName": "sbb-table-wrapper",
124949
- "customElement": true
124950
- }
124951
- ],
124952
- "exports": [
124953
- {
124954
- "kind": "js",
124955
- "name": "SbbTableWrapperElement",
124956
- "declaration": {
124957
- "name": "SbbTableWrapperElement",
124958
- "module": "table/table-wrapper/table-wrapper.component.js"
124959
- }
124960
- }
124961
- ]
124962
- },
124963
124963
  {
124964
124964
  "kind": "javascript-module",
124965
124965
  "path": "tabs/common/styles.js",