@sbb-esta/lyne-elements-dev 4.8.1-dev.1773955183 → 4.8.1-dev.1774003987

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.
@@ -95337,6 +95337,20 @@
95337
95337
  "module": "core/base-elements/element.js"
95338
95338
  }
95339
95339
  },
95340
+ {
95341
+ "kind": "field",
95342
+ "name": "_headerScrollOrigins",
95343
+ "privacy": "private",
95344
+ "static": true,
95345
+ "default": "new Set<HTMLElement>()"
95346
+ },
95347
+ {
95348
+ "kind": "field",
95349
+ "name": "_headerElements",
95350
+ "privacy": "private",
95351
+ "static": true,
95352
+ "default": "new Set<SbbHeaderElement>()"
95353
+ },
95340
95354
  {
95341
95355
  "kind": "field",
95342
95356
  "name": "expanded",
@@ -95426,6 +95440,75 @@
95426
95440
  "privacy": "private",
95427
95441
  "default": "0"
95428
95442
  },
95443
+ {
95444
+ "kind": "field",
95445
+ "name": "_scrollOriginFromObserver",
95446
+ "type": {
95447
+ "text": "HTMLElement | null"
95448
+ },
95449
+ "privacy": "private",
95450
+ "default": "null"
95451
+ },
95452
+ {
95453
+ "kind": "method",
95454
+ "name": "_initializeScrollOriginObserver",
95455
+ "privacy": "private",
95456
+ "static": true,
95457
+ "return": {
95458
+ "type": {
95459
+ "text": "void"
95460
+ }
95461
+ }
95462
+ },
95463
+ {
95464
+ "kind": "method",
95465
+ "name": "_findAndHandleScrollOrigins",
95466
+ "privacy": "private",
95467
+ "static": true,
95468
+ "return": {
95469
+ "type": {
95470
+ "text": "void"
95471
+ }
95472
+ },
95473
+ "parameters": [
95474
+ {
95475
+ "name": "root",
95476
+ "type": {
95477
+ "text": "HTMLElement"
95478
+ }
95479
+ }
95480
+ ]
95481
+ },
95482
+ {
95483
+ "kind": "method",
95484
+ "name": "_handleScrollOriginElement",
95485
+ "privacy": "private",
95486
+ "static": true,
95487
+ "return": {
95488
+ "type": {
95489
+ "text": "void"
95490
+ }
95491
+ },
95492
+ "parameters": [
95493
+ {
95494
+ "name": "element",
95495
+ "type": {
95496
+ "text": "HTMLElement"
95497
+ }
95498
+ }
95499
+ ]
95500
+ },
95501
+ {
95502
+ "kind": "method",
95503
+ "name": "_updateHeaderElements",
95504
+ "privacy": "private",
95505
+ "static": true,
95506
+ "return": {
95507
+ "type": {
95508
+ "text": "void"
95509
+ }
95510
+ }
95511
+ },
95429
95512
  {
95430
95513
  "kind": "method",
95431
95514
  "name": "_updateScrollListener",
@@ -121635,16 +121718,20 @@
121635
121718
  },
121636
121719
  {
121637
121720
  "kind": "javascript-module",
121638
- "path": "stepper/step/step.component.js",
121721
+ "path": "stepper/step-label/step-label.component.js",
121639
121722
  "declarations": [
121640
121723
  {
121641
121724
  "kind": "class",
121642
- "description": "Combined with a `sbb-stepper`, it displays a step's content.",
121643
- "name": "SbbStepElement",
121725
+ "description": "Combined with a `sbb-stepper`, it displays a step's label.",
121726
+ "name": "SbbStepLabelElement",
121644
121727
  "slots": [
121645
121728
  {
121646
- "description": "Use the unnamed slot to provide content.",
121729
+ "description": "Use the unnamed slot to provide a label.",
121647
121730
  "name": ""
121731
+ },
121732
+ {
121733
+ "description": "Use this to display an icon in the label bubble.",
121734
+ "name": "icon"
121648
121735
  }
121649
121736
  ],
121650
121737
  "members": [
@@ -121657,11 +121744,11 @@
121657
121744
  "privacy": "public",
121658
121745
  "static": true,
121659
121746
  "readonly": true,
121660
- "default": "'sbb-step'",
121661
121747
  "inheritedFrom": {
121662
121748
  "name": "SbbElement",
121663
121749
  "module": "core/base-elements/element.js"
121664
- }
121750
+ },
121751
+ "default": "'sbb-step-label'"
121665
121752
  },
121666
121753
  {
121667
121754
  "kind": "field",
@@ -121672,41 +121759,28 @@
121672
121759
  "privacy": "public",
121673
121760
  "static": true,
121674
121761
  "readonly": true,
121675
- "default": "'tabpanel'"
121676
- },
121677
- {
121678
- "kind": "field",
121679
- "name": "events",
121680
- "privacy": "public",
121681
- "static": true,
121682
- "readonly": true,
121683
- "default": "{ validate: 'validate', resizechange: 'resizechange', }",
121684
- "type": {
121685
- "text": "{\n validate: 'validate',\n resizechange: 'resizechange',\n }"
121762
+ "default": "'tab'",
121763
+ "inheritedFrom": {
121764
+ "name": "SbbButtonLikeBaseElement",
121765
+ "module": "core/base-elements/button-base-element.js"
121686
121766
  }
121687
121767
  },
121688
121768
  {
121689
121769
  "kind": "field",
121690
- "name": "_stepResizeObserver",
121691
- "privacy": "private",
121692
- "default": "new ResizeController(this, { target: null, skipInitial: true, callback: () => setTimeout(() => this._onStepElementResize()), })"
121693
- },
121694
- {
121695
- "kind": "field",
121696
- "name": "label",
121770
+ "name": "step",
121697
121771
  "type": {
121698
- "text": "SbbStepLabelElement | null"
121772
+ "text": "SbbStepElement | null"
121699
121773
  },
121700
121774
  "privacy": "public",
121701
- "description": "The label of the step.",
121775
+ "description": "The step controlled by the label.",
121702
121776
  "readonly": true,
121703
121777
  "default": "null"
121704
121778
  },
121705
121779
  {
121706
121780
  "kind": "field",
121707
- "name": "_label",
121781
+ "name": "_step",
121708
121782
  "type": {
121709
- "text": "SbbStepLabelElement | null"
121783
+ "text": "SbbStepElement | null"
121710
121784
  },
121711
121785
  "privacy": "private",
121712
121786
  "default": "null"
@@ -121720,6 +121794,22 @@
121720
121794
  "privacy": "public",
121721
121795
  "readonly": true
121722
121796
  },
121797
+ {
121798
+ "kind": "field",
121799
+ "name": "disabled",
121800
+ "privacy": "public",
121801
+ "description": "Whether the component is disabled.",
121802
+ "default": "false",
121803
+ "type": {
121804
+ "text": "boolean"
121805
+ },
121806
+ "attribute": "disabled",
121807
+ "reflects": true,
121808
+ "inheritedFrom": {
121809
+ "name": "SbbDisabledMixin",
121810
+ "module": "core/mixins/disabled-mixin.js"
121811
+ }
121812
+ },
121723
121813
  {
121724
121814
  "kind": "field",
121725
121815
  "name": "_previousOrientation",
@@ -121728,135 +121818,220 @@
121728
121818
  },
121729
121819
  "privacy": "private"
121730
121820
  },
121821
+ {
121822
+ "kind": "field",
121823
+ "name": "_previousSize",
121824
+ "type": {
121825
+ "text": "string | undefined"
121826
+ },
121827
+ "privacy": "private"
121828
+ },
121731
121829
  {
121732
121830
  "kind": "method",
121733
- "name": "_handleClick",
121831
+ "name": "_isNotDeactivatedByLinearMode",
121734
121832
  "privacy": "private",
121735
121833
  "return": {
121736
121834
  "type": {
121737
- "text": "void"
121835
+ "text": "boolean"
121738
121836
  }
121739
121837
  },
121740
121838
  "parameters": [
121741
121839
  {
121742
- "name": "event",
121840
+ "name": "step",
121743
121841
  "type": {
121744
- "text": "Event"
121842
+ "text": "SbbStepElement"
121745
121843
  }
121746
121844
  }
121747
- ],
121748
- "description": "Watches for clicked elements with `sbb-stepper-next` or `sbb-stepper-previous` attributes."
121845
+ ]
121749
121846
  },
121750
121847
  {
121751
121848
  "kind": "method",
121752
- "name": "_isGoNextElement",
121849
+ "name": "_assignStep",
121753
121850
  "privacy": "private",
121754
121851
  "return": {
121755
121852
  "type": {
121756
- "text": "boolean"
121853
+ "text": "void"
121757
121854
  }
121855
+ }
121856
+ },
121857
+ {
121858
+ "kind": "field",
121859
+ "name": "iconName",
121860
+ "type": {
121861
+ "text": "string"
121758
121862
  },
121759
- "parameters": [
121760
- {
121761
- "name": "element",
121762
- "type": {
121763
- "text": "HTMLElement"
121764
- }
121765
- }
121766
- ]
121863
+ "privacy": "public",
121864
+ "default": "''",
121865
+ "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.",
121866
+ "attribute": "icon-name",
121867
+ "inheritedFrom": {
121868
+ "name": "SbbIconNameMixin",
121869
+ "module": "icon/icon-name-mixin.js"
121870
+ }
121767
121871
  },
121768
121872
  {
121769
121873
  "kind": "method",
121770
- "name": "_isGoPreviousElement",
121771
- "privacy": "private",
121874
+ "name": "renderIconSlot",
121875
+ "privacy": "protected",
121772
121876
  "return": {
121773
121877
  "type": {
121774
- "text": "boolean"
121878
+ "text": "TemplateResult"
121775
121879
  }
121776
121880
  },
121777
121881
  "parameters": [
121778
121882
  {
121779
- "name": "element",
121883
+ "name": "classname",
121884
+ "optional": true,
121780
121885
  "type": {
121781
- "text": "HTMLElement"
121886
+ "text": "string"
121782
121887
  }
121783
121888
  }
121784
- ]
121889
+ ],
121890
+ "inheritedFrom": {
121891
+ "name": "SbbIconNameMixin",
121892
+ "module": "icon/icon-name-mixin.js"
121893
+ }
121785
121894
  },
