@sbb-esta/lyne-elements-dev 5.0.0-next-dev.1776358174 → 5.0.0-next-dev.1776402862

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 +958 -958
  2. package/package.json +2 -2
@@ -155116,12 +155116,12 @@
155116
155116
  },
155117
155117
  {
155118
155118
  "kind": "javascript-module",
155119
- "path": "timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js",
155119
+ "path": "timetable-form/timetable-form-field/timetable-form-field.component.js",
155120
155120
  "declarations": [
155121
155121
  {
155122
155122
  "kind": "class",
155123
- "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.",
155124
- "name": "SbbTimetableFormSwapButtonElement",
155123
+ "description": "Extends the `sbb-form-field`. Meant to be used inside a `sbb-timetable-form`.",
155124
+ "name": "SbbTimetableFormFieldElement",
155125
155125
  "members": [
155126
155126
  {
155127
155127
  "kind": "field",
@@ -155132,88 +155132,83 @@
155132
155132
  "privacy": "public",
155133
155133
  "static": true,
155134
155134
  "readonly": true,
155135
+ "default": "'sbb-timetable-form-field'",
155135
155136
  "inheritedFrom": {
155136
155137
  "name": "SbbElement",
155137
155138
  "module": "core/base-elements/element.js"
155138
- },
155139
- "default": "'sbb-timetable-form-swap-button'"
155139
+ }
155140
155140
  },
155141
155141
  {
155142
155142
  "kind": "field",
155143
- "name": "_languageController",
155144
- "privacy": "private",
155145
- "default": "new SbbLanguageController(this)"
155146
- },
155147
- {
155148
- "kind": "method",
155149
- "name": "_invertFieldValues",
155150
- "privacy": "private",
155151
- "return": {
155152
- "type": {
155153
- "text": "void"
155154
- }
155143
+ "name": "_routeIcon",
155144
+ "type": {
155145
+ "text": "boolean"
155155
155146
  },
155156
- "description": "Search for `sbb-timetable-form-field` inputs, invert their values and dispatch the respective input and change events"
155147
+ "privacy": "private",
155148
+ "default": "false"
155157
155149
  },
155158
155150
  {
155159
- "kind": "method",
155160
- "name": "renderIconName",
155161
- "privacy": "protected",
155162
- "return": {
155163
- "type": {
155164
- "text": "string"
155165
- }
155151
+ "kind": "field",
155152
+ "name": "borderless",
155153
+ "type": {
155154
+ "text": "boolean"
155166
155155
  },
155156
+ "privacy": "public",
155157
+ "default": "true",
155158
+ "description": "Whether to display the form field without a border.",
155159
+ "attribute": "borderless",
155160
+ "reflects": true,
155167
155161
  "inheritedFrom": {
155168
- "name": "SbbIconNameMixin",
155169
- "module": "icon/icon-name-mixin.js"
155162
+ "name": "SbbFormFieldElement",
155163
+ "module": "form-field/form-field/form-field.component.js"
155170
155164
  }
155171
155165
  },
155172
155166
  {
155173
155167
  "kind": "field",
155174
- "name": "size",
155168
+ "name": "floatingLabel",
155175
155169
  "type": {
155176
- "text": "SbbButtonSize"
155170
+ "text": "boolean"
155177
155171
  },
155178
155172
  "privacy": "public",
155179
- "description": "Size variant, either l, m or s.",
155180
- "default": "'l' / 's' (lean)",
155181
- "attribute": "size",
155173
+ "default": "true",
155174
+ "description": "Whether the label should float. If activated, the placeholder of the input is hidden.",
155175
+ "attribute": "floating-label",
155182
155176
  "reflects": true,
155183
155177
  "inheritedFrom": {
155184
- "name": "SbbButtonCommonElementMixin",
155185
- "module": "button/common/button-common.js"
155178
+ "name": "SbbFormFieldElement",
155179
+ "module": "form-field/form-field/form-field.component.js"
155186
155180
  }
155187
155181
  },
155188
155182
  {
155189
155183
  "kind": "field",
155190
- "name": "loading",
155184
+ "name": "width",
155191
155185
  "type": {
155192
- "text": "boolean"
155186
+ "text": "string"
155193
155187
  },
155194
155188
  "privacy": "public",
155195
- "default": "false",
155196
- "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.",
155197
- "attribute": "loading",
155189
+ "default": "'collapse'",
155190
+ "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.",
155191
+ "attribute": "width",
155198
155192
  "reflects": true,
155199
155193
  "inheritedFrom": {
155200
- "name": "SbbButtonCommonElementMixin",
155201
- "module": "button/common/button-common.js"
155194
+ "name": "SbbFormFieldElement",
155195
+ "module": "form-field/form-field/form-field.component.js"
155202
155196
  }
155203
155197
  },
155204
155198
  {
155205
- "kind": "method",
155206
- "name": "renderTemplate",
155207
- "privacy": "protected",
155208
- "return": {
155209
- "type": {
155210
- "text": "TemplateResult"
155211
- }
155199
+ "kind": "field",
155200
+ "name": "size",
155201
+ "type": {
155202
+ "text": "string"
155212
155203
  },
155213
- "description": "Override this method to render the component template.",
155204
+ "privacy": "public",
155205
+ "description": "Size variant, either l, m or s.",
155206
+ "default": "'l'",
155207
+ "attribute": "size",
155208
+ "reflects": true,
155214
155209
  "inheritedFrom": {
155215
- "name": "SbbActionBaseElement",
155216
- "module": "core/base-elements/action-base-element.js"
155210
+ "name": "SbbFormFieldElement",
155211
+ "module": "form-field/form-field/form-field.component.js"
155217
155212
  }
155218
155213
  },
155219
155214
  {
@@ -155240,639 +155235,592 @@
155240
155235
  },
155241
155236
  "privacy": "public",
155242
155237
  "static": true,
155238
+ "default": "[SbbIconElement]",
155243
155239
  "inheritedFrom": {
155244
155240
  "name": "SbbElement",
155245
155241
  "module": "core/base-elements/element.js"
155246
- },
155247
- "default": "[SbbIconElement]"
155242
+ }
155248
155243
  },
155249
155244
  {
155250
155245
  "kind": "field",
155251
- "name": "iconName",
155246
+ "name": "_excludedFocusElements",
155252
155247
  "type": {
155253
- "text": "string"
155248
+ "text": "array"
155254
155249
  },
155255
- "privacy": "public",
155256
- "default": "''",
155257
- "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.",
155258
- "attribute": "icon-name",
155250
+ "privacy": "private",
155251
+ "readonly": true,
155252
+ "default": "['button', 'sbb-popover', 'sbb-option', 'sbb-chip']",
155259
155253
  "inheritedFrom": {
155260
- "name": "SbbIconNameMixin",
155261
- "module": "icon/icon-name-mixin.js"
155254
+ "name": "SbbFormFieldElement",
155255
+ "module": "form-field/form-field/form-field.component.js"
155262
155256
  }
155263
155257
  },
155264
155258
  {
155265
- "kind": "method",
155266
- "name": "renderIconSlot",
155267
- "privacy": "protected",
155268
- "return": {
155269
- "type": {
155270
- "text": "TemplateResult"
155271
- }
155259
+ "kind": "field",
155260
+ "name": "_floatingLabelSupportedInputElements",
155261
+ "type": {
155262
+ "text": "array"
155272
155263
  },
155273
- "parameters": [
155274
- {
155275
- "name": "classname",
155276
- "optional": true,
155277
- "type": {
155278
- "text": "string"
155279
- }
155280
- }
155281
- ],
155264
+ "privacy": "private",
155265
+ "readonly": true,
155266
+ "default": "[ 'input', 'select', 'textarea', 'sbb-select', ]",
155282
155267
  "inheritedFrom": {
155283
- "name": "SbbIconNameMixin",
155284
- "module": "icon/icon-name-mixin.js"
155268
+ "name": "SbbFormFieldElement",
155269
+ "module": "form-field/form-field/form-field.component.js"
155285
155270
  }
155286
155271
  },
155287
155272
  {
155288
- "kind": "method",
155289
- "name": "_renderIconName",
155290
- "privacy": "private",
155291
- "return": {
155292
- "type": {
155293
- "text": "string"
155294
- }
155273
+ "kind": "field",
155274
+ "name": "_floatingLabelSupportedInputTypes",
155275
+ "type": {
155276
+ "text": "array"
155295
155277
  },
155278
+ "privacy": "private",
155279
+ "readonly": true,
155280
+ "default": "[ 'email', 'number', 'password', 'search', 'tel', 'text', 'url', ]",
155296
155281
  "inheritedFrom": {
155297
- "name": "SbbIconNameMixin",
155298
- "module": "icon/icon-name-mixin.js"
155282
+ "name": "SbbFormFieldElement",
155283
+ "module": "form-field/form-field/form-field.component.js"
155299
155284
  }
155300
155285
  },
155301
155286
  {
155302
155287
  "kind": "field",
155303
- "name": "disabledInteractive",
155288
+ "name": "errorSpace",
155304
155289
  "type": {
155305
- "text": "boolean"
155290
+ "text": "'none' | 'reserve'"
155306
155291
  },
155307
155292
  "privacy": "public",
155308
- "default": "false",
155309
- "description": "Whether the button should be aria-disabled but stay interactive.",
155310
- "attribute": "disabled-interactive",
155293
+ "default": "'none'",
155294
+ "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.",
155295
+ "attribute": "error-space",
155311
155296
  "reflects": true,
155312
155297
  "inheritedFrom": {
155313
- "name": "SbbDisabledInteractiveMixin",
155314
- "module": "core/mixins/disabled-mixin.js"
155298
+ "name": "SbbFormFieldElement",
155299
+ "module": "form-field/form-field/form-field.component.js"
155315
155300
  }
155316
155301
  },
155317
155302
  {
155318
155303
  "kind": "field",
155319
- "name": "disabled",
155320
- "privacy": "public",
155321
- "description": "Whether the component is disabled.",
155322
- "default": "false",
155304
+ "name": "optional",
155323
155305
  "type": {
155324
155306
  "text": "boolean"
155325
155307
  },
155326
- "attribute": "disabled",
155327
- "reflects": true,
155308
+ "privacy": "public",
155309
+ "default": "false",
155310
+ "description": "Indicates whether the input is optional.",
155311
+ "deprecated": "Set the (optional) label text manually. Will be removed with next major version.",
155312
+ "attribute": "optional",
155328
155313
  "inheritedFrom": {
155329
- "name": "SbbDisabledMixin",
155330
- "module": "core/mixins/disabled-mixin.js"
155314
+ "name": "SbbFormFieldElement",
155315
+ "module": "form-field/form-field/form-field.component.js"
155331
155316
  }
155332
155317
  },
155333
155318
  {
155334
155319
  "kind": "field",
155335
- "name": "#disabled",
155336
- "privacy": "private",
155320
+ "name": "hiddenLabel",
155337
155321
  "type": {
155338
155322
  "text": "boolean"
155339
155323
  },
155324
+ "privacy": "public",
155340
155325
  "default": "false",
155326
+ "description": "Whether to visually hide the label. If hidden, screen readers will still read it.",
155327
+ "attribute": "hidden-label",
155328
+ "reflects": true,
155341
155329
  "inheritedFrom": {
155342
- "name": "SbbDisabledMixin",
155343
- "module": "core/mixins/disabled-mixin.js"
155330
+ "name": "SbbFormFieldElement",
155331
+ "module": "form-field/form-field/form-field.component.js"
155344
155332
  }
155345
155333
  },
155346
155334
  {
155347
- "kind": "method",
155348
- "name": "isDisabledExternally",
155349
- "privacy": "protected",
155350
- "return": {
155351
- "type": {
155352
- "text": "boolean"
155353
- }
155335
+ "kind": "field",
155336
+ "name": "_errorElements",
155337
+ "type": {
155338
+ "text": "Element[]"
155354
155339
  },
155355
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
155340
+ "privacy": "private",
155341
+ "default": "[]",
155342
+ "description": "It is used internally to get the `error` slot.",
155356
155343
  "inheritedFrom": {
155357
- "name": "SbbDisabledMixin",
155358
- "module": "core/mixins/disabled-mixin.js"
155344
+ "name": "SbbFormFieldElement",
155345
+ "module": "form-field/form-field/form-field.component.js"
155359
155346
  }
155360
155347
  },
155361
155348
  {
155362
155349
  "kind": "field",
155363
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
155350
+ "name": "_hintElements",
155364
155351
  "type": {
155365
- "text": "array"
155352
+ "text": "Element[]"
155366
155353
  },
155367
155354
  "privacy": "private",
155368
- "readonly": true,
155369
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
155355
+ "default": "[]",
155356
+ "description": "It is used internally to get the `hint` slot.",
155370
155357
  "inheritedFrom": {
155371
- "name": "SbbButtonBaseElement",
155372
- "module": "core/base-elements/button-base-element.js"
155358
+ "name": "SbbFormFieldElement",
155359
+ "module": "form-field/form-field/form-field.component.js"
155373
155360
  }
155374
155361
  },
155375
155362
  {
155376
155363
  "kind": "field",
155377
- "name": "value",
155364
+ "name": "_input",
155378
155365
  "type": {
155379
- "text": "string"
155366
+ "text": "HTMLInputElement | HTMLSelectElement | HTMLElement | null"
155380
155367
  },
155381
- "privacy": "public",
155368
+ "privacy": "private",
155369
+ "default": "null",
155370
+ "description": "Reference to the slotted input element.",
155382
155371
  "inheritedFrom": {
155383
- "name": "SbbButtonBaseElement",
155384
- "module": "core/base-elements/button-base-element.js"
155385
- },
155386
- "default": "''",
155387
- "description": "Value of the form element.",
155388
- "attribute": "value"
155372
+ "name": "SbbFormFieldElement",
155373
+ "module": "form-field/form-field/form-field.component.js"
155374
+ }
155389
155375
  },
155390
155376
  {
155391
155377
  "kind": "field",
155392
- "name": "type",
155393
- "privacy": "public",
155394
- "description": "The type attribute to use for the button.",
155395
- "default": "'button'",
155378
+ "name": "_label",
155396
155379
  "type": {
155397
- "text": "SbbButtonType"
155380
+ "text": "HTMLLabelElement"
155398
155381
  },
155399
- "attribute": "type",
155382
+ "privacy": "private",
155383
+ "description": "Reference to the slotted label elements.",
155400
155384
  "inheritedFrom": {
155401
- "name": "SbbButtonBaseElement",
155402
- "module": "core/base-elements/button-base-element.js"
155385
+ "name": "SbbFormFieldElement",
155386
+ "module": "form-field/form-field/form-field.component.js"
155403
155387
  }
155404
155388
  },
155405
155389
  {
155406
155390
  "kind": "field",
155407
- "name": "form",
155391
+ "name": "inputElement",
155408
155392
  "type": {
155409
- "text": "HTMLFormElement | null"
155393
+ "text": "HTMLInputElement | HTMLSelectElement | HTMLElement | null"
155410
155394
  },
155411
155395
  "privacy": "public",
155412
- "description": "The `<form>` element to associate the button with.",
155396
+ "description": "Returns the input element.",
155397
+ "readonly": true,
155413
155398
  "inheritedFrom": {
155414
- "name": "SbbButtonBaseElement",
155415
- "module": "core/base-elements/button-base-element.js"
155416
- },
155417
- "attribute": "form"
155399
+ "name": "SbbFormFieldElement",
155400
+ "module": "form-field/form-field/form-field.component.js"
155401
+ }
155418
155402
  },
155419
155403
  {
155420
155404
  "kind": "field",
155421
- "name": "_formId",
155405
+ "name": "label",
155422
155406
  "type": {
155423
- "text": "string"
155407
+ "text": "HTMLLabelElement | null"
155424
155408
  },
155425
- "privacy": "private",
155426
- "default": "''",
155409
+ "privacy": "public",
155410
+ "description": "Reference to the slotted label.",
155411
+ "readonly": true,
155427
155412
  "inheritedFrom": {
155428
- "name": "SbbButtonBaseElement",
155429
- "module": "core/base-elements/button-base-element.js"
155413
+ "name": "SbbFormFieldElement",
155414
+ "module": "form-field/form-field/form-field.component.js"
155430
155415
  }
155431
155416
  },
155432
155417
  {
155433
155418
  "kind": "field",
155434
- "name": "_handleButtonClick",
155419
+ "name": "_language",
155435
155420
  "privacy": "private",
155421
+ "default": "new SbbLanguageController(this)",
155436
155422
  "inheritedFrom": {
155437
- "name": "SbbButtonBaseElement",
155438
- "module": "core/base-elements/button-base-element.js"
155423
+ "name": "SbbFormFieldElement",
155424
+ "module": "form-field/form-field/form-field.component.js"
155439
155425
  }
155440
155426
  },
155441
155427
  {
155442
- "kind": "method",
155443
- "name": "_requestSubmit",
155428
+ "kind": "field",
155429
+ "name": "_formFieldAttributeObserver",
155444
155430
  "privacy": "private",
155445
- "return": {
155446
- "type": {
155447
- "text": "void"
155448
- }
155449
- },
155450
- "parameters": [
155451
- {
155452
- "name": "form",
155453
- "type": {
155454
- "text": "HTMLFormElement"
155455
- }
155456
- }
155457
- ],
155431
+ "description": "Listens to the changes on `readonly` and `disabled` attributes of `<input>`.",
155458
155432
  "inheritedFrom": {
155459
- "name": "SbbButtonBaseElement",
155460
- "module": "core/base-elements/button-base-element.js"
155433
+ "name": "SbbFormFieldElement",
155434
+ "module": "form-field/form-field/form-field.component.js"
155461
155435
  }
155462
155436
  },
155463
155437
  {
155464
155438
  "kind": "field",
155465
- "name": "_formKeyDown",
155439
+ "name": "_inputFormAbortController",
155466
155440
  "privacy": "private",
155441
+ "default": "new AbortController()",
155467
155442
  "inheritedFrom": {
155468
- "name": "SbbButtonBaseElement",
155469
- "module": "core/base-elements/button-base-element.js"
155443
+ "name": "SbbFormFieldElement",
155444
+ "module": "form-field/form-field/form-field.component.js"
155470
155445
  }
155471
155446
  },
155472
155447
  {
155473
155448
  "kind": "field",
155474
- "name": "formAssociated",
155449
+ "name": "_control",
155475
155450
  "type": {
155476
- "text": "boolean"
155451
+ "text": "SbbFormFieldElementControl | null"
155477
155452
  },
155478
- "privacy": "public",
155479
- "static": true,
155480
- "default": "true",
155453
+ "privacy": "private",
155454
+ "default": "null",
155481
155455
  "inheritedFrom": {
155482
- "name": "SbbFormAssociatedMixin",
155483
- "module": "core/mixins/form-associated-mixin.js"
155456
+ "name": "SbbFormFieldElement",
155457
+ "module": "form-field/form-field/form-field.component.js"
155484
155458
  }
155485
155459
  },
155486
155460
  {
155487
155461
  "kind": "field",
155488
- "name": "name",
155489
- "privacy": "public",
155490
- "description": "Name of the form element. Will be read from name attribute.",
155462
+ "name": "_previousType",
155491
155463
  "type": {
155492
- "text": "string"
155464
+ "text": "string | null"
155493
155465
  },
155494
- "attribute": "name",
155466
+ "privacy": "private",
155467
+ "default": "null",
155495
155468
  "inheritedFrom": {
155496
- "name": "SbbFormAssociatedMixin",
155497
- "module": "core/mixins/form-associated-mixin.js"
155469
+ "name": "SbbFormFieldElement",
155470
+ "module": "form-field/form-field/form-field.component.js"
155498
155471
  }
155499
155472
  },
155500
155473
  {
155501
- "kind": "field",
155502
- "name": "validity",
155503
- "type": {
155504
- "text": "ValidityState"
155474
+ "kind": "method",
155475
+ "name": "_handleWrapperClick",
155476
+ "privacy": "private",
155477
+ "return": {
155478
+ "type": {
155479
+ "text": "void"
155480
+ }
155505
155481
  },
155506
- "privacy": "public",
155507
- "description": "Returns the ValidityState object for this element.",
155508
- "readonly": true,
155482
+ "parameters": [
155483
+ {
155484
+ "name": "event",
155485
+ "type": {
155486
+ "text": "MouseEvent"
155487
+ }
155488
+ }
155489
+ ],
155509
155490
  "inheritedFrom": {
155510
- "name": "SbbFormAssociatedMixin",
155511
- "module": "core/mixins/form-associated-mixin.js"
155491
+ "name": "SbbFormFieldElement",
155492
+ "module": "form-field/form-field/form-field.component.js"
155512
155493
  }
155513
155494
  },
155514
155495
  {
155515
- "kind": "field",
155516
- "name": "validationMessage",
155517
- "type": {
155518
- "text": "string"
155496
+ "kind": "method",
155497
+ "name": "_isElementFocusExcluded",
155498
+ "privacy": "private",
155499
+ "return": {
155500
+ "type": {
155501
+ "text": "boolean"
155502
+ }
155519
155503
  },
155520
- "privacy": "public",
155521
- "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.",
155522
- "readonly": true,
155504
+ "parameters": [
155505
+ {
155506
+ "name": "event",
155507
+ "type": {
155508
+ "text": "Event"
155509
+ }
155510
+ }
155511
+ ],
155523
155512
  "inheritedFrom": {
155524
- "name": "SbbFormAssociatedMixin",
155525
- "module": "core/mixins/form-associated-mixin.js"
155513
+ "name": "SbbFormFieldElement",
155514
+ "module": "form-field/form-field/form-field.component.js"
155526
155515
  }
155527
155516
  },
155528
155517
  {
155529
- "kind": "field",
155530
- "name": "willValidate",
155531
- "type": {
155532
- "text": "boolean"
155518
+ "kind": "method",
155519
+ "name": "_onSlotLabelChange",
155520
+ "privacy": "private",
155521
+ "return": {
155522
+ "type": {
155523
+ "text": "void"
155524
+ }
155533
155525
  },
155534
- "privacy": "public",
155535
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
155536
- "readonly": true,
155537
155526
  "inheritedFrom": {
155538
- "name": "SbbFormAssociatedMixin",
155539
- "module": "core/mixins/form-associated-mixin.js"
155527
+ "name": "SbbFormFieldElement",
155528
+ "module": "form-field/form-field/form-field.component.js"
155540
155529
  }
155541
155530
  },
155542
155531
  {
155543
- "kind": "field",
155544
- "name": "_validityStates",
155532
+ "kind": "method",
155533
+ "name": "_onSlotInputChange",
155545
155534
  "privacy": "private",
155546
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
155535
+ "return": {
155536
+ "type": {
155537
+ "text": "void"
155538
+ }
155539
+ },
155540
+ "description": "It is used internally to assign the attributes of `<input>` to `_id` and `_input` and to observe the native readonly and disabled attributes.",
155547
155541
  "inheritedFrom": {
155548
- "name": "SbbFormAssociatedMixin",
155549
- "module": "core/mixins/form-associated-mixin.js"
155542
+ "name": "SbbFormFieldElement",
155543
+ "module": "form-field/form-field/form-field.component.js"
155550
155544
  }
155551
155545
  },
155552
155546
  {
155553
- "kind": "field",
155554
- "name": "formDisabled",
155555
- "type": {
155556
- "text": "boolean"
155547
+ "kind": "method",
155548
+ "name": "_assignSlots",
155549
+ "privacy": "private",
155550
+ "return": {
155551
+ "type": {
155552
+ "text": "void"
155553
+ }
155557
155554
  },
155558
- "privacy": "protected",
155559
- "default": "false",
155560
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
155561
155555
  "inheritedFrom": {
155562
- "name": "SbbFormAssociatedMixin",
155563
- "module": "core/mixins/form-associated-mixin.js"
155556
+ "name": "SbbFormFieldElement",
155557
+ "module": "form-field/form-field/form-field.component.js"
155564
155558
  }
155565
155559
  },
155566
155560
  {
155567
155561
  "kind": "method",
155568
- "name": "checkValidity",
155569
- "privacy": "public",
155562
+ "name": "_connectInputElement",
155563
+ "privacy": "private",
155570
155564
  "return": {
155571
155565
  "type": {
155572
- "text": "boolean"
155566
+ "text": "'changed' | 'no-input' | 'unchanged'"
155573
155567
  }
155574
155568
  },
155575
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
155576
155569
  "inheritedFrom": {
155577
- "name": "SbbFormAssociatedMixin",
155578
- "module": "core/mixins/form-associated-mixin.js"
155570
+ "name": "SbbFormFieldElement",
155571
+ "module": "form-field/form-field/form-field.component.js"
155579
155572
  }
155580
155573
  },
155581
155574
  {
155582
155575
  "kind": "method",
155583
- "name": "reportValidity",
155584
- "privacy": "public",
155576
+ "name": "_syncLabelInputReferences",
155577
+ "privacy": "private",
155585
155578
  "return": {
155586
155579
  "type": {
155587
- "text": "boolean"
155580
+ "text": "void"
155588
155581
  }
155589
155582
  },
155590
- "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.",
155591
155583
  "inheritedFrom": {
155592
- "name": "SbbFormAssociatedMixin",
155593
- "module": "core/mixins/form-associated-mixin.js"
155584
+ "name": "SbbFormFieldElement",
155585
+ "module": "form-field/form-field/form-field.component.js"
155594
155586
  }
155595
155587
  },
155596
155588
  {
155597
155589
  "kind": "method",
155598
- "name": "setCustomValidity",
155599
- "privacy": "public",
155590
+ "name": "_isInputElement",
155591
+ "privacy": "private",
155600
155592
  "return": {
155601
155593
  "type": {
155602
- "text": "void"
155594
+ "text": "boolean"
155603
155595
  }
155604
155596
  },
155605
155597
  "parameters": [
155606
155598
  {
155607
- "name": "message",
155599
+ "name": "input",
155608
155600
  "type": {
155609
- "text": "string"
155601
+ "text": "Element"
155610
155602
  }
155611
155603
  }
155612
155604
  ],
155613
- "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.",
155614
155605
  "inheritedFrom": {
155615
- "name": "SbbFormAssociatedMixin",
155616
- "module": "core/mixins/form-associated-mixin.js"
155606
+ "name": "SbbFormFieldElement",
155607
+ "module": "form-field/form-field/form-field.component.js"
155617
155608
  }
155618
155609
  },
155619
155610
  {
155620
155611
  "kind": "method",
155621
- "name": "_hasDisabledAncestor",
155612
+ "name": "_readInputState",
155622
155613
  "privacy": "private",
155623
155614
  "return": {
155624
155615
  "type": {
155625
- "text": "boolean"
155616
+ "text": "void"
155626
155617
  }
155627
155618
  },
155628
155619
  "inheritedFrom": {
155629
- "name": "SbbFormAssociatedMixin",
155630
- "module": "core/mixins/form-associated-mixin.js"
155620
+ "name": "SbbFormFieldElement",
155621
+ "module": "form-field/form-field/form-field.component.js"
155631
155622
  }
155632
155623
  },
155633
155624
  {
155634
155625
  "kind": "method",
155635
- "name": "updateFormValue",
155636
- "privacy": "protected",
155626
+ "name": "_registerInputFormListener",
155627
+ "privacy": "private",
155637
155628
  "return": {
155638
155629
  "type": {
155639
155630
  "text": "void"
155640
155631
  }
155641
155632
  },
155642
- "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",
155643
155633
  "inheritedFrom": {
155644
- "name": "SbbFormAssociatedMixin",
155645
- "module": "core/mixins/form-associated-mixin.js"
155634
+ "name": "SbbFormFieldElement",
155635
+ "module": "form-field/form-field/form-field.component.js"
155646
155636
  }
155647
155637
  },
155648
155638
  {
155649
155639
  "kind": "method",
155650
- "name": "formState",
155651
- "privacy": "protected",
155640
+ "name": "_patchInputValue",
155641
+ "privacy": "private",
155652
155642
  "return": {
155653
155643
  "type": {
155654
- "text": "FormRestoreState"
155644
+ "text": "void"
155655
155645
  }
155656
155646
  },
155657
155647
  "inheritedFrom": {
155658
- "name": "SbbFormAssociatedMixin",
155659
- "module": "core/mixins/form-associated-mixin.js"
155648
+ "name": "SbbFormFieldElement",
155649
+ "module": "form-field/form-field/form-field.component.js"
155660
155650
  }
155661
155651
  },
155662
155652
  {
155663
155653
  "kind": "method",
155664
- "name": "setValidityFlag",
155665
- "privacy": "protected",
155654
+ "name": "_unpatchInputValue",
155655
+ "privacy": "private",
155666
155656
  "return": {
155667
155657
  "type": {
155668
155658
  "text": "void"
155669
155659
  }
155670
155660
  },
155671
- "parameters": [
155672
- {
155673
- "name": "flag",
155674
- "type": {
155675
- "text": "T"
155676
- }
155677
- },
155678
- {
155679
- "name": "message",
155680
- "type": {
155681
- "text": "string"
155682
- }
155683
- },
155684
- {
155685
- "name": "flagValue",
155686
- "optional": true,
155687
- "type": {
155688
- "text": "ValidityStateFlags[T]"
155689
- }
155690
- }
155691
- ],
155692
- "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).",
155693
155661
  "inheritedFrom": {
155694
- "name": "SbbFormAssociatedMixin",
155695
- "module": "core/mixins/form-associated-mixin.js"
155662
+ "name": "SbbFormFieldElement",
155663
+ "module": "form-field/form-field/form-field.component.js"
155696
155664
  }
155697
155665
  },
155698
155666
  {
155699
155667
  "kind": "method",
155700
- "name": "removeValidityFlag",
155701
- "privacy": "protected",
155668
+ "name": "_checkAndUpdateInputEmpty",
155669
+ "privacy": "private",
155702
155670
  "return": {
155703
155671
  "type": {
155704
155672
  "text": "void"
155705
155673
  }
155706
155674
  },
155707
- "parameters": [
155708
- {
155709
- "name": "flag",
155710
- "type": {
155711
- "text": "T"
155712
- }
155713
- }
155714
- ],
155715
- "description": "Removes the validity state flag entry and updates validity state.",
155716
155675
  "inheritedFrom": {
155717
- "name": "SbbFormAssociatedMixin",
155718
- "module": "core/mixins/form-associated-mixin.js"
155676
+ "name": "SbbFormFieldElement",
155677
+ "module": "form-field/form-field/form-field.component.js"
155719
155678
  }
155720
155679
  },
155721
155680
  {
155722
155681
  "kind": "method",
155723
- "name": "validate",
155724
- "privacy": "protected",
155682
+ "name": "_isInputEmpty",
155683
+ "privacy": "private",
155725
155684
  "return": {
155726
155685
  "type": {
155727
- "text": "void"
155686
+ "text": "boolean"
155728
155687
  }
155729
155688
  },
155730
- "description": "To be called whenever the current element needs to be validated.",
155731
155689
  "inheritedFrom": {
155732
- "name": "SbbFormAssociatedMixin",
155733
- "module": "core/mixins/form-associated-mixin.js"
155690
+ "name": "SbbFormFieldElement",
155691
+ "module": "form-field/form-field/form-field.component.js"
155734
155692
  }
155735
155693
  },
155736
155694
  {
155737
155695
  "kind": "method",
155738
- "name": "shouldValidate",
155739
- "privacy": "protected",
155696
+ "name": "_isInputValueEmpty",
155697
+ "privacy": "private",
155740
155698
  "return": {
155741
155699
  "type": {
155742
155700
  "text": "boolean"
155743
155701
  }
155744
155702
  },
155703
+ "inheritedFrom": {
155704
+ "name": "SbbFormFieldElement",
155705
+ "module": "form-field/form-field/form-field.component.js"
155706
+ }
155707
+ },
155708
+ {
155709
+ "kind": "method",
155710
+ "name": "_onSlotErrorChange",
155711
+ "privacy": "private",
155712
+ "return": {
155713
+ "type": {
155714
+ "text": "void"
155715
+ }
155716
+ },
155745
155717
  "parameters": [
155746
155718
  {
155747
- "name": "name",
155719
+ "name": "event",
155748
155720
  "type": {
155749
- "text": "PropertyKey | undefined"
155721
+ "text": "Event"
155750
155722
  }
155751
155723
  }
155752
155724
  ],
155753
- "description": "Whether validation should be run on a property change with the given name.",
155725
+ "description": "It is used internally to set the aria-describedby attribute for the slotted input referencing available <sbb-error> instances.",
155754
155726
  "inheritedFrom": {
155755
- "name": "SbbFormAssociatedMixin",
155756
- "module": "core/mixins/form-associated-mixin.js"
155727
+ "name": "SbbFormFieldElement",
155728
+ "module": "form-field/form-field/form-field.component.js"
155757
155729
  }
155758
155730
  },
155759
155731
  {
155760
155732
  "kind": "method",
155761
- "name": "_setInternalValidity",
155733
+ "name": "_onSlotHintChange",
155762
155734
  "privacy": "private",
155763
155735
  "return": {
155764
155736
  "type": {
155765
155737
  "text": "void"
155766
155738
  }
155767
155739
  },
155768
- "inheritedFrom": {
155769
- "name": "SbbFormAssociatedMixin",
155770
- "module": "core/mixins/form-associated-mixin.js"
155771
- }
155772
- },
155773
- {
155774
- "kind": "field",
155775
- "name": "role",
155776
- "type": {
155777
- "text": "ElementInternals['role']"
155778
- },
155779
- "privacy": "public",
155780
- "static": true,
155781
- "inheritedFrom": {
155782
- "name": "SbbElement",
155783
- "module": "core/base-elements/element.js"
155784
- },
155785
- "readonly": true,
155786
- "default": "'button'"
155787
- },
155788
- {
155789
- "kind": "field",
155790
- "name": "_preventScrollOnSpaceKeydown",
155791
- "privacy": "private",
155792
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
155793
155740
  "parameters": [
155794
155741
  {
155795
- "description": "The origin event.",
155796
- "name": "event"
155742
+ "name": "event",
155743
+ "type": {
155744
+ "text": "Event"
155745
+ }
155797
155746
  }
155798
155747
  ],
155748
+ "description": "It is used internally to set the aria-describedby attribute for the slotted input referencing available <sbb-hint> instances.",
155799
155749
  "inheritedFrom": {
155800
- "name": "SbbButtonLikeBaseElement",
155801
- "module": "core/base-elements/button-base-element.js"
155802
- }
155803
- },
155804
- {
155805
- "kind": "field",
155806
- "name": "_removeActiveMarker",
155807
- "privacy": "private",
155808
- "inheritedFrom": {
155809
- "name": "SbbButtonLikeBaseElement",
155810
- "module": "core/base-elements/button-base-element.js"
155750
+ "name": "SbbFormFieldElement",
155751
+ "module": "form-field/form-field/form-field.component.js"
155811
155752
  }
155812
155753
  },
155813
155754
  {
155814
- "kind": "field",
155815
- "name": "_dispatchClickEventOnSpaceKeyup",
155755
+ "kind": "method",
155756
+ "name": "_assignAriaDescribedByElements",
155816
155757
  "privacy": "private",
155817
- "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.",
155818
- "parameters": [
155819
- {
155820
- "description": "The origin event.",
155821
- "name": "event"
155758
+ "return": {
155759
+ "type": {
155760
+ "text": "void"
155822
155761
  }
155823
- ],
155762
+ },
155824
155763
  "inheritedFrom": {
155825
- "name": "SbbButtonLikeBaseElement",
155826
- "module": "core/base-elements/button-base-element.js"
155764
+ "name": "SbbFormFieldElement",
155765
+ "module": "form-field/form-field/form-field.component.js"
155827
155766
  }
155828
155767
  },
155829
155768
  {
155830
- "kind": "field",
155831
- "name": "_dispatchClickEvent",
155832
- "privacy": "private",
155769
+ "kind": "method",
155770
+ "name": "reset",
155771
+ "privacy": "public",
155772
+ "return": {
155773
+ "type": {
155774
+ "text": "void"
155775
+ }
155776
+ },
155777
+ "description": "Manually reset the form field. Currently, this only resets the floating label.",
155833
155778
  "inheritedFrom": {
155834
- "name": "SbbButtonLikeBaseElement",
155835
- "module": "core/base-elements/button-base-element.js"
155779
+ "name": "SbbFormFieldElement",
155780
+ "module": "form-field/form-field/form-field.component.js"
155836
155781
  }
155837
155782
  },
155838
155783
  {
155839
- "kind": "field",
155840
- "name": "maybeDisabled",
155841
- "type": {
155842
- "text": "boolean | undefined"
155784
+ "kind": "method",
155785
+ "name": "clear",
155786
+ "privacy": "public",
155787
+ "return": {
155788
+ "type": {
155789
+ "text": "void"
155790
+ }
155843
155791
  },
155844
- "privacy": "protected",
155845
- "readonly": true,
155792
+ "description": "Manually clears the input value. It only works for inputs, selects are not supported.",
155846
155793
  "inheritedFrom": {
155847
- "name": "SbbActionBaseElement",
155848
- "module": "core/base-elements/action-base-element.js"
155794
+ "name": "SbbFormFieldElement",
155795
+ "module": "form-field/form-field/form-field.component.js"
155849
155796
  }
155850
155797
  },
155851
155798
  {
155852
- "kind": "field",
155853
- "name": "maybeDisabledInteractive",
155854
- "type": {
155855
- "text": "boolean | undefined"
155799
+ "kind": "method",
155800
+ "name": "_syncNegative",
155801
+ "privacy": "private",
155802
+ "return": {
155803
+ "type": {
155804
+ "text": "void"
155805
+ }
155856
155806
  },
155857
- "privacy": "protected",
155858
- "readonly": true,
155859
155807
  "inheritedFrom": {
155860
- "name": "SbbActionBaseElement",
155861
- "module": "core/base-elements/action-base-element.js"
155808
+ "name": "SbbFormFieldElement",
155809
+ "module": "form-field/form-field/form-field.component.js"
155862
155810
  }
155863
155811
  },
155864
155812
  {
155865
155813
  "kind": "method",
155866
- "name": "setupBaseEventHandlers",
155867
- "privacy": "protected",
155814
+ "name": "_syncSize",
155815
+ "privacy": "private",
155868
155816
  "return": {
155869
155817
  "type": {
155870
155818
  "text": "void"
155871
155819
  }
155872
155820
  },
155873
155821
  "inheritedFrom": {
155874
- "name": "SbbActionBaseElement",
155875
- "module": "core/base-elements/action-base-element.js"
155822
+ "name": "SbbFormFieldElement",
155823
+ "module": "form-field/form-field/form-field.component.js"
155876
155824
  }
155877
155825
  },
155878
155826
  {
@@ -155889,6 +155837,19 @@
155889
155837
  "module": "core/base-elements/element.js"
155890
155838
  }
155891
155839
  },
155840
+ {
155841
+ "kind": "field",
155842
+ "name": "role",
155843
+ "type": {
155844
+ "text": "ElementInternals['role'] | undefined"
155845
+ },
155846
+ "privacy": "public",
155847
+ "static": true,
155848
+ "inheritedFrom": {
155849
+ "name": "SbbElement",
155850
+ "module": "core/base-elements/element.js"
155851
+ }
155852
+ },
155892
155853
  {
155893
155854
  "kind": "field",
155894
155855
  "name": "_controllers",
@@ -156109,184 +156070,184 @@
156109
156070
  }
156110
156071
  }
156111
156072
  ],
156112
- "events": [
156073
+ "superclass": {
156074
+ "name": "SbbFormFieldElement",
156075
+ "module": "form-field.pure.js"
156076
+ },
156077
+ "tagName": "sbb-timetable-form-field",
156078
+ "customElement": true,
156079
+ "attributes": [
156113
156080
  {
156081
+ "name": "negative",
156114
156082
  "type": {
156115
- "text": "Event"
156083
+ "text": "boolean"
156116
156084
  },
156117
- "description": "The change event is fired on the associated inputs when the user modifies the element's value. Unlike the input event, the change event is not necessarily fired for each alteration to an element's value.",
156118
- "name": "change"
156085
+ "default": "false",
156086
+ "description": "Negative coloring variant flag.",
156087
+ "fieldName": "negative",
156088
+ "inheritedFrom": {
156089
+ "name": "SbbNegativeMixin",
156090
+ "module": "core/mixins/negative-mixin.js"
156091
+ }
156119
156092
  },
156120
156093
  {
156094
+ "name": "error-space",
156121
156095
  "type": {
156122
- "text": "InputEvent"
156096
+ "text": "'none' | 'reserve'"
156123
156097
  },
156124
- "description": "The input event fires on the associated inputs when the value has been changed as a direct result of a user action.",
156125
- "name": "input"
156126
- }
156127
- ],
156128
- "superclass": {
156129
- "name": "SbbSecondaryButtonElement",
156130
- "module": "button.pure.js"
156131
- },
156132
- "tagName": "sbb-timetable-form-swap-button",
156133
- "customElement": true,
156134
- "attributes": [
156098
+ "default": "'none'",
156099
+ "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.",
156100
+ "fieldName": "errorSpace",
156101
+ "inheritedFrom": {
156102
+ "name": "SbbFormFieldElement",
156103
+ "module": "form-field/form-field/form-field.component.js"
156104
+ }
156105
+ },
156135
156106
  {
156136
- "name": "size",
156107
+ "name": "optional",
156137
156108
  "type": {
156138
- "text": "SbbButtonSize"
156109
+ "text": "boolean"
156139
156110
  },
156140
- "description": "Size variant, either l, m or s.",
156141
- "default": "'l' / 's' (lean)",
156142
- "fieldName": "size",
156111
+ "default": "false",
156112
+ "description": "Indicates whether the input is optional.",
156113
+ "deprecated": "Set the (optional) label text manually. Will be removed with next major version.",
156114
+ "fieldName": "optional",
156143
156115
  "inheritedFrom": {
156144
- "name": "SbbButtonCommonElementMixin",
156145
- "module": "button/common/button-common.js"
156116
+ "name": "SbbFormFieldElement",
156117
+ "module": "form-field/form-field/form-field.component.js"
156146
156118
  }
156147
156119
  },
156148
156120
  {
156149
- "name": "loading",
156121
+ "name": "size",
156150
156122
  "type": {
156151
- "text": "boolean"
156123
+ "text": "'l' | 'm' | 's'"
156152
156124
  },
156153
- "default": "false",
156154
- "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.",
156155
- "fieldName": "loading",
156125
+ "description": "Size variant, either l, m or s.",
156126
+ "default": "'m' / 's' (lean)",
156127
+ "fieldName": "size",
156156
156128
  "inheritedFrom": {
156157
- "name": "SbbButtonCommonElementMixin",
156158
- "module": "button/common/button-common.js"
156129
+ "name": "SbbFormFieldElement",
156130
+ "module": "form-field/form-field/form-field.component.js"
156159
156131
  }
156160
156132
  },
156161
156133
  {
156162
- "name": "negative",
156134
+ "name": "borderless",
156163
156135
  "type": {
156164
156136
  "text": "boolean"
156165
156137
  },
156166
156138
  "default": "false",
156167
- "description": "Negative coloring variant flag.",
156168
- "fieldName": "negative",
156139
+ "description": "Whether to display the form field without a border.",
156140
+ "fieldName": "borderless",
156169
156141
  "inheritedFrom": {
156170
- "name": "SbbNegativeMixin",
156171
- "module": "core/mixins/negative-mixin.js"
156142
+ "name": "SbbFormFieldElement",
156143
+ "module": "form-field/form-field/form-field.component.js"
156172
156144
  }
156173
156145
  },
156174
156146
  {
156175
- "name": "icon-name",
156147
+ "name": "width",
156176
156148
  "type": {
156177
- "text": "string"
156149
+ "text": "'default' | 'collapse'"
156178
156150
  },
156179
- "default": "''",
156180
- "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.",
156181
- "fieldName": "iconName",
156151
+ "default": "'default'",
156152
+ "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.",
156153
+ "fieldName": "width",
156182
156154
  "inheritedFrom": {
156183
- "name": "SbbIconNameMixin",
156184
- "module": "icon/icon-name-mixin.js"
156155
+ "name": "SbbFormFieldElement",
156156
+ "module": "form-field/form-field/form-field.component.js"
156185
156157
  }
156186
156158
  },
156187
156159
  {
156188
- "name": "disabled-interactive",
156160
+ "name": "hidden-label",
156189
156161
  "type": {
156190
156162
  "text": "boolean"
156191
156163
  },
156192
156164
  "default": "false",
156193
- "description": "Whether the button should be aria-disabled but stay interactive.",
156194
- "fieldName": "disabledInteractive",
156165
+ "description": "Whether to visually hide the label. If hidden, screen readers will still read it.",
156166
+ "fieldName": "hiddenLabel",
156195
156167
  "inheritedFrom": {
156196
- "name": "SbbDisabledInteractiveMixin",
156197
- "module": "core/mixins/disabled-mixin.js"
156168
+ "name": "SbbFormFieldElement",
156169
+ "module": "form-field/form-field/form-field.component.js"
156198
156170
  }
156199
156171
  },
156200
156172
  {
156201
- "name": "disabled",
156202
- "description": "Whether the component is disabled.",
156203
- "default": "false",
156173
+ "name": "floating-label",
156204
156174
  "type": {
156205
156175
  "text": "boolean"
156206
156176
  },
156207
- "fieldName": "disabled",
156177
+ "default": "false",
156178
+ "description": "Whether the label should float. If activated, the placeholder of the input is hidden.",
156179
+ "fieldName": "floatingLabel",
156208
156180
  "inheritedFrom": {
156209
- "name": "SbbDisabledMixin",
156210
- "module": "core/mixins/disabled-mixin.js"
156181
+ "name": "SbbFormFieldElement",
156182
+ "module": "form-field/form-field/form-field.component.js"
156211
156183
  }
156212
- },
156184
+ }
156185
+ ],
156186
+ "slots": [
156213
156187
  {
156214
- "name": "value",
156215
- "type": {
156216
- "text": "string"
156217
- },
156218
- "default": "''",
156219
- "description": "Value of the form element.",
156220
- "fieldName": "value",
156188
+ "description": "Use this slot to render an input/select or a supported non-native element.",
156189
+ "name": "",
156221
156190
  "inheritedFrom": {
156222
- "name": "SbbButtonBaseElement",
156223
- "module": "core/base-elements/button-base-element.js"
156191
+ "name": "SbbFormFieldElement",
156192
+ "module": "form-field/form-field/form-field.component.js"
156224
156193
  }
156225
156194
  },
156226
156195
  {
156227
- "name": "type",
156228
- "description": "The type attribute to use for the button.",
156229
- "default": "'button'",
156230
- "type": {
156231
- "text": "SbbButtonType"
156232
- },
156233
- "fieldName": "type",
156196
+ "description": "Use this slot to render a label.",
156197
+ "name": "label",
156234
156198
  "inheritedFrom": {
156235
- "name": "SbbButtonBaseElement",
156236
- "module": "core/base-elements/button-base-element.js"
156199
+ "name": "SbbFormFieldElement",
156200
+ "module": "form-field/form-field/form-field.component.js"
156237
156201
  }
156238
156202
  },
156239
156203
  {
156240
- "name": "form",
156241
- "description": "The `<form>` element to associate the button with.",
156242
- "type": {
156243
- "text": "HTMLFormElement | null"
156244
- },
156245
- "fieldName": "form",
156204
+ "description": "Use this slot to render an icon on the left side of the input.",
156205
+ "name": "prefix",
156246
156206
  "inheritedFrom": {
156247
- "name": "SbbButtonBaseElement",
156248
- "module": "core/base-elements/button-base-element.js"
156207
+ "name": "SbbFormFieldElement",
156208
+ "module": "form-field/form-field/form-field.component.js"
156249
156209
  }
156250
156210
  },
156251
156211
  {
156252
- "name": "name",
156253
- "description": "Name of the form element. Will be read from name attribute.",
156254
- "type": {
156255
- "text": "string"
156256
- },
156257
- "fieldName": "name",
156212
+ "description": "Use this slot to render an icon on the right side of the input.",
156213
+ "name": "suffix",
156258
156214
  "inheritedFrom": {
156259
- "name": "SbbFormAssociatedMixin",
156260
- "module": "core/mixins/form-associated-mixin.js"
156215
+ "name": "SbbFormFieldElement",
156216
+ "module": "form-field/form-field/form-field.component.js"
156261
156217
  }
156262
- }
156263
- ],
156264
- "slots": [
156218
+ },
156265
156219
  {
156266
- "description": "Use the unnamed slot to add content to the secondary-button.",
156267
- "name": "",
156220
+ "description": "Use this slot to render an error.",
156221
+ "name": "error",
156268
156222
  "inheritedFrom": {
156269
- "name": "SbbSecondaryButtonElement",
156270
- "module": "button/secondary-button/secondary-button.component.js"
156223
+ "name": "SbbFormFieldElement",
156224
+ "module": "form-field/form-field/form-field.component.js"
156271
156225
  }
156272
156226
  },
156273
156227
  {
156274
- "description": "Slot used to display the icon, if one is set.",
156275
- "name": "icon",
156228
+ "description": "Use this slot to render an `<sbb-hint>` or an `<sbb-form-field-text-counter>` element.",
156229
+ "name": "hint",
156276
156230
  "inheritedFrom": {
156277
- "name": "SbbSecondaryButtonElement",
156278
- "module": "button/secondary-button/secondary-button.component.js"
156231
+ "name": "SbbFormFieldElement",
156232
+ "module": "form-field/form-field/form-field.component.js"
156279
156233
  }
156280
156234
  }
156281
156235
  ],
156282
156236
  "cssProperties": [
156283
156237
  {
156284
- "description": "The delay before the loading animation starts, when setting the button into loading state.",
156285
- "name": "--sbb-button-loading-delay",
156286
- "default": "300ms",
156238
+ "description": "To override the focus outline offset,",
156239
+ "name": "--sbb-form-field-outline-offset",
156287
156240
  "inheritedFrom": {
156288
- "name": "SbbSecondaryButtonElement",
156289
- "module": "button/secondary-button/secondary-button.component.js"
156241
+ "name": "SbbFormFieldElement",
156242
+ "module": "form-field/form-field/form-field.component.js"
156243
+ }
156244
+ },
156245
+ {
156246
+ "description": "To override the z-index of the focus underline effect,",
156247
+ "name": "--sbb-form-field-focus-underline-z-index",
156248
+ "inheritedFrom": {
156249
+ "name": "SbbFormFieldElement",
156250
+ "module": "form-field/form-field/form-field.component.js"
156290
156251
  }
156291
156252
  }
156292
156253
  ]
@@ -156295,22 +156256,22 @@
156295
156256
  "exports": [
156296
156257
  {
156297
156258
  "kind": "js",
156298
- "name": "SbbTimetableFormSwapButtonElement",
156259
+ "name": "SbbTimetableFormFieldElement",
156299
156260
  "declaration": {
156300
- "name": "SbbTimetableFormSwapButtonElement",
156301
- "module": "timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js"
156261
+ "name": "SbbTimetableFormFieldElement",
156262
+ "module": "timetable-form/timetable-form-field/timetable-form-field.component.js"
156302
156263
  }
156303
156264
  }
156304
156265
  ]
156305
156266
  },
156306
156267
  {
156307
156268
  "kind": "javascript-module",
156308
- "path": "timetable-form/timetable-form-field/timetable-form-field.component.js",
156269
+ "path": "timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js",
156309
156270
  "declarations": [
156310
156271
  {
156311
156272
  "kind": "class",
156312
- "description": "Extends the `sbb-form-field`. Meant to be used inside a `sbb-timetable-form`.",
156313
- "name": "SbbTimetableFormFieldElement",
156273
+ "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.",
156274
+ "name": "SbbTimetableFormSwapButtonElement",
156314
156275
  "members": [
156315
156276
  {
156316
156277
  "kind": "field",
@@ -156321,83 +156282,88 @@
156321
156282
  "privacy": "public",
156322
156283
  "static": true,
156323
156284
  "readonly": true,
156324
- "default": "'sbb-timetable-form-field'",
156325
156285
  "inheritedFrom": {
156326
156286
  "name": "SbbElement",
156327
156287
  "module": "core/base-elements/element.js"
156328
- }
156288
+ },
156289
+ "default": "'sbb-timetable-form-swap-button'"
156329
156290
  },
156330
156291
  {
156331
156292
  "kind": "field",
156332
- "name": "_routeIcon",
156333
- "type": {
156334
- "text": "boolean"
156335
- },
156293
+ "name": "_languageController",
156336
156294
  "privacy": "private",
156337
- "default": "false"
156295
+ "default": "new SbbLanguageController(this)"
156338
156296
  },
156339
156297
  {
156340
- "kind": "field",
156341
- "name": "borderless",
156342
- "type": {
156343
- "text": "boolean"
156298
+ "kind": "method",
156299
+ "name": "_invertFieldValues",
156300
+ "privacy": "private",
156301
+ "return": {
156302
+ "type": {
156303
+ "text": "void"
156304
+ }
156305
+ },
156306
+ "description": "Search for `sbb-timetable-form-field` inputs, invert their values and dispatch the respective input and change events"
156307
+ },
156308
+ {
156309
+ "kind": "method",
156310
+ "name": "renderIconName",
156311
+ "privacy": "protected",
156312
+ "return": {
156313
+ "type": {
156314
+ "text": "string"
156315
+ }
156344
156316
  },
156345
- "privacy": "public",
156346
- "default": "true",
156347
- "description": "Whether to display the form field without a border.",
156348
- "attribute": "borderless",
156349
- "reflects": true,
156350
156317
  "inheritedFrom": {
156351
- "name": "SbbFormFieldElement",
156352
- "module": "form-field/form-field/form-field.component.js"
156318
+ "name": "SbbIconNameMixin",
156319
+ "module": "icon/icon-name-mixin.js"
156353
156320
  }
156354
156321
  },
156355
156322
  {
156356
156323
  "kind": "field",
156357
- "name": "floatingLabel",
156324
+ "name": "size",
156358
156325
  "type": {
156359
- "text": "boolean"
156326
+ "text": "SbbButtonSize"
156360
156327
  },
156361
156328
  "privacy": "public",
156362
- "default": "true",
156363
- "description": "Whether the label should float. If activated, the placeholder of the input is hidden.",
156364
- "attribute": "floating-label",
156329
+ "description": "Size variant, either l, m or s.",
156330
+ "default": "'l' / 's' (lean)",
156331
+ "attribute": "size",
156365
156332
  "reflects": true,
156366
156333
  "inheritedFrom": {
156367
- "name": "SbbFormFieldElement",
156368
- "module": "form-field/form-field/form-field.component.js"
156334
+ "name": "SbbButtonCommonElementMixin",
156335
+ "module": "button/common/button-common.js"
156369
156336
  }
156370
156337
  },
156371
156338
  {
156372
156339
  "kind": "field",
156373
- "name": "width",
156340
+ "name": "loading",
156374
156341
  "type": {
156375
- "text": "string"
156342
+ "text": "boolean"
156376
156343
  },
156377
156344
  "privacy": "public",
156378
- "default": "'collapse'",
156379
- "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.",
156380
- "attribute": "width",
156345
+ "default": "false",
156346
+ "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.",
156347
+ "attribute": "loading",
156381
156348
  "reflects": true,
156382
156349
  "inheritedFrom": {
156383
- "name": "SbbFormFieldElement",
156384
- "module": "form-field/form-field/form-field.component.js"
156350
+ "name": "SbbButtonCommonElementMixin",
156351
+ "module": "button/common/button-common.js"
156385
156352
  }
156386
156353
  },
156387
156354
  {
156388
- "kind": "field",
156389
- "name": "size",
156390
- "type": {
156391
- "text": "string"
156355
+ "kind": "method",
156356
+ "name": "renderTemplate",
156357
+ "privacy": "protected",
156358
+ "return": {
156359
+ "type": {
156360
+ "text": "TemplateResult"
156361
+ }
156392
156362
  },
156393
- "privacy": "public",
156394
- "description": "Size variant, either l, m or s.",
156395
- "default": "'l'",
156396
- "attribute": "size",
156397
- "reflects": true,
156363
+ "description": "Override this method to render the component template.",
156398
156364
  "inheritedFrom": {
156399
- "name": "SbbFormFieldElement",
156400
- "module": "form-field/form-field/form-field.component.js"
156365
+ "name": "SbbActionBaseElement",
156366
+ "module": "core/base-elements/action-base-element.js"
156401
156367
  }
156402
156368
  },
156403
156369
  {
@@ -156424,592 +156390,639 @@
156424
156390
  },
156425
156391
  "privacy": "public",
156426
156392
  "static": true,
156427
- "default": "[SbbIconElement]",
156428
156393
  "inheritedFrom": {
156429
156394
  "name": "SbbElement",
156430
156395
  "module": "core/base-elements/element.js"
156431
- }
156396
+ },
156397
+ "default": "[SbbIconElement]"
156432
156398
  },
156433
156399
  {
156434
156400
  "kind": "field",
156435
- "name": "_excludedFocusElements",
156401
+ "name": "iconName",
156436
156402
  "type": {
156437
- "text": "array"
156403
+ "text": "string"
156438
156404
  },
156439
- "privacy": "private",
156440
- "readonly": true,
156441
- "default": "['button', 'sbb-popover', 'sbb-option', 'sbb-chip']",
156405
+ "privacy": "public",
156406
+ "default": "''",
156407
+ "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.",
156408
+ "attribute": "icon-name",
156442
156409
  "inheritedFrom": {
156443
- "name": "SbbFormFieldElement",
156444
- "module": "form-field/form-field/form-field.component.js"
156410
+ "name": "SbbIconNameMixin",
156411
+ "module": "icon/icon-name-mixin.js"
156445
156412
  }
156446
156413
  },
156447
156414
  {
156448
- "kind": "field",
156449
- "name": "_floatingLabelSupportedInputElements",
156450
- "type": {
156451
- "text": "array"
156415
+ "kind": "method",
156416
+ "name": "renderIconSlot",
156417
+ "privacy": "protected",
156418
+ "return": {
156419
+ "type": {
156420
+ "text": "TemplateResult"
156421
+ }
156452
156422
  },
156453
- "privacy": "private",
156454
- "readonly": true,
156455
- "default": "[ 'input', 'select', 'textarea', 'sbb-select', ]",
156423
+ "parameters": [
156424
+ {
156425
+ "name": "classname",
156426
+ "optional": true,
156427
+ "type": {
156428
+ "text": "string"
156429
+ }
156430
+ }
156431
+ ],
156456
156432
  "inheritedFrom": {
156457
- "name": "SbbFormFieldElement",
156458
- "module": "form-field/form-field/form-field.component.js"
156433
+ "name": "SbbIconNameMixin",
156434
+ "module": "icon/icon-name-mixin.js"
156459
156435
  }
156460
156436
  },
156461
156437
  {
156462
- "kind": "field",
156463
- "name": "_floatingLabelSupportedInputTypes",
156464
- "type": {
156465
- "text": "array"
156466
- },
156438
+ "kind": "method",
156439
+ "name": "_renderIconName",
156467
156440
  "privacy": "private",
156468
- "readonly": true,
156469
- "default": "[ 'email', 'number', 'password', 'search', 'tel', 'text', 'url', ]",
156441
+ "return": {
156442
+ "type": {
156443
+ "text": "string"
156444
+ }
156445
+ },
156470
156446
  "inheritedFrom": {
156471
- "name": "SbbFormFieldElement",
156472
- "module": "form-field/form-field/form-field.component.js"
156447
+ "name": "SbbIconNameMixin",
156448
+ "module": "icon/icon-name-mixin.js"
156473
156449
  }
156474
156450
  },
156475
156451
  {
156476
156452
  "kind": "field",
156477
- "name": "errorSpace",
156453
+ "name": "disabledInteractive",
156478
156454
  "type": {
156479
- "text": "'none' | 'reserve'"
156455
+ "text": "boolean"
156480
156456
  },
156481
156457
  "privacy": "public",
156482
- "default": "'none'",
156483
- "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.",
156484
- "attribute": "error-space",
156458
+ "default": "false",
156459
+ "description": "Whether the button should be aria-disabled but stay interactive.",
156460
+ "attribute": "disabled-interactive",
156485
156461
  "reflects": true,
156486
156462
  "inheritedFrom": {
156487
- "name": "SbbFormFieldElement",
156488
- "module": "form-field/form-field/form-field.component.js"
156463
+ "name": "SbbDisabledInteractiveMixin",
156464
+ "module": "core/mixins/disabled-mixin.js"
156489
156465
  }
156490
156466
  },
156491
156467
  {
156492
156468
  "kind": "field",
156493
- "name": "optional",
156469
+ "name": "disabled",
156470
+ "privacy": "public",
156471
+ "description": "Whether the component is disabled.",
156472
+ "default": "false",
156494
156473
  "type": {
156495
156474
  "text": "boolean"
156496
156475
  },
156497
- "privacy": "public",
156498
- "default": "false",
156499
- "description": "Indicates whether the input is optional.",
156500
- "deprecated": "Set the (optional) label text manually. Will be removed with next major version.",
156501
- "attribute": "optional",
156476
+ "attribute": "disabled",
156477
+ "reflects": true,
156502
156478
  "inheritedFrom": {
156503
- "name": "SbbFormFieldElement",
156504
- "module": "form-field/form-field/form-field.component.js"
156479
+ "name": "SbbDisabledMixin",
156480
+ "module": "core/mixins/disabled-mixin.js"
156505
156481
  }
156506
156482
  },
156507
156483
  {
156508
156484
  "kind": "field",
156509
- "name": "hiddenLabel",
156485
+ "name": "#disabled",
156486
+ "privacy": "private",
156510
156487
  "type": {
156511
156488
  "text": "boolean"
156512
156489
  },
156513
- "privacy": "public",
156514
156490
  "default": "false",
156515
- "description": "Whether to visually hide the label. If hidden, screen readers will still read it.",
156516
- "attribute": "hidden-label",
156517
- "reflects": true,
156518
156491
  "inheritedFrom": {
156519
- "name": "SbbFormFieldElement",
156520
- "module": "form-field/form-field/form-field.component.js"
156492
+ "name": "SbbDisabledMixin",
156493
+ "module": "core/mixins/disabled-mixin.js"
156521
156494
  }
156522
156495
  },
156523
156496
  {
156524
- "kind": "field",
156525
- "name": "_errorElements",
156526
- "type": {
156527
- "text": "Element[]"
156497
+ "kind": "method",
156498
+ "name": "isDisabledExternally",
156499
+ "privacy": "protected",
156500
+ "return": {
156501
+ "type": {
156502
+ "text": "boolean"
156503
+ }
156528
156504
  },
156529
- "privacy": "private",
156530
- "default": "[]",
156531
- "description": "It is used internally to get the `error` slot.",
156505
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
156532
156506
  "inheritedFrom": {
156533
- "name": "SbbFormFieldElement",
156534
- "module": "form-field/form-field/form-field.component.js"
156507
+ "name": "SbbDisabledMixin",
156508
+ "module": "core/mixins/disabled-mixin.js"
156535
156509
  }
156536
156510
  },
156537
156511
  {
156538
156512
  "kind": "field",
156539
- "name": "_hintElements",
156513
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
156540
156514
  "type": {
156541
- "text": "Element[]"
156515
+ "text": "array"
156542
156516
  },
156543
156517
  "privacy": "private",
156544
- "default": "[]",
156545
- "description": "It is used internally to get the `hint` slot.",
156518
+ "readonly": true,
156519
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
156546
156520
  "inheritedFrom": {
156547
- "name": "SbbFormFieldElement",
156548
- "module": "form-field/form-field/form-field.component.js"
156521
+ "name": "SbbButtonBaseElement",
156522
+ "module": "core/base-elements/button-base-element.js"
156549
156523
  }
156550
156524
  },
156551
156525
  {
156552
156526
  "kind": "field",
156553
- "name": "_input",
156527
+ "name": "value",
156554
156528
  "type": {
156555
- "text": "HTMLInputElement | HTMLSelectElement | HTMLElement | null"
156529
+ "text": "string"
156556
156530
  },
156557
- "privacy": "private",
156558
- "default": "null",
156559
- "description": "Reference to the slotted input element.",
156531
+ "privacy": "public",
156560
156532
  "inheritedFrom": {
156561
- "name": "SbbFormFieldElement",
156562
- "module": "form-field/form-field/form-field.component.js"
156563
- }
156533
+ "name": "SbbButtonBaseElement",
156534
+ "module": "core/base-elements/button-base-element.js"
156535
+ },
156536
+ "default": "''",
156537
+ "description": "Value of the form element.",
156538
+ "attribute": "value"
156564
156539
  },
156565
156540
  {
156566
156541
  "kind": "field",
156567
- "name": "_label",
156542
+ "name": "type",
156543
+ "privacy": "public",
156544
+ "description": "The type attribute to use for the button.",
156545
+ "default": "'button'",
156568
156546
  "type": {
156569
- "text": "HTMLLabelElement"
156547
+ "text": "SbbButtonType"
156570
156548
  },
156571
- "privacy": "private",
156572
- "description": "Reference to the slotted label elements.",
156549
+ "attribute": "type",
156573
156550
  "inheritedFrom": {
156574
- "name": "SbbFormFieldElement",
156575
- "module": "form-field/form-field/form-field.component.js"
156551
+ "name": "SbbButtonBaseElement",
156552
+ "module": "core/base-elements/button-base-element.js"
156576
156553
  }
156577
156554
  },
156578
156555
  {
156579
156556
  "kind": "field",
156580
- "name": "inputElement",
156557
+ "name": "form",
156581
156558
  "type": {
156582
- "text": "HTMLInputElement | HTMLSelectElement | HTMLElement | null"
156559
+ "text": "HTMLFormElement | null"
156583
156560
  },
156584
156561
  "privacy": "public",
156585
- "description": "Returns the input element.",
156586
- "readonly": true,
156562
+ "description": "The `<form>` element to associate the button with.",
156587
156563
  "inheritedFrom": {
156588
- "name": "SbbFormFieldElement",
156589
- "module": "form-field/form-field/form-field.component.js"
156590
- }
156564
+ "name": "SbbButtonBaseElement",
156565
+ "module": "core/base-elements/button-base-element.js"
156566
+ },
156567
+ "attribute": "form"
156591
156568
  },
156592
156569
  {
156593
156570
  "kind": "field",
156594
- "name": "label",
156571
+ "name": "_formId",
156595
156572
  "type": {
156596
- "text": "HTMLLabelElement | null"
156573
+ "text": "string"
156597
156574
  },
156598
- "privacy": "public",
156599
- "description": "Reference to the slotted label.",
156600
- "readonly": true,
156575
+ "privacy": "private",
156576
+ "default": "''",
156601
156577
  "inheritedFrom": {
156602
- "name": "SbbFormFieldElement",
156603
- "module": "form-field/form-field/form-field.component.js"
156578
+ "name": "SbbButtonBaseElement",
156579
+ "module": "core/base-elements/button-base-element.js"
156604
156580
  }
156605
156581
  },
156606
156582
  {
156607
156583
  "kind": "field",
156608
- "name": "_language",
156584
+ "name": "_handleButtonClick",
156609
156585
  "privacy": "private",
156610
- "default": "new SbbLanguageController(this)",
156611
156586
  "inheritedFrom": {
156612
- "name": "SbbFormFieldElement",
156613
- "module": "form-field/form-field/form-field.component.js"
156587
+ "name": "SbbButtonBaseElement",
156588
+ "module": "core/base-elements/button-base-element.js"
156614
156589
  }
156615
156590
  },
156616
156591
  {
156617
- "kind": "field",
156618
- "name": "_formFieldAttributeObserver",
156592
+ "kind": "method",
156593
+ "name": "_requestSubmit",
156619
156594
  "privacy": "private",
156620
- "description": "Listens to the changes on `readonly` and `disabled` attributes of `<input>`.",
156595
+ "return": {
156596
+ "type": {
156597
+ "text": "void"
156598
+ }
156599
+ },
156600
+ "parameters": [
156601
+ {
156602
+ "name": "form",
156603
+ "type": {
156604
+ "text": "HTMLFormElement"
156605
+ }
156606
+ }
156607
+ ],
156621
156608
  "inheritedFrom": {
156622
- "name": "SbbFormFieldElement",
156623
- "module": "form-field/form-field/form-field.component.js"
156609
+ "name": "SbbButtonBaseElement",
156610
+ "module": "core/base-elements/button-base-element.js"
156624
156611
  }
156625
156612
  },
156626
156613
  {
156627
156614
  "kind": "field",
156628
- "name": "_inputFormAbortController",
156615
+ "name": "_formKeyDown",
156629
156616
  "privacy": "private",
156630
- "default": "new AbortController()",
156631
156617
  "inheritedFrom": {
156632
- "name": "SbbFormFieldElement",
156633
- "module": "form-field/form-field/form-field.component.js"
156618
+ "name": "SbbButtonBaseElement",
156619
+ "module": "core/base-elements/button-base-element.js"
156634
156620
  }
156635
156621
  },
156636
156622
  {
156637
156623
  "kind": "field",
156638
- "name": "_control",
156624
+ "name": "formAssociated",
156639
156625
  "type": {
156640
- "text": "SbbFormFieldElementControl | null"
156626
+ "text": "boolean"
156641
156627
  },
156642
- "privacy": "private",
156643
- "default": "null",
156628
+ "privacy": "public",
156629
+ "static": true,
156630
+ "default": "true",
156644
156631
  "inheritedFrom": {
156645
- "name": "SbbFormFieldElement",
156646
- "module": "form-field/form-field/form-field.component.js"
156632
+ "name": "SbbFormAssociatedMixin",
156633
+ "module": "core/mixins/form-associated-mixin.js"
156647
156634
  }
156648
156635
  },
156649
156636
  {
156650
156637
  "kind": "field",
156651
- "name": "_previousType",
156638
+ "name": "name",
156639
+ "privacy": "public",
156640
+ "description": "Name of the form element. Will be read from name attribute.",
156652
156641
  "type": {
156653
- "text": "string | null"
156642
+ "text": "string"
156654
156643
  },
156655
- "privacy": "private",
156656
- "default": "null",
156644
+ "attribute": "name",
156657
156645
  "inheritedFrom": {
156658
- "name": "SbbFormFieldElement",
156659
- "module": "form-field/form-field/form-field.component.js"
156646
+ "name": "SbbFormAssociatedMixin",
156647
+ "module": "core/mixins/form-associated-mixin.js"
156660
156648
  }
156661
156649
  },
156662
156650
  {
156663
- "kind": "method",
156664
- "name": "_handleWrapperClick",
156665
- "privacy": "private",
156666
- "return": {
156667
- "type": {
156668
- "text": "void"
156669
- }
156651
+ "kind": "field",
156652
+ "name": "validity",
156653
+ "type": {
156654
+ "text": "ValidityState"
156670
156655
  },
156671
- "parameters": [
156672
- {
156673
- "name": "event",
156674
- "type": {
156675
- "text": "MouseEvent"
156676
- }
156677
- }
156678
- ],
156656
+ "privacy": "public",
156657
+ "description": "Returns the ValidityState object for this element.",
156658
+ "readonly": true,
156679
156659
  "inheritedFrom": {
156680
- "name": "SbbFormFieldElement",
156681
- "module": "form-field/form-field/form-field.component.js"
156660
+ "name": "SbbFormAssociatedMixin",
156661
+ "module": "core/mixins/form-associated-mixin.js"
156682
156662
  }
156683
156663
  },
156684
156664
  {
156685
- "kind": "method",
156686
- "name": "_isElementFocusExcluded",
156687
- "privacy": "private",
156688
- "return": {
156689
- "type": {
156690
- "text": "boolean"
156691
- }
156665
+ "kind": "field",
156666
+ "name": "validationMessage",
156667
+ "type": {
156668
+ "text": "string"
156692
156669
  },
156693
- "parameters": [
156694
- {
156695
- "name": "event",
156696
- "type": {
156697
- "text": "Event"
156698
- }
156699
- }
156700
- ],
156670
+ "privacy": "public",
156671
+ "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.",
156672
+ "readonly": true,
156701
156673
  "inheritedFrom": {
156702
- "name": "SbbFormFieldElement",
156703
- "module": "form-field/form-field/form-field.component.js"
156674
+ "name": "SbbFormAssociatedMixin",
156675
+ "module": "core/mixins/form-associated-mixin.js"
156704
156676
  }
156705
156677
  },
156706
156678
  {
156707
- "kind": "method",
156708
- "name": "_onSlotLabelChange",
156709
- "privacy": "private",
156710
- "return": {
156711
- "type": {
156712
- "text": "void"
156713
- }
156679
+ "kind": "field",
156680
+ "name": "willValidate",
156681
+ "type": {
156682
+ "text": "boolean"
156714
156683
  },
156684
+ "privacy": "public",
156685
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
156686
+ "readonly": true,
156715
156687
  "inheritedFrom": {
156716
- "name": "SbbFormFieldElement",
156717
- "module": "form-field/form-field/form-field.component.js"
156688
+ "name": "SbbFormAssociatedMixin",
156689
+ "module": "core/mixins/form-associated-mixin.js"
156718
156690
  }
156719
156691
  },
156720
156692
  {
156721
- "kind": "method",
156722
- "name": "_onSlotInputChange",
156693
+ "kind": "field",
156694
+ "name": "_validityStates",
156723
156695
  "privacy": "private",
156724
- "return": {
156725
- "type": {
156726
- "text": "void"
156727
- }
156728
- },
156729
- "description": "It is used internally to assign the attributes of `<input>` to `_id` and `_input` and to observe the native readonly and disabled attributes.",
156696
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
156730
156697
  "inheritedFrom": {
156731
- "name": "SbbFormFieldElement",
156732
- "module": "form-field/form-field/form-field.component.js"
156733
- }
156734
- },
156735
- {
156736
- "kind": "method",
156737
- "name": "_assignSlots",
156738
- "privacy": "private",
156739
- "return": {
156740
- "type": {
156741
- "text": "void"
156742
- }
156698
+ "name": "SbbFormAssociatedMixin",
156699
+ "module": "core/mixins/form-associated-mixin.js"
156700
+ }
156701
+ },
156702
+ {
156703
+ "kind": "field",
156704
+ "name": "formDisabled",
156705
+ "type": {
156706
+ "text": "boolean"
156743
156707
  },
156708
+ "privacy": "protected",
156709
+ "default": "false",
156710
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
156744
156711
  "inheritedFrom": {
156745
- "name": "SbbFormFieldElement",
156746
- "module": "form-field/form-field/form-field.component.js"
156712
+ "name": "SbbFormAssociatedMixin",
156713
+ "module": "core/mixins/form-associated-mixin.js"
156747
156714
  }
156748
156715
  },
156749
156716
  {
156750
156717
  "kind": "method",
156751
- "name": "_connectInputElement",
156752
- "privacy": "private",
156718
+ "name": "checkValidity",
156719
+ "privacy": "public",
156753
156720
  "return": {
156754
156721
  "type": {
156755
- "text": "'changed' | 'no-input' | 'unchanged'"
156722
+ "text": "boolean"
156756
156723
  }
156757
156724
  },
156725
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
156758
156726
  "inheritedFrom": {
156759
- "name": "SbbFormFieldElement",
156760
- "module": "form-field/form-field/form-field.component.js"
156727
+ "name": "SbbFormAssociatedMixin",
156728
+ "module": "core/mixins/form-associated-mixin.js"
156761
156729
  }
156762
156730
  },
156763
156731
  {
156764
156732
  "kind": "method",
156765
- "name": "_syncLabelInputReferences",
156766
- "privacy": "private",
156733
+ "name": "reportValidity",
156734
+ "privacy": "public",
156767
156735
  "return": {
156768
156736
  "type": {
156769
- "text": "void"
156737
+ "text": "boolean"
156770
156738
  }
156771
156739
  },
156740
+ "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.",
156772
156741
  "inheritedFrom": {
156773
- "name": "SbbFormFieldElement",
156774
- "module": "form-field/form-field/form-field.component.js"
156742
+ "name": "SbbFormAssociatedMixin",
156743
+ "module": "core/mixins/form-associated-mixin.js"
156775
156744
  }
156776
156745
  },
156777
156746
  {
156778
156747
  "kind": "method",
156779
- "name": "_isInputElement",
156780
- "privacy": "private",
156748
+ "name": "setCustomValidity",
156749
+ "privacy": "public",
156781
156750
  "return": {
156782
156751
  "type": {
156783
- "text": "boolean"
156752
+ "text": "void"
156784
156753
  }
156785
156754
  },
156786
156755
  "parameters": [
156787
156756
  {
156788
- "name": "input",
156757
+ "name": "message",
156789
156758
  "type": {
156790
- "text": "Element"
156759
+ "text": "string"
156791
156760
  }
156792
156761
  }
156793
156762
  ],
156763
+ "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.",
156794
156764
  "inheritedFrom": {
156795
- "name": "SbbFormFieldElement",
156796
- "module": "form-field/form-field/form-field.component.js"
156765
+ "name": "SbbFormAssociatedMixin",
156766
+ "module": "core/mixins/form-associated-mixin.js"
156797
156767
  }
156798
156768
  },
156799
156769
  {
156800
156770
  "kind": "method",
156801
- "name": "_readInputState",
156771
+ "name": "_hasDisabledAncestor",
156802
156772
  "privacy": "private",
156803
156773
  "return": {
156804
156774
  "type": {
156805
- "text": "void"
156775
+ "text": "boolean"
156806
156776
  }
156807
156777
  },
156808
156778
  "inheritedFrom": {
156809
- "name": "SbbFormFieldElement",
156810
- "module": "form-field/form-field/form-field.component.js"
156779
+ "name": "SbbFormAssociatedMixin",
156780
+ "module": "core/mixins/form-associated-mixin.js"
156811
156781
  }
156812
156782
  },
156813
156783
  {
156814
156784
  "kind": "method",
156815
- "name": "_registerInputFormListener",
156816
- "privacy": "private",
156785
+ "name": "updateFormValue",
156786
+ "privacy": "protected",
156817
156787
  "return": {
156818
156788
  "type": {
156819
156789
  "text": "void"
156820
156790
  }
156821
156791
  },
156792
+ "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",
156822
156793
  "inheritedFrom": {
156823
- "name": "SbbFormFieldElement",
156824
- "module": "form-field/form-field/form-field.component.js"
156794
+ "name": "SbbFormAssociatedMixin",
156795
+ "module": "core/mixins/form-associated-mixin.js"
156825
156796
  }
156826
156797
  },
156827
156798
  {
156828
156799
  "kind": "method",
156829
- "name": "_patchInputValue",
156830
- "privacy": "private",
156800
+ "name": "formState",
156801
+ "privacy": "protected",
156831
156802
  "return": {
156832
156803
  "type": {
156833
- "text": "void"
156804
+ "text": "FormRestoreState"
156834
156805
  }
156835
156806
  },
156836
156807
  "inheritedFrom": {
156837
- "name": "SbbFormFieldElement",
156838
- "module": "form-field/form-field/form-field.component.js"
156808
+ "name": "SbbFormAssociatedMixin",
156809
+ "module": "core/mixins/form-associated-mixin.js"
156839
156810
  }
156840
156811
  },
156841
156812
  {
156842
156813
  "kind": "method",
156843
- "name": "_unpatchInputValue",
156844
- "privacy": "private",
156814
+ "name": "setValidityFlag",
156815
+ "privacy": "protected",
156845
156816
  "return": {
156846
156817
  "type": {
156847
156818
  "text": "void"
156848
156819
  }
156849
156820
  },
156821
+ "parameters": [
156822
+ {
156823
+ "name": "flag",
156824
+ "type": {
156825
+ "text": "T"
156826
+ }
156827
+ },
156828
+ {
156829
+ "name": "message",
156830
+ "type": {
156831
+ "text": "string"
156832
+ }
156833
+ },
156834
+ {
156835
+ "name": "flagValue",
156836
+ "optional": true,
156837
+ "type": {
156838
+ "text": "ValidityStateFlags[T]"
156839
+ }
156840
+ }
156841
+ ],
156842
+ "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).",
156850
156843
  "inheritedFrom": {
156851
- "name": "SbbFormFieldElement",
156852
- "module": "form-field/form-field/form-field.component.js"
156844
+ "name": "SbbFormAssociatedMixin",
156845
+ "module": "core/mixins/form-associated-mixin.js"
156853
156846
  }
156854
156847
  },
156855
156848
  {
156856
156849
  "kind": "method",
156857
- "name": "_checkAndUpdateInputEmpty",
156858
- "privacy": "private",
156850
+ "name": "removeValidityFlag",
156851
+ "privacy": "protected",
156859
156852
  "return": {
156860
156853
  "type": {
156861
156854
  "text": "void"
156862
156855
  }
156863
156856
  },
156864
- "inheritedFrom": {
156865
- "name": "SbbFormFieldElement",
156866
- "module": "form-field/form-field/form-field.component.js"
156867
- }
156868
- },
156869
- {
156870
- "kind": "method",
156871
- "name": "_isInputEmpty",
156872
- "privacy": "private",
156873
- "return": {
156874
- "type": {
156875
- "text": "boolean"
156857
+ "parameters": [
156858
+ {
156859
+ "name": "flag",
156860
+ "type": {
156861
+ "text": "T"
156862
+ }
156876
156863
  }
156877
- },
156864
+ ],
156865
+ "description": "Removes the validity state flag entry and updates validity state.",
156878
156866
  "inheritedFrom": {
156879
- "name": "SbbFormFieldElement",
156880
- "module": "form-field/form-field/form-field.component.js"
156867
+ "name": "SbbFormAssociatedMixin",
156868
+ "module": "core/mixins/form-associated-mixin.js"
156881
156869
  }
156882
156870
  },
156883
156871
  {
156884
156872
  "kind": "method",
156885
- "name": "_isInputValueEmpty",
156886
- "privacy": "private",
156873
+ "name": "validate",
156874
+ "privacy": "protected",
156887
156875
  "return": {
156888
156876
  "type": {
156889
- "text": "boolean"
156877
+ "text": "void"
156890
156878
  }
156891
156879
  },
156880
+ "description": "To be called whenever the current element needs to be validated.",
156892
156881
  "inheritedFrom": {
156893
- "name": "SbbFormFieldElement",
156894
- "module": "form-field/form-field/form-field.component.js"
156882
+ "name": "SbbFormAssociatedMixin",
156883
+ "module": "core/mixins/form-associated-mixin.js"
156895
156884
  }
156896
156885
  },
156897
156886
  {
156898
156887
  "kind": "method",
156899
- "name": "_onSlotErrorChange",
156900
- "privacy": "private",
156888
+ "name": "shouldValidate",
156889
+ "privacy": "protected",
156901
156890
  "return": {
156902
156891
  "type": {
156903
- "text": "void"
156892
+ "text": "boolean"
156904
156893
  }
156905
156894
  },
156906
156895
  "parameters": [
156907
156896
  {
156908
- "name": "event",
156897
+ "name": "name",
156909
156898
  "type": {
156910
- "text": "Event"
156899
+ "text": "PropertyKey | undefined"
156911
156900
  }
156912
156901
  }
156913
156902
  ],
156914
- "description": "It is used internally to set the aria-describedby attribute for the slotted input referencing available <sbb-error> instances.",
156903
+ "description": "Whether validation should be run on a property change with the given name.",
156915
156904
  "inheritedFrom": {
156916
- "name": "SbbFormFieldElement",
156917
- "module": "form-field/form-field/form-field.component.js"
156905
+ "name": "SbbFormAssociatedMixin",
156906
+ "module": "core/mixins/form-associated-mixin.js"
156918
156907
  }
156919
156908
  },
156920
156909
  {
156921
156910
  "kind": "method",
156922
- "name": "_onSlotHintChange",
156911
+ "name": "_setInternalValidity",
156923
156912
  "privacy": "private",
156924
156913
  "return": {
156925
156914
  "type": {
156926
156915
  "text": "void"
156927
156916
  }
156928
156917
  },
156918
+ "inheritedFrom": {
156919
+ "name": "SbbFormAssociatedMixin",
156920
+ "module": "core/mixins/form-associated-mixin.js"
156921
+ }
156922
+ },
156923
+ {
156924
+ "kind": "field",
156925
+ "name": "role",
156926
+ "type": {
156927
+ "text": "ElementInternals['role']"
156928
+ },
156929
+ "privacy": "public",
156930
+ "static": true,
156931
+ "inheritedFrom": {
156932
+ "name": "SbbElement",
156933
+ "module": "core/base-elements/element.js"
156934
+ },
156935
+ "readonly": true,
156936
+ "default": "'button'"
156937
+ },
156938
+ {
156939
+ "kind": "field",
156940
+ "name": "_preventScrollOnSpaceKeydown",
156941
+ "privacy": "private",
156942
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
156929
156943
  "parameters": [
156930
156944
  {
156931
- "name": "event",
156932
- "type": {
156933
- "text": "Event"
156934
- }
156945
+ "description": "The origin event.",
156946
+ "name": "event"
156935
156947
  }
156936
156948
  ],
156937
- "description": "It is used internally to set the aria-describedby attribute for the slotted input referencing available <sbb-hint> instances.",
156938
156949
  "inheritedFrom": {
156939
- "name": "SbbFormFieldElement",
156940
- "module": "form-field/form-field/form-field.component.js"
156950
+ "name": "SbbButtonLikeBaseElement",
156951
+ "module": "core/base-elements/button-base-element.js"
156941
156952
  }
156942
156953
  },
156943
156954
  {
156944
- "kind": "method",
156945
- "name": "_assignAriaDescribedByElements",
156955
+ "kind": "field",
156956
+ "name": "_removeActiveMarker",
156946
156957
  "privacy": "private",
156947
- "return": {
156948
- "type": {
156949
- "text": "void"
156950
- }
156951
- },
156952
156958
  "inheritedFrom": {
156953
- "name": "SbbFormFieldElement",
156954
- "module": "form-field/form-field/form-field.component.js"
156959
+ "name": "SbbButtonLikeBaseElement",
156960
+ "module": "core/base-elements/button-base-element.js"
156955
156961
  }
156956
156962
  },
156957
156963
  {
156958
- "kind": "method",
156959
- "name": "reset",
156960
- "privacy": "public",
156961
- "return": {
156962
- "type": {
156963
- "text": "void"
156964
+ "kind": "field",
156965
+ "name": "_dispatchClickEventOnSpaceKeyup",
156966
+ "privacy": "private",
156967
+ "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.",
156968
+ "parameters": [
156969
+ {
156970
+ "description": "The origin event.",
156971
+ "name": "event"
156964
156972
  }
156965
- },
156966
- "description": "Manually reset the form field. Currently, this only resets the floating label.",
156973
+ ],
156967
156974
  "inheritedFrom": {
156968
- "name": "SbbFormFieldElement",
156969
- "module": "form-field/form-field/form-field.component.js"
156975
+ "name": "SbbButtonLikeBaseElement",
156976
+ "module": "core/base-elements/button-base-element.js"
156970
156977
  }
156971
156978
  },
156972
156979
  {
156973
- "kind": "method",
156974
- "name": "clear",
156975
- "privacy": "public",
156976
- "return": {
156977
- "type": {
156978
- "text": "void"
156979
- }
156980
+ "kind": "field",
156981
+ "name": "_dispatchClickEvent",
156982
+ "privacy": "private",
156983
+ "inheritedFrom": {
156984
+ "name": "SbbButtonLikeBaseElement",
156985
+ "module": "core/base-elements/button-base-element.js"
156986
+ }
156987
+ },
156988
+ {
156989
+ "kind": "field",
156990
+ "name": "maybeDisabled",
156991
+ "type": {
156992
+ "text": "boolean | undefined"
156980
156993
  },
156981
- "description": "Manually clears the input value. It only works for inputs, selects are not supported.",
156994
+ "privacy": "protected",
156995
+ "readonly": true,
156982
156996
  "inheritedFrom": {
156983
- "name": "SbbFormFieldElement",
156984
- "module": "form-field/form-field/form-field.component.js"
156997
+ "name": "SbbActionBaseElement",
156998
+ "module": "core/base-elements/action-base-element.js"
156985
156999
  }
156986
157000
  },
156987
157001
  {
156988
- "kind": "method",
156989
- "name": "_syncNegative",
156990
- "privacy": "private",
156991
- "return": {
156992
- "type": {
156993
- "text": "void"
156994
- }
157002
+ "kind": "field",
157003
+ "name": "maybeDisabledInteractive",
157004
+ "type": {
157005
+ "text": "boolean | undefined"
156995
157006
  },
157007
+ "privacy": "protected",
157008
+ "readonly": true,
156996
157009
  "inheritedFrom": {
156997
- "name": "SbbFormFieldElement",
156998
- "module": "form-field/form-field/form-field.component.js"
157010
+ "name": "SbbActionBaseElement",
157011
+ "module": "core/base-elements/action-base-element.js"
156999
157012
  }
157000
157013
  },
157001
157014
  {
157002
157015
  "kind": "method",
157003
- "name": "_syncSize",
157004
- "privacy": "private",
157016
+ "name": "setupBaseEventHandlers",
157017
+ "privacy": "protected",
157005
157018
  "return": {
157006
157019
  "type": {
157007
157020
  "text": "void"
157008
157021
  }
157009
157022
  },
157010
157023
  "inheritedFrom": {
157011
- "name": "SbbFormFieldElement",
157012
- "module": "form-field/form-field/form-field.component.js"
157024
+ "name": "SbbActionBaseElement",
157025
+ "module": "core/base-elements/action-base-element.js"
157013
157026
  }
157014
157027
  },
157015
157028
  {
@@ -157026,19 +157039,6 @@
157026
157039
  "module": "core/base-elements/element.js"
157027
157040
  }
157028
157041
  },
157029
- {
157030
- "kind": "field",
157031
- "name": "role",
157032
- "type": {
157033
- "text": "ElementInternals['role'] | undefined"
157034
- },
157035
- "privacy": "public",
157036
- "static": true,
157037
- "inheritedFrom": {
157038
- "name": "SbbElement",
157039
- "module": "core/base-elements/element.js"
157040
- }
157041
- },
157042
157042
  {
157043
157043
  "kind": "field",
157044
157044
  "name": "_controllers",
@@ -157259,13 +157259,55 @@
157259
157259
  }
157260
157260
  }
157261
157261
  ],
157262
+ "events": [
157263
+ {
157264
+ "type": {
157265
+ "text": "Event"
157266
+ },
157267
+ "description": "The change event is fired on the associated inputs when the user modifies the element's value. Unlike the input event, the change event is not necessarily fired for each alteration to an element's value.",
157268
+ "name": "change"
157269
+ },
157270
+ {
157271
+ "type": {
157272
+ "text": "InputEvent"
157273
+ },
157274
+ "description": "The input event fires on the associated inputs when the value has been changed as a direct result of a user action.",
157275
+ "name": "input"
157276
+ }
157277
+ ],
157262
157278
  "superclass": {
157263
- "name": "SbbFormFieldElement",
157264
- "module": "form-field.pure.js"
157279
+ "name": "SbbSecondaryButtonElement",
157280
+ "module": "button.pure.js"
157265
157281
  },
157266
- "tagName": "sbb-timetable-form-field",
157282
+ "tagName": "sbb-timetable-form-swap-button",
157267
157283
  "customElement": true,
157268
157284
  "attributes": [
157285
+ {
157286
+ "name": "size",
157287
+ "type": {
157288
+ "text": "SbbButtonSize"
157289
+ },
157290
+ "description": "Size variant, either l, m or s.",
157291
+ "default": "'l' / 's' (lean)",
157292
+ "fieldName": "size",
157293
+ "inheritedFrom": {
157294
+ "name": "SbbButtonCommonElementMixin",
157295
+ "module": "button/common/button-common.js"
157296
+ }
157297
+ },
157298
+ {
157299
+ "name": "loading",
157300
+ "type": {
157301
+ "text": "boolean"
157302
+ },
157303
+ "default": "false",
157304
+ "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.",
157305
+ "fieldName": "loading",
157306
+ "inheritedFrom": {
157307
+ "name": "SbbButtonCommonElementMixin",
157308
+ "module": "button/common/button-common.js"
157309
+ }
157310
+ },
157269
157311
  {
157270
157312
  "name": "negative",
157271
157313
  "type": {
@@ -157280,163 +157322,121 @@
157280
157322
  }
157281
157323
  },
157282
157324
  {
157283
- "name": "error-space",
157325
+ "name": "icon-name",
157284
157326
  "type": {
157285
- "text": "'none' | 'reserve'"
157327
+ "text": "string"
157286
157328
  },
157287
- "default": "'none'",
157288
- "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.",
157289
- "fieldName": "errorSpace",
157329
+ "default": "''",
157330
+ "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.",
157331
+ "fieldName": "iconName",
157290
157332
  "inheritedFrom": {
157291
- "name": "SbbFormFieldElement",
157292
- "module": "form-field/form-field/form-field.component.js"
157333
+ "name": "SbbIconNameMixin",
157334
+ "module": "icon/icon-name-mixin.js"
157293
157335
  }
157294
157336
  },
157295
157337
  {
157296
- "name": "optional",
157338
+ "name": "disabled-interactive",
157297
157339
  "type": {
157298
157340
  "text": "boolean"
157299
157341
  },
157300
157342
  "default": "false",
157301
- "description": "Indicates whether the input is optional.",
157302
- "deprecated": "Set the (optional) label text manually. Will be removed with next major version.",
157303
- "fieldName": "optional",
157343
+ "description": "Whether the button should be aria-disabled but stay interactive.",
157344
+ "fieldName": "disabledInteractive",
157304
157345
  "inheritedFrom": {
157305
- "name": "SbbFormFieldElement",
157306
- "module": "form-field/form-field/form-field.component.js"
157346
+ "name": "SbbDisabledInteractiveMixin",
157347
+ "module": "core/mixins/disabled-mixin.js"
157307
157348
  }
157308
157349
  },
157309
157350
  {
157310
- "name": "size",
157351
+ "name": "disabled",
157352
+ "description": "Whether the component is disabled.",
157353
+ "default": "false",
157311
157354
  "type": {
157312
- "text": "'l' | 'm' | 's'"
157355
+ "text": "boolean"
157313
157356
  },
157314
- "description": "Size variant, either l, m or s.",
157315
- "default": "'m' / 's' (lean)",
157316
- "fieldName": "size",
157357
+ "fieldName": "disabled",
157317
157358
  "inheritedFrom": {
157318
- "name": "SbbFormFieldElement",
157319
- "module": "form-field/form-field/form-field.component.js"
157359
+ "name": "SbbDisabledMixin",
157360
+ "module": "core/mixins/disabled-mixin.js"
157320
157361
  }
157321
157362
  },
157322
157363
  {
157323
- "name": "borderless",
157364
+ "name": "value",
157324
157365
  "type": {
157325
- "text": "boolean"
157366
+ "text": "string"
157326
157367
  },
157327
- "default": "false",
157328
- "description": "Whether to display the form field without a border.",
157329
- "fieldName": "borderless",
157368
+ "default": "''",
157369
+ "description": "Value of the form element.",
157370
+ "fieldName": "value",
157330
157371
  "inheritedFrom": {
157331
- "name": "SbbFormFieldElement",
157332
- "module": "form-field/form-field/form-field.component.js"
157372
+ "name": "SbbButtonBaseElement",
157373
+ "module": "core/base-elements/button-base-element.js"
157333
157374
  }
157334
157375
  },
157335
157376
  {
157336
- "name": "width",
157377
+ "name": "type",
157378
+ "description": "The type attribute to use for the button.",
157379
+ "default": "'button'",
157337
157380
  "type": {
157338
- "text": "'default' | 'collapse'"
157381
+ "text": "SbbButtonType"
157339
157382
  },
157340
- "default": "'default'",
157341
- "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.",
157342
- "fieldName": "width",
157383
+ "fieldName": "type",
157343
157384
  "inheritedFrom": {
157344
- "name": "SbbFormFieldElement",
157345
- "module": "form-field/form-field/form-field.component.js"
157385
+ "name": "SbbButtonBaseElement",
157386
+ "module": "core/base-elements/button-base-element.js"
157346
157387
  }
157347
157388
  },
157348
157389
  {
157349
- "name": "hidden-label",
157390
+ "name": "form",
157391
+ "description": "The `<form>` element to associate the button with.",
157350
157392
  "type": {
157351
- "text": "boolean"
157393
+ "text": "HTMLFormElement | null"
157352
157394
  },
157353
- "default": "false",
157354
- "description": "Whether to visually hide the label. If hidden, screen readers will still read it.",
157355
- "fieldName": "hiddenLabel",
157395
+ "fieldName": "form",
157356
157396
  "inheritedFrom": {
157357
- "name": "SbbFormFieldElement",
157358
- "module": "form-field/form-field/form-field.component.js"
157397
+ "name": "SbbButtonBaseElement",
157398
+ "module": "core/base-elements/button-base-element.js"
157359
157399
  }
157360
157400
  },
157361
157401
  {
157362
- "name": "floating-label",
157402
+ "name": "name",
157403
+ "description": "Name of the form element. Will be read from name attribute.",
157363
157404
  "type": {
157364
- "text": "boolean"
157405
+ "text": "string"
157365
157406
  },
157366
- "default": "false",
157367
- "description": "Whether the label should float. If activated, the placeholder of the input is hidden.",
157368
- "fieldName": "floatingLabel",
157407
+ "fieldName": "name",
157369
157408
  "inheritedFrom": {
157370
- "name": "SbbFormFieldElement",
157371
- "module": "form-field/form-field/form-field.component.js"
157409
+ "name": "SbbFormAssociatedMixin",
157410
+ "module": "core/mixins/form-associated-mixin.js"
157372
157411
  }
157373
157412
  }
157374
157413
  ],
157375
157414
  "slots": [
157376
157415
  {
157377
- "description": "Use this slot to render an input/select or a supported non-native element.",
157416
+ "description": "Use the unnamed slot to add content to the secondary-button.",
157378
157417
  "name": "",
157379
157418
  "inheritedFrom": {
157380
- "name": "SbbFormFieldElement",
157381
- "module": "form-field/form-field/form-field.component.js"
157382
- }
157383
- },
157384
- {
157385
- "description": "Use this slot to render a label.",
157386
- "name": "label",
157387
- "inheritedFrom": {
157388
- "name": "SbbFormFieldElement",
157389
- "module": "form-field/form-field/form-field.component.js"
157390
- }
157391
- },
157392
- {
157393
- "description": "Use this slot to render an icon on the left side of the input.",
157394
- "name": "prefix",
157395
- "inheritedFrom": {
157396
- "name": "SbbFormFieldElement",
157397
- "module": "form-field/form-field/form-field.component.js"
157398
- }
157399
- },
157400
- {
157401
- "description": "Use this slot to render an icon on the right side of the input.",
157402
- "name": "suffix",
157403
- "inheritedFrom": {
157404
- "name": "SbbFormFieldElement",
157405
- "module": "form-field/form-field/form-field.component.js"
157406
- }
157407
- },
157408
- {
157409
- "description": "Use this slot to render an error.",
157410
- "name": "error",
157411
- "inheritedFrom": {
157412
- "name": "SbbFormFieldElement",
157413
- "module": "form-field/form-field/form-field.component.js"
157419
+ "name": "SbbSecondaryButtonElement",
157420
+ "module": "button/secondary-button/secondary-button.component.js"
157414
157421
  }
157415
157422
  },
157416
157423
  {
157417
- "description": "Use this slot to render an `<sbb-hint>` or an `<sbb-form-field-text-counter>` element.",
157418
- "name": "hint",
157424
+ "description": "Slot used to display the icon, if one is set.",
157425
+ "name": "icon",
157419
157426
  "inheritedFrom": {
157420
- "name": "SbbFormFieldElement",
157421
- "module": "form-field/form-field/form-field.component.js"
157427
+ "name": "SbbSecondaryButtonElement",
157428
+ "module": "button/secondary-button/secondary-button.component.js"
157422
157429
  }
157423
157430
  }
157424
157431
  ],
157425
157432
  "cssProperties": [
157426
157433
  {
157427
- "description": "To override the focus outline offset,",
157428
- "name": "--sbb-form-field-outline-offset",
157429
- "inheritedFrom": {
157430
- "name": "SbbFormFieldElement",
157431
- "module": "form-field/form-field/form-field.component.js"
157432
- }
157433
- },
157434
- {
157435
- "description": "To override the z-index of the focus underline effect,",
157436
- "name": "--sbb-form-field-focus-underline-z-index",
157434
+ "description": "The delay before the loading animation starts, when setting the button into loading state.",
157435
+ "name": "--sbb-button-loading-delay",
157436
+ "default": "300ms",
157437
157437
  "inheritedFrom": {
157438
- "name": "SbbFormFieldElement",
157439
- "module": "form-field/form-field/form-field.component.js"
157438
+ "name": "SbbSecondaryButtonElement",
157439
+ "module": "button/secondary-button/secondary-button.component.js"
157440
157440
  }
157441
157441
  }
157442
157442
  ]
@@ -157445,10 +157445,10 @@
157445
157445
  "exports": [
157446
157446
  {
157447
157447
  "kind": "js",
157448
- "name": "SbbTimetableFormFieldElement",
157448
+ "name": "SbbTimetableFormSwapButtonElement",
157449
157449
  "declaration": {
157450
- "name": "SbbTimetableFormFieldElement",
157451
- "module": "timetable-form/timetable-form-field/timetable-form-field.component.js"
157450
+ "name": "SbbTimetableFormSwapButtonElement",
157451
+ "module": "timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js"
157452
157452
  }
157453
157453
  }
157454
157454
  ]