@sbb-esta/lyne-elements-dev 4.9.0-dev.1775069358 → 4.9.0-dev.1775107658

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 +948 -948
  2. package/package.json +2 -2
@@ -77835,26 +77835,6 @@
77835
77835
  }
77836
77836
  ]
77837
77837
  },
77838
- {
77839
- "kind": "javascript-module",
77840
- "path": "core/styles/styles.js",
77841
- "declarations": [
77842
- {
77843
- "kind": "variable",
77844
- "name": "boxSizingStyles"
77845
- }
77846
- ],
77847
- "exports": [
77848
- {
77849
- "kind": "js",
77850
- "name": "boxSizingStyles",
77851
- "declaration": {
77852
- "name": "boxSizingStyles",
77853
- "module": "core/styles/styles.js"
77854
- }
77855
- }
77856
- ]
77857
- },
77858
77838
  {
77859
77839
  "kind": "javascript-module",
77860
77840
  "path": "core/testing/event-spy.js",
@@ -78252,6 +78232,26 @@
78252
78232
  }
78253
78233
  ]
78254
78234
  },
78235
+ {
78236
+ "kind": "javascript-module",
78237
+ "path": "core/styles/styles.js",
78238
+ "declarations": [
78239
+ {
78240
+ "kind": "variable",
78241
+ "name": "boxSizingStyles"
78242
+ }
78243
+ ],
78244
+ "exports": [
78245
+ {
78246
+ "kind": "js",
78247
+ "name": "boxSizingStyles",
78248
+ "declaration": {
78249
+ "name": "boxSizingStyles",
78250
+ "module": "core/styles/styles.js"
78251
+ }
78252
+ }
78253
+ ]
78254
+ },
78255
78255
  {
78256
78256
  "kind": "javascript-module",
78257
78257
  "path": "datepicker/common/datepicker-button.js",
@@ -129003,12 +129003,12 @@
129003
129003
  },
