@sbb-esta/lyne-elements-dev 5.0.0-next-dev.1776258948 → 5.0.0-next-dev.1776264581

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.
@@ -4801,9 +4801,9 @@
4801
4801
  },
4802
4802
  {
4803
4803
  "kind": "field",
4804
- "name": "_originResizeObserver",
4804
+ "name": "_resizeObserver",
4805
4805
  "privacy": "private",
4806
- "default": "new ResizeController(this, { target: null, skipInitial: true, callback: () => { if (this.state === 'opened') { this._setOverlayPosition(); } }, })"
4806
+ "default": "new ResizeController(this, { target: null, skipInitial: true, // This is an IIFE, because we need to keep track of the timeout state // for debouncing the resize callbacks. callback: (() => { let timeoutId: ReturnType<typeof setTimeout>; return () => { clearTimeout(timeoutId); timeoutId = setTimeout(() => this._setOverlayPosition(), 10); }; })(), })"
4807
4807
  },
4808
4808
  {
4809
4809
  "kind": "field",
@@ -4867,6 +4867,14 @@
4867
4867
  "privacy": "private",
4868
4868
  "default": "0"
4869
4869
  },
4870
+ {
4871
+ "kind": "field",
4872
+ "name": "_previousElements",
4873
+ "type": {
4874
+ "text": "Element[] | undefined"
4875
+ },
4876
+ "privacy": "private"
4877
+ },
4870
4878
  {
4871
4879
  "kind": "field",
4872
4880
  "name": "_lastUserInput",
@@ -6333,9 +6341,9 @@
6333
6341
  },
6334
6342
  {
6335
6343
  "kind": "field",
6336
- "name": "_originResizeObserver",
6344
+ "name": "_resizeObserver",
6337
6345
  "privacy": "private",
6338
- "default": "new ResizeController(this, { target: null, skipInitial: true, callback: () => { if (this.state === 'opened') { this._setOverlayPosition(); } }, })",
6346
+ "default": "new ResizeController(this, { target: null, skipInitial: true, // This is an IIFE, because we need to keep track of the timeout state // for debouncing the resize callbacks. callback: (() => { let timeoutId: ReturnType<typeof setTimeout>; return () => { clearTimeout(timeoutId); timeoutId = setTimeout(() => this._setOverlayPosition(), 10); }; })(), })",
6339
6347
  "inheritedFrom": {
6340
6348
  "name": "SbbAutocompleteBaseElement",
6341
6349
  "module": "autocomplete/autocomplete-base-element.js"
@@ -6435,6 +6443,18 @@
6435
6443
  "module": "autocomplete/autocomplete-base-element.js"
6436
6444
  }
6437
6445
  },
6446
+ {
6447
+ "kind": "field",
6448
+ "name": "_previousElements",
6449
+ "type": {
6450
+ "text": "Element[] | undefined"
6451
+ },
6452
+ "privacy": "private",
6453
+ "inheritedFrom": {
6454
+ "name": "SbbAutocompleteBaseElement",
6455
+ "module": "autocomplete/autocomplete-base-element.js"
6456
+ }
6457
+ },
6438
6458
  {
6439
6459
  "kind": "field",
6440
6460
  "name": "_lastUserInput",
@@ -117185,6 +117205,315 @@
117185
117205
  }
117186
117206
  ]
117187
117207
  },
117208
+ {
117209
+ "kind": "javascript-module",
117210
+ "path": "icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js",
117211
+ "declarations": [
117212
+ {
117213
+ "kind": "class",
117214
+ "description": "Container for the icon sidebar content. Intended to be placed inside an `sbb-icon-sidebar-container` element.",
117215
+ "name": "SbbIconSidebarContentElement",
117216
+ "slots": [
117217
+ {
117218
+ "description": "Use the unnamed slot to add any content elements.",
117219
+ "name": ""
117220
+ }
117221
+ ],
117222
+ "members": [
117223
+ {
117224
+ "kind": "field",
117225
+ "name": "elementName",
117226
+ "type": {
117227
+ "text": "string"
117228
+ },
117229
+ "privacy": "public",
117230
+ "static": true,
117231
+ "readonly": true,
117232
+ "default": "'sbb-icon-sidebar-content'",
117233
+ "inheritedFrom": {
117234
+ "name": "SbbElement",
117235
+ "module": "core/base-elements/element.js"
117236
+ }
117237
+ },
117238
+ {
117239
+ "kind": "field",
117240
+ "name": "['_$sbbElement$']",
117241
+ "type": {
117242
+ "text": "boolean"
117243
+ },
117244
+ "privacy": "public",
117245
+ "static": true,
117246
+ "default": "true",
117247
+ "inheritedFrom": {
117248
+ "name": "SbbElement",
117249
+ "module": "core/base-elements/element.js"
117250
+ }
117251
+ },
117252
+ {
117253
+ "kind": "field",
117254
+ "name": "elementDependencies",
117255
+ "type": {
117256
+ "text": "SbbElementType[] | undefined"
117257
+ },
117258
+ "privacy": "public",
117259
+ "static": true,
117260
+ "inheritedFrom": {
117261
+ "name": "SbbElement",
117262
+ "module": "core/base-elements/element.js"
117263
+ }
117264
+ },
117265
+ {
117266
+ "kind": "field",
117267
+ "name": "role",
117268
+ "type": {
117269
+ "text": "ElementInternals['role'] | undefined"
117270
+ },
117271
+ "privacy": "public",
117272
+ "static": true,
117273
+ "inheritedFrom": {
117274
+ "name": "SbbElement",
117275
+ "module": "core/base-elements/element.js"
117276
+ }
117277
+ },
117278
+ {
117279
+ "kind": "field",
117280
+ "name": "_controllers",
117281
+ "type": {
117282
+ "text": "Set<SbbReactiveController> | undefined"
117283
+ },
117284
+ "privacy": "private",
117285
+ "inheritedFrom": {
117286
+ "name": "SbbElement",
117287
+ "module": "core/base-elements/element.js"
117288
+ }
117289
+ },
117290
+ {
117291
+ "kind": "field",
117292
+ "name": "_hydrationRequired",
117293
+ "type": {
117294
+ "text": "boolean"
117295
+ },
117296
+ "privacy": "private",
117297
+ "default": "!!this.shadowRoot",
117298
+ "inheritedFrom": {
117299
+ "name": "SbbElement",
117300
+ "module": "core/base-elements/element.js"
117301
+ }
117302
+ },
117303
+ {
117304
+ "kind": "field",
117305
+ "name": "_hydrationComplete",
117306
+ "privacy": "private",
117307
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
117308
+ "inheritedFrom": {
117309
+ "name": "SbbElement",
117310
+ "module": "core/base-elements/element.js"
117311
+ }
117312
+ },
117313
+ {
117314
+ "kind": "field",
117315
+ "name": "_resolveHydration",
117316
+ "type": {
117317
+ "text": "(hydrationRequired: boolean) => void"
117318
+ },
117319
+ "privacy": "private",
117320
+ "inheritedFrom": {
117321
+ "name": "SbbElement",
117322
+ "module": "core/base-elements/element.js"
117323
+ }
117324
+ },
117325
+ {
117326
+ "kind": "field",
117327
+ "name": "_textObserver",
117328
+ "type": {
117329
+ "text": "MutationObserver | undefined"
117330
+ },
117331
+ "privacy": "private",
117332
+ "inheritedFrom": {
117333
+ "name": "SbbElement",
117334
+ "module": "core/base-elements/element.js"
117335
+ }
117336
+ },
117337
+ {
117338
+ "kind": "field",
117339
+ "name": "hydrationRequired",
117340
+ "type": {
117341
+ "text": "boolean"
117342
+ },
117343
+ "privacy": "protected",
117344
+ "description": "Returns whether hydration is required and not completed.",
117345
+ "readonly": true,
117346
+ "inheritedFrom": {
117347
+ "name": "SbbElement",
117348
+ "module": "core/base-elements/element.js"
117349
+ },
117350
+ "default": "!!this.shadowRoot"
117351
+ },
117352
+ {
117353
+ "kind": "method",
117354
+ "name": "toggleState",
117355
+ "privacy": "protected",
117356
+ "return": {
117357
+ "type": {
117358
+ "text": "void"
117359
+ }
117360
+ },
117361
+ "parameters": [
117362
+ {
117363
+ "name": "value",
117364
+ "type": {
117365
+ "text": "string"
117366
+ }
117367
+ },
117368
+ {
117369
+ "name": "force",
117370
+ "optional": true,
117371
+ "type": {
117372
+ "text": "boolean"
117373
+ }
117374
+ }
117375
+ ],
117376
+ "inheritedFrom": {
117377
+ "name": "SbbElement",
117378
+ "module": "core/base-elements/element.js"
117379
+ }
117380
+ },
117381
+ {
117382
+ "kind": "method",
117383
+ "name": "_slotchangeHandler",
117384
+ "privacy": "private",
117385
+ "return": {
117386
+ "type": {
117387
+ "text": "void"
117388
+ }
117389
+ },
117390
+ "parameters": [
117391
+ {
117392
+ "name": "event",
117393
+ "type": {
117394
+ "text": "Event"
117395
+ }
117396
+ },
117397
+ {
117398
+ "name": "slot",
117399
+ "type": {
117400
+ "text": "HTMLSlotElement"
117401
+ }
117402
+ }
117403
+ ],
117404
+ "inheritedFrom": {
117405
+ "name": "SbbElement",
117406
+ "module": "core/base-elements/element.js"
117407
+ }
117408
+ },
117409
+ {
117410
+ "kind": "method",
117411
+ "name": "_handleSlotChangeForSlottedState",
117412
+ "privacy": "private",
117413
+ "return": {
117414
+ "type": {
117415
+ "text": "void"
117416
+ }
117417
+ },
117418
+ "parameters": [
117419
+ {
117420
+ "name": "slot",
117421
+ "type": {
117422
+ "text": "HTMLSlotElement"
117423
+ }
117424
+ }
117425
+ ],
117426
+ "inheritedFrom": {
117427
+ "name": "SbbElement",
117428
+ "module": "core/base-elements/element.js"
117429
+ }
117430
+ },
117431
+ {
117432
+ "kind": "method",
117433
+ "name": "_updateSlottedState",
117434
+ "privacy": "private",
117435
+ "return": {
117436
+ "type": {
117437
+ "text": "void"
117438
+ }
117439
+ },
117440
+ "parameters": [
117441
+ {
117442
+ "name": "slot",
117443
+ "type": {
117444
+ "text": "HTMLSlotElement"
117445
+ }
117446
+ }
117447
+ ],
117448
+ "inheritedFrom": {
117449
+ "name": "SbbElement",
117450
+ "module": "core/base-elements/element.js"
117451
+ }
117452
+ },
117453
+ {
117454
+ "kind": "method",
117455
+ "name": "_observeTextNodesInSlot",
117456
+ "privacy": "private",
117457
+ "return": {
117458
+ "type": {
117459
+ "text": "void"
117460
+ }
117461
+ },
117462
+ "parameters": [
117463
+ {
117464
+ "name": "slot",
117465
+ "type": {
117466
+ "text": "HTMLSlotElement"
117467
+ }
117468
+ }
117469
+ ],
117470
+ "inheritedFrom": {
117471
+ "name": "SbbElement",
117472
+ "module": "core/base-elements/element.js"
117473
+ }
117474
+ },
117475
+ {
117476
+ "kind": "method",
117477
+ "name": "_hasSlottedContent",
117478
+ "privacy": "private",
117479
+ "return": {
117480
+ "type": {
117481
+ "text": "boolean"
117482
+ }
117483
+ },
117484
+ "parameters": [
117485
+ {
117486
+ "name": "slot",
117487
+ "type": {
117488
+ "text": "HTMLSlotElement"
117489
+ }
117490
+ }
117491
+ ],
117492
+ "inheritedFrom": {
117493
+ "name": "SbbElement",
117494
+ "module": "core/base-elements/element.js"
117495
+ }
117496
+ }
117497
+ ],
117498
+ "superclass": {
117499
+ "name": "SbbElement",
117500
+ "module": "core.js"
117501
+ },
117502
+ "tagName": "sbb-icon-sidebar-content",
117503
+ "customElement": true
117504
+ }
117505
+ ],
117506
+ "exports": [
117507
+ {
117508
+ "kind": "js",
117509
+ "name": "SbbIconSidebarContentElement",
117510
+ "declaration": {
117511
+ "name": "SbbIconSidebarContentElement",
117512
+ "module": "icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js"
117513
+ }
117514
+ }
117515
+ ]
117516
+ },
117188
117517
  {
117189
117518
  "kind": "javascript-module",
117190
117519
  "path": "icon-sidebar/icon-sidebar-container/icon-sidebar-container.component.js",
@@ -117524,315 +117853,6 @@
117524
117853
  }
117525
117854
  ]
117526
117855
  },
