@sbb-esta/lyne-elements-dev 4.7.0-dev.1773224724 → 4.7.0-dev.1773234121

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 +928 -928
  2. package/package.json +2 -2
@@ -117367,79 +117367,20 @@
117367
117367
  },
117368
117368
  {
117369
117369
  "kind": "javascript-module",
117370
- "path": "stepper/stepper/stepper.component.js",
117370
+ "path": "stepper/step-label/step-label.component.js",
117371
117371
  "declarations": [
117372
117372
  {
117373
117373
  "kind": "class",
117374
- "description": "",
117375
- "name": "SbbStepChangeEvent",
117376
- "members": [
117377
- {
117378
- "kind": "field",
117379
- "name": "selectedIndex",
117380
- "type": {
117381
- "text": "number | null"
117382
- },
117383
- "privacy": "public",
117384
- "readonly": true,
117385
- "description": "The index of the newly selected step.",
117386
- "default": "selectedIndex"
117387
- },
117388
- {
117389
- "kind": "field",
117390
- "name": "previousIndex",
117391
- "type": {
117392
- "text": "number | null"
117393
- },
117394
- "privacy": "public",
117395
- "readonly": true,
117396
- "description": "The index of the previously selected step.",
117397
- "default": "previousIndex"
117398
- },
117399
- {
117400
- "kind": "field",
117401
- "name": "selectedStep",
117402
- "type": {
117403
- "text": "SbbStepElement | null"
117404
- },
117405
- "privacy": "public",
117406
- "readonly": true,
117407
- "description": "The newly selected step element.",
117408
- "default": "selectedStep"
117409
- },
117410
- {
117411
- "kind": "field",
117412
- "name": "previousStep",
117413
- "type": {
117414
- "text": "SbbStepElement | null"
117415
- },
117416
- "privacy": "public",
117417
- "readonly": true,
117418
- "description": "The previously selected step element.",
117419
- "default": "previousStep"
117420
- }
117421
- ],
117422
- "superclass": {
117423
- "name": "Event",
117424
- "module": "stepper/stepper/stepper.component.js"
117425
- }
117426
- },
117427
- {
117428
- "kind": "class",
117429
- "description": "Provides a structured, step-by-step workflow for user interactions.",
117430
- "name": "SbbStepperElement",
117374
+ "description": "Combined with a `sbb-stepper`, it displays a step's label.",
117375
+ "name": "SbbStepLabelElement",
117431
117376
  "slots": [
117432
117377
  {
117433
- "description": "Provide a `sbb-expansion-panel-header` and a `sbb-expansion-panel-content` to the stepper.",
117378
+ "description": "Use the unnamed slot to provide a label.",
117434
117379
  "name": ""
117435
117380
  },
117436
117381
  {
117437
- "description": "Use this slot to provide an `sbb-step-label`.",
117438
- "name": "step-label"
117439
- },
117440
- {
117441
- "description": "Use this slot to provide an `sbb-step`.",
117442
- "name": "step"
117382
+ "description": "Use this to display an icon in the label bubble.",
117383
+ "name": "icon"
117443
117384
  }
117444
117385
  ],
117445
117386
  "members": [
@@ -117452,340 +117393,293 @@
117452
117393
  "privacy": "public",
117453
117394
  "static": true,
117454
117395
  "readonly": true,
117455
- "default": "'sbb-stepper'",
117456
117396
  "inheritedFrom": {
117457
117397
  "name": "SbbElement",
117458
117398
  "module": "core/base-elements/element.js"
117459
- }
117460
- },
117461
- {
117462
- "kind": "field",
117463
- "name": "events",
117464
- "privacy": "public",
117465
- "static": true,
117466
- "readonly": true,
117467
- "default": "{ stepchange: 'stepchange', }",
117468
- "type": {
117469
- "text": "{\n stepchange: 'stepchange',\n }"
117470
- }
117471
- },
117472
- {
117473
- "kind": "field",
117474
- "name": "_observer",
117475
- "privacy": "private",
117476
- "default": "new IntersectionController(this, { target: null, callback: (entries) => { entries.forEach((e) => { if (e.intersectionRatio > 0) { this._setStepperHeight(this.selected); this._setMarkerSize(); } }); }, })",
117477
- "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."
117478
- },
117479
- {
117480
- "kind": "field",
117481
- "name": "linear",
117482
- "type": {
117483
- "text": "boolean"
117484
- },
117485
- "privacy": "public",
117486
- "default": "false",
117487
- "description": "If set to true, only the current and previous labels can be clicked and selected.",
117488
- "attribute": "linear"
117489
- },
117490
- {
117491
- "kind": "field",
117492
- "name": "horizontalFrom",
117493
- "privacy": "public",
117494
- "description": "Overrides the behavior of `orientation` property.",
117495
- "type": {
117496
- "text": "SbbHorizontalFrom | null"
117497
- },
117498
- "attribute": "horizontal-from",
117499
- "reflects": true,
117500
- "default": "null"
117501
- },
117502
- {
117503
- "kind": "field",
117504
- "name": "_horizontalFrom",
117505
- "type": {
117506
- "text": "SbbHorizontalFrom | null"
117507
- },
117508
- "privacy": "private",
117509
- "default": "null"
117510
- },
117511
- {
117512
- "kind": "field",
117513
- "name": "orientation",
117514
- "type": {
117515
- "text": "SbbOrientation"
117516
117399
  },
117517
- "privacy": "public",
117518
- "default": "'horizontal'",
117519
- "description": "Steps orientation, either horizontal or vertical.",
117520
- "attribute": "orientation",
117521
- "reflects": true
117400
+ "default": "'sbb-step-label'"
117522
117401
  },
117523
117402
  {
117524
117403
  "kind": "field",
117525
- "name": "size",
117404
+ "name": "role",
117526
117405
  "type": {
117527
- "text": "'s' | 'm'"
117406
+ "text": "string"
117528
117407
  },
117529
117408
  "privacy": "public",
117530
- "description": "Size variant, either s or m.",
117531
- "default": "'m' / 's' (lean)",
117532
- "attribute": "size",
117533
- "reflects": true
117534
- },
117535
- {
117536
- "kind": "field",
117537
- "name": "selected",
117538
- "privacy": "public",
117539
- "description": "The currently selected step.",
117540
- "type": {
117541
- "text": "SbbStepElement | null"
117409
+ "static": true,
117410
+ "readonly": true,
117411
+ "default": "'tab'",
117412
+ "inheritedFrom": {
117413
+ "name": "SbbButtonLikeBaseElement",
117414
+ "module": "core/base-elements/button-base-element.js"
117542
117415
  }
117543
117416
  },
117544
117417
  {
117545
117418
  "kind": "field",
117546
- "name": "_requestedSelected",
117419
+ "name": "step",
117547
117420
  "type": {
117548
117421
  "text": "SbbStepElement | null"
117549
117422
  },
117550
- "privacy": "private",
117551
- "default": "null"
117552
- },
117553
- {
117554
- "kind": "field",
117555
- "name": "selectedIndex",
117556
117423
  "privacy": "public",
117557
- "description": "The currently selected step index.",
117558
- "type": {
117559
- "text": "number | null"
117560
- },
117561
- "attribute": "selected-index"
117424
+ "description": "The step controlled by the label.",
117425
+ "readonly": true,
117426
+ "default": "null"
117562
117427
  },
117563
117428
  {
117564
117429
  "kind": "field",
117565
- "name": "_requestedSelectedIndex",
117430
+ "name": "_step",
117566
117431
  "type": {
117567
- "text": "number | null"
117432
+ "text": "SbbStepElement | null"
117568
117433
  },
117569
117434
  "privacy": "private",
117570
117435
  "default": "null"
117571
117436
  },
117572
117437
  {
117573
117438
  "kind": "field",
117574
- "name": "steps",
117439
+ "name": "stepper",
117575
117440
  "type": {
117576
- "text": "SbbStepElement[]"
117441
+ "text": "SbbStepperElement | null"
117577
117442
  },
117578
117443
  "privacy": "public",
117579
- "description": "The steps of the stepper.",
117580
117444
  "readonly": true
117581
117445
  },
117582
117446
  {
117583
117447
  "kind": "field",
117584
- "name": "_enabledSteps",
117448
+ "name": "disabled",
117449
+ "privacy": "public",
117450
+ "description": "Whether the component is disabled.",
117451
+ "default": "false",
117585
117452
  "type": {
117586
- "text": "SbbStepElement[]"
117453
+ "text": "boolean"
117587
117454
  },
117588
- "privacy": "private",
117589
- "readonly": true
117455
+ "attribute": "disabled",
117456
+ "reflects": true,
117457
+ "inheritedFrom": {
117458
+ "name": "SbbDisabledMixin",
117459
+ "module": "core/mixins/disabled-mixin.js"
117460
+ }
117590
117461
  },
117591
117462
  {
117592
117463
  "kind": "field",
117593
- "name": "_loaded",
117464
+ "name": "_previousOrientation",
117594
117465
  "type": {
117595
- "text": "boolean"
117466
+ "text": "string | undefined"
117596
117467
  },
117597
- "privacy": "private",
117598
- "default": "false"
117468
+ "privacy": "private"
117599
117469
  },
117600
117470
  {
117601
117471
  "kind": "field",
117602
- "name": "_resizeObserverTimeout",
117472
+ "name": "_previousSize",
117603
117473
  "type": {
117604
- "text": "ReturnType<typeof setTimeout> | null"
117474
+ "text": "string | undefined"
117605
117475
  },
117606
- "privacy": "private",
117607
- "default": "null"
117608
- },
117609
- {
117610
- "kind": "field",
117611
- "name": "_mediaMatcher",
117612
- "privacy": "private",
117613
- "default": "new SbbMediaMatcherController(this, {})"
117476
+ "privacy": "private"
117614
117477
  },
117615
117478
  {
117616
117479
  "kind": "method",
117617
- "name": "next",
117618
- "privacy": "public",
117480
+ "name": "_isNotDeactivatedByLinearMode",
117481
+ "privacy": "private",
117619
117482
  "return": {
117620
117483
  "type": {
117621
- "text": "void"
117484
+ "text": "boolean"
117622
117485
  }
117623
117486
  },
117624
- "description": "Selects the next step."
117487
+ "parameters": [
117488
+ {
117489
+ "name": "step",
117490
+ "type": {
117491
+ "text": "SbbStepElement"
117492
+ }
117493
+ }
117494
+ ]
117625
117495
  },
117626
117496
  {
117627
117497
  "kind": "method",
117628
- "name": "previous",
117629
- "privacy": "public",
117498
+ "name": "_assignStep",
117499
+ "privacy": "private",
117630
117500
  "return": {
117631
117501
  "type": {
117632
117502
  "text": "void"
117633
117503
  }
117504
+ }
117505
+ },
117506
+ {
117507
+ "kind": "field",
117508
+ "name": "iconName",
117509
+ "type": {
117510
+ "text": "string"
117634
117511
  },
117635
- "description": "Selects the previous step."
117512
+ "privacy": "public",
117513
+ "default": "''",
117514
+ "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.",
117515
+ "attribute": "icon-name",
117516
+ "inheritedFrom": {
117517
+ "name": "SbbIconNameMixin",
117518
+ "module": "icon/icon-name-mixin.js"
117519
+ }
117636
117520
  },
117637
117521
  {
117638
117522
  "kind": "method",
117639
- "name": "reset",
117640
- "privacy": "public",
117523
+ "name": "renderIconSlot",
117524
+ "privacy": "protected",
117641
117525
  "return": {
117642
117526
  "type": {
117643
- "text": "void"
117644
- }
117645
- },
117646
- "description": "Resets the form in which the stepper is nested or every form of each step, if any."
117647
- },
117648
- {
117649
- "kind": "method",
117650
- "name": "_isSelectable",
117651
- "privacy": "private",
117652
- "return": {
117653
- "type": {
117654
- "text": "step is SbbStepElement"
117527
+ "text": "TemplateResult"
117655
117528
  }
117656
117529
  },
117657
117530
  "parameters": [
117658
117531
  {
117659
- "name": "step",
117532
+ "name": "classname",
117533
+ "optional": true,
117660
117534
  "type": {
117661
- "text": "SbbStepElement | null"
117535
+ "text": "string"
117662
117536
  }
117663
117537
  }
117664
- ]
117538
+ ],
117539
+ "inheritedFrom": {
117540
+ "name": "SbbIconNameMixin",
117541
+ "module": "icon/icon-name-mixin.js"
117542
+ }
117665
117543
  },
117666
117544
  {
117667
117545
  "kind": "method",
117668
- "name": "_select",
117669
- "privacy": "private",
117546
+ "name": "renderIconName",
117547
+ "privacy": "protected",
117670
117548
  "return": {
117671
117549
  "type": {
117672
- "text": "void"
117550
+ "text": "string"
117673
117551
  }
117674
117552
  },
117675
- "parameters": [
117676
- {
117677
- "name": "step",
117678
- "type": {
117679
- "text": "SbbStepElement | null"
117680
- }
117681
- }
117682
- ]
117553
+ "inheritedFrom": {
117554
+ "name": "SbbIconNameMixin",
117555
+ "module": "icon/icon-name-mixin.js"
117556
+ }
117683
117557
  },
117684
117558
  {
117685
117559
  "kind": "method",
117686
- "name": "_setMarkerSize",
117560
+ "name": "_renderIconName",
117687
117561
  "privacy": "private",
117688
117562
  "return": {
117689
117563
  "type": {
117690
- "text": "void"
117564
+ "text": "string"
117691
117565
  }
117566
+ },
117567
+ "inheritedFrom": {
117568
+ "name": "SbbIconNameMixin",
117569
+ "module": "icon/icon-name-mixin.js"
117692
117570
  }
117693
117571
  },
117694
117572
  {
117695
- "kind": "method",
117696
- "name": "_setStepperHeight",
117573
+ "kind": "field",
117574
+ "name": "#disabled",
117697
117575
  "privacy": "private",
117698
- "return": {
117699
- "type": {
117700
- "text": "void"
117701
- }
117576
+ "type": {
117577
+ "text": "boolean"
117702
117578
  },
117703
- "parameters": [
117704
- {
117705
- "name": "step",
117706
- "type": {
117707
- "text": "SbbStepElement | null"
117708
- }
117709
- }
117710
- ],
117711
- "description": "Sets the stepper height based on the height of the provided step."
117579
+ "default": "false",
117580
+ "inheritedFrom": {
117581
+ "name": "SbbDisabledMixin",
117582
+ "module": "core/mixins/disabled-mixin.js"
117583
+ }
117712
117584
  },
117713
117585
  {
117714
117586
  "kind": "method",
117715
- "name": "_calculateLabelOffsetTop",
117716
- "privacy": "private",
117587
+ "name": "isDisabledExternally",
117588
+ "privacy": "protected",
117717
117589
  "return": {
117718
117590
  "type": {
117719
- "text": "number | undefined"
117591
+ "text": "boolean"
117720
117592
  }
117593
+ },
117594
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
117595
+ "inheritedFrom": {
117596
+ "name": "SbbDisabledMixin",
117597
+ "module": "core/mixins/disabled-mixin.js"
117721
117598
  }
117722
117599
  },
117723
117600
  {
117724
- "kind": "method",
117725
- "name": "_onSelectedStepResize",
117601
+ "kind": "field",
117602
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
117603
+ "type": {
117604
+ "text": "array"
117605
+ },
117726
117606
  "privacy": "private",
117727
- "return": {
117728
- "type": {
117729
- "text": "void"
117730
- }
117607
+ "readonly": true,
117608
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
117609
+ "inheritedFrom": {
117610
+ "name": "SbbButtonBaseElement",
117611
+ "module": "core/base-elements/button-base-element.js"
117612
+ }
117613
+ },
117614
+ {
117615
+ "kind": "field",
117616
+ "name": "value",
117617
+ "type": {
117618
+ "text": "string"
117731
117619
  },
117732
- "parameters": [
117733
- {
117734
- "name": "e",
117735
- "type": {
117736
- "text": "Event"
117737
- }
117738
- }
117739
- ]
117620
+ "privacy": "public",
117621
+ "inheritedFrom": {
117622
+ "name": "SbbButtonBaseElement",
117623
+ "module": "core/base-elements/button-base-element.js"
117624
+ },
117625
+ "default": "''",
117626
+ "description": "Value of the form element.",
117627
+ "attribute": "value"
117740
117628
  },
117741
117629
  {
117742
- "kind": "method",
117743
- "name": "_configure",
117744
- "privacy": "private",
117745
- "return": {
117746
- "type": {
117747
- "text": "void"
117748
- }
117630
+ "kind": "field",
117631
+ "name": "type",
117632
+ "privacy": "public",
117633
+ "description": "The type attribute to use for the button.",
117634
+ "default": "'button'",
117635
+ "type": {
117636
+ "text": "SbbButtonType"
117637
+ },
117638
+ "attribute": "type",
117639
+ "inheritedFrom": {
117640
+ "name": "SbbButtonBaseElement",
117641
+ "module": "core/base-elements/button-base-element.js"
117749
117642
  }
117750
117643
  },
117751
117644
  {
117752
- "kind": "method",
117753
- "name": "_updateLabels",
117754
- "privacy": "private",
117755
- "return": {
117756
- "type": {
117757
- "text": "void"
117758
- }
117759
- }
117645
+ "kind": "field",
117646
+ "name": "form",
117647
+ "type": {
117648
+ "text": "HTMLFormElement | null"
117649
+ },
117650
+ "privacy": "public",
117651
+ "description": "The `<form>` element to associate the button with.",
117652
+ "inheritedFrom": {
117653
+ "name": "SbbButtonBaseElement",
117654
+ "module": "core/base-elements/button-base-element.js"
117655
+ },
117656
+ "attribute": "form"
117760
117657
  },
117761
117658
  {
117762
- "kind": "method",
117763
- "name": "_checkOrientation",
117659
+ "kind": "field",
117660
+ "name": "_formId",
117661
+ "type": {
117662
+ "text": "string"
117663
+ },
117764
117664
  "privacy": "private",
117765
- "return": {
117766
- "type": {
117767
- "text": "void"
117768
- }
117665
+ "default": "''",
117666
+ "inheritedFrom": {
117667
+ "name": "SbbButtonBaseElement",
117668
+ "module": "core/base-elements/button-base-element.js"
117769
117669
  }
117770
117670
  },
117771
117671
  {
117772
117672
  "kind": "field",
117773
- "name": "_onStepperResize",
117774
- "privacy": "private"
117775
- },
117776
- {
117777
- "kind": "method",
117778
- "name": "_configureLinearMode",
117673
+ "name": "_handleButtonClick",
117779
117674
  "privacy": "private",
117780
- "return": {
117781
- "type": {
117782
- "text": "void"
117783
- }
117675
+ "inheritedFrom": {
117676
+ "name": "SbbButtonBaseElement",
117677
+ "module": "core/base-elements/button-base-element.js"
117784
117678
  }
117785
117679
  },
117786
117680
  {
117787
117681
  "kind": "method",
117788
- "name": "_handleKeyDown",
117682
+ "name": "_requestSubmit",
117789
117683
  "privacy": "private",
117790
117684
  "return": {
117791
117685
  "type": {
@@ -117794,67 +117688,154 @@
117794
117688
  },
117795
117689
  "parameters": [
117796
117690
  {
117797
- "name": "evt",
117691
+ "name": "form",
117798
117692
  "type": {
117799
- "text": "KeyboardEvent"
117693
+ "text": "HTMLFormElement"
117800
117694
  }
117801
117695
  }
117802
- ]
117696
+ ],
117697
+ "inheritedFrom": {
117698
+ "name": "SbbButtonBaseElement",
117699
+ "module": "core/base-elements/button-base-element.js"
117700
+ }
117803
117701
  },
117804
117702
  {
117805
117703
  "kind": "field",
117806
- "name": "_hydrationRequired",
117807
- "type": {
117808
- "text": "boolean"
117809
- },
117704
+ "name": "_formKeyDown",
117810
117705
  "privacy": "private",
117811
- "default": "!!this.shadowRoot",
117812
117706
  "inheritedFrom": {
117813
- "name": "SbbElement",
117814
- "module": "core/base-elements/element.js"
117707
+ "name": "SbbButtonBaseElement",
117708
+ "module": "core/base-elements/button-base-element.js"
117815
117709
  }
117816
117710
  },
117817
117711
  {
117818
117712
  "kind": "field",
117819
- "name": "_hydrationComplete",
117820
- "privacy": "private",
117821
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
117713
+ "name": "formAssociated",
117714
+ "type": {
117715
+ "text": "boolean"
117716
+ },
117717
+ "privacy": "public",
117718
+ "static": true,
117719
+ "default": "true",
117822
117720
  "inheritedFrom": {
117823
- "name": "SbbElement",
117824
- "module": "core/base-elements/element.js"
117721
+ "name": "SbbFormAssociatedMixin",
117722
+ "module": "core/mixins/form-associated-mixin.js"
117825
117723
  }
117826
117724
  },
117827
117725
  {
117828
117726
  "kind": "field",
117829
- "name": "_resolveHydration",
117727
+ "name": "name",
117728
+ "privacy": "public",
117729
+ "description": "Name of the form element. Will be read from name attribute.",
117830
117730
  "type": {
117831
- "text": "(hydrationRequired: boolean) => void"
117731
+ "text": "string"
117832
117732
  },
117833
- "privacy": "private",
117733
+ "attribute": "name",
117834
117734
  "inheritedFrom": {
117835
- "name": "SbbElement",
117836
- "module": "core/base-elements/element.js"
117735
+ "name": "SbbFormAssociatedMixin",
117736
+ "module": "core/mixins/form-associated-mixin.js"
117837
117737
  }
117838
117738
  },
117839
117739
  {
117840
117740
  "kind": "field",
117841
- "name": "hydrationRequired",
117741
+ "name": "validity",
117842
117742
  "type": {
117843
- "text": "boolean"
117743
+ "text": "ValidityState"
117844
117744
  },
117845
- "privacy": "protected",
117846
- "description": "Returns whether hydration is required and not completed.",
117745
+ "privacy": "public",
117746
+ "description": "Returns the ValidityState object for this element.",
117847
117747
  "readonly": true,
117848
117748
  "inheritedFrom": {
117849
- "name": "SbbElement",
117850
- "module": "core/base-elements/element.js"
117851
- },
117852
- "default": "!!this.shadowRoot"
117749
+ "name": "SbbFormAssociatedMixin",
117750
+ "module": "core/mixins/form-associated-mixin.js"
117751
+ }
117853
117752
  },
117854
117753
  {
117855
- "kind": "method",
117856
- "name": "toggleState",
117754
+ "kind": "field",
117755
+ "name": "validationMessage",
117756
+ "type": {
117757
+ "text": "string"
117758
+ },
117759
+ "privacy": "public",
117760
+ "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.",
117761
+ "readonly": true,
117762
+ "inheritedFrom": {
117763
+ "name": "SbbFormAssociatedMixin",
117764
+ "module": "core/mixins/form-associated-mixin.js"
117765
+ }
117766
+ },
117767
+ {
117768
+ "kind": "field",
117769
+ "name": "willValidate",
117770
+ "type": {
117771
+ "text": "boolean"
117772
+ },
117773
+ "privacy": "public",
117774
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
117775
+ "readonly": true,
117776
+ "inheritedFrom": {
117777
+ "name": "SbbFormAssociatedMixin",
117778
+ "module": "core/mixins/form-associated-mixin.js"
117779
+ }
117780
+ },
117781
+ {
117782
+ "kind": "field",
117783
+ "name": "_validityStates",
117784
+ "privacy": "private",
117785
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
117786
+ "inheritedFrom": {
117787
+ "name": "SbbFormAssociatedMixin",
117788
+ "module": "core/mixins/form-associated-mixin.js"
117789
+ }
117790
+ },
117791
+ {
117792
+ "kind": "field",
117793
+ "name": "formDisabled",
117794
+ "type": {
117795
+ "text": "boolean"
117796
+ },
117857
117797
  "privacy": "protected",
117798
+ "default": "false",
117799
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
117800
+ "inheritedFrom": {
117801
+ "name": "SbbFormAssociatedMixin",
117802
+ "module": "core/mixins/form-associated-mixin.js"
117803
+ }
117804
+ },
117805
+ {
117806
+ "kind": "method",
117807
+ "name": "checkValidity",
117808
+ "privacy": "public",
117809
+ "return": {
117810
+ "type": {
117811
+ "text": "boolean"
117812
+ }
117813
+ },
117814
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
117815
+ "inheritedFrom": {
117816
+ "name": "SbbFormAssociatedMixin",
117817
+ "module": "core/mixins/form-associated-mixin.js"
117818
+ }
117819
+ },
117820
+ {
117821
+ "kind": "method",
117822
+ "name": "reportValidity",
117823
+ "privacy": "public",
117824
+ "return": {
117825
+ "type": {
117826
+ "text": "boolean"
117827
+ }
117828
+ },
117829
+ "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.",
117830
+ "inheritedFrom": {
117831
+ "name": "SbbFormAssociatedMixin",
117832
+ "module": "core/mixins/form-associated-mixin.js"
117833
+ }
117834
+ },
117835
+ {
117836
+ "kind": "method",
117837
+ "name": "setCustomValidity",
117838
+ "privacy": "public",
117858
117839
  "return": {
117859
117840
  "type": {
117860
117841
  "text": "void"
@@ -117862,184 +117843,183 @@
117862
117843
  },
117863
117844
  "parameters": [
117864
117845
  {
117865
- "name": "value",
117846
+ "name": "message",
117866
117847
  "type": {
117867
117848
  "text": "string"
117868
117849
  }
117869
- },
117870
- {
117871
- "name": "force",
117872
- "optional": true,
117873
- "type": {
117874
- "text": "boolean"
117875
- }
117876
117850
  }
117877
117851
  ],
117852
+ "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.",
117878
117853
  "inheritedFrom": {
117879
- "name": "SbbElement",
117880
- "module": "core/base-elements/element.js"
117854
+ "name": "SbbFormAssociatedMixin",
117855
+ "module": "core/mixins/form-associated-mixin.js"
117881
117856
  }
117882
117857
  },
117883
117858
  {
117884
- "kind": "field",
117885
- "name": "['_$sbbElement$']",
117886
- "type": {
117887
- "text": "boolean"
117859
+ "kind": "method",
117860
+ "name": "_hasDisabledAncestor",
117861
+ "privacy": "private",
117862
+ "return": {
117863
+ "type": {
117864
+ "text": "boolean"
117865
+ }
117888
117866
  },
117889
- "privacy": "public",
117890
- "static": true,
117891
- "default": "true",
117892
117867
  "inheritedFrom": {
117893
- "name": "SbbElement",
117894
- "module": "core/base-elements/element.js"
117868
+ "name": "SbbFormAssociatedMixin",
117869
+ "module": "core/mixins/form-associated-mixin.js"
117895
117870
  }
117896
117871
  },
117897
117872
  {
117898
- "kind": "field",
117899
- "name": "_controllers",
117900
- "type": {
117901
- "text": "Set<SbbReactiveController> | undefined"
117873
+ "kind": "method",
117874
+ "name": "updateFormValue",
117875
+ "privacy": "protected",
117876
+ "return": {
117877
+ "type": {
117878
+ "text": "void"
117879
+ }
117902
117880
  },
117903
- "privacy": "private",
117881
+ "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",
117904
117882
  "inheritedFrom": {
117905
- "name": "SbbElement",
117906
- "module": "core/base-elements/element.js"
117883
+ "name": "SbbFormAssociatedMixin",
117884
+ "module": "core/mixins/form-associated-mixin.js"
117907
117885
  }
117908
- }
117909
- ],
117910
- "events": [
117911
- {
117912
- "type": {
117913
- "text": "SbbStepChangeEvent"
117914
- },
117915
- "description": "Emits whenever a step was changed.",
117916
- "name": "stepchange"
117917
- }
117918
- ],
117919
- "attributes": [
117886
+ },
117920
117887
  {
117921
- "name": "linear",
117922
- "type": {
117923
- "text": "boolean"
117888
+ "kind": "method",
117889
+ "name": "formState",
117890
+ "privacy": "protected",
117891
+ "return": {
117892
+ "type": {
117893
+ "text": "FormRestoreState"
117894
+ }
117924
117895
  },
117925
- "default": "false",
117926
- "description": "If set to true, only the current and previous labels can be clicked and selected.",
117927
- "fieldName": "linear"
117896
+ "inheritedFrom": {
117897
+ "name": "SbbFormAssociatedMixin",
117898
+ "module": "core/mixins/form-associated-mixin.js"
117899
+ }
117928
117900
  },
117929
117901
  {
117930
- "name": "horizontal-from",
117931
- "description": "Overrides the behavior of `orientation` property.",
117932
- "type": {
117933
- "text": "SbbHorizontalFrom | null"
117902
+ "kind": "method",
117903
+ "name": "setValidityFlag",
117904
+ "privacy": "protected",
117905
+ "return": {
117906
+ "type": {
117907
+ "text": "void"
117908
+ }
117934
117909
  },
117935
- "fieldName": "horizontalFrom"
117910
+ "parameters": [
117911
+ {
117912
+ "name": "flag",
117913
+ "type": {
117914
+ "text": "T"
117915
+ }
117916
+ },
117917
+ {
117918
+ "name": "message",
117919
+ "type": {
117920
+ "text": "string"
117921
+ }
117922
+ },
117923
+ {
117924
+ "name": "flagValue",
117925
+ "optional": true,
117926
+ "type": {
117927
+ "text": "ValidityStateFlags[T]"
117928
+ }
117929
+ }
117930
+ ],
117931
+ "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).",
117932
+ "inheritedFrom": {
117933
+ "name": "SbbFormAssociatedMixin",
117934
+ "module": "core/mixins/form-associated-mixin.js"
117935
+ }
117936
117936
  },
117937
117937
  {
117938
- "name": "orientation",
117939
- "type": {
117940
- "text": "SbbOrientation"
117938
+ "kind": "method",
117939
+ "name": "removeValidityFlag",
117940
+ "privacy": "protected",
117941
+ "return": {
117942
+ "type": {
117943
+ "text": "void"
117944
+ }
117941
117945
  },
117942
- "default": "'horizontal'",
117943
- "description": "Steps orientation, either horizontal or vertical.",
117944
- "fieldName": "orientation"
117946
+ "parameters": [
117947
+ {
117948
+ "name": "flag",
117949
+ "type": {
117950
+ "text": "T"
117951
+ }
117952
+ }
117953
+ ],
117954
+ "description": "Removes the validity state flag entry and updates validity state.",
117955
+ "inheritedFrom": {
117956
+ "name": "SbbFormAssociatedMixin",
117957
+ "module": "core/mixins/form-associated-mixin.js"
117958
+ }
117945
117959
  },
117946
117960
  {
117947
- "name": "size",
117948
- "type": {
117949
- "text": "'s' | 'm'"
117961
+ "kind": "method",
117962
+ "name": "validate",
117963
+ "privacy": "protected",
117964
+ "return": {
117965
+ "type": {
117966
+ "text": "void"
117967
+ }
117950
117968
  },
117951
- "description": "Size variant, either s or m.",
117952
- "default": "'m' / 's' (lean)",
117953
- "fieldName": "size"
117969
+ "description": "To be called whenever the current element needs to be validated.",
117970
+ "inheritedFrom": {
117971
+ "name": "SbbFormAssociatedMixin",
117972
+ "module": "core/mixins/form-associated-mixin.js"
117973
+ }
117954
117974
  },
117955
117975
  {
117956
- "name": "selected-index",
117957
- "description": "The currently selected step index.",
117958
- "type": {
117959
- "text": "number | null"
117976
+ "kind": "method",
117977
+ "name": "shouldValidate",
117978
+ "privacy": "protected",
117979
+ "return": {
117980
+ "type": {
117981
+ "text": "boolean"
117982
+ }
117960
117983
  },
117961
- "fieldName": "selectedIndex"
117962
- }
117963
- ],
117964
- "superclass": {
117965
- "name": "SbbElement",
117966
- "module": "core/base-elements.js"
117967
- },
117968
- "tagName": "sbb-stepper",
117969
- "customElement": true
117970
- },
117971
- {
117972
- "kind": "variable",
117973
- "name": "currentIndex"
117974
- },
117975
- {
117976
- "kind": "variable",
117977
- "name": "currentStep"
117978
- }
117979
- ],
117980
- "exports": [
117981
- {
117982
- "kind": "js",
117983
- "name": "SbbStepChangeEvent",
117984
- "declaration": {
117985
- "name": "SbbStepChangeEvent",
117986
- "module": "stepper/stepper/stepper.component.js"
117987
- }
117988
- },
117989
- {
117990
- "kind": "js",
117991
- "name": "SbbStepperElement",
117992
- "declaration": {
117993
- "name": "SbbStepperElement",
117994
- "module": "stepper/stepper/stepper.component.js"
117995
- }
117996
- }
117997
- ]
117998
- },
117999
- {
118000
- "kind": "javascript-module",
118001
- "path": "stepper/step-label/step-label.component.js",
118002
- "declarations": [
118003
- {
118004
- "kind": "class",
118005
- "description": "Combined with a `sbb-stepper`, it displays a step's label.",
118006
- "name": "SbbStepLabelElement",
118007
- "slots": [
118008
- {
118009
- "description": "Use the unnamed slot to provide a label.",
118010
- "name": ""
117984
+ "parameters": [
117985
+ {
117986
+ "name": "name",
117987
+ "type": {
117988
+ "text": "PropertyKey | undefined"
117989
+ }
117990
+ }
117991
+ ],
117992
+ "description": "Whether validation should be run on a property change with the given name.",
117993
+ "inheritedFrom": {
117994
+ "name": "SbbFormAssociatedMixin",
117995
+ "module": "core/mixins/form-associated-mixin.js"
117996
+ }
118011
117997
  },
118012
117998
  {
118013
- "description": "Use this to display an icon in the label bubble.",
118014
- "name": "icon"
118015
- }
118016
- ],
118017
- "members": [
118018
- {
118019
- "kind": "field",
118020
- "name": "elementName",
118021
- "type": {
118022
- "text": "string"
117999
+ "kind": "method",
118000
+ "name": "_setInternalValidity",
118001
+ "privacy": "private",
118002
+ "return": {
118003
+ "type": {
118004
+ "text": "void"
118005
+ }
118023
118006
  },
118024
- "privacy": "public",
118025
- "static": true,
118026
- "readonly": true,
118027
118007
  "inheritedFrom": {
118028
- "name": "SbbElement",
118029
- "module": "core/base-elements/element.js"
118030
- },
118031
- "default": "'sbb-step-label'"
118008
+ "name": "SbbFormAssociatedMixin",
118009
+ "module": "core/mixins/form-associated-mixin.js"
118010
+ }
118032
118011
  },
118033
118012
  {
118034
118013
  "kind": "field",
118035
- "name": "role",
118036
- "type": {
118037
- "text": "string"
118038
- },
118039
- "privacy": "public",
118040
- "static": true,
118041
- "readonly": true,
118042
- "default": "'tab'",
118014
+ "name": "_preventScrollOnSpaceKeydown",
118015
+ "privacy": "private",
118016
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
118017
+ "parameters": [
118018
+ {
118019
+ "description": "The origin event.",
118020
+ "name": "event"
118021
+ }
118022
+ ],
118043
118023
  "inheritedFrom": {
118044
118024
  "name": "SbbButtonLikeBaseElement",
118045
118025
  "module": "core/base-elements/button-base-element.js"
@@ -118047,528 +118027,608 @@
118047
118027
  },
118048
118028
  {
118049
118029
  "kind": "field",
118050
- "name": "step",
118051
- "type": {
118052
- "text": "SbbStepElement | null"
118053
- },
118054
- "privacy": "public",
118055
- "description": "The step controlled by the label.",
118056
- "readonly": true,
118057
- "default": "null"
118058
- },
118059
- {
118060
- "kind": "field",
118061
- "name": "_step",
118062
- "type": {
118063
- "text": "SbbStepElement | null"
118064
- },
118030
+ "name": "_removeActiveMarker",
118065
118031
  "privacy": "private",
118066
- "default": "null"
118032
+ "inheritedFrom": {
118033
+ "name": "SbbButtonLikeBaseElement",
118034
+ "module": "core/base-elements/button-base-element.js"
118035
+ }
118067
118036
  },
118068
118037
  {
118069
118038
  "kind": "field",
118070
- "name": "stepper",
118071
- "type": {
118072
- "text": "SbbStepperElement | null"
118073
- },
118074
- "privacy": "public",
118075
- "readonly": true
118039
+ "name": "_dispatchClickEventOnSpaceKeyup",
118040
+ "privacy": "private",
118041
+ "description": "Dispatches a 'click' PointerEvent if the original keyboard event is a 'Space' press.\nAs verified with the native button, when 'Space' is pressed, a 'click' event is dispatched\nafter the 'keyup' event.",
118042
+ "parameters": [
118043
+ {
118044
+ "description": "The origin event.",
118045
+ "name": "event"
118046
+ }
118047
+ ],
118048
+ "inheritedFrom": {
118049
+ "name": "SbbButtonLikeBaseElement",
118050
+ "module": "core/base-elements/button-base-element.js"
118051
+ }
118076
118052
  },
118077
118053
  {
118078
118054
  "kind": "field",
118079
- "name": "disabled",
118080
- "privacy": "public",
118081
- "description": "Whether the component is disabled.",
118082
- "default": "false",
118083
- "type": {
118084
- "text": "boolean"
118085
- },
118086
- "attribute": "disabled",
118087
- "reflects": true,
118055
+ "name": "_dispatchClickEvent",
118056
+ "privacy": "private",
118088
118057
  "inheritedFrom": {
118089
- "name": "SbbDisabledMixin",
118090
- "module": "core/mixins/disabled-mixin.js"
118058
+ "name": "SbbButtonLikeBaseElement",
118059
+ "module": "core/base-elements/button-base-element.js"
118091
118060
  }
118092
118061
  },
118093
118062
  {
118094
118063
  "kind": "field",
118095
- "name": "_previousOrientation",
118064
+ "name": "maybeDisabled",
118096
118065
  "type": {
118097
- "text": "string | undefined"
118066
+ "text": "boolean | undefined"
118098
118067
  },
118099
- "privacy": "private"
118068
+ "privacy": "protected",
118069
+ "readonly": true,
118070
+ "inheritedFrom": {
118071
+ "name": "SbbActionBaseElement",
118072
+ "module": "core/base-elements/action-base-element.js"
118073
+ }
118100
118074
  },
118101
118075
  {
118102
118076
  "kind": "field",
118103
- "name": "_previousSize",
118077
+ "name": "maybeDisabledInteractive",
118104
118078
  "type": {
118105
- "text": "string | undefined"
118079
+ "text": "boolean | undefined"
118106
118080
  },
118107
- "privacy": "private"
118081
+ "privacy": "protected",
118082
+ "readonly": true,
118083
+ "inheritedFrom": {
118084
+ "name": "SbbActionBaseElement",
118085
+ "module": "core/base-elements/action-base-element.js"
118086
+ }
118108
118087
  },
118109
118088
  {
118110
118089
  "kind": "method",
118111
- "name": "_isNotDeactivatedByLinearMode",
118112
- "privacy": "private",
118090
+ "name": "setupBaseEventHandlers",
118091
+ "privacy": "protected",
118113
118092
  "return": {
118114
118093
  "type": {
118115
- "text": "boolean"
118094
+ "text": "void"
118116
118095
  }
118117
118096
  },
118118
- "parameters": [
118119
- {
118120
- "name": "step",
118121
- "type": {
118122
- "text": "SbbStepElement"
118123
- }
118124
- }
118125
- ]
118097
+ "inheritedFrom": {
118098
+ "name": "SbbActionBaseElement",
118099
+ "module": "core/base-elements/action-base-element.js"
118100
+ }
118126
118101
  },
118127
118102
  {
118128
118103
  "kind": "method",
118129
- "name": "_assignStep",
118130
- "privacy": "private",
118104
+ "name": "renderTemplate",
118105
+ "privacy": "protected",
118131
118106
  "return": {
118132
118107
  "type": {
118133
- "text": "void"
118108
+ "text": "TemplateResult"
118134
118109
  }
118110
+ },
118111
+ "description": "Override this method to render the component template.",
118112
+ "inheritedFrom": {
118113
+ "name": "SbbActionBaseElement",
118114
+ "module": "core/base-elements/action-base-element.js"
118135
118115
  }
118136
118116
  },
118137
118117
  {
118138
118118
  "kind": "field",
118139
- "name": "iconName",
118119
+ "name": "_hydrationRequired",
118140
118120
  "type": {
118141
- "text": "string"
118121
+ "text": "boolean"
118142
118122
  },
118143
- "privacy": "public",
118144
- "default": "''",
118145
- "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.",
118146
- "attribute": "icon-name",
118123
+ "privacy": "private",
118124
+ "default": "!!this.shadowRoot",
118147
118125
  "inheritedFrom": {
118148
- "name": "SbbIconNameMixin",
118149
- "module": "icon/icon-name-mixin.js"
118126
+ "name": "SbbElement",
118127
+ "module": "core/base-elements/element.js"
118128
+ }
118129
+ },
118130
+ {
118131
+ "kind": "field",
118132
+ "name": "_hydrationComplete",
118133
+ "privacy": "private",
118134
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
118135
+ "inheritedFrom": {
118136
+ "name": "SbbElement",
118137
+ "module": "core/base-elements/element.js"
118138
+ }
118139
+ },
118140
+ {
118141
+ "kind": "field",
118142
+ "name": "_resolveHydration",
118143
+ "type": {
118144
+ "text": "(hydrationRequired: boolean) => void"
118145
+ },
118146
+ "privacy": "private",
118147
+ "inheritedFrom": {
118148
+ "name": "SbbElement",
118149
+ "module": "core/base-elements/element.js"
118150
118150
  }
118151
118151
  },
118152
+ {
118153
+ "kind": "field",
118154
+ "name": "hydrationRequired",
118155
+ "type": {
118156
+ "text": "boolean"
118157
+ },
118158
+ "privacy": "protected",
118159
+ "description": "Returns whether hydration is required and not completed.",
118160
+ "readonly": true,
118161
+ "inheritedFrom": {
118162
+ "name": "SbbElement",
118163
+ "module": "core/base-elements/element.js"
118164
+ },
118165
+ "default": "!!this.shadowRoot"
118166
+ },
118152
118167
  {
118153
118168
  "kind": "method",
118154
- "name": "renderIconSlot",
118169
+ "name": "toggleState",
118155
118170
  "privacy": "protected",
118156
118171
  "return": {
118157
118172
  "type": {
118158
- "text": "TemplateResult"
118173
+ "text": "void"
118159
118174
  }
118160
118175
  },
118161
118176
  "parameters": [
118162
118177
  {
118163
- "name": "classname",
118164
- "optional": true,
118178
+ "name": "value",
118165
118179
  "type": {
118166
118180
  "text": "string"
118167
118181
  }
118182
+ },
118183
+ {
118184
+ "name": "force",
118185
+ "optional": true,
118186
+ "type": {
118187
+ "text": "boolean"
118188
+ }
118168
118189
  }
118169
118190
  ],
118170
118191
  "inheritedFrom": {
118171
- "name": "SbbIconNameMixin",
118172
- "module": "icon/icon-name-mixin.js"
118192
+ "name": "SbbElement",
118193
+ "module": "core/base-elements/element.js"
118173
118194
  }
118174
118195
  },
118175
118196
  {
118176
- "kind": "method",
118177
- "name": "renderIconName",
118178
- "privacy": "protected",
118179
- "return": {
118180
- "type": {
118181
- "text": "string"
118182
- }
118197
+ "kind": "field",
118198
+ "name": "['_$sbbElement$']",
118199
+ "type": {
118200
+ "text": "boolean"
118183
118201
  },
118202
+ "privacy": "public",
118203
+ "static": true,
118204
+ "default": "true",
118184
118205
  "inheritedFrom": {
118185
- "name": "SbbIconNameMixin",
118186
- "module": "icon/icon-name-mixin.js"
118206
+ "name": "SbbElement",
118207
+ "module": "core/base-elements/element.js"
118208
+ }
118209
+ },
118210
+ {
118211
+ "kind": "field",
118212
+ "name": "_controllers",
118213
+ "type": {
118214
+ "text": "Set<SbbReactiveController> | undefined"
118215
+ },
118216
+ "privacy": "private",
118217
+ "inheritedFrom": {
118218
+ "name": "SbbElement",
118219
+ "module": "core/base-elements/element.js"
118187
118220
  }
118221
+ }
118222
+ ],
118223
+ "mixins": [
118224
+ {
118225
+ "name": "SbbIconNameMixin",
118226
+ "module": "icon.js"
118188
118227
  },
118189
118228
  {
118190
- "kind": "method",
118191
- "name": "_renderIconName",
118192
- "privacy": "private",
118193
- "return": {
118194
- "type": {
118195
- "text": "string"
118196
- }
118229
+ "name": "SbbDisabledMixin",
118230
+ "module": "core/mixins.js"
118231
+ }
118232
+ ],
118233
+ "superclass": {
118234
+ "name": "SbbButtonBaseElement",
118235
+ "module": "core/base-elements.js"
118236
+ },
118237
+ "tagName": "sbb-step-label",
118238
+ "customElement": true,
118239
+ "attributes": [
118240
+ {
118241
+ "name": "icon-name",
118242
+ "type": {
118243
+ "text": "string"
118197
118244
  },
118245
+ "default": "''",
118246
+ "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.",
118247
+ "fieldName": "iconName",
118198
118248
  "inheritedFrom": {
118199
118249
  "name": "SbbIconNameMixin",
118200
118250
  "module": "icon/icon-name-mixin.js"
118201
118251
  }
118202
118252
  },
118203
118253
  {
118204
- "kind": "field",
118205
- "name": "#disabled",
118206
- "privacy": "private",
118254
+ "name": "disabled",
118255
+ "description": "Whether the component is disabled.",
118256
+ "default": "false",
118207
118257
  "type": {
118208
118258
  "text": "boolean"
118209
118259
  },
118210
- "default": "false",
118260
+ "fieldName": "disabled",
118211
118261
  "inheritedFrom": {
118212
118262
  "name": "SbbDisabledMixin",
118213
118263
  "module": "core/mixins/disabled-mixin.js"
118214
118264
  }
118215
118265
  },
118216
118266
  {
118217
- "kind": "method",
118218
- "name": "isDisabledExternally",
118219
- "privacy": "protected",
118220
- "return": {
118221
- "type": {
118222
- "text": "boolean"
118223
- }
118267
+ "name": "value",
118268
+ "type": {
118269
+ "text": "string"
118224
118270
  },
118225
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
118271
+ "default": "''",
118272
+ "description": "Value of the form element.",
118273
+ "fieldName": "value",
118226
118274
  "inheritedFrom": {
118227
- "name": "SbbDisabledMixin",
118228
- "module": "core/mixins/disabled-mixin.js"
118275
+ "name": "SbbButtonBaseElement",
118276
+ "module": "core/base-elements/button-base-element.js"
118229
118277
  }
118230
118278
  },
118231
118279
  {
118232
- "kind": "field",
118233
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
118280
+ "name": "type",
118281
+ "description": "The type attribute to use for the button.",
118282
+ "default": "'button'",
118234
118283
  "type": {
118235
- "text": "array"
118284
+ "text": "SbbButtonType"
118236
118285
  },
118237
- "privacy": "private",
118238
- "readonly": true,
118239
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
118286
+ "fieldName": "type",
118240
118287
  "inheritedFrom": {
118241
118288
  "name": "SbbButtonBaseElement",
118242
118289
  "module": "core/base-elements/button-base-element.js"
118243
118290
  }
118244
118291
  },
118245
118292
  {
118246
- "kind": "field",
118247
- "name": "value",
118293
+ "name": "form",
118294
+ "description": "The `<form>` element to associate the button with.",
118248
118295
  "type": {
118249
- "text": "string"
118296
+ "text": "HTMLFormElement | null"
118250
118297
  },
118251
- "privacy": "public",
118298
+ "fieldName": "form",
118252
118299
  "inheritedFrom": {
118253
118300
  "name": "SbbButtonBaseElement",
118254
118301
  "module": "core/base-elements/button-base-element.js"
118255
- },
118256
- "default": "''",
118257
- "description": "Value of the form element.",
118258
- "attribute": "value"
118302
+ }
118259
118303
  },
118260
118304
  {
118261
- "kind": "field",
118262
- "name": "type",
118263
- "privacy": "public",
118264
- "description": "The type attribute to use for the button.",
118265
- "default": "'button'",
118305
+ "name": "name",
118306
+ "description": "Name of the form element. Will be read from name attribute.",
118266
118307
  "type": {
118267
- "text": "SbbButtonType"
118308
+ "text": "string"
118268
118309
  },
118269
- "attribute": "type",
118310
+ "fieldName": "name",
118270
118311
  "inheritedFrom": {
118271
- "name": "SbbButtonBaseElement",
118272
- "module": "core/base-elements/button-base-element.js"
118312
+ "name": "SbbFormAssociatedMixin",
118313
+ "module": "core/mixins/form-associated-mixin.js"
118273
118314
  }
118315
+ }
118316
+ ]
118317
+ }
118318
+ ],
118319
+ "exports": [
118320
+ {
118321
+ "kind": "js",
118322
+ "name": "SbbStepLabelElement",
118323
+ "declaration": {
118324
+ "name": "SbbStepLabelElement",
118325
+ "module": "stepper/step-label/step-label.component.js"
118326
+ }
118327
+ }
118328
+ ]
118329
+ },
118330
+ {
118331
+ "kind": "javascript-module",
118332
+ "path": "stepper/stepper/stepper.component.js",
118333
+ "declarations": [
118334
+ {
118335
+ "kind": "class",
118336
+ "description": "",
118337
+ "name": "SbbStepChangeEvent",
118338
+ "members": [
118339
+ {
118340
+ "kind": "field",
118341
+ "name": "selectedIndex",
118342
+ "type": {
118343
+ "text": "number | null"
118344
+ },
118345
+ "privacy": "public",
118346
+ "readonly": true,
118347
+ "description": "The index of the newly selected step.",
118348
+ "default": "selectedIndex"
118274
118349
  },
118275
118350
  {
118276
118351
  "kind": "field",
118277
- "name": "form",
118352
+ "name": "previousIndex",
118278
118353
  "type": {
118279
- "text": "HTMLFormElement | null"
118354
+ "text": "number | null"
118280
118355
  },
118281
118356
  "privacy": "public",
118282
- "description": "The `<form>` element to associate the button with.",
118283
- "inheritedFrom": {
118284
- "name": "SbbButtonBaseElement",
118285
- "module": "core/base-elements/button-base-element.js"
118357
+ "readonly": true,
118358
+ "description": "The index of the previously selected step.",
118359
+ "default": "previousIndex"
118360
+ },
118361
+ {
118362
+ "kind": "field",
118363
+ "name": "selectedStep",
118364
+ "type": {
118365
+ "text": "SbbStepElement | null"
118286
118366
  },
118287
- "attribute": "form"
118367
+ "privacy": "public",
118368
+ "readonly": true,
118369
+ "description": "The newly selected step element.",
118370
+ "default": "selectedStep"
118288
118371
  },
118289
118372
  {
118290
118373
  "kind": "field",
118291
- "name": "_formId",
118374
+ "name": "previousStep",
118375
+ "type": {
118376
+ "text": "SbbStepElement | null"
118377
+ },
118378
+ "privacy": "public",
118379
+ "readonly": true,
118380
+ "description": "The previously selected step element.",
118381
+ "default": "previousStep"
118382
+ }
118383
+ ],
118384
+ "superclass": {
118385
+ "name": "Event",
118386
+ "module": "stepper/stepper/stepper.component.js"
118387
+ }
118388
+ },
118389
+ {
118390
+ "kind": "class",
118391
+ "description": "Provides a structured, step-by-step workflow for user interactions.",
118392
+ "name": "SbbStepperElement",
118393
+ "slots": [
118394
+ {
118395
+ "description": "Provide a `sbb-expansion-panel-header` and a `sbb-expansion-panel-content` to the stepper.",
118396
+ "name": ""
118397
+ },
118398
+ {
118399
+ "description": "Use this slot to provide an `sbb-step-label`.",
118400
+ "name": "step-label"
118401
+ },
118402
+ {
118403
+ "description": "Use this slot to provide an `sbb-step`.",
118404
+ "name": "step"
118405
+ }
118406
+ ],
118407
+ "members": [
118408
+ {
118409
+ "kind": "field",
118410
+ "name": "elementName",
118292
118411
  "type": {
118293
118412
  "text": "string"
118294
118413
  },
118295
- "privacy": "private",
118296
- "default": "''",
118414
+ "privacy": "public",
118415
+ "static": true,
118416
+ "readonly": true,
118417
+ "default": "'sbb-stepper'",
118297
118418
  "inheritedFrom": {
118298
- "name": "SbbButtonBaseElement",
118299
- "module": "core/base-elements/button-base-element.js"
118419
+ "name": "SbbElement",
118420
+ "module": "core/base-elements/element.js"
118300
118421
  }
118301
118422
  },
118302
118423
  {
118303
118424
  "kind": "field",
118304
- "name": "_handleButtonClick",
118305
- "privacy": "private",
118306
- "inheritedFrom": {
118307
- "name": "SbbButtonBaseElement",
118308
- "module": "core/base-elements/button-base-element.js"
118425
+ "name": "events",
118426
+ "privacy": "public",
118427
+ "static": true,
118428
+ "readonly": true,
118429
+ "default": "{ stepchange: 'stepchange', }",
118430
+ "type": {
118431
+ "text": "{\n stepchange: 'stepchange',\n }"
118309
118432
  }
118310
118433
  },
118311
118434
  {
118312
- "kind": "method",
118313
- "name": "_requestSubmit",
118435
+ "kind": "field",
118436
+ "name": "_observer",
118314
118437
  "privacy": "private",
118315
- "return": {
118316
- "type": {
118317
- "text": "void"
118318
- }
118438
+ "default": "new IntersectionController(this, { target: null, callback: (entries) => { entries.forEach((e) => { if (e.intersectionRatio > 0) { this._setStepperHeight(this.selected); this._setMarkerSize(); } }); }, })",
118439
+ "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."
118440
+ },
118441
+ {
118442
+ "kind": "field",
118443
+ "name": "linear",
118444
+ "type": {
118445
+ "text": "boolean"
118319
118446
  },
118320
- "parameters": [
118321
- {
118322
- "name": "form",
118323
- "type": {
118324
- "text": "HTMLFormElement"
118325
- }
118326
- }
118327
- ],
118328
- "inheritedFrom": {
118329
- "name": "SbbButtonBaseElement",
118330
- "module": "core/base-elements/button-base-element.js"
118331
- }
118447
+ "privacy": "public",
118448
+ "default": "false",
118449
+ "description": "If set to true, only the current and previous labels can be clicked and selected.",
118450
+ "attribute": "linear"
118451
+ },
118452
+ {
118453
+ "kind": "field",
118454
+ "name": "horizontalFrom",
118455
+ "privacy": "public",
118456
+ "description": "Overrides the behavior of `orientation` property.",
118457
+ "type": {
118458
+ "text": "SbbHorizontalFrom | null"
118459
+ },
118460
+ "attribute": "horizontal-from",
118461
+ "reflects": true,
118462
+ "default": "null"
118463
+ },
118464
+ {
118465
+ "kind": "field",
118466
+ "name": "_horizontalFrom",
118467
+ "type": {
118468
+ "text": "SbbHorizontalFrom | null"
118469
+ },
118470
+ "privacy": "private",
118471
+ "default": "null"
118332
118472
  },
118333
118473
  {
118334
118474
  "kind": "field",
118335
- "name": "_formKeyDown",
118336
- "privacy": "private",
118337
- "inheritedFrom": {
118338
- "name": "SbbButtonBaseElement",
118339
- "module": "core/base-elements/button-base-element.js"
118340
- }
118475
+ "name": "orientation",
118476
+ "type": {
118477
+ "text": "SbbOrientation"
118478
+ },
118479
+ "privacy": "public",
118480
+ "default": "'horizontal'",
118481
+ "description": "Steps orientation, either horizontal or vertical.",
118482
+ "attribute": "orientation",
118483
+ "reflects": true
118341
118484
  },
118342
118485
  {
118343
118486
  "kind": "field",
118344
- "name": "formAssociated",
118487
+ "name": "size",
118345
118488
  "type": {
118346
- "text": "boolean"
118489
+ "text": "'s' | 'm'"
118347
118490
  },
118348
118491
  "privacy": "public",
118349
- "static": true,
118350
- "default": "true",
118351
- "inheritedFrom": {
118352
- "name": "SbbFormAssociatedMixin",
118353
- "module": "core/mixins/form-associated-mixin.js"
118354
- }
118492
+ "description": "Size variant, either s or m.",
118493
+ "default": "'m' / 's' (lean)",
118494
+ "attribute": "size",
118495
+ "reflects": true
118355
118496
  },
118356
118497
  {
118357
118498
  "kind": "field",
118358
- "name": "name",
118499
+ "name": "selected",
118359
118500
  "privacy": "public",
118360
- "description": "Name of the form element. Will be read from name attribute.",
118501
+ "description": "The currently selected step.",
118361
118502
  "type": {
118362
- "text": "string"
118363
- },
118364
- "attribute": "name",
118365
- "inheritedFrom": {
118366
- "name": "SbbFormAssociatedMixin",
118367
- "module": "core/mixins/form-associated-mixin.js"
118503
+ "text": "SbbStepElement | null"
118368
118504
  }
118369
118505
  },
118370
118506
  {
118371
118507
  "kind": "field",
118372
- "name": "validity",
118508
+ "name": "_requestedSelected",
118373
118509
  "type": {
118374
- "text": "ValidityState"
118510
+ "text": "SbbStepElement | null"
118375
118511
  },
118512
+ "privacy": "private",
118513
+ "default": "null"
118514
+ },
118515
+ {
118516
+ "kind": "field",
118517
+ "name": "selectedIndex",
118376
118518
  "privacy": "public",
118377
- "description": "Returns the ValidityState object for this element.",
118378
- "readonly": true,
118379
- "inheritedFrom": {
118380
- "name": "SbbFormAssociatedMixin",
118381
- "module": "core/mixins/form-associated-mixin.js"
118382
- }
118519
+ "description": "The currently selected step index.",
118520
+ "type": {
118521
+ "text": "number | null"
118522
+ },
118523
+ "attribute": "selected-index"
118383
118524
  },
118384
118525
  {
118385
118526
  "kind": "field",
118386
- "name": "validationMessage",
118527
+ "name": "_requestedSelectedIndex",
118387
118528
  "type": {
118388
- "text": "string"
118529
+ "text": "number | null"
118389
118530
  },
118390
- "privacy": "public",
118391
- "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.",
118392
- "readonly": true,
118393
- "inheritedFrom": {
118394
- "name": "SbbFormAssociatedMixin",
118395
- "module": "core/mixins/form-associated-mixin.js"
118396
- }
118531
+ "privacy": "private",
118532
+ "default": "null"
118397
118533
  },
118398
118534
  {
118399
118535
  "kind": "field",
118400
- "name": "willValidate",
118536
+ "name": "steps",
118401
118537
  "type": {
118402
- "text": "boolean"
118538
+ "text": "SbbStepElement[]"
118403
118539
  },
118404
118540
  "privacy": "public",
118405
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
118406
- "readonly": true,
118407
- "inheritedFrom": {
118408
- "name": "SbbFormAssociatedMixin",
118409
- "module": "core/mixins/form-associated-mixin.js"
118410
- }
118541
+ "description": "The steps of the stepper.",
118542
+ "readonly": true
118411
118543
  },
118412
118544
  {
118413
118545
  "kind": "field",
118414
- "name": "_validityStates",
118546
+ "name": "_enabledSteps",
118547
+ "type": {
118548
+ "text": "SbbStepElement[]"
118549
+ },
118415
118550
  "privacy": "private",
118416
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
118417
- "inheritedFrom": {
118418
- "name": "SbbFormAssociatedMixin",
118419
- "module": "core/mixins/form-associated-mixin.js"
118420
- }
118551
+ "readonly": true
118421
118552
  },
118422
118553
  {
118423
118554
  "kind": "field",
118424
- "name": "formDisabled",
118555
+ "name": "_loaded",
118425
118556
  "type": {
118426
118557
  "text": "boolean"
118427
118558
  },
118428
- "privacy": "protected",
118429
- "default": "false",
118430
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
118431
- "inheritedFrom": {
118432
- "name": "SbbFormAssociatedMixin",
118433
- "module": "core/mixins/form-associated-mixin.js"
118434
- }
118559
+ "privacy": "private",
118560
+ "default": "false"
118435
118561
  },
118436
118562
  {
118437
- "kind": "method",
118438
- "name": "checkValidity",
118439
- "privacy": "public",
118440
- "return": {
118441
- "type": {
118442
- "text": "boolean"
118443
- }
118563
+ "kind": "field",
118564
+ "name": "_resizeObserverTimeout",
118565
+ "type": {
118566
+ "text": "ReturnType<typeof setTimeout> | null"
118444
118567
  },
118445
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
118446
- "inheritedFrom": {
118447
- "name": "SbbFormAssociatedMixin",
118448
- "module": "core/mixins/form-associated-mixin.js"
118449
- }
118568
+ "privacy": "private",
118569
+ "default": "null"
118450
118570
  },
118451
118571
  {
118452
- "kind": "method",
118453
- "name": "reportValidity",
118454
- "privacy": "public",
118455
- "return": {
118456
- "type": {
118457
- "text": "boolean"
118458
- }
118459
- },
118460
- "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.",
118461
- "inheritedFrom": {
118462
- "name": "SbbFormAssociatedMixin",
118463
- "module": "core/mixins/form-associated-mixin.js"
118464
- }
118572
+ "kind": "field",
118573
+ "name": "_mediaMatcher",
118574
+ "privacy": "private",
118575
+ "default": "new SbbMediaMatcherController(this, {})"
118465
118576
  },
118466
118577
  {
118467
118578
  "kind": "method",
118468
- "name": "setCustomValidity",
118579
+ "name": "next",
118469
118580
  "privacy": "public",
118470
118581
  "return": {
118471
118582
  "type": {
118472
118583
  "text": "void"
118473
118584
  }
118474
118585
  },
118475
- "parameters": [
118476
- {
118477
- "name": "message",
118478
- "type": {
118479
- "text": "string"
118480
- }
118481
- }
118482
- ],
118483
- "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.",
118484
- "inheritedFrom": {
118485
- "name": "SbbFormAssociatedMixin",
118486
- "module": "core/mixins/form-associated-mixin.js"
118487
- }
118488
- },
118489
- {
118490
- "kind": "method",
118491
- "name": "_hasDisabledAncestor",
118492
- "privacy": "private",
118493
- "return": {
118494
- "type": {
118495
- "text": "boolean"
118496
- }
118497
- },
118498
- "inheritedFrom": {
118499
- "name": "SbbFormAssociatedMixin",
118500
- "module": "core/mixins/form-associated-mixin.js"
118501
- }
118586
+ "description": "Selects the next step."
118502
118587
  },
118503
118588
  {
118504
118589
  "kind": "method",
118505
- "name": "updateFormValue",
118506
- "privacy": "protected",
118590
+ "name": "previous",
118591
+ "privacy": "public",
118507
118592
  "return": {
118508
118593
  "type": {
118509
118594
  "text": "void"
118510
118595
  }
118511
118596
  },
118512
- "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",
118513
- "inheritedFrom": {
118514
- "name": "SbbFormAssociatedMixin",
118515
- "module": "core/mixins/form-associated-mixin.js"
118516
- }
118597
+ "description": "Selects the previous step."
118517
118598
  },
118518
118599
  {
118519
118600
  "kind": "method",
118520
- "name": "formState",
118521
- "privacy": "protected",
118601
+ "name": "reset",
118602
+ "privacy": "public",
118522
118603
  "return": {
118523
118604
  "type": {
118524
- "text": "FormRestoreState"
118605
+ "text": "void"
118525
118606
  }
118526
118607
  },
118527
- "inheritedFrom": {
118528
- "name": "SbbFormAssociatedMixin",
118529
- "module": "core/mixins/form-associated-mixin.js"
118530
- }
118608
+ "description": "Resets the form in which the stepper is nested or every form of each step, if any."
118531
118609
  },
118532
118610
  {
118533
118611
  "kind": "method",
118534
- "name": "setValidityFlag",
118535
- "privacy": "protected",
118612
+ "name": "_isSelectable",
118613
+ "privacy": "private",
118536
118614
  "return": {
118537
118615
  "type": {
118538
- "text": "void"
118616
+ "text": "step is SbbStepElement"
118539
118617
  }
118540
118618
  },
118541
118619
  "parameters": [
118542
118620
  {
118543
- "name": "flag",
118544
- "type": {
118545
- "text": "T"
118546
- }
118547
- },
118548
- {
118549
- "name": "message",
118550
- "type": {
118551
- "text": "string"
118552
- }
118553
- },
118554
- {
118555
- "name": "flagValue",
118556
- "optional": true,
118621
+ "name": "step",
118557
118622
  "type": {
118558
- "text": "ValidityStateFlags[T]"
118623
+ "text": "SbbStepElement | null"
118559
118624
  }
118560
118625
  }
118561
- ],
118562
- "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).",
118563
- "inheritedFrom": {
118564
- "name": "SbbFormAssociatedMixin",
118565
- "module": "core/mixins/form-associated-mixin.js"
118566
- }
118626
+ ]
118567
118627
  },
118568
118628
  {
118569
118629
  "kind": "method",
118570
- "name": "removeValidityFlag",
118571
- "privacy": "protected",
118630
+ "name": "_select",
118631
+ "privacy": "private",
118572
118632
  "return": {
118573
118633
  "type": {
118574
118634
  "text": "void"
@@ -118576,174 +118636,132 @@
118576
118636
  },
118577
118637
  "parameters": [
118578
118638
  {
118579
- "name": "flag",
118639
+ "name": "step",
118580
118640
  "type": {
118581
- "text": "T"
118641
+ "text": "SbbStepElement | null"
118582
118642
  }
118583
118643
  }
118584
- ],
118585
- "description": "Removes the validity state flag entry and updates validity state.",
118586
- "inheritedFrom": {
118587
- "name": "SbbFormAssociatedMixin",
118588
- "module": "core/mixins/form-associated-mixin.js"
118589
- }
118644
+ ]
118590
118645
  },
118591
118646
  {
118592
118647
  "kind": "method",
118593
- "name": "validate",
118594
- "privacy": "protected",
118648
+ "name": "_setMarkerSize",
118649
+ "privacy": "private",
118595
118650
  "return": {
118596
118651
  "type": {
118597
118652
  "text": "void"
118598
118653
  }
118599
- },
118600
- "description": "To be called whenever the current element needs to be validated.",
118601
- "inheritedFrom": {
118602
- "name": "SbbFormAssociatedMixin",
118603
- "module": "core/mixins/form-associated-mixin.js"
118604
118654
  }
118605
118655
  },
118606
118656
  {
118607
118657
  "kind": "method",
118608
- "name": "shouldValidate",
118609
- "privacy": "protected",
118658
+ "name": "_setStepperHeight",
118659
+ "privacy": "private",
118610
118660
  "return": {
118611
118661
  "type": {
118612
- "text": "boolean"
118662
+ "text": "void"
118613
118663
  }
118614
118664
  },
118615
118665
  "parameters": [
118616
118666
  {
118617
- "name": "name",
118667
+ "name": "step",
118618
118668
  "type": {
118619
- "text": "PropertyKey | undefined"
118669
+ "text": "SbbStepElement | null"
118620
118670
  }
118621
118671
  }
118622
118672
  ],
118623
- "description": "Whether validation should be run on a property change with the given name.",
118624
- "inheritedFrom": {
118625
- "name": "SbbFormAssociatedMixin",
118626
- "module": "core/mixins/form-associated-mixin.js"
118627
- }
118673
+ "description": "Sets the stepper height based on the height of the provided step."
118628
118674
  },
118629
118675
  {
118630
118676
  "kind": "method",
118631
- "name": "_setInternalValidity",
118677
+ "name": "_calculateLabelOffsetTop",
118632
118678
  "privacy": "private",
118633
118679
  "return": {
118634
118680
  "type": {
118635
- "text": "void"
118681
+ "text": "number | undefined"
118636
118682
  }
118637
- },
118638
- "inheritedFrom": {
118639
- "name": "SbbFormAssociatedMixin",
118640
- "module": "core/mixins/form-associated-mixin.js"
118641
118683
  }
118642
118684
  },
118643
118685
  {
118644
- "kind": "field",
118645
- "name": "_preventScrollOnSpaceKeydown",
118686
+ "kind": "method",
118687
+ "name": "_onSelectedStepResize",
118646
118688
  "privacy": "private",
118647
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
118689
+ "return": {
118690
+ "type": {
118691
+ "text": "void"
118692
+ }
118693
+ },
118648
118694
  "parameters": [
118649
118695
  {
118650
- "description": "The origin event.",
118651
- "name": "event"
118696
+ "name": "e",
118697
+ "type": {
118698
+ "text": "Event"
118699
+ }
118652
118700
  }
118653
- ],
118654
- "inheritedFrom": {
118655
- "name": "SbbButtonLikeBaseElement",
118656
- "module": "core/base-elements/button-base-element.js"
118657
- }
118701
+ ]
118658
118702
  },
118659
118703
  {
118660
- "kind": "field",
118661
- "name": "_removeActiveMarker",
118704
+ "kind": "method",
118705
+ "name": "_configure",
118662
118706
  "privacy": "private",
118663
- "inheritedFrom": {
118664
- "name": "SbbButtonLikeBaseElement",
118665
- "module": "core/base-elements/button-base-element.js"
118707
+ "return": {
118708
+ "type": {
118709
+ "text": "void"
118710
+ }
118666
118711
  }
118667
118712
  },
118668
118713
  {
118669
- "kind": "field",
118670
- "name": "_dispatchClickEventOnSpaceKeyup",
118714
+ "kind": "method",
118715
+ "name": "_updateLabels",
118671
118716
  "privacy": "private",
118672
- "description": "Dispatches a 'click' PointerEvent if the original keyboard event is a 'Space' press.\nAs verified with the native button, when 'Space' is pressed, a 'click' event is dispatched\nafter the 'keyup' event.",
118673
- "parameters": [
118674
- {
118675
- "description": "The origin event.",
118676
- "name": "event"
118717
+ "return": {
118718
+ "type": {
118719
+ "text": "void"
118677
118720
  }
118678
- ],
118679
- "inheritedFrom": {
118680
- "name": "SbbButtonLikeBaseElement",
118681
- "module": "core/base-elements/button-base-element.js"
118682
118721
  }
118683
118722
  },
118684
118723
  {
118685
- "kind": "field",
118686
- "name": "_dispatchClickEvent",
118724
+ "kind": "method",
118725
+ "name": "_checkOrientation",
118687
118726
  "privacy": "private",
118688
- "inheritedFrom": {
118689
- "name": "SbbButtonLikeBaseElement",
118690
- "module": "core/base-elements/button-base-element.js"
118691
- }
118692
- },
118693
- {
118694
- "kind": "field",
118695
- "name": "maybeDisabled",
118696
- "type": {
118697
- "text": "boolean | undefined"
118698
- },
118699
- "privacy": "protected",
118700
- "readonly": true,
118701
- "inheritedFrom": {
118702
- "name": "SbbActionBaseElement",
118703
- "module": "core/base-elements/action-base-element.js"
118727
+ "return": {
118728
+ "type": {
118729
+ "text": "void"
118730
+ }
118704
118731
  }
118705
118732
  },
118706
118733
  {
118707
118734
  "kind": "field",
118708
- "name": "maybeDisabledInteractive",
118709
- "type": {
118710
- "text": "boolean | undefined"
118711
- },
118712
- "privacy": "protected",
118713
- "readonly": true,
118714
- "inheritedFrom": {
118715
- "name": "SbbActionBaseElement",
118716
- "module": "core/base-elements/action-base-element.js"
118717
- }
118735
+ "name": "_onStepperResize",
118736
+ "privacy": "private"
118718
118737
  },
118719
118738
  {
118720
118739
  "kind": "method",
118721
- "name": "setupBaseEventHandlers",
118722
- "privacy": "protected",
118740
+ "name": "_configureLinearMode",
118741
+ "privacy": "private",
118723
118742
  "return": {
118724
118743
  "type": {
118725
118744
  "text": "void"
118726
118745
  }
118727
- },
118728
- "inheritedFrom": {
118729
- "name": "SbbActionBaseElement",
118730
- "module": "core/base-elements/action-base-element.js"
118731
118746
  }
118732
118747
  },
118733
118748
  {
118734
118749
  "kind": "method",
118735
- "name": "renderTemplate",
118736
- "privacy": "protected",
118750
+ "name": "_handleKeyDown",
118751
+ "privacy": "private",
118737
118752
  "return": {
118738
118753
  "type": {
118739
- "text": "TemplateResult"
118754
+ "text": "void"
118740
118755
  }
118741
118756
  },
118742
- "description": "Override this method to render the component template.",
118743
- "inheritedFrom": {
118744
- "name": "SbbActionBaseElement",
118745
- "module": "core/base-elements/action-base-element.js"
118746
- }
118757
+ "parameters": [
118758
+ {
118759
+ "name": "evt",
118760
+ "type": {
118761
+ "text": "KeyboardEvent"
118762
+ }
118763
+ }
118764
+ ]
118747
118765
  },
118748
118766
  {
118749
118767
  "kind": "field",
@@ -118851,109 +118869,91 @@
118851
118869
  }
118852
118870
  }
118853
118871
  ],
118854
- "mixins": [
118855
- {
118856
- "name": "SbbIconNameMixin",
118857
- "module": "icon.js"
118858
- },
118872
+ "events": [
118859
118873
  {
118860
- "name": "SbbDisabledMixin",
118861
- "module": "core/mixins.js"
118874
+ "type": {
118875
+ "text": "SbbStepChangeEvent"
118876
+ },
118877
+ "description": "Emits whenever a step was changed.",
118878
+ "name": "stepchange"
118862
118879
  }
118863
118880
  ],
118864
- "superclass": {
118865
- "name": "SbbButtonBaseElement",
118866
- "module": "core/base-elements.js"
118867
- },
118868
- "tagName": "sbb-step-label",
118869
- "customElement": true,
118870
118881
  "attributes": [
118871
118882
  {
118872
- "name": "icon-name",
118873
- "type": {
118874
- "text": "string"
118875
- },
118876
- "default": "''",
118877
- "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.",
118878
- "fieldName": "iconName",
118879
- "inheritedFrom": {
118880
- "name": "SbbIconNameMixin",
118881
- "module": "icon/icon-name-mixin.js"
118882
- }
118883
- },
118884
- {
118885
- "name": "disabled",
118886
- "description": "Whether the component is disabled.",
118887
- "default": "false",
118883
+ "name": "linear",
118888
118884
  "type": {
118889
118885
  "text": "boolean"
118890
118886
  },
118891
- "fieldName": "disabled",
118892
- "inheritedFrom": {
118893
- "name": "SbbDisabledMixin",
118894
- "module": "core/mixins/disabled-mixin.js"
118895
- }
118887
+ "default": "false",
118888
+ "description": "If set to true, only the current and previous labels can be clicked and selected.",
118889
+ "fieldName": "linear"
118896
118890
  },
118897
118891
  {
118898
- "name": "value",
118892
+ "name": "horizontal-from",
118893
+ "description": "Overrides the behavior of `orientation` property.",
118899
118894
  "type": {
118900
- "text": "string"
118895
+ "text": "SbbHorizontalFrom | null"
118901
118896
  },
118902
- "default": "''",
118903
- "description": "Value of the form element.",
118904
- "fieldName": "value",
118905
- "inheritedFrom": {
118906
- "name": "SbbButtonBaseElement",
118907
- "module": "core/base-elements/button-base-element.js"
118908
- }
118897
+ "fieldName": "horizontalFrom"
118909
118898
  },
118910
118899
  {
118911
- "name": "type",
118912
- "description": "The type attribute to use for the button.",
118913
- "default": "'button'",
118900
+ "name": "orientation",
118914
118901
  "type": {
118915
- "text": "SbbButtonType"
118902
+ "text": "SbbOrientation"
118916
118903
  },
118917
- "fieldName": "type",
118918
- "inheritedFrom": {
118919
- "name": "SbbButtonBaseElement",
118920
- "module": "core/base-elements/button-base-element.js"
118921
- }
118904
+ "default": "'horizontal'",
118905
+ "description": "Steps orientation, either horizontal or vertical.",
118906
+ "fieldName": "orientation"
118922
118907
  },
118923
118908
  {
118924
- "name": "form",
118925
- "description": "The `<form>` element to associate the button with.",
118909
+ "name": "size",
118926
118910
  "type": {
118927
- "text": "HTMLFormElement | null"
118911
+ "text": "'s' | 'm'"
118928
118912
  },
118929
- "fieldName": "form",
118930
- "inheritedFrom": {
118931
- "name": "SbbButtonBaseElement",
118932
- "module": "core/base-elements/button-base-element.js"
118933
- }
118913
+ "description": "Size variant, either s or m.",
118914
+ "default": "'m' / 's' (lean)",
118915
+ "fieldName": "size"
118934
118916
  },
118935
118917
  {
118936
- "name": "name",
118937
- "description": "Name of the form element. Will be read from name attribute.",
118918
+ "name": "selected-index",
118919
+ "description": "The currently selected step index.",
118938
118920
  "type": {
118939
- "text": "string"
118921
+ "text": "number | null"
118940
118922
  },
118941
- "fieldName": "name",
118942
- "inheritedFrom": {
118943
- "name": "SbbFormAssociatedMixin",
118944
- "module": "core/mixins/form-associated-mixin.js"
118945
- }
118923
+ "fieldName": "selectedIndex"
118946
118924
  }
118947
- ]
118925
+ ],
118926
+ "superclass": {
118927
+ "name": "SbbElement",
118928
+ "module": "core/base-elements.js"
118929
+ },
118930
+ "tagName": "sbb-stepper",
118931
+ "customElement": true
118932
+ },
118933
+ {
118934
+ "kind": "variable",
118935
+ "name": "currentIndex"
118936
+ },
118937
+ {
118938
+ "kind": "variable",
118939
+ "name": "currentStep"
118948
118940
  }
118949
118941
  ],
118950
118942
  "exports": [
118951
118943
  {
118952
118944
  "kind": "js",
118953
- "name": "SbbStepLabelElement",
118945
+ "name": "SbbStepChangeEvent",
118954
118946
  "declaration": {
118955
- "name": "SbbStepLabelElement",
118956
- "module": "stepper/step-label/step-label.component.js"
118947
+ "name": "SbbStepChangeEvent",
118948
+ "module": "stepper/stepper/stepper.component.js"
118949
+ }
118950
+ },
118951
+ {
118952
+ "kind": "js",
118953
+ "name": "SbbStepperElement",
118954
+ "declaration": {
118955
+ "name": "SbbStepperElement",
118956
+ "module": "stepper/stepper/stepper.component.js"
118957
118957
  }
118958
118958
  }
118959
118959
  ]