@sbb-esta/lyne-elements-dev 4.0.0-dev.1775640696 → 4.0.0-dev.1775645885

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.
@@ -77846,26 +77846,6 @@
77846
77846
  }
77847
77847
  ]
77848
77848
  },
77849
- {
77850
- "kind": "javascript-module",
77851
- "path": "core/styles/styles.js",
77852
- "declarations": [
77853
- {
77854
- "kind": "variable",
77855
- "name": "boxSizingStyles"
77856
- }
77857
- ],
77858
- "exports": [
77859
- {
77860
- "kind": "js",
77861
- "name": "boxSizingStyles",
77862
- "declaration": {
77863
- "name": "boxSizingStyles",
77864
- "module": "core/styles/styles.js"
77865
- }
77866
- }
77867
- ]
77868
- },
77869
77849
  {
77870
77850
  "kind": "javascript-module",
77871
77851
  "path": "core/testing/event-spy.js",
@@ -78263,6 +78243,26 @@
78263
78243
  }
78264
78244
  ]
78265
78245
  },
78246
+ {
78247
+ "kind": "javascript-module",
78248
+ "path": "core/styles/styles.js",
78249
+ "declarations": [
78250
+ {
78251
+ "kind": "variable",
78252
+ "name": "boxSizingStyles"
78253
+ }
78254
+ ],
78255
+ "exports": [
78256
+ {
78257
+ "kind": "js",
78258
+ "name": "boxSizingStyles",
78259
+ "declaration": {
78260
+ "name": "boxSizingStyles",
78261
+ "module": "core/styles/styles.js"
78262
+ }
78263
+ }
78264
+ ]
78265
+ },
78266
78266
  {
78267
78267
  "kind": "javascript-module",
78268
78268
  "path": "datepicker/common/datepicker-button.js",
@@ -94440,253 +94440,6 @@
94440
94440
  }
94441
94441
  ]
94442
94442
  },
94443
- {
94444
- "kind": "javascript-module",
94445
- "path": "form-field/form-field-text-counter/form-field-text-counter.component.js",
94446
- "declarations": [
94447
- {
94448
- "kind": "class",
94449
- "description": "It displays the remaining characters count for input/textarea elements with a configured\nmaxlength property in the `sbb-form-field`.\nThe component automatically uses the form field's inputElement and displays the remaining character count.\nIf the input is disabled, readonly or an `sbb-error` is present, the output is suppressed.",
94450
- "name": "SbbFormFieldTextCounterElement",
94451
- "slots": [
94452
- {
94453
- "description": "Use the unnamed slot to display a custom description text after the counter.",
94454
- "name": "",
94455
- "inheritedFrom": {
94456
- "name": "SbbHintElement",
94457
- "module": "form-field/hint/hint.component.js"
94458
- }
94459
- }
94460
- ],
94461
- "members": [
94462
- {
94463
- "kind": "field",
94464
- "name": "elementName",
94465
- "type": {
94466
- "text": "string"
94467
- },
94468
- "privacy": "public",
94469
- "static": true,
94470
- "readonly": true,
94471
- "default": "'sbb-form-field-text-counter'",
94472
- "inheritedFrom": {
94473
- "name": "SbbElement",
94474
- "module": "core/base-elements/element.js"
94475
- }
94476
- },
94477
- {
94478
- "kind": "field",
94479
- "name": "_remainingCharacters",
94480
- "type": {
94481
- "text": "number"
94482
- },
94483
- "privacy": "private",
94484
- "default": "0"
94485
- },
94486
- {
94487
- "kind": "field",
94488
- "name": "_language",
94489
- "privacy": "private",
94490
- "default": "new SbbLanguageController(this)"
94491
- },
94492
- {
94493
- "kind": "field",
94494
- "name": "_abortController",
94495
- "type": {
94496
- "text": "AbortController | null"
94497
- },
94498
- "privacy": "private",
94499
- "default": "null"
94500
- },
94501
- {
94502
- "kind": "method",
94503
- "name": "_onInputUpdate",
94504
- "privacy": "private",
94505
- "return": {
94506
- "type": {
94507
- "text": "void"
94508
- }
94509
- }
94510
- },
94511
- {
94512
- "kind": "method",
94513
- "name": "_infoText",
94514
- "privacy": "private",
94515
- "return": {
94516
- "type": {
94517
- "text": "string"
94518
- }
94519
- }
94520
- },
94521
- {
94522
- "kind": "field",
94523
- "name": "negative",
94524
- "type": {
94525
- "text": "boolean"
94526
- },
94527
- "privacy": "public",
94528
- "default": "false",
94529
- "description": "Negative coloring variant flag.",
94530
- "attribute": "negative",
94531
- "reflects": true,
94532
- "inheritedFrom": {
94533
- "name": "SbbNegativeMixin",
94534
- "module": "core/mixins/negative-mixin.js"
94535
- }
94536
- },
94537
- {
94538
- "kind": "field",
94539
- "name": "formField",
94540
- "type": {
94541
- "text": "SbbFormFieldElement | null"
94542
- },
94543
- "privacy": "protected",
94544
- "default": "null",
94545
- "inheritedFrom": {
94546
- "name": "SbbHintElement",
94547
- "module": "form-field/hint/hint.component.js"
94548
- }
94549
- },
94550
- {
94551
- "kind": "field",
94552
- "name": "_hydrationRequired",
94553
- "type": {
94554
- "text": "boolean"
94555
- },
94556
- "privacy": "private",
94557
- "default": "!!this.shadowRoot",
94558
- "inheritedFrom": {
94559
- "name": "SbbElement",
94560
- "module": "core/base-elements/element.js"
94561
- }
94562
- },
94563
- {
94564
- "kind": "field",
94565
- "name": "_hydrationComplete",
94566
- "privacy": "private",
94567
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
94568
- "inheritedFrom": {
94569
- "name": "SbbElement",
94570
- "module": "core/base-elements/element.js"
94571
- }
94572
- },
94573
- {
94574
- "kind": "field",
94575
- "name": "_resolveHydration",
94576
- "type": {
94577
- "text": "(hydrationRequired: boolean) => void"
94578
- },
94579
- "privacy": "private",
94580
- "inheritedFrom": {
94581
- "name": "SbbElement",
94582
- "module": "core/base-elements/element.js"
94583
- }
94584
- },
94585
- {
94586
- "kind": "field",
94587
- "name": "hydrationRequired",
94588
- "type": {
94589
- "text": "boolean"
94590
- },
94591
- "privacy": "protected",
94592
- "description": "Returns whether hydration is required and not completed.",
94593
- "readonly": true,
94594
- "inheritedFrom": {
94595
- "name": "SbbElement",
94596
- "module": "core/base-elements/element.js"
94597
- },
94598
- "default": "!!this.shadowRoot"
94599
- },
94600
- {
94601
- "kind": "method",
94602
- "name": "toggleState",
94603
- "privacy": "protected",
94604
- "return": {
94605
- "type": {
94606
- "text": "void"
94607
- }
94608
- },
94609
- "parameters": [
94610
- {
94611
- "name": "value",
94612
- "type": {
94613
- "text": "string"
94614
- }
94615
- },
94616
- {
94617
- "name": "force",
94618
- "optional": true,
94619
- "type": {
94620
- "text": "boolean"
94621
- }
94622
- }
94623
- ],
94624
- "inheritedFrom": {
94625
- "name": "SbbElement",
94626
- "module": "core/base-elements/element.js"
94627
- }
94628
- },
94629
- {
94630
- "kind": "field",
94631
- "name": "['_$sbbElement$']",
94632
- "type": {
94633
- "text": "boolean"
94634
- },
94635
- "privacy": "public",
94636
- "static": true,
94637
- "default": "true",
94638
- "inheritedFrom": {
94639
- "name": "SbbElement",
94640
- "module": "core/base-elements/element.js"
94641
- }
94642
- },
94643
- {
94644
- "kind": "field",
94645
- "name": "_controllers",
94646
- "type": {
94647
- "text": "Set<SbbReactiveController> | undefined"
94648
- },
94649
- "privacy": "private",
94650
- "inheritedFrom": {
94651
- "name": "SbbElement",
94652
- "module": "core/base-elements/element.js"
94653
- }
94654
- }
94655
- ],
94656
- "superclass": {
94657
- "name": "SbbHintElement",
94658
- "module": "form-field/hint/hint.component.js"
94659
- },
94660
- "tagName": "sbb-form-field-text-counter",
94661
- "customElement": true,
94662
- "attributes": [
94663
- {
94664
- "name": "negative",
94665
- "type": {
94666
- "text": "boolean"
94667
- },
94668
- "default": "false",
94669
- "description": "Negative coloring variant flag.",
94670
- "fieldName": "negative",
94671
- "inheritedFrom": {
94672
- "name": "SbbNegativeMixin",
94673
- "module": "core/mixins/negative-mixin.js"
94674
- }
94675
- }
94676
- ]
94677
- }
94678
- ],
94679
- "exports": [
94680
- {
94681
- "kind": "js",
94682
- "name": "SbbFormFieldTextCounterElement",
94683
- "declaration": {
94684
- "name": "SbbFormFieldTextCounterElement",
94685
- "module": "form-field/form-field-text-counter/form-field-text-counter.component.js"
94686
- }
94687
- }
94688
- ]
94689
- },
94690
94443
  {
94691
94444
  "kind": "javascript-module",
94692
94445
  "path": "form-field/form-field-clear/form-field-clear.component.js",
@@ -95479,6 +95232,253 @@
95479
95232
  }
95480
95233
  ]
95481
95234
  },
95235
+ {
95236
+ "kind": "javascript-module",
95237
+ "path": "form-field/form-field-text-counter/form-field-text-counter.component.js",
95238
+ "declarations": [
95239
+ {
95240
+ "kind": "class",
95241
+ "description": "It displays the remaining characters count for input/textarea elements with a configured\nmaxlength property in the `sbb-form-field`.\nThe component automatically uses the form field's inputElement and displays the remaining character count.\nIf the input is disabled, readonly or an `sbb-error` is present, the output is suppressed.",
95242
+ "name": "SbbFormFieldTextCounterElement",
95243
+ "slots": [
95244
+ {
95245
+ "description": "Use the unnamed slot to display a custom description text after the counter.",
95246
+ "name": "",
95247
+ "inheritedFrom": {
95248
+ "name": "SbbHintElement",
95249
+ "module": "form-field/hint/hint.component.js"
95250
+ }
95251
+ }
95252
+ ],
95253
+ "members": [
95254
+ {
95255
+ "kind": "field",
95256
+ "name": "elementName",
95257
+ "type": {
95258
+ "text": "string"
95259
+ },
95260
+ "privacy": "public",
95261
+ "static": true,
95262
+ "readonly": true,
95263
+ "default": "'sbb-form-field-text-counter'",
95264
+ "inheritedFrom": {
95265
+ "name": "SbbElement",
95266
+ "module": "core/base-elements/element.js"
95267
+ }
95268
+ },
95269
+ {
95270
+ "kind": "field",
95271
+ "name": "_remainingCharacters",
95272
+ "type": {
95273
+ "text": "number"
95274
+ },
95275
+ "privacy": "private",
95276
+ "default": "0"
95277
+ },
95278
+ {
95279
+ "kind": "field",
95280
+ "name": "_language",
95281
+ "privacy": "private",
95282
+ "default": "new SbbLanguageController(this)"
95283
+ },
95284
+ {
95285
+ "kind": "field",
95286
+ "name": "_abortController",
95287
+ "type": {
95288
+ "text": "AbortController | null"
95289
+ },
95290
+ "privacy": "private",
95291
+ "default": "null"
95292
+ },
95293
+ {
95294
+ "kind": "method",
95295
+ "name": "_onInputUpdate",
95296
+ "privacy": "private",
95297
+ "return": {
95298
+ "type": {
95299
+ "text": "void"
95300
+ }
95301
+ }
95302
+ },
95303
+ {
95304
+ "kind": "method",
95305
+ "name": "_infoText",
95306
+ "privacy": "private",
95307
+ "return": {
95308
+ "type": {
95309
+ "text": "string"
95310
+ }
95311
+ }
95312
+ },
95313
+ {
95314
+ "kind": "field",
95315
+ "name": "negative",
95316
+ "type": {
95317
+ "text": "boolean"
95318
+ },
95319
+ "privacy": "public",
95320
+ "default": "false",
95321
+ "description": "Negative coloring variant flag.",
95322
+ "attribute": "negative",
95323
+ "reflects": true,
95324
+ "inheritedFrom": {
95325
+ "name": "SbbNegativeMixin",
95326
+ "module": "core/mixins/negative-mixin.js"
95327
+ }
95328
+ },
95329
+ {
95330
+ "kind": "field",
95331
+ "name": "formField",
95332
+ "type": {
95333
+ "text": "SbbFormFieldElement | null"
95334
+ },
95335
+ "privacy": "protected",
95336
+ "default": "null",
95337
+ "inheritedFrom": {
95338
+ "name": "SbbHintElement",
95339
+ "module": "form-field/hint/hint.component.js"
95340
+ }
95341
+ },
95342
+ {
95343
+ "kind": "field",
95344
+ "name": "_hydrationRequired",
95345
+ "type": {
95346
+ "text": "boolean"
95347
+ },
95348
+ "privacy": "private",
95349
+ "default": "!!this.shadowRoot",
95350
+ "inheritedFrom": {
95351
+ "name": "SbbElement",
95352
+ "module": "core/base-elements/element.js"
95353
+ }
95354
+ },
95355
+ {
95356
+ "kind": "field",
95357
+ "name": "_hydrationComplete",
95358
+ "privacy": "private",
95359
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
95360
+ "inheritedFrom": {
95361
+ "name": "SbbElement",
95362
+ "module": "core/base-elements/element.js"
95363
+ }
95364
+ },
95365
+ {
95366
+ "kind": "field",
95367
+ "name": "_resolveHydration",
95368
+ "type": {
95369
+ "text": "(hydrationRequired: boolean) => void"
95370
+ },
95371
+ "privacy": "private",
95372
+ "inheritedFrom": {
95373
+ "name": "SbbElement",
95374
+ "module": "core/base-elements/element.js"
95375
+ }
95376
+ },
95377
+ {
95378
+ "kind": "field",
95379
+ "name": "hydrationRequired",
95380
+ "type": {
95381
+ "text": "boolean"
95382
+ },
95383
+ "privacy": "protected",
95384
+ "description": "Returns whether hydration is required and not completed.",
95385
+ "readonly": true,
95386
+ "inheritedFrom": {
95387
+ "name": "SbbElement",
95388
+ "module": "core/base-elements/element.js"
95389
+ },
95390
+ "default": "!!this.shadowRoot"
95391
+ },
95392
+ {
95393
+ "kind": "method",
95394
+ "name": "toggleState",
95395
+ "privacy": "protected",
95396
+ "return": {
95397
+ "type": {
95398
+ "text": "void"
95399
+ }
95400
+ },
95401
+ "parameters": [
95402
+ {
95403
+ "name": "value",
95404
+ "type": {
95405
+ "text": "string"
95406
+ }
95407
+ },
95408
+ {
95409
+ "name": "force",
95410
+ "optional": true,
95411
+ "type": {
95412
+ "text": "boolean"
95413
+ }
95414
+ }
95415
+ ],
95416
+ "inheritedFrom": {
95417
+ "name": "SbbElement",
95418
+ "module": "core/base-elements/element.js"
95419
+ }
95420
+ },
95421
+ {
95422
+ "kind": "field",
95423
+ "name": "['_$sbbElement$']",
95424
+ "type": {
95425
+ "text": "boolean"
95426
+ },
95427
+ "privacy": "public",
95428
+ "static": true,
95429
+ "default": "true",
95430
+ "inheritedFrom": {
95431
+ "name": "SbbElement",
95432
+ "module": "core/base-elements/element.js"
95433
+ }
95434
+ },
95435
+ {
95436
+ "kind": "field",
95437
+ "name": "_controllers",
95438
+ "type": {
95439
+ "text": "Set<SbbReactiveController> | undefined"
95440
+ },
95441
+ "privacy": "private",
95442
+ "inheritedFrom": {
95443
+ "name": "SbbElement",
95444
+ "module": "core/base-elements/element.js"
95445
+ }
95446
+ }
95447
+ ],
95448
+ "superclass": {
95449
+ "name": "SbbHintElement",
95450
+ "module": "form-field/hint/hint.component.js"
95451
+ },
95452
+ "tagName": "sbb-form-field-text-counter",
95453
+ "customElement": true,
95454
+ "attributes": [
95455
+ {
95456
+ "name": "negative",
95457
+ "type": {
95458
+ "text": "boolean"
95459
+ },
95460
+ "default": "false",
95461
+ "description": "Negative coloring variant flag.",
95462
+ "fieldName": "negative",
95463
+ "inheritedFrom": {
95464
+ "name": "SbbNegativeMixin",
95465
+ "module": "core/mixins/negative-mixin.js"
95466
+ }
95467
+ }
95468
+ ]
95469
+ }
95470
+ ],
95471
+ "exports": [
95472
+ {
95473
+ "kind": "js",
95474
+ "name": "SbbFormFieldTextCounterElement",
95475
+ "declaration": {
95476
+ "name": "SbbFormFieldTextCounterElement",
95477
+ "module": "form-field/form-field-text-counter/form-field-text-counter.component.js"
95478
+ }
95479
+ }
95480
+ ]
95481
+ },
95482
95482
  {
95483
95483
  "kind": "javascript-module",
95484
95484
  "path": "form-field/hint/hint.component.js",
@@ -100093,15 +100093,15 @@
100093
100093
  },
