@sbb-esta/lyne-elements-dev 5.0.0-next-dev.1777014673 → 5.0.0-next-dev.1777021773

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 (32) hide show
  1. package/core/styles/core.scss +4 -1
  2. package/core.css +17 -8
  3. package/custom-elements.json +1177 -1177
  4. package/development/dialog/dialog/dialog.component.js +1 -1
  5. package/development/dialog.component-BTXyWi17.js +233 -0
  6. package/development/dialog.js +1 -1
  7. package/development/dialog.pure.js +1 -1
  8. package/development/file-selector/common/file-selector-common.d.ts.map +1 -1
  9. package/development/file-selector/common/file-selector-common.js +1 -1
  10. package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.d.ts.map +1 -1
  11. package/development/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +1 -1
  12. package/development/file-selector-common-BX5f18cJ.js +409 -0
  13. package/development/file-selector-dropzone.component-DMNom2OW.js +110 -0
  14. package/development/file-selector.js +2 -2
  15. package/development/file-selector.pure.js +2 -2
  16. package/dialog/dialog/dialog.component.js +1 -1
  17. package/{dialog.component-DTbAHlVd.js → dialog.component-ChB9gCyY.js} +1 -1
  18. package/dialog.js +1 -1
  19. package/dialog.pure.js +1 -1
  20. package/file-selector/common/file-selector-common.js +1 -1
  21. package/file-selector/file-selector-dropzone/file-selector-dropzone.component.js +1 -1
  22. package/{file-selector-common-DpccuOQ4.js → file-selector-common-CMLaHuDP.js} +38 -40
  23. package/{file-selector-dropzone.component-BSF-kegh.js → file-selector-dropzone.component-CWwpvAVD.js} +3 -4
  24. package/file-selector.js +2 -2
  25. package/file-selector.pure.js +2 -2
  26. package/off-brand-theme.css +17 -8
  27. package/package.json +2 -2
  28. package/safety-theme.css +17 -8
  29. package/standard-theme.css +17 -8
  30. package/development/dialog.component-B4cZfRCl.js +0 -233
  31. package/development/file-selector-common-DE_jT1fa.js +0 -411
  32. package/development/file-selector-dropzone.component-B1Y5qOjb.js +0 -111
@@ -155467,12 +155467,12 @@
155467
155467
  },
