@sbb-esta/lyne-elements-dev 5.0.0-next-dev.1776960216 → 5.0.0-next-dev.1777019159

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 (34) hide show
  1. package/alert/alert/alert.component.js +1 -1
  2. package/alert/alert-group/alert-group.component.js +1 -1
  3. package/{alert-group.component-CAjj3FtE.js → alert-group.component-BCYOVicl.js} +5 -7
  4. package/alert.component-BQsF0R1M.js +161 -0
  5. package/alert.js +2 -2
  6. package/alert.pure.js +2 -2
  7. package/core/styles/core.scss +11 -1
  8. package/core.css +28 -8
  9. package/custom-elements.json +618 -618
  10. package/development/alert/alert/alert.component.d.ts +1 -0
  11. package/development/alert/alert/alert.component.d.ts.map +1 -1
  12. package/development/alert/alert/alert.component.js +1 -1
  13. package/development/alert/alert-group/alert-group.component.d.ts.map +1 -1
  14. package/development/alert/alert-group/alert-group.component.js +1 -1
  15. package/development/alert-group.component-D4KxKTd2.js +186 -0
  16. package/development/alert.component-Pv-Ol6XU.js +213 -0
  17. package/development/alert.js +2 -2
  18. package/development/alert.pure.js +2 -2
  19. package/development/dialog/dialog/dialog.component.js +1 -1
  20. package/development/dialog.component-BTXyWi17.js +233 -0
  21. package/development/dialog.js +1 -1
  22. package/development/dialog.pure.js +1 -1
  23. package/dialog/dialog/dialog.component.js +1 -1
  24. package/{dialog.component-DTbAHlVd.js → dialog.component-ChB9gCyY.js} +1 -1
  25. package/dialog.js +1 -1
  26. package/dialog.pure.js +1 -1
  27. package/off-brand-theme.css +28 -8
  28. package/package.json +2 -2
  29. package/safety-theme.css +28 -8
  30. package/standard-theme.css +28 -8
  31. package/alert.component-C42LwoGa.js +0 -163
  32. package/development/alert-group.component-DeI6kuwn.js +0 -188
  33. package/development/alert.component-Cn36k_Hf.js +0 -214
  34. package/development/dialog.component-B4cZfRCl.js +0 -233
@@ -111244,12 +111244,22 @@
111244
111244
  },