117527
- {
117528
- "kind": "javascript-module",
117529
- "path": "icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js",
117530
- "declarations": [
117531
- {
117532
- "kind": "class",
117533
- "description": "Container for the icon sidebar content. Intended to be placed inside an `sbb-icon-sidebar-container` element.",
117534
- "name": "SbbIconSidebarContentElement",
117535
- "slots": [
117536
- {
117537
- "description": "Use the unnamed slot to add any content elements.",
117538
- "name": ""
117539
- }
117540
- ],
117541
- "members": [
117542
- {
117543
- "kind": "field",
117544
- "name": "elementName",
117545
- "type": {
117546
- "text": "string"
117547
- },
117548
- "privacy": "public",
117549
- "static": true,
117550
- "readonly": true,
117551
- "default": "'sbb-icon-sidebar-content'",
117552
- "inheritedFrom": {
117553
- "name": "SbbElement",
117554
- "module": "core/base-elements/element.js"
117555
- }
117556
- },
117557
- {
117558
- "kind": "field",
117559
- "name": "['_$sbbElement$']",
117560
- "type": {
117561
- "text": "boolean"
117562
- },
117563
- "privacy": "public",
117564
- "static": true,
117565
- "default": "true",
117566
- "inheritedFrom": {
117567
- "name": "SbbElement",
117568
- "module": "core/base-elements/element.js"
117569
- }
117570
- },
117571
- {
117572
- "kind": "field",
117573
- "name": "elementDependencies",
117574
- "type": {
117575
- "text": "SbbElementType[] | undefined"
117576
- },
117577
- "privacy": "public",
117578
- "static": true,
117579
- "inheritedFrom": {
117580
- "name": "SbbElement",
117581
- "module": "core/base-elements/element.js"
117582
- }
117583
- },
117584
- {
117585
- "kind": "field",
117586
- "name": "role",
117587
- "type": {
117588
- "text": "ElementInternals['role'] | undefined"
117589
- },
117590
- "privacy": "public",
117591
- "static": true,
117592
- "inheritedFrom": {
117593
- "name": "SbbElement",
117594
- "module": "core/base-elements/element.js"
117595
- }
117596
- },
117597
- {
117598
- "kind": "field",
117599
- "name": "_controllers",
117600
- "type": {
117601
- "text": "Set<SbbReactiveController> | undefined"
117602
- },
117603
- "privacy": "private",
117604
- "inheritedFrom": {
117605
- "name": "SbbElement",
117606
- "module": "core/base-elements/element.js"
117607
- }
117608
- },
117609
- {
117610
- "kind": "field",
117611
- "name": "_hydrationRequired",
117612
- "type": {
117613
- "text": "boolean"
117614
- },
117615
- "privacy": "private",
117616
- "default": "!!this.shadowRoot",
117617
- "inheritedFrom": {
117618
- "name": "SbbElement",
117619
- "module": "core/base-elements/element.js"
117620
- }
117621
- },
117622
- {
117623
- "kind": "field",
117624
- "name": "_hydrationComplete",
117625
- "privacy": "private",
117626
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
117627
- "inheritedFrom": {
117628
- "name": "SbbElement",
117629
- "module": "core/base-elements/element.js"
117630
- }
117631
- },
117632
- {
117633
- "kind": "field",
117634
- "name": "_resolveHydration",
117635
- "type": {
117636
- "text": "(hydrationRequired: boolean) => void"
117637
- },
117638
- "privacy": "private",
117639
- "inheritedFrom": {
117640
- "name": "SbbElement",
117641
- "module": "core/base-elements/element.js"
117642
- }
117643
- },
117644
- {
117645
- "kind": "field",
117646
- "name": "_textObserver",
117647
- "type": {
117648
- "text": "MutationObserver | undefined"
117649
- },
117650
- "privacy": "private",
117651
- "inheritedFrom": {
117652
- "name": "SbbElement",
117653
- "module": "core/base-elements/element.js"
117654
- }
117655
- },
117656
- {
117657
- "kind": "field",
117658
- "name": "hydrationRequired",
117659
- "type": {
117660
- "text": "boolean"
117661
- },
117662
- "privacy": "protected",
117663
- "description": "Returns whether hydration is required and not completed.",
117664
- "readonly": true,
117665
- "inheritedFrom": {
117666
- "name": "SbbElement",
117667
- "module": "core/base-elements/element.js"
117668
- },
117669
- "default": "!!this.shadowRoot"
117670
- },
117671
- {
117672
- "kind": "method",
117673
- "name": "toggleState",
117674
- "privacy": "protected",
117675
- "return": {
117676
- "type": {
117677
- "text": "void"
117678
- }
117679
- },
117680
- "parameters": [
117681
- {
117682
- "name": "value",
117683
- "type": {
117684
- "text": "string"
117685
- }
117686
- },
117687
- {
117688
- "name": "force",
117689
- "optional": true,
117690
- "type": {
117691
- "text": "boolean"
117692
- }
117693
- }
117694
- ],
117695
- "inheritedFrom": {
117696
- "name": "SbbElement",
117697
- "module": "core/base-elements/element.js"
117698
- }
117699
- },
117700
- {
117701
- "kind": "method",
117702
- "name": "_slotchangeHandler",
117703
- "privacy": "private",
117704
- "return": {
117705
- "type": {
117706
- "text": "void"
117707
- }
117708
- },
117709
- "parameters": [
117710
- {
117711
- "name": "event",
117712
- "type": {
117713
- "text": "Event"
117714
- }
117715
- },
117716
- {
117717
- "name": "slot",
117718
- "type": {
117719
- "text": "HTMLSlotElement"
117720
- }
117721
- }
117722
- ],
117723
- "inheritedFrom": {
117724
- "name": "SbbElement",
117725
- "module": "core/base-elements/element.js"
117726
- }
117727
- },
117728
- {
117729
- "kind": "method",
117730
- "name": "_handleSlotChangeForSlottedState",
117731
- "privacy": "private",
117732
- "return": {
117733
- "type": {
117734
- "text": "void"
117735
- }
117736
- },
117737
- "parameters": [
117738
- {
117739
- "name": "slot",
117740
- "type": {
117741
- "text": "HTMLSlotElement"
117742
- }
117743
- }
117744
- ],
117745
- "inheritedFrom": {
117746
- "name": "SbbElement",
117747
- "module": "core/base-elements/element.js"
117748
- }
117749
- },
117750
- {
117751
- "kind": "method",
117752
- "name": "_updateSlottedState",
117753
- "privacy": "private",
117754
- "return": {
117755
- "type": {
117756
- "text": "void"
117757
- }
117758
- },
117759
- "parameters": [
117760
- {
117761
- "name": "slot",
117762
- "type": {
117763
- "text": "HTMLSlotElement"
117764
- }
117765
- }
117766
- ],
117767
- "inheritedFrom": {
117768
- "name": "SbbElement",
117769
- "module": "core/base-elements/element.js"
117770
- }
117771
- },
117772
- {
117773
- "kind": "method",
117774
- "name": "_observeTextNodesInSlot",
117775
- "privacy": "private",
117776
- "return": {
117777
- "type": {
117778
- "text": "void"
117779
- }
117780
- },
117781
- "parameters": [
117782
- {
117783
- "name": "slot",
117784
- "type": {
117785
- "text": "HTMLSlotElement"
117786
- }
117787
- }
117788
- ],
117789
- "inheritedFrom": {
117790
- "name": "SbbElement",
117791
- "module": "core/base-elements/element.js"
117792
- }
117793
- },
117794
- {
117795
- "kind": "method",
117796
- "name": "_hasSlottedContent",
117797
- "privacy": "private",
117798
- "return": {
117799
- "type": {
117800
- "text": "boolean"
117801
- }
117802
- },
117803
- "parameters": [
117804
- {
117805
- "name": "slot",
117806
- "type": {
117807
- "text": "HTMLSlotElement"
117808
- }
117809
- }
117810
- ],
117811
- "inheritedFrom": {
117812
- "name": "SbbElement",
117813
- "module": "core/base-elements/element.js"
117814
- }
117815
- }
117816
- ],
117817
- "superclass": {
117818
- "name": "SbbElement",
117819
- "module": "core.js"
117820
- },
117821
- "tagName": "sbb-icon-sidebar-content",
117822
- "customElement": true
117823
- }
117824
- ],
117825
- "exports": [
117826
- {
117827
- "kind": "js",
117828
- "name": "SbbIconSidebarContentElement",
117829
- "declaration": {
117830
- "name": "SbbIconSidebarContentElement",
117831
- "module": "icon-sidebar/icon-sidebar-content/icon-sidebar-content.component.js"
117832
- }
117833
- }
117834
- ]
117835
- },
117836
117856
  {
117837
117857
  "kind": "javascript-module",
117838
117858
  "path": "icon-sidebar/icon-sidebar-link/icon-sidebar-link.component.js",
@@ -144180,6 +144200,372 @@
144180
144200
  }
144181
144201
  ]
144182
144202
  },
