@sbb-esta/lyne-elements-dev 5.0.0-next-dev.1777021773 → 5.0.0-next-dev.1777034079

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/custom-elements.json +790 -790
  2. package/package.json +2 -2
@@ -148314,79 +148314,16 @@
148314
148314
  },
148315
148315
  {
148316
148316
  "kind": "javascript-module",
148317
- "path": "stepper/stepper/stepper.component.js",
148317
+ "path": "table/table-wrapper/table-wrapper.component.js",
148318
148318
  "declarations": [
148319
148319
  {
148320
148320
  "kind": "class",
148321
- "description": "",
148322
- "name": "SbbStepChangeEvent",
148323
- "members": [
148324
- {
148325
- "kind": "field",
148326
- "name": "selectedIndex",
148327
- "type": {
148328
- "text": "number | null"
148329
- },
148330
- "privacy": "public",
148331
- "readonly": true,
148332
- "description": "The index of the newly selected step.",
148333
- "default": "selectedIndex"
148334
- },
148335
- {
148336
- "kind": "field",
148337
- "name": "previousIndex",
148338
- "type": {
148339
- "text": "number | null"
148340
- },
148341
- "privacy": "public",
148342
- "readonly": true,
148343
- "description": "The index of the previously selected step.",
148344
- "default": "previousIndex"
148345
- },
148346
- {
148347
- "kind": "field",
148348
- "name": "selectedStep",
148349
- "type": {
148350
- "text": "SbbStepElement | null"
148351
- },
148352
- "privacy": "public",
148353
- "readonly": true,
148354
- "description": "The newly selected step element.",
148355
- "default": "selectedStep"
148356
- },
148357
- {
148358
- "kind": "field",
148359
- "name": "previousStep",
148360
- "type": {
148361
- "text": "SbbStepElement | null"
148362
- },
148363
- "privacy": "public",
148364
- "readonly": true,
148365
- "description": "The previously selected step element.",
148366
- "default": "previousStep"
148367
- }
148368
- ],
148369
- "superclass": {
148370
- "name": "Event",
148371
- "module": "stepper/stepper/stepper.component.js"
148372
- }
148373
- },
148374
- {
148375
- "kind": "class",
148376
- "description": "Provides a structured, step-by-step workflow for user interactions.",
148377
- "name": "SbbStepperElement",
148321
+ "description": "Wraps a table to enhance its functionality.",
148322
+ "name": "SbbTableWrapperElement",
148378
148323
  "slots": [
148379
148324
  {
148380
- "description": "Provide a `sbb-expansion-panel-header` and a `sbb-expansion-panel-content` to the stepper.",
148325
+ "description": "Use the unnamed slot to add the table.",
148381
148326
  "name": ""
148382
- },
148383
- {
148384
- "description": "Use this slot to provide an `sbb-step-label`.",
148385
- "name": "step-label"
148386
- },
148387
- {
148388
- "description": "Use this slot to provide an `sbb-step`.",
148389
- "name": "step"
148390
148327
  }
148391
148328
  ],
148392
148329
  "members": [
@@ -148399,7 +148336,7 @@
148399
148336
  "privacy": "public",
148400
148337
  "static": true,
148401
148338
  "readonly": true,
148402
- "default": "'sbb-stepper'",
148339
+ "default": "'sbb-table-wrapper'",
148403
148340
  "inheritedFrom": {
148404
148341
  "name": "SbbElement",
148405
148342
  "module": "core/base-elements/element.js"
@@ -148407,212 +148344,239 @@
148407
148344
  },
148408
148345
  {
148409
148346
  "kind": "field",
148410
- "name": "events",
148347
+ "name": "role",
148348
+ "type": {
148349
+ "text": "string"
148350
+ },
148411
148351
  "privacy": "public",
148412
148352
  "static": true,
148413
148353
  "readonly": true,
148414
- "default": "{ stepchange: 'stepchange', }",
148415
- "type": {
148416
- "text": "{\n stepchange: 'stepchange',\n }"
148354
+ "default": "'section'",
148355
+ "inheritedFrom": {
148356
+ "name": "SbbElement",
148357
+ "module": "core/base-elements/element.js"
148417
148358
  }
148418
148359
  },
148419
148360
  {
148420
148361
  "kind": "field",
148421
- "name": "_observer",
148422
- "privacy": "private",
148423
- "default": "new IntersectionController(this, { target: null, callback: (entries) => { entries.forEach((e) => { if (e.intersectionRatio > 0) { this._setStepperHeight(this.selected); this._setMarkerSize(); } }); }, })",
148424
- "description": "If the sbb-stepper is used in a sbb-dialog, the marker on the selected element will not appear,\nbecause the calculations are done when the dialog is closed, so the marker has a width of 0;\nthe same happens for the stepper height.\nWe need to recalculate it when the element becomes visible."
148425
- },
148426
- {
148427
- "kind": "field",
148428
- "name": "linear",
148362
+ "name": "focusable",
148429
148363
  "type": {
148430
148364
  "text": "boolean"
148431
148365
  },
148432
148366
  "privacy": "public",
148433
148367
  "default": "false",
148434
- "description": "If set to true, only the current and previous labels can be clicked and selected.",
148435
- "attribute": "linear"
148368
+ "description": "Whether the table wrapper is focusable.",
148369
+ "attribute": "focusable",
148370
+ "reflects": true
148436
148371
  },
148437
148372
  {
148438
- "kind": "field",
148439
- "name": "horizontalFrom",
148440
- "privacy": "public",
148441
- "description": "Overrides the behavior of `orientation` property.",
148442
- "type": {
148443
- "text": "SbbHorizontalFrom | null"
148444
- },
148445
- "attribute": "horizontal-from",
148446
- "reflects": true,
148447
- "default": "null"
148373
+ "kind": "method",
148374
+ "name": "_updateScrollbarClass",
148375
+ "privacy": "private",
148376
+ "return": {
148377
+ "type": {
148378
+ "text": "void"
148379
+ }
148380
+ }
148448
148381
  },
148449
148382
  {
148450
- "kind": "field",
148451
- "name": "_horizontalFrom",
148452
- "type": {
148453
- "text": "SbbHorizontalFrom | null"
148383
+ "kind": "method",
148384
+ "name": "_checkHorizontalScrollbarOffset",
148385
+ "privacy": "private",
148386
+ "return": {
148387
+ "type": {
148388
+ "text": "void"
148389
+ }
148454
148390
  },
148391
+ "description": "Calculates whether the table is horizontally scrolled and adds the\ncorresponding class `sbb-table-wrapper-offset-${none | left | right | both}`"
148392
+ },
148393
+ {
148394
+ "kind": "method",
148395
+ "name": "_calculateScrollOffset",
148455
148396
  "privacy": "private",
148456
- "default": "null"
148397
+ "return": {
148398
+ "type": {
148399
+ "text": "'none' | 'left' | 'right' | 'both'"
148400
+ }
148401
+ }
148457
148402
  },
148458
148403
  {
148459
148404
  "kind": "field",
148460
- "name": "orientation",
148405
+ "name": "negative",
148461
148406
  "type": {
148462
- "text": "SbbOrientation"
148407
+ "text": "boolean"
148463
148408
  },
148464
148409
  "privacy": "public",
148465
- "default": "'horizontal'",
148466
- "description": "Steps orientation, either horizontal or vertical.",
148467
- "attribute": "orientation",
148468
- "reflects": true
148410
+ "default": "false",
148411
+ "description": "Negative coloring variant flag.",
148412
+ "attribute": "negative",
148413
+ "reflects": true,
148414
+ "inheritedFrom": {
148415
+ "name": "SbbNegativeMixin",
148416
+ "module": "core/mixins/negative-mixin.js"
148417
+ }
148469
148418
  },
148470
148419
  {
148471
148420
  "kind": "field",
148472
- "name": "size",
148421
+ "name": "['_$sbbElement$']",
148473
148422
  "type": {
148474
- "text": "'s' | 'm'"
148423
+ "text": "boolean"
148475
148424
  },
148476
148425
  "privacy": "public",
148477
- "description": "Size variant, either s or m.",
148478
- "default": "'m' / 's' (lean)",
148479
- "attribute": "size",
148480
- "reflects": true
148426
+ "static": true,
148427
+ "default": "true",
148428
+ "inheritedFrom": {
148429
+ "name": "SbbElement",
148430
+ "module": "core/base-elements/element.js"
148431
+ }
148481
148432
  },
148482
148433
  {
148483
148434
  "kind": "field",
148484
- "name": "selected",
148485
- "privacy": "public",
148486
- "description": "The currently selected step.",
148435
+ "name": "elementDependencies",
148487
148436
  "type": {
148488
- "text": "SbbStepElement | null"
148437
+ "text": "SbbElementType[] | undefined"
148438
+ },
148439
+ "privacy": "public",
148440
+ "static": true,
148441
+ "inheritedFrom": {
148442
+ "name": "SbbElement",
148443
+ "module": "core/base-elements/element.js"
148489
148444
  }
148490
148445
  },
148491
148446
  {
148492
148447
  "kind": "field",
148493
- "name": "_requestedSelected",
148448
+ "name": "_controllers",
148494
148449
  "type": {
148495
- "text": "SbbStepElement | null"
148450
+ "text": "Set<SbbReactiveController> | undefined"
148496
148451
  },
148497
148452
  "privacy": "private",
148498
- "default": "null"
148453
+ "inheritedFrom": {
148454
+ "name": "SbbElement",
148455
+ "module": "core/base-elements/element.js"
148456
+ }
148499
148457
  },
148500
148458
  {
148501
148459
  "kind": "field",
148502
- "name": "selectedIndex",
148503
- "privacy": "public",
148504
- "description": "The currently selected step index.",
148460
+ "name": "_hydrationRequired",
148505
148461
  "type": {
148506
- "text": "number | null"
148462
+ "text": "boolean"
148507
148463
  },
148508
- "attribute": "selected-index"
148464
+ "privacy": "private",
148465
+ "default": "!!this.shadowRoot",
148466
+ "inheritedFrom": {
148467
+ "name": "SbbElement",
148468
+ "module": "core/base-elements/element.js"
148469
+ }
148509
148470
  },
148510
148471
  {
148511
148472
  "kind": "field",
148512
- "name": "_requestedSelectedIndex",
148513
- "type": {
148514
- "text": "number | null"
148515
- },
148473
+ "name": "_hydrationComplete",
148516
148474
  "privacy": "private",
148517
- "default": "null"
148475
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
148476
+ "inheritedFrom": {
148477
+ "name": "SbbElement",
148478
+ "module": "core/base-elements/element.js"
148479
+ }
148518
148480
  },
148519
148481
  {
148520
148482
  "kind": "field",
148521
- "name": "steps",
148483
+ "name": "_resolveHydration",
148522
148484
  "type": {
148523
- "text": "SbbStepElement[]"
148485
+ "text": "(hydrationRequired: boolean) => void"
148524
148486
  },
148525
- "privacy": "public",
148526
- "description": "The steps of the stepper.",
148527
- "readonly": true
148487
+ "privacy": "private",
148488
+ "inheritedFrom": {
148489
+ "name": "SbbElement",
148490
+ "module": "core/base-elements/element.js"
148491
+ }
148528
148492
  },
148529
148493
  {
148530
148494
  "kind": "field",
148531
- "name": "_enabledSteps",
148495
+ "name": "_textObserver",
148532
148496
  "type": {
148533
- "text": "SbbStepElement[]"
148497
+ "text": "MutationObserver | undefined"
148534
148498
  },
148535
148499
  "privacy": "private",
148536
- "readonly": true
148500
+ "inheritedFrom": {
148501
+ "name": "SbbElement",
148502
+ "module": "core/base-elements/element.js"
148503
+ }
148537
148504
  },
148538
148505
  {
148539
148506
  "kind": "field",
148540
- "name": "_loaded",
148507
+ "name": "hydrationRequired",
148541
148508
  "type": {
148542
148509
  "text": "boolean"
148543
148510
  },
148544
- "privacy": "private",
148545
- "default": "false"
148546
- },
148547
- {
148548
- "kind": "field",
148549
- "name": "_resizeObserverTimeout",
148550
- "type": {
148551
- "text": "ReturnType<typeof setTimeout> | null"
148511
+ "privacy": "protected",
148512
+ "description": "Returns whether hydration is required and not completed.",
148513
+ "readonly": true,
148514
+ "inheritedFrom": {
148515
+ "name": "SbbElement",
148516
+ "module": "core/base-elements/element.js"
148552
148517
  },
148553
- "privacy": "private",
148554
- "default": "null"
148555
- },
148556
- {
148557
- "kind": "field",
148558
- "name": "_mediaMatcher",
148559
- "privacy": "private",
148560
- "default": "new SbbMediaMatcherController(this, {})"
148518
+ "default": "!!this.shadowRoot"
148561
148519
  },
148562
148520
  {
148563
148521
  "kind": "method",
148564
- "name": "next",
148565
- "privacy": "public",
148566
- "return": {
148567
- "type": {
148568
- "text": "void"
148569
- }
148570
- },
148571
- "description": "Selects the next step."
148572
- },
148573
- {
148574
- "kind": "method",
148575
- "name": "previous",
148576
- "privacy": "public",
148522
+ "name": "toggleState",
148523
+ "privacy": "protected",
148577
148524
  "return": {
148578
148525
  "type": {
148579
148526
  "text": "void"
148580
148527
  }
148581
148528
  },
148582
- "description": "Selects the previous step."
148583
- },
148584
- {
148585
- "kind": "method",
148586
- "name": "reset",
148587
- "privacy": "public",
148588
- "return": {
148589
- "type": {
148590
- "text": "void"
148529
+ "parameters": [
148530
+ {
148531
+ "name": "value",
148532
+ "type": {
148533
+ "text": "string"
148534
+ }
148535
+ },
148536
+ {
148537
+ "name": "force",
148538
+ "optional": true,
148539
+ "type": {
148540
+ "text": "boolean"
148541
+ }
148591
148542
  }
148592
- },
148593
- "description": "Resets the form in which the stepper is nested or every form of each step, if any."
148543
+ ],
148544
+ "inheritedFrom": {
148545
+ "name": "SbbElement",
148546
+ "module": "core/base-elements/element.js"
148547
+ }
148594
148548
  },
148595
148549
  {
148596
148550
  "kind": "method",
148597
- "name": "_isSelectable",
148551
+ "name": "_slotchangeHandler",
148598
148552
  "privacy": "private",
148599
148553
  "return": {
148600
148554
  "type": {
148601
- "text": "step is SbbStepElement"
148555
+ "text": "void"
148602
148556
  }
148603
148557
  },
148604
148558
  "parameters": [
148605
148559
  {
148606
- "name": "step",
148560
+ "name": "event",
148607
148561
  "type": {
148608
- "text": "SbbStepElement | null"
148562
+ "text": "Event"
148563
+ }
148564
+ },
148565
+ {
148566
+ "name": "slot",
148567
+ "type": {
148568
+ "text": "HTMLSlotElement"
148609
148569
  }
148610
148570
  }
148611
- ]
148571
+ ],
148572
+ "inheritedFrom": {
148573
+ "name": "SbbElement",
148574
+ "module": "core/base-elements/element.js"
148575
+ }
148612
148576
  },
148613
148577
  {
148614
148578
  "kind": "method",
148615
- "name": "_select",
148579
+ "name": "_handleSlotChangeForSlottedState",
148616
148580
  "privacy": "private",
148617
148581
  "return": {
148618
148582
  "type": {
@@ -148621,26 +148585,42 @@
148621
148585
  },
148622
148586
  "parameters": [
148623
148587
  {
148624
- "name": "step",
148588
+ "name": "slot",
148625
148589
  "type": {
148626
- "text": "SbbStepElement | null"
148590
+ "text": "HTMLSlotElement"
148627
148591
  }
148628
148592
  }
148629
- ]
148593
+ ],
148594
+ "inheritedFrom": {
148595
+ "name": "SbbElement",
148596
+ "module": "core/base-elements/element.js"
148597
+ }
148630
148598
  },
148631
148599
  {
148632
148600
  "kind": "method",
148633
- "name": "_setMarkerSize",
148601
+ "name": "_updateSlottedState",
148634
148602
  "privacy": "private",
148635
148603
  "return": {
148636
148604
  "type": {
148637
148605
  "text": "void"
148638
148606
  }
148607
+ },
148608
+ "parameters": [
148609
+ {
148610
+ "name": "slot",
148611
+ "type": {
148612
+ "text": "HTMLSlotElement"
148613
+ }
148614
+ }
148615
+ ],
148616
+ "inheritedFrom": {
148617
+ "name": "SbbElement",
148618
+ "module": "core/base-elements/element.js"
148639
148619
  }
148640
148620
  },
148641
148621
  {
148642
148622
  "kind": "method",
148643
- "name": "_setStepperHeight",
148623
+ "name": "_observeTextNodesInSlot",
148644
148624
  "privacy": "private",
148645
148625
  "return": {
148646
148626
  "type": {
@@ -148649,301 +148629,390 @@
148649
148629
  },
148650
148630
  "parameters": [
148651
148631
  {
148652
- "name": "step",
148632
+ "name": "slot",
148653
148633
  "type": {
148654
- "text": "SbbStepElement | null"
148634
+ "text": "HTMLSlotElement"
148655
148635
  }
148656
148636
  }
148657
148637
  ],
148658
- "description": "Sets the stepper height based on the height of the provided step."
148659
- },
148660
- {
148661
- "kind": "method",
148662
- "name": "_calculateLabelOffsetTop",
148663
- "privacy": "private",
148664
- "return": {
148665
- "type": {
148666
- "text": "number | undefined"
148667
- }
148638
+ "inheritedFrom": {
148639
+ "name": "SbbElement",
148640
+ "module": "core/base-elements/element.js"
148668
148641
  }
148669
148642
  },
148670
148643
  {
148671
148644
  "kind": "method",
148672
- "name": "_onSelectedStepResize",
148645
+ "name": "_hasSlottedContent",
148673
148646
  "privacy": "private",
148674
148647
  "return": {
148675
148648
  "type": {
148676
- "text": "void"
148649
+ "text": "boolean"
148677
148650
  }
148678
148651
  },
148679
148652
  "parameters": [
148680
148653
  {
148681
- "name": "e",
148654
+ "name": "slot",
148682
148655
  "type": {
148683
- "text": "Event"
148656
+ "text": "HTMLSlotElement"
148684
148657
  }
148685
148658
  }
148686
- ]
148659
+ ],
148660
+ "inheritedFrom": {
148661
+ "name": "SbbElement",
148662
+ "module": "core/base-elements/element.js"
148663
+ }
148664
+ }
148665
+ ],
148666
+ "attributes": [
148667
+ {
148668
+ "name": "focusable",
148669
+ "type": {
148670
+ "text": "boolean"
148671
+ },
148672
+ "default": "false",
148673
+ "description": "Whether the table wrapper is focusable.",
148674
+ "fieldName": "focusable"
148687
148675
  },
148688
148676
  {
148689
- "kind": "method",
148690
- "name": "_configure",
148691
- "privacy": "private",
148692
- "return": {
148693
- "type": {
148694
- "text": "void"
148695
- }
148677
+ "name": "negative",
148678
+ "type": {
148679
+ "text": "boolean"
148680
+ },
148681
+ "default": "false",
148682
+ "description": "Negative coloring variant flag.",
148683
+ "fieldName": "negative",
148684
+ "inheritedFrom": {
148685
+ "name": "SbbNegativeMixin",
148686
+ "module": "core/mixins/negative-mixin.js"
148696
148687
  }
148688
+ }
148689
+ ],
148690
+ "mixins": [
148691
+ {
148692
+ "name": "SbbNegativeMixin",
148693
+ "module": "core.js"
148694
+ }
148695
+ ],
148696
+ "superclass": {
148697
+ "name": "SbbElement",
148698
+ "module": "core.js"
148699
+ },
148700
+ "tagName": "sbb-table-wrapper",
148701
+ "customElement": true
148702
+ }
148703
+ ],
148704
+ "exports": [
148705
+ {
148706
+ "kind": "js",
148707
+ "name": "SbbTableWrapperElement",
148708
+ "declaration": {
148709
+ "name": "SbbTableWrapperElement",
148710
+ "module": "table/table-wrapper/table-wrapper.component.js"
148711
+ }
148712
+ }
148713
+ ]
148714
+ },
148715
+ {
148716
+ "kind": "javascript-module",
148717
+ "path": "stepper/stepper/stepper.component.js",
148718
+ "declarations": [
148719
+ {
148720
+ "kind": "class",
148721
+ "description": "",
148722
+ "name": "SbbStepChangeEvent",
148723
+ "members": [
148724
+ {
148725
+ "kind": "field",
148726
+ "name": "selectedIndex",
148727
+ "type": {
148728
+ "text": "number | null"
148729
+ },
148730
+ "privacy": "public",
148731
+ "readonly": true,
148732
+ "description": "The index of the newly selected step.",
148733
+ "default": "selectedIndex"
148697
148734
  },
148698
148735
  {
148699
- "kind": "method",
148700
- "name": "_updateLabels",
148701
- "privacy": "private",
148702
- "return": {
148703
- "type": {
148704
- "text": "void"
148705
- }
148736
+ "kind": "field",
148737
+ "name": "previousIndex",
148738
+ "type": {
148739
+ "text": "number | null"
148740
+ },
148741
+ "privacy": "public",
148742
+ "readonly": true,
148743
+ "description": "The index of the previously selected step.",
148744
+ "default": "previousIndex"
148745
+ },
148746
+ {
148747
+ "kind": "field",
148748
+ "name": "selectedStep",
148749
+ "type": {
148750
+ "text": "SbbStepElement | null"
148751
+ },
148752
+ "privacy": "public",
148753
+ "readonly": true,
148754
+ "description": "The newly selected step element.",
148755
+ "default": "selectedStep"
148756
+ },
148757
+ {
148758
+ "kind": "field",
148759
+ "name": "previousStep",
148760
+ "type": {
148761
+ "text": "SbbStepElement | null"
148762
+ },
148763
+ "privacy": "public",
148764
+ "readonly": true,
148765
+ "description": "The previously selected step element.",
148766
+ "default": "previousStep"
148767
+ }
148768
+ ],
148769
+ "superclass": {
148770
+ "name": "Event",
148771
+ "module": "stepper/stepper/stepper.component.js"
148772
+ }
148773
+ },
148774
+ {
148775
+ "kind": "class",
148776
+ "description": "Provides a structured, step-by-step workflow for user interactions.",
148777
+ "name": "SbbStepperElement",
148778
+ "slots": [
148779
+ {
148780
+ "description": "Provide a `sbb-expansion-panel-header` and a `sbb-expansion-panel-content` to the stepper.",
148781
+ "name": ""
148782
+ },
148783
+ {
148784
+ "description": "Use this slot to provide an `sbb-step-label`.",
148785
+ "name": "step-label"
148786
+ },
148787
+ {
148788
+ "description": "Use this slot to provide an `sbb-step`.",
148789
+ "name": "step"
148790
+ }
148791
+ ],
148792
+ "members": [
148793
+ {
148794
+ "kind": "field",
148795
+ "name": "elementName",
148796
+ "type": {
148797
+ "text": "string"
148798
+ },
148799
+ "privacy": "public",
148800
+ "static": true,
148801
+ "readonly": true,
148802
+ "default": "'sbb-stepper'",
148803
+ "inheritedFrom": {
148804
+ "name": "SbbElement",
148805
+ "module": "core/base-elements/element.js"
148706
148806
  }
148707
148807
  },
148708
148808
  {
148709
- "kind": "method",
148710
- "name": "_checkOrientation",
148711
- "privacy": "private",
148712
- "return": {
148713
- "type": {
148714
- "text": "void"
148715
- }
148809
+ "kind": "field",
148810
+ "name": "events",
148811
+ "privacy": "public",
148812
+ "static": true,
148813
+ "readonly": true,
148814
+ "default": "{ stepchange: 'stepchange', }",
148815
+ "type": {
148816
+ "text": "{\n stepchange: 'stepchange',\n }"
148716
148817
  }
148717
148818
  },
148718
148819
  {
148719
148820
  "kind": "field",
148720
- "name": "_onStepperResize",
148721
- "privacy": "private"
148821
+ "name": "_observer",
148822
+ "privacy": "private",
148823
+ "default": "new IntersectionController(this, { target: null, callback: (entries) => { entries.forEach((e) => { if (e.intersectionRatio > 0) { this._setStepperHeight(this.selected); this._setMarkerSize(); } }); }, })",
148824
+ "description": "If the sbb-stepper is used in a sbb-dialog, the marker on the selected element will not appear,\nbecause the calculations are done when the dialog is closed, so the marker has a width of 0;\nthe same happens for the stepper height.\nWe need to recalculate it when the element becomes visible."
148825
+ },
148826
+ {
148827
+ "kind": "field",
148828
+ "name": "linear",
148829
+ "type": {
148830
+ "text": "boolean"
148831
+ },
148832
+ "privacy": "public",
148833
+ "default": "false",
148834
+ "description": "If set to true, only the current and previous labels can be clicked and selected.",
148835
+ "attribute": "linear"
148722
148836
  },
148723
148837
  {
148724
- "kind": "method",
148725
- "name": "_configureLinearMode",
148726
- "privacy": "private",
148727
- "return": {
148728
- "type": {
148729
- "text": "void"
148730
- }
148731
- }
148838
+ "kind": "field",
148839
+ "name": "horizontalFrom",
148840
+ "privacy": "public",
148841
+ "description": "Overrides the behavior of `orientation` property.",
148842
+ "type": {
148843
+ "text": "SbbHorizontalFrom | null"
148844
+ },
148845
+ "attribute": "horizontal-from",
148846
+ "reflects": true,
148847
+ "default": "null"
148732
148848
  },
148733
148849
  {
148734
- "kind": "method",
148735
- "name": "_handleKeyDown",
148736
- "privacy": "private",
148737
- "return": {
148738
- "type": {
148739
- "text": "void"
148740
- }
148850
+ "kind": "field",
148851
+ "name": "_horizontalFrom",
148852
+ "type": {
148853
+ "text": "SbbHorizontalFrom | null"
148741
148854
  },
148742
- "parameters": [
148743
- {
148744
- "name": "evt",
148745
- "type": {
148746
- "text": "KeyboardEvent"
148747
- }
148748
- }
148749
- ]
148855
+ "privacy": "private",
148856
+ "default": "null"
148750
148857
  },
148751
148858
  {
148752
148859
  "kind": "field",
148753
- "name": "['_$sbbElement$']",
148860
+ "name": "orientation",
148754
148861
  "type": {
148755
- "text": "boolean"
148862
+ "text": "SbbOrientation"
148756
148863
  },
148757
148864
  "privacy": "public",
148758
- "static": true,
148759
- "default": "true",
148760
- "inheritedFrom": {
148761
- "name": "SbbElement",
148762
- "module": "core/base-elements/element.js"
148763
- }
148865
+ "default": "'horizontal'",
148866
+ "description": "Steps orientation, either horizontal or vertical.",
148867
+ "attribute": "orientation",
148868
+ "reflects": true
148764
148869
  },
148765
148870
  {
148766
148871
  "kind": "field",
148767
- "name": "elementDependencies",
148872
+ "name": "size",
148768
148873
  "type": {
148769
- "text": "SbbElementType[] | undefined"
148874
+ "text": "'s' | 'm'"
148770
148875
  },
148771
148876
  "privacy": "public",
148772
- "static": true,
148773
- "inheritedFrom": {
148774
- "name": "SbbElement",
148775
- "module": "core/base-elements/element.js"
148776
- }
148877
+ "description": "Size variant, either s or m.",
148878
+ "default": "'m' / 's' (lean)",
148879
+ "attribute": "size",
148880
+ "reflects": true
148777
148881
  },
148778
148882
  {
148779
148883
  "kind": "field",
148780
- "name": "role",
148781
- "type": {
148782
- "text": "ElementInternals['role'] | undefined"
148783
- },
148884
+ "name": "selected",
148784
148885
  "privacy": "public",
148785
- "static": true,
148786
- "inheritedFrom": {
148787
- "name": "SbbElement",
148788
- "module": "core/base-elements/element.js"
148886
+ "description": "The currently selected step.",
148887
+ "type": {
148888
+ "text": "SbbStepElement | null"
148789
148889
  }
148790
148890
  },
148791
148891
  {
148792
148892
  "kind": "field",
148793
- "name": "_controllers",
148893
+ "name": "_requestedSelected",
148794
148894
  "type": {
148795
- "text": "Set<SbbReactiveController> | undefined"
148895
+ "text": "SbbStepElement | null"
148796
148896
  },
148797
148897
  "privacy": "private",
148798
- "inheritedFrom": {
148799
- "name": "SbbElement",
148800
- "module": "core/base-elements/element.js"
148801
- }
148898
+ "default": "null"
148802
148899
  },
148803
148900
  {
148804
148901
  "kind": "field",
148805
- "name": "_hydrationRequired",
148902
+ "name": "selectedIndex",
148903
+ "privacy": "public",
148904
+ "description": "The currently selected step index.",
148806
148905
  "type": {
148807
- "text": "boolean"
148906
+ "text": "number | null"
148808
148907
  },
148809
- "privacy": "private",
148810
- "default": "!!this.shadowRoot",
148811
- "inheritedFrom": {
148812
- "name": "SbbElement",
148813
- "module": "core/base-elements/element.js"
148814
- }
148908
+ "attribute": "selected-index"
148815
148909
  },
148816
148910
  {
148817
148911
  "kind": "field",
148818
- "name": "_hydrationComplete",
148912
+ "name": "_requestedSelectedIndex",
148913
+ "type": {
148914
+ "text": "number | null"
148915
+ },
148819
148916
  "privacy": "private",
148820
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
148821
- "inheritedFrom": {
148822
- "name": "SbbElement",
148823
- "module": "core/base-elements/element.js"
148824
- }
148917
+ "default": "null"
148825
148918
  },
148826
148919
  {
148827
148920
  "kind": "field",
148828
- "name": "_resolveHydration",
148921
+ "name": "steps",
148829
148922
  "type": {
148830
- "text": "(hydrationRequired: boolean) => void"
148923
+ "text": "SbbStepElement[]"
148831
148924
  },
148832
- "privacy": "private",
148833
- "inheritedFrom": {
148834
- "name": "SbbElement",
148835
- "module": "core/base-elements/element.js"
148836
- }
148925
+ "privacy": "public",
148926
+ "description": "The steps of the stepper.",
148927
+ "readonly": true
148837
148928
  },
148838
148929
  {
148839
148930
  "kind": "field",
148840
- "name": "_textObserver",
148931
+ "name": "_enabledSteps",
148841
148932
  "type": {
148842
- "text": "MutationObserver | undefined"
148933
+ "text": "SbbStepElement[]"
148843
148934
  },
148844
148935
  "privacy": "private",
148845
- "inheritedFrom": {
148846
- "name": "SbbElement",
148847
- "module": "core/base-elements/element.js"
148848
- }
148936
+ "readonly": true
148849
148937
  },
148850
148938
  {
148851
148939
  "kind": "field",
148852
- "name": "hydrationRequired",
148940
+ "name": "_loaded",
148853
148941
  "type": {
148854
148942
  "text": "boolean"
148855
148943
  },
148856
- "privacy": "protected",
148857
- "description": "Returns whether hydration is required and not completed.",
148858
- "readonly": true,
148859
- "inheritedFrom": {
148860
- "name": "SbbElement",
148861
- "module": "core/base-elements/element.js"
148944
+ "privacy": "private",
148945
+ "default": "false"
148946
+ },
148947
+ {
148948
+ "kind": "field",
148949
+ "name": "_resizeObserverTimeout",
148950
+ "type": {
148951
+ "text": "ReturnType<typeof setTimeout> | null"
148862
148952
  },
148863
- "default": "!!this.shadowRoot"
148953
+ "privacy": "private",
148954
+ "default": "null"
148955
+ },
148956
+ {
148957
+ "kind": "field",
148958
+ "name": "_mediaMatcher",
148959
+ "privacy": "private",
148960
+ "default": "new SbbMediaMatcherController(this, {})"
148864
148961
  },
148865
148962
  {
148866
148963
  "kind": "method",
148867
- "name": "toggleState",
148868
- "privacy": "protected",
148964
+ "name": "next",
148965
+ "privacy": "public",
148869
148966
  "return": {
148870
148967
  "type": {
148871
148968
  "text": "void"
148872
148969
  }
148873
148970
  },
148874
- "parameters": [
148875
- {
148876
- "name": "value",
148877
- "type": {
148878
- "text": "string"
148879
- }
148880
- },
148881
- {
148882
- "name": "force",
148883
- "optional": true,
148884
- "type": {
148885
- "text": "boolean"
148886
- }
148887
- }
148888
- ],
148889
- "inheritedFrom": {
148890
- "name": "SbbElement",
148891
- "module": "core/base-elements/element.js"
148892
- }
148971
+ "description": "Selects the next step."
148893
148972
  },
148894
148973
  {
148895
148974
  "kind": "method",
148896
- "name": "_slotchangeHandler",
148897
- "privacy": "private",
148975
+ "name": "previous",
148976
+ "privacy": "public",
148898
148977
  "return": {
148899
148978
  "type": {
148900
148979
  "text": "void"
148901
148980
  }
148902
148981
  },
148903
- "parameters": [
148904
- {
148905
- "name": "event",
148906
- "type": {
148907
- "text": "Event"
148908
- }
148909
- },
148910
- {
148911
- "name": "slot",
148912
- "type": {
148913
- "text": "HTMLSlotElement"
148914
- }
148982
+ "description": "Selects the previous step."
148983
+ },
148984
+ {
148985
+ "kind": "method",
148986
+ "name": "reset",
148987
+ "privacy": "public",
148988
+ "return": {
148989
+ "type": {
148990
+ "text": "void"
148915
148991
  }
148916
- ],
148917
- "inheritedFrom": {
148918
- "name": "SbbElement",
148919
- "module": "core/base-elements/element.js"
148920
- }
148992
+ },
148993
+ "description": "Resets the form in which the stepper is nested or every form of each step, if any."
148921
148994
  },
148922
148995
  {
148923
148996
  "kind": "method",
148924
- "name": "_handleSlotChangeForSlottedState",
148997
+ "name": "_isSelectable",
148925
148998
  "privacy": "private",
148926
148999
  "return": {
148927
149000
  "type": {
148928
- "text": "void"
149001
+ "text": "step is SbbStepElement"
148929
149002
  }
148930
149003
  },
148931
149004
  "parameters": [
148932
149005
  {
148933
- "name": "slot",
149006
+ "name": "step",
148934
149007
  "type": {
148935
- "text": "HTMLSlotElement"
149008
+ "text": "SbbStepElement | null"
148936
149009
  }
148937
149010
  }
148938
- ],
148939
- "inheritedFrom": {
148940
- "name": "SbbElement",
148941
- "module": "core/base-elements/element.js"
148942
- }
149011
+ ]
148943
149012
  },
148944
149013
  {
148945
149014
  "kind": "method",
148946
- "name": "_updateSlottedState",
149015
+ "name": "_select",
148947
149016
  "privacy": "private",
148948
149017
  "return": {
148949
149018
  "type": {
@@ -148952,20 +149021,26 @@
148952
149021
  },
148953
149022
  "parameters": [
148954
149023
  {
148955
- "name": "slot",
149024
+ "name": "step",
148956
149025
  "type": {
148957
- "text": "HTMLSlotElement"
149026
+ "text": "SbbStepElement | null"
148958
149027
  }
148959
149028
  }
148960
- ],
148961
- "inheritedFrom": {
148962
- "name": "SbbElement",
148963
- "module": "core/base-elements/element.js"
149029
+ ]
149030
+ },
149031
+ {
149032
+ "kind": "method",
149033
+ "name": "_setMarkerSize",
149034
+ "privacy": "private",
149035
+ "return": {
149036
+ "type": {
149037
+ "text": "void"
149038
+ }
148964
149039
  }
148965
149040
  },
148966
149041
  {
148967
149042
  "kind": "method",
148968
- "name": "_observeTextNodesInSlot",
149043
+ "name": "_setStepperHeight",
148969
149044
  "privacy": "private",
148970
149045
  "return": {
148971
149046
  "type": {
@@ -148974,189 +149049,65 @@
148974
149049
  },
148975
149050
  "parameters": [
148976
149051
  {
148977
- "name": "slot",
149052
+ "name": "step",
148978
149053
  "type": {
148979
- "text": "HTMLSlotElement"
149054
+ "text": "SbbStepElement | null"
148980
149055
  }
148981
149056
  }
148982
149057
  ],
148983
- "inheritedFrom": {
148984
- "name": "SbbElement",
148985
- "module": "core/base-elements/element.js"
149058
+ "description": "Sets the stepper height based on the height of the provided step."
149059
+ },
149060
+ {
149061
+ "kind": "method",
149062
+ "name": "_calculateLabelOffsetTop",
149063
+ "privacy": "private",
149064
+ "return": {
149065
+ "type": {
149066
+ "text": "number | undefined"
149067
+ }
148986
149068
  }
148987
149069
  },
148988
149070
  {
148989
149071
  "kind": "method",
148990
- "name": "_hasSlottedContent",
149072
+ "name": "_onSelectedStepResize",
148991
149073
  "privacy": "private",
148992
149074
  "return": {
148993
149075
  "type": {
148994
- "text": "boolean"
149076
+ "text": "void"
148995
149077
  }
148996
149078
  },
148997
149079
  "parameters": [
148998
149080
  {
148999
- "name": "slot",
149081
+ "name": "e",
149000
149082
  "type": {
149001
- "text": "HTMLSlotElement"
149083
+ "text": "Event"
149002
149084
  }
149003
149085
  }
149004
- ],
149005
- "inheritedFrom": {
149006
- "name": "SbbElement",
149007
- "module": "core/base-elements/element.js"
149008
- }
149009
- }
149010
- ],
149011
- "events": [
149012
- {
149013
- "type": {
149014
- "text": "SbbStepChangeEvent"
149015
- },
149016
- "description": "Emits whenever a step was changed.",
149017
- "name": "stepchange"
149018
- }
149019
- ],
149020
- "attributes": [
149021
- {
149022
- "name": "linear",
149023
- "type": {
149024
- "text": "boolean"
149025
- },
149026
- "default": "false",
149027
- "description": "If set to true, only the current and previous labels can be clicked and selected.",
149028
- "fieldName": "linear"
149029
- },
149030
- {
149031
- "name": "horizontal-from",
149032
- "description": "Overrides the behavior of `orientation` property.",
149033
- "type": {
149034
- "text": "SbbHorizontalFrom | null"
149035
- },
149036
- "fieldName": "horizontalFrom"
149037
- },
149038
- {
149039
- "name": "orientation",
149040
- "type": {
149041
- "text": "SbbOrientation"
149042
- },
149043
- "default": "'horizontal'",
149044
- "description": "Steps orientation, either horizontal or vertical.",
149045
- "fieldName": "orientation"
149046
- },
149047
- {
149048
- "name": "size",
149049
- "type": {
149050
- "text": "'s' | 'm'"
149051
- },
149052
- "description": "Size variant, either s or m.",
149053
- "default": "'m' / 's' (lean)",
149054
- "fieldName": "size"
149086
+ ]
149055
149087
  },
149056
149088
  {
149057
- "name": "selected-index",
149058
- "description": "The currently selected step index.",
149059
- "type": {
149060
- "text": "number | null"
149061
- },
149062
- "fieldName": "selectedIndex"
149063
- }
149064
- ],
149065
- "superclass": {
149066
- "name": "SbbElement",
149067
- "module": "core.js"
149068
- },
149069
- "tagName": "sbb-stepper",
149070
- "customElement": true
149071
- },
149072
- {
149073
- "kind": "variable",
149074
- "name": "currentIndex"
149075
- },
149076
- {
149077
- "kind": "variable",
149078
- "name": "currentStep"
149079
- }
149080
- ],
149081
- "exports": [
149082
- {
149083
- "kind": "js",
149084
- "name": "SbbStepChangeEvent",
149085
- "declaration": {
149086
- "name": "SbbStepChangeEvent",
149087
- "module": "stepper/stepper/stepper.component.js"
149088
- }
149089
- },
149090
- {
149091
- "kind": "js",
149092
- "name": "SbbStepperElement",
149093
- "declaration": {
149094
- "name": "SbbStepperElement",
149095
- "module": "stepper/stepper/stepper.component.js"
149096
- }
149097
- }
149098
- ]
149099
- },
149100
- {
149101
- "kind": "javascript-module",
149102
- "path": "table/table-wrapper/table-wrapper.component.js",
149103
- "declarations": [
149104
- {
149105
- "kind": "class",
149106
- "description": "Wraps a table to enhance its functionality.",
149107
- "name": "SbbTableWrapperElement",
149108
- "slots": [
149109
- {
149110
- "description": "Use the unnamed slot to add the table.",
149111
- "name": ""
149112
- }
149113
- ],
149114
- "members": [
149115
- {
149116
- "kind": "field",
149117
- "name": "elementName",
149118
- "type": {
149119
- "text": "string"
149120
- },
149121
- "privacy": "public",
149122
- "static": true,
149123
- "readonly": true,
149124
- "default": "'sbb-table-wrapper'",
149125
- "inheritedFrom": {
149126
- "name": "SbbElement",
149127
- "module": "core/base-elements/element.js"
149089
+ "kind": "method",
149090
+ "name": "_configure",
149091
+ "privacy": "private",
149092
+ "return": {
149093
+ "type": {
149094
+ "text": "void"
149095
+ }
149128
149096
  }
149129
149097
  },
149130
149098
  {
149131
- "kind": "field",
149132
- "name": "role",
149133
- "type": {
149134
- "text": "string"
149135
- },
149136
- "privacy": "public",
149137
- "static": true,
149138
- "readonly": true,
149139
- "default": "'section'",
149140
- "inheritedFrom": {
149141
- "name": "SbbElement",
149142
- "module": "core/base-elements/element.js"
149099
+ "kind": "method",
149100
+ "name": "_updateLabels",
149101
+ "privacy": "private",
149102
+ "return": {
149103
+ "type": {
149104
+ "text": "void"
149105
+ }
149143
149106
  }
149144
149107
  },
149145
- {
149146
- "kind": "field",
149147
- "name": "focusable",
149148
- "type": {
149149
- "text": "boolean"
149150
- },
149151
- "privacy": "public",
149152
- "default": "false",
149153
- "description": "Whether the table wrapper is focusable.",
149154
- "attribute": "focusable",
149155
- "reflects": true
149156
- },
149157
149108
  {
149158
149109
  "kind": "method",
149159
- "name": "_updateScrollbarClass",
149110
+ "name": "_checkOrientation",
149160
149111
  "privacy": "private",
149161
149112
  "return": {
149162
149113
  "type": {
@@ -149164,52 +149115,61 @@
149164
149115
  }
149165
149116
  }
149166
149117
  },
149118
+ {
149119
+ "kind": "field",
149120
+ "name": "_onStepperResize",
149121
+ "privacy": "private"
149122
+ },
149167
149123
  {
149168
149124
  "kind": "method",
149169
- "name": "_checkHorizontalScrollbarOffset",
149125
+ "name": "_configureLinearMode",
149170
149126
  "privacy": "private",
149171
149127
  "return": {
149172
149128
  "type": {
149173
149129
  "text": "void"
149174
149130
  }
149175
- },
149176
- "description": "Calculates whether the table is horizontally scrolled and adds the\ncorresponding class `sbb-table-wrapper-offset-${none | left | right | both}`"
149131
+ }
149177
149132
  },
149178
149133
  {
149179
149134
  "kind": "method",
149180
- "name": "_calculateScrollOffset",
149135
+ "name": "_handleKeyDown",
149181
149136
  "privacy": "private",
149182
149137
  "return": {
149183
149138
  "type": {
149184
- "text": "'none' | 'left' | 'right' | 'both'"
149139
+ "text": "void"
149185
149140
  }
149186
- }
149141
+ },
149142
+ "parameters": [
149143
+ {
149144
+ "name": "evt",
149145
+ "type": {
149146
+ "text": "KeyboardEvent"
149147
+ }
149148
+ }
149149
+ ]
149187
149150
  },
149188
149151
  {
149189
149152
  "kind": "field",
149190
- "name": "negative",
149153
+ "name": "['_$sbbElement$']",
149191
149154
  "type": {
149192
149155
  "text": "boolean"
149193
149156
  },
149194
149157
  "privacy": "public",
149195
- "default": "false",
149196
- "description": "Negative coloring variant flag.",
149197
- "attribute": "negative",
149198
- "reflects": true,
149158
+ "static": true,
149159
+ "default": "true",
149199
149160
  "inheritedFrom": {
149200
- "name": "SbbNegativeMixin",
149201
- "module": "core/mixins/negative-mixin.js"
149161
+ "name": "SbbElement",
149162
+ "module": "core/base-elements/element.js"
149202
149163
  }
149203
149164
  },
149204
149165
  {
149205
149166
  "kind": "field",
149206
- "name": "['_$sbbElement$']",
149167
+ "name": "elementDependencies",
149207
149168
  "type": {
149208
- "text": "boolean"
149169
+ "text": "SbbElementType[] | undefined"
149209
149170
  },
149210
149171
  "privacy": "public",
149211
149172
  "static": true,
149212
- "default": "true",
149213
149173
  "inheritedFrom": {
149214
149174
  "name": "SbbElement",
149215
149175
  "module": "core/base-elements/element.js"
@@ -149217,9 +149177,9 @@
149217
149177
  },
149218
149178
  {
149219
149179
  "kind": "field",
149220
- "name": "elementDependencies",
149180
+ "name": "role",
149221
149181
  "type": {
149222
- "text": "SbbElementType[] | undefined"
149182
+ "text": "ElementInternals['role'] | undefined"
149223
149183
  },
149224
149184
  "privacy": "public",
149225
149185
  "static": true,
@@ -149448,51 +149408,91 @@
149448
149408
  }
149449
149409
  }
149450
149410
  ],
149411
+ "events": [
149412
+ {
149413
+ "type": {
149414
+ "text": "SbbStepChangeEvent"
149415
+ },
149416
+ "description": "Emits whenever a step was changed.",
149417
+ "name": "stepchange"
149418
+ }
149419
+ ],
149451
149420
  "attributes": [
149452
149421
  {
149453
- "name": "focusable",
149422
+ "name": "linear",
149423
+ "type": {
149424
+ "text": "boolean"
149425
+ },
149426
+ "default": "false",
149427
+ "description": "If set to true, only the current and previous labels can be clicked and selected.",
149428
+ "fieldName": "linear"
149429
+ },
149430
+ {
149431
+ "name": "horizontal-from",
149432
+ "description": "Overrides the behavior of `orientation` property.",
149433
+ "type": {
149434
+ "text": "SbbHorizontalFrom | null"
149435
+ },
149436
+ "fieldName": "horizontalFrom"
149437
+ },
149438
+ {
149439
+ "name": "orientation",
149454
149440
  "type": {
149455
- "text": "boolean"
149441
+ "text": "SbbOrientation"
149456
149442
  },
149457
- "default": "false",
149458
- "description": "Whether the table wrapper is focusable.",
149459
- "fieldName": "focusable"
149443
+ "default": "'horizontal'",
149444
+ "description": "Steps orientation, either horizontal or vertical.",
149445
+ "fieldName": "orientation"
149460
149446
  },
149461
149447
  {
149462
- "name": "negative",
149448
+ "name": "size",
149463
149449
  "type": {
149464
- "text": "boolean"
149450
+ "text": "'s' | 'm'"
149465
149451
  },
149466
- "default": "false",
149467
- "description": "Negative coloring variant flag.",
149468
- "fieldName": "negative",
149469
- "inheritedFrom": {
149470
- "name": "SbbNegativeMixin",
149471
- "module": "core/mixins/negative-mixin.js"
149472
- }
149473
- }
149474
- ],
149475
- "mixins": [
149452
+ "description": "Size variant, either s or m.",
149453
+ "default": "'m' / 's' (lean)",
149454
+ "fieldName": "size"
149455
+ },
149476
149456
  {
149477
- "name": "SbbNegativeMixin",
149478
- "module": "core.js"
149457
+ "name": "selected-index",
149458
+ "description": "The currently selected step index.",
149459
+ "type": {
149460
+ "text": "number | null"
149461
+ },
149462
+ "fieldName": "selectedIndex"
149479
149463
  }
149480
149464
  ],
149481
149465
  "superclass": {
149482
149466
  "name": "SbbElement",
149483
149467
  "module": "core.js"
149484
149468
  },
149485
- "tagName": "sbb-table-wrapper",
149469
+ "tagName": "sbb-stepper",
149486
149470
  "customElement": true
149471
+ },
149472
+ {
149473
+ "kind": "variable",
149474
+ "name": "currentIndex"
149475
+ },
149476
+ {
149477
+ "kind": "variable",
149478
+ "name": "currentStep"
149487
149479
  }
149488
149480
  ],
149489
149481
  "exports": [
149490
149482
  {
149491
149483
  "kind": "js",
149492
- "name": "SbbTableWrapperElement",
149484
+ "name": "SbbStepChangeEvent",
149493
149485
  "declaration": {
149494
- "name": "SbbTableWrapperElement",
149495
- "module": "table/table-wrapper/table-wrapper.component.js"
149486
+ "name": "SbbStepChangeEvent",
149487
+ "module": "stepper/stepper/stepper.component.js"
149488
+ }
149489
+ },
149490
+ {
149491
+ "kind": "js",
149492
+ "name": "SbbStepperElement",
149493
+ "declaration": {
149494
+ "name": "SbbStepperElement",
149495
+ "module": "stepper/stepper/stepper.component.js"
149496
149496
  }
149497
149497
  }
149498
149498
  ]
@@ -159839,25 +159839,12 @@
159839
159839
  },
159840
159840
  {
159841
159841
  "kind": "javascript-module",
159842
- "path": "train/train-formation/train-formation.component.js",
159842
+ "path": "train/train-blocked-passage/train-blocked-passage.component.js",
159843
159843
  "declarations": [
159844
159844
  {
159845
159845
  "kind": "class",
159846
- "description": "It displays a train composition, acting as a container for one or more `sbb-train` component.",
159847
- "name": "SbbTrainFormationElement",
159848
- "cssProperties": [
159849
- {
159850
- "description": "Defines the inline padding inside the horizontal scrolling area.",
159851
- "name": "--sbb-train-formation-padding-inline",
159852
- "default": "0px"
159853
- }
159854
- ],
159855
- "slots": [
159856
- {
159857
- "description": "Use the unnamed slot to add 'sbb-train' elements to the `sbb-train-formation`.",
159858
- "name": ""
159859
- }
159860
- ],
159846
+ "description": "It visually displays a blocked passage between train wagons.",
159847
+ "name": "SbbTrainBlockedPassageElement",
159861
159848
  "members": [
159862
159849
  {
159863
159850
  "kind": "field",
@@ -159865,180 +159852,13 @@
159865
159852
  "type": {
159866
159853
  "text": "string"
159867
159854
  },
159868
- "privacy": "public",
159869
- "static": true,
159870
- "readonly": true,
159871
- "default": "'sbb-train-formation'",
159872
- "inheritedFrom": {
159873
- "name": "SbbElement",
159874
- "module": "core/base-elements/element.js"
159875
- }
159876
- },
159877
- {
159878
- "kind": "field",
159879
- "name": "listChildLocalNames",
159880
- "type": {
159881
- "text": "array"
159882
- },
159883
- "privacy": "protected",
159884
- "readonly": true,
159885
- "description": "A list of lower-cased tag names to match against. (e.g. `sbb-link`)",
159886
- "default": "['sbb-train']",
159887
- "inheritedFrom": {
159888
- "name": "SbbNamedSlotListMixin",
159889
- "module": "core/mixins/named-slot-list-mixin.js"
159890
- }
159891
- },
159892
- {
159893
- "kind": "field",
159894
- "name": "view",
159895
- "type": {
159896
- "text": "'side' | 'top'"
159897
- },
159898
- "privacy": "public",
159899
- "default": "'side'",
159900
- "description": "Whether the view of the wagons is from side or top perspective.",
159901
- "attribute": "view",
159902
- "reflects": true
159903
- },
159904
- {
159905
- "kind": "field",
159906
- "name": "_sectors",
159907
- "type": {
159908
- "text": "AggregatedSector[]"
159909
- },
159910
- "privacy": "private",
159911
- "default": "[]"
159912
- },
159913
- {
159914
- "kind": "field",
159915
- "name": "_language",
159916
- "privacy": "private",
159917
- "default": "new SbbLanguageController(this)"
159918
- },
159919
- {
159920
- "kind": "method",
159921
- "name": "_readSectors",
159922
- "privacy": "private",
159923
- "return": {
159924
- "type": {
159925
- "text": "void"
159926
- }
159927
- },
159928
- "parameters": [
159929
- {
159930
- "name": "event",
159931
- "optional": true,
159932
- "type": {
159933
- "text": "Event"
159934
- }
159935
- }
159936
- ]
159937
- },
159938
- {
159939
- "kind": "field",
159940
- "name": "elementDependencies",
159941
- "type": {
159942
- "text": "SbbElementType[]"
159943
- },
159944
- "privacy": "public",
159945
- "static": true,
159946
- "default": "[SbbScreenReaderOnlyElement]",
159947
- "inheritedFrom": {
159948
- "name": "SbbElement",
159949
- "module": "core/base-elements/element.js"
159950
- }
159951
- },
159952
- {
159953
- "kind": "field",
159954
- "name": "listChildren",
159955
- "type": {
159956
- "text": "C[]"
159957
- },
159958
- "privacy": "protected",
159959
- "default": "[]",
159960
- "description": "A list of children with the defined tag names.\nThis array is only updated if there is an actual change\nto the child elements.",
159961
- "inheritedFrom": {
159962
- "name": "SbbNamedSlotListMixin",
159963
- "module": "core/mixins/named-slot-list-mixin.js"
159964
- }
159965
- },
159966
- {
159967
- "kind": "field",
159968
- "name": "_handleSlotchange",
159969
- "privacy": "private",
159970
- "inheritedFrom": {
159971
- "name": "SbbNamedSlotListMixin",
159972
- "module": "core/mixins/named-slot-list-mixin.js"
159973
- }
159974
- },
159975
- {
159976
- "kind": "method",
159977
- "name": "renderList",
159978
- "privacy": "protected",
159979
- "return": {
159980
- "type": {
159981
- "text": "TemplateResult"
159982
- }
159983
- },
159984
- "parameters": [
159985
- {
159986
- "name": "attributes",
159987
- "default": "{}",
159988
- "type": {
159989
- "text": "{ class?: string; ariaLabel?: string; ariaLabelledby?: string }"
159990
- }
159991
- },
159992
- {
159993
- "name": "listItemAttributes",
159994
- "default": "{}",
159995
- "type": {
159996
- "text": "{ localNameVisualOnly?: string[] }"
159997
- }
159998
- }
159999
- ],
160000
- "description": "Renders list and list slots for slotted children or a number of list slots\ncorresponding to the `data-ssr-child-count` attribute value.\n\nThis is a possible optimization for SSR, as in an SSR Lit environment\nother elements are not available, but might be available in the meta\nframework wrapper (like e.g. React). This allows to provide the number of\nchildren to be passed via the `data-ssr-child-count` attribute value.",
160001
- "inheritedFrom": {
160002
- "name": "SbbNamedSlotListMixin",
160003
- "module": "core/mixins/named-slot-list-mixin.js"
160004
- }
160005
- },
160006
- {
160007
- "kind": "method",
160008
- "name": "listSlotEntries",
160009
- "privacy": "protected",
160010
- "return": {
160011
- "type": {
160012
- "text": "SbbNamedSlotProperties[]"
160013
- }
160014
- },
160015
- "parameters": [
160016
- {
160017
- "name": "listItemAttributes",
160018
- "type": {
160019
- "text": "{\n localNameVisualOnly?: string[];\n }"
160020
- }
160021
- }
160022
- ],
160023
- "description": "Returns an array of SbbNamedSlotProperties, which holds the list slot names and the hidden property;\nits length corresponds to the number of matched children or the `data-ssr-child-count` attribute value.\n\nThis is a possible optimization for SSR, as in an SSR Lit environment\nother elements are not available, but might be available in the meta\nframework wrapper (like e.g. React). This allows to provide the number of\nchildren to be passed via the `data-ssr-child-count` attribute value.",
160024
- "inheritedFrom": {
160025
- "name": "SbbNamedSlotListMixin",
160026
- "module": "core/mixins/named-slot-list-mixin.js"
160027
- }
160028
- },
160029
- {
160030
- "kind": "method",
160031
- "name": "renderHiddenSlot",
160032
- "privacy": "protected",
160033
- "return": {
160034
- "type": {
160035
- "text": "TemplateResult"
160036
- }
160037
- },
160038
- "description": "Returns a hidden slot, which is intended as the children change detection.\nWhen an element without a slot attribute is slotted to the element, it triggers\nthe slotchange event, which can be used to assign it to the appropriate named slot.",
159855
+ "privacy": "public",
159856
+ "static": true,
159857
+ "readonly": true,
159858
+ "default": "'sbb-train-blocked-passage'",
160039
159859
  "inheritedFrom": {
160040
- "name": "SbbNamedSlotListMixin",
160041
- "module": "core/mixins/named-slot-list-mixin.js"
159860
+ "name": "SbbElement",
159861
+ "module": "core/base-elements/element.js"
160042
159862
  }
160043
159863
  },
160044
159864
  {
@@ -160055,6 +159875,19 @@
160055
159875
  "module": "core/base-elements/element.js"
160056
159876
  }
160057
159877
  },
159878
+ {
159879
+ "kind": "field",
159880
+ "name": "elementDependencies",
159881
+ "type": {
159882
+ "text": "SbbElementType[] | undefined"
159883
+ },
159884
+ "privacy": "public",
159885
+ "static": true,
159886
+ "inheritedFrom": {
159887
+ "name": "SbbElement",
159888
+ "module": "core/base-elements/element.js"
159889
+ }
159890
+ },
160058
159891
  {
160059
159892
  "kind": "field",
160060
159893
  "name": "role",
@@ -160288,50 +160121,46 @@
160288
160121
  }
160289
160122
  }
160290
160123
  ],
160291
- "attributes": [
160292
- {
160293
- "name": "view",
160294
- "type": {
160295
- "text": "'side' | 'top'"
160296
- },
160297
- "default": "'side'",
160298
- "description": "Whether the view of the wagons is from side or top perspective.",
160299
- "fieldName": "view"
160300
- }
160301
- ],
160302
- "mixins": [
160303
- {
160304
- "name": "SbbNamedSlotListMixin",
160305
- "module": "core.js"
160306
- }
160307
- ],
160308
160124
  "superclass": {
160309
160125
  "name": "SbbElement",
160310
160126
  "module": "core.js"
160311
160127
  },
160312
- "tagName": "sbb-train-formation",
160128
+ "tagName": "sbb-train-blocked-passage",
160313
160129
  "customElement": true
160314
160130
  }
160315
160131
  ],
160316
160132
  "exports": [
160317
160133
  {
160318
160134
  "kind": "js",
160319
- "name": "SbbTrainFormationElement",
160135
+ "name": "SbbTrainBlockedPassageElement",
160320
160136
  "declaration": {
160321
- "name": "SbbTrainFormationElement",
160322
- "module": "train/train-formation/train-formation.component.js"
160137
+ "name": "SbbTrainBlockedPassageElement",
160138
+ "module": "train/train-blocked-passage/train-blocked-passage.component.js"
160323
160139
  }
160324
160140
  }
160325
160141
  ]
160326
160142
  },
160327
160143
  {
160328
160144
  "kind": "javascript-module",
160329
- "path": "train/train-blocked-passage/train-blocked-passage.component.js",
160145
+ "path": "train/train-formation/train-formation.component.js",
160330
160146
  "declarations": [
160331
160147
  {
160332
160148
  "kind": "class",
160333
- "description": "It visually displays a blocked passage between train wagons.",
160334
- "name": "SbbTrainBlockedPassageElement",
160149
+ "description": "It displays a train composition, acting as a container for one or more `sbb-train` component.",
160150
+ "name": "SbbTrainFormationElement",
160151
+ "cssProperties": [
160152
+ {
160153
+ "description": "Defines the inline padding inside the horizontal scrolling area.",
160154
+ "name": "--sbb-train-formation-padding-inline",
160155
+ "default": "0px"
160156
+ }
160157
+ ],
160158
+ "slots": [
160159
+ {
160160
+ "description": "Use the unnamed slot to add 'sbb-train' elements to the `sbb-train-formation`.",
160161
+ "name": ""
160162
+ }
160163
+ ],
160335
160164
  "members": [
160336
160165
  {
160337
160166
  "kind": "field",
@@ -160342,7 +160171,7 @@
160342
160171
  "privacy": "public",
160343
160172
  "static": true,
160344
160173
  "readonly": true,
160345
- "default": "'sbb-train-blocked-passage'",
160174
+ "default": "'sbb-train-formation'",
160346
160175
  "inheritedFrom": {
160347
160176
  "name": "SbbElement",
160348
160177
  "module": "core/base-elements/element.js"
@@ -160350,13 +160179,74 @@
160350
160179
  },
160351
160180
  {
160352
160181
  "kind": "field",
160353
- "name": "['_$sbbElement$']",
160182
+ "name": "listChildLocalNames",
160354
160183
  "type": {
160355
- "text": "boolean"
160184
+ "text": "array"
160185
+ },
160186
+ "privacy": "protected",
160187
+ "readonly": true,
160188
+ "description": "A list of lower-cased tag names to match against. (e.g. `sbb-link`)",
160189
+ "default": "['sbb-train']",
160190
+ "inheritedFrom": {
160191
+ "name": "SbbNamedSlotListMixin",
160192
+ "module": "core/mixins/named-slot-list-mixin.js"
160193
+ }
160194
+ },
160195
+ {
160196
+ "kind": "field",
160197
+ "name": "view",
160198
+ "type": {
160199
+ "text": "'side' | 'top'"
160200
+ },
160201
+ "privacy": "public",
160202
+ "default": "'side'",
160203
+ "description": "Whether the view of the wagons is from side or top perspective.",
160204
+ "attribute": "view",
160205
+ "reflects": true
160206
+ },
160207
+ {
160208
+ "kind": "field",
160209
+ "name": "_sectors",
160210
+ "type": {
160211
+ "text": "AggregatedSector[]"
160212
+ },
160213
+ "privacy": "private",
160214
+ "default": "[]"
160215
+ },
160216
+ {
160217
+ "kind": "field",
160218
+ "name": "_language",
160219
+ "privacy": "private",
160220
+ "default": "new SbbLanguageController(this)"
160221
+ },
160222
+ {
160223
+ "kind": "method",
160224
+ "name": "_readSectors",
160225
+ "privacy": "private",
160226
+ "return": {
160227
+ "type": {
160228
+ "text": "void"
160229
+ }
160230
+ },
160231
+ "parameters": [
160232
+ {
160233
+ "name": "event",
160234
+ "optional": true,
160235
+ "type": {
160236
+ "text": "Event"
160237
+ }
160238
+ }
160239
+ ]
160240
+ },
160241
+ {
160242
+ "kind": "field",
160243
+ "name": "elementDependencies",
160244
+ "type": {
160245
+ "text": "SbbElementType[]"
160356
160246
  },
160357
160247
  "privacy": "public",
160358
160248
  "static": true,
160359
- "default": "true",
160249
+ "default": "[SbbScreenReaderOnlyElement]",
160360
160250
  "inheritedFrom": {
160361
160251
  "name": "SbbElement",
160362
160252
  "module": "core/base-elements/element.js"
@@ -160364,12 +160254,105 @@
160364
160254
  },
160365
160255
  {
160366
160256
  "kind": "field",
160367
- "name": "elementDependencies",
160257
+ "name": "listChildren",
160368
160258
  "type": {
160369
- "text": "SbbElementType[] | undefined"
160259
+ "text": "C[]"
160260
+ },
160261
+ "privacy": "protected",
160262
+ "default": "[]",
160263
+ "description": "A list of children with the defined tag names.\nThis array is only updated if there is an actual change\nto the child elements.",
160264
+ "inheritedFrom": {
160265
+ "name": "SbbNamedSlotListMixin",
160266
+ "module": "core/mixins/named-slot-list-mixin.js"
160267
+ }
160268
+ },
160269
+ {
160270
+ "kind": "field",
160271
+ "name": "_handleSlotchange",
160272
+ "privacy": "private",
160273
+ "inheritedFrom": {
160274
+ "name": "SbbNamedSlotListMixin",
160275
+ "module": "core/mixins/named-slot-list-mixin.js"
160276
+ }
160277
+ },
160278
+ {
160279
+ "kind": "method",
160280
+ "name": "renderList",
160281
+ "privacy": "protected",
160282
+ "return": {
160283
+ "type": {
160284
+ "text": "TemplateResult"
160285
+ }
160286
+ },
160287
+ "parameters": [
160288
+ {
160289
+ "name": "attributes",
160290
+ "default": "{}",
160291
+ "type": {
160292
+ "text": "{ class?: string; ariaLabel?: string; ariaLabelledby?: string }"
160293
+ }
160294
+ },
160295
+ {
160296
+ "name": "listItemAttributes",
160297
+ "default": "{}",
160298
+ "type": {
160299
+ "text": "{ localNameVisualOnly?: string[] }"
160300
+ }
160301
+ }
160302
+ ],
160303
+ "description": "Renders list and list slots for slotted children or a number of list slots\ncorresponding to the `data-ssr-child-count` attribute value.\n\nThis is a possible optimization for SSR, as in an SSR Lit environment\nother elements are not available, but might be available in the meta\nframework wrapper (like e.g. React). This allows to provide the number of\nchildren to be passed via the `data-ssr-child-count` attribute value.",
160304
+ "inheritedFrom": {
160305
+ "name": "SbbNamedSlotListMixin",
160306
+ "module": "core/mixins/named-slot-list-mixin.js"
160307
+ }
160308
+ },
160309
+ {
160310
+ "kind": "method",
160311
+ "name": "listSlotEntries",
160312
+ "privacy": "protected",
160313
+ "return": {
160314
+ "type": {
160315
+ "text": "SbbNamedSlotProperties[]"
160316
+ }
160317
+ },
160318
+ "parameters": [
160319
+ {
160320
+ "name": "listItemAttributes",
160321
+ "type": {
160322
+ "text": "{\n localNameVisualOnly?: string[];\n }"
160323
+ }
160324
+ }
160325
+ ],
160326
+ "description": "Returns an array of SbbNamedSlotProperties, which holds the list slot names and the hidden property;\nits length corresponds to the number of matched children or the `data-ssr-child-count` attribute value.\n\nThis is a possible optimization for SSR, as in an SSR Lit environment\nother elements are not available, but might be available in the meta\nframework wrapper (like e.g. React). This allows to provide the number of\nchildren to be passed via the `data-ssr-child-count` attribute value.",
160327
+ "inheritedFrom": {
160328
+ "name": "SbbNamedSlotListMixin",
160329
+ "module": "core/mixins/named-slot-list-mixin.js"
160330
+ }
160331
+ },
160332
+ {
160333
+ "kind": "method",
160334
+ "name": "renderHiddenSlot",
160335
+ "privacy": "protected",
160336
+ "return": {
160337
+ "type": {
160338
+ "text": "TemplateResult"
160339
+ }
160340
+ },
160341
+ "description": "Returns a hidden slot, which is intended as the children change detection.\nWhen an element without a slot attribute is slotted to the element, it triggers\nthe slotchange event, which can be used to assign it to the appropriate named slot.",
160342
+ "inheritedFrom": {
160343
+ "name": "SbbNamedSlotListMixin",
160344
+ "module": "core/mixins/named-slot-list-mixin.js"
160345
+ }
160346
+ },
160347
+ {
160348
+ "kind": "field",
160349
+ "name": "['_$sbbElement$']",
160350
+ "type": {
160351
+ "text": "boolean"
160370
160352
  },
160371
160353
  "privacy": "public",
160372
160354
  "static": true,
160355
+ "default": "true",
160373
160356
  "inheritedFrom": {
160374
160357
  "name": "SbbElement",
160375
160358
  "module": "core/base-elements/element.js"
@@ -160608,21 +160591,38 @@
160608
160591
  }
160609
160592
  }
160610
160593
  ],
160594
+ "attributes": [
160595
+ {
160596
+ "name": "view",
160597
+ "type": {
160598
+ "text": "'side' | 'top'"
160599
+ },
160600
+ "default": "'side'",
160601
+ "description": "Whether the view of the wagons is from side or top perspective.",
160602
+ "fieldName": "view"
160603
+ }
160604
+ ],
160605
+ "mixins": [
160606
+ {
160607
+ "name": "SbbNamedSlotListMixin",
160608
+ "module": "core.js"
160609
+ }
160610
+ ],
160611
160611
  "superclass": {
160612
160612
  "name": "SbbElement",
160613
160613
  "module": "core.js"
160614
160614
  },
160615
- "tagName": "sbb-train-blocked-passage",
160615
+ "tagName": "sbb-train-formation",
160616
160616
  "customElement": true
160617
160617
  }
160618
160618
  ],
160619
160619
  "exports": [
160620
160620
  {
160621
160621
  "kind": "js",
160622
- "name": "SbbTrainBlockedPassageElement",
160622
+ "name": "SbbTrainFormationElement",
160623
160623
  "declaration": {
160624
- "name": "SbbTrainBlockedPassageElement",
160625
- "module": "train/train-blocked-passage/train-blocked-passage.component.js"
160624
+ "name": "SbbTrainFormationElement",
160625
+ "module": "train/train-formation/train-formation.component.js"
160626
160626
  }
160627
160627
  }
160628
160628
  ]