111245
111245
  {
111246
111246
  "kind": "javascript-module",
111247
- "path": "form-field/form-field-clear/form-field-clear.component.js",
111247
+ "path": "form-field/form-field-text-counter/form-field-text-counter.component.js",
111248
111248
  "declarations": [
111249
111249
  {
111250
111250
  "kind": "class",
111251
- "description": "Combined with `sbb-form-field`, it displays a button which clears the input value.",
111252
- "name": "SbbFormFieldClearElement",
111251
+ "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.",
111252
+ "name": "SbbFormFieldTextCounterElement",
111253
+ "slots": [
111254
+ {
111255
+ "description": "Use the unnamed slot to display a custom description text after the counter.",
111256
+ "name": "",
111257
+ "inheritedFrom": {
111258
+ "name": "SbbHintElement",
111259
+ "module": "form-field/hint/hint.component.js"
111260
+ }
111261
+ }
111262
+ ],
111253
111263
  "members": [
111254
111264
  {
111255
111265
  "kind": "field",
@@ -111260,11 +111270,11 @@
111260
111270
  "privacy": "public",
111261
111271
  "static": true,
111262
111272
  "readonly": true,
111273
+ "default": "'sbb-form-field-text-counter'",
111263
111274
  "inheritedFrom": {
111264
111275
  "name": "SbbElement",
111265
111276
  "module": "core/base-elements/element.js"
111266
- },
111267
- "default": "'sbb-form-field-clear'"
111277
+ }
111268
111278
  },
111269
111279
  {
111270
111280
  "kind": "field",
@@ -111274,19 +111284,20 @@
111274
111284
  },
111275
111285
  "privacy": "public",
111276
111286
  "static": true,
111287
+ "default": "[SbbScreenReaderOnlyElement]",
111277
111288
  "inheritedFrom": {
111278
111289
  "name": "SbbElement",
111279
111290
  "module": "core/base-elements/element.js"
111280
- },
111281
- "default": "[SbbIconElement]"
111291
+ }
111282
111292
  },
111283
111293
  {
111284
111294
  "kind": "field",
111285
- "name": "_formField",
111295
+ "name": "_remainingCharacters",
111286
111296
  "type": {
111287
- "text": "SbbFormFieldElement | null | undefined"
111297
+ "text": "number"
111288
111298
  },
111289
- "privacy": "private"
111299
+ "privacy": "private",
111300
+ "default": "0"
111290
111301
  },
111291
111302
  {
111292
111303
  "kind": "field",
@@ -111294,29 +111305,33 @@
111294
111305
  "privacy": "private",
111295
111306
  "default": "new SbbLanguageController(this)"
111296
111307
  },
111308
+ {
111309
+ "kind": "field",
111310
+ "name": "_abortController",
111311
+ "type": {
111312
+ "text": "AbortController | null"
111313
+ },
111314
+ "privacy": "private",
111315
+ "default": "null"
111316
+ },
111297
111317
  {
111298
111318
  "kind": "method",
111299
- "name": "_handleClick",
111319
+ "name": "_onInputUpdate",
111300
111320
  "privacy": "private",
111301
111321
  "return": {
111302
111322
  "type": {
111303
- "text": "Promise<void>"
111323
+ "text": "void"
111304
111324
  }
111305
111325
  }
111306
111326
  },
111307
111327
  {
111308
111328
  "kind": "method",
111309
- "name": "renderTemplate",
111310
- "privacy": "protected",
111329
+ "name": "_infoText",
111330
+ "privacy": "private",
111311
111331
  "return": {
111312
111332
  "type": {
111313
- "text": "TemplateResult"
111333
+ "text": "string"
111314
111334
  }
111315
- },
111316
- "description": "Override this method to render the component template.",
111317
- "inheritedFrom": {
111318
- "name": "SbbActionBaseElement",
111319
- "module": "core/base-elements/action-base-element.js"
111320
111335
  }
111321
111336
  },
111322
111337
  {
@@ -111337,309 +111352,179 @@
111337
111352
  },
111338
111353
  {
111339
111354
  "kind": "field",
111340
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
111355
+ "name": "formField",
111341
111356
  "type": {
111342
- "text": "array"
111357
+ "text": "SbbFormFieldElement | null"
111343
111358
  },
111344
- "privacy": "private",
111345
- "readonly": true,
111346
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
111359
+ "privacy": "protected",
111360
+ "default": "null",
111347
111361
  "inheritedFrom": {
111348
- "name": "SbbButtonBaseElement",
111349
- "module": "core/base-elements/button-base-element.js"
111362
+ "name": "SbbHintElement",
111363
+ "module": "form-field/hint/hint.component.js"
111350
111364
  }
111351
111365
  },
111352
111366
  {
111353
111367
  "kind": "field",
111354
- "name": "value",
111368
+ "name": "['_$sbbElement$']",
111355
111369
  "type": {
111356
- "text": "string"
111357
- },
111358
- "privacy": "public",
111359
- "inheritedFrom": {
111360
- "name": "SbbButtonBaseElement",
111361
- "module": "core/base-elements/button-base-element.js"
111370
+ "text": "boolean"
111362
111371
  },
111363
- "default": "''",
111364
- "description": "Value of the form element.",
111365
- "attribute": "value"
111366
- },
111367
- {
111368
- "kind": "field",
111369
- "name": "type",
111370
111372
  "privacy": "public",
111371
- "description": "The type attribute to use for the button.",
111372
- "default": "'button'",
111373
- "type": {
111374
- "text": "SbbButtonType"
111375
- },
111376
- "attribute": "type",
111373
+ "static": true,
111374
+ "default": "true",
111377
111375
  "inheritedFrom": {
111378
- "name": "SbbButtonBaseElement",
111379
- "module": "core/base-elements/button-base-element.js"
111376
+ "name": "SbbElement",
111377
+ "module": "core/base-elements/element.js"
111380
111378
  }
111381
111379
  },
111382
111380
  {
111383
111381
  "kind": "field",
111384
- "name": "form",
111382
+ "name": "role",
111385
111383
  "type": {
111386
- "text": "HTMLFormElement | null"
111384
+ "text": "ElementInternals['role'] | undefined"
111387
111385
  },
111388
111386
  "privacy": "public",
111389
- "description": "The `<form>` element to associate the button with.",
111390
- "inheritedFrom": {
111391
- "name": "SbbButtonBaseElement",
111392
- "module": "core/base-elements/button-base-element.js"
111393
- },
111394
- "attribute": "form"
111395
- },
111396
- {
111397
- "kind": "field",
111398
- "name": "_formId",
111399
- "type": {
111400
- "text": "string"
111401
- },
111402
- "privacy": "private",
111403
- "default": "''",
111387
+ "static": true,
111404
111388
  "inheritedFrom": {
111405
- "name": "SbbButtonBaseElement",
111406
- "module": "core/base-elements/button-base-element.js"
111389
+ "name": "SbbElement",
111390
+ "module": "core/base-elements/element.js"
111407
111391
  }
111408
111392
  },
111409
111393
  {
111410
111394
  "kind": "field",
111411
- "name": "_handleButtonClick",
111412
- "privacy": "private",
111413
- "inheritedFrom": {
111414
- "name": "SbbButtonBaseElement",
111415
- "module": "core/base-elements/button-base-element.js"
111416
- }
111417
- },
111418
- {
111419
- "kind": "method",
111420
- "name": "_requestSubmit",
111421
- "privacy": "private",
111422
- "return": {
111423
- "type": {
111424
- "text": "void"
111425
- }
111395
+ "name": "_controllers",
111396
+ "type": {
111397
+ "text": "Set<SbbReactiveController> | undefined"
111426
111398
  },
111427
- "parameters": [
111428
- {
111429
- "name": "form",
111430
- "type": {
111431
- "text": "HTMLFormElement"
111432
- }
111433
- }
111434
- ],
111435
- "inheritedFrom": {
111436
- "name": "SbbButtonBaseElement",
111437
- "module": "core/base-elements/button-base-element.js"
111438
- }
111439
- },
111440
- {
111441
- "kind": "field",
111442
- "name": "_formKeyDown",
111443
111399
  "privacy": "private",
111444
111400
  "inheritedFrom": {
111445
- "name": "SbbButtonBaseElement",
111446
- "module": "core/base-elements/button-base-element.js"
111401
+ "name": "SbbElement",
111402
+ "module": "core/base-elements/element.js"
111447
111403
  }
111448
111404
  },
111449
111405
  {
111450
111406
  "kind": "field",
111451
- "name": "formAssociated",
111407
+ "name": "_hydrationRequired",
111452
111408
  "type": {
111453
111409
  "text": "boolean"
111454
111410
  },
111455
- "privacy": "public",
111456
- "static": true,
111457
- "default": "true",
111458
- "inheritedFrom": {
111459
- "name": "SbbFormAssociatedMixin",
111460
- "module": "core/mixins/form-associated-mixin.js"
111461
- }
111462
- },
111463
- {
111464
- "kind": "field",
111465
- "name": "name",
111466
- "privacy": "public",
111467
- "description": "Name of the form element. Will be read from name attribute.",
111468
- "type": {
111469
- "text": "string"
111470
- },
111471
- "attribute": "name",
111411
+ "privacy": "private",
111412
+ "default": "!!this.shadowRoot",
111472
111413
  "inheritedFrom": {
111473
- "name": "SbbFormAssociatedMixin",
111474
- "module": "core/mixins/form-associated-mixin.js"
111414
+ "name": "SbbElement",
111415
+ "module": "core/base-elements/element.js"
111475
111416
  }
111476
111417
  },
111477
111418
  {
111478
111419
  "kind": "field",
111479
- "name": "validity",
111480
- "type": {
111481
- "text": "ValidityState"
111482
- },
111483
- "privacy": "public",
111484
- "description": "Returns the ValidityState object for this element.",
111485
- "readonly": true,
111420
+ "name": "_hydrationComplete",
111421
+ "privacy": "private",
111422
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
111486
111423
  "inheritedFrom": {
111487
- "name": "SbbFormAssociatedMixin",
111488
- "module": "core/mixins/form-associated-mixin.js"
111424
+ "name": "SbbElement",
111425
+ "module": "core/base-elements/element.js"
111489
111426
  }
111490
111427
  },
111491
111428
  {
111492
111429
  "kind": "field",
111493
- "name": "validationMessage",
111430
+ "name": "_resolveHydration",
111494
111431
  "type": {
111495
- "text": "string"
111432
+ "text": "(hydrationRequired: boolean) => void"
111496
111433
  },
111497
- "privacy": "public",
111498
- "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.",
111499
- "readonly": true,
111434
+ "privacy": "private",
111500
111435
  "inheritedFrom": {
111501
- "name": "SbbFormAssociatedMixin",
111502
- "module": "core/mixins/form-associated-mixin.js"
111436
+ "name": "SbbElement",
111437
+ "module": "core/base-elements/element.js"
111503
111438
  }
111504
111439
  },
111505
111440
  {
111506
111441
  "kind": "field",
111507
- "name": "willValidate",
111442
+ "name": "_textObserver",
111508
111443
  "type": {
111509
- "text": "boolean"
111444
+ "text": "MutationObserver | undefined"
111510
111445
  },
111511
- "privacy": "public",
111512
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
111513
- "readonly": true,
111514
- "inheritedFrom": {
111515
- "name": "SbbFormAssociatedMixin",
111516
- "module": "core/mixins/form-associated-mixin.js"
111517
- }
111518
- },
111519
- {
111520
- "kind": "field",
111521
- "name": "_validityStates",
111522
111446
  "privacy": "private",
111523
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
111524
111447
  "inheritedFrom": {
111525
- "name": "SbbFormAssociatedMixin",
111526
- "module": "core/mixins/form-associated-mixin.js"
111448
+ "name": "SbbElement",
111449
+ "module": "core/base-elements/element.js"
111527
111450
  }
111528
111451
  },
111529
111452
  {
111530
111453
  "kind": "field",
111531
- "name": "formDisabled",
111454
+ "name": "hydrationRequired",
111532
111455
  "type": {
111533
111456
  "text": "boolean"
111534
111457
  },
111535
111458
  "privacy": "protected",
111536
- "default": "false",
111537
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
111459
+ "description": "Returns whether hydration is required and not completed.",
111460
+ "readonly": true,
111538
111461
  "inheritedFrom": {
111539
- "name": "SbbFormAssociatedMixin",
111540
- "module": "core/mixins/form-associated-mixin.js"
111541
- }
111462
+ "name": "SbbElement",
111463
+ "module": "core/base-elements/element.js"
111464
+ },
111465
+ "default": "!!this.shadowRoot"
111542
111466
  },
111543
111467
  {
111544
111468
  "kind": "method",
111545
- "name": "checkValidity",
111546
- "privacy": "public",
111469
+ "name": "toggleState",
111470
+ "privacy": "protected",
111547
111471
  "return": {
111548
111472
  "type": {
111549
- "text": "boolean"
111550
- }
111551
- },
111552
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
111553
- "inheritedFrom": {
111554
- "name": "SbbFormAssociatedMixin",
111555
- "module": "core/mixins/form-associated-mixin.js"
111556
- }
111557
- },
111558
- {
111559
- "kind": "method",
111560
- "name": "reportValidity",
111561
- "privacy": "public",
111562
- "return": {
111563
- "type": {
111564
- "text": "boolean"
111565
- }
111566
- },
111567
- "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.",
111568
- "inheritedFrom": {
111569
- "name": "SbbFormAssociatedMixin",
111570
- "module": "core/mixins/form-associated-mixin.js"
111571
- }
111572
- },
111573
- {
111574
- "kind": "method",
111575
- "name": "setCustomValidity",
111576
- "privacy": "public",
111577
- "return": {
111578
- "type": {
111579
- "text": "void"
111473
+ "text": "void"
111580
111474
  }
111581
111475
  },
111582
111476
  "parameters": [
111583
111477
  {
111584
- "name": "message",
111478
+ "name": "value",
111585
111479
  "type": {
111586
111480
  "text": "string"
111587
111481
  }
111482
+ },
111483
+ {
111484
+ "name": "force",
111485
+ "optional": true,
111486
+ "type": {
111487
+ "text": "boolean"
111488
+ }
111588
111489
  }
111589
111490
  ],
111590
- "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.",
111591
111491
  "inheritedFrom": {
111592
- "name": "SbbFormAssociatedMixin",
111593
- "module": "core/mixins/form-associated-mixin.js"
111492
+ "name": "SbbElement",
111493
+ "module": "core/base-elements/element.js"
111594
111494
  }
111595
111495
  },
111596
111496
  {
111597
111497
  "kind": "method",
111598
- "name": "_hasDisabledAncestor",
111498
+ "name": "_slotchangeHandler",
111599
111499
  "privacy": "private",
111600
- "return": {
111601
- "type": {
111602
- "text": "boolean"
111603
- }
111604
- },
111605
- "inheritedFrom": {
111606
- "name": "SbbFormAssociatedMixin",
111607
- "module": "core/mixins/form-associated-mixin.js"
111608
- }
111609
- },
111610
- {
111611
- "kind": "method",
111612
- "name": "updateFormValue",
111613
- "privacy": "protected",
111614
111500
  "return": {
111615
111501
  "type": {
111616
111502
  "text": "void"
111617
111503
  }
111618
111504
  },
111619
- "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",
111620
- "inheritedFrom": {
111621
- "name": "SbbFormAssociatedMixin",
111622
- "module": "core/mixins/form-associated-mixin.js"
111623
- }
111624
- },
111625
- {
111626
- "kind": "method",
111627
- "name": "formState",
111628
- "privacy": "protected",
111629
- "return": {
111630
- "type": {
111631
- "text": "FormRestoreState"
111505
+ "parameters": [
111506
+ {
111507
+ "name": "event",
111508
+ "type": {
111509
+ "text": "Event"
111510
+ }
111511
+ },
111512
+ {
111513
+ "name": "slot",
111514
+ "type": {
111515
+ "text": "HTMLSlotElement"
111516
+ }
111632
111517
  }
111633
- },
111518
+ ],
111634
111519
  "inheritedFrom": {
111635
- "name": "SbbFormAssociatedMixin",
111636
- "module": "core/mixins/form-associated-mixin.js"
111520
+ "name": "SbbElement",
111521
+ "module": "core/base-elements/element.js"
111637
111522
  }
111638
111523
  },
111639
111524
  {
111640
111525
  "kind": "method",
111641
- "name": "setValidityFlag",
111642
- "privacy": "protected",
111526
+ "name": "_handleSlotChangeForSlottedState",
111527
+ "privacy": "private",
111643
111528
  "return": {
111644
111529
  "type": {
111645
111530
  "text": "void"
@@ -111647,35 +111532,21 @@
111647
111532
  },
111648
111533
  "parameters": [
111649
111534
  {
111650
- "name": "flag",
111651
- "type": {
111652
- "text": "T"
111653
- }
111654
- },
111655
- {
111656
- "name": "message",
111657
- "type": {
111658
- "text": "string"
111659
- }
111660
- },
111661
- {
111662
- "name": "flagValue",
111663
- "optional": true,
111535
+ "name": "slot",
111664
111536
  "type": {
111665
- "text": "ValidityStateFlags[T]"
111537
+ "text": "HTMLSlotElement"
111666
111538
  }
111667
111539
  }
111668
111540
  ],
111669
- "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).",
111670
111541
  "inheritedFrom": {
111671
- "name": "SbbFormAssociatedMixin",
111672
- "module": "core/mixins/form-associated-mixin.js"
111542
+ "name": "SbbElement",
111543
+ "module": "core/base-elements/element.js"
111673
111544
  }
111674
111545
  },
111675
111546
  {
111676
111547
  "kind": "method",
111677
- "name": "removeValidityFlag",
111678
- "privacy": "protected",
111548
+ "name": "_updateSlottedState",
111549
+ "privacy": "private",
111679
111550
  "return": {
111680
111551
  "type": {
111681
111552
  "text": "void"
@@ -111683,37 +111554,43 @@
111683
111554
  },
111684
111555
  "parameters": [
111685
111556
  {
111686
- "name": "flag",
111557
+ "name": "slot",
111687
111558
  "type": {
111688
- "text": "T"
111559
+ "text": "HTMLSlotElement"
111689
111560
  }
111690
111561
  }
111691
111562
  ],
111692
- "description": "Removes the validity state flag entry and updates validity state.",
111693
111563
  "inheritedFrom": {
111694
- "name": "SbbFormAssociatedMixin",
111695
- "module": "core/mixins/form-associated-mixin.js"
111564
+ "name": "SbbElement",
111565
+ "module": "core/base-elements/element.js"
111696
111566
  }
111697
111567
  },
111698
111568
  {
111699
111569
  "kind": "method",
111700
- "name": "validate",
111701
- "privacy": "protected",
111570
+ "name": "_observeTextNodesInSlot",
111571
+ "privacy": "private",
111702
111572
  "return": {
111703
111573
  "type": {
111704
111574
  "text": "void"
111705
111575
  }
111706
111576
  },
111707
- "description": "To be called whenever the current element needs to be validated.",
111577
+ "parameters": [
111578
+ {
111579
+ "name": "slot",
111580
+ "type": {
111581
+ "text": "HTMLSlotElement"
111582
+ }
111583
+ }
111584
+ ],
111708
111585
  "inheritedFrom": {
111709
- "name": "SbbFormAssociatedMixin",
111710
- "module": "core/mixins/form-associated-mixin.js"
111586
+ "name": "SbbElement",
111587
+ "module": "core/base-elements/element.js"
111711
111588
  }
111712
111589
  },
111713
111590
  {
111714
111591
  "kind": "method",
111715
- "name": "shouldValidate",
111716
- "privacy": "protected",
111592
+ "name": "_hasSlottedContent",
111593
+ "privacy": "private",
111717
111594
  "return": {
111718
111595
  "type": {
111719
111596
  "text": "boolean"
@@ -111721,140 +111598,259 @@
111721
111598
  },
111722
111599
  "parameters": [
111723
111600
  {
111724
- "name": "name",
111601
+ "name": "slot",
111725
111602
  "type": {
111726
- "text": "PropertyKey | undefined"
111603
+ "text": "HTMLSlotElement"
111727
111604
  }
111728
111605
  }
111729
111606
  ],
111730
- "description": "Whether validation should be run on a property change with the given name.",
111731
111607
  "inheritedFrom": {
111732
- "name": "SbbFormAssociatedMixin",
111733
- "module": "core/mixins/form-associated-mixin.js"
111608
+ "name": "SbbElement",
111609
+ "module": "core/base-elements/element.js"
111734
111610
  }
111735
- },
111611
+ }
111612
+ ],
111613
+ "superclass": {
111614
+ "name": "SbbHintElement",
111615
+ "module": "form-field/hint/hint.component.js"
111616
+ },
111617
+ "tagName": "sbb-form-field-text-counter",
111618
+ "customElement": true,
111619
+ "attributes": [
111736
111620
  {
111737
- "kind": "method",
111738
- "name": "_setInternalValidity",
111739
- "privacy": "private",
111740
- "return": {
111741
- "type": {
111742
- "text": "void"
111743
- }
111621
+ "name": "negative",
111622
+ "type": {
111623
+ "text": "boolean"
111744
111624
  },
111625
+ "default": "false",
111626
+ "description": "Negative coloring variant flag.",
111627
+ "fieldName": "negative",
111745
111628
  "inheritedFrom": {
111746
- "name": "SbbFormAssociatedMixin",
111747
- "module": "core/mixins/form-associated-mixin.js"
111629
+ "name": "SbbNegativeMixin",
111630
+ "module": "core/mixins/negative-mixin.js"
111748
111631
  }
111749
- },
111632
+ }
111633
+ ]
111634
+ }
111635
+ ],
111636
+ "exports": [
111637
+ {
111638
+ "kind": "js",
111639
+ "name": "SbbFormFieldTextCounterElement",
111640
+ "declaration": {
111641
+ "name": "SbbFormFieldTextCounterElement",
111642
+ "module": "form-field/form-field-text-counter/form-field-text-counter.component.js"
111643
+ }
111644
+ }
111645
+ ]
111646
+ },
111647
+ {
111648
+ "kind": "javascript-module",
111649
+ "path": "form-field/form-field-clear/form-field-clear.component.js",
111650
+ "declarations": [
111651
+ {
111652
+ "kind": "class",
111653
+ "description": "Combined with `sbb-form-field`, it displays a button which clears the input value.",
111654
+ "name": "SbbFormFieldClearElement",
111655
+ "members": [
111750
111656
  {
111751
111657
  "kind": "field",
111752
- "name": "role",
111658
+ "name": "elementName",
111753
111659
  "type": {
111754
- "text": "ElementInternals['role']"
111660
+ "text": "string"
111755
111661
  },
111756
111662
  "privacy": "public",
111757
111663
  "static": true,
111664
+ "readonly": true,
111758
111665
  "inheritedFrom": {
111759
111666
  "name": "SbbElement",
111760
111667
  "module": "core/base-elements/element.js"
111761
111668
  },
111762
- "readonly": true,
111763
- "default": "'button'"
111669
+ "default": "'sbb-form-field-clear'"
111764
111670
  },
111765
111671
  {
111766
111672
  "kind": "field",
111767
- "name": "_preventScrollOnSpaceKeydown",
111768
- "privacy": "private",
111769
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
111770
- "parameters": [
111771
- {
111772
- "description": "The origin event.",
111773
- "name": "event"
111774
- }
111775
- ],
111673
+ "name": "elementDependencies",
111674
+ "type": {
111675
+ "text": "SbbElementType[]"
111676
+ },
111677
+ "privacy": "public",
111678
+ "static": true,
111776
111679
  "inheritedFrom": {
111777
- "name": "SbbButtonLikeBaseElement",
111778
- "module": "core/base-elements/button-base-element.js"
111779
- }
111680
+ "name": "SbbElement",
111681
+ "module": "core/base-elements/element.js"
111682
+ },
111683
+ "default": "[SbbIconElement]"
111780
111684
  },
111781
111685
  {
111782
111686
  "kind": "field",
111783
- "name": "_removeActiveMarker",
111784
- "privacy": "private",
111785
- "inheritedFrom": {
111786
- "name": "SbbButtonLikeBaseElement",
111787
- "module": "core/base-elements/button-base-element.js"
111788
- }
111687
+ "name": "_formField",
111688
+ "type": {
111689
+ "text": "SbbFormFieldElement | null | undefined"
111690
+ },
111691
+ "privacy": "private"
111789
111692
  },
111790
111693
  {
111791
111694
  "kind": "field",
111792
- "name": "_dispatchClickEventOnSpaceKeyup",
111695
+ "name": "_language",
111793
111696
  "privacy": "private",
111794
- "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.",
111795
- "parameters": [
111796
- {
111797
- "description": "The origin event.",
111798
- "name": "event"
111799
- }
111800
- ],
111801
- "inheritedFrom": {
111802
- "name": "SbbButtonLikeBaseElement",
111803
- "module": "core/base-elements/button-base-element.js"
111697
+ "default": "new SbbLanguageController(this)"
111698
+ },
111699
+ {
111700
+ "kind": "method",
111701
+ "name": "_handleClick",
111702
+ "privacy": "private",
111703
+ "return": {
111704
+ "type": {
111705
+ "text": "Promise<void>"
111706
+ }
111707
+ }
111708
+ },
111709
+ {
111710
+ "kind": "method",
111711
+ "name": "renderTemplate",
111712
+ "privacy": "protected",
111713
+ "return": {
111714
+ "type": {
111715
+ "text": "TemplateResult"
111716
+ }
111717
+ },
111718
+ "description": "Override this method to render the component template.",
111719
+ "inheritedFrom": {
111720
+ "name": "SbbActionBaseElement",
111721
+ "module": "core/base-elements/action-base-element.js"
111804
111722
  }
111805
111723
  },
111806
111724
  {
111807
111725
  "kind": "field",
111808
- "name": "_dispatchClickEvent",
111726
+ "name": "negative",
111727
+ "type": {
111728
+ "text": "boolean"
111729
+ },
111730
+ "privacy": "public",
111731
+ "default": "false",
111732
+ "description": "Negative coloring variant flag.",
111733
+ "attribute": "negative",
111734
+ "reflects": true,
111735
+ "inheritedFrom": {
111736
+ "name": "SbbNegativeMixin",
111737
+ "module": "core/mixins/negative-mixin.js"
111738
+ }
111739
+ },
111740
+ {
111741
+ "kind": "field",
111742
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
111743
+ "type": {
111744
+ "text": "array"
111745
+ },
111809
111746
  "privacy": "private",
111747
+ "readonly": true,
111748
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
111810
111749
  "inheritedFrom": {
111811
- "name": "SbbButtonLikeBaseElement",
111750
+ "name": "SbbButtonBaseElement",
111812
111751
  "module": "core/base-elements/button-base-element.js"
111813
111752
  }
111814
111753
  },
111815
111754
  {
111816
111755
  "kind": "field",
111817
- "name": "maybeDisabled",
111756
+ "name": "value",
111818
111757
  "type": {
111819
- "text": "boolean | undefined"
111758
+ "text": "string"
111820
111759
  },
111821
- "privacy": "protected",
111822
- "readonly": true,
111760
+ "privacy": "public",
111823
111761
  "inheritedFrom": {
111824
- "name": "SbbActionBaseElement",
111825
- "module": "core/base-elements/action-base-element.js"
111762
+ "name": "SbbButtonBaseElement",
111763
+ "module": "core/base-elements/button-base-element.js"
111764
+ },
111765
+ "default": "''",
111766
+ "description": "Value of the form element.",
111767
+ "attribute": "value"
111768
+ },
111769
+ {
111770
+ "kind": "field",
111771
+ "name": "type",
111772
+ "privacy": "public",
111773
+ "description": "The type attribute to use for the button.",
111774
+ "default": "'button'",
111775
+ "type": {
111776
+ "text": "SbbButtonType"
111777
+ },
111778
+ "attribute": "type",
111779
+ "inheritedFrom": {
111780
+ "name": "SbbButtonBaseElement",
111781
+ "module": "core/base-elements/button-base-element.js"
111826
111782
  }
111827
111783
  },
111828
111784
  {
111829
111785
  "kind": "field",
111830
- "name": "maybeDisabledInteractive",
111786
+ "name": "form",
111831
111787
  "type": {
111832
- "text": "boolean | undefined"
111788
+ "text": "HTMLFormElement | null"
111833
111789
  },
111834
- "privacy": "protected",
111835
- "readonly": true,
111790
+ "privacy": "public",
111791
+ "description": "The `<form>` element to associate the button with.",
111836
111792
  "inheritedFrom": {
111837
- "name": "SbbActionBaseElement",
111838
- "module": "core/base-elements/action-base-element.js"
111793
+ "name": "SbbButtonBaseElement",
111794
+ "module": "core/base-elements/button-base-element.js"
111795
+ },
111796
+ "attribute": "form"
111797
+ },
111798
+ {
111799
+ "kind": "field",
111800
+ "name": "_formId",
111801
+ "type": {
111802
+ "text": "string"
111803
+ },
111804
+ "privacy": "private",
111805
+ "default": "''",
111806
+ "inheritedFrom": {
111807
+ "name": "SbbButtonBaseElement",
111808
+ "module": "core/base-elements/button-base-element.js"
111809
+ }
111810
+ },
111811
+ {
111812
+ "kind": "field",
111813
+ "name": "_handleButtonClick",
111814
+ "privacy": "private",
111815
+ "inheritedFrom": {
111816
+ "name": "SbbButtonBaseElement",
111817
+ "module": "core/base-elements/button-base-element.js"
111839
111818
  }
111840
111819
  },
111841
111820
  {
111842
111821
  "kind": "method",
111843
- "name": "setupBaseEventHandlers",
111844
- "privacy": "protected",
111822
+ "name": "_requestSubmit",
111823
+ "privacy": "private",
111845
111824
  "return": {
111846
111825
  "type": {
111847
111826
  "text": "void"
111848
111827
  }
111849
111828
  },
111829
+ "parameters": [
111830
+ {
111831
+ "name": "form",
111832
+ "type": {
111833
+ "text": "HTMLFormElement"
111834
+ }
111835
+ }
111836
+ ],
111850
111837
  "inheritedFrom": {
111851
- "name": "SbbActionBaseElement",
111852
- "module": "core/base-elements/action-base-element.js"
111838
+ "name": "SbbButtonBaseElement",
111839
+ "module": "core/base-elements/button-base-element.js"
111853
111840
  }
111854
111841
  },
111855
111842
  {
111856
111843
  "kind": "field",
111857
- "name": "['_$sbbElement$']",
111844
+ "name": "_formKeyDown",
111845
+ "privacy": "private",
111846
+ "inheritedFrom": {
111847
+ "name": "SbbButtonBaseElement",
111848
+ "module": "core/base-elements/button-base-element.js"
111849
+ }
111850
+ },
111851
+ {
111852
+ "kind": "field",
111853
+ "name": "formAssociated",
111858
111854
  "type": {
111859
111855
  "text": "boolean"
111860
111856
  },
@@ -111862,117 +111858,124 @@
111862
111858
  "static": true,
111863
111859
  "default": "true",
111864
111860
  "inheritedFrom": {
111865
- "name": "SbbElement",
111866
- "module": "core/base-elements/element.js"
111861
+ "name": "SbbFormAssociatedMixin",
111862
+ "module": "core/mixins/form-associated-mixin.js"
111867
111863
  }
111868
111864
  },
111869
111865
  {
111870
111866
  "kind": "field",
111871
- "name": "_controllers",
111867
+ "name": "name",
111868
+ "privacy": "public",
111869
+ "description": "Name of the form element. Will be read from name attribute.",
111872
111870
  "type": {
111873
- "text": "Set<SbbReactiveController> | undefined"
111871
+ "text": "string"
111874
111872
  },
111875
- "privacy": "private",
111873
+ "attribute": "name",
111876
111874
  "inheritedFrom": {
111877
- "name": "SbbElement",
111878
- "module": "core/base-elements/element.js"
111875
+ "name": "SbbFormAssociatedMixin",
111876
+ "module": "core/mixins/form-associated-mixin.js"
111879
111877
  }
111880
111878
  },
111881
111879
  {
111882
111880
  "kind": "field",
111883
- "name": "_hydrationRequired",
111881
+ "name": "validity",
111884
111882
  "type": {
111885
- "text": "boolean"
111883
+ "text": "ValidityState"
111886
111884
  },
111887
- "privacy": "private",
111888
- "default": "!!this.shadowRoot",
111885
+ "privacy": "public",
111886
+ "description": "Returns the ValidityState object for this element.",
111887
+ "readonly": true,
111889
111888
  "inheritedFrom": {
111890
- "name": "SbbElement",
111891
- "module": "core/base-elements/element.js"
111889
+ "name": "SbbFormAssociatedMixin",
111890
+ "module": "core/mixins/form-associated-mixin.js"
111892
111891
  }
111893
111892
  },
111894
111893
  {
111895
111894
  "kind": "field",
111896
- "name": "_hydrationComplete",
111897
- "privacy": "private",
111898
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
111895
+ "name": "validationMessage",
111896
+ "type": {
111897
+ "text": "string"
111898
+ },
111899
+ "privacy": "public",
111900
+ "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.",
111901
+ "readonly": true,
111899
111902
  "inheritedFrom": {
111900
- "name": "SbbElement",
111901
- "module": "core/base-elements/element.js"
111903
+ "name": "SbbFormAssociatedMixin",
111904
+ "module": "core/mixins/form-associated-mixin.js"
111902
111905
  }
111903
111906
  },
111904
111907
  {
111905
111908
  "kind": "field",
111906
- "name": "_resolveHydration",
111909
+ "name": "willValidate",
111907
111910
  "type": {
111908
- "text": "(hydrationRequired: boolean) => void"
111911
+ "text": "boolean"
111909
111912
  },
111910
- "privacy": "private",
111913
+ "privacy": "public",
111914
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
111915
+ "readonly": true,
111911
111916
  "inheritedFrom": {
111912
- "name": "SbbElement",
111913
- "module": "core/base-elements/element.js"
111917
+ "name": "SbbFormAssociatedMixin",
111918
+ "module": "core/mixins/form-associated-mixin.js"
111914
111919
  }
111915
111920
  },
111916
111921
  {
111917
111922
  "kind": "field",
111918
- "name": "_textObserver",
111919
- "type": {
111920
- "text": "MutationObserver | undefined"
111921
- },
111923
+ "name": "_validityStates",
111922
111924
  "privacy": "private",
111925
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
111923
111926
  "inheritedFrom": {
111924
- "name": "SbbElement",
111925
- "module": "core/base-elements/element.js"
111927
+ "name": "SbbFormAssociatedMixin",
111928
+ "module": "core/mixins/form-associated-mixin.js"
111926
111929
  }
111927
111930
  },
111928
111931
  {
111929
111932
  "kind": "field",
111930
- "name": "hydrationRequired",
111933
+ "name": "formDisabled",
111931
111934
  "type": {
111932
111935
  "text": "boolean"
111933
111936
  },
111934
111937
  "privacy": "protected",
111935
- "description": "Returns whether hydration is required and not completed.",
111936
- "readonly": true,
111938
+ "default": "false",
111939
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
111937
111940
  "inheritedFrom": {
111938
- "name": "SbbElement",
111939
- "module": "core/base-elements/element.js"
111940
- },
111941
- "default": "!!this.shadowRoot"
111941
+ "name": "SbbFormAssociatedMixin",
111942
+ "module": "core/mixins/form-associated-mixin.js"
111943
+ }
111942
111944
  },
111943
111945
  {
111944
111946
  "kind": "method",
111945
- "name": "toggleState",
111946
- "privacy": "protected",
111947
+ "name": "checkValidity",
111948
+ "privacy": "public",
111947
111949
  "return": {
111948
111950
  "type": {
111949
- "text": "void"
111951
+ "text": "boolean"
111950
111952
  }
111951
111953
  },
111952
- "parameters": [
111953
- {
111954
- "name": "value",
111955
- "type": {
111956
- "text": "string"
111957
- }
111958
- },
111959
- {
111960
- "name": "force",
111961
- "optional": true,
111962
- "type": {
111963
- "text": "boolean"
111964
- }
111954
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
111955
+ "inheritedFrom": {
111956
+ "name": "SbbFormAssociatedMixin",
111957
+ "module": "core/mixins/form-associated-mixin.js"
111958
+ }
111959
+ },
111960
+ {
111961
+ "kind": "method",
111962
+ "name": "reportValidity",
111963
+ "privacy": "public",
111964
+ "return": {
111965
+ "type": {
111966
+ "text": "boolean"
111965
111967
  }
111966
- ],
111968
+ },
111969
+ "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.",
111967
111970
  "inheritedFrom": {
111968
- "name": "SbbElement",
111969
- "module": "core/base-elements/element.js"
111971
+ "name": "SbbFormAssociatedMixin",
111972
+ "module": "core/mixins/form-associated-mixin.js"
111970
111973
  }
111971
111974
  },
111972
111975
  {
111973
111976
  "kind": "method",
111974
- "name": "_slotchangeHandler",
111975
- "privacy": "private",
111977
+ "name": "setCustomValidity",
111978
+ "privacy": "public",
111976
111979
  "return": {
111977
111980
  "type": {
111978
111981
  "text": "void"
@@ -111980,71 +111983,65 @@
111980
111983
  },
111981
111984
  "parameters": [
111982
111985
  {
111983
- "name": "event",
111984
- "type": {
111985
- "text": "Event"
111986
- }
111987
- },
111988
- {
111989
- "name": "slot",
111986
+ "name": "message",
111990
111987
  "type": {
111991
- "text": "HTMLSlotElement"
111988
+ "text": "string"
111992
111989
  }
111993
111990
  }
111994
111991
  ],
111992
+ "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.",
111995
111993
  "inheritedFrom": {
111996
- "name": "SbbElement",
111997
- "module": "core/base-elements/element.js"
111994
+ "name": "SbbFormAssociatedMixin",
111995
+ "module": "core/mixins/form-associated-mixin.js"
111998
111996
  }
111999
111997
  },
112000
111998
  {
112001
111999
  "kind": "method",
112002
- "name": "_handleSlotChangeForSlottedState",
112000
+ "name": "_hasDisabledAncestor",
112003
112001
  "privacy": "private",
112004
112002
  "return": {
112005
112003
  "type": {
112006
- "text": "void"
112004
+ "text": "boolean"
112007
112005
  }
112008
112006
  },
112009
- "parameters": [
112010
- {
112011
- "name": "slot",
112012
- "type": {
112013
- "text": "HTMLSlotElement"
112014
- }
112015
- }
112016
- ],
112017
112007
  "inheritedFrom": {
112018
- "name": "SbbElement",
112019
- "module": "core/base-elements/element.js"
112008
+ "name": "SbbFormAssociatedMixin",
112009
+ "module": "core/mixins/form-associated-mixin.js"
112020
112010
  }
112021
112011
  },
112022
112012
  {
112023
112013
  "kind": "method",
112024
- "name": "_updateSlottedState",
112025
- "privacy": "private",
112014
+ "name": "updateFormValue",
112015
+ "privacy": "protected",
112026
112016
  "return": {
112027
112017
  "type": {
112028
112018
  "text": "void"
112029
112019
  }
112030
112020
  },
112031
- "parameters": [
112032
- {
112033
- "name": "slot",
112034
- "type": {
112035
- "text": "HTMLSlotElement"
112036
- }
112021
+ "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",
112022
+ "inheritedFrom": {
112023
+ "name": "SbbFormAssociatedMixin",
112024
+ "module": "core/mixins/form-associated-mixin.js"
112025
+ }
112026
+ },
112027
+ {
112028
+ "kind": "method",
112029
+ "name": "formState",
112030
+ "privacy": "protected",
112031
+ "return": {
112032
+ "type": {
112033
+ "text": "FormRestoreState"
112037
112034
  }
112038
- ],
112035
+ },
112039
112036
  "inheritedFrom": {
112040
- "name": "SbbElement",
112041
- "module": "core/base-elements/element.js"
112037
+ "name": "SbbFormAssociatedMixin",
112038
+ "module": "core/mixins/form-associated-mixin.js"
112042
112039
  }
112043
112040
  },
112044
112041
  {
112045
112042
  "kind": "method",
112046
- "name": "_observeTextNodesInSlot",
112047
- "privacy": "private",
112043
+ "name": "setValidityFlag",
112044
+ "privacy": "protected",
112048
112045
  "return": {
112049
112046
  "type": {
112050
112047
  "text": "void"
@@ -112052,289 +112049,220 @@
112052
112049
  },
112053
112050
  "parameters": [
112054
112051
  {
112055
- "name": "slot",
112052
+ "name": "flag",
112056
112053
  "type": {
112057
- "text": "HTMLSlotElement"
112054
+ "text": "T"
112055
+ }
112056
+ },
112057
+ {
112058
+ "name": "message",
112059
+ "type": {
112060
+ "text": "string"
112061
+ }
112062
+ },
112063
+ {
112064
+ "name": "flagValue",
112065
+ "optional": true,
112066
+ "type": {
112067
+ "text": "ValidityStateFlags[T]"
112058
112068
  }
112059
112069
  }
112060
112070
  ],
112071
+ "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).",
112061
112072
  "inheritedFrom": {
112062
- "name": "SbbElement",
112063
- "module": "core/base-elements/element.js"
112073
+ "name": "SbbFormAssociatedMixin",
112074
+ "module": "core/mixins/form-associated-mixin.js"
112064
112075
  }
112065
112076
  },
112066
112077
  {
112067
112078
  "kind": "method",
112068
- "name": "_hasSlottedContent",
112069
- "privacy": "private",
112079
+ "name": "removeValidityFlag",
112080
+ "privacy": "protected",
112070
112081
  "return": {
112071
112082
  "type": {
112072
- "text": "boolean"
112083
+ "text": "void"
112073
112084
  }
112074
112085
  },
112075
112086
  "parameters": [
112076
112087
  {
112077
- "name": "slot",
112088
+ "name": "flag",
112078
112089
  "type": {
112079
- "text": "HTMLSlotElement"
112090
+ "text": "T"
112080
112091
  }
112081
112092
  }
112082
112093
  ],
112094
+ "description": "Removes the validity state flag entry and updates validity state.",
112083
112095
  "inheritedFrom": {
112084
- "name": "SbbElement",
112085
- "module": "core/base-elements/element.js"
112086
- }
112087
- }
112088
- ],
112089
- "events": [
112090
- {
112091
- "type": {
112092
- "text": "Event"
112093
- },
112094
- "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.",
112095
- "name": "change"
112096
- },
112097
- {
112098
- "type": {
112099
- "text": "InputEvent"
112100
- },
112101
- "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.",
112102
- "name": "input"
112103
- }
112104
- ],
112105
- "mixins": [
112106
- {
112107
- "name": "SbbNegativeMixin",
112108
- "module": "core.js"
112109
- }
112110
- ],
112111
- "superclass": {
112112
- "name": "SbbButtonBaseElement",
112113
- "module": "core.js"
112114
- },
112115
- "tagName": "sbb-form-field-clear",
112116
- "customElement": true,
112117
- "attributes": [
112118
- {
112119
- "name": "negative",
112120
- "type": {
112121
- "text": "boolean"
112122
- },
112123
- "default": "false",
112124
- "description": "Negative coloring variant flag.",
112125
- "fieldName": "negative",
112126
- "inheritedFrom": {
112127
- "name": "SbbNegativeMixin",
112128
- "module": "core/mixins/negative-mixin.js"
112129
- }
112130
- },
112131
- {
112132
- "name": "value",
112133
- "type": {
112134
- "text": "string"
112135
- },
112136
- "default": "''",
112137
- "description": "Value of the form element.",
112138
- "fieldName": "value",
112139
- "inheritedFrom": {
112140
- "name": "SbbButtonBaseElement",
112141
- "module": "core/base-elements/button-base-element.js"
112142
- }
112143
- },
112144
- {
112145
- "name": "type",
112146
- "description": "The type attribute to use for the button.",
112147
- "default": "'button'",
112148
- "type": {
112149
- "text": "SbbButtonType"
112150
- },
112151
- "fieldName": "type",
112152
- "inheritedFrom": {
112153
- "name": "SbbButtonBaseElement",
112154
- "module": "core/base-elements/button-base-element.js"
112096
+ "name": "SbbFormAssociatedMixin",
112097
+ "module": "core/mixins/form-associated-mixin.js"
112155
112098
  }
112156
112099
  },
112157
112100
  {
112158
- "name": "form",
112159
- "description": "The `<form>` element to associate the button with.",
112160
- "type": {
112161
- "text": "HTMLFormElement | null"
112101
+ "kind": "method",
112102
+ "name": "validate",
112103
+ "privacy": "protected",
112104
+ "return": {
112105
+ "type": {
112106
+ "text": "void"
112107
+ }
112162
112108
  },
112163
- "fieldName": "form",
112109
+ "description": "To be called whenever the current element needs to be validated.",
112164
112110
  "inheritedFrom": {
112165
- "name": "SbbButtonBaseElement",
112166
- "module": "core/base-elements/button-base-element.js"
112111
+ "name": "SbbFormAssociatedMixin",
112112
+ "module": "core/mixins/form-associated-mixin.js"
112167
112113
  }
112168
112114
  },
112169
112115
  {
112170
- "name": "name",
112171
- "description": "Name of the form element. Will be read from name attribute.",
112172
- "type": {
112173
- "text": "string"
112116
+ "kind": "method",
112117
+ "name": "shouldValidate",
112118
+ "privacy": "protected",
112119
+ "return": {
112120
+ "type": {
112121
+ "text": "boolean"
112122
+ }
112174
112123
  },
112175
- "fieldName": "name",
112124
+ "parameters": [
112125
+ {
112126
+ "name": "name",
112127
+ "type": {
112128
+ "text": "PropertyKey | undefined"
112129
+ }
112130
+ }
112131
+ ],
112132
+ "description": "Whether validation should be run on a property change with the given name.",
112176
112133
  "inheritedFrom": {
112177
112134
  "name": "SbbFormAssociatedMixin",
112178
112135
  "module": "core/mixins/form-associated-mixin.js"
112179
112136
  }
112180
- }
112181
- ]
112182
- }
112183
- ],
112184
- "exports": [
112185
- {
112186
- "kind": "js",
112187
- "name": "SbbFormFieldClearElement",
112188
- "declaration": {
112189
- "name": "SbbFormFieldClearElement",
112190
- "module": "form-field/form-field-clear/form-field-clear.component.js"
112191
- }
112192
- }
112193
- ]
112194
- },
112195
- {
112196
- "kind": "javascript-module",
112197
- "path": "form-field/form-field-text-counter/form-field-text-counter.component.js",
112198
- "declarations": [
112199
- {
112200
- "kind": "class",
112201
- "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.",
112202
- "name": "SbbFormFieldTextCounterElement",
112203
- "slots": [
112204
- {
112205
- "description": "Use the unnamed slot to display a custom description text after the counter.",
112206
- "name": "",
112207
- "inheritedFrom": {
112208
- "name": "SbbHintElement",
112209
- "module": "form-field/hint/hint.component.js"
112210
- }
112211
- }
112212
- ],
112213
- "members": [
112137
+ },
112214
112138
  {
112215
- "kind": "field",
112216
- "name": "elementName",
112217
- "type": {
112218
- "text": "string"
112139
+ "kind": "method",
112140
+ "name": "_setInternalValidity",
112141
+ "privacy": "private",
112142
+ "return": {
112143
+ "type": {
112144
+ "text": "void"
112145
+ }
112219
112146
  },
112220
- "privacy": "public",
112221
- "static": true,
112222
- "readonly": true,
112223
- "default": "'sbb-form-field-text-counter'",
112224
112147
  "inheritedFrom": {
112225
- "name": "SbbElement",
112226
- "module": "core/base-elements/element.js"
112148
+ "name": "SbbFormAssociatedMixin",
112149
+ "module": "core/mixins/form-associated-mixin.js"
112227
112150
  }
112228
112151
  },
112229
112152
  {
112230
112153
  "kind": "field",
112231
- "name": "elementDependencies",
112154
+ "name": "role",
112232
112155
  "type": {
112233
- "text": "SbbElementType[]"
112156
+ "text": "ElementInternals['role']"
112234
112157
  },
112235
112158
  "privacy": "public",
112236
112159
  "static": true,
112237
- "default": "[SbbScreenReaderOnlyElement]",
112238
112160
  "inheritedFrom": {
112239
112161
  "name": "SbbElement",
112240
112162
  "module": "core/base-elements/element.js"
112241
- }
112242
- },
112243
- {
112244
- "kind": "field",
112245
- "name": "_remainingCharacters",
112246
- "type": {
112247
- "text": "number"
112248
112163
  },
112249
- "privacy": "private",
112250
- "default": "0"
112164
+ "readonly": true,
112165
+ "default": "'button'"
112251
112166
  },
112252
112167
  {
112253
112168
  "kind": "field",
112254
- "name": "_language",
112169
+ "name": "_preventScrollOnSpaceKeydown",
112255
112170
  "privacy": "private",
112256
- "default": "new SbbLanguageController(this)"
112171
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
112172
+ "parameters": [
112173
+ {
112174
+ "description": "The origin event.",
112175
+ "name": "event"
112176
+ }
112177
+ ],
112178
+ "inheritedFrom": {
112179
+ "name": "SbbButtonLikeBaseElement",
112180
+ "module": "core/base-elements/button-base-element.js"
112181
+ }
112257
112182
  },
112258
112183
  {
112259
112184
  "kind": "field",
112260
- "name": "_abortController",
112261
- "type": {
112262
- "text": "AbortController | null"
112263
- },
112185
+ "name": "_removeActiveMarker",
112264
112186
  "privacy": "private",
112265
- "default": "null"
112187
+ "inheritedFrom": {
112188
+ "name": "SbbButtonLikeBaseElement",
112189
+ "module": "core/base-elements/button-base-element.js"
112190
+ }
112266
112191
  },
112267
112192
  {
112268
- "kind": "method",
112269
- "name": "_onInputUpdate",
112193
+ "kind": "field",
112194
+ "name": "_dispatchClickEventOnSpaceKeyup",
112270
112195
  "privacy": "private",
112271
- "return": {
112272
- "type": {
112273
- "text": "void"
112196
+ "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.",
112197
+ "parameters": [
112198
+ {
112199
+ "description": "The origin event.",
112200
+ "name": "event"
112274
112201
  }
112202
+ ],
112203
+ "inheritedFrom": {
112204
+ "name": "SbbButtonLikeBaseElement",
112205
+ "module": "core/base-elements/button-base-element.js"
112275
112206
  }
112276
112207
  },
112277
112208
  {
112278
- "kind": "method",
112279
- "name": "_infoText",
112209
+ "kind": "field",
112210
+ "name": "_dispatchClickEvent",
112280
112211
  "privacy": "private",
112281
- "return": {
112282
- "type": {
112283
- "text": "string"
112284
- }
112212
+ "inheritedFrom": {
112213
+ "name": "SbbButtonLikeBaseElement",
112214
+ "module": "core/base-elements/button-base-element.js"
112285
112215
  }
112286
112216
  },
112287
112217
  {
112288
112218
  "kind": "field",
112289
- "name": "negative",
112219
+ "name": "maybeDisabled",
112290
112220
  "type": {
112291
- "text": "boolean"
112221
+ "text": "boolean | undefined"
112292
112222
  },
112293
- "privacy": "public",
112294
- "default": "false",
112295
- "description": "Negative coloring variant flag.",
112296
- "attribute": "negative",
112297
- "reflects": true,
112223
+ "privacy": "protected",
112224
+ "readonly": true,
112298
112225
  "inheritedFrom": {
112299
- "name": "SbbNegativeMixin",
112300
- "module": "core/mixins/negative-mixin.js"
112226
+ "name": "SbbActionBaseElement",
112227
+ "module": "core/base-elements/action-base-element.js"
112301
112228
  }
112302
112229
  },
112303
112230
  {
112304
112231
  "kind": "field",
112305
- "name": "formField",
112232
+ "name": "maybeDisabledInteractive",
112306
112233
  "type": {
112307
- "text": "SbbFormFieldElement | null"
112234
+ "text": "boolean | undefined"
112308
112235
  },
112309
112236
  "privacy": "protected",
112310
- "default": "null",
112237
+ "readonly": true,
112311
112238
  "inheritedFrom": {
112312
- "name": "SbbHintElement",
112313
- "module": "form-field/hint/hint.component.js"
112239
+ "name": "SbbActionBaseElement",
112240
+ "module": "core/base-elements/action-base-element.js"
112314
112241
  }
112315
112242
  },
112316
112243
  {
112317
- "kind": "field",
112318
- "name": "['_$sbbElement$']",
112319
- "type": {
112320
- "text": "boolean"
112244
+ "kind": "method",
112245
+ "name": "setupBaseEventHandlers",
112246
+ "privacy": "protected",
112247
+ "return": {
112248
+ "type": {
112249
+ "text": "void"
112250
+ }
112321
112251
  },
112322
- "privacy": "public",
112323
- "static": true,
112324
- "default": "true",
112325
112252
  "inheritedFrom": {
112326
- "name": "SbbElement",
112327
- "module": "core/base-elements/element.js"
112253
+ "name": "SbbActionBaseElement",
112254
+ "module": "core/base-elements/action-base-element.js"
112328
112255
  }
112329
112256
  },
112330
112257
  {
112331
112258
  "kind": "field",
112332
- "name": "role",
112259
+ "name": "['_$sbbElement$']",
112333
112260
  "type": {
112334
- "text": "ElementInternals['role'] | undefined"
112261
+ "text": "boolean"
112335
112262
  },
112336
112263
  "privacy": "public",
112337
112264
  "static": true,
112265
+ "default": "true",
112338
112266
  "inheritedFrom": {
112339
112267
  "name": "SbbElement",
112340
112268
  "module": "core/base-elements/element.js"
@@ -112560,11 +112488,33 @@
112560
112488
  }
112561
112489
  }
112562
112490
  ],
112491
+ "events": [
112492
+ {
112493
+ "type": {
112494
+ "text": "Event"
112495
+ },
112496
+ "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.",
112497
+ "name": "change"
112498
+ },
112499
+ {
112500
+ "type": {
112501
+ "text": "InputEvent"
112502
+ },
112503
+ "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.",
112504
+ "name": "input"
112505
+ }
112506
+ ],
112507
+ "mixins": [
112508
+ {
112509
+ "name": "SbbNegativeMixin",
112510
+ "module": "core.js"
112511
+ }
112512
+ ],
112563
112513
  "superclass": {
112564
- "name": "SbbHintElement",
112565
- "module": "form-field/hint/hint.component.js"
112514
+ "name": "SbbButtonBaseElement",
112515
+ "module": "core.js"
112566
112516
  },
112567
- "tagName": "sbb-form-field-text-counter",
112517
+ "tagName": "sbb-form-field-clear",
112568
112518
  "customElement": true,
112569
112519
  "attributes": [
112570
112520
  {
@@ -112579,6 +112529,56 @@
112579
112529
  "name": "SbbNegativeMixin",
112580
112530
  "module": "core/mixins/negative-mixin.js"
112581
112531
  }
112532
+ },
112533
+ {
112534
+ "name": "value",
112535
+ "type": {
112536
+ "text": "string"
112537
+ },
112538
+ "default": "''",
112539
+ "description": "Value of the form element.",
112540
+ "fieldName": "value",
112541
+ "inheritedFrom": {
112542
+ "name": "SbbButtonBaseElement",
112543
+ "module": "core/base-elements/button-base-element.js"
112544
+ }
112545
+ },
112546
+ {
112547
+ "name": "type",
112548
+ "description": "The type attribute to use for the button.",
112549
+ "default": "'button'",
112550
+ "type": {
112551
+ "text": "SbbButtonType"
112552
+ },
112553
+ "fieldName": "type",
112554
+ "inheritedFrom": {
112555
+ "name": "SbbButtonBaseElement",
112556
+ "module": "core/base-elements/button-base-element.js"
112557
+ }
112558
+ },
112559
+ {
112560
+ "name": "form",
112561
+ "description": "The `<form>` element to associate the button with.",
112562
+ "type": {
112563
+ "text": "HTMLFormElement | null"
112564
+ },
112565
+ "fieldName": "form",
112566
+ "inheritedFrom": {
112567
+ "name": "SbbButtonBaseElement",
112568
+ "module": "core/base-elements/button-base-element.js"
112569
+ }
112570
+ },
112571
+ {
112572
+ "name": "name",
112573
+ "description": "Name of the form element. Will be read from name attribute.",
112574
+ "type": {
112575
+ "text": "string"
112576
+ },
112577
+ "fieldName": "name",
112578
+ "inheritedFrom": {
112579
+ "name": "SbbFormAssociatedMixin",
112580
+ "module": "core/mixins/form-associated-mixin.js"
112581
+ }
112582
112582
  }
112583
112583
  ]
112584
112584
  }
@@ -112586,10 +112586,10 @@
112586
112586
  "exports": [
112587
112587
  {
112588
112588
  "kind": "js",
112589
- "name": "SbbFormFieldTextCounterElement",
112589
+ "name": "SbbFormFieldClearElement",
112590
112590
  "declaration": {
112591
- "name": "SbbFormFieldTextCounterElement",
112592
- "module": "form-field/form-field-text-counter/form-field-text-counter.component.js"
112591
+ "name": "SbbFormFieldClearElement",
112592
+ "module": "form-field/form-field-clear/form-field-clear.component.js"
112593
112593
  }
112594
112594
  }
112595
112595
  ]