100094
100094
  {
100095
100095
  "kind": "javascript-module",
100096
- "path": "link/block-link/block-link.component.js",
100096
+ "path": "link/block-link-button/block-link-button.component.js",
100097
100097
  "declarations": [
100098
100098
  {
100099
100099
  "kind": "class",
100100
- "description": "It displays a link enhanced with the SBB Design.",
100101
- "name": "SbbBlockLinkElement",
100100
+ "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
100101
+ "name": "SbbBlockLinkButtonElement",
100102
100102
  "slots": [
100103
100103
  {
100104
- "description": "Use the unnamed slot to add content to the `sbb-block-link`.",
100104
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
100105
100105
  "name": ""
100106
100106
  },
100107
100107
  {
@@ -100123,7 +100123,7 @@
100123
100123
  "name": "SbbElement",
100124
100124
  "module": "core/base-elements/element.js"
100125
100125
  },
100126
- "default": "'sbb-block-link'"
100126
+ "default": "'sbb-block-link-button'"
100127
100127
  },
100128
100128
  {
100129
100129
  "kind": "field",
@@ -100252,6 +100252,22 @@
100252
100252
  "module": "icon/icon-name-mixin.js"
100253
100253
  }
100254
100254
  },
100255
+ {
100256
+ "kind": "field",
100257
+ "name": "disabledInteractive",
100258
+ "type": {
100259
+ "text": "boolean"
100260
+ },
100261
+ "privacy": "public",
100262
+ "default": "false",
100263
+ "description": "Whether the button should be aria-disabled but stay interactive.",
100264
+ "attribute": "disabled-interactive",
100265
+ "reflects": true,
100266
+ "inheritedFrom": {
100267
+ "name": "SbbDisabledInteractiveMixin",
100268
+ "module": "core/mixins/disabled-mixin.js"
100269
+ }
100270
+ },
100255
100271
  {
100256
100272
  "kind": "field",
100257
100273
  "name": "disabled",
@@ -100298,151 +100314,479 @@
100298
100314
  },
100299
100315
  {
100300
100316
  "kind": "field",
100301
- "name": "href",
100317
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
100318
+ "type": {
100319
+ "text": "array"
100320
+ },
100321
+ "privacy": "private",
100322
+ "readonly": true,
100323
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
100324
+ "inheritedFrom": {
100325
+ "name": "SbbButtonBaseElement",
100326
+ "module": "core/base-elements/button-base-element.js"
100327
+ }
100328
+ },
100329
+ {
100330
+ "kind": "field",
100331
+ "name": "value",
100302
100332
  "type": {
100303
100333
  "text": "string"
100304
100334
  },
100305
100335
  "privacy": "public",
100336
+ "inheritedFrom": {
100337
+ "name": "SbbButtonBaseElement",
100338
+ "module": "core/base-elements/button-base-element.js"
100339
+ },
100306
100340
  "default": "''",
100307
- "description": "The href value you want to link to.",
100308
- "attribute": "href",
100309
- "reflects": true,
100341
+ "description": "Value of the form element.",
100342
+ "attribute": "value"
100343
+ },
100344
+ {
100345
+ "kind": "field",
100346
+ "name": "type",
100347
+ "privacy": "public",
100348
+ "description": "The type attribute to use for the button.",
100349
+ "default": "'button'",
100350
+ "type": {
100351
+ "text": "SbbButtonType"
100352
+ },
100353
+ "attribute": "type",
100310
100354
  "inheritedFrom": {
100311
- "name": "SbbLinkBaseElement",
100312
- "module": "core/base-elements/link-base-element.js"
100355
+ "name": "SbbButtonBaseElement",
100356
+ "module": "core/base-elements/button-base-element.js"
100313
100357
  }
100314
100358
  },
100315
100359
  {
100316
100360
  "kind": "field",
100317
- "name": "target",
100361
+ "name": "form",
100318
100362
  "type": {
100319
- "text": "LinkTargetType | string"
100363
+ "text": "HTMLFormElement | null"
100320
100364
  },
100321
100365
  "privacy": "public",
100322
- "default": "''",
100323
- "description": "Where to display the linked URL.",
100324
- "attribute": "target",
100325
- "reflects": true,
100366
+ "description": "The `<form>` element to associate the button with.",
100326
100367
  "inheritedFrom": {
100327
- "name": "SbbLinkBaseElement",
100328
- "module": "core/base-elements/link-base-element.js"
100329
- }
100368
+ "name": "SbbButtonBaseElement",
100369
+ "module": "core/base-elements/button-base-element.js"
100370
+ },
100371
+ "attribute": "form"
100330
100372
  },
100331
100373
  {
100332
100374
  "kind": "field",
100333
- "name": "rel",
100375
+ "name": "_formId",
100334
100376
  "type": {
100335
100377
  "text": "string"
100336
100378
  },
100337
- "privacy": "public",
100379
+ "privacy": "private",
100338
100380
  "default": "''",
100339
- "description": "The relationship of the linked URL as space-separated link types.",
100340
- "attribute": "rel",
100341
- "reflects": true,
100342
100381
  "inheritedFrom": {
100343
- "name": "SbbLinkBaseElement",
100344
- "module": "core/base-elements/link-base-element.js"
100382
+ "name": "SbbButtonBaseElement",
100383
+ "module": "core/base-elements/button-base-element.js"
100345
100384
  }
100346
100385
  },
100347
100386
  {
100348
100387
  "kind": "field",
100349
- "name": "download",
100388
+ "name": "_handleButtonClick",
100389
+ "privacy": "private",
100390
+ "inheritedFrom": {
100391
+ "name": "SbbButtonBaseElement",
100392
+ "module": "core/base-elements/button-base-element.js"
100393
+ }
100394
+ },
100395
+ {
100396
+ "kind": "method",
100397
+ "name": "_requestSubmit",
100398
+ "privacy": "private",
100399
+ "return": {
100400
+ "type": {
100401
+ "text": "void"
100402
+ }
100403
+ },
100404
+ "parameters": [
100405
+ {
100406
+ "name": "form",
100407
+ "type": {
100408
+ "text": "HTMLFormElement"
100409
+ }
100410
+ }
100411
+ ],
100412
+ "inheritedFrom": {
100413
+ "name": "SbbButtonBaseElement",
100414
+ "module": "core/base-elements/button-base-element.js"
100415
+ }
100416
+ },
100417
+ {
100418
+ "kind": "field",
100419
+ "name": "_formKeyDown",
100420
+ "privacy": "private",
100421
+ "inheritedFrom": {
100422
+ "name": "SbbButtonBaseElement",
100423
+ "module": "core/base-elements/button-base-element.js"
100424
+ }
100425
+ },
100426
+ {
100427
+ "kind": "field",
100428
+ "name": "formAssociated",
100350
100429
  "type": {
100351
100430
  "text": "boolean"
100352
100431
  },
100353
100432
  "privacy": "public",
100354
- "default": "false",
100355
- "description": "Whether the browser will show the download dialog on click.",
100356
- "attribute": "download",
100357
- "reflects": true,
100433
+ "static": true,
100434
+ "default": "true",
100358
100435
  "inheritedFrom": {
100359
- "name": "SbbLinkBaseElement",
100360
- "module": "core/base-elements/link-base-element.js"
100436
+ "name": "SbbFormAssociatedMixin",
100437
+ "module": "core/mixins/form-associated-mixin.js"
100361
100438
  }
100362
100439
  },
100363
100440
  {
100364
100441
  "kind": "field",
100365
- "name": "accessibilityLabel",
100442
+ "name": "name",
100443
+ "privacy": "public",
100444
+ "description": "Name of the form element. Will be read from name attribute.",
100366
100445
  "type": {
100367
100446
  "text": "string"
100368
100447
  },
100448
+ "attribute": "name",
100449
+ "inheritedFrom": {
100450
+ "name": "SbbFormAssociatedMixin",
100451
+ "module": "core/mixins/form-associated-mixin.js"
100452
+ }
100453
+ },
100454
+ {
100455
+ "kind": "field",
100456
+ "name": "validity",
100457
+ "type": {
100458
+ "text": "ValidityState"
100459
+ },
100369
100460
  "privacy": "public",
100370
- "default": "''",
100371
- "description": "This will be forwarded as aria-label to the inner anchor element.",
100372
- "attribute": "accessibility-label",
100461
+ "description": "Returns the ValidityState object for this element.",
100462
+ "readonly": true,
100373
100463
  "inheritedFrom": {
100374
- "name": "SbbLinkBaseElement",
100375
- "module": "core/base-elements/link-base-element.js"
100464
+ "name": "SbbFormAssociatedMixin",
100465
+ "module": "core/mixins/form-associated-mixin.js"
100376
100466
  }
100377
100467
  },
100378
100468
  {
100379
100469
  "kind": "field",
100380
- "name": "accessibilityCurrent",
100470
+ "name": "validationMessage",
100381
100471
  "type": {
100382
100472
  "text": "string"
100383
100473
  },
100384
100474
  "privacy": "public",
100385
- "default": "''",
100386
- "description": "This will be forwarded as aria-current to the inner anchor element.",
100387
- "attribute": "accessibility-current",
100475
+ "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.",
100476
+ "readonly": true,
100388
100477
  "inheritedFrom": {
100389
- "name": "SbbLinkBaseElement",
100390
- "module": "core/base-elements/link-base-element.js"
100478
+ "name": "SbbFormAssociatedMixin",
100479
+ "module": "core/mixins/form-associated-mixin.js"
100391
100480
  }
100392
100481
  },
100393
100482
  {
100394
100483
  "kind": "field",
100395
- "name": "language",
100396
- "privacy": "protected",
100397
- "default": "new SbbLanguageController(this)",
100484
+ "name": "willValidate",
100485
+ "type": {
100486
+ "text": "boolean"
100487
+ },
100488
+ "privacy": "public",
100489
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
100490
+ "readonly": true,
100398
100491
  "inheritedFrom": {
100399
- "name": "SbbLinkBaseElement",
100400
- "module": "core/base-elements/link-base-element.js"
100492
+ "name": "SbbFormAssociatedMixin",
100493
+ "module": "core/mixins/form-associated-mixin.js"
100401
100494
  }
100402
100495
  },
100403
100496
  {
100404
100497
  "kind": "field",
100405
- "name": "anchorRole",
100498
+ "name": "_validityStates",
100499
+ "privacy": "private",
100500
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
100501
+ "inheritedFrom": {
100502
+ "name": "SbbFormAssociatedMixin",
100503
+ "module": "core/mixins/form-associated-mixin.js"
100504
+ }
100505
+ },
100506
+ {
100507
+ "kind": "field",
100508
+ "name": "formDisabled",
100406
100509
  "type": {
100407
- "text": "string | null"
100510
+ "text": "boolean"
100408
100511
  },
100409
100512
  "privacy": "protected",
100410
- "readonly": true,
100411
- "default": "null",
100513
+ "default": "false",
100514
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
100412
100515
  "inheritedFrom": {
100413
- "name": "SbbLinkBaseElement",
100414
- "module": "core/base-elements/link-base-element.js"
100516
+ "name": "SbbFormAssociatedMixin",
100517
+ "module": "core/mixins/form-associated-mixin.js"
100415
100518
  }
100416
100519
  },
100417
100520
  {
100418
- "kind": "field",
100419
- "name": "_evaluateRelAttribute",
100521
+ "kind": "method",
100522
+ "name": "checkValidity",
100523
+ "privacy": "public",
100524
+ "return": {
100525
+ "type": {
100526
+ "text": "boolean"
100527
+ }
100528
+ },
100529
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
100530
+ "inheritedFrom": {
100531
+ "name": "SbbFormAssociatedMixin",
100532
+ "module": "core/mixins/form-associated-mixin.js"
100533
+ }
100534
+ },
100535
+ {
100536
+ "kind": "method",
100537
+ "name": "reportValidity",
100538
+ "privacy": "public",
100539
+ "return": {
100540
+ "type": {
100541
+ "text": "boolean"
100542
+ }
100543
+ },
100544
+ "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.",
100545
+ "inheritedFrom": {
100546
+ "name": "SbbFormAssociatedMixin",
100547
+ "module": "core/mixins/form-associated-mixin.js"
100548
+ }
100549
+ },
100550
+ {
100551
+ "kind": "method",
100552
+ "name": "setCustomValidity",
100553
+ "privacy": "public",
100554
+ "return": {
100555
+ "type": {
100556
+ "text": "void"
100557
+ }
100558
+ },
100559
+ "parameters": [
100560
+ {
100561
+ "name": "message",
100562
+ "type": {
100563
+ "text": "string"
100564
+ }
100565
+ }
100566
+ ],
100567
+ "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.",
100568
+ "inheritedFrom": {
100569
+ "name": "SbbFormAssociatedMixin",
100570
+ "module": "core/mixins/form-associated-mixin.js"
100571
+ }
100572
+ },
100573
+ {
100574
+ "kind": "method",
100575
+ "name": "_hasDisabledAncestor",
100420
100576
  "privacy": "private",
100577
+ "return": {
100578
+ "type": {
100579
+ "text": "boolean"
100580
+ }
100581
+ },
100421
100582
  "inheritedFrom": {
100422
- "name": "SbbLinkBaseElement",
100423
- "module": "core/base-elements/link-base-element.js"
100583
+ "name": "SbbFormAssociatedMixin",
100584
+ "module": "core/mixins/form-associated-mixin.js"
100424
100585
  }
100425
100586
  },
100426
100587
  {
100427
100588
  "kind": "method",
100428
- "name": "renderLink",
100589
+ "name": "updateFormValue",
100429
100590
  "privacy": "protected",
100430
100591
  "return": {
100431
100592
  "type": {
100432
- "text": "TemplateResult"
100593
+ "text": "void"
100594
+ }
100595
+ },
100596
+ "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",
100597
+ "inheritedFrom": {
100598
+ "name": "SbbFormAssociatedMixin",
100599
+ "module": "core/mixins/form-associated-mixin.js"
100600
+ }
100601
+ },
100602
+ {
100603
+ "kind": "method",
100604
+ "name": "formState",
100605
+ "privacy": "protected",
100606
+ "return": {
100607
+ "type": {
100608
+ "text": "FormRestoreState"
100609
+ }
100610
+ },
100611
+ "inheritedFrom": {
100612
+ "name": "SbbFormAssociatedMixin",
100613
+ "module": "core/mixins/form-associated-mixin.js"
100614
+ }
100615
+ },
100616
+ {
100617
+ "kind": "method",
100618
+ "name": "setValidityFlag",
100619
+ "privacy": "protected",
100620
+ "return": {
100621
+ "type": {
100622
+ "text": "void"
100433
100623
  }
100434
100624
  },
100435
100625
  "parameters": [
100436
100626
  {
100437
- "name": "renderContent",
100627
+ "name": "flag",
100438
100628
  "type": {
100439
- "text": "TemplateResult"
100629
+ "text": "T"
100630
+ }
100631
+ },
100632
+ {
100633
+ "name": "message",
100634
+ "type": {
100635
+ "text": "string"
100636
+ }
100637
+ },
100638
+ {
100639
+ "name": "flagValue",
100640
+ "optional": true,
100641
+ "type": {
100642
+ "text": "ValidityStateFlags[T]"
100440
100643
  }
100441
100644
  }
100442
100645
  ],
100646
+ "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).",
100443
100647
  "inheritedFrom": {
100444
- "name": "SbbLinkBaseElement",
100445
- "module": "core/base-elements/link-base-element.js"
100648
+ "name": "SbbFormAssociatedMixin",
100649
+ "module": "core/mixins/form-associated-mixin.js"
100650
+ }
100651
+ },
100652
+ {
100653
+ "kind": "method",
100654
+ "name": "removeValidityFlag",
100655
+ "privacy": "protected",
100656
+ "return": {
100657
+ "type": {
100658
+ "text": "void"
100659
+ }
100660
+ },
100661
+ "parameters": [
100662
+ {
100663
+ "name": "flag",
100664
+ "type": {
100665
+ "text": "T"
100666
+ }
100667
+ }
100668
+ ],
100669
+ "description": "Removes the validity state flag entry and updates validity state.",
100670
+ "inheritedFrom": {
100671
+ "name": "SbbFormAssociatedMixin",
100672
+ "module": "core/mixins/form-associated-mixin.js"
100673
+ }
100674
+ },
100675
+ {
100676
+ "kind": "method",
100677
+ "name": "validate",
100678
+ "privacy": "protected",
100679
+ "return": {
100680
+ "type": {
100681
+ "text": "void"
100682
+ }
100683
+ },
100684
+ "description": "To be called whenever the current element needs to be validated.",
100685
+ "inheritedFrom": {
100686
+ "name": "SbbFormAssociatedMixin",
100687
+ "module": "core/mixins/form-associated-mixin.js"
100688
+ }
100689
+ },
100690
+ {
100691
+ "kind": "method",
100692
+ "name": "shouldValidate",
100693
+ "privacy": "protected",
100694
+ "return": {
100695
+ "type": {
100696
+ "text": "boolean"
100697
+ }
100698
+ },
100699
+ "parameters": [
100700
+ {
100701
+ "name": "name",
100702
+ "type": {
100703
+ "text": "PropertyKey | undefined"
100704
+ }
100705
+ }
100706
+ ],
100707
+ "description": "Whether validation should be run on a property change with the given name.",
100708
+ "inheritedFrom": {
100709
+ "name": "SbbFormAssociatedMixin",
100710
+ "module": "core/mixins/form-associated-mixin.js"
100711
+ }
100712
+ },
100713
+ {
100714
+ "kind": "method",
100715
+ "name": "_setInternalValidity",
100716
+ "privacy": "private",
100717
+ "return": {
100718
+ "type": {
100719
+ "text": "void"
100720
+ }
100721
+ },
100722
+ "inheritedFrom": {
100723
+ "name": "SbbFormAssociatedMixin",
100724
+ "module": "core/mixins/form-associated-mixin.js"
100725
+ }
100726
+ },
100727
+ {
100728
+ "kind": "field",
100729
+ "name": "role",
100730
+ "type": {
100731
+ "text": "ElementInternals['role']"
100732
+ },
100733
+ "privacy": "public",
100734
+ "static": true,
100735
+ "readonly": true,
100736
+ "default": "'button'",
100737
+ "inheritedFrom": {
100738
+ "name": "SbbButtonLikeBaseElement",
100739
+ "module": "core/base-elements/button-base-element.js"
100740
+ }
100741
+ },
100742
+ {
100743
+ "kind": "field",
100744
+ "name": "_preventScrollOnSpaceKeydown",
100745
+ "privacy": "private",
100746
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
100747
+ "parameters": [
100748
+ {
100749
+ "description": "The origin event.",
100750
+ "name": "event"
100751
+ }
100752
+ ],
100753
+ "inheritedFrom": {
100754
+ "name": "SbbButtonLikeBaseElement",
100755
+ "module": "core/base-elements/button-base-element.js"
100756
+ }
100757
+ },
100758
+ {
100759
+ "kind": "field",
100760
+ "name": "_removeActiveMarker",
100761
+ "privacy": "private",
100762
+ "inheritedFrom": {
100763
+ "name": "SbbButtonLikeBaseElement",
100764
+ "module": "core/base-elements/button-base-element.js"
100765
+ }
100766
+ },
100767
+ {
100768
+ "kind": "field",
100769
+ "name": "_dispatchClickEventOnSpaceKeyup",
100770
+ "privacy": "private",
100771
+ "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.",
100772
+ "parameters": [
100773
+ {
100774
+ "description": "The origin event.",
100775
+ "name": "event"
100776
+ }
100777
+ ],
100778
+ "inheritedFrom": {
100779
+ "name": "SbbButtonLikeBaseElement",
100780
+ "module": "core/base-elements/button-base-element.js"
100781
+ }
100782
+ },
100783
+ {
100784
+ "kind": "field",
100785
+ "name": "_dispatchClickEvent",
100786
+ "privacy": "private",
100787
+ "inheritedFrom": {
100788
+ "name": "SbbButtonLikeBaseElement",
100789
+ "module": "core/base-elements/button-base-element.js"
100446
100790
  }
100447
100791
  },
100448
100792
  {
@@ -100597,15 +100941,15 @@
100597
100941
  "module": "link/common/block-link-common.js"
100598
100942
  },
100599
100943
  {
100600
- "name": "SbbDisabledMixin",
100944
+ "name": "SbbDisabledTabIndexActionMixin",
100601
100945
  "module": "core/mixins.js"
100602
100946
  }
100603
100947
  ],
