@sbb-esta/lyne-elements-dev 5.0.0-next-dev.1776413392 → 5.0.0-next-dev.1776477139

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 +1353 -1353
  2. package/package.json +2 -2
@@ -110893,22 +110893,12 @@
110893
110893
  },
110894
110894
  {
110895
110895
  "kind": "javascript-module",
110896
- "path": "form-field/form-field-text-counter/form-field-text-counter.component.js",
110896
+ "path": "form-field/form-field-clear/form-field-clear.component.js",
110897
110897
  "declarations": [
110898
110898
  {
110899
110899
  "kind": "class",
110900
- "description": "It displays the remaining characters count for input/textarea elements with a configured\nmaxlength property in the `sbb-form-field`.\nThe component automatically uses the form field's inputElement and displays the remaining character count.\nIf the input is disabled, readonly or an `sbb-error` is present, the output is suppressed.",
110901
- "name": "SbbFormFieldTextCounterElement",
110902
- "slots": [
110903
- {
110904
- "description": "Use the unnamed slot to display a custom description text after the counter.",
110905
- "name": "",
110906
- "inheritedFrom": {
110907
- "name": "SbbHintElement",
110908
- "module": "form-field/hint/hint.component.js"
110909
- }
110910
- }
110911
- ],
110900
+ "description": "Combined with `sbb-form-field`, it displays a button which clears the input value.",
110901
+ "name": "SbbFormFieldClearElement",
110912
110902
  "members": [
110913
110903
  {
110914
110904
  "kind": "field",
@@ -110919,11 +110909,11 @@
110919
110909
  "privacy": "public",
110920
110910
  "static": true,
110921
110911
  "readonly": true,
110922
- "default": "'sbb-form-field-text-counter'",
110923
110912
  "inheritedFrom": {
110924
110913
  "name": "SbbElement",
110925
110914
  "module": "core/base-elements/element.js"
110926
- }
110915
+ },
110916
+ "default": "'sbb-form-field-clear'"
110927
110917
  },
110928
110918
  {
110929
110919
  "kind": "field",
@@ -110933,20 +110923,19 @@
110933
110923
  },
110934
110924
  "privacy": "public",
110935
110925
  "static": true,
110936
- "default": "[SbbScreenReaderOnlyElement]",
110937
110926
  "inheritedFrom": {
110938
110927
  "name": "SbbElement",
110939
110928
  "module": "core/base-elements/element.js"
110940
- }
110929
+ },
110930
+ "default": "[SbbIconElement]"
110941
110931
  },
110942
110932
  {
110943
110933
  "kind": "field",
110944
- "name": "_remainingCharacters",
110934
+ "name": "_formField",
110945
110935
  "type": {
110946
- "text": "number"
110936
+ "text": "SbbFormFieldElement | null | undefined"
110947
110937
  },
110948
- "privacy": "private",
110949
- "default": "0"
110938
+ "privacy": "private"
110950
110939
  },
110951
110940
  {
110952
110941
  "kind": "field",
@@ -110954,33 +110943,29 @@
110954
110943
  "privacy": "private",
110955
110944
  "default": "new SbbLanguageController(this)"
110956
110945
  },
110957
- {
110958
- "kind": "field",
110959
- "name": "_abortController",
110960
- "type": {
110961
- "text": "AbortController | null"
110962
- },
110963
- "privacy": "private",
110964
- "default": "null"
110965
- },
110966
110946
  {
110967
110947
  "kind": "method",
110968
- "name": "_onInputUpdate",
110948
+ "name": "_handleClick",
110969
110949
  "privacy": "private",
110970
110950
  "return": {
110971
110951
  "type": {
110972
- "text": "void"
110952
+ "text": "Promise<void>"
110973
110953
  }
110974
110954
  }
110975
110955
  },
110976
110956
  {
110977
110957
  "kind": "method",
110978
- "name": "_infoText",
110979
- "privacy": "private",
110958
+ "name": "renderTemplate",
110959
+ "privacy": "protected",
110980
110960
  "return": {
110981
110961
  "type": {
110982
- "text": "string"
110962
+ "text": "TemplateResult"
110983
110963
  }
110964
+ },
110965
+ "description": "Override this method to render the component template.",
110966
+ "inheritedFrom": {
110967
+ "name": "SbbActionBaseElement",
110968
+ "module": "core/base-elements/action-base-element.js"
110984
110969
  }
110985
110970
  },
110986
110971
  {
@@ -111001,151 +110986,243 @@
111001
110986
  },
111002
110987
  {
111003
110988
  "kind": "field",
111004
- "name": "formField",
110989
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
111005
110990
  "type": {
111006
- "text": "SbbFormFieldElement | null"
110991
+ "text": "array"
111007
110992
  },
111008
- "privacy": "protected",
111009
- "default": "null",
110993
+ "privacy": "private",
110994
+ "readonly": true,
110995
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
111010
110996
  "inheritedFrom": {
111011
- "name": "SbbHintElement",
111012
- "module": "form-field/hint/hint.component.js"
110997
+ "name": "SbbButtonBaseElement",
110998
+ "module": "core/base-elements/button-base-element.js"
111013
110999
  }
111014
111000
  },
111015
111001
  {
111016
111002
  "kind": "field",
111017
- "name": "['_$sbbElement$']",
111003
+ "name": "value",
111018
111004
  "type": {
111019
- "text": "boolean"
111005
+ "text": "string"
111020
111006
  },
111021
111007
  "privacy": "public",
111022
- "static": true,
111023
- "default": "true",
111024
111008
  "inheritedFrom": {
111025
- "name": "SbbElement",
111026
- "module": "core/base-elements/element.js"
111009
+ "name": "SbbButtonBaseElement",
111010
+ "module": "core/base-elements/button-base-element.js"
111011
+ },
111012
+ "default": "''",
111013
+ "description": "Value of the form element.",
111014
+ "attribute": "value"
111015
+ },
111016
+ {
111017
+ "kind": "field",
111018
+ "name": "type",
111019
+ "privacy": "public",
111020
+ "description": "The type attribute to use for the button.",
111021
+ "default": "'button'",
111022
+ "type": {
111023
+ "text": "SbbButtonType"
111024
+ },
111025
+ "attribute": "type",
111026
+ "inheritedFrom": {
111027
+ "name": "SbbButtonBaseElement",
111028
+ "module": "core/base-elements/button-base-element.js"
111027
111029
  }
111028
111030
  },
111029
111031
  {
111030
111032
  "kind": "field",
111031
- "name": "role",
111033
+ "name": "form",
111032
111034
  "type": {
111033
- "text": "ElementInternals['role'] | undefined"
111035
+ "text": "HTMLFormElement | null"
111034
111036
  },
111035
111037
  "privacy": "public",
111036
- "static": true,
111038
+ "description": "The `<form>` element to associate the button with.",
111037
111039
  "inheritedFrom": {
111038
- "name": "SbbElement",
111039
- "module": "core/base-elements/element.js"
111040
- }
111040
+ "name": "SbbButtonBaseElement",
111041
+ "module": "core/base-elements/button-base-element.js"
111042
+ },
111043
+ "attribute": "form"
111041
111044
  },
111042
111045
  {
111043
111046
  "kind": "field",
111044
- "name": "_controllers",
111047
+ "name": "_formId",
111045
111048
  "type": {
111046
- "text": "Set<SbbReactiveController> | undefined"
111049
+ "text": "string"
111047
111050
  },
111048
111051
  "privacy": "private",
111052
+ "default": "''",
111049
111053
  "inheritedFrom": {
111050
- "name": "SbbElement",
111051
- "module": "core/base-elements/element.js"
111054
+ "name": "SbbButtonBaseElement",
111055
+ "module": "core/base-elements/button-base-element.js"
111052
111056
  }
111053
111057
  },
111054
111058
  {
111055
111059
  "kind": "field",
111056
- "name": "_hydrationRequired",
111060
+ "name": "_handleButtonClick",
111061
+ "privacy": "private",
111062
+ "inheritedFrom": {
111063
+ "name": "SbbButtonBaseElement",
111064
+ "module": "core/base-elements/button-base-element.js"
111065
+ }
111066
+ },
111067
+ {
111068
+ "kind": "method",
111069
+ "name": "_requestSubmit",
111070
+ "privacy": "private",
111071
+ "return": {
111072
+ "type": {
111073
+ "text": "void"
111074
+ }
111075
+ },
111076
+ "parameters": [
111077
+ {
111078
+ "name": "form",
111079
+ "type": {
111080
+ "text": "HTMLFormElement"
111081
+ }
111082
+ }
111083
+ ],
111084
+ "inheritedFrom": {
111085
+ "name": "SbbButtonBaseElement",
111086
+ "module": "core/base-elements/button-base-element.js"
111087
+ }
111088
+ },
111089
+ {
111090
+ "kind": "field",
111091
+ "name": "_formKeyDown",
111092
+ "privacy": "private",
111093
+ "inheritedFrom": {
111094
+ "name": "SbbButtonBaseElement",
111095
+ "module": "core/base-elements/button-base-element.js"
111096
+ }
111097
+ },
111098
+ {
111099
+ "kind": "field",
111100
+ "name": "formAssociated",
111057
111101
  "type": {
111058
111102
  "text": "boolean"
111059
111103
  },
111060
- "privacy": "private",
111061
- "default": "!!this.shadowRoot",
111104
+ "privacy": "public",
111105
+ "static": true,
111106
+ "default": "true",
111062
111107
  "inheritedFrom": {
111063
- "name": "SbbElement",
111064
- "module": "core/base-elements/element.js"
111108
+ "name": "SbbFormAssociatedMixin",
111109
+ "module": "core/mixins/form-associated-mixin.js"
111065
111110
  }
111066
111111
  },
111067
111112
  {
111068
111113
  "kind": "field",
111069
- "name": "_hydrationComplete",
111070
- "privacy": "private",
111071
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
111114
+ "name": "name",
111115
+ "privacy": "public",
111116
+ "description": "Name of the form element. Will be read from name attribute.",
111117
+ "type": {
111118
+ "text": "string"
111119
+ },
111120
+ "attribute": "name",
111072
111121
  "inheritedFrom": {
111073
- "name": "SbbElement",
111074
- "module": "core/base-elements/element.js"
111122
+ "name": "SbbFormAssociatedMixin",
111123
+ "module": "core/mixins/form-associated-mixin.js"
111075
111124
  }
111076
111125
  },
111077
111126
  {
111078
111127
  "kind": "field",
111079
- "name": "_resolveHydration",
111128
+ "name": "validity",
111080
111129
  "type": {
111081
- "text": "(hydrationRequired: boolean) => void"
111130
+ "text": "ValidityState"
111082
111131
  },
111083
- "privacy": "private",
111132
+ "privacy": "public",
111133
+ "description": "Returns the ValidityState object for this element.",
111134
+ "readonly": true,
111084
111135
  "inheritedFrom": {
111085
- "name": "SbbElement",
111086
- "module": "core/base-elements/element.js"
111136
+ "name": "SbbFormAssociatedMixin",
111137
+ "module": "core/mixins/form-associated-mixin.js"
111087
111138
  }
111088
111139
  },
111089
111140
  {
111090
111141
  "kind": "field",
111091
- "name": "_textObserver",
111142
+ "name": "validationMessage",
111092
111143
  "type": {
111093
- "text": "MutationObserver | undefined"
111144
+ "text": "string"
111094
111145
  },
111095
- "privacy": "private",
111146
+ "privacy": "public",
111147
+ "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.",
111148
+ "readonly": true,
111096
111149
  "inheritedFrom": {
111097
- "name": "SbbElement",
111098
- "module": "core/base-elements/element.js"
111150
+ "name": "SbbFormAssociatedMixin",
111151
+ "module": "core/mixins/form-associated-mixin.js"
111099
111152
  }
111100
111153
  },
111101
111154
  {
111102
111155
  "kind": "field",
111103
- "name": "hydrationRequired",
111156
+ "name": "willValidate",
111104
111157
  "type": {
111105
111158
  "text": "boolean"
111106
111159
  },
111107
- "privacy": "protected",
111108
- "description": "Returns whether hydration is required and not completed.",
111160
+ "privacy": "public",
111161
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
111109
111162
  "readonly": true,
111110
111163
  "inheritedFrom": {
111111
- "name": "SbbElement",
111112
- "module": "core/base-elements/element.js"
111164
+ "name": "SbbFormAssociatedMixin",
111165
+ "module": "core/mixins/form-associated-mixin.js"
111166
+ }
111167
+ },
111168
+ {
111169
+ "kind": "field",
111170
+ "name": "_validityStates",
111171
+ "privacy": "private",
111172
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
111173
+ "inheritedFrom": {
111174
+ "name": "SbbFormAssociatedMixin",
111175
+ "module": "core/mixins/form-associated-mixin.js"
111176
+ }
111177
+ },
111178
+ {
111179
+ "kind": "field",
111180
+ "name": "formDisabled",
111181
+ "type": {
111182
+ "text": "boolean"
111113
111183
  },
111114
- "default": "!!this.shadowRoot"
111184
+ "privacy": "protected",
111185
+ "default": "false",
111186
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
111187
+ "inheritedFrom": {
111188
+ "name": "SbbFormAssociatedMixin",
111189
+ "module": "core/mixins/form-associated-mixin.js"
111190
+ }
111115
111191
  },
