@sbb-esta/lyne-elements-dev 4.12.1-dev.1778029146 → 4.12.1-dev.1778065339

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 +1189 -1189
  2. package/package.json +2 -2
@@ -129271,12 +129271,12 @@
129271
129271
  },
129272
129272
  {
129273
129273
  "kind": "javascript-module",
129274
- "path": "timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js",
129274
+ "path": "timetable-form/timetable-form-field/timetable-form-field.component.js",
129275
129275
  "declarations": [
129276
129276
  {
129277
129277
  "kind": "class",
129278
- "description": "An extension of `sbb-secondary-button` to be used inside the `sbb-timetable-form`.\nWhen placed between two `sbb-timetable-form-field`, the 'click' swaps the value of the sibling inputs.",
129279
- "name": "SbbTimetableFormSwapButtonElement",
129278
+ "description": "Extends the `sbb-form-field`. Meant to be used inside a `sbb-timetable-form`.",
129279
+ "name": "SbbTimetableFormFieldElement",
129280
129280
  "members": [
129281
129281
  {
129282
129282
  "kind": "field",
@@ -129287,88 +129287,83 @@
129287
129287
  "privacy": "public",
129288
129288
  "static": true,
129289
129289
  "readonly": true,
129290
+ "default": "'sbb-timetable-form-field'",
129290
129291
  "inheritedFrom": {
129291
129292
  "name": "SbbElement",
129292
129293
  "module": "core/base-elements/element.js"
129293
- },
129294
- "default": "'sbb-timetable-form-swap-button'"
129294
+ }
129295
129295
  },
129296
129296
  {
129297
129297
  "kind": "field",
129298
- "name": "_languageController",
129299
- "privacy": "private",
129300
- "default": "new SbbLanguageController(this)"
129301
- },
129302
- {
129303
- "kind": "method",
129304
- "name": "_invertFieldValues",
129305
- "privacy": "private",
129306
- "return": {
129307
- "type": {
129308
- "text": "void"
129309
- }
129298
+ "name": "_routeIcon",
129299
+ "type": {
129300
+ "text": "boolean"
129310
129301
  },
129311
- "description": "Search for `sbb-timetable-form-field` inputs, invert their values and dispatch the respective input and change events"
129302
+ "privacy": "private",
129303
+ "default": "false"
129312
129304
  },
129313
129305
  {
129314
- "kind": "method",
129315
- "name": "renderIconName",
129316
- "privacy": "protected",
129317
- "return": {
129318
- "type": {
129319
- "text": "string"
129320
- }
129306
+ "kind": "field",
129307
+ "name": "borderless",
129308
+ "type": {
129309
+ "text": "boolean"
129321
129310
  },
129311
+ "privacy": "public",
129312
+ "default": "true",
129313
+ "description": "Whether to display the form field without a border.",
129314
+ "attribute": "borderless",
129315
+ "reflects": true,
129322
129316
  "inheritedFrom": {
129323
- "name": "SbbIconNameMixin",
129324
- "module": "icon/icon-name-mixin.js"
129317
+ "name": "SbbFormFieldElement",
129318
+ "module": "form-field/form-field/form-field.component.js"
129325
129319
  }
129326
129320
  },
129327
129321
  {
129328
129322
  "kind": "field",
129329
- "name": "size",
129323
+ "name": "floatingLabel",
129330
129324
  "type": {
129331
- "text": "SbbButtonSize"
129325
+ "text": "boolean"
129332
129326
  },
129333
129327
  "privacy": "public",
129334
- "description": "Size variant, either l, m or s.",
129335
- "default": "'l' / 's' (lean)",
129336
- "attribute": "size",
129328
+ "default": "true",
129329
+ "description": "Whether the label should float. If activated, the placeholder of the input is hidden.",
129330
+ "attribute": "floating-label",
129337
129331
  "reflects": true,
129338
129332
  "inheritedFrom": {
129339
- "name": "SbbButtonCommonElementMixin",
129340
- "module": "button/common/button-common.js"
129333
+ "name": "SbbFormFieldElement",
129334
+ "module": "form-field/form-field/form-field.component.js"
129341
129335
  }
129342
129336
  },
129343
129337
  {
129344
129338
  "kind": "field",
129345
- "name": "loading",
129339
+ "name": "width",
129346
129340
  "type": {
129347
- "text": "boolean"
129341
+ "text": "string"
129348
129342
  },
129349
129343
  "privacy": "public",
129350
- "default": "false",
129351
- "description": "Whether the button indicates a loading state.\nThe animation kicks in after a delay of 300ms, configurable with --sbb-button-loading-delay CSS variable.",
129352
- "attribute": "loading",
129344
+ "default": "'collapse'",
129345
+ "description": "Defines the width of the component:\n- `default`: the component has defined width and min-width;\n- `collapse`: the component adapts itself to its inner input content.",
129346
+ "attribute": "width",
129353
129347
  "reflects": true,
129354
129348
  "inheritedFrom": {
129355
- "name": "SbbButtonCommonElementMixin",
129356
- "module": "button/common/button-common.js"
129349
+ "name": "SbbFormFieldElement",
129350
+ "module": "form-field/form-field/form-field.component.js"
129357
129351
  }
129358
129352
  },
129359
129353
  {
129360
- "kind": "method",
129361
- "name": "renderTemplate",
129362
- "privacy": "protected",
129363
- "return": {
129364
- "type": {
129365
- "text": "TemplateResult"
129366
- }
129354
+ "kind": "field",
129355
+ "name": "size",
129356
+ "type": {
129357
+ "text": "string"
129367
129358
  },
129368
- "description": "Override this method to render the component template.",
129359
+ "privacy": "public",
129360
+ "description": "Size variant, either l, m or s.",
129361
+ "default": "'l'",
129362
+ "attribute": "size",
129363
+ "reflects": true,
129369
129364
  "inheritedFrom": {
129370
- "name": "SbbActionBaseElement",
129371
- "module": "core/base-elements/action-base-element.js"
129365
+ "name": "SbbFormFieldElement",
129366
+ "module": "form-field/form-field/form-field.component.js"
129372
129367
  }
129373
129368
  },
129374
129369
  {
@@ -129389,631 +129384,584 @@
129389
129384
  },
129390
129385
  {
129391
129386
  "kind": "field",
129392
- "name": "iconName",
129387
+ "name": "_excludedFocusElements",
129393
129388
  "type": {
129394
- "text": "string"
129389
+ "text": "array"
129395
129390
  },
129396
- "privacy": "public",
129397
- "default": "''",
129398
- "description": "The icon name we want to use, choose from the small icon variants\nfrom the ui-icons category from here\nhttps://icons.app.sbb.ch.",
129399
- "attribute": "icon-name",
129391
+ "privacy": "private",
129392
+ "readonly": true,
129393
+ "default": "['button', 'sbb-popover', 'sbb-option', 'sbb-chip']",
129400
129394
  "inheritedFrom": {
129401
- "name": "SbbIconNameMixin",
129402
- "module": "icon/icon-name-mixin.js"
129395
+ "name": "SbbFormFieldElement",
129396
+ "module": "form-field/form-field/form-field.component.js"
129403
129397
  }
129404
129398
  },
129405
129399
  {
129406
- "kind": "method",
129407
- "name": "renderIconSlot",
129408
- "privacy": "protected",
129409
- "return": {
129410
- "type": {
129411
- "text": "TemplateResult"
129412
- }
129400
+ "kind": "field",
129401
+ "name": "_floatingLabelSupportedInputElements",
129402
+ "type": {
129403
+ "text": "array"
129413
129404
  },
129414
- "parameters": [
129415
- {
129416
- "name": "classname",
129417
- "optional": true,
129418
- "type": {
129419
- "text": "string"
129420
- }
129421
- }
129422
- ],
129405
+ "privacy": "private",
129406
+ "readonly": true,
129407
+ "default": "[ 'input', 'select', 'textarea', 'sbb-select', ]",
129423
129408
  "inheritedFrom": {
129424
- "name": "SbbIconNameMixin",
129425
- "module": "icon/icon-name-mixin.js"
129409
+ "name": "SbbFormFieldElement",
129410
+ "module": "form-field/form-field/form-field.component.js"
129426
129411
  }
129427
129412
  },
129428
129413
  {
129429
- "kind": "method",
129430
- "name": "_renderIconName",
129431
- "privacy": "private",
129432
- "return": {
129433
- "type": {
129434
- "text": "string"
129435
- }
129414
+ "kind": "field",
129415
+ "name": "_floatingLabelSupportedInputTypes",
129416
+ "type": {
129417
+ "text": "array"
129436
129418
  },
129419
+ "privacy": "private",
129420
+ "readonly": true,
129421
+ "default": "[ 'email', 'number', 'password', 'search', 'tel', 'text', 'url', ]",
129437
129422
  "inheritedFrom": {
129438
- "name": "SbbIconNameMixin",
129439
- "module": "icon/icon-name-mixin.js"
129423
+ "name": "SbbFormFieldElement",
129424
+ "module": "form-field/form-field/form-field.component.js"
129440
129425
  }
129441
129426
  },
129442
129427
  {
129443
129428
  "kind": "field",
129444
- "name": "disabledInteractive",
129429
+ "name": "errorSpace",
129445
129430
  "type": {
129446
- "text": "boolean"
129431
+ "text": "'none' | 'reserve'"
129447
129432
  },
129448
129433
  "privacy": "public",
129449
- "default": "false",
129450
- "description": "Whether the button should be aria-disabled but stay interactive.",
129451
- "attribute": "disabled-interactive",
129434
+ "default": "'none'",
129435
+ "description": "Whether to reserve space for an error message, hint or text-counter.\n`none` does not reserve any space.\n`reserve` does reserve one row for an error message.",
129436
+ "attribute": "error-space",
129452
129437
  "reflects": true,
129453
129438
  "inheritedFrom": {
129454
- "name": "SbbDisabledInteractiveMixin",
129455
- "module": "core/mixins/disabled-mixin.js"
129439
+ "name": "SbbFormFieldElement",
129440
+ "module": "form-field/form-field/form-field.component.js"
129456
129441
  }
129457
129442
  },
129458
129443
  {
129459
129444
  "kind": "field",
129460
- "name": "disabled",
129461
- "privacy": "public",
129462
- "description": "Whether the component is disabled.",
129463
- "default": "false",
129445
+ "name": "optional",
129464
129446
  "type": {
129465
129447
  "text": "boolean"
129466
129448
  },
129467
- "attribute": "disabled",
129468
- "reflects": true,
129449
+ "privacy": "public",
129450
+ "default": "false",
129451
+ "description": "Indicates whether the input is optional.",
129452
+ "deprecated": "Set the (optional) label text manually. Will be removed with next major version.",
129453
+ "attribute": "optional",
129469
129454
  "inheritedFrom": {
129470
- "name": "SbbDisabledMixin",
129471
- "module": "core/mixins/disabled-mixin.js"
129455
+ "name": "SbbFormFieldElement",
129456
+ "module": "form-field/form-field/form-field.component.js"
129472
129457
  }
129473
129458
  },
129474
129459
  {
129475
129460
  "kind": "field",
129476
- "name": "#disabled",
129477
- "privacy": "private",
129461
+ "name": "hiddenLabel",
129478
129462
  "type": {
129479
129463
  "text": "boolean"
129480
129464
  },
129465
+ "privacy": "public",
129481
129466
  "default": "false",
129467
+ "description": "Whether to visually hide the label. If hidden, screen readers will still read it.",
129468
+ "attribute": "hidden-label",
129469
+ "reflects": true,
129482
129470
  "inheritedFrom": {
129483
- "name": "SbbDisabledMixin",
129484
- "module": "core/mixins/disabled-mixin.js"
129471
+ "name": "SbbFormFieldElement",
129472
+ "module": "form-field/form-field/form-field.component.js"
129485
129473
  }
129486
129474
  },
129487
129475
  {
129488
- "kind": "method",
129489
- "name": "isDisabledExternally",
129490
- "privacy": "protected",
129491
- "return": {
129492
- "type": {
129493
- "text": "boolean"
129494
- }
129476
+ "kind": "field",
129477
+ "name": "_errorElements",
129478
+ "type": {
129479
+ "text": "Element[]"
129495
129480
  },
129496
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
129481
+ "privacy": "private",
129482
+ "default": "[]",
129483
+ "description": "It is used internally to get the `error` slot.",
129497
129484
  "inheritedFrom": {
129498
- "name": "SbbDisabledMixin",
129499
- "module": "core/mixins/disabled-mixin.js"
129485
+ "name": "SbbFormFieldElement",
129486
+ "module": "form-field/form-field/form-field.component.js"
129500
129487
  }
129501
129488
  },
129502
129489
  {
129503
129490
  "kind": "field",
129504
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
129491
+ "name": "_hintElements",
129505
129492
  "type": {
129506
- "text": "array"
129493
+ "text": "Element[]"
129507
129494
  },
129508
129495
  "privacy": "private",
129509
- "readonly": true,
129510
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
129496
+ "default": "[]",
129497
+ "description": "It is used internally to get the `hint` slot.",
129511
129498
  "inheritedFrom": {
129512
- "name": "SbbButtonBaseElement",
129513
- "module": "core/base-elements/button-base-element.js"
129499
+ "name": "SbbFormFieldElement",
129500
+ "module": "form-field/form-field/form-field.component.js"
129514
129501
  }
129515
129502
  },
129516
129503
  {
129517
129504
  "kind": "field",
129518
- "name": "value",
129505
+ "name": "_input",
129519
129506
  "type": {
129520
- "text": "string"
129507
+ "text": "HTMLInputElement | HTMLSelectElement | HTMLElement | null"
129521
129508
  },
129522
- "privacy": "public",
129509
+ "privacy": "private",
129510
+ "default": "null",
129511
+ "description": "Reference to the slotted input element.",
129523
129512
  "inheritedFrom": {
129524
- "name": "SbbButtonBaseElement",
129525
- "module": "core/base-elements/button-base-element.js"
129526
- },
129527
- "default": "''",
129528
- "description": "Value of the form element.",
129529
- "attribute": "value"
129513
+ "name": "SbbFormFieldElement",
129514
+ "module": "form-field/form-field/form-field.component.js"
129515
+ }
129530
129516
  },
129531
129517
  {
129532
129518
  "kind": "field",
129533
- "name": "type",
129534
- "privacy": "public",
129535
- "description": "The type attribute to use for the button.",
129536
- "default": "'button'",
129519
+ "name": "_label",
129537
129520
  "type": {
129538
- "text": "SbbButtonType"
129521
+ "text": "HTMLLabelElement"
129539
129522
  },
129540
- "attribute": "type",
129523
+ "privacy": "private",
129524
+ "description": "Reference to the slotted label elements.",
129541
129525
  "inheritedFrom": {
129542
- "name": "SbbButtonBaseElement",
129543
- "module": "core/base-elements/button-base-element.js"
129526
+ "name": "SbbFormFieldElement",
129527
+ "module": "form-field/form-field/form-field.component.js"
129544
129528
  }
129545
129529
  },
129546
129530
  {
129547
129531
  "kind": "field",
129548
- "name": "form",
129532
+ "name": "inputElement",
129549
129533
  "type": {
129550
- "text": "HTMLFormElement | null"
129534
+ "text": "HTMLInputElement | HTMLSelectElement | HTMLElement | null"
129551
129535
  },
129552
129536
  "privacy": "public",
129553
- "description": "The `<form>` element to associate the button with.",
129537
+ "description": "Returns the input element.",
129538
+ "readonly": true,
129554
129539
  "inheritedFrom": {
129555
- "name": "SbbButtonBaseElement",
129556
- "module": "core/base-elements/button-base-element.js"
129557
- },
129558
- "attribute": "form"
129540
+ "name": "SbbFormFieldElement",
129541
+ "module": "form-field/form-field/form-field.component.js"
129542
+ }
129559
129543
  },
129560
129544
  {
129561
129545
  "kind": "field",
129562
- "name": "_formId",
129546
+ "name": "label",
129563
129547
  "type": {
129564
- "text": "string"
129548
+ "text": "HTMLLabelElement | null"
129565
129549
  },
129566
- "privacy": "private",
129567
- "default": "''",
129550
+ "privacy": "public",
129551
+ "description": "Reference to the slotted label.",
129552
+ "readonly": true,
129568
129553
  "inheritedFrom": {
129569
- "name": "SbbButtonBaseElement",
129570
- "module": "core/base-elements/button-base-element.js"
129554
+ "name": "SbbFormFieldElement",
129555
+ "module": "form-field/form-field/form-field.component.js"
129571
129556
  }
129572
129557
  },
129573
129558
  {
129574
129559
  "kind": "field",
129575
- "name": "_handleButtonClick",
129560
+ "name": "_language",
129576
129561
  "privacy": "private",
129562
+ "default": "new SbbLanguageController(this)",
129577
129563
  "inheritedFrom": {
129578
- "name": "SbbButtonBaseElement",
129579
- "module": "core/base-elements/button-base-element.js"
129564
+ "name": "SbbFormFieldElement",
129565
+ "module": "form-field/form-field/form-field.component.js"
129580
129566
  }
129581
129567
  },
129582
129568
  {
129583
- "kind": "method",
129584
- "name": "_requestSubmit",
129569
+ "kind": "field",
129570
+ "name": "_formFieldAttributeObserver",
129585
129571
  "privacy": "private",
129586
- "return": {
129587
- "type": {
129588
- "text": "void"
129589
- }
129590
- },
129591
- "parameters": [
129592
- {
129593
- "name": "form",
129594
- "type": {
129595
- "text": "HTMLFormElement"
129596
- }
129597
- }
129598
- ],
129572
+ "description": "Listens to the changes on `readonly` and `disabled` attributes of `<input>`.",
129599
129573
  "inheritedFrom": {
129600
- "name": "SbbButtonBaseElement",
129601
- "module": "core/base-elements/button-base-element.js"
129574
+ "name": "SbbFormFieldElement",
129575
+ "module": "form-field/form-field/form-field.component.js"
129602
129576
  }
129603
129577
  },
129604
129578
  {
129605
129579
  "kind": "field",
129606
- "name": "_formKeyDown",
129580
+ "name": "_inputFormAbortController",
129607
129581
  "privacy": "private",
129582
+ "default": "new AbortController()",
129608
129583
  "inheritedFrom": {
129609
- "name": "SbbButtonBaseElement",
129610
- "module": "core/base-elements/button-base-element.js"
129584
+ "name": "SbbFormFieldElement",
129585
+ "module": "form-field/form-field/form-field.component.js"
129611
129586
  }
129612
129587
  },
129613
129588
  {
129614
129589
  "kind": "field",
129615
- "name": "formAssociated",
129590
+ "name": "_control",
129616
129591
  "type": {
129617
- "text": "boolean"
129592
+ "text": "SbbFormFieldElementControl | null"
129618
129593
  },
129619
- "privacy": "public",
129620
- "static": true,
129621
- "default": "true",
129594
+ "privacy": "private",
129595
+ "default": "null",
129622
129596
  "inheritedFrom": {
129623
- "name": "SbbFormAssociatedMixin",
129624
- "module": "core/mixins/form-associated-mixin.js"
129597
+ "name": "SbbFormFieldElement",
129598
+ "module": "form-field/form-field/form-field.component.js"
129625
129599
  }
129626
129600
  },
129627
129601
  {
129628
129602
  "kind": "field",
129629
- "name": "name",
129630
- "privacy": "public",
129631
- "description": "Name of the form element. Will be read from name attribute.",
129603
+ "name": "_previousType",
129632
129604
  "type": {
129633
- "text": "string"
129605
+ "text": "string | null"
129634
129606
  },
129635
- "attribute": "name",
129607
+ "privacy": "private",
129608
+ "default": "null",
129636
129609
  "inheritedFrom": {
129637
- "name": "SbbFormAssociatedMixin",
129638
- "module": "core/mixins/form-associated-mixin.js"
129610
+ "name": "SbbFormFieldElement",
129611
+ "module": "form-field/form-field/form-field.component.js"
129639
129612
  }
129640
129613
  },
129641
129614
  {
129642
- "kind": "field",
129643
- "name": "validity",
129644
- "type": {
129645
- "text": "ValidityState"
129615
+ "kind": "method",
129616
+ "name": "_handleWrapperClick",
129617
+ "privacy": "private",
129618
+ "return": {
129619
+ "type": {
129620
+ "text": "void"
129621
+ }
129646
129622
  },
129647
- "privacy": "public",
129648
- "description": "Returns the ValidityState object for this element.",
129649
- "readonly": true,
129623
+ "parameters": [
129624
+ {
129625
+ "name": "event",
129626
+ "type": {
129627
+ "text": "MouseEvent"
129628
+ }
129629
+ }
129630
+ ],
129650
129631
  "inheritedFrom": {
129651
- "name": "SbbFormAssociatedMixin",
129652
- "module": "core/mixins/form-associated-mixin.js"
129632
+ "name": "SbbFormFieldElement",
129633
+ "module": "form-field/form-field/form-field.component.js"
129653
129634
  }
129654
129635
  },
129655
129636
  {
129656
- "kind": "field",
129657
- "name": "validationMessage",
129658
- "type": {
129659
- "text": "string"
129637
+ "kind": "method",
129638
+ "name": "_isElementFocusExcluded",
129639
+ "privacy": "private",
129640
+ "return": {
129641
+ "type": {
129642
+ "text": "boolean"
129643
+ }
129660
129644
  },
129661
- "privacy": "public",
129662
- "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.",
129663
- "readonly": true,
129645
+ "parameters": [
129646
+ {
129647
+ "name": "event",
129648
+ "type": {
129649
+ "text": "Event"
129650
+ }
129651
+ }
129652
+ ],
129664
129653
  "inheritedFrom": {
129665
- "name": "SbbFormAssociatedMixin",
129666
- "module": "core/mixins/form-associated-mixin.js"
129654
+ "name": "SbbFormFieldElement",
129655
+ "module": "form-field/form-field/form-field.component.js"
129667
129656
  }
129668
129657
  },
129669
129658
  {
129670
- "kind": "field",
129671
- "name": "willValidate",
129672
- "type": {
129673
- "text": "boolean"
129659
+ "kind": "method",
129660
+ "name": "_onSlotLabelChange",
129661
+ "privacy": "private",
129662
+ "return": {
129663
+ "type": {
129664
+ "text": "void"
129665
+ }
129674
129666
  },
129675
- "privacy": "public",
129676
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
129677
- "readonly": true,
129678
129667
  "inheritedFrom": {
129679
- "name": "SbbFormAssociatedMixin",
129680
- "module": "core/mixins/form-associated-mixin.js"
129668
+ "name": "SbbFormFieldElement",
129669
+ "module": "form-field/form-field/form-field.component.js"
129681
129670
  }
129682
129671
  },
129683
129672
  {
129684
- "kind": "field",
129685
- "name": "_validityStates",
129673
+ "kind": "method",
129674
+ "name": "_onSlotInputChange",
129686
129675
  "privacy": "private",
129687
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
129676
+ "return": {
129677
+ "type": {
129678
+ "text": "void"
129679
+ }
129680
+ },
129681
+ "description": "It is used internally to assign the attributes of `<input>` to `_id` and `_input` and to observe the native readonly and disabled attributes.",
129688
129682
  "inheritedFrom": {
129689
- "name": "SbbFormAssociatedMixin",
129690
- "module": "core/mixins/form-associated-mixin.js"
129683
+ "name": "SbbFormFieldElement",
129684
+ "module": "form-field/form-field/form-field.component.js"
129691
129685
  }
129692
129686
  },
129693
129687
  {
129694
- "kind": "field",
129695
- "name": "formDisabled",
129696
- "type": {
129697
- "text": "boolean"
129688
+ "kind": "method",
129689
+ "name": "_assignSlots",
129690
+ "privacy": "private",
129691
+ "return": {
129692
+ "type": {
129693
+ "text": "void"
129694
+ }
129698
129695
  },
129699
- "privacy": "protected",
129700
- "default": "false",
129701
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
129702
129696
  "inheritedFrom": {
129703
- "name": "SbbFormAssociatedMixin",
129704
- "module": "core/mixins/form-associated-mixin.js"
129697
+ "name": "SbbFormFieldElement",
129698
+ "module": "form-field/form-field/form-field.component.js"
129705
129699
  }
129706
129700
  },
129707
129701
  {
129708
129702
  "kind": "method",
129709
- "name": "checkValidity",
129710
- "privacy": "public",
129703
+ "name": "_connectInputElement",
129704
+ "privacy": "private",
129711
129705
  "return": {
129712
129706
  "type": {
129713
- "text": "boolean"
129707
+ "text": "'changed' | 'no-input' | 'unchanged'"
129714
129708
  }
129715
129709
  },
129716
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
129717
129710
  "inheritedFrom": {
129718
- "name": "SbbFormAssociatedMixin",
129719
- "module": "core/mixins/form-associated-mixin.js"
129711
+ "name": "SbbFormFieldElement",
129712
+ "module": "form-field/form-field/form-field.component.js"
129720
129713
  }
129721
129714
  },
129722
129715
  {
129723
129716
  "kind": "method",
129724
- "name": "reportValidity",
129725
- "privacy": "public",
129717
+ "name": "_syncLabelInputReferences",
129718
+ "privacy": "private",
129726
129719
  "return": {
129727
129720
  "type": {
129728
- "text": "boolean"
129721
+ "text": "void"
129729
129722
  }
129730
129723
  },
129731
- "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.",
129732
129724
  "inheritedFrom": {
129733
- "name": "SbbFormAssociatedMixin",
129734
- "module": "core/mixins/form-associated-mixin.js"
129725
+ "name": "SbbFormFieldElement",
129726
+ "module": "form-field/form-field/form-field.component.js"
129735
129727
  }
129736
129728
  },
129737
129729
  {
129738
129730
  "kind": "method",
129739
- "name": "setCustomValidity",
129740
- "privacy": "public",
129731
+ "name": "_isInputElement",
129732
+ "privacy": "private",
129741
129733
  "return": {
129742
129734
  "type": {
129743
- "text": "void"
129735
+ "text": "boolean"
129744
129736
  }
129745
129737
  },
129746
129738
  "parameters": [
129747
129739
  {
129748
- "name": "message",
129740
+ "name": "input",
129749
129741
  "type": {
129750
- "text": "string"
129742
+ "text": "Element"
129751
129743
  }
129752
129744
  }
129753
129745
  ],
129754
- "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.",
129755
129746
  "inheritedFrom": {
129756
- "name": "SbbFormAssociatedMixin",
129757
- "module": "core/mixins/form-associated-mixin.js"
129747
+ "name": "SbbFormFieldElement",
129748
+ "module": "form-field/form-field/form-field.component.js"
129758
129749
  }
129759
129750
  },
129760
129751
  {
129761
129752
  "kind": "method",
129762
- "name": "_hasDisabledAncestor",
129753
+ "name": "_readInputState",
129763
129754
  "privacy": "private",
129764
129755
  "return": {
129765
129756
  "type": {
129766
- "text": "boolean"
129757
+ "text": "void"
129767
129758
  }
129768
129759
  },
129769
129760
  "inheritedFrom": {
129770
- "name": "SbbFormAssociatedMixin",
129771
- "module": "core/mixins/form-associated-mixin.js"
129761
+ "name": "SbbFormFieldElement",
129762
+ "module": "form-field/form-field/form-field.component.js"
129772
129763
  }
129773
129764
  },
129774
129765
  {
129775
129766
  "kind": "method",
129776
- "name": "updateFormValue",
129777
- "privacy": "protected",
129767
+ "name": "_registerInputFormListener",
129768
+ "privacy": "private",
129778
129769
  "return": {
129779
129770
  "type": {
129780
129771
  "text": "void"
129781
129772
  }
129782
129773
  },
129783
- "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",
129784
129774
  "inheritedFrom": {
129785
- "name": "SbbFormAssociatedMixin",
129786
- "module": "core/mixins/form-associated-mixin.js"
129775
+ "name": "SbbFormFieldElement",
129776
+ "module": "form-field/form-field/form-field.component.js"
129787
129777
  }
129788
129778
  },
129789
129779
  {
129790
129780
  "kind": "method",
129791
- "name": "formState",
129792
- "privacy": "protected",
129781
+ "name": "_patchInputValue",
129782
+ "privacy": "private",
129793
129783
  "return": {
129794
129784
  "type": {
129795
- "text": "FormRestoreState"
129785
+ "text": "void"
129796
129786
  }
129797
129787
  },
129798
129788
  "inheritedFrom": {
129799
- "name": "SbbFormAssociatedMixin",
129800
- "module": "core/mixins/form-associated-mixin.js"
129789
+ "name": "SbbFormFieldElement",
129790
+ "module": "form-field/form-field/form-field.component.js"
129801
129791
  }
129802
129792
  },
129803
129793
  {
129804
129794
  "kind": "method",
129805
- "name": "setValidityFlag",
129806
- "privacy": "protected",
129795
+ "name": "_unpatchInputValue",
129796
+ "privacy": "private",
129807
129797
  "return": {
129808
129798
  "type": {
129809
129799
  "text": "void"
129810
129800
  }
129811
129801
  },
129812
- "parameters": [
129813
- {
129814
- "name": "flag",
129815
- "type": {
129816
- "text": "T"
129817
- }
129818
- },
129819
- {
129820
- "name": "message",
129821
- "type": {
129822
- "text": "string"
129823
- }
129824
- },
129825
- {
129826
- "name": "flagValue",
129827
- "optional": true,
129828
- "type": {
129829
- "text": "ValidityStateFlags[T]"
129830
- }
129831
- }
129832
- ],
129833
- "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).",
129834
129802
  "inheritedFrom": {
129835
- "name": "SbbFormAssociatedMixin",
129836
- "module": "core/mixins/form-associated-mixin.js"
129803
+ "name": "SbbFormFieldElement",
129804
+ "module": "form-field/form-field/form-field.component.js"
129837
129805
  }
129838
129806
  },
129839
129807
  {
129840
129808
  "kind": "method",
129841
- "name": "removeValidityFlag",
129842
- "privacy": "protected",
129809
+ "name": "_checkAndUpdateInputEmpty",
129810
+ "privacy": "private",
129843
129811
  "return": {
129844
129812
  "type": {
129845
129813
  "text": "void"
129846
129814
  }
129847
129815
  },
129848
- "parameters": [
129849
- {
129850
- "name": "flag",
129851
- "type": {
129852
- "text": "T"
129853
- }
129854
- }
129855
- ],
129856
- "description": "Removes the validity state flag entry and updates validity state.",
129857
129816
  "inheritedFrom": {
129858
- "name": "SbbFormAssociatedMixin",
129859
- "module": "core/mixins/form-associated-mixin.js"
129817
+ "name": "SbbFormFieldElement",
129818
+ "module": "form-field/form-field/form-field.component.js"
129860
129819
  }
129861
129820
  },
129862
129821
  {
129863
129822
  "kind": "method",
129864
- "name": "validate",
129865
- "privacy": "protected",
129823
+ "name": "_isInputEmpty",
129824
+ "privacy": "private",
129866
129825
  "return": {
129867
129826
  "type": {
129868
- "text": "void"
129827
+ "text": "boolean"
129869
129828
  }
129870
129829
  },
129871
- "description": "To be called whenever the current element needs to be validated.",
129872
129830
  "inheritedFrom": {
129873
- "name": "SbbFormAssociatedMixin",
129874
- "module": "core/mixins/form-associated-mixin.js"
129831
+ "name": "SbbFormFieldElement",
129832
+ "module": "form-field/form-field/form-field.component.js"
129875
129833
  }
129876
129834
  },
129877
129835
  {
129878
129836
  "kind": "method",
129879
- "name": "shouldValidate",
129880
- "privacy": "protected",
129837
+ "name": "_isInputValueEmpty",
129838
+ "privacy": "private",
129881
129839
  "return": {
129882
129840
  "type": {
129883
129841
  "text": "boolean"
129884
129842
  }
129885
129843
  },
129844
+ "inheritedFrom": {
129845
+ "name": "SbbFormFieldElement",
129846
+ "module": "form-field/form-field/form-field.component.js"
129847
+ }
129848
+ },
129849
+ {
129850
+ "kind": "method",
129851
+ "name": "_onSlotErrorChange",
129852
+ "privacy": "private",
129853
+ "return": {
129854
+ "type": {
129855
+ "text": "void"
129856
+ }
129857
+ },
129886
129858
  "parameters": [
129887
129859
  {
129888
- "name": "name",
129860
+ "name": "event",
129889
129861
  "type": {
129890
- "text": "PropertyKey | undefined"
129862
+ "text": "Event"
129891
129863
  }
129892
129864
  }
129893
129865
  ],
129894
- "description": "Whether validation should be run on a property change with the given name.",
129866
+ "description": "It is used internally to set the aria-describedby attribute for the slotted input referencing available <sbb-error> instances.",
129895
129867
  "inheritedFrom": {
129896
- "name": "SbbFormAssociatedMixin",
129897
- "module": "core/mixins/form-associated-mixin.js"
129868
+ "name": "SbbFormFieldElement",
129869
+ "module": "form-field/form-field/form-field.component.js"
129898
129870
  }
129899
129871
  },
129900
129872
  {
129901
129873
  "kind": "method",
129902
- "name": "_setInternalValidity",
129874
+ "name": "_onSlotHintChange",
129903
129875
  "privacy": "private",
129904
129876
  "return": {
129905
129877
  "type": {
129906
129878
  "text": "void"
129907
129879
  }
129908
129880
  },
129909
- "inheritedFrom": {
129910
- "name": "SbbFormAssociatedMixin",
129911
- "module": "core/mixins/form-associated-mixin.js"
129912
- }
129913
- },
129914
- {
129915
- "kind": "field",
129916
- "name": "role",
129917
- "type": {
129918
- "text": "ElementInternals['role']"
129919
- },
129920
- "privacy": "public",
129921
- "static": true,
129922
- "readonly": true,
129923
- "default": "'button'",
129924
- "inheritedFrom": {
129925
- "name": "SbbButtonLikeBaseElement",
129926
- "module": "core/base-elements/button-base-element.js"
129927
- }
129928
- },
129929
- {
129930
- "kind": "field",
129931
- "name": "_preventScrollOnSpaceKeydown",
129932
- "privacy": "private",
129933
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
129934
129881
  "parameters": [
129935
129882
  {
129936
- "description": "The origin event.",
129937
- "name": "event"
129883
+ "name": "event",
129884
+ "type": {
129885
+ "text": "Event"
129886
+ }
129938
129887
  }
129939
129888
  ],
129889
+ "description": "It is used internally to set the aria-describedby attribute for the slotted input referencing available <sbb-hint> instances.",
129940
129890
  "inheritedFrom": {
129941
- "name": "SbbButtonLikeBaseElement",
129942
- "module": "core/base-elements/button-base-element.js"
129943
- }
129944
- },
129945
- {
129946
- "kind": "field",
129947
- "name": "_removeActiveMarker",
129948
- "privacy": "private",
129949
- "inheritedFrom": {
129950
- "name": "SbbButtonLikeBaseElement",
129951
- "module": "core/base-elements/button-base-element.js"
129891
+ "name": "SbbFormFieldElement",
129892
+ "module": "form-field/form-field/form-field.component.js"
129952
129893
  }
129953
129894
  },
129954
129895
  {
129955
- "kind": "field",
129956
- "name": "_dispatchClickEventOnSpaceKeyup",
129896
+ "kind": "method",
129897
+ "name": "_assignAriaDescribedByElements",
129957
129898
  "privacy": "private",
129958
- "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.",
129959
- "parameters": [
129960
- {
129961
- "description": "The origin event.",
129962
- "name": "event"
129899
+ "return": {
129900
+ "type": {
129901
+ "text": "void"
129963
129902
  }
129964
- ],
129903
+ },
129965
129904
  "inheritedFrom": {
129966
- "name": "SbbButtonLikeBaseElement",
129967
- "module": "core/base-elements/button-base-element.js"
129905
+ "name": "SbbFormFieldElement",
129906
+ "module": "form-field/form-field/form-field.component.js"
129968
129907
  }
129969
129908
  },
129970
129909
  {
129971
- "kind": "field",
129972
- "name": "_dispatchClickEvent",
129973
- "privacy": "private",
129910
+ "kind": "method",
129911
+ "name": "reset",
129912
+ "privacy": "public",
129913
+ "return": {
129914
+ "type": {
129915
+ "text": "void"
129916
+ }
129917
+ },
129918
+ "description": "Manually reset the form field. Currently, this only resets the floating label.",
129974
129919
  "inheritedFrom": {
129975
- "name": "SbbButtonLikeBaseElement",
129976
- "module": "core/base-elements/button-base-element.js"
129920
+ "name": "SbbFormFieldElement",
129921
+ "module": "form-field/form-field/form-field.component.js"
129977
129922
  }
129978
129923
  },
129979
129924
  {
129980
- "kind": "field",
129981
- "name": "maybeDisabled",
129982
- "type": {
129983
- "text": "boolean | undefined"
129925
+ "kind": "method",
129926
+ "name": "clear",
129927
+ "privacy": "public",
129928
+ "return": {
129929
+ "type": {
129930
+ "text": "void"
129931
+ }
129984
129932
  },
129985
- "privacy": "protected",
129986
- "readonly": true,
129933
+ "description": "Manually clears the input value. It only works for inputs, selects are not supported.",
129987
129934
  "inheritedFrom": {
129988
- "name": "SbbActionBaseElement",
129989
- "module": "core/base-elements/action-base-element.js"
129935
+ "name": "SbbFormFieldElement",
129936
+ "module": "form-field/form-field/form-field.component.js"
129990
129937
  }
129991
129938
  },
129992
129939
  {
129993
- "kind": "field",
129994
- "name": "maybeDisabledInteractive",
129995
- "type": {
129996
- "text": "boolean | undefined"
129940
+ "kind": "method",
129941
+ "name": "_syncNegative",
129942
+ "privacy": "private",
129943
+ "return": {
129944
+ "type": {
129945
+ "text": "void"
129946
+ }
129997
129947
  },
129998
- "privacy": "protected",
129999
- "readonly": true,
130000
129948
  "inheritedFrom": {
130001
- "name": "SbbActionBaseElement",
130002
- "module": "core/base-elements/action-base-element.js"
129949
+ "name": "SbbFormFieldElement",
129950
+ "module": "form-field/form-field/form-field.component.js"
130003
129951
  }
130004
129952
  },
130005
129953
  {
130006
129954
  "kind": "method",
130007
- "name": "setupBaseEventHandlers",
130008
- "privacy": "protected",
129955
+ "name": "_syncSize",
129956
+ "privacy": "private",
130009
129957
  "return": {
130010
129958
  "type": {
130011
129959
  "text": "void"
130012
129960
  }
130013
129961
  },
130014
129962
  "inheritedFrom": {
130015
- "name": "SbbActionBaseElement",
130016
- "module": "core/base-elements/action-base-element.js"
129963
+ "name": "SbbFormFieldElement",
129964
+ "module": "form-field/form-field/form-field.component.js"
130017
129965
  }
130018
129966
  },
130019
129967
  {
@@ -130122,184 +130070,184 @@
130122
130070
  }
130123
130071
  }
130124
130072
  ],
130125
- "events": [
130126
- {
130127
- "type": {
130128
- "text": "Event"
130129
- },
130130
- "description": "The change event is fired on the associated inputs when the user modifies the element's value. Unlike the input event, the change event is not necessarily fired for each alteration to an element's value.",
130131
- "name": "change"
130132
- },
130133
- {
130134
- "type": {
130135
- "text": "InputEvent"
130136
- },
130137
- "description": "The input event fires on the associated inputs when the value has been changed as a direct result of a user action.",
130138
- "name": "input"
130139
- }
130140
- ],
130141
130073
  "superclass": {
130142
- "name": "SbbSecondaryButtonElement",
130143
- "module": "button.pure.js"
130074
+ "name": "SbbFormFieldElement",
130075
+ "module": "form-field.pure.js"
130144
130076
  },
130145
- "tagName": "sbb-timetable-form-swap-button",
130077
+ "tagName": "sbb-timetable-form-field",
130146
130078
  "customElement": true,
130147
130079
  "attributes": [
130148
130080
  {
130149
- "name": "size",
130081
+ "name": "negative",
130150
130082
  "type": {
130151
- "text": "SbbButtonSize"
130083
+ "text": "boolean"
130152
130084
  },
130153
- "description": "Size variant, either l, m or s.",
130154
- "default": "'l' / 's' (lean)",
130155
- "fieldName": "size",
130085
+ "default": "false",
130086
+ "description": "Negative coloring variant flag.",
130087
+ "fieldName": "negative",
130156
130088
  "inheritedFrom": {
130157
- "name": "SbbButtonCommonElementMixin",
130158
- "module": "button/common/button-common.js"
130089
+ "name": "SbbNegativeMixin",
130090
+ "module": "core/mixins/negative-mixin.js"
130159
130091
  }
130160
130092
  },
130161
130093
  {
130162
- "name": "loading",
130094
+ "name": "error-space",
130163
130095
  "type": {
130164
- "text": "boolean"
130096
+ "text": "'none' | 'reserve'"
130165
130097
  },
130166
- "default": "false",
130167
- "description": "Whether the button indicates a loading state.\nThe animation kicks in after a delay of 300ms, configurable with --sbb-button-loading-delay CSS variable.",
130168
- "fieldName": "loading",
130098
+ "default": "'none'",
130099
+ "description": "Whether to reserve space for an error message, hint or text-counter.\n`none` does not reserve any space.\n`reserve` does reserve one row for an error message.",
130100
+ "fieldName": "errorSpace",
130169
130101
  "inheritedFrom": {
130170
- "name": "SbbButtonCommonElementMixin",
130171
- "module": "button/common/button-common.js"
130102
+ "name": "SbbFormFieldElement",
130103
+ "module": "form-field/form-field/form-field.component.js"
130172
130104
  }
130173
130105
  },
130174
130106
  {
130175
- "name": "negative",
130107
+ "name": "optional",
130176
130108
  "type": {
130177
130109
  "text": "boolean"
130178
130110
  },
130179
130111
  "default": "false",
130180
- "description": "Negative coloring variant flag.",
130181
- "fieldName": "negative",
130112
+ "description": "Indicates whether the input is optional.",
130113
+ "deprecated": "Set the (optional) label text manually. Will be removed with next major version.",
130114
+ "fieldName": "optional",
130182
130115
  "inheritedFrom": {
130183
- "name": "SbbNegativeMixin",
130184
- "module": "core/mixins/negative-mixin.js"
130116
+ "name": "SbbFormFieldElement",
130117
+ "module": "form-field/form-field/form-field.component.js"
130185
130118
  }
130186
130119
  },
130187
130120
  {
130188
- "name": "icon-name",
130121
+ "name": "size",
130189
130122
  "type": {
130190
- "text": "string"
130123
+ "text": "'l' | 'm' | 's'"
130191
130124
  },
130192
- "default": "''",
130193
- "description": "The icon name we want to use, choose from the small icon variants\nfrom the ui-icons category from here\nhttps://icons.app.sbb.ch.",
130194
- "fieldName": "iconName",
130125
+ "description": "Size variant, either l, m or s.",
130126
+ "default": "'m' / 's' (lean)",
130127
+ "fieldName": "size",
130195
130128
  "inheritedFrom": {
130196
- "name": "SbbIconNameMixin",
130197
- "module": "icon/icon-name-mixin.js"
130129
+ "name": "SbbFormFieldElement",
130130
+ "module": "form-field/form-field/form-field.component.js"
130198
130131
  }
130199
130132
  },
130200
130133
  {
130201
- "name": "disabled-interactive",
130134
+ "name": "borderless",
130202
130135
  "type": {
130203
130136
  "text": "boolean"
130204
130137
  },
130205
130138
  "default": "false",
130206
- "description": "Whether the button should be aria-disabled but stay interactive.",
130207
- "fieldName": "disabledInteractive",
130139
+ "description": "Whether to display the form field without a border.",
130140
+ "fieldName": "borderless",
130208
130141
  "inheritedFrom": {
130209
- "name": "SbbDisabledInteractiveMixin",
130210
- "module": "core/mixins/disabled-mixin.js"
130142
+ "name": "SbbFormFieldElement",
130143
+ "module": "form-field/form-field/form-field.component.js"
130211
130144
  }
130212
130145
  },
130213
130146
  {
130214
- "name": "disabled",
130215
- "description": "Whether the component is disabled.",
130216
- "default": "false",
130147
+ "name": "width",
130217
130148
  "type": {
130218
- "text": "boolean"
130149
+ "text": "'default' | 'collapse'"
130219
130150
  },
130220
- "fieldName": "disabled",
130151
+ "default": "'default'",
130152
+ "description": "Defines the width of the component:\n- `default`: the component has defined width and min-width;\n- `collapse`: the component adapts itself to its inner input content.",
130153
+ "fieldName": "width",
130221
130154
  "inheritedFrom": {
130222
- "name": "SbbDisabledMixin",
130223
- "module": "core/mixins/disabled-mixin.js"
130155
+ "name": "SbbFormFieldElement",
130156
+ "module": "form-field/form-field/form-field.component.js"
130224
130157
  }
130225
130158
  },
130226
130159
  {
130227
- "name": "value",
130160
+ "name": "hidden-label",
130228
130161
  "type": {
130229
- "text": "string"
130162
+ "text": "boolean"
130230
130163
  },
130231
- "default": "''",
130232
- "description": "Value of the form element.",
130233
- "fieldName": "value",
130164
+ "default": "false",
130165
+ "description": "Whether to visually hide the label. If hidden, screen readers will still read it.",
130166
+ "fieldName": "hiddenLabel",
130234
130167
  "inheritedFrom": {
130235
- "name": "SbbButtonBaseElement",
130236
- "module": "core/base-elements/button-base-element.js"
130168
+ "name": "SbbFormFieldElement",
130169
+ "module": "form-field/form-field/form-field.component.js"
130237
130170
  }
130238
130171
  },
130239
130172
  {
130240
- "name": "type",
130241
- "description": "The type attribute to use for the button.",
130242
- "default": "'button'",
130173
+ "name": "floating-label",
130243
130174
  "type": {
130244
- "text": "SbbButtonType"
130175
+ "text": "boolean"
130245
130176
  },
130246
- "fieldName": "type",
130177
+ "default": "false",
130178
+ "description": "Whether the label should float. If activated, the placeholder of the input is hidden.",
130179
+ "fieldName": "floatingLabel",
130247
130180
  "inheritedFrom": {
130248
- "name": "SbbButtonBaseElement",
130249
- "module": "core/base-elements/button-base-element.js"
130181
+ "name": "SbbFormFieldElement",
130182
+ "module": "form-field/form-field/form-field.component.js"
130183
+ }
130184
+ }
130185
+ ],
130186
+ "slots": [
130187
+ {
130188
+ "description": "Use this slot to render an input/select or a supported non-native element.",
130189
+ "name": "",
130190
+ "inheritedFrom": {
130191
+ "name": "SbbFormFieldElement",
130192
+ "module": "form-field/form-field/form-field.component.js"
130250
130193
  }
130251
130194
  },
130252
130195
  {
130253
- "name": "form",
130254
- "description": "The `<form>` element to associate the button with.",
130255
- "type": {
130256
- "text": "HTMLFormElement | null"
130257
- },
130258
- "fieldName": "form",
130196
+ "description": "Use this slot to render a label.",
130197
+ "name": "label",
130259
130198
  "inheritedFrom": {
130260
- "name": "SbbButtonBaseElement",
130261
- "module": "core/base-elements/button-base-element.js"
130199
+ "name": "SbbFormFieldElement",
130200
+ "module": "form-field/form-field/form-field.component.js"
130262
130201
  }
130263
130202
  },
130264
130203
  {
130265
- "name": "name",
130266
- "description": "Name of the form element. Will be read from name attribute.",
130267
- "type": {
130268
- "text": "string"
130269
- },
130270
- "fieldName": "name",
130204
+ "description": "Use this slot to render an icon on the left side of the input.",
130205
+ "name": "prefix",
130271
130206
  "inheritedFrom": {
130272
- "name": "SbbFormAssociatedMixin",
130273
- "module": "core/mixins/form-associated-mixin.js"
130207
+ "name": "SbbFormFieldElement",
130208
+ "module": "form-field/form-field/form-field.component.js"
130274
130209
  }
130275
- }
130276
- ],
130277
- "slots": [
130210
+ },
130278
130211
  {
130279
- "description": "Use the unnamed slot to add content to the secondary-button.",
130280
- "name": "",
130212
+ "description": "Use this slot to render an icon on the right side of the input.",
130213
+ "name": "suffix",
130281
130214
  "inheritedFrom": {
130282
- "name": "SbbSecondaryButtonElement",
130283
- "module": "button/secondary-button/secondary-button.component.js"
130215
+ "name": "SbbFormFieldElement",
130216
+ "module": "form-field/form-field/form-field.component.js"
130284
130217
  }
130285
130218
  },
130286
130219
  {
130287
- "description": "Slot used to display the icon, if one is set.",
130288
- "name": "icon",
130220
+ "description": "Use this slot to render an error.",
130221
+ "name": "error",
130289
130222
  "inheritedFrom": {
130290
- "name": "SbbSecondaryButtonElement",
130291
- "module": "button/secondary-button/secondary-button.component.js"
130223
+ "name": "SbbFormFieldElement",
130224
+ "module": "form-field/form-field/form-field.component.js"
130225
+ }
130226
+ },
130227
+ {
130228
+ "description": "Use this slot to render an `<sbb-hint>` or an `<sbb-form-field-text-counter>` element.",
130229
+ "name": "hint",
130230
+ "inheritedFrom": {
130231
+ "name": "SbbFormFieldElement",
130232
+ "module": "form-field/form-field/form-field.component.js"
130292
130233
  }
130293
130234
  }
130294
130235
  ],
130295
130236
  "cssProperties": [
130296
130237
  {
130297
- "description": "The delay before the loading animation starts, when setting the button into loading state.",
130298
- "name": "--sbb-button-loading-delay",
130299
- "default": "300ms",
130238
+ "description": "To override the focus outline offset,",
130239
+ "name": "--sbb-form-field-outline-offset",
130300
130240
  "inheritedFrom": {
130301
- "name": "SbbSecondaryButtonElement",
130302
- "module": "button/secondary-button/secondary-button.component.js"
130241
+ "name": "SbbFormFieldElement",
130242
+ "module": "form-field/form-field/form-field.component.js"
130243
+ }
130244
+ },
130245
+ {
130246
+ "description": "To override the z-index of the focus underline effect,",
130247
+ "name": "--sbb-form-field-focus-underline-z-index",
130248
+ "inheritedFrom": {
130249
+ "name": "SbbFormFieldElement",
130250
+ "module": "form-field/form-field/form-field.component.js"
130303
130251
  }
130304
130252
  }
130305
130253
  ]
@@ -130308,22 +130256,22 @@
130308
130256
  "exports": [
130309
130257
  {
130310
130258
  "kind": "js",
130311
- "name": "SbbTimetableFormSwapButtonElement",
130259
+ "name": "SbbTimetableFormFieldElement",
130312
130260
  "declaration": {
130313
- "name": "SbbTimetableFormSwapButtonElement",
130314
- "module": "timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js"
130261
+ "name": "SbbTimetableFormFieldElement",
130262
+ "module": "timetable-form/timetable-form-field/timetable-form-field.component.js"
130315
130263
  }
130316
130264
  }
130317
130265
  ]
130318
130266
  },
130319
130267
  {
130320
130268
  "kind": "javascript-module",
130321
- "path": "timetable-form/timetable-form-field/timetable-form-field.component.js",
130269
+ "path": "timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js",
130322
130270
  "declarations": [
130323
130271
  {
130324
130272
  "kind": "class",
130325
- "description": "Extends the `sbb-form-field`. Meant to be used inside a `sbb-timetable-form`.",
130326
- "name": "SbbTimetableFormFieldElement",
130273
+ "description": "An extension of `sbb-secondary-button` to be used inside the `sbb-timetable-form`.\nWhen placed between two `sbb-timetable-form-field`, the 'click' swaps the value of the sibling inputs.",
130274
+ "name": "SbbTimetableFormSwapButtonElement",
130327
130275
  "members": [
130328
130276
  {
130329
130277
  "kind": "field",
@@ -130334,681 +130282,733 @@
130334
130282
  "privacy": "public",
130335
130283
  "static": true,
130336
130284
  "readonly": true,
130337
- "default": "'sbb-timetable-form-field'",
130338
130285
  "inheritedFrom": {
130339
130286
  "name": "SbbElement",
130340
130287
  "module": "core/base-elements/element.js"
130341
- }
130342
- },
130343
- {
130344
- "kind": "field",
130345
- "name": "_routeIcon",
130346
- "type": {
130347
- "text": "boolean"
130348
130288
  },
130349
- "privacy": "private",
130350
- "default": "false"
130289
+ "default": "'sbb-timetable-form-swap-button'"
130351
130290
  },
130352
130291
  {
130353
130292
  "kind": "field",
130354
- "name": "borderless",
130355
- "type": {
130356
- "text": "boolean"
130357
- },
130358
- "privacy": "public",
130359
- "default": "true",
130360
- "description": "Whether to display the form field without a border.",
130361
- "attribute": "borderless",
130362
- "reflects": true,
130363
- "inheritedFrom": {
130364
- "name": "SbbFormFieldElement",
130365
- "module": "form-field/form-field/form-field.component.js"
130366
- }
130293
+ "name": "_languageController",
130294
+ "privacy": "private",
130295
+ "default": "new SbbLanguageController(this)"
130367
130296
  },
130368
130297
  {
130369
- "kind": "field",
130370
- "name": "floatingLabel",
130371
- "type": {
130372
- "text": "boolean"
130298
+ "kind": "method",
130299
+ "name": "_invertFieldValues",
130300
+ "privacy": "private",
130301
+ "return": {
130302
+ "type": {
130303
+ "text": "void"
130304
+ }
130373
130305
  },
130374
- "privacy": "public",
130375
- "default": "true",
130376
- "description": "Whether the label should float. If activated, the placeholder of the input is hidden.",
130377
- "attribute": "floating-label",
130378
- "reflects": true,
130379
- "inheritedFrom": {
130380
- "name": "SbbFormFieldElement",
130381
- "module": "form-field/form-field/form-field.component.js"
130382
- }
130306
+ "description": "Search for `sbb-timetable-form-field` inputs, invert their values and dispatch the respective input and change events"
130383
130307
  },
130384
130308
  {
130385
- "kind": "field",
130386
- "name": "width",
130387
- "type": {
130388
- "text": "string"
130309
+ "kind": "method",
130310
+ "name": "renderIconName",
130311
+ "privacy": "protected",
130312
+ "return": {
130313
+ "type": {
130314
+ "text": "string"
130315
+ }
130389
130316
  },
130390
- "privacy": "public",
130391
- "default": "'collapse'",
130392
- "description": "Defines the width of the component:\n- `default`: the component has defined width and min-width;\n- `collapse`: the component adapts itself to its inner input content.",
130393
- "attribute": "width",
130394
- "reflects": true,
130395
130317
  "inheritedFrom": {
130396
- "name": "SbbFormFieldElement",
130397
- "module": "form-field/form-field/form-field.component.js"
130318
+ "name": "SbbIconNameMixin",
130319
+ "module": "icon/icon-name-mixin.js"
130398
130320
  }
130399
130321
  },
130400
130322
  {
130401
130323
  "kind": "field",
130402
130324
  "name": "size",
130403
130325
  "type": {
130404
- "text": "string"
130326
+ "text": "SbbButtonSize"
130405
130327
  },
130406
130328
  "privacy": "public",
130407
130329
  "description": "Size variant, either l, m or s.",
130408
- "default": "'l'",
130330
+ "default": "'l' / 's' (lean)",
130409
130331
  "attribute": "size",
130410
130332
  "reflects": true,
130411
130333
  "inheritedFrom": {
130412
- "name": "SbbFormFieldElement",
130413
- "module": "form-field/form-field/form-field.component.js"
130334
+ "name": "SbbButtonCommonElementMixin",
130335
+ "module": "button/common/button-common.js"
130414
130336
  }
130415
130337
  },
130416
130338
  {
130417
130339
  "kind": "field",
130418
- "name": "negative",
130340
+ "name": "loading",
130419
130341
  "type": {
130420
130342
  "text": "boolean"
130421
130343
  },
130422
130344
  "privacy": "public",
130423
130345
  "default": "false",
130424
- "description": "Negative coloring variant flag.",
130425
- "attribute": "negative",
130346
+ "description": "Whether the button indicates a loading state.\nThe animation kicks in after a delay of 300ms, configurable with --sbb-button-loading-delay CSS variable.",
130347
+ "attribute": "loading",
130426
130348
  "reflects": true,
130427
130349
  "inheritedFrom": {
130428
- "name": "SbbNegativeMixin",
130429
- "module": "core/mixins/negative-mixin.js"
130350
+ "name": "SbbButtonCommonElementMixin",
130351
+ "module": "button/common/button-common.js"
130430
130352
  }
130431
130353
  },
130432
130354
  {
130433
- "kind": "field",
130434
- "name": "_excludedFocusElements",
130435
- "type": {
130436
- "text": "array"
130355
+ "kind": "method",
130356
+ "name": "renderTemplate",
130357
+ "privacy": "protected",
130358
+ "return": {
130359
+ "type": {
130360
+ "text": "TemplateResult"
130361
+ }
130437
130362
  },
130438
- "privacy": "private",
130439
- "readonly": true,
130440
- "default": "['button', 'sbb-popover', 'sbb-option', 'sbb-chip']",
130363
+ "description": "Override this method to render the component template.",
130441
130364
  "inheritedFrom": {
130442
- "name": "SbbFormFieldElement",
130443
- "module": "form-field/form-field/form-field.component.js"
130365
+ "name": "SbbActionBaseElement",
130366
+ "module": "core/base-elements/action-base-element.js"
130444
130367
  }
130445
130368
  },
130446
130369
  {
130447
130370
  "kind": "field",
130448
- "name": "_floatingLabelSupportedInputElements",
130371
+ "name": "negative",
130449
130372
  "type": {
130450
- "text": "array"
130373
+ "text": "boolean"
130451
130374
  },
130452
- "privacy": "private",
130453
- "readonly": true,
130454
- "default": "[ 'input', 'select', 'textarea', 'sbb-select', ]",
130375
+ "privacy": "public",
130376
+ "default": "false",
130377
+ "description": "Negative coloring variant flag.",
130378
+ "attribute": "negative",
130379
+ "reflects": true,
130455
130380
  "inheritedFrom": {
130456
- "name": "SbbFormFieldElement",
130457
- "module": "form-field/form-field/form-field.component.js"
130381
+ "name": "SbbNegativeMixin",
130382
+ "module": "core/mixins/negative-mixin.js"
130458
130383
  }
130459
130384
  },
130460
130385
  {
130461
130386
  "kind": "field",
130462
- "name": "_floatingLabelSupportedInputTypes",
130387
+ "name": "iconName",
130463
130388
  "type": {
130464
- "text": "array"
130389
+ "text": "string"
130390
+ },
130391
+ "privacy": "public",
130392
+ "default": "''",
130393
+ "description": "The icon name we want to use, choose from the small icon variants\nfrom the ui-icons category from here\nhttps://icons.app.sbb.ch.",
130394
+ "attribute": "icon-name",
130395
+ "inheritedFrom": {
130396
+ "name": "SbbIconNameMixin",
130397
+ "module": "icon/icon-name-mixin.js"
130398
+ }
130399
+ },
130400
+ {
130401
+ "kind": "method",
130402
+ "name": "renderIconSlot",
130403
+ "privacy": "protected",
130404
+ "return": {
130405
+ "type": {
130406
+ "text": "TemplateResult"
130407
+ }
130465
130408
  },
130409
+ "parameters": [
130410
+ {
130411
+ "name": "classname",
130412
+ "optional": true,
130413
+ "type": {
130414
+ "text": "string"
130415
+ }
130416
+ }
130417
+ ],
130418
+ "inheritedFrom": {
130419
+ "name": "SbbIconNameMixin",
130420
+ "module": "icon/icon-name-mixin.js"
130421
+ }
130422
+ },
130423
+ {
130424
+ "kind": "method",
130425
+ "name": "_renderIconName",
130466
130426
  "privacy": "private",
130467
- "readonly": true,
130468
- "default": "[ 'email', 'number', 'password', 'search', 'tel', 'text', 'url', ]",
130427
+ "return": {
130428
+ "type": {
130429
+ "text": "string"
130430
+ }
130431
+ },
130469
130432
  "inheritedFrom": {
130470
- "name": "SbbFormFieldElement",
130471
- "module": "form-field/form-field/form-field.component.js"
130433
+ "name": "SbbIconNameMixin",
130434
+ "module": "icon/icon-name-mixin.js"
130472
130435
  }
130473
130436
  },
130474
130437
  {
130475
130438
  "kind": "field",
130476
- "name": "errorSpace",
130439
+ "name": "disabledInteractive",
130477
130440
  "type": {
130478
- "text": "'none' | 'reserve'"
130441
+ "text": "boolean"
130479
130442
  },
130480
130443
  "privacy": "public",
130481
- "default": "'none'",
130482
- "description": "Whether to reserve space for an error message, hint or text-counter.\n`none` does not reserve any space.\n`reserve` does reserve one row for an error message.",
130483
- "attribute": "error-space",
130444
+ "default": "false",
130445
+ "description": "Whether the button should be aria-disabled but stay interactive.",
130446
+ "attribute": "disabled-interactive",
130484
130447
  "reflects": true,
130485
130448
  "inheritedFrom": {
130486
- "name": "SbbFormFieldElement",
130487
- "module": "form-field/form-field/form-field.component.js"
130449
+ "name": "SbbDisabledInteractiveMixin",
130450
+ "module": "core/mixins/disabled-mixin.js"
130488
130451
  }
130489
130452
  },
130490
130453
  {
130491
130454
  "kind": "field",
130492
- "name": "optional",
130455
+ "name": "disabled",
130456
+ "privacy": "public",
130457
+ "description": "Whether the component is disabled.",
130458
+ "default": "false",
130493
130459
  "type": {
130494
130460
  "text": "boolean"
130495
130461
  },
130496
- "privacy": "public",
130497
- "default": "false",
130498
- "description": "Indicates whether the input is optional.",
130499
- "deprecated": "Set the (optional) label text manually. Will be removed with next major version.",
130500
- "attribute": "optional",
130462
+ "attribute": "disabled",
130463
+ "reflects": true,
130501
130464
  "inheritedFrom": {
130502
- "name": "SbbFormFieldElement",
130503
- "module": "form-field/form-field/form-field.component.js"
130465
+ "name": "SbbDisabledMixin",
130466
+ "module": "core/mixins/disabled-mixin.js"
130504
130467
  }
130505
130468
  },
130506
130469
  {
130507
130470
  "kind": "field",
130508
- "name": "hiddenLabel",
130471
+ "name": "#disabled",
130472
+ "privacy": "private",
130509
130473
  "type": {
130510
130474
  "text": "boolean"
130511
130475
  },
130512
- "privacy": "public",
130513
130476
  "default": "false",
130514
- "description": "Whether to visually hide the label. If hidden, screen readers will still read it.",
130515
- "attribute": "hidden-label",
130516
- "reflects": true,
130517
130477
  "inheritedFrom": {
130518
- "name": "SbbFormFieldElement",
130519
- "module": "form-field/form-field/form-field.component.js"
130478
+ "name": "SbbDisabledMixin",
130479
+ "module": "core/mixins/disabled-mixin.js"
130520
130480
  }
130521
130481
  },
130522
130482
  {
130523
- "kind": "field",
130524
- "name": "_errorElements",
130525
- "type": {
130526
- "text": "Element[]"
130483
+ "kind": "method",
130484
+ "name": "isDisabledExternally",
130485
+ "privacy": "protected",
130486
+ "return": {
130487
+ "type": {
130488
+ "text": "boolean"
130489
+ }
130527
130490
  },
130528
- "privacy": "private",
130529
- "default": "[]",
130530
- "description": "It is used internally to get the `error` slot.",
130491
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
130531
130492
  "inheritedFrom": {
130532
- "name": "SbbFormFieldElement",
130533
- "module": "form-field/form-field/form-field.component.js"
130493
+ "name": "SbbDisabledMixin",
130494
+ "module": "core/mixins/disabled-mixin.js"
130534
130495
  }
130535
130496
  },
130536
130497
  {
130537
130498
  "kind": "field",
130538
- "name": "_hintElements",
130499
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
130539
130500
  "type": {
130540
- "text": "Element[]"
130501
+ "text": "array"
130541
130502
  },
130542
130503
  "privacy": "private",
130543
- "default": "[]",
130544
- "description": "It is used internally to get the `hint` slot.",
130504
+ "readonly": true,
130505
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
130545
130506
  "inheritedFrom": {
130546
- "name": "SbbFormFieldElement",
130547
- "module": "form-field/form-field/form-field.component.js"
130507
+ "name": "SbbButtonBaseElement",
130508
+ "module": "core/base-elements/button-base-element.js"
130548
130509
  }
130549
130510
  },
130550
130511
  {
130551
130512
  "kind": "field",
130552
- "name": "_input",
130513
+ "name": "value",
130553
130514
  "type": {
130554
- "text": "HTMLInputElement | HTMLSelectElement | HTMLElement | null"
130515
+ "text": "string"
130555
130516
  },
130556
- "privacy": "private",
130557
- "default": "null",
130558
- "description": "Reference to the slotted input element.",
130517
+ "privacy": "public",
130559
130518
  "inheritedFrom": {
130560
- "name": "SbbFormFieldElement",
130561
- "module": "form-field/form-field/form-field.component.js"
130562
- }
130519
+ "name": "SbbButtonBaseElement",
130520
+ "module": "core/base-elements/button-base-element.js"
130521
+ },
130522
+ "default": "''",
130523
+ "description": "Value of the form element.",
130524
+ "attribute": "value"
130563
130525
  },
130564
130526
  {
130565
130527
  "kind": "field",
130566
- "name": "_label",
130528
+ "name": "type",
130529
+ "privacy": "public",
130530
+ "description": "The type attribute to use for the button.",
130531
+ "default": "'button'",
130567
130532
  "type": {
130568
- "text": "HTMLLabelElement"
130533
+ "text": "SbbButtonType"
130569
130534
  },
130570
- "privacy": "private",
130571
- "description": "Reference to the slotted label elements.",
130535
+ "attribute": "type",
130572
130536
  "inheritedFrom": {
130573
- "name": "SbbFormFieldElement",
130574
- "module": "form-field/form-field/form-field.component.js"
130537
+ "name": "SbbButtonBaseElement",
130538
+ "module": "core/base-elements/button-base-element.js"
130575
130539
  }
130576
130540
  },
130577
130541
  {
130578
130542
  "kind": "field",
130579
- "name": "inputElement",
130543
+ "name": "form",
130580
130544
  "type": {
130581
- "text": "HTMLInputElement | HTMLSelectElement | HTMLElement | null"
130545
+ "text": "HTMLFormElement | null"
130582
130546
  },
130583
130547
  "privacy": "public",
130584
- "description": "Returns the input element.",
130585
- "readonly": true,
130548
+ "description": "The `<form>` element to associate the button with.",
130586
130549
  "inheritedFrom": {
130587
- "name": "SbbFormFieldElement",
130588
- "module": "form-field/form-field/form-field.component.js"
130589
- }
130550
+ "name": "SbbButtonBaseElement",
130551
+ "module": "core/base-elements/button-base-element.js"
130552
+ },
130553
+ "attribute": "form"
130590
130554
  },
130591
130555
  {
130592
130556
  "kind": "field",
130593
- "name": "label",
130557
+ "name": "_formId",
130594
130558
  "type": {
130595
- "text": "HTMLLabelElement | null"
130559
+ "text": "string"
130596
130560
  },
130597
- "privacy": "public",
130598
- "description": "Reference to the slotted label.",
130599
- "readonly": true,
130561
+ "privacy": "private",
130562
+ "default": "''",
130600
130563
  "inheritedFrom": {
130601
- "name": "SbbFormFieldElement",
130602
- "module": "form-field/form-field/form-field.component.js"
130564
+ "name": "SbbButtonBaseElement",
130565
+ "module": "core/base-elements/button-base-element.js"
130603
130566
  }
130604
130567
  },
130605
130568
  {
130606
130569
  "kind": "field",
130607
- "name": "_language",
130570
+ "name": "_handleButtonClick",
130608
130571
  "privacy": "private",
130609
- "default": "new SbbLanguageController(this)",
130610
130572
  "inheritedFrom": {
130611
- "name": "SbbFormFieldElement",
130612
- "module": "form-field/form-field/form-field.component.js"
130573
+ "name": "SbbButtonBaseElement",
130574
+ "module": "core/base-elements/button-base-element.js"
130613
130575
  }
130614
130576
  },
130615
130577
  {
130616
- "kind": "field",
130617
- "name": "_formFieldAttributeObserver",
130578
+ "kind": "method",
130579
+ "name": "_requestSubmit",
130618
130580
  "privacy": "private",
130619
- "description": "Listens to the changes on `readonly` and `disabled` attributes of `<input>`.",
130581
+ "return": {
130582
+ "type": {
130583
+ "text": "void"
130584
+ }
130585
+ },
130586
+ "parameters": [
130587
+ {
130588
+ "name": "form",
130589
+ "type": {
130590
+ "text": "HTMLFormElement"
130591
+ }
130592
+ }
130593
+ ],
130620
130594
  "inheritedFrom": {
130621
- "name": "SbbFormFieldElement",
130622
- "module": "form-field/form-field/form-field.component.js"
130595
+ "name": "SbbButtonBaseElement",
130596
+ "module": "core/base-elements/button-base-element.js"
130623
130597
  }
130624
130598
  },
130625
130599
  {
130626
130600
  "kind": "field",
130627
- "name": "_inputFormAbortController",
130601
+ "name": "_formKeyDown",
130628
130602
  "privacy": "private",
130629
- "default": "new AbortController()",
130630
130603
  "inheritedFrom": {
130631
- "name": "SbbFormFieldElement",
130632
- "module": "form-field/form-field/form-field.component.js"
130604
+ "name": "SbbButtonBaseElement",
130605
+ "module": "core/base-elements/button-base-element.js"
130633
130606
  }
130634
130607
  },
130635
130608
  {
130636
130609
  "kind": "field",
130637
- "name": "_control",
130610
+ "name": "formAssociated",
130638
130611
  "type": {
130639
- "text": "SbbFormFieldElementControl | null"
130612
+ "text": "boolean"
130640
130613
  },
130641
- "privacy": "private",
130642
- "default": "null",
130614
+ "privacy": "public",
130615
+ "static": true,
130616
+ "default": "true",
130643
130617
  "inheritedFrom": {
130644
- "name": "SbbFormFieldElement",
130645
- "module": "form-field/form-field/form-field.component.js"
130618
+ "name": "SbbFormAssociatedMixin",
130619
+ "module": "core/mixins/form-associated-mixin.js"
130646
130620
  }
130647
130621
  },
130648
130622
  {
130649
130623
  "kind": "field",
130650
- "name": "_previousType",
130624
+ "name": "name",
130625
+ "privacy": "public",
130626
+ "description": "Name of the form element. Will be read from name attribute.",
130651
130627
  "type": {
130652
- "text": "string | null"
130628
+ "text": "string"
130653
130629
  },
130654
- "privacy": "private",
130655
- "default": "null",
130630
+ "attribute": "name",
130656
130631
  "inheritedFrom": {
130657
- "name": "SbbFormFieldElement",
130658
- "module": "form-field/form-field/form-field.component.js"
130632
+ "name": "SbbFormAssociatedMixin",
130633
+ "module": "core/mixins/form-associated-mixin.js"
130659
130634
  }
130660
130635
  },
130661
130636
  {
130662
- "kind": "method",
130663
- "name": "_handleWrapperClick",
130664
- "privacy": "private",
130665
- "return": {
130666
- "type": {
130667
- "text": "void"
130668
- }
130637
+ "kind": "field",
130638
+ "name": "validity",
130639
+ "type": {
130640
+ "text": "ValidityState"
130669
130641
  },
130670
- "parameters": [
130671
- {
130672
- "name": "event",
130673
- "type": {
130674
- "text": "MouseEvent"
130675
- }
130676
- }
130677
- ],
130642
+ "privacy": "public",
130643
+ "description": "Returns the ValidityState object for this element.",
130644
+ "readonly": true,
130678
130645
  "inheritedFrom": {
130679
- "name": "SbbFormFieldElement",
130680
- "module": "form-field/form-field/form-field.component.js"
130646
+ "name": "SbbFormAssociatedMixin",
130647
+ "module": "core/mixins/form-associated-mixin.js"
130681
130648
  }
130682
130649
  },
130683
130650
  {
130684
- "kind": "method",
130685
- "name": "_isElementFocusExcluded",
130686
- "privacy": "private",
130687
- "return": {
130688
- "type": {
130689
- "text": "boolean"
130690
- }
130651
+ "kind": "field",
130652
+ "name": "validationMessage",
130653
+ "type": {
130654
+ "text": "string"
130691
130655
  },
130692
- "parameters": [
130693
- {
130694
- "name": "event",
130695
- "type": {
130696
- "text": "Event"
130697
- }
130698
- }
130699
- ],
130656
+ "privacy": "public",
130657
+ "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.",
130658
+ "readonly": true,
130700
130659
  "inheritedFrom": {
130701
- "name": "SbbFormFieldElement",
130702
- "module": "form-field/form-field/form-field.component.js"
130660
+ "name": "SbbFormAssociatedMixin",
130661
+ "module": "core/mixins/form-associated-mixin.js"
130703
130662
  }
130704
130663
  },
130705
130664
  {
130706
- "kind": "method",
130707
- "name": "_onSlotLabelChange",
130708
- "privacy": "private",
130709
- "return": {
130710
- "type": {
130711
- "text": "void"
130712
- }
130665
+ "kind": "field",
130666
+ "name": "willValidate",
130667
+ "type": {
130668
+ "text": "boolean"
130713
130669
  },
130670
+ "privacy": "public",
130671
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
130672
+ "readonly": true,
130714
130673
  "inheritedFrom": {
130715
- "name": "SbbFormFieldElement",
130716
- "module": "form-field/form-field/form-field.component.js"
130674
+ "name": "SbbFormAssociatedMixin",
130675
+ "module": "core/mixins/form-associated-mixin.js"
130717
130676
  }
130718
130677
  },
130719
130678
  {
130720
- "kind": "method",
130721
- "name": "_onSlotInputChange",
130679
+ "kind": "field",
130680
+ "name": "_validityStates",
130722
130681
  "privacy": "private",
130723
- "return": {
130724
- "type": {
130725
- "text": "void"
130726
- }
130727
- },
130728
- "description": "It is used internally to assign the attributes of `<input>` to `_id` and `_input` and to observe the native readonly and disabled attributes.",
130682
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
130729
130683
  "inheritedFrom": {
130730
- "name": "SbbFormFieldElement",
130731
- "module": "form-field/form-field/form-field.component.js"
130684
+ "name": "SbbFormAssociatedMixin",
130685
+ "module": "core/mixins/form-associated-mixin.js"
130732
130686
  }
130733
130687
  },
130734
130688
  {
130735
- "kind": "method",
130736
- "name": "_assignSlots",
130737
- "privacy": "private",
130738
- "return": {
130739
- "type": {
130740
- "text": "void"
130741
- }
130689
+ "kind": "field",
130690
+ "name": "formDisabled",
130691
+ "type": {
130692
+ "text": "boolean"
130742
130693
  },
130694
+ "privacy": "protected",
130695
+ "default": "false",
130696
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
130743
130697
  "inheritedFrom": {
130744
- "name": "SbbFormFieldElement",
130745
- "module": "form-field/form-field/form-field.component.js"
130698
+ "name": "SbbFormAssociatedMixin",
130699
+ "module": "core/mixins/form-associated-mixin.js"
130746
130700
  }
130747
130701
  },
130748
130702
  {
130749
130703
  "kind": "method",
130750
- "name": "_connectInputElement",
130751
- "privacy": "private",
130704
+ "name": "checkValidity",
130705
+ "privacy": "public",
130752
130706
  "return": {
130753
130707
  "type": {
130754
- "text": "'changed' | 'no-input' | 'unchanged'"
130708
+ "text": "boolean"
130755
130709
  }
130756
130710
  },
130711
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
130757
130712
  "inheritedFrom": {
130758
- "name": "SbbFormFieldElement",
130759
- "module": "form-field/form-field/form-field.component.js"
130713
+ "name": "SbbFormAssociatedMixin",
130714
+ "module": "core/mixins/form-associated-mixin.js"
130760
130715
  }
130761
130716
  },
130762
130717
  {
130763
130718
  "kind": "method",
130764
- "name": "_syncLabelInputReferences",
130765
- "privacy": "private",
130719
+ "name": "reportValidity",
130720
+ "privacy": "public",
130766
130721
  "return": {
130767
130722
  "type": {
130768
- "text": "void"
130723
+ "text": "boolean"
130769
130724
  }
130770
130725
  },
130726
+ "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.",
130771
130727
  "inheritedFrom": {
130772
- "name": "SbbFormFieldElement",
130773
- "module": "form-field/form-field/form-field.component.js"
130728
+ "name": "SbbFormAssociatedMixin",
130729
+ "module": "core/mixins/form-associated-mixin.js"
130774
130730
  }
130775
130731
  },
130776
130732
  {
130777
130733
  "kind": "method",
130778
- "name": "_isInputElement",
130779
- "privacy": "private",
130734
+ "name": "setCustomValidity",
130735
+ "privacy": "public",
130780
130736
  "return": {
130781
130737
  "type": {
130782
- "text": "boolean"
130738
+ "text": "void"
130783
130739
  }
130784
130740
  },
130785
130741
  "parameters": [
130786
130742
  {
130787
- "name": "input",
130743
+ "name": "message",
130788
130744
  "type": {
130789
- "text": "Element"
130745
+ "text": "string"
130790
130746
  }
130791
130747
  }
130792
130748
  ],
130749
+ "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.",
130793
130750
  "inheritedFrom": {
130794
- "name": "SbbFormFieldElement",
130795
- "module": "form-field/form-field/form-field.component.js"
130751
+ "name": "SbbFormAssociatedMixin",
130752
+ "module": "core/mixins/form-associated-mixin.js"
130796
130753
  }
130797
130754
  },
130798
130755
  {
130799
130756
  "kind": "method",
130800
- "name": "_readInputState",
130757
+ "name": "_hasDisabledAncestor",
130801
130758
  "privacy": "private",
130802
130759
  "return": {
130803
130760
  "type": {
130804
- "text": "void"
130761
+ "text": "boolean"
130805
130762
  }
130806
130763
  },
130807
130764
  "inheritedFrom": {
130808
- "name": "SbbFormFieldElement",
130809
- "module": "form-field/form-field/form-field.component.js"
130765
+ "name": "SbbFormAssociatedMixin",
130766
+ "module": "core/mixins/form-associated-mixin.js"
130810
130767
  }
130811
130768
  },
130812
130769
  {
130813
130770
  "kind": "method",
130814
- "name": "_registerInputFormListener",
130815
- "privacy": "private",
130771
+ "name": "updateFormValue",
130772
+ "privacy": "protected",
130816
130773
  "return": {
130817
130774
  "type": {
130818
130775
  "text": "void"
130819
130776
  }
130820
130777
  },
130778
+ "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",
130821
130779
  "inheritedFrom": {
130822
- "name": "SbbFormFieldElement",
130823
- "module": "form-field/form-field/form-field.component.js"
130780
+ "name": "SbbFormAssociatedMixin",
130781
+ "module": "core/mixins/form-associated-mixin.js"
130824
130782
  }
130825
130783
  },
130826
130784
  {
130827
130785
  "kind": "method",
130828
- "name": "_patchInputValue",
130829
- "privacy": "private",
130786
+ "name": "formState",
130787
+ "privacy": "protected",
130830
130788
  "return": {
130831
130789
  "type": {
130832
- "text": "void"
130790
+ "text": "FormRestoreState"
130833
130791
  }
130834
130792
  },
130835
130793
  "inheritedFrom": {
130836
- "name": "SbbFormFieldElement",
130837
- "module": "form-field/form-field/form-field.component.js"
130794
+ "name": "SbbFormAssociatedMixin",
130795
+ "module": "core/mixins/form-associated-mixin.js"
130838
130796
  }
130839
130797
  },
130840
130798
  {
130841
130799
  "kind": "method",
130842
- "name": "_unpatchInputValue",
130843
- "privacy": "private",
130800
+ "name": "setValidityFlag",
130801
+ "privacy": "protected",
130844
130802
  "return": {
130845
130803
  "type": {
130846
130804
  "text": "void"
130847
130805
  }
130848
130806
  },
130807
+ "parameters": [
130808
+ {
130809
+ "name": "flag",
130810
+ "type": {
130811
+ "text": "T"
130812
+ }
130813
+ },
130814
+ {
130815
+ "name": "message",
130816
+ "type": {
130817
+ "text": "string"
130818
+ }
130819
+ },
130820
+ {
130821
+ "name": "flagValue",
130822
+ "optional": true,
130823
+ "type": {
130824
+ "text": "ValidityStateFlags[T]"
130825
+ }
130826
+ }
130827
+ ],
130828
+ "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).",
130849
130829
  "inheritedFrom": {
130850
- "name": "SbbFormFieldElement",
130851
- "module": "form-field/form-field/form-field.component.js"
130830
+ "name": "SbbFormAssociatedMixin",
130831
+ "module": "core/mixins/form-associated-mixin.js"
130852
130832
  }
130853
130833
  },
130854
130834
  {
130855
130835
  "kind": "method",
130856
- "name": "_checkAndUpdateInputEmpty",
130857
- "privacy": "private",
130836
+ "name": "removeValidityFlag",
130837
+ "privacy": "protected",
130858
130838
  "return": {
130859
130839
  "type": {
130860
130840
  "text": "void"
130861
130841
  }
130862
130842
  },
130863
- "inheritedFrom": {
130864
- "name": "SbbFormFieldElement",
130865
- "module": "form-field/form-field/form-field.component.js"
130866
- }
130867
- },
130868
- {
130869
- "kind": "method",
130870
- "name": "_isInputEmpty",
130871
- "privacy": "private",
130872
- "return": {
130873
- "type": {
130874
- "text": "boolean"
130843
+ "parameters": [
130844
+ {
130845
+ "name": "flag",
130846
+ "type": {
130847
+ "text": "T"
130848
+ }
130875
130849
  }
130876
- },
130850
+ ],
130851
+ "description": "Removes the validity state flag entry and updates validity state.",
130877
130852
  "inheritedFrom": {
130878
- "name": "SbbFormFieldElement",
130879
- "module": "form-field/form-field/form-field.component.js"
130853
+ "name": "SbbFormAssociatedMixin",
130854
+ "module": "core/mixins/form-associated-mixin.js"
130880
130855
  }
130881
130856
  },
130882
130857
  {
130883
130858
  "kind": "method",
130884
- "name": "_isInputValueEmpty",
130885
- "privacy": "private",
130859
+ "name": "validate",
130860
+ "privacy": "protected",
130886
130861
  "return": {
130887
130862
  "type": {
130888
- "text": "boolean"
130863
+ "text": "void"
130889
130864
  }
130890
130865
  },
130866
+ "description": "To be called whenever the current element needs to be validated.",
130891
130867
  "inheritedFrom": {
130892
- "name": "SbbFormFieldElement",
130893
- "module": "form-field/form-field/form-field.component.js"
130868
+ "name": "SbbFormAssociatedMixin",
130869
+ "module": "core/mixins/form-associated-mixin.js"
130894
130870
  }
130895
130871
  },
130896
130872
  {
130897
130873
  "kind": "method",
130898
- "name": "_onSlotErrorChange",
130899
- "privacy": "private",
130874
+ "name": "shouldValidate",
130875
+ "privacy": "protected",
130900
130876
  "return": {
130901
130877
  "type": {
130902
- "text": "void"
130878
+ "text": "boolean"
130903
130879
  }
130904
130880
  },
130905
130881
  "parameters": [
130906
130882
  {
130907
- "name": "event",
130883
+ "name": "name",
130908
130884
  "type": {
130909
- "text": "Event"
130885
+ "text": "PropertyKey | undefined"
130910
130886
  }
130911
130887
  }
130912
130888
  ],
130913
- "description": "It is used internally to set the aria-describedby attribute for the slotted input referencing available <sbb-error> instances.",
130889
+ "description": "Whether validation should be run on a property change with the given name.",
130914
130890
  "inheritedFrom": {
130915
- "name": "SbbFormFieldElement",
130916
- "module": "form-field/form-field/form-field.component.js"
130891
+ "name": "SbbFormAssociatedMixin",
130892
+ "module": "core/mixins/form-associated-mixin.js"
130917
130893
  }
130918
130894
  },
130919
130895
  {
130920
130896
  "kind": "method",
130921
- "name": "_onSlotHintChange",
130897
+ "name": "_setInternalValidity",
130922
130898
  "privacy": "private",
130923
130899
  "return": {
130924
130900
  "type": {
130925
130901
  "text": "void"
130926
130902
  }
130927
130903
  },
130904
+ "inheritedFrom": {
130905
+ "name": "SbbFormAssociatedMixin",
130906
+ "module": "core/mixins/form-associated-mixin.js"
130907
+ }
130908
+ },
130909
+ {
130910
+ "kind": "field",
130911
+ "name": "role",
130912
+ "type": {
130913
+ "text": "ElementInternals['role']"
130914
+ },
130915
+ "privacy": "public",
130916
+ "static": true,
130917
+ "readonly": true,
130918
+ "default": "'button'",
130919
+ "inheritedFrom": {
130920
+ "name": "SbbButtonLikeBaseElement",
130921
+ "module": "core/base-elements/button-base-element.js"
130922
+ }
130923
+ },
130924
+ {
130925
+ "kind": "field",
130926
+ "name": "_preventScrollOnSpaceKeydown",
130927
+ "privacy": "private",
130928
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
130928
130929
  "parameters": [
130929
130930
  {
130930
- "name": "event",
130931
- "type": {
130932
- "text": "Event"
130933
- }
130931
+ "description": "The origin event.",
130932
+ "name": "event"
130934
130933
  }
130935
130934
  ],
130936
- "description": "It is used internally to set the aria-describedby attribute for the slotted input referencing available <sbb-hint> instances.",
130937
130935
  "inheritedFrom": {
130938
- "name": "SbbFormFieldElement",
130939
- "module": "form-field/form-field/form-field.component.js"
130936
+ "name": "SbbButtonLikeBaseElement",
130937
+ "module": "core/base-elements/button-base-element.js"
130940
130938
  }
130941
130939
  },
130942
130940
  {
130943
- "kind": "method",
130944
- "name": "_assignAriaDescribedByElements",
130941
+ "kind": "field",
130942
+ "name": "_removeActiveMarker",
130943
+ "privacy": "private",
130944
+ "inheritedFrom": {
130945
+ "name": "SbbButtonLikeBaseElement",
130946
+ "module": "core/base-elements/button-base-element.js"
130947
+ }
130948
+ },
130949
+ {
130950
+ "kind": "field",
130951
+ "name": "_dispatchClickEventOnSpaceKeyup",
130945
130952
  "privacy": "private",
130946
- "return": {
130947
- "type": {
130948
- "text": "void"
130953
+ "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.",
130954
+ "parameters": [
130955
+ {
130956
+ "description": "The origin event.",
130957
+ "name": "event"
130949
130958
  }
130950
- },
130959
+ ],
130951
130960
  "inheritedFrom": {
130952
- "name": "SbbFormFieldElement",
130953
- "module": "form-field/form-field/form-field.component.js"
130961
+ "name": "SbbButtonLikeBaseElement",
130962
+ "module": "core/base-elements/button-base-element.js"
130954
130963
  }
130955
130964
  },
130956
130965
  {
130957
- "kind": "method",
130958
- "name": "reset",
130959
- "privacy": "public",
130960
- "return": {
130961
- "type": {
130962
- "text": "void"
130963
- }
130964
- },
130965
- "description": "Manually reset the form field. Currently, this only resets the floating label.",
130966
+ "kind": "field",
130967
+ "name": "_dispatchClickEvent",
130968
+ "privacy": "private",
130966
130969
  "inheritedFrom": {
130967
- "name": "SbbFormFieldElement",
130968
- "module": "form-field/form-field/form-field.component.js"
130970
+ "name": "SbbButtonLikeBaseElement",
130971
+ "module": "core/base-elements/button-base-element.js"
130969
130972
  }
130970
130973
  },
130971
130974
  {
130972
- "kind": "method",
130973
- "name": "clear",
130974
- "privacy": "public",
130975
- "return": {
130976
- "type": {
130977
- "text": "void"
130978
- }
130975
+ "kind": "field",
130976
+ "name": "maybeDisabled",
130977
+ "type": {
130978
+ "text": "boolean | undefined"
130979
130979
  },
130980
- "description": "Manually clears the input value. It only works for inputs, selects are not supported.",
130980
+ "privacy": "protected",
130981
+ "readonly": true,
130981
130982
  "inheritedFrom": {
130982
- "name": "SbbFormFieldElement",
130983
- "module": "form-field/form-field/form-field.component.js"
130983
+ "name": "SbbActionBaseElement",
130984
+ "module": "core/base-elements/action-base-element.js"
130984
130985
  }
130985
130986
  },
130986
130987
  {
130987
- "kind": "method",
130988
- "name": "_syncNegative",
130989
- "privacy": "private",
130990
- "return": {
130991
- "type": {
130992
- "text": "void"
130993
- }
130988
+ "kind": "field",
130989
+ "name": "maybeDisabledInteractive",
130990
+ "type": {
130991
+ "text": "boolean | undefined"
130994
130992
  },
130993
+ "privacy": "protected",
130994
+ "readonly": true,
130995
130995
  "inheritedFrom": {
130996
- "name": "SbbFormFieldElement",
130997
- "module": "form-field/form-field/form-field.component.js"
130996
+ "name": "SbbActionBaseElement",
130997
+ "module": "core/base-elements/action-base-element.js"
130998
130998
  }
130999
130999
  },
131000
131000
  {
131001
131001
  "kind": "method",
131002
- "name": "_syncSize",
131003
- "privacy": "private",
131002
+ "name": "setupBaseEventHandlers",
131003
+ "privacy": "protected",
131004
131004
  "return": {
131005
131005
  "type": {
131006
131006
  "text": "void"
131007
131007
  }
131008
131008
  },
131009
131009
  "inheritedFrom": {
131010
- "name": "SbbFormFieldElement",
131011
- "module": "form-field/form-field/form-field.component.js"
131010
+ "name": "SbbActionBaseElement",
131011
+ "module": "core/base-elements/action-base-element.js"
131012
131012
  }
131013
131013
  },
131014
131014
  {
@@ -131117,13 +131117,55 @@
131117
131117
  }
131118
131118
  }
131119
131119
  ],
131120
+ "events": [
131121
+ {
131122
+ "type": {
131123
+ "text": "Event"
131124
+ },
131125
+ "description": "The change event is fired on the associated inputs when the user modifies the element's value. Unlike the input event, the change event is not necessarily fired for each alteration to an element's value.",
131126
+ "name": "change"
131127
+ },
131128
+ {
131129
+ "type": {
131130
+ "text": "InputEvent"
131131
+ },
131132
+ "description": "The input event fires on the associated inputs when the value has been changed as a direct result of a user action.",
131133
+ "name": "input"
131134
+ }
131135
+ ],
131120
131136
  "superclass": {
131121
- "name": "SbbFormFieldElement",
131122
- "module": "form-field.pure.js"
131137
+ "name": "SbbSecondaryButtonElement",
131138
+ "module": "button.pure.js"
131123
131139
  },
131124
- "tagName": "sbb-timetable-form-field",
131140
+ "tagName": "sbb-timetable-form-swap-button",
131125
131141
  "customElement": true,
131126
131142
  "attributes": [
131143
+ {
131144
+ "name": "size",
131145
+ "type": {
131146
+ "text": "SbbButtonSize"
131147
+ },
131148
+ "description": "Size variant, either l, m or s.",
131149
+ "default": "'l' / 's' (lean)",
131150
+ "fieldName": "size",
131151
+ "inheritedFrom": {
131152
+ "name": "SbbButtonCommonElementMixin",
131153
+ "module": "button/common/button-common.js"
131154
+ }
131155
+ },
131156
+ {
131157
+ "name": "loading",
131158
+ "type": {
131159
+ "text": "boolean"
131160
+ },
131161
+ "default": "false",
131162
+ "description": "Whether the button indicates a loading state.\nThe animation kicks in after a delay of 300ms, configurable with --sbb-button-loading-delay CSS variable.",
131163
+ "fieldName": "loading",
131164
+ "inheritedFrom": {
131165
+ "name": "SbbButtonCommonElementMixin",
131166
+ "module": "button/common/button-common.js"
131167
+ }
131168
+ },
131127
131169
  {
131128
131170
  "name": "negative",
131129
131171
  "type": {
@@ -131138,163 +131180,121 @@
131138
131180
  }
131139
131181
  },
131140
131182
  {
131141
- "name": "error-space",
131183
+ "name": "icon-name",
131142
131184
  "type": {
131143
- "text": "'none' | 'reserve'"
131185
+ "text": "string"
131144
131186
  },
131145
- "default": "'none'",
131146
- "description": "Whether to reserve space for an error message, hint or text-counter.\n`none` does not reserve any space.\n`reserve` does reserve one row for an error message.",
131147
- "fieldName": "errorSpace",
131187
+ "default": "''",
131188
+ "description": "The icon name we want to use, choose from the small icon variants\nfrom the ui-icons category from here\nhttps://icons.app.sbb.ch.",
131189
+ "fieldName": "iconName",
131148
131190
  "inheritedFrom": {
131149
- "name": "SbbFormFieldElement",
131150
- "module": "form-field/form-field/form-field.component.js"
131191
+ "name": "SbbIconNameMixin",
131192
+ "module": "icon/icon-name-mixin.js"
131151
131193
  }
131152
131194
  },
131153
131195
  {
131154
- "name": "optional",
131196
+ "name": "disabled-interactive",
131155
131197
  "type": {
131156
131198
  "text": "boolean"
131157
131199
  },
131158
131200
  "default": "false",
131159
- "description": "Indicates whether the input is optional.",
131160
- "deprecated": "Set the (optional) label text manually. Will be removed with next major version.",
131161
- "fieldName": "optional",
131201
+ "description": "Whether the button should be aria-disabled but stay interactive.",
131202
+ "fieldName": "disabledInteractive",
131162
131203
  "inheritedFrom": {
131163
- "name": "SbbFormFieldElement",
131164
- "module": "form-field/form-field/form-field.component.js"
131204
+ "name": "SbbDisabledInteractiveMixin",
131205
+ "module": "core/mixins/disabled-mixin.js"
131165
131206
  }
131166
131207
  },
131167
131208
  {
131168
- "name": "size",
131209
+ "name": "disabled",
131210
+ "description": "Whether the component is disabled.",
131211
+ "default": "false",
131169
131212
  "type": {
131170
- "text": "'l' | 'm' | 's'"
131213
+ "text": "boolean"
131171
131214
  },
131172
- "description": "Size variant, either l, m or s.",
131173
- "default": "'m' / 's' (lean)",
131174
- "fieldName": "size",
131215
+ "fieldName": "disabled",
131175
131216
  "inheritedFrom": {
131176
- "name": "SbbFormFieldElement",
131177
- "module": "form-field/form-field/form-field.component.js"
131217
+ "name": "SbbDisabledMixin",
131218
+ "module": "core/mixins/disabled-mixin.js"
131178
131219
  }
131179
131220
  },
131180
131221
  {
131181
- "name": "borderless",
131222
+ "name": "value",
131182
131223
  "type": {
131183
- "text": "boolean"
131224
+ "text": "string"
131184
131225
  },
131185
- "default": "false",
131186
- "description": "Whether to display the form field without a border.",
131187
- "fieldName": "borderless",
131226
+ "default": "''",
131227
+ "description": "Value of the form element.",
131228
+ "fieldName": "value",
131188
131229
  "inheritedFrom": {
131189
- "name": "SbbFormFieldElement",
131190
- "module": "form-field/form-field/form-field.component.js"
131230
+ "name": "SbbButtonBaseElement",
131231
+ "module": "core/base-elements/button-base-element.js"
131191
131232
  }
131192
131233
  },
131193
131234
  {
131194
- "name": "width",
131235
+ "name": "type",
131236
+ "description": "The type attribute to use for the button.",
131237
+ "default": "'button'",
131195
131238
  "type": {
131196
- "text": "'default' | 'collapse'"
131239
+ "text": "SbbButtonType"
131197
131240
  },
131198
- "default": "'default'",
131199
- "description": "Defines the width of the component:\n- `default`: the component has defined width and min-width;\n- `collapse`: the component adapts itself to its inner input content.",
131200
- "fieldName": "width",
131241
+ "fieldName": "type",
131201
131242
  "inheritedFrom": {
131202
- "name": "SbbFormFieldElement",
131203
- "module": "form-field/form-field/form-field.component.js"
131243
+ "name": "SbbButtonBaseElement",
131244
+ "module": "core/base-elements/button-base-element.js"
131204
131245
  }
131205
131246
  },
131206
131247
  {
131207
- "name": "hidden-label",
131248
+ "name": "form",
131249
+ "description": "The `<form>` element to associate the button with.",
131208
131250
  "type": {
131209
- "text": "boolean"
131251
+ "text": "HTMLFormElement | null"
131210
131252
  },
131211
- "default": "false",
131212
- "description": "Whether to visually hide the label. If hidden, screen readers will still read it.",
131213
- "fieldName": "hiddenLabel",
131253
+ "fieldName": "form",
131214
131254
  "inheritedFrom": {
131215
- "name": "SbbFormFieldElement",
131216
- "module": "form-field/form-field/form-field.component.js"
131255
+ "name": "SbbButtonBaseElement",
131256
+ "module": "core/base-elements/button-base-element.js"
131217
131257
  }
131218
131258
  },
131219
131259
  {
131220
- "name": "floating-label",
131260
+ "name": "name",
131261
+ "description": "Name of the form element. Will be read from name attribute.",
131221
131262
  "type": {
131222
- "text": "boolean"
131263
+ "text": "string"
131223
131264
  },
131224
- "default": "false",
131225
- "description": "Whether the label should float. If activated, the placeholder of the input is hidden.",
131226
- "fieldName": "floatingLabel",
131265
+ "fieldName": "name",
131227
131266
  "inheritedFrom": {
131228
- "name": "SbbFormFieldElement",
131229
- "module": "form-field/form-field/form-field.component.js"
131267
+ "name": "SbbFormAssociatedMixin",
131268
+ "module": "core/mixins/form-associated-mixin.js"
131230
131269
  }
131231
131270
  }
131232
131271
  ],
131233
131272
  "slots": [
131234
131273
  {
131235
- "description": "Use this slot to render an input/select or a supported non-native element.",
131274
+ "description": "Use the unnamed slot to add content to the secondary-button.",
131236
131275
  "name": "",
131237
131276
  "inheritedFrom": {
131238
- "name": "SbbFormFieldElement",
131239
- "module": "form-field/form-field/form-field.component.js"
131240
- }
131241
- },
131242
- {
131243
- "description": "Use this slot to render a label.",
131244
- "name": "label",
131245
- "inheritedFrom": {
131246
- "name": "SbbFormFieldElement",
131247
- "module": "form-field/form-field/form-field.component.js"
131248
- }
131249
- },
131250
- {
131251
- "description": "Use this slot to render an icon on the left side of the input.",
131252
- "name": "prefix",
131253
- "inheritedFrom": {
131254
- "name": "SbbFormFieldElement",
131255
- "module": "form-field/form-field/form-field.component.js"
131256
- }
131257
- },
131258
- {
131259
- "description": "Use this slot to render an icon on the right side of the input.",
131260
- "name": "suffix",
131261
- "inheritedFrom": {
131262
- "name": "SbbFormFieldElement",
131263
- "module": "form-field/form-field/form-field.component.js"
131264
- }
131265
- },
131266
- {
131267
- "description": "Use this slot to render an error.",
131268
- "name": "error",
131269
- "inheritedFrom": {
131270
- "name": "SbbFormFieldElement",
131271
- "module": "form-field/form-field/form-field.component.js"
131277
+ "name": "SbbSecondaryButtonElement",
131278
+ "module": "button/secondary-button/secondary-button.component.js"
131272
131279
  }
131273
131280
  },
131274
131281
  {
131275
- "description": "Use this slot to render an `<sbb-hint>` or an `<sbb-form-field-text-counter>` element.",
131276
- "name": "hint",
131282
+ "description": "Slot used to display the icon, if one is set.",
131283
+ "name": "icon",
131277
131284
  "inheritedFrom": {
131278
- "name": "SbbFormFieldElement",
131279
- "module": "form-field/form-field/form-field.component.js"
131285
+ "name": "SbbSecondaryButtonElement",
131286
+ "module": "button/secondary-button/secondary-button.component.js"
131280
131287
  }
131281
131288
  }
131282
131289
  ],
131283
131290
  "cssProperties": [
131284
131291
  {
131285
- "description": "To override the focus outline offset,",
131286
- "name": "--sbb-form-field-outline-offset",
131287
- "inheritedFrom": {
131288
- "name": "SbbFormFieldElement",
131289
- "module": "form-field/form-field/form-field.component.js"
131290
- }
131291
- },
131292
- {
131293
- "description": "To override the z-index of the focus underline effect,",
131294
- "name": "--sbb-form-field-focus-underline-z-index",
131292
+ "description": "The delay before the loading animation starts, when setting the button into loading state.",
131293
+ "name": "--sbb-button-loading-delay",
131294
+ "default": "300ms",
131295
131295
  "inheritedFrom": {
131296
- "name": "SbbFormFieldElement",
131297
- "module": "form-field/form-field/form-field.component.js"
131296
+ "name": "SbbSecondaryButtonElement",
131297
+ "module": "button/secondary-button/secondary-button.component.js"
131298
131298
  }
131299
131299
  }
131300
131300
  ]
@@ -131303,10 +131303,10 @@
131303
131303
  "exports": [
131304
131304
  {
131305
131305
  "kind": "js",
131306
- "name": "SbbTimetableFormFieldElement",
131306
+ "name": "SbbTimetableFormSwapButtonElement",
131307
131307
  "declaration": {
131308
- "name": "SbbTimetableFormFieldElement",
131309
- "module": "timetable-form/timetable-form-field/timetable-form-field.component.js"
131308
+ "name": "SbbTimetableFormSwapButtonElement",
131309
+ "module": "timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js"
131310
131310
  }
131311
131311
  }
131312
131312
  ]
@@ -132679,247 +132679,45 @@
132679
132679
  "description": "Renders list and list slots for slotted children or a number of list slots\ncorresponding to the `data-ssr-child-count` attribute value.\n\nThis is a possible optimization for SSR, as in an SSR Lit environment\nother elements are not available, but might be available in the meta\nframework wrapper (like e.g. React). This allows to provide the number of\nchildren to be passed via the `data-ssr-child-count` attribute value.",
132680
132680
  "inheritedFrom": {
132681
132681
  "name": "SbbNamedSlotListMixin",
132682
- "module": "core/mixins/named-slot-list-mixin.js"
132683
- }
132684
- },
132685
- {
132686
- "kind": "method",
132687
- "name": "listSlotEntries",
132688
- "privacy": "protected",
132689
- "return": {
132690
- "type": {
132691
- "text": "SbbNamedSlotProperties[]"
132692
- }
132693
- },
132694
- "parameters": [
132695
- {
132696
- "name": "listItemAttributes",
132697
- "type": {
132698
- "text": "{\n localNameVisualOnly?: string[];\n }"
132699
- }
132700
- }
132701
- ],
132702
- "description": "Returns an array of SbbNamedSlotProperties, which holds the list slot names and the hidden property;\nits length corresponds to the number of matched children or the `data-ssr-child-count` attribute value.\n\nThis is a possible optimization for SSR, as in an SSR Lit environment\nother elements are not available, but might be available in the meta\nframework wrapper (like e.g. React). This allows to provide the number of\nchildren to be passed via the `data-ssr-child-count` attribute value.",
132703
- "inheritedFrom": {
132704
- "name": "SbbNamedSlotListMixin",
132705
- "module": "core/mixins/named-slot-list-mixin.js"
132706
- }
132707
- },
132708
- {
132709
- "kind": "method",
132710
- "name": "renderHiddenSlot",
132711
- "privacy": "protected",
132712
- "return": {
132713
- "type": {
132714
- "text": "TemplateResult"
132715
- }
132716
- },
132717
- "description": "Returns a hidden slot, which is intended as the children change detection.\nWhen an element without a slot attribute is slotted to the element, it triggers\nthe slotchange event, which can be used to assign it to the appropriate named slot.",
132718
- "inheritedFrom": {
132719
- "name": "SbbNamedSlotListMixin",
132720
- "module": "core/mixins/named-slot-list-mixin.js"
132721
- }
132722
- },
132723
- {
132724
- "kind": "field",
132725
- "name": "_hydrationRequired",
132726
- "type": {
132727
- "text": "boolean"
132728
- },
132729
- "privacy": "private",
132730
- "default": "!!this.shadowRoot",
132731
- "inheritedFrom": {
132732
- "name": "SbbElement",
132733
- "module": "core/base-elements/element.js"
132734
- }
132735
- },
132736
- {
132737
- "kind": "field",
132738
- "name": "_hydrationComplete",
132739
- "privacy": "private",
132740
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
132741
- "inheritedFrom": {
132742
- "name": "SbbElement",
132743
- "module": "core/base-elements/element.js"
132744
- }
132745
- },
132746
- {
132747
- "kind": "field",
132748
- "name": "_resolveHydration",
132749
- "type": {
132750
- "text": "(hydrationRequired: boolean) => void"
132751
- },
132752
- "privacy": "private",
132753
- "inheritedFrom": {
132754
- "name": "SbbElement",
132755
- "module": "core/base-elements/element.js"
132756
- }
132757
- },
132758
- {
132759
- "kind": "field",
132760
- "name": "hydrationRequired",
132761
- "type": {
132762
- "text": "boolean"
132763
- },
132764
- "privacy": "protected",
132765
- "description": "Returns whether hydration is required and not completed.",
132766
- "readonly": true,
132767
- "inheritedFrom": {
132768
- "name": "SbbElement",
132769
- "module": "core/base-elements/element.js"
132770
- },
132771
- "default": "!!this.shadowRoot"
132772
- },
132773
- {
132774
- "kind": "method",
132775
- "name": "toggleState",
132776
- "privacy": "protected",
132777
- "return": {
132778
- "type": {
132779
- "text": "void"
132780
- }
132781
- },
132782
- "parameters": [
132783
- {
132784
- "name": "value",
132785
- "type": {
132786
- "text": "string"
132787
- }
132788
- },
132789
- {
132790
- "name": "force",
132791
- "optional": true,
132792
- "type": {
132793
- "text": "boolean"
132794
- }
132795
- }
132796
- ],
132797
- "inheritedFrom": {
132798
- "name": "SbbElement",
132799
- "module": "core/base-elements/element.js"
132800
- }
132801
- },
132802
- {
132803
- "kind": "field",
132804
- "name": "['_$sbbElement$']",
132805
- "type": {
132806
- "text": "boolean"
132807
- },
132808
- "privacy": "public",
132809
- "static": true,
132810
- "default": "true",
132811
- "inheritedFrom": {
132812
- "name": "SbbElement",
132813
- "module": "core/base-elements/element.js"
132814
- }
132815
- },
132816
- {
132817
- "kind": "field",
132818
- "name": "_controllers",
132819
- "type": {
132820
- "text": "Set<SbbReactiveController> | undefined"
132821
- },
132822
- "privacy": "private",
132823
- "inheritedFrom": {
132824
- "name": "SbbElement",
132825
- "module": "core/base-elements/element.js"
132826
- }
132827
- }
132828
- ],
132829
- "attributes": [
132830
- {
132831
- "name": "direction-label",
132832
- "type": {
132833
- "text": "string"
132834
- },
132835
- "default": "''",
132836
- "description": "General label for \"driving direction\".",
132837
- "fieldName": "directionLabel"
132838
- },
132839
- {
132840
- "name": "direction-label-level",
132841
- "type": {
132842
- "text": "SbbTitleLevel"
132843
- },
132844
- "default": "'6'",
132845
- "description": "Heading level of the direction label, used for screen readers.",
132846
- "fieldName": "directionLabelLevel"
132847
- },
132848
- {
132849
- "name": "station",
132850
- "type": {
132851
- "text": "string"
132852
- },
132853
- "default": "''",
132854
- "description": "Label for the destination station of the train.",
132855
- "fieldName": "station"
132856
- },
132857
- {
132858
- "name": "accessibility-label",
132859
- "type": {
132860
- "text": "string"
132861
- },
132862
- "default": "''",
132863
- "description": "Accessibility label for additional information regarding the leaving direction of the train.",
132864
- "fieldName": "accessibilityLabel"
132865
- },
132866
- {
132867
- "name": "direction",
132868
- "type": {
132869
- "text": "'left' | 'right'"
132870
- },
132871
- "default": "'left'",
132872
- "description": "Controls the direction indicator to show the arrow left or right. Default is left.",
132873
- "fieldName": "direction"
132874
- }
132875
- ],
132876
- "mixins": [
132877
- {
132878
- "name": "SbbNamedSlotListMixin",
132879
- "module": "core/mixins.js"
132880
- }
132881
- ],
132882
- "superclass": {
132883
- "name": "SbbElement",
132884
- "module": "core/base-elements.js"
132885
- },
132886
- "tagName": "sbb-train",
132887
- "customElement": true
132888
- }
132889
- ],
132890
- "exports": [
132891
- {
132892
- "kind": "js",
132893
- "name": "SbbTrainElement",
132894
- "declaration": {
132895
- "name": "SbbTrainElement",
132896
- "module": "train/train/train.component.js"
132897
- }
132898
- }
132899
- ]
132900
- },
132901
- {
132902
- "kind": "javascript-module",
132903
- "path": "train/train-blocked-passage/train-blocked-passage.component.js",
132904
- "declarations": [
132905
- {
132906
- "kind": "class",
132907
- "description": "It visually displays a blocked passage between train wagons.",
132908
- "name": "SbbTrainBlockedPassageElement",
132909
- "members": [
132682
+ "module": "core/mixins/named-slot-list-mixin.js"
132683
+ }
132684
+ },
132910
132685
  {
132911
- "kind": "field",
132912
- "name": "elementName",
132913
- "type": {
132914
- "text": "string"
132686
+ "kind": "method",
132687
+ "name": "listSlotEntries",
132688
+ "privacy": "protected",
132689
+ "return": {
132690
+ "type": {
132691
+ "text": "SbbNamedSlotProperties[]"
132692
+ }
132915
132693
  },
132916
- "privacy": "public",
132917
- "static": true,
132918
- "readonly": true,
132919
- "default": "'sbb-train-blocked-passage'",
132694
+ "parameters": [
132695
+ {
132696
+ "name": "listItemAttributes",
132697
+ "type": {
132698
+ "text": "{\n localNameVisualOnly?: string[];\n }"
132699
+ }
132700
+ }
132701
+ ],
132702
+ "description": "Returns an array of SbbNamedSlotProperties, which holds the list slot names and the hidden property;\nits length corresponds to the number of matched children or the `data-ssr-child-count` attribute value.\n\nThis is a possible optimization for SSR, as in an SSR Lit environment\nother elements are not available, but might be available in the meta\nframework wrapper (like e.g. React). This allows to provide the number of\nchildren to be passed via the `data-ssr-child-count` attribute value.",
132920
132703
  "inheritedFrom": {
132921
- "name": "SbbElement",
132922
- "module": "core/base-elements/element.js"
132704
+ "name": "SbbNamedSlotListMixin",
132705
+ "module": "core/mixins/named-slot-list-mixin.js"
132706
+ }
132707
+ },
132708
+ {
132709
+ "kind": "method",
132710
+ "name": "renderHiddenSlot",
132711
+ "privacy": "protected",
132712
+ "return": {
132713
+ "type": {
132714
+ "text": "TemplateResult"
132715
+ }
132716
+ },
132717
+ "description": "Returns a hidden slot, which is intended as the children change detection.\nWhen an element without a slot attribute is slotted to the element, it triggers\nthe slotchange event, which can be used to assign it to the appropriate named slot.",
132718
+ "inheritedFrom": {
132719
+ "name": "SbbNamedSlotListMixin",
132720
+ "module": "core/mixins/named-slot-list-mixin.js"
132923
132721
  }
132924
132722
  },
132925
132723
  {
@@ -133028,21 +132826,74 @@
133028
132826
  }
133029
132827
  }
133030
132828
  ],
132829
+ "attributes": [
132830
+ {
132831
+ "name": "direction-label",
132832
+ "type": {
132833
+ "text": "string"
132834
+ },
132835
+ "default": "''",
132836
+ "description": "General label for \"driving direction\".",
132837
+ "fieldName": "directionLabel"
132838
+ },
132839
+ {
132840
+ "name": "direction-label-level",
132841
+ "type": {
132842
+ "text": "SbbTitleLevel"
132843
+ },
132844
+ "default": "'6'",
132845
+ "description": "Heading level of the direction label, used for screen readers.",
132846
+ "fieldName": "directionLabelLevel"
132847
+ },
132848
+ {
132849
+ "name": "station",
132850
+ "type": {
132851
+ "text": "string"
132852
+ },
132853
+ "default": "''",
132854
+ "description": "Label for the destination station of the train.",
132855
+ "fieldName": "station"
132856
+ },
132857
+ {
132858
+ "name": "accessibility-label",
132859
+ "type": {
132860
+ "text": "string"
132861
+ },
132862
+ "default": "''",
132863
+ "description": "Accessibility label for additional information regarding the leaving direction of the train.",
132864
+ "fieldName": "accessibilityLabel"
132865
+ },
132866
+ {
132867
+ "name": "direction",
132868
+ "type": {
132869
+ "text": "'left' | 'right'"
132870
+ },
132871
+ "default": "'left'",
132872
+ "description": "Controls the direction indicator to show the arrow left or right. Default is left.",
132873
+ "fieldName": "direction"
132874
+ }
132875
+ ],
132876
+ "mixins": [
132877
+ {
132878
+ "name": "SbbNamedSlotListMixin",
132879
+ "module": "core/mixins.js"
132880
+ }
132881
+ ],
133031
132882
  "superclass": {
133032
132883
  "name": "SbbElement",
133033
132884
  "module": "core/base-elements.js"
133034
132885
  },
133035
- "tagName": "sbb-train-blocked-passage",
132886
+ "tagName": "sbb-train",
133036
132887
  "customElement": true
133037
132888
  }
133038
132889
  ],
133039
132890
  "exports": [
133040
132891
  {
133041
132892
  "kind": "js",
133042
- "name": "SbbTrainBlockedPassageElement",
132893
+ "name": "SbbTrainElement",
133043
132894
  "declaration": {
133044
- "name": "SbbTrainBlockedPassageElement",
133045
- "module": "train/train-blocked-passage/train-blocked-passage.component.js"
132895
+ "name": "SbbTrainElement",
132896
+ "module": "train/train/train.component.js"
133046
132897
  }
133047
132898
  }
133048
132899
  ]
@@ -133379,6 +133230,155 @@
133379
133230
  }
133380
133231
  ]
133381
133232
  },
133233
+ {
133234
+ "kind": "javascript-module",
133235
+ "path": "train/train-blocked-passage/train-blocked-passage.component.js",
133236
+ "declarations": [
133237
+ {
133238
+ "kind": "class",
133239
+ "description": "It visually displays a blocked passage between train wagons.",
133240
+ "name": "SbbTrainBlockedPassageElement",
133241
+ "members": [
133242
+ {
133243
+ "kind": "field",
133244
+ "name": "elementName",
133245
+ "type": {
133246
+ "text": "string"
133247
+ },
133248
+ "privacy": "public",
133249
+ "static": true,
133250
+ "readonly": true,
133251
+ "default": "'sbb-train-blocked-passage'",
133252
+ "inheritedFrom": {
133253
+ "name": "SbbElement",
133254
+ "module": "core/base-elements/element.js"
133255
+ }
133256
+ },
133257
+ {
133258
+ "kind": "field",
133259
+ "name": "_hydrationRequired",
133260
+ "type": {
133261
+ "text": "boolean"
133262
+ },
133263
+ "privacy": "private",
133264
+ "default": "!!this.shadowRoot",
133265
+ "inheritedFrom": {
133266
+ "name": "SbbElement",
133267
+ "module": "core/base-elements/element.js"
133268
+ }
133269
+ },
133270
+ {
133271
+ "kind": "field",
133272
+ "name": "_hydrationComplete",
133273
+ "privacy": "private",
133274
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
133275
+ "inheritedFrom": {
133276
+ "name": "SbbElement",
133277
+ "module": "core/base-elements/element.js"
133278
+ }
133279
+ },
133280
+ {
133281
+ "kind": "field",
133282
+ "name": "_resolveHydration",
133283
+ "type": {
133284
+ "text": "(hydrationRequired: boolean) => void"
133285
+ },
133286
+ "privacy": "private",
133287
+ "inheritedFrom": {
133288
+ "name": "SbbElement",
133289
+ "module": "core/base-elements/element.js"
133290
+ }
133291
+ },
133292
+ {
133293
+ "kind": "field",
133294
+ "name": "hydrationRequired",
133295
+ "type": {
133296
+ "text": "boolean"
133297
+ },
133298
+ "privacy": "protected",
133299
+ "description": "Returns whether hydration is required and not completed.",
133300
+ "readonly": true,
133301
+ "inheritedFrom": {
133302
+ "name": "SbbElement",
133303
+ "module": "core/base-elements/element.js"
133304
+ },
133305
+ "default": "!!this.shadowRoot"
133306
+ },
133307
+ {
133308
+ "kind": "method",
133309
+ "name": "toggleState",
133310
+ "privacy": "protected",
133311
+ "return": {
133312
+ "type": {
133313
+ "text": "void"
133314
+ }
133315
+ },
133316
+ "parameters": [
133317
+ {
133318
+ "name": "value",
133319
+ "type": {
133320
+ "text": "string"
133321
+ }
133322
+ },
133323
+ {
133324
+ "name": "force",
133325
+ "optional": true,
133326
+ "type": {
133327
+ "text": "boolean"
133328
+ }
133329
+ }
133330
+ ],
133331
+ "inheritedFrom": {
133332
+ "name": "SbbElement",
133333
+ "module": "core/base-elements/element.js"
133334
+ }
133335
+ },
133336
+ {
133337
+ "kind": "field",
133338
+ "name": "['_$sbbElement$']",
133339
+ "type": {
133340
+ "text": "boolean"
133341
+ },
133342
+ "privacy": "public",
133343
+ "static": true,
133344
+ "default": "true",
133345
+ "inheritedFrom": {
133346
+ "name": "SbbElement",
133347
+ "module": "core/base-elements/element.js"
133348
+ }
133349
+ },
133350
+ {
133351
+ "kind": "field",
133352
+ "name": "_controllers",
133353
+ "type": {
133354
+ "text": "Set<SbbReactiveController> | undefined"
133355
+ },
133356
+ "privacy": "private",
133357
+ "inheritedFrom": {
133358
+ "name": "SbbElement",
133359
+ "module": "core/base-elements/element.js"
133360
+ }
133361
+ }
133362
+ ],
133363
+ "superclass": {
133364
+ "name": "SbbElement",
133365
+ "module": "core/base-elements.js"
133366
+ },
133367
+ "tagName": "sbb-train-blocked-passage",
133368
+ "customElement": true
133369
+ }
133370
+ ],
133371
+ "exports": [
133372
+ {
133373
+ "kind": "js",
133374
+ "name": "SbbTrainBlockedPassageElement",
133375
+ "declaration": {
133376
+ "name": "SbbTrainBlockedPassageElement",
133377
+ "module": "train/train-blocked-passage/train-blocked-passage.component.js"
133378
+ }
133379
+ }
133380
+ ]
133381
+ },
133382
133382
  {
133383
133383
  "kind": "javascript-module",
133384
133384
  "path": "train/train-wagon/train-wagon.component.js",