@sbb-esta/lyne-elements-dev 4.7.0-dev.1773157346 → 4.7.0-dev.1773160191

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 +808 -808
  2. package/package.json +2 -2
@@ -16487,6 +16487,66 @@
16487
16487
  }
16488
16488
  ]
16489
16489
  },
16490
+ {
16491
+ "kind": "javascript-module",
16492
+ "path": "menu/common.js",
16493
+ "declarations": [],
16494
+ "exports": [
16495
+ {
16496
+ "kind": "js",
16497
+ "name": "*",
16498
+ "declaration": {
16499
+ "name": "*",
16500
+ "module": "menu/common/menu-action-common.js"
16501
+ }
16502
+ }
16503
+ ]
16504
+ },
16505
+ {
16506
+ "kind": "javascript-module",
16507
+ "path": "menu/menu-button.js",
16508
+ "declarations": [],
16509
+ "exports": [
16510
+ {
16511
+ "kind": "js",
16512
+ "name": "*",
16513
+ "declaration": {
16514
+ "name": "*",
16515
+ "module": "menu/menu-button/menu-button.component.js"
16516
+ }
16517
+ }
16518
+ ]
16519
+ },
16520
+ {
16521
+ "kind": "javascript-module",
16522
+ "path": "menu/menu-link.js",
16523
+ "declarations": [],
16524
+ "exports": [
16525
+ {
16526
+ "kind": "js",
16527
+ "name": "*",
16528
+ "declaration": {
16529
+ "name": "*",
16530
+ "module": "menu/menu-link/menu-link.component.js"
16531
+ }
16532
+ }
16533
+ ]
16534
+ },
16535
+ {
16536
+ "kind": "javascript-module",
16537
+ "path": "menu/menu.js",
16538
+ "declarations": [],
16539
+ "exports": [
16540
+ {
16541
+ "kind": "js",
16542
+ "name": "*",
16543
+ "declaration": {
16544
+ "name": "*",
16545
+ "module": "menu/menu/menu.component.js"
16546
+ }
16547
+ }
16548
+ ]
16549
+ },
16490
16550
  {
16491
16551
  "kind": "javascript-module",
16492
16552
  "path": "message/message.component.js",
@@ -16676,66 +16736,6 @@
16676
16736
  }
16677
16737
  ]
16678
16738
  },
16679
- {
16680
- "kind": "javascript-module",
16681
- "path": "menu/common.js",
16682
- "declarations": [],
16683
- "exports": [
16684
- {
16685
- "kind": "js",
16686
- "name": "*",
16687
- "declaration": {
16688
- "name": "*",
16689
- "module": "menu/common/menu-action-common.js"
16690
- }
16691
- }
16692
- ]
16693
- },
16694
- {
16695
- "kind": "javascript-module",
16696
- "path": "menu/menu-button.js",
16697
- "declarations": [],
16698
- "exports": [
16699
- {
16700
- "kind": "js",
16701
- "name": "*",
16702
- "declaration": {
16703
- "name": "*",
16704
- "module": "menu/menu-button/menu-button.component.js"
16705
- }
16706
- }
16707
- ]
16708
- },
16709
- {
16710
- "kind": "javascript-module",
16711
- "path": "menu/menu-link.js",
16712
- "declarations": [],
16713
- "exports": [
16714
- {
16715
- "kind": "js",
16716
- "name": "*",
16717
- "declaration": {
16718
- "name": "*",
16719
- "module": "menu/menu-link/menu-link.component.js"
16720
- }
16721
- }
16722
- ]
16723
- },
16724
- {
16725
- "kind": "javascript-module",
16726
- "path": "menu/menu.js",
16727
- "declarations": [],
16728
- "exports": [
16729
- {
16730
- "kind": "js",
16731
- "name": "*",
16732
- "declaration": {
16733
- "name": "*",
16734
- "module": "menu/menu/menu.component.js"
16735
- }
16736
- }
16737
- ]
16738
- },
16739
16739
  {
16740
16740
  "kind": "javascript-module",
16741
16741
  "path": "mini-calendar/mini-calendar-day.js",
@@ -36559,12 +36559,12 @@
36559
36559
  },
