@sbb-esta/lyne-elements-dev 5.0.0-next-dev.1776089780 → 5.0.0-next-dev.1776118170

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/custom-elements.json +904 -904
  2. package/package.json +2 -2
@@ -99628,28 +99628,16 @@
99628
99628
  },
99629
99629
  {
99630
99630
  "kind": "javascript-module",
99631
- "path": "dialog/dialog-close-button/dialog-close-button.component.js",
99631
+ "path": "dialog/dialog-content/dialog-content.component.js",
99632
99632
  "declarations": [
99633
99633
  {
99634
99634
  "kind": "class",
99635
- "description": "Dialog close button, intended to be placed inside sbb-dialog.",
99636
- "name": "SbbDialogCloseButtonElement",
99635
+ "description": "Use this component to provide a content for an `sbb-dialog`.",
99636
+ "name": "SbbDialogContentElement",
99637
99637
  "slots": [
99638
99638
  {
99639
- "description": "Use the unnamed slot to add content to the dialog-close-button. Not intended to be used in this context.",
99640
- "name": "",
99641
- "inheritedFrom": {
99642
- "name": "SbbSecondaryButtonElement",
99643
- "module": "button/secondary-button/secondary-button.component.js"
99644
- }
99645
- },
99646
- {
99647
- "description": "Slot used to display the icon, if one is set. Not intended to be used in this context.",
99648
- "name": "icon",
99649
- "inheritedFrom": {
99650
- "name": "SbbSecondaryButtonElement",
99651
- "module": "button/secondary-button/secondary-button.component.js"
99652
- }
99639
+ "description": "Use the unnamed slot to provide a dialog content.",
99640
+ "name": ""
99653
99641
  }
99654
99642
  ],
99655
99643
  "members": [
@@ -99662,562 +99650,231 @@
99662
99650
  "privacy": "public",
99663
99651
  "static": true,
99664
99652
  "readonly": true,
99653
+ "default": "'sbb-dialog-content'",
99665
99654
  "inheritedFrom": {
99666
99655
  "name": "SbbElement",
99667
99656
  "module": "core/base-elements/element.js"
99668
- },
99669
- "default": "'sbb-dialog-close-button'"
99657
+ }
99670
99658
  },
99671
99659
  {
99672
99660
  "kind": "field",
99673
- "name": "_languageController",
99674
- "privacy": "private",
99675
- "default": "new SbbLanguageController(this)"
99676
- },
99677
- {
99678
- "kind": "method",
99679
- "name": "renderTemplate",
99680
- "privacy": "protected",
99681
- "return": {
99682
- "type": {
99683
- "text": "TemplateResult"
99684
- }
99661
+ "name": "['_$sbbElement$']",
99662
+ "type": {
99663
+ "text": "boolean"
99685
99664
  },
99686
- "description": "Override this method to render the component template.",
99665
+ "privacy": "public",
99666
+ "static": true,
99667
+ "default": "true",
99687
99668
  "inheritedFrom": {
99688
- "name": "SbbActionBaseElement",
99689
- "module": "core/base-elements/action-base-element.js"
99669
+ "name": "SbbElement",
99670
+ "module": "core/base-elements/element.js"
99690
99671
  }
99691
99672
  },
99692
99673
  {
99693
- "kind": "method",
99694
- "name": "renderIconName",
99695
- "privacy": "protected",
99696
- "return": {
99697
- "type": {
99698
- "text": "string"
99699
- }
99674
+ "kind": "field",
99675
+ "name": "elementDependencies",
99676
+ "type": {
99677
+ "text": "SbbElementType[] | undefined"
99700
99678
  },
99679
+ "privacy": "public",
99680
+ "static": true,
99701
99681
  "inheritedFrom": {
99702
- "name": "SbbIconNameMixin",
99703
- "module": "icon/icon-name-mixin.js"
99682
+ "name": "SbbElement",
99683
+ "module": "core/base-elements/element.js"
99704
99684
  }
99705
99685
  },
99706
99686
  {
99707
99687
  "kind": "field",
99708
- "name": "size",
99688
+ "name": "role",
99709
99689
  "type": {
99710
- "text": "SbbButtonSize"
99690
+ "text": "ElementInternals['role'] | undefined"
99711
99691
  },
99712
99692
  "privacy": "public",
99713
- "description": "Size variant, either l, m or s.",
99714
- "default": "'s'",
99715
- "attribute": "size",
99716
- "reflects": true,
99693
+ "static": true,
99717
99694
  "inheritedFrom": {
99718
- "name": "SbbButtonCommonElementMixin",
99719
- "module": "button/common/button-common.js"
99695
+ "name": "SbbElement",
99696
+ "module": "core/base-elements/element.js"
99720
99697
  }
99721
99698
  },
99722
99699
  {
99723
99700
  "kind": "field",
99724
- "name": "loading",
99701
+ "name": "_controllers",
99725
99702
  "type": {
99726
- "text": "boolean"
99703
+ "text": "Set<SbbReactiveController> | undefined"
99727
99704
  },
99728
- "privacy": "public",
99729
- "default": "false",
99730
- "description": "Whether the button indicates a loading state.\nThe animation kicks in after a delay of 300ms, configurable with --sbb-button-loading-delay CSS variable.",
99731
- "attribute": "loading",
99732
- "reflects": true,
99705
+ "privacy": "private",
99733
99706
  "inheritedFrom": {
99734
- "name": "SbbButtonCommonElementMixin",
99735
- "module": "button/common/button-common.js"
99707
+ "name": "SbbElement",
99708
+ "module": "core/base-elements/element.js"
99736
99709
  }
99737
99710
  },
99738
99711
  {
99739
99712
  "kind": "field",
99740
- "name": "negative",
99713
+ "name": "_hydrationRequired",
99741
99714
  "type": {
99742
99715
  "text": "boolean"
99743
99716
  },
99744
- "privacy": "public",
99745
- "default": "false",
99746
- "description": "Negative coloring variant flag.",
99747
- "attribute": "negative",
99748
- "reflects": true,
99717
+ "privacy": "private",
99718
+ "default": "!!this.shadowRoot",
99749
99719
  "inheritedFrom": {
99750
- "name": "SbbNegativeMixin",
99751
- "module": "core/mixins/negative-mixin.js"
99720
+ "name": "SbbElement",
99721
+ "module": "core/base-elements/element.js"
99752
99722
  }
99753
99723
  },
99754
99724
  {
99755
99725
  "kind": "field",
99756
- "name": "elementDependencies",
99726
+ "name": "_hydrationComplete",
99727
+ "privacy": "private",
99728
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
99729
+ "inheritedFrom": {
99730
+ "name": "SbbElement",
99731
+ "module": "core/base-elements/element.js"
99732
+ }
99733
+ },
99734
+ {
99735
+ "kind": "field",
99736
+ "name": "_resolveHydration",
99757
99737
  "type": {
99758
- "text": "SbbElementType[]"
99738
+ "text": "(hydrationRequired: boolean) => void"
99759
99739
  },
99760
- "privacy": "public",
99761
- "static": true,
99740
+ "privacy": "private",
99762
99741
  "inheritedFrom": {
99763
99742
  "name": "SbbElement",
99764
99743
  "module": "core/base-elements/element.js"
99765
- },
99766
- "default": "[SbbIconElement]"
99744
+ }
99767
99745
  },
99768
99746
  {
99769
99747
  "kind": "field",
99770
- "name": "iconName",
99748
+ "name": "_textObserver",
99771
99749
  "type": {
99772
- "text": "string"
99750
+ "text": "MutationObserver | undefined"
99773
99751
  },
99774
- "privacy": "public",
99775
- "default": "''",
99776
- "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.",
99777
- "attribute": "icon-name",
99752
+ "privacy": "private",
99778
99753
  "inheritedFrom": {
99779
- "name": "SbbIconNameMixin",
99780
- "module": "icon/icon-name-mixin.js"
99754
+ "name": "SbbElement",
99755
+ "module": "core/base-elements/element.js"
99781
99756
  }
99782
99757
  },
99758
+ {
99759
+ "kind": "field",
99760
+ "name": "hydrationRequired",
99761
+ "type": {
99762
+ "text": "boolean"
99763
+ },
99764
+ "privacy": "protected",
99765
+ "description": "Returns whether hydration is required and not completed.",
99766
+ "readonly": true,
99767
+ "inheritedFrom": {
99768
+ "name": "SbbElement",
99769
+ "module": "core/base-elements/element.js"
99770
+ },
99771
+ "default": "!!this.shadowRoot"
99772
+ },
99783
99773
  {
99784
99774
  "kind": "method",
99785
- "name": "renderIconSlot",
99775
+ "name": "toggleState",
99786
99776
  "privacy": "protected",
99787
99777
  "return": {
99788
99778
  "type": {
99789
- "text": "TemplateResult"
99779
+ "text": "void"
99790
99780
  }
99791
99781
  },
99792
99782
  "parameters": [
99793
99783
  {
99794
- "name": "classname",
99795
- "optional": true,
99784
+ "name": "value",
99796
99785
  "type": {
99797
99786
  "text": "string"
99798
99787
  }
99788
+ },
99789
+ {
99790
+ "name": "force",
99791
+ "optional": true,
99792
+ "type": {
99793
+ "text": "boolean"
99794
+ }
99799
99795
  }
99800
99796
  ],
99801
99797
  "inheritedFrom": {
99802
- "name": "SbbIconNameMixin",
99803
- "module": "icon/icon-name-mixin.js"
99798
+ "name": "SbbElement",
99799
+ "module": "core/base-elements/element.js"
99804
99800
  }
99805
99801
  },
99806
99802
  {
99807
99803
  "kind": "method",
99808
- "name": "_renderIconName",
99804
+ "name": "_slotchangeHandler",
99809
99805
  "privacy": "private",
99810
99806
  "return": {
99811
99807
  "type": {
99812
- "text": "string"
99808
+ "text": "void"
99813
99809
  }
99814
99810
  },
99811
+ "parameters": [
99812
+ {
99813
+ "name": "event",
99814
+ "type": {
99815
+ "text": "Event"
99816
+ }
99817
+ },
99818
+ {
99819
+ "name": "slot",
99820
+ "type": {
99821
+ "text": "HTMLSlotElement"
99822
+ }
99823
+ }
99824
+ ],
99815
99825
  "inheritedFrom": {
99816
- "name": "SbbIconNameMixin",
99817
- "module": "icon/icon-name-mixin.js"
99818
- }
99819
- },
99820
- {
99821
- "kind": "field",
99822
- "name": "disabledInteractive",
99823
- "type": {
99824
- "text": "boolean"
99825
- },
99826
- "privacy": "public",
99827
- "default": "false",
99828
- "description": "Whether the button should be aria-disabled but stay interactive.",
99829
- "attribute": "disabled-interactive",
99830
- "reflects": true,
99831
- "inheritedFrom": {
99832
- "name": "SbbDisabledInteractiveMixin",
99833
- "module": "core/mixins/disabled-mixin.js"
99834
- }
99835
- },
99836
- {
99837
- "kind": "field",
99838
- "name": "disabled",
99839
- "privacy": "public",
99840
- "description": "Whether the component is disabled.",
99841
- "default": "false",
99842
- "type": {
99843
- "text": "boolean"
99844
- },
99845
- "attribute": "disabled",
99846
- "reflects": true,
99847
- "inheritedFrom": {
99848
- "name": "SbbDisabledMixin",
99849
- "module": "core/mixins/disabled-mixin.js"
99826
+ "name": "SbbElement",
99827
+ "module": "core/base-elements/element.js"
99850
99828
  }
99851
99829
  },
99852
99830
  {
99853
- "kind": "field",
99854
- "name": "#disabled",
99831
+ "kind": "method",
99832
+ "name": "_handleSlotChangeForSlottedState",
99855
99833
  "privacy": "private",
99856
- "type": {
99857
- "text": "boolean"
99834
+ "return": {
99835
+ "type": {
99836
+ "text": "void"
99837
+ }
99858
99838
  },
99859
- "default": "false",
99839
+ "parameters": [
99840
+ {
99841
+ "name": "slot",
99842
+ "type": {
99843
+ "text": "HTMLSlotElement"
99844
+ }
99845
+ }
99846
+ ],
99860
99847
  "inheritedFrom": {
99861
- "name": "SbbDisabledMixin",
99862
- "module": "core/mixins/disabled-mixin.js"
99848
+ "name": "SbbElement",
99849
+ "module": "core/base-elements/element.js"
99863
99850
  }
99864
99851
  },
99865
99852
  {
99866
99853
  "kind": "method",
99867
- "name": "isDisabledExternally",
99868
- "privacy": "protected",
99854
+ "name": "_updateSlottedState",
99855
+ "privacy": "private",
99869
99856
  "return": {
99870
99857
  "type": {
99871
- "text": "boolean"
99872
- }
99873
- },
99874
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
99875
- "inheritedFrom": {
99876
- "name": "SbbDisabledMixin",
99877
- "module": "core/mixins/disabled-mixin.js"
99878
- }
99879
- },
99880
- {
99881
- "kind": "field",
99882
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
99883
- "type": {
99884
- "text": "array"
99885
- },
99886
- "privacy": "private",
99887
- "readonly": true,
99888
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
99889
- "inheritedFrom": {
99890
- "name": "SbbButtonBaseElement",
99891
- "module": "core/base-elements/button-base-element.js"
99892
- }
99893
- },
99894
- {
99895
- "kind": "field",
99896
- "name": "value",
99897
- "type": {
99898
- "text": "string"
99899
- },
99900
- "privacy": "public",
99901
- "inheritedFrom": {
99902
- "name": "SbbButtonBaseElement",
99903
- "module": "core/base-elements/button-base-element.js"
99904
- },
99905
- "default": "''",
99906
- "description": "Value of the form element.",
99907
- "attribute": "value"
99908
- },
99909
- {
99910
- "kind": "field",
99911
- "name": "type",
99912
- "privacy": "public",
99913
- "description": "The type attribute to use for the button.",
99914
- "default": "'button'",
99915
- "type": {
99916
- "text": "SbbButtonType"
99917
- },
99918
- "attribute": "type",
99919
- "inheritedFrom": {
99920
- "name": "SbbButtonBaseElement",
99921
- "module": "core/base-elements/button-base-element.js"
99922
- }
99923
- },
99924
- {
99925
- "kind": "field",
99926
- "name": "form",
99927
- "type": {
99928
- "text": "HTMLFormElement | null"
99929
- },
99930
- "privacy": "public",
99931
- "description": "The `<form>` element to associate the button with.",
99932
- "inheritedFrom": {
99933
- "name": "SbbButtonBaseElement",
99934
- "module": "core/base-elements/button-base-element.js"
99935
- },
99936
- "attribute": "form"
99937
- },
99938
- {
99939
- "kind": "field",
99940
- "name": "_formId",
99941
- "type": {
99942
- "text": "string"
99943
- },
99944
- "privacy": "private",
99945
- "default": "''",
99946
- "inheritedFrom": {
99947
- "name": "SbbButtonBaseElement",
99948
- "module": "core/base-elements/button-base-element.js"
99949
- }
99950
- },
99951
- {
99952
- "kind": "field",
99953
- "name": "_handleButtonClick",
99954
- "privacy": "private",
99955
- "inheritedFrom": {
99956
- "name": "SbbButtonBaseElement",
99957
- "module": "core/base-elements/button-base-element.js"
99958
- }
99959
- },
99960
- {
99961
- "kind": "method",
99962
- "name": "_requestSubmit",
99963
- "privacy": "private",
99964
- "return": {
99965
- "type": {
99966
- "text": "void"
99967
- }
99968
- },
99969
- "parameters": [
99970
- {
99971
- "name": "form",
99972
- "type": {
99973
- "text": "HTMLFormElement"
99974
- }
99975
- }
99976
- ],
99977
- "inheritedFrom": {
99978
- "name": "SbbButtonBaseElement",
99979
- "module": "core/base-elements/button-base-element.js"
99980
- }
99981
- },
99982
- {
99983
- "kind": "field",
99984
- "name": "_formKeyDown",
99985
- "privacy": "private",
99986
- "inheritedFrom": {
99987
- "name": "SbbButtonBaseElement",
99988
- "module": "core/base-elements/button-base-element.js"
99989
- }
99990
- },
99991
- {
99992
- "kind": "field",
99993
- "name": "formAssociated",
99994
- "type": {
99995
- "text": "boolean"
99996
- },
99997
- "privacy": "public",
99998
- "static": true,
99999
- "default": "true",
100000
- "inheritedFrom": {
100001
- "name": "SbbFormAssociatedMixin",
100002
- "module": "core/mixins/form-associated-mixin.js"
100003
- }
100004
- },
100005
- {
100006
- "kind": "field",
100007
- "name": "name",
100008
- "privacy": "public",
100009
- "description": "Name of the form element. Will be read from name attribute.",
100010
- "type": {
100011
- "text": "string"
100012
- },
100013
- "attribute": "name",
100014
- "inheritedFrom": {
100015
- "name": "SbbFormAssociatedMixin",
100016
- "module": "core/mixins/form-associated-mixin.js"
100017
- }
100018
- },
100019
- {
100020
- "kind": "field",
100021
- "name": "validity",
100022
- "type": {
100023
- "text": "ValidityState"
100024
- },
100025
- "privacy": "public",
100026
- "description": "Returns the ValidityState object for this element.",
100027
- "readonly": true,
100028
- "inheritedFrom": {
100029
- "name": "SbbFormAssociatedMixin",
100030
- "module": "core/mixins/form-associated-mixin.js"
100031
- }
100032
- },
100033
- {
100034
- "kind": "field",
100035
- "name": "validationMessage",
100036
- "type": {
100037
- "text": "string"
100038
- },
100039
- "privacy": "public",
100040
- "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.",
100041
- "readonly": true,
100042
- "inheritedFrom": {
100043
- "name": "SbbFormAssociatedMixin",
100044
- "module": "core/mixins/form-associated-mixin.js"
100045
- }
100046
- },
100047
- {
100048
- "kind": "field",
100049
- "name": "willValidate",
100050
- "type": {
100051
- "text": "boolean"
100052
- },
100053
- "privacy": "public",
100054
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
100055
- "readonly": true,
100056
- "inheritedFrom": {
100057
- "name": "SbbFormAssociatedMixin",
100058
- "module": "core/mixins/form-associated-mixin.js"
100059
- }
100060
- },
100061
- {
100062
- "kind": "field",
100063
- "name": "_validityStates",
100064
- "privacy": "private",
100065
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
100066
- "inheritedFrom": {
100067
- "name": "SbbFormAssociatedMixin",
100068
- "module": "core/mixins/form-associated-mixin.js"
100069
- }
100070
- },
100071
- {
100072
- "kind": "field",
100073
- "name": "formDisabled",
100074
- "type": {
100075
- "text": "boolean"
100076
- },
100077
- "privacy": "protected",
100078
- "default": "false",
100079
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
100080
- "inheritedFrom": {
100081
- "name": "SbbFormAssociatedMixin",
100082
- "module": "core/mixins/form-associated-mixin.js"
100083
- }
100084
- },
100085
- {
100086
- "kind": "method",
100087
- "name": "checkValidity",
100088
- "privacy": "public",
100089
- "return": {
100090
- "type": {
100091
- "text": "boolean"
100092
- }
100093
- },
100094
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
100095
- "inheritedFrom": {
100096
- "name": "SbbFormAssociatedMixin",
100097
- "module": "core/mixins/form-associated-mixin.js"
100098
- }
100099
- },
100100
- {
100101
- "kind": "method",
100102
- "name": "reportValidity",
100103
- "privacy": "public",
100104
- "return": {
100105
- "type": {
100106
- "text": "boolean"
100107
- }
100108
- },
100109
- "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.",
100110
- "inheritedFrom": {
100111
- "name": "SbbFormAssociatedMixin",
100112
- "module": "core/mixins/form-associated-mixin.js"
100113
- }
100114
- },
100115
- {
100116
- "kind": "method",
100117
- "name": "setCustomValidity",
100118
- "privacy": "public",
100119
- "return": {
100120
- "type": {
100121
- "text": "void"
100122
- }
100123
- },
100124
- "parameters": [
100125
- {
100126
- "name": "message",
100127
- "type": {
100128
- "text": "string"
100129
- }
100130
- }
100131
- ],
100132
- "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.",
100133
- "inheritedFrom": {
100134
- "name": "SbbFormAssociatedMixin",
100135
- "module": "core/mixins/form-associated-mixin.js"
100136
- }
100137
- },
100138
- {
100139
- "kind": "method",
100140
- "name": "_hasDisabledAncestor",
100141
- "privacy": "private",
100142
- "return": {
100143
- "type": {
100144
- "text": "boolean"
100145
- }
100146
- },
100147
- "inheritedFrom": {
100148
- "name": "SbbFormAssociatedMixin",
100149
- "module": "core/mixins/form-associated-mixin.js"
100150
- }
100151
- },
100152
- {
100153
- "kind": "method",
100154
- "name": "updateFormValue",
100155
- "privacy": "protected",
100156
- "return": {
100157
- "type": {
100158
- "text": "void"
100159
- }
100160
- },
100161
- "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",
100162
- "inheritedFrom": {
100163
- "name": "SbbFormAssociatedMixin",
100164
- "module": "core/mixins/form-associated-mixin.js"
100165
- }
100166
- },
100167
- {
100168
- "kind": "method",
100169
- "name": "formState",
100170
- "privacy": "protected",
100171
- "return": {
100172
- "type": {
100173
- "text": "FormRestoreState"
100174
- }
100175
- },
100176
- "inheritedFrom": {
100177
- "name": "SbbFormAssociatedMixin",
100178
- "module": "core/mixins/form-associated-mixin.js"
100179
- }
100180
- },
100181
- {
100182
- "kind": "method",
100183
- "name": "setValidityFlag",
100184
- "privacy": "protected",
100185
- "return": {
100186
- "type": {
100187
- "text": "void"
99858
+ "text": "void"
100188
99859
  }
100189
99860
  },
100190
99861
  "parameters": [
100191
99862
  {
100192
- "name": "flag",
100193
- "type": {
100194
- "text": "T"
100195
- }
100196
- },
100197
- {
100198
- "name": "message",
100199
- "type": {
100200
- "text": "string"
100201
- }
100202
- },
100203
- {
100204
- "name": "flagValue",
100205
- "optional": true,
99863
+ "name": "slot",
100206
99864
  "type": {
100207
- "text": "ValidityStateFlags[T]"
99865
+ "text": "HTMLSlotElement"
100208
99866
  }
100209
99867
  }
100210
99868
  ],
100211
- "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).",
100212
99869
  "inheritedFrom": {
100213
- "name": "SbbFormAssociatedMixin",
100214
- "module": "core/mixins/form-associated-mixin.js"
99870
+ "name": "SbbElement",
99871
+ "module": "core/base-elements/element.js"
100215
99872
  }
100216
99873
  },
100217
99874
  {
100218
99875
  "kind": "method",
100219
- "name": "removeValidityFlag",
100220
- "privacy": "protected",
99876
+ "name": "_observeTextNodesInSlot",
99877
+ "privacy": "private",
100221
99878
  "return": {
100222
99879
  "type": {
100223
99880
  "text": "void"
@@ -100225,37 +99882,21 @@
100225
99882
  },
100226
99883
  "parameters": [
100227
99884
  {
100228
- "name": "flag",
99885
+ "name": "slot",
100229
99886
  "type": {
100230
- "text": "T"
99887
+ "text": "HTMLSlotElement"
100231
99888
  }
100232
99889
  }
100233
99890
  ],
100234
- "description": "Removes the validity state flag entry and updates validity state.",
100235
- "inheritedFrom": {
100236
- "name": "SbbFormAssociatedMixin",
100237
- "module": "core/mixins/form-associated-mixin.js"
100238
- }
100239
- },
100240
- {
100241
- "kind": "method",
100242
- "name": "validate",
100243
- "privacy": "protected",
100244
- "return": {
100245
- "type": {
100246
- "text": "void"
100247
- }
100248
- },
100249
- "description": "To be called whenever the current element needs to be validated.",
100250
99891
  "inheritedFrom": {
100251
- "name": "SbbFormAssociatedMixin",
100252
- "module": "core/mixins/form-associated-mixin.js"
99892
+ "name": "SbbElement",
99893
+ "module": "core/base-elements/element.js"
100253
99894
  }
100254
99895
  },
100255
99896
  {
100256
99897
  "kind": "method",
100257
- "name": "shouldValidate",
100258
- "privacy": "protected",
99898
+ "name": "_hasSlottedContent",
99899
+ "privacy": "private",
100259
99900
  "return": {
100260
99901
  "type": {
100261
99902
  "text": "boolean"
@@ -100263,135 +99904,127 @@
100263
99904
  },
100264
99905
  "parameters": [
100265
99906
  {
100266
- "name": "name",
99907
+ "name": "slot",
100267
99908
  "type": {
100268
- "text": "PropertyKey | undefined"
99909
+ "text": "HTMLSlotElement"
100269
99910
  }
100270
99911
  }
100271
99912
  ],
100272
- "description": "Whether validation should be run on a property change with the given name.",
100273
99913
  "inheritedFrom": {
100274
- "name": "SbbFormAssociatedMixin",
100275
- "module": "core/mixins/form-associated-mixin.js"
99914
+ "name": "SbbElement",
99915
+ "module": "core/base-elements/element.js"
100276
99916
  }
100277
- },
99917
+ }
99918
+ ],
99919
+ "superclass": {
99920
+ "name": "SbbElement",
99921
+ "module": "core.js"
99922
+ },
99923
+ "tagName": "sbb-dialog-content",
99924
+ "customElement": true
99925
+ }
99926
+ ],
99927
+ "exports": [
99928
+ {
99929
+ "kind": "js",
99930
+ "name": "SbbDialogContentElement",
99931
+ "declaration": {
99932
+ "name": "SbbDialogContentElement",
99933
+ "module": "dialog/dialog-content/dialog-content.component.js"
99934
+ }
99935
+ }
99936
+ ]
99937
+ },
99938
+ {
99939
+ "kind": "javascript-module",
99940
+ "path": "dialog/dialog-title/dialog-title.component.js",
99941
+ "declarations": [
99942
+ {
99943
+ "kind": "class",
99944
+ "description": "It displays a title inside a dialog header.",
99945
+ "name": "SbbDialogTitleElement",
99946
+ "slots": [
100278
99947
  {
100279
- "kind": "method",
100280
- "name": "_setInternalValidity",
100281
- "privacy": "private",
100282
- "return": {
100283
- "type": {
100284
- "text": "void"
100285
- }
100286
- },
100287
- "inheritedFrom": {
100288
- "name": "SbbFormAssociatedMixin",
100289
- "module": "core/mixins/form-associated-mixin.js"
100290
- }
100291
- },
99948
+ "description": "Use the unnamed slot for the content of the dialog-title.",
99949
+ "name": ""
99950
+ }
99951
+ ],
99952
+ "members": [
100292
99953
  {
100293
99954
  "kind": "field",
100294
- "name": "role",
99955
+ "name": "elementName",
100295
99956
  "type": {
100296
- "text": "ElementInternals['role']"
99957
+ "text": "string"
100297
99958
  },
100298
99959
  "privacy": "public",
100299
99960
  "static": true,
99961
+ "readonly": true,
100300
99962
  "inheritedFrom": {
100301
99963
  "name": "SbbElement",
100302
99964
  "module": "core/base-elements/element.js"
100303
99965
  },
100304
- "readonly": true,
100305
- "default": "'button'"
100306
- },
100307
- {
100308
- "kind": "field",
100309
- "name": "_preventScrollOnSpaceKeydown",
100310
- "privacy": "private",
100311
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
100312
- "parameters": [
100313
- {
100314
- "description": "The origin event.",
100315
- "name": "event"
100316
- }
100317
- ],
100318
- "inheritedFrom": {
100319
- "name": "SbbButtonLikeBaseElement",
100320
- "module": "core/base-elements/button-base-element.js"
100321
- }
100322
- },
100323
- {
100324
- "kind": "field",
100325
- "name": "_removeActiveMarker",
100326
- "privacy": "private",
100327
- "inheritedFrom": {
100328
- "name": "SbbButtonLikeBaseElement",
100329
- "module": "core/base-elements/button-base-element.js"
100330
- }
100331
- },
100332
- {
100333
- "kind": "field",
100334
- "name": "_dispatchClickEventOnSpaceKeyup",
100335
- "privacy": "private",
100336
- "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.",
100337
- "parameters": [
100338
- {
100339
- "description": "The origin event.",
100340
- "name": "event"
100341
- }
100342
- ],
100343
- "inheritedFrom": {
100344
- "name": "SbbButtonLikeBaseElement",
100345
- "module": "core/base-elements/button-base-element.js"
100346
- }
99966
+ "default": "'sbb-dialog-title'"
100347
99967
  },
100348
99968
  {
100349
99969
  "kind": "field",
100350
- "name": "_dispatchClickEvent",
100351
- "privacy": "private",
99970
+ "name": "level",
99971
+ "type": {
99972
+ "text": "SbbTitleLevel"
99973
+ },
99974
+ "privacy": "public",
99975
+ "default": "'2'",
99976
+ "description": "Title level",
99977
+ "attribute": "level",
99978
+ "reflects": true,
100352
99979
  "inheritedFrom": {
100353
- "name": "SbbButtonLikeBaseElement",
100354
- "module": "core/base-elements/button-base-element.js"
99980
+ "name": "SbbTitleBase",
99981
+ "module": "title/title-base.js"
100355
99982
  }
100356
99983
  },
100357
99984
  {
100358
99985
  "kind": "field",
100359
- "name": "maybeDisabled",
99986
+ "name": "visualLevel",
100360
99987
  "type": {
100361
- "text": "boolean | undefined"
99988
+ "text": "SbbTitleLevel | null"
100362
99989
  },
100363
- "privacy": "protected",
100364
- "readonly": true,
99990
+ "privacy": "public",
99991
+ "default": "'4'",
99992
+ "description": "Visual level for the title.",
99993
+ "attribute": "visual-level",
99994
+ "reflects": true,
100365
99995
  "inheritedFrom": {
100366
- "name": "SbbActionBaseElement",
100367
- "module": "core/base-elements/action-base-element.js"
99996
+ "name": "SbbTitleBase",
99997
+ "module": "title/title-base.js"
100368
99998
  }
100369
99999
  },
100370
100000
  {
100371
100001
  "kind": "field",
100372
- "name": "maybeDisabledInteractive",
100002
+ "name": "negative",
100373
100003
  "type": {
100374
- "text": "boolean | undefined"
100004
+ "text": "boolean"
100375
100005
  },
100376
- "privacy": "protected",
100377
- "readonly": true,
100006
+ "privacy": "public",
100007
+ "default": "false",
100008
+ "description": "Negative coloring variant flag.",
100009
+ "attribute": "negative",
100010
+ "reflects": true,
100378
100011
  "inheritedFrom": {
100379
- "name": "SbbActionBaseElement",
100380
- "module": "core/base-elements/action-base-element.js"
100012
+ "name": "SbbNegativeMixin",
100013
+ "module": "core/mixins/negative-mixin.js"
100381
100014
  }
100382
100015
  },
100383
100016
  {
100384
- "kind": "method",
100385
- "name": "setupBaseEventHandlers",
100386
- "privacy": "protected",
100387
- "return": {
100388
- "type": {
100389
- "text": "void"
100390
- }
100017
+ "kind": "field",
100018
+ "name": "role",
100019
+ "type": {
100020
+ "text": "string"
100391
100021
  },
100022
+ "privacy": "public",
100023
+ "static": true,
100024
+ "default": "'heading'",
100392
100025
  "inheritedFrom": {
100393
- "name": "SbbActionBaseElement",
100394
- "module": "core/base-elements/action-base-element.js"
100026
+ "name": "SbbElement",
100027
+ "module": "core/base-elements/element.js"
100395
100028
  }
100396
100029
  },
100397
100030
  {
@@ -100408,6 +100041,19 @@
100408
100041
  "module": "core/base-elements/element.js"
100409
100042
  }
100410
100043
  },
100044
+ {
100045
+ "kind": "field",
100046
+ "name": "elementDependencies",
100047
+ "type": {
100048
+ "text": "SbbElementType[] | undefined"
100049
+ },
100050
+ "privacy": "public",
100051
+ "static": true,
100052
+ "inheritedFrom": {
100053
+ "name": "SbbElement",
100054
+ "module": "core/base-elements/element.js"
100055
+ }
100056
+ },
100411
100057
  {
100412
100058
  "kind": "field",
100413
100059
  "name": "_controllers",
@@ -100628,199 +100274,437 @@
100628
100274
  }
100629
100275
  }
100630
100276
  ],
100277
+ "mixins": [
100278
+ {
100279
+ "name": "SbbNegativeMixin",
100280
+ "module": "core.js"
100281
+ }
100282
+ ],
100631
100283
  "superclass": {
100632
- "name": "SbbSecondaryButtonElement",
100633
- "module": "button.pure.js"
100284
+ "name": "SbbTitleBase",
100285
+ "module": "title.pure.js"
100634
100286
  },
100635
- "tagName": "sbb-dialog-close-button",
100287
+ "tagName": "sbb-dialog-title",
100636
100288
  "customElement": true,
100637
100289
  "attributes": [
100638
100290
  {
100291
+ "name": "negative",
100292
+ "type": {
100293
+ "text": "boolean"
100294
+ },
100295
+ "default": "false",
100296
+ "description": "Negative coloring variant flag.",
100297
+ "fieldName": "negative",
100298
+ "inheritedFrom": {
100299
+ "name": "SbbNegativeMixin",
100300
+ "module": "core/mixins/negative-mixin.js"
100301
+ }
100302
+ },
100303
+ {
100304
+ "name": "level",
100305
+ "type": {
100306
+ "text": "SbbTitleLevel"
100307
+ },
100308
+ "default": "'1'",
100309
+ "description": "Title level",
100310
+ "fieldName": "level",
100311
+ "inheritedFrom": {
100312
+ "name": "SbbTitleBase",
100313
+ "module": "title/title-base.js"
100314
+ }
100315
+ },
100316
+ {
100317
+ "name": "visual-level",
100318
+ "type": {
100319
+ "text": "SbbTitleLevel | null"
100320
+ },
100321
+ "default": "null",
100322
+ "description": "Visual level for the title.",
100323
+ "fieldName": "visualLevel",
100324
+ "inheritedFrom": {
100325
+ "name": "SbbTitleBase",
100326
+ "module": "title/title-base.js"
100327
+ }
100328
+ }
100329
+ ]
100330
+ }
100331
+ ],
100332
+ "exports": [
100333
+ {
100334
+ "kind": "js",
100335
+ "name": "SbbDialogTitleElement",
100336
+ "declaration": {
100337
+ "name": "SbbDialogTitleElement",
100338
+ "module": "dialog/dialog-title/dialog-title.component.js"
100339
+ }
100340
+ }
100341
+ ]
100342
+ },
100343
+ {
100344
+ "kind": "javascript-module",
100345
+ "path": "dialog/dialog-close-button/dialog-close-button.component.js",
100346
+ "declarations": [
100347
+ {
100348
+ "kind": "class",
100349
+ "description": "Dialog close button, intended to be placed inside sbb-dialog.",
100350
+ "name": "SbbDialogCloseButtonElement",
100351
+ "slots": [
100352
+ {
100353
+ "description": "Use the unnamed slot to add content to the dialog-close-button. Not intended to be used in this context.",
100354
+ "name": "",
100355
+ "inheritedFrom": {
100356
+ "name": "SbbSecondaryButtonElement",
100357
+ "module": "button/secondary-button/secondary-button.component.js"
100358
+ }
100359
+ },
100360
+ {
100361
+ "description": "Slot used to display the icon, if one is set. Not intended to be used in this context.",
100362
+ "name": "icon",
100363
+ "inheritedFrom": {
100364
+ "name": "SbbSecondaryButtonElement",
100365
+ "module": "button/secondary-button/secondary-button.component.js"
100366
+ }
100367
+ }
100368
+ ],
100369
+ "members": [
100370
+ {
100371
+ "kind": "field",
100372
+ "name": "elementName",
100373
+ "type": {
100374
+ "text": "string"
100375
+ },
100376
+ "privacy": "public",
100377
+ "static": true,
100378
+ "readonly": true,
100379
+ "inheritedFrom": {
100380
+ "name": "SbbElement",
100381
+ "module": "core/base-elements/element.js"
100382
+ },
100383
+ "default": "'sbb-dialog-close-button'"
100384
+ },
100385
+ {
100386
+ "kind": "field",
100387
+ "name": "_languageController",
100388
+ "privacy": "private",
100389
+ "default": "new SbbLanguageController(this)"
100390
+ },
100391
+ {
100392
+ "kind": "method",
100393
+ "name": "renderTemplate",
100394
+ "privacy": "protected",
100395
+ "return": {
100396
+ "type": {
100397
+ "text": "TemplateResult"
100398
+ }
100399
+ },
100400
+ "description": "Override this method to render the component template.",
100401
+ "inheritedFrom": {
100402
+ "name": "SbbActionBaseElement",
100403
+ "module": "core/base-elements/action-base-element.js"
100404
+ }
100405
+ },
100406
+ {
100407
+ "kind": "method",
100408
+ "name": "renderIconName",
100409
+ "privacy": "protected",
100410
+ "return": {
100411
+ "type": {
100412
+ "text": "string"
100413
+ }
100414
+ },
100415
+ "inheritedFrom": {
100416
+ "name": "SbbIconNameMixin",
100417
+ "module": "icon/icon-name-mixin.js"
100418
+ }
100419
+ },
100420
+ {
100421
+ "kind": "field",
100639
100422
  "name": "size",
100640
100423
  "type": {
100641
100424
  "text": "SbbButtonSize"
100642
100425
  },
100426
+ "privacy": "public",
100643
100427
  "description": "Size variant, either l, m or s.",
100644
- "default": "'l' / 's' (lean)",
100645
- "fieldName": "size",
100428
+ "default": "'s'",
100429
+ "attribute": "size",
100430
+ "reflects": true,
100431
+ "inheritedFrom": {
100432
+ "name": "SbbButtonCommonElementMixin",
100433
+ "module": "button/common/button-common.js"
100434
+ }
100435
+ },
100436
+ {
100437
+ "kind": "field",
100438
+ "name": "loading",
100439
+ "type": {
100440
+ "text": "boolean"
100441
+ },
100442
+ "privacy": "public",
100443
+ "default": "false",
100444
+ "description": "Whether the button indicates a loading state.\nThe animation kicks in after a delay of 300ms, configurable with --sbb-button-loading-delay CSS variable.",
100445
+ "attribute": "loading",
100446
+ "reflects": true,
100646
100447
  "inheritedFrom": {
100647
100448
  "name": "SbbButtonCommonElementMixin",
100648
100449
  "module": "button/common/button-common.js"
100649
100450
  }
100650
100451
  },
100651
100452
  {
100652
- "name": "loading",
100653
- "type": {
100654
- "text": "boolean"
100453
+ "kind": "field",
100454
+ "name": "negative",
100455
+ "type": {
100456
+ "text": "boolean"
100457
+ },
100458
+ "privacy": "public",
100459
+ "default": "false",
100460
+ "description": "Negative coloring variant flag.",
100461
+ "attribute": "negative",
100462
+ "reflects": true,
100463
+ "inheritedFrom": {
100464
+ "name": "SbbNegativeMixin",
100465
+ "module": "core/mixins/negative-mixin.js"
100466
+ }
100467
+ },
100468
+ {
100469
+ "kind": "field",
100470
+ "name": "elementDependencies",
100471
+ "type": {
100472
+ "text": "SbbElementType[]"
100473
+ },
100474
+ "privacy": "public",
100475
+ "static": true,
100476
+ "inheritedFrom": {
100477
+ "name": "SbbElement",
100478
+ "module": "core/base-elements/element.js"
100479
+ },
100480
+ "default": "[SbbIconElement]"
100481
+ },
100482
+ {
100483
+ "kind": "field",
100484
+ "name": "iconName",
100485
+ "type": {
100486
+ "text": "string"
100487
+ },
100488
+ "privacy": "public",
100489
+ "default": "''",
100490
+ "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.",
100491
+ "attribute": "icon-name",
100492
+ "inheritedFrom": {
100493
+ "name": "SbbIconNameMixin",
100494
+ "module": "icon/icon-name-mixin.js"
100495
+ }
100496
+ },
100497
+ {
100498
+ "kind": "method",
100499
+ "name": "renderIconSlot",
100500
+ "privacy": "protected",
100501
+ "return": {
100502
+ "type": {
100503
+ "text": "TemplateResult"
100504
+ }
100505
+ },
100506
+ "parameters": [
100507
+ {
100508
+ "name": "classname",
100509
+ "optional": true,
100510
+ "type": {
100511
+ "text": "string"
100512
+ }
100513
+ }
100514
+ ],
100515
+ "inheritedFrom": {
100516
+ "name": "SbbIconNameMixin",
100517
+ "module": "icon/icon-name-mixin.js"
100518
+ }
100519
+ },
100520
+ {
100521
+ "kind": "method",
100522
+ "name": "_renderIconName",
100523
+ "privacy": "private",
100524
+ "return": {
100525
+ "type": {
100526
+ "text": "string"
100527
+ }
100655
100528
  },
100656
- "default": "false",
100657
- "description": "Whether the button indicates a loading state.\nThe animation kicks in after a delay of 300ms, configurable with --sbb-button-loading-delay CSS variable.",
100658
- "fieldName": "loading",
100659
100529
  "inheritedFrom": {
100660
- "name": "SbbButtonCommonElementMixin",
100661
- "module": "button/common/button-common.js"
100530
+ "name": "SbbIconNameMixin",
100531
+ "module": "icon/icon-name-mixin.js"
100662
100532
  }
100663
100533
  },
100664
100534
  {
100665
- "name": "negative",
100535
+ "kind": "field",
100536
+ "name": "disabledInteractive",
100666
100537
  "type": {
100667
100538
  "text": "boolean"
100668
100539
  },
100540
+ "privacy": "public",
100669
100541
  "default": "false",
100670
- "description": "Negative coloring variant flag.",
100671
- "fieldName": "negative",
100542
+ "description": "Whether the button should be aria-disabled but stay interactive.",
100543
+ "attribute": "disabled-interactive",
100544
+ "reflects": true,
100672
100545
  "inheritedFrom": {
100673
- "name": "SbbNegativeMixin",
100674
- "module": "core/mixins/negative-mixin.js"
100546
+ "name": "SbbDisabledInteractiveMixin",
100547
+ "module": "core/mixins/disabled-mixin.js"
100675
100548
  }
100676
100549
  },
100677
100550
  {
100678
- "name": "icon-name",
100551
+ "kind": "field",
100552
+ "name": "disabled",
100553
+ "privacy": "public",
100554
+ "description": "Whether the component is disabled.",
100555
+ "default": "false",
100679
100556
  "type": {
100680
- "text": "string"
100557
+ "text": "boolean"
100681
100558
  },
100682
- "default": "''",
100683
- "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.",
100684
- "fieldName": "iconName",
100559
+ "attribute": "disabled",
100560
+ "reflects": true,
100685
100561
  "inheritedFrom": {
100686
- "name": "SbbIconNameMixin",
100687
- "module": "icon/icon-name-mixin.js"
100562
+ "name": "SbbDisabledMixin",
100563
+ "module": "core/mixins/disabled-mixin.js"
100688
100564
  }
100689
100565
  },
100690
100566
  {
100691
- "name": "disabled-interactive",
100567
+ "kind": "field",
100568
+ "name": "#disabled",
100569
+ "privacy": "private",
100692
100570
  "type": {
100693
100571
  "text": "boolean"
100694
100572
  },
100695
100573
  "default": "false",
100696
- "description": "Whether the button should be aria-disabled but stay interactive.",
100697
- "fieldName": "disabledInteractive",
100698
100574
  "inheritedFrom": {
100699
- "name": "SbbDisabledInteractiveMixin",
100575
+ "name": "SbbDisabledMixin",
100700
100576
  "module": "core/mixins/disabled-mixin.js"
100701
100577
  }
100702
100578
  },
100703
100579
  {
100704
- "name": "disabled",
100705
- "description": "Whether the component is disabled.",
100706
- "default": "false",
100707
- "type": {
100708
- "text": "boolean"
100580
+ "kind": "method",
100581
+ "name": "isDisabledExternally",
100582
+ "privacy": "protected",
100583
+ "return": {
100584
+ "type": {
100585
+ "text": "boolean"
100586
+ }
100709
100587
  },
100710
- "fieldName": "disabled",
100588
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
100711
100589
  "inheritedFrom": {
100712
100590
  "name": "SbbDisabledMixin",
100713
100591
  "module": "core/mixins/disabled-mixin.js"
100714
100592
  }
100715
100593
  },
100716
100594
  {
100595
+ "kind": "field",
100596
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
100597
+ "type": {
100598
+ "text": "array"
100599
+ },
100600
+ "privacy": "private",
100601
+ "readonly": true,
100602
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
100603
+ "inheritedFrom": {
100604
+ "name": "SbbButtonBaseElement",
100605
+ "module": "core/base-elements/button-base-element.js"
100606
+ }
100607
+ },
100608
+ {
100609
+ "kind": "field",
100717
100610
  "name": "value",
100718
100611
  "type": {
100719
100612
  "text": "string"
100720
100613
  },
100721
- "default": "''",
100722
- "description": "Value of the form element.",
100723
- "fieldName": "value",
100614
+ "privacy": "public",
100724
100615
  "inheritedFrom": {
100725
100616
  "name": "SbbButtonBaseElement",
100726
100617
  "module": "core/base-elements/button-base-element.js"
100727
- }
100618
+ },
100619
+ "default": "''",
100620
+ "description": "Value of the form element.",
100621
+ "attribute": "value"
100728
100622
  },
100729
100623
  {
100624
+ "kind": "field",
100730
100625
  "name": "type",
100626
+ "privacy": "public",
100731
100627
  "description": "The type attribute to use for the button.",
100732
100628
  "default": "'button'",
100733
100629
  "type": {
100734
100630
  "text": "SbbButtonType"
100735
100631
  },
100736
- "fieldName": "type",
100632
+ "attribute": "type",
100737
100633
  "inheritedFrom": {
100738
100634
  "name": "SbbButtonBaseElement",
100739
100635
  "module": "core/base-elements/button-base-element.js"
100740
100636
  }
100741
100637
  },
100742
100638
  {
100639
+ "kind": "field",
100743
100640
  "name": "form",
100744
- "description": "The `<form>` element to associate the button with.",
100745
100641
  "type": {
100746
100642
  "text": "HTMLFormElement | null"
100747
100643
  },
100748
- "fieldName": "form",
100644
+ "privacy": "public",
100645
+ "description": "The `<form>` element to associate the button with.",
100749
100646
  "inheritedFrom": {
100750
100647
  "name": "SbbButtonBaseElement",
100751
100648
  "module": "core/base-elements/button-base-element.js"
100752
- }
100649
+ },
100650
+ "attribute": "form"
100753
100651
  },
100754
100652
  {
100755
- "name": "name",
100756
- "description": "Name of the form element. Will be read from name attribute.",
100653
+ "kind": "field",
100654
+ "name": "_formId",
100757
100655
  "type": {
100758
100656
  "text": "string"
100759
100657
  },
100760
- "fieldName": "name",
100658
+ "privacy": "private",
100659
+ "default": "''",
100761
100660
  "inheritedFrom": {
100762
- "name": "SbbFormAssociatedMixin",
100763
- "module": "core/mixins/form-associated-mixin.js"
100661
+ "name": "SbbButtonBaseElement",
100662
+ "module": "core/base-elements/button-base-element.js"
100764
100663
  }
100765
- }
100766
- ],
100767
- "cssProperties": [
100664
+ },
100768
100665
  {
100769
- "description": "The delay before the loading animation starts, when setting the button into loading state.",
100770
- "name": "--sbb-button-loading-delay",
100771
- "default": "300ms",
100666
+ "kind": "field",
100667
+ "name": "_handleButtonClick",
100668
+ "privacy": "private",
100772
100669
  "inheritedFrom": {
100773
- "name": "SbbSecondaryButtonElement",
100774
- "module": "button/secondary-button/secondary-button.component.js"
100670
+ "name": "SbbButtonBaseElement",
100671
+ "module": "core/base-elements/button-base-element.js"
100775
100672
  }
100776
- }
100777
- ]
100778
- }
100779
- ],
100780
- "exports": [
100781
- {
100782
- "kind": "js",
100783
- "name": "SbbDialogCloseButtonElement",
100784
- "declaration": {
100785
- "name": "SbbDialogCloseButtonElement",
100786
- "module": "dialog/dialog-close-button/dialog-close-button.component.js"
100787
- }
100788
- }
100789
- ]
100790
- },
100791
- {
100792
- "kind": "javascript-module",
100793
- "path": "dialog/dialog-content/dialog-content.component.js",
100794
- "declarations": [
100795
- {
100796
- "kind": "class",
100797
- "description": "Use this component to provide a content for an `sbb-dialog`.",
100798
- "name": "SbbDialogContentElement",
100799
- "slots": [
100673
+ },
100800
100674
  {
100801
- "description": "Use the unnamed slot to provide a dialog content.",
100802
- "name": ""
100803
- }
100804
- ],
100805
- "members": [
100675
+ "kind": "method",
100676
+ "name": "_requestSubmit",
100677
+ "privacy": "private",
100678
+ "return": {
100679
+ "type": {
100680
+ "text": "void"
100681
+ }
100682
+ },
100683
+ "parameters": [
100684
+ {
100685
+ "name": "form",
100686
+ "type": {
100687
+ "text": "HTMLFormElement"
100688
+ }
100689
+ }
100690
+ ],
100691
+ "inheritedFrom": {
100692
+ "name": "SbbButtonBaseElement",
100693
+ "module": "core/base-elements/button-base-element.js"
100694
+ }
100695
+ },
100806
100696
  {
100807
100697
  "kind": "field",
100808
- "name": "elementName",
100809
- "type": {
100810
- "text": "string"
100811
- },
100812
- "privacy": "public",
100813
- "static": true,
100814
- "readonly": true,
100815
- "default": "'sbb-dialog-content'",
100698
+ "name": "_formKeyDown",
100699
+ "privacy": "private",
100816
100700
  "inheritedFrom": {
100817
- "name": "SbbElement",
100818
- "module": "core/base-elements/element.js"
100701
+ "name": "SbbButtonBaseElement",
100702
+ "module": "core/base-elements/button-base-element.js"
100819
100703
  }
100820
100704
  },
100821
100705
  {
100822
100706
  "kind": "field",
100823
- "name": "['_$sbbElement$']",
100707
+ "name": "formAssociated",
100824
100708
  "type": {
100825
100709
  "text": "boolean"
100826
100710
  },
@@ -100828,114 +100712,124 @@
100828
100712
  "static": true,
100829
100713
  "default": "true",
100830
100714
  "inheritedFrom": {
100831
- "name": "SbbElement",
100832
- "module": "core/base-elements/element.js"
100715
+ "name": "SbbFormAssociatedMixin",
100716
+ "module": "core/mixins/form-associated-mixin.js"
100833
100717
  }
100834
100718
  },
100835
100719
  {
100836
100720
  "kind": "field",
100837
- "name": "elementDependencies",
100721
+ "name": "name",
100722
+ "privacy": "public",
100723
+ "description": "Name of the form element. Will be read from name attribute.",
100838
100724
  "type": {
100839
- "text": "SbbElementType[] | undefined"
100725
+ "text": "string"
100840
100726
  },
100841
- "privacy": "public",
100842
- "static": true,
100727
+ "attribute": "name",
100843
100728
  "inheritedFrom": {
100844
- "name": "SbbElement",
100845
- "module": "core/base-elements/element.js"
100729
+ "name": "SbbFormAssociatedMixin",
100730
+ "module": "core/mixins/form-associated-mixin.js"
100846
100731
  }
100847
100732
  },
100848
100733
  {
100849
100734
  "kind": "field",
100850
- "name": "role",
100735
+ "name": "validity",
100851
100736
  "type": {
100852
- "text": "ElementInternals['role'] | undefined"
100737
+ "text": "ValidityState"
100853
100738
  },
100854
100739
  "privacy": "public",
100855
- "static": true,
100740
+ "description": "Returns the ValidityState object for this element.",
100741
+ "readonly": true,
100856
100742
  "inheritedFrom": {
100857
- "name": "SbbElement",
100858
- "module": "core/base-elements/element.js"
100743
+ "name": "SbbFormAssociatedMixin",
100744
+ "module": "core/mixins/form-associated-mixin.js"
100859
100745
  }
100860
100746
  },
100861
100747
  {
100862
100748
  "kind": "field",
100863
- "name": "_controllers",
100749
+ "name": "validationMessage",
100864
100750
  "type": {
100865
- "text": "Set<SbbReactiveController> | undefined"
100751
+ "text": "string"
100866
100752
  },
100867
- "privacy": "private",
100753
+ "privacy": "public",
100754
+ "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.",
100755
+ "readonly": true,
100868
100756
  "inheritedFrom": {
100869
- "name": "SbbElement",
100870
- "module": "core/base-elements/element.js"
100757
+ "name": "SbbFormAssociatedMixin",
100758
+ "module": "core/mixins/form-associated-mixin.js"
100871
100759
  }
100872
100760
  },
100873
100761
  {
100874
100762
  "kind": "field",
100875
- "name": "_hydrationRequired",
100763
+ "name": "willValidate",
100876
100764
  "type": {
100877
100765
  "text": "boolean"
100878
100766
  },
100879
- "privacy": "private",
100880
- "default": "!!this.shadowRoot",
100767
+ "privacy": "public",
100768
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
100769
+ "readonly": true,
100881
100770
  "inheritedFrom": {
100882
- "name": "SbbElement",
100883
- "module": "core/base-elements/element.js"
100771
+ "name": "SbbFormAssociatedMixin",
100772
+ "module": "core/mixins/form-associated-mixin.js"
100884
100773
  }
100885
100774
  },
100886
100775
  {
100887
100776
  "kind": "field",
100888
- "name": "_hydrationComplete",
100777
+ "name": "_validityStates",
100889
100778
  "privacy": "private",
100890
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
100891
- "inheritedFrom": {
100892
- "name": "SbbElement",
100893
- "module": "core/base-elements/element.js"
100779
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
100780
+ "inheritedFrom": {
100781
+ "name": "SbbFormAssociatedMixin",
100782
+ "module": "core/mixins/form-associated-mixin.js"
100894
100783
  }
100895
100784
  },
100896
100785
  {
100897
100786
  "kind": "field",
100898
- "name": "_resolveHydration",
100787
+ "name": "formDisabled",
100899
100788
  "type": {
100900
- "text": "(hydrationRequired: boolean) => void"
100789
+ "text": "boolean"
100901
100790
  },
100902
- "privacy": "private",
100791
+ "privacy": "protected",
100792
+ "default": "false",
100793
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
100903
100794
  "inheritedFrom": {
100904
- "name": "SbbElement",
100905
- "module": "core/base-elements/element.js"
100795
+ "name": "SbbFormAssociatedMixin",
100796
+ "module": "core/mixins/form-associated-mixin.js"
100906
100797
  }
100907
100798
  },
100908
100799
  {
100909
- "kind": "field",
100910
- "name": "_textObserver",
100911
- "type": {
100912
- "text": "MutationObserver | undefined"
100800
+ "kind": "method",
100801
+ "name": "checkValidity",
100802
+ "privacy": "public",
100803
+ "return": {
100804
+ "type": {
100805
+ "text": "boolean"
100806
+ }
100913
100807
  },
100914
- "privacy": "private",
100808
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
100915
100809
  "inheritedFrom": {
100916
- "name": "SbbElement",
100917
- "module": "core/base-elements/element.js"
100810
+ "name": "SbbFormAssociatedMixin",
100811
+ "module": "core/mixins/form-associated-mixin.js"
100918
100812
  }
100919
100813
  },
100920
100814
  {
100921
- "kind": "field",
100922
- "name": "hydrationRequired",
100923
- "type": {
100924
- "text": "boolean"
100815
+ "kind": "method",
100816
+ "name": "reportValidity",
100817
+ "privacy": "public",
100818
+ "return": {
100819
+ "type": {
100820
+ "text": "boolean"
100821
+ }
100925
100822
  },
100926
- "privacy": "protected",
100927
- "description": "Returns whether hydration is required and not completed.",
100928
- "readonly": true,
100823
+ "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.",
100929
100824
  "inheritedFrom": {
100930
- "name": "SbbElement",
100931
- "module": "core/base-elements/element.js"
100932
- },
100933
- "default": "!!this.shadowRoot"
100825
+ "name": "SbbFormAssociatedMixin",
100826
+ "module": "core/mixins/form-associated-mixin.js"
100827
+ }
100934
100828
  },
100935
100829
  {
100936
100830
  "kind": "method",
100937
- "name": "toggleState",
100938
- "privacy": "protected",
100831
+ "name": "setCustomValidity",
100832
+ "privacy": "public",
100939
100833
  "return": {
100940
100834
  "type": {
100941
100835
  "text": "void"
@@ -100943,28 +100837,65 @@
100943
100837
  },
100944
100838
  "parameters": [
100945
100839
  {
100946
- "name": "value",
100840
+ "name": "message",
100947
100841
  "type": {
100948
100842
  "text": "string"
100949
100843
  }
100950
- },
100951
- {
100952
- "name": "force",
100953
- "optional": true,
100954
- "type": {
100955
- "text": "boolean"
100956
- }
100957
100844
  }
100958
100845
  ],
100846
+ "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.",
100959
100847
  "inheritedFrom": {
100960
- "name": "SbbElement",
100961
- "module": "core/base-elements/element.js"
100848
+ "name": "SbbFormAssociatedMixin",
100849
+ "module": "core/mixins/form-associated-mixin.js"
100962
100850
  }
100963
100851
  },
100964
100852
  {
100965
100853
  "kind": "method",
100966
- "name": "_slotchangeHandler",
100854
+ "name": "_hasDisabledAncestor",
100967
100855
  "privacy": "private",
100856
+ "return": {
100857
+ "type": {
100858
+ "text": "boolean"
100859
+ }
100860
+ },
100861
+ "inheritedFrom": {
100862
+ "name": "SbbFormAssociatedMixin",
100863
+ "module": "core/mixins/form-associated-mixin.js"
100864
+ }
100865
+ },
100866
+ {
100867
+ "kind": "method",
100868
+ "name": "updateFormValue",
100869
+ "privacy": "protected",
100870
+ "return": {
100871
+ "type": {
100872
+ "text": "void"
100873
+ }
100874
+ },
100875
+ "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",
100876
+ "inheritedFrom": {
100877
+ "name": "SbbFormAssociatedMixin",
100878
+ "module": "core/mixins/form-associated-mixin.js"
100879
+ }
100880
+ },
100881
+ {
100882
+ "kind": "method",
100883
+ "name": "formState",
100884
+ "privacy": "protected",
100885
+ "return": {
100886
+ "type": {
100887
+ "text": "FormRestoreState"
100888
+ }
100889
+ },
100890
+ "inheritedFrom": {
100891
+ "name": "SbbFormAssociatedMixin",
100892
+ "module": "core/mixins/form-associated-mixin.js"
100893
+ }
100894
+ },
100895
+ {
100896
+ "kind": "method",
100897
+ "name": "setValidityFlag",
100898
+ "privacy": "protected",
100968
100899
  "return": {
100969
100900
  "type": {
100970
100901
  "text": "void"
@@ -100972,27 +100903,35 @@
100972
100903
  },
100973
100904
  "parameters": [
100974
100905
  {
100975
- "name": "event",
100906
+ "name": "flag",
100976
100907
  "type": {
100977
- "text": "Event"
100908
+ "text": "T"
100978
100909
  }
100979
100910
  },
100980
100911
  {
100981
- "name": "slot",
100912
+ "name": "message",
100982
100913
  "type": {
100983
- "text": "HTMLSlotElement"
100914
+ "text": "string"
100915
+ }
100916
+ },
100917
+ {
100918
+ "name": "flagValue",
100919
+ "optional": true,
100920
+ "type": {
100921
+ "text": "ValidityStateFlags[T]"
100984
100922
  }
100985
100923
  }
100986
100924
  ],
100925
+ "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).",
100987
100926
  "inheritedFrom": {
100988
- "name": "SbbElement",
100989
- "module": "core/base-elements/element.js"
100927
+ "name": "SbbFormAssociatedMixin",
100928
+ "module": "core/mixins/form-associated-mixin.js"
100990
100929
  }
100991
100930
  },
100992
100931
  {
100993
100932
  "kind": "method",
100994
- "name": "_handleSlotChangeForSlottedState",
100995
- "privacy": "private",
100933
+ "name": "removeValidityFlag",
100934
+ "privacy": "protected",
100996
100935
  "return": {
100997
100936
  "type": {
100998
100937
  "text": "void"
@@ -101000,217 +100939,184 @@
101000
100939
  },
101001
100940
  "parameters": [
101002
100941
  {
101003
- "name": "slot",
100942
+ "name": "flag",
101004
100943
  "type": {
101005
- "text": "HTMLSlotElement"
100944
+ "text": "T"
101006
100945
  }
101007
100946
  }
101008
100947
  ],
100948
+ "description": "Removes the validity state flag entry and updates validity state.",
101009
100949
  "inheritedFrom": {
101010
- "name": "SbbElement",
101011
- "module": "core/base-elements/element.js"
100950
+ "name": "SbbFormAssociatedMixin",
100951
+ "module": "core/mixins/form-associated-mixin.js"
101012
100952
  }
101013
100953
  },
101014
100954
  {
101015
100955
  "kind": "method",
101016
- "name": "_updateSlottedState",
101017
- "privacy": "private",
100956
+ "name": "validate",
100957
+ "privacy": "protected",
101018
100958
  "return": {
101019
100959
  "type": {
101020
100960
  "text": "void"
101021
100961
  }
101022
100962
  },
101023
- "parameters": [
101024
- {
101025
- "name": "slot",
101026
- "type": {
101027
- "text": "HTMLSlotElement"
101028
- }
101029
- }
101030
- ],
100963
+ "description": "To be called whenever the current element needs to be validated.",
101031
100964
  "inheritedFrom": {
101032
- "name": "SbbElement",
101033
- "module": "core/base-elements/element.js"
100965
+ "name": "SbbFormAssociatedMixin",
100966
+ "module": "core/mixins/form-associated-mixin.js"
101034
100967
  }
101035
100968
  },
101036
100969
  {
101037
100970
  "kind": "method",
101038
- "name": "_observeTextNodesInSlot",
101039
- "privacy": "private",
100971
+ "name": "shouldValidate",
100972
+ "privacy": "protected",
101040
100973
  "return": {
101041
100974
  "type": {
101042
- "text": "void"
100975
+ "text": "boolean"
101043
100976
  }
101044
100977
  },
101045
100978
  "parameters": [
101046
100979
  {
101047
- "name": "slot",
100980
+ "name": "name",
101048
100981
  "type": {
101049
- "text": "HTMLSlotElement"
100982
+ "text": "PropertyKey | undefined"
101050
100983
  }
101051
100984
  }
101052
100985
  ],
100986
+ "description": "Whether validation should be run on a property change with the given name.",
101053
100987
  "inheritedFrom": {
101054
- "name": "SbbElement",
101055
- "module": "core/base-elements/element.js"
100988
+ "name": "SbbFormAssociatedMixin",
100989
+ "module": "core/mixins/form-associated-mixin.js"
101056
100990
  }
101057
100991
  },
101058
100992
  {
101059
100993
  "kind": "method",
101060
- "name": "_hasSlottedContent",
100994
+ "name": "_setInternalValidity",
101061
100995
  "privacy": "private",
101062
100996
  "return": {
101063
100997
  "type": {
101064
- "text": "boolean"
100998
+ "text": "void"
101065
100999
  }
101066
101000
  },
101067
- "parameters": [
101068
- {
101069
- "name": "slot",
101070
- "type": {
101071
- "text": "HTMLSlotElement"
101072
- }
101073
- }
101074
- ],
101001
+ "inheritedFrom": {
101002
+ "name": "SbbFormAssociatedMixin",
101003
+ "module": "core/mixins/form-associated-mixin.js"
101004
+ }
101005
+ },
101006
+ {
101007
+ "kind": "field",
101008
+ "name": "role",
101009
+ "type": {
101010
+ "text": "ElementInternals['role']"
101011
+ },
101012
+ "privacy": "public",
101013
+ "static": true,
101075
101014
  "inheritedFrom": {
101076
101015
  "name": "SbbElement",
101077
101016
  "module": "core/base-elements/element.js"
101078
- }
101079
- }
101080
- ],
101081
- "superclass": {
101082
- "name": "SbbElement",
101083
- "module": "core.js"
101084
- },
101085
- "tagName": "sbb-dialog-content",
101086
- "customElement": true
101087
- }
101088
- ],
101089
- "exports": [
101090
- {
101091
- "kind": "js",
101092
- "name": "SbbDialogContentElement",
101093
- "declaration": {
101094
- "name": "SbbDialogContentElement",
101095
- "module": "dialog/dialog-content/dialog-content.component.js"
101096
- }
101097
- }
101098
- ]
101099
- },
101100
- {
101101
- "kind": "javascript-module",
101102
- "path": "dialog/dialog-title/dialog-title.component.js",
101103
- "declarations": [
101104
- {
101105
- "kind": "class",
101106
- "description": "It displays a title inside a dialog header.",
101107
- "name": "SbbDialogTitleElement",
101108
- "slots": [
101017
+ },
101018
+ "readonly": true,
101019
+ "default": "'button'"
101020
+ },
101109
101021
  {
101110
- "description": "Use the unnamed slot for the content of the dialog-title.",
101111
- "name": ""
101112
- }
101113
- ],
101114
- "members": [
101022
+ "kind": "field",
101023
+ "name": "_preventScrollOnSpaceKeydown",
101024
+ "privacy": "private",
101025
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
101026
+ "parameters": [
101027
+ {
101028
+ "description": "The origin event.",
101029
+ "name": "event"
101030
+ }
101031
+ ],
101032
+ "inheritedFrom": {
101033
+ "name": "SbbButtonLikeBaseElement",
101034
+ "module": "core/base-elements/button-base-element.js"
101035
+ }
101036
+ },
101115
101037
  {
101116
101038
  "kind": "field",
101117
- "name": "elementName",
101118
- "type": {
101119
- "text": "string"
101120
- },
101121
- "privacy": "public",
101122
- "static": true,
101123
- "readonly": true,
101039
+ "name": "_removeActiveMarker",
101040
+ "privacy": "private",
101124
101041
  "inheritedFrom": {
101125
- "name": "SbbElement",
101126
- "module": "core/base-elements/element.js"
101127
- },
101128
- "default": "'sbb-dialog-title'"
101042
+ "name": "SbbButtonLikeBaseElement",
101043
+ "module": "core/base-elements/button-base-element.js"
101044
+ }
101129
101045
  },
101130
101046
  {
101131
101047
  "kind": "field",
101132
- "name": "level",
101133
- "type": {
101134
- "text": "SbbTitleLevel"
101135
- },
101136
- "privacy": "public",
101137
- "default": "'2'",
101138
- "description": "Title level",
101139
- "attribute": "level",
101140
- "reflects": true,
101048
+ "name": "_dispatchClickEventOnSpaceKeyup",
101049
+ "privacy": "private",
101050
+ "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.",
101051
+ "parameters": [
101052
+ {
101053
+ "description": "The origin event.",
101054
+ "name": "event"
101055
+ }
101056
+ ],
101141
101057
  "inheritedFrom": {
101142
- "name": "SbbTitleBase",
101143
- "module": "title/title-base.js"
101058
+ "name": "SbbButtonLikeBaseElement",
101059
+ "module": "core/base-elements/button-base-element.js"
101144
101060
  }
101145
101061
  },
101146
101062
  {
101147
101063
  "kind": "field",
101148
- "name": "visualLevel",
101149
- "type": {
101150
- "text": "SbbTitleLevel | null"
101151
- },
101152
- "privacy": "public",
101153
- "default": "'4'",
101154
- "description": "Visual level for the title.",
101155
- "attribute": "visual-level",
101156
- "reflects": true,
101064
+ "name": "_dispatchClickEvent",
101065
+ "privacy": "private",
101157
101066
  "inheritedFrom": {
101158
- "name": "SbbTitleBase",
101159
- "module": "title/title-base.js"
101067
+ "name": "SbbButtonLikeBaseElement",
101068
+ "module": "core/base-elements/button-base-element.js"
101160
101069
  }
101161
101070
  },
101162
101071
  {
101163
101072
  "kind": "field",
101164
- "name": "negative",
101073
+ "name": "maybeDisabled",
101165
101074
  "type": {
101166
- "text": "boolean"
101075
+ "text": "boolean | undefined"
101167
101076
  },
101168
- "privacy": "public",
101169
- "default": "false",
101170
- "description": "Negative coloring variant flag.",
101171
- "attribute": "negative",
101172
- "reflects": true,
101077
+ "privacy": "protected",
101078
+ "readonly": true,
101173
101079
  "inheritedFrom": {
101174
- "name": "SbbNegativeMixin",
101175
- "module": "core/mixins/negative-mixin.js"
101080
+ "name": "SbbActionBaseElement",
101081
+ "module": "core/base-elements/action-base-element.js"
101176
101082
  }
101177
101083
  },
101178
101084
  {
101179
101085
  "kind": "field",
101180
- "name": "role",
101086
+ "name": "maybeDisabledInteractive",
101181
101087
  "type": {
101182
- "text": "string"
101088
+ "text": "boolean | undefined"
101183
101089
  },
101184
- "privacy": "public",
101185
- "static": true,
101186
- "default": "'heading'",
101090
+ "privacy": "protected",
101091
+ "readonly": true,
101187
101092
  "inheritedFrom": {
101188
- "name": "SbbElement",
101189
- "module": "core/base-elements/element.js"
101093
+ "name": "SbbActionBaseElement",
101094
+ "module": "core/base-elements/action-base-element.js"
101190
101095
  }
101191
101096
  },
101192
101097
  {
101193
- "kind": "field",
101194
- "name": "['_$sbbElement$']",
101195
- "type": {
101196
- "text": "boolean"
101098
+ "kind": "method",
101099
+ "name": "setupBaseEventHandlers",
101100
+ "privacy": "protected",
101101
+ "return": {
101102
+ "type": {
101103
+ "text": "void"
101104
+ }
101197
101105
  },
101198
- "privacy": "public",
101199
- "static": true,
101200
- "default": "true",
101201
101106
  "inheritedFrom": {
101202
- "name": "SbbElement",
101203
- "module": "core/base-elements/element.js"
101107
+ "name": "SbbActionBaseElement",
101108
+ "module": "core/base-elements/action-base-element.js"
101204
101109
  }
101205
101110
  },
101206
101111
  {
101207
101112
  "kind": "field",
101208
- "name": "elementDependencies",
101113
+ "name": "['_$sbbElement$']",
101209
101114
  "type": {
101210
- "text": "SbbElementType[] | undefined"
101115
+ "text": "boolean"
101211
101116
  },
101212
101117
  "privacy": "public",
101213
101118
  "static": true,
101119
+ "default": "true",
101214
101120
  "inheritedFrom": {
101215
101121
  "name": "SbbElement",
101216
101122
  "module": "core/base-elements/element.js"
@@ -101436,19 +101342,39 @@
101436
101342
  }
101437
101343
  }
101438
101344
  ],
101439
- "mixins": [
101440
- {
101441
- "name": "SbbNegativeMixin",
101442
- "module": "core.js"
101443
- }
101444
- ],
101445
101345
  "superclass": {
101446
- "name": "SbbTitleBase",
101447
- "module": "title.pure.js"
101346
+ "name": "SbbSecondaryButtonElement",
101347
+ "module": "button.pure.js"
101448
101348
  },
101449
- "tagName": "sbb-dialog-title",
101349
+ "tagName": "sbb-dialog-close-button",
101450
101350
  "customElement": true,
101451
101351
  "attributes": [
101352
+ {
101353
+ "name": "size",
101354
+ "type": {
101355
+ "text": "SbbButtonSize"
101356
+ },
101357
+ "description": "Size variant, either l, m or s.",
101358
+ "default": "'l' / 's' (lean)",
101359
+ "fieldName": "size",
101360
+ "inheritedFrom": {
101361
+ "name": "SbbButtonCommonElementMixin",
101362
+ "module": "button/common/button-common.js"
101363
+ }
101364
+ },
101365
+ {
101366
+ "name": "loading",
101367
+ "type": {
101368
+ "text": "boolean"
101369
+ },
101370
+ "default": "false",
101371
+ "description": "Whether the button indicates a loading state.\nThe animation kicks in after a delay of 300ms, configurable with --sbb-button-loading-delay CSS variable.",
101372
+ "fieldName": "loading",
101373
+ "inheritedFrom": {
101374
+ "name": "SbbButtonCommonElementMixin",
101375
+ "module": "button/common/button-common.js"
101376
+ }
101377
+ },
101452
101378
  {
101453
101379
  "name": "negative",
101454
101380
  "type": {
@@ -101463,29 +101389,103 @@
101463
101389
  }
101464
101390
  },
101465
101391
  {
101466
- "name": "level",
101392
+ "name": "icon-name",
101467
101393
  "type": {
101468
- "text": "SbbTitleLevel"
101394
+ "text": "string"
101469
101395
  },
101470
- "default": "'1'",
101471
- "description": "Title level",
101472
- "fieldName": "level",
101396
+ "default": "''",
101397
+ "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.",
101398
+ "fieldName": "iconName",
101473
101399
  "inheritedFrom": {
101474
- "name": "SbbTitleBase",
101475
- "module": "title/title-base.js"
101400
+ "name": "SbbIconNameMixin",
101401
+ "module": "icon/icon-name-mixin.js"
101476
101402
  }
101477
101403
  },
101478
101404
  {
101479
- "name": "visual-level",
101405
+ "name": "disabled-interactive",
101480
101406
  "type": {
101481
- "text": "SbbTitleLevel | null"
101407
+ "text": "boolean"
101482
101408
  },
101483
- "default": "null",
101484
- "description": "Visual level for the title.",
101485
- "fieldName": "visualLevel",
101409
+ "default": "false",
101410
+ "description": "Whether the button should be aria-disabled but stay interactive.",
101411
+ "fieldName": "disabledInteractive",
101486
101412
  "inheritedFrom": {
101487
- "name": "SbbTitleBase",
101488
- "module": "title/title-base.js"
101413
+ "name": "SbbDisabledInteractiveMixin",
101414
+ "module": "core/mixins/disabled-mixin.js"
101415
+ }
101416
+ },
101417
+ {
101418
+ "name": "disabled",
101419
+ "description": "Whether the component is disabled.",
101420
+ "default": "false",
101421
+ "type": {
101422
+ "text": "boolean"
101423
+ },
101424
+ "fieldName": "disabled",
101425
+ "inheritedFrom": {
101426
+ "name": "SbbDisabledMixin",
101427
+ "module": "core/mixins/disabled-mixin.js"
101428
+ }
101429
+ },
101430
+ {
101431
+ "name": "value",
101432
+ "type": {
101433
+ "text": "string"
101434
+ },
101435
+ "default": "''",
101436
+ "description": "Value of the form element.",
101437
+ "fieldName": "value",
101438
+ "inheritedFrom": {
101439
+ "name": "SbbButtonBaseElement",
101440
+ "module": "core/base-elements/button-base-element.js"
101441
+ }
101442
+ },
101443
+ {
101444
+ "name": "type",
101445
+ "description": "The type attribute to use for the button.",
101446
+ "default": "'button'",
101447
+ "type": {
101448
+ "text": "SbbButtonType"
101449
+ },
101450
+ "fieldName": "type",
101451
+ "inheritedFrom": {
101452
+ "name": "SbbButtonBaseElement",
101453
+ "module": "core/base-elements/button-base-element.js"
101454
+ }
101455
+ },
101456
+ {
101457
+ "name": "form",
101458
+ "description": "The `<form>` element to associate the button with.",
101459
+ "type": {
101460
+ "text": "HTMLFormElement | null"
101461
+ },
101462
+ "fieldName": "form",
101463
+ "inheritedFrom": {
101464
+ "name": "SbbButtonBaseElement",
101465
+ "module": "core/base-elements/button-base-element.js"
101466
+ }
101467
+ },
101468
+ {
101469
+ "name": "name",
101470
+ "description": "Name of the form element. Will be read from name attribute.",
101471
+ "type": {
101472
+ "text": "string"
101473
+ },
101474
+ "fieldName": "name",
101475
+ "inheritedFrom": {
101476
+ "name": "SbbFormAssociatedMixin",
101477
+ "module": "core/mixins/form-associated-mixin.js"
101478
+ }
101479
+ }
101480
+ ],
101481
+ "cssProperties": [
101482
+ {
101483
+ "description": "The delay before the loading animation starts, when setting the button into loading state.",
101484
+ "name": "--sbb-button-loading-delay",
101485
+ "default": "300ms",
101486
+ "inheritedFrom": {
101487
+ "name": "SbbSecondaryButtonElement",
101488
+ "module": "button/secondary-button/secondary-button.component.js"
101489
101489
  }
101490
101490
  }
101491
101491
  ]
@@ -101494,10 +101494,10 @@
101494
101494
  "exports": [
101495
101495
  {
101496
101496
  "kind": "js",
101497
- "name": "SbbDialogTitleElement",
101497
+ "name": "SbbDialogCloseButtonElement",
101498
101498
  "declaration": {
101499
- "name": "SbbDialogTitleElement",
101500
- "module": "dialog/dialog-title/dialog-title.component.js"
101499
+ "name": "SbbDialogCloseButtonElement",
101500
+ "module": "dialog/dialog-close-button/dialog-close-button.component.js"
101501
101501
  }
101502
101502
  }
101503
101503
  ]