100604
100948
  "superclass": {
100605
- "name": "SbbLinkBaseElement",
100949
+ "name": "SbbButtonBaseElement",
100606
100950
  "module": "core/base-elements.js"
100607
100951
  },
100608
- "tagName": "sbb-block-link",
100952
+ "tagName": "sbb-block-link-button",
100609
100953
  "customElement": true,
100610
100954
  "attributes": [
100611
100955
  {
@@ -100647,6 +100991,19 @@
100647
100991
  "module": "icon/icon-name-mixin.js"
100648
100992
  }
100649
100993
  },
100994
+ {
100995
+ "name": "disabled-interactive",
100996
+ "type": {
100997
+ "text": "boolean"
100998
+ },
100999
+ "default": "false",
101000
+ "description": "Whether the button should be aria-disabled but stay interactive.",
101001
+ "fieldName": "disabledInteractive",
101002
+ "inheritedFrom": {
101003
+ "name": "SbbDisabledInteractiveMixin",
101004
+ "module": "core/mixins/disabled-mixin.js"
101005
+ }
101006
+ },
100650
101007
  {
100651
101008
  "name": "disabled",
100652
101009
  "description": "Whether the component is disabled.",
@@ -100661,81 +101018,53 @@
100661
101018
  }
100662
101019
  },
100663
101020
  {
100664
- "name": "href",
101021
+ "name": "value",
100665
101022
  "type": {
100666
101023
  "text": "string"
100667
101024
  },
100668
101025
  "default": "''",
100669
- "description": "The href value you want to link to.",
100670
- "fieldName": "href",
101026
+ "description": "Value of the form element.",
101027
+ "fieldName": "value",
100671
101028
  "inheritedFrom": {
100672
- "name": "SbbLinkBaseElement",
100673
- "module": "core/base-elements/link-base-element.js"
101029
+ "name": "SbbButtonBaseElement",
101030
+ "module": "core/base-elements/button-base-element.js"
100674
101031
  }
100675
101032
  },
100676
101033
  {
100677
- "name": "target",
101034
+ "name": "type",
101035
+ "description": "The type attribute to use for the button.",
101036
+ "default": "'button'",
100678
101037
  "type": {
100679
- "text": "LinkTargetType | string"
101038
+ "text": "SbbButtonType"
100680
101039
  },
100681
- "default": "''",
100682
- "description": "Where to display the linked URL.",
100683
- "fieldName": "target",
101040
+ "fieldName": "type",
100684
101041
  "inheritedFrom": {
100685
- "name": "SbbLinkBaseElement",
100686
- "module": "core/base-elements/link-base-element.js"
101042
+ "name": "SbbButtonBaseElement",
101043
+ "module": "core/base-elements/button-base-element.js"
100687
101044
  }
100688
101045
  },
100689
101046
  {
100690
- "name": "rel",
100691
- "type": {
100692
- "text": "string"
100693
- },
100694
- "default": "''",
100695
- "description": "The relationship of the linked URL as space-separated link types.",
100696
- "fieldName": "rel",
100697
- "inheritedFrom": {
100698
- "name": "SbbLinkBaseElement",
100699
- "module": "core/base-elements/link-base-element.js"
100700
- }
100701
- },
100702
- {
100703
- "name": "download",
100704
- "type": {
100705
- "text": "boolean"
100706
- },
100707
- "default": "false",
100708
- "description": "Whether the browser will show the download dialog on click.",
100709
- "fieldName": "download",
100710
- "inheritedFrom": {
100711
- "name": "SbbLinkBaseElement",
100712
- "module": "core/base-elements/link-base-element.js"
100713
- }
100714
- },
100715
- {
100716
- "name": "accessibility-label",
101047
+ "name": "form",
101048
+ "description": "The `<form>` element to associate the button with.",
100717
101049
  "type": {
100718
- "text": "string"
101050
+ "text": "HTMLFormElement | null"
100719
101051
  },
100720
- "default": "''",
100721
- "description": "This will be forwarded as aria-label to the inner anchor element.",
100722
- "fieldName": "accessibilityLabel",
101052
+ "fieldName": "form",
100723
101053
  "inheritedFrom": {
100724
- "name": "SbbLinkBaseElement",
100725
- "module": "core/base-elements/link-base-element.js"
101054
+ "name": "SbbButtonBaseElement",
101055
+ "module": "core/base-elements/button-base-element.js"
100726
101056
  }
100727
101057
  },
100728
101058
  {
100729
- "name": "accessibility-current",
101059
+ "name": "name",
101060
+ "description": "Name of the form element. Will be read from name attribute.",
100730
101061
  "type": {
100731
101062
  "text": "string"
100732
101063
  },
100733
- "default": "''",
100734
- "description": "This will be forwarded as aria-current to the inner anchor element.",
100735
- "fieldName": "accessibilityCurrent",
101064
+ "fieldName": "name",
100736
101065
  "inheritedFrom": {
100737
- "name": "SbbLinkBaseElement",
100738
- "module": "core/base-elements/link-base-element.js"
101066
+ "name": "SbbFormAssociatedMixin",
101067
+ "module": "core/mixins/form-associated-mixin.js"
100739
101068
  }
100740
101069
  }
100741
101070
  ]
@@ -100744,25 +101073,25 @@
100744
101073
  "exports": [
100745
101074
  {
100746
101075
  "kind": "js",
100747
- "name": "SbbBlockLinkElement",
101076
+ "name": "SbbBlockLinkButtonElement",
100748
101077
  "declaration": {
100749
- "name": "SbbBlockLinkElement",
100750
- "module": "link/block-link/block-link.component.js"
101078
+ "name": "SbbBlockLinkButtonElement",
101079
+ "module": "link/block-link-button/block-link-button.component.js"
100751
101080
  }
100752
101081
  }
100753
101082
  ]
100754
101083
  },
