@sbb-esta/lyne-elements-dev 5.0.0-next.2-dev.1778052073 → 5.0.0-next.2-dev.1778052113

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 +636 -636
  2. package/package.json +2 -2
@@ -115152,22 +115152,12 @@
115152
115152
  },
115153
115153
  {
115154
115154
  "kind": "javascript-module",
115155
- "path": "form-field/form-field-text-counter/form-field-text-counter.component.js",
115155
+ "path": "form-field/form-field-clear/form-field-clear.component.js",
115156
115156
  "declarations": [
115157
115157
  {
115158
115158
  "kind": "class",
115159
- "description": "It displays the remaining characters count for input/textarea elements with a configured\nmaxlength property in the `sbb-form-field`.\nThe component automatically uses the form field's inputElement and displays the remaining character count.\nIf the input is disabled, readonly or an `sbb-error` is present, the output is suppressed.",
115160
- "name": "SbbFormFieldTextCounterElement",
115161
- "slots": [
115162
- {
115163
- "description": "Use the unnamed slot to display a custom description text after the counter.",
115164
- "name": "",
115165
- "inheritedFrom": {
115166
- "name": "SbbHintElement",
115167
- "module": "form-field/hint/hint.component.js"
115168
- }
115169
- }
115170
- ],
115159
+ "description": "Combined with `sbb-form-field`, it displays a button which clears the input value.",
115160
+ "name": "SbbFormFieldClearElement",
115171
115161
  "members": [
115172
115162
  {
115173
115163
  "kind": "field",
@@ -115178,54 +115168,63 @@
115178
115168
  "privacy": "public",
115179
115169
  "static": true,
115180
115170
  "readonly": true,
115181
- "default": "'sbb-form-field-text-counter'",
115182
115171
  "inheritedFrom": {
115183
115172
  "name": "SbbElement",
115184
115173
  "module": "core/base-elements/element.js"
115185
- }
115174
+ },
115175
+ "default": "'sbb-form-field-clear'"
115186
115176
  },
115187
115177
  {
115188
115178
  "kind": "field",
115189
- "name": "_remainingCharacters",
115179
+ "name": "elementDependencies",
115190
115180
  "type": {
115191
- "text": "number"
115181
+ "text": "SbbElementType[]"
115192
115182
  },
115193
- "privacy": "private",
115194
- "default": "0"
115183
+ "privacy": "public",
115184
+ "static": true,
115185
+ "inheritedFrom": {
115186
+ "name": "SbbElement",
115187
+ "module": "core/base-elements/element.js"
115188
+ },
115189
+ "default": "[SbbIconElement]"
115195
115190
  },
115196
115191
  {
115197
115192
  "kind": "field",
115198
- "name": "_language",
115199
- "privacy": "private",
115200
- "default": "new SbbLanguageController(this)"
115193
+ "name": "_formField",
115194
+ "type": {
115195
+ "text": "SbbFormFieldElement | null | undefined"
115196
+ },
115197
+ "privacy": "private"
115201
115198
  },
115202
115199
  {
115203
115200
  "kind": "field",
115204
- "name": "_abortController",
115205
- "type": {
115206
- "text": "AbortController | null"
115207
- },
115201
+ "name": "_language",
115208
115202
  "privacy": "private",
115209
- "default": "null"
115203
+ "default": "new SbbLanguageController(this)"
115210
115204
  },
115211
115205
  {
115212
115206
  "kind": "method",
115213
- "name": "_onInputUpdate",
115207
+ "name": "_handleClick",
115214
115208
  "privacy": "private",
115215
115209
  "return": {
115216
115210
  "type": {
115217
- "text": "void"
115211
+ "text": "Promise<void>"
115218
115212
  }
115219
115213
  }
115220
115214
  },
115221
115215
  {
115222
115216
  "kind": "method",
115223
- "name": "_infoText",
115224
- "privacy": "private",
115217
+ "name": "renderTemplate",
115218
+ "privacy": "protected",
115225
115219
  "return": {
115226
115220
  "type": {
115227
- "text": "string"
115221
+ "text": "TemplateResult"
115228
115222
  }
115223
+ },
115224
+ "description": "Override this method to render the component template.",
115225
+ "inheritedFrom": {
115226
+ "name": "SbbActionBaseElement",
115227
+ "module": "core/base-elements/action-base-element.js"
115229
115228
  }
115230
115229
  },
115231
115230
  {
@@ -115246,216 +115245,243 @@
115246
115245
  },
115247
115246
  {
115248
115247
  "kind": "field",
115249
- "name": "formField",
115248
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
115250
115249
  "type": {
115251
- "text": "SbbFormFieldElement | null"
115250
+ "text": "array"
115252
115251
  },
115253
- "privacy": "protected",
115254
- "default": "null",
115252
+ "privacy": "private",
115253
+ "readonly": true,
115254
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
115255
115255
  "inheritedFrom": {
115256
- "name": "SbbHintElement",
115257
- "module": "form-field/hint/hint.component.js"
115256
+ "name": "SbbButtonBaseElement",
115257
+ "module": "core/base-elements/button-base-element.js"
115258
115258
  }
115259
115259
  },
115260
115260
  {
115261
115261
  "kind": "field",
115262
- "name": "['_$sbbElement$']",
115262
+ "name": "value",
115263
115263
  "type": {
115264
- "text": "boolean"
115264
+ "text": "string"
115265
115265
  },
115266
115266
  "privacy": "public",
115267
- "static": true,
115268
- "default": "true",
115269
115267
  "inheritedFrom": {
115270
- "name": "SbbElement",
115271
- "module": "core/base-elements/element.js"
115272
- }
115268
+ "name": "SbbButtonBaseElement",
115269
+ "module": "core/base-elements/button-base-element.js"
115270
+ },
115271
+ "default": "''",
115272
+ "description": "Value of the form element.",
115273
+ "attribute": "value"
115273
115274
  },
115274
115275
  {
115275
115276
  "kind": "field",
115276
- "name": "elementDependencies",
115277
+ "name": "type",
115278
+ "privacy": "public",
115279
+ "description": "The type attribute to use for the button.",
115280
+ "default": "'button'",
115277
115281
  "type": {
115278
- "text": "SbbElementType[] | undefined"
115282
+ "text": "SbbButtonType"
115279
115283
  },
115280
- "privacy": "public",
115281
- "static": true,
115284
+ "attribute": "type",
115282
115285
  "inheritedFrom": {
115283
- "name": "SbbElement",
115284
- "module": "core/base-elements/element.js"
115286
+ "name": "SbbButtonBaseElement",
115287
+ "module": "core/base-elements/button-base-element.js"
115285
115288
  }
115286
115289
  },
115287
115290
  {
115288
115291
  "kind": "field",
115289
- "name": "role",
115292
+ "name": "form",
115290
115293
  "type": {
115291
- "text": "ElementInternals['role'] | undefined"
115294
+ "text": "HTMLFormElement | null"
115292
115295
  },
115293
115296
  "privacy": "public",
115294
- "static": true,
115297
+ "description": "The `<form>` element to associate the button with.",
115295
115298
  "inheritedFrom": {
115296
- "name": "SbbElement",
115297
- "module": "core/base-elements/element.js"
115298
- }
115299
+ "name": "SbbButtonBaseElement",
115300
+ "module": "core/base-elements/button-base-element.js"
115301
+ },
115302
+ "attribute": "form"
115299
115303
  },
115300
115304
  {
115301
115305
  "kind": "field",
115302
- "name": "_controllers",
115306
+ "name": "_formId",
115303
115307
  "type": {
115304
- "text": "Set<SbbReactiveController> | undefined"
115308
+ "text": "string"
115305
115309
  },
115306
115310
  "privacy": "private",
115311
+ "default": "''",
115307
115312
  "inheritedFrom": {
115308
- "name": "SbbElement",
115309
- "module": "core/base-elements/element.js"
115313
+ "name": "SbbButtonBaseElement",
115314
+ "module": "core/base-elements/button-base-element.js"
115310
115315
  }
115311
115316
  },
115312
115317
  {
115313
115318
  "kind": "field",
115314
- "name": "_hydrationRequired",
115315
- "type": {
115316
- "text": "boolean"
115317
- },
115319
+ "name": "_handleButtonClick",
115318
115320
  "privacy": "private",
115319
- "default": "!!this.shadowRoot",
115320
115321
  "inheritedFrom": {
115321
- "name": "SbbElement",
115322
- "module": "core/base-elements/element.js"
115322
+ "name": "SbbButtonBaseElement",
115323
+ "module": "core/base-elements/button-base-element.js"
115324
+ }
115325
+ },
115326
+ {
115327
+ "kind": "method",
115328
+ "name": "_requestSubmit",
115329
+ "privacy": "private",
115330
+ "return": {
115331
+ "type": {
115332
+ "text": "void"
115333
+ }
115334
+ },
115335
+ "parameters": [
115336
+ {
115337
+ "name": "form",
115338
+ "type": {
115339
+ "text": "HTMLFormElement"
115340
+ }
115341
+ }
115342
+ ],
115343
+ "inheritedFrom": {
115344
+ "name": "SbbButtonBaseElement",
115345
+ "module": "core/base-elements/button-base-element.js"
115323
115346
  }
115324
115347
  },
115325
115348
  {
115326
115349
  "kind": "field",
115327
- "name": "_hydrationComplete",
115350
+ "name": "_formKeyDown",
115328
115351
  "privacy": "private",
115329
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
115330
115352
  "inheritedFrom": {
115331
- "name": "SbbElement",
115332
- "module": "core/base-elements/element.js"
115353
+ "name": "SbbButtonBaseElement",
115354
+ "module": "core/base-elements/button-base-element.js"
115333
115355
  }
115334
115356
  },
115335
115357
  {
115336
115358
  "kind": "field",
115337
- "name": "_resolveHydration",
115359
+ "name": "formAssociated",
115338
115360
  "type": {
115339
- "text": "(hydrationRequired: boolean) => void"
115361
+ "text": "boolean"
115340
115362
  },
115341
- "privacy": "private",
115363
+ "privacy": "public",
115364
+ "static": true,
115365
+ "default": "true",
115342
115366
  "inheritedFrom": {
115343
- "name": "SbbElement",
115344
- "module": "core/base-elements/element.js"
115367
+ "name": "SbbFormAssociatedMixin",
115368
+ "module": "core/mixins/form-associated-mixin.js"
115345
115369
  }
115346
115370
  },
115347
115371
  {
115348
115372
  "kind": "field",
115349
- "name": "_textObserver",
115373
+ "name": "name",
115374
+ "privacy": "public",
115375
+ "description": "Name of the form element. Will be read from name attribute.",
115350
115376
  "type": {
115351
- "text": "MutationObserver | undefined"
115377
+ "text": "string"
115352
115378
  },
115353
- "privacy": "private",
115379
+ "attribute": "name",
115354
115380
  "inheritedFrom": {
115355
- "name": "SbbElement",
115356
- "module": "core/base-elements/element.js"
115381
+ "name": "SbbFormAssociatedMixin",
115382
+ "module": "core/mixins/form-associated-mixin.js"
115357
115383
  }
115358
115384
  },
115359
115385
  {
115360
115386
  "kind": "field",
115361
- "name": "hydrationRequired",
115387
+ "name": "validity",
115362
115388
  "type": {
115363
- "text": "boolean"
115389
+ "text": "ValidityState"
115364
115390
  },
115365
- "privacy": "protected",
115366
- "description": "Returns whether hydration is required and not completed.",
115391
+ "privacy": "public",
115392
+ "description": "Returns the ValidityState object for this element.",
115367
115393
  "readonly": true,
115368
115394
  "inheritedFrom": {
115369
- "name": "SbbElement",
115370
- "module": "core/base-elements/element.js"
115371
- },
115372
- "default": "!!this.shadowRoot"
115395
+ "name": "SbbFormAssociatedMixin",
115396
+ "module": "core/mixins/form-associated-mixin.js"
115397
+ }
115373
115398
  },
