@sbb-esta/lyne-elements-dev 4.8.1-dev.1774275811 → 4.8.1-dev.1774278996

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.
@@ -94058,167 +94058,196 @@
94058
94058
  },
94059
94059
  {
94060
94060
  "kind": "javascript-module",
94061
- "path": "form-field/form-field-clear/form-field-clear.component.js",
94061
+ "path": "header/common/header-action-common.js",
94062
94062
  "declarations": [
94063
94063
  {
94064
94064
  "kind": "class",
94065
- "description": "Combined with `sbb-form-field`, it displays a button which clears the input value.",
94066
- "name": "SbbFormFieldClearElement",
94065
+ "description": "",
94066
+ "name": "SbbHeaderActionCommonElementMixinType",
94067
94067
  "members": [
94068
94068
  {
94069
94069
  "kind": "field",
94070
- "name": "elementName",
94070
+ "name": "expandFrom",
94071
94071
  "type": {
94072
- "text": "string"
94073
- },
94074
- "privacy": "public",
94075
- "static": true,
94076
- "readonly": true,
94077
- "inheritedFrom": {
94078
- "name": "SbbElement",
94079
- "module": "core/base-elements/element.js"
94072
+ "text": "SbbHorizontalFrom"
94080
94073
  },
94081
- "default": "'sbb-form-field-clear'"
94074
+ "privacy": "public"
94082
94075
  },
94083
94076
  {
94084
94077
  "kind": "field",
94085
- "name": "_formField",
94078
+ "name": "iconName",
94086
94079
  "type": {
94087
- "text": "SbbFormFieldElement | null | undefined"
94080
+ "text": "string"
94088
94081
  },
94089
- "privacy": "private"
94082
+ "privacy": "public",
94083
+ "default": "''",
94084
+ "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.",
94085
+ "attribute": "icon-name",
94086
+ "inheritedFrom": {
94087
+ "name": "SbbIconNameMixin",
94088
+ "module": "icon/icon-name-mixin.js"
94089
+ }
94090
94090
  },
94091
94091
  {
94092
- "kind": "field",
94093
- "name": "_language",
94094
- "privacy": "private",
94095
- "default": "new SbbLanguageController(this)"
94092
+ "kind": "method",
94093
+ "name": "renderIconSlot",
94094
+ "privacy": "protected",
94095
+ "return": {
94096
+ "type": {
94097
+ "text": "TemplateResult"
94098
+ }
94099
+ },
94100
+ "parameters": [
94101
+ {
94102
+ "name": "classname",
94103
+ "optional": true,
94104
+ "type": {
94105
+ "text": "string"
94106
+ }
94107
+ }
94108
+ ],
94109
+ "inheritedFrom": {
94110
+ "name": "SbbIconNameMixin",
94111
+ "module": "icon/icon-name-mixin.js"
94112
+ }
94096
94113
  },
94097
94114
  {
94098
94115
  "kind": "method",
94099
- "name": "_handleClick",
94100
- "privacy": "private",
94116
+ "name": "renderIconName",
94117
+ "privacy": "protected",
94101
94118
  "return": {
94102
94119
  "type": {
94103
- "text": "Promise<void>"
94120
+ "text": "string"
94104
94121
  }
94122
+ },
94123
+ "inheritedFrom": {
94124
+ "name": "SbbIconNameMixin",
94125
+ "module": "icon/icon-name-mixin.js"
94105
94126
  }
94106
94127
  },
94107
94128
  {
94108
94129
  "kind": "method",
94109
- "name": "renderTemplate",
94110
- "privacy": "protected",
94130
+ "name": "_renderIconName",
94131
+ "privacy": "private",
94111
94132
  "return": {
94112
94133
  "type": {
94113
- "text": "TemplateResult"
94134
+ "text": "string"
94114
94135
  }
94115
94136
  },
94116
- "description": "Override this method to render the component template.",
94117
94137
  "inheritedFrom": {
94118
- "name": "SbbActionBaseElement",
94119
- "module": "core/base-elements/action-base-element.js"
94138
+ "name": "SbbIconNameMixin",
94139
+ "module": "icon/icon-name-mixin.js"
94120
94140
  }
94121
94141
  },
94122
94142
  {
94123
94143
  "kind": "field",
94124
- "name": "negative",
94144
+ "name": "maybeDisabled",
94125
94145
  "type": {
94126
- "text": "boolean"
94146
+ "text": "boolean | undefined"
94127
94147
  },
94128
- "privacy": "public",
94129
- "default": "false",
94130
- "description": "Negative coloring variant flag.",
94131
- "attribute": "negative",
94132
- "reflects": true,
94148
+ "privacy": "protected",
94149
+ "readonly": true,
94133
94150
  "inheritedFrom": {
94134
- "name": "SbbNegativeMixin",
94135
- "module": "core/mixins/negative-mixin.js"
94151
+ "name": "SbbActionBaseElement",
94152
+ "module": "core/base-elements/action-base-element.js"
94136
94153
  }
94137
94154
  },
94138
94155
  {
94139
94156
  "kind": "field",
94140
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
94157
+ "name": "maybeDisabledInteractive",
94141
94158
  "type": {
94142
- "text": "array"
94159
+ "text": "boolean | undefined"
94143
94160
  },
94144
- "privacy": "private",
94161
+ "privacy": "protected",
94145
94162
  "readonly": true,
94146
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
94147
94163
  "inheritedFrom": {
94148
- "name": "SbbButtonBaseElement",
94149
- "module": "core/base-elements/button-base-element.js"
94164
+ "name": "SbbActionBaseElement",
94165
+ "module": "core/base-elements/action-base-element.js"
94150
94166
  }
94151
94167
  },
94152
94168
  {
94153
- "kind": "field",
94154
- "name": "value",
94155
- "type": {
94156
- "text": "string"
94169
+ "kind": "method",
94170
+ "name": "setupBaseEventHandlers",
94171
+ "privacy": "protected",
94172
+ "return": {
94173
+ "type": {
94174
+ "text": "void"
94175
+ }
94157
94176
  },
94158
- "privacy": "public",
94159
94177
  "inheritedFrom": {
94160
- "name": "SbbButtonBaseElement",
94161
- "module": "core/base-elements/button-base-element.js"
94178
+ "name": "SbbActionBaseElement",
94179
+ "module": "core/base-elements/action-base-element.js"
94180
+ }
94181
+ },
94182
+ {
94183
+ "kind": "method",
94184
+ "name": "renderTemplate",
94185
+ "privacy": "protected",
94186
+ "return": {
94187
+ "type": {
94188
+ "text": "TemplateResult"
94189
+ }
94162
94190
  },
94163
- "default": "''",
94164
- "description": "Value of the form element.",
94165
- "attribute": "value"
94191
+ "description": "Override this method to render the component template.",
94192
+ "inheritedFrom": {
94193
+ "name": "SbbActionBaseElement",
94194
+ "module": "core/base-elements/action-base-element.js"
94195
+ }
94166
94196
  },
94167
94197
  {
94168
94198
  "kind": "field",
94169
- "name": "type",
94170
- "privacy": "public",
94171
- "description": "The type attribute to use for the button.",
94172
- "default": "'button'",
94199
+ "name": "_hydrationRequired",
94173
94200
  "type": {
94174
- "text": "SbbButtonType"
94201
+ "text": "boolean"
94175
94202
  },
94176
- "attribute": "type",
94203
+ "privacy": "private",
94204
+ "default": "!!this.shadowRoot",
94177
94205
  "inheritedFrom": {
94178
- "name": "SbbButtonBaseElement",
94179
- "module": "core/base-elements/button-base-element.js"
94206
+ "name": "SbbElement",
94207
+ "module": "core/base-elements/element.js"
94180
94208
  }
94181
94209
  },
94182
94210
  {
94183
94211
  "kind": "field",
94184
- "name": "form",
94185
- "type": {
94186
- "text": "HTMLFormElement | null"
94187
- },
94188
- "privacy": "public",
94189
- "description": "The `<form>` element to associate the button with.",
94212
+ "name": "_hydrationComplete",
94213
+ "privacy": "private",
94214
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
94190
94215
  "inheritedFrom": {
94191
- "name": "SbbButtonBaseElement",
94192
- "module": "core/base-elements/button-base-element.js"
94193
- },
94194
- "attribute": "form"
94216
+ "name": "SbbElement",
94217
+ "module": "core/base-elements/element.js"
94218
+ }
94195
94219
  },
94196
94220
  {
94197
94221
  "kind": "field",
94198
- "name": "_formId",
94222
+ "name": "_resolveHydration",
94199
94223
  "type": {
94200
- "text": "string"
94224
+ "text": "(hydrationRequired: boolean) => void"
94201
94225
  },
94202
94226
  "privacy": "private",
94203
- "default": "''",
94204
94227
  "inheritedFrom": {
94205
- "name": "SbbButtonBaseElement",
94206
- "module": "core/base-elements/button-base-element.js"
94228
+ "name": "SbbElement",
94229
+ "module": "core/base-elements/element.js"
94207
94230
  }
94208
94231
  },
94209
94232
  {
94210
94233
  "kind": "field",
94211
- "name": "_handleButtonClick",
94212
- "privacy": "private",
94234
+ "name": "hydrationRequired",
94235
+ "type": {
94236
+ "text": "boolean"
94237
+ },
94238
+ "privacy": "protected",
94239
+ "description": "Returns whether hydration is required and not completed.",
94240
+ "readonly": true,
94213
94241
  "inheritedFrom": {
94214
- "name": "SbbButtonBaseElement",
94215
- "module": "core/base-elements/button-base-element.js"
94216
- }
94242
+ "name": "SbbElement",
94243
+ "module": "core/base-elements/element.js"
94244
+ },
94245
+ "default": "!!this.shadowRoot"
94217
94246
  },
94218
94247
  {
94219
94248
  "kind": "method",
94220
- "name": "_requestSubmit",
94221
- "privacy": "private",
94249
+ "name": "toggleState",
94250
+ "privacy": "protected",
94222
94251
  "return": {
94223
94252
  "type": {
94224
94253
  "text": "void"
@@ -94226,29 +94255,27 @@
94226
94255
  },
94227
94256
  "parameters": [
94228
94257
  {
94229
- "name": "form",
94258
+ "name": "value",
94230
94259
  "type": {
94231
- "text": "HTMLFormElement"
94260
+ "text": "string"
94261
+ }
94262
+ },
94263
+ {
94264
+ "name": "force",
94265
+ "optional": true,
94266
+ "type": {
94267
+ "text": "boolean"
94232
94268
  }
94233
94269
  }
94234
94270
  ],
94235
94271
  "inheritedFrom": {
94236
- "name": "SbbButtonBaseElement",
94237
- "module": "core/base-elements/button-base-element.js"
94238
- }
94239
- },
94240
- {
94241
- "kind": "field",
94242
- "name": "_formKeyDown",
94243
- "privacy": "private",
94244
- "inheritedFrom": {
94245
- "name": "SbbButtonBaseElement",
94246
- "module": "core/base-elements/button-base-element.js"
94272
+ "name": "SbbElement",
94273
+ "module": "core/base-elements/element.js"
94247
94274
  }
94248
94275
  },
94249
94276
  {
94250
94277
  "kind": "field",
94251
- "name": "formAssociated",
94278
+ "name": "['_$sbbElement$']",
94252
94279
  "type": {
94253
94280
  "text": "boolean"
94254
94281
  },
@@ -94256,456 +94283,544 @@
94256
94283
  "static": true,
94257
94284
  "default": "true",
94258
94285
  "inheritedFrom": {
94259
- "name": "SbbFormAssociatedMixin",
94260
- "module": "core/mixins/form-associated-mixin.js"
94286
+ "name": "SbbElement",
94287
+ "module": "core/base-elements/element.js"
94261
94288
  }
94262
94289
  },
94263
94290
  {
94264
94291
  "kind": "field",
94265
- "name": "name",
94266
- "privacy": "public",
94267
- "description": "Name of the form element. Will be read from name attribute.",
94292
+ "name": "elementName",
94268
94293
  "type": {
94269
94294
  "text": "string"
94270
94295
  },
94271
- "attribute": "name",
94296
+ "privacy": "public",
94297
+ "static": true,
94298
+ "readonly": true,
94272
94299
  "inheritedFrom": {
94273
- "name": "SbbFormAssociatedMixin",
94274
- "module": "core/mixins/form-associated-mixin.js"
94300
+ "name": "SbbElement",
94301
+ "module": "core/base-elements/element.js"
94275
94302
  }
94276
94303
  },
94277
94304
  {
94278
94305
  "kind": "field",
94279
- "name": "validity",
94306
+ "name": "_controllers",
94280
94307
  "type": {
94281
- "text": "ValidityState"
94308
+ "text": "Set<SbbReactiveController> | undefined"
94282
94309
  },
94283
- "privacy": "public",
94284
- "description": "Returns the ValidityState object for this element.",
94285
- "readonly": true,
94310
+ "privacy": "private",
94286
94311
  "inheritedFrom": {
94287
- "name": "SbbFormAssociatedMixin",
94288
- "module": "core/mixins/form-associated-mixin.js"
94312
+ "name": "SbbElement",
94313
+ "module": "core/base-elements/element.js"
94289
94314
  }
94290
- },
94315
+ }
94316
+ ],
94317
+ "mixins": [
94291
94318
  {
94292
- "kind": "field",
94293
- "name": "validationMessage",
94319
+ "name": "SbbIconNameMixin",
94320
+ "module": "icon.js"
94321
+ }
94322
+ ],
94323
+ "superclass": {
94324
+ "name": "SbbActionBaseElement",
94325
+ "module": "core/base-elements.js"
94326
+ },
94327
+ "attributes": [
94328
+ {
94329
+ "name": "icon-name",
94294
94330
  "type": {
94295
94331
  "text": "string"
94296
94332
  },
94297
- "privacy": "public",
94298
- "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.",
94299
- "readonly": true,
94333
+ "default": "''",
94334
+ "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.",
94335
+ "fieldName": "iconName",
94300
94336
  "inheritedFrom": {
94301
- "name": "SbbFormAssociatedMixin",
94302
- "module": "core/mixins/form-associated-mixin.js"
94337
+ "name": "SbbIconNameMixin",
94338
+ "module": "icon/icon-name-mixin.js"
94303
94339
  }
94304
- },
94340
+ }
94341
+ ]
94342
+ },
94343
+ {
94344
+ "kind": "mixin",
94345
+ "description": "",
94346
+ "name": "SbbHeaderActionCommonElementMixin",
94347
+ "members": [
94305
94348
  {
94306
94349
  "kind": "field",
94307
- "name": "willValidate",
94350
+ "name": "styles",
94308
94351
  "type": {
94309
- "text": "boolean"
94352
+ "text": "CSSResultGroup"
94310
94353
  },
94311
94354
  "privacy": "public",
94312
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
94313
- "readonly": true,
94314
- "inheritedFrom": {
94315
- "name": "SbbFormAssociatedMixin",
94316
- "module": "core/mixins/form-associated-mixin.js"
94317
- }
94318
- },
94319
- {
94320
- "kind": "field",
94321
- "name": "_validityStates",
94322
- "privacy": "private",
94323
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
94324
- "inheritedFrom": {
94325
- "name": "SbbFormAssociatedMixin",
94326
- "module": "core/mixins/form-associated-mixin.js"
94327
- }
94355
+ "static": true,
94356
+ "default": "[boxSizingStyles, style]"
94328
94357
  },
94329
94358
  {
94330
94359
  "kind": "field",
94331
- "name": "formDisabled",
94360
+ "name": "expandFrom",
94332
94361
  "type": {
94333
- "text": "boolean"
94362
+ "text": "SbbHorizontalFrom"
94334
94363
  },
94335
- "privacy": "protected",
94336
- "default": "false",
94337
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
94338
- "inheritedFrom": {
94339
- "name": "SbbFormAssociatedMixin",
94340
- "module": "core/mixins/form-associated-mixin.js"
94341
- }
94364
+ "privacy": "public",
94365
+ "default": "'large'",
94366
+ "description": "Used to set the minimum breakpoint from which the text is displayed.\nE.g. if set to 'large', the text will be visible for breakpoints large and ultra,\nand hidden for all the others. Ignored if no icon is set.",
94367
+ "attribute": "expand-from",
94368
+ "reflects": true
94342
94369
  },
94343
94370
  {
94344
94371
  "kind": "method",
94345
- "name": "checkValidity",
94346
- "privacy": "public",
94372
+ "name": "renderTemplate",
94373
+ "privacy": "protected",
94347
94374
  "return": {
94348
94375
  "type": {
94349
- "text": "boolean"
94376
+ "text": "TemplateResult"
94350
94377
  }
94351
- },
94352
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
94353
- "inheritedFrom": {
94354
- "name": "SbbFormAssociatedMixin",
94355
- "module": "core/mixins/form-associated-mixin.js"
94356
94378
  }
94357
94379
  },
94358
94380
  {
94359
- "kind": "method",
94360
- "name": "reportValidity",
94361
- "privacy": "public",
94362
- "return": {
94363
- "type": {
94364
- "text": "boolean"
94365
- }
94381
+ "kind": "field",
94382
+ "name": "iconName",
94383
+ "type": {
94384
+ "text": "string"
94366
94385
  },
94367
- "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.",
94386
+ "privacy": "public",
94387
+ "default": "''",
94388
+ "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.",
94389
+ "attribute": "icon-name",
94368
94390
  "inheritedFrom": {
94369
- "name": "SbbFormAssociatedMixin",
94370
- "module": "core/mixins/form-associated-mixin.js"
94391
+ "name": "SbbIconNameMixin",
94392
+ "module": "icon/icon-name-mixin.js"
94371
94393
  }
94372
94394
  },
94373
94395
  {
94374
94396
  "kind": "method",
94375
- "name": "setCustomValidity",
94376
- "privacy": "public",
94397
+ "name": "renderIconSlot",
94398
+ "privacy": "protected",
94377
94399
  "return": {
94378
94400
  "type": {
94379
- "text": "void"
94401
+ "text": "TemplateResult"
94380
94402
  }
94381
94403
  },
94382
94404
  "parameters": [
94383
94405
  {
94384
- "name": "message",
94406
+ "name": "classname",
94407
+ "optional": true,
94385
94408
  "type": {
94386
94409
  "text": "string"
94387
94410
  }
94388
94411
  }
94389
94412
  ],
94390
- "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.",
94391
94413
  "inheritedFrom": {
94392
- "name": "SbbFormAssociatedMixin",
94393
- "module": "core/mixins/form-associated-mixin.js"
94414
+ "name": "SbbIconNameMixin",
94415
+ "module": "icon/icon-name-mixin.js"
94394
94416
  }
94395
94417
  },
94396
94418
  {
94397
94419
  "kind": "method",
94398
- "name": "_hasDisabledAncestor",
94399
- "privacy": "private",
94420
+ "name": "renderIconName",
94421
+ "privacy": "protected",
94400
94422
  "return": {
94401
94423
  "type": {
94402
- "text": "boolean"
94424
+ "text": "string"
94403
94425
  }
94404
94426
  },
94405
94427
  "inheritedFrom": {
94406
- "name": "SbbFormAssociatedMixin",
94407
- "module": "core/mixins/form-associated-mixin.js"
94428
+ "name": "SbbIconNameMixin",
94429
+ "module": "icon/icon-name-mixin.js"
94408
94430
  }
94409
94431
  },
94410
94432
  {
94411
94433
  "kind": "method",
94412
- "name": "updateFormValue",
94413
- "privacy": "protected",
94434
+ "name": "_renderIconName",
94435
+ "privacy": "private",
94414
94436
  "return": {
94415
94437
  "type": {
94416
- "text": "void"
94438
+ "text": "string"
94417
94439
  }
94418
94440
  },
94419
- "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",
94420
94441
  "inheritedFrom": {
94421
- "name": "SbbFormAssociatedMixin",
94422
- "module": "core/mixins/form-associated-mixin.js"
94442
+ "name": "SbbIconNameMixin",
94443
+ "module": "icon/icon-name-mixin.js"
94444
+ }
94445
+ }
94446
+ ],
94447
+ "attributes": [
94448
+ {
94449
+ "name": "expand-from",
94450
+ "type": {
94451
+ "text": "SbbHorizontalFrom"
94452
+ },
94453
+ "default": "'large'",
94454
+ "description": "Used to set the minimum breakpoint from which the text is displayed.\nE.g. if set to 'large', the text will be visible for breakpoints large and ultra,\nand hidden for all the others. Ignored if no icon is set.",
94455
+ "fieldName": "expandFrom"
94456
+ },
94457
+ {
94458
+ "name": "icon-name",
94459
+ "type": {
94460
+ "text": "string"
94461
+ },
94462
+ "default": "''",
94463
+ "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.",
94464
+ "fieldName": "iconName",
94465
+ "inheritedFrom": {
94466
+ "name": "SbbIconNameMixin",
94467
+ "module": "icon/icon-name-mixin.js"
94468
+ }
94469
+ }
94470
+ ],
94471
+ "mixins": [
94472
+ {
94473
+ "name": "SbbIconNameMixin",
94474
+ "module": "icon.js"
94475
+ }
94476
+ ],
94477
+ "parameters": [
94478
+ {
94479
+ "name": "superClass",
94480
+ "type": {
94481
+ "text": "T"
94423
94482
  }
94483
+ }
94484
+ ]
94485
+ }
94486
+ ],
94487
+ "exports": [
94488
+ {
94489
+ "kind": "js",
94490
+ "name": "SbbHeaderActionCommonElementMixinType",
94491
+ "declaration": {
94492
+ "name": "SbbHeaderActionCommonElementMixinType",
94493
+ "module": "header/common/header-action-common.js"
94494
+ }
94495
+ },
94496
+ {
94497
+ "kind": "js",
94498
+ "name": "SbbHeaderActionCommonElementMixin",
94499
+ "declaration": {
94500
+ "name": "SbbHeaderActionCommonElementMixin",
94501
+ "module": "header/common/header-action-common.js"
94502
+ }
94503
+ }
94504
+ ]
94505
+ },
94506
+ {
94507
+ "kind": "javascript-module",
94508
+ "path": "form-field/form-field-clear/form-field-clear.component.js",
94509
+ "declarations": [
94510
+ {
94511
+ "kind": "class",
94512
+ "description": "Combined with `sbb-form-field`, it displays a button which clears the input value.",
94513
+ "name": "SbbFormFieldClearElement",
94514
+ "members": [
94515
+ {
94516
+ "kind": "field",
94517
+ "name": "elementName",
94518
+ "type": {
94519
+ "text": "string"
94520
+ },
94521
+ "privacy": "public",
94522
+ "static": true,
94523
+ "readonly": true,
94524
+ "inheritedFrom": {
94525
+ "name": "SbbElement",
94526
+ "module": "core/base-elements/element.js"
94527
+ },
94528
+ "default": "'sbb-form-field-clear'"
94529
+ },
94530
+ {
94531
+ "kind": "field",
94532
+ "name": "_formField",
94533
+ "type": {
94534
+ "text": "SbbFormFieldElement | null | undefined"
94535
+ },
94536
+ "privacy": "private"
94537
+ },
94538
+ {
94539
+ "kind": "field",
94540
+ "name": "_language",
94541
+ "privacy": "private",
94542
+ "default": "new SbbLanguageController(this)"
94424
94543
  },
94425
94544
  {
94426
94545
  "kind": "method",
94427
- "name": "formState",
94428
- "privacy": "protected",
94546
+ "name": "_handleClick",
94547
+ "privacy": "private",
94429
94548
  "return": {
94430
94549
  "type": {
94431
- "text": "FormRestoreState"
94550
+ "text": "Promise<void>"
94432
94551
  }
94433
- },
94434
- "inheritedFrom": {
94435
- "name": "SbbFormAssociatedMixin",
94436
- "module": "core/mixins/form-associated-mixin.js"
94437
94552
  }
94438
94553
  },
94439
94554
  {
94440
94555
  "kind": "method",
94441
- "name": "setValidityFlag",
94556
+ "name": "renderTemplate",
94442
94557
  "privacy": "protected",
94443
94558
  "return": {
94444
94559
  "type": {
94445
- "text": "void"
94560
+ "text": "TemplateResult"
94446
94561
  }
94447
94562
  },
94448
- "parameters": [
94449
- {
94450
- "name": "flag",
94451
- "type": {
94452
- "text": "T"
94453
- }
94454
- },
94455
- {
94456
- "name": "message",
94457
- "type": {
94458
- "text": "string"
94459
- }
94460
- },
94461
- {
94462
- "name": "flagValue",
94463
- "optional": true,
94464
- "type": {
94465
- "text": "ValidityStateFlags[T]"
94466
- }
94467
- }
94468
- ],
94469
- "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).",
94563
+ "description": "Override this method to render the component template.",
94470
94564
  "inheritedFrom": {
94471
- "name": "SbbFormAssociatedMixin",
94472
- "module": "core/mixins/form-associated-mixin.js"
94565
+ "name": "SbbActionBaseElement",
94566
+ "module": "core/base-elements/action-base-element.js"
94473
94567
  }
94474
94568
  },
94475
94569
  {
94476
- "kind": "method",
94477
- "name": "removeValidityFlag",
94478
- "privacy": "protected",
94479
- "return": {
94480
- "type": {
94481
- "text": "void"
94482
- }
94570
+ "kind": "field",
94571
+ "name": "negative",
94572
+ "type": {
94573
+ "text": "boolean"
94483
94574
  },
94484
- "parameters": [
94485
- {
94486
- "name": "flag",
94487
- "type": {
94488
- "text": "T"
94489
- }
94490
- }
94491
- ],
94492
- "description": "Removes the validity state flag entry and updates validity state.",
94575
+ "privacy": "public",
94576
+ "default": "false",
94577
+ "description": "Negative coloring variant flag.",
94578
+ "attribute": "negative",
94579
+ "reflects": true,
94493
94580
  "inheritedFrom": {
94494
- "name": "SbbFormAssociatedMixin",
94495
- "module": "core/mixins/form-associated-mixin.js"
94581
+ "name": "SbbNegativeMixin",
94582
+ "module": "core/mixins/negative-mixin.js"
94496
94583
  }
94497
94584
  },
94498
94585
  {
94499
- "kind": "method",
94500
- "name": "validate",
94501
- "privacy": "protected",
94502
- "return": {
94503
- "type": {
94504
- "text": "void"
94505
- }
94586
+ "kind": "field",
94587
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
94588
+ "type": {
94589
+ "text": "array"
94506
94590
  },
94507
- "description": "To be called whenever the current element needs to be validated.",
94591
+ "privacy": "private",
94592
+ "readonly": true,
94593
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
94508
94594
  "inheritedFrom": {
94509
- "name": "SbbFormAssociatedMixin",
94510
- "module": "core/mixins/form-associated-mixin.js"
94595
+ "name": "SbbButtonBaseElement",
94596
+ "module": "core/base-elements/button-base-element.js"
94511
94597
  }
94512
94598
  },
94513
94599
  {
94514
- "kind": "method",
94515
- "name": "shouldValidate",
94516
- "privacy": "protected",
94517
- "return": {
94518
- "type": {
94519
- "text": "boolean"
94520
- }
94600
+ "kind": "field",
94601
+ "name": "value",
94602
+ "type": {
94603
+ "text": "string"
94521
94604
  },
94522
- "parameters": [
94523
- {
94524
- "name": "name",
94525
- "type": {
94526
- "text": "PropertyKey | undefined"
94527
- }
94528
- }
94529
- ],
94530
- "description": "Whether validation should be run on a property change with the given name.",
94605
+ "privacy": "public",
94531
94606
  "inheritedFrom": {
94532
- "name": "SbbFormAssociatedMixin",
94533
- "module": "core/mixins/form-associated-mixin.js"
94534
- }
94607
+ "name": "SbbButtonBaseElement",
94608
+ "module": "core/base-elements/button-base-element.js"
94609
+ },
94610
+ "default": "''",
94611
+ "description": "Value of the form element.",
94612
+ "attribute": "value"
94535
94613
  },
94536
94614
  {
94537
- "kind": "method",
94538
- "name": "_setInternalValidity",
94539
- "privacy": "private",
94540
- "return": {
94541
- "type": {
94542
- "text": "void"
94543
- }
94615
+ "kind": "field",
94616
+ "name": "type",
94617
+ "privacy": "public",
94618
+ "description": "The type attribute to use for the button.",
94619
+ "default": "'button'",
94620
+ "type": {
94621
+ "text": "SbbButtonType"
94544
94622
  },
94623
+ "attribute": "type",
94545
94624
  "inheritedFrom": {
94546
- "name": "SbbFormAssociatedMixin",
94547
- "module": "core/mixins/form-associated-mixin.js"
94625
+ "name": "SbbButtonBaseElement",
94626
+ "module": "core/base-elements/button-base-element.js"
94548
94627
  }
94549
94628
  },
94550
94629
  {
94551
94630
  "kind": "field",
94552
- "name": "role",
94631
+ "name": "form",
94553
94632
  "type": {
94554
- "text": "ElementInternals['role']"
94633
+ "text": "HTMLFormElement | null"
94555
94634
  },
94556
94635
  "privacy": "public",
94557
- "static": true,
94558
- "readonly": true,
94559
- "default": "'button'",
94636
+ "description": "The `<form>` element to associate the button with.",
94560
94637
  "inheritedFrom": {
94561
- "name": "SbbButtonLikeBaseElement",
94638
+ "name": "SbbButtonBaseElement",
94562
94639
  "module": "core/base-elements/button-base-element.js"
94563
- }
94640
+ },
94641
+ "attribute": "form"
94564
94642
  },
94565
94643
  {
94566
94644
  "kind": "field",
94567
- "name": "_preventScrollOnSpaceKeydown",
94645
+ "name": "_formId",
94646
+ "type": {
94647
+ "text": "string"
94648
+ },
94568
94649
  "privacy": "private",
94569
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
94570
- "parameters": [
94571
- {
94572
- "description": "The origin event.",
94573
- "name": "event"
94574
- }
94575
- ],
94650
+ "default": "''",
94576
94651
  "inheritedFrom": {
94577
- "name": "SbbButtonLikeBaseElement",
94652
+ "name": "SbbButtonBaseElement",
94578
94653
  "module": "core/base-elements/button-base-element.js"
94579
94654
  }
94580
94655
  },
94581
94656
  {
94582
94657
  "kind": "field",
94583
- "name": "_removeActiveMarker",
94658
+ "name": "_handleButtonClick",
94584
94659
  "privacy": "private",
94585
94660
  "inheritedFrom": {
94586
- "name": "SbbButtonLikeBaseElement",
94661
+ "name": "SbbButtonBaseElement",
94587
94662
  "module": "core/base-elements/button-base-element.js"
94588
94663
  }
94589
94664
  },
94590
94665
  {
94591
- "kind": "field",
94592
- "name": "_dispatchClickEventOnSpaceKeyup",
94666
+ "kind": "method",
94667
+ "name": "_requestSubmit",
94593
94668
  "privacy": "private",
94594
- "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.",
94669
+ "return": {
94670
+ "type": {
94671
+ "text": "void"
94672
+ }
94673
+ },
94595
94674
  "parameters": [
94596
94675
  {
94597
- "description": "The origin event.",
94598
- "name": "event"
94676
+ "name": "form",
94677
+ "type": {
94678
+ "text": "HTMLFormElement"
94679
+ }
94599
94680
  }
94600
94681
  ],
94601
94682
  "inheritedFrom": {
94602
- "name": "SbbButtonLikeBaseElement",
94683
+ "name": "SbbButtonBaseElement",
94603
94684
  "module": "core/base-elements/button-base-element.js"
94604
94685
  }
94605
94686
  },
94606
94687
  {
94607
94688
  "kind": "field",
94608
- "name": "_dispatchClickEvent",
94689
+ "name": "_formKeyDown",
94609
94690
  "privacy": "private",
94610
94691
  "inheritedFrom": {
94611
- "name": "SbbButtonLikeBaseElement",
94692
+ "name": "SbbButtonBaseElement",
94612
94693
  "module": "core/base-elements/button-base-element.js"
94613
94694
  }
94614
94695
  },
94615
94696
  {
94616
94697
  "kind": "field",
94617
- "name": "maybeDisabled",
94698
+ "name": "formAssociated",
94618
94699
  "type": {
94619
- "text": "boolean | undefined"
94700
+ "text": "boolean"
94620
94701
  },
94621
- "privacy": "protected",
94622
- "readonly": true,
94702
+ "privacy": "public",
94703
+ "static": true,
94704
+ "default": "true",
94623
94705
  "inheritedFrom": {
94624
- "name": "SbbActionBaseElement",
94625
- "module": "core/base-elements/action-base-element.js"
94706
+ "name": "SbbFormAssociatedMixin",
94707
+ "module": "core/mixins/form-associated-mixin.js"
94626
94708
  }
94627
94709
  },
94628
94710
  {
94629
94711
  "kind": "field",
94630
- "name": "maybeDisabledInteractive",
94712
+ "name": "name",
94713
+ "privacy": "public",
94714
+ "description": "Name of the form element. Will be read from name attribute.",
94631
94715
  "type": {
94632
- "text": "boolean | undefined"
94716
+ "text": "string"
94633
94717
  },
94634
- "privacy": "protected",
94635
- "readonly": true,
94718
+ "attribute": "name",
94636
94719
  "inheritedFrom": {
94637
- "name": "SbbActionBaseElement",
94638
- "module": "core/base-elements/action-base-element.js"
94720
+ "name": "SbbFormAssociatedMixin",
94721
+ "module": "core/mixins/form-associated-mixin.js"
94639
94722
  }
94640
94723
  },
94641
94724
  {
94642
- "kind": "method",
94643
- "name": "setupBaseEventHandlers",
94644
- "privacy": "protected",
94645
- "return": {
94646
- "type": {
94647
- "text": "void"
94648
- }
94725
+ "kind": "field",
94726
+ "name": "validity",
94727
+ "type": {
94728
+ "text": "ValidityState"
94649
94729
  },
94730
+ "privacy": "public",
94731
+ "description": "Returns the ValidityState object for this element.",
94732
+ "readonly": true,
94650
94733
  "inheritedFrom": {
94651
- "name": "SbbActionBaseElement",
94652
- "module": "core/base-elements/action-base-element.js"
94734
+ "name": "SbbFormAssociatedMixin",
94735
+ "module": "core/mixins/form-associated-mixin.js"
94653
94736
  }
94654
94737
  },
94655
94738
  {
94656
94739
  "kind": "field",
94657
- "name": "_hydrationRequired",
94740
+ "name": "validationMessage",
94658
94741
  "type": {
94659
- "text": "boolean"
94742
+ "text": "string"
94660
94743
  },
94661
- "privacy": "private",
94662
- "default": "!!this.shadowRoot",
94744
+ "privacy": "public",
94745
+ "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.",
94746
+ "readonly": true,
94663
94747
  "inheritedFrom": {
94664
- "name": "SbbElement",
94665
- "module": "core/base-elements/element.js"
94748
+ "name": "SbbFormAssociatedMixin",
94749
+ "module": "core/mixins/form-associated-mixin.js"
94666
94750
  }
94667
94751
  },
94668
94752
  {
94669
94753
  "kind": "field",
94670
- "name": "_hydrationComplete",
94671
- "privacy": "private",
94672
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
94754
+ "name": "willValidate",
94755
+ "type": {
94756
+ "text": "boolean"
94757
+ },
94758
+ "privacy": "public",
94759
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
94760
+ "readonly": true,
94673
94761
  "inheritedFrom": {
94674
- "name": "SbbElement",
94675
- "module": "core/base-elements/element.js"
94762
+ "name": "SbbFormAssociatedMixin",
94763
+ "module": "core/mixins/form-associated-mixin.js"
94676
94764
  }
94677
94765
  },
94678
94766
  {
94679
94767
  "kind": "field",
94680
- "name": "_resolveHydration",
94681
- "type": {
94682
- "text": "(hydrationRequired: boolean) => void"
94683
- },
94768
+ "name": "_validityStates",
94684
94769
  "privacy": "private",
94770
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
94685
94771
  "inheritedFrom": {
94686
- "name": "SbbElement",
94687
- "module": "core/base-elements/element.js"
94772
+ "name": "SbbFormAssociatedMixin",
94773
+ "module": "core/mixins/form-associated-mixin.js"
94688
94774
  }
94689
94775
  },
94690
94776
  {
94691
94777
  "kind": "field",
94692
- "name": "hydrationRequired",
94778
+ "name": "formDisabled",
94693
94779
  "type": {
94694
94780
  "text": "boolean"
94695
94781
  },
94696
94782
  "privacy": "protected",
94697
- "description": "Returns whether hydration is required and not completed.",
94698
- "readonly": true,
94783
+ "default": "false",
94784
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
94699
94785
  "inheritedFrom": {
94700
- "name": "SbbElement",
94701
- "module": "core/base-elements/element.js"
94786
+ "name": "SbbFormAssociatedMixin",
94787
+ "module": "core/mixins/form-associated-mixin.js"
94788
+ }
94789
+ },
94790
+ {
94791
+ "kind": "method",
94792
+ "name": "checkValidity",
94793
+ "privacy": "public",
94794
+ "return": {
94795
+ "type": {
94796
+ "text": "boolean"
94797
+ }
94702
94798
  },
94703
- "default": "!!this.shadowRoot"
94799
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
94800
+ "inheritedFrom": {
94801
+ "name": "SbbFormAssociatedMixin",
94802
+ "module": "core/mixins/form-associated-mixin.js"
94803
+ }
94704
94804
  },
94705
94805
  {
94706
94806
  "kind": "method",
94707
- "name": "toggleState",
94708
- "privacy": "protected",
94807
+ "name": "reportValidity",
94808
+ "privacy": "public",
94809
+ "return": {
94810
+ "type": {
94811
+ "text": "boolean"
94812
+ }
94813
+ },
94814
+ "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.",
94815
+ "inheritedFrom": {
94816
+ "name": "SbbFormAssociatedMixin",
94817
+ "module": "core/mixins/form-associated-mixin.js"
94818
+ }
94819
+ },
94820
+ {
94821
+ "kind": "method",
94822
+ "name": "setCustomValidity",
94823
+ "privacy": "public",
94709
94824
  "return": {
94710
94825
  "type": {
94711
94826
  "text": "void"
@@ -94713,222 +94828,235 @@
94713
94828
  },
94714
94829
  "parameters": [
94715
94830
  {
94716
- "name": "value",
94831
+ "name": "message",
94717
94832
  "type": {
94718
94833
  "text": "string"
94719
94834
  }
94720
- },
94721
- {
94722
- "name": "force",
94723
- "optional": true,
94724
- "type": {
94725
- "text": "boolean"
94726
- }
94727
94835
  }
94728
94836
  ],
94837
+ "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.",
94729
94838
  "inheritedFrom": {
94730
- "name": "SbbElement",
94731
- "module": "core/base-elements/element.js"
94839
+ "name": "SbbFormAssociatedMixin",
94840
+ "module": "core/mixins/form-associated-mixin.js"
94732
94841
  }
94733
94842
  },
94734
94843
  {
94735
- "kind": "field",
94736
- "name": "['_$sbbElement$']",
94737
- "type": {
94738
- "text": "boolean"
94844
+ "kind": "method",
94845
+ "name": "_hasDisabledAncestor",
94846
+ "privacy": "private",
94847
+ "return": {
94848
+ "type": {
94849
+ "text": "boolean"
94850
+ }
94739
94851
  },
94740
- "privacy": "public",
94741
- "static": true,
94742
- "default": "true",
94743
94852
  "inheritedFrom": {
94744
- "name": "SbbElement",
94745
- "module": "core/base-elements/element.js"
94853
+ "name": "SbbFormAssociatedMixin",
94854
+ "module": "core/mixins/form-associated-mixin.js"
94746
94855
  }
94747
94856
  },
94748
94857
  {
94749
- "kind": "field",
94750
- "name": "_controllers",
94751
- "type": {
94752
- "text": "Set<SbbReactiveController> | undefined"
94858
+ "kind": "method",
94859
+ "name": "updateFormValue",
94860
+ "privacy": "protected",
94861
+ "return": {
94862
+ "type": {
94863
+ "text": "void"
94864
+ }
94753
94865
  },
94754
- "privacy": "private",
94866
+ "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",
94755
94867
  "inheritedFrom": {
94756
- "name": "SbbElement",
94757
- "module": "core/base-elements/element.js"
94868
+ "name": "SbbFormAssociatedMixin",
94869
+ "module": "core/mixins/form-associated-mixin.js"
94758
94870
  }
94759
- }
94760
- ],
94761
- "mixins": [
94762
- {
94763
- "name": "SbbNegativeMixin",
94764
- "module": "core/mixins.js"
94765
- }
94766
- ],
94767
- "superclass": {
94768
- "name": "SbbButtonBaseElement",
94769
- "module": "core/base-elements.js"
94770
- },
94771
- "tagName": "sbb-form-field-clear",
94772
- "customElement": true,
94773
- "attributes": [
94871
+ },
94774
94872
  {
94775
- "name": "negative",
94776
- "type": {
94777
- "text": "boolean"
94873
+ "kind": "method",
94874
+ "name": "formState",
94875
+ "privacy": "protected",
94876
+ "return": {
94877
+ "type": {
94878
+ "text": "FormRestoreState"
94879
+ }
94778
94880
  },
94779
- "default": "false",
94780
- "description": "Negative coloring variant flag.",
94781
- "fieldName": "negative",
94782
94881
  "inheritedFrom": {
94783
- "name": "SbbNegativeMixin",
94784
- "module": "core/mixins/negative-mixin.js"
94882
+ "name": "SbbFormAssociatedMixin",
94883
+ "module": "core/mixins/form-associated-mixin.js"
94785
94884
  }
94786
94885
  },
94787
94886
  {
94788
- "name": "value",
94789
- "type": {
94790
- "text": "string"
94887
+ "kind": "method",
94888
+ "name": "setValidityFlag",
94889
+ "privacy": "protected",
94890
+ "return": {
94891
+ "type": {
94892
+ "text": "void"
94893
+ }
94791
94894
  },
94792
- "default": "''",
94793
- "description": "Value of the form element.",
94794
- "fieldName": "value",
94895
+ "parameters": [
94896
+ {
94897
+ "name": "flag",
94898
+ "type": {
94899
+ "text": "T"
94900
+ }
94901
+ },
94902
+ {
94903
+ "name": "message",
94904
+ "type": {
94905
+ "text": "string"
94906
+ }
94907
+ },
94908
+ {
94909
+ "name": "flagValue",
94910
+ "optional": true,
94911
+ "type": {
94912
+ "text": "ValidityStateFlags[T]"
94913
+ }
94914
+ }
94915
+ ],
94916
+ "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).",
94795
94917
  "inheritedFrom": {
94796
- "name": "SbbButtonBaseElement",
94797
- "module": "core/base-elements/button-base-element.js"
94918
+ "name": "SbbFormAssociatedMixin",
94919
+ "module": "core/mixins/form-associated-mixin.js"
94798
94920
  }
94799
94921
  },
94800
94922
  {
94801
- "name": "type",
94802
- "description": "The type attribute to use for the button.",
94803
- "default": "'button'",
94804
- "type": {
94805
- "text": "SbbButtonType"
94923
+ "kind": "method",
94924
+ "name": "removeValidityFlag",
94925
+ "privacy": "protected",
94926
+ "return": {
94927
+ "type": {
94928
+ "text": "void"
94929
+ }
94806
94930
  },
94807
- "fieldName": "type",
94931
+ "parameters": [
94932
+ {
94933
+ "name": "flag",
94934
+ "type": {
94935
+ "text": "T"
94936
+ }
94937
+ }
94938
+ ],
94939
+ "description": "Removes the validity state flag entry and updates validity state.",
94808
94940
  "inheritedFrom": {
94809
- "name": "SbbButtonBaseElement",
94810
- "module": "core/base-elements/button-base-element.js"
94941
+ "name": "SbbFormAssociatedMixin",
94942
+ "module": "core/mixins/form-associated-mixin.js"
94811
94943
  }
94812
94944
  },
94813
94945
  {
94814
- "name": "form",
94815
- "description": "The `<form>` element to associate the button with.",
94816
- "type": {
94817
- "text": "HTMLFormElement | null"
94946
+ "kind": "method",
94947
+ "name": "validate",
94948
+ "privacy": "protected",
94949
+ "return": {
94950
+ "type": {
94951
+ "text": "void"
94952
+ }
94818
94953
  },
94819
- "fieldName": "form",
94954
+ "description": "To be called whenever the current element needs to be validated.",
94820
94955
  "inheritedFrom": {
94821
- "name": "SbbButtonBaseElement",
94822
- "module": "core/base-elements/button-base-element.js"
94956
+ "name": "SbbFormAssociatedMixin",
94957
+ "module": "core/mixins/form-associated-mixin.js"
94823
94958
  }
94824
94959
  },
94825
94960
  {
94826
- "name": "name",
94827
- "description": "Name of the form element. Will be read from name attribute.",
94828
- "type": {
94829
- "text": "string"
94961
+ "kind": "method",
94962
+ "name": "shouldValidate",
94963
+ "privacy": "protected",
94964
+ "return": {
94965
+ "type": {
94966
+ "text": "boolean"
94967
+ }
94830
94968
  },
94831
- "fieldName": "name",
94969
+ "parameters": [
94970
+ {
94971
+ "name": "name",
94972
+ "type": {
94973
+ "text": "PropertyKey | undefined"
94974
+ }
94975
+ }
94976
+ ],
94977
+ "description": "Whether validation should be run on a property change with the given name.",
94832
94978
  "inheritedFrom": {
94833
94979
  "name": "SbbFormAssociatedMixin",
94834
94980
  "module": "core/mixins/form-associated-mixin.js"
94835
94981
  }
94836
- }
94837
- ]
94838
- }
94839
- ],
94840
- "exports": [
94841
- {
94842
- "kind": "js",
94843
- "name": "SbbFormFieldClearElement",
94844
- "declaration": {
94845
- "name": "SbbFormFieldClearElement",
94846
- "module": "form-field/form-field-clear/form-field-clear.component.js"
94847
- }
94848
- }
94849
- ]
94850
- },
94851
- {
94852
- "kind": "javascript-module",
94853
- "path": "header/common/header-action-common.js",
94854
- "declarations": [
94855
- {
94856
- "kind": "class",
94857
- "description": "",
94858
- "name": "SbbHeaderActionCommonElementMixinType",
94859
- "members": [
94982
+ },
94860
94983
  {
94861
- "kind": "field",
94862
- "name": "expandFrom",
94863
- "type": {
94864
- "text": "SbbHorizontalFrom"
94984
+ "kind": "method",
94985
+ "name": "_setInternalValidity",
94986
+ "privacy": "private",
94987
+ "return": {
94988
+ "type": {
94989
+ "text": "void"
94990
+ }
94865
94991
  },
94866
- "privacy": "public"
94992
+ "inheritedFrom": {
94993
+ "name": "SbbFormAssociatedMixin",
94994
+ "module": "core/mixins/form-associated-mixin.js"
94995
+ }
94867
94996
  },
94868
94997
  {
94869
94998
  "kind": "field",
94870
- "name": "iconName",
94999
+ "name": "role",
94871
95000
  "type": {
94872
- "text": "string"
95001
+ "text": "ElementInternals['role']"
94873
95002
  },
94874
95003
  "privacy": "public",
94875
- "default": "''",
94876
- "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.",
94877
- "attribute": "icon-name",
95004
+ "static": true,
95005
+ "readonly": true,
95006
+ "default": "'button'",
94878
95007
  "inheritedFrom": {
94879
- "name": "SbbIconNameMixin",
94880
- "module": "icon/icon-name-mixin.js"
95008
+ "name": "SbbButtonLikeBaseElement",
95009
+ "module": "core/base-elements/button-base-element.js"
94881
95010
  }
94882
95011
  },
94883
95012
  {
94884
- "kind": "method",
94885
- "name": "renderIconSlot",
94886
- "privacy": "protected",
94887
- "return": {
94888
- "type": {
94889
- "text": "TemplateResult"
94890
- }
94891
- },
95013
+ "kind": "field",
95014
+ "name": "_preventScrollOnSpaceKeydown",
95015
+ "privacy": "private",
95016
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
94892
95017
  "parameters": [
94893
95018
  {
94894
- "name": "classname",
94895
- "optional": true,
94896
- "type": {
94897
- "text": "string"
94898
- }
95019
+ "description": "The origin event.",
95020
+ "name": "event"
94899
95021
  }
94900
95022
  ],
94901
95023
  "inheritedFrom": {
94902
- "name": "SbbIconNameMixin",
94903
- "module": "icon/icon-name-mixin.js"
95024
+ "name": "SbbButtonLikeBaseElement",
95025
+ "module": "core/base-elements/button-base-element.js"
94904
95026
  }
94905
95027
  },
94906
95028
  {
94907
- "kind": "method",
94908
- "name": "renderIconName",
94909
- "privacy": "protected",
94910
- "return": {
94911
- "type": {
94912
- "text": "string"
94913
- }
94914
- },
95029
+ "kind": "field",
95030
+ "name": "_removeActiveMarker",
95031
+ "privacy": "private",
94915
95032
  "inheritedFrom": {
94916
- "name": "SbbIconNameMixin",
94917
- "module": "icon/icon-name-mixin.js"
95033
+ "name": "SbbButtonLikeBaseElement",
95034
+ "module": "core/base-elements/button-base-element.js"
94918
95035
  }
94919
95036
  },
94920
95037
  {
94921
- "kind": "method",
94922
- "name": "_renderIconName",
95038
+ "kind": "field",
95039
+ "name": "_dispatchClickEventOnSpaceKeyup",
94923
95040
  "privacy": "private",
94924
- "return": {
94925
- "type": {
94926
- "text": "string"
95041
+ "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.",
95042
+ "parameters": [
95043
+ {
95044
+ "description": "The origin event.",
95045
+ "name": "event"
94927
95046
  }
94928
- },
95047
+ ],
94929
95048
  "inheritedFrom": {
94930
- "name": "SbbIconNameMixin",
94931
- "module": "icon/icon-name-mixin.js"
95049
+ "name": "SbbButtonLikeBaseElement",
95050
+ "module": "core/base-elements/button-base-element.js"
95051
+ }
95052
+ },
95053
+ {
95054
+ "kind": "field",
95055
+ "name": "_dispatchClickEvent",
95056
+ "privacy": "private",
95057
+ "inheritedFrom": {
95058
+ "name": "SbbButtonLikeBaseElement",
95059
+ "module": "core/base-elements/button-base-element.js"
94932
95060
  }
94933
95061
  },
94934
95062
  {
@@ -94971,21 +95099,6 @@
94971
95099
  "module": "core/base-elements/action-base-element.js"
94972
95100
  }
94973
95101
  },
94974
- {
94975
- "kind": "method",
94976
- "name": "renderTemplate",
94977
- "privacy": "protected",
94978
- "return": {
94979
- "type": {
94980
- "text": "TemplateResult"
94981
- }
94982
- },
94983
- "description": "Override this method to render the component template.",
94984
- "inheritedFrom": {
94985
- "name": "SbbActionBaseElement",
94986
- "module": "core/base-elements/action-base-element.js"
94987
- }
94988
- },
94989
95102
  {
94990
95103
  "kind": "field",
94991
95104
  "name": "_hydrationRequired",
@@ -95079,20 +95192,6 @@
95079
95192
  "module": "core/base-elements/element.js"
95080
95193
  }
95081
95194
  },
95082
- {
95083
- "kind": "field",
95084
- "name": "elementName",
95085
- "type": {
95086
- "text": "string"
95087
- },
95088
- "privacy": "public",
95089
- "static": true,
95090
- "readonly": true,
95091
- "inheritedFrom": {
95092
- "name": "SbbElement",
95093
- "module": "core/base-elements/element.js"
95094
- }
95095
- },
95096
95195
  {
95097
95196
  "kind": "field",
95098
95197
  "name": "_controllers",
@@ -95108,169 +95207,78 @@
95108
95207
  ],
95109
95208
  "mixins": [
95110
95209
  {
95111
- "name": "SbbIconNameMixin",
95112
- "module": "icon.js"
95210
+ "name": "SbbNegativeMixin",
95211
+ "module": "core/mixins.js"
95113
95212
  }
95114
95213
  ],
95115
95214
  "superclass": {
95116
- "name": "SbbActionBaseElement",
95215
+ "name": "SbbButtonBaseElement",
95117
95216
  "module": "core/base-elements.js"
95118
95217
  },
95218
+ "tagName": "sbb-form-field-clear",
95219
+ "customElement": true,
95119
95220
  "attributes": [
95120
95221
  {
95121
- "name": "icon-name",
95222
+ "name": "negative",
95122
95223
  "type": {
95123
- "text": "string"
95224
+ "text": "boolean"
95124
95225
  },
95125
- "default": "''",
95126
- "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.",
95127
- "fieldName": "iconName",
95226
+ "default": "false",
95227
+ "description": "Negative coloring variant flag.",
95228
+ "fieldName": "negative",
95128
95229
  "inheritedFrom": {
95129
- "name": "SbbIconNameMixin",
95130
- "module": "icon/icon-name-mixin.js"
95131
- }
95132
- }
95133
- ]
95134
- },
95135
- {
95136
- "kind": "mixin",
95137
- "description": "",
95138
- "name": "SbbHeaderActionCommonElementMixin",
95139
- "members": [
95140
- {
95141
- "kind": "field",
95142
- "name": "styles",
95143
- "type": {
95144
- "text": "CSSResultGroup"
95145
- },
95146
- "privacy": "public",
95147
- "static": true,
95148
- "default": "[boxSizingStyles, style]"
95149
- },
95150
- {
95151
- "kind": "field",
95152
- "name": "expandFrom",
95153
- "type": {
95154
- "text": "SbbHorizontalFrom"
95155
- },
95156
- "privacy": "public",
95157
- "default": "'large'",
95158
- "description": "Used to set the minimum breakpoint from which the text is displayed.\nE.g. if set to 'large', the text will be visible for breakpoints large and ultra,\nand hidden for all the others. Ignored if no icon is set.",
95159
- "attribute": "expand-from",
95160
- "reflects": true
95161
- },
95162
- {
95163
- "kind": "method",
95164
- "name": "renderTemplate",
95165
- "privacy": "protected",
95166
- "return": {
95167
- "type": {
95168
- "text": "TemplateResult"
95169
- }
95230
+ "name": "SbbNegativeMixin",
95231
+ "module": "core/mixins/negative-mixin.js"
95170
95232
  }
95171
95233
  },
95172
95234
  {
95173
- "kind": "field",
95174
- "name": "iconName",
95235
+ "name": "value",
95175
95236
  "type": {
95176
95237
  "text": "string"
95177
95238
  },
95178
- "privacy": "public",
95179
95239
  "default": "''",
95180
- "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.",
95181
- "attribute": "icon-name",
95182
- "inheritedFrom": {
95183
- "name": "SbbIconNameMixin",
95184
- "module": "icon/icon-name-mixin.js"
95185
- }
95186
- },
95187
- {
95188
- "kind": "method",
95189
- "name": "renderIconSlot",
95190
- "privacy": "protected",
95191
- "return": {
95192
- "type": {
95193
- "text": "TemplateResult"
95194
- }
95195
- },
95196
- "parameters": [
95197
- {
95198
- "name": "classname",
95199
- "optional": true,
95200
- "type": {
95201
- "text": "string"
95202
- }
95203
- }
95204
- ],
95240
+ "description": "Value of the form element.",
95241
+ "fieldName": "value",
95205
95242
  "inheritedFrom": {
95206
- "name": "SbbIconNameMixin",
95207
- "module": "icon/icon-name-mixin.js"
95243
+ "name": "SbbButtonBaseElement",
95244
+ "module": "core/base-elements/button-base-element.js"
95208
95245
  }
95209
95246
  },
95210
95247
  {
95211
- "kind": "method",
95212
- "name": "renderIconName",
95213
- "privacy": "protected",
95214
- "return": {
95215
- "type": {
95216
- "text": "string"
95217
- }
95248
+ "name": "type",
95249
+ "description": "The type attribute to use for the button.",
95250
+ "default": "'button'",
95251
+ "type": {
95252
+ "text": "SbbButtonType"
95218
95253
  },
95254
+ "fieldName": "type",
95219
95255
  "inheritedFrom": {
95220
- "name": "SbbIconNameMixin",
95221
- "module": "icon/icon-name-mixin.js"
95256
+ "name": "SbbButtonBaseElement",
95257
+ "module": "core/base-elements/button-base-element.js"
95222
95258
  }
95223
95259
  },
95224
95260
  {
95225
- "kind": "method",
95226
- "name": "_renderIconName",
95227
- "privacy": "private",
95228
- "return": {
95229
- "type": {
95230
- "text": "string"
95231
- }
95261
+ "name": "form",
95262
+ "description": "The `<form>` element to associate the button with.",
95263
+ "type": {
95264
+ "text": "HTMLFormElement | null"
95232
95265
  },
95266
+ "fieldName": "form",
95233
95267
  "inheritedFrom": {
95234
- "name": "SbbIconNameMixin",
95235
- "module": "icon/icon-name-mixin.js"
95268
+ "name": "SbbButtonBaseElement",
95269
+ "module": "core/base-elements/button-base-element.js"
95236
95270
  }
95237
- }
95238
- ],
95239
- "attributes": [
95240
- {
95241
- "name": "expand-from",
95242
- "type": {
95243
- "text": "SbbHorizontalFrom"
95244
- },
95245
- "default": "'large'",
95246
- "description": "Used to set the minimum breakpoint from which the text is displayed.\nE.g. if set to 'large', the text will be visible for breakpoints large and ultra,\nand hidden for all the others. Ignored if no icon is set.",
95247
- "fieldName": "expandFrom"
95248
95271
  },
95249
95272
  {
95250
- "name": "icon-name",
95273
+ "name": "name",
95274
+ "description": "Name of the form element. Will be read from name attribute.",
95251
95275
  "type": {
95252
95276
  "text": "string"
95253
95277
  },
95254
- "default": "''",
95255
- "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.",
95256
- "fieldName": "iconName",
95278
+ "fieldName": "name",
95257
95279
  "inheritedFrom": {
95258
- "name": "SbbIconNameMixin",
95259
- "module": "icon/icon-name-mixin.js"
95260
- }
95261
- }
95262
- ],
95263
- "mixins": [
95264
- {
95265
- "name": "SbbIconNameMixin",
95266
- "module": "icon.js"
95267
- }
95268
- ],
95269
- "parameters": [
95270
- {
95271
- "name": "superClass",
95272
- "type": {
95273
- "text": "T"
95280
+ "name": "SbbFormAssociatedMixin",
95281
+ "module": "core/mixins/form-associated-mixin.js"
95274
95282
  }
95275
95283
  }
95276
95284
  ]
@@ -95279,18 +95287,10 @@
95279
95287
  "exports": [
95280
95288
  {
95281
95289
  "kind": "js",
95282
- "name": "SbbHeaderActionCommonElementMixinType",
95283
- "declaration": {
95284
- "name": "SbbHeaderActionCommonElementMixinType",
95285
- "module": "header/common/header-action-common.js"
95286
- }
95287
- },
95288
- {
95289
- "kind": "js",
95290
- "name": "SbbHeaderActionCommonElementMixin",
95290
+ "name": "SbbFormFieldClearElement",
95291
95291
  "declaration": {
95292
- "name": "SbbHeaderActionCommonElementMixin",
95293
- "module": "header/common/header-action-common.js"
95292
+ "name": "SbbFormFieldClearElement",
95293
+ "module": "form-field/form-field-clear/form-field-clear.component.js"
95294
95294
  }
95295
95295
  }
95296
95296
  ]