144203
+ {
144204
+ "kind": "javascript-module",
144205
+ "path": "sidebar/sidebar-container/sidebar-container.component.js",
144206
+ "declarations": [
144207
+ {
144208
+ "kind": "class",
144209
+ "description": "This is the parent component to one or two `<sbb-sidebar>`s that validates the state internally\nand coordinates the backdrop and content styling.",
144210
+ "name": "SbbSidebarContainerElement",
144211
+ "slots": [
144212
+ {
144213
+ "description": "Use the unnamed slot to add `sbb-sidebar` and `sbb-sidebar-content` elements.",
144214
+ "name": ""
144215
+ }
144216
+ ],
144217
+ "members": [
144218
+ {
144219
+ "kind": "field",
144220
+ "name": "elementName",
144221
+ "type": {
144222
+ "text": "string"
144223
+ },
144224
+ "privacy": "public",
144225
+ "static": true,
144226
+ "readonly": true,
144227
+ "default": "'sbb-sidebar-container'",
144228
+ "inheritedFrom": {
144229
+ "name": "SbbElement",
144230
+ "module": "core/base-elements/element.js"
144231
+ }
144232
+ },
144233
+ {
144234
+ "kind": "field",
144235
+ "name": "sidebars",
144236
+ "type": {
144237
+ "text": "SbbSidebarElement[]"
144238
+ },
144239
+ "privacy": "public",
144240
+ "description": "The sidebar children.",
144241
+ "readonly": true
144242
+ },
144243
+ {
144244
+ "kind": "field",
144245
+ "name": "start",
144246
+ "type": {
144247
+ "text": "SbbSidebarElement | null"
144248
+ },
144249
+ "privacy": "public",
144250
+ "description": "The sidebar child with the `start` position.",
144251
+ "readonly": true
144252
+ },
144253
+ {
144254
+ "kind": "field",
144255
+ "name": "end",
144256
+ "type": {
144257
+ "text": "SbbSidebarElement | null"
144258
+ },
144259
+ "privacy": "public",
144260
+ "description": "The sidebar child with the `end` position.",
144261
+ "readonly": true
144262
+ },
144263
+ {
144264
+ "kind": "field",
144265
+ "name": "_forcedClosedSidebars",
144266
+ "privacy": "private",
144267
+ "default": "new WeakSet<SbbSidebarElement>()"
144268
+ },
144269
+ {
144270
+ "kind": "method",
144271
+ "name": "_handleWidthChange",
144272
+ "privacy": "private",
144273
+ "return": {
144274
+ "type": {
144275
+ "text": "void"
144276
+ }
144277
+ }
144278
+ },
144279
+ {
144280
+ "kind": "method",
144281
+ "name": "_calculateSpaceState",
144282
+ "privacy": "private",
144283
+ "return": {
144284
+ "type": {
144285
+ "text": "Promise<void>"
144286
+ }
144287
+ },
144288
+ "description": "Closes and opens sidebars depending on available width\nof the container and its parent container."
144289
+ },
144290
+ {
144291
+ "kind": "field",
144292
+ "name": "['_$sbbElement$']",
144293
+ "type": {
144294
+ "text": "boolean"
144295
+ },
144296
+ "privacy": "public",
144297
+ "static": true,
144298
+ "default": "true",
144299
+ "inheritedFrom": {
144300
+ "name": "SbbElement",
144301
+ "module": "core/base-elements/element.js"
144302
+ }
144303
+ },
144304
+ {
144305
+ "kind": "field",
144306
+ "name": "elementDependencies",
144307
+ "type": {
144308
+ "text": "SbbElementType[] | undefined"
144309
+ },
144310
+ "privacy": "public",
144311
+ "static": true,
144312
+ "inheritedFrom": {
144313
+ "name": "SbbElement",
144314
+ "module": "core/base-elements/element.js"
144315
+ }
144316
+ },
144317
+ {
144318
+ "kind": "field",
144319
+ "name": "role",
144320
+ "type": {
144321
+ "text": "ElementInternals['role'] | undefined"
144322
+ },
144323
+ "privacy": "public",
144324
+ "static": true,
144325
+ "inheritedFrom": {
144326
+ "name": "SbbElement",
144327
+ "module": "core/base-elements/element.js"
144328
+ }
144329
+ },
144330
+ {
144331
+ "kind": "field",
144332
+ "name": "_controllers",
144333
+ "type": {
144334
+ "text": "Set<SbbReactiveController> | undefined"
144335
+ },
144336
+ "privacy": "private",
144337
+ "inheritedFrom": {
144338
+ "name": "SbbElement",
144339
+ "module": "core/base-elements/element.js"
144340
+ }
144341
+ },
144342
+ {
144343
+ "kind": "field",
144344
+ "name": "_hydrationRequired",
144345
+ "type": {
144346
+ "text": "boolean"
144347
+ },
144348
+ "privacy": "private",
144349
+ "default": "!!this.shadowRoot",
144350
+ "inheritedFrom": {
144351
+ "name": "SbbElement",
144352
+ "module": "core/base-elements/element.js"
144353
+ }
144354
+ },
144355
+ {
144356
+ "kind": "field",
144357
+ "name": "_hydrationComplete",
144358
+ "privacy": "private",
144359
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
144360
+ "inheritedFrom": {
144361
+ "name": "SbbElement",
144362
+ "module": "core/base-elements/element.js"
144363
+ }
144364
+ },
144365
+ {
144366
+ "kind": "field",
144367
+ "name": "_resolveHydration",
144368
+ "type": {
144369
+ "text": "(hydrationRequired: boolean) => void"
144370
+ },
144371
+ "privacy": "private",
144372
+ "inheritedFrom": {
144373
+ "name": "SbbElement",
144374
+ "module": "core/base-elements/element.js"
144375
+ }
144376
+ },
144377
+ {
144378
+ "kind": "field",
144379
+ "name": "_textObserver",
144380
+ "type": {
144381
+ "text": "MutationObserver | undefined"
144382
+ },
144383
+ "privacy": "private",
144384
+ "inheritedFrom": {
144385
+ "name": "SbbElement",
144386
+ "module": "core/base-elements/element.js"
144387
+ }
144388
+ },
144389
+ {
144390
+ "kind": "field",
144391
+ "name": "hydrationRequired",
144392
+ "type": {
144393
+ "text": "boolean"
144394
+ },
144395
+ "privacy": "protected",
144396
+ "description": "Returns whether hydration is required and not completed.",
144397
+ "readonly": true,
144398
+ "inheritedFrom": {
144399
+ "name": "SbbElement",
144400
+ "module": "core/base-elements/element.js"
144401
+ },
144402
+ "default": "!!this.shadowRoot"
144403
+ },
144404
+ {
144405
+ "kind": "method",
144406
+ "name": "toggleState",
144407
+ "privacy": "protected",
144408
+ "return": {
144409
+ "type": {
144410
+ "text": "void"
144411
+ }
144412
+ },
144413
+ "parameters": [
144414
+ {
144415
+ "name": "value",
144416
+ "type": {
144417
+ "text": "string"
144418
+ }
144419
+ },
144420
+ {
144421
+ "name": "force",
144422
+ "optional": true,
144423
+ "type": {
144424
+ "text": "boolean"
144425
+ }
144426
+ }
144427
+ ],
144428
+ "inheritedFrom": {
144429
+ "name": "SbbElement",
144430
+ "module": "core/base-elements/element.js"
144431
+ }
144432
+ },
144433
+ {
144434
+ "kind": "method",
144435
+ "name": "_slotchangeHandler",
144436
+ "privacy": "private",
144437
+ "return": {
144438
+ "type": {
144439
+ "text": "void"
144440
+ }
144441
+ },
144442
+ "parameters": [
144443
+ {
144444
+ "name": "event",
144445
+ "type": {
144446
+ "text": "Event"
144447
+ }
144448
+ },
144449
+ {
144450
+ "name": "slot",
144451
+ "type": {
144452
+ "text": "HTMLSlotElement"
144453
+ }
144454
+ }
144455
+ ],
144456
+ "inheritedFrom": {
144457
+ "name": "SbbElement",
144458
+ "module": "core/base-elements/element.js"
144459
+ }
144460
+ },
144461
+ {
144462
+ "kind": "method",
144463
+ "name": "_handleSlotChangeForSlottedState",
144464
+ "privacy": "private",
144465
+ "return": {
144466
+ "type": {
144467
+ "text": "void"
144468
+ }
144469
+ },
144470
+ "parameters": [
144471
+ {
144472
+ "name": "slot",
144473
+ "type": {
144474
+ "text": "HTMLSlotElement"
144475
+ }
144476
+ }
144477
+ ],
144478
+ "inheritedFrom": {
144479
+ "name": "SbbElement",
144480
+ "module": "core/base-elements/element.js"
144481
+ }
144482
+ },
144483
+ {
144484
+ "kind": "method",
144485
+ "name": "_updateSlottedState",
144486
+ "privacy": "private",
144487
+ "return": {
144488
+ "type": {
144489
+ "text": "void"
144490
+ }
144491
+ },
144492
+ "parameters": [
144493
+ {
144494
+ "name": "slot",
144495
+ "type": {
144496
+ "text": "HTMLSlotElement"
144497
+ }
144498
+ }
144499
+ ],
144500
+ "inheritedFrom": {
144501
+ "name": "SbbElement",
144502
+ "module": "core/base-elements/element.js"
144503
+ }
144504
+ },
144505
+ {
144506
+ "kind": "method",
144507
+ "name": "_observeTextNodesInSlot",
144508
+ "privacy": "private",
144509
+ "return": {
144510
+ "type": {
144511
+ "text": "void"
144512
+ }
144513
+ },
144514
+ "parameters": [
144515
+ {
144516
+ "name": "slot",
144517
+ "type": {
144518
+ "text": "HTMLSlotElement"
144519
+ }
144520
+ }
144521
+ ],
144522
+ "inheritedFrom": {
144523
+ "name": "SbbElement",
144524
+ "module": "core/base-elements/element.js"
144525
+ }
144526
+ },
144527
+ {
144528
+ "kind": "method",
144529
+ "name": "_hasSlottedContent",
144530
+ "privacy": "private",
144531
+ "return": {
144532
+ "type": {
144533
+ "text": "boolean"
144534
+ }
144535
+ },
144536
+ "parameters": [
144537
+ {
144538
+ "name": "slot",
144539
+ "type": {
144540
+ "text": "HTMLSlotElement"
144541
+ }
144542
+ }
144543
+ ],
144544
+ "inheritedFrom": {
144545
+ "name": "SbbElement",
144546
+ "module": "core/base-elements/element.js"
144547
+ }
144548
+ }
144549
+ ],
144550
+ "superclass": {
144551
+ "name": "SbbElement",
144552
+ "module": "core.js"
144553
+ },
144554
+ "tagName": "sbb-sidebar-container",
144555
+ "customElement": true
144556
+ }
144557
+ ],
144558
+ "exports": [
144559
+ {
144560
+ "kind": "js",
144561
+ "name": "SbbSidebarContainerElement",
144562
+ "declaration": {
144563
+ "name": "SbbSidebarContainerElement",
144564
+ "module": "sidebar/sidebar-container/sidebar-container.component.js"
144565
+ }
144566
+ }
144567
+ ]
144568
+ },
144183
144569
  {
144184
144570
  "kind": "javascript-module",
144185
144571
  "path": "sidebar/sidebar-close-button/sidebar-close-button.component.js",
@@ -145344,15 +145730,15 @@
145344
145730
  },
145345
145731
  {
145346
145732
  "kind": "javascript-module",
145347
- "path": "sidebar/sidebar-container/sidebar-container.component.js",
145733
+ "path": "sidebar/sidebar-content/sidebar-content.component.js",
145348
145734
  "declarations": [
145349
145735
  {
145350
145736
  "kind": "class",
145351
- "description": "This is the parent component to one or two `<sbb-sidebar>`s that validates the state internally\nand coordinates the backdrop and content styling.",
145352
- "name": "SbbSidebarContainerElement",
145737
+ "description": "Container for the sidebar content. Intended to be placed inside an `sbb-sidebar-container` element.",
145738
+ "name": "SbbSidebarContentElement",
145353
145739
  "slots": [
145354
145740
  {
145355
- "description": "Use the unnamed slot to add `sbb-sidebar` and `sbb-sidebar-content` elements.",
145741
+ "description": "Use the unnamed slot to add any content elements. Further `sbb-sidebar-container`s are possible.",
145356
145742
  "name": ""
145357
145743
  }
145358
145744
  ],
@@ -145366,69 +145752,12 @@
145366
145752
  "privacy": "public",
145367
145753
  "static": true,
145368
145754
  "readonly": true,
145369
- "default": "'sbb-sidebar-container'",
145755
+ "default": "'sbb-sidebar-content'",
145370
145756
  "inheritedFrom": {
145371
145757
  "name": "SbbElement",
145372
145758
  "module": "core/base-elements/element.js"
145373
145759
  }
145374
145760
  },
145375
- {
145376
- "kind": "field",
145377
- "name": "sidebars",
145378
- "type": {
145379
- "text": "SbbSidebarElement[]"
145380
- },
145381
- "privacy": "public",
145382
- "description": "The sidebar children.",
145383
- "readonly": true
145384
- },
145385
- {
145386
- "kind": "field",
145387
- "name": "start",
145388
- "type": {
145389
- "text": "SbbSidebarElement | null"
145390
- },
145391
- "privacy": "public",
145392
- "description": "The sidebar child with the `start` position.",
145393
- "readonly": true
145394
- },
145395
- {
145396
- "kind": "field",
145397
- "name": "end",
145398
- "type": {
145399
- "text": "SbbSidebarElement | null"
145400
- },
145401
- "privacy": "public",
145402
- "description": "The sidebar child with the `end` position.",
145403
- "readonly": true
145404
- },
145405
- {
145406
- "kind": "field",
145407
- "name": "_forcedClosedSidebars",
145408
- "privacy": "private",
145409
- "default": "new WeakSet<SbbSidebarElement>()"
145410
- },
145411
- {
145412
- "kind": "method",
145413
- "name": "_handleWidthChange",
145414
- "privacy": "private",
145415
- "return": {
145416
- "type": {
145417
- "text": "void"
145418
- }
145419
- }
145420
- },
145421
- {
145422
- "kind": "method",
145423
- "name": "_calculateSpaceState",
145424
- "privacy": "private",
145425
- "return": {
145426
- "type": {
145427
- "text": "Promise<void>"
145428
- }
145429
- },
145430
- "description": "Closes and opens sidebars depending on available width\nof the container and its parent container."
145431
- },
145432
145761
  {
145433
145762
  "kind": "field",
145434
145763
  "name": "['_$sbbElement$']",
@@ -145693,32 +146022,32 @@
145693
146022
  "name": "SbbElement",
145694
146023
  "module": "core.js"
145695
146024
  },
145696
- "tagName": "sbb-sidebar-container",
146025
+ "tagName": "sbb-sidebar-content",
145697
146026
  "customElement": true
145698
146027
  }
145699
146028
  ],
145700
146029
  "exports": [
145701
146030
  {
145702
146031
  "kind": "js",
145703
- "name": "SbbSidebarContainerElement",
146032
+ "name": "SbbSidebarContentElement",
145704
146033
  "declaration": {
145705
- "name": "SbbSidebarContainerElement",
145706
- "module": "sidebar/sidebar-container/sidebar-container.component.js"
146034
+ "name": "SbbSidebarContentElement",
146035
+ "module": "sidebar/sidebar-content/sidebar-content.component.js"
145707
146036
  }
145708
146037
  }
145709
146038
  ]
145710
146039
  },
145711
146040
  {
145712
146041
  "kind": "javascript-module",
145713
- "path": "sidebar/sidebar-content/sidebar-content.component.js",
146042
+ "path": "sidebar/sidebar-title/sidebar-title.component.js",
145714
146043
  "declarations": [
145715
146044
  {
145716
146045
  "kind": "class",
145717
- "description": "Container for the sidebar content. Intended to be placed inside an `sbb-sidebar-container` element.",
145718
- "name": "SbbSidebarContentElement",
146046
+ "description": "It displays the title of the sidebar. It has to be placed inside an `sbb-sidebar` element.",
146047
+ "name": "SbbSidebarTitleElement",
145719
146048
  "slots": [
145720
146049
  {
145721
- "description": "Use the unnamed slot to add any content elements. Further `sbb-sidebar-container`s are possible.",
146050
+ "description": "Use the unnamed slot for the content of the sidebar-title.",
145722
146051
  "name": ""
145723
146052
  }
145724
146053
  ],
@@ -145732,21 +146061,53 @@
145732
146061
  "privacy": "public",
145733
146062
  "static": true,
145734
146063
  "readonly": true,
145735
- "default": "'sbb-sidebar-content'",
145736
146064
  "inheritedFrom": {
145737
146065
  "name": "SbbElement",
145738
146066
  "module": "core/base-elements/element.js"
146067
+ },
146068
+ "default": "'sbb-sidebar-title'"
146069
+ },
146070
+ {
146071
+ "kind": "field",
146072
+ "name": "level",
146073
+ "type": {
146074
+ "text": "SbbTitleLevel"
146075
+ },
146076
+ "privacy": "public",
146077
+ "default": "'2'",
146078
+ "description": "Title level",
146079
+ "attribute": "level",
146080
+ "reflects": true,
146081
+ "inheritedFrom": {
146082
+ "name": "SbbTitleBase",
146083
+ "module": "title/title-base.js"
145739
146084
  }
145740
146085
  },
145741
146086
  {
145742
146087
  "kind": "field",
145743
- "name": "['_$sbbElement$']",
146088
+ "name": "visualLevel",
145744
146089
  "type": {
145745
- "text": "boolean"
146090
+ "text": "SbbTitleLevel | null"
146091
+ },
146092
+ "privacy": "public",
146093
+ "default": "'5'",
146094
+ "description": "Visual level for the title.",
146095
+ "attribute": "visual-level",
146096
+ "reflects": true,
146097
+ "inheritedFrom": {
146098
+ "name": "SbbTitleBase",
146099
+ "module": "title/title-base.js"
146100
+ }
146101
+ },
146102
+ {
146103
+ "kind": "field",
146104
+ "name": "role",
146105
+ "type": {
146106
+ "text": "string"
145746
146107
  },
145747
146108
  "privacy": "public",
145748
146109
  "static": true,
145749
- "default": "true",
146110
+ "default": "'heading'",
145750
146111
  "inheritedFrom": {
145751
146112
  "name": "SbbElement",
145752
146113
  "module": "core/base-elements/element.js"
@@ -145754,12 +146115,13 @@
145754
146115
  },
145755
146116
  {
145756
146117
  "kind": "field",
145757
- "name": "elementDependencies",
146118
+ "name": "['_$sbbElement$']",
145758
146119
  "type": {
145759
- "text": "SbbElementType[] | undefined"
146120
+ "text": "boolean"
145760
146121
  },
145761
146122
  "privacy": "public",
145762
146123
  "static": true,
146124
+ "default": "true",
145763
146125
  "inheritedFrom": {
145764
146126
  "name": "SbbElement",
145765
146127
  "module": "core/base-elements/element.js"
@@ -145767,9 +146129,9 @@
145767
146129
  },
145768
146130
  {
145769
146131
  "kind": "field",
145770
- "name": "role",
146132
+ "name": "elementDependencies",
145771
146133
  "type": {
145772
- "text": "ElementInternals['role'] | undefined"
146134
+ "text": "SbbElementType[] | undefined"
145773
146135
  },
145774
146136
  "privacy": "public",
145775
146137
  "static": true,
@@ -145998,36 +146360,64 @@
145998
146360
  }
145999
146361
  }
146000
146362
  ],
146363
+ "attributes": [
146364
+ {
146365
+ "name": "level",
146366
+ "type": {
146367
+ "text": "SbbTitleLevel"
146368
+ },
146369
+ "default": "'2'",
146370
+ "description": "Title level",
146371
+ "fieldName": "level",
146372
+ "inheritedFrom": {
146373
+ "name": "SbbTitleBase",
146374
+ "module": "title/title-base.js"
146375
+ }
146376
+ },
146377
+ {
146378
+ "name": "visual-level",
146379
+ "type": {
146380
+ "text": "SbbTitleLevel | null"
146381
+ },
146382
+ "default": "null",
146383
+ "description": "Visual level for the title.",
146384
+ "fieldName": "visualLevel",
146385
+ "inheritedFrom": {
146386
+ "name": "SbbTitleBase",
146387
+ "module": "title/title-base.js"
146388
+ }
146389
+ }
146390
+ ],
146001
146391
  "superclass": {
146002
- "name": "SbbElement",
146003
- "module": "core.js"
146392
+ "name": "SbbTitleBase",
146393
+ "module": "title.pure.js"
146004
146394
  },
146005
- "tagName": "sbb-sidebar-content",
146395
+ "tagName": "sbb-sidebar-title",
146006
146396
  "customElement": true
146007
146397
  }
146008
146398
  ],
