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

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 +616 -616
  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
111499
  "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
- "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,124 +111511,88 @@
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.",
111589
- "inheritedFrom": {
111590
- "name": "SbbFormAssociatedMixin",
111591
- "module": "core/mixins/form-associated-mixin.js"
111592
- }
111593
- },
111594
- {
111595
- "kind": "method",
111596
- "name": "checkValidity",
111597
- "privacy": "public",
111598
- "return": {
111599
- "type": {
111600
- "text": "boolean"
111601
- }
111602
- },
111603
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
111584
+ "description": "Returns whether hydration is required and not completed.",
111585
+ "readonly": true,
111604
111586
  "inheritedFrom": {
111605
- "name": "SbbFormAssociatedMixin",
111606
- "module": "core/mixins/form-associated-mixin.js"
111607
- }
111608
- },
111609
- {
111610
- "kind": "method",
111611
- "name": "reportValidity",
111612
- "privacy": "public",
111613
- "return": {
111614
- "type": {
111615
- "text": "boolean"
111616
- }
111587
+ "name": "SbbElement",
111588
+ "module": "core/base-elements/element.js"
111617
111589
  },
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
- }
111590
+ "default": "!!this.shadowRoot"
111623
111591
  },
111624
111592
  {
111625
111593
  "kind": "method",
111626
- "name": "setCustomValidity",
111627
- "privacy": "public",
111594
+ "name": "toggleState",
111595
+ "privacy": "protected",
111628
111596
  "return": {
111629
111597
  "type": {
111630
111598
  "text": "void"
@@ -111632,65 +111600,56 @@
111632
111600
  },
111633
111601
  "parameters": [
111634
111602
  {
111635
- "name": "message",
111603
+ "name": "value",
111636
111604
  "type": {
111637
111605
  "text": "string"
111638
111606
  }
111607
+ },
111608
+ {
111609
+ "name": "force",
111610
+ "optional": true,
111611
+ "type": {
111612
+ "text": "boolean"
111613
+ }
111639
111614
  }
111640
111615
  ],
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
111616
  "inheritedFrom": {
111643
- "name": "SbbFormAssociatedMixin",
111644
- "module": "core/mixins/form-associated-mixin.js"
111617
+ "name": "SbbElement",
111618
+ "module": "core/base-elements/element.js"
111645
111619
  }
111646
111620
  },
111647
111621
  {
111648
111622
  "kind": "method",
111649
- "name": "_hasDisabledAncestor",
111623
+ "name": "_slotchangeHandler",
111650
111624
  "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
111625
  "return": {
111666
111626
  "type": {
111667
111627
  "text": "void"
111668
111628
  }
111669
111629
  },
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"
111630
+ "parameters": [
111631
+ {
111632
+ "name": "event",
111633
+ "type": {
111634
+ "text": "Event"
111635
+ }
111636
+ },
111637
+ {
111638
+ "name": "slot",
111639
+ "type": {
111640
+ "text": "HTMLSlotElement"
111641
+ }
111683
111642
  }
111684
- },
111643
+ ],
111685
111644
  "inheritedFrom": {
111686
- "name": "SbbFormAssociatedMixin",
111687
- "module": "core/mixins/form-associated-mixin.js"
111645
+ "name": "SbbElement",
111646
+ "module": "core/base-elements/element.js"
111688
111647
  }
111689
111648
  },