36560
36560
  {
36561
36561
  "kind": "javascript-module",
36562
- "path": "button/accent-button/accent-button.component.js",
36562
+ "path": "button/accent-button-link/accent-button-link.component.js",
36563
36563
  "declarations": [
36564
36564
  {
36565
36565
  "kind": "class",
36566
- "description": "It displays a button enhanced with the SBB Design in the 'accent' variant.",
36567
- "name": "SbbAccentButtonElement",
36566
+ "description": "It displays a button enhanced with the SBB Design in the 'accent' variant, which will behave as a link.",
36567
+ "name": "SbbAccentButtonLinkElement",
36568
36568
  "cssProperties": [
36569
36569
  {
36570
36570
  "description": "The delay before the loading animation starts, when setting the button into loading state.",
@@ -36574,7 +36574,7 @@
36574
36574
  ],
36575
36575
  "slots": [
36576
36576
  {
36577
- "description": "Use the unnamed slot to add content to the accent-button.",
36577
+ "description": "Use the unnamed slot to add content to the accent-button-link.",
36578
36578
  "name": ""
36579
36579
  },
36580
36580
  {
@@ -36592,7 +36592,7 @@
36592
36592
  "privacy": "public",
36593
36593
  "static": true,
36594
36594
  "readonly": true,
36595
- "default": "'sbb-accent-button'",
36595
+ "default": "'sbb-accent-button-link'",
36596
36596
  "inheritedFrom": {
36597
36597
  "name": "SbbElement",
36598
36598
  "module": "core/base-elements/element.js"
@@ -36789,479 +36789,151 @@
36789
36789
  },
36790
36790
  {
36791
36791
  "kind": "field",
36792
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
36792
+ "name": "href",
36793
36793
  "type": {
36794
- "text": "array"
36794
+ "text": "string"
36795
36795
  },
36796
- "privacy": "private",
36797
- "readonly": true,
36798
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
36796
+ "privacy": "public",
36797
+ "default": "''",
36798
+ "description": "The href value you want to link to.",
36799
+ "attribute": "href",
36800
+ "reflects": true,
36799
36801
  "inheritedFrom": {
36800
- "name": "SbbButtonBaseElement",
36801
- "module": "core/base-elements/button-base-element.js"
36802
+ "name": "SbbLinkBaseElement",
36803
+ "module": "core/base-elements/link-base-element.js"
36802
36804
  }
36803
36805
  },
36804
36806
  {
36805
36807
  "kind": "field",
36806
- "name": "value",
36808
+ "name": "target",
36807
36809
  "type": {
36808
- "text": "string"
36810
+ "text": "LinkTargetType | string"
36809
36811
  },
36810
36812
  "privacy": "public",
36811
36813
  "default": "''",
36812
- "description": "Value of the form element.",
36813
- "attribute": "value",
36814
+ "description": "Where to display the linked URL.",
36815
+ "attribute": "target",
36816
+ "reflects": true,
36814
36817
  "inheritedFrom": {
36815
- "name": "SbbButtonBaseElement",
36816
- "module": "core/base-elements/button-base-element.js"
36818
+ "name": "SbbLinkBaseElement",
36819
+ "module": "core/base-elements/link-base-element.js"
36817
36820
  }
36818
36821
  },
36819
36822
  {
36820
36823
  "kind": "field",
36821
- "name": "type",
36824
+ "name": "rel",
36825
+ "type": {
36826
+ "text": "string"
36827
+ },
36822
36828
  "privacy": "public",
36823
- "description": "The type attribute to use for the button.",
36824
- "default": "'button'",
36829
+ "default": "''",
36830
+ "description": "The relationship of the linked URL as space-separated link types.",
36831
+ "attribute": "rel",
36832
+ "reflects": true,
36833
+ "inheritedFrom": {
36834
+ "name": "SbbLinkBaseElement",
36835
+ "module": "core/base-elements/link-base-element.js"
36836
+ }
36837
+ },
36838
+ {
36839
+ "kind": "field",
36840
+ "name": "download",
36825
36841
  "type": {
36826
- "text": "SbbButtonType"
36842
+ "text": "boolean"
36827
36843
  },
36828
- "attribute": "type",
36844
+ "privacy": "public",
36845
+ "default": "false",
36846
+ "description": "Whether the browser will show the download dialog on click.",
36847
+ "attribute": "download",
36848
+ "reflects": true,
36829
36849
  "inheritedFrom": {
36830
- "name": "SbbButtonBaseElement",
36831
- "module": "core/base-elements/button-base-element.js"
36850
+ "name": "SbbLinkBaseElement",
36851
+ "module": "core/base-elements/link-base-element.js"
36832
36852
  }
36833
36853
  },
36834
36854
  {
36835
36855
  "kind": "field",
36836
- "name": "form",
36856
+ "name": "accessibilityLabel",
36837
36857
  "type": {
36838
- "text": "HTMLFormElement | null"
36858
+ "text": "string"
36839
36859
  },
36840
36860
  "privacy": "public",
36841
- "description": "The `<form>` element to associate the button with.",
36842
- "attribute": "form",
36861
+ "default": "''",
36862
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
36863
+ "attribute": "accessibility-label",
36843
36864
  "inheritedFrom": {
36844
- "name": "SbbButtonBaseElement",
36845
- "module": "core/base-elements/button-base-element.js"
36865
+ "name": "SbbLinkBaseElement",
36866
+ "module": "core/base-elements/link-base-element.js"
36846
36867
  }
36847
36868
  },
36848
36869
  {
36849
36870
  "kind": "field",
36850
- "name": "_formId",
36871
+ "name": "accessibilityCurrent",
36851
36872
  "type": {
36852
36873
  "text": "string"
36853
36874
  },
36854
- "privacy": "private",
36875
+ "privacy": "public",
36855
36876
  "default": "''",
36877
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
36878
+ "attribute": "accessibility-current",
36856
36879
  "inheritedFrom": {
36857
- "name": "SbbButtonBaseElement",
36858
- "module": "core/base-elements/button-base-element.js"
36880
+ "name": "SbbLinkBaseElement",
36881
+ "module": "core/base-elements/link-base-element.js"
36859
36882
  }
36860
36883
  },
36861
36884
  {
36862
36885
  "kind": "field",
36863
- "name": "_handleButtonClick",
36886
+ "name": "language",
36887
+ "privacy": "protected",
36888
+ "default": "new SbbLanguageController(this)",
36889
+ "inheritedFrom": {
36890
+ "name": "SbbLinkBaseElement",
36891
+ "module": "core/base-elements/link-base-element.js"
36892
+ }
36893
+ },
36894
+ {
36895
+ "kind": "field",
36896
+ "name": "anchorRole",
36897
+ "type": {
36898
+ "text": "string | null"
36899
+ },
36900
+ "privacy": "protected",
36901
+ "readonly": true,
36902
+ "default": "null",
36903
+ "inheritedFrom": {
36904
+ "name": "SbbLinkBaseElement",
36905
+ "module": "core/base-elements/link-base-element.js"
36906
+ }
36907
+ },
36908
+ {
36909
+ "kind": "field",
36910
+ "name": "_evaluateRelAttribute",
36864
36911
  "privacy": "private",
36865
36912
  "inheritedFrom": {
36866
- "name": "SbbButtonBaseElement",
36867
- "module": "core/base-elements/button-base-element.js"
36913
+ "name": "SbbLinkBaseElement",
36914
+ "module": "core/base-elements/link-base-element.js"
36868
36915
  }
36869
36916
  },
36870
36917
  {
36871
36918
  "kind": "method",
36872
- "name": "_requestSubmit",
36873
- "privacy": "private",
36919
+ "name": "renderLink",
36920
+ "privacy": "protected",
36874
36921
  "return": {
36875
36922
  "type": {
36876
- "text": "void"
36923
+ "text": "TemplateResult"
36877
36924
  }
36878
36925
  },
36879
36926
  "parameters": [
36880
36927
  {
36881
- "name": "form",
36928
+ "name": "renderContent",
36882
36929
  "type": {
36883
- "text": "HTMLFormElement"
36930
+ "text": "TemplateResult"
36884
36931
  }
36885
36932
  }
36886
36933
  ],
36887
36934
  "inheritedFrom": {
36888
- "name": "SbbButtonBaseElement",
36889
- "module": "core/base-elements/button-base-element.js"
36890
- }
36891
- },
36892
- {
36893
- "kind": "field",
36894
- "name": "_formKeyDown",
36895
- "privacy": "private",
36896
- "inheritedFrom": {
36897
- "name": "SbbButtonBaseElement",
36898
- "module": "core/base-elements/button-base-element.js"
36899
- }
36900
- },
36901
- {
36902
- "kind": "field",
36903
- "name": "formAssociated",
36904
- "type": {
36905
- "text": "boolean"
36906
- },
36907
- "privacy": "public",
36908
- "static": true,
36909
- "default": "true",
36910
- "inheritedFrom": {
36911
- "name": "SbbFormAssociatedMixin",
36912
- "module": "core/mixins/form-associated-mixin.js"
36913
- }
36914
- },
36915
- {
36916
- "kind": "field",
36917
- "name": "name",
36918
- "privacy": "public",
36919
- "description": "Name of the form element. Will be read from name attribute.",
36920
- "type": {
36921
- "text": "string"
36922
- },
36923
- "attribute": "name",
36924
- "inheritedFrom": {
36925
- "name": "SbbFormAssociatedMixin",
36926
- "module": "core/mixins/form-associated-mixin.js"
36927
- }
36928
- },
36929
- {
36930
- "kind": "field",
36931
- "name": "validity",
36932
- "type": {
36933
- "text": "ValidityState"
36934
- },
36935
- "privacy": "public",
36936
- "description": "Returns the ValidityState object for this element.",
36937
- "readonly": true,
36938
- "inheritedFrom": {
36939
- "name": "SbbFormAssociatedMixin",
36940
- "module": "core/mixins/form-associated-mixin.js"
36941
- }
36942
- },
36943
- {
36944
- "kind": "field",
36945
- "name": "validationMessage",
36946
- "type": {
36947
- "text": "string"
36948
- },
36949
- "privacy": "public",
36950
- "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.",
36951
- "readonly": true,
36952
- "inheritedFrom": {
36953
- "name": "SbbFormAssociatedMixin",
36954
- "module": "core/mixins/form-associated-mixin.js"
36955
- }
36956
- },
36957
- {
36958
- "kind": "field",
36959
- "name": "willValidate",
36960
- "type": {
36961
- "text": "boolean"
36962
- },
36963
- "privacy": "public",
36964
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
36965
- "readonly": true,
36966
- "inheritedFrom": {
36967
- "name": "SbbFormAssociatedMixin",
36968
- "module": "core/mixins/form-associated-mixin.js"
36969
- }
36970
- },
36971
- {
36972
- "kind": "field",
36973
- "name": "_validityStates",
36974
- "privacy": "private",
36975
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
36976
- "inheritedFrom": {
36977
- "name": "SbbFormAssociatedMixin",
36978
- "module": "core/mixins/form-associated-mixin.js"
36979
- }
36980
- },
36981
- {
36982
- "kind": "field",
36983
- "name": "formDisabled",
36984
- "type": {
36985
- "text": "boolean"
36986
- },
36987
- "privacy": "protected",
36988
- "default": "false",
36989
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
36990
- "inheritedFrom": {
36991
- "name": "SbbFormAssociatedMixin",
36992
- "module": "core/mixins/form-associated-mixin.js"
36993
- }
36994
- },
36995
- {
36996
- "kind": "method",
36997
- "name": "checkValidity",
36998
- "privacy": "public",
36999
- "return": {
37000
- "type": {
37001
- "text": "boolean"
37002
- }
37003
- },
37004
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
37005
- "inheritedFrom": {
37006
- "name": "SbbFormAssociatedMixin",
37007
- "module": "core/mixins/form-associated-mixin.js"
37008
- }
37009
- },
37010
- {
37011
- "kind": "method",
37012
- "name": "reportValidity",
37013
- "privacy": "public",
37014
- "return": {
37015
- "type": {
37016
- "text": "boolean"
37017
- }
37018
- },
37019
- "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.",
37020
- "inheritedFrom": {
37021
- "name": "SbbFormAssociatedMixin",
37022
- "module": "core/mixins/form-associated-mixin.js"
37023
- }
37024
- },
37025
- {
37026
- "kind": "method",
37027
- "name": "setCustomValidity",
37028
- "privacy": "public",
37029
- "return": {
37030
- "type": {
37031
- "text": "void"
37032
- }
37033
- },
37034
- "parameters": [
37035
- {
37036
- "name": "message",
37037
- "type": {
37038
- "text": "string"
37039
- }
37040
- }
37041
- ],
37042
- "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.",
37043
- "inheritedFrom": {
37044
- "name": "SbbFormAssociatedMixin",
37045
- "module": "core/mixins/form-associated-mixin.js"
37046
- }
37047
- },
37048
- {
37049
- "kind": "method",
37050
- "name": "_hasDisabledAncestor",
37051
- "privacy": "private",
37052
- "return": {
37053
- "type": {
37054
- "text": "boolean"
37055
- }
37056
- },
37057
- "inheritedFrom": {
37058
- "name": "SbbFormAssociatedMixin",
37059
- "module": "core/mixins/form-associated-mixin.js"
37060
- }
37061
- },
37062
- {
37063
- "kind": "method",
37064
- "name": "updateFormValue",
37065
- "privacy": "protected",
37066
- "return": {
37067
- "type": {
37068
- "text": "void"
37069
- }
37070
- },
37071
- "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",
37072
- "inheritedFrom": {
37073
- "name": "SbbFormAssociatedMixin",
37074
- "module": "core/mixins/form-associated-mixin.js"
37075
- }
37076
- },
37077
- {
37078
- "kind": "method",
37079
- "name": "formState",
37080
- "privacy": "protected",
37081
- "return": {
37082
- "type": {
37083
- "text": "FormRestoreState"
37084
- }
37085
- },
37086
- "inheritedFrom": {
37087
- "name": "SbbFormAssociatedMixin",
37088
- "module": "core/mixins/form-associated-mixin.js"
37089
- }
37090
- },
37091
- {
37092
- "kind": "method",
37093
- "name": "setValidityFlag",
37094
- "privacy": "protected",
37095
- "return": {
37096
- "type": {
37097
- "text": "void"
37098
- }
37099
- },
37100
- "parameters": [
37101
- {
37102
- "name": "flag",
37103
- "type": {
37104
- "text": "T"
37105
- }
37106
- },
37107
- {
37108
- "name": "message",
37109
- "type": {
37110
- "text": "string"
37111
- }
37112
- },
37113
- {
37114
- "name": "flagValue",
37115
- "optional": true,
37116
- "type": {
37117
- "text": "ValidityStateFlags[T]"
37118
- }
37119
- }
37120
- ],
37121
- "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).",
37122
- "inheritedFrom": {
37123
- "name": "SbbFormAssociatedMixin",
37124
- "module": "core/mixins/form-associated-mixin.js"
37125
- }
37126
- },
37127
- {
37128
- "kind": "method",
37129
- "name": "removeValidityFlag",
37130
- "privacy": "protected",
37131
- "return": {
37132
- "type": {
37133
- "text": "void"
37134
- }
37135
- },
37136
- "parameters": [
37137
- {
37138
- "name": "flag",
37139
- "type": {
37140
- "text": "T"
37141
- }
37142
- }
37143
- ],
37144
- "description": "Removes the validity state flag entry and updates validity state.",
37145
- "inheritedFrom": {
37146
- "name": "SbbFormAssociatedMixin",
37147
- "module": "core/mixins/form-associated-mixin.js"
37148
- }
37149
- },
37150
- {
37151
- "kind": "method",
37152
- "name": "validate",
37153
- "privacy": "protected",
37154
- "return": {
37155
- "type": {
37156
- "text": "void"
37157
- }
37158
- },
37159
- "description": "To be called whenever the current element needs to be validated.",
37160
- "inheritedFrom": {
37161
- "name": "SbbFormAssociatedMixin",
37162
- "module": "core/mixins/form-associated-mixin.js"
37163
- }
37164
- },
37165
- {
37166
- "kind": "method",
37167
- "name": "shouldValidate",
37168
- "privacy": "protected",
37169
- "return": {
37170
- "type": {
37171
- "text": "boolean"
37172
- }
37173
- },
37174
- "parameters": [
37175
- {
37176
- "name": "name",
37177
- "type": {
37178
- "text": "PropertyKey | undefined"
37179
- }
37180
- }
37181
- ],
37182
- "description": "Whether validation should be run on a property change with the given name.",
37183
- "inheritedFrom": {
37184
- "name": "SbbFormAssociatedMixin",
37185
- "module": "core/mixins/form-associated-mixin.js"
37186
- }
37187
- },
37188
- {
37189
- "kind": "method",
37190
- "name": "_setInternalValidity",
37191
- "privacy": "private",
37192
- "return": {
37193
- "type": {
37194
- "text": "void"
37195
- }
37196
- },
37197
- "inheritedFrom": {
37198
- "name": "SbbFormAssociatedMixin",
37199
- "module": "core/mixins/form-associated-mixin.js"
37200
- }
37201
- },
37202
- {
37203
- "kind": "field",
37204
- "name": "role",
37205
- "type": {
37206
- "text": "ElementInternals['role']"
37207
- },
37208
- "privacy": "public",
37209
- "static": true,
37210
- "readonly": true,
37211
- "default": "'button'",
37212
- "inheritedFrom": {
37213
- "name": "SbbButtonLikeBaseElement",
37214
- "module": "core/base-elements/button-base-element.js"
37215
- }
37216
- },
37217
- {
37218
- "kind": "field",
37219
- "name": "_preventScrollOnSpaceKeydown",
37220
- "privacy": "private",
37221
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
37222
- "parameters": [
37223
- {
37224
- "description": "The origin event.",
37225
- "name": "event"
37226
- }
37227
- ],
37228
- "inheritedFrom": {
37229
- "name": "SbbButtonLikeBaseElement",
37230
- "module": "core/base-elements/button-base-element.js"
37231
- }
37232
- },
37233
- {
37234
- "kind": "field",
37235
- "name": "_removeActiveMarker",
37236
- "privacy": "private",
37237
- "inheritedFrom": {
37238
- "name": "SbbButtonLikeBaseElement",
37239
- "module": "core/base-elements/button-base-element.js"
37240
- }
37241
- },
37242
- {
37243
- "kind": "field",
37244
- "name": "_dispatchClickEventOnSpaceKeyup",
37245
- "privacy": "private",
37246
- "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.",
37247
- "parameters": [
37248
- {
37249
- "description": "The origin event.",
37250
- "name": "event"
37251
- }
37252
- ],
37253
- "inheritedFrom": {
37254
- "name": "SbbButtonLikeBaseElement",
37255
- "module": "core/base-elements/button-base-element.js"
37256
- }
37257
- },
37258
- {
37259
- "kind": "field",
37260
- "name": "_dispatchClickEvent",
37261
- "privacy": "private",
37262
- "inheritedFrom": {
37263
- "name": "SbbButtonLikeBaseElement",
37264
- "module": "core/base-elements/button-base-element.js"
36935
+ "name": "SbbLinkBaseElement",
36936
+ "module": "core/base-elements/link-base-element.js"
37265
36937
  }
37266
36938
  },
37267
36939
  {
@@ -37416,15 +37088,19 @@
37416
37088
  "module": "button/common.js"
37417
37089
  },
37418
37090
  {
37419
- "name": "SbbDisabledTabIndexActionMixin",
37091
+ "name": "SbbDisabledInteractiveMixin",
37092
+ "module": "core/mixins.js"
37093
+ },
37094
+ {
37095
+ "name": "SbbDisabledMixin",
37420
37096
  "module": "core/mixins.js"
37421
37097
  }
37422
37098
  ],
37423
37099
  "superclass": {
37424
- "name": "SbbButtonBaseElement",
37100
+ "name": "SbbLinkBaseElement",
37425
37101
  "module": "core/base-elements.js"
37426
37102
  },
37427
- "tagName": "sbb-accent-button",
37103
+ "tagName": "sbb-accent-button-link",
37428
37104
  "customElement": true,
37429
37105
  "attributes": [
37430
37106
  {
@@ -37434,518 +37110,874 @@
37434
37110
  },
37435
37111
  "description": "Size variant, either l, m or s.",
37436
37112
  "default": "'l' / 's' (lean)",
37437
- "fieldName": "size",
37113
+ "fieldName": "size",
37114
+ "inheritedFrom": {
37115
+ "name": "SbbButtonCommonElementMixin",
37116
+ "module": "button/common/button-common.js"
37117
+ }
37118
+ },
37119
+ {
37120
+ "name": "loading",
37121
+ "type": {
37122
+ "text": "boolean"
37123
+ },
37124
+ "default": "false",
37125
+ "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.",
37126
+ "fieldName": "loading",
37127
+ "inheritedFrom": {
37128
+ "name": "SbbButtonCommonElementMixin",
37129
+ "module": "button/common/button-common.js"
37130
+ }
37131
+ },
37132
+ {
37133
+ "name": "negative",
37134
+ "type": {
37135
+ "text": "boolean"
37136
+ },
37137
+ "default": "false",
37138
+ "description": "Negative coloring variant flag.",
37139
+ "fieldName": "negative",
37140
+ "inheritedFrom": {
37141
+ "name": "SbbNegativeMixin",
37142
+ "module": "core/mixins/negative-mixin.js"
37143
+ }
37144
+ },
37145
+ {
37146
+ "name": "icon-name",
37147
+ "type": {
37148
+ "text": "string"
37149
+ },
37150
+ "default": "''",
37151
+ "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.",
37152
+ "fieldName": "iconName",
37153
+ "inheritedFrom": {
37154
+ "name": "SbbIconNameMixin",
37155
+ "module": "icon/icon-name-mixin.js"
37156
+ }
37157
+ },
37158
+ {
37159
+ "name": "disabled-interactive",
37160
+ "type": {
37161
+ "text": "boolean"
37162
+ },
37163
+ "default": "false",
37164
+ "description": "Whether the button should be aria-disabled but stay interactive.",
37165
+ "fieldName": "disabledInteractive",
37166
+ "inheritedFrom": {
37167
+ "name": "SbbDisabledInteractiveMixin",
37168
+ "module": "core/mixins/disabled-mixin.js"
37169
+ }
37170
+ },
37171
+ {
37172
+ "name": "disabled",
37173
+ "description": "Whether the component is disabled.",
37174
+ "default": "false",
37175
+ "type": {
37176
+ "text": "boolean"
37177
+ },
37178
+ "fieldName": "disabled",
37179
+ "inheritedFrom": {
37180
+ "name": "SbbDisabledMixin",
37181
+ "module": "core/mixins/disabled-mixin.js"
37182
+ }
37183
+ },
37184
+ {
37185
+ "name": "href",
37186
+ "type": {
37187
+ "text": "string"
37188
+ },
37189
+ "default": "''",
37190
+ "description": "The href value you want to link to.",
37191
+ "fieldName": "href",
37192
+ "inheritedFrom": {
37193
+ "name": "SbbLinkBaseElement",
37194
+ "module": "core/base-elements/link-base-element.js"
37195
+ }
37196
+ },
37197
+ {
37198
+ "name": "target",
37199
+ "type": {
37200
+ "text": "LinkTargetType | string"
37201
+ },
37202
+ "default": "''",
37203
+ "description": "Where to display the linked URL.",
37204
+ "fieldName": "target",
37205
+ "inheritedFrom": {
37206
+ "name": "SbbLinkBaseElement",
37207
+ "module": "core/base-elements/link-base-element.js"
37208
+ }
37209
+ },
37210
+ {
37211
+ "name": "rel",
37212
+ "type": {
37213
+ "text": "string"
37214
+ },
37215
+ "default": "''",
37216
+ "description": "The relationship of the linked URL as space-separated link types.",
37217
+ "fieldName": "rel",
37218
+ "inheritedFrom": {
37219
+ "name": "SbbLinkBaseElement",
37220
+ "module": "core/base-elements/link-base-element.js"
37221
+ }
37222
+ },
37223
+ {
37224
+ "name": "download",
37225
+ "type": {
37226
+ "text": "boolean"
37227
+ },
37228
+ "default": "false",
37229
+ "description": "Whether the browser will show the download dialog on click.",
37230
+ "fieldName": "download",
37231
+ "inheritedFrom": {
37232
+ "name": "SbbLinkBaseElement",
37233
+ "module": "core/base-elements/link-base-element.js"
37234
+ }
37235
+ },
37236
+ {
37237
+ "name": "accessibility-label",
37238
+ "type": {
37239
+ "text": "string"
37240
+ },
37241
+ "default": "''",
37242
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
37243
+ "fieldName": "accessibilityLabel",
37244
+ "inheritedFrom": {
37245
+ "name": "SbbLinkBaseElement",
37246
+ "module": "core/base-elements/link-base-element.js"
37247
+ }
37248
+ },
37249
+ {
37250
+ "name": "accessibility-current",
37251
+ "type": {
37252
+ "text": "string"
37253
+ },
37254
+ "default": "''",
37255
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
37256
+ "fieldName": "accessibilityCurrent",
37257
+ "inheritedFrom": {
37258
+ "name": "SbbLinkBaseElement",
37259
+ "module": "core/base-elements/link-base-element.js"
37260
+ }
37261
+ }
37262
+ ]
37263
+ }
37264
+ ],
37265
+ "exports": [
37266
+ {
37267
+ "kind": "js",
37268
+ "name": "SbbAccentButtonLinkElement",
37269
+ "declaration": {
37270
+ "name": "SbbAccentButtonLinkElement",
37271
+ "module": "button/accent-button-link/accent-button-link.component.js"
37272
+ }
37273
+ }
37274
+ ]
37275
+ },
37276
+ {
37277
+ "kind": "javascript-module",
37278
+ "path": "button/accent-button/accent-button.component.js",
37279
+ "declarations": [
37280
+ {
37281
+ "kind": "class",
37282
+ "description": "It displays a button enhanced with the SBB Design in the 'accent' variant.",
37283
+ "name": "SbbAccentButtonElement",
37284
+ "cssProperties": [
37285
+ {
37286
+ "description": "The delay before the loading animation starts, when setting the button into loading state.",
37287
+ "name": "--sbb-button-loading-delay",
37288
+ "default": "300ms"
37289
+ }
37290
+ ],
37291
+ "slots": [
37292
+ {
37293
+ "description": "Use the unnamed slot to add content to the accent-button.",
37294
+ "name": ""
37295
+ },
37296
+ {
37297
+ "description": "Slot used to display the icon, if one is set.",
37298
+ "name": "icon"
37299
+ }
37300
+ ],
37301
+ "members": [
37302
+ {
37303
+ "kind": "field",
37304
+ "name": "elementName",
37305
+ "type": {
37306
+ "text": "string"
37307
+ },
37308
+ "privacy": "public",
37309
+ "static": true,
37310
+ "readonly": true,
37311
+ "default": "'sbb-accent-button'",
37312
+ "inheritedFrom": {
37313
+ "name": "SbbElement",
37314
+ "module": "core/base-elements/element.js"
37315
+ }
37316
+ },
37317
+ {
37318
+ "kind": "field",
37319
+ "name": "size",
37320
+ "type": {
37321
+ "text": "SbbButtonSize"
37322
+ },
37323
+ "privacy": "public",
37324
+ "description": "Size variant, either l, m or s.",
37325
+ "default": "'l' / 's' (lean)",
37326
+ "attribute": "size",
37327
+ "reflects": true,
37438
37328
  "inheritedFrom": {
37439
37329
  "name": "SbbButtonCommonElementMixin",
37440
37330
  "module": "button/common/button-common.js"
37441
37331
  }
37442
37332
  },
37443
37333
  {
37334
+ "kind": "field",
37444
37335
  "name": "loading",
37445
37336
  "type": {
37446
37337
  "text": "boolean"
37447
37338
  },
37339
+ "privacy": "public",
37448
37340
  "default": "false",
37449
37341
  "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.",
37450
- "fieldName": "loading",
37342
+ "attribute": "loading",
37343
+ "reflects": true,
37451
37344
  "inheritedFrom": {
37452
37345
  "name": "SbbButtonCommonElementMixin",
37453
37346
  "module": "button/common/button-common.js"
37454
37347
  }
37455
37348
  },
37456
37349
  {
37350
+ "kind": "method",
37351
+ "name": "renderTemplate",
37352
+ "privacy": "protected",
37353
+ "return": {
37354
+ "type": {
37355
+ "text": "TemplateResult"
37356
+ }
37357
+ },
37358
+ "description": "Override this method to render the component template.",
37359
+ "inheritedFrom": {
37360
+ "name": "SbbActionBaseElement",
37361
+ "module": "core/base-elements/action-base-element.js"
37362
+ }
37363
+ },
37364
+ {
37365
+ "kind": "field",
37457
37366
  "name": "negative",
37458
37367
  "type": {
37459
37368
  "text": "boolean"
37460
37369
  },
37370
+ "privacy": "public",
37461
37371
  "default": "false",
37462
37372
  "description": "Negative coloring variant flag.",
37463
- "fieldName": "negative",
37373
+ "attribute": "negative",
37374
+ "reflects": true,
37464
37375
  "inheritedFrom": {
37465
37376
  "name": "SbbNegativeMixin",
37466
37377
  "module": "core/mixins/negative-mixin.js"
37467
37378
  }
37468
37379
  },
37469
37380
  {
37470
- "name": "icon-name",
37381
+ "kind": "field",
37382
+ "name": "iconName",
37471
37383
  "type": {
37472
37384
  "text": "string"
37473
37385
  },
37386
+ "privacy": "public",
37474
37387
  "default": "''",
37475
37388
  "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.",
37476
- "fieldName": "iconName",
37389
+ "attribute": "icon-name",
37477
37390
  "inheritedFrom": {
37478
37391
  "name": "SbbIconNameMixin",
37479
37392
  "module": "icon/icon-name-mixin.js"
37480
37393
  }
37481
37394
  },
37482
37395
  {
37483
- "name": "disabled-interactive",
37396
+ "kind": "method",
37397
+ "name": "renderIconSlot",
37398
+ "privacy": "protected",
37399
+ "return": {
37400
+ "type": {
37401
+ "text": "TemplateResult"
37402
+ }
37403
+ },
37404
+ "parameters": [
37405
+ {
37406
+ "name": "classname",
37407
+ "optional": true,
37408
+ "type": {
37409
+ "text": "string"
37410
+ }
37411
+ }
37412
+ ],
37413
+ "inheritedFrom": {
37414
+ "name": "SbbIconNameMixin",
37415
+ "module": "icon/icon-name-mixin.js"
37416
+ }
37417
+ },
37418
+ {
37419
+ "kind": "method",
37420
+ "name": "renderIconName",
37421
+ "privacy": "protected",
37422
+ "return": {
37423
+ "type": {
37424
+ "text": "string"
37425
+ }
37426
+ },
37427
+ "inheritedFrom": {
37428
+ "name": "SbbIconNameMixin",
37429
+ "module": "icon/icon-name-mixin.js"
37430
+ }
37431
+ },
37432
+ {
37433
+ "kind": "method",
37434
+ "name": "_renderIconName",
37435
+ "privacy": "private",
37436
+ "return": {
37437
+ "type": {
37438
+ "text": "string"
37439
+ }
37440
+ },
37441
+ "inheritedFrom": {
37442
+ "name": "SbbIconNameMixin",
37443
+ "module": "icon/icon-name-mixin.js"
37444
+ }
37445
+ },
37446
+ {
37447
+ "kind": "field",
37448
+ "name": "disabledInteractive",
37484
37449
  "type": {
37485
37450
  "text": "boolean"
37486
37451
  },
37452
+ "privacy": "public",
37487
37453
  "default": "false",
37488
37454
  "description": "Whether the button should be aria-disabled but stay interactive.",
37489
- "fieldName": "disabledInteractive",
37455
+ "attribute": "disabled-interactive",
37456
+ "reflects": true,
37490
37457
  "inheritedFrom": {
37491
37458
  "name": "SbbDisabledInteractiveMixin",
37492
37459
  "module": "core/mixins/disabled-mixin.js"
37493
37460
  }
37494
37461
  },
37495
37462
  {
37463
+ "kind": "field",
37496
37464
  "name": "disabled",
37465
+ "privacy": "public",
37497
37466
  "description": "Whether the component is disabled.",
37498
37467
  "default": "false",
37499
37468
  "type": {
37500
37469
  "text": "boolean"
37501
37470
  },
37502
- "fieldName": "disabled",
37471
+ "attribute": "disabled",
37472
+ "reflects": true,
37473
+ "inheritedFrom": {
37474
+ "name": "SbbDisabledMixin",
37475
+ "module": "core/mixins/disabled-mixin.js"
37476
+ }
37477
+ },
37478
+ {
37479
+ "kind": "field",
37480
+ "name": "#disabled",
37481
+ "privacy": "private",
37482
+ "type": {
37483
+ "text": "boolean"
37484
+ },
37485
+ "default": "false",
37486
+ "inheritedFrom": {
37487
+ "name": "SbbDisabledMixin",
37488
+ "module": "core/mixins/disabled-mixin.js"
37489
+ }
37490
+ },
37491
+ {
37492
+ "kind": "method",
37493
+ "name": "isDisabledExternally",
37494
+ "privacy": "protected",
37495
+ "return": {
37496
+ "type": {
37497
+ "text": "boolean"
37498
+ }
37499
+ },
37500
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
37503
37501
  "inheritedFrom": {
37504
37502
  "name": "SbbDisabledMixin",
37505
37503
  "module": "core/mixins/disabled-mixin.js"
37506
37504
  }
37507
37505
  },
37508
37506
  {
37507
+ "kind": "field",
37508
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
37509
+ "type": {
37510
+ "text": "array"
37511
+ },
37512
+ "privacy": "private",
37513
+ "readonly": true,
37514
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
37515
+ "inheritedFrom": {
37516
+ "name": "SbbButtonBaseElement",
37517
+ "module": "core/base-elements/button-base-element.js"
37518
+ }
37519
+ },
37520
+ {
37521
+ "kind": "field",
37509
37522
  "name": "value",
37510
37523
  "type": {
37511
37524
  "text": "string"
37512
37525
  },
37526
+ "privacy": "public",
37513
37527
  "default": "''",
37514
37528
  "description": "Value of the form element.",
37515
- "fieldName": "value",
37529
+ "attribute": "value",
37516
37530
  "inheritedFrom": {
37517
37531
  "name": "SbbButtonBaseElement",
37518
37532
  "module": "core/base-elements/button-base-element.js"
37519
37533
  }
37520
37534
  },
37521
37535
  {
37536
+ "kind": "field",
37522
37537
  "name": "type",
37538
+ "privacy": "public",
37523
37539
  "description": "The type attribute to use for the button.",
37524
37540
  "default": "'button'",
37525
37541
  "type": {
37526
37542
  "text": "SbbButtonType"
37527
37543
  },
37528
- "fieldName": "type",
37544
+ "attribute": "type",
37529
37545
  "inheritedFrom": {
37530
37546
  "name": "SbbButtonBaseElement",
37531
37547
  "module": "core/base-elements/button-base-element.js"
37532
37548
  }
37533
37549
  },
37534
37550
  {
37551
+ "kind": "field",
37535
37552
  "name": "form",
37536
- "description": "The `<form>` element to associate the button with.",
37537
37553
  "type": {
37538
37554
  "text": "HTMLFormElement | null"
37539
37555
  },
37540
- "fieldName": "form",
37556
+ "privacy": "public",
37557
+ "description": "The `<form>` element to associate the button with.",
37558
+ "attribute": "form",
37541
37559
  "inheritedFrom": {
37542
37560
  "name": "SbbButtonBaseElement",
37543
37561
  "module": "core/base-elements/button-base-element.js"
37544
37562
  }
37545
37563
  },
37546
37564
  {
37547
- "name": "name",
37548
- "description": "Name of the form element. Will be read from name attribute.",
37565
+ "kind": "field",
37566
+ "name": "_formId",
37549
37567
  "type": {
37550
37568
  "text": "string"
37551
37569
  },
37552
- "fieldName": "name",
37570
+ "privacy": "private",
37571
+ "default": "''",
37553
37572
  "inheritedFrom": {
37554
- "name": "SbbFormAssociatedMixin",
37555
- "module": "core/mixins/form-associated-mixin.js"
37573
+ "name": "SbbButtonBaseElement",
37574
+ "module": "core/base-elements/button-base-element.js"
37556
37575
  }
37557
- }
37558
- ]
37559
- }
37560
- ],
37561
- "exports": [
37562
- {
37563
- "kind": "js",
37564
- "name": "SbbAccentButtonElement",
37565
- "declaration": {
37566
- "name": "SbbAccentButtonElement",
37567
- "module": "button/accent-button/accent-button.component.js"
37568
- }
37569
- }
37570
- ]
37571
- },
37572
- {
37573
- "kind": "javascript-module",
37574
- "path": "button/accent-button-link/accent-button-link.component.js",
37575
- "declarations": [
37576
- {
37577
- "kind": "class",
37578
- "description": "It displays a button enhanced with the SBB Design in the 'accent' variant, which will behave as a link.",
37579
- "name": "SbbAccentButtonLinkElement",
37580
- "cssProperties": [
37576
+ },
37581
37577
  {
37582
- "description": "The delay before the loading animation starts, when setting the button into loading state.",
37583
- "name": "--sbb-button-loading-delay",
37584
- "default": "300ms"
37585
- }
37586
- ],
37587
- "slots": [
37578
+ "kind": "field",
37579
+ "name": "_handleButtonClick",
37580
+ "privacy": "private",
37581
+ "inheritedFrom": {
37582
+ "name": "SbbButtonBaseElement",
37583
+ "module": "core/base-elements/button-base-element.js"
37584
+ }
37585
+ },
37588
37586
  {
37589
- "description": "Use the unnamed slot to add content to the accent-button-link.",
37590
- "name": ""
37587
+ "kind": "method",
37588
+ "name": "_requestSubmit",
37589
+ "privacy": "private",
37590
+ "return": {
37591
+ "type": {
37592
+ "text": "void"
37593
+ }
37594
+ },
37595
+ "parameters": [
37596
+ {
37597
+ "name": "form",
37598
+ "type": {
37599
+ "text": "HTMLFormElement"
37600
+ }
37601
+ }
37602
+ ],
37603
+ "inheritedFrom": {
37604
+ "name": "SbbButtonBaseElement",
37605
+ "module": "core/base-elements/button-base-element.js"
37606
+ }
37591
37607
  },
37592
37608
  {
37593
- "description": "Slot used to display the icon, if one is set.",
37594
- "name": "icon"
37595
- }
37596
- ],
37597
- "members": [
37609
+ "kind": "field",
37610
+ "name": "_formKeyDown",
37611
+ "privacy": "private",
37612
+ "inheritedFrom": {
37613
+ "name": "SbbButtonBaseElement",
37614
+ "module": "core/base-elements/button-base-element.js"
37615
+ }
37616
+ },
37617
+ {
37618
+ "kind": "field",
37619
+ "name": "formAssociated",
37620
+ "type": {
37621
+ "text": "boolean"
37622
+ },
37623
+ "privacy": "public",
37624
+ "static": true,
37625
+ "default": "true",
37626
+ "inheritedFrom": {
37627
+ "name": "SbbFormAssociatedMixin",
37628
+ "module": "core/mixins/form-associated-mixin.js"
37629
+ }
37630
+ },
37598
37631
  {
37599
37632
  "kind": "field",
37600
- "name": "elementName",
37633
+ "name": "name",
37634
+ "privacy": "public",
37635
+ "description": "Name of the form element. Will be read from name attribute.",
37601
37636
  "type": {
37602
37637
  "text": "string"
37603
37638
  },
37639
+ "attribute": "name",
37640
+ "inheritedFrom": {
37641
+ "name": "SbbFormAssociatedMixin",
37642
+ "module": "core/mixins/form-associated-mixin.js"
37643
+ }
37644
+ },
37645
+ {
37646
+ "kind": "field",
37647
+ "name": "validity",
37648
+ "type": {
37649
+ "text": "ValidityState"
37650
+ },
37604
37651
  "privacy": "public",
37605
- "static": true,
37652
+ "description": "Returns the ValidityState object for this element.",
37606
37653
  "readonly": true,
37607
- "default": "'sbb-accent-button-link'",
37608
37654
  "inheritedFrom": {
37609
- "name": "SbbElement",
37610
- "module": "core/base-elements/element.js"
37655
+ "name": "SbbFormAssociatedMixin",
37656
+ "module": "core/mixins/form-associated-mixin.js"
37611
37657
  }
37612
37658
  },
37613
37659
  {
37614
37660
  "kind": "field",
37615
- "name": "size",
37661
+ "name": "validationMessage",
37616
37662
  "type": {
37617
- "text": "SbbButtonSize"
37663
+ "text": "string"
37618
37664
  },
37619
37665
  "privacy": "public",
37620
- "description": "Size variant, either l, m or s.",
37621
- "default": "'l' / 's' (lean)",
37622
- "attribute": "size",
37623
- "reflects": true,
37666
+ "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.",
37667
+ "readonly": true,
37624
37668
  "inheritedFrom": {
37625
- "name": "SbbButtonCommonElementMixin",
37626
- "module": "button/common/button-common.js"
37669
+ "name": "SbbFormAssociatedMixin",
37670
+ "module": "core/mixins/form-associated-mixin.js"
37627
37671
  }
37628
37672
  },
37629
37673
  {
37630
37674
  "kind": "field",
37631
- "name": "loading",
37675
+ "name": "willValidate",
37632
37676
  "type": {
37633
37677
  "text": "boolean"
37634
37678
  },
37635
37679
  "privacy": "public",
37636
- "default": "false",
37637
- "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.",
37638
- "attribute": "loading",
37639
- "reflects": true,
37680
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
37681
+ "readonly": true,
37640
37682
  "inheritedFrom": {
37641
- "name": "SbbButtonCommonElementMixin",
37642
- "module": "button/common/button-common.js"
37683
+ "name": "SbbFormAssociatedMixin",
37684
+ "module": "core/mixins/form-associated-mixin.js"
37643
37685
  }
37644
37686
  },
37645
37687
  {
37646
- "kind": "method",
37647
- "name": "renderTemplate",
37648
- "privacy": "protected",
37649
- "return": {
37650
- "type": {
37651
- "text": "TemplateResult"
37652
- }
37653
- },
37654
- "description": "Override this method to render the component template.",
37688
+ "kind": "field",
37689
+ "name": "_validityStates",
37690
+ "privacy": "private",
37691
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
37655
37692
  "inheritedFrom": {
37656
- "name": "SbbActionBaseElement",
37657
- "module": "core/base-elements/action-base-element.js"
37693
+ "name": "SbbFormAssociatedMixin",
37694
+ "module": "core/mixins/form-associated-mixin.js"
37658
37695
  }
37659
37696
  },
37660
37697
  {
37661
37698
  "kind": "field",
37662
- "name": "negative",
37699
+ "name": "formDisabled",
37663
37700
  "type": {
37664
37701
  "text": "boolean"
37665
37702
  },
37666
- "privacy": "public",
37703
+ "privacy": "protected",
37667
37704
  "default": "false",
37668
- "description": "Negative coloring variant flag.",
37669
- "attribute": "negative",
37670
- "reflects": true,
37705
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
37671
37706
  "inheritedFrom": {
37672
- "name": "SbbNegativeMixin",
37673
- "module": "core/mixins/negative-mixin.js"
37707
+ "name": "SbbFormAssociatedMixin",
37708
+ "module": "core/mixins/form-associated-mixin.js"
37674
37709
  }
37675
37710
  },
37676
37711
  {
37677
- "kind": "field",
37678
- "name": "iconName",
37679
- "type": {
37680
- "text": "string"
37712
+ "kind": "method",
37713
+ "name": "checkValidity",
37714
+ "privacy": "public",
37715
+ "return": {
37716
+ "type": {
37717
+ "text": "boolean"
37718
+ }
37681
37719
  },
37720
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
37721
+ "inheritedFrom": {
37722
+ "name": "SbbFormAssociatedMixin",
37723
+ "module": "core/mixins/form-associated-mixin.js"
37724
+ }
37725
+ },
37726
+ {
37727
+ "kind": "method",
37728
+ "name": "reportValidity",
37682
37729
  "privacy": "public",
37683
- "default": "''",
37684
- "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.",
37685
- "attribute": "icon-name",
37730
+ "return": {
37731
+ "type": {
37732
+ "text": "boolean"
37733
+ }
37734
+ },
37735
+ "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.",
37686
37736
  "inheritedFrom": {
37687
- "name": "SbbIconNameMixin",
37688
- "module": "icon/icon-name-mixin.js"
37737
+ "name": "SbbFormAssociatedMixin",
37738
+ "module": "core/mixins/form-associated-mixin.js"
37689
37739
  }
37690
37740
  },
37691
37741
  {
37692
37742
  "kind": "method",
37693
- "name": "renderIconSlot",
37694
- "privacy": "protected",
37743
+ "name": "setCustomValidity",
37744
+ "privacy": "public",
37695
37745
  "return": {
37696
37746
  "type": {
37697
- "text": "TemplateResult"
37747
+ "text": "void"
37698
37748
  }
37699
37749
  },
37700
37750
  "parameters": [
37701
37751
  {
37702
- "name": "classname",
37703
- "optional": true,
37752
+ "name": "message",
37704
37753
  "type": {
37705
37754
  "text": "string"
37706
37755
  }
37707
37756
  }
37708
37757
  ],
37758
+ "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.",
37709
37759
  "inheritedFrom": {
37710
- "name": "SbbIconNameMixin",
37711
- "module": "icon/icon-name-mixin.js"
37760
+ "name": "SbbFormAssociatedMixin",
37761
+ "module": "core/mixins/form-associated-mixin.js"
37712
37762
  }
37713
37763
  },
37714
37764
  {
37715
37765
  "kind": "method",
37716
- "name": "renderIconName",
37717
- "privacy": "protected",
37766
+ "name": "_hasDisabledAncestor",
37767
+ "privacy": "private",
37718
37768
  "return": {
37719
37769
  "type": {
37720
- "text": "string"
37770
+ "text": "boolean"
37721
37771
  }
37722
37772
  },
37723
37773
  "inheritedFrom": {
37724
- "name": "SbbIconNameMixin",
37725
- "module": "icon/icon-name-mixin.js"
37774
+ "name": "SbbFormAssociatedMixin",
37775
+ "module": "core/mixins/form-associated-mixin.js"
37726
37776
  }
37727
37777
  },
37728
37778
  {
37729
37779
  "kind": "method",
37730
- "name": "_renderIconName",
37731
- "privacy": "private",
37780
+ "name": "updateFormValue",
37781
+ "privacy": "protected",
37732
37782
  "return": {
37733
37783
  "type": {
37734
- "text": "string"
37784
+ "text": "void"
37735
37785
  }
37736
37786
  },
37787
+ "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",
37737
37788
  "inheritedFrom": {
37738
- "name": "SbbIconNameMixin",
37739
- "module": "icon/icon-name-mixin.js"
37740
- }
37741
- },
37742
- {
37743
- "kind": "field",
37744
- "name": "disabledInteractive",
37745
- "type": {
37746
- "text": "boolean"
37747
- },
37748
- "privacy": "public",
37749
- "default": "false",
37750
- "description": "Whether the button should be aria-disabled but stay interactive.",
37751
- "attribute": "disabled-interactive",
37752
- "reflects": true,
37753
- "inheritedFrom": {
37754
- "name": "SbbDisabledInteractiveMixin",
37755
- "module": "core/mixins/disabled-mixin.js"
37756
- }
37757
- },
37758
- {
37759
- "kind": "field",
37760
- "name": "disabled",
37761
- "privacy": "public",
37762
- "description": "Whether the component is disabled.",
37763
- "default": "false",
37764
- "type": {
37765
- "text": "boolean"
37766
- },
37767
- "attribute": "disabled",
37768
- "reflects": true,
37769
- "inheritedFrom": {
37770
- "name": "SbbDisabledMixin",
37771
- "module": "core/mixins/disabled-mixin.js"
37772
- }
37773
- },
37774
- {
37775
- "kind": "field",
37776
- "name": "#disabled",
37777
- "privacy": "private",
37778
- "type": {
37779
- "text": "boolean"
37780
- },
37781
- "default": "false",
37782
- "inheritedFrom": {
37783
- "name": "SbbDisabledMixin",
37784
- "module": "core/mixins/disabled-mixin.js"
37789
+ "name": "SbbFormAssociatedMixin",
37790
+ "module": "core/mixins/form-associated-mixin.js"
37785
37791
  }
37786
37792
  },
37787
37793
  {
37788
37794
  "kind": "method",
37789
- "name": "isDisabledExternally",
37795
+ "name": "formState",
37790
37796
  "privacy": "protected",
37791
37797
  "return": {
37792
37798
  "type": {
37793
- "text": "boolean"
37799
+ "text": "FormRestoreState"
37794
37800
  }
37795
37801
  },
37796
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
37797
37802
  "inheritedFrom": {
37798
- "name": "SbbDisabledMixin",
37799
- "module": "core/mixins/disabled-mixin.js"
37803
+ "name": "SbbFormAssociatedMixin",
37804
+ "module": "core/mixins/form-associated-mixin.js"
37800
37805
  }
37801
37806
  },
37802
37807
  {
37803
- "kind": "field",
37804
- "name": "href",
37805
- "type": {
37806
- "text": "string"
37808
+ "kind": "method",
37809
+ "name": "setValidityFlag",
37810
+ "privacy": "protected",
37811
+ "return": {
37812
+ "type": {
37813
+ "text": "void"
37814
+ }
37807
37815
  },
37808
- "privacy": "public",
37809
- "default": "''",
37810
- "description": "The href value you want to link to.",
37811
- "attribute": "href",
37812
- "reflects": true,
37816
+ "parameters": [
37817
+ {
37818
+ "name": "flag",
37819
+ "type": {
37820
+ "text": "T"
37821
+ }
37822
+ },
37823
+ {
37824
+ "name": "message",
37825
+ "type": {
37826
+ "text": "string"
37827
+ }
37828
+ },
37829
+ {
37830
+ "name": "flagValue",
37831
+ "optional": true,
37832
+ "type": {
37833
+ "text": "ValidityStateFlags[T]"
37834
+ }
37835
+ }
37836
+ ],
37837
+ "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).",
37813
37838
  "inheritedFrom": {
37814
- "name": "SbbLinkBaseElement",
37815
- "module": "core/base-elements/link-base-element.js"
37839
+ "name": "SbbFormAssociatedMixin",
37840
+ "module": "core/mixins/form-associated-mixin.js"
37816
37841
  }
37817
37842
  },
37818
37843
  {
37819
- "kind": "field",
37820
- "name": "target",
37821
- "type": {
37822
- "text": "LinkTargetType | string"
37844
+ "kind": "method",
37845
+ "name": "removeValidityFlag",
37846
+ "privacy": "protected",
37847
+ "return": {
37848
+ "type": {
37849
+ "text": "void"
37850
+ }
37823
37851
  },
37824
- "privacy": "public",
37825
- "default": "''",
37826
- "description": "Where to display the linked URL.",
37827
- "attribute": "target",
37828
- "reflects": true,
37852
+ "parameters": [
37853
+ {
37854
+ "name": "flag",
37855
+ "type": {
37856
+ "text": "T"
37857
+ }
37858
+ }
37859
+ ],
37860
+ "description": "Removes the validity state flag entry and updates validity state.",
37829
37861
  "inheritedFrom": {
37830
- "name": "SbbLinkBaseElement",
37831
- "module": "core/base-elements/link-base-element.js"
37862
+ "name": "SbbFormAssociatedMixin",
37863
+ "module": "core/mixins/form-associated-mixin.js"
37832
37864
  }
37833
37865
  },
37834
37866
  {
37835
- "kind": "field",
37836
- "name": "rel",
37837
- "type": {
37838
- "text": "string"
37867
+ "kind": "method",
37868
+ "name": "validate",
37869
+ "privacy": "protected",
37870
+ "return": {
37871
+ "type": {
37872
+ "text": "void"
37873
+ }
37839
37874
  },
37840
- "privacy": "public",
37841
- "default": "''",
37842
- "description": "The relationship of the linked URL as space-separated link types.",
37843
- "attribute": "rel",
37844
- "reflects": true,
37875
+ "description": "To be called whenever the current element needs to be validated.",
37845
37876
  "inheritedFrom": {
37846
- "name": "SbbLinkBaseElement",
37847
- "module": "core/base-elements/link-base-element.js"
37877
+ "name": "SbbFormAssociatedMixin",
37878
+ "module": "core/mixins/form-associated-mixin.js"
37848
37879
  }
37849
37880
  },
37850
37881
  {
37851
- "kind": "field",
37852
- "name": "download",
37853
- "type": {
37854
- "text": "boolean"
37882
+ "kind": "method",
37883
+ "name": "shouldValidate",
37884
+ "privacy": "protected",
37885
+ "return": {
37886
+ "type": {
37887
+ "text": "boolean"
37888
+ }
37855
37889
  },
37856
- "privacy": "public",
37857
- "default": "false",
37858
- "description": "Whether the browser will show the download dialog on click.",
37859
- "attribute": "download",
37860
- "reflects": true,
37890
+ "parameters": [
37891
+ {
37892
+ "name": "name",
37893
+ "type": {
37894
+ "text": "PropertyKey | undefined"
37895
+ }
37896
+ }
37897
+ ],
37898
+ "description": "Whether validation should be run on a property change with the given name.",
37861
37899
  "inheritedFrom": {
37862
- "name": "SbbLinkBaseElement",
37863
- "module": "core/base-elements/link-base-element.js"
37900
+ "name": "SbbFormAssociatedMixin",
37901
+ "module": "core/mixins/form-associated-mixin.js"
37864
37902
  }
37865
37903
  },
37866
37904
  {
37867
- "kind": "field",
37868
- "name": "accessibilityLabel",
37869
- "type": {
37870
- "text": "string"
37905
+ "kind": "method",
37906
+ "name": "_setInternalValidity",
37907
+ "privacy": "private",
37908
+ "return": {
37909
+ "type": {
37910
+ "text": "void"
37911
+ }
37871
37912
  },
37872
- "privacy": "public",
37873
- "default": "''",
37874
- "description": "This will be forwarded as aria-label to the inner anchor element.",
37875
- "attribute": "accessibility-label",
37876
37913
  "inheritedFrom": {
37877
- "name": "SbbLinkBaseElement",
37878
- "module": "core/base-elements/link-base-element.js"
37914
+ "name": "SbbFormAssociatedMixin",
37915
+ "module": "core/mixins/form-associated-mixin.js"
37879
37916
  }
37880
37917
  },
37881
37918
  {
37882
37919
  "kind": "field",
37883
- "name": "accessibilityCurrent",
37920
+ "name": "role",
37884
37921
  "type": {
37885
- "text": "string"
37922
+ "text": "ElementInternals['role']"
37886
37923
  },
37887
37924
  "privacy": "public",
37888
- "default": "''",
37889
- "description": "This will be forwarded as aria-current to the inner anchor element.",
37890
- "attribute": "accessibility-current",
37925
+ "static": true,
37926
+ "readonly": true,
37927
+ "default": "'button'",
37891
37928
  "inheritedFrom": {
37892
- "name": "SbbLinkBaseElement",
37893
- "module": "core/base-elements/link-base-element.js"
37929
+ "name": "SbbButtonLikeBaseElement",
37930
+ "module": "core/base-elements/button-base-element.js"
37894
37931
  }
37895
37932
  },
37896
37933
  {
37897
37934
  "kind": "field",
37898
- "name": "language",
37899
- "privacy": "protected",
37900
- "default": "new SbbLanguageController(this)",
37935
+ "name": "_preventScrollOnSpaceKeydown",
37936
+ "privacy": "private",
37937
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
37938
+ "parameters": [
37939
+ {
37940
+ "description": "The origin event.",
37941
+ "name": "event"
37942
+ }
37943
+ ],
37901
37944
  "inheritedFrom": {
37902
- "name": "SbbLinkBaseElement",
37903
- "module": "core/base-elements/link-base-element.js"
37945
+ "name": "SbbButtonLikeBaseElement",
37946
+ "module": "core/base-elements/button-base-element.js"
37904
37947
  }
37905
37948
  },
37906
37949
  {
37907
37950
  "kind": "field",
37908
- "name": "anchorRole",
37909
- "type": {
37910
- "text": "string | null"
37911
- },
37912
- "privacy": "protected",
37913
- "readonly": true,
37914
- "default": "null",
37951
+ "name": "_removeActiveMarker",
37952
+ "privacy": "private",
37915
37953
  "inheritedFrom": {
37916
- "name": "SbbLinkBaseElement",
37917
- "module": "core/base-elements/link-base-element.js"
37954
+ "name": "SbbButtonLikeBaseElement",
37955
+ "module": "core/base-elements/button-base-element.js"
37918
37956
  }
37919
37957
  },
37920
37958
  {
37921
37959
  "kind": "field",
37922
- "name": "_evaluateRelAttribute",
37960
+ "name": "_dispatchClickEventOnSpaceKeyup",
37923
37961
  "privacy": "private",
37924
- "inheritedFrom": {
37925
- "name": "SbbLinkBaseElement",
37926
- "module": "core/base-elements/link-base-element.js"
37927
- }
37928
- },
37929
- {
37930
- "kind": "method",
37931
- "name": "renderLink",
37932
- "privacy": "protected",
37933
- "return": {
37934
- "type": {
37935
- "text": "TemplateResult"
37936
- }
37937
- },
37962
+ "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.",
37938
37963
  "parameters": [
37939
37964
  {
37940
- "name": "renderContent",
37941
- "type": {
37942
- "text": "TemplateResult"
37943
- }
37965
+ "description": "The origin event.",
37966
+ "name": "event"
37944
37967
  }
37945
37968
  ],
37946
37969
  "inheritedFrom": {
37947
- "name": "SbbLinkBaseElement",
37948
- "module": "core/base-elements/link-base-element.js"
37970
+ "name": "SbbButtonLikeBaseElement",
37971
+ "module": "core/base-elements/button-base-element.js"
37972
+ }
37973
+ },
37974
+ {
37975
+ "kind": "field",
37976
+ "name": "_dispatchClickEvent",
37977
+ "privacy": "private",
37978
+ "inheritedFrom": {
37979
+ "name": "SbbButtonLikeBaseElement",
37980
+ "module": "core/base-elements/button-base-element.js"
37949
37981
  }
37950
37982
  },
37951
37983
  {
@@ -38100,19 +38132,15 @@
38100
38132
  "module": "button/common.js"
38101
38133
  },
38102
38134
  {
38103
- "name": "SbbDisabledInteractiveMixin",
38104
- "module": "core/mixins.js"
38105
- },
38106
- {
38107
- "name": "SbbDisabledMixin",
38135
+ "name": "SbbDisabledTabIndexActionMixin",
38108
38136
  "module": "core/mixins.js"
38109
38137
  }
38110
38138
  ],
38111
38139
  "superclass": {
38112
- "name": "SbbLinkBaseElement",
38140
+ "name": "SbbButtonBaseElement",
38113
38141
  "module": "core/base-elements.js"
38114
38142
  },
38115
- "tagName": "sbb-accent-button-link",
38143
+ "tagName": "sbb-accent-button",
38116
38144
  "customElement": true,
38117
38145
  "attributes": [
38118
38146
  {
@@ -38194,81 +38222,53 @@
38194
38222
  }
38195
38223
  },
38196
38224
  {
38197
- "name": "href",
38198
- "type": {
38199
- "text": "string"
38200
- },
38201
- "default": "''",
38202
- "description": "The href value you want to link to.",
38203
- "fieldName": "href",
38204
- "inheritedFrom": {
38205
- "name": "SbbLinkBaseElement",
38206
- "module": "core/base-elements/link-base-element.js"
38207
- }
38208
- },
38209
- {
38210
- "name": "target",
38211
- "type": {
38212
- "text": "LinkTargetType | string"
38213
- },
38214
- "default": "''",
38215
- "description": "Where to display the linked URL.",
38216
- "fieldName": "target",
38217
- "inheritedFrom": {
38218
- "name": "SbbLinkBaseElement",
38219
- "module": "core/base-elements/link-base-element.js"
38220
- }
38221
- },
38222
- {
38223
- "name": "rel",
38225
+ "name": "value",
38224
38226
  "type": {
38225
38227
  "text": "string"
38226
38228
  },
38227
38229
  "default": "''",
38228
- "description": "The relationship of the linked URL as space-separated link types.",
38229
- "fieldName": "rel",
38230
+ "description": "Value of the form element.",
38231
+ "fieldName": "value",
38230
38232
  "inheritedFrom": {
38231
- "name": "SbbLinkBaseElement",
38232
- "module": "core/base-elements/link-base-element.js"
38233
+ "name": "SbbButtonBaseElement",
38234
+ "module": "core/base-elements/button-base-element.js"
38233
38235
  }
38234
38236
  },
38235
38237
  {
38236
- "name": "download",
38238
+ "name": "type",
38239
+ "description": "The type attribute to use for the button.",
38240
+ "default": "'button'",
38237
38241
  "type": {
38238
- "text": "boolean"
38242
+ "text": "SbbButtonType"
38239
38243
  },
38240
- "default": "false",
38241
- "description": "Whether the browser will show the download dialog on click.",
38242
- "fieldName": "download",
38244
+ "fieldName": "type",
38243
38245
  "inheritedFrom": {
38244
- "name": "SbbLinkBaseElement",
38245
- "module": "core/base-elements/link-base-element.js"
38246
+ "name": "SbbButtonBaseElement",
38247
+ "module": "core/base-elements/button-base-element.js"
38246
38248
  }
38247
38249
  },
38248
38250
  {
38249
- "name": "accessibility-label",
38251
+ "name": "form",
38252
+ "description": "The `<form>` element to associate the button with.",
38250
38253
  "type": {
38251
- "text": "string"
38254
+ "text": "HTMLFormElement | null"
38252
38255
  },
38253
- "default": "''",
38254
- "description": "This will be forwarded as aria-label to the inner anchor element.",
38255
- "fieldName": "accessibilityLabel",
38256
+ "fieldName": "form",
38256
38257
  "inheritedFrom": {
38257
- "name": "SbbLinkBaseElement",
38258
- "module": "core/base-elements/link-base-element.js"
38258
+ "name": "SbbButtonBaseElement",
38259
+ "module": "core/base-elements/button-base-element.js"
38259
38260
  }
38260
38261
  },
38261
38262
  {
38262
- "name": "accessibility-current",
38263
+ "name": "name",
38264
+ "description": "Name of the form element. Will be read from name attribute.",
38263
38265
  "type": {
38264
38266
  "text": "string"
38265
38267
  },
38266
- "default": "''",
38267
- "description": "This will be forwarded as aria-current to the inner anchor element.",
38268
- "fieldName": "accessibilityCurrent",
38268
+ "fieldName": "name",
38269
38269
  "inheritedFrom": {
38270
- "name": "SbbLinkBaseElement",
38271
- "module": "core/base-elements/link-base-element.js"
38270
+ "name": "SbbFormAssociatedMixin",
38271
+ "module": "core/mixins/form-associated-mixin.js"
38272
38272
  }
38273
38273
  }
38274
38274
  ]
@@ -38277,10 +38277,10 @@
38277
38277
  "exports": [
38278
38278
  {
38279
38279
  "kind": "js",
38280
- "name": "SbbAccentButtonLinkElement",
38280
+ "name": "SbbAccentButtonElement",
38281
38281
  "declaration": {
38282
- "name": "SbbAccentButtonLinkElement",
38283
- "module": "button/accent-button-link/accent-button-link.component.js"
38282
+ "name": "SbbAccentButtonElement",
38283
+ "module": "button/accent-button/accent-button.component.js"
38284
38284
  }
38285
38285
  }
38286
38286
  ]