146009
146399
  "exports": [
146010
146400
  {
146011
146401
  "kind": "js",
146012
- "name": "SbbSidebarContentElement",
146402
+ "name": "SbbSidebarTitleElement",
146013
146403
  "declaration": {
146014
- "name": "SbbSidebarContentElement",
146015
- "module": "sidebar/sidebar-content/sidebar-content.component.js"
146404
+ "name": "SbbSidebarTitleElement",
146405
+ "module": "sidebar/sidebar-title/sidebar-title.component.js"
146016
146406
  }
146017
146407
  }
146018
146408
  ]
146019
146409
  },
146020
146410
  {
146021
146411
  "kind": "javascript-module",
146022
- "path": "sidebar/sidebar-title/sidebar-title.component.js",
146412
+ "path": "stepper/step/step.component.js",
146023
146413
  "declarations": [
146024
146414
  {
146025
146415
  "kind": "class",
146026
- "description": "It displays the title of the sidebar. It has to be placed inside an `sbb-sidebar` element.",
146027
- "name": "SbbSidebarTitleElement",
146416
+ "description": "Combined with a `sbb-stepper`, it displays a step's content.",
146417
+ "name": "SbbStepElement",
146028
146418
  "slots": [
146029
146419
  {
146030
- "description": "Use the unnamed slot for the content of the sidebar-title.",
146420
+ "description": "Use the unnamed slot to provide content.",
146031
146421
  "name": ""
146032
146422
  }
146033
146423
  ],
@@ -146041,524 +146431,154 @@
146041
146431
  "privacy": "public",
146042
146432
  "static": true,
146043
146433
  "readonly": true,
146434
+ "default": "'sbb-step'",
146044
146435
  "inheritedFrom": {
146045
146436
  "name": "SbbElement",
146046
146437
  "module": "core/base-elements/element.js"
146047
- },
146048
- "default": "'sbb-sidebar-title'"
146438
+ }
146049
146439
  },
146050
146440
  {
146051
146441
  "kind": "field",
146052
- "name": "level",
146442
+ "name": "role",
146053
146443
  "type": {
146054
- "text": "SbbTitleLevel"
146444
+ "text": "string"
146055
146445
  },
146056
146446
  "privacy": "public",
146057
- "default": "'2'",
146058
- "description": "Title level",
146059
- "attribute": "level",
146060
- "reflects": true,
146447
+ "static": true,
146448
+ "readonly": true,
146449
+ "default": "'tabpanel'",
146061
146450
  "inheritedFrom": {
146062
- "name": "SbbTitleBase",
146063
- "module": "title/title-base.js"
146451
+ "name": "SbbElement",
146452
+ "module": "core/base-elements/element.js"
146064
146453
  }
146065
146454
  },
146066
146455
  {
146067
146456
  "kind": "field",
146068
- "name": "visualLevel",
146457
+ "name": "events",
146458
+ "privacy": "public",
146459
+ "static": true,
146460
+ "readonly": true,
146461
+ "default": "{ validate: 'validate', resizechange: 'resizechange', }",
146069
146462
  "type": {
146070
- "text": "SbbTitleLevel | null"
146463
+ "text": "{\n validate: 'validate',\n resizechange: 'resizechange',\n }"
146464
+ }
146465
+ },
146466
+ {
146467
+ "kind": "field",
146468
+ "name": "_stepResizeObserver",
146469
+ "privacy": "private",
146470
+ "default": "new ResizeController(this, { target: null, skipInitial: true, callback: () => setTimeout(() => this._onStepElementResize()), })"
146471
+ },
146472
+ {
146473
+ "kind": "field",
146474
+ "name": "label",
146475
+ "type": {
146476
+ "text": "SbbStepLabelElement | null"
146071
146477
  },
146072
146478
  "privacy": "public",
146073
- "default": "'5'",
146074
- "description": "Visual level for the title.",
146075
- "attribute": "visual-level",
146076
- "reflects": true,
146077
- "inheritedFrom": {
146078
- "name": "SbbTitleBase",
146079
- "module": "title/title-base.js"
146080
- }
146479
+ "description": "The label of the step.",
146480
+ "readonly": true,
146481
+ "default": "null"
146081
146482
  },
146082
146483
  {
146083
146484
  "kind": "field",
146084
- "name": "role",
146485
+ "name": "_label",
146085
146486
  "type": {
146086
- "text": "string"
146487
+ "text": "SbbStepLabelElement | null"
146488
+ },
146489
+ "privacy": "private",
146490
+ "default": "null"
146491
+ },
146492
+ {
146493
+ "kind": "field",
146494
+ "name": "stepper",
146495
+ "type": {
146496
+ "text": "SbbStepperElement | null"
146087
146497
  },
146088
146498
  "privacy": "public",
146089
- "static": true,
146090
- "default": "'heading'",
146091
- "inheritedFrom": {
146092
- "name": "SbbElement",
146093
- "module": "core/base-elements/element.js"
146094
- }
146095
- },
146096
- {
146097
- "kind": "field",
146098
- "name": "['_$sbbElement$']",
146099
- "type": {
146100
- "text": "boolean"
146101
- },
146102
- "privacy": "public",
146103
- "static": true,
146104
- "default": "true",
146105
- "inheritedFrom": {
146106
- "name": "SbbElement",
146107
- "module": "core/base-elements/element.js"
146108
- }
146109
- },
146110
- {
146111
- "kind": "field",
146112
- "name": "elementDependencies",
146113
- "type": {
146114
- "text": "SbbElementType[] | undefined"
146115
- },
146116
- "privacy": "public",
146117
- "static": true,
146118
- "inheritedFrom": {
146119
- "name": "SbbElement",
146120
- "module": "core/base-elements/element.js"
146121
- }
146122
- },
146123
- {
146124
- "kind": "field",
146125
- "name": "_controllers",
146126
- "type": {
146127
- "text": "Set<SbbReactiveController> | undefined"
146128
- },
146129
- "privacy": "private",
146130
- "inheritedFrom": {
146131
- "name": "SbbElement",
146132
- "module": "core/base-elements/element.js"
146133
- }
146134
- },
146135
- {
146136
- "kind": "field",
146137
- "name": "_hydrationRequired",
146138
- "type": {
146139
- "text": "boolean"
146140
- },
146141
- "privacy": "private",
146142
- "default": "!!this.shadowRoot",
146143
- "inheritedFrom": {
146144
- "name": "SbbElement",
146145
- "module": "core/base-elements/element.js"
146146
- }
146147
- },
146148
- {
146149
- "kind": "field",
146150
- "name": "_hydrationComplete",
146151
- "privacy": "private",
146152
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
146153
- "inheritedFrom": {
146154
- "name": "SbbElement",
146155
- "module": "core/base-elements/element.js"
146156
- }
146157
- },
146158
- {
146159
- "kind": "field",
146160
- "name": "_resolveHydration",
146161
- "type": {
146162
- "text": "(hydrationRequired: boolean) => void"
146163
- },
146164
- "privacy": "private",
146165
- "inheritedFrom": {
146166
- "name": "SbbElement",
146167
- "module": "core/base-elements/element.js"
146168
- }
146169
- },
146170
- {
146171
- "kind": "field",
146172
- "name": "_textObserver",
146173
- "type": {
146174
- "text": "MutationObserver | undefined"
146175
- },
146176
- "privacy": "private",
146177
- "inheritedFrom": {
146178
- "name": "SbbElement",
146179
- "module": "core/base-elements/element.js"
146180
- }
146181
- },
146182
- {
146183
- "kind": "field",
146184
- "name": "hydrationRequired",
146185
- "type": {
146186
- "text": "boolean"
146187
- },
146188
- "privacy": "protected",
146189
- "description": "Returns whether hydration is required and not completed.",
146190
- "readonly": true,
146191
- "inheritedFrom": {
146192
- "name": "SbbElement",
146193
- "module": "core/base-elements/element.js"
146194
- },
146195
- "default": "!!this.shadowRoot"
146196
- },
146197
- {
146198
- "kind": "method",
146199
- "name": "toggleState",
146200
- "privacy": "protected",
146201
- "return": {
146202
- "type": {
146203
- "text": "void"
146204
- }
146205
- },
146206
- "parameters": [
146207
- {
146208
- "name": "value",
146209
- "type": {
146210
- "text": "string"
146211
- }
146212
- },
146213
- {
146214
- "name": "force",
146215
- "optional": true,
146216
- "type": {
146217
- "text": "boolean"
146218
- }
146219
- }
146220
- ],
146221
- "inheritedFrom": {
146222
- "name": "SbbElement",
146223
- "module": "core/base-elements/element.js"
146224
- }
146225
- },
146226
- {
146227
- "kind": "method",
146228
- "name": "_slotchangeHandler",
146229
- "privacy": "private",
146230
- "return": {
146231
- "type": {
146232
- "text": "void"
146233
- }
146234
- },
146235
- "parameters": [
146236
- {
146237
- "name": "event",
146238
- "type": {
146239
- "text": "Event"
146240
- }
146241
- },
146242
- {
146243
- "name": "slot",
146244
- "type": {
146245
- "text": "HTMLSlotElement"
146246
- }
146247
- }
146248
- ],
146249
- "inheritedFrom": {
146250
- "name": "SbbElement",
146251
- "module": "core/base-elements/element.js"
146252
- }
146253
- },
146254
- {
146255
- "kind": "method",
146256
- "name": "_handleSlotChangeForSlottedState",
146257
- "privacy": "private",
146258
- "return": {
146259
- "type": {
146260
- "text": "void"
146261
- }
146262
- },
146263
- "parameters": [
146264
- {
146265
- "name": "slot",
146266
- "type": {
146267
- "text": "HTMLSlotElement"
146268
- }
146269
- }
146270
- ],
146271
- "inheritedFrom": {
146272
- "name": "SbbElement",
146273
- "module": "core/base-elements/element.js"
146274
- }
146275
- },
146276
- {
146277
- "kind": "method",
146278
- "name": "_updateSlottedState",
146279
- "privacy": "private",
146280
- "return": {
146281
- "type": {
146282
- "text": "void"
146283
- }
146284
- },
146285
- "parameters": [
146286
- {
146287
- "name": "slot",
146288
- "type": {
146289
- "text": "HTMLSlotElement"
146290
- }
146291
- }
146292
- ],
146293
- "inheritedFrom": {
146294
- "name": "SbbElement",
146295
- "module": "core/base-elements/element.js"
146296
- }
146297
- },
146298
- {
146299
- "kind": "method",
146300
- "name": "_observeTextNodesInSlot",
146301
- "privacy": "private",
146302
- "return": {
146303
- "type": {
146304
- "text": "void"
146305
- }
146306
- },
146307
- "parameters": [
146308
- {
146309
- "name": "slot",
146310
- "type": {
146311
- "text": "HTMLSlotElement"
146312
- }
146313
- }
146314
- ],
146315
- "inheritedFrom": {
146316
- "name": "SbbElement",
146317
- "module": "core/base-elements/element.js"
146318
- }
146319
- },
146320
- {
146321
- "kind": "method",
146322
- "name": "_hasSlottedContent",
146323
- "privacy": "private",
146324
- "return": {
146325
- "type": {
146326
- "text": "boolean"
146327
- }
146328
- },
146329
- "parameters": [
146330
- {
146331
- "name": "slot",
146332
- "type": {
146333
- "text": "HTMLSlotElement"
146334
- }
146335
- }
146336
- ],
146337
- "inheritedFrom": {
146338
- "name": "SbbElement",
146339
- "module": "core/base-elements/element.js"
146340
- }
146341
- }
146342
- ],
146343
- "attributes": [
146344
- {
146345
- "name": "level",
146346
- "type": {
146347
- "text": "SbbTitleLevel"
146348
- },
146349
- "default": "'2'",
146350
- "description": "Title level",
146351
- "fieldName": "level",
146352
- "inheritedFrom": {
146353
- "name": "SbbTitleBase",
146354
- "module": "title/title-base.js"
146355
- }
146356
- },
146357
- {
146358
- "name": "visual-level",
146359
- "type": {
146360
- "text": "SbbTitleLevel | null"
146361
- },
146362
- "default": "null",
146363
- "description": "Visual level for the title.",
146364
- "fieldName": "visualLevel",
146365
- "inheritedFrom": {
146366
- "name": "SbbTitleBase",
146367
- "module": "title/title-base.js"
146368
- }
146369
- }
146370
- ],
146371
- "superclass": {
146372
- "name": "SbbTitleBase",
146373
- "module": "title.pure.js"
146374
- },
146375
- "tagName": "sbb-sidebar-title",
146376
- "customElement": true
146377
- }
146378
- ],
146379
- "exports": [
146380
- {
146381
- "kind": "js",
146382
- "name": "SbbSidebarTitleElement",
146383
- "declaration": {
146384
- "name": "SbbSidebarTitleElement",
146385
- "module": "sidebar/sidebar-title/sidebar-title.component.js"
146386
- }
146387
- }
146388
- ]
146389
- },
146390
- {
146391
- "kind": "javascript-module",
146392
- "path": "stepper/step/step.component.js",
146393
- "declarations": [
146394
- {
146395
- "kind": "class",
146396
- "description": "Combined with a `sbb-stepper`, it displays a step's content.",
146397
- "name": "SbbStepElement",
146398
- "slots": [
146399
- {
146400
- "description": "Use the unnamed slot to provide content.",
146401
- "name": ""
146402
- }
146403
- ],
146404
- "members": [
146405
- {
146406
- "kind": "field",
146407
- "name": "elementName",
146408
- "type": {
146409
- "text": "string"
146410
- },
146411
- "privacy": "public",
146412
- "static": true,
146413
- "readonly": true,
146414
- "default": "'sbb-step'",
146415
- "inheritedFrom": {
146416
- "name": "SbbElement",
146417
- "module": "core/base-elements/element.js"
146418
- }
146419
- },
146420
- {
146421
- "kind": "field",
146422
- "name": "role",
146423
- "type": {
146424
- "text": "string"
146425
- },
146426
- "privacy": "public",
146427
- "static": true,
146428
- "readonly": true,
146429
- "default": "'tabpanel'",
146430
- "inheritedFrom": {
146431
- "name": "SbbElement",
146432
- "module": "core/base-elements/element.js"
146433
- }
146434
- },
146435
- {
146436
- "kind": "field",
146437
- "name": "events",
146438
- "privacy": "public",
146439
- "static": true,
146440
- "readonly": true,
146441
- "default": "{ validate: 'validate', resizechange: 'resizechange', }",
146442
- "type": {
146443
- "text": "{\n validate: 'validate',\n resizechange: 'resizechange',\n }"
146444
- }
146445
- },
146446
- {
146447
- "kind": "field",
146448
- "name": "_stepResizeObserver",
146449
- "privacy": "private",
146450
- "default": "new ResizeController(this, { target: null, skipInitial: true, callback: () => setTimeout(() => this._onStepElementResize()), })"
146451
- },
146452
- {
146453
- "kind": "field",
146454
- "name": "label",
146455
- "type": {
146456
- "text": "SbbStepLabelElement | null"
146457
- },
146458
- "privacy": "public",
146459
- "description": "The label of the step.",
146460
- "readonly": true,
146461
- "default": "null"
146462
- },
146463
- {
146464
- "kind": "field",
146465
- "name": "_label",
146466
- "type": {
146467
- "text": "SbbStepLabelElement | null"
146468
- },
146469
- "privacy": "private",
146470
- "default": "null"
146471
- },
146472
- {
146473
- "kind": "field",
146474
- "name": "stepper",
146475
- "type": {
146476
- "text": "SbbStepperElement | null"
146477
- },
146478
- "privacy": "public",
146479
- "readonly": true
146480
- },
146481
- {
146482
- "kind": "field",
146483
- "name": "_previousOrientation",
146484
- "type": {
146485
- "text": "string | undefined"
146486
- },
146487
- "privacy": "private"
146488
- },
146489
- {
146490
- "kind": "method",
146491
- "name": "_handleClick",
146492
- "privacy": "private",
146493
- "return": {
146494
- "type": {
146495
- "text": "void"
146496
- }
146497
- },
146498
- "parameters": [
146499
- {
146500
- "name": "event",
146501
- "type": {
146502
- "text": "Event"
146503
- }
146504
- }
146505
- ],
146506
- "description": "Watches for clicked elements with `sbb-stepper-next` or `sbb-stepper-previous` attributes."
146507
- },
146508
- {
146509
- "kind": "method",
146510
- "name": "_isGoNextElement",
146511
- "privacy": "private",
146512
- "return": {
146513
- "type": {
146514
- "text": "boolean"
146515
- }
146516
- },
146517
- "parameters": [
146518
- {
146519
- "name": "element",
146520
- "type": {
146521
- "text": "HTMLElement"
146522
- }
146523
- }
146524
- ]
146525
- },
146526
- {
146527
- "kind": "method",
146528
- "name": "_isGoPreviousElement",
146529
- "privacy": "private",
146530
- "return": {
146531
- "type": {
146532
- "text": "boolean"
146533
- }
146534
- },
146535
- "parameters": [
146536
- {
146537
- "name": "element",
146538
- "type": {
146539
- "text": "HTMLElement"
146540
- }
146541
- }
146542
- ]
146543
- },
146544
- {
146545
- "kind": "method",
146546
- "name": "_onStepElementResize",
146547
- "privacy": "private",
146548
- "return": {
146549
- "type": {
146550
- "text": "void"
146551
- }
146552
- }
146553
- },
146554
- {
146555
- "kind": "method",
146556
- "name": "_assignLabel",
146557
- "privacy": "private",
146558
- "return": {
146559
- "type": {
146560
- "text": "void"
146561
- }
146499
+ "readonly": true
146500
+ },
146501
+ {
146502
+ "kind": "field",
146503
+ "name": "_previousOrientation",
146504
+ "type": {
146505
+ "text": "string | undefined"
146506
+ },
146507
+ "privacy": "private"
146508
+ },
146509
+ {
146510
+ "kind": "method",
146511
+ "name": "_handleClick",
146512
+ "privacy": "private",
146513
+ "return": {
146514
+ "type": {
146515
+ "text": "void"
146516
+ }
146517
+ },
146518
+ "parameters": [
146519
+ {
146520
+ "name": "event",
146521
+ "type": {
146522
+ "text": "Event"
146523
+ }
146524
+ }
146525
+ ],
146526
+ "description": "Watches for clicked elements with `sbb-stepper-next` or `sbb-stepper-previous` attributes."
146527
+ },
146528
+ {
146529
+ "kind": "method",
146530
+ "name": "_isGoNextElement",
146531
+ "privacy": "private",
146532
+ "return": {
146533
+ "type": {
146534
+ "text": "boolean"
146535
+ }
146536
+ },
146537
+ "parameters": [
146538
+ {
146539
+ "name": "element",
146540
+ "type": {
146541
+ "text": "HTMLElement"
146542
+ }
146543
+ }
146544
+ ]
146545
+ },
146546
+ {
146547
+ "kind": "method",
146548
+ "name": "_isGoPreviousElement",
146549
+ "privacy": "private",
146550
+ "return": {
146551
+ "type": {
146552
+ "text": "boolean"
146553
+ }
146554
+ },
146555
+ "parameters": [
146556
+ {
146557
+ "name": "element",
146558
+ "type": {
146559
+ "text": "HTMLElement"
146560
+ }
146561
+ }
146562
+ ]
146563
+ },
146564
+ {
146565
+ "kind": "method",
146566
+ "name": "_onStepElementResize",
146567
+ "privacy": "private",
146568
+ "return": {
146569
+ "type": {
146570
+ "text": "void"
146571
+ }
146572
+ }
146573
+ },
146574
+ {
146575
+ "kind": "method",
146576
+ "name": "_assignLabel",
146577
+ "privacy": "private",
146578
+ "return": {
146579
+ "type": {
146580
+ "text": "void"
146581
+ }
146562
146582
  }
146563
146583
  },
146564
146584
  {
@@ -157416,16 +157436,20 @@
157416
157436
  },
157417
157437
  {
157418
157438
  "kind": "javascript-module",
157419
- "path": "toggle/toggle/toggle.component.js",
157439
+ "path": "toggle/toggle-option/toggle-option.component.js",
157420
157440
  "declarations": [
157421
157441
  {
157422
157442
  "kind": "class",
157423
- "description": "It can be used as a container for two `sbb-toggle-option`, acting as a toggle button.",
157424
- "name": "SbbToggleElement",
157443
+ "description": "It displays a toggle option within a `sbb-toggle`.",
157444
+ "name": "SbbToggleOptionElement",
157425
157445
  "slots": [
157426
157446
  {
157427
- "description": "Use the unnamed slot to add `<sbb-toggle-option>` elements to the toggle.",
157447
+ "description": "Use the unnamed slot to add content to the label of the toggle option.",
157428
157448
  "name": ""
157449
+ },
157450
+ {
157451
+ "description": "Slot used to render the `sbb-icon`.",
157452
+ "name": "icon"
157429
157453
  }
157430
157454
  ],
157431
157455
  "members": [
@@ -157438,7 +157462,7 @@
157438
157462
  "privacy": "public",
157439
157463
  "static": true,
157440
157464
  "readonly": true,
157441
- "default": "'sbb-toggle'",
157465
+ "default": "'sbb-toggle-option'",
157442
157466
  "inheritedFrom": {
157443
157467
  "name": "SbbElement",
157444
157468
  "module": "core/base-elements/element.js"
@@ -157453,7 +157477,7 @@
157453
157477
  "privacy": "public",
157454
157478
  "static": true,
157455
157479
  "readonly": true,
157456
- "default": "'radiogroup'",
157480
+ "default": "'radio'",
157457
157481
  "inheritedFrom": {
157458
157482
  "name": "SbbElement",
157459
157483
  "module": "core/base-elements/element.js"
@@ -157461,37 +157485,14 @@
157461
157485
  },
157462
157486
  {
157463
157487
  "kind": "field",
157464
- "name": "events",
157465
- "privacy": "public",
157466
- "static": true,
157467
- "readonly": true,
157468
- "default": "{ change: 'change', }",
157469
- "type": {
157470
- "text": "{\n change: 'change',\n }"
157471
- }
157472
- },
157473
- {
157474
- "kind": "field",
157475
- "name": "even",
157488
+ "name": "checked",
157476
157489
  "type": {
157477
157490
  "text": "boolean"
157478
157491
  },
157479
157492
  "privacy": "public",
157480
157493
  "default": "false",
157481
- "description": "If true, set the width of the component fixed; if false,\nthe width is dynamic based on the label of the sbb-toggle-option.",
157482
- "attribute": "even",
157483
- "reflects": true
157484
- },
157485
- {
157486
- "kind": "field",
157487
- "name": "size",
157488
- "type": {
157489
- "text": "'s' | 'm'"
157490
- },
157491
- "privacy": "public",
157492
- "description": "Size variant, either m or s.",
157493
- "default": "'m' / 's' (lean)",
157494
- "attribute": "size",
157494
+ "description": "Whether the toggle-option is checked.",
157495
+ "attribute": "checked",
157495
157496
  "reflects": true
157496
157497
  },
157497
157498
  {
@@ -157501,53 +157502,22 @@
157501
157502
  "text": "(T = string) | null"
157502
157503
  },
157503
157504
  "privacy": "public",
157504
- "description": "The value of the toggle. It needs to be mutable since it is updated whenever\na new option is selected (see the `onToggleOptionSelect()` method).",
157505
- "attribute": "value",
157506
- "inheritedFrom": {
157507
- "name": "SbbFormAssociatedMixin",
157508
- "module": "core/mixins/form-associated-mixin.js"
157509
- }
157505
+ "default": "null",
157506
+ "description": "Value of toggle-option.",
157507
+ "attribute": "value"
157510
157508
  },
157511
157509
  {
157512
157510
  "kind": "field",
157513
- "name": "_fallbackValue",
157511
+ "name": "_toggle",
157514
157512
  "type": {
157515
- "text": "T | null"
157513
+ "text": "SbbToggleElement | null"
157516
157514
  },
157517
157515
  "privacy": "private",
157518
157516
  "default": "null"
157519
157517
  },
157520
- {
157521
- "kind": "field",
157522
- "name": "options",
157523
- "type": {
157524
- "text": "SbbToggleOptionElement<T>[]"
157525
- },
157526
- "privacy": "public",
157527
- "description": "The child instances of sbb-toggle-option as an array.",
157528
- "readonly": true
157529
- },
157530
157518
  {
157531
157519
  "kind": "method",
157532
- "name": "_readFormData",
157533
- "privacy": "private",
157534
- "return": {
157535
- "type": {
157536
- "text": "Promise<T>"
157537
- }
157538
- },
157539
- "parameters": [
157540
- {
157541
- "name": "formData",
157542
- "type": {
157543
- "text": "FormData"
157544
- }
157545
- }
157546
- ]
157547
- },
157548
- {
157549
- "kind": "method",
157550
- "name": "_updateToggle",
157520
+ "name": "_uncheckOtherOptions",
157551
157521
  "privacy": "private",
157552
157522
  "return": {
157553
157523
  "type": {
@@ -157557,25 +157527,7 @@
157557
157527
  },
157558
157528
  {
157559
157529
  "kind": "method",
157560
- "name": "_valueChanged",
157561
- "privacy": "private",
157562
- "return": {
157563
- "type": {
157564
- "text": "void"
157565
- }
157566
- },
157567
- "parameters": [
157568
- {
157569
- "name": "value",
157570
- "type": {
157571
- "text": "T | null"
157572
- }
157573
- }
157574
- ]
157575
- },
157576
- {
157577
- "kind": "method",
157578
- "name": "_updateDisabled",
157530
+ "name": "_handleDisabledChange",
157579
157531
  "privacy": "private",
157580
157532
  "return": {
157581
157533
  "type": {
@@ -157591,44 +157543,17 @@
157591
157543
  "type": {
157592
157544
  "text": "void"
157593
157545
  }
157594
- },
157595
- "description": "Called on user interaction (click or keyboard)"
157596
- },
157597
- {
157598
- "kind": "method",
157599
- "name": "_handleKeyDown",
157600
- "privacy": "private",
157601
- "return": {
157602
- "type": {
157603
- "text": "void"
157604
- }
157605
- },
157606
- "parameters": [
157607
- {
157608
- "name": "evt",
157609
- "type": {
157610
- "text": "KeyboardEvent"
157611
- }
157612
- }
157613
- ]
157546
+ }
157614
157547
  },
157615
157548
  {
157616
157549
  "kind": "method",
157617
- "name": "_selectAndFocusOption",
157550
+ "name": "_verifyTabindex",
157618
157551
  "privacy": "private",
157619
157552
  "return": {
157620
157553
  "type": {
157621
157554
  "text": "void"
157622
157555
  }
157623
- },
157624
- "parameters": [
157625
- {
157626
- "name": "option",
157627
- "type": {
157628
- "text": "SbbToggleOptionElement<T> | undefined"
157629
- }
157630
- }
157631
- ]
157556
+ }
157632
157557
  },
157633
157558
  {
157634
157559
  "kind": "field",
@@ -157676,317 +157601,82 @@
157676
157601
  },
157677
157602
  {
157678
157603
  "kind": "field",
157679
- "name": "formAssociated",
157604
+ "name": "elementDependencies",
157680
157605
  "type": {
157681
- "text": "boolean"
157606
+ "text": "SbbElementType[]"
157682
157607
  },
157683
157608
  "privacy": "public",
157684
157609
  "static": true,
157685
- "default": "true",
157686
- "inheritedFrom": {
157687
- "name": "SbbFormAssociatedMixin",
157688
- "module": "core/mixins/form-associated-mixin.js"
157689
- }
157690
- },
157691
- {
157692
- "kind": "field",
157693
- "name": "form",
157694
- "type": {
157695
- "text": "HTMLFormElement | null"
157696
- },
157697
- "privacy": "public",
157698
- "description": "Returns the form owner of this element.",
157699
- "readonly": true,
157700
- "inheritedFrom": {
157701
- "name": "SbbFormAssociatedMixin",
157702
- "module": "core/mixins/form-associated-mixin.js"
157703
- }
157704
- },
157705
- {
157706
- "kind": "field",
157707
- "name": "name",
157708
- "privacy": "public",
157709
- "description": "Name of the form element. Will be read from name attribute.",
157710
- "type": {
157711
- "text": "string"
157712
- },
157713
- "attribute": "name",
157714
- "inheritedFrom": {
157715
- "name": "SbbFormAssociatedMixin",
157716
- "module": "core/mixins/form-associated-mixin.js"
157717
- }
157718
- },
157719
- {
157720
- "kind": "field",
157721
- "name": "validity",
157722
- "type": {
157723
- "text": "ValidityState"
157724
- },
157725
- "privacy": "public",
157726
- "description": "Returns the ValidityState object for this element.",
157727
- "readonly": true,
157610
+ "default": "[SbbIconElement]",
157728
157611
  "inheritedFrom": {
157729
- "name": "SbbFormAssociatedMixin",
157730
- "module": "core/mixins/form-associated-mixin.js"
157612
+ "name": "SbbElement",
157613
+ "module": "core/base-elements/element.js"
157731
157614
  }
157732
157615
  },
157733
157616
  {
157734
157617
  "kind": "field",
157735
- "name": "validationMessage",
157618
+ "name": "iconName",
157736
157619
  "type": {
157737
157620
  "text": "string"
157738
157621
  },
157739
157622
  "privacy": "public",
157740
- "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.",
157741
- "readonly": true,
157742
- "inheritedFrom": {
157743
- "name": "SbbFormAssociatedMixin",
157744
- "module": "core/mixins/form-associated-mixin.js"
157745
- }
157746
- },
157747
- {
157748
- "kind": "field",
157749
- "name": "willValidate",
157750
- "type": {
157751
- "text": "boolean"
157752
- },
157753
- "privacy": "public",
157754
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
157755
- "readonly": true,
157756
- "inheritedFrom": {
157757
- "name": "SbbFormAssociatedMixin",
157758
- "module": "core/mixins/form-associated-mixin.js"
157759
- }
157760
- },
157761
- {
157762
- "kind": "field",
157763
- "name": "_validityStates",
157764
- "privacy": "private",
157765
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
157766
- "inheritedFrom": {
157767
- "name": "SbbFormAssociatedMixin",
157768
- "module": "core/mixins/form-associated-mixin.js"
157769
- }
157770
- },
157771
- {
157772
- "kind": "field",
157773
- "name": "formDisabled",
157774
- "type": {
157775
- "text": "boolean"
157776
- },
157777
- "privacy": "protected",
157778
- "default": "false",
157779
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
157780
- "inheritedFrom": {
157781
- "name": "SbbFormAssociatedMixin",
157782
- "module": "core/mixins/form-associated-mixin.js"
157783
- }
157784
- },
157785
- {
157786
- "kind": "method",
157787
- "name": "checkValidity",
157788
- "privacy": "public",
157789
- "return": {
157790
- "type": {
157791
- "text": "boolean"
157792
- }
157793
- },
157794
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
157795
- "inheritedFrom": {
157796
- "name": "SbbFormAssociatedMixin",
157797
- "module": "core/mixins/form-associated-mixin.js"
157798
- }
157799
- },
157800
- {
157801
- "kind": "method",
157802
- "name": "reportValidity",
157803
- "privacy": "public",
157804
- "return": {
157805
- "type": {
157806
- "text": "boolean"
157807
- }
157808
- },
157809
- "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.",
157810
- "inheritedFrom": {
157811
- "name": "SbbFormAssociatedMixin",
157812
- "module": "core/mixins/form-associated-mixin.js"
157813
- }
157814
- },
157815
- {
157816
- "kind": "method",
157817
- "name": "setCustomValidity",
157818
- "privacy": "public",
157819
- "return": {
157820
- "type": {
157821
- "text": "void"
157822
- }
157823
- },
157824
- "parameters": [
157825
- {
157826
- "name": "message",
157827
- "type": {
157828
- "text": "string"
157829
- }
157830
- }
157831
- ],
157832
- "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.",
157833
- "inheritedFrom": {
157834
- "name": "SbbFormAssociatedMixin",
157835
- "module": "core/mixins/form-associated-mixin.js"
157836
- }
157837
- },
157838
- {
157839
- "kind": "method",
157840
- "name": "_hasDisabledAncestor",
157841
- "privacy": "private",
157842
- "return": {
157843
- "type": {
157844
- "text": "boolean"
157845
- }
157846
- },
157847
- "inheritedFrom": {
157848
- "name": "SbbFormAssociatedMixin",
157849
- "module": "core/mixins/form-associated-mixin.js"
157850
- }
157851
- },
157852
- {
157853
- "kind": "method",
157854
- "name": "updateFormValue",
157855
- "privacy": "protected",
157856
- "return": {
157857
- "type": {
157858
- "text": "void"
157859
- }
157860
- },
157861
- "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",
157862
- "inheritedFrom": {
157863
- "name": "SbbFormAssociatedMixin",
157864
- "module": "core/mixins/form-associated-mixin.js"
157865
- }
157866
- },
157867
- {
157868
- "kind": "method",
157869
- "name": "formState",
157870
- "privacy": "protected",
157871
- "return": {
157872
- "type": {
157873
- "text": "FormRestoreState"
157874
- }
157875
- },
157623
+ "default": "''",
157624
+ "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.",
157625
+ "attribute": "icon-name",
157876
157626
  "inheritedFrom": {
157877
- "name": "SbbFormAssociatedMixin",
157878
- "module": "core/mixins/form-associated-mixin.js"
157627
+ "name": "SbbIconNameMixin",
157628
+ "module": "icon/icon-name-mixin.js"
157879
157629
  }
157880
157630
  },
157881
157631
  {
157882
157632
  "kind": "method",
157883
- "name": "setValidityFlag",
157633
+ "name": "renderIconSlot",
157884
157634
  "privacy": "protected",
157885
157635
  "return": {
157886
157636
  "type": {
157887
- "text": "void"
157637
+ "text": "TemplateResult"
157888
157638
  }
157889
157639
  },
157890
157640
  "parameters": [
157891
157641
  {
157892
- "name": "flag",
157893
- "type": {
157894
- "text": "T"
157895
- }
157896
- },
157897
- {
157898
- "name": "message",
157899
- "type": {
157900
- "text": "string"
157901
- }
157902
- },
157903
- {
157904
- "name": "flagValue",
157642
+ "name": "classname",
157905
157643
  "optional": true,
157906
157644
  "type": {
157907
- "text": "ValidityStateFlags[T]"
157908
- }
157909
- }
157910
- ],
157911
- "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).",
157912
- "inheritedFrom": {
157913
- "name": "SbbFormAssociatedMixin",
157914
- "module": "core/mixins/form-associated-mixin.js"
157915
- }
157916
- },
157917
- {
157918
- "kind": "method",
157919
- "name": "removeValidityFlag",
157920
- "privacy": "protected",
157921
- "return": {
157922
- "type": {
157923
- "text": "void"
157924
- }
157925
- },
157926
- "parameters": [
157927
- {
157928
- "name": "flag",
157929
- "type": {
157930
- "text": "T"
157645
+ "text": "string"
157931
157646
  }
157932
157647
  }
157933
157648
  ],
157934
- "description": "Removes the validity state flag entry and updates validity state.",
157935
157649
  "inheritedFrom": {
157936
- "name": "SbbFormAssociatedMixin",
157937
- "module": "core/mixins/form-associated-mixin.js"
157938
- }
157939
- },
157940
- {
157941
- "kind": "method",
157942
- "name": "validate",
157943
- "privacy": "protected",
157944
- "return": {
157945
- "type": {
157946
- "text": "void"
157947
- }
157948
- },
157949
- "description": "To be called whenever the current element needs to be validated.",
157950
- "inheritedFrom": {
157951
- "name": "SbbFormAssociatedMixin",
157952
- "module": "core/mixins/form-associated-mixin.js"
157650
+ "name": "SbbIconNameMixin",
157651
+ "module": "icon/icon-name-mixin.js"
157953
157652
  }
157954
157653
  },
157955
157654
  {
157956
157655
  "kind": "method",
157957
- "name": "shouldValidate",
157656
+ "name": "renderIconName",
157958
157657
  "privacy": "protected",
157959
157658
  "return": {
157960
157659
  "type": {
157961
- "text": "boolean"
157660
+ "text": "string"
157962
157661
  }
157963
157662
  },
157964
- "parameters": [
157965
- {
157966
- "name": "name",
157967
- "type": {
157968
- "text": "PropertyKey | undefined"
157969
- }
157970
- }
157971
- ],
157972
- "description": "Whether validation should be run on a property change with the given name.",
157973
157663
  "inheritedFrom": {
157974
- "name": "SbbFormAssociatedMixin",
157975
- "module": "core/mixins/form-associated-mixin.js"
157664
+ "name": "SbbIconNameMixin",
157665
+ "module": "icon/icon-name-mixin.js"
157976
157666
  }
157977
157667
  },
157978
157668
  {
157979
157669
  "kind": "method",
157980
- "name": "_setInternalValidity",
157670
+ "name": "_renderIconName",
157981
157671
  "privacy": "private",
157982
157672
  "return": {
157983
157673
  "type": {
157984
- "text": "void"
157674
+ "text": "string"
157985
157675
  }
157986
157676
  },
157987
157677
  "inheritedFrom": {
157988
- "name": "SbbFormAssociatedMixin",
157989
- "module": "core/mixins/form-associated-mixin.js"
157678
+ "name": "SbbIconNameMixin",
157679
+ "module": "icon/icon-name-mixin.js"
157990
157680
  }
157991
157681
  },
157992
157682
  {
@@ -158003,19 +157693,6 @@
158003
157693
  "module": "core/base-elements/element.js"
158004
157694
  }
158005
157695
  },
158006
- {
158007
- "kind": "field",
158008
- "name": "elementDependencies",
158009
- "type": {
158010
- "text": "SbbElementType[] | undefined"
158011
- },
158012
- "privacy": "public",
158013
- "static": true,
158014
- "inheritedFrom": {
158015
- "name": "SbbElement",
158016
- "module": "core/base-elements/element.js"
158017
- }
158018
- },
158019
157696
  {
158020
157697
  "kind": "field",
158021
157698
  "name": "_controllers",
@@ -158238,38 +157915,30 @@
158238
157915
  ],
158239
157916
  "events": [
158240
157917
  {
158241
- "name": "change",
158242
157918
  "type": {
158243
- "text": "Event"
157919
+ "text": "InputEvent"
158244
157920
  },
158245
- "description": "The change event is fired when the user modifies the element's value.\nUnlike the input event, the change event is not necessarily fired\nfor each alteration to an element's value."
157921
+ "description": "The input event fires when the value has been changed as a direct result of a user action.",
157922
+ "name": "input"
158246
157923
  }
158247
157924
  ],
158248
157925
  "attributes": [
158249
157926
  {
158250
- "name": "even",
157927
+ "name": "checked",
158251
157928
  "type": {
158252
157929
  "text": "boolean"
158253
157930
  },
158254
157931
  "default": "false",
158255
- "description": "If true, set the width of the component fixed; if false,\nthe width is dynamic based on the label of the sbb-toggle-option.",
158256
- "fieldName": "even"
158257
- },
158258
- {
158259
- "name": "size",
158260
- "type": {
158261
- "text": "'s' | 'm'"
158262
- },
158263
- "description": "Size variant, either m or s.",
158264
- "default": "'m' / 's' (lean)",
158265
- "fieldName": "size"
157932
+ "description": "Whether the toggle-option is checked.",
157933
+ "fieldName": "checked"
158266
157934
  },
158267
157935
  {
158268
157936
  "name": "value",
158269
- "description": "The value of the toggle. It needs to be mutable since it is updated whenever\na new option is selected (see the `onToggleOptionSelect()` method).",
158270
157937
  "type": {
158271
157938
  "text": "T | null"
158272
157939
  },
157940
+ "default": "null",
157941
+ "description": "Value of toggle-option.",
158273
157942
  "fieldName": "value"
158274
157943
  },
158275
157944
  {
@@ -158286,15 +157955,16 @@
158286
157955
  }
158287
157956
  },
158288
157957
  {
158289
- "name": "name",
158290
- "description": "Name of the form element. Will be read from name attribute.",
157958
+ "name": "icon-name",
158291
157959
  "type": {
158292
157960
  "text": "string"
158293
157961
  },
158294
- "fieldName": "name",
157962
+ "default": "''",
157963
+ "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.",
157964
+ "fieldName": "iconName",
158295
157965
  "inheritedFrom": {
158296
- "name": "SbbFormAssociatedMixin",
158297
- "module": "core/mixins/form-associated-mixin.js"
157966
+ "name": "SbbIconNameMixin",
157967
+ "module": "icon/icon-name-mixin.js"
158298
157968
  }
158299
157969
  }
158300
157970
  ],
@@ -158304,15 +157974,15 @@
158304
157974
  "module": "core.js"
158305
157975
  },
158306
157976
  {
158307
- "name": "SbbFormAssociatedMixin",
158308
- "module": "core.js"
157977
+ "name": "SbbIconNameMixin",
157978
+ "module": "icon.pure.js"
158309
157979
  }
158310
157980
  ],
158311
157981
  "superclass": {
158312
157982
  "name": "SbbElement",
158313
157983
  "module": "core.js"
158314
157984
  },
158315
- "tagName": "sbb-toggle",
157985
+ "tagName": "sbb-toggle-option",
158316
157986
  "customElement": true,
158317
157987
  "classGenerics": "T = string"
158318
157988
  }
@@ -158320,30 +157990,26 @@
158320
157990
  "exports": [
158321
157991
  {
158322
157992
  "kind": "js",
158323
- "name": "SbbToggleElement",
157993
+ "name": "SbbToggleOptionElement",
158324
157994
  "declaration": {
158325
- "name": "SbbToggleElement",
158326
- "module": "toggle/toggle/toggle.component.js"
157995
+ "name": "SbbToggleOptionElement",
157996
+ "module": "toggle/toggle-option/toggle-option.component.js"
158327
157997
  }
158328
157998
  }
158329
157999
  ]
158330
158000
  },
158331
158001
  {
158332
158002
  "kind": "javascript-module",
158333
- "path": "toggle/toggle-option/toggle-option.component.js",
158003
+ "path": "toggle/toggle/toggle.component.js",
158334
158004
  "declarations": [
158335
158005
  {
158336
158006
  "kind": "class",
158337
- "description": "It displays a toggle option within a `sbb-toggle`.",
158338
- "name": "SbbToggleOptionElement",
158007
+ "description": "It can be used as a container for two `sbb-toggle-option`, acting as a toggle button.",
158008
+ "name": "SbbToggleElement",
158339
158009
  "slots": [
158340
158010
  {
158341
- "description": "Use the unnamed slot to add content to the label of the toggle option.",
158011
+ "description": "Use the unnamed slot to add `<sbb-toggle-option>` elements to the toggle.",
158342
158012
  "name": ""
158343
- },
158344
- {
158345
- "description": "Slot used to render the `sbb-icon`.",
158346
- "name": "icon"
158347
158013
  }
158348
158014
  ],
158349
158015
  "members": [
@@ -158356,7 +158022,7 @@
158356
158022
  "privacy": "public",
158357
158023
  "static": true,
158358
158024
  "readonly": true,
158359
- "default": "'sbb-toggle-option'",
158025
+ "default": "'sbb-toggle'",
158360
158026
  "inheritedFrom": {
158361
158027
  "name": "SbbElement",
158362
158028
  "module": "core/base-elements/element.js"
@@ -158371,7 +158037,7 @@
158371
158037
  "privacy": "public",
158372
158038
  "static": true,
158373
158039
  "readonly": true,
158374
- "default": "'radio'",
158040
+ "default": "'radiogroup'",
158375
158041
  "inheritedFrom": {
158376
158042
  "name": "SbbElement",
158377
158043
  "module": "core/base-elements/element.js"
@@ -158379,14 +158045,37 @@
158379
158045
  },
158380
158046
  {
158381
158047
  "kind": "field",
158382
- "name": "checked",
158048
+ "name": "events",
158049
+ "privacy": "public",
158050
+ "static": true,
158051
+ "readonly": true,
158052
+ "default": "{ change: 'change', }",
158053
+ "type": {
158054
+ "text": "{\n change: 'change',\n }"
158055
+ }
158056
+ },
158057
+ {
158058
+ "kind": "field",
158059
+ "name": "even",
158383
158060
  "type": {
158384
158061
  "text": "boolean"
158385
158062
  },
158386
158063
  "privacy": "public",
158387
158064
  "default": "false",
158388
- "description": "Whether the toggle-option is checked.",
158389
- "attribute": "checked",
158065
+ "description": "If true, set the width of the component fixed; if false,\nthe width is dynamic based on the label of the sbb-toggle-option.",
158066
+ "attribute": "even",
158067
+ "reflects": true
158068
+ },
158069
+ {
158070
+ "kind": "field",
158071
+ "name": "size",
158072
+ "type": {
158073
+ "text": "'s' | 'm'"
158074
+ },
158075
+ "privacy": "public",
158076
+ "description": "Size variant, either m or s.",
158077
+ "default": "'m' / 's' (lean)",
158078
+ "attribute": "size",
158390
158079
  "reflects": true
158391
158080
  },
158392
158081
  {
@@ -158396,22 +158085,53 @@
158396
158085
  "text": "(T = string) | null"
158397
158086
  },
158398
158087
  "privacy": "public",
158399
- "default": "null",
158400
- "description": "Value of toggle-option.",
158401
- "attribute": "value"
158088
+ "description": "The value of the toggle. It needs to be mutable since it is updated whenever\na new option is selected (see the `onToggleOptionSelect()` method).",
158089
+ "attribute": "value",
158090
+ "inheritedFrom": {
158091
+ "name": "SbbFormAssociatedMixin",
158092
+ "module": "core/mixins/form-associated-mixin.js"
158093
+ }
158402
158094
  },
158403
158095
  {
158404
158096
  "kind": "field",
158405
- "name": "_toggle",
158097
+ "name": "_fallbackValue",
158406
158098
  "type": {
158407
- "text": "SbbToggleElement | null"
158099
+ "text": "T | null"
158408
158100
  },
158409
158101
  "privacy": "private",
158410
158102
  "default": "null"
158411
158103
  },
158104
+ {
158105
+ "kind": "field",
158106
+ "name": "options",
158107
+ "type": {
158108
+ "text": "SbbToggleOptionElement<T>[]"
158109
+ },
158110
+ "privacy": "public",
158111
+ "description": "The child instances of sbb-toggle-option as an array.",
158112
+ "readonly": true
158113
+ },
158412
158114
  {
158413
158115
  "kind": "method",
158414
- "name": "_uncheckOtherOptions",
158116
+ "name": "_readFormData",
158117
+ "privacy": "private",
158118
+ "return": {
158119
+ "type": {
158120
+ "text": "Promise<T>"
158121
+ }
158122
+ },
158123
+ "parameters": [
158124
+ {
158125
+ "name": "formData",
158126
+ "type": {
158127
+ "text": "FormData"
158128
+ }
158129
+ }
158130
+ ]
158131
+ },
158132
+ {
158133
+ "kind": "method",
158134
+ "name": "_updateToggle",
158415
158135
  "privacy": "private",
158416
158136
  "return": {
158417
158137
  "type": {
@@ -158421,7 +158141,25 @@
158421
158141
  },
158422
158142
  {
158423
158143
  "kind": "method",
158424
- "name": "_handleDisabledChange",
158144
+ "name": "_valueChanged",
158145
+ "privacy": "private",
158146
+ "return": {
158147
+ "type": {
158148
+ "text": "void"
158149
+ }
158150
+ },
158151
+ "parameters": [
158152
+ {
158153
+ "name": "value",
158154
+ "type": {
158155
+ "text": "T | null"
158156
+ }
158157
+ }
158158
+ ]
158159
+ },
158160
+ {
158161
+ "kind": "method",
158162
+ "name": "_updateDisabled",
158425
158163
  "privacy": "private",
158426
158164
  "return": {
158427
158165
  "type": {
@@ -158437,17 +158175,44 @@
158437
158175
  "type": {
158438
158176
  "text": "void"
158439
158177
  }
158440
- }
158178
+ },
158179
+ "description": "Called on user interaction (click or keyboard)"
158441
158180
  },
158442
158181
  {
158443
158182
  "kind": "method",
158444
- "name": "_verifyTabindex",
158183
+ "name": "_handleKeyDown",
158445
158184
  "privacy": "private",
158446
158185
  "return": {
158447
158186
  "type": {
158448
158187
  "text": "void"
158449
158188
  }
158450
- }
158189
+ },
158190
+ "parameters": [
158191
+ {
158192
+ "name": "evt",
158193
+ "type": {
158194
+ "text": "KeyboardEvent"
158195
+ }
158196
+ }
158197
+ ]
158198
+ },
158199
+ {
158200
+ "kind": "method",
158201
+ "name": "_selectAndFocusOption",
158202
+ "privacy": "private",
158203
+ "return": {
158204
+ "type": {
158205
+ "text": "void"
158206
+ }
158207
+ },
158208
+ "parameters": [
158209
+ {
158210
+ "name": "option",
158211
+ "type": {
158212
+ "text": "SbbToggleOptionElement<T> | undefined"
158213
+ }
158214
+ }
158215
+ ]
158451
158216
  },
158452
158217
  {
158453
158218
  "kind": "field",
@@ -158495,82 +158260,317 @@
158495
158260
  },
158496
158261
  {
158497
158262
  "kind": "field",
158498
- "name": "elementDependencies",
158263
+ "name": "formAssociated",
158499
158264
  "type": {
158500
- "text": "SbbElementType[]"
158265
+ "text": "boolean"
158501
158266
  },
158502
158267
  "privacy": "public",
158503
158268
  "static": true,
158504
- "default": "[SbbIconElement]",
158269
+ "default": "true",
158505
158270
  "inheritedFrom": {
158506
- "name": "SbbElement",
158507
- "module": "core/base-elements/element.js"
158271
+ "name": "SbbFormAssociatedMixin",
158272
+ "module": "core/mixins/form-associated-mixin.js"
158508
158273
  }
158509
158274
  },
158510
158275
  {
158511
158276
  "kind": "field",
158512
- "name": "iconName",
158277
+ "name": "form",
158278
+ "type": {
158279
+ "text": "HTMLFormElement | null"
158280
+ },
158281
+ "privacy": "public",
158282
+ "description": "Returns the form owner of this element.",
158283
+ "readonly": true,
158284
+ "inheritedFrom": {
158285
+ "name": "SbbFormAssociatedMixin",
158286
+ "module": "core/mixins/form-associated-mixin.js"
158287
+ }
158288
+ },
158289
+ {
158290
+ "kind": "field",
158291
+ "name": "name",
158292
+ "privacy": "public",
158293
+ "description": "Name of the form element. Will be read from name attribute.",
158513
158294
  "type": {
158514
158295
  "text": "string"
158515
158296
  },
158297
+ "attribute": "name",
158298
+ "inheritedFrom": {
158299
+ "name": "SbbFormAssociatedMixin",
158300
+ "module": "core/mixins/form-associated-mixin.js"
158301
+ }
158302
+ },
158303
+ {
158304
+ "kind": "field",
158305
+ "name": "validity",
158306
+ "type": {
158307
+ "text": "ValidityState"
158308
+ },
158516
158309
  "privacy": "public",
158517
- "default": "''",
158518
- "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.",
158519
- "attribute": "icon-name",
158310
+ "description": "Returns the ValidityState object for this element.",
158311
+ "readonly": true,
158520
158312
  "inheritedFrom": {
158521
- "name": "SbbIconNameMixin",
158522
- "module": "icon/icon-name-mixin.js"
158313
+ "name": "SbbFormAssociatedMixin",
158314
+ "module": "core/mixins/form-associated-mixin.js"
158315
+ }
158316
+ },
158317
+ {
158318
+ "kind": "field",
158319
+ "name": "validationMessage",
158320
+ "type": {
158321
+ "text": "string"
158322
+ },
158323
+ "privacy": "public",
158324
+ "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.",
158325
+ "readonly": true,
158326
+ "inheritedFrom": {
158327
+ "name": "SbbFormAssociatedMixin",
158328
+ "module": "core/mixins/form-associated-mixin.js"
158329
+ }
158330
+ },
158331
+ {
158332
+ "kind": "field",
158333
+ "name": "willValidate",
158334
+ "type": {
158335
+ "text": "boolean"
158336
+ },
158337
+ "privacy": "public",
158338
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
158339
+ "readonly": true,
158340
+ "inheritedFrom": {
158341
+ "name": "SbbFormAssociatedMixin",
158342
+ "module": "core/mixins/form-associated-mixin.js"
158343
+ }
158344
+ },
158345
+ {
158346
+ "kind": "field",
158347
+ "name": "_validityStates",
158348
+ "privacy": "private",
158349
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
158350
+ "inheritedFrom": {
158351
+ "name": "SbbFormAssociatedMixin",
158352
+ "module": "core/mixins/form-associated-mixin.js"
158353
+ }
158354
+ },
158355
+ {
158356
+ "kind": "field",
158357
+ "name": "formDisabled",
158358
+ "type": {
158359
+ "text": "boolean"
158360
+ },
158361
+ "privacy": "protected",
158362
+ "default": "false",
158363
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
158364
+ "inheritedFrom": {
158365
+ "name": "SbbFormAssociatedMixin",
158366
+ "module": "core/mixins/form-associated-mixin.js"
158523
158367
  }
158524
158368
  },
158525
158369
  {
158526
158370
  "kind": "method",
158527
- "name": "renderIconSlot",
158371
+ "name": "checkValidity",
158372
+ "privacy": "public",
158373
+ "return": {
158374
+ "type": {
158375
+ "text": "boolean"
158376
+ }
158377
+ },
158378
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
158379
+ "inheritedFrom": {
158380
+ "name": "SbbFormAssociatedMixin",
158381
+ "module": "core/mixins/form-associated-mixin.js"
158382
+ }
158383
+ },
158384
+ {
158385
+ "kind": "method",
158386
+ "name": "reportValidity",
158387
+ "privacy": "public",
158388
+ "return": {
158389
+ "type": {
158390
+ "text": "boolean"
158391
+ }
158392
+ },
158393
+ "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.",
158394
+ "inheritedFrom": {
158395
+ "name": "SbbFormAssociatedMixin",
158396
+ "module": "core/mixins/form-associated-mixin.js"
158397
+ }
158398
+ },
158399
+ {
158400
+ "kind": "method",
158401
+ "name": "setCustomValidity",
158402
+ "privacy": "public",
158403
+ "return": {
158404
+ "type": {
158405
+ "text": "void"
158406
+ }
158407
+ },
158408
+ "parameters": [
158409
+ {
158410
+ "name": "message",
158411
+ "type": {
158412
+ "text": "string"
158413
+ }
158414
+ }
158415
+ ],
158416
+ "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.",
158417
+ "inheritedFrom": {
158418
+ "name": "SbbFormAssociatedMixin",
158419
+ "module": "core/mixins/form-associated-mixin.js"
158420
+ }
158421
+ },
158422
+ {
158423
+ "kind": "method",
158424
+ "name": "_hasDisabledAncestor",
158425
+ "privacy": "private",
158426
+ "return": {
158427
+ "type": {
158428
+ "text": "boolean"
158429
+ }
158430
+ },
158431
+ "inheritedFrom": {
158432
+ "name": "SbbFormAssociatedMixin",
158433
+ "module": "core/mixins/form-associated-mixin.js"
158434
+ }
158435
+ },
158436
+ {
158437
+ "kind": "method",
158438
+ "name": "updateFormValue",
158528
158439
  "privacy": "protected",
158529
158440
  "return": {
158530
158441
  "type": {
158531
- "text": "TemplateResult"
158442
+ "text": "void"
158443
+ }
158444
+ },
158445
+ "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",
158446
+ "inheritedFrom": {
158447
+ "name": "SbbFormAssociatedMixin",
158448
+ "module": "core/mixins/form-associated-mixin.js"
158449
+ }
158450
+ },
158451
+ {
158452
+ "kind": "method",
158453
+ "name": "formState",
158454
+ "privacy": "protected",
158455
+ "return": {
158456
+ "type": {
158457
+ "text": "FormRestoreState"
158458
+ }
158459
+ },
158460
+ "inheritedFrom": {
158461
+ "name": "SbbFormAssociatedMixin",
158462
+ "module": "core/mixins/form-associated-mixin.js"
158463
+ }
158464
+ },
158465
+ {
158466
+ "kind": "method",
158467
+ "name": "setValidityFlag",
158468
+ "privacy": "protected",
158469
+ "return": {
158470
+ "type": {
158471
+ "text": "void"
158532
158472
  }
158533
158473
  },
158534
158474
  "parameters": [
158535
158475
  {
158536
- "name": "classname",
158537
- "optional": true,
158476
+ "name": "flag",
158477
+ "type": {
158478
+ "text": "T"
158479
+ }
158480
+ },
158481
+ {
158482
+ "name": "message",
158538
158483
  "type": {
158539
158484
  "text": "string"
158540
158485
  }
158486
+ },
158487
+ {
158488
+ "name": "flagValue",
158489
+ "optional": true,
158490
+ "type": {
158491
+ "text": "ValidityStateFlags[T]"
158492
+ }
158541
158493
  }
158542
158494
  ],
158495
+ "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).",
158543
158496
  "inheritedFrom": {
158544
- "name": "SbbIconNameMixin",
158545
- "module": "icon/icon-name-mixin.js"
158497
+ "name": "SbbFormAssociatedMixin",
158498
+ "module": "core/mixins/form-associated-mixin.js"
158546
158499
  }
158547
158500
  },
158548
158501
  {
158549
158502
  "kind": "method",
158550
- "name": "renderIconName",
158503
+ "name": "removeValidityFlag",
158551
158504
  "privacy": "protected",
158552
158505
  "return": {
158553
158506
  "type": {
158554
- "text": "string"
158507
+ "text": "void"
158555
158508
  }
158556
158509
  },
158510
+ "parameters": [
158511
+ {
158512
+ "name": "flag",
158513
+ "type": {
158514
+ "text": "T"
158515
+ }
158516
+ }
158517
+ ],
158518
+ "description": "Removes the validity state flag entry and updates validity state.",
158557
158519
  "inheritedFrom": {
158558
- "name": "SbbIconNameMixin",
158559
- "module": "icon/icon-name-mixin.js"
158520
+ "name": "SbbFormAssociatedMixin",
158521
+ "module": "core/mixins/form-associated-mixin.js"
158560
158522
  }
158561
158523
  },
158562
158524
  {
158563
158525
  "kind": "method",
158564
- "name": "_renderIconName",
158526
+ "name": "validate",
158527
+ "privacy": "protected",
158528
+ "return": {
158529
+ "type": {
158530
+ "text": "void"
158531
+ }
158532
+ },
158533
+ "description": "To be called whenever the current element needs to be validated.",
158534
+ "inheritedFrom": {
158535
+ "name": "SbbFormAssociatedMixin",
158536
+ "module": "core/mixins/form-associated-mixin.js"
158537
+ }
158538
+ },
158539
+ {
158540
+ "kind": "method",
158541
+ "name": "shouldValidate",
158542
+ "privacy": "protected",
158543
+ "return": {
158544
+ "type": {
158545
+ "text": "boolean"
158546
+ }
158547
+ },
158548
+ "parameters": [
158549
+ {
158550
+ "name": "name",
158551
+ "type": {
158552
+ "text": "PropertyKey | undefined"
158553
+ }
158554
+ }
158555
+ ],
158556
+ "description": "Whether validation should be run on a property change with the given name.",
158557
+ "inheritedFrom": {
158558
+ "name": "SbbFormAssociatedMixin",
158559
+ "module": "core/mixins/form-associated-mixin.js"
158560
+ }
158561
+ },
158562
+ {
158563
+ "kind": "method",
158564
+ "name": "_setInternalValidity",
158565
158565
  "privacy": "private",
158566
158566
  "return": {
158567
158567
  "type": {
158568
- "text": "string"
158568
+ "text": "void"
158569
158569
  }
158570
158570
  },
158571
158571
  "inheritedFrom": {
158572
- "name": "SbbIconNameMixin",
158573
- "module": "icon/icon-name-mixin.js"
158572
+ "name": "SbbFormAssociatedMixin",
158573
+ "module": "core/mixins/form-associated-mixin.js"
158574
158574
  }
158575
158575
  },
158576
158576
  {
@@ -158587,6 +158587,19 @@
158587
158587
  "module": "core/base-elements/element.js"
158588
158588
  }
158589
158589
  },
158590
+ {
158591
+ "kind": "field",
158592
+ "name": "elementDependencies",
158593
+ "type": {
158594
+ "text": "SbbElementType[] | undefined"
158595
+ },
158596
+ "privacy": "public",
158597
+ "static": true,
158598
+ "inheritedFrom": {
158599
+ "name": "SbbElement",
158600
+ "module": "core/base-elements/element.js"
158601
+ }
158602
+ },
158590
158603
  {
158591
158604
  "kind": "field",
158592
158605
  "name": "_controllers",
@@ -158809,30 +158822,38 @@
158809
158822
  ],
158810
158823
  "events": [
158811
158824
  {
158825
+ "name": "change",
158812
158826
  "type": {
158813
- "text": "InputEvent"
158827
+ "text": "Event"
158814
158828
  },
158815
- "description": "The input event fires when the value has been changed as a direct result of a user action.",
158816
- "name": "input"
158829
+ "description": "The change event is fired when the user modifies the element's value.\nUnlike the input event, the change event is not necessarily fired\nfor each alteration to an element's value."
158817
158830
  }
158818
158831
  ],
158819
158832
  "attributes": [
158820
158833
  {
158821
- "name": "checked",
158834
+ "name": "even",
158822
158835
  "type": {
158823
158836
  "text": "boolean"
158824
158837
  },
158825
158838
  "default": "false",
158826
- "description": "Whether the toggle-option is checked.",
158827
- "fieldName": "checked"
158839
+ "description": "If true, set the width of the component fixed; if false,\nthe width is dynamic based on the label of the sbb-toggle-option.",
158840
+ "fieldName": "even"
158841
+ },
158842
+ {
158843
+ "name": "size",
158844
+ "type": {
158845
+ "text": "'s' | 'm'"
158846
+ },
158847
+ "description": "Size variant, either m or s.",
158848
+ "default": "'m' / 's' (lean)",
158849
+ "fieldName": "size"
158828
158850
  },
158829
158851
  {
158830
158852
  "name": "value",
158853
+ "description": "The value of the toggle. It needs to be mutable since it is updated whenever\na new option is selected (see the `onToggleOptionSelect()` method).",
158831
158854
  "type": {
158832
158855
  "text": "T | null"
158833
158856
  },
158834
- "default": "null",
158835
- "description": "Value of toggle-option.",
158836
158857
  "fieldName": "value"
158837
158858
  },
158838
158859
  {
@@ -158849,16 +158870,15 @@
158849
158870
  }
158850
158871
  },
158851
158872
  {
158852
- "name": "icon-name",
158873
+ "name": "name",
158874
+ "description": "Name of the form element. Will be read from name attribute.",
158853
158875
  "type": {
158854
158876
  "text": "string"
158855
158877
  },
158856
- "default": "''",
158857
- "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.",
158858
- "fieldName": "iconName",
158878
+ "fieldName": "name",
158859
158879
  "inheritedFrom": {
158860
- "name": "SbbIconNameMixin",
158861
- "module": "icon/icon-name-mixin.js"
158880
+ "name": "SbbFormAssociatedMixin",
158881
+ "module": "core/mixins/form-associated-mixin.js"
158862
158882
  }
158863
158883
  }
158864
158884
  ],
@@ -158868,15 +158888,15 @@
158868
158888
  "module": "core.js"
158869
158889
  },
158870
158890
  {
158871
- "name": "SbbIconNameMixin",
158872
- "module": "icon.pure.js"
158891
+ "name": "SbbFormAssociatedMixin",
158892
+ "module": "core.js"
158873
158893
  }
158874
158894
  ],
158875
158895
  "superclass": {
158876
158896
  "name": "SbbElement",
158877
158897
  "module": "core.js"
158878
158898
  },
158879
- "tagName": "sbb-toggle-option",
158899
+ "tagName": "sbb-toggle",
158880
158900
  "customElement": true,
158881
158901
  "classGenerics": "T = string"
158882
158902
  }
@@ -158884,10 +158904,10 @@
158884
158904
  "exports": [
158885
158905
  {
158886
158906
  "kind": "js",
158887
- "name": "SbbToggleOptionElement",
158907
+ "name": "SbbToggleElement",
158888
158908
  "declaration": {
158889
- "name": "SbbToggleOptionElement",
158890
- "module": "toggle/toggle-option/toggle-option.component.js"
158909
+ "name": "SbbToggleElement",
158910
+ "module": "toggle/toggle/toggle.component.js"
158891
158911
  }
158892
158912
  }
158893
158913
  ]