115374
115399
  {
115375
- "kind": "method",
115376
- "name": "finalizeStyles",
115377
- "privacy": "protected",
115378
- "static": true,
115379
- "return": {
115380
- "type": {
115381
- "text": "CSSResultOrNative[]"
115382
- }
115400
+ "kind": "field",
115401
+ "name": "validationMessage",
115402
+ "type": {
115403
+ "text": "string"
115383
115404
  },
115384
- "parameters": [
115385
- {
115386
- "name": "_styles",
115387
- "type": {
115388
- "text": "CSSResultGroup"
115389
- }
115390
- }
115391
- ],
115392
- "description": "Collects `styles` from every class in the prototype chain (using `Object.hasOwn`)\nand merges them in top-down order. This means each class/mixin only needs to declare\nits **own** styles — there is no need to reference `super.styles`.\n\nLit's default behaviour already walks the chain, but fails for mixins where\n`super.styles` resolves to the wrong class. This override fixes that.",
115405
+ "privacy": "public",
115406
+ "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.",
115407
+ "readonly": true,
115393
115408
  "inheritedFrom": {
115394
- "name": "SbbElement",
115395
- "module": "core/base-elements/element.js"
115409
+ "name": "SbbFormAssociatedMixin",
115410
+ "module": "core/mixins/form-associated-mixin.js"
115396
115411
  }
115397
115412
  },
115398
115413
  {
115399
- "kind": "method",
115400
- "name": "toggleState",
115401
- "privacy": "protected",
115402
- "return": {
115403
- "type": {
115404
- "text": "void"
115405
- }
115414
+ "kind": "field",
115415
+ "name": "willValidate",
115416
+ "type": {
115417
+ "text": "boolean"
115406
115418
  },
115407
- "parameters": [
115408
- {
115409
- "name": "value",
115410
- "type": {
115411
- "text": "string"
115412
- }
115413
- },
115414
- {
115415
- "name": "force",
115416
- "optional": true,
115417
- "type": {
115418
- "text": "boolean"
115419
- }
115420
- }
115421
- ],
115419
+ "privacy": "public",
115420
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
115421
+ "readonly": true,
115422
115422
  "inheritedFrom": {
115423
- "name": "SbbElement",
115424
- "module": "core/base-elements/element.js"
115423
+ "name": "SbbFormAssociatedMixin",
115424
+ "module": "core/mixins/form-associated-mixin.js"
115425
115425
  }
115426
115426
  },
115427
115427
  {
115428
- "kind": "method",
115429
- "name": "_slotchangeHandler",
115428
+ "kind": "field",
115429
+ "name": "_validityStates",
115430
115430
  "privacy": "private",
115431
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
115432
+ "inheritedFrom": {
115433
+ "name": "SbbFormAssociatedMixin",
115434
+ "module": "core/mixins/form-associated-mixin.js"
115435
+ }
115436
+ },
115437
+ {
115438
+ "kind": "field",
115439
+ "name": "formDisabled",
115440
+ "type": {
115441
+ "text": "boolean"
115442
+ },
115443
+ "privacy": "protected",
115444
+ "default": "false",
115445
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
115446
+ "inheritedFrom": {
115447
+ "name": "SbbFormAssociatedMixin",
115448
+ "module": "core/mixins/form-associated-mixin.js"
115449
+ }
115450
+ },
115451
+ {
115452
+ "kind": "method",
115453
+ "name": "checkValidity",
115454
+ "privacy": "public",
115431
115455
  "return": {
115432
115456
  "type": {
115433
- "text": "void"
115457
+ "text": "boolean"
115434
115458
  }
115435
115459
  },
115436
- "parameters": [
115437
- {
115438
- "name": "event",
115439
- "type": {
115440
- "text": "Event"
115441
- }
115442
- },
115443
- {
115444
- "name": "slot",
115445
- "type": {
115446
- "text": "HTMLSlotElement"
115447
- }
115460
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
115461
+ "inheritedFrom": {
115462
+ "name": "SbbFormAssociatedMixin",
115463
+ "module": "core/mixins/form-associated-mixin.js"
115464
+ }
115465
+ },
115466
+ {
115467
+ "kind": "method",
115468
+ "name": "reportValidity",
115469
+ "privacy": "public",
115470
+ "return": {
115471
+ "type": {
115472
+ "text": "boolean"
115448
115473
  }
115449
- ],
115474
+ },
115475
+ "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.",
115450
115476
  "inheritedFrom": {
115451
- "name": "SbbElement",
115452
- "module": "core/base-elements/element.js"
115477
+ "name": "SbbFormAssociatedMixin",
115478
+ "module": "core/mixins/form-associated-mixin.js"
115453
115479
  }
115454
115480
  },
115455
115481
  {
115456
115482
  "kind": "method",
115457
- "name": "_handleSlotChangeForSlottedState",
115458
- "privacy": "private",
115483
+ "name": "setCustomValidity",
115484
+ "privacy": "public",
115459
115485
  "return": {
115460
115486
  "type": {
115461
115487
  "text": "void"
@@ -115463,43 +115489,65 @@
115463
115489
  },
115464
115490
  "parameters": [
115465
115491
  {
115466
- "name": "slot",
115492
+ "name": "message",
115467
115493
  "type": {
115468
- "text": "HTMLSlotElement"
115494
+ "text": "string"
115469
115495
  }
115470
115496
  }
115471
115497
  ],
115498
+ "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.",
115472
115499
  "inheritedFrom": {
115473
- "name": "SbbElement",
115474
- "module": "core/base-elements/element.js"
115500
+ "name": "SbbFormAssociatedMixin",
115501
+ "module": "core/mixins/form-associated-mixin.js"
115475
115502
  }
115476
115503
  },
115477
115504
  {
115478
115505
  "kind": "method",
115479
- "name": "_updateSlottedState",
115506
+ "name": "_hasDisabledAncestor",
115480
115507
  "privacy": "private",
115508
+ "return": {
115509
+ "type": {
115510
+ "text": "boolean"
115511
+ }
115512
+ },
115513
+ "inheritedFrom": {
115514
+ "name": "SbbFormAssociatedMixin",
115515
+ "module": "core/mixins/form-associated-mixin.js"
115516
+ }
115517
+ },
115518
+ {
115519
+ "kind": "method",
115520
+ "name": "updateFormValue",
115521
+ "privacy": "protected",
115481
115522
  "return": {
115482
115523
  "type": {
115483
115524
  "text": "void"
115484
115525
  }
115485
115526
  },
115486
- "parameters": [
115487
- {
115488
- "name": "slot",
115489
- "type": {
115490
- "text": "HTMLSlotElement"
115491
- }
115527
+ "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",
115528
+ "inheritedFrom": {
115529
+ "name": "SbbFormAssociatedMixin",
115530
+ "module": "core/mixins/form-associated-mixin.js"
115531
+ }
115532
+ },
115533
+ {
115534
+ "kind": "method",
115535
+ "name": "formState",
115536
+ "privacy": "protected",
115537
+ "return": {
115538
+ "type": {
115539
+ "text": "FormRestoreState"
115492
115540
  }
115493
- ],
115541
+ },
115494
115542
  "inheritedFrom": {
115495
- "name": "SbbElement",
115496
- "module": "core/base-elements/element.js"
115543
+ "name": "SbbFormAssociatedMixin",
115544
+ "module": "core/mixins/form-associated-mixin.js"
115497
115545
  }
115498
115546
  },
115499
115547
  {
115500
115548
  "kind": "method",
115501
- "name": "_observeTextNodesInSlot",
115502
- "privacy": "private",
115549
+ "name": "setValidityFlag",
115550
+ "privacy": "protected",
115503
115551
  "return": {
115504
115552
  "type": {
115505
115553
  "text": "void"
@@ -115507,472 +115555,384 @@
115507
115555
  },
115508
115556
  "parameters": [
115509
115557
  {
115510
- "name": "slot",
115558
+ "name": "flag",
115511
115559
  "type": {
115512
- "text": "HTMLSlotElement"
115560
+ "text": "T"
115561
+ }
115562
+ },
115563
+ {
115564
+ "name": "message",
115565
+ "type": {
115566
+ "text": "string"
115567
+ }
115568
+ },
115569
+ {
115570
+ "name": "flagValue",
115571
+ "optional": true,
115572
+ "type": {
115573
+ "text": "ValidityStateFlags[T]"
115513
115574
  }
115514
115575
  }
115515
115576
  ],
115577
+ "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).",
115516
115578
  "inheritedFrom": {
115517
- "name": "SbbElement",
115518
- "module": "core/base-elements/element.js"
115579
+ "name": "SbbFormAssociatedMixin",
115580
+ "module": "core/mixins/form-associated-mixin.js"
115519
115581
  }
115520
115582
  },
115521
115583
  {
115522
115584
  "kind": "method",
115523
- "name": "_hasSlottedContent",
115524
- "privacy": "private",
115585
+ "name": "removeValidityFlag",
115586
+ "privacy": "protected",
115525
115587
  "return": {
115526
115588
  "type": {
115527
- "text": "boolean"
115589
+ "text": "void"
115528
115590
  }
115529
115591
  },
115530
115592
  "parameters": [
115531
115593
  {
115532
- "name": "slot",
115594
+ "name": "flag",
115533
115595
  "type": {
115534
- "text": "HTMLSlotElement"
115596
+ "text": "T"
115535
115597
  }
115536
115598
  }
115537
115599
  ],
115600
+ "description": "Removes the validity state flag entry and updates validity state.",
115538
115601
  "inheritedFrom": {
115539
- "name": "SbbElement",
115540
- "module": "core/base-elements/element.js"
115541
- }
115542
- }
115543
- ],
115544
- "superclass": {
115545
- "name": "SbbHintElement",
115546
- "module": "form-field/hint/hint.component.js"
115547
- },
115548
- "tagName": "sbb-form-field-text-counter",
115549
- "customElement": true,
115550
- "attributes": [
115551
- {
115552
- "name": "negative",
115553
- "type": {
115554
- "text": "boolean"
115555
- },
115556
- "default": "false",
115557
- "description": "Negative coloring variant flag.",
115558
- "fieldName": "negative",
115559
- "inheritedFrom": {
115560
- "name": "SbbNegativeMixin",
115561
- "module": "core/mixins/negative-mixin.js"
115602
+ "name": "SbbFormAssociatedMixin",
115603
+ "module": "core/mixins/form-associated-mixin.js"
115562
115604
  }
115563
- }
115564
- ]
115565
- }
115566
- ],
115567
- "exports": [
115568
- {
115569
- "kind": "js",
115570
- "name": "SbbFormFieldTextCounterElement",
115571
- "declaration": {
115572
- "name": "SbbFormFieldTextCounterElement",
115573
- "module": "form-field/form-field-text-counter/form-field-text-counter.component.js"
115574
- }
115575
- }
115576
- ]
115577
- },
115578
- {
115579
- "kind": "javascript-module",
115580
- "path": "form-field/form-field-clear/form-field-clear.component.js",
115581
- "declarations": [
115582
- {
115583
- "kind": "class",
115584
- "description": "Combined with `sbb-form-field`, it displays a button which clears the input value.",
115585
- "name": "SbbFormFieldClearElement",
115586
- "members": [
115587
- {
115588
- "kind": "field",
115589
- "name": "elementName",
115590
- "type": {
115591
- "text": "string"
115592
- },
115593
- "privacy": "public",
115594
- "static": true,
115595
- "readonly": true,
115596
- "inheritedFrom": {
115597
- "name": "SbbElement",
115598
- "module": "core/base-elements/element.js"
115599
- },
115600
- "default": "'sbb-form-field-clear'"
115601
- },
115602
- {
115603
- "kind": "field",
115604
- "name": "elementDependencies",
115605
- "type": {
115606
- "text": "SbbElementType[]"
115607
- },
115608
- "privacy": "public",
115609
- "static": true,
115610
- "inheritedFrom": {
115611
- "name": "SbbElement",
115612
- "module": "core/base-elements/element.js"
115613
- },
115614
- "default": "[SbbIconElement]"
115615
- },
115616
- {
115617
- "kind": "field",
115618
- "name": "_formField",
115619
- "type": {
115620
- "text": "SbbFormFieldElement | null | undefined"
115621
- },
115622
- "privacy": "private"
115623
- },
115624
- {
115625
- "kind": "field",
115626
- "name": "_language",
115627
- "privacy": "private",
115628
- "default": "new SbbLanguageController(this)"
115629
115605
  },
115630
115606
  {
115631
115607
  "kind": "method",
115632
- "name": "_handleClick",
115633
- "privacy": "private",
115608
+ "name": "validate",
115609
+ "privacy": "protected",
115634
115610
  "return": {
115635
115611
  "type": {
115636
- "text": "Promise<void>"
115612
+ "text": "void"
115637
115613
  }
115614
+ },
115615
+ "description": "To be called whenever the current element needs to be validated.",
115616
+ "inheritedFrom": {
115617
+ "name": "SbbFormAssociatedMixin",
115618
+ "module": "core/mixins/form-associated-mixin.js"
115638
115619
  }
115639
115620
  },
115640
115621
  {
115641
115622
  "kind": "method",
115642
- "name": "renderTemplate",
115623
+ "name": "shouldValidate",
115643
115624
  "privacy": "protected",
115644
115625
  "return": {
115645
115626
  "type": {
115646
- "text": "TemplateResult"
115627
+ "text": "boolean"
115647
115628
  }
115648
115629
  },
115649
- "description": "Override this method to render the component template.",
115650
- "inheritedFrom": {
115651
- "name": "SbbActionBaseElement",
115652
- "module": "core/base-elements/action-base-element.js"
115653
- }
115654
- },
115655
- {
115656
- "kind": "field",
115657
- "name": "negative",
115658
- "type": {
115659
- "text": "boolean"
115660
- },
115661
- "privacy": "public",
115662
- "default": "false",
115663
- "description": "Negative coloring variant flag.",
115664
- "attribute": "negative",
115665
- "reflects": true,
115630
+ "parameters": [
115631
+ {
115632
+ "name": "name",
115633
+ "type": {
115634
+ "text": "PropertyKey | undefined"
115635
+ }
115636
+ }
115637
+ ],
115638
+ "description": "Whether validation should be run on a property change with the given name.",
115666
115639
  "inheritedFrom": {
115667
- "name": "SbbNegativeMixin",
115668
- "module": "core/mixins/negative-mixin.js"
115640
+ "name": "SbbFormAssociatedMixin",
115641
+ "module": "core/mixins/form-associated-mixin.js"
115669
115642
  }
115670
115643
  },
115671
115644
  {
115672
- "kind": "field",
115673
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
115674
- "type": {
115675
- "text": "array"
115676
- },
115645
+ "kind": "method",
115646
+ "name": "_setInternalValidity",
115677
115647
  "privacy": "private",
115678
- "readonly": true,
115679
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
115680
- "inheritedFrom": {
115681
- "name": "SbbButtonBaseElement",
115682
- "module": "core/base-elements/button-base-element.js"
115683
- }
115684
- },
115685
- {
115686
- "kind": "field",
115687
- "name": "value",
115688
- "type": {
115689
- "text": "string"
115690
- },
115691
- "privacy": "public",
115692
- "inheritedFrom": {
115693
- "name": "SbbButtonBaseElement",
115694
- "module": "core/base-elements/button-base-element.js"
115695
- },
115696
- "default": "''",
115697
- "description": "Value of the form element.",
115698
- "attribute": "value"
115699
- },
115700
- {
115701
- "kind": "field",
115702
- "name": "type",
115703
- "privacy": "public",
115704
- "description": "The type attribute to use for the button.",
115705
- "default": "'button'",
115706
- "type": {
115707
- "text": "SbbButtonType"
115648
+ "return": {
115649
+ "type": {
115650
+ "text": "void"
115651
+ }
115708
115652
  },
115709
- "attribute": "type",
115710
115653
  "inheritedFrom": {
115711
- "name": "SbbButtonBaseElement",
115712
- "module": "core/base-elements/button-base-element.js"
115654
+ "name": "SbbFormAssociatedMixin",
115655
+ "module": "core/mixins/form-associated-mixin.js"
115713
115656
  }
115714
115657
  },
115715
115658
  {
115716
115659
  "kind": "field",
115717
- "name": "form",
115660
+ "name": "role",
115718
115661
  "type": {
115719
- "text": "HTMLFormElement | null"
115662
+ "text": "ElementInternals['role']"
115720
115663
  },
115721
115664
  "privacy": "public",
115722
- "description": "The `<form>` element to associate the button with.",
115665
+ "static": true,
115723
115666
  "inheritedFrom": {
115724
- "name": "SbbButtonBaseElement",
115725
- "module": "core/base-elements/button-base-element.js"
115667
+ "name": "SbbElement",
115668
+ "module": "core/base-elements/element.js"
115726
115669
  },
115727
- "attribute": "form"
115670
+ "readonly": true,
115671
+ "default": "'button'"
115728
115672
  },
115729
115673
  {
115730
115674
  "kind": "field",
115731
- "name": "_formId",
115732
- "type": {
115733
- "text": "string"
115734
- },
115675
+ "name": "_preventScrollOnSpaceKeydown",
115735
115676
  "privacy": "private",
115736
- "default": "''",
115677
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
115678
+ "parameters": [
115679
+ {
115680
+ "description": "The origin event.",
115681
+ "name": "event"
115682
+ }
115683
+ ],
115737
115684
  "inheritedFrom": {
115738
- "name": "SbbButtonBaseElement",
115685
+ "name": "SbbButtonLikeBaseElement",
115739
115686
  "module": "core/base-elements/button-base-element.js"
115740
115687
  }
115741
115688
  },
115742
115689
  {
115743
115690
  "kind": "field",
115744
- "name": "_handleButtonClick",
115691
+ "name": "_removeActiveMarker",
115745
115692
  "privacy": "private",
115746
115693
  "inheritedFrom": {
115747
- "name": "SbbButtonBaseElement",
115694
+ "name": "SbbButtonLikeBaseElement",
115748
115695
  "module": "core/base-elements/button-base-element.js"
115749
115696
  }
115750
115697
  },
115751
115698
  {
115752
- "kind": "method",
115753
- "name": "_requestSubmit",
115699
+ "kind": "field",
115700
+ "name": "_dispatchClickEventOnSpaceKeyup",
115754
115701
  "privacy": "private",
115755
- "return": {
115756
- "type": {
115757
- "text": "void"
115758
- }
115759
- },
115702
+ "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.",
115760
115703
  "parameters": [
115761
115704
  {
115762
- "name": "form",
115763
- "type": {
115764
- "text": "HTMLFormElement"
115765
- }
115705
+ "description": "The origin event.",
115706
+ "name": "event"
115766
115707
  }
115767
115708
  ],
115768
115709
  "inheritedFrom": {
115769
- "name": "SbbButtonBaseElement",
115710
+ "name": "SbbButtonLikeBaseElement",
115770
115711
  "module": "core/base-elements/button-base-element.js"
115771
115712
  }
115772
115713
  },
115773
115714
  {
115774
115715
  "kind": "field",
115775
- "name": "_formKeyDown",
115716
+ "name": "_dispatchClickEvent",
115776
115717
  "privacy": "private",
115777
115718
  "inheritedFrom": {
115778
- "name": "SbbButtonBaseElement",
115719
+ "name": "SbbButtonLikeBaseElement",
115779
115720
  "module": "core/base-elements/button-base-element.js"
115780
115721
  }
115781
115722
  },
115782
115723
  {
115783
115724
  "kind": "field",
115784
- "name": "formAssociated",
115725
+ "name": "maybeDisabled",
115785
115726
  "type": {
115786
- "text": "boolean"
115727
+ "text": "boolean | undefined"
115787
115728
  },
115788
- "privacy": "public",
115789
- "static": true,
115790
- "default": "true",
115729
+ "privacy": "protected",
115730
+ "readonly": true,
115791
115731
  "inheritedFrom": {
115792
- "name": "SbbFormAssociatedMixin",
115793
- "module": "core/mixins/form-associated-mixin.js"
115732
+ "name": "SbbActionBaseElement",
115733
+ "module": "core/base-elements/action-base-element.js"
115794
115734
  }
115795
115735
  },
115796
115736
  {
115797
115737
  "kind": "field",
115798
- "name": "name",
115799
- "privacy": "public",
115800
- "description": "Name of the form element. Will be read from name attribute.",
115738
+ "name": "maybeDisabledInteractive",
115801
115739
  "type": {
115802
- "text": "string"
115740
+ "text": "boolean | undefined"
115803
115741
  },
115804
- "attribute": "name",
115742
+ "privacy": "protected",
115743
+ "readonly": true,
115805
115744
  "inheritedFrom": {
115806
- "name": "SbbFormAssociatedMixin",
115807
- "module": "core/mixins/form-associated-mixin.js"
115745
+ "name": "SbbActionBaseElement",
115746
+ "module": "core/base-elements/action-base-element.js"
115747
+ }
115748
+ },
115749
+ {
115750
+ "kind": "method",
115751
+ "name": "setupBaseEventHandlers",
115752
+ "privacy": "protected",
115753
+ "return": {
115754
+ "type": {
115755
+ "text": "void"
115756
+ }
115757
+ },
115758
+ "inheritedFrom": {
115759
+ "name": "SbbActionBaseElement",
115760
+ "module": "core/base-elements/action-base-element.js"
115808
115761
  }
115809
115762
  },
115810
115763
  {
115811
115764
  "kind": "field",
115812
- "name": "validity",
115765
+ "name": "['_$sbbElement$']",
115813
115766
  "type": {
115814
- "text": "ValidityState"
115767
+ "text": "boolean"
115815
115768
  },
115816
115769
  "privacy": "public",
115817
- "description": "Returns the ValidityState object for this element.",
115818
- "readonly": true,
115770
+ "static": true,
115771
+ "default": "true",
115819
115772
  "inheritedFrom": {
115820
- "name": "SbbFormAssociatedMixin",
115821
- "module": "core/mixins/form-associated-mixin.js"
115773
+ "name": "SbbElement",
115774
+ "module": "core/base-elements/element.js"
115822
115775
  }
115823
115776
  },
115824
115777
  {
115825
115778
  "kind": "field",
115826
- "name": "validationMessage",
115779
+ "name": "_controllers",
115827
115780
  "type": {
115828
- "text": "string"
115781
+ "text": "Set<SbbReactiveController> | undefined"
115829
115782
  },
115830
- "privacy": "public",
115831
- "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.",
115832
- "readonly": true,
115783
+ "privacy": "private",
115833
115784
  "inheritedFrom": {
115834
- "name": "SbbFormAssociatedMixin",
115835
- "module": "core/mixins/form-associated-mixin.js"
115785
+ "name": "SbbElement",
115786
+ "module": "core/base-elements/element.js"
115836
115787
  }
115837
115788
  },
115838
115789
  {
115839
115790
  "kind": "field",
115840
- "name": "willValidate",
115791
+ "name": "_hydrationRequired",
115841
115792
  "type": {
115842
115793
  "text": "boolean"
115843
115794
  },
115844
- "privacy": "public",
115845
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
115846
- "readonly": true,
115795
+ "privacy": "private",
115796
+ "default": "!!this.shadowRoot",
115847
115797
  "inheritedFrom": {
115848
- "name": "SbbFormAssociatedMixin",
115849
- "module": "core/mixins/form-associated-mixin.js"
115798
+ "name": "SbbElement",
115799
+ "module": "core/base-elements/element.js"
115850
115800
  }
115851
115801
  },
115852
115802
  {
115853
115803
  "kind": "field",
115854
- "name": "_validityStates",
115804
+ "name": "_hydrationComplete",
115855
115805
  "privacy": "private",
115856
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
115806
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
115857
115807
  "inheritedFrom": {
115858
- "name": "SbbFormAssociatedMixin",
115859
- "module": "core/mixins/form-associated-mixin.js"
115808
+ "name": "SbbElement",
115809
+ "module": "core/base-elements/element.js"
115860
115810
  }
115861
115811
  },
115862
115812
  {
115863
115813
  "kind": "field",
115864
- "name": "formDisabled",
115814
+ "name": "_resolveHydration",
115865
115815
  "type": {
115866
- "text": "boolean"
115816
+ "text": "(hydrationRequired: boolean) => void"
115867
115817
  },
115868
- "privacy": "protected",
115869
- "default": "false",
115870
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
115818
+ "privacy": "private",
115871
115819
  "inheritedFrom": {
115872
- "name": "SbbFormAssociatedMixin",
115873
- "module": "core/mixins/form-associated-mixin.js"
115820
+ "name": "SbbElement",
115821
+ "module": "core/base-elements/element.js"
115874
115822
  }
115875
115823
  },
115876
115824
  {
115877
- "kind": "method",
115878
- "name": "checkValidity",
115879
- "privacy": "public",
115880
- "return": {
115881
- "type": {
115882
- "text": "boolean"
115883
- }
115825
+ "kind": "field",
115826
+ "name": "_textObserver",
115827
+ "type": {
115828
+ "text": "MutationObserver | undefined"
115884
115829
  },
115885
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
115830
+ "privacy": "private",
115886
115831
  "inheritedFrom": {
115887
- "name": "SbbFormAssociatedMixin",
115888
- "module": "core/mixins/form-associated-mixin.js"
115832
+ "name": "SbbElement",
115833
+ "module": "core/base-elements/element.js"
115889
115834
  }
115890
115835
  },
115891
115836
  {
115892
- "kind": "method",
115893
- "name": "reportValidity",
115894
- "privacy": "public",
115895
- "return": {
115896
- "type": {
115897
- "text": "boolean"
115898
- }
115837
+ "kind": "field",
115838
+ "name": "hydrationRequired",
115839
+ "type": {
115840
+ "text": "boolean"
115899
115841
  },
115900
- "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.",
115842
+ "privacy": "protected",
115843
+ "description": "Returns whether hydration is required and not completed.",
115844
+ "readonly": true,
115901
115845
  "inheritedFrom": {
115902
- "name": "SbbFormAssociatedMixin",
115903
- "module": "core/mixins/form-associated-mixin.js"
115904
- }
115846
+ "name": "SbbElement",
115847
+ "module": "core/base-elements/element.js"
115848
+ },
115849
+ "default": "!!this.shadowRoot"
115905
115850
  },
115906
115851
  {
115907
115852
  "kind": "method",
115908
- "name": "setCustomValidity",
115909
- "privacy": "public",
115853
+ "name": "finalizeStyles",
115854
+ "privacy": "protected",
115855
+ "static": true,
115910
115856
  "return": {
115911
115857
  "type": {
115912
- "text": "void"
115858
+ "text": "CSSResultOrNative[]"
115913
115859
  }
115914
115860
  },
115915
115861
  "parameters": [
115916
115862
  {
115917
- "name": "message",
115863
+ "name": "_styles",
115918
115864
  "type": {
115919
- "text": "string"
115865
+ "text": "CSSResultGroup"
115920
115866
  }
115921
115867
  }
115922
115868
  ],
115923
- "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.",
115924
- "inheritedFrom": {
115925
- "name": "SbbFormAssociatedMixin",
115926
- "module": "core/mixins/form-associated-mixin.js"
115927
- }
115928
- },
115929
- {
115930
- "kind": "method",
115931
- "name": "_hasDisabledAncestor",
115932
- "privacy": "private",
115933
- "return": {
115934
- "type": {
115935
- "text": "boolean"
115936
- }
115937
- },
115869
+ "description": "Collects `styles` from every class in the prototype chain (using `Object.hasOwn`)\nand merges them in top-down order. This means each class/mixin only needs to declare\nits **own** styles — there is no need to reference `super.styles`.\n\nLit's default behaviour already walks the chain, but fails for mixins where\n`super.styles` resolves to the wrong class. This override fixes that.",
115938
115870
  "inheritedFrom": {
115939
- "name": "SbbFormAssociatedMixin",
115940
- "module": "core/mixins/form-associated-mixin.js"
115871
+ "name": "SbbElement",
115872
+ "module": "core/base-elements/element.js"
115941
115873
  }
115942
115874
  },
115943
115875
  {
115944
115876
  "kind": "method",
115945
- "name": "updateFormValue",
115877
+ "name": "toggleState",
115946
115878
  "privacy": "protected",
115947
115879
  "return": {
115948
115880
  "type": {
115949
115881
  "text": "void"
115950
115882
  }
115951
115883
  },
115952
- "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",
115884
+ "parameters": [
115885
+ {
115886
+ "name": "value",
115887
+ "type": {
115888
+ "text": "string"
115889
+ }
115890
+ },
115891
+ {
115892
+ "name": "force",
115893
+ "optional": true,
115894
+ "type": {
115895
+ "text": "boolean"
115896
+ }
115897
+ }
115898
+ ],
115953
115899
  "inheritedFrom": {
115954
- "name": "SbbFormAssociatedMixin",
115955
- "module": "core/mixins/form-associated-mixin.js"
115900
+ "name": "SbbElement",
115901
+ "module": "core/base-elements/element.js"
115956
115902
  }
115957
115903
  },
115958
115904
  {
115959
115905
  "kind": "method",
115960
- "name": "formState",
115961
- "privacy": "protected",
115906
+ "name": "_slotchangeHandler",
115907
+ "privacy": "private",
115962
115908
  "return": {
115963
115909
  "type": {
115964
- "text": "FormRestoreState"
115910
+ "text": "void"
115965
115911
  }
115966
115912
  },
115913
+ "parameters": [
115914
+ {
115915
+ "name": "event",
115916
+ "type": {
115917
+ "text": "Event"
115918
+ }
115919
+ },
115920
+ {
115921
+ "name": "slot",
115922
+ "type": {
115923
+ "text": "HTMLSlotElement"
115924
+ }
115925
+ }
115926
+ ],
115967
115927
  "inheritedFrom": {
115968
- "name": "SbbFormAssociatedMixin",
115969
- "module": "core/mixins/form-associated-mixin.js"
115928
+ "name": "SbbElement",
115929
+ "module": "core/base-elements/element.js"
115970
115930
  }
115971
115931
  },
115972
115932
  {
115973
115933
  "kind": "method",
115974
- "name": "setValidityFlag",
115975
- "privacy": "protected",
115934
+ "name": "_handleSlotChangeForSlottedState",
115935
+ "privacy": "private",
115976
115936
  "return": {
115977
115937
  "type": {
115978
115938
  "text": "void"
@@ -115980,35 +115940,21 @@
115980
115940
  },
115981
115941
  "parameters": [
115982
115942
  {
115983
- "name": "flag",
115984
- "type": {
115985
- "text": "T"
115986
- }
115987
- },
115988
- {
115989
- "name": "message",
115990
- "type": {
115991
- "text": "string"
115992
- }
115993
- },
115994
- {
115995
- "name": "flagValue",
115996
- "optional": true,
115943
+ "name": "slot",
115997
115944
  "type": {
115998
- "text": "ValidityStateFlags[T]"
115945
+ "text": "HTMLSlotElement"
115999
115946
  }
116000
115947
  }
116001
115948
  ],
116002
- "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).",
116003
115949
  "inheritedFrom": {
116004
- "name": "SbbFormAssociatedMixin",
116005
- "module": "core/mixins/form-associated-mixin.js"
115950
+ "name": "SbbElement",
115951
+ "module": "core/base-elements/element.js"
116006
115952
  }
116007
115953
  },
116008
115954
  {
116009
115955
  "kind": "method",
116010
- "name": "removeValidityFlag",
116011
- "privacy": "protected",
115956
+ "name": "_updateSlottedState",
115957
+ "privacy": "private",
116012
115958
  "return": {
116013
115959
  "type": {
116014
115960
  "text": "void"
@@ -116016,37 +115962,43 @@
116016
115962
  },
116017
115963
  "parameters": [
116018
115964
  {
116019
- "name": "flag",
115965
+ "name": "slot",
116020
115966
  "type": {
116021
- "text": "T"
115967
+ "text": "HTMLSlotElement"
116022
115968
  }
116023
115969
  }
116024
115970
  ],
116025
- "description": "Removes the validity state flag entry and updates validity state.",
116026
115971
  "inheritedFrom": {
116027
- "name": "SbbFormAssociatedMixin",
116028
- "module": "core/mixins/form-associated-mixin.js"
115972
+ "name": "SbbElement",
115973
+ "module": "core/base-elements/element.js"
116029
115974
  }
116030
115975
  },
116031
115976
  {
116032
115977
  "kind": "method",
116033
- "name": "validate",
116034
- "privacy": "protected",
115978
+ "name": "_observeTextNodesInSlot",
115979
+ "privacy": "private",
116035
115980
  "return": {
116036
115981
  "type": {
116037
115982
  "text": "void"
116038
115983
  }
116039
115984
  },
116040
- "description": "To be called whenever the current element needs to be validated.",
115985
+ "parameters": [
115986
+ {
115987
+ "name": "slot",
115988
+ "type": {
115989
+ "text": "HTMLSlotElement"
115990
+ }
115991
+ }
115992
+ ],
116041
115993
  "inheritedFrom": {
116042
- "name": "SbbFormAssociatedMixin",
116043
- "module": "core/mixins/form-associated-mixin.js"
115994
+ "name": "SbbElement",
115995
+ "module": "core/base-elements/element.js"
116044
115996
  }
116045
115997
  },
116046
115998
  {
116047
115999
  "kind": "method",
116048
- "name": "shouldValidate",
116049
- "privacy": "protected",
116000
+ "name": "_hasSlottedContent",
116001
+ "privacy": "private",
116050
116002
  "return": {
116051
116003
  "type": {
116052
116004
  "text": "boolean"
@@ -116054,146 +116006,266 @@
116054
116006
  },
116055
116007
  "parameters": [
116056
116008
  {
116057
- "name": "name",
116009
+ "name": "slot",
116058
116010
  "type": {
116059
- "text": "PropertyKey | undefined"
116011
+ "text": "HTMLSlotElement"
116060
116012
  }
116061
116013
  }
116062
116014
  ],
116063
- "description": "Whether validation should be run on a property change with the given name.",
116064
116015
  "inheritedFrom": {
116065
- "name": "SbbFormAssociatedMixin",
116066
- "module": "core/mixins/form-associated-mixin.js"
116016
+ "name": "SbbElement",
116017
+ "module": "core/base-elements/element.js"
116018
+ }
116019
+ }
116020
+ ],
116021
+ "events": [
116022
+ {
116023
+ "type": {
116024
+ "text": "Event"
116025
+ },
116026
+ "description": "The change event is fired on the component's associated input when the user modifies the element's value. Unlike the input event, the change event is not necessarily fired for each alteration to an element's value.",
116027
+ "name": "change"
116028
+ },
116029
+ {
116030
+ "type": {
116031
+ "text": "InputEvent"
116032
+ },
116033
+ "description": "The input event fires on the component's associated input when the value has been changed as a direct result of a user action.",
116034
+ "name": "input"
116035
+ }
116036
+ ],
116037
+ "mixins": [
116038
+ {
116039
+ "name": "SbbNegativeMixin",
116040
+ "module": "core.js"
116041
+ }
116042
+ ],
116043
+ "superclass": {
116044
+ "name": "SbbButtonBaseElement",
116045
+ "module": "core.js"
116046
+ },
116047
+ "tagName": "sbb-form-field-clear",
116048
+ "customElement": true,
116049
+ "attributes": [
116050
+ {
116051
+ "name": "negative",
116052
+ "type": {
116053
+ "text": "boolean"
116054
+ },
116055
+ "default": "false",
116056
+ "description": "Negative coloring variant flag.",
116057
+ "fieldName": "negative",
116058
+ "inheritedFrom": {
116059
+ "name": "SbbNegativeMixin",
116060
+ "module": "core/mixins/negative-mixin.js"
116061
+ }
116062
+ },
116063
+ {
116064
+ "name": "value",
116065
+ "type": {
116066
+ "text": "string"
116067
+ },
116068
+ "default": "''",
116069
+ "description": "Value of the form element.",
116070
+ "fieldName": "value",
116071
+ "inheritedFrom": {
116072
+ "name": "SbbButtonBaseElement",
116073
+ "module": "core/base-elements/button-base-element.js"
116074
+ }
116075
+ },
116076
+ {
116077
+ "name": "type",
116078
+ "description": "The type attribute to use for the button.",
116079
+ "default": "'button'",
116080
+ "type": {
116081
+ "text": "SbbButtonType"
116082
+ },
116083
+ "fieldName": "type",
116084
+ "inheritedFrom": {
116085
+ "name": "SbbButtonBaseElement",
116086
+ "module": "core/base-elements/button-base-element.js"
116087
+ }
116088
+ },
116089
+ {
116090
+ "name": "form",
116091
+ "description": "The `<form>` element to associate the button with.",
116092
+ "type": {
116093
+ "text": "HTMLFormElement | null"
116094
+ },
116095
+ "fieldName": "form",
116096
+ "inheritedFrom": {
116097
+ "name": "SbbButtonBaseElement",
116098
+ "module": "core/base-elements/button-base-element.js"
116067
116099
  }
116068
116100
  },
116069
116101
  {
116070
- "kind": "method",
116071
- "name": "_setInternalValidity",
116072
- "privacy": "private",
116073
- "return": {
116074
- "type": {
116075
- "text": "void"
116076
- }
116102
+ "name": "name",
116103
+ "description": "Name of the form element. Will be read from name attribute.",
116104
+ "type": {
116105
+ "text": "string"
116077
116106
  },
116107
+ "fieldName": "name",
116078
116108
  "inheritedFrom": {
116079
116109
  "name": "SbbFormAssociatedMixin",
116080
116110
  "module": "core/mixins/form-associated-mixin.js"
116081
116111
  }
116082
- },
116112
+ }
116113
+ ]
116114
+ }
116115
+ ],
116116
+ "exports": [
116117
+ {
116118
+ "kind": "js",
116119
+ "name": "SbbFormFieldClearElement",
116120
+ "declaration": {
116121
+ "name": "SbbFormFieldClearElement",
116122
+ "module": "form-field/form-field-clear/form-field-clear.component.js"
116123
+ }
116124
+ }
116125
+ ]
116126
+ },
116127
+ {
116128
+ "kind": "javascript-module",
116129
+ "path": "form-field/form-field-text-counter/form-field-text-counter.component.js",
116130
+ "declarations": [
116131
+ {
116132
+ "kind": "class",
116133
+ "description": "It displays the remaining characters count for input/textarea elements with a configured\nmaxlength property in the `sbb-form-field`.\nThe component automatically uses the form field's inputElement and displays the remaining character count.\nIf the input is disabled, readonly or an `sbb-error` is present, the output is suppressed.",
116134
+ "name": "SbbFormFieldTextCounterElement",
116135
+ "slots": [
116136
+ {
116137
+ "description": "Use the unnamed slot to display a custom description text after the counter.",
116138
+ "name": "",
116139
+ "inheritedFrom": {
116140
+ "name": "SbbHintElement",
116141
+ "module": "form-field/hint/hint.component.js"
116142
+ }
116143
+ }
116144
+ ],
116145
+ "members": [
116083
116146
  {
116084
116147
  "kind": "field",
116085
- "name": "role",
116148
+ "name": "elementName",
116086
116149
  "type": {
116087
- "text": "ElementInternals['role']"
116150
+ "text": "string"
116088
116151
  },
116089
116152
  "privacy": "public",
116090
116153
  "static": true,
116154
+ "readonly": true,
116155
+ "default": "'sbb-form-field-text-counter'",
116091
116156
  "inheritedFrom": {
116092
116157
  "name": "SbbElement",
116093
116158
  "module": "core/base-elements/element.js"
116159
+ }
116160
+ },
116161
+ {
116162
+ "kind": "field",
116163
+ "name": "_remainingCharacters",
116164
+ "type": {
116165
+ "text": "number"
116094
116166
  },
116095
- "readonly": true,
116096
- "default": "'button'"
116167
+ "privacy": "private",
116168
+ "default": "0"
116097
116169
  },
116098
116170
  {
116099
116171
  "kind": "field",
116100
- "name": "_preventScrollOnSpaceKeydown",
116172
+ "name": "_language",
116101
116173
  "privacy": "private",
116102
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
116103
- "parameters": [
116104
- {
116105
- "description": "The origin event.",
116106
- "name": "event"
116107
- }
116108
- ],
116109
- "inheritedFrom": {
116110
- "name": "SbbButtonLikeBaseElement",
116111
- "module": "core/base-elements/button-base-element.js"
116112
- }
116174
+ "default": "new SbbLanguageController(this)"
116113
116175
  },
116114
116176
  {
116115
116177
  "kind": "field",
116116
- "name": "_removeActiveMarker",
116178
+ "name": "_abortController",
116179
+ "type": {
116180
+ "text": "AbortController | null"
116181
+ },
116117
116182
  "privacy": "private",
116118
- "inheritedFrom": {
116119
- "name": "SbbButtonLikeBaseElement",
116120
- "module": "core/base-elements/button-base-element.js"
116183
+ "default": "null"
116184
+ },
116185
+ {
116186
+ "kind": "method",
116187
+ "name": "_onInputUpdate",
116188
+ "privacy": "private",
116189
+ "return": {
116190
+ "type": {
116191
+ "text": "void"
116192
+ }
116121
116193
  }
116122
116194
  },
116123
116195
  {
116124
- "kind": "field",
116125
- "name": "_dispatchClickEventOnSpaceKeyup",
116196
+ "kind": "method",
116197
+ "name": "_infoText",
116126
116198
  "privacy": "private",
116127
- "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.",
116128
- "parameters": [
116129
- {
116130
- "description": "The origin event.",
116131
- "name": "event"
116199
+ "return": {
116200
+ "type": {
116201
+ "text": "string"
116132
116202
  }
116133
- ],
116134
- "inheritedFrom": {
116135
- "name": "SbbButtonLikeBaseElement",
116136
- "module": "core/base-elements/button-base-element.js"
116137
116203
  }
116138
116204
  },
116139
116205
  {
116140
116206
  "kind": "field",
116141
- "name": "_dispatchClickEvent",
116142
- "privacy": "private",
116207
+ "name": "negative",
116208
+ "type": {
116209
+ "text": "boolean"
116210
+ },
116211
+ "privacy": "public",
116212
+ "default": "false",
116213
+ "description": "Negative coloring variant flag.",
116214
+ "attribute": "negative",
116215
+ "reflects": true,
116143
116216
  "inheritedFrom": {
116144
- "name": "SbbButtonLikeBaseElement",
116145
- "module": "core/base-elements/button-base-element.js"
116217
+ "name": "SbbNegativeMixin",
116218
+ "module": "core/mixins/negative-mixin.js"
116146
116219
  }
116147
116220
  },
116148
116221
  {
116149
116222
  "kind": "field",
116150
- "name": "maybeDisabled",
116223
+ "name": "formField",
116151
116224
  "type": {
116152
- "text": "boolean | undefined"
116225
+ "text": "SbbFormFieldElement | null"
116153
116226
  },
116154
116227
  "privacy": "protected",
116155
- "readonly": true,
116228
+ "default": "null",
116156
116229
  "inheritedFrom": {
116157
- "name": "SbbActionBaseElement",
116158
- "module": "core/base-elements/action-base-element.js"
116230
+ "name": "SbbHintElement",
116231
+ "module": "form-field/hint/hint.component.js"
116159
116232
  }
116160
116233
  },
116161
116234
  {
116162
116235
  "kind": "field",
116163
- "name": "maybeDisabledInteractive",
116236
+ "name": "['_$sbbElement$']",
116164
116237
  "type": {
116165
- "text": "boolean | undefined"
116238
+ "text": "boolean"
116166
116239
  },
116167
- "privacy": "protected",
116168
- "readonly": true,
116240
+ "privacy": "public",
116241
+ "static": true,
116242
+ "default": "true",
116169
116243
  "inheritedFrom": {
116170
- "name": "SbbActionBaseElement",
116171
- "module": "core/base-elements/action-base-element.js"
116244
+ "name": "SbbElement",
116245
+ "module": "core/base-elements/element.js"
116172
116246
  }
116173
116247
  },
116174
116248
  {
116175
- "kind": "method",
116176
- "name": "setupBaseEventHandlers",
116177
- "privacy": "protected",
116178
- "return": {
116179
- "type": {
116180
- "text": "void"
116181
- }
116249
+ "kind": "field",
116250
+ "name": "elementDependencies",
116251
+ "type": {
116252
+ "text": "SbbElementType[] | undefined"
116182
116253
  },
116254
+ "privacy": "public",
116255
+ "static": true,
116183
116256
  "inheritedFrom": {
116184
- "name": "SbbActionBaseElement",
116185
- "module": "core/base-elements/action-base-element.js"
116257
+ "name": "SbbElement",
116258
+ "module": "core/base-elements/element.js"
116186
116259
  }
116187
116260
  },
116188
116261
  {
116189
116262
  "kind": "field",
116190
- "name": "['_$sbbElement$']",
116263
+ "name": "role",
116191
116264
  "type": {
116192
- "text": "boolean"
116265
+ "text": "ElementInternals['role'] | undefined"
116193
116266
  },
116194
116267
  "privacy": "public",
116195
116268
  "static": true,
116196
- "default": "true",
116197
116269
  "inheritedFrom": {
116198
116270
  "name": "SbbElement",
116199
116271
  "module": "core/base-elements/element.js"
@@ -116443,33 +116515,11 @@
116443
116515
  }
116444
116516
  }
116445
116517
  ],
116446
- "events": [
116447
- {
116448
- "type": {
116449
- "text": "Event"
116450
- },
116451
- "description": "The change event is fired on the component's associated input when the user modifies the element's value. Unlike the input event, the change event is not necessarily fired for each alteration to an element's value.",
116452
- "name": "change"
116453
- },
116454
- {
116455
- "type": {
116456
- "text": "InputEvent"
116457
- },
116458
- "description": "The input event fires on the component's associated input when the value has been changed as a direct result of a user action.",
116459
- "name": "input"
116460
- }
116461
- ],
116462
- "mixins": [
116463
- {
116464
- "name": "SbbNegativeMixin",
116465
- "module": "core.js"
116466
- }
116467
- ],
116468
116518
  "superclass": {
116469
- "name": "SbbButtonBaseElement",
116470
- "module": "core.js"
116519
+ "name": "SbbHintElement",
116520
+ "module": "form-field/hint/hint.component.js"
116471
116521
  },
116472
- "tagName": "sbb-form-field-clear",
116522
+ "tagName": "sbb-form-field-text-counter",
116473
116523
  "customElement": true,
116474
116524
  "attributes": [
116475
116525
  {
@@ -116484,56 +116534,6 @@
116484
116534
  "name": "SbbNegativeMixin",
116485
116535
  "module": "core/mixins/negative-mixin.js"
116486
116536
  }
116487
- },
116488
- {
116489
- "name": "value",
116490
- "type": {
116491
- "text": "string"
116492
- },
116493
- "default": "''",
116494
- "description": "Value of the form element.",
116495
- "fieldName": "value",
116496
- "inheritedFrom": {
116497
- "name": "SbbButtonBaseElement",
116498
- "module": "core/base-elements/button-base-element.js"
116499
- }
116500
- },
116501
- {
116502
- "name": "type",
116503
- "description": "The type attribute to use for the button.",
116504
- "default": "'button'",
116505
- "type": {
116506
- "text": "SbbButtonType"
116507
- },
116508
- "fieldName": "type",
116509
- "inheritedFrom": {
116510
- "name": "SbbButtonBaseElement",
116511
- "module": "core/base-elements/button-base-element.js"
116512
- }
116513
- },
116514
- {
116515
- "name": "form",
116516
- "description": "The `<form>` element to associate the button with.",
116517
- "type": {
116518
- "text": "HTMLFormElement | null"
116519
- },
116520
- "fieldName": "form",
116521
- "inheritedFrom": {
116522
- "name": "SbbButtonBaseElement",
116523
- "module": "core/base-elements/button-base-element.js"
116524
- }
116525
- },
116526
- {
116527
- "name": "name",
116528
- "description": "Name of the form element. Will be read from name attribute.",
116529
- "type": {
116530
- "text": "string"
116531
- },
116532
- "fieldName": "name",
116533
- "inheritedFrom": {
116534
- "name": "SbbFormAssociatedMixin",
116535
- "module": "core/mixins/form-associated-mixin.js"
116536
- }
116537
116537
  }
116538
116538
  ]
116539
116539
  }
@@ -116541,10 +116541,10 @@
116541
116541
  "exports": [
116542
116542
  {
116543
116543
  "kind": "js",
116544
- "name": "SbbFormFieldClearElement",
116544
+ "name": "SbbFormFieldTextCounterElement",
116545
116545
  "declaration": {
116546
- "name": "SbbFormFieldClearElement",
116547
- "module": "form-field/form-field-clear/form-field-clear.component.js"
116546
+ "name": "SbbFormFieldTextCounterElement",
116547
+ "module": "form-field/form-field-text-counter/form-field-text-counter.component.js"
116548
116548
  }
116549
116549
  }
116550
116550
  ]