121786
121895
  {
121787
121896
  "kind": "method",
121788
- "name": "_onStepElementResize",
121789
- "privacy": "private",
121897
+ "name": "renderIconName",
121898
+ "privacy": "protected",
121790
121899
  "return": {
121791
121900
  "type": {
121792
- "text": "void"
121901
+ "text": "string"
121793
121902
  }
121903
+ },
121904
+ "inheritedFrom": {
121905
+ "name": "SbbIconNameMixin",
121906
+ "module": "icon/icon-name-mixin.js"
121794
121907
  }
121795
121908
  },
121796
121909
  {
121797
121910
  "kind": "method",
121798
- "name": "_assignLabel",
121911
+ "name": "_renderIconName",
121799
121912
  "privacy": "private",
121800
121913
  "return": {
121801
121914
  "type": {
121802
- "text": "void"
121915
+ "text": "string"
121803
121916
  }
121917
+ },
121918
+ "inheritedFrom": {
121919
+ "name": "SbbIconNameMixin",
121920
+ "module": "icon/icon-name-mixin.js"
121804
121921
  }
121805
121922
  },
121806
121923
  {
121807
121924
  "kind": "field",
121808
- "name": "_hydrationRequired",
121925
+ "name": "#disabled",
121926
+ "privacy": "private",
121809
121927
  "type": {
121810
121928
  "text": "boolean"
121811
121929
  },
121812
- "privacy": "private",
121813
- "default": "!!this.shadowRoot",
121930
+ "default": "false",
121814
121931
  "inheritedFrom": {
121815
- "name": "SbbElement",
121816
- "module": "core/base-elements/element.js"
121932
+ "name": "SbbDisabledMixin",
121933
+ "module": "core/mixins/disabled-mixin.js"
121817
121934
  }
121818
121935
  },
121819
121936
  {
121820
- "kind": "field",
121821
- "name": "_hydrationComplete",
121822
- "privacy": "private",
121823
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
121937
+ "kind": "method",
121938
+ "name": "isDisabledExternally",
121939
+ "privacy": "protected",
121940
+ "return": {
121941
+ "type": {
121942
+ "text": "boolean"
121943
+ }
121944
+ },
121945
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
121824
121946
  "inheritedFrom": {
121825
- "name": "SbbElement",
121826
- "module": "core/base-elements/element.js"
121947
+ "name": "SbbDisabledMixin",
121948
+ "module": "core/mixins/disabled-mixin.js"
121827
121949
  }
121828
121950
  },
121829
121951
  {
121830
121952
  "kind": "field",
121831
- "name": "_resolveHydration",
121953
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
121832
121954
  "type": {
121833
- "text": "(hydrationRequired: boolean) => void"
121955
+ "text": "array"
121834
121956
  },
121835
121957
  "privacy": "private",
121958
+ "readonly": true,
121959
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
121836
121960
  "inheritedFrom": {
121837
- "name": "SbbElement",
121838
- "module": "core/base-elements/element.js"
121961
+ "name": "SbbButtonBaseElement",
121962
+ "module": "core/base-elements/button-base-element.js"
121839
121963
  }
121840
121964
  },
121841
121965
  {
121842
121966
  "kind": "field",
121843
- "name": "hydrationRequired",
121967
+ "name": "value",
121844
121968
  "type": {
121845
- "text": "boolean"
121969
+ "text": "string"
121846
121970
  },
121847
- "privacy": "protected",
121848
- "description": "Returns whether hydration is required and not completed.",
121849
- "readonly": true,
121971
+ "privacy": "public",
121850
121972
  "inheritedFrom": {
121851
- "name": "SbbElement",
121852
- "module": "core/base-elements/element.js"
121973
+ "name": "SbbButtonBaseElement",
121974
+ "module": "core/base-elements/button-base-element.js"
121853
121975
  },
121854
- "default": "!!this.shadowRoot"
121976
+ "default": "''",
121977
+ "description": "Value of the form element.",
121978
+ "attribute": "value"
121979
+ },
121980
+ {
121981
+ "kind": "field",
121982
+ "name": "type",
121983
+ "privacy": "public",
121984
+ "description": "The type attribute to use for the button.",
121985
+ "default": "'button'",
121986
+ "type": {
121987
+ "text": "SbbButtonType"
121988
+ },
121989
+ "attribute": "type",
121990
+ "inheritedFrom": {
121991
+ "name": "SbbButtonBaseElement",
121992
+ "module": "core/base-elements/button-base-element.js"
121993
+ }
121994
+ },
121995
+ {
121996
+ "kind": "field",
121997
+ "name": "form",
121998
+ "type": {
121999
+ "text": "HTMLFormElement | null"
122000
+ },
122001
+ "privacy": "public",
122002
+ "description": "The `<form>` element to associate the button with.",
122003
+ "inheritedFrom": {
122004
+ "name": "SbbButtonBaseElement",
122005
+ "module": "core/base-elements/button-base-element.js"
122006
+ },
122007
+ "attribute": "form"
122008
+ },
122009
+ {
122010
+ "kind": "field",
122011
+ "name": "_formId",
122012
+ "type": {
122013
+ "text": "string"
122014
+ },
122015
+ "privacy": "private",
122016
+ "default": "''",
122017
+ "inheritedFrom": {
122018
+ "name": "SbbButtonBaseElement",
122019
+ "module": "core/base-elements/button-base-element.js"
122020
+ }
122021
+ },
122022
+ {
122023
+ "kind": "field",
122024
+ "name": "_handleButtonClick",
122025
+ "privacy": "private",
122026
+ "inheritedFrom": {
122027
+ "name": "SbbButtonBaseElement",
122028
+ "module": "core/base-elements/button-base-element.js"
122029
+ }
121855
122030
  },