111690
111649
  {
111691
111650
  "kind": "method",
111692
- "name": "setValidityFlag",
111693
- "privacy": "protected",
111651
+ "name": "_handleSlotChangeForSlottedState",
111652
+ "privacy": "private",
111694
111653
  "return": {
111695
111654
  "type": {
111696
111655
  "text": "void"
@@ -111698,35 +111657,21 @@
111698
111657
  },
111699
111658
  "parameters": [
111700
111659
  {
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,
111660
+ "name": "slot",
111715
111661
  "type": {
111716
- "text": "ValidityStateFlags[T]"
111662
+ "text": "HTMLSlotElement"
111717
111663
  }
111718
111664
  }
111719
111665
  ],
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
111666
  "inheritedFrom": {
111722
- "name": "SbbFormAssociatedMixin",
111723
- "module": "core/mixins/form-associated-mixin.js"
111667
+ "name": "SbbElement",
111668
+ "module": "core/base-elements/element.js"
111724
111669
  }
111725
111670
  },
111726
111671
  {
111727
111672
  "kind": "method",
111728
- "name": "removeValidityFlag",
111729
- "privacy": "protected",
111673
+ "name": "_updateSlottedState",
111674
+ "privacy": "private",
111730
111675
  "return": {
111731
111676
  "type": {
111732
111677
  "text": "void"
@@ -111734,37 +111679,43 @@
111734
111679
  },
111735
111680
  "parameters": [
111736
111681
  {
111737
- "name": "flag",
111682
+ "name": "slot",
111738
111683
  "type": {
111739
- "text": "T"
111684
+ "text": "HTMLSlotElement"
111740
111685
  }
111741
111686
  }
111742
111687
  ],
111743
- "description": "Removes the validity state flag entry and updates validity state.",
111744
111688
  "inheritedFrom": {
111745
- "name": "SbbFormAssociatedMixin",
111746
- "module": "core/mixins/form-associated-mixin.js"
111689
+ "name": "SbbElement",
111690
+ "module": "core/base-elements/element.js"
111747
111691
  }
111748
111692
  },
111749
111693
  {
111750
111694
  "kind": "method",
111751
- "name": "validate",
111752
- "privacy": "protected",
111695
+ "name": "_observeTextNodesInSlot",
111696
+ "privacy": "private",
111753
111697
  "return": {
111754
111698
  "type": {
111755
111699
  "text": "void"
111756
111700
  }
111757
111701
  },
111758
- "description": "To be called whenever the current element needs to be validated.",
111702
+ "parameters": [
111703
+ {
111704
+ "name": "slot",
111705
+ "type": {
111706
+ "text": "HTMLSlotElement"
111707
+ }
111708
+ }
111709
+ ],
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,146 +111723,267 @@
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.",
111732
+ "inheritedFrom": {
111733
+ "name": "SbbElement",
111734
+ "module": "core/base-elements/element.js"
111735
+ }
111736
+ }
111737
+ ],
111738
+ "events": [
111739
+ {
111740
+ "type": {
111741
+ "text": "Event"
111742
+ },
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"
111745
+ },
111746
+ {
111747
+ "type": {
111748
+ "text": "InputEvent"
111749
+ },
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": [
111755
+ {
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",
111775
+ "inheritedFrom": {
111776
+ "name": "SbbNegativeMixin",
111777
+ "module": "core/mixins/negative-mixin.js"
111778
+ }
111779
+ },
111780
+ {
111781
+ "name": "value",
111782
+ "type": {
111783
+ "text": "string"
111784
+ },
111785
+ "default": "''",
111786
+ "description": "Value of the form element.",
111787
+ "fieldName": "value",
111788
+ "inheritedFrom": {
111789
+ "name": "SbbButtonBaseElement",
111790
+ "module": "core/base-elements/button-base-element.js"
111791
+ }
111792
+ },
111793
+ {
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",
111801
+ "inheritedFrom": {
111802
+ "name": "SbbButtonBaseElement",
111803
+ "module": "core/base-elements/button-base-element.js"
111804
+ }
111805
+ },
111806
+ {
111807
+ "name": "form",
111808
+ "description": "The `<form>` element to associate the button with.",
111809
+ "type": {
111810
+ "text": "HTMLFormElement | null"
111811
+ },
111812
+ "fieldName": "form",
111813
+ "inheritedFrom": {
111814
+ "name": "SbbButtonBaseElement",
111815
+ "module": "core/base-elements/button-base-element.js"
111816
+ }
111817
+ },
111818
+ {
111819
+ "name": "name",
111820
+ "description": "Name of the form element. Will be read from name attribute.",
111821
+ "type": {
111822
+ "text": "string"
111823
+ },
111824
+ "fieldName": "name",
111782
111825
  "inheritedFrom": {
111783
111826
  "name": "SbbFormAssociatedMixin",
111784
111827
  "module": "core/mixins/form-associated-mixin.js"
111785
111828
  }
111786
- },
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": [
111787
111853
  {
111788
- "kind": "method",
111789
- "name": "_setInternalValidity",
111790
- "privacy": "private",
111791
- "return": {
111792
- "type": {
111793
- "text": "void"
111794
- }
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": [
111863
+ {
111864
+ "kind": "field",
111865
+ "name": "elementName",
111866
+ "type": {
111867
+ "text": "string"
111795
111868
  },
111869
+ "privacy": "public",
111870
+ "static": true,
111871
+ "readonly": true,
111872
+ "default": "'sbb-form-field-text-counter'",
111796
111873
  "inheritedFrom": {
111797
- "name": "SbbFormAssociatedMixin",
111798
- "module": "core/mixins/form-associated-mixin.js"
111874
+ "name": "SbbElement",
111875
+ "module": "core/base-elements/element.js"
111799
111876
  }
111800
111877
  },
111801
111878
  {
111802
111879
  "kind": "field",
111803
- "name": "role",
111880
+ "name": "elementDependencies",
111804
111881
  "type": {
111805
- "text": "ElementInternals['role']"
111882
+ "text": "SbbElementType[]"
111806
111883
  },
111807
111884
  "privacy": "public",
111808
111885
  "static": true,
111886
+ "default": "[SbbScreenReaderOnlyElement]",
111809
111887
  "inheritedFrom": {
111810
111888
  "name": "SbbElement",
111811
111889
  "module": "core/base-elements/element.js"
111812
- },
111813
- "readonly": true,
111814
- "default": "'button'"
111890
+ }
111815
111891
  },
111816
111892
  {
111817
111893
  "kind": "field",
111818
- "name": "_preventScrollOnSpaceKeydown",
111894
+ "name": "_remainingCharacters",
111895
+ "type": {
111896
+ "text": "number"
111897
+ },
111819
111898
  "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
- ],
111827
- "inheritedFrom": {
111828
- "name": "SbbButtonLikeBaseElement",
111829
- "module": "core/base-elements/button-base-element.js"
111830
- }
111899
+ "default": "0"
111831
111900
  },
111832
111901
  {
111833
111902
  "kind": "field",
111834
- "name": "_removeActiveMarker",
111903
+ "name": "_language",
111835
111904
  "privacy": "private",
111836
- "inheritedFrom": {
111837
- "name": "SbbButtonLikeBaseElement",
111838
- "module": "core/base-elements/button-base-element.js"
111839
- }
111905
+ "default": "new SbbLanguageController(this)"
111840
111906
  },
111841
111907
  {
111842
111908
  "kind": "field",
111843
- "name": "_dispatchClickEventOnSpaceKeyup",
111909
+ "name": "_abortController",
111910
+ "type": {
111911
+ "text": "AbortController | null"
111912
+ },
111844
111913
  "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"
111914
+ "default": "null"
111915
+ },
111916
+ {
111917
+ "kind": "method",
111918
+ "name": "_onInputUpdate",
111919
+ "privacy": "private",
111920
+ "return": {
111921
+ "type": {
111922
+ "text": "void"
111850
111923
  }
111851
- ],
111852
- "inheritedFrom": {
111853
- "name": "SbbButtonLikeBaseElement",
111854
- "module": "core/base-elements/button-base-element.js"
111855
111924
  }
111856
111925
  },
111857
111926
  {
111858
- "kind": "field",
111859
- "name": "_dispatchClickEvent",
111927
+ "kind": "method",
111928
+ "name": "_infoText",
111860
111929
  "privacy": "private",
111861
- "inheritedFrom": {
111862
- "name": "SbbButtonLikeBaseElement",
111863
- "module": "core/base-elements/button-base-element.js"
111930
+ "return": {
111931
+ "type": {
111932
+ "text": "string"
111933
+ }
111864
111934
  }
111865
111935
  },
111866
111936
  {
111867
111937
  "kind": "field",
111868
- "name": "maybeDisabled",
111938
+ "name": "negative",
111869
111939
  "type": {
111870
- "text": "boolean | undefined"
111940
+ "text": "boolean"
111871
111941
  },
111872
- "privacy": "protected",
111873
- "readonly": true,
111942
+ "privacy": "public",
111943
+ "default": "false",
111944
+ "description": "Negative coloring variant flag.",
111945
+ "attribute": "negative",
111946
+ "reflects": true,
111874
111947
  "inheritedFrom": {
111875
- "name": "SbbActionBaseElement",
111876
- "module": "core/base-elements/action-base-element.js"
111948
+ "name": "SbbNegativeMixin",
111949
+ "module": "core/mixins/negative-mixin.js"
111877
111950
  }
111878
111951
  },
111879
111952
  {
111880
111953
  "kind": "field",
111881
- "name": "maybeDisabledInteractive",
111954
+ "name": "formField",
111882
111955
  "type": {
111883
- "text": "boolean | undefined"
111956
+ "text": "SbbFormFieldElement | null"
111884
111957
  },
111885
111958
  "privacy": "protected",
111886
- "readonly": true,
111959
+ "default": "null",
111887
111960
  "inheritedFrom": {
111888
- "name": "SbbActionBaseElement",
111889
- "module": "core/base-elements/action-base-element.js"
111961
+ "name": "SbbHintElement",
111962
+ "module": "form-field/hint/hint.component.js"
111890
111963
  }
111891
111964
  },
111892
111965
  {
111893
- "kind": "method",
111894
- "name": "setupBaseEventHandlers",
111895
- "privacy": "protected",
111896
- "return": {
111897
- "type": {
111898
- "text": "void"
111899
- }
111966
+ "kind": "field",
111967
+ "name": "['_$sbbElement$']",
111968
+ "type": {
111969
+ "text": "boolean"
111900
111970
  },
111971
+ "privacy": "public",
111972
+ "static": true,
111973
+ "default": "true",
111901
111974
  "inheritedFrom": {
111902
- "name": "SbbActionBaseElement",
111903
- "module": "core/base-elements/action-base-element.js"
111975
+ "name": "SbbElement",
111976
+ "module": "core/base-elements/element.js"
111904
111977
  }
111905
111978
  },
111906
111979
  {
111907
111980
  "kind": "field",
111908
- "name": "['_$sbbElement$']",
111981
+ "name": "role",
111909
111982
  "type": {
111910
- "text": "boolean"
111983
+ "text": "ElementInternals['role'] | undefined"
111911
111984
  },
111912
111985
  "privacy": "public",
111913
111986
  "static": true,
111914
- "default": "true",
111915
111987
  "inheritedFrom": {
111916
111988
  "name": "SbbElement",
111917
111989
  "module": "core/base-elements/element.js"
@@ -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
  ]