111116
111192
  {
111117
111193
  "kind": "method",
111118
- "name": "toggleState",
111119
- "privacy": "protected",
111194
+ "name": "checkValidity",
111195
+ "privacy": "public",
111120
111196
  "return": {
111121
111197
  "type": {
111122
- "text": "void"
111198
+ "text": "boolean"
111123
111199
  }
111124
111200
  },
111125
- "parameters": [
111126
- {
111127
- "name": "value",
111128
- "type": {
111129
- "text": "string"
111130
- }
111131
- },
111132
- {
111133
- "name": "force",
111134
- "optional": true,
111135
- "type": {
111136
- "text": "boolean"
111137
- }
111201
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
111202
+ "inheritedFrom": {
111203
+ "name": "SbbFormAssociatedMixin",
111204
+ "module": "core/mixins/form-associated-mixin.js"
111205
+ }
111206
+ },
111207
+ {
111208
+ "kind": "method",
111209
+ "name": "reportValidity",
111210
+ "privacy": "public",
111211
+ "return": {
111212
+ "type": {
111213
+ "text": "boolean"
111138
111214
  }
111139
- ],
111215
+ },
111216
+ "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.",
111140
111217
  "inheritedFrom": {
111141
- "name": "SbbElement",
111142
- "module": "core/base-elements/element.js"
111218
+ "name": "SbbFormAssociatedMixin",
111219
+ "module": "core/mixins/form-associated-mixin.js"
111143
111220
  }
111144
111221
  },
111145
111222
  {
111146
111223
  "kind": "method",
111147
- "name": "_slotchangeHandler",
111148
- "privacy": "private",
111224
+ "name": "setCustomValidity",
111225
+ "privacy": "public",
111149
111226
  "return": {
111150
111227
  "type": {
111151
111228
  "text": "void"
@@ -111153,49 +111230,65 @@
111153
111230
  },
111154
111231
  "parameters": [
111155
111232
  {
111156
- "name": "event",
111157
- "type": {
111158
- "text": "Event"
111159
- }
111160
- },
111161
- {
111162
- "name": "slot",
111233
+ "name": "message",
111163
111234
  "type": {
111164
- "text": "HTMLSlotElement"
111235
+ "text": "string"
111165
111236
  }
111166
111237
  }
111167
111238
  ],
111239
+ "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.",
111168
111240
  "inheritedFrom": {
111169
- "name": "SbbElement",
111170
- "module": "core/base-elements/element.js"
111241
+ "name": "SbbFormAssociatedMixin",
111242
+ "module": "core/mixins/form-associated-mixin.js"
111171
111243
  }
111172
111244
  },
111173
111245
  {
111174
111246
  "kind": "method",
111175
- "name": "_handleSlotChangeForSlottedState",
111247
+ "name": "_hasDisabledAncestor",
111176
111248
  "privacy": "private",
111249
+ "return": {
111250
+ "type": {
111251
+ "text": "boolean"
111252
+ }
111253
+ },
111254
+ "inheritedFrom": {
111255
+ "name": "SbbFormAssociatedMixin",
111256
+ "module": "core/mixins/form-associated-mixin.js"
111257
+ }
111258
+ },
111259
+ {
111260
+ "kind": "method",
111261
+ "name": "updateFormValue",
111262
+ "privacy": "protected",
111177
111263
  "return": {
111178
111264
  "type": {
111179
111265
  "text": "void"
111180
111266
  }
111181
111267
  },
111182
- "parameters": [
111183
- {
111184
- "name": "slot",
111185
- "type": {
111186
- "text": "HTMLSlotElement"
111187
- }
111268
+ "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",
111269
+ "inheritedFrom": {
111270
+ "name": "SbbFormAssociatedMixin",
111271
+ "module": "core/mixins/form-associated-mixin.js"
111272
+ }
111273
+ },
111274
+ {
111275
+ "kind": "method",
111276
+ "name": "formState",
111277
+ "privacy": "protected",
111278
+ "return": {
111279
+ "type": {
111280
+ "text": "FormRestoreState"
111188
111281
  }
111189
- ],
111282
+ },
111190
111283
  "inheritedFrom": {
111191
- "name": "SbbElement",
111192
- "module": "core/base-elements/element.js"
111284
+ "name": "SbbFormAssociatedMixin",
111285
+ "module": "core/mixins/form-associated-mixin.js"
111193
111286
  }
111194
111287
  },
111195
111288
  {
111196
111289
  "kind": "method",
111197
- "name": "_updateSlottedState",
111198
- "privacy": "private",
111290
+ "name": "setValidityFlag",
111291
+ "privacy": "protected",
111199
111292
  "return": {
111200
111293
  "type": {
111201
111294
  "text": "void"
@@ -111203,21 +111296,35 @@
111203
111296
  },
111204
111297
  "parameters": [
111205
111298
  {
111206
- "name": "slot",
111299
+ "name": "flag",
111207
111300
  "type": {
111208
- "text": "HTMLSlotElement"
111301
+ "text": "T"
111302
+ }
111303
+ },
111304
+ {
111305
+ "name": "message",
111306
+ "type": {
111307
+ "text": "string"
111308
+ }
111309
+ },
111310
+ {
111311
+ "name": "flagValue",
111312
+ "optional": true,
111313
+ "type": {
111314
+ "text": "ValidityStateFlags[T]"
111209
111315
  }
111210
111316
  }
111211
111317
  ],
111318
+ "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).",
111212
111319
  "inheritedFrom": {
111213
- "name": "SbbElement",
111214
- "module": "core/base-elements/element.js"
111320
+ "name": "SbbFormAssociatedMixin",
111321
+ "module": "core/mixins/form-associated-mixin.js"
111215
111322
  }
111216
111323
  },
111217
111324
  {
111218
111325
  "kind": "method",
111219
- "name": "_observeTextNodesInSlot",
111220
- "privacy": "private",
111326
+ "name": "removeValidityFlag",
111327
+ "privacy": "protected",
111221
111328
  "return": {
111222
111329
  "type": {
111223
111330
  "text": "void"
@@ -111225,21 +111332,37 @@
111225
111332
  },
111226
111333
  "parameters": [
111227
111334
  {
111228
- "name": "slot",
111335
+ "name": "flag",
111229
111336
  "type": {
111230
- "text": "HTMLSlotElement"
111337
+ "text": "T"
111231
111338
  }
111232
111339
  }
111233
111340
  ],
111341
+ "description": "Removes the validity state flag entry and updates validity state.",
111234
111342
  "inheritedFrom": {
111235
- "name": "SbbElement",
111236
- "module": "core/base-elements/element.js"
111343
+ "name": "SbbFormAssociatedMixin",
111344
+ "module": "core/mixins/form-associated-mixin.js"
111237
111345
  }
111238
111346
  },
111239
111347
  {
111240
111348
  "kind": "method",
111241
- "name": "_hasSlottedContent",
111242
- "privacy": "private",
111349
+ "name": "validate",
111350
+ "privacy": "protected",
111351
+ "return": {
111352
+ "type": {
111353
+ "text": "void"
111354
+ }
111355
+ },
111356
+ "description": "To be called whenever the current element needs to be validated.",
111357
+ "inheritedFrom": {
111358
+ "name": "SbbFormAssociatedMixin",
111359
+ "module": "core/mixins/form-associated-mixin.js"
111360
+ }
111361
+ },
111362
+ {
111363
+ "kind": "method",
111364
+ "name": "shouldValidate",
111365
+ "privacy": "protected",
111243
111366
  "return": {
111244
111367
  "type": {
111245
111368
  "text": "boolean"
@@ -111247,81 +111370,37 @@
111247
111370
  },
111248
111371
  "parameters": [
111249
111372
  {
111250
- "name": "slot",
111373
+ "name": "name",
111251
111374
  "type": {
111252
- "text": "HTMLSlotElement"
111375
+ "text": "PropertyKey | undefined"
111253
111376
  }
111254
111377
  }
111255
111378
  ],
111379
+ "description": "Whether validation should be run on a property change with the given name.",
111256
111380
  "inheritedFrom": {
111257
- "name": "SbbElement",
111258
- "module": "core/base-elements/element.js"
111381
+ "name": "SbbFormAssociatedMixin",
111382
+ "module": "core/mixins/form-associated-mixin.js"
111259
111383
  }
111260
- }
111261
- ],
111262
- "superclass": {
111263
- "name": "SbbHintElement",
111264
- "module": "form-field/hint/hint.component.js"
111265
- },
111266
- "tagName": "sbb-form-field-text-counter",
111267
- "customElement": true,
111268
- "attributes": [
111384
+ },
111269
111385
  {
111270
- "name": "negative",
111271
- "type": {
111272
- "text": "boolean"
111386
+ "kind": "method",
111387
+ "name": "_setInternalValidity",
111388
+ "privacy": "private",
111389
+ "return": {
111390
+ "type": {
111391
+ "text": "void"
111392
+ }
111273
111393
  },
111274
- "default": "false",
111275
- "description": "Negative coloring variant flag.",
111276
- "fieldName": "negative",
111277
111394
  "inheritedFrom": {
111278
- "name": "SbbNegativeMixin",
111279
- "module": "core/mixins/negative-mixin.js"
111395
+ "name": "SbbFormAssociatedMixin",
111396
+ "module": "core/mixins/form-associated-mixin.js"
111280
111397
  }
111281
- }
111282
- ]
111283
- }
111284
- ],
111285
- "exports": [
111286
- {
111287
- "kind": "js",
111288
- "name": "SbbFormFieldTextCounterElement",
111289
- "declaration": {
111290
- "name": "SbbFormFieldTextCounterElement",
111291
- "module": "form-field/form-field-text-counter/form-field-text-counter.component.js"
111292
- }
111293
- }
111294
- ]
111295
- },
111296
- {
111297
- "kind": "javascript-module",
111298
- "path": "form-field/form-field-clear/form-field-clear.component.js",
111299
- "declarations": [
111300
- {
111301
- "kind": "class",
111302
- "description": "Combined with `sbb-form-field`, it displays a button which clears the input value.",
111303
- "name": "SbbFormFieldClearElement",
111304
- "members": [
111305
- {
111306
- "kind": "field",
111307
- "name": "elementName",
111308
- "type": {
111309
- "text": "string"
111310
- },
111311
- "privacy": "public",
111312
- "static": true,
111313
- "readonly": true,
111314
- "inheritedFrom": {
111315
- "name": "SbbElement",
111316
- "module": "core/base-elements/element.js"
111317
- },
111318
- "default": "'sbb-form-field-clear'"
111319
111398
  },
111320
111399
  {
111321
111400
  "kind": "field",
111322
- "name": "elementDependencies",
111401
+ "name": "role",
111323
111402
  "type": {
111324
- "text": "SbbElementType[]"
111403
+ "text": "ElementInternals['role']"
111325
111404
  },
111326
111405
  "privacy": "public",
111327
111406
  "static": true,
@@ -111329,177 +111408,102 @@
111329
111408
  "name": "SbbElement",
111330
111409
  "module": "core/base-elements/element.js"
111331
111410
  },
111332
- "default": "[SbbIconElement]"
111411
+ "readonly": true,
111412
+ "default": "'button'"
111333
111413
  },
111334
111414
  {
111335
111415
  "kind": "field",
111336
- "name": "_formField",
111337
- "type": {
111338
- "text": "SbbFormFieldElement | null | undefined"
111339
- },
111340
- "privacy": "private"
111416
+ "name": "_preventScrollOnSpaceKeydown",
111417
+ "privacy": "private",
111418
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
111419
+ "parameters": [
111420
+ {
111421
+ "description": "The origin event.",
111422
+ "name": "event"
111423
+ }
111424
+ ],
111425
+ "inheritedFrom": {
111426
+ "name": "SbbButtonLikeBaseElement",
111427
+ "module": "core/base-elements/button-base-element.js"
111428
+ }
111341
111429
  },
111342
111430
  {
111343
111431
  "kind": "field",
111344
- "name": "_language",
111432
+ "name": "_removeActiveMarker",
111345
111433
  "privacy": "private",
111346
- "default": "new SbbLanguageController(this)"
111434
+ "inheritedFrom": {
111435
+ "name": "SbbButtonLikeBaseElement",
111436
+ "module": "core/base-elements/button-base-element.js"
111437
+ }
111347
111438
  },
111348
111439
  {
111349
- "kind": "method",
111350
- "name": "_handleClick",
111440
+ "kind": "field",
111441
+ "name": "_dispatchClickEventOnSpaceKeyup",
111351
111442
  "privacy": "private",
111352
- "return": {
111353
- "type": {
111354
- "text": "Promise<void>"
111355
- }
111356
- }
111357
- },
111358
- {
111359
- "kind": "method",
111360
- "name": "renderTemplate",
111361
- "privacy": "protected",
111362
- "return": {
111363
- "type": {
111364
- "text": "TemplateResult"
111443
+ "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.",
111444
+ "parameters": [
111445
+ {
111446
+ "description": "The origin event.",
111447
+ "name": "event"
111365
111448
  }
111366
- },
111367
- "description": "Override this method to render the component template.",
111368
- "inheritedFrom": {
111369
- "name": "SbbActionBaseElement",
111370
- "module": "core/base-elements/action-base-element.js"
111371
- }
111372
- },
111373
- {
111374
- "kind": "field",
111375
- "name": "negative",
111376
- "type": {
111377
- "text": "boolean"
111378
- },
111379
- "privacy": "public",
111380
- "default": "false",
111381
- "description": "Negative coloring variant flag.",
111382
- "attribute": "negative",
111383
- "reflects": true,
111449
+ ],
111384
111450
  "inheritedFrom": {
111385
- "name": "SbbNegativeMixin",
111386
- "module": "core/mixins/negative-mixin.js"
111451
+ "name": "SbbButtonLikeBaseElement",
111452
+ "module": "core/base-elements/button-base-element.js"
111387
111453
  }
111388
111454
  },
111389
111455
  {
111390
111456
  "kind": "field",
111391
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
111392
- "type": {
111393
- "text": "array"
111394
- },
111457
+ "name": "_dispatchClickEvent",
111395
111458
  "privacy": "private",
111396
- "readonly": true,
111397
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
111398
111459
  "inheritedFrom": {
111399
- "name": "SbbButtonBaseElement",
111460
+ "name": "SbbButtonLikeBaseElement",
111400
111461
  "module": "core/base-elements/button-base-element.js"
111401
111462
  }
111402
111463
  },
111403
111464
  {
111404
111465
  "kind": "field",
111405
- "name": "value",
111406
- "type": {
111407
- "text": "string"
111408
- },
111409
- "privacy": "public",
111410
- "inheritedFrom": {
111411
- "name": "SbbButtonBaseElement",
111412
- "module": "core/base-elements/button-base-element.js"
111413
- },
111414
- "default": "''",
111415
- "description": "Value of the form element.",
111416
- "attribute": "value"
111417
- },
111418
- {
111419
- "kind": "field",
111420
- "name": "type",
111421
- "privacy": "public",
111422
- "description": "The type attribute to use for the button.",
111423
- "default": "'button'",
111466
+ "name": "maybeDisabled",
111424
111467
  "type": {
111425
- "text": "SbbButtonType"
111468
+ "text": "boolean | undefined"
111426
111469
  },
111427
- "attribute": "type",
111470
+ "privacy": "protected",
111471
+ "readonly": true,
111428
111472
  "inheritedFrom": {
111429
- "name": "SbbButtonBaseElement",
111430
- "module": "core/base-elements/button-base-element.js"
111473
+ "name": "SbbActionBaseElement",
111474
+ "module": "core/base-elements/action-base-element.js"
111431
111475
  }
111432
111476
  },
111433
111477
  {
111434
111478
  "kind": "field",
111435
- "name": "form",
111436
- "type": {
111437
- "text": "HTMLFormElement | null"
111438
- },
111439
- "privacy": "public",
111440
- "description": "The `<form>` element to associate the button with.",
111441
- "inheritedFrom": {
111442
- "name": "SbbButtonBaseElement",
111443
- "module": "core/base-elements/button-base-element.js"
111444
- },
111445
- "attribute": "form"
111446
- },
111447
- {
111448
- "kind": "field",
111449
- "name": "_formId",
111479
+ "name": "maybeDisabledInteractive",
111450
111480
  "type": {
111451
- "text": "string"
111481
+ "text": "boolean | undefined"
111452
111482
  },
111453
- "privacy": "private",
111454
- "default": "''",
111455
- "inheritedFrom": {
111456
- "name": "SbbButtonBaseElement",
111457
- "module": "core/base-elements/button-base-element.js"
111458
- }
111459
- },
111460
- {
111461
- "kind": "field",
111462
- "name": "_handleButtonClick",
111463
- "privacy": "private",
111483
+ "privacy": "protected",
111484
+ "readonly": true,
111464
111485
  "inheritedFrom": {
111465
- "name": "SbbButtonBaseElement",
111466
- "module": "core/base-elements/button-base-element.js"
111486
+ "name": "SbbActionBaseElement",
111487
+ "module": "core/base-elements/action-base-element.js"
111467
111488
  }
111468
111489
  },
111469
111490
  {
111470
111491
  "kind": "method",
111471
- "name": "_requestSubmit",
111472
- "privacy": "private",
111492
+ "name": "setupBaseEventHandlers",
111493
+ "privacy": "protected",
111473
111494
  "return": {
111474
111495
  "type": {
111475
111496
  "text": "void"
111476
111497
  }
111477
111498
  },
111478
- "parameters": [
111479
- {
111480
- "name": "form",
111481
- "type": {
111482
- "text": "HTMLFormElement"
111483
- }
111484
- }
111485
- ],
111486
- "inheritedFrom": {
111487
- "name": "SbbButtonBaseElement",
111488
- "module": "core/base-elements/button-base-element.js"
111489
- }
111490
- },
111491
- {
111492
- "kind": "field",
111493
- "name": "_formKeyDown",
111494
- "privacy": "private",
111495
111499
  "inheritedFrom": {
111496
- "name": "SbbButtonBaseElement",
111497
- "module": "core/base-elements/button-base-element.js"
111500
+ "name": "SbbActionBaseElement",
111501
+ "module": "core/base-elements/action-base-element.js"
111498
111502
  }
111499
111503
  },
111500
111504
  {
111501
111505
  "kind": "field",
111502
- "name": "formAssociated",
111506
+ "name": "['_$sbbElement$']",
111503
111507
  "type": {
111504
111508
  "text": "boolean"
111505
111509
  },
@@ -111507,190 +111511,167 @@
111507
111511
  "static": true,
111508
111512
  "default": "true",
111509
111513
  "inheritedFrom": {
111510
- "name": "SbbFormAssociatedMixin",
111511
- "module": "core/mixins/form-associated-mixin.js"
111514
+ "name": "SbbElement",
111515
+ "module": "core/base-elements/element.js"
111512
111516
  }
111513
111517
  },
111514
111518
  {
111515
111519
  "kind": "field",
111516
- "name": "name",
111517
- "privacy": "public",
111518
- "description": "Name of the form element. Will be read from name attribute.",
111520
+ "name": "_controllers",
111519
111521
  "type": {
111520
- "text": "string"
111522
+ "text": "Set<SbbReactiveController> | undefined"
111521
111523
  },
111522
- "attribute": "name",
111524
+ "privacy": "private",
111523
111525
  "inheritedFrom": {
111524
- "name": "SbbFormAssociatedMixin",
111525
- "module": "core/mixins/form-associated-mixin.js"
111526
+ "name": "SbbElement",
111527
+ "module": "core/base-elements/element.js"
111526
111528
  }
111527
111529
  },
111528
111530
  {
111529
111531
  "kind": "field",
111530
- "name": "validity",
111532
+ "name": "_hydrationRequired",
111531
111533
  "type": {
111532
- "text": "ValidityState"
111534
+ "text": "boolean"
111533
111535
  },
111534
- "privacy": "public",
111535
- "description": "Returns the ValidityState object for this element.",
111536
- "readonly": true,
111536
+ "privacy": "private",
111537
+ "default": "!!this.shadowRoot",
111537
111538
  "inheritedFrom": {
111538
- "name": "SbbFormAssociatedMixin",
111539
- "module": "core/mixins/form-associated-mixin.js"
111539
+ "name": "SbbElement",
111540
+ "module": "core/base-elements/element.js"
111540
111541
  }
111541
111542
  },
111542
111543
  {
111543
111544
  "kind": "field",
111544
- "name": "validationMessage",
111545
- "type": {
111546
- "text": "string"
111547
- },
111548
- "privacy": "public",
111549
- "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.",
111550
- "readonly": true,
111545
+ "name": "_hydrationComplete",
111546
+ "privacy": "private",
111547
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
111551
111548
  "inheritedFrom": {
111552
- "name": "SbbFormAssociatedMixin",
111553
- "module": "core/mixins/form-associated-mixin.js"
111549
+ "name": "SbbElement",
111550
+ "module": "core/base-elements/element.js"
111554
111551
  }
111555
111552
  },
111556
111553
  {
111557
111554
  "kind": "field",
111558
- "name": "willValidate",
111555
+ "name": "_resolveHydration",
111559
111556
  "type": {
111560
- "text": "boolean"
111557
+ "text": "(hydrationRequired: boolean) => void"
111561
111558
  },
111562
- "privacy": "public",
111563
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
111564
- "readonly": true,
111559
+ "privacy": "private",
111565
111560
  "inheritedFrom": {
111566
- "name": "SbbFormAssociatedMixin",
111567
- "module": "core/mixins/form-associated-mixin.js"
111561
+ "name": "SbbElement",
111562
+ "module": "core/base-elements/element.js"
111568
111563
  }
111569
111564
  },
111570
111565
  {
111571
111566
  "kind": "field",
111572
- "name": "_validityStates",
111567
+ "name": "_textObserver",
111568
+ "type": {
111569
+ "text": "MutationObserver | undefined"
111570
+ },
111573
111571
  "privacy": "private",
111574
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
111575
111572
  "inheritedFrom": {
111576
- "name": "SbbFormAssociatedMixin",
111577
- "module": "core/mixins/form-associated-mixin.js"
111573
+ "name": "SbbElement",
111574
+ "module": "core/base-elements/element.js"
111578
111575
  }
111579
111576
  },
111580
111577
  {
111581
111578
  "kind": "field",
111582
- "name": "formDisabled",
111579
+ "name": "hydrationRequired",
111583
111580
  "type": {
111584
111581
  "text": "boolean"
111585
111582
  },
111586
111583
  "privacy": "protected",
111587
- "default": "false",
111588
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
111584
+ "description": "Returns whether hydration is required and not completed.",
111585
+ "readonly": true,
111589
111586
  "inheritedFrom": {
111590
- "name": "SbbFormAssociatedMixin",
111591
- "module": "core/mixins/form-associated-mixin.js"
111592
- }
111587
+ "name": "SbbElement",
111588
+ "module": "core/base-elements/element.js"
111589
+ },
111590
+ "default": "!!this.shadowRoot"
111593
111591
  },
111594
111592
  {
111595
111593
  "kind": "method",
111596
- "name": "checkValidity",
111597
- "privacy": "public",
111594
+ "name": "toggleState",
111595
+ "privacy": "protected",
111598
111596
  "return": {
111599
111597
  "type": {
111600
- "text": "boolean"
111598
+ "text": "void"
111601
111599
  }
111602
111600
  },
111603
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
111601
+ "parameters": [
111602
+ {
111603
+ "name": "value",
111604
+ "type": {
111605
+ "text": "string"
111606
+ }
111607
+ },
111608
+ {
111609
+ "name": "force",
111610
+ "optional": true,
111611
+ "type": {
111612
+ "text": "boolean"
111613
+ }
111614
+ }
111615
+ ],
111604
111616
  "inheritedFrom": {
111605
- "name": "SbbFormAssociatedMixin",
111606
- "module": "core/mixins/form-associated-mixin.js"
111617
+ "name": "SbbElement",
111618
+ "module": "core/base-elements/element.js"
111607
111619
  }
111608
111620
  },
111609
111621
  {
111610
111622
  "kind": "method",
111611
- "name": "reportValidity",
111612
- "privacy": "public",
111623
+ "name": "_slotchangeHandler",
111624
+ "privacy": "private",
111613
111625
  "return": {
111614
111626
  "type": {
111615
- "text": "boolean"
111616
- }
111617
- },
111618
- "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.",
111619
- "inheritedFrom": {
111620
- "name": "SbbFormAssociatedMixin",
111621
- "module": "core/mixins/form-associated-mixin.js"
111622
- }
111623
- },
111624
- {
111625
- "kind": "method",
111626
- "name": "setCustomValidity",
111627
- "privacy": "public",
111628
- "return": {
111629
- "type": {
111630
- "text": "void"
111627
+ "text": "void"
111631
111628
  }
111632
111629
  },
111633
111630
  "parameters": [
111634
111631
  {
111635
- "name": "message",
111632
+ "name": "event",
111636
111633
  "type": {
111637
- "text": "string"
111634
+ "text": "Event"
111635
+ }
111636
+ },
111637
+ {
111638
+ "name": "slot",
111639
+ "type": {
111640
+ "text": "HTMLSlotElement"
111638
111641
  }
111639
111642
  }
111640
111643
  ],
111641
- "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.",
111642
111644
  "inheritedFrom": {
111643
- "name": "SbbFormAssociatedMixin",
111644
- "module": "core/mixins/form-associated-mixin.js"
111645
+ "name": "SbbElement",
111646
+ "module": "core/base-elements/element.js"
111645
111647
  }
111646
111648
  },
111647
111649
  {
111648
111650
  "kind": "method",
111649
- "name": "_hasDisabledAncestor",
111651
+ "name": "_handleSlotChangeForSlottedState",
111650
111652
  "privacy": "private",
111651
- "return": {
111652
- "type": {
111653
- "text": "boolean"
111654
- }
111655
- },
111656
- "inheritedFrom": {
111657
- "name": "SbbFormAssociatedMixin",
111658
- "module": "core/mixins/form-associated-mixin.js"
111659
- }
111660
- },
111661
- {
111662
- "kind": "method",
111663
- "name": "updateFormValue",
111664
- "privacy": "protected",
111665
111653
  "return": {
111666
111654
  "type": {
111667
111655
  "text": "void"
111668
111656
  }
111669
111657
  },
111670
- "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",
111671
- "inheritedFrom": {
111672
- "name": "SbbFormAssociatedMixin",
111673
- "module": "core/mixins/form-associated-mixin.js"
111674
- }
111675
- },
111676
- {
111677
- "kind": "method",
111678
- "name": "formState",
111679
- "privacy": "protected",
111680
- "return": {
111681
- "type": {
111682
- "text": "FormRestoreState"
111658
+ "parameters": [
111659
+ {
111660
+ "name": "slot",
111661
+ "type": {
111662
+ "text": "HTMLSlotElement"
111663
+ }
111683
111664
  }
111684
- },
111665
+ ],
111685
111666
  "inheritedFrom": {
111686
- "name": "SbbFormAssociatedMixin",
111687
- "module": "core/mixins/form-associated-mixin.js"
111667
+ "name": "SbbElement",
111668
+ "module": "core/base-elements/element.js"
111688
111669
  }
111689
111670
  },
111690
111671
  {
111691
111672
  "kind": "method",
111692
- "name": "setValidityFlag",
111693
- "privacy": "protected",
111673
+ "name": "_updateSlottedState",
111674
+ "privacy": "private",
111694
111675
  "return": {
111695
111676
  "type": {
111696
111677
  "text": "void"
@@ -111698,35 +111679,21 @@
111698
111679
  },
111699
111680
  "parameters": [
111700
111681
  {
111701
- "name": "flag",
111702
- "type": {
111703
- "text": "T"
111704
- }
111705
- },
111706
- {
111707
- "name": "message",
111708
- "type": {
111709
- "text": "string"
111710
- }
111711
- },
111712
- {
111713
- "name": "flagValue",
111714
- "optional": true,
111682
+ "name": "slot",
111715
111683
  "type": {
111716
- "text": "ValidityStateFlags[T]"
111684
+ "text": "HTMLSlotElement"
111717
111685
  }
111718
111686
  }
111719
111687
  ],
111720
- "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).",
111721
111688
  "inheritedFrom": {
111722
- "name": "SbbFormAssociatedMixin",
111723
- "module": "core/mixins/form-associated-mixin.js"
111689
+ "name": "SbbElement",
111690
+ "module": "core/base-elements/element.js"
111724
111691
  }
111725
111692
  },
111726
111693
  {
111727
111694
  "kind": "method",
111728
- "name": "removeValidityFlag",
111729
- "privacy": "protected",
111695
+ "name": "_observeTextNodesInSlot",
111696
+ "privacy": "private",
111730
111697
  "return": {
111731
111698
  "type": {
111732
111699
  "text": "void"
@@ -111734,37 +111701,21 @@
111734
111701
  },
111735
111702
  "parameters": [
111736
111703
  {
111737
- "name": "flag",
111704
+ "name": "slot",
111738
111705
  "type": {
111739
- "text": "T"
111706
+ "text": "HTMLSlotElement"
111740
111707
  }
111741
111708
  }
111742
111709
  ],
111743
- "description": "Removes the validity state flag entry and updates validity state.",
111744
- "inheritedFrom": {
111745
- "name": "SbbFormAssociatedMixin",
111746
- "module": "core/mixins/form-associated-mixin.js"
111747
- }
111748
- },
111749
- {
111750
- "kind": "method",
111751
- "name": "validate",
111752
- "privacy": "protected",
111753
- "return": {
111754
- "type": {
111755
- "text": "void"
111756
- }
111757
- },
111758
- "description": "To be called whenever the current element needs to be validated.",
111759
111710
  "inheritedFrom": {
111760
- "name": "SbbFormAssociatedMixin",
111761
- "module": "core/mixins/form-associated-mixin.js"
111711
+ "name": "SbbElement",
111712
+ "module": "core/base-elements/element.js"
111762
111713
  }
111763
111714
  },
111764
111715
  {
111765
111716
  "kind": "method",
111766
- "name": "shouldValidate",
111767
- "privacy": "protected",
111717
+ "name": "_hasSlottedContent",
111718
+ "privacy": "private",
111768
111719
  "return": {
111769
111720
  "type": {
111770
111721
  "text": "boolean"
@@ -111772,135 +111723,243 @@
111772
111723
  },
111773
111724
  "parameters": [
111774
111725
  {
111775
- "name": "name",
111726
+ "name": "slot",
111776
111727
  "type": {
111777
- "text": "PropertyKey | undefined"
111728
+ "text": "HTMLSlotElement"
111778
111729
  }
111779
111730
  }
111780
111731
  ],
111781
- "description": "Whether validation should be run on a property change with the given name.",
111782
111732
  "inheritedFrom": {
111783
- "name": "SbbFormAssociatedMixin",
111784
- "module": "core/mixins/form-associated-mixin.js"
111733
+ "name": "SbbElement",
111734
+ "module": "core/base-elements/element.js"
111785
111735
  }
111786
- },
111736
+ }
111737
+ ],
111738
+ "events": [
111787
111739
  {
111788
- "kind": "method",
111789
- "name": "_setInternalValidity",
111790
- "privacy": "private",
111791
- "return": {
111792
- "type": {
111793
- "text": "void"
111794
- }
111740
+ "type": {
111741
+ "text": "Event"
111795
111742
  },
111796
- "inheritedFrom": {
111797
- "name": "SbbFormAssociatedMixin",
111798
- "module": "core/mixins/form-associated-mixin.js"
111799
- }
111743
+ "description": "The change event is fired on the component's associated input when the user modifies the element's value. Unlike the input event, the change event is not necessarily fired for each alteration to an element's value.",
111744
+ "name": "change"
111800
111745
  },
111801
111746
  {
111802
- "kind": "field",
111803
- "name": "role",
111804
111747
  "type": {
111805
- "text": "ElementInternals['role']"
111806
- },
111807
- "privacy": "public",
111808
- "static": true,
111809
- "inheritedFrom": {
111810
- "name": "SbbElement",
111811
- "module": "core/base-elements/element.js"
111748
+ "text": "InputEvent"
111812
111749
  },
111813
- "readonly": true,
111814
- "default": "'button'"
111815
- },
111750
+ "description": "The input event fires on the component's associated input when the value has been changed as a direct result of a user action.",
111751
+ "name": "input"
111752
+ }
111753
+ ],
111754
+ "mixins": [
111816
111755
  {
111817
- "kind": "field",
111818
- "name": "_preventScrollOnSpaceKeydown",
111819
- "privacy": "private",
111820
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
111821
- "parameters": [
111822
- {
111823
- "description": "The origin event.",
111824
- "name": "event"
111825
- }
111826
- ],
111756
+ "name": "SbbNegativeMixin",
111757
+ "module": "core.js"
111758
+ }
111759
+ ],
111760
+ "superclass": {
111761
+ "name": "SbbButtonBaseElement",
111762
+ "module": "core.js"
111763
+ },
111764
+ "tagName": "sbb-form-field-clear",
111765
+ "customElement": true,
111766
+ "attributes": [
111767
+ {
111768
+ "name": "negative",
111769
+ "type": {
111770
+ "text": "boolean"
111771
+ },
111772
+ "default": "false",
111773
+ "description": "Negative coloring variant flag.",
111774
+ "fieldName": "negative",
111827
111775
  "inheritedFrom": {
111828
- "name": "SbbButtonLikeBaseElement",
111829
- "module": "core/base-elements/button-base-element.js"
111776
+ "name": "SbbNegativeMixin",
111777
+ "module": "core/mixins/negative-mixin.js"
111830
111778
  }
111831
111779
  },
111832
111780
  {
111833
- "kind": "field",
111834
- "name": "_removeActiveMarker",
111835
- "privacy": "private",
111781
+ "name": "value",
111782
+ "type": {
111783
+ "text": "string"
111784
+ },
111785
+ "default": "''",
111786
+ "description": "Value of the form element.",
111787
+ "fieldName": "value",
111836
111788
  "inheritedFrom": {
111837
- "name": "SbbButtonLikeBaseElement",
111789
+ "name": "SbbButtonBaseElement",
111838
111790
  "module": "core/base-elements/button-base-element.js"
111839
111791
  }
111840
111792
  },
111841
111793
  {
111842
- "kind": "field",
111843
- "name": "_dispatchClickEventOnSpaceKeyup",
111844
- "privacy": "private",
111845
- "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.",
111846
- "parameters": [
111847
- {
111848
- "description": "The origin event.",
111849
- "name": "event"
111850
- }
111851
- ],
111794
+ "name": "type",
111795
+ "description": "The type attribute to use for the button.",
111796
+ "default": "'button'",
111797
+ "type": {
111798
+ "text": "SbbButtonType"
111799
+ },
111800
+ "fieldName": "type",
111852
111801
  "inheritedFrom": {
111853
- "name": "SbbButtonLikeBaseElement",
111802
+ "name": "SbbButtonBaseElement",
111854
111803
  "module": "core/base-elements/button-base-element.js"
111855
111804
  }
111856
111805
  },
111857
111806
  {
111858
- "kind": "field",
111859
- "name": "_dispatchClickEvent",
111860
- "privacy": "private",
111807
+ "name": "form",
111808
+ "description": "The `<form>` element to associate the button with.",
111809
+ "type": {
111810
+ "text": "HTMLFormElement | null"
111811
+ },
111812
+ "fieldName": "form",
111861
111813
  "inheritedFrom": {
111862
- "name": "SbbButtonLikeBaseElement",
111814
+ "name": "SbbButtonBaseElement",
111863
111815
  "module": "core/base-elements/button-base-element.js"
111864
111816
  }
111865
111817
  },
111866
111818
  {
111867
- "kind": "field",
111868
- "name": "maybeDisabled",
111819
+ "name": "name",
111820
+ "description": "Name of the form element. Will be read from name attribute.",
111869
111821
  "type": {
111870
- "text": "boolean | undefined"
111822
+ "text": "string"
111871
111823
  },
111872
- "privacy": "protected",
111873
- "readonly": true,
111824
+ "fieldName": "name",
111874
111825
  "inheritedFrom": {
111875
- "name": "SbbActionBaseElement",
111876
- "module": "core/base-elements/action-base-element.js"
111826
+ "name": "SbbFormAssociatedMixin",
111827
+ "module": "core/mixins/form-associated-mixin.js"
111877
111828
  }
111878
- },
111829
+ }
111830
+ ]
111831
+ }
111832
+ ],
111833
+ "exports": [
111834
+ {
111835
+ "kind": "js",
111836
+ "name": "SbbFormFieldClearElement",
111837
+ "declaration": {
111838
+ "name": "SbbFormFieldClearElement",
111839
+ "module": "form-field/form-field-clear/form-field-clear.component.js"
111840
+ }
111841
+ }
111842
+ ]
111843
+ },
111844
+ {
111845
+ "kind": "javascript-module",
111846
+ "path": "form-field/form-field-text-counter/form-field-text-counter.component.js",
111847
+ "declarations": [
111848
+ {
111849
+ "kind": "class",
111850
+ "description": "It displays the remaining characters count for input/textarea elements with a configured\nmaxlength property in the `sbb-form-field`.\nThe component automatically uses the form field's inputElement and displays the remaining character count.\nIf the input is disabled, readonly or an `sbb-error` is present, the output is suppressed.",
111851
+ "name": "SbbFormFieldTextCounterElement",
111852
+ "slots": [
111853
+ {
111854
+ "description": "Use the unnamed slot to display a custom description text after the counter.",
111855
+ "name": "",
111856
+ "inheritedFrom": {
111857
+ "name": "SbbHintElement",
111858
+ "module": "form-field/hint/hint.component.js"
111859
+ }
111860
+ }
111861
+ ],
111862
+ "members": [
111879
111863
  {
111880
111864
  "kind": "field",
111881
- "name": "maybeDisabledInteractive",
111865
+ "name": "elementName",
111882
111866
  "type": {
111883
- "text": "boolean | undefined"
111867
+ "text": "string"
111884
111868
  },
111885
- "privacy": "protected",
111869
+ "privacy": "public",
111870
+ "static": true,
111886
111871
  "readonly": true,
111872
+ "default": "'sbb-form-field-text-counter'",
111887
111873
  "inheritedFrom": {
111888
- "name": "SbbActionBaseElement",
111889
- "module": "core/base-elements/action-base-element.js"
111874
+ "name": "SbbElement",
111875
+ "module": "core/base-elements/element.js"
111876
+ }
111877
+ },
111878
+ {
111879
+ "kind": "field",
111880
+ "name": "elementDependencies",
111881
+ "type": {
111882
+ "text": "SbbElementType[]"
111883
+ },
111884
+ "privacy": "public",
111885
+ "static": true,
111886
+ "default": "[SbbScreenReaderOnlyElement]",
111887
+ "inheritedFrom": {
111888
+ "name": "SbbElement",
111889
+ "module": "core/base-elements/element.js"
111890
111890
  }
111891
111891
  },
111892
+ {
111893
+ "kind": "field",
111894
+ "name": "_remainingCharacters",
111895
+ "type": {
111896
+ "text": "number"
111897
+ },
111898
+ "privacy": "private",
111899
+ "default": "0"
111900
+ },
111901
+ {
111902
+ "kind": "field",
111903
+ "name": "_language",
111904
+ "privacy": "private",
111905
+ "default": "new SbbLanguageController(this)"
111906
+ },
111907
+ {
111908
+ "kind": "field",
111909
+ "name": "_abortController",
111910
+ "type": {
111911
+ "text": "AbortController | null"
111912
+ },
111913
+ "privacy": "private",
111914
+ "default": "null"
111915
+ },
111892
111916
  {
111893
111917
  "kind": "method",
111894
- "name": "setupBaseEventHandlers",
111895
- "privacy": "protected",
111918
+ "name": "_onInputUpdate",
111919
+ "privacy": "private",
111896
111920
  "return": {
111897
111921
  "type": {
111898
111922
  "text": "void"
111899
111923
  }
111924
+ }
111925
+ },
111926
+ {
111927
+ "kind": "method",
111928
+ "name": "_infoText",
111929
+ "privacy": "private",
111930
+ "return": {
111931
+ "type": {
111932
+ "text": "string"
111933
+ }
111934
+ }
111935
+ },
111936
+ {
111937
+ "kind": "field",
111938
+ "name": "negative",
111939
+ "type": {
111940
+ "text": "boolean"
111900
111941
  },
111942
+ "privacy": "public",
111943
+ "default": "false",
111944
+ "description": "Negative coloring variant flag.",
111945
+ "attribute": "negative",
111946
+ "reflects": true,
111901
111947
  "inheritedFrom": {
111902
- "name": "SbbActionBaseElement",
111903
- "module": "core/base-elements/action-base-element.js"
111948
+ "name": "SbbNegativeMixin",
111949
+ "module": "core/mixins/negative-mixin.js"
111950
+ }
111951
+ },
111952
+ {
111953
+ "kind": "field",
111954
+ "name": "formField",
111955
+ "type": {
111956
+ "text": "SbbFormFieldElement | null"
111957
+ },
111958
+ "privacy": "protected",
111959
+ "default": "null",
111960
+ "inheritedFrom": {
111961
+ "name": "SbbHintElement",
111962
+ "module": "form-field/hint/hint.component.js"
111904
111963
  }
111905
111964
  },
111906
111965
  {
@@ -111917,6 +111976,19 @@
111917
111976
  "module": "core/base-elements/element.js"
111918
111977
  }
111919
111978
  },
111979
+ {
111980
+ "kind": "field",
111981
+ "name": "role",
111982
+ "type": {
111983
+ "text": "ElementInternals['role'] | undefined"
111984
+ },
111985
+ "privacy": "public",
111986
+ "static": true,
111987
+ "inheritedFrom": {
111988
+ "name": "SbbElement",
111989
+ "module": "core/base-elements/element.js"
111990
+ }
111991
+ },
111920
111992
  {
111921
111993
  "kind": "field",
111922
111994
  "name": "_controllers",
@@ -112137,33 +112209,11 @@
112137
112209
  }
112138
112210
  }
112139
112211
  ],
112140
- "events": [
112141
- {
112142
- "type": {
112143
- "text": "Event"
112144
- },
112145
- "description": "The change event is fired on the component's associated input when the user modifies the element's value. Unlike the input event, the change event is not necessarily fired for each alteration to an element's value.",
112146
- "name": "change"
112147
- },
112148
- {
112149
- "type": {
112150
- "text": "InputEvent"
112151
- },
112152
- "description": "The input event fires on the component's associated input when the value has been changed as a direct result of a user action.",
112153
- "name": "input"
112154
- }
112155
- ],
112156
- "mixins": [
112157
- {
112158
- "name": "SbbNegativeMixin",
112159
- "module": "core.js"
112160
- }
112161
- ],
112162
112212
  "superclass": {
112163
- "name": "SbbButtonBaseElement",
112164
- "module": "core.js"
112213
+ "name": "SbbHintElement",
112214
+ "module": "form-field/hint/hint.component.js"
112165
112215
  },
112166
- "tagName": "sbb-form-field-clear",
112216
+ "tagName": "sbb-form-field-text-counter",
112167
112217
  "customElement": true,
112168
112218
  "attributes": [
112169
112219
  {
@@ -112178,56 +112228,6 @@
112178
112228
  "name": "SbbNegativeMixin",
112179
112229
  "module": "core/mixins/negative-mixin.js"
112180
112230
  }
112181
- },
112182
- {
112183
- "name": "value",
112184
- "type": {
112185
- "text": "string"
112186
- },
112187
- "default": "''",
112188
- "description": "Value of the form element.",
112189
- "fieldName": "value",
112190
- "inheritedFrom": {
112191
- "name": "SbbButtonBaseElement",
112192
- "module": "core/base-elements/button-base-element.js"
112193
- }
112194
- },
112195
- {
112196
- "name": "type",
112197
- "description": "The type attribute to use for the button.",
112198
- "default": "'button'",
112199
- "type": {
112200
- "text": "SbbButtonType"
112201
- },
112202
- "fieldName": "type",
112203
- "inheritedFrom": {
112204
- "name": "SbbButtonBaseElement",
112205
- "module": "core/base-elements/button-base-element.js"
112206
- }
112207
- },
112208
- {
112209
- "name": "form",
112210
- "description": "The `<form>` element to associate the button with.",
112211
- "type": {
112212
- "text": "HTMLFormElement | null"
112213
- },
112214
- "fieldName": "form",
112215
- "inheritedFrom": {
112216
- "name": "SbbButtonBaseElement",
112217
- "module": "core/base-elements/button-base-element.js"
112218
- }
112219
- },
112220
- {
112221
- "name": "name",
112222
- "description": "Name of the form element. Will be read from name attribute.",
112223
- "type": {
112224
- "text": "string"
112225
- },
112226
- "fieldName": "name",
112227
- "inheritedFrom": {
112228
- "name": "SbbFormAssociatedMixin",
112229
- "module": "core/mixins/form-associated-mixin.js"
112230
- }
112231
112231
  }
112232
112232
  ]
112233
112233
  }
@@ -112235,10 +112235,10 @@
112235
112235
  "exports": [
112236
112236
  {
112237
112237
  "kind": "js",
112238
- "name": "SbbFormFieldClearElement",
112238
+ "name": "SbbFormFieldTextCounterElement",
112239
112239
  "declaration": {
112240
- "name": "SbbFormFieldClearElement",
112241
- "module": "form-field/form-field-clear/form-field-clear.component.js"
112240
+ "name": "SbbFormFieldTextCounterElement",
112241
+ "module": "form-field/form-field-text-counter/form-field-text-counter.component.js"
112242
112242
  }
112243
112243
  }
112244
112244
  ]
@@ -119351,15 +119351,15 @@
119351
119351
  },
119352
119352
  {
119353
119353
  "kind": "javascript-module",
119354
- "path": "link/block-link-static/block-link-static.component.js",
119354
+ "path": "link/block-link-button/block-link-button.component.js",
119355
119355
  "declarations": [
119356
119356
  {
119357
119357
  "kind": "class",
119358
- "description": "It displays a static link enhanced with the SBB Design.",
119359
- "name": "SbbBlockLinkStaticElement",
119358
+ "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
119359
+ "name": "SbbBlockLinkButtonElement",
119360
119360
  "slots": [
119361
119361
  {
119362
- "description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
119362
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
119363
119363
  "name": ""
119364
119364
  },
119365
119365
  {
@@ -119381,7 +119381,7 @@
119381
119381
  "name": "SbbElement",
119382
119382
  "module": "core/base-elements/element.js"
119383
119383
  },
119384
- "default": "'sbb-block-link-static'"
119384
+ "default": "'sbb-block-link-button'"
119385
119385
  },
119386
119386
  {
119387
119387
  "kind": "field",
@@ -119524,6 +119524,22 @@
119524
119524
  "module": "icon/icon-name-mixin.js"
119525
119525
  }
119526
119526
  },
119527
+ {
119528
+ "kind": "field",
119529
+ "name": "disabledInteractive",
119530
+ "type": {
119531
+ "text": "boolean"
119532
+ },
119533
+ "privacy": "public",
119534
+ "default": "false",
119535
+ "description": "Whether the button should be aria-disabled but stay interactive.",
119536
+ "attribute": "disabled-interactive",
119537
+ "reflects": true,
119538
+ "inheritedFrom": {
119539
+ "name": "SbbDisabledInteractiveMixin",
119540
+ "module": "core/mixins/disabled-mixin.js"
119541
+ }
119542
+ },
119527
119543
  {
119528
119544
  "kind": "field",
119529
119545
  "name": "disabled",
@@ -119570,206 +119586,243 @@
119570
119586
  },
119571
119587
  {
119572
119588
  "kind": "field",
119573
- "name": "maybeDisabled",
119589
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
119574
119590
  "type": {
119575
- "text": "boolean | undefined"
119591
+ "text": "array"
119576
119592
  },
119577
- "privacy": "protected",
119593
+ "privacy": "private",
119578
119594
  "readonly": true,
119595
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
119579
119596
  "inheritedFrom": {
119580
- "name": "SbbActionBaseElement",
119581
- "module": "core/base-elements/action-base-element.js"
119597
+ "name": "SbbButtonBaseElement",
119598
+ "module": "core/base-elements/button-base-element.js"
119582
119599
  }
119583
119600
  },
119584
119601
  {
119585
119602
  "kind": "field",
119586
- "name": "maybeDisabledInteractive",
119603
+ "name": "value",
119587
119604
  "type": {
119588
- "text": "boolean | undefined"
119605
+ "text": "string"
119589
119606
  },
119590
- "privacy": "protected",
119591
- "readonly": true,
119607
+ "privacy": "public",
119592
119608
  "inheritedFrom": {
119593
- "name": "SbbActionBaseElement",
119594
- "module": "core/base-elements/action-base-element.js"
119609
+ "name": "SbbButtonBaseElement",
119610
+ "module": "core/base-elements/button-base-element.js"
119611
+ },
119612
+ "default": "''",
119613
+ "description": "Value of the form element.",
119614
+ "attribute": "value"
119615
+ },
119616
+ {
119617
+ "kind": "field",
119618
+ "name": "type",
119619
+ "privacy": "public",
119620
+ "description": "The type attribute to use for the button.",
119621
+ "default": "'button'",
119622
+ "type": {
119623
+ "text": "SbbButtonType"
119624
+ },
119625
+ "attribute": "type",
119626
+ "inheritedFrom": {
119627
+ "name": "SbbButtonBaseElement",
119628
+ "module": "core/base-elements/button-base-element.js"
119629
+ }
119630
+ },
119631
+ {
119632
+ "kind": "field",
119633
+ "name": "form",
119634
+ "type": {
119635
+ "text": "HTMLFormElement | null"
119636
+ },
119637
+ "privacy": "public",
119638
+ "description": "The `<form>` element to associate the button with.",
119639
+ "inheritedFrom": {
119640
+ "name": "SbbButtonBaseElement",
119641
+ "module": "core/base-elements/button-base-element.js"
119642
+ },
119643
+ "attribute": "form"
119644
+ },
119645
+ {
119646
+ "kind": "field",
119647
+ "name": "_formId",
119648
+ "type": {
119649
+ "text": "string"
119650
+ },
119651
+ "privacy": "private",
119652
+ "default": "''",
119653
+ "inheritedFrom": {
119654
+ "name": "SbbButtonBaseElement",
119655
+ "module": "core/base-elements/button-base-element.js"
119656
+ }
119657
+ },
119658
+ {
119659
+ "kind": "field",
119660
+ "name": "_handleButtonClick",
119661
+ "privacy": "private",
119662
+ "inheritedFrom": {
119663
+ "name": "SbbButtonBaseElement",
119664
+ "module": "core/base-elements/button-base-element.js"
119595
119665
  }
119596
119666
  },
119597
119667
  {
119598
119668
  "kind": "method",
119599
- "name": "setupBaseEventHandlers",
119600
- "privacy": "protected",
119669
+ "name": "_requestSubmit",
119670
+ "privacy": "private",
119601
119671
  "return": {
119602
119672
  "type": {
119603
119673
  "text": "void"
119604
119674
  }
119605
119675
  },
119676
+ "parameters": [
119677
+ {
119678
+ "name": "form",
119679
+ "type": {
119680
+ "text": "HTMLFormElement"
119681
+ }
119682
+ }
119683
+ ],
119606
119684
  "inheritedFrom": {
119607
- "name": "SbbActionBaseElement",
119608
- "module": "core/base-elements/action-base-element.js"
119685
+ "name": "SbbButtonBaseElement",
119686
+ "module": "core/base-elements/button-base-element.js"
119609
119687
  }
119610
119688
  },
119611
119689
  {
119612
119690
  "kind": "field",
119613
- "name": "['_$sbbElement$']",
119614
- "type": {
119615
- "text": "boolean"
119616
- },
119617
- "privacy": "public",
119618
- "static": true,
119619
- "default": "true",
119691
+ "name": "_formKeyDown",
119692
+ "privacy": "private",
119620
119693
  "inheritedFrom": {
119621
- "name": "SbbElement",
119622
- "module": "core/base-elements/element.js"
119694
+ "name": "SbbButtonBaseElement",
119695
+ "module": "core/base-elements/button-base-element.js"
119623
119696
  }
119624
119697
  },
119625
119698
  {
119626
119699
  "kind": "field",
119627
- "name": "role",
119700
+ "name": "formAssociated",
119628
119701
  "type": {
119629
- "text": "ElementInternals['role'] | undefined"
119702
+ "text": "boolean"
119630
119703
  },
119631
119704
  "privacy": "public",
119632
119705
  "static": true,
119706
+ "default": "true",
119633
119707
  "inheritedFrom": {
119634
- "name": "SbbElement",
119635
- "module": "core/base-elements/element.js"
119708
+ "name": "SbbFormAssociatedMixin",
119709
+ "module": "core/mixins/form-associated-mixin.js"
119636
119710
  }
119637
119711
  },
119638
119712
  {
119639
119713
  "kind": "field",
119640
- "name": "_controllers",
119714
+ "name": "name",
119715
+ "privacy": "public",
119716
+ "description": "Name of the form element. Will be read from name attribute.",
119641
119717
  "type": {
119642
- "text": "Set<SbbReactiveController> | undefined"
119718
+ "text": "string"
119643
119719
  },
119644
- "privacy": "private",
119720
+ "attribute": "name",
119645
119721
  "inheritedFrom": {
119646
- "name": "SbbElement",
119647
- "module": "core/base-elements/element.js"
119722
+ "name": "SbbFormAssociatedMixin",
119723
+ "module": "core/mixins/form-associated-mixin.js"
119648
119724
  }
119649
119725
  },
119650
119726
  {
119651
119727
  "kind": "field",
119652
- "name": "_hydrationRequired",
119728
+ "name": "validity",
119653
119729
  "type": {
119654
- "text": "boolean"
119730
+ "text": "ValidityState"
119655
119731
  },
119656
- "privacy": "private",
119657
- "default": "!!this.shadowRoot",
119732
+ "privacy": "public",
119733
+ "description": "Returns the ValidityState object for this element.",
119734
+ "readonly": true,
119658
119735
  "inheritedFrom": {
119659
- "name": "SbbElement",
119660
- "module": "core/base-elements/element.js"
119736
+ "name": "SbbFormAssociatedMixin",
119737
+ "module": "core/mixins/form-associated-mixin.js"
119661
119738
  }
119662
119739
  },
119663
119740
  {
119664
119741
  "kind": "field",
119665
- "name": "_hydrationComplete",
119666
- "privacy": "private",
119667
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
119742
+ "name": "validationMessage",
119743
+ "type": {
119744
+ "text": "string"
119745
+ },
119746
+ "privacy": "public",
119747
+ "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.",
119748
+ "readonly": true,
119668
119749
  "inheritedFrom": {
119669
- "name": "SbbElement",
119670
- "module": "core/base-elements/element.js"
119750
+ "name": "SbbFormAssociatedMixin",
119751
+ "module": "core/mixins/form-associated-mixin.js"
119671
119752
  }
119672
119753
  },
119673
119754
  {
119674
119755
  "kind": "field",
119675
- "name": "_resolveHydration",
119756
+ "name": "willValidate",
119676
119757
  "type": {
119677
- "text": "(hydrationRequired: boolean) => void"
119758
+ "text": "boolean"
119678
119759
  },
119679
- "privacy": "private",
119760
+ "privacy": "public",
119761
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
119762
+ "readonly": true,
119680
119763
  "inheritedFrom": {
119681
- "name": "SbbElement",
119682
- "module": "core/base-elements/element.js"
119764
+ "name": "SbbFormAssociatedMixin",
119765
+ "module": "core/mixins/form-associated-mixin.js"
119683
119766
  }
119684
119767
  },
119685
119768
  {
119686
119769
  "kind": "field",
119687
- "name": "_textObserver",
119688
- "type": {
119689
- "text": "MutationObserver | undefined"
119690
- },
119770
+ "name": "_validityStates",
119691
119771
  "privacy": "private",
119772
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
119692
119773
  "inheritedFrom": {
119693
- "name": "SbbElement",
119694
- "module": "core/base-elements/element.js"
119774
+ "name": "SbbFormAssociatedMixin",
119775
+ "module": "core/mixins/form-associated-mixin.js"
119695
119776
  }
119696
119777
  },
119697
119778
  {
119698
119779
  "kind": "field",
119699
- "name": "hydrationRequired",
119780
+ "name": "formDisabled",
119700
119781
  "type": {
119701
119782
  "text": "boolean"
119702
119783
  },
119703
119784
  "privacy": "protected",
119704
- "description": "Returns whether hydration is required and not completed.",
119705
- "readonly": true,
119785
+ "default": "false",
119786
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
119706
119787
  "inheritedFrom": {
119707
- "name": "SbbElement",
119708
- "module": "core/base-elements/element.js"
119709
- },
119710
- "default": "!!this.shadowRoot"
119788
+ "name": "SbbFormAssociatedMixin",
119789
+ "module": "core/mixins/form-associated-mixin.js"
119790
+ }
119711
119791
  },
119712
119792
  {
119713
119793
  "kind": "method",
119714
- "name": "toggleState",
119715
- "privacy": "protected",
119794
+ "name": "checkValidity",
119795
+ "privacy": "public",
119716
119796
  "return": {
119717
119797
  "type": {
119718
- "text": "void"
119798
+ "text": "boolean"
119719
119799
  }
119720
119800
  },
119721
- "parameters": [
119722
- {
119723
- "name": "value",
119724
- "type": {
119725
- "text": "string"
119726
- }
119727
- },
119728
- {
119729
- "name": "force",
119730
- "optional": true,
119731
- "type": {
119732
- "text": "boolean"
119733
- }
119734
- }
119735
- ],
119801
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
119736
119802
  "inheritedFrom": {
119737
- "name": "SbbElement",
119738
- "module": "core/base-elements/element.js"
119803
+ "name": "SbbFormAssociatedMixin",
119804
+ "module": "core/mixins/form-associated-mixin.js"
119739
119805
  }
119740
119806
  },
119741
119807
  {
119742
119808
  "kind": "method",
119743
- "name": "_slotchangeHandler",
119744
- "privacy": "private",
119809
+ "name": "reportValidity",
119810
+ "privacy": "public",
119745
119811
  "return": {
119746
119812
  "type": {
119747
- "text": "void"
119813
+ "text": "boolean"
119748
119814
  }
119749
119815
  },
119750
- "parameters": [
119751
- {
119752
- "name": "event",
119753
- "type": {
119754
- "text": "Event"
119755
- }
119756
- },
119757
- {
119758
- "name": "slot",
119759
- "type": {
119760
- "text": "HTMLSlotElement"
119761
- }
119762
- }
119763
- ],
119816
+ "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.",
119764
119817
  "inheritedFrom": {
119765
- "name": "SbbElement",
119766
- "module": "core/base-elements/element.js"
119818
+ "name": "SbbFormAssociatedMixin",
119819
+ "module": "core/mixins/form-associated-mixin.js"
119767
119820
  }
119768
119821
  },
119769
119822
  {
119770
119823
  "kind": "method",
119771
- "name": "_handleSlotChangeForSlottedState",
119772
- "privacy": "private",
119824
+ "name": "setCustomValidity",
119825
+ "privacy": "public",
119773
119826
  "return": {
119774
119827
  "type": {
119775
119828
  "text": "void"
@@ -119777,43 +119830,65 @@
119777
119830
  },
119778
119831
  "parameters": [
119779
119832
  {
119780
- "name": "slot",
119833
+ "name": "message",
119781
119834
  "type": {
119782
- "text": "HTMLSlotElement"
119835
+ "text": "string"
119783
119836
  }
119784
119837
  }
119785
119838
  ],
119839
+ "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.",
119786
119840
  "inheritedFrom": {
119787
- "name": "SbbElement",
119788
- "module": "core/base-elements/element.js"
119841
+ "name": "SbbFormAssociatedMixin",
119842
+ "module": "core/mixins/form-associated-mixin.js"
119789
119843
  }
119790
119844
  },
119791
119845
  {
119792
119846
  "kind": "method",
119793
- "name": "_updateSlottedState",
119847
+ "name": "_hasDisabledAncestor",
119794
119848
  "privacy": "private",
119795
119849
  "return": {
119796
119850
  "type": {
119797
- "text": "void"
119851
+ "text": "boolean"
119798
119852
  }
119799
119853
  },
119800
- "parameters": [
119801
- {
119802
- "name": "slot",
119803
- "type": {
119804
- "text": "HTMLSlotElement"
119805
- }
119854
+ "inheritedFrom": {
119855
+ "name": "SbbFormAssociatedMixin",
119856
+ "module": "core/mixins/form-associated-mixin.js"
119857
+ }
119858
+ },
119859
+ {
119860
+ "kind": "method",
119861
+ "name": "updateFormValue",
119862
+ "privacy": "protected",
119863
+ "return": {
119864
+ "type": {
119865
+ "text": "void"
119806
119866
  }
119807
- ],
119867
+ },
119868
+ "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",
119808
119869
  "inheritedFrom": {
119809
- "name": "SbbElement",
119810
- "module": "core/base-elements/element.js"
119870
+ "name": "SbbFormAssociatedMixin",
119871
+ "module": "core/mixins/form-associated-mixin.js"
119811
119872
  }
119812
119873
  },
119813
119874
  {
119814
119875
  "kind": "method",
119815
- "name": "_observeTextNodesInSlot",
119816
- "privacy": "private",
119876
+ "name": "formState",
119877
+ "privacy": "protected",
119878
+ "return": {
119879
+ "type": {
119880
+ "text": "FormRestoreState"
119881
+ }
119882
+ },
119883
+ "inheritedFrom": {
119884
+ "name": "SbbFormAssociatedMixin",
119885
+ "module": "core/mixins/form-associated-mixin.js"
119886
+ }
119887
+ },
119888
+ {
119889
+ "kind": "method",
119890
+ "name": "setValidityFlag",
119891
+ "privacy": "protected",
119817
119892
  "return": {
119818
119893
  "type": {
119819
119894
  "text": "void"
@@ -119821,442 +119896,303 @@
119821
119896
  },
119822
119897
  "parameters": [
119823
119898
  {
119824
- "name": "slot",
119899
+ "name": "flag",
119825
119900
  "type": {
119826
- "text": "HTMLSlotElement"
119901
+ "text": "T"
119902
+ }
119903
+ },
119904
+ {
119905
+ "name": "message",
119906
+ "type": {
119907
+ "text": "string"
119908
+ }
119909
+ },
119910
+ {
119911
+ "name": "flagValue",
119912
+ "optional": true,
119913
+ "type": {
119914
+ "text": "ValidityStateFlags[T]"
119827
119915
  }
119828
119916
  }
119829
119917
  ],
119918
+ "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).",
119830
119919
  "inheritedFrom": {
119831
- "name": "SbbElement",
119832
- "module": "core/base-elements/element.js"
119920
+ "name": "SbbFormAssociatedMixin",
119921
+ "module": "core/mixins/form-associated-mixin.js"
119833
119922
  }
119834
119923
  },
119835
119924
  {
119836
119925
  "kind": "method",
119837
- "name": "_hasSlottedContent",
119838
- "privacy": "private",
119926
+ "name": "removeValidityFlag",
119927
+ "privacy": "protected",
119839
119928
  "return": {
119840
119929
  "type": {
119841
- "text": "boolean"
119930
+ "text": "void"
119842
119931
  }
119843
119932
  },
119844
119933
  "parameters": [
119845
119934
  {
119846
- "name": "slot",
119935
+ "name": "flag",
119847
119936
  "type": {
119848
- "text": "HTMLSlotElement"
119937
+ "text": "T"
119849
119938
  }
119850
119939
  }
119851
119940
  ],
119941
+ "description": "Removes the validity state flag entry and updates validity state.",
119852
119942
  "inheritedFrom": {
119853
- "name": "SbbElement",
119854
- "module": "core/base-elements/element.js"
119855
- }
119856
- }
119857
- ],
119858
- "mixins": [
119859
- {
119860
- "name": "SbbBlockLinkCommonElementMixin",
119861
- "module": "link/common/block-link-common.js"
119862
- },
119863
- {
119864
- "name": "SbbDisabledMixin",
119865
- "module": "core.js"
119866
- }
119867
- ],
119868
- "superclass": {
119869
- "name": "SbbActionBaseElement",
119870
- "module": "core.js"
119871
- },
119872
- "tagName": "sbb-block-link-static",
119873
- "customElement": true,
119874
- "attributes": [
119875
- {
119876
- "name": "size",
119877
- "type": {
119878
- "text": "SbbLinkSize"
119879
- },
119880
- "description": "Size variant, either xs, s or m.",
119881
- "default": "'s' / 'xs' (lean)",
119882
- "fieldName": "size",
119883
- "inheritedFrom": {
119884
- "name": "SbbBlockLinkCommonElementMixin",
119885
- "module": "link/common/block-link-common.js"
119943
+ "name": "SbbFormAssociatedMixin",
119944
+ "module": "core/mixins/form-associated-mixin.js"
119886
119945
  }
119887
119946
  },
119888
119947
  {
119889
- "name": "icon-placement",
119890
- "type": {
119891
- "text": "SbbIconPlacement"
119948
+ "kind": "method",
119949
+ "name": "validate",
119950
+ "privacy": "protected",
119951
+ "return": {
119952
+ "type": {
119953
+ "text": "void"
119954
+ }
119892
119955
  },
119893
- "default": "'start'",
119894
- "description": "Moves the icon to the end of the component if set to true.",
119895
- "fieldName": "iconPlacement",
119956
+ "description": "To be called whenever the current element needs to be validated.",
119896
119957
  "inheritedFrom": {
119897
- "name": "SbbBlockLinkCommonElementMixin",
119898
- "module": "link/common/block-link-common.js"
119958
+ "name": "SbbFormAssociatedMixin",
119959
+ "module": "core/mixins/form-associated-mixin.js"
119899
119960
  }
119900
119961
  },
119901
119962
  {
119902
- "name": "icon-name",
119903
- "type": {
119904
- "text": "string"
119963
+ "kind": "method",
119964
+ "name": "shouldValidate",
119965
+ "privacy": "protected",
119966
+ "return": {
119967
+ "type": {
119968
+ "text": "boolean"
119969
+ }
119905
119970
  },
119906
- "default": "''",
119907
- "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.",
119908
- "fieldName": "iconName",
119971
+ "parameters": [
119972
+ {
119973
+ "name": "name",
119974
+ "type": {
119975
+ "text": "PropertyKey | undefined"
119976
+ }
119977
+ }
119978
+ ],
119979
+ "description": "Whether validation should be run on a property change with the given name.",
119909
119980
  "inheritedFrom": {
119910
- "name": "SbbIconNameMixin",
119911
- "module": "icon/icon-name-mixin.js"
119981
+ "name": "SbbFormAssociatedMixin",
119982
+ "module": "core/mixins/form-associated-mixin.js"
119912
119983
  }
119913
119984
  },
119914
119985
  {
119915
- "name": "disabled",
119916
- "description": "Whether the component is disabled.",
119917
- "default": "false",
119918
- "type": {
119919
- "text": "boolean"
119986
+ "kind": "method",
119987
+ "name": "_setInternalValidity",
119988
+ "privacy": "private",
119989
+ "return": {
119990
+ "type": {
119991
+ "text": "void"
119992
+ }
119920
119993
  },
119921
- "fieldName": "disabled",
119922
119994
  "inheritedFrom": {
119923
- "name": "SbbDisabledMixin",
119924
- "module": "core/mixins/disabled-mixin.js"
119995
+ "name": "SbbFormAssociatedMixin",
119996
+ "module": "core/mixins/form-associated-mixin.js"
119925
119997
  }
119926
- }
119927
- ]
119928
- }
119929
- ],
119930
- "exports": [
119931
- {
119932
- "kind": "js",
119933
- "name": "SbbBlockLinkStaticElement",
119934
- "declaration": {
119935
- "name": "SbbBlockLinkStaticElement",
119936
- "module": "link/block-link-static/block-link-static.component.js"
119937
- }
119938
- }
119939
- ]
119940
- },
119941
- {
119942
- "kind": "javascript-module",
119943
- "path": "link/block-link-button/block-link-button.component.js",
119944
- "declarations": [
119945
- {
119946
- "kind": "class",
119947
- "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
119948
- "name": "SbbBlockLinkButtonElement",
119949
- "slots": [
119950
- {
119951
- "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
119952
- "name": ""
119953
119998
  },
119954
- {
119955
- "description": "Slot used to display the icon, if one is set.",
119956
- "name": "icon"
119957
- }
119958
- ],
119959
- "members": [
119960
119999
  {
119961
120000
  "kind": "field",
119962
- "name": "elementName",
120001
+ "name": "role",
119963
120002
  "type": {
119964
- "text": "string"
120003
+ "text": "ElementInternals['role']"
119965
120004
  },
119966
120005
  "privacy": "public",
119967
120006
  "static": true,
119968
- "readonly": true,
119969
120007
  "inheritedFrom": {
119970
120008
  "name": "SbbElement",
119971
120009
  "module": "core/base-elements/element.js"
119972
120010
  },
119973
- "default": "'sbb-block-link-button'"
120011
+ "readonly": true,
120012
+ "default": "'button'"
119974
120013
  },
119975
120014
  {
119976
120015
  "kind": "field",
119977
- "name": "styles",
119978
- "type": {
119979
- "text": "CSSResultGroup"
119980
- },
119981
- "privacy": "public",
119982
- "static": true,
119983
- "default": "[super.styles, unsafeCSS(blockStyle)]",
120016
+ "name": "_preventScrollOnSpaceKeydown",
120017
+ "privacy": "private",
120018
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
120019
+ "parameters": [
120020
+ {
120021
+ "description": "The origin event.",
120022
+ "name": "event"
120023
+ }
120024
+ ],
119984
120025
  "inheritedFrom": {
119985
- "name": "SbbLinkCommonElementMixin",
119986
- "module": "link/common/link-common.js"
120026
+ "name": "SbbButtonLikeBaseElement",
120027
+ "module": "core/base-elements/button-base-element.js"
119987
120028
  }
119988
120029
  },
119989
120030
  {
119990
120031
  "kind": "field",
119991
- "name": "size",
119992
- "type": {
119993
- "text": "SbbLinkSize"
119994
- },
119995
- "privacy": "public",
119996
- "description": "Size variant, either xs, s or m.",
119997
- "default": "'s' / 'xs' (lean)",
119998
- "attribute": "size",
119999
- "reflects": true,
120032
+ "name": "_removeActiveMarker",
120033
+ "privacy": "private",
120000
120034
  "inheritedFrom": {
120001
- "name": "SbbBlockLinkCommonElementMixin",
120002
- "module": "link/common/block-link-common.js"
120035
+ "name": "SbbButtonLikeBaseElement",
120036
+ "module": "core/base-elements/button-base-element.js"
120003
120037
  }
120004
120038
  },
120005
120039
  {
120006
120040
  "kind": "field",
120007
- "name": "iconPlacement",
120008
- "type": {
120009
- "text": "SbbIconPlacement"
120010
- },
120011
- "privacy": "public",
120012
- "default": "'start'",
120013
- "description": "Moves the icon to the end of the component if set to true.",
120014
- "attribute": "icon-placement",
120015
- "reflects": true,
120016
- "inheritedFrom": {
120017
- "name": "SbbBlockLinkCommonElementMixin",
120018
- "module": "link/common/block-link-common.js"
120019
- }
120020
- },
120021
- {
120022
- "kind": "method",
120023
- "name": "renderTemplate",
120024
- "privacy": "protected",
120025
- "return": {
120026
- "type": {
120027
- "text": "TemplateResult"
120041
+ "name": "_dispatchClickEventOnSpaceKeyup",
120042
+ "privacy": "private",
120043
+ "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.",
120044
+ "parameters": [
120045
+ {
120046
+ "description": "The origin event.",
120047
+ "name": "event"
120028
120048
  }
120029
- },
120030
- "description": "Override this method to render the component template.",
120049
+ ],
120031
120050
  "inheritedFrom": {
120032
- "name": "SbbActionBaseElement",
120033
- "module": "core/base-elements/action-base-element.js"
120051
+ "name": "SbbButtonLikeBaseElement",
120052
+ "module": "core/base-elements/button-base-element.js"
120034
120053
  }
120035
120054
  },
120036
120055
  {
120037
120056
  "kind": "field",
120038
- "name": "elementDependencies",
120039
- "type": {
120040
- "text": "SbbElementType[]"
120041
- },
120042
- "privacy": "public",
120043
- "static": true,
120057
+ "name": "_dispatchClickEvent",
120058
+ "privacy": "private",
120044
120059
  "inheritedFrom": {
120045
- "name": "SbbElement",
120046
- "module": "core/base-elements/element.js"
120047
- },
120048
- "default": "[SbbIconElement]"
120060
+ "name": "SbbButtonLikeBaseElement",
120061
+ "module": "core/base-elements/button-base-element.js"
120062
+ }
120049
120063
  },
120050
120064
  {
120051
120065
  "kind": "field",
120052
- "name": "iconName",
120066
+ "name": "maybeDisabled",
120053
120067
  "type": {
120054
- "text": "string"
120068
+ "text": "boolean | undefined"
120055
120069
  },
120056
- "privacy": "public",
120057
- "default": "''",
120058
- "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.",
120059
- "attribute": "icon-name",
120060
- "inheritedFrom": {
120061
- "name": "SbbIconNameMixin",
120062
- "module": "icon/icon-name-mixin.js"
120063
- }
120064
- },
120065
- {
120066
- "kind": "method",
120067
- "name": "renderIconSlot",
120068
120070
  "privacy": "protected",
120069
- "return": {
120070
- "type": {
120071
- "text": "TemplateResult"
120072
- }
120073
- },
120074
- "parameters": [
120075
- {
120076
- "name": "classname",
120077
- "optional": true,
120078
- "type": {
120079
- "text": "string"
120080
- }
120081
- }
120082
- ],
120071
+ "readonly": true,
120083
120072
  "inheritedFrom": {
120084
- "name": "SbbIconNameMixin",
120085
- "module": "icon/icon-name-mixin.js"
120073
+ "name": "SbbActionBaseElement",
120074
+ "module": "core/base-elements/action-base-element.js"
120086
120075
  }
120087
120076
  },
120088
120077
  {
120089
- "kind": "method",
120090
- "name": "renderIconName",
120091
- "privacy": "protected",
120092
- "return": {
120093
- "type": {
120094
- "text": "string"
120095
- }
120078
+ "kind": "field",
120079
+ "name": "maybeDisabledInteractive",
120080
+ "type": {
120081
+ "text": "boolean | undefined"
120096
120082
  },
120083
+ "privacy": "protected",
120084
+ "readonly": true,
120097
120085
  "inheritedFrom": {
120098
- "name": "SbbIconNameMixin",
120099
- "module": "icon/icon-name-mixin.js"
120086
+ "name": "SbbActionBaseElement",
120087
+ "module": "core/base-elements/action-base-element.js"
120100
120088
  }
120101
120089
  },
120102
120090
  {
120103
120091
  "kind": "method",
120104
- "name": "_renderIconName",
120105
- "privacy": "private",
120092
+ "name": "setupBaseEventHandlers",
120093
+ "privacy": "protected",
120106
120094
  "return": {
120107
120095
  "type": {
120108
- "text": "string"
120096
+ "text": "void"
120109
120097
  }
120110
120098
  },
120111
120099
  "inheritedFrom": {
120112
- "name": "SbbIconNameMixin",
120113
- "module": "icon/icon-name-mixin.js"
120100
+ "name": "SbbActionBaseElement",
120101
+ "module": "core/base-elements/action-base-element.js"
120114
120102
  }
120115
120103
  },
120116
120104
  {
120117
120105
  "kind": "field",
120118
- "name": "disabledInteractive",
120106
+ "name": "['_$sbbElement$']",
120119
120107
  "type": {
120120
120108
  "text": "boolean"
120121
120109
  },
120122
120110
  "privacy": "public",
120123
- "default": "false",
120124
- "description": "Whether the button should be aria-disabled but stay interactive.",
120125
- "attribute": "disabled-interactive",
120126
- "reflects": true,
120111
+ "static": true,
120112
+ "default": "true",
120127
120113
  "inheritedFrom": {
120128
- "name": "SbbDisabledInteractiveMixin",
120129
- "module": "core/mixins/disabled-mixin.js"
120114
+ "name": "SbbElement",
120115
+ "module": "core/base-elements/element.js"
120130
120116
  }
120131
120117
  },
120132
120118
  {
120133
120119
  "kind": "field",
120134
- "name": "disabled",
120135
- "privacy": "public",
120136
- "description": "Whether the component is disabled.",
120137
- "default": "false",
120120
+ "name": "_controllers",
120138
120121
  "type": {
120139
- "text": "boolean"
120122
+ "text": "Set<SbbReactiveController> | undefined"
120140
120123
  },
120141
- "attribute": "disabled",
120142
- "reflects": true,
120124
+ "privacy": "private",
120143
120125
  "inheritedFrom": {
120144
- "name": "SbbDisabledMixin",
120145
- "module": "core/mixins/disabled-mixin.js"
120126
+ "name": "SbbElement",
120127
+ "module": "core/base-elements/element.js"
120146
120128
  }
120147
120129
  },
120148
120130
  {
120149
120131
  "kind": "field",
120150
- "name": "#disabled",
120151
- "privacy": "private",
120132
+ "name": "_hydrationRequired",
120152
120133
  "type": {
120153
120134
  "text": "boolean"
120154
120135
  },
120155
- "default": "false",
120156
- "inheritedFrom": {
120157
- "name": "SbbDisabledMixin",
120158
- "module": "core/mixins/disabled-mixin.js"
120159
- }
120160
- },
120161
- {
120162
- "kind": "method",
120163
- "name": "isDisabledExternally",
120164
- "privacy": "protected",
120165
- "return": {
120166
- "type": {
120167
- "text": "boolean"
120168
- }
120169
- },
120170
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
120136
+ "privacy": "private",
120137
+ "default": "!!this.shadowRoot",
120171
120138
  "inheritedFrom": {
120172
- "name": "SbbDisabledMixin",
120173
- "module": "core/mixins/disabled-mixin.js"
120139
+ "name": "SbbElement",
120140
+ "module": "core/base-elements/element.js"
120174
120141
  }
120175
120142
  },
120176
120143
  {
120177
120144
  "kind": "field",
120178
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
120179
- "type": {
120180
- "text": "array"
120181
- },
120145
+ "name": "_hydrationComplete",
120182
120146
  "privacy": "private",
120183
- "readonly": true,
120184
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
120147
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
120185
120148
  "inheritedFrom": {
120186
- "name": "SbbButtonBaseElement",
120187
- "module": "core/base-elements/button-base-element.js"
120149
+ "name": "SbbElement",
120150
+ "module": "core/base-elements/element.js"
120188
120151
  }
120189
120152
  },
120190
120153
  {
120191
120154
  "kind": "field",
120192
- "name": "value",
120155
+ "name": "_resolveHydration",
120193
120156
  "type": {
120194
- "text": "string"
120157
+ "text": "(hydrationRequired: boolean) => void"
120195
120158
  },
120196
- "privacy": "public",
120159
+ "privacy": "private",
120197
120160
  "inheritedFrom": {
120198
- "name": "SbbButtonBaseElement",
120199
- "module": "core/base-elements/button-base-element.js"
120200
- },
120201
- "default": "''",
120202
- "description": "Value of the form element.",
120203
- "attribute": "value"
120161
+ "name": "SbbElement",
120162
+ "module": "core/base-elements/element.js"
120163
+ }
120204
120164
  },
120205
120165
  {
120206
120166
  "kind": "field",
120207
- "name": "type",
120208
- "privacy": "public",
120209
- "description": "The type attribute to use for the button.",
120210
- "default": "'button'",
120167
+ "name": "_textObserver",
120211
120168
  "type": {
120212
- "text": "SbbButtonType"
120169
+ "text": "MutationObserver | undefined"
120213
120170
  },
120214
- "attribute": "type",
120171
+ "privacy": "private",
120215
120172
  "inheritedFrom": {
120216
- "name": "SbbButtonBaseElement",
120217
- "module": "core/base-elements/button-base-element.js"
120173
+ "name": "SbbElement",
120174
+ "module": "core/base-elements/element.js"
120218
120175
  }
120219
120176
  },
120220
120177
  {
120221
120178
  "kind": "field",
120222
- "name": "form",
120179
+ "name": "hydrationRequired",
120223
120180
  "type": {
120224
- "text": "HTMLFormElement | null"
120181
+ "text": "boolean"
120225
120182
  },
120226
- "privacy": "public",
120227
- "description": "The `<form>` element to associate the button with.",
120183
+ "privacy": "protected",
120184
+ "description": "Returns whether hydration is required and not completed.",
120185
+ "readonly": true,
120228
120186
  "inheritedFrom": {
120229
- "name": "SbbButtonBaseElement",
120230
- "module": "core/base-elements/button-base-element.js"
120231
- },
120232
- "attribute": "form"
120233
- },
120234
- {
120235
- "kind": "field",
120236
- "name": "_formId",
120237
- "type": {
120238
- "text": "string"
120187
+ "name": "SbbElement",
120188
+ "module": "core/base-elements/element.js"
120239
120189
  },
120240
- "privacy": "private",
120241
- "default": "''",
120242
- "inheritedFrom": {
120243
- "name": "SbbButtonBaseElement",
120244
- "module": "core/base-elements/button-base-element.js"
120245
- }
120246
- },
120247
- {
120248
- "kind": "field",
120249
- "name": "_handleButtonClick",
120250
- "privacy": "private",
120251
- "inheritedFrom": {
120252
- "name": "SbbButtonBaseElement",
120253
- "module": "core/base-elements/button-base-element.js"
120254
- }
120190
+ "default": "!!this.shadowRoot"
120255
120191
  },
120256
120192
  {
120257
120193
  "kind": "method",
120258
- "name": "_requestSubmit",
120259
- "privacy": "private",
120194
+ "name": "toggleState",
120195
+ "privacy": "protected",
120260
120196
  "return": {
120261
120197
  "type": {
120262
120198
  "text": "void"
@@ -120264,390 +120200,504 @@
120264
120200
  },
120265
120201
  "parameters": [
120266
120202
  {
120267
- "name": "form",
120203
+ "name": "value",
120268
120204
  "type": {
120269
- "text": "HTMLFormElement"
120205
+ "text": "string"
120206
+ }
120207
+ },
120208
+ {
120209
+ "name": "force",
120210
+ "optional": true,
120211
+ "type": {
120212
+ "text": "boolean"
120270
120213
  }
120271
120214
  }
120272
120215
  ],
120273
120216
  "inheritedFrom": {
120274
- "name": "SbbButtonBaseElement",
120275
- "module": "core/base-elements/button-base-element.js"
120217
+ "name": "SbbElement",
120218
+ "module": "core/base-elements/element.js"
120276
120219
  }
120277
120220
  },
120278
120221
  {
120279
- "kind": "field",
120280
- "name": "_formKeyDown",
120222
+ "kind": "method",
120223
+ "name": "_slotchangeHandler",
120281
120224
  "privacy": "private",
120282
- "inheritedFrom": {
120283
- "name": "SbbButtonBaseElement",
120284
- "module": "core/base-elements/button-base-element.js"
120285
- }
120286
- },
120287
- {
120288
- "kind": "field",
120289
- "name": "formAssociated",
120290
- "type": {
120291
- "text": "boolean"
120225
+ "return": {
120226
+ "type": {
120227
+ "text": "void"
120228
+ }
120292
120229
  },
120293
- "privacy": "public",
120294
- "static": true,
120295
- "default": "true",
120230
+ "parameters": [
120231
+ {
120232
+ "name": "event",
120233
+ "type": {
120234
+ "text": "Event"
120235
+ }
120236
+ },
120237
+ {
120238
+ "name": "slot",
120239
+ "type": {
120240
+ "text": "HTMLSlotElement"
120241
+ }
120242
+ }
120243
+ ],
120296
120244
  "inheritedFrom": {
120297
- "name": "SbbFormAssociatedMixin",
120298
- "module": "core/mixins/form-associated-mixin.js"
120245
+ "name": "SbbElement",
120246
+ "module": "core/base-elements/element.js"
120299
120247
  }
120300
120248
  },
120301
120249
  {
120302
- "kind": "field",
120303
- "name": "name",
120304
- "privacy": "public",
120305
- "description": "Name of the form element. Will be read from name attribute.",
120306
- "type": {
120307
- "text": "string"
120250
+ "kind": "method",
120251
+ "name": "_handleSlotChangeForSlottedState",
120252
+ "privacy": "private",
120253
+ "return": {
120254
+ "type": {
120255
+ "text": "void"
120256
+ }
120308
120257
  },
120309
- "attribute": "name",
120258
+ "parameters": [
120259
+ {
120260
+ "name": "slot",
120261
+ "type": {
120262
+ "text": "HTMLSlotElement"
120263
+ }
120264
+ }
120265
+ ],
120310
120266
  "inheritedFrom": {
120311
- "name": "SbbFormAssociatedMixin",
120312
- "module": "core/mixins/form-associated-mixin.js"
120267
+ "name": "SbbElement",
120268
+ "module": "core/base-elements/element.js"
120313
120269
  }
120314
120270
  },
120315
120271
  {
120316
- "kind": "field",
120317
- "name": "validity",
120318
- "type": {
120319
- "text": "ValidityState"
120272
+ "kind": "method",
120273
+ "name": "_updateSlottedState",
120274
+ "privacy": "private",
120275
+ "return": {
120276
+ "type": {
120277
+ "text": "void"
120278
+ }
120320
120279
  },
120321
- "privacy": "public",
120322
- "description": "Returns the ValidityState object for this element.",
120323
- "readonly": true,
120280
+ "parameters": [
120281
+ {
120282
+ "name": "slot",
120283
+ "type": {
120284
+ "text": "HTMLSlotElement"
120285
+ }
120286
+ }
120287
+ ],
120324
120288
  "inheritedFrom": {
120325
- "name": "SbbFormAssociatedMixin",
120326
- "module": "core/mixins/form-associated-mixin.js"
120289
+ "name": "SbbElement",
120290
+ "module": "core/base-elements/element.js"
120327
120291
  }
120328
120292
  },
120329
120293
  {
120330
- "kind": "field",
120331
- "name": "validationMessage",
120294
+ "kind": "method",
120295
+ "name": "_observeTextNodesInSlot",
120296
+ "privacy": "private",
120297
+ "return": {
120298
+ "type": {
120299
+ "text": "void"
120300
+ }
120301
+ },
120302
+ "parameters": [
120303
+ {
120304
+ "name": "slot",
120305
+ "type": {
120306
+ "text": "HTMLSlotElement"
120307
+ }
120308
+ }
120309
+ ],
120310
+ "inheritedFrom": {
120311
+ "name": "SbbElement",
120312
+ "module": "core/base-elements/element.js"
120313
+ }
120314
+ },
120315
+ {
120316
+ "kind": "method",
120317
+ "name": "_hasSlottedContent",
120318
+ "privacy": "private",
120319
+ "return": {
120320
+ "type": {
120321
+ "text": "boolean"
120322
+ }
120323
+ },
120324
+ "parameters": [
120325
+ {
120326
+ "name": "slot",
120327
+ "type": {
120328
+ "text": "HTMLSlotElement"
120329
+ }
120330
+ }
120331
+ ],
120332
+ "inheritedFrom": {
120333
+ "name": "SbbElement",
120334
+ "module": "core/base-elements/element.js"
120335
+ }
120336
+ }
120337
+ ],
120338
+ "mixins": [
120339
+ {
120340
+ "name": "SbbBlockLinkCommonElementMixin",
120341
+ "module": "link/common/block-link-common.js"
120342
+ },
120343
+ {
120344
+ "name": "SbbDisabledTabIndexActionMixin",
120345
+ "module": "core.js"
120346
+ }
120347
+ ],
120348
+ "superclass": {
120349
+ "name": "SbbButtonBaseElement",
120350
+ "module": "core.js"
120351
+ },
120352
+ "tagName": "sbb-block-link-button",
120353
+ "customElement": true,
120354
+ "attributes": [
120355
+ {
120356
+ "name": "size",
120332
120357
  "type": {
120333
- "text": "string"
120358
+ "text": "SbbLinkSize"
120334
120359
  },
120335
- "privacy": "public",
120336
- "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.",
120337
- "readonly": true,
120360
+ "description": "Size variant, either xs, s or m.",
120361
+ "default": "'s' / 'xs' (lean)",
120362
+ "fieldName": "size",
120338
120363
  "inheritedFrom": {
120339
- "name": "SbbFormAssociatedMixin",
120340
- "module": "core/mixins/form-associated-mixin.js"
120364
+ "name": "SbbBlockLinkCommonElementMixin",
120365
+ "module": "link/common/block-link-common.js"
120341
120366
  }
120342
120367
  },
120343
120368
  {
120344
- "kind": "field",
120345
- "name": "willValidate",
120369
+ "name": "icon-placement",
120346
120370
  "type": {
120347
- "text": "boolean"
120371
+ "text": "SbbIconPlacement"
120348
120372
  },
120349
- "privacy": "public",
120350
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
120351
- "readonly": true,
120373
+ "default": "'start'",
120374
+ "description": "Moves the icon to the end of the component if set to true.",
120375
+ "fieldName": "iconPlacement",
120352
120376
  "inheritedFrom": {
120353
- "name": "SbbFormAssociatedMixin",
120354
- "module": "core/mixins/form-associated-mixin.js"
120377
+ "name": "SbbBlockLinkCommonElementMixin",
120378
+ "module": "link/common/block-link-common.js"
120355
120379
  }
120356
120380
  },
120357
120381
  {
120358
- "kind": "field",
120359
- "name": "_validityStates",
120360
- "privacy": "private",
120361
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
120382
+ "name": "icon-name",
120383
+ "type": {
120384
+ "text": "string"
120385
+ },
120386
+ "default": "''",
120387
+ "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.",
120388
+ "fieldName": "iconName",
120362
120389
  "inheritedFrom": {
120363
- "name": "SbbFormAssociatedMixin",
120364
- "module": "core/mixins/form-associated-mixin.js"
120390
+ "name": "SbbIconNameMixin",
120391
+ "module": "icon/icon-name-mixin.js"
120365
120392
  }
120366
120393
  },
120367
120394
  {
120368
- "kind": "field",
120369
- "name": "formDisabled",
120395
+ "name": "disabled-interactive",
120370
120396
  "type": {
120371
120397
  "text": "boolean"
120372
120398
  },
120373
- "privacy": "protected",
120374
120399
  "default": "false",
120375
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
120400
+ "description": "Whether the button should be aria-disabled but stay interactive.",
120401
+ "fieldName": "disabledInteractive",
120376
120402
  "inheritedFrom": {
120377
- "name": "SbbFormAssociatedMixin",
120378
- "module": "core/mixins/form-associated-mixin.js"
120403
+ "name": "SbbDisabledInteractiveMixin",
120404
+ "module": "core/mixins/disabled-mixin.js"
120379
120405
  }
120380
120406
  },
120381
120407
  {
120382
- "kind": "method",
120383
- "name": "checkValidity",
120384
- "privacy": "public",
120385
- "return": {
120386
- "type": {
120387
- "text": "boolean"
120388
- }
120408
+ "name": "disabled",
120409
+ "description": "Whether the component is disabled.",
120410
+ "default": "false",
120411
+ "type": {
120412
+ "text": "boolean"
120389
120413
  },
120390
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
120414
+ "fieldName": "disabled",
120391
120415
  "inheritedFrom": {
120392
- "name": "SbbFormAssociatedMixin",
120393
- "module": "core/mixins/form-associated-mixin.js"
120416
+ "name": "SbbDisabledMixin",
120417
+ "module": "core/mixins/disabled-mixin.js"
120394
120418
  }
120395
120419
  },
120396
120420
  {
120397
- "kind": "method",
120398
- "name": "reportValidity",
120399
- "privacy": "public",
120400
- "return": {
120401
- "type": {
120402
- "text": "boolean"
120403
- }
120421
+ "name": "value",
120422
+ "type": {
120423
+ "text": "string"
120404
120424
  },
120405
- "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.",
120425
+ "default": "''",
120426
+ "description": "Value of the form element.",
120427
+ "fieldName": "value",
120406
120428
  "inheritedFrom": {
120407
- "name": "SbbFormAssociatedMixin",
120408
- "module": "core/mixins/form-associated-mixin.js"
120429
+ "name": "SbbButtonBaseElement",
120430
+ "module": "core/base-elements/button-base-element.js"
120409
120431
  }
120410
120432
  },
120411
120433
  {
120412
- "kind": "method",
120413
- "name": "setCustomValidity",
120414
- "privacy": "public",
120415
- "return": {
120416
- "type": {
120417
- "text": "void"
120418
- }
120434
+ "name": "type",
120435
+ "description": "The type attribute to use for the button.",
120436
+ "default": "'button'",
120437
+ "type": {
120438
+ "text": "SbbButtonType"
120419
120439
  },
120420
- "parameters": [
120421
- {
120422
- "name": "message",
120423
- "type": {
120424
- "text": "string"
120425
- }
120426
- }
120427
- ],
120428
- "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.",
120440
+ "fieldName": "type",
120429
120441
  "inheritedFrom": {
120430
- "name": "SbbFormAssociatedMixin",
120431
- "module": "core/mixins/form-associated-mixin.js"
120442
+ "name": "SbbButtonBaseElement",
120443
+ "module": "core/base-elements/button-base-element.js"
120432
120444
  }
120433
120445
  },
120434
120446
  {
120435
- "kind": "method",
120436
- "name": "_hasDisabledAncestor",
120437
- "privacy": "private",
120438
- "return": {
120439
- "type": {
120440
- "text": "boolean"
120441
- }
120447
+ "name": "form",
120448
+ "description": "The `<form>` element to associate the button with.",
120449
+ "type": {
120450
+ "text": "HTMLFormElement | null"
120442
120451
  },
120452
+ "fieldName": "form",
120443
120453
  "inheritedFrom": {
120444
- "name": "SbbFormAssociatedMixin",
120445
- "module": "core/mixins/form-associated-mixin.js"
120454
+ "name": "SbbButtonBaseElement",
120455
+ "module": "core/base-elements/button-base-element.js"
120446
120456
  }
120447
120457
  },
120448
120458
  {
120449
- "kind": "method",
120450
- "name": "updateFormValue",
120451
- "privacy": "protected",
120452
- "return": {
120453
- "type": {
120454
- "text": "void"
120455
- }
120459
+ "name": "name",
120460
+ "description": "Name of the form element. Will be read from name attribute.",
120461
+ "type": {
120462
+ "text": "string"
120456
120463
  },
120457
- "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",
120464
+ "fieldName": "name",
120458
120465
  "inheritedFrom": {
120459
120466
  "name": "SbbFormAssociatedMixin",
120460
120467
  "module": "core/mixins/form-associated-mixin.js"
120461
120468
  }
120469
+ }
120470
+ ]
120471
+ }
120472
+ ],
120473
+ "exports": [
120474
+ {
120475
+ "kind": "js",
120476
+ "name": "SbbBlockLinkButtonElement",
120477
+ "declaration": {
120478
+ "name": "SbbBlockLinkButtonElement",
120479
+ "module": "link/block-link-button/block-link-button.component.js"
120480
+ }
120481
+ }
120482
+ ]
120483
+ },
120484
+ {
120485
+ "kind": "javascript-module",
120486
+ "path": "link/block-link-static/block-link-static.component.js",
120487
+ "declarations": [
120488
+ {
120489
+ "kind": "class",
120490
+ "description": "It displays a static link enhanced with the SBB Design.",
120491
+ "name": "SbbBlockLinkStaticElement",
120492
+ "slots": [
120493
+ {
120494
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
120495
+ "name": ""
120462
120496
  },
120463
120497
  {
120464
- "kind": "method",
120465
- "name": "formState",
120466
- "privacy": "protected",
120467
- "return": {
120468
- "type": {
120469
- "text": "FormRestoreState"
120470
- }
120498
+ "description": "Slot used to display the icon, if one is set.",
120499
+ "name": "icon"
120500
+ }
120501
+ ],
120502
+ "members": [
120503
+ {
120504
+ "kind": "field",
120505
+ "name": "elementName",
120506
+ "type": {
120507
+ "text": "string"
120471
120508
  },
120509
+ "privacy": "public",
120510
+ "static": true,
120511
+ "readonly": true,
120472
120512
  "inheritedFrom": {
120473
- "name": "SbbFormAssociatedMixin",
120474
- "module": "core/mixins/form-associated-mixin.js"
120513
+ "name": "SbbElement",
120514
+ "module": "core/base-elements/element.js"
120515
+ },
120516
+ "default": "'sbb-block-link-static'"
120517
+ },
120518
+ {
120519
+ "kind": "field",
120520
+ "name": "styles",
120521
+ "type": {
120522
+ "text": "CSSResultGroup"
120523
+ },
120524
+ "privacy": "public",
120525
+ "static": true,
120526
+ "default": "[super.styles, unsafeCSS(blockStyle)]",
120527
+ "inheritedFrom": {
120528
+ "name": "SbbLinkCommonElementMixin",
120529
+ "module": "link/common/link-common.js"
120475
120530
  }
120476
120531
  },
120477
120532
  {
120478
- "kind": "method",
120479
- "name": "setValidityFlag",
120480
- "privacy": "protected",
120481
- "return": {
120482
- "type": {
120483
- "text": "void"
120484
- }
120533
+ "kind": "field",
120534
+ "name": "size",
120535
+ "type": {
120536
+ "text": "SbbLinkSize"
120485
120537
  },
120486
- "parameters": [
120487
- {
120488
- "name": "flag",
120489
- "type": {
120490
- "text": "T"
120491
- }
120492
- },
120493
- {
120494
- "name": "message",
120495
- "type": {
120496
- "text": "string"
120497
- }
120498
- },
120499
- {
120500
- "name": "flagValue",
120501
- "optional": true,
120502
- "type": {
120503
- "text": "ValidityStateFlags[T]"
120504
- }
120505
- }
120506
- ],
120507
- "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).",
120538
+ "privacy": "public",
120539
+ "description": "Size variant, either xs, s or m.",
120540
+ "default": "'s' / 'xs' (lean)",
120541
+ "attribute": "size",
120542
+ "reflects": true,
120543
+ "inheritedFrom": {
120544
+ "name": "SbbBlockLinkCommonElementMixin",
120545
+ "module": "link/common/block-link-common.js"
120546
+ }
120547
+ },
120548
+ {
120549
+ "kind": "field",
120550
+ "name": "iconPlacement",
120551
+ "type": {
120552
+ "text": "SbbIconPlacement"
120553
+ },
120554
+ "privacy": "public",
120555
+ "default": "'start'",
120556
+ "description": "Moves the icon to the end of the component if set to true.",
120557
+ "attribute": "icon-placement",
120558
+ "reflects": true,
120508
120559
  "inheritedFrom": {
120509
- "name": "SbbFormAssociatedMixin",
120510
- "module": "core/mixins/form-associated-mixin.js"
120560
+ "name": "SbbBlockLinkCommonElementMixin",
120561
+ "module": "link/common/block-link-common.js"
120511
120562
  }
120512
120563
  },
120513
120564
  {
120514
120565
  "kind": "method",
120515
- "name": "removeValidityFlag",
120566
+ "name": "renderTemplate",
120516
120567
  "privacy": "protected",
120517
120568
  "return": {
120518
120569
  "type": {
120519
- "text": "void"
120570
+ "text": "TemplateResult"
120520
120571
  }
120521
120572
  },
120522
- "parameters": [
120523
- {
120524
- "name": "flag",
120525
- "type": {
120526
- "text": "T"
120527
- }
120528
- }
120529
- ],
120530
- "description": "Removes the validity state flag entry and updates validity state.",
120573
+ "description": "Override this method to render the component template.",
120531
120574
  "inheritedFrom": {
120532
- "name": "SbbFormAssociatedMixin",
120533
- "module": "core/mixins/form-associated-mixin.js"
120575
+ "name": "SbbActionBaseElement",
120576
+ "module": "core/base-elements/action-base-element.js"
120534
120577
  }
120535
120578
  },
120536
120579
  {
120537
- "kind": "method",
120538
- "name": "validate",
120539
- "privacy": "protected",
120540
- "return": {
120541
- "type": {
120542
- "text": "void"
120543
- }
120580
+ "kind": "field",
120581
+ "name": "elementDependencies",
120582
+ "type": {
120583
+ "text": "SbbElementType[]"
120544
120584
  },
120545
- "description": "To be called whenever the current element needs to be validated.",
120585
+ "privacy": "public",
120586
+ "static": true,
120546
120587
  "inheritedFrom": {
120547
- "name": "SbbFormAssociatedMixin",
120548
- "module": "core/mixins/form-associated-mixin.js"
120588
+ "name": "SbbElement",
120589
+ "module": "core/base-elements/element.js"
120590
+ },
120591
+ "default": "[SbbIconElement]"
120592
+ },
120593
+ {
120594
+ "kind": "field",
120595
+ "name": "iconName",
120596
+ "type": {
120597
+ "text": "string"
120598
+ },
120599
+ "privacy": "public",
120600
+ "default": "''",
120601
+ "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.",
120602
+ "attribute": "icon-name",
120603
+ "inheritedFrom": {
120604
+ "name": "SbbIconNameMixin",
120605
+ "module": "icon/icon-name-mixin.js"
120549
120606
  }
120550
120607
  },
120551
120608
  {
120552
120609
  "kind": "method",
120553
- "name": "shouldValidate",
120610
+ "name": "renderIconSlot",
120554
120611
  "privacy": "protected",
120555
120612
  "return": {
120556
120613
  "type": {
120557
- "text": "boolean"
120614
+ "text": "TemplateResult"
120558
120615
  }
120559
120616
  },
120560
120617
  "parameters": [
120561
120618
  {
120562
- "name": "name",
120619
+ "name": "classname",
120620
+ "optional": true,
120563
120621
  "type": {
120564
- "text": "PropertyKey | undefined"
120622
+ "text": "string"
120565
120623
  }
120566
120624
  }
120567
120625
  ],
120568
- "description": "Whether validation should be run on a property change with the given name.",
120569
120626
  "inheritedFrom": {
120570
- "name": "SbbFormAssociatedMixin",
120571
- "module": "core/mixins/form-associated-mixin.js"
120627
+ "name": "SbbIconNameMixin",
120628
+ "module": "icon/icon-name-mixin.js"
120572
120629
  }
120573
120630
  },
120574
120631
  {
120575
120632
  "kind": "method",
120576
- "name": "_setInternalValidity",
120577
- "privacy": "private",
120633
+ "name": "renderIconName",
120634
+ "privacy": "protected",
120578
120635
  "return": {
120579
120636
  "type": {
120580
- "text": "void"
120637
+ "text": "string"
120581
120638
  }
120582
120639
  },
120583
120640
  "inheritedFrom": {
120584
- "name": "SbbFormAssociatedMixin",
120585
- "module": "core/mixins/form-associated-mixin.js"
120641
+ "name": "SbbIconNameMixin",
120642
+ "module": "icon/icon-name-mixin.js"
120586
120643
  }
120587
120644
  },
120588
120645
  {
120589
- "kind": "field",
120590
- "name": "role",
120591
- "type": {
120592
- "text": "ElementInternals['role']"
120593
- },
120594
- "privacy": "public",
120595
- "static": true,
120596
- "inheritedFrom": {
120597
- "name": "SbbElement",
120598
- "module": "core/base-elements/element.js"
120599
- },
120600
- "readonly": true,
120601
- "default": "'button'"
120602
- },
120603
- {
120604
- "kind": "field",
120605
- "name": "_preventScrollOnSpaceKeydown",
120646
+ "kind": "method",
120647
+ "name": "_renderIconName",
120606
120648
  "privacy": "private",
120607
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
120608
- "parameters": [
120609
- {
120610
- "description": "The origin event.",
120611
- "name": "event"
120649
+ "return": {
120650
+ "type": {
120651
+ "text": "string"
120612
120652
  }
120613
- ],
120653
+ },
120614
120654
  "inheritedFrom": {
120615
- "name": "SbbButtonLikeBaseElement",
120616
- "module": "core/base-elements/button-base-element.js"
120655
+ "name": "SbbIconNameMixin",
120656
+ "module": "icon/icon-name-mixin.js"
120617
120657
  }
120618
120658
  },
120619
120659
  {
120620
120660
  "kind": "field",
120621
- "name": "_removeActiveMarker",
120622
- "privacy": "private",
120661
+ "name": "disabled",
120662
+ "privacy": "public",
120663
+ "description": "Whether the component is disabled.",
120664
+ "default": "false",
120665
+ "type": {
120666
+ "text": "boolean"
120667
+ },
120668
+ "attribute": "disabled",
120669
+ "reflects": true,
120623
120670
  "inheritedFrom": {
120624
- "name": "SbbButtonLikeBaseElement",
120625
- "module": "core/base-elements/button-base-element.js"
120671
+ "name": "SbbDisabledMixin",
120672
+ "module": "core/mixins/disabled-mixin.js"
120626
120673
  }
120627
120674
  },
120628
120675
  {
120629
120676
  "kind": "field",
120630
- "name": "_dispatchClickEventOnSpaceKeyup",
120677
+ "name": "#disabled",
120631
120678
  "privacy": "private",
120632
- "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.",
120633
- "parameters": [
120634
- {
120635
- "description": "The origin event.",
120636
- "name": "event"
120637
- }
120638
- ],
120679
+ "type": {
120680
+ "text": "boolean"
120681
+ },
120682
+ "default": "false",
120639
120683
  "inheritedFrom": {
120640
- "name": "SbbButtonLikeBaseElement",
120641
- "module": "core/base-elements/button-base-element.js"
120684
+ "name": "SbbDisabledMixin",
120685
+ "module": "core/mixins/disabled-mixin.js"
120642
120686
  }
120643
120687
  },
120644
120688
  {
120645
- "kind": "field",
120646
- "name": "_dispatchClickEvent",
120647
- "privacy": "private",
120689
+ "kind": "method",
120690
+ "name": "isDisabledExternally",
120691
+ "privacy": "protected",
120692
+ "return": {
120693
+ "type": {
120694
+ "text": "boolean"
120695
+ }
120696
+ },
120697
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
120648
120698
  "inheritedFrom": {
120649
- "name": "SbbButtonLikeBaseElement",
120650
- "module": "core/base-elements/button-base-element.js"
120699
+ "name": "SbbDisabledMixin",
120700
+ "module": "core/mixins/disabled-mixin.js"
120651
120701
  }
120652
120702
  },
120653
120703
  {
@@ -120704,6 +120754,19 @@
120704
120754
  "module": "core/base-elements/element.js"
120705
120755
  }
120706
120756
  },
120757
+ {
120758
+ "kind": "field",
120759
+ "name": "role",
120760
+ "type": {
120761
+ "text": "ElementInternals['role'] | undefined"
120762
+ },
120763
+ "privacy": "public",
120764
+ "static": true,
120765
+ "inheritedFrom": {
120766
+ "name": "SbbElement",
120767
+ "module": "core/base-elements/element.js"
120768
+ }
120769
+ },
120707
120770
  {
120708
120771
  "kind": "field",
120709
120772
  "name": "_controllers",
@@ -120930,15 +120993,15 @@
120930
120993
  "module": "link/common/block-link-common.js"
120931
120994
  },
120932
120995
  {
120933
- "name": "SbbDisabledTabIndexActionMixin",
120996
+ "name": "SbbDisabledMixin",
120934
120997
  "module": "core.js"
120935
120998
  }
120936
120999
  ],
120937
121000
  "superclass": {
120938
- "name": "SbbButtonBaseElement",
121001
+ "name": "SbbActionBaseElement",
120939
121002
  "module": "core.js"
120940
121003
  },
120941
- "tagName": "sbb-block-link-button",
121004
+ "tagName": "sbb-block-link-static",
120942
121005
  "customElement": true,
120943
121006
  "attributes": [
120944
121007
  {
@@ -120980,19 +121043,6 @@
120980
121043
  "module": "icon/icon-name-mixin.js"
120981
121044
  }
120982
121045
  },
120983
- {
120984
- "name": "disabled-interactive",
120985
- "type": {
120986
- "text": "boolean"
120987
- },
120988
- "default": "false",
120989
- "description": "Whether the button should be aria-disabled but stay interactive.",
120990
- "fieldName": "disabledInteractive",
120991
- "inheritedFrom": {
120992
- "name": "SbbDisabledInteractiveMixin",
120993
- "module": "core/mixins/disabled-mixin.js"
120994
- }
120995
- },
120996
121046
  {
120997
121047
  "name": "disabled",
120998
121048
  "description": "Whether the component is disabled.",
@@ -121005,56 +121055,6 @@
121005
121055
  "name": "SbbDisabledMixin",
121006
121056
  "module": "core/mixins/disabled-mixin.js"
121007
121057
  }
121008
- },
121009
- {
121010
- "name": "value",
121011
- "type": {
121012
- "text": "string"
121013
- },
121014
- "default": "''",
121015
- "description": "Value of the form element.",
121016
- "fieldName": "value",
121017
- "inheritedFrom": {
121018
- "name": "SbbButtonBaseElement",
121019
- "module": "core/base-elements/button-base-element.js"
121020
- }
121021
- },
121022
- {
121023
- "name": "type",
121024
- "description": "The type attribute to use for the button.",
121025
- "default": "'button'",
121026
- "type": {
121027
- "text": "SbbButtonType"
121028
- },
121029
- "fieldName": "type",
121030
- "inheritedFrom": {
121031
- "name": "SbbButtonBaseElement",
121032
- "module": "core/base-elements/button-base-element.js"
121033
- }
121034
- },
121035
- {
121036
- "name": "form",
121037
- "description": "The `<form>` element to associate the button with.",
121038
- "type": {
121039
- "text": "HTMLFormElement | null"
121040
- },
121041
- "fieldName": "form",
121042
- "inheritedFrom": {
121043
- "name": "SbbButtonBaseElement",
121044
- "module": "core/base-elements/button-base-element.js"
121045
- }
121046
- },
121047
- {
121048
- "name": "name",
121049
- "description": "Name of the form element. Will be read from name attribute.",
121050
- "type": {
121051
- "text": "string"
121052
- },
121053
- "fieldName": "name",
121054
- "inheritedFrom": {
121055
- "name": "SbbFormAssociatedMixin",
121056
- "module": "core/mixins/form-associated-mixin.js"
121057
- }
121058
121058
  }
121059
121059
  ]
121060
121060
  }
@@ -121062,10 +121062,10 @@
121062
121062
  "exports": [
121063
121063
  {
121064
121064
  "kind": "js",
121065
- "name": "SbbBlockLinkButtonElement",
121065
+ "name": "SbbBlockLinkStaticElement",
121066
121066
  "declaration": {
121067
- "name": "SbbBlockLinkButtonElement",
121068
- "module": "link/block-link-button/block-link-button.component.js"
121067
+ "name": "SbbBlockLinkStaticElement",
121068
+ "module": "link/block-link-static/block-link-static.component.js"
121069
121069
  }
121070
121070
  }
121071
121071
  ]