100755
101084
  {
100756
101085
  "kind": "javascript-module",
100757
- "path": "link/block-link-button/block-link-button.component.js",
101086
+ "path": "link/block-link/block-link.component.js",
100758
101087
  "declarations": [
100759
101088
  {
100760
101089
  "kind": "class",
100761
- "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
100762
- "name": "SbbBlockLinkButtonElement",
101090
+ "description": "It displays a link enhanced with the SBB Design.",
101091
+ "name": "SbbBlockLinkElement",
100763
101092
  "slots": [
100764
101093
  {
100765
- "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
101094
+ "description": "Use the unnamed slot to add content to the `sbb-block-link`.",
100766
101095
  "name": ""
100767
101096
  },
100768
101097
  {
@@ -100784,7 +101113,7 @@
100784
101113
  "name": "SbbElement",
100785
101114
  "module": "core/base-elements/element.js"
100786
101115
  },
100787
- "default": "'sbb-block-link-button'"
101116
+ "default": "'sbb-block-link'"
100788
101117
  },
100789
101118
  {
100790
101119
  "kind": "field",
@@ -100913,22 +101242,6 @@
100913
101242
  "module": "icon/icon-name-mixin.js"
100914
101243
  }
100915
101244
  },
100916
- {
100917
- "kind": "field",
100918
- "name": "disabledInteractive",
100919
- "type": {
100920
- "text": "boolean"
100921
- },
100922
- "privacy": "public",
100923
- "default": "false",
100924
- "description": "Whether the button should be aria-disabled but stay interactive.",
100925
- "attribute": "disabled-interactive",
100926
- "reflects": true,
100927
- "inheritedFrom": {
100928
- "name": "SbbDisabledInteractiveMixin",
100929
- "module": "core/mixins/disabled-mixin.js"
100930
- }
100931
- },
100932
101245
  {
100933
101246
  "kind": "field",
100934
101247
  "name": "disabled",
@@ -100975,243 +101288,247 @@
100975
101288
  },
100976
101289
  {
100977
101290
  "kind": "field",
100978
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
101291
+ "name": "href",
100979
101292
  "type": {
100980
- "text": "array"
101293
+ "text": "string"
100981
101294
  },
100982
- "privacy": "private",
100983
- "readonly": true,
100984
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
101295
+ "privacy": "public",
101296
+ "default": "''",
101297
+ "description": "The href value you want to link to.",
101298
+ "attribute": "href",
101299
+ "reflects": true,
100985
101300
  "inheritedFrom": {
100986
- "name": "SbbButtonBaseElement",
100987
- "module": "core/base-elements/button-base-element.js"
101301
+ "name": "SbbLinkBaseElement",
101302
+ "module": "core/base-elements/link-base-element.js"
100988
101303
  }
100989
101304
  },
100990
101305
  {
100991
101306
  "kind": "field",
100992
- "name": "value",
101307
+ "name": "target",
100993
101308
  "type": {
100994
- "text": "string"
101309
+ "text": "LinkTargetType | string"
100995
101310
  },
100996
101311
  "privacy": "public",
101312
+ "default": "''",
101313
+ "description": "Where to display the linked URL.",
101314
+ "attribute": "target",
101315
+ "reflects": true,
100997
101316
  "inheritedFrom": {
100998
- "name": "SbbButtonBaseElement",
100999
- "module": "core/base-elements/button-base-element.js"
101317
+ "name": "SbbLinkBaseElement",
101318
+ "module": "core/base-elements/link-base-element.js"
101319
+ }
101320
+ },
101321
+ {
101322
+ "kind": "field",
101323
+ "name": "rel",
101324
+ "type": {
101325
+ "text": "string"
101000
101326
  },
101327
+ "privacy": "public",
101001
101328
  "default": "''",
101002
- "description": "Value of the form element.",
101003
- "attribute": "value"
101329
+ "description": "The relationship of the linked URL as space-separated link types.",
101330
+ "attribute": "rel",
101331
+ "reflects": true,
101332
+ "inheritedFrom": {
101333
+ "name": "SbbLinkBaseElement",
101334
+ "module": "core/base-elements/link-base-element.js"
101335
+ }
101004
101336
  },
101005
101337
  {
101006
101338
  "kind": "field",
101007
- "name": "type",
101008
- "privacy": "public",
101009
- "description": "The type attribute to use for the button.",
101010
- "default": "'button'",
101339
+ "name": "download",
101011
101340
  "type": {
101012
- "text": "SbbButtonType"
101341
+ "text": "boolean"
101013
101342
  },
101014
- "attribute": "type",
101343
+ "privacy": "public",
101344
+ "default": "false",
101345
+ "description": "Whether the browser will show the download dialog on click.",
101346
+ "attribute": "download",
101347
+ "reflects": true,
101015
101348
  "inheritedFrom": {
101016
- "name": "SbbButtonBaseElement",
101017
- "module": "core/base-elements/button-base-element.js"
101349
+ "name": "SbbLinkBaseElement",
101350
+ "module": "core/base-elements/link-base-element.js"
101018
101351
  }
101019
101352
  },
101020
101353
  {
101021
101354
  "kind": "field",
101022
- "name": "form",
101355
+ "name": "accessibilityLabel",
101023
101356
  "type": {
101024
- "text": "HTMLFormElement | null"
101357
+ "text": "string"
101025
101358
  },
101026
101359
  "privacy": "public",
101027
- "description": "The `<form>` element to associate the button with.",
101360
+ "default": "''",
101361
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
101362
+ "attribute": "accessibility-label",
101028
101363
  "inheritedFrom": {
101029
- "name": "SbbButtonBaseElement",
101030
- "module": "core/base-elements/button-base-element.js"
101031
- },
101032
- "attribute": "form"
101364
+ "name": "SbbLinkBaseElement",
101365
+ "module": "core/base-elements/link-base-element.js"
101366
+ }
101033
101367
  },
101034
101368
  {
101035
101369
  "kind": "field",
101036
- "name": "_formId",
101370
+ "name": "accessibilityCurrent",
101037
101371
  "type": {
101038
101372
  "text": "string"
101039
101373
  },
101040
- "privacy": "private",
101374
+ "privacy": "public",
101041
101375
  "default": "''",
101376
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
101377
+ "attribute": "accessibility-current",
101042
101378
  "inheritedFrom": {
101043
- "name": "SbbButtonBaseElement",
101044
- "module": "core/base-elements/button-base-element.js"
101379
+ "name": "SbbLinkBaseElement",
101380
+ "module": "core/base-elements/link-base-element.js"
101045
101381
  }
101046
101382
  },
101047
101383
  {
101048
101384
  "kind": "field",
101049
- "name": "_handleButtonClick",
101050
- "privacy": "private",
101385
+ "name": "language",
101386
+ "privacy": "protected",
101387
+ "default": "new SbbLanguageController(this)",
101051
101388
  "inheritedFrom": {
101052
- "name": "SbbButtonBaseElement",
101053
- "module": "core/base-elements/button-base-element.js"
101389
+ "name": "SbbLinkBaseElement",
101390
+ "module": "core/base-elements/link-base-element.js"
101054
101391
  }
101055
101392
  },
101056
101393
  {
101057
- "kind": "method",
101058
- "name": "_requestSubmit",
101059
- "privacy": "private",
101060
- "return": {
101061
- "type": {
101062
- "text": "void"
101063
- }
101394
+ "kind": "field",
101395
+ "name": "anchorRole",
101396
+ "type": {
101397
+ "text": "string | null"
101064
101398
  },
101065
- "parameters": [
101066
- {
101067
- "name": "form",
101068
- "type": {
101069
- "text": "HTMLFormElement"
101070
- }
101071
- }
101072
- ],
101399
+ "privacy": "protected",
101400
+ "readonly": true,
101401
+ "default": "null",
101073
101402
  "inheritedFrom": {
101074
- "name": "SbbButtonBaseElement",
101075
- "module": "core/base-elements/button-base-element.js"
101403
+ "name": "SbbLinkBaseElement",
101404
+ "module": "core/base-elements/link-base-element.js"
101076
101405
  }
101077
101406
  },
101078
101407
  {
101079
101408
  "kind": "field",
101080
- "name": "_formKeyDown",
101409
+ "name": "_evaluateRelAttribute",
101081
101410
  "privacy": "private",
101082
101411
  "inheritedFrom": {
101083
- "name": "SbbButtonBaseElement",
101084
- "module": "core/base-elements/button-base-element.js"
101412
+ "name": "SbbLinkBaseElement",
101413
+ "module": "core/base-elements/link-base-element.js"
101085
101414
  }
101086
101415
  },
101087
101416
  {
101088
- "kind": "field",
101089
- "name": "formAssociated",
101090
- "type": {
101091
- "text": "boolean"
101417
+ "kind": "method",
101418
+ "name": "renderLink",
101419
+ "privacy": "protected",
101420
+ "return": {
101421
+ "type": {
101422
+ "text": "TemplateResult"
101423
+ }
101092
101424
  },
101093
- "privacy": "public",
101094
- "static": true,
101095
- "default": "true",
101425
+ "parameters": [
101426
+ {
101427
+ "name": "renderContent",
101428
+ "type": {
101429
+ "text": "TemplateResult"
101430
+ }
101431
+ }
101432
+ ],
101096
101433
  "inheritedFrom": {
101097
- "name": "SbbFormAssociatedMixin",
101098
- "module": "core/mixins/form-associated-mixin.js"
101434
+ "name": "SbbLinkBaseElement",
101435
+ "module": "core/base-elements/link-base-element.js"
101099
101436
  }
101100
101437
  },
101101
101438
  {
101102
101439
  "kind": "field",
101103
- "name": "name",
101104
- "privacy": "public",
101105
- "description": "Name of the form element. Will be read from name attribute.",
101440
+ "name": "maybeDisabled",
101106
101441
  "type": {
101107
- "text": "string"
101442
+ "text": "boolean | undefined"
101108
101443
  },
101109
- "attribute": "name",
101444
+ "privacy": "protected",
101445
+ "readonly": true,
101110
101446
  "inheritedFrom": {
101111
- "name": "SbbFormAssociatedMixin",
101112
- "module": "core/mixins/form-associated-mixin.js"
101447
+ "name": "SbbActionBaseElement",
101448
+ "module": "core/base-elements/action-base-element.js"
101113
101449
  }
101114
101450
  },
101115
101451
  {
101116
101452
  "kind": "field",
101117
- "name": "validity",
101453
+ "name": "maybeDisabledInteractive",
101118
101454
  "type": {
101119
- "text": "ValidityState"
101455
+ "text": "boolean | undefined"
101120
101456
  },
101121
- "privacy": "public",
101122
- "description": "Returns the ValidityState object for this element.",
101457
+ "privacy": "protected",
101123
101458
  "readonly": true,
101124
101459
  "inheritedFrom": {
101125
- "name": "SbbFormAssociatedMixin",
101126
- "module": "core/mixins/form-associated-mixin.js"
101460
+ "name": "SbbActionBaseElement",
101461
+ "module": "core/base-elements/action-base-element.js"
101127
101462
  }
101128
101463
  },
101129
101464
  {
101130
- "kind": "field",
101131
- "name": "validationMessage",
101132
- "type": {
101133
- "text": "string"
101465
+ "kind": "method",
101466
+ "name": "setupBaseEventHandlers",
101467
+ "privacy": "protected",
101468
+ "return": {
101469
+ "type": {
101470
+ "text": "void"
101471
+ }
101134
101472
  },
101135
- "privacy": "public",
101136
- "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.",
101137
- "readonly": true,
101138
101473
  "inheritedFrom": {
101139
- "name": "SbbFormAssociatedMixin",
101140
- "module": "core/mixins/form-associated-mixin.js"
101474
+ "name": "SbbActionBaseElement",
101475
+ "module": "core/base-elements/action-base-element.js"
101141
101476
  }
101142
101477
  },
101143
101478
  {
101144
101479
  "kind": "field",
101145
- "name": "willValidate",
101480
+ "name": "_hydrationRequired",
101146
101481
  "type": {
101147
101482
  "text": "boolean"
101148
101483
  },
101149
- "privacy": "public",
101150
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
101151
- "readonly": true,
101484
+ "privacy": "private",
101485
+ "default": "!!this.shadowRoot",
101152
101486
  "inheritedFrom": {
101153
- "name": "SbbFormAssociatedMixin",
101154
- "module": "core/mixins/form-associated-mixin.js"
101487
+ "name": "SbbElement",
101488
+ "module": "core/base-elements/element.js"
101155
101489
  }
101156
101490
  },
101157
101491
  {
101158
101492
  "kind": "field",
101159
- "name": "_validityStates",
101493
+ "name": "_hydrationComplete",
101160
101494
  "privacy": "private",
101161
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
101495
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
101162
101496
  "inheritedFrom": {
101163
- "name": "SbbFormAssociatedMixin",
101164
- "module": "core/mixins/form-associated-mixin.js"
101497
+ "name": "SbbElement",
101498
+ "module": "core/base-elements/element.js"
101165
101499
  }
101166
101500
  },
101167
101501
  {
101168
101502
  "kind": "field",
101169
- "name": "formDisabled",
101503
+ "name": "_resolveHydration",
101170
101504
  "type": {
101171
- "text": "boolean"
101505
+ "text": "(hydrationRequired: boolean) => void"
101172
101506
  },
101173
- "privacy": "protected",
101174
- "default": "false",
101175
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
101507
+ "privacy": "private",
101176
101508
  "inheritedFrom": {
101177
- "name": "SbbFormAssociatedMixin",
101178
- "module": "core/mixins/form-associated-mixin.js"
101509
+ "name": "SbbElement",
101510
+ "module": "core/base-elements/element.js"
101179
101511
  }
101180
101512
  },
101181
101513
  {
101182
- "kind": "method",
101183
- "name": "checkValidity",
101184
- "privacy": "public",
101185
- "return": {
101186
- "type": {
101187
- "text": "boolean"
101188
- }
101514
+ "kind": "field",
101515
+ "name": "hydrationRequired",
101516
+ "type": {
101517
+ "text": "boolean"
101189
101518
  },
101190
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
101519
+ "privacy": "protected",
101520
+ "description": "Returns whether hydration is required and not completed.",
101521
+ "readonly": true,
101191
101522
  "inheritedFrom": {
101192
- "name": "SbbFormAssociatedMixin",
101193
- "module": "core/mixins/form-associated-mixin.js"
101194
- }
101195
- },
101196
- {
101197
- "kind": "method",
101198
- "name": "reportValidity",
101199
- "privacy": "public",
101200
- "return": {
101201
- "type": {
101202
- "text": "boolean"
101203
- }
101523
+ "name": "SbbElement",
101524
+ "module": "core/base-elements/element.js"
101204
101525
  },
101205
- "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.",
101206
- "inheritedFrom": {
101207
- "name": "SbbFormAssociatedMixin",
101208
- "module": "core/mixins/form-associated-mixin.js"
101209
- }
101526
+ "default": "!!this.shadowRoot"
101210
101527
  },
101211
101528
  {
101212
101529
  "kind": "method",
101213
- "name": "setCustomValidity",
101214
- "privacy": "public",
101530
+ "name": "toggleState",
101531
+ "privacy": "protected",
101215
101532
  "return": {
101216
101533
  "type": {
101217
101534
  "text": "void"
@@ -101219,513 +101536,196 @@
101219
101536
  },
101220
101537
  "parameters": [
101221
101538
  {
101222
- "name": "message",
101539
+ "name": "value",
101223
101540
  "type": {
101224
101541
  "text": "string"
101225
101542
  }
101543
+ },
101544
+ {
101545
+ "name": "force",
101546
+ "optional": true,
101547
+ "type": {
101548
+ "text": "boolean"
101549
+ }
101226
101550
  }
101227
101551
  ],
101228
- "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.",
101229
101552
  "inheritedFrom": {
101230
- "name": "SbbFormAssociatedMixin",
101231
- "module": "core/mixins/form-associated-mixin.js"
101553
+ "name": "SbbElement",
101554
+ "module": "core/base-elements/element.js"
101232
101555
  }
101233
101556
  },
101234
101557
  {
101235
- "kind": "method",
101236
- "name": "_hasDisabledAncestor",
101237
- "privacy": "private",
101238
- "return": {
101239
- "type": {
101240
- "text": "boolean"
101241
- }
101558
+ "kind": "field",
101559
+ "name": "['_$sbbElement$']",
101560
+ "type": {
101561
+ "text": "boolean"
101242
101562
  },
101563
+ "privacy": "public",
101564
+ "static": true,
101565
+ "default": "true",
101243
101566
  "inheritedFrom": {
101244
- "name": "SbbFormAssociatedMixin",
101245
- "module": "core/mixins/form-associated-mixin.js"
101567
+ "name": "SbbElement",
101568
+ "module": "core/base-elements/element.js"
101246
101569
  }
101247
101570
  },
101248
101571
  {
101249
- "kind": "method",
101250
- "name": "updateFormValue",
101251
- "privacy": "protected",
101252
- "return": {
101253
- "type": {
101254
- "text": "void"
101255
- }
101572
+ "kind": "field",
101573
+ "name": "_controllers",
101574
+ "type": {
101575
+ "text": "Set<SbbReactiveController> | undefined"
101256
101576
  },
101257
- "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",
101577
+ "privacy": "private",
101258
101578
  "inheritedFrom": {
101259
- "name": "SbbFormAssociatedMixin",
101260
- "module": "core/mixins/form-associated-mixin.js"
101579
+ "name": "SbbElement",
101580
+ "module": "core/base-elements/element.js"
101261
101581
  }
101582
+ }
101583
+ ],
101584
+ "mixins": [
101585
+ {
101586
+ "name": "SbbBlockLinkCommonElementMixin",
101587
+ "module": "link/common/block-link-common.js"
101262
101588
  },
101263
101589
  {
101264
- "kind": "method",
101265
- "name": "formState",
101266
- "privacy": "protected",
101267
- "return": {
101268
- "type": {
101269
- "text": "FormRestoreState"
101270
- }
101590
+ "name": "SbbDisabledMixin",
101591
+ "module": "core/mixins.js"
101592
+ }
101593
+ ],
101594
+ "superclass": {
101595
+ "name": "SbbLinkBaseElement",
101596
+ "module": "core/base-elements.js"
101597
+ },
101598
+ "tagName": "sbb-block-link",
101599
+ "customElement": true,
101600
+ "attributes": [
101601
+ {
101602
+ "name": "icon-placement",
101603
+ "type": {
101604
+ "text": "SbbIconPlacement"
101271
101605
  },
101606
+ "default": "'start'",
101607
+ "description": "Moves the icon to the end of the component if set to true.",
101608
+ "fieldName": "iconPlacement",
101272
101609
  "inheritedFrom": {
101273
- "name": "SbbFormAssociatedMixin",
101274
- "module": "core/mixins/form-associated-mixin.js"
101610
+ "name": "SbbBlockLinkCommonElementMixin",
101611
+ "module": "link/common/block-link-common.js"
101275
101612
  }
101276
101613
  },
101277
101614
  {
101278
- "kind": "method",
101279
- "name": "setValidityFlag",
101280
- "privacy": "protected",
101281
- "return": {
101282
- "type": {
101283
- "text": "void"
101284
- }
101615
+ "name": "size",
101616
+ "type": {
101617
+ "text": "SbbLinkSize"
101285
101618
  },
101286
- "parameters": [
101287
- {
101288
- "name": "flag",
101289
- "type": {
101290
- "text": "T"
101291
- }
101292
- },
101293
- {
101294
- "name": "message",
101295
- "type": {
101296
- "text": "string"
101297
- }
101298
- },
101299
- {
101300
- "name": "flagValue",
101301
- "optional": true,
101302
- "type": {
101303
- "text": "ValidityStateFlags[T]"
101304
- }
101305
- }
101306
- ],
101307
- "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).",
101619
+ "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
101620
+ "default": "'s' / 'xs' (lean)",
101621
+ "fieldName": "size",
101308
101622
  "inheritedFrom": {
101309
- "name": "SbbFormAssociatedMixin",
101310
- "module": "core/mixins/form-associated-mixin.js"
101623
+ "name": "SbbLinkCommonElementMixin",
101624
+ "module": "link/common/link-common.js"
101311
101625
  }
101312
101626
  },
101313
101627
  {
101314
- "kind": "method",
101315
- "name": "removeValidityFlag",
101316
- "privacy": "protected",
101317
- "return": {
101318
- "type": {
101319
- "text": "void"
101320
- }
101628
+ "name": "icon-name",
101629
+ "type": {
101630
+ "text": "string"
101321
101631
  },
101322
- "parameters": [
101323
- {
101324
- "name": "flag",
101325
- "type": {
101326
- "text": "T"
101327
- }
101328
- }
101329
- ],
101330
- "description": "Removes the validity state flag entry and updates validity state.",
101632
+ "default": "''",
101633
+ "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.",
101634
+ "fieldName": "iconName",
101331
101635
  "inheritedFrom": {
101332
- "name": "SbbFormAssociatedMixin",
101333
- "module": "core/mixins/form-associated-mixin.js"
101636
+ "name": "SbbIconNameMixin",
101637
+ "module": "icon/icon-name-mixin.js"
101334
101638
  }
101335
101639
  },
101336
101640
  {
101337
- "kind": "method",
101338
- "name": "validate",
101339
- "privacy": "protected",
101340
- "return": {
101341
- "type": {
101342
- "text": "void"
101343
- }
101641
+ "name": "disabled",
101642
+ "description": "Whether the component is disabled.",
101643
+ "default": "false",
101644
+ "type": {
101645
+ "text": "boolean"
101344
101646
  },
101345
- "description": "To be called whenever the current element needs to be validated.",
101647
+ "fieldName": "disabled",
101346
101648
  "inheritedFrom": {
101347
- "name": "SbbFormAssociatedMixin",
101348
- "module": "core/mixins/form-associated-mixin.js"
101349
- }
101350
- },
101351
- {
101352
- "kind": "method",
101353
- "name": "shouldValidate",
101354
- "privacy": "protected",
101355
- "return": {
101356
- "type": {
101357
- "text": "boolean"
101358
- }
101359
- },
101360
- "parameters": [
101361
- {
101362
- "name": "name",
101363
- "type": {
101364
- "text": "PropertyKey | undefined"
101365
- }
101366
- }
101367
- ],
101368
- "description": "Whether validation should be run on a property change with the given name.",
101369
- "inheritedFrom": {
101370
- "name": "SbbFormAssociatedMixin",
101371
- "module": "core/mixins/form-associated-mixin.js"
101372
- }
101373
- },
101374
- {
101375
- "kind": "method",
101376
- "name": "_setInternalValidity",
101377
- "privacy": "private",
101378
- "return": {
101379
- "type": {
101380
- "text": "void"
101381
- }
101382
- },
101383
- "inheritedFrom": {
101384
- "name": "SbbFormAssociatedMixin",
101385
- "module": "core/mixins/form-associated-mixin.js"
101386
- }
101387
- },
101388
- {
101389
- "kind": "field",
101390
- "name": "role",
101391
- "type": {
101392
- "text": "ElementInternals['role']"
101393
- },
101394
- "privacy": "public",
101395
- "static": true,
101396
- "readonly": true,
101397
- "default": "'button'",
101398
- "inheritedFrom": {
101399
- "name": "SbbButtonLikeBaseElement",
101400
- "module": "core/base-elements/button-base-element.js"
101401
- }
101402
- },
101403
- {
101404
- "kind": "field",
101405
- "name": "_preventScrollOnSpaceKeydown",
101406
- "privacy": "private",
101407
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
101408
- "parameters": [
101409
- {
101410
- "description": "The origin event.",
101411
- "name": "event"
101412
- }
101413
- ],
101414
- "inheritedFrom": {
101415
- "name": "SbbButtonLikeBaseElement",
101416
- "module": "core/base-elements/button-base-element.js"
101417
- }
101418
- },
101419
- {
101420
- "kind": "field",
101421
- "name": "_removeActiveMarker",
101422
- "privacy": "private",
101423
- "inheritedFrom": {
101424
- "name": "SbbButtonLikeBaseElement",
101425
- "module": "core/base-elements/button-base-element.js"
101426
- }
101427
- },
101428
- {
101429
- "kind": "field",
101430
- "name": "_dispatchClickEventOnSpaceKeyup",
101431
- "privacy": "private",
101432
- "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.",
101433
- "parameters": [
101434
- {
101435
- "description": "The origin event.",
101436
- "name": "event"
101437
- }
101438
- ],
101439
- "inheritedFrom": {
101440
- "name": "SbbButtonLikeBaseElement",
101441
- "module": "core/base-elements/button-base-element.js"
101442
- }
101443
- },
101444
- {
101445
- "kind": "field",
101446
- "name": "_dispatchClickEvent",
101447
- "privacy": "private",
101448
- "inheritedFrom": {
101449
- "name": "SbbButtonLikeBaseElement",
101450
- "module": "core/base-elements/button-base-element.js"
101451
- }
101452
- },
101453
- {
101454
- "kind": "field",
101455
- "name": "maybeDisabled",
101456
- "type": {
101457
- "text": "boolean | undefined"
101458
- },
101459
- "privacy": "protected",
101460
- "readonly": true,
101461
- "inheritedFrom": {
101462
- "name": "SbbActionBaseElement",
101463
- "module": "core/base-elements/action-base-element.js"
101464
- }
101465
- },
101466
- {
101467
- "kind": "field",
101468
- "name": "maybeDisabledInteractive",
101469
- "type": {
101470
- "text": "boolean | undefined"
101471
- },
101472
- "privacy": "protected",
101473
- "readonly": true,
101474
- "inheritedFrom": {
101475
- "name": "SbbActionBaseElement",
101476
- "module": "core/base-elements/action-base-element.js"
101477
- }
101478
- },
101479
- {
101480
- "kind": "method",
101481
- "name": "setupBaseEventHandlers",
101482
- "privacy": "protected",
101483
- "return": {
101484
- "type": {
101485
- "text": "void"
101486
- }
101487
- },
101488
- "inheritedFrom": {
101489
- "name": "SbbActionBaseElement",
101490
- "module": "core/base-elements/action-base-element.js"
101491
- }
101492
- },
101493
- {
101494
- "kind": "field",
101495
- "name": "_hydrationRequired",
101496
- "type": {
101497
- "text": "boolean"
101498
- },
101499
- "privacy": "private",
101500
- "default": "!!this.shadowRoot",
101501
- "inheritedFrom": {
101502
- "name": "SbbElement",
101503
- "module": "core/base-elements/element.js"
101504
- }
101505
- },
101506
- {
101507
- "kind": "field",
101508
- "name": "_hydrationComplete",
101509
- "privacy": "private",
101510
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
101511
- "inheritedFrom": {
101512
- "name": "SbbElement",
101513
- "module": "core/base-elements/element.js"
101514
- }
101515
- },
101516
- {
101517
- "kind": "field",
101518
- "name": "_resolveHydration",
101519
- "type": {
101520
- "text": "(hydrationRequired: boolean) => void"
101521
- },
101522
- "privacy": "private",
101523
- "inheritedFrom": {
101524
- "name": "SbbElement",
101525
- "module": "core/base-elements/element.js"
101526
- }
101527
- },
101528
- {
101529
- "kind": "field",
101530
- "name": "hydrationRequired",
101531
- "type": {
101532
- "text": "boolean"
101533
- },
101534
- "privacy": "protected",
101535
- "description": "Returns whether hydration is required and not completed.",
101536
- "readonly": true,
101537
- "inheritedFrom": {
101538
- "name": "SbbElement",
101539
- "module": "core/base-elements/element.js"
101540
- },
101541
- "default": "!!this.shadowRoot"
101542
- },
101543
- {
101544
- "kind": "method",
101545
- "name": "toggleState",
101546
- "privacy": "protected",
101547
- "return": {
101548
- "type": {
101549
- "text": "void"
101550
- }
101551
- },
101552
- "parameters": [
101553
- {
101554
- "name": "value",
101555
- "type": {
101556
- "text": "string"
101557
- }
101558
- },
101559
- {
101560
- "name": "force",
101561
- "optional": true,
101562
- "type": {
101563
- "text": "boolean"
101564
- }
101565
- }
101566
- ],
101567
- "inheritedFrom": {
101568
- "name": "SbbElement",
101569
- "module": "core/base-elements/element.js"
101570
- }
101571
- },
101572
- {
101573
- "kind": "field",
101574
- "name": "['_$sbbElement$']",
101575
- "type": {
101576
- "text": "boolean"
101577
- },
101578
- "privacy": "public",
101579
- "static": true,
101580
- "default": "true",
101581
- "inheritedFrom": {
101582
- "name": "SbbElement",
101583
- "module": "core/base-elements/element.js"
101584
- }
101585
- },
101586
- {
101587
- "kind": "field",
101588
- "name": "_controllers",
101589
- "type": {
101590
- "text": "Set<SbbReactiveController> | undefined"
101591
- },
101592
- "privacy": "private",
101593
- "inheritedFrom": {
101594
- "name": "SbbElement",
101595
- "module": "core/base-elements/element.js"
101649
+ "name": "SbbDisabledMixin",
101650
+ "module": "core/mixins/disabled-mixin.js"
101596
101651
  }
101597
- }
101598
- ],
101599
- "mixins": [
101600
- {
101601
- "name": "SbbBlockLinkCommonElementMixin",
101602
- "module": "link/common/block-link-common.js"
101603
101652
  },
101604
101653
  {
101605
- "name": "SbbDisabledTabIndexActionMixin",
101606
- "module": "core/mixins.js"
101607
- }
101608
- ],
101609
- "superclass": {
101610
- "name": "SbbButtonBaseElement",
101611
- "module": "core/base-elements.js"
101612
- },
101613
- "tagName": "sbb-block-link-button",
101614
- "customElement": true,
101615
- "attributes": [
101616
- {
101617
- "name": "icon-placement",
101654
+ "name": "href",
101618
101655
  "type": {
101619
- "text": "SbbIconPlacement"
101656
+ "text": "string"
101620
101657
  },
101621
- "default": "'start'",
101622
- "description": "Moves the icon to the end of the component if set to true.",
101623
- "fieldName": "iconPlacement",
101658
+ "default": "''",
101659
+ "description": "The href value you want to link to.",
101660
+ "fieldName": "href",
101624
101661
  "inheritedFrom": {
101625
- "name": "SbbBlockLinkCommonElementMixin",
101626
- "module": "link/common/block-link-common.js"
101662
+ "name": "SbbLinkBaseElement",
101663
+ "module": "core/base-elements/link-base-element.js"
101627
101664
  }
101628
101665
  },
101629
101666
  {
101630
- "name": "size",
101667
+ "name": "target",
101631
101668
  "type": {
101632
- "text": "SbbLinkSize"
101669
+ "text": "LinkTargetType | string"
101633
101670
  },
101634
- "description": "Text size, the link should get in the non-button variation.\nWith inline variant, the text size adapts to where it is used.",
101635
- "default": "'s' / 'xs' (lean)",
101636
- "fieldName": "size",
101671
+ "default": "''",
101672
+ "description": "Where to display the linked URL.",
101673
+ "fieldName": "target",
101637
101674
  "inheritedFrom": {
101638
- "name": "SbbLinkCommonElementMixin",
101639
- "module": "link/common/link-common.js"
101675
+ "name": "SbbLinkBaseElement",
101676
+ "module": "core/base-elements/link-base-element.js"
101640
101677
  }
101641
101678
  },
101642
101679
  {
101643
- "name": "icon-name",
101680
+ "name": "rel",
101644
101681
  "type": {
101645
101682
  "text": "string"
101646
101683
  },
101647
101684
  "default": "''",
101648
- "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.",
101649
- "fieldName": "iconName",
101685
+ "description": "The relationship of the linked URL as space-separated link types.",
101686
+ "fieldName": "rel",
101650
101687
  "inheritedFrom": {
101651
- "name": "SbbIconNameMixin",
101652
- "module": "icon/icon-name-mixin.js"
101688
+ "name": "SbbLinkBaseElement",
101689
+ "module": "core/base-elements/link-base-element.js"
101653
101690
  }
101654
101691
  },
101655
101692
  {
101656
- "name": "disabled-interactive",
101693
+ "name": "download",
101657
101694
  "type": {
101658
101695
  "text": "boolean"
101659
101696
  },
101660
101697
  "default": "false",
101661
- "description": "Whether the button should be aria-disabled but stay interactive.",
101662
- "fieldName": "disabledInteractive",
101663
- "inheritedFrom": {
101664
- "name": "SbbDisabledInteractiveMixin",
101665
- "module": "core/mixins/disabled-mixin.js"
101666
- }
101667
- },
101668
- {
101669
- "name": "disabled",
101670
- "description": "Whether the component is disabled.",
101671
- "default": "false",
101672
- "type": {
101673
- "text": "boolean"
101674
- },
101675
- "fieldName": "disabled",
101698
+ "description": "Whether the browser will show the download dialog on click.",
101699
+ "fieldName": "download",
101676
101700
  "inheritedFrom": {
101677
- "name": "SbbDisabledMixin",
101678
- "module": "core/mixins/disabled-mixin.js"
101701
+ "name": "SbbLinkBaseElement",
101702
+ "module": "core/base-elements/link-base-element.js"
101679
101703
  }
101680
101704
  },
101681
101705
  {
101682
- "name": "value",
101706
+ "name": "accessibility-label",
101683
101707
  "type": {
101684
101708
  "text": "string"
101685
101709
  },
101686
101710
  "default": "''",
101687
- "description": "Value of the form element.",
101688
- "fieldName": "value",
101689
- "inheritedFrom": {
101690
- "name": "SbbButtonBaseElement",
101691
- "module": "core/base-elements/button-base-element.js"
101692
- }
101693
- },
101694
- {
101695
- "name": "type",
101696
- "description": "The type attribute to use for the button.",
101697
- "default": "'button'",
101698
- "type": {
101699
- "text": "SbbButtonType"
101700
- },
101701
- "fieldName": "type",
101702
- "inheritedFrom": {
101703
- "name": "SbbButtonBaseElement",
101704
- "module": "core/base-elements/button-base-element.js"
101705
- }
101706
- },
101707
- {
101708
- "name": "form",
101709
- "description": "The `<form>` element to associate the button with.",
101710
- "type": {
101711
- "text": "HTMLFormElement | null"
101712
- },
101713
- "fieldName": "form",
101711
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
101712
+ "fieldName": "accessibilityLabel",
101714
101713
  "inheritedFrom": {
101715
- "name": "SbbButtonBaseElement",
101716
- "module": "core/base-elements/button-base-element.js"
101714
+ "name": "SbbLinkBaseElement",
101715
+ "module": "core/base-elements/link-base-element.js"
101717
101716
  }
101718
101717
  },
101719
101718
  {
101720
- "name": "name",
101721
- "description": "Name of the form element. Will be read from name attribute.",
101719
+ "name": "accessibility-current",
101722
101720
  "type": {
101723
101721
  "text": "string"
101724
101722
  },
101725
- "fieldName": "name",
101723
+ "default": "''",
101724
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
101725
+ "fieldName": "accessibilityCurrent",
101726
101726
  "inheritedFrom": {
101727
- "name": "SbbFormAssociatedMixin",
101728
- "module": "core/mixins/form-associated-mixin.js"
101727
+ "name": "SbbLinkBaseElement",
101728
+ "module": "core/base-elements/link-base-element.js"
101729
101729
  }
101730
101730
  }
101731
101731
  ]
@@ -101734,10 +101734,10 @@
101734
101734
  "exports": [
101735
101735
  {
101736
101736
  "kind": "js",
101737
- "name": "SbbBlockLinkButtonElement",
101737
+ "name": "SbbBlockLinkElement",
101738
101738
  "declaration": {
101739
- "name": "SbbBlockLinkButtonElement",
101740
- "module": "link/block-link-button/block-link-button.component.js"
101739
+ "name": "SbbBlockLinkElement",
101740
+ "module": "link/block-link/block-link.component.js"
101741
101741
  }
101742
101742
  }
101743
101743
  ]
@@ -105728,546 +105728,6 @@
105728
105728
  }
105729
105729
  ]
105730
105730
  },
105731
- {
105732
- "kind": "javascript-module",
105733
- "path": "menu/common/menu-action-common.js",
105734
- "declarations": [
105735
- {
105736
- "kind": "class",
105737
- "description": "",
105738
- "name": "SbbMenuActionCommonElementMixinType",
105739
- "mixins": [
105740
- {
105741
- "name": "SbbIconNameMixin",
105742
- "module": "icon.js"
105743
- },
105744
- {
105745
- "name": "SbbDisabledMixin",
105746
- "module": "core/mixins.js"
105747
- }
105748
- ],
105749
- "superclass": {
105750
- "name": "SbbActionBaseElement",
105751
- "module": "core/base-elements.js"
105752
- },
105753
- "attributes": [
105754
- {
105755
- "name": "icon-name",
105756
- "type": {
105757
- "text": "string"
105758
- },
105759
- "default": "''",
105760
- "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.",
105761
- "fieldName": "iconName",
105762
- "inheritedFrom": {
105763
- "name": "SbbIconNameMixin",
105764
- "module": "icon/icon-name-mixin.js"
105765
- }
105766
- },
105767
- {
105768
- "name": "disabled",
105769
- "description": "Whether the component is disabled.",
105770
- "default": "false",
105771
- "type": {
105772
- "text": "boolean"
105773
- },
105774
- "fieldName": "disabled",
105775
- "inheritedFrom": {
105776
- "name": "SbbDisabledMixin",
105777
- "module": "core/mixins/disabled-mixin.js"
105778
- }
105779
- }
105780
- ],
105781
- "members": [
105782
- {
105783
- "kind": "field",
105784
- "name": "iconName",
105785
- "type": {
105786
- "text": "string"
105787
- },
105788
- "privacy": "public",
105789
- "default": "''",
105790
- "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.",
105791
- "attribute": "icon-name",
105792
- "inheritedFrom": {
105793
- "name": "SbbIconNameMixin",
105794
- "module": "icon/icon-name-mixin.js"
105795
- }
105796
- },
105797
- {
105798
- "kind": "method",
105799
- "name": "renderIconSlot",
105800
- "privacy": "protected",
105801
- "return": {
105802
- "type": {
105803
- "text": "TemplateResult"
105804
- }
105805
- },
105806
- "parameters": [
105807
- {
105808
- "name": "classname",
105809
- "optional": true,
105810
- "type": {
105811
- "text": "string"
105812
- }
105813
- }
105814
- ],
105815
- "inheritedFrom": {
105816
- "name": "SbbIconNameMixin",
105817
- "module": "icon/icon-name-mixin.js"
105818
- }
105819
- },
105820
- {
105821
- "kind": "method",
105822
- "name": "renderIconName",
105823
- "privacy": "protected",
105824
- "return": {
105825
- "type": {
105826
- "text": "string"
105827
- }
105828
- },
105829
- "inheritedFrom": {
105830
- "name": "SbbIconNameMixin",
105831
- "module": "icon/icon-name-mixin.js"
105832
- }
105833
- },
105834
- {
105835
- "kind": "method",
105836
- "name": "_renderIconName",
105837
- "privacy": "private",
105838
- "return": {
105839
- "type": {
105840
- "text": "string"
105841
- }
105842
- },
105843
- "inheritedFrom": {
105844
- "name": "SbbIconNameMixin",
105845
- "module": "icon/icon-name-mixin.js"
105846
- }
105847
- },
105848
- {
105849
- "kind": "field",
105850
- "name": "disabled",
105851
- "privacy": "public",
105852
- "description": "Whether the component is disabled.",
105853
- "default": "false",
105854
- "type": {
105855
- "text": "boolean"
105856
- },
105857
- "attribute": "disabled",
105858
- "reflects": true,
105859
- "inheritedFrom": {
105860
- "name": "SbbDisabledMixin",
105861
- "module": "core/mixins/disabled-mixin.js"
105862
- }
105863
- },
105864
- {
105865
- "kind": "field",
105866
- "name": "#disabled",
105867
- "privacy": "private",
105868
- "type": {
105869
- "text": "boolean"
105870
- },
105871
- "default": "false",
105872
- "inheritedFrom": {
105873
- "name": "SbbDisabledMixin",
105874
- "module": "core/mixins/disabled-mixin.js"
105875
- }
105876
- },
105877
- {
105878
- "kind": "method",
105879
- "name": "isDisabledExternally",
105880
- "privacy": "protected",
105881
- "return": {
105882
- "type": {
105883
- "text": "boolean"
105884
- }
105885
- },
105886
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
105887
- "inheritedFrom": {
105888
- "name": "SbbDisabledMixin",
105889
- "module": "core/mixins/disabled-mixin.js"
105890
- }
105891
- },
105892
- {
105893
- "kind": "field",
105894
- "name": "maybeDisabled",
105895
- "type": {
105896
- "text": "boolean | undefined"
105897
- },
105898
- "privacy": "protected",
105899
- "readonly": true,
105900
- "inheritedFrom": {
105901
- "name": "SbbActionBaseElement",
105902
- "module": "core/base-elements/action-base-element.js"
105903
- }
105904
- },
105905
- {
105906
- "kind": "field",
105907
- "name": "maybeDisabledInteractive",
105908
- "type": {
105909
- "text": "boolean | undefined"
105910
- },
105911
- "privacy": "protected",
105912
- "readonly": true,
105913
- "inheritedFrom": {
105914
- "name": "SbbActionBaseElement",
105915
- "module": "core/base-elements/action-base-element.js"
105916
- }
105917
- },
105918
- {
105919
- "kind": "method",
105920
- "name": "setupBaseEventHandlers",
105921
- "privacy": "protected",
105922
- "return": {
105923
- "type": {
105924
- "text": "void"
105925
- }
105926
- },
105927
- "inheritedFrom": {
105928
- "name": "SbbActionBaseElement",
105929
- "module": "core/base-elements/action-base-element.js"
105930
- }
105931
- },
105932
- {
105933
- "kind": "method",
105934
- "name": "renderTemplate",
105935
- "privacy": "protected",
105936
- "return": {
105937
- "type": {
105938
- "text": "TemplateResult"
105939
- }
105940
- },
105941
- "description": "Override this method to render the component template.",
105942
- "inheritedFrom": {
105943
- "name": "SbbActionBaseElement",
105944
- "module": "core/base-elements/action-base-element.js"
105945
- }
105946
- },
105947
- {
105948
- "kind": "field",
105949
- "name": "_hydrationRequired",
105950
- "type": {
105951
- "text": "boolean"
105952
- },
105953
- "privacy": "private",
105954
- "default": "!!this.shadowRoot",
105955
- "inheritedFrom": {
105956
- "name": "SbbElement",
105957
- "module": "core/base-elements/element.js"
105958
- }
105959
- },
105960
- {
105961
- "kind": "field",
105962
- "name": "_hydrationComplete",
105963
- "privacy": "private",
105964
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
105965
- "inheritedFrom": {
105966
- "name": "SbbElement",
105967
- "module": "core/base-elements/element.js"
105968
- }
105969
- },
105970
- {
105971
- "kind": "field",
105972
- "name": "_resolveHydration",
105973
- "type": {
105974
- "text": "(hydrationRequired: boolean) => void"
105975
- },
105976
- "privacy": "private",
105977
- "inheritedFrom": {
105978
- "name": "SbbElement",
105979
- "module": "core/base-elements/element.js"
105980
- }
105981
- },
105982
- {
105983
- "kind": "field",
105984
- "name": "hydrationRequired",
105985
- "type": {
105986
- "text": "boolean"
105987
- },
105988
- "privacy": "protected",
105989
- "description": "Returns whether hydration is required and not completed.",
105990
- "readonly": true,
105991
- "inheritedFrom": {
105992
- "name": "SbbElement",
105993
- "module": "core/base-elements/element.js"
105994
- },
105995
- "default": "!!this.shadowRoot"
105996
- },
105997
- {
105998
- "kind": "method",
105999
- "name": "toggleState",
106000
- "privacy": "protected",
106001
- "return": {
106002
- "type": {
106003
- "text": "void"
106004
- }
106005
- },
106006
- "parameters": [
106007
- {
106008
- "name": "value",
106009
- "type": {
106010
- "text": "string"
106011
- }
106012
- },
106013
- {
106014
- "name": "force",
106015
- "optional": true,
106016
- "type": {
106017
- "text": "boolean"
106018
- }
106019
- }
106020
- ],
106021
- "inheritedFrom": {
106022
- "name": "SbbElement",
106023
- "module": "core/base-elements/element.js"
106024
- }
106025
- },
106026
- {
106027
- "kind": "field",
106028
- "name": "['_$sbbElement$']",
106029
- "type": {
106030
- "text": "boolean"
106031
- },
106032
- "privacy": "public",
106033
- "static": true,
106034
- "default": "true",
106035
- "inheritedFrom": {
106036
- "name": "SbbElement",
106037
- "module": "core/base-elements/element.js"
106038
- }
106039
- },
106040
- {
106041
- "kind": "field",
106042
- "name": "elementName",
106043
- "type": {
106044
- "text": "string"
106045
- },
106046
- "privacy": "public",
106047
- "static": true,
106048
- "readonly": true,
106049
- "inheritedFrom": {
106050
- "name": "SbbElement",
106051
- "module": "core/base-elements/element.js"
106052
- }
106053
- },
106054
- {
106055
- "kind": "field",
106056
- "name": "_controllers",
106057
- "type": {
106058
- "text": "Set<SbbReactiveController> | undefined"
106059
- },
106060
- "privacy": "private",
106061
- "inheritedFrom": {
106062
- "name": "SbbElement",
106063
- "module": "core/base-elements/element.js"
106064
- }
106065
- }
106066
- ]
106067
- },
106068
- {
106069
- "kind": "mixin",
106070
- "description": "",
106071
- "name": "SbbMenuActionCommonElementMixin",
106072
- "members": [
106073
- {
106074
- "kind": "field",
106075
- "name": "styles",
106076
- "type": {
106077
- "text": "CSSResultGroup"
106078
- },
106079
- "privacy": "public",
106080
- "static": true,
106081
- "default": "[boxSizingStyles, unsafeCSS(style)]"
106082
- },
106083
- {
106084
- "kind": "method",
106085
- "name": "renderTemplate",
106086
- "privacy": "protected",
106087
- "return": {
106088
- "type": {
106089
- "text": "TemplateResult"
106090
- }
106091
- }
106092
- },
106093
- {
106094
- "kind": "field",
106095
- "name": "iconName",
106096
- "type": {
106097
- "text": "string"
106098
- },
106099
- "privacy": "public",
106100
- "default": "''",
106101
- "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.",
106102
- "attribute": "icon-name",
106103
- "inheritedFrom": {
106104
- "name": "SbbIconNameMixin",
106105
- "module": "icon/icon-name-mixin.js"
106106
- }
106107
- },
106108
- {
106109
- "kind": "method",
106110
- "name": "renderIconSlot",
106111
- "privacy": "protected",
106112
- "return": {
106113
- "type": {
106114
- "text": "TemplateResult"
106115
- }
106116
- },
106117
- "parameters": [
106118
- {
106119
- "name": "classname",
106120
- "optional": true,
106121
- "type": {
106122
- "text": "string"
106123
- }
106124
- }
106125
- ],
106126
- "inheritedFrom": {
106127
- "name": "SbbIconNameMixin",
106128
- "module": "icon/icon-name-mixin.js"
106129
- }
106130
- },
106131
- {
106132
- "kind": "method",
106133
- "name": "renderIconName",
106134
- "privacy": "protected",
106135
- "return": {
106136
- "type": {
106137
- "text": "string"
106138
- }
106139
- },
106140
- "inheritedFrom": {
106141
- "name": "SbbIconNameMixin",
106142
- "module": "icon/icon-name-mixin.js"
106143
- }
106144
- },
106145
- {
106146
- "kind": "method",
106147
- "name": "_renderIconName",
106148
- "privacy": "private",
106149
- "return": {
106150
- "type": {
106151
- "text": "string"
106152
- }
106153
- },
106154
- "inheritedFrom": {
106155
- "name": "SbbIconNameMixin",
106156
- "module": "icon/icon-name-mixin.js"
106157
- }
106158
- },
106159
- {
106160
- "kind": "field",
106161
- "name": "disabled",
106162
- "privacy": "public",
106163
- "description": "Whether the component is disabled.",
106164
- "default": "false",
106165
- "type": {
106166
- "text": "boolean"
106167
- },
106168
- "attribute": "disabled",
106169
- "reflects": true,
106170
- "inheritedFrom": {
106171
- "name": "SbbDisabledMixin",
106172
- "module": "core/mixins/disabled-mixin.js"
106173
- }
106174
- },
106175
- {
106176
- "kind": "field",
106177
- "name": "#disabled",
106178
- "privacy": "private",
106179
- "type": {
106180
- "text": "boolean"
106181
- },
106182
- "default": "false",
106183
- "inheritedFrom": {
106184
- "name": "SbbDisabledMixin",
106185
- "module": "core/mixins/disabled-mixin.js"
106186
- }
106187
- },
106188
- {
106189
- "kind": "method",
106190
- "name": "isDisabledExternally",
106191
- "privacy": "protected",
106192
- "return": {
106193
- "type": {
106194
- "text": "boolean"
106195
- }
106196
- },
106197
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
106198
- "inheritedFrom": {
106199
- "name": "SbbDisabledMixin",
106200
- "module": "core/mixins/disabled-mixin.js"
106201
- }
106202
- }
106203
- ],
106204
- "mixins": [
106205
- {
106206
- "name": "SbbIconNameMixin",
106207
- "module": "icon.js"
106208
- },
106209
- {
106210
- "name": "SbbDisabledMixin",
106211
- "module": "core/mixins.js"
106212
- }
106213
- ],
106214
- "parameters": [
106215
- {
106216
- "name": "superClass",
106217
- "type": {
106218
- "text": "T"
106219
- }
106220
- }
106221
- ],
106222
- "attributes": [
106223
- {
106224
- "name": "icon-name",
106225
- "type": {
106226
- "text": "string"
106227
- },
106228
- "default": "''",
106229
- "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.",
106230
- "fieldName": "iconName",
106231
- "inheritedFrom": {
106232
- "name": "SbbIconNameMixin",
106233
- "module": "icon/icon-name-mixin.js"
106234
- }
106235
- },
106236
- {
106237
- "name": "disabled",
106238
- "description": "Whether the component is disabled.",
106239
- "default": "false",
106240
- "type": {
106241
- "text": "boolean"
106242
- },
106243
- "fieldName": "disabled",
106244
- "inheritedFrom": {
106245
- "name": "SbbDisabledMixin",
106246
- "module": "core/mixins/disabled-mixin.js"
106247
- }
106248
- }
106249
- ]
106250
- }
106251
- ],
106252
- "exports": [
106253
- {
106254
- "kind": "js",
106255
- "name": "SbbMenuActionCommonElementMixinType",
106256
- "declaration": {
106257
- "name": "SbbMenuActionCommonElementMixinType",
106258
- "module": "menu/common/menu-action-common.js"
106259
- }
106260
- },
106261
- {
106262
- "kind": "js",
106263
- "name": "SbbMenuActionCommonElementMixin",
106264
- "declaration": {
106265
- "name": "SbbMenuActionCommonElementMixin",
106266
- "module": "menu/common/menu-action-common.js"
106267
- }
106268
- }
106269
- ]
106270
- },
106271
105731
  {
106272
105732
  "kind": "javascript-module",
106273
105733
  "path": "menu/menu/menu.component.js",
@@ -106597,232 +106057,630 @@
106597
106057
  "privacy": "private"
106598
106058
  },
106599
106059
  {
106600
- "kind": "method",
106601
- "name": "_nestedMenus",
106602
- "privacy": "private",
106603
- "return": {
106604
- "type": {
106605
- "text": "SbbMenuElement[]"
106606
- }
106060
+ "kind": "method",
106061
+ "name": "_nestedMenus",
106062
+ "privacy": "private",
106063
+ "return": {
106064
+ "type": {
106065
+ "text": "SbbMenuElement[]"
106066
+ }
106067
+ },
106068
+ "description": "Converts the linked list into an array of SbbMenuElement."
106069
+ },
106070
+ {
106071
+ "kind": "method",
106072
+ "name": "_parentMenu",
106073
+ "privacy": "private",
106074
+ "return": {
106075
+ "type": {
106076
+ "text": "SbbMenuElement | null"
106077
+ }
106078
+ }
106079
+ },
106080
+ {
106081
+ "kind": "method",
106082
+ "name": "_mainMenu",
106083
+ "privacy": "private",
106084
+ "return": {
106085
+ "type": {
106086
+ "text": "SbbMenuElement"
106087
+ }
106088
+ },
106089
+ "description": "The outermost menu."
106090
+ },
106091
+ {
106092
+ "kind": "method",
106093
+ "name": "_isNested",
106094
+ "privacy": "private",
106095
+ "return": {
106096
+ "type": {
106097
+ "text": "boolean"
106098
+ }
106099
+ }
106100
+ },
106101
+ {
106102
+ "kind": "method",
106103
+ "name": "_updateNestedInert",
106104
+ "privacy": "private",
106105
+ "return": {
106106
+ "type": {
106107
+ "text": "void"
106108
+ }
106109
+ }
106110
+ },
106111
+ {
106112
+ "kind": "method",
106113
+ "name": "_handleMouseOver",
106114
+ "privacy": "private",
106115
+ "return": {
106116
+ "type": {
106117
+ "text": "void"
106118
+ }
106119
+ },
106120
+ "parameters": [
106121
+ {
106122
+ "name": "event",
106123
+ "type": {
106124
+ "text": "MouseEvent"
106125
+ }
106126
+ }
106127
+ ]
106128
+ },
106129
+ {
106130
+ "kind": "method",
106131
+ "name": "_onMenuAnimationEnd",
106132
+ "privacy": "private",
106133
+ "return": {
106134
+ "type": {
106135
+ "text": "void"
106136
+ }
106137
+ },
106138
+ "parameters": [
106139
+ {
106140
+ "name": "event",
106141
+ "type": {
106142
+ "text": "AnimationEvent"
106143
+ }
106144
+ }
106145
+ ]
106146
+ },
106147
+ {
106148
+ "kind": "method",
106149
+ "name": "_setMenuPosition",
106150
+ "privacy": "private",
106151
+ "return": {
106152
+ "type": {
106153
+ "text": "void"
106154
+ }
106155
+ }
106156
+ },
106157
+ {
106158
+ "kind": "method",
106159
+ "name": "_syncNegative",
106160
+ "privacy": "private",
106161
+ "return": {
106162
+ "type": {
106163
+ "text": "void"
106164
+ }
106165
+ }
106166
+ },
106167
+ {
106168
+ "kind": "method",
106169
+ "name": "_isMobile",
106170
+ "privacy": "private",
106171
+ "return": {
106172
+ "type": {
106173
+ "text": "boolean"
106174
+ }
106175
+ }
106176
+ },
106177
+ {
106178
+ "kind": "field",
106179
+ "name": "events",
106180
+ "privacy": "public",
106181
+ "static": true,
106182
+ "readonly": true,
106183
+ "default": "{ beforeopen: 'beforeopen', open: 'open', beforeclose: 'beforeclose', close: 'close', }",
106184
+ "type": {
106185
+ "text": "{\n beforeopen: 'beforeopen',\n open: 'open',\n beforeclose: 'beforeclose',\n close: 'close',\n }"
106186
+ },
106187
+ "inheritedFrom": {
106188
+ "name": "SbbOpenCloseBaseElement",
106189
+ "module": "core/base-elements/open-close-base-element.js"
106190
+ }
106191
+ },
106192
+ {
106193
+ "kind": "field",
106194
+ "name": "state",
106195
+ "privacy": "protected",
106196
+ "description": "The state of the component.",
106197
+ "type": {
106198
+ "text": "SbbOpenedClosedState"
106199
+ },
106200
+ "default": "'closed'",
106201
+ "inheritedFrom": {
106202
+ "name": "SbbOpenCloseBaseElement",
106203
+ "module": "core/base-elements/open-close-base-element.js"
106204
+ }
106205
+ },
106206
+ {
106207
+ "kind": "field",
106208
+ "name": "_state",
106209
+ "type": {
106210
+ "text": "SbbOpenedClosedState"
106211
+ },
106212
+ "privacy": "private",
106213
+ "inheritedFrom": {
106214
+ "name": "SbbOpenCloseBaseElement",
106215
+ "module": "core/base-elements/open-close-base-element.js"
106216
+ }
106217
+ },
106218
+ {
106219
+ "kind": "field",
106220
+ "name": "isOpen",
106221
+ "type": {
106222
+ "text": "boolean"
106223
+ },
106224
+ "privacy": "public",
106225
+ "description": "Whether the element is open.",
106226
+ "readonly": true,
106227
+ "inheritedFrom": {
106228
+ "name": "SbbOpenCloseBaseElement",
106229
+ "module": "core/base-elements/open-close-base-element.js"
106230
+ }
106231
+ },
106232
+ {
106233
+ "kind": "method",
106234
+ "name": "dispatchBeforeOpenEvent",
106235
+ "privacy": "protected",
106236
+ "return": {
106237
+ "type": {
106238
+ "text": "boolean"
106239
+ }
106240
+ },
106241
+ "inheritedFrom": {
106242
+ "name": "SbbOpenCloseBaseElement",
106243
+ "module": "core/base-elements/open-close-base-element.js"
106244
+ }
106245
+ },
106246
+ {
106247
+ "kind": "method",
106248
+ "name": "dispatchOpenEvent",
106249
+ "privacy": "protected",
106250
+ "return": {
106251
+ "type": {
106252
+ "text": "boolean"
106253
+ }
106254
+ },
106255
+ "inheritedFrom": {
106256
+ "name": "SbbOpenCloseBaseElement",
106257
+ "module": "core/base-elements/open-close-base-element.js"
106258
+ }
106259
+ },
106260
+ {
106261
+ "kind": "method",
106262
+ "name": "dispatchBeforeCloseEvent",
106263
+ "privacy": "protected",
106264
+ "return": {
106265
+ "type": {
106266
+ "text": "boolean"
106267
+ }
106268
+ },
106269
+ "inheritedFrom": {
106270
+ "name": "SbbOpenCloseBaseElement",
106271
+ "module": "core/base-elements/open-close-base-element.js"
106272
+ }
106273
+ },
106274
+ {
106275
+ "kind": "method",
106276
+ "name": "dispatchCloseEvent",
106277
+ "privacy": "protected",
106278
+ "return": {
106279
+ "type": {
106280
+ "text": "boolean"
106281
+ }
106282
+ },
106283
+ "inheritedFrom": {
106284
+ "name": "SbbOpenCloseBaseElement",
106285
+ "module": "core/base-elements/open-close-base-element.js"
106286
+ }
106287
+ },
106288
+ {
106289
+ "kind": "field",
106290
+ "name": "_hydrationRequired",
106291
+ "type": {
106292
+ "text": "boolean"
106293
+ },
106294
+ "privacy": "private",
106295
+ "default": "!!this.shadowRoot",
106296
+ "inheritedFrom": {
106297
+ "name": "SbbElement",
106298
+ "module": "core/base-elements/element.js"
106299
+ }
106300
+ },
106301
+ {
106302
+ "kind": "field",
106303
+ "name": "_hydrationComplete",
106304
+ "privacy": "private",
106305
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
106306
+ "inheritedFrom": {
106307
+ "name": "SbbElement",
106308
+ "module": "core/base-elements/element.js"
106309
+ }
106310
+ },
106311
+ {
106312
+ "kind": "field",
106313
+ "name": "_resolveHydration",
106314
+ "type": {
106315
+ "text": "(hydrationRequired: boolean) => void"
106316
+ },
106317
+ "privacy": "private",
106318
+ "inheritedFrom": {
106319
+ "name": "SbbElement",
106320
+ "module": "core/base-elements/element.js"
106321
+ }
106322
+ },
106323
+ {
106324
+ "kind": "field",
106325
+ "name": "hydrationRequired",
106326
+ "type": {
106327
+ "text": "boolean"
106328
+ },
106329
+ "privacy": "protected",
106330
+ "description": "Returns whether hydration is required and not completed.",
106331
+ "readonly": true,
106332
+ "inheritedFrom": {
106333
+ "name": "SbbElement",
106334
+ "module": "core/base-elements/element.js"
106335
+ },
106336
+ "default": "!!this.shadowRoot"
106337
+ },
106338
+ {
106339
+ "kind": "method",
106340
+ "name": "toggleState",
106341
+ "privacy": "protected",
106342
+ "return": {
106343
+ "type": {
106344
+ "text": "void"
106345
+ }
106346
+ },
106347
+ "parameters": [
106348
+ {
106349
+ "name": "value",
106350
+ "type": {
106351
+ "text": "string"
106352
+ }
106353
+ },
106354
+ {
106355
+ "name": "force",
106356
+ "optional": true,
106357
+ "type": {
106358
+ "text": "boolean"
106359
+ }
106360
+ }
106361
+ ],
106362
+ "inheritedFrom": {
106363
+ "name": "SbbElement",
106364
+ "module": "core/base-elements/element.js"
106365
+ }
106366
+ },
106367
+ {
106368
+ "kind": "field",
106369
+ "name": "['_$sbbElement$']",
106370
+ "type": {
106371
+ "text": "boolean"
106372
+ },
106373
+ "privacy": "public",
106374
+ "static": true,
106375
+ "default": "true",
106376
+ "inheritedFrom": {
106377
+ "name": "SbbElement",
106378
+ "module": "core/base-elements/element.js"
106379
+ }
106380
+ },
106381
+ {
106382
+ "kind": "field",
106383
+ "name": "_controllers",
106384
+ "type": {
106385
+ "text": "Set<SbbReactiveController> | undefined"
106386
+ },
106387
+ "privacy": "private",
106388
+ "inheritedFrom": {
106389
+ "name": "SbbElement",
106390
+ "module": "core/base-elements/element.js"
106391
+ }
106392
+ }
106393
+ ],
106394
+ "attributes": [
106395
+ {
106396
+ "name": "trigger",
106397
+ "type": {
106398
+ "text": "HTMLElement | null"
106399
+ },
106400
+ "default": "null",
106401
+ "description": "The element that will trigger the menu overlay.\n\nFor attribute usage, provide an id reference.",
106402
+ "fieldName": "trigger"
106403
+ }
106404
+ ],
106405
+ "superclass": {
106406
+ "name": "SbbOpenCloseBaseElement",
106407
+ "module": "core/base-elements.js"
106408
+ },
106409
+ "tagName": "sbb-menu",
106410
+ "customElement": true,
106411
+ "events": [
106412
+ {
106413
+ "name": "beforeopen",
106414
+ "type": {
106415
+ "text": "Event"
106416
+ },
106417
+ "description": "Emits whenever the component starts the opening transition. Can be canceled.",
106418
+ "inheritedFrom": {
106419
+ "name": "SbbOpenCloseBaseElement",
106420
+ "module": "core/base-elements/open-close-base-element.js"
106421
+ }
106422
+ },
106423
+ {
106424
+ "name": "open",
106425
+ "type": {
106426
+ "text": "Event"
106607
106427
  },
106608
- "description": "Converts the linked list into an array of SbbMenuElement."
106428
+ "description": "Emits whenever the component is opened.",
106429
+ "inheritedFrom": {
106430
+ "name": "SbbOpenCloseBaseElement",
106431
+ "module": "core/base-elements/open-close-base-element.js"
106432
+ }
106609
106433
  },
106610
106434
  {
106611
- "kind": "method",
106612
- "name": "_parentMenu",
106613
- "privacy": "private",
106614
- "return": {
106615
- "type": {
106616
- "text": "SbbMenuElement | null"
106617
- }
106435
+ "name": "beforeclose",
106436
+ "type": {
106437
+ "text": "Event"
106438
+ },
106439
+ "description": "Emits whenever the component begins the closing transition. Can be canceled.",
106440
+ "inheritedFrom": {
106441
+ "name": "SbbOpenCloseBaseElement",
106442
+ "module": "core/base-elements/open-close-base-element.js"
106618
106443
  }
106619
106444
  },
106620
106445
  {
106621
- "kind": "method",
106622
- "name": "_mainMenu",
106623
- "privacy": "private",
106624
- "return": {
106625
- "type": {
106626
- "text": "SbbMenuElement"
106627
- }
106446
+ "name": "close",
106447
+ "type": {
106448
+ "text": "Event"
106628
106449
  },
106629
- "description": "The outermost menu."
106450
+ "description": "Emits whenever the component is closed.",
106451
+ "inheritedFrom": {
106452
+ "name": "SbbOpenCloseBaseElement",
106453
+ "module": "core/base-elements/open-close-base-element.js"
106454
+ }
106455
+ }
106456
+ ]
106457
+ }
106458
+ ],
106459
+ "exports": [
106460
+ {
106461
+ "kind": "js",
106462
+ "name": "SbbMenuElement",
106463
+ "declaration": {
106464
+ "name": "SbbMenuElement",
106465
+ "module": "menu/menu/menu.component.js"
106466
+ }
106467
+ }
106468
+ ]
106469
+ },
106470
+ {
106471
+ "kind": "javascript-module",
106472
+ "path": "menu/common/menu-action-common.js",
106473
+ "declarations": [
106474
+ {
106475
+ "kind": "class",
106476
+ "description": "",
106477
+ "name": "SbbMenuActionCommonElementMixinType",
106478
+ "mixins": [
106479
+ {
106480
+ "name": "SbbIconNameMixin",
106481
+ "module": "icon.js"
106630
106482
  },
106631
106483
  {
106632
- "kind": "method",
106633
- "name": "_isNested",
106634
- "privacy": "private",
106635
- "return": {
106636
- "type": {
106637
- "text": "boolean"
106638
- }
106484
+ "name": "SbbDisabledMixin",
106485
+ "module": "core/mixins.js"
106486
+ }
106487
+ ],
106488
+ "superclass": {
106489
+ "name": "SbbActionBaseElement",
106490
+ "module": "core/base-elements.js"
106491
+ },
106492
+ "attributes": [
106493
+ {
106494
+ "name": "icon-name",
106495
+ "type": {
106496
+ "text": "string"
106497
+ },
106498
+ "default": "''",
106499
+ "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.",
106500
+ "fieldName": "iconName",
106501
+ "inheritedFrom": {
106502
+ "name": "SbbIconNameMixin",
106503
+ "module": "icon/icon-name-mixin.js"
106639
106504
  }
106640
106505
  },
106641
106506
  {
106642
- "kind": "method",
106643
- "name": "_updateNestedInert",
106644
- "privacy": "private",
106645
- "return": {
106646
- "type": {
106647
- "text": "void"
106648
- }
106507
+ "name": "disabled",
106508
+ "description": "Whether the component is disabled.",
106509
+ "default": "false",
106510
+ "type": {
106511
+ "text": "boolean"
106512
+ },
106513
+ "fieldName": "disabled",
106514
+ "inheritedFrom": {
106515
+ "name": "SbbDisabledMixin",
106516
+ "module": "core/mixins/disabled-mixin.js"
106649
106517
  }
106650
- },
106518
+ }
106519
+ ],
106520
+ "members": [
106651
106521
  {
106652
- "kind": "method",
106653
- "name": "_handleMouseOver",
106654
- "privacy": "private",
106655
- "return": {
106656
- "type": {
106657
- "text": "void"
106658
- }
106522
+ "kind": "field",
106523
+ "name": "iconName",
106524
+ "type": {
106525
+ "text": "string"
106659
106526
  },
106660
- "parameters": [
106661
- {
106662
- "name": "event",
106663
- "type": {
106664
- "text": "MouseEvent"
106665
- }
106666
- }
106667
- ]
106527
+ "privacy": "public",
106528
+ "default": "''",
106529
+ "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.",
106530
+ "attribute": "icon-name",
106531
+ "inheritedFrom": {
106532
+ "name": "SbbIconNameMixin",
106533
+ "module": "icon/icon-name-mixin.js"
106534
+ }
106668
106535
  },
106669
106536
  {
106670
106537
  "kind": "method",
106671
- "name": "_onMenuAnimationEnd",
106672
- "privacy": "private",
106538
+ "name": "renderIconSlot",
106539
+ "privacy": "protected",
106673
106540
  "return": {
106674
106541
  "type": {
106675
- "text": "void"
106542
+ "text": "TemplateResult"
106676
106543
  }
106677
106544
  },
106678
106545
  "parameters": [
106679
106546
  {
106680
- "name": "event",
106547
+ "name": "classname",
106548
+ "optional": true,
106681
106549
  "type": {
106682
- "text": "AnimationEvent"
106550
+ "text": "string"
106683
106551
  }
106684
106552
  }
106685
- ]
106686
- },
106687
- {
106688
- "kind": "method",
106689
- "name": "_setMenuPosition",
106690
- "privacy": "private",
106691
- "return": {
106692
- "type": {
106693
- "text": "void"
106694
- }
106553
+ ],
106554
+ "inheritedFrom": {
106555
+ "name": "SbbIconNameMixin",
106556
+ "module": "icon/icon-name-mixin.js"
106695
106557
  }
106696
106558
  },
106697
106559
  {
106698
106560
  "kind": "method",
106699
- "name": "_syncNegative",
106700
- "privacy": "private",
106561
+ "name": "renderIconName",
106562
+ "privacy": "protected",
106701
106563
  "return": {
106702
106564
  "type": {
106703
- "text": "void"
106565
+ "text": "string"
106704
106566
  }
106567
+ },
106568
+ "inheritedFrom": {
106569
+ "name": "SbbIconNameMixin",
106570
+ "module": "icon/icon-name-mixin.js"
106705
106571
  }
106706
106572
  },
106707
106573
  {
106708
106574
  "kind": "method",
106709
- "name": "_isMobile",
106575
+ "name": "_renderIconName",
106710
106576
  "privacy": "private",
106711
106577
  "return": {
106712
106578
  "type": {
106713
- "text": "boolean"
106579
+ "text": "string"
106714
106580
  }
106715
- }
106716
- },
106717
- {
106718
- "kind": "field",
106719
- "name": "events",
106720
- "privacy": "public",
106721
- "static": true,
106722
- "readonly": true,
106723
- "default": "{ beforeopen: 'beforeopen', open: 'open', beforeclose: 'beforeclose', close: 'close', }",
106724
- "type": {
106725
- "text": "{\n beforeopen: 'beforeopen',\n open: 'open',\n beforeclose: 'beforeclose',\n close: 'close',\n }"
106726
106581
  },
106727
106582
  "inheritedFrom": {
106728
- "name": "SbbOpenCloseBaseElement",
106729
- "module": "core/base-elements/open-close-base-element.js"
106583
+ "name": "SbbIconNameMixin",
106584
+ "module": "icon/icon-name-mixin.js"
106730
106585
  }
106731
106586
  },
106732
106587
  {
106733
106588
  "kind": "field",
106734
- "name": "state",
106735
- "privacy": "protected",
106736
- "description": "The state of the component.",
106589
+ "name": "disabled",
106590
+ "privacy": "public",
106591
+ "description": "Whether the component is disabled.",
106592
+ "default": "false",
106737
106593
  "type": {
106738
- "text": "SbbOpenedClosedState"
106594
+ "text": "boolean"
106739
106595
  },
106740
- "default": "'closed'",
106596
+ "attribute": "disabled",
106597
+ "reflects": true,
106741
106598
  "inheritedFrom": {
106742
- "name": "SbbOpenCloseBaseElement",
106743
- "module": "core/base-elements/open-close-base-element.js"
106599
+ "name": "SbbDisabledMixin",
106600
+ "module": "core/mixins/disabled-mixin.js"
106744
106601
  }
106745
106602
  },
106746
106603
  {
106747
106604
  "kind": "field",
106748
- "name": "_state",
106749
- "type": {
106750
- "text": "SbbOpenedClosedState"
106751
- },
106605
+ "name": "#disabled",
106752
106606
  "privacy": "private",
106753
- "inheritedFrom": {
106754
- "name": "SbbOpenCloseBaseElement",
106755
- "module": "core/base-elements/open-close-base-element.js"
106756
- }
106757
- },
106758
- {
106759
- "kind": "field",
106760
- "name": "isOpen",
106761
106607
  "type": {
106762
106608
  "text": "boolean"
106763
106609
  },
106764
- "privacy": "public",
106765
- "description": "Whether the element is open.",
106766
- "readonly": true,
106610
+ "default": "false",
106767
106611
  "inheritedFrom": {
106768
- "name": "SbbOpenCloseBaseElement",
106769
- "module": "core/base-elements/open-close-base-element.js"
106612
+ "name": "SbbDisabledMixin",
106613
+ "module": "core/mixins/disabled-mixin.js"
106770
106614
  }
106771
106615
  },
106772
106616
  {
106773
106617
  "kind": "method",
106774
- "name": "dispatchBeforeOpenEvent",
106618
+ "name": "isDisabledExternally",
106775
106619
  "privacy": "protected",
106776
106620
  "return": {
106777
106621
  "type": {
106778
106622
  "text": "boolean"
106779
106623
  }
106780
106624
  },
106625
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
106781
106626
  "inheritedFrom": {
106782
- "name": "SbbOpenCloseBaseElement",
106783
- "module": "core/base-elements/open-close-base-element.js"
106627
+ "name": "SbbDisabledMixin",
106628
+ "module": "core/mixins/disabled-mixin.js"
106784
106629
  }
106785
106630
  },
106786
106631
  {
106787
- "kind": "method",
106788
- "name": "dispatchOpenEvent",
106632
+ "kind": "field",
106633
+ "name": "maybeDisabled",
106634
+ "type": {
106635
+ "text": "boolean | undefined"
106636
+ },
106789
106637
  "privacy": "protected",
106790
- "return": {
106791
- "type": {
106792
- "text": "boolean"
106793
- }
106638
+ "readonly": true,
106639
+ "inheritedFrom": {
106640
+ "name": "SbbActionBaseElement",
106641
+ "module": "core/base-elements/action-base-element.js"
106642
+ }
106643
+ },
106644
+ {
106645
+ "kind": "field",
106646
+ "name": "maybeDisabledInteractive",
106647
+ "type": {
106648
+ "text": "boolean | undefined"
106794
106649
  },
106650
+ "privacy": "protected",
106651
+ "readonly": true,
106795
106652
  "inheritedFrom": {
106796
- "name": "SbbOpenCloseBaseElement",
106797
- "module": "core/base-elements/open-close-base-element.js"
106653
+ "name": "SbbActionBaseElement",
106654
+ "module": "core/base-elements/action-base-element.js"
106798
106655
  }
106799
106656
  },
106800
106657
  {
106801
106658
  "kind": "method",
106802
- "name": "dispatchBeforeCloseEvent",
106659
+ "name": "setupBaseEventHandlers",
106803
106660
  "privacy": "protected",
106804
106661
  "return": {
106805
106662
  "type": {
106806
- "text": "boolean"
106663
+ "text": "void"
106807
106664
  }
106808
106665
  },
106809
106666
  "inheritedFrom": {
106810
- "name": "SbbOpenCloseBaseElement",
106811
- "module": "core/base-elements/open-close-base-element.js"
106667
+ "name": "SbbActionBaseElement",
106668
+ "module": "core/base-elements/action-base-element.js"
106812
106669
  }
106813
106670
  },
106814
106671
  {
106815
106672
  "kind": "method",
106816
- "name": "dispatchCloseEvent",
106673
+ "name": "renderTemplate",
106817
106674
  "privacy": "protected",
106818
106675
  "return": {
106819
106676
  "type": {
106820
- "text": "boolean"
106677
+ "text": "TemplateResult"
106821
106678
  }
106822
106679
  },
106680
+ "description": "Override this method to render the component template.",
106823
106681
  "inheritedFrom": {
106824
- "name": "SbbOpenCloseBaseElement",
106825
- "module": "core/base-elements/open-close-base-element.js"
106682
+ "name": "SbbActionBaseElement",
106683
+ "module": "core/base-elements/action-base-element.js"
106826
106684
  }
106827
106685
  },
106828
106686
  {
@@ -106918,6 +106776,20 @@
106918
106776
  "module": "core/base-elements/element.js"
106919
106777
  }
106920
106778
  },
106779
+ {
106780
+ "kind": "field",
106781
+ "name": "elementName",
106782
+ "type": {
106783
+ "text": "string"
106784
+ },
106785
+ "privacy": "public",
106786
+ "static": true,
106787
+ "readonly": true,
106788
+ "inheritedFrom": {
106789
+ "name": "SbbElement",
106790
+ "module": "core/base-elements/element.js"
106791
+ }
106792
+ },
106921
106793
  {
106922
106794
  "kind": "field",
106923
106795
  "name": "_controllers",
@@ -106930,67 +106802,187 @@
106930
106802
  "module": "core/base-elements/element.js"
106931
106803
  }
106932
106804
  }
106933
- ],
106934
- "attributes": [
106805
+ ]
106806
+ },
106807
+ {
106808
+ "kind": "mixin",
106809
+ "description": "",
106810
+ "name": "SbbMenuActionCommonElementMixin",
106811
+ "members": [
106935
106812
  {
106936
- "name": "trigger",
106813
+ "kind": "field",
106814
+ "name": "styles",
106937
106815
  "type": {
106938
- "text": "HTMLElement | null"
106816
+ "text": "CSSResultGroup"
106939
106817
  },
106940
- "default": "null",
106941
- "description": "The element that will trigger the menu overlay.\n\nFor attribute usage, provide an id reference.",
106942
- "fieldName": "trigger"
106943
- }
106944
- ],
106945
- "superclass": {
106946
- "name": "SbbOpenCloseBaseElement",
106947
- "module": "core/base-elements.js"
106948
- },
106949
- "tagName": "sbb-menu",
106950
- "customElement": true,
106951
- "events": [
106818
+ "privacy": "public",
106819
+ "static": true,
106820
+ "default": "[boxSizingStyles, unsafeCSS(style)]"
106821
+ },
106952
106822
  {
106953
- "name": "beforeopen",
106823
+ "kind": "method",
106824
+ "name": "renderTemplate",
106825
+ "privacy": "protected",
106826
+ "return": {
106827
+ "type": {
106828
+ "text": "TemplateResult"
106829
+ }
106830
+ }
106831
+ },
106832
+ {
106833
+ "kind": "field",
106834
+ "name": "iconName",
106954
106835
  "type": {
106955
- "text": "Event"
106836
+ "text": "string"
106956
106837
  },
106957
- "description": "Emits whenever the component starts the opening transition. Can be canceled.",
106838
+ "privacy": "public",
106839
+ "default": "''",
106840
+ "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.",
106841
+ "attribute": "icon-name",
106958
106842
  "inheritedFrom": {
106959
- "name": "SbbOpenCloseBaseElement",
106960
- "module": "core/base-elements/open-close-base-element.js"
106843
+ "name": "SbbIconNameMixin",
106844
+ "module": "icon/icon-name-mixin.js"
106961
106845
  }
106962
106846
  },
106963
106847
  {
106964
- "name": "open",
106848
+ "kind": "method",
106849
+ "name": "renderIconSlot",
106850
+ "privacy": "protected",
106851
+ "return": {
106852
+ "type": {
106853
+ "text": "TemplateResult"
106854
+ }
106855
+ },
106856
+ "parameters": [
106857
+ {
106858
+ "name": "classname",
106859
+ "optional": true,
106860
+ "type": {
106861
+ "text": "string"
106862
+ }
106863
+ }
106864
+ ],
106865
+ "inheritedFrom": {
106866
+ "name": "SbbIconNameMixin",
106867
+ "module": "icon/icon-name-mixin.js"
106868
+ }
106869
+ },
106870
+ {
106871
+ "kind": "method",
106872
+ "name": "renderIconName",
106873
+ "privacy": "protected",
106874
+ "return": {
106875
+ "type": {
106876
+ "text": "string"
106877
+ }
106878
+ },
106879
+ "inheritedFrom": {
106880
+ "name": "SbbIconNameMixin",
106881
+ "module": "icon/icon-name-mixin.js"
106882
+ }
106883
+ },
106884
+ {
106885
+ "kind": "method",
106886
+ "name": "_renderIconName",
106887
+ "privacy": "private",
106888
+ "return": {
106889
+ "type": {
106890
+ "text": "string"
106891
+ }
106892
+ },
106893
+ "inheritedFrom": {
106894
+ "name": "SbbIconNameMixin",
106895
+ "module": "icon/icon-name-mixin.js"
106896
+ }
106897
+ },
106898
+ {
106899
+ "kind": "field",
106900
+ "name": "disabled",
106901
+ "privacy": "public",
106902
+ "description": "Whether the component is disabled.",
106903
+ "default": "false",
106965
106904
  "type": {
106966
- "text": "Event"
106905
+ "text": "boolean"
106967
106906
  },
106968
- "description": "Emits whenever the component is opened.",
106907
+ "attribute": "disabled",
106908
+ "reflects": true,
106969
106909
  "inheritedFrom": {
106970
- "name": "SbbOpenCloseBaseElement",
106971
- "module": "core/base-elements/open-close-base-element.js"
106910
+ "name": "SbbDisabledMixin",
106911
+ "module": "core/mixins/disabled-mixin.js"
106972
106912
  }
106973
106913
  },
106974
106914
  {
106975
- "name": "beforeclose",
106915
+ "kind": "field",
106916
+ "name": "#disabled",
106917
+ "privacy": "private",
106976
106918
  "type": {
106977
- "text": "Event"
106919
+ "text": "boolean"
106978
106920
  },
106979
- "description": "Emits whenever the component begins the closing transition. Can be canceled.",
106921
+ "default": "false",
106980
106922
  "inheritedFrom": {
106981
- "name": "SbbOpenCloseBaseElement",
106982
- "module": "core/base-elements/open-close-base-element.js"
106923
+ "name": "SbbDisabledMixin",
106924
+ "module": "core/mixins/disabled-mixin.js"
106983
106925
  }
106984
106926
  },
106985
106927
  {
106986
- "name": "close",
106928
+ "kind": "method",
106929
+ "name": "isDisabledExternally",
106930
+ "privacy": "protected",
106931
+ "return": {
106932
+ "type": {
106933
+ "text": "boolean"
106934
+ }
106935
+ },
106936
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
106937
+ "inheritedFrom": {
106938
+ "name": "SbbDisabledMixin",
106939
+ "module": "core/mixins/disabled-mixin.js"
106940
+ }
106941
+ }
106942
+ ],
106943
+ "mixins": [
106944
+ {
106945
+ "name": "SbbIconNameMixin",
106946
+ "module": "icon.js"
106947
+ },
106948
+ {
106949
+ "name": "SbbDisabledMixin",
106950
+ "module": "core/mixins.js"
106951
+ }
106952
+ ],
106953
+ "parameters": [
106954
+ {
106955
+ "name": "superClass",
106987
106956
  "type": {
106988
- "text": "Event"
106957
+ "text": "T"
106958
+ }
106959
+ }
106960
+ ],
106961
+ "attributes": [
106962
+ {
106963
+ "name": "icon-name",
106964
+ "type": {
106965
+ "text": "string"
106989
106966
  },
106990
- "description": "Emits whenever the component is closed.",
106967
+ "default": "''",
106968
+ "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.",
106969
+ "fieldName": "iconName",
106991
106970
  "inheritedFrom": {
106992
- "name": "SbbOpenCloseBaseElement",
106993
- "module": "core/base-elements/open-close-base-element.js"
106971
+ "name": "SbbIconNameMixin",
106972
+ "module": "icon/icon-name-mixin.js"
106973
+ }
106974
+ },
106975
+ {
106976
+ "name": "disabled",
106977
+ "description": "Whether the component is disabled.",
106978
+ "default": "false",
106979
+ "type": {
106980
+ "text": "boolean"
106981
+ },
106982
+ "fieldName": "disabled",
106983
+ "inheritedFrom": {
106984
+ "name": "SbbDisabledMixin",
106985
+ "module": "core/mixins/disabled-mixin.js"
106994
106986
  }
106995
106987
  }
106996
106988
  ]
@@ -106999,10 +106991,18 @@
106999
106991
  "exports": [
107000
106992
  {
107001
106993
  "kind": "js",
107002
- "name": "SbbMenuElement",
106994
+ "name": "SbbMenuActionCommonElementMixinType",
107003
106995
  "declaration": {
107004
- "name": "SbbMenuElement",
107005
- "module": "menu/menu/menu.component.js"
106996
+ "name": "SbbMenuActionCommonElementMixinType",
106997
+ "module": "menu/common/menu-action-common.js"
106998
+ }
106999
+ },
107000
+ {
107001
+ "kind": "js",
107002
+ "name": "SbbMenuActionCommonElementMixin",
107003
+ "declaration": {
107004
+ "name": "SbbMenuActionCommonElementMixin",
107005
+ "module": "menu/common/menu-action-common.js"
107006
107006
  }
107007
107007
  }
107008
107008
  ]
@@ -132608,6 +132608,155 @@
132608
132608
  }
132609
132609
  ]
132610
132610
  },
132611
+ {
132612
+ "kind": "javascript-module",
132613
+ "path": "train/train-blocked-passage/train-blocked-passage.component.js",
132614
+ "declarations": [
132615
+ {
132616
+ "kind": "class",
132617
+ "description": "It visually displays a blocked passage between train wagons.",
132618
+ "name": "SbbTrainBlockedPassageElement",
132619
+ "members": [
132620
+ {
132621
+ "kind": "field",
132622
+ "name": "elementName",
132623
+ "type": {
132624
+ "text": "string"
132625
+ },
132626
+ "privacy": "public",
132627
+ "static": true,
132628
+ "readonly": true,
132629
+ "default": "'sbb-train-blocked-passage'",
132630
+ "inheritedFrom": {
132631
+ "name": "SbbElement",
132632
+ "module": "core/base-elements/element.js"
132633
+ }
132634
+ },
132635
+ {
132636
+ "kind": "field",
132637
+ "name": "_hydrationRequired",
132638
+ "type": {
132639
+ "text": "boolean"
132640
+ },
132641
+ "privacy": "private",
132642
+ "default": "!!this.shadowRoot",
132643
+ "inheritedFrom": {
132644
+ "name": "SbbElement",
132645
+ "module": "core/base-elements/element.js"
132646
+ }
132647
+ },
132648
+ {
132649
+ "kind": "field",
132650
+ "name": "_hydrationComplete",
132651
+ "privacy": "private",
132652
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
132653
+ "inheritedFrom": {
132654
+ "name": "SbbElement",
132655
+ "module": "core/base-elements/element.js"
132656
+ }
132657
+ },
132658
+ {
132659
+ "kind": "field",
132660
+ "name": "_resolveHydration",
132661
+ "type": {
132662
+ "text": "(hydrationRequired: boolean) => void"
132663
+ },
132664
+ "privacy": "private",
132665
+ "inheritedFrom": {
132666
+ "name": "SbbElement",
132667
+ "module": "core/base-elements/element.js"
132668
+ }
132669
+ },
132670
+ {
132671
+ "kind": "field",
132672
+ "name": "hydrationRequired",
132673
+ "type": {
132674
+ "text": "boolean"
132675
+ },
132676
+ "privacy": "protected",
132677
+ "description": "Returns whether hydration is required and not completed.",
132678
+ "readonly": true,
132679
+ "inheritedFrom": {
132680
+ "name": "SbbElement",
132681
+ "module": "core/base-elements/element.js"
132682
+ },
132683
+ "default": "!!this.shadowRoot"
132684
+ },
132685
+ {
132686
+ "kind": "method",
132687
+ "name": "toggleState",
132688
+ "privacy": "protected",
132689
+ "return": {
132690
+ "type": {
132691
+ "text": "void"
132692
+ }
132693
+ },
132694
+ "parameters": [
132695
+ {
132696
+ "name": "value",
132697
+ "type": {
132698
+ "text": "string"
132699
+ }
132700
+ },
132701
+ {
132702
+ "name": "force",
132703
+ "optional": true,
132704
+ "type": {
132705
+ "text": "boolean"
132706
+ }
132707
+ }
132708
+ ],
132709
+ "inheritedFrom": {
132710
+ "name": "SbbElement",
132711
+ "module": "core/base-elements/element.js"
132712
+ }
132713
+ },
132714
+ {
132715
+ "kind": "field",
132716
+ "name": "['_$sbbElement$']",
132717
+ "type": {
132718
+ "text": "boolean"
132719
+ },
132720
+ "privacy": "public",
132721
+ "static": true,
132722
+ "default": "true",
132723
+ "inheritedFrom": {
132724
+ "name": "SbbElement",
132725
+ "module": "core/base-elements/element.js"
132726
+ }
132727
+ },
132728
+ {
132729
+ "kind": "field",
132730
+ "name": "_controllers",
132731
+ "type": {
132732
+ "text": "Set<SbbReactiveController> | undefined"
132733
+ },
132734
+ "privacy": "private",
132735
+ "inheritedFrom": {
132736
+ "name": "SbbElement",
132737
+ "module": "core/base-elements/element.js"
132738
+ }
132739
+ }
132740
+ ],
132741
+ "superclass": {
132742
+ "name": "SbbElement",
132743
+ "module": "core/base-elements.js"
132744
+ },
132745
+ "tagName": "sbb-train-blocked-passage",
132746
+ "customElement": true
132747
+ }
132748
+ ],
132749
+ "exports": [
132750
+ {
132751
+ "kind": "js",
132752
+ "name": "SbbTrainBlockedPassageElement",
132753
+ "declaration": {
132754
+ "name": "SbbTrainBlockedPassageElement",
132755
+ "module": "train/train-blocked-passage/train-blocked-passage.component.js"
132756
+ }
132757
+ }
132758
+ ]
132759
+ },
132611
132760
  {
132612
132761
  "kind": "javascript-module",
132613
132762
  "path": "train/train-formation/train-formation.component.js",
@@ -132940,155 +133089,6 @@
132940
133089
  }
132941
133090
  ]
132942
133091
  },
132943
- {
132944
- "kind": "javascript-module",
132945
- "path": "train/train-blocked-passage/train-blocked-passage.component.js",
132946
- "declarations": [
132947
- {
132948
- "kind": "class",
132949
- "description": "It visually displays a blocked passage between train wagons.",
132950
- "name": "SbbTrainBlockedPassageElement",
132951
- "members": [
132952
- {
132953
- "kind": "field",
132954
- "name": "elementName",
132955
- "type": {
132956
- "text": "string"
132957
- },
132958
- "privacy": "public",
132959
- "static": true,
132960
- "readonly": true,
132961
- "default": "'sbb-train-blocked-passage'",
132962
- "inheritedFrom": {
132963
- "name": "SbbElement",
132964
- "module": "core/base-elements/element.js"
132965
- }
132966
- },
132967
- {
132968
- "kind": "field",
132969
- "name": "_hydrationRequired",
132970
- "type": {
132971
- "text": "boolean"
132972
- },
132973
- "privacy": "private",
132974
- "default": "!!this.shadowRoot",
132975
- "inheritedFrom": {
132976
- "name": "SbbElement",
132977
- "module": "core/base-elements/element.js"
132978
- }
132979
- },
132980
- {
132981
- "kind": "field",
132982
- "name": "_hydrationComplete",
132983
- "privacy": "private",
132984
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
132985
- "inheritedFrom": {
132986
- "name": "SbbElement",
132987
- "module": "core/base-elements/element.js"
132988
- }
132989
- },
132990
- {
132991
- "kind": "field",
132992
- "name": "_resolveHydration",
132993
- "type": {
132994
- "text": "(hydrationRequired: boolean) => void"
132995
- },
132996
- "privacy": "private",
132997
- "inheritedFrom": {
132998
- "name": "SbbElement",
132999
- "module": "core/base-elements/element.js"
133000
- }
133001
- },
133002
- {
133003
- "kind": "field",
133004
- "name": "hydrationRequired",
133005
- "type": {
133006
- "text": "boolean"
133007
- },
133008
- "privacy": "protected",
133009
- "description": "Returns whether hydration is required and not completed.",
133010
- "readonly": true,
133011
- "inheritedFrom": {
133012
- "name": "SbbElement",
133013
- "module": "core/base-elements/element.js"
133014
- },
133015
- "default": "!!this.shadowRoot"
133016
- },
133017
- {
133018
- "kind": "method",
133019
- "name": "toggleState",
133020
- "privacy": "protected",
133021
- "return": {
133022
- "type": {
133023
- "text": "void"
133024
- }
133025
- },
133026
- "parameters": [
133027
- {
133028
- "name": "value",
133029
- "type": {
133030
- "text": "string"
133031
- }
133032
- },
133033
- {
133034
- "name": "force",
133035
- "optional": true,
133036
- "type": {
133037
- "text": "boolean"
133038
- }
133039
- }
133040
- ],
133041
- "inheritedFrom": {
133042
- "name": "SbbElement",
133043
- "module": "core/base-elements/element.js"
133044
- }
133045
- },
133046
- {
133047
- "kind": "field",
133048
- "name": "['_$sbbElement$']",
133049
- "type": {
133050
- "text": "boolean"
133051
- },
133052
- "privacy": "public",
133053
- "static": true,
133054
- "default": "true",
133055
- "inheritedFrom": {
133056
- "name": "SbbElement",
133057
- "module": "core/base-elements/element.js"
133058
- }
133059
- },
133060
- {
133061
- "kind": "field",
133062
- "name": "_controllers",
133063
- "type": {
133064
- "text": "Set<SbbReactiveController> | undefined"
133065
- },
133066
- "privacy": "private",
133067
- "inheritedFrom": {
133068
- "name": "SbbElement",
133069
- "module": "core/base-elements/element.js"
133070
- }
133071
- }
133072
- ],
133073
- "superclass": {
133074
- "name": "SbbElement",
133075
- "module": "core/base-elements.js"
133076
- },
133077
- "tagName": "sbb-train-blocked-passage",
133078
- "customElement": true
133079
- }
133080
- ],
133081
- "exports": [
133082
- {
133083
- "kind": "js",
133084
- "name": "SbbTrainBlockedPassageElement",
133085
- "declaration": {
133086
- "name": "SbbTrainBlockedPassageElement",
133087
- "module": "train/train-blocked-passage/train-blocked-passage.component.js"
133088
- }
133089
- }
133090
- ]
133091
- },
133092
133092
  {
133093
133093
  "kind": "javascript-module",
133094
133094
  "path": "train/train-wagon/train-wagon.component.js",