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

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