129004
129004
  {
129005
129005
  "kind": "javascript-module",
129006
- "path": "timetable-form/timetable-form-field/timetable-form-field.component.js",
129006
+ "path": "timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js",
129007
129007
  "declarations": [
129008
129008
  {
129009
129009
  "kind": "class",
129010
- "description": "Extends the `sbb-form-field`. Meant to be used inside a `sbb-timetable-form`.",
129011
- "name": "SbbTimetableFormFieldElement",
129010
+ "description": "An extension of `sbb-secondary-button` to be used inside the `sbb-timetable-form`.\nWhen placed between two `sbb-timetable-form-field`, the 'click' swaps the value of the sibling inputs.",
129011
+ "name": "SbbTimetableFormSwapButtonElement",
129012
129012
  "members": [
129013
129013
  {
129014
129014
  "kind": "field",
@@ -129019,513 +129019,619 @@
129019
129019
  "privacy": "public",
129020
129020
  "static": true,
129021
129021
  "readonly": true,
129022
- "default": "'sbb-timetable-form-field'",
129023
129022
  "inheritedFrom": {
129024
129023
  "name": "SbbElement",
129025
129024
  "module": "core/base-elements/element.js"
129026
- }
129025
+ },
129026
+ "default": "'sbb-timetable-form-swap-button'"
129027
129027
  },
129028
129028
  {
129029
129029
  "kind": "field",
129030
- "name": "_routeIcon",
129031
- "type": {
129032
- "text": "boolean"
129033
- },
129030
+ "name": "_languageController",
129034
129031
  "privacy": "private",
129035
- "default": "false"
129032
+ "default": "new SbbLanguageController(this)"
129033
+ },
129034
+ {
129035
+ "kind": "method",
129036
+ "name": "_invertFieldValues",
129037
+ "privacy": "private",
129038
+ "return": {
129039
+ "type": {
129040
+ "text": "void"
129041
+ }
129042
+ },
129043
+ "description": "Search for `sbb-timetable-form-field` inputs, invert their values and dispatch the respective input and change events"
129044
+ },
129045
+ {
129046
+ "kind": "method",
129047
+ "name": "renderIconName",
129048
+ "privacy": "protected",
129049
+ "return": {
129050
+ "type": {
129051
+ "text": "string"
129052
+ }
129053
+ },
129054
+ "inheritedFrom": {
129055
+ "name": "SbbIconNameMixin",
129056
+ "module": "icon/icon-name-mixin.js"
129057
+ }
129036
129058
  },
129037
129059
  {
129038
129060
  "kind": "field",
129039
- "name": "borderless",
129061
+ "name": "size",
129040
129062
  "type": {
129041
- "text": "boolean"
129063
+ "text": "SbbButtonSize"
129042
129064
  },
129043
129065
  "privacy": "public",
129044
- "default": "true",
129045
- "description": "Whether to display the form field without a border.",
129046
- "attribute": "borderless",
129066
+ "description": "Size variant, either l, m or s.",
129067
+ "default": "'l' / 's' (lean)",
129068
+ "attribute": "size",
129047
129069
  "reflects": true,
129048
129070
  "inheritedFrom": {
129049
- "name": "SbbFormFieldElement",
129050
- "module": "form-field/form-field/form-field.component.js"
129071
+ "name": "SbbButtonCommonElementMixin",
129072
+ "module": "button/common/button-common.js"
129051
129073
  }
129052
129074
  },
129053
129075
  {
129054
129076
  "kind": "field",
129055
- "name": "floatingLabel",
129077
+ "name": "loading",
129056
129078
  "type": {
129057
129079
  "text": "boolean"
129058
129080
  },
129059
129081
  "privacy": "public",
129060
- "default": "true",
129061
- "description": "Whether the label should float. If activated, the placeholder of the input is hidden.",
129062
- "attribute": "floating-label",
129082
+ "default": "false",
129083
+ "description": "Whether the button indicates a loading state.\nThe animation kicks in after a delay of 300ms, configurable with --sbb-button-loading-delay CSS variable.",
129084
+ "attribute": "loading",
129063
129085
  "reflects": true,
129064
129086
  "inheritedFrom": {
129065
- "name": "SbbFormFieldElement",
129066
- "module": "form-field/form-field/form-field.component.js"
129087
+ "name": "SbbButtonCommonElementMixin",
129088
+ "module": "button/common/button-common.js"
129089
+ }
129090
+ },
129091
+ {
129092
+ "kind": "method",
129093
+ "name": "renderTemplate",
129094
+ "privacy": "protected",
129095
+ "return": {
129096
+ "type": {
129097
+ "text": "TemplateResult"
129098
+ }
129099
+ },
129100
+ "description": "Override this method to render the component template.",
129101
+ "inheritedFrom": {
129102
+ "name": "SbbActionBaseElement",
129103
+ "module": "core/base-elements/action-base-element.js"
129067
129104
  }
129068
129105
  },
129069
129106
  {
129070
129107
  "kind": "field",
129071
- "name": "width",
129108
+ "name": "negative",
129072
129109
  "type": {
129073
- "text": "string"
129110
+ "text": "boolean"
129074
129111
  },
129075
129112
  "privacy": "public",
129076
- "default": "'collapse'",
129077
- "description": "Defines the width of the component:\n- `default`: the component has defined width and min-width;\n- `collapse`: the component adapts itself to its inner input content.",
129078
- "attribute": "width",
129113
+ "default": "false",
129114
+ "description": "Negative coloring variant flag.",
129115
+ "attribute": "negative",
129079
129116
  "reflects": true,
129080
129117
  "inheritedFrom": {
129081
- "name": "SbbFormFieldElement",
129082
- "module": "form-field/form-field/form-field.component.js"
129118
+ "name": "SbbNegativeMixin",
129119
+ "module": "core/mixins/negative-mixin.js"
129083
129120
  }
129084
129121
  },
129085
129122
  {
129086
129123
  "kind": "field",
129087
- "name": "size",
129124
+ "name": "iconName",
129088
129125
  "type": {
129089
129126
  "text": "string"
129090
129127
  },
129091
129128
  "privacy": "public",
129092
- "description": "Size variant, either l, m or s.",
129093
- "default": "'l'",
129094
- "attribute": "size",
129095
- "reflects": true,
129129
+ "default": "''",
129130
+ "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.",
129131
+ "attribute": "icon-name",
129096
129132
  "inheritedFrom": {
129097
- "name": "SbbFormFieldElement",
129098
- "module": "form-field/form-field/form-field.component.js"
129133
+ "name": "SbbIconNameMixin",
129134
+ "module": "icon/icon-name-mixin.js"
129135
+ }
129136
+ },
129137
+ {
129138
+ "kind": "method",
129139
+ "name": "renderIconSlot",
129140
+ "privacy": "protected",
129141
+ "return": {
129142
+ "type": {
129143
+ "text": "TemplateResult"
129144
+ }
129145
+ },
129146
+ "parameters": [
129147
+ {
129148
+ "name": "classname",
129149
+ "optional": true,
129150
+ "type": {
129151
+ "text": "string"
129152
+ }
129153
+ }
129154
+ ],
129155
+ "inheritedFrom": {
129156
+ "name": "SbbIconNameMixin",
129157
+ "module": "icon/icon-name-mixin.js"
129158
+ }
129159
+ },
129160
+ {
129161
+ "kind": "method",
129162
+ "name": "_renderIconName",
129163
+ "privacy": "private",
129164
+ "return": {
129165
+ "type": {
129166
+ "text": "string"
129167
+ }
129168
+ },
129169
+ "inheritedFrom": {
129170
+ "name": "SbbIconNameMixin",
129171
+ "module": "icon/icon-name-mixin.js"
129099
129172
  }
129100
129173
  },
129101
129174
  {
129102
129175
  "kind": "field",
129103
- "name": "negative",
129176
+ "name": "disabledInteractive",
129104
129177
  "type": {
129105
129178
  "text": "boolean"
129106
129179
  },
129107
129180
  "privacy": "public",
129108
129181
  "default": "false",
129109
- "description": "Negative coloring variant flag.",
129110
- "attribute": "negative",
129182
+ "description": "Whether the button should be aria-disabled but stay interactive.",
129183
+ "attribute": "disabled-interactive",
129111
129184
  "reflects": true,
129112
129185
  "inheritedFrom": {
129113
- "name": "SbbNegativeMixin",
129114
- "module": "core/mixins/negative-mixin.js"
129186
+ "name": "SbbDisabledInteractiveMixin",
129187
+ "module": "core/mixins/disabled-mixin.js"
129115
129188
  }
129116
129189
  },
129117
129190
  {
129118
129191
  "kind": "field",
129119
- "name": "_excludedFocusElements",
129192
+ "name": "disabled",
129193
+ "privacy": "public",
129194
+ "description": "Whether the component is disabled.",
129195
+ "default": "false",
129120
129196
  "type": {
129121
- "text": "array"
129197
+ "text": "boolean"
129122
129198
  },
129123
- "privacy": "private",
129124
- "readonly": true,
129125
- "default": "['button', 'sbb-popover', 'sbb-option', 'sbb-chip']",
129199
+ "attribute": "disabled",
129200
+ "reflects": true,
129126
129201
  "inheritedFrom": {
129127
- "name": "SbbFormFieldElement",
129128
- "module": "form-field/form-field/form-field.component.js"
129202
+ "name": "SbbDisabledMixin",
129203
+ "module": "core/mixins/disabled-mixin.js"
129129
129204
  }
129130
129205
  },
129131
129206
  {
129132
129207
  "kind": "field",
129133
- "name": "_floatingLabelSupportedInputElements",
129208
+ "name": "#disabled",
129209
+ "privacy": "private",
129134
129210
  "type": {
129135
- "text": "array"
129211
+ "text": "boolean"
129136
129212
  },
129137
- "privacy": "private",
129138
- "readonly": true,
129139
- "default": "[ 'input', 'select', 'textarea', 'sbb-select', ]",
129213
+ "default": "false",
129140
129214
  "inheritedFrom": {
129141
- "name": "SbbFormFieldElement",
129142
- "module": "form-field/form-field/form-field.component.js"
129215
+ "name": "SbbDisabledMixin",
129216
+ "module": "core/mixins/disabled-mixin.js"
129217
+ }
129218
+ },
129219
+ {
129220
+ "kind": "method",
129221
+ "name": "isDisabledExternally",
129222
+ "privacy": "protected",
129223
+ "return": {
129224
+ "type": {
129225
+ "text": "boolean"
129226
+ }
129227
+ },
129228
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
129229
+ "inheritedFrom": {
129230
+ "name": "SbbDisabledMixin",
129231
+ "module": "core/mixins/disabled-mixin.js"
129143
129232
  }
129144
129233
  },
129145
129234
  {
129146
129235
  "kind": "field",
129147
- "name": "_floatingLabelSupportedInputTypes",
129236
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
129148
129237
  "type": {
129149
129238
  "text": "array"
129150
129239
  },
129151
129240
  "privacy": "private",
129152
129241
  "readonly": true,
129153
- "default": "[ 'email', 'number', 'password', 'search', 'tel', 'text', 'url', ]",
129242
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
129154
129243
  "inheritedFrom": {
129155
- "name": "SbbFormFieldElement",
129156
- "module": "form-field/form-field/form-field.component.js"
129244
+ "name": "SbbButtonBaseElement",
129245
+ "module": "core/base-elements/button-base-element.js"
129157
129246
  }
129158
129247
  },
129159
129248
  {
129160
129249
  "kind": "field",
129161
- "name": "errorSpace",
129250
+ "name": "value",
129162
129251
  "type": {
129163
- "text": "'none' | 'reserve'"
129252
+ "text": "string"
129164
129253
  },
129165
129254
  "privacy": "public",
129166
- "default": "'none'",
129167
- "description": "Whether to reserve space for an error message, hint or text-counter.\n`none` does not reserve any space.\n`reserve` does reserve one row for an error message.",
129168
- "attribute": "error-space",
129169
- "reflects": true,
129170
129255
  "inheritedFrom": {
129171
- "name": "SbbFormFieldElement",
129172
- "module": "form-field/form-field/form-field.component.js"
129173
- }
129256
+ "name": "SbbButtonBaseElement",
129257
+ "module": "core/base-elements/button-base-element.js"
129258
+ },
129259
+ "default": "''",
129260
+ "description": "Value of the form element.",
129261
+ "attribute": "value"
129174
129262
  },
129175
129263
  {
129176
129264
  "kind": "field",
129177
- "name": "optional",
129265
+ "name": "type",
129266
+ "privacy": "public",
129267
+ "description": "The type attribute to use for the button.",
129268
+ "default": "'button'",
129178
129269
  "type": {
129179
- "text": "boolean"
129270
+ "text": "SbbButtonType"
129180
129271
  },
129181
- "privacy": "public",
129182
- "default": "false",
129183
- "description": "Indicates whether the input is optional.",
129184
- "deprecated": "Set the (optional) label text manually. Will be removed with next major version.",
129185
- "attribute": "optional",
129272
+ "attribute": "type",
129186
129273
  "inheritedFrom": {
129187
- "name": "SbbFormFieldElement",
129188
- "module": "form-field/form-field/form-field.component.js"
129274
+ "name": "SbbButtonBaseElement",
129275
+ "module": "core/base-elements/button-base-element.js"
129189
129276
  }
129190
129277
  },
129191
129278
  {
129192
129279
  "kind": "field",
129193
- "name": "hiddenLabel",
129280
+ "name": "form",
129194
129281
  "type": {
129195
- "text": "boolean"
129282
+ "text": "HTMLFormElement | null"
129196
129283
  },
129197
129284
  "privacy": "public",
129198
- "default": "false",
129199
- "description": "Whether to visually hide the label. If hidden, screen readers will still read it.",
129200
- "attribute": "hidden-label",
129201
- "reflects": true,
129285
+ "description": "The `<form>` element to associate the button with.",
129202
129286
  "inheritedFrom": {
129203
- "name": "SbbFormFieldElement",
129204
- "module": "form-field/form-field/form-field.component.js"
129205
- }
129287
+ "name": "SbbButtonBaseElement",
129288
+ "module": "core/base-elements/button-base-element.js"
129289
+ },
129290
+ "attribute": "form"
129206
129291
  },
129207
129292
  {
129208
129293
  "kind": "field",
129209
- "name": "_errorElements",
129294
+ "name": "_formId",
129210
129295
  "type": {
129211
- "text": "Element[]"
129296
+ "text": "string"
129212
129297
  },
129213
129298
  "privacy": "private",
129214
- "default": "[]",
129215
- "description": "It is used internally to get the `error` slot.",
129299
+ "default": "''",
129216
129300
  "inheritedFrom": {
129217
- "name": "SbbFormFieldElement",
129218
- "module": "form-field/form-field/form-field.component.js"
129301
+ "name": "SbbButtonBaseElement",
129302
+ "module": "core/base-elements/button-base-element.js"
129219
129303
  }
129220
129304
  },
129221
129305
  {
129222
129306
  "kind": "field",
129223
- "name": "_hintElements",
129224
- "type": {
129225
- "text": "Element[]"
129307
+ "name": "_handleButtonClick",
129308
+ "privacy": "private",
129309
+ "inheritedFrom": {
129310
+ "name": "SbbButtonBaseElement",
129311
+ "module": "core/base-elements/button-base-element.js"
129312
+ }
129313
+ },
129314
+ {
129315
+ "kind": "method",
129316
+ "name": "_requestSubmit",
129317
+ "privacy": "private",
129318
+ "return": {
129319
+ "type": {
129320
+ "text": "void"
129321
+ }
129226
129322
  },
129323
+ "parameters": [
129324
+ {
129325
+ "name": "form",
129326
+ "type": {
129327
+ "text": "HTMLFormElement"
129328
+ }
129329
+ }
129330
+ ],
129331
+ "inheritedFrom": {
129332
+ "name": "SbbButtonBaseElement",
129333
+ "module": "core/base-elements/button-base-element.js"
129334
+ }
129335
+ },
129336
+ {
129337
+ "kind": "field",
129338
+ "name": "_formKeyDown",
129227
129339
  "privacy": "private",
129228
- "default": "[]",
129229
- "description": "It is used internally to get the `hint` slot.",
129230
129340
  "inheritedFrom": {
129231
- "name": "SbbFormFieldElement",
129232
- "module": "form-field/form-field/form-field.component.js"
129341
+ "name": "SbbButtonBaseElement",
129342
+ "module": "core/base-elements/button-base-element.js"
129233
129343
  }
129234
129344
  },
129235
129345
  {
129236
129346
  "kind": "field",
129237
- "name": "_input",
129347
+ "name": "formAssociated",
129238
129348
  "type": {
129239
- "text": "HTMLInputElement | HTMLSelectElement | HTMLElement | null"
129349
+ "text": "boolean"
129240
129350
  },
129241
- "privacy": "private",
129242
- "default": "null",
129243
- "description": "Reference to the slotted input element.",
129351
+ "privacy": "public",
129352
+ "static": true,
129353
+ "default": "true",
129244
129354
  "inheritedFrom": {
129245
- "name": "SbbFormFieldElement",
129246
- "module": "form-field/form-field/form-field.component.js"
129355
+ "name": "SbbFormAssociatedMixin",
129356
+ "module": "core/mixins/form-associated-mixin.js"
129247
129357
  }
129248
129358
  },
129249
129359
  {
129250
129360
  "kind": "field",
129251
- "name": "_label",
129361
+ "name": "name",
129362
+ "privacy": "public",
129363
+ "description": "Name of the form element. Will be read from name attribute.",
129252
129364
  "type": {
129253
- "text": "HTMLLabelElement"
129365
+ "text": "string"
129254
129366
  },
129255
- "privacy": "private",
129256
- "description": "Reference to the slotted label elements.",
129367
+ "attribute": "name",
129257
129368
  "inheritedFrom": {
129258
- "name": "SbbFormFieldElement",
129259
- "module": "form-field/form-field/form-field.component.js"
129369
+ "name": "SbbFormAssociatedMixin",
129370
+ "module": "core/mixins/form-associated-mixin.js"
129260
129371
  }
129261
129372
  },
129262
129373
  {
129263
129374
  "kind": "field",
129264
- "name": "inputElement",
129375
+ "name": "validity",
129265
129376
  "type": {
129266
- "text": "HTMLInputElement | HTMLSelectElement | HTMLElement | null"
129377
+ "text": "ValidityState"
129267
129378
  },
129268
129379
  "privacy": "public",
129269
- "description": "Returns the input element.",
129380
+ "description": "Returns the ValidityState object for this element.",
129270
129381
  "readonly": true,
129271
129382
  "inheritedFrom": {
129272
- "name": "SbbFormFieldElement",
129273
- "module": "form-field/form-field/form-field.component.js"
129383
+ "name": "SbbFormAssociatedMixin",
129384
+ "module": "core/mixins/form-associated-mixin.js"
129274
129385
  }
129275
129386
  },
129276
129387
  {
129277
129388
  "kind": "field",
129278
- "name": "label",
129389
+ "name": "validationMessage",
129279
129390
  "type": {
129280
- "text": "HTMLLabelElement | null"
129391
+ "text": "string"
129281
129392
  },
129282
129393
  "privacy": "public",
129283
- "description": "Reference to the slotted label.",
129394
+ "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.",
129284
129395
  "readonly": true,
129285
129396
  "inheritedFrom": {
129286
- "name": "SbbFormFieldElement",
129287
- "module": "form-field/form-field/form-field.component.js"
129397
+ "name": "SbbFormAssociatedMixin",
129398
+ "module": "core/mixins/form-associated-mixin.js"
129288
129399
  }
129289
129400
  },
129290
129401
  {
129291
129402
  "kind": "field",
129292
- "name": "_language",
129293
- "privacy": "private",
129294
- "default": "new SbbLanguageController(this)",
129403
+ "name": "willValidate",
129404
+ "type": {
129405
+ "text": "boolean"
129406
+ },
129407
+ "privacy": "public",
129408
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
129409
+ "readonly": true,
129295
129410
  "inheritedFrom": {
129296
- "name": "SbbFormFieldElement",
129297
- "module": "form-field/form-field/form-field.component.js"
129411
+ "name": "SbbFormAssociatedMixin",
129412
+ "module": "core/mixins/form-associated-mixin.js"
129298
129413
  }
129299
129414
  },
129300
129415
  {
129301
129416
  "kind": "field",
129302
- "name": "_formFieldAttributeObserver",
129417
+ "name": "_validityStates",
129303
129418
  "privacy": "private",
129304
- "description": "Listens to the changes on `readonly` and `disabled` attributes of `<input>`.",
129419
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
129305
129420
  "inheritedFrom": {
129306
- "name": "SbbFormFieldElement",
129307
- "module": "form-field/form-field/form-field.component.js"
129421
+ "name": "SbbFormAssociatedMixin",
129422
+ "module": "core/mixins/form-associated-mixin.js"
129308
129423
  }
129309
129424
  },
129310
129425
  {
129311
129426
  "kind": "field",
129312
- "name": "_inputFormAbortController",
129313
- "privacy": "private",
129314
- "default": "new AbortController()",
129427
+ "name": "formDisabled",
129428
+ "type": {
129429
+ "text": "boolean"
129430
+ },
129431
+ "privacy": "protected",
129432
+ "default": "false",
129433
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
129315
129434
  "inheritedFrom": {
129316
- "name": "SbbFormFieldElement",
129317
- "module": "form-field/form-field/form-field.component.js"
129435
+ "name": "SbbFormAssociatedMixin",
129436
+ "module": "core/mixins/form-associated-mixin.js"
129318
129437
  }
129319
129438
  },
129320
129439
  {
129321
- "kind": "field",
129322
- "name": "_control",
129323
- "type": {
129324
- "text": "SbbFormFieldElementControl | null"
129440
+ "kind": "method",
129441
+ "name": "checkValidity",
129442
+ "privacy": "public",
129443
+ "return": {
129444
+ "type": {
129445
+ "text": "boolean"
129446
+ }
129325
129447
  },
129326
- "privacy": "private",
129327
- "default": "null",
129448
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
129328
129449
  "inheritedFrom": {
129329
- "name": "SbbFormFieldElement",
129330
- "module": "form-field/form-field/form-field.component.js"
129450
+ "name": "SbbFormAssociatedMixin",
129451
+ "module": "core/mixins/form-associated-mixin.js"
129331
129452
  }
129332
129453
  },
129333
129454
  {
129334
129455
  "kind": "method",
129335
- "name": "_handleWrapperClick",
129336
- "privacy": "private",
129456
+ "name": "reportValidity",
129457
+ "privacy": "public",
129337
129458
  "return": {
129338
129459
  "type": {
129339
- "text": "void"
129460
+ "text": "boolean"
129340
129461
  }
129341
129462
  },
129342
- "parameters": [
129343
- {
129344
- "name": "event",
129345
- "type": {
129346
- "text": "MouseEvent"
129347
- }
129348
- }
129349
- ],
129463
+ "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.",
129350
129464
  "inheritedFrom": {
129351
- "name": "SbbFormFieldElement",
129352
- "module": "form-field/form-field/form-field.component.js"
129465
+ "name": "SbbFormAssociatedMixin",
129466
+ "module": "core/mixins/form-associated-mixin.js"
129353
129467
  }
129354
129468
  },
129355
129469
  {
129356
129470
  "kind": "method",
129357
- "name": "_isElementFocusExcluded",
129358
- "privacy": "private",
129471
+ "name": "setCustomValidity",
129472
+ "privacy": "public",
129359
129473
  "return": {
129360
129474
  "type": {
129361
- "text": "boolean"
129475
+ "text": "void"
129362
129476
  }
129363
129477
  },
129364
129478
  "parameters": [
129365
129479
  {
129366
- "name": "event",
129480
+ "name": "message",
129367
129481
  "type": {
129368
- "text": "Event"
129482
+ "text": "string"
129369
129483
  }
129370
129484
  }
129371
129485
  ],
129486
+ "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.",
129372
129487
  "inheritedFrom": {
129373
- "name": "SbbFormFieldElement",
129374
- "module": "form-field/form-field/form-field.component.js"
129488
+ "name": "SbbFormAssociatedMixin",
129489
+ "module": "core/mixins/form-associated-mixin.js"
129375
129490
  }
129376
129491
  },
129377
129492
  {
129378
129493
  "kind": "method",
129379
- "name": "_onSlotLabelChange",
129494
+ "name": "_hasDisabledAncestor",
129380
129495
  "privacy": "private",
129381
129496
  "return": {
129382
129497
  "type": {
129383
- "text": "void"
129498
+ "text": "boolean"
129384
129499
  }
129385
129500
  },
129386
129501
  "inheritedFrom": {
129387
- "name": "SbbFormFieldElement",
129388
- "module": "form-field/form-field/form-field.component.js"
129502
+ "name": "SbbFormAssociatedMixin",
129503
+ "module": "core/mixins/form-associated-mixin.js"
129389
129504
  }
129390
129505
  },
129391
129506
  {
129392
129507
  "kind": "method",
129393
- "name": "_onSlotInputChange",
129394
- "privacy": "private",
129508
+ "name": "updateFormValue",
129509
+ "privacy": "protected",
129395
129510
  "return": {
129396
129511
  "type": {
129397
129512
  "text": "void"
129398
129513
  }
129399
129514
  },
129400
- "description": "It is used internally to assign the attributes of `<input>` to `_id` and `_input` and to observe the native readonly and disabled attributes.",
129515
+ "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",
129401
129516
  "inheritedFrom": {
129402
- "name": "SbbFormFieldElement",
129403
- "module": "form-field/form-field/form-field.component.js"
129517
+ "name": "SbbFormAssociatedMixin",
129518
+ "module": "core/mixins/form-associated-mixin.js"
129404
129519
  }
129405
129520
  },
129406
129521
  {
129407
129522
  "kind": "method",
129408
- "name": "_assignSlots",
129409
- "privacy": "private",
129523
+ "name": "formState",
129524
+ "privacy": "protected",
129410
129525
  "return": {
129411
129526
  "type": {
129412
- "text": "void"
129527
+ "text": "FormRestoreState"
129413
129528
  }
129414
129529
  },
129415
129530
  "inheritedFrom": {
129416
- "name": "SbbFormFieldElement",
129417
- "module": "form-field/form-field/form-field.component.js"
129418
- }
129419
- },
129420
- {
129421
- "kind": "method",
129422
- "name": "_connectInputElement",
129423
- "privacy": "private",
129424
- "return": {
129425
- "type": {
129426
- "text": "'changed' | 'no-input' | 'unchanged'"
129427
- }
129428
- },
129429
- "inheritedFrom": {
129430
- "name": "SbbFormFieldElement",
129431
- "module": "form-field/form-field/form-field.component.js"
129531
+ "name": "SbbFormAssociatedMixin",
129532
+ "module": "core/mixins/form-associated-mixin.js"
129432
129533
  }
129433
129534
  },
129434
129535
  {
129435
129536
  "kind": "method",
129436
- "name": "_syncLabelInputReferences",
129437
- "privacy": "private",
129537
+ "name": "setValidityFlag",
129538
+ "privacy": "protected",
129438
129539
  "return": {
129439
129540
  "type": {
129440
129541
  "text": "void"
129441
129542
  }
129442
129543
  },
129443
- "inheritedFrom": {
129444
- "name": "SbbFormFieldElement",
129445
- "module": "form-field/form-field/form-field.component.js"
129446
- }
129447
- },
129448
- {
129449
- "kind": "method",
129450
- "name": "_isInputElement",
129451
- "privacy": "private",
129452
- "return": {
129453
- "type": {
129454
- "text": "boolean"
129455
- }
129456
- },
129457
129544
  "parameters": [
129458
129545
  {
129459
- "name": "input",
129546
+ "name": "flag",
129460
129547
  "type": {
129461
- "text": "Element"
129548
+ "text": "T"
129549
+ }
129550
+ },
129551
+ {
129552
+ "name": "message",
129553
+ "type": {
129554
+ "text": "string"
129555
+ }
129556
+ },
129557
+ {
129558
+ "name": "flagValue",
129559
+ "optional": true,
129560
+ "type": {
129561
+ "text": "ValidityStateFlags[T]"
129462
129562
  }
129463
129563
  }
129464
129564
  ],
129565
+ "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).",
129465
129566
  "inheritedFrom": {
129466
- "name": "SbbFormFieldElement",
129467
- "module": "form-field/form-field/form-field.component.js"
129567
+ "name": "SbbFormAssociatedMixin",
129568
+ "module": "core/mixins/form-associated-mixin.js"
129468
129569
  }
129469
129570
  },
129470
129571
  {
129471
129572
  "kind": "method",
129472
- "name": "_readInputState",
129473
- "privacy": "private",
129573
+ "name": "removeValidityFlag",
129574
+ "privacy": "protected",
129474
129575
  "return": {
129475
129576
  "type": {
129476
129577
  "text": "void"
129477
129578
  }
129478
129579
  },
129479
- "inheritedFrom": {
129480
- "name": "SbbFormFieldElement",
129481
- "module": "form-field/form-field/form-field.component.js"
129482
- }
129483
- },
129484
- {
129485
- "kind": "method",
129486
- "name": "_registerInputFormListener",
129487
- "privacy": "private",
129488
- "return": {
129489
- "type": {
129490
- "text": "void"
129580
+ "parameters": [
129581
+ {
129582
+ "name": "flag",
129583
+ "type": {
129584
+ "text": "T"
129585
+ }
129491
129586
  }
129492
- },
129587
+ ],
129588
+ "description": "Removes the validity state flag entry and updates validity state.",
129493
129589
  "inheritedFrom": {
129494
- "name": "SbbFormFieldElement",
129495
- "module": "form-field/form-field/form-field.component.js"
129590
+ "name": "SbbFormAssociatedMixin",
129591
+ "module": "core/mixins/form-associated-mixin.js"
129496
129592
  }
129497
129593
  },
129498
129594
  {
129499
129595
  "kind": "method",
129500
- "name": "_patchInputValue",
129501
- "privacy": "private",
129596
+ "name": "validate",
129597
+ "privacy": "protected",
129502
129598
  "return": {
129503
129599
  "type": {
129504
129600
  "text": "void"
129505
129601
  }
129506
129602
  },
129603
+ "description": "To be called whenever the current element needs to be validated.",
129507
129604
  "inheritedFrom": {
129508
- "name": "SbbFormFieldElement",
129509
- "module": "form-field/form-field/form-field.component.js"
129605
+ "name": "SbbFormAssociatedMixin",
129606
+ "module": "core/mixins/form-associated-mixin.js"
129510
129607
  }
129511
129608
  },
129512
129609
  {
129513
129610
  "kind": "method",
129514
- "name": "_unpatchInputValue",
129515
- "privacy": "private",
129611
+ "name": "shouldValidate",
129612
+ "privacy": "protected",
129516
129613
  "return": {
129517
129614
  "type": {
129518
- "text": "void"
129615
+ "text": "boolean"
129519
129616
  }
129520
129617
  },
129618
+ "parameters": [
129619
+ {
129620
+ "name": "name",
129621
+ "type": {
129622
+ "text": "PropertyKey | undefined"
129623
+ }
129624
+ }
129625
+ ],
129626
+ "description": "Whether validation should be run on a property change with the given name.",
129521
129627
  "inheritedFrom": {
129522
- "name": "SbbFormFieldElement",
129523
- "module": "form-field/form-field/form-field.component.js"
129628
+ "name": "SbbFormAssociatedMixin",
129629
+ "module": "core/mixins/form-associated-mixin.js"
129524
129630
  }
129525
129631
  },
129526
129632
  {
129527
129633
  "kind": "method",
129528
- "name": "_checkAndUpdateInputEmpty",
129634
+ "name": "_setInternalValidity",
129529
129635
  "privacy": "private",
129530
129636
  "return": {
129531
129637
  "type": {
@@ -129533,154 +129639,113 @@
129533
129639
  }
129534
129640
  },
129535
129641
  "inheritedFrom": {
129536
- "name": "SbbFormFieldElement",
129537
- "module": "form-field/form-field/form-field.component.js"
129642
+ "name": "SbbFormAssociatedMixin",
129643
+ "module": "core/mixins/form-associated-mixin.js"
129538
129644
  }
129539
129645
  },
129540
129646
  {
129541
- "kind": "method",
129542
- "name": "_isInputEmpty",
129543
- "privacy": "private",
129544
- "return": {
129545
- "type": {
129546
- "text": "boolean"
129547
- }
129647
+ "kind": "field",
129648
+ "name": "role",
129649
+ "type": {
129650
+ "text": "ElementInternals['role']"
129548
129651
  },
129652
+ "privacy": "public",
129653
+ "static": true,
129654
+ "readonly": true,
129655
+ "default": "'button'",
129549
129656
  "inheritedFrom": {
129550
- "name": "SbbFormFieldElement",
129551
- "module": "form-field/form-field/form-field.component.js"
129657
+ "name": "SbbButtonLikeBaseElement",
129658
+ "module": "core/base-elements/button-base-element.js"
129552
129659
  }
129553
129660
  },
129554
129661
  {
129555
- "kind": "method",
129556
- "name": "_isInputValueEmpty",
129662
+ "kind": "field",
129663
+ "name": "_preventScrollOnSpaceKeydown",
129557
129664
  "privacy": "private",
129558
- "return": {
129559
- "type": {
129560
- "text": "boolean"
129665
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
129666
+ "parameters": [
129667
+ {
129668
+ "description": "The origin event.",
129669
+ "name": "event"
129561
129670
  }
129562
- },
129671
+ ],
129563
129672
  "inheritedFrom": {
129564
- "name": "SbbFormFieldElement",
129565
- "module": "form-field/form-field/form-field.component.js"
129673
+ "name": "SbbButtonLikeBaseElement",
129674
+ "module": "core/base-elements/button-base-element.js"
129566
129675
  }
129567
129676
  },
129568
129677
  {
129569
- "kind": "method",
129570
- "name": "_onSlotErrorChange",
129678
+ "kind": "field",
129679
+ "name": "_removeActiveMarker",
129571
129680
  "privacy": "private",
129572
- "return": {
129573
- "type": {
129574
- "text": "void"
129575
- }
129576
- },
129577
- "parameters": [
129578
- {
129579
- "name": "event",
129580
- "type": {
129581
- "text": "Event"
129582
- }
129583
- }
129584
- ],
129585
- "description": "It is used internally to set the aria-describedby attribute for the slotted input referencing available <sbb-error> instances.",
129586
129681
  "inheritedFrom": {
129587
- "name": "SbbFormFieldElement",
129588
- "module": "form-field/form-field/form-field.component.js"
129682
+ "name": "SbbButtonLikeBaseElement",
129683
+ "module": "core/base-elements/button-base-element.js"
129589
129684
  }
129590
129685
  },
129591
129686
  {
129592
- "kind": "method",
129593
- "name": "_onSlotHintChange",
129687
+ "kind": "field",
129688
+ "name": "_dispatchClickEventOnSpaceKeyup",
129594
129689
  "privacy": "private",
129595
- "return": {
129596
- "type": {
129597
- "text": "void"
129598
- }
129599
- },
129690
+ "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.",
129600
129691
  "parameters": [
129601
129692
  {
129602
- "name": "event",
129603
- "type": {
129604
- "text": "Event"
129605
- }
129693
+ "description": "The origin event.",
129694
+ "name": "event"
129606
129695
  }
129607
129696
  ],
129608
- "description": "It is used internally to set the aria-describedby attribute for the slotted input referencing available <sbb-hint> instances.",
129609
129697
  "inheritedFrom": {
129610
- "name": "SbbFormFieldElement",
129611
- "module": "form-field/form-field/form-field.component.js"
129698
+ "name": "SbbButtonLikeBaseElement",
129699
+ "module": "core/base-elements/button-base-element.js"
129612
129700
  }
129613
129701
  },
129614
129702
  {
129615
- "kind": "method",
129616
- "name": "_assignAriaDescribedByElements",
129703
+ "kind": "field",
129704
+ "name": "_dispatchClickEvent",
129617
129705
  "privacy": "private",
129618
- "return": {
129619
- "type": {
129620
- "text": "void"
129621
- }
129622
- },
129623
- "inheritedFrom": {
129624
- "name": "SbbFormFieldElement",
129625
- "module": "form-field/form-field/form-field.component.js"
129626
- }
129627
- },
129628
- {
129629
- "kind": "method",
129630
- "name": "reset",
129631
- "privacy": "public",
129632
- "return": {
129633
- "type": {
129634
- "text": "void"
129635
- }
129636
- },
129637
- "description": "Manually reset the form field. Currently, this only resets the floating label.",
129638
129706
  "inheritedFrom": {
129639
- "name": "SbbFormFieldElement",
129640
- "module": "form-field/form-field/form-field.component.js"
129707
+ "name": "SbbButtonLikeBaseElement",
129708
+ "module": "core/base-elements/button-base-element.js"
129641
129709
  }
129642
129710
  },
129643
129711
  {
129644
- "kind": "method",
129645
- "name": "clear",
129646
- "privacy": "public",
129647
- "return": {
129648
- "type": {
129649
- "text": "void"
129650
- }
129712
+ "kind": "field",
129713
+ "name": "maybeDisabled",
129714
+ "type": {
129715
+ "text": "boolean | undefined"
129651
129716
  },
129652
- "description": "Manually clears the input value. It only works for inputs, selects are not supported.",
129717
+ "privacy": "protected",
129718
+ "readonly": true,
129653
129719
  "inheritedFrom": {
129654
- "name": "SbbFormFieldElement",
129655
- "module": "form-field/form-field/form-field.component.js"
129720
+ "name": "SbbActionBaseElement",
129721
+ "module": "core/base-elements/action-base-element.js"
129656
129722
  }
129657
129723
  },
129658
129724
  {
129659
- "kind": "method",
129660
- "name": "_syncNegative",
129661
- "privacy": "private",
129662
- "return": {
129663
- "type": {
129664
- "text": "void"
129665
- }
129725
+ "kind": "field",
129726
+ "name": "maybeDisabledInteractive",
129727
+ "type": {
129728
+ "text": "boolean | undefined"
129666
129729
  },
129730
+ "privacy": "protected",
129731
+ "readonly": true,
129667
129732
  "inheritedFrom": {
129668
- "name": "SbbFormFieldElement",
129669
- "module": "form-field/form-field/form-field.component.js"
129733
+ "name": "SbbActionBaseElement",
129734
+ "module": "core/base-elements/action-base-element.js"
129670
129735
  }
129671
129736
  },
129672
129737
  {
129673
129738
  "kind": "method",
129674
- "name": "_syncSize",
129675
- "privacy": "private",
129739
+ "name": "setupBaseEventHandlers",
129740
+ "privacy": "protected",
129676
129741
  "return": {
129677
129742
  "type": {
129678
129743
  "text": "void"
129679
129744
  }
129680
129745
  },
129681
129746
  "inheritedFrom": {
129682
- "name": "SbbFormFieldElement",
129683
- "module": "form-field/form-field/form-field.component.js"
129747
+ "name": "SbbActionBaseElement",
129748
+ "module": "core/base-elements/action-base-element.js"
129684
129749
  }
129685
129750
  },
129686
129751
  {
@@ -129790,12 +129855,38 @@
129790
129855
  }
129791
129856
  ],
129792
129857
  "superclass": {
129793
- "name": "SbbFormFieldElement",
129794
- "module": "form-field.pure.js"
129858
+ "name": "SbbSecondaryButtonElement",
129859
+ "module": "button.pure.js"
129795
129860
  },
129796
- "tagName": "sbb-timetable-form-field",
129861
+ "tagName": "sbb-timetable-form-swap-button",
129797
129862
  "customElement": true,
129798
129863
  "attributes": [
129864
+ {
129865
+ "name": "size",
129866
+ "type": {
129867
+ "text": "SbbButtonSize"
129868
+ },
129869
+ "description": "Size variant, either l, m or s.",
129870
+ "default": "'l' / 's' (lean)",
129871
+ "fieldName": "size",
129872
+ "inheritedFrom": {
129873
+ "name": "SbbButtonCommonElementMixin",
129874
+ "module": "button/common/button-common.js"
129875
+ }
129876
+ },
129877
+ {
129878
+ "name": "loading",
129879
+ "type": {
129880
+ "text": "boolean"
129881
+ },
129882
+ "default": "false",
129883
+ "description": "Whether the button indicates a loading state.\nThe animation kicks in after a delay of 300ms, configurable with --sbb-button-loading-delay CSS variable.",
129884
+ "fieldName": "loading",
129885
+ "inheritedFrom": {
129886
+ "name": "SbbButtonCommonElementMixin",
129887
+ "module": "button/common/button-common.js"
129888
+ }
129889
+ },
129799
129890
  {
129800
129891
  "name": "negative",
129801
129892
  "type": {
@@ -129810,163 +129901,121 @@
129810
129901
  }
129811
129902
  },
129812
129903
  {
129813
- "name": "error-space",
129904
+ "name": "icon-name",
129814
129905
  "type": {
129815
- "text": "'none' | 'reserve'"
129906
+ "text": "string"
129816
129907
  },
129817
- "default": "'none'",
129818
- "description": "Whether to reserve space for an error message, hint or text-counter.\n`none` does not reserve any space.\n`reserve` does reserve one row for an error message.",
129819
- "fieldName": "errorSpace",
129908
+ "default": "''",
129909
+ "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.",
129910
+ "fieldName": "iconName",
129820
129911
  "inheritedFrom": {
129821
- "name": "SbbFormFieldElement",
129822
- "module": "form-field/form-field/form-field.component.js"
129912
+ "name": "SbbIconNameMixin",
129913
+ "module": "icon/icon-name-mixin.js"
129823
129914
  }
129824
129915
  },
129825
129916
  {
129826
- "name": "optional",
129917
+ "name": "disabled-interactive",
129827
129918
  "type": {
129828
129919
  "text": "boolean"
129829
129920
  },
129830
129921
  "default": "false",
129831
- "description": "Indicates whether the input is optional.",
129832
- "deprecated": "Set the (optional) label text manually. Will be removed with next major version.",
129833
- "fieldName": "optional",
129922
+ "description": "Whether the button should be aria-disabled but stay interactive.",
129923
+ "fieldName": "disabledInteractive",
129834
129924
  "inheritedFrom": {
129835
- "name": "SbbFormFieldElement",
129836
- "module": "form-field/form-field/form-field.component.js"
129925
+ "name": "SbbDisabledInteractiveMixin",
129926
+ "module": "core/mixins/disabled-mixin.js"
129837
129927
  }
129838
129928
  },
129839
129929
  {
129840
- "name": "size",
129930
+ "name": "disabled",
129931
+ "description": "Whether the component is disabled.",
129932
+ "default": "false",
129841
129933
  "type": {
129842
- "text": "'l' | 'm' | 's'"
129934
+ "text": "boolean"
129843
129935
  },
129844
- "description": "Size variant, either l, m or s.",
129845
- "default": "'m' / 's' (lean)",
129846
- "fieldName": "size",
129936
+ "fieldName": "disabled",
129847
129937
  "inheritedFrom": {
129848
- "name": "SbbFormFieldElement",
129849
- "module": "form-field/form-field/form-field.component.js"
129938
+ "name": "SbbDisabledMixin",
129939
+ "module": "core/mixins/disabled-mixin.js"
129850
129940
  }
129851
129941
  },
129852
129942
  {
129853
- "name": "borderless",
129943
+ "name": "value",
129854
129944
  "type": {
129855
- "text": "boolean"
129945
+ "text": "string"
129856
129946
  },
129857
- "default": "false",
129858
- "description": "Whether to display the form field without a border.",
129859
- "fieldName": "borderless",
129947
+ "default": "''",
129948
+ "description": "Value of the form element.",
129949
+ "fieldName": "value",
129860
129950
  "inheritedFrom": {
129861
- "name": "SbbFormFieldElement",
129862
- "module": "form-field/form-field/form-field.component.js"
129951
+ "name": "SbbButtonBaseElement",
129952
+ "module": "core/base-elements/button-base-element.js"
129863
129953
  }
129864
129954
  },
129865
129955
  {
129866
- "name": "width",
129956
+ "name": "type",
129957
+ "description": "The type attribute to use for the button.",
129958
+ "default": "'button'",
129867
129959
  "type": {
129868
- "text": "'default' | 'collapse'"
129960
+ "text": "SbbButtonType"
129869
129961
  },
129870
- "default": "'default'",
129871
- "description": "Defines the width of the component:\n- `default`: the component has defined width and min-width;\n- `collapse`: the component adapts itself to its inner input content.",
129872
- "fieldName": "width",
129962
+ "fieldName": "type",
129873
129963
  "inheritedFrom": {
129874
- "name": "SbbFormFieldElement",
129875
- "module": "form-field/form-field/form-field.component.js"
129964
+ "name": "SbbButtonBaseElement",
129965
+ "module": "core/base-elements/button-base-element.js"
129876
129966
  }
129877
129967
  },
129878
129968
  {
129879
- "name": "hidden-label",
129969
+ "name": "form",
129970
+ "description": "The `<form>` element to associate the button with.",
129880
129971
  "type": {
129881
- "text": "boolean"
129972
+ "text": "HTMLFormElement | null"
129882
129973
  },
129883
- "default": "false",
129884
- "description": "Whether to visually hide the label. If hidden, screen readers will still read it.",
129885
- "fieldName": "hiddenLabel",
129974
+ "fieldName": "form",
129886
129975
  "inheritedFrom": {
129887
- "name": "SbbFormFieldElement",
129888
- "module": "form-field/form-field/form-field.component.js"
129976
+ "name": "SbbButtonBaseElement",
129977
+ "module": "core/base-elements/button-base-element.js"
129889
129978
  }
129890
129979
  },
129891
129980
  {
129892
- "name": "floating-label",
129981
+ "name": "name",
129982
+ "description": "Name of the form element. Will be read from name attribute.",
129893
129983
  "type": {
129894
- "text": "boolean"
129984
+ "text": "string"
129895
129985
  },
129896
- "default": "false",
129897
- "description": "Whether the label should float. If activated, the placeholder of the input is hidden.",
129898
- "fieldName": "floatingLabel",
129986
+ "fieldName": "name",
129899
129987
  "inheritedFrom": {
129900
- "name": "SbbFormFieldElement",
129901
- "module": "form-field/form-field/form-field.component.js"
129988
+ "name": "SbbFormAssociatedMixin",
129989
+ "module": "core/mixins/form-associated-mixin.js"
129902
129990
  }
129903
129991
  }
129904
129992
  ],
129905
129993
  "slots": [
129906
129994
  {
129907
- "description": "Use this slot to render an input/select or a supported non-native element.",
129995
+ "description": "Use the unnamed slot to add content to the secondary-button.",
129908
129996
  "name": "",
129909
129997
  "inheritedFrom": {
129910
- "name": "SbbFormFieldElement",
129911
- "module": "form-field/form-field/form-field.component.js"
129912
- }
129913
- },
129914
- {
129915
- "description": "Use this slot to render a label.",
129916
- "name": "label",
129917
- "inheritedFrom": {
129918
- "name": "SbbFormFieldElement",
129919
- "module": "form-field/form-field/form-field.component.js"
129920
- }
129921
- },
129922
- {
129923
- "description": "Use this slot to render an icon on the left side of the input.",
129924
- "name": "prefix",
129925
- "inheritedFrom": {
129926
- "name": "SbbFormFieldElement",
129927
- "module": "form-field/form-field/form-field.component.js"
129928
- }
129929
- },
129930
- {
129931
- "description": "Use this slot to render an icon on the right side of the input.",
129932
- "name": "suffix",
129933
- "inheritedFrom": {
129934
- "name": "SbbFormFieldElement",
129935
- "module": "form-field/form-field/form-field.component.js"
129936
- }
129937
- },
129938
- {
129939
- "description": "Use this slot to render an error.",
129940
- "name": "error",
129941
- "inheritedFrom": {
129942
- "name": "SbbFormFieldElement",
129943
- "module": "form-field/form-field/form-field.component.js"
129998
+ "name": "SbbSecondaryButtonElement",
129999
+ "module": "button/secondary-button/secondary-button.component.js"
129944
130000
  }
129945
130001
  },
129946
130002
  {
129947
- "description": "Use this slot to render an `<sbb-hint>` or an `<sbb-form-field-text-counter>` element.",
129948
- "name": "hint",
130003
+ "description": "Slot used to display the icon, if one is set.",
130004
+ "name": "icon",
129949
130005
  "inheritedFrom": {
129950
- "name": "SbbFormFieldElement",
129951
- "module": "form-field/form-field/form-field.component.js"
130006
+ "name": "SbbSecondaryButtonElement",
130007
+ "module": "button/secondary-button/secondary-button.component.js"
129952
130008
  }
129953
130009
  }
129954
130010
  ],
129955
130011
  "cssProperties": [
129956
130012
  {
129957
- "description": "To override the focus outline offset,",
129958
- "name": "--sbb-form-field-outline-offset",
129959
- "inheritedFrom": {
129960
- "name": "SbbFormFieldElement",
129961
- "module": "form-field/form-field/form-field.component.js"
129962
- }
129963
- },
129964
- {
129965
- "description": "To override the z-index of the focus underline effect,",
129966
- "name": "--sbb-form-field-focus-underline-z-index",
130013
+ "description": "The delay before the loading animation starts, when setting the button into loading state.",
130014
+ "name": "--sbb-button-loading-delay",
130015
+ "default": "300ms",
129967
130016
  "inheritedFrom": {
129968
- "name": "SbbFormFieldElement",
129969
- "module": "form-field/form-field/form-field.component.js"
130017
+ "name": "SbbSecondaryButtonElement",
130018
+ "module": "button/secondary-button/secondary-button.component.js"
129970
130019
  }
129971
130020
  }
129972
130021
  ]
@@ -129975,22 +130024,22 @@
129975
130024
  "exports": [
129976
130025
  {
129977
130026
  "kind": "js",
129978
- "name": "SbbTimetableFormFieldElement",
130027
+ "name": "SbbTimetableFormSwapButtonElement",
129979
130028
  "declaration": {
129980
- "name": "SbbTimetableFormFieldElement",
129981
- "module": "timetable-form/timetable-form-field/timetable-form-field.component.js"
130029
+ "name": "SbbTimetableFormSwapButtonElement",
130030
+ "module": "timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js"
129982
130031
  }
129983
130032
  }
129984
130033
  ]
129985
130034
  },
129986
130035
  {
129987
130036
  "kind": "javascript-module",
129988
- "path": "timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js",
130037
+ "path": "timetable-form/timetable-form-field/timetable-form-field.component.js",
129989
130038
  "declarations": [
129990
130039
  {
129991
130040
  "kind": "class",
129992
- "description": "An extension of `sbb-secondary-button` to be used inside the `sbb-timetable-form`.\nWhen placed between two `sbb-timetable-form-field`, the 'click' swaps the value of the sibling inputs.",
129993
- "name": "SbbTimetableFormSwapButtonElement",
130041
+ "description": "Extends the `sbb-form-field`. Meant to be used inside a `sbb-timetable-form`.",
130042
+ "name": "SbbTimetableFormFieldElement",
129994
130043
  "members": [
129995
130044
  {
129996
130045
  "kind": "field",
@@ -130001,88 +130050,83 @@
130001
130050
  "privacy": "public",
130002
130051
  "static": true,
130003
130052
  "readonly": true,
130053
+ "default": "'sbb-timetable-form-field'",
130004
130054
  "inheritedFrom": {
130005
130055
  "name": "SbbElement",
130006
130056
  "module": "core/base-elements/element.js"
130007
- },
130008
- "default": "'sbb-timetable-form-swap-button'"
130057
+ }
130009
130058
  },
130010
130059
  {
130011
130060
  "kind": "field",
130012
- "name": "_languageController",
130013
- "privacy": "private",
130014
- "default": "new SbbLanguageController(this)"
130015
- },
130016
- {
130017
- "kind": "method",
130018
- "name": "_invertFieldValues",
130019
- "privacy": "private",
130020
- "return": {
130021
- "type": {
130022
- "text": "void"
130023
- }
130061
+ "name": "_routeIcon",
130062
+ "type": {
130063
+ "text": "boolean"
130024
130064
  },
130025
- "description": "Search for `sbb-timetable-form-field` inputs, invert their values and dispatch the respective input and change events"
130065
+ "privacy": "private",
130066
+ "default": "false"
130026
130067
  },
130027
130068
  {
130028
- "kind": "method",
130029
- "name": "renderIconName",
130030
- "privacy": "protected",
130031
- "return": {
130032
- "type": {
130033
- "text": "string"
130034
- }
130069
+ "kind": "field",
130070
+ "name": "borderless",
130071
+ "type": {
130072
+ "text": "boolean"
130035
130073
  },
130074
+ "privacy": "public",
130075
+ "default": "true",
130076
+ "description": "Whether to display the form field without a border.",
130077
+ "attribute": "borderless",
130078
+ "reflects": true,
130036
130079
  "inheritedFrom": {
130037
- "name": "SbbIconNameMixin",
130038
- "module": "icon/icon-name-mixin.js"
130080
+ "name": "SbbFormFieldElement",
130081
+ "module": "form-field/form-field/form-field.component.js"
130039
130082
  }
130040
130083
  },
130041
130084
  {
130042
130085
  "kind": "field",
130043
- "name": "size",
130086
+ "name": "floatingLabel",
130044
130087
  "type": {
130045
- "text": "SbbButtonSize"
130088
+ "text": "boolean"
130046
130089
  },
130047
130090
  "privacy": "public",
130048
- "description": "Size variant, either l, m or s.",
130049
- "default": "'l' / 's' (lean)",
130050
- "attribute": "size",
130091
+ "default": "true",
130092
+ "description": "Whether the label should float. If activated, the placeholder of the input is hidden.",
130093
+ "attribute": "floating-label",
130051
130094
  "reflects": true,
130052
130095
  "inheritedFrom": {
130053
- "name": "SbbButtonCommonElementMixin",
130054
- "module": "button/common/button-common.js"
130096
+ "name": "SbbFormFieldElement",
130097
+ "module": "form-field/form-field/form-field.component.js"
130055
130098
  }
130056
130099
  },
130057
130100
  {
130058
130101
  "kind": "field",
130059
- "name": "loading",
130102
+ "name": "width",
130060
130103
  "type": {
130061
- "text": "boolean"
130104
+ "text": "string"
130062
130105
  },
130063
130106
  "privacy": "public",
130064
- "default": "false",
130065
- "description": "Whether the button indicates a loading state.\nThe animation kicks in after a delay of 300ms, configurable with --sbb-button-loading-delay CSS variable.",
130066
- "attribute": "loading",
130107
+ "default": "'collapse'",
130108
+ "description": "Defines the width of the component:\n- `default`: the component has defined width and min-width;\n- `collapse`: the component adapts itself to its inner input content.",
130109
+ "attribute": "width",
130067
130110
  "reflects": true,
130068
130111
  "inheritedFrom": {
130069
- "name": "SbbButtonCommonElementMixin",
130070
- "module": "button/common/button-common.js"
130112
+ "name": "SbbFormFieldElement",
130113
+ "module": "form-field/form-field/form-field.component.js"
130071
130114
  }
130072
130115
  },
130073
130116
  {
130074
- "kind": "method",
130075
- "name": "renderTemplate",
130076
- "privacy": "protected",
130077
- "return": {
130078
- "type": {
130079
- "text": "TemplateResult"
130080
- }
130117
+ "kind": "field",
130118
+ "name": "size",
130119
+ "type": {
130120
+ "text": "string"
130081
130121
  },
130082
- "description": "Override this method to render the component template.",
130122
+ "privacy": "public",
130123
+ "description": "Size variant, either l, m or s.",
130124
+ "default": "'l'",
130125
+ "attribute": "size",
130126
+ "reflects": true,
130083
130127
  "inheritedFrom": {
130084
- "name": "SbbActionBaseElement",
130085
- "module": "core/base-elements/action-base-element.js"
130128
+ "name": "SbbFormFieldElement",
130129
+ "module": "form-field/form-field/form-field.component.js"
130086
130130
  }
130087
130131
  },
130088
130132
  {
@@ -130103,631 +130147,571 @@
130103
130147
  },
130104
130148
  {
130105
130149
  "kind": "field",
130106
- "name": "iconName",
130150
+ "name": "_excludedFocusElements",
130107
130151
  "type": {
130108
- "text": "string"
130152
+ "text": "array"
130109
130153
  },
130110
- "privacy": "public",
130111
- "default": "''",
130112
- "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.",
130113
- "attribute": "icon-name",
130154
+ "privacy": "private",
130155
+ "readonly": true,
130156
+ "default": "['button', 'sbb-popover', 'sbb-option', 'sbb-chip']",
130114
130157
  "inheritedFrom": {
130115
- "name": "SbbIconNameMixin",
130116
- "module": "icon/icon-name-mixin.js"
130158
+ "name": "SbbFormFieldElement",
130159
+ "module": "form-field/form-field/form-field.component.js"
130117
130160
  }
130118
130161
  },
130119
130162
  {
130120
- "kind": "method",
130121
- "name": "renderIconSlot",
130122
- "privacy": "protected",
130123
- "return": {
130124
- "type": {
130125
- "text": "TemplateResult"
130126
- }
130163
+ "kind": "field",
130164
+ "name": "_floatingLabelSupportedInputElements",
130165
+ "type": {
130166
+ "text": "array"
130127
130167
  },
130128
- "parameters": [
130129
- {
130130
- "name": "classname",
130131
- "optional": true,
130132
- "type": {
130133
- "text": "string"
130134
- }
130135
- }
130136
- ],
130168
+ "privacy": "private",
130169
+ "readonly": true,
130170
+ "default": "[ 'input', 'select', 'textarea', 'sbb-select', ]",
130137
130171
  "inheritedFrom": {
130138
- "name": "SbbIconNameMixin",
130139
- "module": "icon/icon-name-mixin.js"
130172
+ "name": "SbbFormFieldElement",
130173
+ "module": "form-field/form-field/form-field.component.js"
130140
130174
  }
130141
130175
  },
130142
130176
  {
130143
- "kind": "method",
130144
- "name": "_renderIconName",
130145
- "privacy": "private",
130146
- "return": {
130147
- "type": {
130148
- "text": "string"
130149
- }
130177
+ "kind": "field",
130178
+ "name": "_floatingLabelSupportedInputTypes",
130179
+ "type": {
130180
+ "text": "array"
130150
130181
  },
130182
+ "privacy": "private",
130183
+ "readonly": true,
130184
+ "default": "[ 'email', 'number', 'password', 'search', 'tel', 'text', 'url', ]",
130151
130185
  "inheritedFrom": {
130152
- "name": "SbbIconNameMixin",
130153
- "module": "icon/icon-name-mixin.js"
130186
+ "name": "SbbFormFieldElement",
130187
+ "module": "form-field/form-field/form-field.component.js"
130154
130188
  }
130155
130189
  },
130156
130190
  {
130157
130191
  "kind": "field",
130158
- "name": "disabledInteractive",
130192
+ "name": "errorSpace",
130159
130193
  "type": {
130160
- "text": "boolean"
130194
+ "text": "'none' | 'reserve'"
130161
130195
  },
130162
130196
  "privacy": "public",
130163
- "default": "false",
130164
- "description": "Whether the button should be aria-disabled but stay interactive.",
130165
- "attribute": "disabled-interactive",
130197
+ "default": "'none'",
130198
+ "description": "Whether to reserve space for an error message, hint or text-counter.\n`none` does not reserve any space.\n`reserve` does reserve one row for an error message.",
130199
+ "attribute": "error-space",
130166
130200
  "reflects": true,
130167
130201
  "inheritedFrom": {
130168
- "name": "SbbDisabledInteractiveMixin",
130169
- "module": "core/mixins/disabled-mixin.js"
130202
+ "name": "SbbFormFieldElement",
130203
+ "module": "form-field/form-field/form-field.component.js"
130170
130204
  }
130171
130205
  },
130172
130206
  {
130173
130207
  "kind": "field",
130174
- "name": "disabled",
130175
- "privacy": "public",
130176
- "description": "Whether the component is disabled.",
130177
- "default": "false",
130208
+ "name": "optional",
130178
130209
  "type": {
130179
130210
  "text": "boolean"
130180
130211
  },
130181
- "attribute": "disabled",
130182
- "reflects": true,
130212
+ "privacy": "public",
130213
+ "default": "false",
130214
+ "description": "Indicates whether the input is optional.",
130215
+ "deprecated": "Set the (optional) label text manually. Will be removed with next major version.",
130216
+ "attribute": "optional",
130183
130217
  "inheritedFrom": {
130184
- "name": "SbbDisabledMixin",
130185
- "module": "core/mixins/disabled-mixin.js"
130218
+ "name": "SbbFormFieldElement",
130219
+ "module": "form-field/form-field/form-field.component.js"
130186
130220
  }
130187
130221
  },
130188
130222
  {
130189
130223
  "kind": "field",
130190
- "name": "#disabled",
130191
- "privacy": "private",
130224
+ "name": "hiddenLabel",
130192
130225
  "type": {
130193
130226
  "text": "boolean"
130194
130227
  },
130228
+ "privacy": "public",
130195
130229
  "default": "false",
130230
+ "description": "Whether to visually hide the label. If hidden, screen readers will still read it.",
130231
+ "attribute": "hidden-label",
130232
+ "reflects": true,
130196
130233
  "inheritedFrom": {
130197
- "name": "SbbDisabledMixin",
130198
- "module": "core/mixins/disabled-mixin.js"
130234
+ "name": "SbbFormFieldElement",
130235
+ "module": "form-field/form-field/form-field.component.js"
130199
130236
  }
130200
130237
  },
130201
130238
  {
130202
- "kind": "method",
130203
- "name": "isDisabledExternally",
130204
- "privacy": "protected",
130205
- "return": {
130206
- "type": {
130207
- "text": "boolean"
130208
- }
130239
+ "kind": "field",
130240
+ "name": "_errorElements",
130241
+ "type": {
130242
+ "text": "Element[]"
130209
130243
  },
130210
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
130244
+ "privacy": "private",
130245
+ "default": "[]",
130246
+ "description": "It is used internally to get the `error` slot.",
130211
130247
  "inheritedFrom": {
130212
- "name": "SbbDisabledMixin",
130213
- "module": "core/mixins/disabled-mixin.js"
130248
+ "name": "SbbFormFieldElement",
130249
+ "module": "form-field/form-field/form-field.component.js"
130214
130250
  }
130215
130251
  },
130216
130252
  {
130217
130253
  "kind": "field",
130218
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
130254
+ "name": "_hintElements",
130219
130255
  "type": {
130220
- "text": "array"
130256
+ "text": "Element[]"
130221
130257
  },
130222
130258
  "privacy": "private",
130223
- "readonly": true,
130224
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
130259
+ "default": "[]",
130260
+ "description": "It is used internally to get the `hint` slot.",
130225
130261
  "inheritedFrom": {
130226
- "name": "SbbButtonBaseElement",
130227
- "module": "core/base-elements/button-base-element.js"
130262
+ "name": "SbbFormFieldElement",
130263
+ "module": "form-field/form-field/form-field.component.js"
130228
130264
  }
130229
130265
  },
130230
130266
  {
130231
130267
  "kind": "field",
130232
- "name": "value",
130268
+ "name": "_input",
130233
130269
  "type": {
130234
- "text": "string"
130270
+ "text": "HTMLInputElement | HTMLSelectElement | HTMLElement | null"
130235
130271
  },
130236
- "privacy": "public",
130272
+ "privacy": "private",
130273
+ "default": "null",
130274
+ "description": "Reference to the slotted input element.",
130237
130275
  "inheritedFrom": {
130238
- "name": "SbbButtonBaseElement",
130239
- "module": "core/base-elements/button-base-element.js"
130240
- },
130241
- "default": "''",
130242
- "description": "Value of the form element.",
130243
- "attribute": "value"
130276
+ "name": "SbbFormFieldElement",
130277
+ "module": "form-field/form-field/form-field.component.js"
130278
+ }
130244
130279
  },
130245
130280
  {
130246
130281
  "kind": "field",
130247
- "name": "type",
130248
- "privacy": "public",
130249
- "description": "The type attribute to use for the button.",
130250
- "default": "'button'",
130282
+ "name": "_label",
130251
130283
  "type": {
130252
- "text": "SbbButtonType"
130284
+ "text": "HTMLLabelElement"
130253
130285
  },
130254
- "attribute": "type",
130286
+ "privacy": "private",
130287
+ "description": "Reference to the slotted label elements.",
130255
130288
  "inheritedFrom": {
130256
- "name": "SbbButtonBaseElement",
130257
- "module": "core/base-elements/button-base-element.js"
130289
+ "name": "SbbFormFieldElement",
130290
+ "module": "form-field/form-field/form-field.component.js"
130258
130291
  }
130259
130292
  },
130260
130293
  {
130261
130294
  "kind": "field",
130262
- "name": "form",
130295
+ "name": "inputElement",
130263
130296
  "type": {
130264
- "text": "HTMLFormElement | null"
130297
+ "text": "HTMLInputElement | HTMLSelectElement | HTMLElement | null"
130265
130298
  },
130266
130299
  "privacy": "public",
130267
- "description": "The `<form>` element to associate the button with.",
130300
+ "description": "Returns the input element.",
130301
+ "readonly": true,
130268
130302
  "inheritedFrom": {
130269
- "name": "SbbButtonBaseElement",
130270
- "module": "core/base-elements/button-base-element.js"
130271
- },
130272
- "attribute": "form"
130303
+ "name": "SbbFormFieldElement",
130304
+ "module": "form-field/form-field/form-field.component.js"
130305
+ }
130273
130306
  },
130274
130307
  {
130275
130308
  "kind": "field",
130276
- "name": "_formId",
130309
+ "name": "label",
130277
130310
  "type": {
130278
- "text": "string"
130311
+ "text": "HTMLLabelElement | null"
130279
130312
  },
130280
- "privacy": "private",
130281
- "default": "''",
130313
+ "privacy": "public",
130314
+ "description": "Reference to the slotted label.",
130315
+ "readonly": true,
130282
130316
  "inheritedFrom": {
130283
- "name": "SbbButtonBaseElement",
130284
- "module": "core/base-elements/button-base-element.js"
130317
+ "name": "SbbFormFieldElement",
130318
+ "module": "form-field/form-field/form-field.component.js"
130285
130319
  }
130286
130320
  },
130287
130321
  {
130288
130322
  "kind": "field",
130289
- "name": "_handleButtonClick",
130290
- "privacy": "private",
130291
- "inheritedFrom": {
130292
- "name": "SbbButtonBaseElement",
130293
- "module": "core/base-elements/button-base-element.js"
130294
- }
130295
- },
130296
- {
130297
- "kind": "method",
130298
- "name": "_requestSubmit",
130323
+ "name": "_language",
130299
130324
  "privacy": "private",
130300
- "return": {
130301
- "type": {
130302
- "text": "void"
130303
- }
130304
- },
130305
- "parameters": [
130306
- {
130307
- "name": "form",
130308
- "type": {
130309
- "text": "HTMLFormElement"
130310
- }
130311
- }
130312
- ],
130325
+ "default": "new SbbLanguageController(this)",
130313
130326
  "inheritedFrom": {
130314
- "name": "SbbButtonBaseElement",
130315
- "module": "core/base-elements/button-base-element.js"
130327
+ "name": "SbbFormFieldElement",
130328
+ "module": "form-field/form-field/form-field.component.js"
130316
130329
  }
130317
130330
  },
130318
130331
  {
130319
130332
  "kind": "field",
130320
- "name": "_formKeyDown",
130333
+ "name": "_formFieldAttributeObserver",
130321
130334
  "privacy": "private",
130335
+ "description": "Listens to the changes on `readonly` and `disabled` attributes of `<input>`.",
130322
130336
  "inheritedFrom": {
130323
- "name": "SbbButtonBaseElement",
130324
- "module": "core/base-elements/button-base-element.js"
130337
+ "name": "SbbFormFieldElement",
130338
+ "module": "form-field/form-field/form-field.component.js"
130325
130339
  }
130326
130340
  },
130327
130341
  {
130328
130342
  "kind": "field",
130329
- "name": "formAssociated",
130330
- "type": {
130331
- "text": "boolean"
130332
- },
130333
- "privacy": "public",
130334
- "static": true,
130335
- "default": "true",
130343
+ "name": "_inputFormAbortController",
130344
+ "privacy": "private",
130345
+ "default": "new AbortController()",
130336
130346
  "inheritedFrom": {
130337
- "name": "SbbFormAssociatedMixin",
130338
- "module": "core/mixins/form-associated-mixin.js"
130347
+ "name": "SbbFormFieldElement",
130348
+ "module": "form-field/form-field/form-field.component.js"
130339
130349
  }
130340
130350
  },
130341
130351
  {
130342
130352
  "kind": "field",
130343
- "name": "name",
130344
- "privacy": "public",
130345
- "description": "Name of the form element. Will be read from name attribute.",
130353
+ "name": "_control",
130346
130354
  "type": {
130347
- "text": "string"
130355
+ "text": "SbbFormFieldElementControl | null"
130348
130356
  },
130349
- "attribute": "name",
130357
+ "privacy": "private",
130358
+ "default": "null",
130350
130359
  "inheritedFrom": {
130351
- "name": "SbbFormAssociatedMixin",
130352
- "module": "core/mixins/form-associated-mixin.js"
130360
+ "name": "SbbFormFieldElement",
130361
+ "module": "form-field/form-field/form-field.component.js"
130353
130362
  }
130354
130363
  },
130355
130364
  {
130356
- "kind": "field",
130357
- "name": "validity",
130358
- "type": {
130359
- "text": "ValidityState"
130365
+ "kind": "method",
130366
+ "name": "_handleWrapperClick",
130367
+ "privacy": "private",
130368
+ "return": {
130369
+ "type": {
130370
+ "text": "void"
130371
+ }
130360
130372
  },
130361
- "privacy": "public",
130362
- "description": "Returns the ValidityState object for this element.",
130363
- "readonly": true,
130373
+ "parameters": [
130374
+ {
130375
+ "name": "event",
130376
+ "type": {
130377
+ "text": "MouseEvent"
130378
+ }
130379
+ }
130380
+ ],
130364
130381
  "inheritedFrom": {
130365
- "name": "SbbFormAssociatedMixin",
130366
- "module": "core/mixins/form-associated-mixin.js"
130382
+ "name": "SbbFormFieldElement",
130383
+ "module": "form-field/form-field/form-field.component.js"
130367
130384
  }
130368
130385
  },
130369
130386
  {
130370
- "kind": "field",
130371
- "name": "validationMessage",
130372
- "type": {
130373
- "text": "string"
130387
+ "kind": "method",
130388
+ "name": "_isElementFocusExcluded",
130389
+ "privacy": "private",
130390
+ "return": {
130391
+ "type": {
130392
+ "text": "boolean"
130393
+ }
130374
130394
  },
130375
- "privacy": "public",
130376
- "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.",
130377
- "readonly": true,
130395
+ "parameters": [
130396
+ {
130397
+ "name": "event",
130398
+ "type": {
130399
+ "text": "Event"
130400
+ }
130401
+ }
130402
+ ],
130378
130403
  "inheritedFrom": {
130379
- "name": "SbbFormAssociatedMixin",
130380
- "module": "core/mixins/form-associated-mixin.js"
130404
+ "name": "SbbFormFieldElement",
130405
+ "module": "form-field/form-field/form-field.component.js"
130381
130406
  }
130382
130407
  },
130383
130408
  {
130384
- "kind": "field",
130385
- "name": "willValidate",
130386
- "type": {
130387
- "text": "boolean"
130409
+ "kind": "method",
130410
+ "name": "_onSlotLabelChange",
130411
+ "privacy": "private",
130412
+ "return": {
130413
+ "type": {
130414
+ "text": "void"
130415
+ }
130388
130416
  },
130389
- "privacy": "public",
130390
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
130391
- "readonly": true,
130392
130417
  "inheritedFrom": {
130393
- "name": "SbbFormAssociatedMixin",
130394
- "module": "core/mixins/form-associated-mixin.js"
130418
+ "name": "SbbFormFieldElement",
130419
+ "module": "form-field/form-field/form-field.component.js"
130395
130420
  }
130396
130421
  },
130397
130422
  {
130398
- "kind": "field",
130399
- "name": "_validityStates",
130423
+ "kind": "method",
130424
+ "name": "_onSlotInputChange",
130400
130425
  "privacy": "private",
130401
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
130426
+ "return": {
130427
+ "type": {
130428
+ "text": "void"
130429
+ }
130430
+ },
130431
+ "description": "It is used internally to assign the attributes of `<input>` to `_id` and `_input` and to observe the native readonly and disabled attributes.",
130402
130432
  "inheritedFrom": {
130403
- "name": "SbbFormAssociatedMixin",
130404
- "module": "core/mixins/form-associated-mixin.js"
130433
+ "name": "SbbFormFieldElement",
130434
+ "module": "form-field/form-field/form-field.component.js"
130405
130435
  }
130406
130436
  },
130407
130437
  {
130408
- "kind": "field",
130409
- "name": "formDisabled",
130410
- "type": {
130411
- "text": "boolean"
130438
+ "kind": "method",
130439
+ "name": "_assignSlots",
130440
+ "privacy": "private",
130441
+ "return": {
130442
+ "type": {
130443
+ "text": "void"
130444
+ }
130412
130445
  },
130413
- "privacy": "protected",
130414
- "default": "false",
130415
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
130416
130446
  "inheritedFrom": {
130417
- "name": "SbbFormAssociatedMixin",
130418
- "module": "core/mixins/form-associated-mixin.js"
130447
+ "name": "SbbFormFieldElement",
130448
+ "module": "form-field/form-field/form-field.component.js"
130419
130449
  }
130420
130450
  },
130421
130451
  {
130422
130452
  "kind": "method",
130423
- "name": "checkValidity",
130424
- "privacy": "public",
130453
+ "name": "_connectInputElement",
130454
+ "privacy": "private",
130425
130455
  "return": {
130426
130456
  "type": {
130427
- "text": "boolean"
130457
+ "text": "'changed' | 'no-input' | 'unchanged'"
130428
130458
  }
130429
130459
  },
130430
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
130431
130460
  "inheritedFrom": {
130432
- "name": "SbbFormAssociatedMixin",
130433
- "module": "core/mixins/form-associated-mixin.js"
130461
+ "name": "SbbFormFieldElement",
130462
+ "module": "form-field/form-field/form-field.component.js"
130434
130463
  }
130435
130464
  },
130436
130465
  {
130437
130466
  "kind": "method",
130438
- "name": "reportValidity",
130439
- "privacy": "public",
130467
+ "name": "_syncLabelInputReferences",
130468
+ "privacy": "private",
130440
130469
  "return": {
130441
130470
  "type": {
130442
- "text": "boolean"
130471
+ "text": "void"
130443
130472
  }
130444
130473
  },
130445
- "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.",
130446
130474
  "inheritedFrom": {
130447
- "name": "SbbFormAssociatedMixin",
130448
- "module": "core/mixins/form-associated-mixin.js"
130475
+ "name": "SbbFormFieldElement",
130476
+ "module": "form-field/form-field/form-field.component.js"
130449
130477
  }
130450
130478
  },
130451
130479
  {
130452
130480
  "kind": "method",
130453
- "name": "setCustomValidity",
130454
- "privacy": "public",
130481
+ "name": "_isInputElement",
130482
+ "privacy": "private",
130455
130483
  "return": {
130456
130484
  "type": {
130457
- "text": "void"
130485
+ "text": "boolean"
130458
130486
  }
130459
130487
  },
130460
130488
  "parameters": [
130461
130489
  {
130462
- "name": "message",
130490
+ "name": "input",
130463
130491
  "type": {
130464
- "text": "string"
130492
+ "text": "Element"
130465
130493
  }
130466
130494
  }
130467
130495
  ],
130468
- "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.",
130469
130496
  "inheritedFrom": {
130470
- "name": "SbbFormAssociatedMixin",
130471
- "module": "core/mixins/form-associated-mixin.js"
130497
+ "name": "SbbFormFieldElement",
130498
+ "module": "form-field/form-field/form-field.component.js"
130472
130499
  }
130473
130500
  },
130474
130501
  {
130475
130502
  "kind": "method",
130476
- "name": "_hasDisabledAncestor",
130503
+ "name": "_readInputState",
130477
130504
  "privacy": "private",
130478
130505
  "return": {
130479
130506
  "type": {
130480
- "text": "boolean"
130507
+ "text": "void"
130481
130508
  }
130482
130509
  },
130483
130510
  "inheritedFrom": {
130484
- "name": "SbbFormAssociatedMixin",
130485
- "module": "core/mixins/form-associated-mixin.js"
130511
+ "name": "SbbFormFieldElement",
130512
+ "module": "form-field/form-field/form-field.component.js"
130486
130513
  }
130487
130514
  },
130488
130515
  {
130489
130516
  "kind": "method",
130490
- "name": "updateFormValue",
130491
- "privacy": "protected",
130517
+ "name": "_registerInputFormListener",
130518
+ "privacy": "private",
130492
130519
  "return": {
130493
130520
  "type": {
130494
130521
  "text": "void"
130495
130522
  }
130496
130523
  },
130497
- "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",
130498
130524
  "inheritedFrom": {
130499
- "name": "SbbFormAssociatedMixin",
130500
- "module": "core/mixins/form-associated-mixin.js"
130525
+ "name": "SbbFormFieldElement",
130526
+ "module": "form-field/form-field/form-field.component.js"
130501
130527
  }
130502
130528
  },
130503
130529
  {
130504
130530
  "kind": "method",
130505
- "name": "formState",
130506
- "privacy": "protected",
130531
+ "name": "_patchInputValue",
130532
+ "privacy": "private",
130507
130533
  "return": {
130508
130534
  "type": {
130509
- "text": "FormRestoreState"
130535
+ "text": "void"
130510
130536
  }
130511
130537
  },
130512
130538
  "inheritedFrom": {
130513
- "name": "SbbFormAssociatedMixin",
130514
- "module": "core/mixins/form-associated-mixin.js"
130539
+ "name": "SbbFormFieldElement",
130540
+ "module": "form-field/form-field/form-field.component.js"
130515
130541
  }
130516
130542
  },
130517
130543
  {
130518
130544
  "kind": "method",
130519
- "name": "setValidityFlag",
130520
- "privacy": "protected",
130545
+ "name": "_unpatchInputValue",
130546
+ "privacy": "private",
130521
130547
  "return": {
130522
130548
  "type": {
130523
130549
  "text": "void"
130524
130550
  }
130525
130551
  },
130526
- "parameters": [
130527
- {
130528
- "name": "flag",
130529
- "type": {
130530
- "text": "T"
130531
- }
130532
- },
130533
- {
130534
- "name": "message",
130535
- "type": {
130536
- "text": "string"
130537
- }
130538
- },
130539
- {
130540
- "name": "flagValue",
130541
- "optional": true,
130542
- "type": {
130543
- "text": "ValidityStateFlags[T]"
130544
- }
130545
- }
130546
- ],
130547
- "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).",
130548
130552
  "inheritedFrom": {
130549
- "name": "SbbFormAssociatedMixin",
130550
- "module": "core/mixins/form-associated-mixin.js"
130553
+ "name": "SbbFormFieldElement",
130554
+ "module": "form-field/form-field/form-field.component.js"
130551
130555
  }
130552
130556
  },
130553
130557
  {
130554
130558
  "kind": "method",
130555
- "name": "removeValidityFlag",
130556
- "privacy": "protected",
130559
+ "name": "_checkAndUpdateInputEmpty",
130560
+ "privacy": "private",
130557
130561
  "return": {
130558
130562
  "type": {
130559
130563
  "text": "void"
130560
130564
  }
130561
130565
  },
130562
- "parameters": [
130563
- {
130564
- "name": "flag",
130565
- "type": {
130566
- "text": "T"
130567
- }
130568
- }
130569
- ],
130570
- "description": "Removes the validity state flag entry and updates validity state.",
130571
130566
  "inheritedFrom": {
130572
- "name": "SbbFormAssociatedMixin",
130573
- "module": "core/mixins/form-associated-mixin.js"
130567
+ "name": "SbbFormFieldElement",
130568
+ "module": "form-field/form-field/form-field.component.js"
130574
130569
  }
130575
130570
  },
130576
130571
  {
130577
130572
  "kind": "method",
130578
- "name": "validate",
130579
- "privacy": "protected",
130573
+ "name": "_isInputEmpty",
130574
+ "privacy": "private",
130580
130575
  "return": {
130581
130576
  "type": {
130582
- "text": "void"
130577
+ "text": "boolean"
130583
130578
  }
130584
130579
  },
130585
- "description": "To be called whenever the current element needs to be validated.",
130586
130580
  "inheritedFrom": {
130587
- "name": "SbbFormAssociatedMixin",
130588
- "module": "core/mixins/form-associated-mixin.js"
130581
+ "name": "SbbFormFieldElement",
130582
+ "module": "form-field/form-field/form-field.component.js"
130589
130583
  }
130590
130584
  },
130591
130585
  {
130592
130586
  "kind": "method",
130593
- "name": "shouldValidate",
130594
- "privacy": "protected",
130587
+ "name": "_isInputValueEmpty",
130588
+ "privacy": "private",
130595
130589
  "return": {
130596
130590
  "type": {
130597
130591
  "text": "boolean"
130598
130592
  }
130599
130593
  },
130594
+ "inheritedFrom": {
130595
+ "name": "SbbFormFieldElement",
130596
+ "module": "form-field/form-field/form-field.component.js"
130597
+ }
130598
+ },
130599
+ {
130600
+ "kind": "method",
130601
+ "name": "_onSlotErrorChange",
130602
+ "privacy": "private",
130603
+ "return": {
130604
+ "type": {
130605
+ "text": "void"
130606
+ }
130607
+ },
130600
130608
  "parameters": [
130601
130609
  {
130602
- "name": "name",
130610
+ "name": "event",
130603
130611
  "type": {
130604
- "text": "PropertyKey | undefined"
130612
+ "text": "Event"
130605
130613
  }
130606
130614
  }
130607
130615
  ],
130608
- "description": "Whether validation should be run on a property change with the given name.",
130616
+ "description": "It is used internally to set the aria-describedby attribute for the slotted input referencing available <sbb-error> instances.",
130609
130617
  "inheritedFrom": {
130610
- "name": "SbbFormAssociatedMixin",
130611
- "module": "core/mixins/form-associated-mixin.js"
130618
+ "name": "SbbFormFieldElement",
130619
+ "module": "form-field/form-field/form-field.component.js"
130612
130620
  }
130613
130621
  },
130614
130622
  {
130615
130623
  "kind": "method",
130616
- "name": "_setInternalValidity",
130624
+ "name": "_onSlotHintChange",
130617
130625
  "privacy": "private",
130618
130626
  "return": {
130619
130627
  "type": {
130620
130628
  "text": "void"
130621
130629
  }
130622
130630
  },
130623
- "inheritedFrom": {
130624
- "name": "SbbFormAssociatedMixin",
130625
- "module": "core/mixins/form-associated-mixin.js"
130626
- }
130627
- },
130628
- {
130629
- "kind": "field",
130630
- "name": "role",
130631
- "type": {
130632
- "text": "ElementInternals['role']"
130633
- },
130634
- "privacy": "public",
130635
- "static": true,
130636
- "readonly": true,
130637
- "default": "'button'",
130638
- "inheritedFrom": {
130639
- "name": "SbbButtonLikeBaseElement",
130640
- "module": "core/base-elements/button-base-element.js"
130641
- }
130642
- },
130643
- {
130644
- "kind": "field",
130645
- "name": "_preventScrollOnSpaceKeydown",
130646
- "privacy": "private",
130647
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
130648
130631
  "parameters": [
130649
130632
  {
130650
- "description": "The origin event.",
130651
- "name": "event"
130633
+ "name": "event",
130634
+ "type": {
130635
+ "text": "Event"
130636
+ }
130652
130637
  }
130653
130638
  ],
130639
+ "description": "It is used internally to set the aria-describedby attribute for the slotted input referencing available <sbb-hint> instances.",
130654
130640
  "inheritedFrom": {
130655
- "name": "SbbButtonLikeBaseElement",
130656
- "module": "core/base-elements/button-base-element.js"
130657
- }
130658
- },
130659
- {
130660
- "kind": "field",
130661
- "name": "_removeActiveMarker",
130662
- "privacy": "private",
130663
- "inheritedFrom": {
130664
- "name": "SbbButtonLikeBaseElement",
130665
- "module": "core/base-elements/button-base-element.js"
130641
+ "name": "SbbFormFieldElement",
130642
+ "module": "form-field/form-field/form-field.component.js"
130666
130643
  }
130667
130644
  },
130668
130645
  {
130669
- "kind": "field",
130670
- "name": "_dispatchClickEventOnSpaceKeyup",
130646
+ "kind": "method",
130647
+ "name": "_assignAriaDescribedByElements",
130671
130648
  "privacy": "private",
130672
- "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.",
130673
- "parameters": [
130674
- {
130675
- "description": "The origin event.",
130676
- "name": "event"
130649
+ "return": {
130650
+ "type": {
130651
+ "text": "void"
130677
130652
  }
130678
- ],
130653
+ },
130679
130654
  "inheritedFrom": {
130680
- "name": "SbbButtonLikeBaseElement",
130681
- "module": "core/base-elements/button-base-element.js"
130655
+ "name": "SbbFormFieldElement",
130656
+ "module": "form-field/form-field/form-field.component.js"
130682
130657
  }
130683
130658
  },
130684
130659
  {
130685
- "kind": "field",
130686
- "name": "_dispatchClickEvent",
130687
- "privacy": "private",
130660
+ "kind": "method",
130661
+ "name": "reset",
130662
+ "privacy": "public",
130663
+ "return": {
130664
+ "type": {
130665
+ "text": "void"
130666
+ }
130667
+ },
130668
+ "description": "Manually reset the form field. Currently, this only resets the floating label.",
130688
130669
  "inheritedFrom": {
130689
- "name": "SbbButtonLikeBaseElement",
130690
- "module": "core/base-elements/button-base-element.js"
130670
+ "name": "SbbFormFieldElement",
130671
+ "module": "form-field/form-field/form-field.component.js"
130691
130672
  }
130692
130673
  },
130693
130674
  {
130694
- "kind": "field",
130695
- "name": "maybeDisabled",
130696
- "type": {
130697
- "text": "boolean | undefined"
130675
+ "kind": "method",
130676
+ "name": "clear",
130677
+ "privacy": "public",
130678
+ "return": {
130679
+ "type": {
130680
+ "text": "void"
130681
+ }
130698
130682
  },
130699
- "privacy": "protected",
130700
- "readonly": true,
130683
+ "description": "Manually clears the input value. It only works for inputs, selects are not supported.",
130701
130684
  "inheritedFrom": {
130702
- "name": "SbbActionBaseElement",
130703
- "module": "core/base-elements/action-base-element.js"
130685
+ "name": "SbbFormFieldElement",
130686
+ "module": "form-field/form-field/form-field.component.js"
130704
130687
  }
130705
130688
  },
130706
130689
  {
130707
- "kind": "field",
130708
- "name": "maybeDisabledInteractive",
130709
- "type": {
130710
- "text": "boolean | undefined"
130690
+ "kind": "method",
130691
+ "name": "_syncNegative",
130692
+ "privacy": "private",
130693
+ "return": {
130694
+ "type": {
130695
+ "text": "void"
130696
+ }
130711
130697
  },
130712
- "privacy": "protected",
130713
- "readonly": true,
130714
130698
  "inheritedFrom": {
130715
- "name": "SbbActionBaseElement",
130716
- "module": "core/base-elements/action-base-element.js"
130699
+ "name": "SbbFormFieldElement",
130700
+ "module": "form-field/form-field/form-field.component.js"
130717
130701
  }
130718
130702
  },
130719
130703
  {
130720
130704
  "kind": "method",
130721
- "name": "setupBaseEventHandlers",
130722
- "privacy": "protected",
130705
+ "name": "_syncSize",
130706
+ "privacy": "private",
130723
130707
  "return": {
130724
130708
  "type": {
130725
130709
  "text": "void"
130726
130710
  }
130727
130711
  },
130728
130712
  "inheritedFrom": {
130729
- "name": "SbbActionBaseElement",
130730
- "module": "core/base-elements/action-base-element.js"
130713
+ "name": "SbbFormFieldElement",
130714
+ "module": "form-field/form-field/form-field.component.js"
130731
130715
  }
130732
130716
  },
130733
130717
  {
@@ -130837,38 +130821,12 @@
130837
130821
  }
130838
130822
  ],
130839
130823
  "superclass": {
130840
- "name": "SbbSecondaryButtonElement",
130841
- "module": "button.pure.js"
130824
+ "name": "SbbFormFieldElement",
130825
+ "module": "form-field.pure.js"
130842
130826
  },
130843
- "tagName": "sbb-timetable-form-swap-button",
130827
+ "tagName": "sbb-timetable-form-field",
130844
130828
  "customElement": true,
130845
130829
  "attributes": [
130846
- {
130847
- "name": "size",
130848
- "type": {
130849
- "text": "SbbButtonSize"
130850
- },
130851
- "description": "Size variant, either l, m or s.",
130852
- "default": "'l' / 's' (lean)",
130853
- "fieldName": "size",
130854
- "inheritedFrom": {
130855
- "name": "SbbButtonCommonElementMixin",
130856
- "module": "button/common/button-common.js"
130857
- }
130858
- },
130859
- {
130860
- "name": "loading",
130861
- "type": {
130862
- "text": "boolean"
130863
- },
130864
- "default": "false",
130865
- "description": "Whether the button indicates a loading state.\nThe animation kicks in after a delay of 300ms, configurable with --sbb-button-loading-delay CSS variable.",
130866
- "fieldName": "loading",
130867
- "inheritedFrom": {
130868
- "name": "SbbButtonCommonElementMixin",
130869
- "module": "button/common/button-common.js"
130870
- }
130871
- },
130872
130830
  {
130873
130831
  "name": "negative",
130874
130832
  "type": {
@@ -130883,121 +130841,163 @@
130883
130841
  }
130884
130842
  },
130885
130843
  {
130886
- "name": "icon-name",
130844
+ "name": "error-space",
130887
130845
  "type": {
130888
- "text": "string"
130846
+ "text": "'none' | 'reserve'"
130889
130847
  },
130890
- "default": "''",
130891
- "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.",
130892
- "fieldName": "iconName",
130848
+ "default": "'none'",
130849
+ "description": "Whether to reserve space for an error message, hint or text-counter.\n`none` does not reserve any space.\n`reserve` does reserve one row for an error message.",
130850
+ "fieldName": "errorSpace",
130893
130851
  "inheritedFrom": {
130894
- "name": "SbbIconNameMixin",
130895
- "module": "icon/icon-name-mixin.js"
130852
+ "name": "SbbFormFieldElement",
130853
+ "module": "form-field/form-field/form-field.component.js"
130896
130854
  }
130897
130855
  },
130898
130856
  {
130899
- "name": "disabled-interactive",
130857
+ "name": "optional",
130900
130858
  "type": {
130901
130859
  "text": "boolean"
130902
130860
  },
130903
130861
  "default": "false",
130904
- "description": "Whether the button should be aria-disabled but stay interactive.",
130905
- "fieldName": "disabledInteractive",
130862
+ "description": "Indicates whether the input is optional.",
130863
+ "deprecated": "Set the (optional) label text manually. Will be removed with next major version.",
130864
+ "fieldName": "optional",
130906
130865
  "inheritedFrom": {
130907
- "name": "SbbDisabledInteractiveMixin",
130908
- "module": "core/mixins/disabled-mixin.js"
130866
+ "name": "SbbFormFieldElement",
130867
+ "module": "form-field/form-field/form-field.component.js"
130909
130868
  }
130910
130869
  },
130911
130870
  {
130912
- "name": "disabled",
130913
- "description": "Whether the component is disabled.",
130914
- "default": "false",
130871
+ "name": "size",
130915
130872
  "type": {
130916
- "text": "boolean"
130873
+ "text": "'l' | 'm' | 's'"
130917
130874
  },
130918
- "fieldName": "disabled",
130875
+ "description": "Size variant, either l, m or s.",
130876
+ "default": "'m' / 's' (lean)",
130877
+ "fieldName": "size",
130919
130878
  "inheritedFrom": {
130920
- "name": "SbbDisabledMixin",
130921
- "module": "core/mixins/disabled-mixin.js"
130879
+ "name": "SbbFormFieldElement",
130880
+ "module": "form-field/form-field/form-field.component.js"
130922
130881
  }
130923
130882
  },
130924
130883
  {
130925
- "name": "value",
130884
+ "name": "borderless",
130926
130885
  "type": {
130927
- "text": "string"
130886
+ "text": "boolean"
130928
130887
  },
130929
- "default": "''",
130930
- "description": "Value of the form element.",
130931
- "fieldName": "value",
130888
+ "default": "false",
130889
+ "description": "Whether to display the form field without a border.",
130890
+ "fieldName": "borderless",
130932
130891
  "inheritedFrom": {
130933
- "name": "SbbButtonBaseElement",
130934
- "module": "core/base-elements/button-base-element.js"
130892
+ "name": "SbbFormFieldElement",
130893
+ "module": "form-field/form-field/form-field.component.js"
130935
130894
  }
130936
130895
  },
130937
130896
  {
130938
- "name": "type",
130939
- "description": "The type attribute to use for the button.",
130940
- "default": "'button'",
130897
+ "name": "width",
130941
130898
  "type": {
130942
- "text": "SbbButtonType"
130899
+ "text": "'default' | 'collapse'"
130943
130900
  },
130944
- "fieldName": "type",
130901
+ "default": "'default'",
130902
+ "description": "Defines the width of the component:\n- `default`: the component has defined width and min-width;\n- `collapse`: the component adapts itself to its inner input content.",
130903
+ "fieldName": "width",
130945
130904
  "inheritedFrom": {
130946
- "name": "SbbButtonBaseElement",
130947
- "module": "core/base-elements/button-base-element.js"
130905
+ "name": "SbbFormFieldElement",
130906
+ "module": "form-field/form-field/form-field.component.js"
130948
130907
  }
130949
130908
  },
130950
130909
  {
130951
- "name": "form",
130952
- "description": "The `<form>` element to associate the button with.",
130910
+ "name": "hidden-label",
130953
130911
  "type": {
130954
- "text": "HTMLFormElement | null"
130912
+ "text": "boolean"
130955
130913
  },
130956
- "fieldName": "form",
130914
+ "default": "false",
130915
+ "description": "Whether to visually hide the label. If hidden, screen readers will still read it.",
130916
+ "fieldName": "hiddenLabel",
130957
130917
  "inheritedFrom": {
130958
- "name": "SbbButtonBaseElement",
130959
- "module": "core/base-elements/button-base-element.js"
130918
+ "name": "SbbFormFieldElement",
130919
+ "module": "form-field/form-field/form-field.component.js"
130960
130920
  }
130961
130921
  },
130962
130922
  {
130963
- "name": "name",
130964
- "description": "Name of the form element. Will be read from name attribute.",
130923
+ "name": "floating-label",
130965
130924
  "type": {
130966
- "text": "string"
130925
+ "text": "boolean"
130967
130926
  },
130968
- "fieldName": "name",
130927
+ "default": "false",
130928
+ "description": "Whether the label should float. If activated, the placeholder of the input is hidden.",
130929
+ "fieldName": "floatingLabel",
130969
130930
  "inheritedFrom": {
130970
- "name": "SbbFormAssociatedMixin",
130971
- "module": "core/mixins/form-associated-mixin.js"
130931
+ "name": "SbbFormFieldElement",
130932
+ "module": "form-field/form-field/form-field.component.js"
130972
130933
  }
130973
130934
  }
130974
130935
  ],
130975
130936
  "slots": [
130976
130937
  {
130977
- "description": "Use the unnamed slot to add content to the secondary-button.",
130938
+ "description": "Use this slot to render an input/select or a supported non-native element.",
130978
130939
  "name": "",
130979
130940
  "inheritedFrom": {
130980
- "name": "SbbSecondaryButtonElement",
130981
- "module": "button/secondary-button/secondary-button.component.js"
130941
+ "name": "SbbFormFieldElement",
130942
+ "module": "form-field/form-field/form-field.component.js"
130982
130943
  }
130983
130944
  },
130984
130945
  {
130985
- "description": "Slot used to display the icon, if one is set.",
130986
- "name": "icon",
130946
+ "description": "Use this slot to render a label.",
130947
+ "name": "label",
130987
130948
  "inheritedFrom": {
130988
- "name": "SbbSecondaryButtonElement",
130989
- "module": "button/secondary-button/secondary-button.component.js"
130949
+ "name": "SbbFormFieldElement",
130950
+ "module": "form-field/form-field/form-field.component.js"
130951
+ }
130952
+ },
130953
+ {
130954
+ "description": "Use this slot to render an icon on the left side of the input.",
130955
+ "name": "prefix",
130956
+ "inheritedFrom": {
130957
+ "name": "SbbFormFieldElement",
130958
+ "module": "form-field/form-field/form-field.component.js"
130959
+ }
130960
+ },
130961
+ {
130962
+ "description": "Use this slot to render an icon on the right side of the input.",
130963
+ "name": "suffix",
130964
+ "inheritedFrom": {
130965
+ "name": "SbbFormFieldElement",
130966
+ "module": "form-field/form-field/form-field.component.js"
130967
+ }
130968
+ },
130969
+ {
130970
+ "description": "Use this slot to render an error.",
130971
+ "name": "error",
130972
+ "inheritedFrom": {
130973
+ "name": "SbbFormFieldElement",
130974
+ "module": "form-field/form-field/form-field.component.js"
130975
+ }
130976
+ },
130977
+ {
130978
+ "description": "Use this slot to render an `<sbb-hint>` or an `<sbb-form-field-text-counter>` element.",
130979
+ "name": "hint",
130980
+ "inheritedFrom": {
130981
+ "name": "SbbFormFieldElement",
130982
+ "module": "form-field/form-field/form-field.component.js"
130990
130983
  }
130991
130984
  }
130992
130985
  ],
130993
130986
  "cssProperties": [
130994
130987
  {
130995
- "description": "The delay before the loading animation starts, when setting the button into loading state.",
130996
- "name": "--sbb-button-loading-delay",
130997
- "default": "300ms",
130988
+ "description": "To override the focus outline offset,",
130989
+ "name": "--sbb-form-field-outline-offset",
130998
130990
  "inheritedFrom": {
130999
- "name": "SbbSecondaryButtonElement",
131000
- "module": "button/secondary-button/secondary-button.component.js"
130991
+ "name": "SbbFormFieldElement",
130992
+ "module": "form-field/form-field/form-field.component.js"
130993
+ }
130994
+ },
130995
+ {
130996
+ "description": "To override the z-index of the focus underline effect,",
130997
+ "name": "--sbb-form-field-focus-underline-z-index",
130998
+ "inheritedFrom": {
130999
+ "name": "SbbFormFieldElement",
131000
+ "module": "form-field/form-field/form-field.component.js"
131001
131001
  }
131002
131002
  }
131003
131003
  ]
@@ -131006,10 +131006,10 @@
131006
131006
  "exports": [
131007
131007
  {
131008
131008
  "kind": "js",
131009
- "name": "SbbTimetableFormSwapButtonElement",
131009
+ "name": "SbbTimetableFormFieldElement",
131010
131010
  "declaration": {
131011
- "name": "SbbTimetableFormSwapButtonElement",
131012
- "module": "timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js"
131011
+ "name": "SbbTimetableFormFieldElement",
131012
+ "module": "timetable-form/timetable-form-field/timetable-form-field.component.js"
131013
131013
  }
131014
131014
  }
131015
131015
  ]