155468
155468
  {
155469
155469
  "kind": "javascript-module",
155470
- "path": "timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js",
155470
+ "path": "timetable-form/timetable-form-field/timetable-form-field.component.js",
155471
155471
  "declarations": [
155472
155472
  {
155473
155473
  "kind": "class",
155474
- "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.",
155475
- "name": "SbbTimetableFormSwapButtonElement",
155474
+ "description": "Extends the `sbb-form-field`. Meant to be used inside a `sbb-timetable-form`.",
155475
+ "name": "SbbTimetableFormFieldElement",
155476
155476
  "members": [
155477
155477
  {
155478
155478
  "kind": "field",
@@ -155483,88 +155483,83 @@
155483
155483
  "privacy": "public",
155484
155484
  "static": true,
155485
155485
  "readonly": true,
155486
+ "default": "'sbb-timetable-form-field'",
155486
155487
  "inheritedFrom": {
155487
155488
  "name": "SbbElement",
155488
155489
  "module": "core/base-elements/element.js"
155489
- },
155490
- "default": "'sbb-timetable-form-swap-button'"
155490
+ }
155491
155491
  },
155492
155492
  {
155493
155493
  "kind": "field",
155494
- "name": "_languageController",
155495
- "privacy": "private",
155496
- "default": "new SbbLanguageController(this)"
155497
- },
155498
- {
155499
- "kind": "method",
155500
- "name": "_invertFieldValues",
155501
- "privacy": "private",
155502
- "return": {
155503
- "type": {
155504
- "text": "void"
155505
- }
155494
+ "name": "_routeIcon",
155495
+ "type": {
155496
+ "text": "boolean"
155506
155497
  },
155507
- "description": "Search for `sbb-timetable-form-field` inputs, invert their values and dispatch the respective input and change events"
155498
+ "privacy": "private",
155499
+ "default": "false"
155508
155500
  },
155509
155501
  {
155510
- "kind": "method",
155511
- "name": "renderIconName",
155512
- "privacy": "protected",
155513
- "return": {
155514
- "type": {
155515
- "text": "string"
155516
- }
155502
+ "kind": "field",
155503
+ "name": "borderless",
155504
+ "type": {
155505
+ "text": "boolean"
155517
155506
  },
155507
+ "privacy": "public",
155508
+ "default": "true",
155509
+ "description": "Whether to display the form field without a border.",
155510
+ "attribute": "borderless",
155511
+ "reflects": true,
155518
155512
  "inheritedFrom": {
155519
- "name": "SbbIconNameMixin",
155520
- "module": "icon/icon-name-mixin.js"
155513
+ "name": "SbbFormFieldElement",
155514
+ "module": "form-field/form-field/form-field.component.js"
155521
155515
  }
155522
155516
  },
155523
155517
  {
155524
155518
  "kind": "field",
155525
- "name": "size",
155519
+ "name": "floatingLabel",
155526
155520
  "type": {
155527
- "text": "SbbButtonSize"
155521
+ "text": "boolean"
155528
155522
  },
155529
155523
  "privacy": "public",
155530
- "description": "Size variant, either l, m or s.",
155531
- "default": "'l'",
155532
- "attribute": "size",
155524
+ "default": "true",
155525
+ "description": "Whether the label should float. If activated, the placeholder of the input is hidden.",
155526
+ "attribute": "floating-label",
155533
155527
  "reflects": true,
155534
155528
  "inheritedFrom": {
155535
- "name": "SbbButtonCommonElementMixin",
155536
- "module": "button/common/button-common.js"
155529
+ "name": "SbbFormFieldElement",
155530
+ "module": "form-field/form-field/form-field.component.js"
155537
155531
  }
155538
155532
  },
155539
155533
  {
155540
155534
  "kind": "field",
155541
- "name": "loading",
155535
+ "name": "width",
155542
155536
  "type": {
155543
- "text": "boolean"
155537
+ "text": "string"
155544
155538
  },
155545
155539
  "privacy": "public",
155546
- "default": "false",
155547
- "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.",
155548
- "attribute": "loading",
155540
+ "default": "'collapse'",
155541
+ "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.",
155542
+ "attribute": "width",
155549
155543
  "reflects": true,
155550
155544
  "inheritedFrom": {
155551
- "name": "SbbButtonCommonElementMixin",
155552
- "module": "button/common/button-common.js"
155545
+ "name": "SbbFormFieldElement",
155546
+ "module": "form-field/form-field/form-field.component.js"
155553
155547
  }
155554
155548
  },
155555
155549
  {
155556
- "kind": "method",
155557
- "name": "renderTemplate",
155558
- "privacy": "protected",
155559
- "return": {
155560
- "type": {
155561
- "text": "TemplateResult"
155562
- }
155550
+ "kind": "field",
155551
+ "name": "size",
155552
+ "type": {
155553
+ "text": "string"
155563
155554
  },
155564
- "description": "Override this method to render the component template.",
155555
+ "privacy": "public",
155556
+ "description": "Size variant, either l, m or s.",
155557
+ "default": "'l'",
155558
+ "attribute": "size",
155559
+ "reflects": true,
155565
155560
  "inheritedFrom": {
155566
- "name": "SbbActionBaseElement",
155567
- "module": "core/base-elements/action-base-element.js"
155561
+ "name": "SbbFormFieldElement",
155562
+ "module": "form-field/form-field/form-field.component.js"
155568
155563
  }
155569
155564
  },
155570
155565
  {
@@ -155591,639 +155586,592 @@
155591
155586
  },
155592
155587
  "privacy": "public",
155593
155588
  "static": true,
155589
+ "default": "[SbbIconElement]",
155594
155590
  "inheritedFrom": {
155595
155591
  "name": "SbbElement",
155596
155592
  "module": "core/base-elements/element.js"
155597
- },
155598
- "default": "[SbbIconElement]"
155593
+ }
155599
155594
  },
155600
155595
  {
155601
155596
  "kind": "field",
155602
- "name": "iconName",
155597
+ "name": "_excludedFocusElements",
155603
155598
  "type": {
155604
- "text": "string"
155599
+ "text": "array"
155605
155600
  },
155606
- "privacy": "public",
155607
- "default": "''",
155608
- "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.",
155609
- "attribute": "icon-name",
155601
+ "privacy": "private",
155602
+ "readonly": true,
155603
+ "default": "['button', 'sbb-popover', 'sbb-option', 'sbb-chip']",
155610
155604
  "inheritedFrom": {
155611
- "name": "SbbIconNameMixin",
155612
- "module": "icon/icon-name-mixin.js"
155605
+ "name": "SbbFormFieldElement",
155606
+ "module": "form-field/form-field/form-field.component.js"
155613
155607
  }
155614
155608
  },
155615
155609
  {
155616
- "kind": "method",
155617
- "name": "renderIconSlot",
155618
- "privacy": "protected",
155619
- "return": {
155620
- "type": {
155621
- "text": "TemplateResult"
155622
- }
155610
+ "kind": "field",
155611
+ "name": "_floatingLabelSupportedInputElements",
155612
+ "type": {
155613
+ "text": "array"
155623
155614
  },
155624
- "parameters": [
155625
- {
155626
- "name": "classname",
155627
- "optional": true,
155628
- "type": {
155629
- "text": "string"
155630
- }
155631
- }
155632
- ],
155615
+ "privacy": "private",
155616
+ "readonly": true,
155617
+ "default": "[ 'input', 'select', 'textarea', 'sbb-select', ]",
155633
155618
  "inheritedFrom": {
155634
- "name": "SbbIconNameMixin",
155635
- "module": "icon/icon-name-mixin.js"
155619
+ "name": "SbbFormFieldElement",
155620
+ "module": "form-field/form-field/form-field.component.js"
155636
155621
  }
155637
155622
  },
155638
155623
  {
155639
- "kind": "method",
155640
- "name": "_renderIconName",
155641
- "privacy": "private",
155642
- "return": {
155643
- "type": {
155644
- "text": "string"
155645
- }
155624
+ "kind": "field",
155625
+ "name": "_floatingLabelSupportedInputTypes",
155626
+ "type": {
155627
+ "text": "array"
155646
155628
  },
155629
+ "privacy": "private",
155630
+ "readonly": true,
155631
+ "default": "[ 'email', 'number', 'password', 'search', 'tel', 'text', 'url', ]",
155647
155632
  "inheritedFrom": {
155648
- "name": "SbbIconNameMixin",
155649
- "module": "icon/icon-name-mixin.js"
155633
+ "name": "SbbFormFieldElement",
155634
+ "module": "form-field/form-field/form-field.component.js"
155650
155635
  }
155651
155636
  },
155652
155637
  {
155653
155638
  "kind": "field",
155654
- "name": "disabledInteractive",
155639
+ "name": "errorSpace",
155655
155640
  "type": {
155656
- "text": "boolean"
155641
+ "text": "'none' | 'reserve'"
155657
155642
  },
155658
155643
  "privacy": "public",
155659
- "default": "false",
155660
- "description": "Whether the button should be aria-disabled but stay interactive.",
155661
- "attribute": "disabled-interactive",
155644
+ "default": "'none'",
155645
+ "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.",
155646
+ "attribute": "error-space",
155662
155647
  "reflects": true,
155663
155648
  "inheritedFrom": {
155664
- "name": "SbbDisabledInteractiveMixin",
155665
- "module": "core/mixins/disabled-mixin.js"
155649
+ "name": "SbbFormFieldElement",
155650
+ "module": "form-field/form-field/form-field.component.js"
155666
155651
  }
155667
155652
  },
155668
155653
  {
155669
155654
  "kind": "field",
155670
- "name": "disabled",
155671
- "privacy": "public",
155672
- "description": "Whether the component is disabled.",
155673
- "default": "false",
155655
+ "name": "optional",
155674
155656
  "type": {
155675
155657
  "text": "boolean"
155676
155658
  },
155677
- "attribute": "disabled",
155678
- "reflects": true,
155659
+ "privacy": "public",
155660
+ "default": "false",
155661
+ "description": "Indicates whether the input is optional.",
155662
+ "deprecated": "Set the (optional) label text manually. Will be removed with next major version.",
155663
+ "attribute": "optional",
155679
155664
  "inheritedFrom": {
155680
- "name": "SbbDisabledMixin",
155681
- "module": "core/mixins/disabled-mixin.js"
155665
+ "name": "SbbFormFieldElement",
155666
+ "module": "form-field/form-field/form-field.component.js"
155682
155667
  }
155683
155668
  },
155684
155669
  {
155685
155670
  "kind": "field",
155686
- "name": "#disabled",
155687
- "privacy": "private",
155671
+ "name": "hiddenLabel",
155688
155672
  "type": {
155689
155673
  "text": "boolean"
155690
155674
  },
155675
+ "privacy": "public",
155691
155676
  "default": "false",
155677
+ "description": "Whether to visually hide the label. If hidden, screen readers will still read it.",
155678
+ "attribute": "hidden-label",
155679
+ "reflects": true,
155692
155680
  "inheritedFrom": {
155693
- "name": "SbbDisabledMixin",
155694
- "module": "core/mixins/disabled-mixin.js"
155681
+ "name": "SbbFormFieldElement",
155682
+ "module": "form-field/form-field/form-field.component.js"
155695
155683
  }
155696
155684
  },
155697
155685
  {
155698
- "kind": "method",
155699
- "name": "isDisabledExternally",
155700
- "privacy": "protected",
155701
- "return": {
155702
- "type": {
155703
- "text": "boolean"
155704
- }
155686
+ "kind": "field",
155687
+ "name": "_errorElements",
155688
+ "type": {
155689
+ "text": "Element[]"
155705
155690
  },
155706
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
155691
+ "privacy": "private",
155692
+ "default": "[]",
155693
+ "description": "It is used internally to get the `error` slot.",
155707
155694
  "inheritedFrom": {
155708
- "name": "SbbDisabledMixin",
155709
- "module": "core/mixins/disabled-mixin.js"
155695
+ "name": "SbbFormFieldElement",
155696
+ "module": "form-field/form-field/form-field.component.js"
155710
155697
  }
155711
155698
  },
155712
155699
  {
155713
155700
  "kind": "field",
155714
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
155701
+ "name": "_hintElements",
155715
155702
  "type": {
155716
- "text": "array"
155703
+ "text": "Element[]"
155717
155704
  },
155718
155705
  "privacy": "private",
155719
- "readonly": true,
155720
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
155706
+ "default": "[]",
155707
+ "description": "It is used internally to get the `hint` slot.",
155721
155708
  "inheritedFrom": {
155722
- "name": "SbbButtonBaseElement",
155723
- "module": "core/base-elements/button-base-element.js"
155709
+ "name": "SbbFormFieldElement",
155710
+ "module": "form-field/form-field/form-field.component.js"
155724
155711
  }
155725
155712
  },
155726
155713
  {
155727
155714
  "kind": "field",
155728
- "name": "value",
155715
+ "name": "_input",
155729
155716
  "type": {
155730
- "text": "string"
155717
+ "text": "HTMLInputElement | HTMLSelectElement | HTMLElement | null"
155731
155718
  },
155732
- "privacy": "public",
155719
+ "privacy": "private",
155720
+ "default": "null",
155721
+ "description": "Reference to the slotted input element.",
155733
155722
  "inheritedFrom": {
155734
- "name": "SbbButtonBaseElement",
155735
- "module": "core/base-elements/button-base-element.js"
155736
- },
155737
- "default": "''",
155738
- "description": "Value of the form element.",
155739
- "attribute": "value"
155723
+ "name": "SbbFormFieldElement",
155724
+ "module": "form-field/form-field/form-field.component.js"
155725
+ }
155740
155726
  },
155741
155727
  {
155742
155728
  "kind": "field",
155743
- "name": "type",
155744
- "privacy": "public",
155745
- "description": "The type attribute to use for the button.",
155746
- "default": "'button'",
155729
+ "name": "_label",
155747
155730
  "type": {
155748
- "text": "SbbButtonType"
155731
+ "text": "HTMLLabelElement"
155749
155732
  },
155750
- "attribute": "type",
155733
+ "privacy": "private",
155734
+ "description": "Reference to the slotted label elements.",
155751
155735
  "inheritedFrom": {
155752
- "name": "SbbButtonBaseElement",
155753
- "module": "core/base-elements/button-base-element.js"
155736
+ "name": "SbbFormFieldElement",
155737
+ "module": "form-field/form-field/form-field.component.js"
155754
155738
  }
155755
155739
  },
155756
155740
  {
155757
155741
  "kind": "field",
155758
- "name": "form",
155742
+ "name": "inputElement",
155759
155743
  "type": {
155760
- "text": "HTMLFormElement | null"
155744
+ "text": "HTMLInputElement | HTMLSelectElement | HTMLElement | null"
155761
155745
  },
155762
155746
  "privacy": "public",
155763
- "description": "The `<form>` element to associate the button with.",
155747
+ "description": "Returns the input element.",
155748
+ "readonly": true,
155764
155749
  "inheritedFrom": {
155765
- "name": "SbbButtonBaseElement",
155766
- "module": "core/base-elements/button-base-element.js"
155767
- },
155768
- "attribute": "form"
155750
+ "name": "SbbFormFieldElement",
155751
+ "module": "form-field/form-field/form-field.component.js"
155752
+ }
155769
155753
  },
155770
155754
  {
155771
155755
  "kind": "field",
155772
- "name": "_formId",
155756
+ "name": "label",
155773
155757
  "type": {
155774
- "text": "string"
155758
+ "text": "HTMLLabelElement | null"
155775
155759
  },
155776
- "privacy": "private",
155777
- "default": "''",
155760
+ "privacy": "public",
155761
+ "description": "Reference to the slotted label.",
155762
+ "readonly": true,
155778
155763
  "inheritedFrom": {
155779
- "name": "SbbButtonBaseElement",
155780
- "module": "core/base-elements/button-base-element.js"
155764
+ "name": "SbbFormFieldElement",
155765
+ "module": "form-field/form-field/form-field.component.js"
155781
155766
  }
155782
155767
  },
155783
155768
  {
155784
155769
  "kind": "field",
155785
- "name": "_handleButtonClick",
155770
+ "name": "_language",
155786
155771
  "privacy": "private",
155772
+ "default": "new SbbLanguageController(this)",
155787
155773
  "inheritedFrom": {
155788
- "name": "SbbButtonBaseElement",
155789
- "module": "core/base-elements/button-base-element.js"
155774
+ "name": "SbbFormFieldElement",
155775
+ "module": "form-field/form-field/form-field.component.js"
155790
155776
  }
155791
155777
  },
155792
155778
  {
155793
- "kind": "method",
155794
- "name": "_requestSubmit",
155779
+ "kind": "field",
155780
+ "name": "_formFieldAttributeObserver",
155795
155781
  "privacy": "private",
155796
- "return": {
155797
- "type": {
155798
- "text": "void"
155799
- }
155800
- },
155801
- "parameters": [
155802
- {
155803
- "name": "form",
155804
- "type": {
155805
- "text": "HTMLFormElement"
155806
- }
155807
- }
155808
- ],
155782
+ "description": "Listens to the changes on `readonly` and `disabled` attributes of `<input>`.",
155809
155783
  "inheritedFrom": {
155810
- "name": "SbbButtonBaseElement",
155811
- "module": "core/base-elements/button-base-element.js"
155784
+ "name": "SbbFormFieldElement",
155785
+ "module": "form-field/form-field/form-field.component.js"
155812
155786
  }
155813
155787
  },
155814
155788
  {
155815
155789
  "kind": "field",
155816
- "name": "_formKeyDown",
155790
+ "name": "_inputFormAbortController",
155817
155791
  "privacy": "private",
155792
+ "default": "new AbortController()",
155818
155793
  "inheritedFrom": {
155819
- "name": "SbbButtonBaseElement",
155820
- "module": "core/base-elements/button-base-element.js"
155794
+ "name": "SbbFormFieldElement",
155795
+ "module": "form-field/form-field/form-field.component.js"
155821
155796
  }
155822
155797
  },
155823
155798
  {
155824
155799
  "kind": "field",
155825
- "name": "formAssociated",
155800
+ "name": "_control",
155826
155801
  "type": {
155827
- "text": "boolean"
155802
+ "text": "SbbFormFieldElementControl | null"
155828
155803
  },
155829
- "privacy": "public",
155830
- "static": true,
155831
- "default": "true",
155804
+ "privacy": "private",
155805
+ "default": "null",
155832
155806
  "inheritedFrom": {
155833
- "name": "SbbFormAssociatedMixin",
155834
- "module": "core/mixins/form-associated-mixin.js"
155807
+ "name": "SbbFormFieldElement",
155808
+ "module": "form-field/form-field/form-field.component.js"
155835
155809
  }
155836
155810
  },
155837
155811
  {
155838
155812
  "kind": "field",
155839
- "name": "name",
155840
- "privacy": "public",
155841
- "description": "Name of the form element. Will be read from name attribute.",
155813
+ "name": "_previousType",
155842
155814
  "type": {
155843
- "text": "string"
155815
+ "text": "string | null"
155844
155816
  },
155845
- "attribute": "name",
155817
+ "privacy": "private",
155818
+ "default": "null",
155846
155819
  "inheritedFrom": {
155847
- "name": "SbbFormAssociatedMixin",
155848
- "module": "core/mixins/form-associated-mixin.js"
155820
+ "name": "SbbFormFieldElement",
155821
+ "module": "form-field/form-field/form-field.component.js"
155849
155822
  }
155850
155823
  },
155851
155824
  {
155852
- "kind": "field",
155853
- "name": "validity",
155854
- "type": {
155855
- "text": "ValidityState"
155825
+ "kind": "method",
155826
+ "name": "_handleWrapperClick",
155827
+ "privacy": "private",
155828
+ "return": {
155829
+ "type": {
155830
+ "text": "void"
155831
+ }
155856
155832
  },
155857
- "privacy": "public",
155858
- "description": "Returns the ValidityState object for this element.",
155859
- "readonly": true,
155833
+ "parameters": [
155834
+ {
155835
+ "name": "event",
155836
+ "type": {
155837
+ "text": "MouseEvent"
155838
+ }
155839
+ }
155840
+ ],
155860
155841
  "inheritedFrom": {
155861
- "name": "SbbFormAssociatedMixin",
155862
- "module": "core/mixins/form-associated-mixin.js"
155842
+ "name": "SbbFormFieldElement",
155843
+ "module": "form-field/form-field/form-field.component.js"
155863
155844
  }
155864
155845
  },
155865
155846
  {
155866
- "kind": "field",
155867
- "name": "validationMessage",
155868
- "type": {
155869
- "text": "string"
155847
+ "kind": "method",
155848
+ "name": "_isElementFocusExcluded",
155849
+ "privacy": "private",
155850
+ "return": {
155851
+ "type": {
155852
+ "text": "boolean"
155853
+ }
155870
155854
  },
155871
- "privacy": "public",
155872
- "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.",
155873
- "readonly": true,
155855
+ "parameters": [
155856
+ {
155857
+ "name": "event",
155858
+ "type": {
155859
+ "text": "Event"
155860
+ }
155861
+ }
155862
+ ],
155874
155863
  "inheritedFrom": {
155875
- "name": "SbbFormAssociatedMixin",
155876
- "module": "core/mixins/form-associated-mixin.js"
155864
+ "name": "SbbFormFieldElement",
155865
+ "module": "form-field/form-field/form-field.component.js"
155877
155866
  }
155878
155867
  },
155879
155868
  {
155880
- "kind": "field",
155881
- "name": "willValidate",
155882
- "type": {
155883
- "text": "boolean"
155869
+ "kind": "method",
155870
+ "name": "_onSlotLabelChange",
155871
+ "privacy": "private",
155872
+ "return": {
155873
+ "type": {
155874
+ "text": "void"
155875
+ }
155884
155876
  },
155885
- "privacy": "public",
155886
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
155887
- "readonly": true,
155888
155877
  "inheritedFrom": {
155889
- "name": "SbbFormAssociatedMixin",
155890
- "module": "core/mixins/form-associated-mixin.js"
155878
+ "name": "SbbFormFieldElement",
155879
+ "module": "form-field/form-field/form-field.component.js"
155891
155880
  }
155892
155881
  },
155893
155882
  {
155894
- "kind": "field",
155895
- "name": "_validityStates",
155883
+ "kind": "method",
155884
+ "name": "_onSlotInputChange",
155896
155885
  "privacy": "private",
155897
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
155886
+ "return": {
155887
+ "type": {
155888
+ "text": "void"
155889
+ }
155890
+ },
155891
+ "description": "It is used internally to assign the attributes of `<input>` to `_id` and `_input` and to observe the native readonly and disabled attributes.",
155898
155892
  "inheritedFrom": {
155899
- "name": "SbbFormAssociatedMixin",
155900
- "module": "core/mixins/form-associated-mixin.js"
155893
+ "name": "SbbFormFieldElement",
155894
+ "module": "form-field/form-field/form-field.component.js"
155901
155895
  }
155902
155896
  },
155903
155897
  {
155904
- "kind": "field",
155905
- "name": "formDisabled",
155906
- "type": {
155907
- "text": "boolean"
155898
+ "kind": "method",
155899
+ "name": "_assignSlots",
155900
+ "privacy": "private",
155901
+ "return": {
155902
+ "type": {
155903
+ "text": "void"
155904
+ }
155908
155905
  },
155909
- "privacy": "protected",
155910
- "default": "false",
155911
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
155912
155906
  "inheritedFrom": {
155913
- "name": "SbbFormAssociatedMixin",
155914
- "module": "core/mixins/form-associated-mixin.js"
155907
+ "name": "SbbFormFieldElement",
155908
+ "module": "form-field/form-field/form-field.component.js"
155915
155909
  }
155916
155910
  },
155917
155911
  {
155918
155912
  "kind": "method",
155919
- "name": "checkValidity",
155920
- "privacy": "public",
155913
+ "name": "_connectInputElement",
155914
+ "privacy": "private",
155921
155915
  "return": {
155922
155916
  "type": {
155923
- "text": "boolean"
155917
+ "text": "'changed' | 'no-input' | 'unchanged'"
155924
155918
  }
155925
155919
  },
155926
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
155927
155920
  "inheritedFrom": {
155928
- "name": "SbbFormAssociatedMixin",
155929
- "module": "core/mixins/form-associated-mixin.js"
155921
+ "name": "SbbFormFieldElement",
155922
+ "module": "form-field/form-field/form-field.component.js"
155930
155923
  }
155931
155924
  },
155932
155925
  {
155933
155926
  "kind": "method",
155934
- "name": "reportValidity",
155935
- "privacy": "public",
155927
+ "name": "_syncLabelInputReferences",
155928
+ "privacy": "private",
155936
155929
  "return": {
155937
155930
  "type": {
155938
- "text": "boolean"
155931
+ "text": "void"
155939
155932
  }
155940
155933
  },
155941
- "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.",
155942
155934
  "inheritedFrom": {
155943
- "name": "SbbFormAssociatedMixin",
155944
- "module": "core/mixins/form-associated-mixin.js"
155935
+ "name": "SbbFormFieldElement",
155936
+ "module": "form-field/form-field/form-field.component.js"
155945
155937
  }
155946
155938
  },
155947
155939
  {
155948
155940
  "kind": "method",
155949
- "name": "setCustomValidity",
155950
- "privacy": "public",
155941
+ "name": "_isInputElement",
155942
+ "privacy": "private",
155951
155943
  "return": {
155952
155944
  "type": {
155953
- "text": "void"
155945
+ "text": "boolean"
155954
155946
  }
155955
155947
  },
155956
155948
  "parameters": [
155957
155949
  {
155958
- "name": "message",
155950
+ "name": "input",
155959
155951
  "type": {
155960
- "text": "string"
155952
+ "text": "Element"
155961
155953
  }
155962
155954
  }
155963
155955
  ],
155964
- "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.",
155965
155956
  "inheritedFrom": {
155966
- "name": "SbbFormAssociatedMixin",
155967
- "module": "core/mixins/form-associated-mixin.js"
155957
+ "name": "SbbFormFieldElement",
155958
+ "module": "form-field/form-field/form-field.component.js"
155968
155959
  }
155969
155960
  },
155970
155961
  {
155971
155962
  "kind": "method",
155972
- "name": "_hasDisabledAncestor",
155963
+ "name": "_readInputState",
155973
155964
  "privacy": "private",
155974
155965
  "return": {
155975
155966
  "type": {
155976
- "text": "boolean"
155967
+ "text": "void"
155977
155968
  }
155978
155969
  },
155979
155970
  "inheritedFrom": {
155980
- "name": "SbbFormAssociatedMixin",
155981
- "module": "core/mixins/form-associated-mixin.js"
155971
+ "name": "SbbFormFieldElement",
155972
+ "module": "form-field/form-field/form-field.component.js"
155982
155973
  }
155983
155974
  },
155984
155975
  {
155985
155976
  "kind": "method",
155986
- "name": "updateFormValue",
155987
- "privacy": "protected",
155977
+ "name": "_registerInputFormListener",
155978
+ "privacy": "private",
155988
155979
  "return": {
155989
155980
  "type": {
155990
155981
  "text": "void"
155991
155982
  }
155992
155983
  },
155993
- "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",
155994
155984
  "inheritedFrom": {
155995
- "name": "SbbFormAssociatedMixin",
155996
- "module": "core/mixins/form-associated-mixin.js"
155985
+ "name": "SbbFormFieldElement",
155986
+ "module": "form-field/form-field/form-field.component.js"
155997
155987
  }
155998
155988
  },
155999
155989
  {
156000
155990
  "kind": "method",
156001
- "name": "formState",
156002
- "privacy": "protected",
155991
+ "name": "_patchInputValue",
155992
+ "privacy": "private",
156003
155993
  "return": {
156004
155994
  "type": {
156005
- "text": "FormRestoreState"
155995
+ "text": "void"
156006
155996
  }
156007
155997
  },
156008
155998
  "inheritedFrom": {
156009
- "name": "SbbFormAssociatedMixin",
156010
- "module": "core/mixins/form-associated-mixin.js"
155999
+ "name": "SbbFormFieldElement",
156000
+ "module": "form-field/form-field/form-field.component.js"
156011
156001
  }
156012
156002
  },
156013
156003
  {
156014
156004
  "kind": "method",
156015
- "name": "setValidityFlag",
156016
- "privacy": "protected",
156005
+ "name": "_unpatchInputValue",
156006
+ "privacy": "private",
156017
156007
  "return": {
156018
156008
  "type": {
156019
156009
  "text": "void"
156020
156010
  }
156021
156011
  },
156022
- "parameters": [
156023
- {
156024
- "name": "flag",
156025
- "type": {
156026
- "text": "T"
156027
- }
156028
- },
156029
- {
156030
- "name": "message",
156031
- "type": {
156032
- "text": "string"
156033
- }
156034
- },
156035
- {
156036
- "name": "flagValue",
156037
- "optional": true,
156038
- "type": {
156039
- "text": "ValidityStateFlags[T]"
156040
- }
156041
- }
156042
- ],
156043
- "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).",
156044
156012
  "inheritedFrom": {
156045
- "name": "SbbFormAssociatedMixin",
156046
- "module": "core/mixins/form-associated-mixin.js"
156013
+ "name": "SbbFormFieldElement",
156014
+ "module": "form-field/form-field/form-field.component.js"
156047
156015
  }
156048
156016
  },
156049
156017
  {
156050
156018
  "kind": "method",
156051
- "name": "removeValidityFlag",
156052
- "privacy": "protected",
156019
+ "name": "_checkAndUpdateInputEmpty",
156020
+ "privacy": "private",
156053
156021
  "return": {
156054
156022
  "type": {
156055
156023
  "text": "void"
156056
156024
  }
156057
156025
  },
156058
- "parameters": [
156059
- {
156060
- "name": "flag",
156061
- "type": {
156062
- "text": "T"
156063
- }
156064
- }
156065
- ],
156066
- "description": "Removes the validity state flag entry and updates validity state.",
156067
156026
  "inheritedFrom": {
156068
- "name": "SbbFormAssociatedMixin",
156069
- "module": "core/mixins/form-associated-mixin.js"
156027
+ "name": "SbbFormFieldElement",
156028
+ "module": "form-field/form-field/form-field.component.js"
156070
156029
  }
156071
156030
  },
156072
156031
  {
156073
156032
  "kind": "method",
156074
- "name": "validate",
156075
- "privacy": "protected",
156033
+ "name": "_isInputEmpty",
156034
+ "privacy": "private",
156076
156035
  "return": {
156077
156036
  "type": {
156078
- "text": "void"
156037
+ "text": "boolean"
156079
156038
  }
156080
156039
  },
156081
- "description": "To be called whenever the current element needs to be validated.",
156082
156040
  "inheritedFrom": {
156083
- "name": "SbbFormAssociatedMixin",
156084
- "module": "core/mixins/form-associated-mixin.js"
156041
+ "name": "SbbFormFieldElement",
156042
+ "module": "form-field/form-field/form-field.component.js"
156085
156043
  }
156086
156044
  },
156087
156045
  {
156088
156046
  "kind": "method",
156089
- "name": "shouldValidate",
156090
- "privacy": "protected",
156047
+ "name": "_isInputValueEmpty",
156048
+ "privacy": "private",
156091
156049
  "return": {
156092
156050
  "type": {
156093
156051
  "text": "boolean"
156094
156052
  }
156095
156053
  },
156054
+ "inheritedFrom": {
156055
+ "name": "SbbFormFieldElement",
156056
+ "module": "form-field/form-field/form-field.component.js"
156057
+ }
156058
+ },
156059
+ {
156060
+ "kind": "method",
156061
+ "name": "_onSlotErrorChange",
156062
+ "privacy": "private",
156063
+ "return": {
156064
+ "type": {
156065
+ "text": "void"
156066
+ }
156067
+ },
156096
156068
  "parameters": [
156097
156069
  {
156098
- "name": "name",
156070
+ "name": "event",
156099
156071
  "type": {
156100
- "text": "PropertyKey | undefined"
156072
+ "text": "Event"
156101
156073
  }
156102
156074
  }
156103
156075
  ],
156104
- "description": "Whether validation should be run on a property change with the given name.",
156076
+ "description": "It is used internally to set the aria-describedby attribute for the slotted input referencing available <sbb-error> instances.",
156105
156077
  "inheritedFrom": {
156106
- "name": "SbbFormAssociatedMixin",
156107
- "module": "core/mixins/form-associated-mixin.js"
156078
+ "name": "SbbFormFieldElement",
156079
+ "module": "form-field/form-field/form-field.component.js"
156108
156080
  }
156109
156081
  },
156110
156082
  {
156111
156083
  "kind": "method",
156112
- "name": "_setInternalValidity",
156084
+ "name": "_onSlotHintChange",
156113
156085
  "privacy": "private",
156114
156086
  "return": {
156115
156087
  "type": {
156116
156088
  "text": "void"
156117
156089
  }
156118
156090
  },
156119
- "inheritedFrom": {
156120
- "name": "SbbFormAssociatedMixin",
156121
- "module": "core/mixins/form-associated-mixin.js"
156122
- }
156123
- },
156124
- {
156125
- "kind": "field",
156126
- "name": "role",
156127
- "type": {
156128
- "text": "ElementInternals['role']"
156129
- },
156130
- "privacy": "public",
156131
- "static": true,
156132
- "inheritedFrom": {
156133
- "name": "SbbElement",
156134
- "module": "core/base-elements/element.js"
156135
- },
156136
- "readonly": true,
156137
- "default": "'button'"
156138
- },
156139
- {
156140
- "kind": "field",
156141
- "name": "_preventScrollOnSpaceKeydown",
156142
- "privacy": "private",
156143
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
156144
156091
  "parameters": [
156145
156092
  {
156146
- "description": "The origin event.",
156147
- "name": "event"
156093
+ "name": "event",
156094
+ "type": {
156095
+ "text": "Event"
156096
+ }
156148
156097
  }
156149
156098
  ],
156099
+ "description": "It is used internally to set the aria-describedby attribute for the slotted input referencing available <sbb-hint> instances.",
156150
156100
  "inheritedFrom": {
156151
- "name": "SbbButtonLikeBaseElement",
156152
- "module": "core/base-elements/button-base-element.js"
156153
- }
156154
- },
156155
- {
156156
- "kind": "field",
156157
- "name": "_removeActiveMarker",
156158
- "privacy": "private",
156159
- "inheritedFrom": {
156160
- "name": "SbbButtonLikeBaseElement",
156161
- "module": "core/base-elements/button-base-element.js"
156101
+ "name": "SbbFormFieldElement",
156102
+ "module": "form-field/form-field/form-field.component.js"
156162
156103
  }
156163
156104
  },
156164
156105
  {
156165
- "kind": "field",
156166
- "name": "_dispatchClickEventOnSpaceKeyup",
156106
+ "kind": "method",
156107
+ "name": "_assignAriaDescribedByElements",
156167
156108
  "privacy": "private",
156168
- "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.",
156169
- "parameters": [
156170
- {
156171
- "description": "The origin event.",
156172
- "name": "event"
156109
+ "return": {
156110
+ "type": {
156111
+ "text": "void"
156173
156112
  }
156174
- ],
156113
+ },
156175
156114
  "inheritedFrom": {
156176
- "name": "SbbButtonLikeBaseElement",
156177
- "module": "core/base-elements/button-base-element.js"
156115
+ "name": "SbbFormFieldElement",
156116
+ "module": "form-field/form-field/form-field.component.js"
156178
156117
  }
156179
156118
  },
156180
156119
  {
156181
- "kind": "field",
156182
- "name": "_dispatchClickEvent",
156183
- "privacy": "private",
156120
+ "kind": "method",
156121
+ "name": "reset",
156122
+ "privacy": "public",
156123
+ "return": {
156124
+ "type": {
156125
+ "text": "void"
156126
+ }
156127
+ },
156128
+ "description": "Manually reset the form field. Currently, this only resets the floating label.",
156184
156129
  "inheritedFrom": {
156185
- "name": "SbbButtonLikeBaseElement",
156186
- "module": "core/base-elements/button-base-element.js"
156130
+ "name": "SbbFormFieldElement",
156131
+ "module": "form-field/form-field/form-field.component.js"
156187
156132
  }
156188
156133
  },
156189
156134
  {
156190
- "kind": "field",
156191
- "name": "maybeDisabled",
156192
- "type": {
156193
- "text": "boolean | undefined"
156135
+ "kind": "method",
156136
+ "name": "clear",
156137
+ "privacy": "public",
156138
+ "return": {
156139
+ "type": {
156140
+ "text": "void"
156141
+ }
156194
156142
  },
156195
- "privacy": "protected",
156196
- "readonly": true,
156143
+ "description": "Manually clears the input value. It only works for inputs, selects are not supported.",
156197
156144
  "inheritedFrom": {
156198
- "name": "SbbActionBaseElement",
156199
- "module": "core/base-elements/action-base-element.js"
156145
+ "name": "SbbFormFieldElement",
156146
+ "module": "form-field/form-field/form-field.component.js"
156200
156147
  }
156201
156148
  },
156202
156149
  {
156203
- "kind": "field",
156204
- "name": "maybeDisabledInteractive",
156205
- "type": {
156206
- "text": "boolean | undefined"
156150
+ "kind": "method",
156151
+ "name": "_syncNegative",
156152
+ "privacy": "private",
156153
+ "return": {
156154
+ "type": {
156155
+ "text": "void"
156156
+ }
156207
156157
  },
156208
- "privacy": "protected",
156209
- "readonly": true,
156210
156158
  "inheritedFrom": {
156211
- "name": "SbbActionBaseElement",
156212
- "module": "core/base-elements/action-base-element.js"
156159
+ "name": "SbbFormFieldElement",
156160
+ "module": "form-field/form-field/form-field.component.js"
156213
156161
  }
156214
156162
  },
156215
156163
  {
156216
156164
  "kind": "method",
156217
- "name": "setupBaseEventHandlers",
156218
- "privacy": "protected",
156165
+ "name": "_syncSize",
156166
+ "privacy": "private",
156219
156167
  "return": {
156220
156168
  "type": {
156221
156169
  "text": "void"
156222
156170
  }
156223
156171
  },
156224
156172
  "inheritedFrom": {
156225
- "name": "SbbActionBaseElement",
156226
- "module": "core/base-elements/action-base-element.js"
156173
+ "name": "SbbFormFieldElement",
156174
+ "module": "form-field/form-field/form-field.component.js"
156227
156175
  }
156228
156176
  },
156229
156177
  {
@@ -156240,6 +156188,19 @@
156240
156188
  "module": "core/base-elements/element.js"
156241
156189
  }
156242
156190
  },
156191
+ {
156192
+ "kind": "field",
156193
+ "name": "role",
156194
+ "type": {
156195
+ "text": "ElementInternals['role'] | undefined"
156196
+ },
156197
+ "privacy": "public",
156198
+ "static": true,
156199
+ "inheritedFrom": {
156200
+ "name": "SbbElement",
156201
+ "module": "core/base-elements/element.js"
156202
+ }
156203
+ },
156243
156204
  {
156244
156205
  "kind": "field",
156245
156206
  "name": "_controllers",
@@ -156460,184 +156421,184 @@
156460
156421
  }
156461
156422
  }
156462
156423
  ],
156463
- "events": [
156424
+ "superclass": {
156425
+ "name": "SbbFormFieldElement",
156426
+ "module": "form-field.pure.js"
156427
+ },
156428
+ "tagName": "sbb-timetable-form-field",
156429
+ "customElement": true,
156430
+ "attributes": [
156464
156431
  {
156432
+ "name": "negative",
156465
156433
  "type": {
156466
- "text": "Event"
156434
+ "text": "boolean"
156467
156435
  },
156468
- "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.",
156469
- "name": "change"
156436
+ "default": "false",
156437
+ "description": "Negative coloring variant flag.",
156438
+ "fieldName": "negative",
156439
+ "inheritedFrom": {
156440
+ "name": "SbbNegativeMixin",
156441
+ "module": "core/mixins/negative-mixin.js"
156442
+ }
156470
156443
  },
156471
156444
  {
156445
+ "name": "error-space",
156472
156446
  "type": {
156473
- "text": "InputEvent"
156447
+ "text": "'none' | 'reserve'"
156474
156448
  },
156475
- "description": "The input event fires on the associated inputs when the value has been changed as a direct result of a user action.",
156476
- "name": "input"
156477
- }
156478
- ],
156479
- "superclass": {
156480
- "name": "SbbSecondaryButtonElement",
156481
- "module": "button.pure.js"
156482
- },
156483
- "tagName": "sbb-timetable-form-swap-button",
156484
- "customElement": true,
156485
- "attributes": [
156449
+ "default": "'none'",
156450
+ "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.",
156451
+ "fieldName": "errorSpace",
156452
+ "inheritedFrom": {
156453
+ "name": "SbbFormFieldElement",
156454
+ "module": "form-field/form-field/form-field.component.js"
156455
+ }
156456
+ },
156486
156457
  {
156487
- "name": "size",
156458
+ "name": "optional",
156488
156459
  "type": {
156489
- "text": "SbbButtonSize"
156460
+ "text": "boolean"
156490
156461
  },
156491
- "description": "Size variant, either l, m or s.",
156492
- "default": "'m' / 's' (lean)",
156493
- "fieldName": "size",
156462
+ "default": "false",
156463
+ "description": "Indicates whether the input is optional.",
156464
+ "deprecated": "Set the (optional) label text manually. Will be removed with next major version.",
156465
+ "fieldName": "optional",
156494
156466
  "inheritedFrom": {
156495
- "name": "SbbButtonCommonElementMixin",
156496
- "module": "button/common/button-common.js"
156467
+ "name": "SbbFormFieldElement",
156468
+ "module": "form-field/form-field/form-field.component.js"
156497
156469
  }
156498
156470
  },
156499
156471
  {
156500
- "name": "loading",
156472
+ "name": "size",
156501
156473
  "type": {
156502
- "text": "boolean"
156474
+ "text": "'l' | 'm' | 's'"
156503
156475
  },
156504
- "default": "false",
156505
- "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.",
156506
- "fieldName": "loading",
156476
+ "description": "Size variant, either l, m or s.",
156477
+ "default": "'m' / 's' (lean)",
156478
+ "fieldName": "size",
156507
156479
  "inheritedFrom": {
156508
- "name": "SbbButtonCommonElementMixin",
156509
- "module": "button/common/button-common.js"
156480
+ "name": "SbbFormFieldElement",
156481
+ "module": "form-field/form-field/form-field.component.js"
156510
156482
  }
156511
156483
  },
156512
156484
  {
156513
- "name": "negative",
156485
+ "name": "borderless",
156514
156486
  "type": {
156515
156487
  "text": "boolean"
156516
156488
  },
156517
156489
  "default": "false",
156518
- "description": "Negative coloring variant flag.",
156519
- "fieldName": "negative",
156490
+ "description": "Whether to display the form field without a border.",
156491
+ "fieldName": "borderless",
156520
156492
  "inheritedFrom": {
156521
- "name": "SbbNegativeMixin",
156522
- "module": "core/mixins/negative-mixin.js"
156493
+ "name": "SbbFormFieldElement",
156494
+ "module": "form-field/form-field/form-field.component.js"
156523
156495
  }
156524
156496
  },
156525
156497
  {
156526
- "name": "icon-name",
156498
+ "name": "width",
156527
156499
  "type": {
156528
- "text": "string"
156500
+ "text": "'default' | 'collapse'"
156529
156501
  },
156530
- "default": "''",
156531
- "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.",
156532
- "fieldName": "iconName",
156502
+ "default": "'default'",
156503
+ "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.",
156504
+ "fieldName": "width",
156533
156505
  "inheritedFrom": {
156534
- "name": "SbbIconNameMixin",
156535
- "module": "icon/icon-name-mixin.js"
156506
+ "name": "SbbFormFieldElement",
156507
+ "module": "form-field/form-field/form-field.component.js"
156536
156508
  }
156537
156509
  },
156538
156510
  {
156539
- "name": "disabled-interactive",
156511
+ "name": "hidden-label",
156540
156512
  "type": {
156541
156513
  "text": "boolean"
156542
156514
  },
156543
156515
  "default": "false",
156544
- "description": "Whether the button should be aria-disabled but stay interactive.",
156545
- "fieldName": "disabledInteractive",
156516
+ "description": "Whether to visually hide the label. If hidden, screen readers will still read it.",
156517
+ "fieldName": "hiddenLabel",
156546
156518
  "inheritedFrom": {
156547
- "name": "SbbDisabledInteractiveMixin",
156548
- "module": "core/mixins/disabled-mixin.js"
156519
+ "name": "SbbFormFieldElement",
156520
+ "module": "form-field/form-field/form-field.component.js"
156549
156521
  }
156550
156522
  },
156551
156523
  {
156552
- "name": "disabled",
156553
- "description": "Whether the component is disabled.",
156554
- "default": "false",
156524
+ "name": "floating-label",
156555
156525
  "type": {
156556
156526
  "text": "boolean"
156557
156527
  },
156558
- "fieldName": "disabled",
156528
+ "default": "false",
156529
+ "description": "Whether the label should float. If activated, the placeholder of the input is hidden.",
156530
+ "fieldName": "floatingLabel",
156559
156531
  "inheritedFrom": {
156560
- "name": "SbbDisabledMixin",
156561
- "module": "core/mixins/disabled-mixin.js"
156532
+ "name": "SbbFormFieldElement",
156533
+ "module": "form-field/form-field/form-field.component.js"
156562
156534
  }
156563
- },
156535
+ }
156536
+ ],
156537
+ "slots": [
156564
156538
  {
156565
- "name": "value",
156566
- "type": {
156567
- "text": "string"
156568
- },
156569
- "default": "''",
156570
- "description": "Value of the form element.",
156571
- "fieldName": "value",
156539
+ "description": "Use this slot to render an input/select or a supported non-native element.",
156540
+ "name": "",
156572
156541
  "inheritedFrom": {
156573
- "name": "SbbButtonBaseElement",
156574
- "module": "core/base-elements/button-base-element.js"
156542
+ "name": "SbbFormFieldElement",
156543
+ "module": "form-field/form-field/form-field.component.js"
156575
156544
  }
156576
156545
  },
156577
156546
  {
156578
- "name": "type",
156579
- "description": "The type attribute to use for the button.",
156580
- "default": "'button'",
156581
- "type": {
156582
- "text": "SbbButtonType"
156583
- },
156584
- "fieldName": "type",
156547
+ "description": "Use this slot to render a label.",
156548
+ "name": "label",
156585
156549
  "inheritedFrom": {
156586
- "name": "SbbButtonBaseElement",
156587
- "module": "core/base-elements/button-base-element.js"
156550
+ "name": "SbbFormFieldElement",
156551
+ "module": "form-field/form-field/form-field.component.js"
156588
156552
  }
156589
156553
  },
156590
156554
  {
156591
- "name": "form",
156592
- "description": "The `<form>` element to associate the button with.",
156593
- "type": {
156594
- "text": "HTMLFormElement | null"
156595
- },
156596
- "fieldName": "form",
156555
+ "description": "Use this slot to render an icon on the left side of the input.",
156556
+ "name": "prefix",
156597
156557
  "inheritedFrom": {
156598
- "name": "SbbButtonBaseElement",
156599
- "module": "core/base-elements/button-base-element.js"
156558
+ "name": "SbbFormFieldElement",
156559
+ "module": "form-field/form-field/form-field.component.js"
156600
156560
  }
156601
156561
  },
156602
156562
  {
156603
- "name": "name",
156604
- "description": "Name of the form element. Will be read from name attribute.",
156605
- "type": {
156606
- "text": "string"
156607
- },
156608
- "fieldName": "name",
156563
+ "description": "Use this slot to render an icon on the right side of the input.",
156564
+ "name": "suffix",
156609
156565
  "inheritedFrom": {
156610
- "name": "SbbFormAssociatedMixin",
156611
- "module": "core/mixins/form-associated-mixin.js"
156566
+ "name": "SbbFormFieldElement",
156567
+ "module": "form-field/form-field/form-field.component.js"
156612
156568
  }
156613
- }
156614
- ],
156615
- "slots": [
156569
+ },
156616
156570
  {
156617
- "description": "Use the unnamed slot to add content to the secondary-button.",
156618
- "name": "",
156571
+ "description": "Use this slot to render an error.",
156572
+ "name": "error",
156619
156573
  "inheritedFrom": {
156620
- "name": "SbbSecondaryButtonElement",
156621
- "module": "button/secondary-button/secondary-button.component.js"
156574
+ "name": "SbbFormFieldElement",
156575
+ "module": "form-field/form-field/form-field.component.js"
156622
156576
  }
156623
156577
  },
156624
156578
  {
156625
- "description": "Slot used to display the icon, if one is set.",
156626
- "name": "icon",
156579
+ "description": "Use this slot to render an `<sbb-hint>` or an `<sbb-form-field-text-counter>` element.",
156580
+ "name": "hint",
156627
156581
  "inheritedFrom": {
156628
- "name": "SbbSecondaryButtonElement",
156629
- "module": "button/secondary-button/secondary-button.component.js"
156582
+ "name": "SbbFormFieldElement",
156583
+ "module": "form-field/form-field/form-field.component.js"
156630
156584
  }
156631
156585
  }
156632
156586
  ],
156633
156587
  "cssProperties": [
156634
156588
  {
156635
- "description": "The delay before the loading animation starts, when setting the button into loading state.",
156636
- "name": "--sbb-button-loading-delay",
156637
- "default": "300ms",
156589
+ "description": "To override the focus outline offset,",
156590
+ "name": "--sbb-form-field-outline-offset",
156638
156591
  "inheritedFrom": {
156639
- "name": "SbbSecondaryButtonElement",
156640
- "module": "button/secondary-button/secondary-button.component.js"
156592
+ "name": "SbbFormFieldElement",
156593
+ "module": "form-field/form-field/form-field.component.js"
156594
+ }
156595
+ },
156596
+ {
156597
+ "description": "To override the z-index of the focus underline effect,",
156598
+ "name": "--sbb-form-field-focus-underline-z-index",
156599
+ "inheritedFrom": {
156600
+ "name": "SbbFormFieldElement",
156601
+ "module": "form-field/form-field/form-field.component.js"
156641
156602
  }
156642
156603
  }
156643
156604
  ]
@@ -156646,22 +156607,22 @@
156646
156607
  "exports": [
156647
156608
  {
156648
156609
  "kind": "js",
156649
- "name": "SbbTimetableFormSwapButtonElement",
156610
+ "name": "SbbTimetableFormFieldElement",
156650
156611
  "declaration": {
156651
- "name": "SbbTimetableFormSwapButtonElement",
156652
- "module": "timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js"
156612
+ "name": "SbbTimetableFormFieldElement",
156613
+ "module": "timetable-form/timetable-form-field/timetable-form-field.component.js"
156653
156614
  }
156654
156615
  }
156655
156616
  ]
156656
156617
  },
156657
156618
  {
156658
156619
  "kind": "javascript-module",
156659
- "path": "timetable-form/timetable-form-field/timetable-form-field.component.js",
156620
+ "path": "timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js",
156660
156621
  "declarations": [
156661
156622
  {
156662
156623
  "kind": "class",
156663
- "description": "Extends the `sbb-form-field`. Meant to be used inside a `sbb-timetable-form`.",
156664
- "name": "SbbTimetableFormFieldElement",
156624
+ "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.",
156625
+ "name": "SbbTimetableFormSwapButtonElement",
156665
156626
  "members": [
156666
156627
  {
156667
156628
  "kind": "field",
@@ -156672,83 +156633,88 @@
156672
156633
  "privacy": "public",
156673
156634
  "static": true,
156674
156635
  "readonly": true,
156675
- "default": "'sbb-timetable-form-field'",
156676
156636
  "inheritedFrom": {
156677
156637
  "name": "SbbElement",
156678
156638
  "module": "core/base-elements/element.js"
156679
- }
156639
+ },
156640
+ "default": "'sbb-timetable-form-swap-button'"
156680
156641
  },
156681
156642
  {
156682
156643
  "kind": "field",
156683
- "name": "_routeIcon",
156684
- "type": {
156685
- "text": "boolean"
156686
- },
156644
+ "name": "_languageController",
156687
156645
  "privacy": "private",
156688
- "default": "false"
156646
+ "default": "new SbbLanguageController(this)"
156689
156647
  },
156690
156648
  {
156691
- "kind": "field",
156692
- "name": "borderless",
156693
- "type": {
156694
- "text": "boolean"
156649
+ "kind": "method",
156650
+ "name": "_invertFieldValues",
156651
+ "privacy": "private",
156652
+ "return": {
156653
+ "type": {
156654
+ "text": "void"
156655
+ }
156656
+ },
156657
+ "description": "Search for `sbb-timetable-form-field` inputs, invert their values and dispatch the respective input and change events"
156658
+ },
156659
+ {
156660
+ "kind": "method",
156661
+ "name": "renderIconName",
156662
+ "privacy": "protected",
156663
+ "return": {
156664
+ "type": {
156665
+ "text": "string"
156666
+ }
156695
156667
  },
156696
- "privacy": "public",
156697
- "default": "true",
156698
- "description": "Whether to display the form field without a border.",
156699
- "attribute": "borderless",
156700
- "reflects": true,
156701
156668
  "inheritedFrom": {
156702
- "name": "SbbFormFieldElement",
156703
- "module": "form-field/form-field/form-field.component.js"
156669
+ "name": "SbbIconNameMixin",
156670
+ "module": "icon/icon-name-mixin.js"
156704
156671
  }
156705
156672
  },
156706
156673
  {
156707
156674
  "kind": "field",
156708
- "name": "floatingLabel",
156675
+ "name": "size",
156709
156676
  "type": {
156710
- "text": "boolean"
156677
+ "text": "SbbButtonSize"
156711
156678
  },
156712
156679
  "privacy": "public",
156713
- "default": "true",
156714
- "description": "Whether the label should float. If activated, the placeholder of the input is hidden.",
156715
- "attribute": "floating-label",
156680
+ "description": "Size variant, either l, m or s.",
156681
+ "default": "'l'",
156682
+ "attribute": "size",
156716
156683
  "reflects": true,
156717
156684
  "inheritedFrom": {
156718
- "name": "SbbFormFieldElement",
156719
- "module": "form-field/form-field/form-field.component.js"
156685
+ "name": "SbbButtonCommonElementMixin",
156686
+ "module": "button/common/button-common.js"
156720
156687
  }
156721
156688
  },
156722
156689
  {
156723
156690
  "kind": "field",
156724
- "name": "width",
156691
+ "name": "loading",
156725
156692
  "type": {
156726
- "text": "string"
156693
+ "text": "boolean"
156727
156694
  },
156728
156695
  "privacy": "public",
156729
- "default": "'collapse'",
156730
- "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.",
156731
- "attribute": "width",
156696
+ "default": "false",
156697
+ "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.",
156698
+ "attribute": "loading",
156732
156699
  "reflects": true,
156733
156700
  "inheritedFrom": {
156734
- "name": "SbbFormFieldElement",
156735
- "module": "form-field/form-field/form-field.component.js"
156701
+ "name": "SbbButtonCommonElementMixin",
156702
+ "module": "button/common/button-common.js"
156736
156703
  }
156737
156704
  },
156738
156705
  {
156739
- "kind": "field",
156740
- "name": "size",
156741
- "type": {
156742
- "text": "string"
156706
+ "kind": "method",
156707
+ "name": "renderTemplate",
156708
+ "privacy": "protected",
156709
+ "return": {
156710
+ "type": {
156711
+ "text": "TemplateResult"
156712
+ }
156743
156713
  },
156744
- "privacy": "public",
156745
- "description": "Size variant, either l, m or s.",
156746
- "default": "'l'",
156747
- "attribute": "size",
156748
- "reflects": true,
156714
+ "description": "Override this method to render the component template.",
156749
156715
  "inheritedFrom": {
156750
- "name": "SbbFormFieldElement",
156751
- "module": "form-field/form-field/form-field.component.js"
156716
+ "name": "SbbActionBaseElement",
156717
+ "module": "core/base-elements/action-base-element.js"
156752
156718
  }
156753
156719
  },
156754
156720
  {
@@ -156775,592 +156741,639 @@
156775
156741
  },
156776
156742
  "privacy": "public",
156777
156743
  "static": true,
156778
- "default": "[SbbIconElement]",
156779
156744
  "inheritedFrom": {
156780
156745
  "name": "SbbElement",
156781
156746
  "module": "core/base-elements/element.js"
156782
- }
156747
+ },
156748
+ "default": "[SbbIconElement]"
156783
156749
  },
156784
156750
  {
156785
156751
  "kind": "field",
156786
- "name": "_excludedFocusElements",
156752
+ "name": "iconName",
156787
156753
  "type": {
156788
- "text": "array"
156754
+ "text": "string"
156789
156755
  },
156790
- "privacy": "private",
156791
- "readonly": true,
156792
- "default": "['button', 'sbb-popover', 'sbb-option', 'sbb-chip']",
156756
+ "privacy": "public",
156757
+ "default": "''",
156758
+ "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.",
156759
+ "attribute": "icon-name",
156793
156760
  "inheritedFrom": {
156794
- "name": "SbbFormFieldElement",
156795
- "module": "form-field/form-field/form-field.component.js"
156761
+ "name": "SbbIconNameMixin",
156762
+ "module": "icon/icon-name-mixin.js"
156796
156763
  }
156797
156764
  },
156798
156765
  {
156799
- "kind": "field",
156800
- "name": "_floatingLabelSupportedInputElements",
156801
- "type": {
156802
- "text": "array"
156766
+ "kind": "method",
156767
+ "name": "renderIconSlot",
156768
+ "privacy": "protected",
156769
+ "return": {
156770
+ "type": {
156771
+ "text": "TemplateResult"
156772
+ }
156803
156773
  },
156804
- "privacy": "private",
156805
- "readonly": true,
156806
- "default": "[ 'input', 'select', 'textarea', 'sbb-select', ]",
156774
+ "parameters": [
156775
+ {
156776
+ "name": "classname",
156777
+ "optional": true,
156778
+ "type": {
156779
+ "text": "string"
156780
+ }
156781
+ }
156782
+ ],
156807
156783
  "inheritedFrom": {
156808
- "name": "SbbFormFieldElement",
156809
- "module": "form-field/form-field/form-field.component.js"
156784
+ "name": "SbbIconNameMixin",
156785
+ "module": "icon/icon-name-mixin.js"
156810
156786
  }
156811
156787
  },
156812
156788
  {
156813
- "kind": "field",
156814
- "name": "_floatingLabelSupportedInputTypes",
156815
- "type": {
156816
- "text": "array"
156817
- },
156789
+ "kind": "method",
156790
+ "name": "_renderIconName",
156818
156791
  "privacy": "private",
156819
- "readonly": true,
156820
- "default": "[ 'email', 'number', 'password', 'search', 'tel', 'text', 'url', ]",
156792
+ "return": {
156793
+ "type": {
156794
+ "text": "string"
156795
+ }
156796
+ },
156821
156797
  "inheritedFrom": {
156822
- "name": "SbbFormFieldElement",
156823
- "module": "form-field/form-field/form-field.component.js"
156798
+ "name": "SbbIconNameMixin",
156799
+ "module": "icon/icon-name-mixin.js"
156824
156800
  }
156825
156801
  },
156826
156802
  {
156827
156803
  "kind": "field",
156828
- "name": "errorSpace",
156804
+ "name": "disabledInteractive",
156829
156805
  "type": {
156830
- "text": "'none' | 'reserve'"
156806
+ "text": "boolean"
156831
156807
  },
156832
156808
  "privacy": "public",
156833
- "default": "'none'",
156834
- "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.",
156835
- "attribute": "error-space",
156809
+ "default": "false",
156810
+ "description": "Whether the button should be aria-disabled but stay interactive.",
156811
+ "attribute": "disabled-interactive",
156836
156812
  "reflects": true,
156837
156813
  "inheritedFrom": {
156838
- "name": "SbbFormFieldElement",
156839
- "module": "form-field/form-field/form-field.component.js"
156814
+ "name": "SbbDisabledInteractiveMixin",
156815
+ "module": "core/mixins/disabled-mixin.js"
156840
156816
  }
156841
156817
  },
156842
156818
  {
156843
156819
  "kind": "field",
156844
- "name": "optional",
156820
+ "name": "disabled",
156821
+ "privacy": "public",
156822
+ "description": "Whether the component is disabled.",
156823
+ "default": "false",
156845
156824
  "type": {
156846
156825
  "text": "boolean"
156847
156826
  },
156848
- "privacy": "public",
156849
- "default": "false",
156850
- "description": "Indicates whether the input is optional.",
156851
- "deprecated": "Set the (optional) label text manually. Will be removed with next major version.",
156852
- "attribute": "optional",
156827
+ "attribute": "disabled",
156828
+ "reflects": true,
156853
156829
  "inheritedFrom": {
156854
- "name": "SbbFormFieldElement",
156855
- "module": "form-field/form-field/form-field.component.js"
156830
+ "name": "SbbDisabledMixin",
156831
+ "module": "core/mixins/disabled-mixin.js"
156856
156832
  }
156857
156833
  },
156858
156834
  {
156859
156835
  "kind": "field",
156860
- "name": "hiddenLabel",
156836
+ "name": "#disabled",
156837
+ "privacy": "private",
156861
156838
  "type": {
156862
156839
  "text": "boolean"
156863
156840
  },
156864
- "privacy": "public",
156865
156841
  "default": "false",
156866
- "description": "Whether to visually hide the label. If hidden, screen readers will still read it.",
156867
- "attribute": "hidden-label",
156868
- "reflects": true,
156869
156842
  "inheritedFrom": {
156870
- "name": "SbbFormFieldElement",
156871
- "module": "form-field/form-field/form-field.component.js"
156843
+ "name": "SbbDisabledMixin",
156844
+ "module": "core/mixins/disabled-mixin.js"
156872
156845
  }
156873
156846
  },
156874
156847
  {
156875
- "kind": "field",
156876
- "name": "_errorElements",
156877
- "type": {
156878
- "text": "Element[]"
156848
+ "kind": "method",
156849
+ "name": "isDisabledExternally",
156850
+ "privacy": "protected",
156851
+ "return": {
156852
+ "type": {
156853
+ "text": "boolean"
156854
+ }
156879
156855
  },
156880
- "privacy": "private",
156881
- "default": "[]",
156882
- "description": "It is used internally to get the `error` slot.",
156856
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
156883
156857
  "inheritedFrom": {
156884
- "name": "SbbFormFieldElement",
156885
- "module": "form-field/form-field/form-field.component.js"
156858
+ "name": "SbbDisabledMixin",
156859
+ "module": "core/mixins/disabled-mixin.js"
156886
156860
  }
156887
156861
  },
156888
156862
  {
156889
156863
  "kind": "field",
156890
- "name": "_hintElements",
156864
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
156891
156865
  "type": {
156892
- "text": "Element[]"
156866
+ "text": "array"
156893
156867
  },
156894
156868
  "privacy": "private",
156895
- "default": "[]",
156896
- "description": "It is used internally to get the `hint` slot.",
156869
+ "readonly": true,
156870
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
156897
156871
  "inheritedFrom": {
156898
- "name": "SbbFormFieldElement",
156899
- "module": "form-field/form-field/form-field.component.js"
156872
+ "name": "SbbButtonBaseElement",
156873
+ "module": "core/base-elements/button-base-element.js"
156900
156874
  }
156901
156875
  },
156902
156876
  {
156903
156877
  "kind": "field",
156904
- "name": "_input",
156878
+ "name": "value",
156905
156879
  "type": {
156906
- "text": "HTMLInputElement | HTMLSelectElement | HTMLElement | null"
156880
+ "text": "string"
156907
156881
  },
156908
- "privacy": "private",
156909
- "default": "null",
156910
- "description": "Reference to the slotted input element.",
156882
+ "privacy": "public",
156911
156883
  "inheritedFrom": {
156912
- "name": "SbbFormFieldElement",
156913
- "module": "form-field/form-field/form-field.component.js"
156914
- }
156884
+ "name": "SbbButtonBaseElement",
156885
+ "module": "core/base-elements/button-base-element.js"
156886
+ },
156887
+ "default": "''",
156888
+ "description": "Value of the form element.",
156889
+ "attribute": "value"
156915
156890
  },
156916
156891
  {
156917
156892
  "kind": "field",
156918
- "name": "_label",
156893
+ "name": "type",
156894
+ "privacy": "public",
156895
+ "description": "The type attribute to use for the button.",
156896
+ "default": "'button'",
156919
156897
  "type": {
156920
- "text": "HTMLLabelElement"
156898
+ "text": "SbbButtonType"
156921
156899
  },
156922
- "privacy": "private",
156923
- "description": "Reference to the slotted label elements.",
156900
+ "attribute": "type",
156924
156901
  "inheritedFrom": {
156925
- "name": "SbbFormFieldElement",
156926
- "module": "form-field/form-field/form-field.component.js"
156902
+ "name": "SbbButtonBaseElement",
156903
+ "module": "core/base-elements/button-base-element.js"
156927
156904
  }
156928
156905
  },
156929
156906
  {
156930
156907
  "kind": "field",
156931
- "name": "inputElement",
156908
+ "name": "form",
156932
156909
  "type": {
156933
- "text": "HTMLInputElement | HTMLSelectElement | HTMLElement | null"
156910
+ "text": "HTMLFormElement | null"
156934
156911
  },
156935
156912
  "privacy": "public",
156936
- "description": "Returns the input element.",
156937
- "readonly": true,
156913
+ "description": "The `<form>` element to associate the button with.",
156938
156914
  "inheritedFrom": {
156939
- "name": "SbbFormFieldElement",
156940
- "module": "form-field/form-field/form-field.component.js"
156941
- }
156915
+ "name": "SbbButtonBaseElement",
156916
+ "module": "core/base-elements/button-base-element.js"
156917
+ },
156918
+ "attribute": "form"
156942
156919
  },
156943
156920
  {
156944
156921
  "kind": "field",
156945
- "name": "label",
156922
+ "name": "_formId",
156946
156923
  "type": {
156947
- "text": "HTMLLabelElement | null"
156924
+ "text": "string"
156948
156925
  },
156949
- "privacy": "public",
156950
- "description": "Reference to the slotted label.",
156951
- "readonly": true,
156926
+ "privacy": "private",
156927
+ "default": "''",
156952
156928
  "inheritedFrom": {
156953
- "name": "SbbFormFieldElement",
156954
- "module": "form-field/form-field/form-field.component.js"
156929
+ "name": "SbbButtonBaseElement",
156930
+ "module": "core/base-elements/button-base-element.js"
156955
156931
  }
156956
156932
  },
156957
156933
  {
156958
156934
  "kind": "field",
156959
- "name": "_language",
156935
+ "name": "_handleButtonClick",
156960
156936
  "privacy": "private",
156961
- "default": "new SbbLanguageController(this)",
156962
156937
  "inheritedFrom": {
156963
- "name": "SbbFormFieldElement",
156964
- "module": "form-field/form-field/form-field.component.js"
156938
+ "name": "SbbButtonBaseElement",
156939
+ "module": "core/base-elements/button-base-element.js"
156965
156940
  }
156966
156941
  },
156967
156942
  {
156968
- "kind": "field",
156969
- "name": "_formFieldAttributeObserver",
156943
+ "kind": "method",
156944
+ "name": "_requestSubmit",
156970
156945
  "privacy": "private",
156971
- "description": "Listens to the changes on `readonly` and `disabled` attributes of `<input>`.",
156946
+ "return": {
156947
+ "type": {
156948
+ "text": "void"
156949
+ }
156950
+ },
156951
+ "parameters": [
156952
+ {
156953
+ "name": "form",
156954
+ "type": {
156955
+ "text": "HTMLFormElement"
156956
+ }
156957
+ }
156958
+ ],
156972
156959
  "inheritedFrom": {
156973
- "name": "SbbFormFieldElement",
156974
- "module": "form-field/form-field/form-field.component.js"
156960
+ "name": "SbbButtonBaseElement",
156961
+ "module": "core/base-elements/button-base-element.js"
156975
156962
  }
156976
156963
  },
156977
156964
  {
156978
156965
  "kind": "field",
156979
- "name": "_inputFormAbortController",
156966
+ "name": "_formKeyDown",
156980
156967
  "privacy": "private",
156981
- "default": "new AbortController()",
156982
156968
  "inheritedFrom": {
156983
- "name": "SbbFormFieldElement",
156984
- "module": "form-field/form-field/form-field.component.js"
156969
+ "name": "SbbButtonBaseElement",
156970
+ "module": "core/base-elements/button-base-element.js"
156985
156971
  }
156986
156972
  },
156987
156973
  {
156988
156974
  "kind": "field",
156989
- "name": "_control",
156975
+ "name": "formAssociated",
156990
156976
  "type": {
156991
- "text": "SbbFormFieldElementControl | null"
156977
+ "text": "boolean"
156992
156978
  },
156993
- "privacy": "private",
156994
- "default": "null",
156979
+ "privacy": "public",
156980
+ "static": true,
156981
+ "default": "true",
156995
156982
  "inheritedFrom": {
156996
- "name": "SbbFormFieldElement",
156997
- "module": "form-field/form-field/form-field.component.js"
156983
+ "name": "SbbFormAssociatedMixin",
156984
+ "module": "core/mixins/form-associated-mixin.js"
156998
156985
  }
156999
156986
  },
157000
156987
  {
157001
156988
  "kind": "field",
157002
- "name": "_previousType",
156989
+ "name": "name",
156990
+ "privacy": "public",
156991
+ "description": "Name of the form element. Will be read from name attribute.",
157003
156992
  "type": {
157004
- "text": "string | null"
156993
+ "text": "string"
157005
156994
  },
157006
- "privacy": "private",
157007
- "default": "null",
156995
+ "attribute": "name",
157008
156996
  "inheritedFrom": {
157009
- "name": "SbbFormFieldElement",
157010
- "module": "form-field/form-field/form-field.component.js"
156997
+ "name": "SbbFormAssociatedMixin",
156998
+ "module": "core/mixins/form-associated-mixin.js"
157011
156999
  }
157012
157000
  },
157013
157001
  {
157014
- "kind": "method",
157015
- "name": "_handleWrapperClick",
157016
- "privacy": "private",
157017
- "return": {
157018
- "type": {
157019
- "text": "void"
157020
- }
157002
+ "kind": "field",
157003
+ "name": "validity",
157004
+ "type": {
157005
+ "text": "ValidityState"
157021
157006
  },
157022
- "parameters": [
157023
- {
157024
- "name": "event",
157025
- "type": {
157026
- "text": "MouseEvent"
157027
- }
157028
- }
157029
- ],
157007
+ "privacy": "public",
157008
+ "description": "Returns the ValidityState object for this element.",
157009
+ "readonly": true,
157030
157010
  "inheritedFrom": {
157031
- "name": "SbbFormFieldElement",
157032
- "module": "form-field/form-field/form-field.component.js"
157011
+ "name": "SbbFormAssociatedMixin",
157012
+ "module": "core/mixins/form-associated-mixin.js"
157033
157013
  }
157034
157014
  },
157035
157015
  {
157036
- "kind": "method",
157037
- "name": "_isElementFocusExcluded",
157038
- "privacy": "private",
157039
- "return": {
157040
- "type": {
157041
- "text": "boolean"
157042
- }
157016
+ "kind": "field",
157017
+ "name": "validationMessage",
157018
+ "type": {
157019
+ "text": "string"
157043
157020
  },
157044
- "parameters": [
157045
- {
157046
- "name": "event",
157047
- "type": {
157048
- "text": "Event"
157049
- }
157050
- }
157051
- ],
157021
+ "privacy": "public",
157022
+ "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.",
157023
+ "readonly": true,
157052
157024
  "inheritedFrom": {
157053
- "name": "SbbFormFieldElement",
157054
- "module": "form-field/form-field/form-field.component.js"
157025
+ "name": "SbbFormAssociatedMixin",
157026
+ "module": "core/mixins/form-associated-mixin.js"
157055
157027
  }
157056
157028
  },
157057
157029
  {
157058
- "kind": "method",
157059
- "name": "_onSlotLabelChange",
157060
- "privacy": "private",
157061
- "return": {
157062
- "type": {
157063
- "text": "void"
157064
- }
157030
+ "kind": "field",
157031
+ "name": "willValidate",
157032
+ "type": {
157033
+ "text": "boolean"
157065
157034
  },
157035
+ "privacy": "public",
157036
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
157037
+ "readonly": true,
157066
157038
  "inheritedFrom": {
157067
- "name": "SbbFormFieldElement",
157068
- "module": "form-field/form-field/form-field.component.js"
157039
+ "name": "SbbFormAssociatedMixin",
157040
+ "module": "core/mixins/form-associated-mixin.js"
157069
157041
  }
157070
157042
  },
157071
157043
  {
157072
- "kind": "method",
157073
- "name": "_onSlotInputChange",
157044
+ "kind": "field",
157045
+ "name": "_validityStates",
157074
157046
  "privacy": "private",
157075
- "return": {
157076
- "type": {
157077
- "text": "void"
157078
- }
157079
- },
157080
- "description": "It is used internally to assign the attributes of `<input>` to `_id` and `_input` and to observe the native readonly and disabled attributes.",
157047
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
157081
157048
  "inheritedFrom": {
157082
- "name": "SbbFormFieldElement",
157083
- "module": "form-field/form-field/form-field.component.js"
157049
+ "name": "SbbFormAssociatedMixin",
157050
+ "module": "core/mixins/form-associated-mixin.js"
157084
157051
  }
157085
157052
  },
157086
157053
  {
157087
- "kind": "method",
157088
- "name": "_assignSlots",
157089
- "privacy": "private",
157090
- "return": {
157091
- "type": {
157092
- "text": "void"
157093
- }
157054
+ "kind": "field",
157055
+ "name": "formDisabled",
157056
+ "type": {
157057
+ "text": "boolean"
157094
157058
  },
157059
+ "privacy": "protected",
157060
+ "default": "false",
157061
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
157095
157062
  "inheritedFrom": {
157096
- "name": "SbbFormFieldElement",
157097
- "module": "form-field/form-field/form-field.component.js"
157063
+ "name": "SbbFormAssociatedMixin",
157064
+ "module": "core/mixins/form-associated-mixin.js"
157098
157065
  }
157099
157066
  },
157100
157067
  {
157101
157068
  "kind": "method",
157102
- "name": "_connectInputElement",
157103
- "privacy": "private",
157069
+ "name": "checkValidity",
157070
+ "privacy": "public",
157104
157071
  "return": {
157105
157072
  "type": {
157106
- "text": "'changed' | 'no-input' | 'unchanged'"
157073
+ "text": "boolean"
157107
157074
  }
157108
157075
  },
157076
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
157109
157077
  "inheritedFrom": {
157110
- "name": "SbbFormFieldElement",
157111
- "module": "form-field/form-field/form-field.component.js"
157078
+ "name": "SbbFormAssociatedMixin",
157079
+ "module": "core/mixins/form-associated-mixin.js"
157112
157080
  }
157113
157081
  },
157114
157082
  {
157115
157083
  "kind": "method",
157116
- "name": "_syncLabelInputReferences",
157117
- "privacy": "private",
157084
+ "name": "reportValidity",
157085
+ "privacy": "public",
157118
157086
  "return": {
157119
157087
  "type": {
157120
- "text": "void"
157088
+ "text": "boolean"
157121
157089
  }
157122
157090
  },
157091
+ "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.",
157123
157092
  "inheritedFrom": {
157124
- "name": "SbbFormFieldElement",
157125
- "module": "form-field/form-field/form-field.component.js"
157093
+ "name": "SbbFormAssociatedMixin",
157094
+ "module": "core/mixins/form-associated-mixin.js"
157126
157095
  }
157127
157096
  },
157128
157097
  {
157129
157098
  "kind": "method",
157130
- "name": "_isInputElement",
157131
- "privacy": "private",
157099
+ "name": "setCustomValidity",
157100
+ "privacy": "public",
157132
157101
  "return": {
157133
157102
  "type": {
157134
- "text": "boolean"
157103
+ "text": "void"
157135
157104
  }
157136
157105
  },
157137
157106
  "parameters": [
157138
157107
  {
157139
- "name": "input",
157108
+ "name": "message",
157140
157109
  "type": {
157141
- "text": "Element"
157110
+ "text": "string"
157142
157111
  }
157143
157112
  }
157144
157113
  ],
157114
+ "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.",
157145
157115
  "inheritedFrom": {
157146
- "name": "SbbFormFieldElement",
157147
- "module": "form-field/form-field/form-field.component.js"
157116
+ "name": "SbbFormAssociatedMixin",
157117
+ "module": "core/mixins/form-associated-mixin.js"
157148
157118
  }
157149
157119
  },
157150
157120
  {
157151
157121
  "kind": "method",
157152
- "name": "_readInputState",
157122
+ "name": "_hasDisabledAncestor",
157153
157123
  "privacy": "private",
157154
157124
  "return": {
157155
157125
  "type": {
157156
- "text": "void"
157126
+ "text": "boolean"
157157
157127
  }
157158
157128
  },
157159
157129
  "inheritedFrom": {
157160
- "name": "SbbFormFieldElement",
157161
- "module": "form-field/form-field/form-field.component.js"
157130
+ "name": "SbbFormAssociatedMixin",
157131
+ "module": "core/mixins/form-associated-mixin.js"
157162
157132
  }
157163
157133
  },
157164
157134
  {
157165
157135
  "kind": "method",
157166
- "name": "_registerInputFormListener",
157167
- "privacy": "private",
157136
+ "name": "updateFormValue",
157137
+ "privacy": "protected",
157168
157138
  "return": {
157169
157139
  "type": {
157170
157140
  "text": "void"
157171
157141
  }
157172
157142
  },
157143
+ "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",
157173
157144
  "inheritedFrom": {
157174
- "name": "SbbFormFieldElement",
157175
- "module": "form-field/form-field/form-field.component.js"
157145
+ "name": "SbbFormAssociatedMixin",
157146
+ "module": "core/mixins/form-associated-mixin.js"
157176
157147
  }
157177
157148
  },
157178
157149
  {
157179
157150
  "kind": "method",
157180
- "name": "_patchInputValue",
157181
- "privacy": "private",
157151
+ "name": "formState",
157152
+ "privacy": "protected",
157182
157153
  "return": {
157183
157154
  "type": {
157184
- "text": "void"
157155
+ "text": "FormRestoreState"
157185
157156
  }
157186
157157
  },
157187
157158
  "inheritedFrom": {
157188
- "name": "SbbFormFieldElement",
157189
- "module": "form-field/form-field/form-field.component.js"
157159
+ "name": "SbbFormAssociatedMixin",
157160
+ "module": "core/mixins/form-associated-mixin.js"
157190
157161
  }
157191
157162
  },
157192
157163
  {
157193
157164
  "kind": "method",
157194
- "name": "_unpatchInputValue",
157195
- "privacy": "private",
157165
+ "name": "setValidityFlag",
157166
+ "privacy": "protected",
157196
157167
  "return": {
157197
157168
  "type": {
157198
157169
  "text": "void"
157199
157170
  }
157200
157171
  },
157172
+ "parameters": [
157173
+ {
157174
+ "name": "flag",
157175
+ "type": {
157176
+ "text": "T"
157177
+ }
157178
+ },
157179
+ {
157180
+ "name": "message",
157181
+ "type": {
157182
+ "text": "string"
157183
+ }
157184
+ },
157185
+ {
157186
+ "name": "flagValue",
157187
+ "optional": true,
157188
+ "type": {
157189
+ "text": "ValidityStateFlags[T]"
157190
+ }
157191
+ }
157192
+ ],
157193
+ "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).",
157201
157194
  "inheritedFrom": {
157202
- "name": "SbbFormFieldElement",
157203
- "module": "form-field/form-field/form-field.component.js"
157195
+ "name": "SbbFormAssociatedMixin",
157196
+ "module": "core/mixins/form-associated-mixin.js"
157204
157197
  }
157205
157198
  },
157206
157199
  {
157207
157200
  "kind": "method",
157208
- "name": "_checkAndUpdateInputEmpty",
157209
- "privacy": "private",
157201
+ "name": "removeValidityFlag",
157202
+ "privacy": "protected",
157210
157203
  "return": {
157211
157204
  "type": {
157212
157205
  "text": "void"
157213
157206
  }
157214
157207
  },
157208
+ "parameters": [
157209
+ {
157210
+ "name": "flag",
157211
+ "type": {
157212
+ "text": "T"
157213
+ }
157214
+ }
157215
+ ],
157216
+ "description": "Removes the validity state flag entry and updates validity state.",
157215
157217
  "inheritedFrom": {
157216
- "name": "SbbFormFieldElement",
157217
- "module": "form-field/form-field/form-field.component.js"
157218
+ "name": "SbbFormAssociatedMixin",
157219
+ "module": "core/mixins/form-associated-mixin.js"
157218
157220
  }
157219
157221
  },
157220
157222
  {
157221
157223
  "kind": "method",
157222
- "name": "_isInputEmpty",
157223
- "privacy": "private",
157224
+ "name": "validate",
157225
+ "privacy": "protected",
157224
157226
  "return": {
157225
157227
  "type": {
157226
- "text": "boolean"
157228
+ "text": "void"
157227
157229
  }
157228
157230
  },
157231
+ "description": "To be called whenever the current element needs to be validated.",
157229
157232
  "inheritedFrom": {
157230
- "name": "SbbFormFieldElement",
157231
- "module": "form-field/form-field/form-field.component.js"
157233
+ "name": "SbbFormAssociatedMixin",
157234
+ "module": "core/mixins/form-associated-mixin.js"
157232
157235
  }
157233
157236
  },
157234
157237
  {
157235
157238
  "kind": "method",
157236
- "name": "_isInputValueEmpty",
157237
- "privacy": "private",
157239
+ "name": "shouldValidate",
157240
+ "privacy": "protected",
157238
157241
  "return": {
157239
157242
  "type": {
157240
157243
  "text": "boolean"
157241
157244
  }
157242
157245
  },
157246
+ "parameters": [
157247
+ {
157248
+ "name": "name",
157249
+ "type": {
157250
+ "text": "PropertyKey | undefined"
157251
+ }
157252
+ }
157253
+ ],
157254
+ "description": "Whether validation should be run on a property change with the given name.",
157243
157255
  "inheritedFrom": {
157244
- "name": "SbbFormFieldElement",
157245
- "module": "form-field/form-field/form-field.component.js"
157256
+ "name": "SbbFormAssociatedMixin",
157257
+ "module": "core/mixins/form-associated-mixin.js"
157246
157258
  }
157247
157259
  },
157248
157260
  {
157249
157261
  "kind": "method",
157250
- "name": "_onSlotErrorChange",
157262
+ "name": "_setInternalValidity",
157251
157263
  "privacy": "private",
157252
157264
  "return": {
157253
157265
  "type": {
157254
157266
  "text": "void"
157255
157267
  }
157256
157268
  },
157257
- "parameters": [
157258
- {
157259
- "name": "event",
157260
- "type": {
157261
- "text": "Event"
157262
- }
157263
- }
157264
- ],
157265
- "description": "It is used internally to set the aria-describedby attribute for the slotted input referencing available <sbb-error> instances.",
157266
157269
  "inheritedFrom": {
157267
- "name": "SbbFormFieldElement",
157268
- "module": "form-field/form-field/form-field.component.js"
157270
+ "name": "SbbFormAssociatedMixin",
157271
+ "module": "core/mixins/form-associated-mixin.js"
157269
157272
  }
157270
157273
  },
157271
157274
  {
157272
- "kind": "method",
157273
- "name": "_onSlotHintChange",
157275
+ "kind": "field",
157276
+ "name": "role",
157277
+ "type": {
157278
+ "text": "ElementInternals['role']"
157279
+ },
157280
+ "privacy": "public",
157281
+ "static": true,
157282
+ "inheritedFrom": {
157283
+ "name": "SbbElement",
157284
+ "module": "core/base-elements/element.js"
157285
+ },
157286
+ "readonly": true,
157287
+ "default": "'button'"
157288
+ },
157289
+ {
157290
+ "kind": "field",
157291
+ "name": "_preventScrollOnSpaceKeydown",
157274
157292
  "privacy": "private",
157275
- "return": {
157276
- "type": {
157277
- "text": "void"
157278
- }
157279
- },
157293
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
157280
157294
  "parameters": [
157281
157295
  {
157282
- "name": "event",
157283
- "type": {
157284
- "text": "Event"
157285
- }
157296
+ "description": "The origin event.",
157297
+ "name": "event"
157286
157298
  }
157287
157299
  ],
157288
- "description": "It is used internally to set the aria-describedby attribute for the slotted input referencing available <sbb-hint> instances.",
157289
157300
  "inheritedFrom": {
157290
- "name": "SbbFormFieldElement",
157291
- "module": "form-field/form-field/form-field.component.js"
157301
+ "name": "SbbButtonLikeBaseElement",
157302
+ "module": "core/base-elements/button-base-element.js"
157292
157303
  }
157293
157304
  },
157294
157305
  {
157295
- "kind": "method",
157296
- "name": "_assignAriaDescribedByElements",
157306
+ "kind": "field",
157307
+ "name": "_removeActiveMarker",
157297
157308
  "privacy": "private",
157298
- "return": {
157299
- "type": {
157300
- "text": "void"
157301
- }
157302
- },
157303
157309
  "inheritedFrom": {
157304
- "name": "SbbFormFieldElement",
157305
- "module": "form-field/form-field/form-field.component.js"
157310
+ "name": "SbbButtonLikeBaseElement",
157311
+ "module": "core/base-elements/button-base-element.js"
157306
157312
  }
157307
157313
  },
157308
157314
  {
157309
- "kind": "method",
157310
- "name": "reset",
157311
- "privacy": "public",
157312
- "return": {
157313
- "type": {
157314
- "text": "void"
157315
+ "kind": "field",
157316
+ "name": "_dispatchClickEventOnSpaceKeyup",
157317
+ "privacy": "private",
157318
+ "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.",
157319
+ "parameters": [
157320
+ {
157321
+ "description": "The origin event.",
157322
+ "name": "event"
157315
157323
  }
157316
- },
157317
- "description": "Manually reset the form field. Currently, this only resets the floating label.",
157324
+ ],
157318
157325
  "inheritedFrom": {
157319
- "name": "SbbFormFieldElement",
157320
- "module": "form-field/form-field/form-field.component.js"
157326
+ "name": "SbbButtonLikeBaseElement",
157327
+ "module": "core/base-elements/button-base-element.js"
157321
157328
  }
157322
157329
  },
157323
157330
  {
157324
- "kind": "method",
157325
- "name": "clear",
157326
- "privacy": "public",
157327
- "return": {
157328
- "type": {
157329
- "text": "void"
157330
- }
157331
+ "kind": "field",
157332
+ "name": "_dispatchClickEvent",
157333
+ "privacy": "private",
157334
+ "inheritedFrom": {
157335
+ "name": "SbbButtonLikeBaseElement",
157336
+ "module": "core/base-elements/button-base-element.js"
157337
+ }
157338
+ },
157339
+ {
157340
+ "kind": "field",
157341
+ "name": "maybeDisabled",
157342
+ "type": {
157343
+ "text": "boolean | undefined"
157331
157344
  },
157332
- "description": "Manually clears the input value. It only works for inputs, selects are not supported.",
157345
+ "privacy": "protected",
157346
+ "readonly": true,
157333
157347
  "inheritedFrom": {
157334
- "name": "SbbFormFieldElement",
157335
- "module": "form-field/form-field/form-field.component.js"
157348
+ "name": "SbbActionBaseElement",
157349
+ "module": "core/base-elements/action-base-element.js"
157336
157350
  }
157337
157351
  },
157338
157352
  {
157339
- "kind": "method",
157340
- "name": "_syncNegative",
157341
- "privacy": "private",
157342
- "return": {
157343
- "type": {
157344
- "text": "void"
157345
- }
157353
+ "kind": "field",
157354
+ "name": "maybeDisabledInteractive",
157355
+ "type": {
157356
+ "text": "boolean | undefined"
157346
157357
  },
157358
+ "privacy": "protected",
157359
+ "readonly": true,
157347
157360
  "inheritedFrom": {
157348
- "name": "SbbFormFieldElement",
157349
- "module": "form-field/form-field/form-field.component.js"
157361
+ "name": "SbbActionBaseElement",
157362
+ "module": "core/base-elements/action-base-element.js"
157350
157363
  }
157351
157364
  },
157352
157365
  {
157353
157366
  "kind": "method",
157354
- "name": "_syncSize",
157355
- "privacy": "private",
157367
+ "name": "setupBaseEventHandlers",
157368
+ "privacy": "protected",
157356
157369
  "return": {
157357
157370
  "type": {
157358
157371
  "text": "void"
157359
157372
  }
157360
157373
  },
157361
157374
  "inheritedFrom": {
157362
- "name": "SbbFormFieldElement",
157363
- "module": "form-field/form-field/form-field.component.js"
157375
+ "name": "SbbActionBaseElement",
157376
+ "module": "core/base-elements/action-base-element.js"
157364
157377
  }
157365
157378
  },
157366
157379
  {
@@ -157377,19 +157390,6 @@
157377
157390
  "module": "core/base-elements/element.js"
157378
157391
  }
157379
157392
  },
157380
- {
157381
- "kind": "field",
157382
- "name": "role",
157383
- "type": {
157384
- "text": "ElementInternals['role'] | undefined"
157385
- },
157386
- "privacy": "public",
157387
- "static": true,
157388
- "inheritedFrom": {
157389
- "name": "SbbElement",
157390
- "module": "core/base-elements/element.js"
157391
- }
157392
- },
157393
157393
  {
157394
157394
  "kind": "field",
157395
157395
  "name": "_controllers",
@@ -157610,184 +157610,184 @@
157610
157610
  }
157611
157611
  }
157612
157612
  ],
157613
+ "events": [
157614
+ {
157615
+ "type": {
157616
+ "text": "Event"
157617
+ },
157618
+ "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.",
157619
+ "name": "change"
157620
+ },
157621
+ {
157622
+ "type": {
157623
+ "text": "InputEvent"
157624
+ },
157625
+ "description": "The input event fires on the associated inputs when the value has been changed as a direct result of a user action.",
157626
+ "name": "input"
157627
+ }
157628
+ ],
157613
157629
  "superclass": {
157614
- "name": "SbbFormFieldElement",
157615
- "module": "form-field.pure.js"
157630
+ "name": "SbbSecondaryButtonElement",
157631
+ "module": "button.pure.js"
157616
157632
  },
157617
- "tagName": "sbb-timetable-form-field",
157633
+ "tagName": "sbb-timetable-form-swap-button",
157618
157634
  "customElement": true,
157619
157635
  "attributes": [
157620
157636
  {
157621
- "name": "negative",
157637
+ "name": "size",
157622
157638
  "type": {
157623
- "text": "boolean"
157639
+ "text": "SbbButtonSize"
157624
157640
  },
157625
- "default": "false",
157626
- "description": "Negative coloring variant flag.",
157627
- "fieldName": "negative",
157641
+ "description": "Size variant, either l, m or s.",
157642
+ "default": "'m' / 's' (lean)",
157643
+ "fieldName": "size",
157628
157644
  "inheritedFrom": {
157629
- "name": "SbbNegativeMixin",
157630
- "module": "core/mixins/negative-mixin.js"
157645
+ "name": "SbbButtonCommonElementMixin",
157646
+ "module": "button/common/button-common.js"
157631
157647
  }
157632
157648
  },
157633
157649
  {
157634
- "name": "error-space",
157650
+ "name": "loading",
157635
157651
  "type": {
157636
- "text": "'none' | 'reserve'"
157652
+ "text": "boolean"
157637
157653
  },
157638
- "default": "'none'",
157639
- "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.",
157640
- "fieldName": "errorSpace",
157654
+ "default": "false",
157655
+ "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.",
157656
+ "fieldName": "loading",
157641
157657
  "inheritedFrom": {
157642
- "name": "SbbFormFieldElement",
157643
- "module": "form-field/form-field/form-field.component.js"
157658
+ "name": "SbbButtonCommonElementMixin",
157659
+ "module": "button/common/button-common.js"
157644
157660
  }
157645
157661
  },
157646
157662
  {
157647
- "name": "optional",
157663
+ "name": "negative",
157648
157664
  "type": {
157649
157665
  "text": "boolean"
157650
157666
  },
157651
157667
  "default": "false",
157652
- "description": "Indicates whether the input is optional.",
157653
- "deprecated": "Set the (optional) label text manually. Will be removed with next major version.",
157654
- "fieldName": "optional",
157668
+ "description": "Negative coloring variant flag.",
157669
+ "fieldName": "negative",
157655
157670
  "inheritedFrom": {
157656
- "name": "SbbFormFieldElement",
157657
- "module": "form-field/form-field/form-field.component.js"
157671
+ "name": "SbbNegativeMixin",
157672
+ "module": "core/mixins/negative-mixin.js"
157658
157673
  }
157659
157674
  },
157660
157675
  {
157661
- "name": "size",
157676
+ "name": "icon-name",
157662
157677
  "type": {
157663
- "text": "'l' | 'm' | 's'"
157678
+ "text": "string"
157664
157679
  },
157665
- "description": "Size variant, either l, m or s.",
157666
- "default": "'m' / 's' (lean)",
157667
- "fieldName": "size",
157680
+ "default": "''",
157681
+ "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.",
157682
+ "fieldName": "iconName",
157668
157683
  "inheritedFrom": {
157669
- "name": "SbbFormFieldElement",
157670
- "module": "form-field/form-field/form-field.component.js"
157684
+ "name": "SbbIconNameMixin",
157685
+ "module": "icon/icon-name-mixin.js"
157671
157686
  }
157672
157687
  },
157673
157688
  {
157674
- "name": "borderless",
157689
+ "name": "disabled-interactive",
157675
157690
  "type": {
157676
157691
  "text": "boolean"
157677
157692
  },
157678
157693
  "default": "false",
157679
- "description": "Whether to display the form field without a border.",
157680
- "fieldName": "borderless",
157694
+ "description": "Whether the button should be aria-disabled but stay interactive.",
157695
+ "fieldName": "disabledInteractive",
157681
157696
  "inheritedFrom": {
157682
- "name": "SbbFormFieldElement",
157683
- "module": "form-field/form-field/form-field.component.js"
157697
+ "name": "SbbDisabledInteractiveMixin",
157698
+ "module": "core/mixins/disabled-mixin.js"
157684
157699
  }
157685
157700
  },
157686
157701
  {
157687
- "name": "width",
157702
+ "name": "disabled",
157703
+ "description": "Whether the component is disabled.",
157704
+ "default": "false",
157688
157705
  "type": {
157689
- "text": "'default' | 'collapse'"
157706
+ "text": "boolean"
157690
157707
  },
157691
- "default": "'default'",
157692
- "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.",
157693
- "fieldName": "width",
157708
+ "fieldName": "disabled",
157694
157709
  "inheritedFrom": {
157695
- "name": "SbbFormFieldElement",
157696
- "module": "form-field/form-field/form-field.component.js"
157710
+ "name": "SbbDisabledMixin",
157711
+ "module": "core/mixins/disabled-mixin.js"
157697
157712
  }
157698
157713
  },
157699
157714
  {
157700
- "name": "hidden-label",
157715
+ "name": "value",
157701
157716
  "type": {
157702
- "text": "boolean"
157717
+ "text": "string"
157703
157718
  },
157704
- "default": "false",
157705
- "description": "Whether to visually hide the label. If hidden, screen readers will still read it.",
157706
- "fieldName": "hiddenLabel",
157719
+ "default": "''",
157720
+ "description": "Value of the form element.",
157721
+ "fieldName": "value",
157707
157722
  "inheritedFrom": {
157708
- "name": "SbbFormFieldElement",
157709
- "module": "form-field/form-field/form-field.component.js"
157723
+ "name": "SbbButtonBaseElement",
157724
+ "module": "core/base-elements/button-base-element.js"
157710
157725
  }
157711
157726
  },
157712
157727
  {
157713
- "name": "floating-label",
157728
+ "name": "type",
157729
+ "description": "The type attribute to use for the button.",
157730
+ "default": "'button'",
157714
157731
  "type": {
157715
- "text": "boolean"
157732
+ "text": "SbbButtonType"
157716
157733
  },
157717
- "default": "false",
157718
- "description": "Whether the label should float. If activated, the placeholder of the input is hidden.",
157719
- "fieldName": "floatingLabel",
157720
- "inheritedFrom": {
157721
- "name": "SbbFormFieldElement",
157722
- "module": "form-field/form-field/form-field.component.js"
157723
- }
157724
- }
157725
- ],
157726
- "slots": [
157727
- {
157728
- "description": "Use this slot to render an input/select or a supported non-native element.",
157729
- "name": "",
157730
- "inheritedFrom": {
157731
- "name": "SbbFormFieldElement",
157732
- "module": "form-field/form-field/form-field.component.js"
157733
- }
157734
- },
157735
- {
157736
- "description": "Use this slot to render a label.",
157737
- "name": "label",
157734
+ "fieldName": "type",
157738
157735
  "inheritedFrom": {
157739
- "name": "SbbFormFieldElement",
157740
- "module": "form-field/form-field/form-field.component.js"
157736
+ "name": "SbbButtonBaseElement",
157737
+ "module": "core/base-elements/button-base-element.js"
157741
157738
  }
157742
157739
  },
157743
157740
  {
157744
- "description": "Use this slot to render an icon on the left side of the input.",
157745
- "name": "prefix",
157741
+ "name": "form",
157742
+ "description": "The `<form>` element to associate the button with.",
157743
+ "type": {
157744
+ "text": "HTMLFormElement | null"
157745
+ },
157746
+ "fieldName": "form",
157746
157747
  "inheritedFrom": {
157747
- "name": "SbbFormFieldElement",
157748
- "module": "form-field/form-field/form-field.component.js"
157748
+ "name": "SbbButtonBaseElement",
157749
+ "module": "core/base-elements/button-base-element.js"
157749
157750
  }
157750
157751
  },
157751
157752
  {
157752
- "description": "Use this slot to render an icon on the right side of the input.",
157753
- "name": "suffix",
157753
+ "name": "name",
157754
+ "description": "Name of the form element. Will be read from name attribute.",
157755
+ "type": {
157756
+ "text": "string"
157757
+ },
157758
+ "fieldName": "name",
157754
157759
  "inheritedFrom": {
157755
- "name": "SbbFormFieldElement",
157756
- "module": "form-field/form-field/form-field.component.js"
157760
+ "name": "SbbFormAssociatedMixin",
157761
+ "module": "core/mixins/form-associated-mixin.js"
157757
157762
  }
157758
- },
157763
+ }
157764
+ ],
157765
+ "slots": [
157759
157766
  {
157760
- "description": "Use this slot to render an error.",
157761
- "name": "error",
157767
+ "description": "Use the unnamed slot to add content to the secondary-button.",
157768
+ "name": "",
157762
157769
  "inheritedFrom": {
157763
- "name": "SbbFormFieldElement",
157764
- "module": "form-field/form-field/form-field.component.js"
157770
+ "name": "SbbSecondaryButtonElement",
157771
+ "module": "button/secondary-button/secondary-button.component.js"
157765
157772
  }
157766
157773
  },
157767
157774
  {
157768
- "description": "Use this slot to render an `<sbb-hint>` or an `<sbb-form-field-text-counter>` element.",
157769
- "name": "hint",
157775
+ "description": "Slot used to display the icon, if one is set.",
157776
+ "name": "icon",
157770
157777
  "inheritedFrom": {
157771
- "name": "SbbFormFieldElement",
157772
- "module": "form-field/form-field/form-field.component.js"
157778
+ "name": "SbbSecondaryButtonElement",
157779
+ "module": "button/secondary-button/secondary-button.component.js"
157773
157780
  }
157774
157781
  }
157775
157782
  ],
157776
157783
  "cssProperties": [
157777
157784
  {
157778
- "description": "To override the focus outline offset,",
157779
- "name": "--sbb-form-field-outline-offset",
157780
- "inheritedFrom": {
157781
- "name": "SbbFormFieldElement",
157782
- "module": "form-field/form-field/form-field.component.js"
157783
- }
157784
- },
157785
- {
157786
- "description": "To override the z-index of the focus underline effect,",
157787
- "name": "--sbb-form-field-focus-underline-z-index",
157785
+ "description": "The delay before the loading animation starts, when setting the button into loading state.",
157786
+ "name": "--sbb-button-loading-delay",
157787
+ "default": "300ms",
157788
157788
  "inheritedFrom": {
157789
- "name": "SbbFormFieldElement",
157790
- "module": "form-field/form-field/form-field.component.js"
157789
+ "name": "SbbSecondaryButtonElement",
157790
+ "module": "button/secondary-button/secondary-button.component.js"
157791
157791
  }
157792
157792
  }
157793
157793
  ]
@@ -157796,10 +157796,10 @@
157796
157796
  "exports": [
157797
157797
  {
157798
157798
  "kind": "js",
157799
- "name": "SbbTimetableFormFieldElement",
157799
+ "name": "SbbTimetableFormSwapButtonElement",
157800
157800
  "declaration": {
157801
- "name": "SbbTimetableFormFieldElement",
157802
- "module": "timetable-form/timetable-form-field/timetable-form-field.component.js"
157801
+ "name": "SbbTimetableFormSwapButtonElement",
157802
+ "module": "timetable-form/timetable-form-swap-button/timetable-form-swap-button.component.js"
157803
157803
  }
157804
157804
  }
157805
157805
  ]
@@ -159839,12 +159839,25 @@
159839
159839
  },
159840
159840
  {
159841
159841
  "kind": "javascript-module",
159842
- "path": "train/train-blocked-passage/train-blocked-passage.component.js",
159842
+ "path": "train/train-formation/train-formation.component.js",
159843
159843
  "declarations": [
159844
159844
  {
159845
159845
  "kind": "class",
159846
- "description": "It visually displays a blocked passage between train wagons.",
159847
- "name": "SbbTrainBlockedPassageElement",
159846
+ "description": "It displays a train composition, acting as a container for one or more `sbb-train` component.",
159847
+ "name": "SbbTrainFormationElement",
159848
+ "cssProperties": [
159849
+ {
159850
+ "description": "Defines the inline padding inside the horizontal scrolling area.",
159851
+ "name": "--sbb-train-formation-padding-inline",
159852
+ "default": "0px"
159853
+ }
159854
+ ],
159855
+ "slots": [
159856
+ {
159857
+ "description": "Use the unnamed slot to add 'sbb-train' elements to the `sbb-train-formation`.",
159858
+ "name": ""
159859
+ }
159860
+ ],
159848
159861
  "members": [
159849
159862
  {
159850
159863
  "kind": "field",
@@ -159855,10 +159868,177 @@
159855
159868
  "privacy": "public",
159856
159869
  "static": true,
159857
159870
  "readonly": true,
159858
- "default": "'sbb-train-blocked-passage'",
159871
+ "default": "'sbb-train-formation'",
159872
+ "inheritedFrom": {
159873
+ "name": "SbbElement",
159874
+ "module": "core/base-elements/element.js"
159875
+ }
159876
+ },
159877
+ {
159878
+ "kind": "field",
159879
+ "name": "listChildLocalNames",
159880
+ "type": {
159881
+ "text": "array"
159882
+ },
159883
+ "privacy": "protected",
159884
+ "readonly": true,
159885
+ "description": "A list of lower-cased tag names to match against. (e.g. `sbb-link`)",
159886
+ "default": "['sbb-train']",
159887
+ "inheritedFrom": {
159888
+ "name": "SbbNamedSlotListMixin",
159889
+ "module": "core/mixins/named-slot-list-mixin.js"
159890
+ }
159891
+ },
159892
+ {
159893
+ "kind": "field",
159894
+ "name": "view",
159895
+ "type": {
159896
+ "text": "'side' | 'top'"
159897
+ },
159898
+ "privacy": "public",
159899
+ "default": "'side'",
159900
+ "description": "Whether the view of the wagons is from side or top perspective.",
159901
+ "attribute": "view",
159902
+ "reflects": true
159903
+ },
159904
+ {
159905
+ "kind": "field",
159906
+ "name": "_sectors",
159907
+ "type": {
159908
+ "text": "AggregatedSector[]"
159909
+ },
159910
+ "privacy": "private",
159911
+ "default": "[]"
159912
+ },
159913
+ {
159914
+ "kind": "field",
159915
+ "name": "_language",
159916
+ "privacy": "private",
159917
+ "default": "new SbbLanguageController(this)"
159918
+ },
159919
+ {
159920
+ "kind": "method",
159921
+ "name": "_readSectors",
159922
+ "privacy": "private",
159923
+ "return": {
159924
+ "type": {
159925
+ "text": "void"
159926
+ }
159927
+ },
159928
+ "parameters": [
159929
+ {
159930
+ "name": "event",
159931
+ "optional": true,
159932
+ "type": {
159933
+ "text": "Event"
159934
+ }
159935
+ }
159936
+ ]
159937
+ },
159938
+ {
159939
+ "kind": "field",
159940
+ "name": "elementDependencies",
159941
+ "type": {
159942
+ "text": "SbbElementType[]"
159943
+ },
159944
+ "privacy": "public",
159945
+ "static": true,
159946
+ "default": "[SbbScreenReaderOnlyElement]",
159947
+ "inheritedFrom": {
159948
+ "name": "SbbElement",
159949
+ "module": "core/base-elements/element.js"
159950
+ }
159951
+ },
159952
+ {
159953
+ "kind": "field",
159954
+ "name": "listChildren",
159955
+ "type": {
159956
+ "text": "C[]"
159957
+ },
159958
+ "privacy": "protected",
159959
+ "default": "[]",
159960
+ "description": "A list of children with the defined tag names.\nThis array is only updated if there is an actual change\nto the child elements.",
159961
+ "inheritedFrom": {
159962
+ "name": "SbbNamedSlotListMixin",
159963
+ "module": "core/mixins/named-slot-list-mixin.js"
159964
+ }
159965
+ },
159966
+ {
159967
+ "kind": "field",
159968
+ "name": "_handleSlotchange",
159969
+ "privacy": "private",
159970
+ "inheritedFrom": {
159971
+ "name": "SbbNamedSlotListMixin",
159972
+ "module": "core/mixins/named-slot-list-mixin.js"
159973
+ }
159974
+ },
159975
+ {
159976
+ "kind": "method",
159977
+ "name": "renderList",
159978
+ "privacy": "protected",
159979
+ "return": {
159980
+ "type": {
159981
+ "text": "TemplateResult"
159982
+ }
159983
+ },
159984
+ "parameters": [
159985
+ {
159986
+ "name": "attributes",
159987
+ "default": "{}",
159988
+ "type": {
159989
+ "text": "{ class?: string; ariaLabel?: string; ariaLabelledby?: string }"
159990
+ }
159991
+ },
159992
+ {
159993
+ "name": "listItemAttributes",
159994
+ "default": "{}",
159995
+ "type": {
159996
+ "text": "{ localNameVisualOnly?: string[] }"
159997
+ }
159998
+ }
159999
+ ],
160000
+ "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.",
160001
+ "inheritedFrom": {
160002
+ "name": "SbbNamedSlotListMixin",
160003
+ "module": "core/mixins/named-slot-list-mixin.js"
160004
+ }
160005
+ },
160006
+ {
160007
+ "kind": "method",
160008
+ "name": "listSlotEntries",
160009
+ "privacy": "protected",
160010
+ "return": {
160011
+ "type": {
160012
+ "text": "SbbNamedSlotProperties[]"
160013
+ }
160014
+ },
160015
+ "parameters": [
160016
+ {
160017
+ "name": "listItemAttributes",
160018
+ "type": {
160019
+ "text": "{\n localNameVisualOnly?: string[];\n }"
160020
+ }
160021
+ }
160022
+ ],
160023
+ "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.",
160024
+ "inheritedFrom": {
160025
+ "name": "SbbNamedSlotListMixin",
160026
+ "module": "core/mixins/named-slot-list-mixin.js"
160027
+ }
160028
+ },
160029
+ {
160030
+ "kind": "method",
160031
+ "name": "renderHiddenSlot",
160032
+ "privacy": "protected",
160033
+ "return": {
160034
+ "type": {
160035
+ "text": "TemplateResult"
160036
+ }
160037
+ },
160038
+ "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.",
159859
160039
  "inheritedFrom": {
159860
- "name": "SbbElement",
159861
- "module": "core/base-elements/element.js"
160040
+ "name": "SbbNamedSlotListMixin",
160041
+ "module": "core/mixins/named-slot-list-mixin.js"
159862
160042
  }
159863
160043
  },
159864
160044
  {
@@ -159875,19 +160055,6 @@
159875
160055
  "module": "core/base-elements/element.js"
159876
160056
  }
159877
160057
  },
159878
- {
159879
- "kind": "field",
159880
- "name": "elementDependencies",
159881
- "type": {
159882
- "text": "SbbElementType[] | undefined"
159883
- },
159884
- "privacy": "public",
159885
- "static": true,
159886
- "inheritedFrom": {
159887
- "name": "SbbElement",
159888
- "module": "core/base-elements/element.js"
159889
- }
159890
- },
159891
160058
  {
159892
160059
  "kind": "field",
159893
160060
  "name": "role",
@@ -160121,46 +160288,50 @@
160121
160288
  }
160122
160289
  }
160123
160290
  ],
160291
+ "attributes": [
160292
+ {
160293
+ "name": "view",
160294
+ "type": {
160295
+ "text": "'side' | 'top'"
160296
+ },
160297
+ "default": "'side'",
160298
+ "description": "Whether the view of the wagons is from side or top perspective.",
160299
+ "fieldName": "view"
160300
+ }
160301
+ ],
160302
+ "mixins": [
160303
+ {
160304
+ "name": "SbbNamedSlotListMixin",
160305
+ "module": "core.js"
160306
+ }
160307
+ ],
160124
160308
  "superclass": {
160125
160309
  "name": "SbbElement",
160126
160310
  "module": "core.js"
160127
160311
  },
160128
- "tagName": "sbb-train-blocked-passage",
160312
+ "tagName": "sbb-train-formation",
160129
160313
  "customElement": true
160130
160314
  }
160131
160315
  ],
160132
160316
  "exports": [
160133
160317
  {
160134
160318
  "kind": "js",
160135
- "name": "SbbTrainBlockedPassageElement",
160319
+ "name": "SbbTrainFormationElement",
160136
160320
  "declaration": {
160137
- "name": "SbbTrainBlockedPassageElement",
160138
- "module": "train/train-blocked-passage/train-blocked-passage.component.js"
160321
+ "name": "SbbTrainFormationElement",
160322
+ "module": "train/train-formation/train-formation.component.js"
160139
160323
  }
160140
160324
  }
160141
160325
  ]
160142
160326
  },
160143
160327
  {
160144
160328
  "kind": "javascript-module",
160145
- "path": "train/train-formation/train-formation.component.js",
160329
+ "path": "train/train-blocked-passage/train-blocked-passage.component.js",
160146
160330
  "declarations": [
160147
160331
  {
160148
160332
  "kind": "class",
160149
- "description": "It displays a train composition, acting as a container for one or more `sbb-train` component.",
160150
- "name": "SbbTrainFormationElement",
160151
- "cssProperties": [
160152
- {
160153
- "description": "Defines the inline padding inside the horizontal scrolling area.",
160154
- "name": "--sbb-train-formation-padding-inline",
160155
- "default": "0px"
160156
- }
160157
- ],
160158
- "slots": [
160159
- {
160160
- "description": "Use the unnamed slot to add 'sbb-train' elements to the `sbb-train-formation`.",
160161
- "name": ""
160162
- }
160163
- ],
160333
+ "description": "It visually displays a blocked passage between train wagons.",
160334
+ "name": "SbbTrainBlockedPassageElement",
160164
160335
  "members": [
160165
160336
  {
160166
160337
  "kind": "field",
@@ -160171,7 +160342,7 @@
160171
160342
  "privacy": "public",
160172
160343
  "static": true,
160173
160344
  "readonly": true,
160174
- "default": "'sbb-train-formation'",
160345
+ "default": "'sbb-train-blocked-passage'",
160175
160346
  "inheritedFrom": {
160176
160347
  "name": "SbbElement",
160177
160348
  "module": "core/base-elements/element.js"
@@ -160179,74 +160350,13 @@
160179
160350
  },
160180
160351
  {
160181
160352
  "kind": "field",
160182
- "name": "listChildLocalNames",
160183
- "type": {
160184
- "text": "array"
160185
- },
160186
- "privacy": "protected",
160187
- "readonly": true,
160188
- "description": "A list of lower-cased tag names to match against. (e.g. `sbb-link`)",
160189
- "default": "['sbb-train']",
160190
- "inheritedFrom": {
160191
- "name": "SbbNamedSlotListMixin",
160192
- "module": "core/mixins/named-slot-list-mixin.js"
160193
- }
160194
- },
160195
- {
160196
- "kind": "field",
160197
- "name": "view",
160198
- "type": {
160199
- "text": "'side' | 'top'"
160200
- },
160201
- "privacy": "public",
160202
- "default": "'side'",
160203
- "description": "Whether the view of the wagons is from side or top perspective.",
160204
- "attribute": "view",
160205
- "reflects": true
160206
- },
160207
- {
160208
- "kind": "field",
160209
- "name": "_sectors",
160210
- "type": {
160211
- "text": "AggregatedSector[]"
160212
- },
160213
- "privacy": "private",
160214
- "default": "[]"
160215
- },
160216
- {
160217
- "kind": "field",
160218
- "name": "_language",
160219
- "privacy": "private",
160220
- "default": "new SbbLanguageController(this)"
160221
- },
160222
- {
160223
- "kind": "method",
160224
- "name": "_readSectors",
160225
- "privacy": "private",
160226
- "return": {
160227
- "type": {
160228
- "text": "void"
160229
- }
160230
- },
160231
- "parameters": [
160232
- {
160233
- "name": "event",
160234
- "optional": true,
160235
- "type": {
160236
- "text": "Event"
160237
- }
160238
- }
160239
- ]
160240
- },
160241
- {
160242
- "kind": "field",
160243
- "name": "elementDependencies",
160353
+ "name": "['_$sbbElement$']",
160244
160354
  "type": {
160245
- "text": "SbbElementType[]"
160355
+ "text": "boolean"
160246
160356
  },
160247
160357
  "privacy": "public",
160248
160358
  "static": true,
160249
- "default": "[SbbScreenReaderOnlyElement]",
160359
+ "default": "true",
160250
160360
  "inheritedFrom": {
160251
160361
  "name": "SbbElement",
160252
160362
  "module": "core/base-elements/element.js"
@@ -160254,105 +160364,12 @@
160254
160364
  },
160255
160365
  {
160256
160366
  "kind": "field",
160257
- "name": "listChildren",
160258
- "type": {
160259
- "text": "C[]"
160260
- },
160261
- "privacy": "protected",
160262
- "default": "[]",
160263
- "description": "A list of children with the defined tag names.\nThis array is only updated if there is an actual change\nto the child elements.",
160264
- "inheritedFrom": {
160265
- "name": "SbbNamedSlotListMixin",
160266
- "module": "core/mixins/named-slot-list-mixin.js"
160267
- }
160268
- },
160269
- {
160270
- "kind": "field",
160271
- "name": "_handleSlotchange",
160272
- "privacy": "private",
160273
- "inheritedFrom": {
160274
- "name": "SbbNamedSlotListMixin",
160275
- "module": "core/mixins/named-slot-list-mixin.js"
160276
- }
160277
- },
160278
- {
160279
- "kind": "method",
160280
- "name": "renderList",
160281
- "privacy": "protected",
160282
- "return": {
160283
- "type": {
160284
- "text": "TemplateResult"
160285
- }
160286
- },
160287
- "parameters": [
160288
- {
160289
- "name": "attributes",
160290
- "default": "{}",
160291
- "type": {
160292
- "text": "{ class?: string; ariaLabel?: string; ariaLabelledby?: string }"
160293
- }
160294
- },
160295
- {
160296
- "name": "listItemAttributes",
160297
- "default": "{}",
160298
- "type": {
160299
- "text": "{ localNameVisualOnly?: string[] }"
160300
- }
160301
- }
160302
- ],
160303
- "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.",
160304
- "inheritedFrom": {
160305
- "name": "SbbNamedSlotListMixin",
160306
- "module": "core/mixins/named-slot-list-mixin.js"
160307
- }
160308
- },
160309
- {
160310
- "kind": "method",
160311
- "name": "listSlotEntries",
160312
- "privacy": "protected",
160313
- "return": {
160314
- "type": {
160315
- "text": "SbbNamedSlotProperties[]"
160316
- }
160317
- },
160318
- "parameters": [
160319
- {
160320
- "name": "listItemAttributes",
160321
- "type": {
160322
- "text": "{\n localNameVisualOnly?: string[];\n }"
160323
- }
160324
- }
160325
- ],
160326
- "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.",
160327
- "inheritedFrom": {
160328
- "name": "SbbNamedSlotListMixin",
160329
- "module": "core/mixins/named-slot-list-mixin.js"
160330
- }
160331
- },
160332
- {
160333
- "kind": "method",
160334
- "name": "renderHiddenSlot",
160335
- "privacy": "protected",
160336
- "return": {
160337
- "type": {
160338
- "text": "TemplateResult"
160339
- }
160340
- },
160341
- "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.",
160342
- "inheritedFrom": {
160343
- "name": "SbbNamedSlotListMixin",
160344
- "module": "core/mixins/named-slot-list-mixin.js"
160345
- }
160346
- },
160347
- {
160348
- "kind": "field",
160349
- "name": "['_$sbbElement$']",
160367
+ "name": "elementDependencies",
160350
160368
  "type": {
160351
- "text": "boolean"
160369
+ "text": "SbbElementType[] | undefined"
160352
160370
  },
160353
160371
  "privacy": "public",
160354
160372
  "static": true,
160355
- "default": "true",
160356
160373
  "inheritedFrom": {
160357
160374
  "name": "SbbElement",
160358
160375
  "module": "core/base-elements/element.js"
@@ -160591,38 +160608,21 @@
160591
160608
  }
160592
160609
  }
160593
160610
  ],
160594
- "attributes": [
160595
- {
160596
- "name": "view",
160597
- "type": {
160598
- "text": "'side' | 'top'"
160599
- },
160600
- "default": "'side'",
160601
- "description": "Whether the view of the wagons is from side or top perspective.",
160602
- "fieldName": "view"
160603
- }
160604
- ],
160605
- "mixins": [
160606
- {
160607
- "name": "SbbNamedSlotListMixin",
160608
- "module": "core.js"
160609
- }
160610
- ],
160611
160611
  "superclass": {
160612
160612
  "name": "SbbElement",
160613
160613
  "module": "core.js"
160614
160614
  },
160615
- "tagName": "sbb-train-formation",
160615
+ "tagName": "sbb-train-blocked-passage",
160616
160616
  "customElement": true
160617
160617
  }
160618
160618
  ],
160619
160619
  "exports": [
160620
160620
  {
160621
160621
  "kind": "js",
160622
- "name": "SbbTrainFormationElement",
160622
+ "name": "SbbTrainBlockedPassageElement",
160623
160623
  "declaration": {
160624
- "name": "SbbTrainFormationElement",
160625
- "module": "train/train-formation/train-formation.component.js"
160624
+ "name": "SbbTrainBlockedPassageElement",
160625
+ "module": "train/train-blocked-passage/train-blocked-passage.component.js"
160626
160626
  }
160627
160627
  }
160628
160628
  ]