@sbb-esta/lyne-elements-dev 4.0.0-dev.1775820342 → 4.0.0-dev.1775868749

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 +810 -810
  2. package/package.json +2 -2
@@ -127091,12 +127091,12 @@
127091
127091
  },
127092
127092
  {
127093
127093
  "kind": "javascript-module",
127094
- "path": "menu/menu-link/menu-link.component.js",
127094
+ "path": "menu/menu-button/menu-button.component.js",
127095
127095
  "declarations": [
127096
127096
  {
127097
127097
  "kind": "class",
127098
- "description": "It displays a link element that can be used in the `sbb-menu` component.",
127099
- "name": "SbbMenuLinkElement",
127098
+ "description": "It displays a button element that can be used in the `sbb-menu` component.",
127099
+ "name": "SbbMenuButtonElement",
127100
127100
  "cssProperties": [
127101
127101
  {
127102
127102
  "description": "Can be used to modify horizontal padding.",
@@ -127106,7 +127106,7 @@
127106
127106
  ],
127107
127107
  "slots": [
127108
127108
  {
127109
- "description": "Use the unnamed slot to add content to the `sbb-menu-link`.",
127109
+ "description": "Use the unnamed slot to add content to the `sbb-menu-button`.",
127110
127110
  "name": ""
127111
127111
  },
127112
127112
  {
@@ -127128,21 +127128,22 @@
127128
127128
  "name": "SbbElement",
127129
127129
  "module": "core/base-elements/element.js"
127130
127130
  },
127131
- "default": "'sbb-menu-link'"
127131
+ "default": "'sbb-menu-button'"
127132
127132
  },
127133
127133
  {
127134
127134
  "kind": "field",
127135
- "name": "anchorRole",
127135
+ "name": "role",
127136
127136
  "type": {
127137
- "text": "string"
127137
+ "text": "ElementInternals['role']"
127138
127138
  },
127139
- "privacy": "protected",
127140
- "readonly": true,
127141
- "default": "'menuitem'",
127139
+ "privacy": "public",
127140
+ "static": true,
127142
127141
  "inheritedFrom": {
127143
- "name": "SbbLinkBaseElement",
127144
- "module": "core/base-elements/link-base-element.js"
127145
- }
127142
+ "name": "SbbElement",
127143
+ "module": "core/base-elements/element.js"
127144
+ },
127145
+ "readonly": true,
127146
+ "default": "'menuitem'"
127146
127147
  },
127147
127148
  {
127148
127149
  "kind": "field",
@@ -127160,6 +127161,50 @@
127160
127161
  "module": "core/mixins/disabled-mixin.js"
127161
127162
  }
127162
127163
  },
127164
+ {
127165
+ "kind": "field",
127166
+ "name": "disabled",
127167
+ "privacy": "public",
127168
+ "description": "Whether the component is disabled.",
127169
+ "default": "false",
127170
+ "type": {
127171
+ "text": "boolean"
127172
+ },
127173
+ "attribute": "disabled",
127174
+ "reflects": true,
127175
+ "inheritedFrom": {
127176
+ "name": "SbbDisabledMixin",
127177
+ "module": "core/mixins/disabled-mixin.js"
127178
+ }
127179
+ },
127180
+ {
127181
+ "kind": "field",
127182
+ "name": "#disabled",
127183
+ "privacy": "private",
127184
+ "type": {
127185
+ "text": "boolean"
127186
+ },
127187
+ "default": "false",
127188
+ "inheritedFrom": {
127189
+ "name": "SbbDisabledMixin",
127190
+ "module": "core/mixins/disabled-mixin.js"
127191
+ }
127192
+ },
127193
+ {
127194
+ "kind": "method",
127195
+ "name": "isDisabledExternally",
127196
+ "privacy": "protected",
127197
+ "return": {
127198
+ "type": {
127199
+ "text": "boolean"
127200
+ }
127201
+ },
127202
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
127203
+ "inheritedFrom": {
127204
+ "name": "SbbDisabledMixin",
127205
+ "module": "core/mixins/disabled-mixin.js"
127206
+ }
127207
+ },
127163
127208
  {
127164
127209
  "kind": "field",
127165
127210
  "name": "styles",
@@ -127271,328 +127316,243 @@
127271
127316
  },
127272
127317
  {
127273
127318
  "kind": "field",
127274
- "name": "disabled",
127275
- "privacy": "public",
127276
- "description": "Whether the component is disabled.",
127277
- "default": "false",
127319
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
127278
127320
  "type": {
127279
- "text": "boolean"
127321
+ "text": "array"
127280
127322
  },
127281
- "attribute": "disabled",
127282
- "reflects": true,
127283
- "inheritedFrom": {
127284
- "name": "SbbDisabledMixin",
127285
- "module": "core/mixins/disabled-mixin.js"
127286
- }
127287
- },
127288
- {
127289
- "kind": "field",
127290
- "name": "#disabled",
127291
127323
  "privacy": "private",
127292
- "type": {
127293
- "text": "boolean"
127294
- },
127295
- "default": "false",
127296
- "inheritedFrom": {
127297
- "name": "SbbDisabledMixin",
127298
- "module": "core/mixins/disabled-mixin.js"
127299
- }
127300
- },
127301
- {
127302
- "kind": "method",
127303
- "name": "isDisabledExternally",
127304
- "privacy": "protected",
127305
- "return": {
127306
- "type": {
127307
- "text": "boolean"
127308
- }
127309
- },
127310
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
127324
+ "readonly": true,
127325
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
127311
127326
  "inheritedFrom": {
127312
- "name": "SbbDisabledMixin",
127313
- "module": "core/mixins/disabled-mixin.js"
127327
+ "name": "SbbButtonBaseElement",
127328
+ "module": "core/base-elements/button-base-element.js"
127314
127329
  }
127315
127330
  },
127316
127331
  {
127317
127332
  "kind": "field",
127318
- "name": "href",
127333
+ "name": "value",
127319
127334
  "type": {
127320
127335
  "text": "string"
127321
127336
  },
127322
127337
  "privacy": "public",
127323
- "default": "''",
127324
- "description": "The href value you want to link to.",
127325
- "attribute": "href",
127326
- "reflects": true,
127327
127338
  "inheritedFrom": {
127328
- "name": "SbbLinkBaseElement",
127329
- "module": "core/base-elements/link-base-element.js"
127330
- }
127331
- },
127332
- {
127333
- "kind": "field",
127334
- "name": "target",
127335
- "type": {
127336
- "text": "LinkTargetType | string"
127339
+ "name": "SbbButtonBaseElement",
127340
+ "module": "core/base-elements/button-base-element.js"
127337
127341
  },
127338
- "privacy": "public",
127339
127342
  "default": "''",
127340
- "description": "Where to display the linked URL.",
127341
- "attribute": "target",
127342
- "reflects": true,
127343
- "inheritedFrom": {
127344
- "name": "SbbLinkBaseElement",
127345
- "module": "core/base-elements/link-base-element.js"
127346
- }
127343
+ "description": "Value of the form element.",
127344
+ "attribute": "value"
127347
127345
  },
127348
127346
  {
127349
127347
  "kind": "field",
127350
- "name": "rel",
127351
- "type": {
127352
- "text": "string"
127353
- },
127348
+ "name": "type",
127354
127349
  "privacy": "public",
127355
- "default": "''",
127356
- "description": "The relationship of the linked URL as space-separated link types.",
127357
- "attribute": "rel",
127358
- "reflects": true,
127359
- "inheritedFrom": {
127360
- "name": "SbbLinkBaseElement",
127361
- "module": "core/base-elements/link-base-element.js"
127362
- }
127363
- },
127364
- {
127365
- "kind": "field",
127366
- "name": "download",
127350
+ "description": "The type attribute to use for the button.",
127351
+ "default": "'button'",
127367
127352
  "type": {
127368
- "text": "boolean"
127353
+ "text": "SbbButtonType"
127369
127354
  },
127370
- "privacy": "public",
127371
- "default": "false",
127372
- "description": "Whether the browser will show the download dialog on click.",
127373
- "attribute": "download",
127374
- "reflects": true,
127355
+ "attribute": "type",
127375
127356
  "inheritedFrom": {
127376
- "name": "SbbLinkBaseElement",
127377
- "module": "core/base-elements/link-base-element.js"
127357
+ "name": "SbbButtonBaseElement",
127358
+ "module": "core/base-elements/button-base-element.js"
127378
127359
  }
127379
127360
  },
127380
127361
  {
127381
127362
  "kind": "field",
127382
- "name": "accessibilityLabel",
127363
+ "name": "form",
127383
127364
  "type": {
127384
- "text": "string"
127365
+ "text": "HTMLFormElement | null"
127385
127366
  },
127386
127367
  "privacy": "public",
127387
- "default": "''",
127388
- "description": "This will be forwarded as aria-label to the inner anchor element.",
127389
- "attribute": "accessibility-label",
127368
+ "description": "The `<form>` element to associate the button with.",
127390
127369
  "inheritedFrom": {
127391
- "name": "SbbLinkBaseElement",
127392
- "module": "core/base-elements/link-base-element.js"
127393
- }
127370
+ "name": "SbbButtonBaseElement",
127371
+ "module": "core/base-elements/button-base-element.js"
127372
+ },
127373
+ "attribute": "form"
127394
127374
  },
127395
127375
  {
127396
127376
  "kind": "field",
127397
- "name": "accessibilityCurrent",
127377
+ "name": "_formId",
127398
127378
  "type": {
127399
127379
  "text": "string"
127400
127380
  },
127401
- "privacy": "public",
127381
+ "privacy": "private",
127402
127382
  "default": "''",
127403
- "description": "This will be forwarded as aria-current to the inner anchor element.",
127404
- "attribute": "accessibility-current",
127405
127383
  "inheritedFrom": {
127406
- "name": "SbbLinkBaseElement",
127407
- "module": "core/base-elements/link-base-element.js"
127408
- }
127409
- },
127410
- {
127411
- "kind": "field",
127412
- "name": "language",
127413
- "privacy": "protected",
127414
- "default": "new SbbLanguageController(this)",
127415
- "inheritedFrom": {
127416
- "name": "SbbLinkBaseElement",
127417
- "module": "core/base-elements/link-base-element.js"
127384
+ "name": "SbbButtonBaseElement",
127385
+ "module": "core/base-elements/button-base-element.js"
127418
127386
  }
127419
127387
  },
127420
127388
  {
127421
127389
  "kind": "field",
127422
- "name": "_evaluateRelAttribute",
127390
+ "name": "_handleButtonClick",
127423
127391
  "privacy": "private",
127424
127392
  "inheritedFrom": {
127425
- "name": "SbbLinkBaseElement",
127426
- "module": "core/base-elements/link-base-element.js"
127393
+ "name": "SbbButtonBaseElement",
127394
+ "module": "core/base-elements/button-base-element.js"
127427
127395
  }
127428
127396
  },
127429
127397
  {
127430
127398
  "kind": "method",
127431
- "name": "renderLink",
127432
- "privacy": "protected",
127399
+ "name": "_requestSubmit",
127400
+ "privacy": "private",
127433
127401
  "return": {
127434
127402
  "type": {
127435
- "text": "TemplateResult"
127403
+ "text": "void"
127436
127404
  }
127437
127405
  },
127438
127406
  "parameters": [
127439
127407
  {
127440
- "name": "renderContent",
127408
+ "name": "form",
127441
127409
  "type": {
127442
- "text": "TemplateResult"
127410
+ "text": "HTMLFormElement"
127443
127411
  }
127444
127412
  }
127445
127413
  ],
127446
127414
  "inheritedFrom": {
127447
- "name": "SbbLinkBaseElement",
127448
- "module": "core/base-elements/link-base-element.js"
127415
+ "name": "SbbButtonBaseElement",
127416
+ "module": "core/base-elements/button-base-element.js"
127449
127417
  }
127450
127418
  },
127451
127419
  {
127452
127420
  "kind": "field",
127453
- "name": "maybeDisabled",
127454
- "type": {
127455
- "text": "boolean | undefined"
127456
- },
127457
- "privacy": "protected",
127458
- "readonly": true,
127421
+ "name": "_formKeyDown",
127422
+ "privacy": "private",
127459
127423
  "inheritedFrom": {
127460
- "name": "SbbActionBaseElement",
127461
- "module": "core/base-elements/action-base-element.js"
127424
+ "name": "SbbButtonBaseElement",
127425
+ "module": "core/base-elements/button-base-element.js"
127462
127426
  }
127463
127427
  },
127464
127428
  {
127465
127429
  "kind": "field",
127466
- "name": "maybeDisabledInteractive",
127430
+ "name": "formAssociated",
127467
127431
  "type": {
127468
- "text": "boolean | undefined"
127432
+ "text": "boolean"
127469
127433
  },
127470
- "privacy": "protected",
127471
- "readonly": true,
127434
+ "privacy": "public",
127435
+ "static": true,
127436
+ "default": "true",
127472
127437
  "inheritedFrom": {
127473
- "name": "SbbActionBaseElement",
127474
- "module": "core/base-elements/action-base-element.js"
127475
- }
127476
- },
127477
- {
127478
- "kind": "method",
127479
- "name": "setupBaseEventHandlers",
127480
- "privacy": "protected",
127481
- "return": {
127482
- "type": {
127483
- "text": "void"
127484
- }
127485
- },
127486
- "inheritedFrom": {
127487
- "name": "SbbActionBaseElement",
127488
- "module": "core/base-elements/action-base-element.js"
127438
+ "name": "SbbFormAssociatedMixin",
127439
+ "module": "core/mixins/form-associated-mixin.js"
127489
127440
  }
127490
127441
  },
127491
127442
  {
127492
127443
  "kind": "field",
127493
- "name": "['_$sbbElement$']",
127444
+ "name": "name",
127445
+ "privacy": "public",
127446
+ "description": "Name of the form element. Will be read from name attribute.",
127494
127447
  "type": {
127495
- "text": "boolean"
127448
+ "text": "string"
127496
127449
  },
127497
- "privacy": "public",
127498
- "static": true,
127499
- "default": "true",
127450
+ "attribute": "name",
127500
127451
  "inheritedFrom": {
127501
- "name": "SbbElement",
127502
- "module": "core/base-elements/element.js"
127452
+ "name": "SbbFormAssociatedMixin",
127453
+ "module": "core/mixins/form-associated-mixin.js"
127503
127454
  }
127504
127455
  },
127505
127456
  {
127506
127457
  "kind": "field",
127507
- "name": "role",
127458
+ "name": "validity",
127508
127459
  "type": {
127509
- "text": "ElementInternals['role'] | undefined"
127460
+ "text": "ValidityState"
127510
127461
  },
127511
127462
  "privacy": "public",
127512
- "static": true,
127463
+ "description": "Returns the ValidityState object for this element.",
127464
+ "readonly": true,
127513
127465
  "inheritedFrom": {
127514
- "name": "SbbElement",
127515
- "module": "core/base-elements/element.js"
127466
+ "name": "SbbFormAssociatedMixin",
127467
+ "module": "core/mixins/form-associated-mixin.js"
127516
127468
  }
127517
127469
  },
127518
127470
  {
127519
127471
  "kind": "field",
127520
- "name": "_controllers",
127472
+ "name": "validationMessage",
127521
127473
  "type": {
127522
- "text": "Set<SbbReactiveController> | undefined"
127474
+ "text": "string"
127523
127475
  },
127524
- "privacy": "private",
127476
+ "privacy": "public",
127477
+ "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.",
127478
+ "readonly": true,
127525
127479
  "inheritedFrom": {
127526
- "name": "SbbElement",
127527
- "module": "core/base-elements/element.js"
127480
+ "name": "SbbFormAssociatedMixin",
127481
+ "module": "core/mixins/form-associated-mixin.js"
127528
127482
  }
127529
127483
  },
127530
127484
  {
127531
127485
  "kind": "field",
127532
- "name": "_hydrationRequired",
127486
+ "name": "willValidate",
127533
127487
  "type": {
127534
127488
  "text": "boolean"
127535
127489
  },
127536
- "privacy": "private",
127537
- "default": "!!this.shadowRoot",
127490
+ "privacy": "public",
127491
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
127492
+ "readonly": true,
127538
127493
  "inheritedFrom": {
127539
- "name": "SbbElement",
127540
- "module": "core/base-elements/element.js"
127494
+ "name": "SbbFormAssociatedMixin",
127495
+ "module": "core/mixins/form-associated-mixin.js"
127541
127496
  }
127542
127497
  },
127543
127498
  {
127544
127499
  "kind": "field",
127545
- "name": "_hydrationComplete",
127500
+ "name": "_validityStates",
127546
127501
  "privacy": "private",
127547
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
127502
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
127548
127503
  "inheritedFrom": {
127549
- "name": "SbbElement",
127550
- "module": "core/base-elements/element.js"
127504
+ "name": "SbbFormAssociatedMixin",
127505
+ "module": "core/mixins/form-associated-mixin.js"
127551
127506
  }
127552
127507
  },
127553
127508
  {
127554
127509
  "kind": "field",
127555
- "name": "_resolveHydration",
127510
+ "name": "formDisabled",
127556
127511
  "type": {
127557
- "text": "(hydrationRequired: boolean) => void"
127512
+ "text": "boolean"
127558
127513
  },
127559
- "privacy": "private",
127514
+ "privacy": "protected",
127515
+ "default": "false",
127516
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
127560
127517
  "inheritedFrom": {
127561
- "name": "SbbElement",
127562
- "module": "core/base-elements/element.js"
127518
+ "name": "SbbFormAssociatedMixin",
127519
+ "module": "core/mixins/form-associated-mixin.js"
127563
127520
  }
127564
127521
  },
127565
127522
  {
127566
- "kind": "field",
127567
- "name": "_textObserver",
127568
- "type": {
127569
- "text": "MutationObserver | undefined"
127523
+ "kind": "method",
127524
+ "name": "checkValidity",
127525
+ "privacy": "public",
127526
+ "return": {
127527
+ "type": {
127528
+ "text": "boolean"
127529
+ }
127570
127530
  },
127571
- "privacy": "private",
127531
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
127572
127532
  "inheritedFrom": {
127573
- "name": "SbbElement",
127574
- "module": "core/base-elements/element.js"
127533
+ "name": "SbbFormAssociatedMixin",
127534
+ "module": "core/mixins/form-associated-mixin.js"
127575
127535
  }
127576
127536
  },
127577
127537
  {
127578
- "kind": "field",
127579
- "name": "hydrationRequired",
127580
- "type": {
127581
- "text": "boolean"
127538
+ "kind": "method",
127539
+ "name": "reportValidity",
127540
+ "privacy": "public",
127541
+ "return": {
127542
+ "type": {
127543
+ "text": "boolean"
127544
+ }
127582
127545
  },
127583
- "privacy": "protected",
127584
- "description": "Returns whether hydration is required and not completed.",
127585
- "readonly": true,
127546
+ "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.",
127586
127547
  "inheritedFrom": {
127587
- "name": "SbbElement",
127588
- "module": "core/base-elements/element.js"
127589
- },
127590
- "default": "!!this.shadowRoot"
127548
+ "name": "SbbFormAssociatedMixin",
127549
+ "module": "core/mixins/form-associated-mixin.js"
127550
+ }
127591
127551
  },
127592
127552
  {
127593
127553
  "kind": "method",
127594
- "name": "toggleState",
127595
- "privacy": "protected",
127554
+ "name": "setCustomValidity",
127555
+ "privacy": "public",
127596
127556
  "return": {
127597
127557
  "type": {
127598
127558
  "text": "void"
@@ -127600,56 +127560,65 @@
127600
127560
  },
127601
127561
  "parameters": [
127602
127562
  {
127603
- "name": "value",
127563
+ "name": "message",
127604
127564
  "type": {
127605
127565
  "text": "string"
127606
127566
  }
127607
- },
127608
- {
127609
- "name": "force",
127610
- "optional": true,
127611
- "type": {
127612
- "text": "boolean"
127613
- }
127614
127567
  }
127615
127568
  ],
127569
+ "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.",
127616
127570
  "inheritedFrom": {
127617
- "name": "SbbElement",
127618
- "module": "core/base-elements/element.js"
127571
+ "name": "SbbFormAssociatedMixin",
127572
+ "module": "core/mixins/form-associated-mixin.js"
127619
127573
  }
127620
127574
  },
127621
127575
  {
127622
127576
  "kind": "method",
127623
- "name": "_slotchangeHandler",
127577
+ "name": "_hasDisabledAncestor",
127624
127578
  "privacy": "private",
127579
+ "return": {
127580
+ "type": {
127581
+ "text": "boolean"
127582
+ }
127583
+ },
127584
+ "inheritedFrom": {
127585
+ "name": "SbbFormAssociatedMixin",
127586
+ "module": "core/mixins/form-associated-mixin.js"
127587
+ }
127588
+ },
127589
+ {
127590
+ "kind": "method",
127591
+ "name": "updateFormValue",
127592
+ "privacy": "protected",
127625
127593
  "return": {
127626
127594
  "type": {
127627
127595
  "text": "void"
127628
127596
  }
127629
127597
  },
127630
- "parameters": [
127631
- {
127632
- "name": "event",
127633
- "type": {
127634
- "text": "Event"
127635
- }
127636
- },
127637
- {
127638
- "name": "slot",
127639
- "type": {
127640
- "text": "HTMLSlotElement"
127641
- }
127598
+ "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",
127599
+ "inheritedFrom": {
127600
+ "name": "SbbFormAssociatedMixin",
127601
+ "module": "core/mixins/form-associated-mixin.js"
127602
+ }
127603
+ },
127604
+ {
127605
+ "kind": "method",
127606
+ "name": "formState",
127607
+ "privacy": "protected",
127608
+ "return": {
127609
+ "type": {
127610
+ "text": "FormRestoreState"
127642
127611
  }
127643
- ],
127612
+ },
127644
127613
  "inheritedFrom": {
127645
- "name": "SbbElement",
127646
- "module": "core/base-elements/element.js"
127614
+ "name": "SbbFormAssociatedMixin",
127615
+ "module": "core/mixins/form-associated-mixin.js"
127647
127616
  }
127648
127617
  },
127649
127618
  {
127650
127619
  "kind": "method",
127651
- "name": "_handleSlotChangeForSlottedState",
127652
- "privacy": "private",
127620
+ "name": "setValidityFlag",
127621
+ "privacy": "protected",
127653
127622
  "return": {
127654
127623
  "type": {
127655
127624
  "text": "void"
@@ -127657,21 +127626,35 @@
127657
127626
  },
127658
127627
  "parameters": [
127659
127628
  {
127660
- "name": "slot",
127629
+ "name": "flag",
127661
127630
  "type": {
127662
- "text": "HTMLSlotElement"
127631
+ "text": "T"
127632
+ }
127633
+ },
127634
+ {
127635
+ "name": "message",
127636
+ "type": {
127637
+ "text": "string"
127638
+ }
127639
+ },
127640
+ {
127641
+ "name": "flagValue",
127642
+ "optional": true,
127643
+ "type": {
127644
+ "text": "ValidityStateFlags[T]"
127663
127645
  }
127664
127646
  }
127665
127647
  ],
127648
+ "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).",
127666
127649
  "inheritedFrom": {
127667
- "name": "SbbElement",
127668
- "module": "core/base-elements/element.js"
127650
+ "name": "SbbFormAssociatedMixin",
127651
+ "module": "core/mixins/form-associated-mixin.js"
127669
127652
  }
127670
127653
  },
127671
127654
  {
127672
127655
  "kind": "method",
127673
- "name": "_updateSlottedState",
127674
- "privacy": "private",
127656
+ "name": "removeValidityFlag",
127657
+ "privacy": "protected",
127675
127658
  "return": {
127676
127659
  "type": {
127677
127660
  "text": "void"
@@ -127679,43 +127662,37 @@
127679
127662
  },
127680
127663
  "parameters": [
127681
127664
  {
127682
- "name": "slot",
127665
+ "name": "flag",
127683
127666
  "type": {
127684
- "text": "HTMLSlotElement"
127667
+ "text": "T"
127685
127668
  }
127686
127669
  }
127687
127670
  ],
127671
+ "description": "Removes the validity state flag entry and updates validity state.",
127688
127672
  "inheritedFrom": {
127689
- "name": "SbbElement",
127690
- "module": "core/base-elements/element.js"
127673
+ "name": "SbbFormAssociatedMixin",
127674
+ "module": "core/mixins/form-associated-mixin.js"
127691
127675
  }
127692
127676
  },
127693
127677
  {
127694
127678
  "kind": "method",
127695
- "name": "_observeTextNodesInSlot",
127696
- "privacy": "private",
127679
+ "name": "validate",
127680
+ "privacy": "protected",
127697
127681
  "return": {
127698
127682
  "type": {
127699
127683
  "text": "void"
127700
127684
  }
127701
127685
  },
127702
- "parameters": [
127703
- {
127704
- "name": "slot",
127705
- "type": {
127706
- "text": "HTMLSlotElement"
127707
- }
127708
- }
127709
- ],
127686
+ "description": "To be called whenever the current element needs to be validated.",
127710
127687
  "inheritedFrom": {
127711
- "name": "SbbElement",
127712
- "module": "core/base-elements/element.js"
127688
+ "name": "SbbFormAssociatedMixin",
127689
+ "module": "core/mixins/form-associated-mixin.js"
127713
127690
  }
127714
127691
  },
127715
127692
  {
127716
127693
  "kind": "method",
127717
- "name": "_hasSlottedContent",
127718
- "privacy": "private",
127694
+ "name": "shouldValidate",
127695
+ "privacy": "protected",
127719
127696
  "return": {
127720
127697
  "type": {
127721
127698
  "text": "boolean"
@@ -127723,851 +127700,833 @@
127723
127700
  },
127724
127701
  "parameters": [
127725
127702
  {
127726
- "name": "slot",
127703
+ "name": "name",
127727
127704
  "type": {
127728
- "text": "HTMLSlotElement"
127705
+ "text": "PropertyKey | undefined"
127729
127706
  }
127730
127707
  }
127731
127708
  ],
127709
+ "description": "Whether validation should be run on a property change with the given name.",
127732
127710
  "inheritedFrom": {
127733
- "name": "SbbElement",
127734
- "module": "core/base-elements/element.js"
127711
+ "name": "SbbFormAssociatedMixin",
127712
+ "module": "core/mixins/form-associated-mixin.js"
127735
127713
  }
127736
- }
127737
- ],
127738
- "mixins": [
127739
- {
127740
- "name": "SbbDisabledInteractiveMixin",
127741
- "module": "core.js"
127742
127714
  },
127743
127715
  {
127744
- "name": "SbbMenuActionCommonElementMixin",
127745
- "module": "menu/common/menu-action-common.js"
127746
- }
127747
- ],
127748
- "superclass": {
127749
- "name": "SbbLinkBaseElement",
127750
- "module": "core.js"
127751
- },
127752
- "tagName": "sbb-menu-link",
127753
- "customElement": true,
127754
- "attributes": [
127755
- {
127756
- "name": "disabled-interactive",
127757
- "type": {
127758
- "text": "boolean"
127759
- },
127760
- "default": "false",
127761
- "description": "Whether the button should be aria-disabled but stay interactive.",
127762
- "fieldName": "disabledInteractive",
127763
- "inheritedFrom": {
127764
- "name": "SbbDisabledInteractiveMixin",
127765
- "module": "core/mixins/disabled-mixin.js"
127766
- }
127767
- },
127768
- {
127769
- "name": "icon-name",
127770
- "type": {
127771
- "text": "string"
127716
+ "kind": "method",
127717
+ "name": "_setInternalValidity",
127718
+ "privacy": "private",
127719
+ "return": {
127720
+ "type": {
127721
+ "text": "void"
127722
+ }
127772
127723
  },
127773
- "default": "''",
127774
- "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.",
127775
- "fieldName": "iconName",
127776
127724
  "inheritedFrom": {
127777
- "name": "SbbIconNameMixin",
127778
- "module": "icon/icon-name-mixin.js"
127725
+ "name": "SbbFormAssociatedMixin",
127726
+ "module": "core/mixins/form-associated-mixin.js"
127779
127727
  }
127780
127728
  },
127781
127729
  {
127782
- "name": "disabled",
127783
- "description": "Whether the component is disabled.",
127784
- "default": "false",
127785
- "type": {
127786
- "text": "boolean"
127787
- },
127788
- "fieldName": "disabled",
127730
+ "kind": "field",
127731
+ "name": "_preventScrollOnSpaceKeydown",
127732
+ "privacy": "private",
127733
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
127734
+ "parameters": [
127735
+ {
127736
+ "description": "The origin event.",
127737
+ "name": "event"
127738
+ }
127739
+ ],
127789
127740
  "inheritedFrom": {
127790
- "name": "SbbDisabledMixin",
127791
- "module": "core/mixins/disabled-mixin.js"
127741
+ "name": "SbbButtonLikeBaseElement",
127742
+ "module": "core/base-elements/button-base-element.js"
127792
127743
  }
127793
127744
  },
127794
127745
  {
127795
- "name": "href",
127796
- "type": {
127797
- "text": "string"
127798
- },
127799
- "default": "''",
127800
- "description": "The href value you want to link to.",
127801
- "fieldName": "href",
127746
+ "kind": "field",
127747
+ "name": "_removeActiveMarker",
127748
+ "privacy": "private",
127802
127749
  "inheritedFrom": {
127803
- "name": "SbbLinkBaseElement",
127804
- "module": "core/base-elements/link-base-element.js"
127750
+ "name": "SbbButtonLikeBaseElement",
127751
+ "module": "core/base-elements/button-base-element.js"
127805
127752
  }
127806
127753
  },
127807
127754
  {
127808
- "name": "target",
127809
- "type": {
127810
- "text": "LinkTargetType | string"
127811
- },
127812
- "default": "''",
127813
- "description": "Where to display the linked URL.",
127814
- "fieldName": "target",
127755
+ "kind": "field",
127756
+ "name": "_dispatchClickEventOnSpaceKeyup",
127757
+ "privacy": "private",
127758
+ "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.",
127759
+ "parameters": [
127760
+ {
127761
+ "description": "The origin event.",
127762
+ "name": "event"
127763
+ }
127764
+ ],
127815
127765
  "inheritedFrom": {
127816
- "name": "SbbLinkBaseElement",
127817
- "module": "core/base-elements/link-base-element.js"
127766
+ "name": "SbbButtonLikeBaseElement",
127767
+ "module": "core/base-elements/button-base-element.js"
127818
127768
  }
127819
127769
  },
127820
127770
  {
127821
- "name": "rel",
127822
- "type": {
127823
- "text": "string"
127824
- },
127825
- "default": "''",
127826
- "description": "The relationship of the linked URL as space-separated link types.",
127827
- "fieldName": "rel",
127771
+ "kind": "field",
127772
+ "name": "_dispatchClickEvent",
127773
+ "privacy": "private",
127828
127774
  "inheritedFrom": {
127829
- "name": "SbbLinkBaseElement",
127830
- "module": "core/base-elements/link-base-element.js"
127775
+ "name": "SbbButtonLikeBaseElement",
127776
+ "module": "core/base-elements/button-base-element.js"
127831
127777
  }
127832
127778
  },
127833
127779
  {
127834
- "name": "download",
127780
+ "kind": "field",
127781
+ "name": "maybeDisabled",
127835
127782
  "type": {
127836
- "text": "boolean"
127783
+ "text": "boolean | undefined"
127837
127784
  },
127838
- "default": "false",
127839
- "description": "Whether the browser will show the download dialog on click.",
127840
- "fieldName": "download",
127785
+ "privacy": "protected",
127786
+ "readonly": true,
127841
127787
  "inheritedFrom": {
127842
- "name": "SbbLinkBaseElement",
127843
- "module": "core/base-elements/link-base-element.js"
127788
+ "name": "SbbActionBaseElement",
127789
+ "module": "core/base-elements/action-base-element.js"
127844
127790
  }
127845
127791
  },
127846
127792
  {
127847
- "name": "accessibility-label",
127793
+ "kind": "field",
127794
+ "name": "maybeDisabledInteractive",
127848
127795
  "type": {
127849
- "text": "string"
127796
+ "text": "boolean | undefined"
127850
127797
  },
127851
- "default": "''",
127852
- "description": "This will be forwarded as aria-label to the inner anchor element.",
127853
- "fieldName": "accessibilityLabel",
127798
+ "privacy": "protected",
127799
+ "readonly": true,
127854
127800
  "inheritedFrom": {
127855
- "name": "SbbLinkBaseElement",
127856
- "module": "core/base-elements/link-base-element.js"
127801
+ "name": "SbbActionBaseElement",
127802
+ "module": "core/base-elements/action-base-element.js"
127857
127803
  }
127858
127804
  },
127859
127805
  {
127860
- "name": "accessibility-current",
127861
- "type": {
127862
- "text": "string"
127806
+ "kind": "method",
127807
+ "name": "setupBaseEventHandlers",
127808
+ "privacy": "protected",
127809
+ "return": {
127810
+ "type": {
127811
+ "text": "void"
127812
+ }
127863
127813
  },
127864
- "default": "''",
127865
- "description": "This will be forwarded as aria-current to the inner anchor element.",
127866
- "fieldName": "accessibilityCurrent",
127867
127814
  "inheritedFrom": {
127868
- "name": "SbbLinkBaseElement",
127869
- "module": "core/base-elements/link-base-element.js"
127815
+ "name": "SbbActionBaseElement",
127816
+ "module": "core/base-elements/action-base-element.js"
127870
127817
  }
127871
- }
127872
- ]
127873
- }
127874
- ],
127875
- "exports": [
127876
- {
127877
- "kind": "js",
127878
- "name": "SbbMenuLinkElement",
127879
- "declaration": {
127880
- "name": "SbbMenuLinkElement",
127881
- "module": "menu/menu-link/menu-link.component.js"
127882
- }
127883
- }
127884
- ]
127885
- },
127886
- {
127887
- "kind": "javascript-module",
127888
- "path": "menu/menu-button/menu-button.component.js",
127889
- "declarations": [
127890
- {
127891
- "kind": "class",
127892
- "description": "It displays a button element that can be used in the `sbb-menu` component.",
127893
- "name": "SbbMenuButtonElement",
127894
- "cssProperties": [
127895
- {
127896
- "description": "Can be used to modify horizontal padding.",
127897
- "name": "--sbb-menu-action-outer-horizontal-padding",
127898
- "default": "var(--sbb-spacing-fixed-3x)"
127899
- }
127900
- ],
127901
- "slots": [
127902
- {
127903
- "description": "Use the unnamed slot to add content to the `sbb-menu-button`.",
127904
- "name": ""
127905
127818
  },
127906
- {
127907
- "description": "Use this slot to provide an icon. If `icon-name` is set, a `sbb-icon` will be used.",
127908
- "name": "icon"
127909
- }
127910
- ],
127911
- "members": [
127912
127819
  {
127913
127820
  "kind": "field",
127914
- "name": "elementName",
127821
+ "name": "['_$sbbElement$']",
127915
127822
  "type": {
127916
- "text": "string"
127823
+ "text": "boolean"
127917
127824
  },
127918
127825
  "privacy": "public",
127919
127826
  "static": true,
127920
- "readonly": true,
127827
+ "default": "true",
127921
127828
  "inheritedFrom": {
127922
127829
  "name": "SbbElement",
127923
127830
  "module": "core/base-elements/element.js"
127924
- },
127925
- "default": "'sbb-menu-button'"
127831
+ }
127926
127832
  },
127927
127833
  {
127928
127834
  "kind": "field",
127929
- "name": "role",
127835
+ "name": "_controllers",
127930
127836
  "type": {
127931
- "text": "ElementInternals['role']"
127837
+ "text": "Set<SbbReactiveController> | undefined"
127932
127838
  },
127933
- "privacy": "public",
127934
- "static": true,
127839
+ "privacy": "private",
127935
127840
  "inheritedFrom": {
127936
127841
  "name": "SbbElement",
127937
127842
  "module": "core/base-elements/element.js"
127938
- },
127939
- "readonly": true,
127940
- "default": "'menuitem'"
127941
- },
127942
- {
127943
- "kind": "field",
127944
- "name": "disabledInteractive",
127945
- "type": {
127946
- "text": "boolean"
127947
- },
127948
- "privacy": "public",
127949
- "default": "false",
127950
- "description": "Whether the button should be aria-disabled but stay interactive.",
127951
- "attribute": "disabled-interactive",
127952
- "reflects": true,
127953
- "inheritedFrom": {
127954
- "name": "SbbDisabledInteractiveMixin",
127955
- "module": "core/mixins/disabled-mixin.js"
127956
127843
  }
127957
127844
  },
127958
127845
  {
127959
127846
  "kind": "field",
127960
- "name": "disabled",
127961
- "privacy": "public",
127962
- "description": "Whether the component is disabled.",
127963
- "default": "false",
127847
+ "name": "_hydrationRequired",
127964
127848
  "type": {
127965
127849
  "text": "boolean"
127966
127850
  },
127967
- "attribute": "disabled",
127968
- "reflects": true,
127851
+ "privacy": "private",
127852
+ "default": "!!this.shadowRoot",
127969
127853
  "inheritedFrom": {
127970
- "name": "SbbDisabledMixin",
127971
- "module": "core/mixins/disabled-mixin.js"
127854
+ "name": "SbbElement",
127855
+ "module": "core/base-elements/element.js"
127972
127856
  }
127973
127857
  },
127974
127858
  {
127975
127859
  "kind": "field",
127976
- "name": "#disabled",
127860
+ "name": "_hydrationComplete",
127977
127861
  "privacy": "private",
127978
- "type": {
127979
- "text": "boolean"
127980
- },
127981
- "default": "false",
127982
- "inheritedFrom": {
127983
- "name": "SbbDisabledMixin",
127984
- "module": "core/mixins/disabled-mixin.js"
127985
- }
127986
- },
127987
- {
127988
- "kind": "method",
127989
- "name": "isDisabledExternally",
127990
- "privacy": "protected",
127991
- "return": {
127992
- "type": {
127993
- "text": "boolean"
127994
- }
127995
- },
127996
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
127862
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
127997
127863
  "inheritedFrom": {
127998
- "name": "SbbDisabledMixin",
127999
- "module": "core/mixins/disabled-mixin.js"
127864
+ "name": "SbbElement",
127865
+ "module": "core/base-elements/element.js"
128000
127866
  }
128001
127867
  },
128002
127868
  {
128003
127869
  "kind": "field",
128004
- "name": "styles",
127870
+ "name": "_resolveHydration",
128005
127871
  "type": {
128006
- "text": "CSSResultGroup"
127872
+ "text": "(hydrationRequired: boolean) => void"
128007
127873
  },
128008
- "privacy": "public",
128009
- "static": true,
128010
- "default": "[boxSizingStyles, unsafeCSS(style)]",
127874
+ "privacy": "private",
128011
127875
  "inheritedFrom": {
128012
- "name": "SbbMenuActionCommonElementMixin",
128013
- "module": "menu/common/menu-action-common.js"
127876
+ "name": "SbbElement",
127877
+ "module": "core/base-elements/element.js"
128014
127878
  }
128015
127879
  },
128016
127880
  {
128017
- "kind": "method",
128018
- "name": "renderTemplate",
128019
- "privacy": "protected",
128020
- "return": {
128021
- "type": {
128022
- "text": "TemplateResult"
128023
- }
127881
+ "kind": "field",
127882
+ "name": "_textObserver",
127883
+ "type": {
127884
+ "text": "MutationObserver | undefined"
128024
127885
  },
128025
- "description": "Override this method to render the component template.",
127886
+ "privacy": "private",
128026
127887
  "inheritedFrom": {
128027
- "name": "SbbActionBaseElement",
128028
- "module": "core/base-elements/action-base-element.js"
127888
+ "name": "SbbElement",
127889
+ "module": "core/base-elements/element.js"
128029
127890
  }
128030
127891
  },
128031
127892
  {
128032
127893
  "kind": "field",
128033
- "name": "elementDependencies",
127894
+ "name": "hydrationRequired",
128034
127895
  "type": {
128035
- "text": "SbbElementType[]"
127896
+ "text": "boolean"
128036
127897
  },
128037
- "privacy": "public",
128038
- "static": true,
127898
+ "privacy": "protected",
127899
+ "description": "Returns whether hydration is required and not completed.",
127900
+ "readonly": true,
128039
127901
  "inheritedFrom": {
128040
127902
  "name": "SbbElement",
128041
127903
  "module": "core/base-elements/element.js"
128042
127904
  },
128043
- "default": "[SbbIconElement]"
127905
+ "default": "!!this.shadowRoot"
128044
127906
  },
128045
127907
  {
128046
- "kind": "field",
128047
- "name": "iconName",
128048
- "type": {
128049
- "text": "string"
127908
+ "kind": "method",
127909
+ "name": "toggleState",
127910
+ "privacy": "protected",
127911
+ "return": {
127912
+ "type": {
127913
+ "text": "void"
127914
+ }
128050
127915
  },
128051
- "privacy": "public",
128052
- "default": "''",
128053
- "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.",
128054
- "attribute": "icon-name",
127916
+ "parameters": [
127917
+ {
127918
+ "name": "value",
127919
+ "type": {
127920
+ "text": "string"
127921
+ }
127922
+ },
127923
+ {
127924
+ "name": "force",
127925
+ "optional": true,
127926
+ "type": {
127927
+ "text": "boolean"
127928
+ }
127929
+ }
127930
+ ],
128055
127931
  "inheritedFrom": {
128056
- "name": "SbbIconNameMixin",
128057
- "module": "icon/icon-name-mixin.js"
127932
+ "name": "SbbElement",
127933
+ "module": "core/base-elements/element.js"
128058
127934
  }
128059
127935
  },
128060
127936
  {
128061
127937
  "kind": "method",
128062
- "name": "renderIconSlot",
128063
- "privacy": "protected",
127938
+ "name": "_slotchangeHandler",
127939
+ "privacy": "private",
128064
127940
  "return": {
128065
127941
  "type": {
128066
- "text": "TemplateResult"
127942
+ "text": "void"
128067
127943
  }
128068
127944
  },
128069
127945
  "parameters": [
128070
127946
  {
128071
- "name": "classname",
128072
- "optional": true,
127947
+ "name": "event",
128073
127948
  "type": {
128074
- "text": "string"
127949
+ "text": "Event"
127950
+ }
127951
+ },
127952
+ {
127953
+ "name": "slot",
127954
+ "type": {
127955
+ "text": "HTMLSlotElement"
128075
127956
  }
128076
127957
  }
128077
127958
  ],
128078
127959
  "inheritedFrom": {
128079
- "name": "SbbIconNameMixin",
128080
- "module": "icon/icon-name-mixin.js"
127960
+ "name": "SbbElement",
127961
+ "module": "core/base-elements/element.js"
128081
127962
  }
128082
127963
  },
128083
127964
  {
128084
127965
  "kind": "method",
128085
- "name": "renderIconName",
128086
- "privacy": "protected",
127966
+ "name": "_handleSlotChangeForSlottedState",
127967
+ "privacy": "private",
128087
127968
  "return": {
128088
127969
  "type": {
128089
- "text": "string"
127970
+ "text": "void"
128090
127971
  }
128091
127972
  },
127973
+ "parameters": [
127974
+ {
127975
+ "name": "slot",
127976
+ "type": {
127977
+ "text": "HTMLSlotElement"
127978
+ }
127979
+ }
127980
+ ],
128092
127981
  "inheritedFrom": {
128093
- "name": "SbbIconNameMixin",
128094
- "module": "icon/icon-name-mixin.js"
127982
+ "name": "SbbElement",
127983
+ "module": "core/base-elements/element.js"
128095
127984
  }
128096
127985
  },
128097
127986
  {
128098
127987
  "kind": "method",
128099
- "name": "_renderIconName",
127988
+ "name": "_updateSlottedState",
128100
127989
  "privacy": "private",
128101
127990
  "return": {
128102
127991
  "type": {
128103
- "text": "string"
127992
+ "text": "void"
128104
127993
  }
128105
127994
  },
127995
+ "parameters": [
127996
+ {
127997
+ "name": "slot",
127998
+ "type": {
127999
+ "text": "HTMLSlotElement"
128000
+ }
128001
+ }
128002
+ ],
128106
128003
  "inheritedFrom": {
128107
- "name": "SbbIconNameMixin",
128108
- "module": "icon/icon-name-mixin.js"
128004
+ "name": "SbbElement",
128005
+ "module": "core/base-elements/element.js"
128109
128006
  }
128110
128007
  },
128111
128008
  {
128112
- "kind": "field",
128113
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
128114
- "type": {
128115
- "text": "array"
128116
- },
128009
+ "kind": "method",
128010
+ "name": "_observeTextNodesInSlot",
128117
128011
  "privacy": "private",
128118
- "readonly": true,
128119
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
128012
+ "return": {
128013
+ "type": {
128014
+ "text": "void"
128015
+ }
128016
+ },
128017
+ "parameters": [
128018
+ {
128019
+ "name": "slot",
128020
+ "type": {
128021
+ "text": "HTMLSlotElement"
128022
+ }
128023
+ }
128024
+ ],
128120
128025
  "inheritedFrom": {
128121
- "name": "SbbButtonBaseElement",
128122
- "module": "core/base-elements/button-base-element.js"
128026
+ "name": "SbbElement",
128027
+ "module": "core/base-elements/element.js"
128123
128028
  }
128124
128029
  },
128125
128030
  {
128126
- "kind": "field",
128127
- "name": "value",
128128
- "type": {
128129
- "text": "string"
128031
+ "kind": "method",
128032
+ "name": "_hasSlottedContent",
128033
+ "privacy": "private",
128034
+ "return": {
128035
+ "type": {
128036
+ "text": "boolean"
128037
+ }
128130
128038
  },
128131
- "privacy": "public",
128039
+ "parameters": [
128040
+ {
128041
+ "name": "slot",
128042
+ "type": {
128043
+ "text": "HTMLSlotElement"
128044
+ }
128045
+ }
128046
+ ],
128132
128047
  "inheritedFrom": {
128133
- "name": "SbbButtonBaseElement",
128134
- "module": "core/base-elements/button-base-element.js"
128135
- },
128136
- "default": "''",
128137
- "description": "Value of the form element.",
128138
- "attribute": "value"
128048
+ "name": "SbbElement",
128049
+ "module": "core/base-elements/element.js"
128050
+ }
128051
+ }
128052
+ ],
128053
+ "mixins": [
128054
+ {
128055
+ "name": "SbbDisabledTabIndexActionMixin",
128056
+ "module": "core.js"
128139
128057
  },
128140
128058
  {
128141
- "kind": "field",
128142
- "name": "type",
128143
- "privacy": "public",
128144
- "description": "The type attribute to use for the button.",
128145
- "default": "'button'",
128059
+ "name": "SbbMenuActionCommonElementMixin",
128060
+ "module": "menu/common/menu-action-common.js"
128061
+ }
128062
+ ],
128063
+ "superclass": {
128064
+ "name": "SbbButtonBaseElement",
128065
+ "module": "core.js"
128066
+ },
128067
+ "tagName": "sbb-menu-button",
128068
+ "customElement": true,
128069
+ "attributes": [
128070
+ {
128071
+ "name": "disabled-interactive",
128146
128072
  "type": {
128147
- "text": "SbbButtonType"
128073
+ "text": "boolean"
128148
128074
  },
128149
- "attribute": "type",
128075
+ "default": "false",
128076
+ "description": "Whether the button should be aria-disabled but stay interactive.",
128077
+ "fieldName": "disabledInteractive",
128150
128078
  "inheritedFrom": {
128151
- "name": "SbbButtonBaseElement",
128152
- "module": "core/base-elements/button-base-element.js"
128079
+ "name": "SbbDisabledInteractiveMixin",
128080
+ "module": "core/mixins/disabled-mixin.js"
128153
128081
  }
128154
128082
  },
128155
128083
  {
128156
- "kind": "field",
128157
- "name": "form",
128084
+ "name": "disabled",
128085
+ "description": "Whether the component is disabled.",
128086
+ "default": "false",
128158
128087
  "type": {
128159
- "text": "HTMLFormElement | null"
128088
+ "text": "boolean"
128160
128089
  },
128161
- "privacy": "public",
128162
- "description": "The `<form>` element to associate the button with.",
128090
+ "fieldName": "disabled",
128163
128091
  "inheritedFrom": {
128164
- "name": "SbbButtonBaseElement",
128165
- "module": "core/base-elements/button-base-element.js"
128166
- },
128167
- "attribute": "form"
128092
+ "name": "SbbDisabledMixin",
128093
+ "module": "core/mixins/disabled-mixin.js"
128094
+ }
128168
128095
  },
128169
128096
  {
128170
- "kind": "field",
128171
- "name": "_formId",
128097
+ "name": "icon-name",
128172
128098
  "type": {
128173
128099
  "text": "string"
128174
128100
  },
128175
- "privacy": "private",
128176
128101
  "default": "''",
128102
+ "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.",
128103
+ "fieldName": "iconName",
128177
128104
  "inheritedFrom": {
128178
- "name": "SbbButtonBaseElement",
128179
- "module": "core/base-elements/button-base-element.js"
128105
+ "name": "SbbIconNameMixin",
128106
+ "module": "icon/icon-name-mixin.js"
128180
128107
  }
128181
128108
  },
128182
128109
  {
128183
- "kind": "field",
128184
- "name": "_handleButtonClick",
128185
- "privacy": "private",
128110
+ "name": "value",
128111
+ "type": {
128112
+ "text": "string"
128113
+ },
128114
+ "default": "''",
128115
+ "description": "Value of the form element.",
128116
+ "fieldName": "value",
128186
128117
  "inheritedFrom": {
128187
128118
  "name": "SbbButtonBaseElement",
128188
128119
  "module": "core/base-elements/button-base-element.js"
128189
128120
  }
128190
128121
  },
128191
128122
  {
128192
- "kind": "method",
128193
- "name": "_requestSubmit",
128194
- "privacy": "private",
128195
- "return": {
128196
- "type": {
128197
- "text": "void"
128198
- }
128123
+ "name": "type",
128124
+ "description": "The type attribute to use for the button.",
128125
+ "default": "'button'",
128126
+ "type": {
128127
+ "text": "SbbButtonType"
128199
128128
  },
128200
- "parameters": [
128201
- {
128202
- "name": "form",
128203
- "type": {
128204
- "text": "HTMLFormElement"
128205
- }
128206
- }
128207
- ],
128129
+ "fieldName": "type",
128208
128130
  "inheritedFrom": {
128209
128131
  "name": "SbbButtonBaseElement",
128210
128132
  "module": "core/base-elements/button-base-element.js"
128211
128133
  }
128212
128134
  },
128213
128135
  {
128214
- "kind": "field",
128215
- "name": "_formKeyDown",
128216
- "privacy": "private",
128136
+ "name": "form",
128137
+ "description": "The `<form>` element to associate the button with.",
128138
+ "type": {
128139
+ "text": "HTMLFormElement | null"
128140
+ },
128141
+ "fieldName": "form",
128217
128142
  "inheritedFrom": {
128218
128143
  "name": "SbbButtonBaseElement",
128219
128144
  "module": "core/base-elements/button-base-element.js"
128220
128145
  }
128221
128146
  },
128222
128147
  {
128223
- "kind": "field",
128224
- "name": "formAssociated",
128148
+ "name": "name",
128149
+ "description": "Name of the form element. Will be read from name attribute.",
128225
128150
  "type": {
128226
- "text": "boolean"
128151
+ "text": "string"
128227
128152
  },
128228
- "privacy": "public",
128229
- "static": true,
128230
- "default": "true",
128153
+ "fieldName": "name",
128231
128154
  "inheritedFrom": {
128232
128155
  "name": "SbbFormAssociatedMixin",
128233
128156
  "module": "core/mixins/form-associated-mixin.js"
128234
128157
  }
128235
- },
128158
+ }
128159
+ ]
128160
+ }
128161
+ ],
128162
+ "exports": [
128163
+ {
128164
+ "kind": "js",
128165
+ "name": "SbbMenuButtonElement",
128166
+ "declaration": {
128167
+ "name": "SbbMenuButtonElement",
128168
+ "module": "menu/menu-button/menu-button.component.js"
128169
+ }
128170
+ }
128171
+ ]
128172
+ },
128173
+ {
128174
+ "kind": "javascript-module",
128175
+ "path": "menu/menu-link/menu-link.component.js",
128176
+ "declarations": [
128177
+ {
128178
+ "kind": "class",
128179
+ "description": "It displays a link element that can be used in the `sbb-menu` component.",
128180
+ "name": "SbbMenuLinkElement",
128181
+ "cssProperties": [
128182
+ {
128183
+ "description": "Can be used to modify horizontal padding.",
128184
+ "name": "--sbb-menu-action-outer-horizontal-padding",
128185
+ "default": "var(--sbb-spacing-fixed-3x)"
128186
+ }
128187
+ ],
128188
+ "slots": [
128236
128189
  {
128237
- "kind": "field",
128238
- "name": "name",
128239
- "privacy": "public",
128240
- "description": "Name of the form element. Will be read from name attribute.",
128241
- "type": {
128242
- "text": "string"
128243
- },
128244
- "attribute": "name",
128245
- "inheritedFrom": {
128246
- "name": "SbbFormAssociatedMixin",
128247
- "module": "core/mixins/form-associated-mixin.js"
128248
- }
128190
+ "description": "Use the unnamed slot to add content to the `sbb-menu-link`.",
128191
+ "name": ""
128249
128192
  },
128193
+ {
128194
+ "description": "Use this slot to provide an icon. If `icon-name` is set, a `sbb-icon` will be used.",
128195
+ "name": "icon"
128196
+ }
128197
+ ],
128198
+ "members": [
128250
128199
  {
128251
128200
  "kind": "field",
128252
- "name": "validity",
128201
+ "name": "elementName",
128253
128202
  "type": {
128254
- "text": "ValidityState"
128203
+ "text": "string"
128255
128204
  },
128256
128205
  "privacy": "public",
128257
- "description": "Returns the ValidityState object for this element.",
128206
+ "static": true,
128258
128207
  "readonly": true,
128259
128208
  "inheritedFrom": {
128260
- "name": "SbbFormAssociatedMixin",
128261
- "module": "core/mixins/form-associated-mixin.js"
128262
- }
128209
+ "name": "SbbElement",
128210
+ "module": "core/base-elements/element.js"
128211
+ },
128212
+ "default": "'sbb-menu-link'"
128263
128213
  },
128264
128214
  {
128265
128215
  "kind": "field",
128266
- "name": "validationMessage",
128216
+ "name": "anchorRole",
128267
128217
  "type": {
128268
128218
  "text": "string"
128269
128219
  },
128270
- "privacy": "public",
128271
- "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.",
128220
+ "privacy": "protected",
128272
128221
  "readonly": true,
128222
+ "default": "'menuitem'",
128273
128223
  "inheritedFrom": {
128274
- "name": "SbbFormAssociatedMixin",
128275
- "module": "core/mixins/form-associated-mixin.js"
128224
+ "name": "SbbLinkBaseElement",
128225
+ "module": "core/base-elements/link-base-element.js"
128276
128226
  }
128277
128227
  },
128278
128228
  {
128279
128229
  "kind": "field",
128280
- "name": "willValidate",
128230
+ "name": "disabledInteractive",
128281
128231
  "type": {
128282
128232
  "text": "boolean"
128283
128233
  },
128284
128234
  "privacy": "public",
128285
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
128286
- "readonly": true,
128287
- "inheritedFrom": {
128288
- "name": "SbbFormAssociatedMixin",
128289
- "module": "core/mixins/form-associated-mixin.js"
128290
- }
128291
- },
128292
- {
128293
- "kind": "field",
128294
- "name": "_validityStates",
128295
- "privacy": "private",
128296
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
128235
+ "default": "false",
128236
+ "description": "Whether the button should be aria-disabled but stay interactive.",
128237
+ "attribute": "disabled-interactive",
128238
+ "reflects": true,
128297
128239
  "inheritedFrom": {
128298
- "name": "SbbFormAssociatedMixin",
128299
- "module": "core/mixins/form-associated-mixin.js"
128240
+ "name": "SbbDisabledInteractiveMixin",
128241
+ "module": "core/mixins/disabled-mixin.js"
128300
128242
  }
128301
128243
  },
128302
128244
  {
128303
128245
  "kind": "field",
128304
- "name": "formDisabled",
128246
+ "name": "styles",
128305
128247
  "type": {
128306
- "text": "boolean"
128248
+ "text": "CSSResultGroup"
128307
128249
  },
128308
- "privacy": "protected",
128309
- "default": "false",
128310
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
128250
+ "privacy": "public",
128251
+ "static": true,
128252
+ "default": "[boxSizingStyles, unsafeCSS(style)]",
128311
128253
  "inheritedFrom": {
128312
- "name": "SbbFormAssociatedMixin",
128313
- "module": "core/mixins/form-associated-mixin.js"
128254
+ "name": "SbbMenuActionCommonElementMixin",
128255
+ "module": "menu/common/menu-action-common.js"
128314
128256
  }
128315
128257
  },
128316
128258
  {
128317
128259
  "kind": "method",
128318
- "name": "checkValidity",
128319
- "privacy": "public",
128260
+ "name": "renderTemplate",
128261
+ "privacy": "protected",
128320
128262
  "return": {
128321
128263
  "type": {
128322
- "text": "boolean"
128264
+ "text": "TemplateResult"
128323
128265
  }
128324
128266
  },
128325
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
128267
+ "description": "Override this method to render the component template.",
128326
128268
  "inheritedFrom": {
128327
- "name": "SbbFormAssociatedMixin",
128328
- "module": "core/mixins/form-associated-mixin.js"
128269
+ "name": "SbbActionBaseElement",
128270
+ "module": "core/base-elements/action-base-element.js"
128329
128271
  }
128330
128272
  },
128331
128273
  {
128332
- "kind": "method",
128333
- "name": "reportValidity",
128274
+ "kind": "field",
128275
+ "name": "elementDependencies",
128276
+ "type": {
128277
+ "text": "SbbElementType[]"
128278
+ },
128334
128279
  "privacy": "public",
128335
- "return": {
128336
- "type": {
128337
- "text": "boolean"
128338
- }
128280
+ "static": true,
128281
+ "inheritedFrom": {
128282
+ "name": "SbbElement",
128283
+ "module": "core/base-elements/element.js"
128339
128284
  },
128340
- "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.",
128285
+ "default": "[SbbIconElement]"
128286
+ },
128287
+ {
128288
+ "kind": "field",
128289
+ "name": "iconName",
128290
+ "type": {
128291
+ "text": "string"
128292
+ },
128293
+ "privacy": "public",
128294
+ "default": "''",
128295
+ "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.",
128296
+ "attribute": "icon-name",
128341
128297
  "inheritedFrom": {
128342
- "name": "SbbFormAssociatedMixin",
128343
- "module": "core/mixins/form-associated-mixin.js"
128298
+ "name": "SbbIconNameMixin",
128299
+ "module": "icon/icon-name-mixin.js"
128344
128300
  }
128345
128301
  },
128346
128302
  {
128347
128303
  "kind": "method",
128348
- "name": "setCustomValidity",
128349
- "privacy": "public",
128304
+ "name": "renderIconSlot",
128305
+ "privacy": "protected",
128350
128306
  "return": {
128351
128307
  "type": {
128352
- "text": "void"
128308
+ "text": "TemplateResult"
128353
128309
  }
128354
128310
  },
128355
128311
  "parameters": [
128356
128312
  {
128357
- "name": "message",
128313
+ "name": "classname",
128314
+ "optional": true,
128358
128315
  "type": {
128359
128316
  "text": "string"
128360
128317
  }
128361
128318
  }
128362
128319
  ],
128363
- "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.",
128364
128320
  "inheritedFrom": {
128365
- "name": "SbbFormAssociatedMixin",
128366
- "module": "core/mixins/form-associated-mixin.js"
128321
+ "name": "SbbIconNameMixin",
128322
+ "module": "icon/icon-name-mixin.js"
128367
128323
  }
128368
128324
  },
128369
128325
  {
128370
128326
  "kind": "method",
128371
- "name": "_hasDisabledAncestor",
128372
- "privacy": "private",
128327
+ "name": "renderIconName",
128328
+ "privacy": "protected",
128373
128329
  "return": {
128374
128330
  "type": {
128375
- "text": "boolean"
128331
+ "text": "string"
128376
128332
  }
128377
128333
  },
128378
128334
  "inheritedFrom": {
128379
- "name": "SbbFormAssociatedMixin",
128380
- "module": "core/mixins/form-associated-mixin.js"
128335
+ "name": "SbbIconNameMixin",
128336
+ "module": "icon/icon-name-mixin.js"
128381
128337
  }
128382
128338
  },
128383
128339
  {
128384
128340
  "kind": "method",
128385
- "name": "updateFormValue",
128386
- "privacy": "protected",
128341
+ "name": "_renderIconName",
128342
+ "privacy": "private",
128387
128343
  "return": {
128388
128344
  "type": {
128389
- "text": "void"
128345
+ "text": "string"
128390
128346
  }
128391
128347
  },
128392
- "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",
128393
128348
  "inheritedFrom": {
128394
- "name": "SbbFormAssociatedMixin",
128395
- "module": "core/mixins/form-associated-mixin.js"
128349
+ "name": "SbbIconNameMixin",
128350
+ "module": "icon/icon-name-mixin.js"
128396
128351
  }
128397
128352
  },
128398
128353
  {
128399
- "kind": "method",
128400
- "name": "formState",
128401
- "privacy": "protected",
128402
- "return": {
128403
- "type": {
128404
- "text": "FormRestoreState"
128405
- }
128354
+ "kind": "field",
128355
+ "name": "disabled",
128356
+ "privacy": "public",
128357
+ "description": "Whether the component is disabled.",
128358
+ "default": "false",
128359
+ "type": {
128360
+ "text": "boolean"
128406
128361
  },
128362
+ "attribute": "disabled",
128363
+ "reflects": true,
128407
128364
  "inheritedFrom": {
128408
- "name": "SbbFormAssociatedMixin",
128409
- "module": "core/mixins/form-associated-mixin.js"
128365
+ "name": "SbbDisabledMixin",
128366
+ "module": "core/mixins/disabled-mixin.js"
128410
128367
  }
128411
128368
  },
128412
128369
  {
128413
- "kind": "method",
128414
- "name": "setValidityFlag",
128415
- "privacy": "protected",
128416
- "return": {
128417
- "type": {
128418
- "text": "void"
128419
- }
128370
+ "kind": "field",
128371
+ "name": "#disabled",
128372
+ "privacy": "private",
128373
+ "type": {
128374
+ "text": "boolean"
128420
128375
  },
128421
- "parameters": [
128422
- {
128423
- "name": "flag",
128424
- "type": {
128425
- "text": "T"
128426
- }
128427
- },
128428
- {
128429
- "name": "message",
128430
- "type": {
128431
- "text": "string"
128432
- }
128433
- },
128434
- {
128435
- "name": "flagValue",
128436
- "optional": true,
128437
- "type": {
128438
- "text": "ValidityStateFlags[T]"
128439
- }
128440
- }
128441
- ],
128442
- "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).",
128376
+ "default": "false",
128443
128377
  "inheritedFrom": {
128444
- "name": "SbbFormAssociatedMixin",
128445
- "module": "core/mixins/form-associated-mixin.js"
128378
+ "name": "SbbDisabledMixin",
128379
+ "module": "core/mixins/disabled-mixin.js"
128446
128380
  }
128447
128381
  },
128448
128382
  {
128449
128383
  "kind": "method",
128450
- "name": "removeValidityFlag",
128384
+ "name": "isDisabledExternally",
128451
128385
  "privacy": "protected",
128452
128386
  "return": {
128453
128387
  "type": {
128454
- "text": "void"
128388
+ "text": "boolean"
128455
128389
  }
128456
128390
  },
128457
- "parameters": [
128458
- {
128459
- "name": "flag",
128460
- "type": {
128461
- "text": "T"
128462
- }
128463
- }
128464
- ],
128465
- "description": "Removes the validity state flag entry and updates validity state.",
128391
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
128392
+ "inheritedFrom": {
128393
+ "name": "SbbDisabledMixin",
128394
+ "module": "core/mixins/disabled-mixin.js"
128395
+ }
128396
+ },
128397
+ {
128398
+ "kind": "field",
128399
+ "name": "href",
128400
+ "type": {
128401
+ "text": "string"
128402
+ },
128403
+ "privacy": "public",
128404
+ "default": "''",
128405
+ "description": "The href value you want to link to.",
128406
+ "attribute": "href",
128407
+ "reflects": true,
128408
+ "inheritedFrom": {
128409
+ "name": "SbbLinkBaseElement",
128410
+ "module": "core/base-elements/link-base-element.js"
128411
+ }
128412
+ },
128413
+ {
128414
+ "kind": "field",
128415
+ "name": "target",
128416
+ "type": {
128417
+ "text": "LinkTargetType | string"
128418
+ },
128419
+ "privacy": "public",
128420
+ "default": "''",
128421
+ "description": "Where to display the linked URL.",
128422
+ "attribute": "target",
128423
+ "reflects": true,
128466
128424
  "inheritedFrom": {
128467
- "name": "SbbFormAssociatedMixin",
128468
- "module": "core/mixins/form-associated-mixin.js"
128425
+ "name": "SbbLinkBaseElement",
128426
+ "module": "core/base-elements/link-base-element.js"
128469
128427
  }
128470
128428
  },
128471
128429
  {
128472
- "kind": "method",
128473
- "name": "validate",
128474
- "privacy": "protected",
128475
- "return": {
128476
- "type": {
128477
- "text": "void"
128478
- }
128430
+ "kind": "field",
128431
+ "name": "rel",
128432
+ "type": {
128433
+ "text": "string"
128479
128434
  },
128480
- "description": "To be called whenever the current element needs to be validated.",
128435
+ "privacy": "public",
128436
+ "default": "''",
128437
+ "description": "The relationship of the linked URL as space-separated link types.",
128438
+ "attribute": "rel",
128439
+ "reflects": true,
128481
128440
  "inheritedFrom": {
128482
- "name": "SbbFormAssociatedMixin",
128483
- "module": "core/mixins/form-associated-mixin.js"
128441
+ "name": "SbbLinkBaseElement",
128442
+ "module": "core/base-elements/link-base-element.js"
128484
128443
  }
128485
128444
  },
128486
128445
  {
128487
- "kind": "method",
128488
- "name": "shouldValidate",
128489
- "privacy": "protected",
128490
- "return": {
128491
- "type": {
128492
- "text": "boolean"
128493
- }
128446
+ "kind": "field",
128447
+ "name": "download",
128448
+ "type": {
128449
+ "text": "boolean"
128494
128450
  },
128495
- "parameters": [
128496
- {
128497
- "name": "name",
128498
- "type": {
128499
- "text": "PropertyKey | undefined"
128500
- }
128501
- }
128502
- ],
128503
- "description": "Whether validation should be run on a property change with the given name.",
128451
+ "privacy": "public",
128452
+ "default": "false",
128453
+ "description": "Whether the browser will show the download dialog on click.",
128454
+ "attribute": "download",
128455
+ "reflects": true,
128504
128456
  "inheritedFrom": {
128505
- "name": "SbbFormAssociatedMixin",
128506
- "module": "core/mixins/form-associated-mixin.js"
128457
+ "name": "SbbLinkBaseElement",
128458
+ "module": "core/base-elements/link-base-element.js"
128507
128459
  }
128508
128460
  },
128509
128461
  {
128510
- "kind": "method",
128511
- "name": "_setInternalValidity",
128512
- "privacy": "private",
128513
- "return": {
128514
- "type": {
128515
- "text": "void"
128516
- }
128462
+ "kind": "field",
128463
+ "name": "accessibilityLabel",
128464
+ "type": {
128465
+ "text": "string"
128517
128466
  },
128467
+ "privacy": "public",
128468
+ "default": "''",
128469
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
128470
+ "attribute": "accessibility-label",
128518
128471
  "inheritedFrom": {
128519
- "name": "SbbFormAssociatedMixin",
128520
- "module": "core/mixins/form-associated-mixin.js"
128472
+ "name": "SbbLinkBaseElement",
128473
+ "module": "core/base-elements/link-base-element.js"
128521
128474
  }
128522
128475
  },
128523
128476
  {
128524
128477
  "kind": "field",
128525
- "name": "_preventScrollOnSpaceKeydown",
128526
- "privacy": "private",
128527
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
128528
- "parameters": [
128529
- {
128530
- "description": "The origin event.",
128531
- "name": "event"
128532
- }
128533
- ],
128478
+ "name": "accessibilityCurrent",
128479
+ "type": {
128480
+ "text": "string"
128481
+ },
128482
+ "privacy": "public",
128483
+ "default": "''",
128484
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
128485
+ "attribute": "accessibility-current",
128534
128486
  "inheritedFrom": {
128535
- "name": "SbbButtonLikeBaseElement",
128536
- "module": "core/base-elements/button-base-element.js"
128487
+ "name": "SbbLinkBaseElement",
128488
+ "module": "core/base-elements/link-base-element.js"
128537
128489
  }
128538
128490
  },
128539
128491
  {
128540
128492
  "kind": "field",
128541
- "name": "_removeActiveMarker",
128542
- "privacy": "private",
128493
+ "name": "language",
128494
+ "privacy": "protected",
128495
+ "default": "new SbbLanguageController(this)",
128543
128496
  "inheritedFrom": {
128544
- "name": "SbbButtonLikeBaseElement",
128545
- "module": "core/base-elements/button-base-element.js"
128497
+ "name": "SbbLinkBaseElement",
128498
+ "module": "core/base-elements/link-base-element.js"
128546
128499
  }
128547
128500
  },
128548
128501
  {
128549
128502
  "kind": "field",
128550
- "name": "_dispatchClickEventOnSpaceKeyup",
128503
+ "name": "_evaluateRelAttribute",
128551
128504
  "privacy": "private",
128552
- "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.",
128553
- "parameters": [
128554
- {
128555
- "description": "The origin event.",
128556
- "name": "event"
128557
- }
128558
- ],
128559
128505
  "inheritedFrom": {
128560
- "name": "SbbButtonLikeBaseElement",
128561
- "module": "core/base-elements/button-base-element.js"
128506
+ "name": "SbbLinkBaseElement",
128507
+ "module": "core/base-elements/link-base-element.js"
128562
128508
  }
128563
128509
  },
128564
128510
  {
128565
- "kind": "field",
128566
- "name": "_dispatchClickEvent",
128567
- "privacy": "private",
128511
+ "kind": "method",
128512
+ "name": "renderLink",
128513
+ "privacy": "protected",
128514
+ "return": {
128515
+ "type": {
128516
+ "text": "TemplateResult"
128517
+ }
128518
+ },
128519
+ "parameters": [
128520
+ {
128521
+ "name": "renderContent",
128522
+ "type": {
128523
+ "text": "TemplateResult"
128524
+ }
128525
+ }
128526
+ ],
128568
128527
  "inheritedFrom": {
128569
- "name": "SbbButtonLikeBaseElement",
128570
- "module": "core/base-elements/button-base-element.js"
128528
+ "name": "SbbLinkBaseElement",
128529
+ "module": "core/base-elements/link-base-element.js"
128571
128530
  }
128572
128531
  },
128573
128532
  {
@@ -128624,6 +128583,19 @@
128624
128583
  "module": "core/base-elements/element.js"
128625
128584
  }
128626
128585
  },
128586
+ {
128587
+ "kind": "field",
128588
+ "name": "role",
128589
+ "type": {
128590
+ "text": "ElementInternals['role'] | undefined"
128591
+ },
128592
+ "privacy": "public",
128593
+ "static": true,
128594
+ "inheritedFrom": {
128595
+ "name": "SbbElement",
128596
+ "module": "core/base-elements/element.js"
128597
+ }
128598
+ },
128627
128599
  {
128628
128600
  "kind": "field",
128629
128601
  "name": "_controllers",
@@ -128846,7 +128818,7 @@
128846
128818
  ],
128847
128819
  "mixins": [
128848
128820
  {
128849
- "name": "SbbDisabledTabIndexActionMixin",
128821
+ "name": "SbbDisabledInteractiveMixin",
128850
128822
  "module": "core.js"
128851
128823
  },
128852
128824
  {
@@ -128855,10 +128827,10 @@
128855
128827
  }
128856
128828
  ],
128857
128829
  "superclass": {
128858
- "name": "SbbButtonBaseElement",
128830
+ "name": "SbbLinkBaseElement",
128859
128831
  "module": "core.js"
128860
128832
  },
128861
- "tagName": "sbb-menu-button",
128833
+ "tagName": "sbb-menu-link",
128862
128834
  "customElement": true,
128863
128835
  "attributes": [
128864
128836
  {
@@ -128874,6 +128846,19 @@
128874
128846
  "module": "core/mixins/disabled-mixin.js"
128875
128847
  }
128876
128848
  },
128849
+ {
128850
+ "name": "icon-name",
128851
+ "type": {
128852
+ "text": "string"
128853
+ },
128854
+ "default": "''",
128855
+ "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.",
128856
+ "fieldName": "iconName",
128857
+ "inheritedFrom": {
128858
+ "name": "SbbIconNameMixin",
128859
+ "module": "icon/icon-name-mixin.js"
128860
+ }
128861
+ },
128877
128862
  {
128878
128863
  "name": "disabled",
128879
128864
  "description": "Whether the component is disabled.",
@@ -128888,66 +128873,81 @@
128888
128873
  }
128889
128874
  },
128890
128875
  {
128891
- "name": "icon-name",
128876
+ "name": "href",
128892
128877
  "type": {
128893
128878
  "text": "string"
128894
128879
  },
128895
128880
  "default": "''",
128896
- "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.",
128897
- "fieldName": "iconName",
128881
+ "description": "The href value you want to link to.",
128882
+ "fieldName": "href",
128898
128883
  "inheritedFrom": {
128899
- "name": "SbbIconNameMixin",
128900
- "module": "icon/icon-name-mixin.js"
128884
+ "name": "SbbLinkBaseElement",
128885
+ "module": "core/base-elements/link-base-element.js"
128901
128886
  }
128902
128887
  },
128903
128888
  {
128904
- "name": "value",
128889
+ "name": "target",
128890
+ "type": {
128891
+ "text": "LinkTargetType | string"
128892
+ },
128893
+ "default": "''",
128894
+ "description": "Where to display the linked URL.",
128895
+ "fieldName": "target",
128896
+ "inheritedFrom": {
128897
+ "name": "SbbLinkBaseElement",
128898
+ "module": "core/base-elements/link-base-element.js"
128899
+ }
128900
+ },
128901
+ {
128902
+ "name": "rel",
128905
128903
  "type": {
128906
128904
  "text": "string"
128907
128905
  },
128908
128906
  "default": "''",
128909
- "description": "Value of the form element.",
128910
- "fieldName": "value",
128907
+ "description": "The relationship of the linked URL as space-separated link types.",
128908
+ "fieldName": "rel",
128911
128909
  "inheritedFrom": {
128912
- "name": "SbbButtonBaseElement",
128913
- "module": "core/base-elements/button-base-element.js"
128910
+ "name": "SbbLinkBaseElement",
128911
+ "module": "core/base-elements/link-base-element.js"
128914
128912
  }
128915
128913
  },
128916
128914
  {
128917
- "name": "type",
128918
- "description": "The type attribute to use for the button.",
128919
- "default": "'button'",
128915
+ "name": "download",
128920
128916
  "type": {
128921
- "text": "SbbButtonType"
128917
+ "text": "boolean"
128922
128918
  },
128923
- "fieldName": "type",
128919
+ "default": "false",
128920
+ "description": "Whether the browser will show the download dialog on click.",
128921
+ "fieldName": "download",
128924
128922
  "inheritedFrom": {
128925
- "name": "SbbButtonBaseElement",
128926
- "module": "core/base-elements/button-base-element.js"
128923
+ "name": "SbbLinkBaseElement",
128924
+ "module": "core/base-elements/link-base-element.js"
128927
128925
  }
128928
128926
  },
128929
128927
  {
128930
- "name": "form",
128931
- "description": "The `<form>` element to associate the button with.",
128928
+ "name": "accessibility-label",
128932
128929
  "type": {
128933
- "text": "HTMLFormElement | null"
128930
+ "text": "string"
128934
128931
  },
128935
- "fieldName": "form",
128932
+ "default": "''",
128933
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
128934
+ "fieldName": "accessibilityLabel",
128936
128935
  "inheritedFrom": {
128937
- "name": "SbbButtonBaseElement",
128938
- "module": "core/base-elements/button-base-element.js"
128936
+ "name": "SbbLinkBaseElement",
128937
+ "module": "core/base-elements/link-base-element.js"
128939
128938
  }
128940
128939
  },
128941
128940
  {
128942
- "name": "name",
128943
- "description": "Name of the form element. Will be read from name attribute.",
128941
+ "name": "accessibility-current",
128944
128942
  "type": {
128945
128943
  "text": "string"
128946
128944
  },
128947
- "fieldName": "name",
128945
+ "default": "''",
128946
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
128947
+ "fieldName": "accessibilityCurrent",
128948
128948
  "inheritedFrom": {
128949
- "name": "SbbFormAssociatedMixin",
128950
- "module": "core/mixins/form-associated-mixin.js"
128949
+ "name": "SbbLinkBaseElement",
128950
+ "module": "core/base-elements/link-base-element.js"
128951
128951
  }
128952
128952
  }
128953
128953
  ]
@@ -128956,10 +128956,10 @@
128956
128956
  "exports": [
128957
128957
  {
128958
128958
  "kind": "js",
128959
- "name": "SbbMenuButtonElement",
128959
+ "name": "SbbMenuLinkElement",
128960
128960
  "declaration": {
128961
- "name": "SbbMenuButtonElement",
128962
- "module": "menu/menu-button/menu-button.component.js"
128961
+ "name": "SbbMenuLinkElement",
128962
+ "module": "menu/menu-link/menu-link.component.js"
128963
128963
  }
128964
128964
  }
128965
128965
  ]