121856
122031
  {
121857
122032
  "kind": "method",
121858
- "name": "toggleState",
121859
- "privacy": "protected",
122033
+ "name": "_requestSubmit",
122034
+ "privacy": "private",
121860
122035
  "return": {
121861
122036
  "type": {
121862
122037
  "text": "void"
@@ -121864,27 +122039,29 @@
121864
122039
  },
121865
122040
  "parameters": [
121866
122041
  {
121867
- "name": "value",
121868
- "type": {
121869
- "text": "string"
121870
- }
121871
- },
121872
- {
121873
- "name": "force",
121874
- "optional": true,
122042
+ "name": "form",
121875
122043
  "type": {
121876
- "text": "boolean"
122044
+ "text": "HTMLFormElement"
121877
122045
  }
121878
122046
  }
121879
122047
  ],
121880
122048
  "inheritedFrom": {
121881
- "name": "SbbElement",
121882
- "module": "core/base-elements/element.js"
122049
+ "name": "SbbButtonBaseElement",
122050
+ "module": "core/base-elements/button-base-element.js"
121883
122051
  }
121884
122052
  },
121885
122053
  {
121886
122054
  "kind": "field",
121887
- "name": "['_$sbbElement$']",
122055
+ "name": "_formKeyDown",
122056
+ "privacy": "private",
122057
+ "inheritedFrom": {
122058
+ "name": "SbbButtonBaseElement",
122059
+ "module": "core/base-elements/button-base-element.js"
122060
+ }
122061
+ },
122062
+ {
122063
+ "kind": "field",
122064
+ "name": "formAssociated",
121888
122065
  "type": {
121889
122066
  "text": "boolean"
121890
122067
  },
@@ -121892,522 +122069,456 @@
121892
122069
  "static": true,
121893
122070
  "default": "true",
121894
122071
  "inheritedFrom": {
121895
- "name": "SbbElement",
121896
- "module": "core/base-elements/element.js"
122072
+ "name": "SbbFormAssociatedMixin",
122073
+ "module": "core/mixins/form-associated-mixin.js"
121897
122074
  }
121898
122075
  },
121899
122076
  {
121900
122077
  "kind": "field",
121901
- "name": "_controllers",
122078
+ "name": "name",
122079
+ "privacy": "public",
122080
+ "description": "Name of the form element. Will be read from name attribute.",
121902
122081
  "type": {
121903
- "text": "Set<SbbReactiveController> | undefined"
122082
+ "text": "string"
121904
122083
  },
121905
- "privacy": "private",
122084
+ "attribute": "name",
121906
122085
  "inheritedFrom": {
121907
- "name": "SbbElement",
121908
- "module": "core/base-elements/element.js"
122086
+ "name": "SbbFormAssociatedMixin",
122087
+ "module": "core/mixins/form-associated-mixin.js"
121909
122088
  }
121910
- }
121911
- ],
121912
- "events": [
121913
- {
121914
- "name": "validate",
121915
- "type": {
121916
- "text": "CustomEvent<SbbStepValidateEventDetails>"
121917
- },
121918
- "description": "The validate event is dispatched when a step change is triggered. Can be canceled to abort the step change."
121919
- }
121920
- ],
121921
- "superclass": {
121922
- "name": "SbbElement",
121923
- "module": "core/base-elements.js"
121924
- },
121925
- "tagName": "sbb-step",
121926
- "customElement": true
121927
- }
121928
- ],
121929
- "exports": [
121930
- {
121931
- "kind": "js",
121932
- "name": "SbbStepElement",
121933
- "declaration": {
121934
- "name": "SbbStepElement",
121935
- "module": "stepper/step/step.component.js"
121936
- }
121937
- }
121938
- ]
121939
- },
121940
- {
121941
- "kind": "javascript-module",
121942
- "path": "stepper/step-label/step-label.component.js",
121943
- "declarations": [
121944
- {
121945
- "kind": "class",
121946
- "description": "Combined with a `sbb-stepper`, it displays a step's label.",
121947
- "name": "SbbStepLabelElement",
121948
- "slots": [
121949
- {
121950
- "description": "Use the unnamed slot to provide a label.",
121951
- "name": ""
121952
122089
  },
121953
- {
121954
- "description": "Use this to display an icon in the label bubble.",
121955
- "name": "icon"
121956
- }
121957
- ],
121958
- "members": [
121959
122090
  {
121960
122091
  "kind": "field",
121961
- "name": "elementName",
122092
+ "name": "validity",
121962
122093
  "type": {
121963
- "text": "string"
122094
+ "text": "ValidityState"
121964
122095
  },
121965
122096
  "privacy": "public",
121966
- "static": true,
122097
+ "description": "Returns the ValidityState object for this element.",
121967
122098
  "readonly": true,
121968
122099
  "inheritedFrom": {
121969
- "name": "SbbElement",
121970
- "module": "core/base-elements/element.js"
121971
- },
121972
- "default": "'sbb-step-label'"
122100
+ "name": "SbbFormAssociatedMixin",
122101
+ "module": "core/mixins/form-associated-mixin.js"
122102
+ }
121973
122103
  },
121974
122104
  {
121975
122105
  "kind": "field",
121976
- "name": "role",
122106
+ "name": "validationMessage",
121977
122107
  "type": {
121978
122108
  "text": "string"
121979
122109
  },
121980
122110
  "privacy": "public",
121981
- "static": true,
122111
+ "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.",
121982
122112
  "readonly": true,
121983
- "default": "'tab'",
121984
122113
  "inheritedFrom": {
121985
- "name": "SbbButtonLikeBaseElement",
121986
- "module": "core/base-elements/button-base-element.js"
122114
+ "name": "SbbFormAssociatedMixin",
122115
+ "module": "core/mixins/form-associated-mixin.js"
121987
122116
  }
121988
122117
  },
121989
122118
  {
121990
122119
  "kind": "field",
121991
- "name": "step",
122120
+ "name": "willValidate",
121992
122121
  "type": {
121993
- "text": "SbbStepElement | null"
122122
+ "text": "boolean"
121994
122123
  },
121995
122124
  "privacy": "public",
121996
- "description": "The step controlled by the label.",
122125
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
121997
122126
  "readonly": true,
121998
- "default": "null"
122127
+ "inheritedFrom": {
122128
+ "name": "SbbFormAssociatedMixin",
122129
+ "module": "core/mixins/form-associated-mixin.js"
122130
+ }
121999
122131
  },
122000
122132
  {
122001
122133
  "kind": "field",
122002
- "name": "_step",
122003
- "type": {
122004
- "text": "SbbStepElement | null"
122005
- },
122134
+ "name": "_validityStates",
122006
122135
  "privacy": "private",
122007
- "default": "null"
122008
- },
122009
- {
122010
- "kind": "field",
122011
- "name": "stepper",
122012
- "type": {
122013
- "text": "SbbStepperElement | null"
122014
- },
122015
- "privacy": "public",
122016
- "readonly": true
122136
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
122137
+ "inheritedFrom": {
122138
+ "name": "SbbFormAssociatedMixin",
122139
+ "module": "core/mixins/form-associated-mixin.js"
122140
+ }
122017
122141
  },
122018
122142
  {
122019
122143
  "kind": "field",
122020
- "name": "disabled",
122021
- "privacy": "public",
122022
- "description": "Whether the component is disabled.",
122023
- "default": "false",
122144
+ "name": "formDisabled",
122024
122145
  "type": {
122025
122146
  "text": "boolean"
122026
122147
  },
122027
- "attribute": "disabled",
122028
- "reflects": true,
122148
+ "privacy": "protected",
122149
+ "default": "false",
122150
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
122029
122151
  "inheritedFrom": {
122030
- "name": "SbbDisabledMixin",
122031
- "module": "core/mixins/disabled-mixin.js"
122152
+ "name": "SbbFormAssociatedMixin",
122153
+ "module": "core/mixins/form-associated-mixin.js"
122032
122154
  }
122033
122155
  },
122034
- {
122035
- "kind": "field",
122036
- "name": "_previousOrientation",
122037
- "type": {
122038
- "text": "string | undefined"
122039
- },
122040
- "privacy": "private"
122041
- },
122042
- {
122043
- "kind": "field",
122044
- "name": "_previousSize",
122045
- "type": {
122046
- "text": "string | undefined"
122047
- },
122048
- "privacy": "private"
122049
- },
122050
122156
  {
122051
122157
  "kind": "method",
122052
- "name": "_isNotDeactivatedByLinearMode",
122053
- "privacy": "private",
122158
+ "name": "checkValidity",
122159
+ "privacy": "public",
122054
122160
  "return": {
122055
122161
  "type": {
122056
122162
  "text": "boolean"
122057
122163
  }
122058
122164
  },
122059
- "parameters": [
122060
- {
122061
- "name": "step",
122062
- "type": {
122063
- "text": "SbbStepElement"
122064
- }
122065
- }
122066
- ]
122165
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
122166
+ "inheritedFrom": {
122167
+ "name": "SbbFormAssociatedMixin",
122168
+ "module": "core/mixins/form-associated-mixin.js"
122169
+ }
122067
122170
  },
122068
122171
  {
122069
122172
  "kind": "method",
122070
- "name": "_assignStep",
122071
- "privacy": "private",
122173
+ "name": "reportValidity",
122174
+ "privacy": "public",
122072
122175
  "return": {
122073
122176
  "type": {
122074
- "text": "void"
122177
+ "text": "boolean"
122075
122178
  }
122076
- }
122077
- },
122078
- {
122079
- "kind": "field",
122080
- "name": "iconName",
122081
- "type": {
122082
- "text": "string"
122083
122179
  },
122084
- "privacy": "public",
122085
- "default": "''",
122086
- "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.",
122087
- "attribute": "icon-name",
122180
+ "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.",
122088
122181
  "inheritedFrom": {
122089
- "name": "SbbIconNameMixin",
122090
- "module": "icon/icon-name-mixin.js"
122182
+ "name": "SbbFormAssociatedMixin",
122183
+ "module": "core/mixins/form-associated-mixin.js"
122091
122184
  }
122092
122185
  },
122093
122186
  {
122094
122187
  "kind": "method",
122095
- "name": "renderIconSlot",
122096
- "privacy": "protected",
122188
+ "name": "setCustomValidity",
122189
+ "privacy": "public",
122097
122190
  "return": {
122098
122191
  "type": {
122099
- "text": "TemplateResult"
122192
+ "text": "void"
122100
122193
  }
122101
122194
  },
122102
122195
  "parameters": [
122103
122196
  {
122104
- "name": "classname",
122105
- "optional": true,
122197
+ "name": "message",
122106
122198
  "type": {
122107
122199
  "text": "string"
122108
122200
  }
122109
122201
  }
122110
122202
  ],
122203
+ "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.",
122111
122204
  "inheritedFrom": {
122112
- "name": "SbbIconNameMixin",
122113
- "module": "icon/icon-name-mixin.js"
122205
+ "name": "SbbFormAssociatedMixin",
122206
+ "module": "core/mixins/form-associated-mixin.js"
122114
122207
  }
122115
122208
  },
122116
122209
  {
122117
122210
  "kind": "method",
122118
- "name": "renderIconName",
122119
- "privacy": "protected",
122211
+ "name": "_hasDisabledAncestor",
122212
+ "privacy": "private",
122120
122213
  "return": {
122121
122214
  "type": {
122122
- "text": "string"
122215
+ "text": "boolean"
122123
122216
  }
122124
122217
  },
122125
122218
  "inheritedFrom": {
122126
- "name": "SbbIconNameMixin",
122127
- "module": "icon/icon-name-mixin.js"
122219
+ "name": "SbbFormAssociatedMixin",
122220
+ "module": "core/mixins/form-associated-mixin.js"
122128
122221
  }
122129
122222
  },
122130
122223
  {
122131
122224
  "kind": "method",
122132
- "name": "_renderIconName",
122133
- "privacy": "private",
122225
+ "name": "updateFormValue",
122226
+ "privacy": "protected",
122134
122227
  "return": {
122135
122228
  "type": {
122136
- "text": "string"
122229
+ "text": "void"
122137
122230
  }
122138
122231
  },
122232
+ "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",
122139
122233
  "inheritedFrom": {
122140
- "name": "SbbIconNameMixin",
122141
- "module": "icon/icon-name-mixin.js"
122234
+ "name": "SbbFormAssociatedMixin",
122235
+ "module": "core/mixins/form-associated-mixin.js"
122142
122236
  }
122143
122237
  },
122144
122238
  {
122145
- "kind": "field",
122146
- "name": "#disabled",
122147
- "privacy": "private",
122148
- "type": {
122149
- "text": "boolean"
122239
+ "kind": "method",
122240
+ "name": "formState",
122241
+ "privacy": "protected",
122242
+ "return": {
122243
+ "type": {
122244
+ "text": "FormRestoreState"
122245
+ }
122150
122246
  },
122151
- "default": "false",
122152
122247
  "inheritedFrom": {
122153
- "name": "SbbDisabledMixin",
122154
- "module": "core/mixins/disabled-mixin.js"
122248
+ "name": "SbbFormAssociatedMixin",
122249
+ "module": "core/mixins/form-associated-mixin.js"
122155
122250
  }
122156
122251
  },
122157
122252
  {
122158
122253
  "kind": "method",
122159
- "name": "isDisabledExternally",
122254
+ "name": "setValidityFlag",
122160
122255
  "privacy": "protected",
122161
122256
  "return": {
122162
122257
  "type": {
122163
- "text": "boolean"
122258
+ "text": "void"
122164
122259
  }
122165
122260
  },
122166
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
122261
+ "parameters": [
122262
+ {
122263
+ "name": "flag",
122264
+ "type": {
122265
+ "text": "T"
122266
+ }
122267
+ },
122268
+ {
122269
+ "name": "message",
122270
+ "type": {
122271
+ "text": "string"
122272
+ }
122273
+ },
122274
+ {
122275
+ "name": "flagValue",
122276
+ "optional": true,
122277
+ "type": {
122278
+ "text": "ValidityStateFlags[T]"
122279
+ }
122280
+ }
122281
+ ],
122282
+ "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).",
122167
122283
  "inheritedFrom": {
122168
- "name": "SbbDisabledMixin",
122169
- "module": "core/mixins/disabled-mixin.js"
122284
+ "name": "SbbFormAssociatedMixin",
122285
+ "module": "core/mixins/form-associated-mixin.js"
122170
122286
  }
122171
122287
  },
122172
122288
  {
122173
- "kind": "field",
122174
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
122175
- "type": {
122176
- "text": "array"
122289
+ "kind": "method",
122290
+ "name": "removeValidityFlag",
122291
+ "privacy": "protected",
122292
+ "return": {
122293
+ "type": {
122294
+ "text": "void"
122295
+ }
122177
122296
  },
122178
- "privacy": "private",
122179
- "readonly": true,
122180
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
122297
+ "parameters": [
122298
+ {
122299
+ "name": "flag",
122300
+ "type": {
122301
+ "text": "T"
122302
+ }
122303
+ }
122304
+ ],
122305
+ "description": "Removes the validity state flag entry and updates validity state.",
122181
122306
  "inheritedFrom": {
122182
- "name": "SbbButtonBaseElement",
122183
- "module": "core/base-elements/button-base-element.js"
122307
+ "name": "SbbFormAssociatedMixin",
122308
+ "module": "core/mixins/form-associated-mixin.js"
122184
122309
  }
122185
122310
  },
122186
122311
  {
122187
- "kind": "field",
122188
- "name": "value",
122189
- "type": {
122190
- "text": "string"
122312
+ "kind": "method",
122313
+ "name": "validate",
122314
+ "privacy": "protected",
122315
+ "return": {
122316
+ "type": {
122317
+ "text": "void"
122318
+ }
122191
122319
  },
122192
- "privacy": "public",
122320
+ "description": "To be called whenever the current element needs to be validated.",
122193
122321
  "inheritedFrom": {
122194
- "name": "SbbButtonBaseElement",
122195
- "module": "core/base-elements/button-base-element.js"
122196
- },
122197
- "default": "''",
122198
- "description": "Value of the form element.",
122199
- "attribute": "value"
122322
+ "name": "SbbFormAssociatedMixin",
122323
+ "module": "core/mixins/form-associated-mixin.js"
122324
+ }
122200
122325
  },
122201
122326
  {
122202
- "kind": "field",
122203
- "name": "type",
122204
- "privacy": "public",
122205
- "description": "The type attribute to use for the button.",
122206
- "default": "'button'",
122207
- "type": {
122208
- "text": "SbbButtonType"
122327
+ "kind": "method",
122328
+ "name": "shouldValidate",
122329
+ "privacy": "protected",
122330
+ "return": {
122331
+ "type": {
122332
+ "text": "boolean"
122333
+ }
122209
122334
  },
122210
- "attribute": "type",
122335
+ "parameters": [
122336
+ {
122337
+ "name": "name",
122338
+ "type": {
122339
+ "text": "PropertyKey | undefined"
122340
+ }
122341
+ }
122342
+ ],
122343
+ "description": "Whether validation should be run on a property change with the given name.",
122211
122344
  "inheritedFrom": {
122212
- "name": "SbbButtonBaseElement",
122213
- "module": "core/base-elements/button-base-element.js"
122345
+ "name": "SbbFormAssociatedMixin",
122346
+ "module": "core/mixins/form-associated-mixin.js"
122214
122347
  }
122215
122348
  },
122216
122349
  {
122217
- "kind": "field",
122218
- "name": "form",
122219
- "type": {
122220
- "text": "HTMLFormElement | null"
122350
+ "kind": "method",
122351
+ "name": "_setInternalValidity",
122352
+ "privacy": "private",
122353
+ "return": {
122354
+ "type": {
122355
+ "text": "void"
122356
+ }
122221
122357
  },
122222
- "privacy": "public",
122223
- "description": "The `<form>` element to associate the button with.",
122224
122358
  "inheritedFrom": {
122225
- "name": "SbbButtonBaseElement",
122226
- "module": "core/base-elements/button-base-element.js"
122227
- },
122228
- "attribute": "form"
122359
+ "name": "SbbFormAssociatedMixin",
122360
+ "module": "core/mixins/form-associated-mixin.js"
122361
+ }
122229
122362
  },
122230
122363
  {
122231
122364
  "kind": "field",
122232
- "name": "_formId",
122233
- "type": {
122234
- "text": "string"
122235
- },
122365
+ "name": "_preventScrollOnSpaceKeydown",
122236
122366
  "privacy": "private",
122237
- "default": "''",
122367
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
122368
+ "parameters": [
122369
+ {
122370
+ "description": "The origin event.",
122371
+ "name": "event"
122372
+ }
122373
+ ],
122238
122374
  "inheritedFrom": {
122239
- "name": "SbbButtonBaseElement",
122375
+ "name": "SbbButtonLikeBaseElement",
122240
122376
  "module": "core/base-elements/button-base-element.js"
122241
122377
  }
122242
122378
  },
122243
122379
  {
122244
122380
  "kind": "field",
122245
- "name": "_handleButtonClick",
122381
+ "name": "_removeActiveMarker",
122246
122382
  "privacy": "private",
122247
122383
  "inheritedFrom": {
122248
- "name": "SbbButtonBaseElement",
122384
+ "name": "SbbButtonLikeBaseElement",
122249
122385
  "module": "core/base-elements/button-base-element.js"
122250
122386
  }
122251
122387
  },
122252
122388
  {
122253
- "kind": "method",
122254
- "name": "_requestSubmit",
122389
+ "kind": "field",
122390
+ "name": "_dispatchClickEventOnSpaceKeyup",
122255
122391
  "privacy": "private",
122256
- "return": {
122257
- "type": {
122258
- "text": "void"
122259
- }
122260
- },
122392
+ "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.",
122261
122393
  "parameters": [
122262
122394
  {
122263
- "name": "form",
122264
- "type": {
122265
- "text": "HTMLFormElement"
122266
- }
122395
+ "description": "The origin event.",
122396
+ "name": "event"
122267
122397
  }
122268
122398
  ],
122269
122399
  "inheritedFrom": {
122270
- "name": "SbbButtonBaseElement",
122400
+ "name": "SbbButtonLikeBaseElement",
122271
122401
  "module": "core/base-elements/button-base-element.js"
122272
122402
  }
122273
122403
  },
122274
122404
  {
122275
122405
  "kind": "field",
122276
- "name": "_formKeyDown",
122406
+ "name": "_dispatchClickEvent",
122277
122407
  "privacy": "private",
122278
122408
  "inheritedFrom": {
122279
- "name": "SbbButtonBaseElement",
122409
+ "name": "SbbButtonLikeBaseElement",
122280
122410
  "module": "core/base-elements/button-base-element.js"
122281
122411
  }
122282
122412
  },
122283
122413
  {
122284
122414
  "kind": "field",
122285
- "name": "formAssociated",
122415
+ "name": "maybeDisabled",
122286
122416
  "type": {
122287
- "text": "boolean"
122417
+ "text": "boolean | undefined"
122288
122418
  },
122289
- "privacy": "public",
122290
- "static": true,
122291
- "default": "true",
122292
- "inheritedFrom": {
122293
- "name": "SbbFormAssociatedMixin",
122294
- "module": "core/mixins/form-associated-mixin.js"
122419
+ "privacy": "protected",
122420
+ "readonly": true,
122421
+ "inheritedFrom": {
122422
+ "name": "SbbActionBaseElement",
122423
+ "module": "core/base-elements/action-base-element.js"
122295
122424
  }
122296
122425
  },
122297
122426
  {
122298
122427
  "kind": "field",
122299
- "name": "name",
122300
- "privacy": "public",
122301
- "description": "Name of the form element. Will be read from name attribute.",
122428
+ "name": "maybeDisabledInteractive",
122302
122429
  "type": {
122303
- "text": "string"
122430
+ "text": "boolean | undefined"
122304
122431
  },
122305
- "attribute": "name",
122432
+ "privacy": "protected",
122433
+ "readonly": true,
122306
122434
  "inheritedFrom": {
122307
- "name": "SbbFormAssociatedMixin",
122308
- "module": "core/mixins/form-associated-mixin.js"
122435
+ "name": "SbbActionBaseElement",
122436
+ "module": "core/base-elements/action-base-element.js"
122309
122437
  }
122310
122438
  },
122311
122439
  {
122312
- "kind": "field",
122313
- "name": "validity",
122314
- "type": {
122315
- "text": "ValidityState"
122440
+ "kind": "method",
122441
+ "name": "setupBaseEventHandlers",
122442
+ "privacy": "protected",
122443
+ "return": {
122444
+ "type": {
122445
+ "text": "void"
122446
+ }
122316
122447
  },
122317
- "privacy": "public",
122318
- "description": "Returns the ValidityState object for this element.",
122319
- "readonly": true,
122320
122448
  "inheritedFrom": {
122321
- "name": "SbbFormAssociatedMixin",
122322
- "module": "core/mixins/form-associated-mixin.js"
122449
+ "name": "SbbActionBaseElement",
122450
+ "module": "core/base-elements/action-base-element.js"
122323
122451
  }
122324
122452
  },
122325
122453
  {
122326
- "kind": "field",
122327
- "name": "validationMessage",
122328
- "type": {
122329
- "text": "string"
122454
+ "kind": "method",
122455
+ "name": "renderTemplate",
122456
+ "privacy": "protected",
122457
+ "return": {
122458
+ "type": {
122459
+ "text": "TemplateResult"
122460
+ }
122330
122461
  },
122331
- "privacy": "public",
122332
- "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.",
122333
- "readonly": true,
122462
+ "description": "Override this method to render the component template.",
122334
122463
  "inheritedFrom": {
122335
- "name": "SbbFormAssociatedMixin",
122336
- "module": "core/mixins/form-associated-mixin.js"
122464
+ "name": "SbbActionBaseElement",
122465
+ "module": "core/base-elements/action-base-element.js"
122337
122466
  }
122338
122467
  },
122339
122468
  {
122340
122469
  "kind": "field",
122341
- "name": "willValidate",
122470
+ "name": "_hydrationRequired",
122342
122471
  "type": {
122343
122472
  "text": "boolean"
122344
122473
  },
122345
- "privacy": "public",
122346
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
122347
- "readonly": true,
122474
+ "privacy": "private",
122475
+ "default": "!!this.shadowRoot",
122348
122476
  "inheritedFrom": {
122349
- "name": "SbbFormAssociatedMixin",
122350
- "module": "core/mixins/form-associated-mixin.js"
122477
+ "name": "SbbElement",
122478
+ "module": "core/base-elements/element.js"
122351
122479
  }
122352
122480
  },
122353
122481
  {
122354
122482
  "kind": "field",
122355
- "name": "_validityStates",
122483
+ "name": "_hydrationComplete",
122356
122484
  "privacy": "private",
122357
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
122485
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
122358
122486
  "inheritedFrom": {
122359
- "name": "SbbFormAssociatedMixin",
122360
- "module": "core/mixins/form-associated-mixin.js"
122487
+ "name": "SbbElement",
122488
+ "module": "core/base-elements/element.js"
122361
122489
  }
122362
122490
  },
122363
122491
  {
122364
122492
  "kind": "field",
122365
- "name": "formDisabled",
122493
+ "name": "_resolveHydration",
122366
122494
  "type": {
122367
- "text": "boolean"
122495
+ "text": "(hydrationRequired: boolean) => void"
122368
122496
  },
122369
- "privacy": "protected",
122370
- "default": "false",
122371
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
122497
+ "privacy": "private",
122372
122498
  "inheritedFrom": {
122373
- "name": "SbbFormAssociatedMixin",
122374
- "module": "core/mixins/form-associated-mixin.js"
122499
+ "name": "SbbElement",
122500
+ "module": "core/base-elements/element.js"
122375
122501
  }
122376
122502
  },
122377
122503
  {
122378
- "kind": "method",
122379
- "name": "checkValidity",
122380
- "privacy": "public",
122381
- "return": {
122382
- "type": {
122383
- "text": "boolean"
122384
- }
122504
+ "kind": "field",
122505
+ "name": "hydrationRequired",
122506
+ "type": {
122507
+ "text": "boolean"
122385
122508
  },
122386
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
122509
+ "privacy": "protected",
122510
+ "description": "Returns whether hydration is required and not completed.",
122511
+ "readonly": true,
122387
122512
  "inheritedFrom": {
122388
- "name": "SbbFormAssociatedMixin",
122389
- "module": "core/mixins/form-associated-mixin.js"
122390
- }
122391
- },
122392
- {
122393
- "kind": "method",
122394
- "name": "reportValidity",
122395
- "privacy": "public",
122396
- "return": {
122397
- "type": {
122398
- "text": "boolean"
122399
- }
122513
+ "name": "SbbElement",
122514
+ "module": "core/base-elements/element.js"
122400
122515
  },
122401
- "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.",
122402
- "inheritedFrom": {
122403
- "name": "SbbFormAssociatedMixin",
122404
- "module": "core/mixins/form-associated-mixin.js"
122405
- }
122516
+ "default": "!!this.shadowRoot"
122406
122517
  },
122407
122518
  {
122408
122519
  "kind": "method",
122409
- "name": "setCustomValidity",
122410
- "privacy": "public",
122520
+ "name": "toggleState",
122521
+ "privacy": "protected",
122411
122522
  "return": {
122412
122523
  "type": {
122413
122524
  "text": "void"
@@ -122415,101 +122526,257 @@
122415
122526
  },
122416
122527
  "parameters": [
122417
122528
  {
122418
- "name": "message",
122529
+ "name": "value",
122419
122530
  "type": {
122420
122531
  "text": "string"
122421
122532
  }
122533
+ },
122534
+ {
122535
+ "name": "force",
122536
+ "optional": true,
122537
+ "type": {
122538
+ "text": "boolean"
122539
+ }
122422
122540
  }
122423
122541
  ],
122424
- "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.",
122425
122542
  "inheritedFrom": {
122426
- "name": "SbbFormAssociatedMixin",
122427
- "module": "core/mixins/form-associated-mixin.js"
122543
+ "name": "SbbElement",
122544
+ "module": "core/base-elements/element.js"
122428
122545
  }
122429
122546
  },
122430
122547
  {
122431
- "kind": "method",
122432
- "name": "_hasDisabledAncestor",
122548
+ "kind": "field",
122549
+ "name": "['_$sbbElement$']",
122550
+ "type": {
122551
+ "text": "boolean"
122552
+ },
122553
+ "privacy": "public",
122554
+ "static": true,
122555
+ "default": "true",
122556
+ "inheritedFrom": {
122557
+ "name": "SbbElement",
122558
+ "module": "core/base-elements/element.js"
122559
+ }
122560
+ },
122561
+ {
122562
+ "kind": "field",
122563
+ "name": "_controllers",
122564
+ "type": {
122565
+ "text": "Set<SbbReactiveController> | undefined"
122566
+ },
122433
122567
  "privacy": "private",
122434
- "return": {
122435
- "type": {
122436
- "text": "boolean"
122437
- }
122568
+ "inheritedFrom": {
122569
+ "name": "SbbElement",
122570
+ "module": "core/base-elements/element.js"
122571
+ }
122572
+ }
122573
+ ],
122574
+ "mixins": [
122575
+ {
122576
+ "name": "SbbIconNameMixin",
122577
+ "module": "icon.js"
122578
+ },
122579
+ {
122580
+ "name": "SbbDisabledMixin",
122581
+ "module": "core/mixins.js"
122582
+ }
122583
+ ],
122584
+ "superclass": {
122585
+ "name": "SbbButtonBaseElement",
122586
+ "module": "core/base-elements.js"
122587
+ },
122588
+ "tagName": "sbb-step-label",
122589
+ "customElement": true,
122590
+ "attributes": [
122591
+ {
122592
+ "name": "icon-name",
122593
+ "type": {
122594
+ "text": "string"
122438
122595
  },
122596
+ "default": "''",
122597
+ "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.",
122598
+ "fieldName": "iconName",
122439
122599
  "inheritedFrom": {
122440
- "name": "SbbFormAssociatedMixin",
122441
- "module": "core/mixins/form-associated-mixin.js"
122600
+ "name": "SbbIconNameMixin",
122601
+ "module": "icon/icon-name-mixin.js"
122442
122602
  }
122443
122603
  },
122444
122604
  {
122445
- "kind": "method",
122446
- "name": "updateFormValue",
122447
- "privacy": "protected",
122448
- "return": {
122449
- "type": {
122450
- "text": "void"
122451
- }
122605
+ "name": "disabled",
122606
+ "description": "Whether the component is disabled.",
122607
+ "default": "false",
122608
+ "type": {
122609
+ "text": "boolean"
122452
122610
  },
122453
- "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",
122611
+ "fieldName": "disabled",
122454
122612
  "inheritedFrom": {
122455
- "name": "SbbFormAssociatedMixin",
122456
- "module": "core/mixins/form-associated-mixin.js"
122613
+ "name": "SbbDisabledMixin",
122614
+ "module": "core/mixins/disabled-mixin.js"
122457
122615
  }
122458
122616
  },
122459
122617
  {
122460
- "kind": "method",
122461
- "name": "formState",
122462
- "privacy": "protected",
122463
- "return": {
122464
- "type": {
122465
- "text": "FormRestoreState"
122466
- }
122618
+ "name": "value",
122619
+ "type": {
122620
+ "text": "string"
122467
122621
  },
122622
+ "default": "''",
122623
+ "description": "Value of the form element.",
122624
+ "fieldName": "value",
122468
122625
  "inheritedFrom": {
122469
- "name": "SbbFormAssociatedMixin",
122470
- "module": "core/mixins/form-associated-mixin.js"
122626
+ "name": "SbbButtonBaseElement",
122627
+ "module": "core/base-elements/button-base-element.js"
122471
122628
  }
122472
122629
  },
122473
122630
  {
122474
- "kind": "method",
122475
- "name": "setValidityFlag",
122476
- "privacy": "protected",
122477
- "return": {
122478
- "type": {
122479
- "text": "void"
122480
- }
122631
+ "name": "type",
122632
+ "description": "The type attribute to use for the button.",
122633
+ "default": "'button'",
122634
+ "type": {
122635
+ "text": "SbbButtonType"
122481
122636
  },
122482
- "parameters": [
122483
- {
122484
- "name": "flag",
122485
- "type": {
122486
- "text": "T"
122487
- }
122488
- },
122489
- {
122490
- "name": "message",
122491
- "type": {
122492
- "text": "string"
122493
- }
122494
- },
122495
- {
122496
- "name": "flagValue",
122497
- "optional": true,
122498
- "type": {
122499
- "text": "ValidityStateFlags[T]"
122500
- }
122501
- }
122502
- ],
122503
- "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).",
122637
+ "fieldName": "type",
122638
+ "inheritedFrom": {
122639
+ "name": "SbbButtonBaseElement",
122640
+ "module": "core/base-elements/button-base-element.js"
122641
+ }
122642
+ },
122643
+ {
122644
+ "name": "form",
122645
+ "description": "The `<form>` element to associate the button with.",
122646
+ "type": {
122647
+ "text": "HTMLFormElement | null"
122648
+ },
122649
+ "fieldName": "form",
122650
+ "inheritedFrom": {
122651
+ "name": "SbbButtonBaseElement",
122652
+ "module": "core/base-elements/button-base-element.js"
122653
+ }
122654
+ },
122655
+ {
122656
+ "name": "name",
122657
+ "description": "Name of the form element. Will be read from name attribute.",
122658
+ "type": {
122659
+ "text": "string"
122660
+ },
122661
+ "fieldName": "name",
122504
122662
  "inheritedFrom": {
122505
122663
  "name": "SbbFormAssociatedMixin",
122506
122664
  "module": "core/mixins/form-associated-mixin.js"
122507
122665
  }
122666
+ }
122667
+ ]
122668
+ }
122669
+ ],
122670
+ "exports": [
122671
+ {
122672
+ "kind": "js",
122673
+ "name": "SbbStepLabelElement",
122674
+ "declaration": {
122675
+ "name": "SbbStepLabelElement",
122676
+ "module": "stepper/step-label/step-label.component.js"
122677
+ }
122678
+ }
122679
+ ]
122680
+ },
122681
+ {
122682
+ "kind": "javascript-module",
122683
+ "path": "stepper/step/step.component.js",
122684
+ "declarations": [
122685
+ {
122686
+ "kind": "class",
122687
+ "description": "Combined with a `sbb-stepper`, it displays a step's content.",
122688
+ "name": "SbbStepElement",
122689
+ "slots": [
122690
+ {
122691
+ "description": "Use the unnamed slot to provide content.",
122692
+ "name": ""
122693
+ }
122694
+ ],
122695
+ "members": [
122696
+ {
122697
+ "kind": "field",
122698
+ "name": "elementName",
122699
+ "type": {
122700
+ "text": "string"
122701
+ },
122702
+ "privacy": "public",
122703
+ "static": true,
122704
+ "readonly": true,
122705
+ "default": "'sbb-step'",
122706
+ "inheritedFrom": {
122707
+ "name": "SbbElement",
122708
+ "module": "core/base-elements/element.js"
122709
+ }
122710
+ },
122711
+ {
122712
+ "kind": "field",
122713
+ "name": "role",
122714
+ "type": {
122715
+ "text": "string"
122716
+ },
122717
+ "privacy": "public",
122718
+ "static": true,
122719
+ "readonly": true,
122720
+ "default": "'tabpanel'"
122721
+ },
122722
+ {
122723
+ "kind": "field",
122724
+ "name": "events",
122725
+ "privacy": "public",
122726
+ "static": true,
122727
+ "readonly": true,
122728
+ "default": "{ validate: 'validate', resizechange: 'resizechange', }",
122729
+ "type": {
122730
+ "text": "{\n validate: 'validate',\n resizechange: 'resizechange',\n }"
122731
+ }
122732
+ },
122733
+ {
122734
+ "kind": "field",
122735
+ "name": "_stepResizeObserver",
122736
+ "privacy": "private",
122737
+ "default": "new ResizeController(this, { target: null, skipInitial: true, callback: () => setTimeout(() => this._onStepElementResize()), })"
122738
+ },
122739
+ {
122740
+ "kind": "field",
122741
+ "name": "label",
122742
+ "type": {
122743
+ "text": "SbbStepLabelElement | null"
122744
+ },
122745
+ "privacy": "public",
122746
+ "description": "The label of the step.",
122747
+ "readonly": true,
122748
+ "default": "null"
122749
+ },
122750
+ {
122751
+ "kind": "field",
122752
+ "name": "_label",
122753
+ "type": {
122754
+ "text": "SbbStepLabelElement | null"
122755
+ },
122756
+ "privacy": "private",
122757
+ "default": "null"
122758
+ },
122759
+ {
122760
+ "kind": "field",
122761
+ "name": "stepper",
122762
+ "type": {
122763
+ "text": "SbbStepperElement | null"
122764
+ },
122765
+ "privacy": "public",
122766
+ "readonly": true
122767
+ },
122768
+ {
122769
+ "kind": "field",
122770
+ "name": "_previousOrientation",
122771
+ "type": {
122772
+ "text": "string | undefined"
122773
+ },
122774
+ "privacy": "private"
122508
122775
  },
122509
122776
  {
122510
122777
  "kind": "method",
122511
- "name": "removeValidityFlag",
122512
- "privacy": "protected",
122778
+ "name": "_handleClick",
122779
+ "privacy": "private",
122513
122780
  "return": {
122514
122781
  "type": {
122515
122782
  "text": "void"
@@ -122517,37 +122784,18 @@
122517
122784
  },
122518
122785
  "parameters": [
122519
122786
  {
122520
- "name": "flag",
122787
+ "name": "event",
122521
122788
  "type": {
122522
- "text": "T"
122789
+ "text": "Event"
122523
122790
  }
122524
122791
  }
122525
122792
  ],
122526
- "description": "Removes the validity state flag entry and updates validity state.",
122527
- "inheritedFrom": {
122528
- "name": "SbbFormAssociatedMixin",
122529
- "module": "core/mixins/form-associated-mixin.js"
122530
- }
122531
- },
122532
- {
122533
- "kind": "method",
122534
- "name": "validate",
122535
- "privacy": "protected",
122536
- "return": {
122537
- "type": {
122538
- "text": "void"
122539
- }
122540
- },
122541
- "description": "To be called whenever the current element needs to be validated.",
122542
- "inheritedFrom": {
122543
- "name": "SbbFormAssociatedMixin",
122544
- "module": "core/mixins/form-associated-mixin.js"
122545
- }
122793
+ "description": "Watches for clicked elements with `sbb-stepper-next` or `sbb-stepper-previous` attributes."
122546
122794
  },
122547
122795
  {
122548
122796
  "kind": "method",
122549
- "name": "shouldValidate",
122550
- "privacy": "protected",
122797
+ "name": "_isGoNextElement",
122798
+ "privacy": "private",
122551
122799
  "return": {
122552
122800
  "type": {
122553
122801
  "text": "boolean"
@@ -122555,135 +122803,49 @@
122555
122803
  },
122556
122804
  "parameters": [
122557
122805
  {
122558
- "name": "name",
122806
+ "name": "element",
122559
122807
  "type": {
122560
- "text": "PropertyKey | undefined"
122808
+ "text": "HTMLElement"
122561
122809
  }
122562
122810
  }
122563
- ],
122564
- "description": "Whether validation should be run on a property change with the given name.",
122565
- "inheritedFrom": {
122566
- "name": "SbbFormAssociatedMixin",
122567
- "module": "core/mixins/form-associated-mixin.js"
122568
- }
122811
+ ]
122569
122812
  },
122570
122813
  {
122571
122814
  "kind": "method",
122572
- "name": "_setInternalValidity",
122815
+ "name": "_isGoPreviousElement",
122573
122816
  "privacy": "private",
122574
122817
  "return": {
122575
122818
  "type": {
122576
- "text": "void"
122819
+ "text": "boolean"
122577
122820
  }
122578
122821
  },
122579
- "inheritedFrom": {
122580
- "name": "SbbFormAssociatedMixin",
122581
- "module": "core/mixins/form-associated-mixin.js"
122582
- }
122583
- },
122584
- {
122585
- "kind": "field",
122586
- "name": "_preventScrollOnSpaceKeydown",
122587
- "privacy": "private",
122588
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
122589
- "parameters": [
122590
- {
122591
- "description": "The origin event.",
122592
- "name": "event"
122593
- }
122594
- ],
122595
- "inheritedFrom": {
122596
- "name": "SbbButtonLikeBaseElement",
122597
- "module": "core/base-elements/button-base-element.js"
122598
- }
122599
- },
122600
- {
122601
- "kind": "field",
122602
- "name": "_removeActiveMarker",
122603
- "privacy": "private",
122604
- "inheritedFrom": {
122605
- "name": "SbbButtonLikeBaseElement",
122606
- "module": "core/base-elements/button-base-element.js"
122607
- }
122608
- },
122609
- {
122610
- "kind": "field",
122611
- "name": "_dispatchClickEventOnSpaceKeyup",
122612
- "privacy": "private",
122613
- "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.",
122614
122822
  "parameters": [
122615
122823
  {
122616
- "description": "The origin event.",
122617
- "name": "event"
122824
+ "name": "element",
122825
+ "type": {
122826
+ "text": "HTMLElement"
122827
+ }
122618
122828
  }
122619
- ],
122620
- "inheritedFrom": {
122621
- "name": "SbbButtonLikeBaseElement",
122622
- "module": "core/base-elements/button-base-element.js"
122623
- }
122624
- },
122625
- {
122626
- "kind": "field",
122627
- "name": "_dispatchClickEvent",
122628
- "privacy": "private",
122629
- "inheritedFrom": {
122630
- "name": "SbbButtonLikeBaseElement",
122631
- "module": "core/base-elements/button-base-element.js"
122632
- }
122633
- },
122634
- {
122635
- "kind": "field",
122636
- "name": "maybeDisabled",
122637
- "type": {
122638
- "text": "boolean | undefined"
122639
- },
122640
- "privacy": "protected",
122641
- "readonly": true,
122642
- "inheritedFrom": {
122643
- "name": "SbbActionBaseElement",
122644
- "module": "core/base-elements/action-base-element.js"
122645
- }
122646
- },
122647
- {
122648
- "kind": "field",
122649
- "name": "maybeDisabledInteractive",
122650
- "type": {
122651
- "text": "boolean | undefined"
122652
- },
122653
- "privacy": "protected",
122654
- "readonly": true,
122655
- "inheritedFrom": {
122656
- "name": "SbbActionBaseElement",
122657
- "module": "core/base-elements/action-base-element.js"
122658
- }
122829
+ ]
122659
122830
  },
122660
122831
  {
122661
122832
  "kind": "method",
122662
- "name": "setupBaseEventHandlers",
122663
- "privacy": "protected",
122833
+ "name": "_onStepElementResize",
122834
+ "privacy": "private",
122664
122835
  "return": {
122665
122836
  "type": {
122666
122837
  "text": "void"
122667
122838
  }
122668
- },
122669
- "inheritedFrom": {
122670
- "name": "SbbActionBaseElement",
122671
- "module": "core/base-elements/action-base-element.js"
122672
122839
  }
122673
122840
  },
122674
122841
  {
122675
122842
  "kind": "method",
122676
- "name": "renderTemplate",
122677
- "privacy": "protected",
122843
+ "name": "_assignLabel",
122844
+ "privacy": "private",
122678
122845
  "return": {
122679
122846
  "type": {
122680
- "text": "TemplateResult"
122847
+ "text": "void"
122681
122848
  }
122682
- },
122683
- "description": "Override this method to render the component template.",
122684
- "inheritedFrom": {
122685
- "name": "SbbActionBaseElement",
122686
- "module": "core/base-elements/action-base-element.js"
122687
122849
  }
122688
122850
  },
122689
122851
  {
@@ -122792,109 +122954,30 @@
122792
122954
  }
122793
122955
  }
122794
122956
  ],
122795
- "mixins": [
122796
- {
122797
- "name": "SbbIconNameMixin",
122798
- "module": "icon.js"
122799
- },
122957
+ "events": [
122800
122958
  {
122801
- "name": "SbbDisabledMixin",
122802
- "module": "core/mixins.js"
122959
+ "name": "validate",
122960
+ "type": {
122961
+ "text": "CustomEvent<SbbStepValidateEventDetails>"
122962
+ },
122963
+ "description": "The validate event is dispatched when a step change is triggered. Can be canceled to abort the step change."
122803
122964
  }
122804
122965
  ],
122805
122966
  "superclass": {
122806
- "name": "SbbButtonBaseElement",
122967
+ "name": "SbbElement",
122807
122968
  "module": "core/base-elements.js"
122808
122969
  },
122809
- "tagName": "sbb-step-label",
122810
- "customElement": true,
122811
- "attributes": [
122812
- {
122813
- "name": "icon-name",
122814
- "type": {
122815
- "text": "string"
122816
- },
122817
- "default": "''",
122818
- "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.",
122819
- "fieldName": "iconName",
122820
- "inheritedFrom": {
122821
- "name": "SbbIconNameMixin",
122822
- "module": "icon/icon-name-mixin.js"
122823
- }
122824
- },
122825
- {
122826
- "name": "disabled",
122827
- "description": "Whether the component is disabled.",
122828
- "default": "false",
122829
- "type": {
122830
- "text": "boolean"
122831
- },
122832
- "fieldName": "disabled",
122833
- "inheritedFrom": {
122834
- "name": "SbbDisabledMixin",
122835
- "module": "core/mixins/disabled-mixin.js"
122836
- }
122837
- },
122838
- {
122839
- "name": "value",
122840
- "type": {
122841
- "text": "string"
122842
- },
122843
- "default": "''",
122844
- "description": "Value of the form element.",
122845
- "fieldName": "value",
122846
- "inheritedFrom": {
122847
- "name": "SbbButtonBaseElement",
122848
- "module": "core/base-elements/button-base-element.js"
122849
- }
122850
- },
122851
- {
122852
- "name": "type",
122853
- "description": "The type attribute to use for the button.",
122854
- "default": "'button'",
122855
- "type": {
122856
- "text": "SbbButtonType"
122857
- },
122858
- "fieldName": "type",
122859
- "inheritedFrom": {
122860
- "name": "SbbButtonBaseElement",
122861
- "module": "core/base-elements/button-base-element.js"
122862
- }
122863
- },
122864
- {
122865
- "name": "form",
122866
- "description": "The `<form>` element to associate the button with.",
122867
- "type": {
122868
- "text": "HTMLFormElement | null"
122869
- },
122870
- "fieldName": "form",
122871
- "inheritedFrom": {
122872
- "name": "SbbButtonBaseElement",
122873
- "module": "core/base-elements/button-base-element.js"
122874
- }
122875
- },
122876
- {
122877
- "name": "name",
122878
- "description": "Name of the form element. Will be read from name attribute.",
122879
- "type": {
122880
- "text": "string"
122881
- },
122882
- "fieldName": "name",
122883
- "inheritedFrom": {
122884
- "name": "SbbFormAssociatedMixin",
122885
- "module": "core/mixins/form-associated-mixin.js"
122886
- }
122887
- }
122888
- ]
122970
+ "tagName": "sbb-step",
122971
+ "customElement": true
122889
122972
  }
122890
122973
  ],
122891
122974
  "exports": [
122892
122975
  {
122893
122976
  "kind": "js",
122894
- "name": "SbbStepLabelElement",
122977
+ "name": "SbbStepElement",
122895
122978
  "declaration": {
122896
- "name": "SbbStepLabelElement",
122897
- "module": "stepper/step-label/step-label.component.js"
122979
+ "name": "SbbStepElement",
122980
+ "module": "stepper/step/step.component.js"
122898
122981
  }
122899
122982
  }
122900
122983
  ]