@sbb-esta/lyne-elements-dev 4.13.0-dev.1780899271 → 4.13.0-dev.1780917574

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.
@@ -21902,6 +21902,14 @@
21902
21902
  "text": "void"
21903
21903
  }
21904
21904
  },
21905
+ "parameters": [
21906
+ {
21907
+ "name": "previousName",
21908
+ "type": {
21909
+ "text": "string"
21910
+ }
21911
+ }
21912
+ ],
21905
21913
  "description": "Remove `this` from the radioButton registry and, if the group is empty, delete the entry from the groups Map",
21906
21914
  "inheritedFrom": {
21907
21915
  "name": "SbbFormAssociatedRadioButtonMixin",
@@ -23625,6 +23633,14 @@
23625
23633
  "text": "void"
23626
23634
  }
23627
23635
  },
23636
+ "parameters": [
23637
+ {
23638
+ "name": "previousName",
23639
+ "type": {
23640
+ "text": "string"
23641
+ }
23642
+ }
23643
+ ],
23628
23644
  "description": "Remove `this` from the radioButton registry and, if the group is empty, delete the entry from the groups Map",
23629
23645
  "inheritedFrom": {
23630
23646
  "name": "SbbFormAssociatedRadioButtonMixin",
@@ -75962,6 +75978,14 @@
75962
75978
  "text": "void"
75963
75979
  }
75964
75980
  },
75981
+ "parameters": [
75982
+ {
75983
+ "name": "previousName",
75984
+ "type": {
75985
+ "text": "string"
75986
+ }
75987
+ }
75988
+ ],
75965
75989
  "description": "Remove `this` from the radioButton registry and, if the group is empty, delete the entry from the groups Map"
75966
75990
  },
75967
75991
  {
@@ -78009,6 +78033,26 @@
78009
78033
  }
78010
78034
  ]
78011
78035
  },
78036
+ {
78037
+ "kind": "javascript-module",
78038
+ "path": "core/styles/styles.js",
78039
+ "declarations": [
78040
+ {
78041
+ "kind": "variable",
78042
+ "name": "boxSizingStyles"
78043
+ }
78044
+ ],
78045
+ "exports": [
78046
+ {
78047
+ "kind": "js",
78048
+ "name": "boxSizingStyles",
78049
+ "declaration": {
78050
+ "name": "boxSizingStyles",
78051
+ "module": "core/styles/styles.js"
78052
+ }
78053
+ }
78054
+ ]
78055
+ },
78012
78056
  {
78013
78057
  "kind": "javascript-module",
78014
78058
  "path": "core/testing/event-spy.js",
@@ -78406,26 +78450,6 @@
78406
78450
  }
78407
78451
  ]
78408
78452
  },
78409
- {
78410
- "kind": "javascript-module",
78411
- "path": "core/styles/styles.js",
78412
- "declarations": [
78413
- {
78414
- "kind": "variable",
78415
- "name": "boxSizingStyles"
78416
- }
78417
- ],
78418
- "exports": [
78419
- {
78420
- "kind": "js",
78421
- "name": "boxSizingStyles",
78422
- "declaration": {
78423
- "name": "boxSizingStyles",
78424
- "module": "core/styles/styles.js"
78425
- }
78426
- }
78427
- ]
78428
- },
78429
78453
  {
78430
78454
  "kind": "javascript-module",
78431
78455
  "path": "datepicker/common/datepicker-button.js",
@@ -107333,12 +107357,12 @@
107333
107357
  },
107334
107358
  {
107335
107359
  "kind": "javascript-module",
107336
- "path": "menu/menu-link/menu-link.component.js",
107360
+ "path": "menu/menu-button/menu-button.component.js",
107337
107361
  "declarations": [
107338
107362
  {
107339
107363
  "kind": "class",
107340
- "description": "It displays a link element that can be used in the `sbb-menu` component.",
107341
- "name": "SbbMenuLinkElement",
107364
+ "description": "It displays a button element that can be used in the `sbb-menu` component.",
107365
+ "name": "SbbMenuButtonElement",
107342
107366
  "cssProperties": [
107343
107367
  {
107344
107368
  "description": "Can be used to modify horizontal padding.",
@@ -107348,7 +107372,7 @@
107348
107372
  ],
107349
107373
  "slots": [
107350
107374
  {
107351
- "description": "Use the unnamed slot to add content to the `sbb-menu-link`.",
107375
+ "description": "Use the unnamed slot to add content to the `sbb-menu-button`.",
107352
107376
  "name": ""
107353
107377
  },
107354
107378
  {
@@ -107370,20 +107394,21 @@
107370
107394
  "name": "SbbElement",
107371
107395
  "module": "core/base-elements/element.js"
107372
107396
  },
107373
- "default": "'sbb-menu-link'"
107397
+ "default": "'sbb-menu-button'"
107374
107398
  },
107375
107399
  {
107376
107400
  "kind": "field",
107377
- "name": "anchorRole",
107401
+ "name": "role",
107378
107402
  "type": {
107379
- "text": "string"
107403
+ "text": "ElementInternals['role']"
107380
107404
  },
107381
- "privacy": "protected",
107405
+ "privacy": "public",
107406
+ "static": true,
107382
107407
  "readonly": true,
107383
107408
  "default": "'menuitem'",
107384
107409
  "inheritedFrom": {
107385
- "name": "SbbLinkBaseElement",
107386
- "module": "core/base-elements/link-base-element.js"
107410
+ "name": "SbbButtonLikeBaseElement",
107411
+ "module": "core/base-elements/button-base-element.js"
107387
107412
  }
107388
107413
  },
107389
107414
  {
@@ -107402,6 +107427,50 @@
107402
107427
  "module": "core/mixins/disabled-mixin.js"
107403
107428
  }
107404
107429
  },
107430
+ {
107431
+ "kind": "field",
107432
+ "name": "disabled",
107433
+ "privacy": "public",
107434
+ "description": "Whether the component is disabled.",
107435
+ "default": "false",
107436
+ "type": {
107437
+ "text": "boolean"
107438
+ },
107439
+ "attribute": "disabled",
107440
+ "reflects": true,
107441
+ "inheritedFrom": {
107442
+ "name": "SbbDisabledMixin",
107443
+ "module": "core/mixins/disabled-mixin.js"
107444
+ }
107445
+ },
107446
+ {
107447
+ "kind": "field",
107448
+ "name": "#disabled",
107449
+ "privacy": "private",
107450
+ "type": {
107451
+ "text": "boolean"
107452
+ },
107453
+ "default": "false",
107454
+ "inheritedFrom": {
107455
+ "name": "SbbDisabledMixin",
107456
+ "module": "core/mixins/disabled-mixin.js"
107457
+ }
107458
+ },
107459
+ {
107460
+ "kind": "method",
107461
+ "name": "isDisabledExternally",
107462
+ "privacy": "protected",
107463
+ "return": {
107464
+ "type": {
107465
+ "text": "boolean"
107466
+ }
107467
+ },
107468
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
107469
+ "inheritedFrom": {
107470
+ "name": "SbbDisabledMixin",
107471
+ "module": "core/mixins/disabled-mixin.js"
107472
+ }
107473
+ },
107405
107474
  {
107406
107475
  "kind": "field",
107407
107476
  "name": "styles",
@@ -107499,276 +107568,308 @@
107499
107568
  },
107500
107569
  {
107501
107570
  "kind": "field",
107502
- "name": "disabled",
107503
- "privacy": "public",
107504
- "description": "Whether the component is disabled.",
107505
- "default": "false",
107571
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
107506
107572
  "type": {
107507
- "text": "boolean"
107573
+ "text": "array"
107508
107574
  },
107509
- "attribute": "disabled",
107510
- "reflects": true,
107575
+ "privacy": "private",
107576
+ "readonly": true,
107577
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
107511
107578
  "inheritedFrom": {
107512
- "name": "SbbDisabledMixin",
107513
- "module": "core/mixins/disabled-mixin.js"
107579
+ "name": "SbbButtonBaseElement",
107580
+ "module": "core/base-elements/button-base-element.js"
107514
107581
  }
107515
107582
  },
107516
107583
  {
107517
107584
  "kind": "field",
107518
- "name": "#disabled",
107519
- "privacy": "private",
107585
+ "name": "value",
107520
107586
  "type": {
107521
- "text": "boolean"
107587
+ "text": "string"
107522
107588
  },
107523
- "default": "false",
107589
+ "privacy": "public",
107524
107590
  "inheritedFrom": {
107525
- "name": "SbbDisabledMixin",
107526
- "module": "core/mixins/disabled-mixin.js"
107527
- }
107591
+ "name": "SbbButtonBaseElement",
107592
+ "module": "core/base-elements/button-base-element.js"
107593
+ },
107594
+ "default": "''",
107595
+ "description": "Value of the form element.",
107596
+ "attribute": "value"
107528
107597
  },
107529
107598
  {
107530
- "kind": "method",
107531
- "name": "isDisabledExternally",
107532
- "privacy": "protected",
107533
- "return": {
107534
- "type": {
107535
- "text": "boolean"
107536
- }
107599
+ "kind": "field",
107600
+ "name": "type",
107601
+ "privacy": "public",
107602
+ "description": "The type attribute to use for the button.",
107603
+ "default": "'button'",
107604
+ "type": {
107605
+ "text": "SbbButtonType"
107537
107606
  },
107538
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
107607
+ "attribute": "type",
107539
107608
  "inheritedFrom": {
107540
- "name": "SbbDisabledMixin",
107541
- "module": "core/mixins/disabled-mixin.js"
107609
+ "name": "SbbButtonBaseElement",
107610
+ "module": "core/base-elements/button-base-element.js"
107542
107611
  }
107543
107612
  },
107544
107613
  {
107545
107614
  "kind": "field",
107546
- "name": "href",
107615
+ "name": "form",
107547
107616
  "type": {
107548
- "text": "string"
107617
+ "text": "HTMLFormElement | null"
107549
107618
  },
107550
107619
  "privacy": "public",
107551
- "default": "''",
107552
- "description": "The href value you want to link to.",
107553
- "attribute": "href",
107554
- "reflects": true,
107620
+ "description": "The `<form>` element to associate the button with.",
107555
107621
  "inheritedFrom": {
107556
- "name": "SbbLinkBaseElement",
107557
- "module": "core/base-elements/link-base-element.js"
107558
- }
107622
+ "name": "SbbButtonBaseElement",
107623
+ "module": "core/base-elements/button-base-element.js"
107624
+ },
107625
+ "attribute": "form"
107559
107626
  },
107560
107627
  {
107561
107628
  "kind": "field",
107562
- "name": "target",
107629
+ "name": "_formId",
107563
107630
  "type": {
107564
- "text": "LinkTargetType | string"
107631
+ "text": "string"
107565
107632
  },
107566
- "privacy": "public",
107633
+ "privacy": "private",
107567
107634
  "default": "''",
107568
- "description": "Where to display the linked URL.",
107569
- "attribute": "target",
107570
- "reflects": true,
107571
107635
  "inheritedFrom": {
107572
- "name": "SbbLinkBaseElement",
107573
- "module": "core/base-elements/link-base-element.js"
107636
+ "name": "SbbButtonBaseElement",
107637
+ "module": "core/base-elements/button-base-element.js"
107574
107638
  }
107575
107639
  },
107576
107640
  {
107577
107641
  "kind": "field",
107578
- "name": "rel",
107579
- "type": {
107580
- "text": "string"
107642
+ "name": "_handleButtonClick",
107643
+ "privacy": "private",
107644
+ "inheritedFrom": {
107645
+ "name": "SbbButtonBaseElement",
107646
+ "module": "core/base-elements/button-base-element.js"
107647
+ }
107648
+ },
107649
+ {
107650
+ "kind": "method",
107651
+ "name": "_requestSubmit",
107652
+ "privacy": "private",
107653
+ "return": {
107654
+ "type": {
107655
+ "text": "void"
107656
+ }
107581
107657
  },
107582
- "privacy": "public",
107583
- "default": "''",
107584
- "description": "The relationship of the linked URL as space-separated link types.",
107585
- "attribute": "rel",
107586
- "reflects": true,
107658
+ "parameters": [
107659
+ {
107660
+ "name": "form",
107661
+ "type": {
107662
+ "text": "HTMLFormElement"
107663
+ }
107664
+ }
107665
+ ],
107587
107666
  "inheritedFrom": {
107588
- "name": "SbbLinkBaseElement",
107589
- "module": "core/base-elements/link-base-element.js"
107667
+ "name": "SbbButtonBaseElement",
107668
+ "module": "core/base-elements/button-base-element.js"
107590
107669
  }
107591
107670
  },
107592
107671
  {
107593
107672
  "kind": "field",
107594
- "name": "download",
107673
+ "name": "_formKeyDown",
107674
+ "privacy": "private",
107675
+ "inheritedFrom": {
107676
+ "name": "SbbButtonBaseElement",
107677
+ "module": "core/base-elements/button-base-element.js"
107678
+ }
107679
+ },
107680
+ {
107681
+ "kind": "field",
107682
+ "name": "formAssociated",
107595
107683
  "type": {
107596
107684
  "text": "boolean"
107597
107685
  },
107598
107686
  "privacy": "public",
107599
- "default": "false",
107600
- "description": "Whether the browser will show the download dialog on click.",
107601
- "attribute": "download",
107602
- "reflects": true,
107687
+ "static": true,
107688
+ "default": "true",
107603
107689
  "inheritedFrom": {
107604
- "name": "SbbLinkBaseElement",
107605
- "module": "core/base-elements/link-base-element.js"
107690
+ "name": "SbbFormAssociatedMixin",
107691
+ "module": "core/mixins/form-associated-mixin.js"
107606
107692
  }
107607
107693
  },
107608
107694
  {
107609
107695
  "kind": "field",
107610
- "name": "accessibilityLabel",
107696
+ "name": "name",
107697
+ "privacy": "public",
107698
+ "description": "Name of the form element. Will be read from name attribute.",
107611
107699
  "type": {
107612
107700
  "text": "string"
107613
107701
  },
107614
- "privacy": "public",
107615
- "default": "''",
107616
- "description": "This will be forwarded as aria-label to the inner anchor element.",
107617
- "attribute": "accessibility-label",
107702
+ "attribute": "name",
107618
107703
  "inheritedFrom": {
107619
- "name": "SbbLinkBaseElement",
107620
- "module": "core/base-elements/link-base-element.js"
107704
+ "name": "SbbFormAssociatedMixin",
107705
+ "module": "core/mixins/form-associated-mixin.js"
107621
107706
  }
107622
107707
  },
107623
107708
  {
107624
107709
  "kind": "field",
107625
- "name": "accessibilityCurrent",
107710
+ "name": "validity",
107626
107711
  "type": {
107627
- "text": "string"
107712
+ "text": "ValidityState"
107628
107713
  },
107629
107714
  "privacy": "public",
107630
- "default": "''",
107631
- "description": "This will be forwarded as aria-current to the inner anchor element.",
107632
- "attribute": "accessibility-current",
107715
+ "description": "Returns the ValidityState object for this element.",
107716
+ "readonly": true,
107633
107717
  "inheritedFrom": {
107634
- "name": "SbbLinkBaseElement",
107635
- "module": "core/base-elements/link-base-element.js"
107718
+ "name": "SbbFormAssociatedMixin",
107719
+ "module": "core/mixins/form-associated-mixin.js"
107636
107720
  }
107637
107721
  },
107638
107722
  {
107639
107723
  "kind": "field",
107640
- "name": "language",
107641
- "privacy": "protected",
107642
- "default": "new SbbLanguageController(this)",
107724
+ "name": "validationMessage",
107725
+ "type": {
107726
+ "text": "string"
107727
+ },
107728
+ "privacy": "public",
107729
+ "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.",
107730
+ "readonly": true,
107643
107731
  "inheritedFrom": {
107644
- "name": "SbbLinkBaseElement",
107645
- "module": "core/base-elements/link-base-element.js"
107732
+ "name": "SbbFormAssociatedMixin",
107733
+ "module": "core/mixins/form-associated-mixin.js"
107646
107734
  }
107647
107735
  },
107648
107736
  {
107649
107737
  "kind": "field",
107650
- "name": "_evaluateRelAttribute",
107651
- "privacy": "private",
107738
+ "name": "willValidate",
107739
+ "type": {
107740
+ "text": "boolean"
107741
+ },
107742
+ "privacy": "public",
107743
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
107744
+ "readonly": true,
107652
107745
  "inheritedFrom": {
107653
- "name": "SbbLinkBaseElement",
107654
- "module": "core/base-elements/link-base-element.js"
107746
+ "name": "SbbFormAssociatedMixin",
107747
+ "module": "core/mixins/form-associated-mixin.js"
107655
107748
  }
107656
107749
  },
107657
107750
  {
107658
- "kind": "method",
107659
- "name": "renderLink",
107660
- "privacy": "protected",
107661
- "return": {
107662
- "type": {
107663
- "text": "TemplateResult"
107664
- }
107665
- },
107666
- "parameters": [
107667
- {
107668
- "name": "renderContent",
107669
- "type": {
107670
- "text": "TemplateResult"
107671
- }
107672
- }
107673
- ],
107751
+ "kind": "field",
107752
+ "name": "_validityStates",
107753
+ "privacy": "private",
107754
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
107674
107755
  "inheritedFrom": {
107675
- "name": "SbbLinkBaseElement",
107676
- "module": "core/base-elements/link-base-element.js"
107756
+ "name": "SbbFormAssociatedMixin",
107757
+ "module": "core/mixins/form-associated-mixin.js"
107677
107758
  }
107678
107759
  },
107679
107760
  {
107680
107761
  "kind": "field",
107681
- "name": "maybeDisabled",
107762
+ "name": "formDisabled",
107682
107763
  "type": {
107683
- "text": "boolean | undefined"
107764
+ "text": "boolean"
107684
107765
  },
107685
107766
  "privacy": "protected",
107686
- "readonly": true,
107767
+ "default": "false",
107768
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
107687
107769
  "inheritedFrom": {
107688
- "name": "SbbActionBaseElement",
107689
- "module": "core/base-elements/action-base-element.js"
107770
+ "name": "SbbFormAssociatedMixin",
107771
+ "module": "core/mixins/form-associated-mixin.js"
107690
107772
  }
107691
107773
  },
107692
107774
  {
107693
- "kind": "field",
107694
- "name": "maybeDisabledInteractive",
107695
- "type": {
107696
- "text": "boolean | undefined"
107775
+ "kind": "method",
107776
+ "name": "checkValidity",
107777
+ "privacy": "public",
107778
+ "return": {
107779
+ "type": {
107780
+ "text": "boolean"
107781
+ }
107697
107782
  },
107698
- "privacy": "protected",
107699
- "readonly": true,
107783
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
107700
107784
  "inheritedFrom": {
107701
- "name": "SbbActionBaseElement",
107702
- "module": "core/base-elements/action-base-element.js"
107785
+ "name": "SbbFormAssociatedMixin",
107786
+ "module": "core/mixins/form-associated-mixin.js"
107703
107787
  }
107704
107788
  },
107705
107789
  {
107706
107790
  "kind": "method",
107707
- "name": "setupBaseEventHandlers",
107708
- "privacy": "protected",
107791
+ "name": "reportValidity",
107792
+ "privacy": "public",
107709
107793
  "return": {
107710
107794
  "type": {
107711
- "text": "void"
107795
+ "text": "boolean"
107712
107796
  }
107713
107797
  },
107798
+ "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.",
107714
107799
  "inheritedFrom": {
107715
- "name": "SbbActionBaseElement",
107716
- "module": "core/base-elements/action-base-element.js"
107800
+ "name": "SbbFormAssociatedMixin",
107801
+ "module": "core/mixins/form-associated-mixin.js"
107717
107802
  }
107718
107803
  },
107719
107804
  {
107720
- "kind": "field",
107721
- "name": "_hydrationRequired",
107722
- "type": {
107723
- "text": "boolean"
107805
+ "kind": "method",
107806
+ "name": "setCustomValidity",
107807
+ "privacy": "public",
107808
+ "return": {
107809
+ "type": {
107810
+ "text": "void"
107811
+ }
107724
107812
  },
107725
- "privacy": "private",
107726
- "default": "!!this.shadowRoot",
107813
+ "parameters": [
107814
+ {
107815
+ "name": "message",
107816
+ "type": {
107817
+ "text": "string"
107818
+ }
107819
+ }
107820
+ ],
107821
+ "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.",
107727
107822
  "inheritedFrom": {
107728
- "name": "SbbElement",
107729
- "module": "core/base-elements/element.js"
107823
+ "name": "SbbFormAssociatedMixin",
107824
+ "module": "core/mixins/form-associated-mixin.js"
107730
107825
  }
107731
107826
  },
107732
107827
  {
107733
- "kind": "field",
107734
- "name": "_hydrationComplete",
107828
+ "kind": "method",
107829
+ "name": "_hasDisabledAncestor",
107735
107830
  "privacy": "private",
107736
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
107831
+ "return": {
107832
+ "type": {
107833
+ "text": "boolean"
107834
+ }
107835
+ },
107737
107836
  "inheritedFrom": {
107738
- "name": "SbbElement",
107739
- "module": "core/base-elements/element.js"
107837
+ "name": "SbbFormAssociatedMixin",
107838
+ "module": "core/mixins/form-associated-mixin.js"
107740
107839
  }
107741
107840
  },
107742
107841
  {
107743
- "kind": "field",
107744
- "name": "_resolveHydration",
107745
- "type": {
107746
- "text": "(hydrationRequired: boolean) => void"
107842
+ "kind": "method",
107843
+ "name": "updateFormValue",
107844
+ "privacy": "protected",
107845
+ "return": {
107846
+ "type": {
107847
+ "text": "void"
107848
+ }
107747
107849
  },
107748
- "privacy": "private",
107850
+ "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",
107749
107851
  "inheritedFrom": {
107750
- "name": "SbbElement",
107751
- "module": "core/base-elements/element.js"
107852
+ "name": "SbbFormAssociatedMixin",
107853
+ "module": "core/mixins/form-associated-mixin.js"
107752
107854
  }
107753
107855
  },
107754
107856
  {
107755
- "kind": "field",
107756
- "name": "hydrationRequired",
107757
- "type": {
107758
- "text": "boolean"
107759
- },
107857
+ "kind": "method",
107858
+ "name": "formState",
107760
107859
  "privacy": "protected",
107761
- "description": "Returns whether hydration is required and not completed.",
107762
- "readonly": true,
107763
- "inheritedFrom": {
107764
- "name": "SbbElement",
107765
- "module": "core/base-elements/element.js"
107860
+ "return": {
107861
+ "type": {
107862
+ "text": "FormRestoreState"
107863
+ }
107766
107864
  },
107767
- "default": "!!this.shadowRoot"
107865
+ "inheritedFrom": {
107866
+ "name": "SbbFormAssociatedMixin",
107867
+ "module": "core/mixins/form-associated-mixin.js"
107868
+ }
107768
107869
  },
107769
107870
  {
107770
107871
  "kind": "method",
107771
- "name": "toggleState",
107872
+ "name": "setValidityFlag",
107772
107873
  "privacy": "protected",
107773
107874
  "return": {
107774
107875
  "type": {
@@ -107777,54 +107878,305 @@
107777
107878
  },
107778
107879
  "parameters": [
107779
107880
  {
107780
- "name": "value",
107881
+ "name": "flag",
107882
+ "type": {
107883
+ "text": "T"
107884
+ }
107885
+ },
107886
+ {
107887
+ "name": "message",
107781
107888
  "type": {
107782
107889
  "text": "string"
107783
107890
  }
107784
107891
  },
107785
107892
  {
107786
- "name": "force",
107893
+ "name": "flagValue",
107787
107894
  "optional": true,
107788
107895
  "type": {
107789
- "text": "boolean"
107896
+ "text": "ValidityStateFlags[T]"
107790
107897
  }
107791
107898
  }
107792
107899
  ],
107900
+ "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).",
107793
107901
  "inheritedFrom": {
107794
- "name": "SbbElement",
107795
- "module": "core/base-elements/element.js"
107902
+ "name": "SbbFormAssociatedMixin",
107903
+ "module": "core/mixins/form-associated-mixin.js"
107796
107904
  }
107797
107905
  },
107798
107906
  {
107799
- "kind": "field",
107800
- "name": "['_$sbbElement$']",
107801
- "type": {
107802
- "text": "boolean"
107907
+ "kind": "method",
107908
+ "name": "removeValidityFlag",
107909
+ "privacy": "protected",
107910
+ "return": {
107911
+ "type": {
107912
+ "text": "void"
107913
+ }
107803
107914
  },
107804
- "privacy": "public",
107805
- "static": true,
107806
- "default": "true",
107915
+ "parameters": [
107916
+ {
107917
+ "name": "flag",
107918
+ "type": {
107919
+ "text": "T"
107920
+ }
107921
+ }
107922
+ ],
107923
+ "description": "Removes the validity state flag entry and updates validity state.",
107807
107924
  "inheritedFrom": {
107808
- "name": "SbbElement",
107809
- "module": "core/base-elements/element.js"
107925
+ "name": "SbbFormAssociatedMixin",
107926
+ "module": "core/mixins/form-associated-mixin.js"
107810
107927
  }
107811
107928
  },
107812
107929
  {
107813
- "kind": "field",
107814
- "name": "_controllers",
107815
- "type": {
107816
- "text": "Set<SbbReactiveController> | undefined"
107817
- },
107818
- "privacy": "private",
107819
- "inheritedFrom": {
107820
- "name": "SbbElement",
107930
+ "kind": "method",
107931
+ "name": "validate",
107932
+ "privacy": "protected",
107933
+ "return": {
107934
+ "type": {
107935
+ "text": "void"
107936
+ }
107937
+ },
107938
+ "description": "To be called whenever the current element needs to be validated.",
107939
+ "inheritedFrom": {
107940
+ "name": "SbbFormAssociatedMixin",
107941
+ "module": "core/mixins/form-associated-mixin.js"
107942
+ }
107943
+ },
107944
+ {
107945
+ "kind": "method",
107946
+ "name": "shouldValidate",
107947
+ "privacy": "protected",
107948
+ "return": {
107949
+ "type": {
107950
+ "text": "boolean"
107951
+ }
107952
+ },
107953
+ "parameters": [
107954
+ {
107955
+ "name": "name",
107956
+ "type": {
107957
+ "text": "PropertyKey | undefined"
107958
+ }
107959
+ }
107960
+ ],
107961
+ "description": "Whether validation should be run on a property change with the given name.",
107962
+ "inheritedFrom": {
107963
+ "name": "SbbFormAssociatedMixin",
107964
+ "module": "core/mixins/form-associated-mixin.js"
107965
+ }
107966
+ },
107967
+ {
107968
+ "kind": "method",
107969
+ "name": "_setInternalValidity",
107970
+ "privacy": "private",
107971
+ "return": {
107972
+ "type": {
107973
+ "text": "void"
107974
+ }
107975
+ },
107976
+ "inheritedFrom": {
107977
+ "name": "SbbFormAssociatedMixin",
107978
+ "module": "core/mixins/form-associated-mixin.js"
107979
+ }
107980
+ },
107981
+ {
107982
+ "kind": "field",
107983
+ "name": "_preventScrollOnSpaceKeydown",
107984
+ "privacy": "private",
107985
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
107986
+ "parameters": [
107987
+ {
107988
+ "description": "The origin event.",
107989
+ "name": "event"
107990
+ }
107991
+ ],
107992
+ "inheritedFrom": {
107993
+ "name": "SbbButtonLikeBaseElement",
107994
+ "module": "core/base-elements/button-base-element.js"
107995
+ }
107996
+ },
107997
+ {
107998
+ "kind": "field",
107999
+ "name": "_removeActiveMarker",
108000
+ "privacy": "private",
108001
+ "inheritedFrom": {
108002
+ "name": "SbbButtonLikeBaseElement",
108003
+ "module": "core/base-elements/button-base-element.js"
108004
+ }
108005
+ },
108006
+ {
108007
+ "kind": "field",
108008
+ "name": "_dispatchClickEventOnSpaceKeyup",
108009
+ "privacy": "private",
108010
+ "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.",
108011
+ "parameters": [
108012
+ {
108013
+ "description": "The origin event.",
108014
+ "name": "event"
108015
+ }
108016
+ ],
108017
+ "inheritedFrom": {
108018
+ "name": "SbbButtonLikeBaseElement",
108019
+ "module": "core/base-elements/button-base-element.js"
108020
+ }
108021
+ },
108022
+ {
108023
+ "kind": "field",
108024
+ "name": "_dispatchClickEvent",
108025
+ "privacy": "private",
108026
+ "inheritedFrom": {
108027
+ "name": "SbbButtonLikeBaseElement",
108028
+ "module": "core/base-elements/button-base-element.js"
108029
+ }
108030
+ },
108031
+ {
108032
+ "kind": "field",
108033
+ "name": "maybeDisabled",
108034
+ "type": {
108035
+ "text": "boolean | undefined"
108036
+ },
108037
+ "privacy": "protected",
108038
+ "readonly": true,
108039
+ "inheritedFrom": {
108040
+ "name": "SbbActionBaseElement",
108041
+ "module": "core/base-elements/action-base-element.js"
108042
+ }
108043
+ },
108044
+ {
108045
+ "kind": "field",
108046
+ "name": "maybeDisabledInteractive",
108047
+ "type": {
108048
+ "text": "boolean | undefined"
108049
+ },
108050
+ "privacy": "protected",
108051
+ "readonly": true,
108052
+ "inheritedFrom": {
108053
+ "name": "SbbActionBaseElement",
108054
+ "module": "core/base-elements/action-base-element.js"
108055
+ }
108056
+ },
108057
+ {
108058
+ "kind": "method",
108059
+ "name": "setupBaseEventHandlers",
108060
+ "privacy": "protected",
108061
+ "return": {
108062
+ "type": {
108063
+ "text": "void"
108064
+ }
108065
+ },
108066
+ "inheritedFrom": {
108067
+ "name": "SbbActionBaseElement",
108068
+ "module": "core/base-elements/action-base-element.js"
108069
+ }
108070
+ },
108071
+ {
108072
+ "kind": "field",
108073
+ "name": "_hydrationRequired",
108074
+ "type": {
108075
+ "text": "boolean"
108076
+ },
108077
+ "privacy": "private",
108078
+ "default": "!!this.shadowRoot",
108079
+ "inheritedFrom": {
108080
+ "name": "SbbElement",
108081
+ "module": "core/base-elements/element.js"
108082
+ }
108083
+ },
108084
+ {
108085
+ "kind": "field",
108086
+ "name": "_hydrationComplete",
108087
+ "privacy": "private",
108088
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
108089
+ "inheritedFrom": {
108090
+ "name": "SbbElement",
108091
+ "module": "core/base-elements/element.js"
108092
+ }
108093
+ },
108094
+ {
108095
+ "kind": "field",
108096
+ "name": "_resolveHydration",
108097
+ "type": {
108098
+ "text": "(hydrationRequired: boolean) => void"
108099
+ },
108100
+ "privacy": "private",
108101
+ "inheritedFrom": {
108102
+ "name": "SbbElement",
108103
+ "module": "core/base-elements/element.js"
108104
+ }
108105
+ },
108106
+ {
108107
+ "kind": "field",
108108
+ "name": "hydrationRequired",
108109
+ "type": {
108110
+ "text": "boolean"
108111
+ },
108112
+ "privacy": "protected",
108113
+ "description": "Returns whether hydration is required and not completed.",
108114
+ "readonly": true,
108115
+ "inheritedFrom": {
108116
+ "name": "SbbElement",
108117
+ "module": "core/base-elements/element.js"
108118
+ },
108119
+ "default": "!!this.shadowRoot"
108120
+ },
108121
+ {
108122
+ "kind": "method",
108123
+ "name": "toggleState",
108124
+ "privacy": "protected",
108125
+ "return": {
108126
+ "type": {
108127
+ "text": "void"
108128
+ }
108129
+ },
108130
+ "parameters": [
108131
+ {
108132
+ "name": "value",
108133
+ "type": {
108134
+ "text": "string"
108135
+ }
108136
+ },
108137
+ {
108138
+ "name": "force",
108139
+ "optional": true,
108140
+ "type": {
108141
+ "text": "boolean"
108142
+ }
108143
+ }
108144
+ ],
108145
+ "inheritedFrom": {
108146
+ "name": "SbbElement",
108147
+ "module": "core/base-elements/element.js"
108148
+ }
108149
+ },
108150
+ {
108151
+ "kind": "field",
108152
+ "name": "['_$sbbElement$']",
108153
+ "type": {
108154
+ "text": "boolean"
108155
+ },
108156
+ "privacy": "public",
108157
+ "static": true,
108158
+ "default": "true",
108159
+ "inheritedFrom": {
108160
+ "name": "SbbElement",
108161
+ "module": "core/base-elements/element.js"
108162
+ }
108163
+ },
108164
+ {
108165
+ "kind": "field",
108166
+ "name": "_controllers",
108167
+ "type": {
108168
+ "text": "Set<SbbReactiveController> | undefined"
108169
+ },
108170
+ "privacy": "private",
108171
+ "inheritedFrom": {
108172
+ "name": "SbbElement",
107821
108173
  "module": "core/base-elements/element.js"
107822
108174
  }
107823
108175
  }
107824
108176
  ],
107825
108177
  "mixins": [
107826
108178
  {
107827
- "name": "SbbDisabledInteractiveMixin",
108179
+ "name": "SbbDisabledTabIndexActionMixin",
107828
108180
  "module": "core/mixins.js"
107829
108181
  },
107830
108182
  {
@@ -107833,10 +108185,10 @@
107833
108185
  }
107834
108186
  ],
107835
108187
  "superclass": {
107836
- "name": "SbbLinkBaseElement",
108188
+ "name": "SbbButtonBaseElement",
107837
108189
  "module": "core/base-elements.js"
107838
108190
  },
107839
- "tagName": "sbb-menu-link",
108191
+ "tagName": "sbb-menu-button",
107840
108192
  "customElement": true,
107841
108193
  "attributes": [
107842
108194
  {
@@ -107852,19 +108204,6 @@
107852
108204
  "module": "core/mixins/disabled-mixin.js"
107853
108205
  }
107854
108206
  },
107855
- {
107856
- "name": "icon-name",
107857
- "type": {
107858
- "text": "string"
107859
- },
107860
- "default": "''",
107861
- "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.",
107862
- "fieldName": "iconName",
107863
- "inheritedFrom": {
107864
- "name": "SbbIconNameMixin",
107865
- "module": "icon/icon-name-mixin.js"
107866
- }
107867
- },
107868
108207
  {
107869
108208
  "name": "disabled",
107870
108209
  "description": "Whether the component is disabled.",
@@ -107879,81 +108218,66 @@
107879
108218
  }
107880
108219
  },
107881
108220
  {
107882
- "name": "href",
108221
+ "name": "icon-name",
107883
108222
  "type": {
107884
108223
  "text": "string"
107885
108224
  },
107886
108225
  "default": "''",
107887
- "description": "The href value you want to link to.",
107888
- "fieldName": "href",
107889
- "inheritedFrom": {
107890
- "name": "SbbLinkBaseElement",
107891
- "module": "core/base-elements/link-base-element.js"
107892
- }
107893
- },
107894
- {
107895
- "name": "target",
107896
- "type": {
107897
- "text": "LinkTargetType | string"
107898
- },
107899
- "default": "''",
107900
- "description": "Where to display the linked URL.",
107901
- "fieldName": "target",
108226
+ "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.",
108227
+ "fieldName": "iconName",
107902
108228
  "inheritedFrom": {
107903
- "name": "SbbLinkBaseElement",
107904
- "module": "core/base-elements/link-base-element.js"
108229
+ "name": "SbbIconNameMixin",
108230
+ "module": "icon/icon-name-mixin.js"
107905
108231
  }
107906
108232
  },
107907
108233
  {
107908
- "name": "rel",
108234
+ "name": "value",
107909
108235
  "type": {
107910
108236
  "text": "string"
107911
108237
  },
107912
108238
  "default": "''",
107913
- "description": "The relationship of the linked URL as space-separated link types.",
107914
- "fieldName": "rel",
108239
+ "description": "Value of the form element.",
108240
+ "fieldName": "value",
107915
108241
  "inheritedFrom": {
107916
- "name": "SbbLinkBaseElement",
107917
- "module": "core/base-elements/link-base-element.js"
108242
+ "name": "SbbButtonBaseElement",
108243
+ "module": "core/base-elements/button-base-element.js"
107918
108244
  }
107919
108245
  },
107920
108246
  {
107921
- "name": "download",
108247
+ "name": "type",
108248
+ "description": "The type attribute to use for the button.",
108249
+ "default": "'button'",
107922
108250
  "type": {
107923
- "text": "boolean"
108251
+ "text": "SbbButtonType"
107924
108252
  },
107925
- "default": "false",
107926
- "description": "Whether the browser will show the download dialog on click.",
107927
- "fieldName": "download",
108253
+ "fieldName": "type",
107928
108254
  "inheritedFrom": {
107929
- "name": "SbbLinkBaseElement",
107930
- "module": "core/base-elements/link-base-element.js"
108255
+ "name": "SbbButtonBaseElement",
108256
+ "module": "core/base-elements/button-base-element.js"
107931
108257
  }
107932
108258
  },
107933
108259
  {
107934
- "name": "accessibility-label",
108260
+ "name": "form",
108261
+ "description": "The `<form>` element to associate the button with.",
107935
108262
  "type": {
107936
- "text": "string"
108263
+ "text": "HTMLFormElement | null"
107937
108264
  },
107938
- "default": "''",
107939
- "description": "This will be forwarded as aria-label to the inner anchor element.",
107940
- "fieldName": "accessibilityLabel",
108265
+ "fieldName": "form",
107941
108266
  "inheritedFrom": {
107942
- "name": "SbbLinkBaseElement",
107943
- "module": "core/base-elements/link-base-element.js"
108267
+ "name": "SbbButtonBaseElement",
108268
+ "module": "core/base-elements/button-base-element.js"
107944
108269
  }
107945
108270
  },
107946
108271
  {
107947
- "name": "accessibility-current",
108272
+ "name": "name",
108273
+ "description": "Name of the form element. Will be read from name attribute.",
107948
108274
  "type": {
107949
108275
  "text": "string"
107950
108276
  },
107951
- "default": "''",
107952
- "description": "This will be forwarded as aria-current to the inner anchor element.",
107953
- "fieldName": "accessibilityCurrent",
108277
+ "fieldName": "name",
107954
108278
  "inheritedFrom": {
107955
- "name": "SbbLinkBaseElement",
107956
- "module": "core/base-elements/link-base-element.js"
108279
+ "name": "SbbFormAssociatedMixin",
108280
+ "module": "core/mixins/form-associated-mixin.js"
107957
108281
  }
107958
108282
  }
107959
108283
  ]
@@ -107962,22 +108286,22 @@
107962
108286
  "exports": [
107963
108287
  {
107964
108288
  "kind": "js",
107965
- "name": "SbbMenuLinkElement",
108289
+ "name": "SbbMenuButtonElement",
107966
108290
  "declaration": {
107967
- "name": "SbbMenuLinkElement",
107968
- "module": "menu/menu-link/menu-link.component.js"
108291
+ "name": "SbbMenuButtonElement",
108292
+ "module": "menu/menu-button/menu-button.component.js"
107969
108293
  }
107970
108294
  }
107971
108295
  ]
107972
108296
  },
107973
108297
  {
107974
108298
  "kind": "javascript-module",
107975
- "path": "menu/menu-button/menu-button.component.js",
108299
+ "path": "menu/menu-link/menu-link.component.js",
107976
108300
  "declarations": [
107977
108301
  {
107978
108302
  "kind": "class",
107979
- "description": "It displays a button element that can be used in the `sbb-menu` component.",
107980
- "name": "SbbMenuButtonElement",
108303
+ "description": "It displays a link element that can be used in the `sbb-menu` component.",
108304
+ "name": "SbbMenuLinkElement",
107981
108305
  "cssProperties": [
107982
108306
  {
107983
108307
  "description": "Can be used to modify horizontal padding.",
@@ -107987,7 +108311,7 @@
107987
108311
  ],
107988
108312
  "slots": [
107989
108313
  {
107990
- "description": "Use the unnamed slot to add content to the `sbb-menu-button`.",
108314
+ "description": "Use the unnamed slot to add content to the `sbb-menu-link`.",
107991
108315
  "name": ""
107992
108316
  },
107993
108317
  {
@@ -108009,21 +108333,20 @@
108009
108333
  "name": "SbbElement",
108010
108334
  "module": "core/base-elements/element.js"
108011
108335
  },
108012
- "default": "'sbb-menu-button'"
108336
+ "default": "'sbb-menu-link'"
108013
108337
  },
108014
108338
  {
108015
108339
  "kind": "field",
108016
- "name": "role",
108340
+ "name": "anchorRole",
108017
108341
  "type": {
108018
- "text": "ElementInternals['role']"
108342
+ "text": "string"
108019
108343
  },
108020
- "privacy": "public",
108021
- "static": true,
108344
+ "privacy": "protected",
108022
108345
  "readonly": true,
108023
108346
  "default": "'menuitem'",
108024
108347
  "inheritedFrom": {
108025
- "name": "SbbButtonLikeBaseElement",
108026
- "module": "core/base-elements/button-base-element.js"
108348
+ "name": "SbbLinkBaseElement",
108349
+ "module": "core/base-elements/link-base-element.js"
108027
108350
  }
108028
108351
  },
108029
108352
  {
@@ -108042,50 +108365,6 @@
108042
108365
  "module": "core/mixins/disabled-mixin.js"
108043
108366
  }
108044
108367
  },
108045
- {
108046
- "kind": "field",
108047
- "name": "disabled",
108048
- "privacy": "public",
108049
- "description": "Whether the component is disabled.",
108050
- "default": "false",
108051
- "type": {
108052
- "text": "boolean"
108053
- },
108054
- "attribute": "disabled",
108055
- "reflects": true,
108056
- "inheritedFrom": {
108057
- "name": "SbbDisabledMixin",
108058
- "module": "core/mixins/disabled-mixin.js"
108059
- }
108060
- },
108061
- {
108062
- "kind": "field",
108063
- "name": "#disabled",
108064
- "privacy": "private",
108065
- "type": {
108066
- "text": "boolean"
108067
- },
108068
- "default": "false",
108069
- "inheritedFrom": {
108070
- "name": "SbbDisabledMixin",
108071
- "module": "core/mixins/disabled-mixin.js"
108072
- }
108073
- },
108074
- {
108075
- "kind": "method",
108076
- "name": "isDisabledExternally",
108077
- "privacy": "protected",
108078
- "return": {
108079
- "type": {
108080
- "text": "boolean"
108081
- }
108082
- },
108083
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
108084
- "inheritedFrom": {
108085
- "name": "SbbDisabledMixin",
108086
- "module": "core/mixins/disabled-mixin.js"
108087
- }
108088
- },
108089
108368
  {
108090
108369
  "kind": "field",
108091
108370
  "name": "styles",
@@ -108183,464 +108462,181 @@
108183
108462
  },
108184
108463
  {
108185
108464
  "kind": "field",
108186
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
108187
- "type": {
108188
- "text": "array"
108189
- },
108190
- "privacy": "private",
108191
- "readonly": true,
108192
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
108193
- "inheritedFrom": {
108194
- "name": "SbbButtonBaseElement",
108195
- "module": "core/base-elements/button-base-element.js"
108196
- }
108197
- },
108198
- {
108199
- "kind": "field",
108200
- "name": "value",
108201
- "type": {
108202
- "text": "string"
108203
- },
108204
- "privacy": "public",
108205
- "inheritedFrom": {
108206
- "name": "SbbButtonBaseElement",
108207
- "module": "core/base-elements/button-base-element.js"
108208
- },
108209
- "default": "''",
108210
- "description": "Value of the form element.",
108211
- "attribute": "value"
108212
- },
108213
- {
108214
- "kind": "field",
108215
- "name": "type",
108465
+ "name": "disabled",
108216
108466
  "privacy": "public",
108217
- "description": "The type attribute to use for the button.",
108218
- "default": "'button'",
108467
+ "description": "Whether the component is disabled.",
108468
+ "default": "false",
108219
108469
  "type": {
108220
- "text": "SbbButtonType"
108470
+ "text": "boolean"
108221
108471
  },
108222
- "attribute": "type",
108472
+ "attribute": "disabled",
108473
+ "reflects": true,
108223
108474
  "inheritedFrom": {
108224
- "name": "SbbButtonBaseElement",
108225
- "module": "core/base-elements/button-base-element.js"
108475
+ "name": "SbbDisabledMixin",
108476
+ "module": "core/mixins/disabled-mixin.js"
108226
108477
  }
108227
108478
  },
108228
108479
  {
108229
108480
  "kind": "field",
108230
- "name": "form",
108231
- "type": {
108232
- "text": "HTMLFormElement | null"
108233
- },
108234
- "privacy": "public",
108235
- "description": "The `<form>` element to associate the button with.",
108236
- "inheritedFrom": {
108237
- "name": "SbbButtonBaseElement",
108238
- "module": "core/base-elements/button-base-element.js"
108239
- },
108240
- "attribute": "form"
108241
- },
108242
- {
108243
- "kind": "field",
108244
- "name": "_formId",
108481
+ "name": "#disabled",
108482
+ "privacy": "private",
108245
108483
  "type": {
108246
- "text": "string"
108484
+ "text": "boolean"
108247
108485
  },
108248
- "privacy": "private",
108249
- "default": "''",
108250
- "inheritedFrom": {
108251
- "name": "SbbButtonBaseElement",
108252
- "module": "core/base-elements/button-base-element.js"
108253
- }
108254
- },
108255
- {
108256
- "kind": "field",
108257
- "name": "_handleButtonClick",
108258
- "privacy": "private",
108486
+ "default": "false",
108259
108487
  "inheritedFrom": {
108260
- "name": "SbbButtonBaseElement",
108261
- "module": "core/base-elements/button-base-element.js"
108488
+ "name": "SbbDisabledMixin",
108489
+ "module": "core/mixins/disabled-mixin.js"
108262
108490
  }
108263
108491
  },
108264
108492
  {
108265
108493
  "kind": "method",
108266
- "name": "_requestSubmit",
108267
- "privacy": "private",
108494
+ "name": "isDisabledExternally",
108495
+ "privacy": "protected",
108268
108496
  "return": {
108269
108497
  "type": {
108270
- "text": "void"
108271
- }
108272
- },
108273
- "parameters": [
108274
- {
108275
- "name": "form",
108276
- "type": {
108277
- "text": "HTMLFormElement"
108278
- }
108498
+ "text": "boolean"
108279
108499
  }
108280
- ],
108281
- "inheritedFrom": {
108282
- "name": "SbbButtonBaseElement",
108283
- "module": "core/base-elements/button-base-element.js"
108284
- }
108285
- },
108286
- {
108287
- "kind": "field",
108288
- "name": "_formKeyDown",
108289
- "privacy": "private",
108290
- "inheritedFrom": {
108291
- "name": "SbbButtonBaseElement",
108292
- "module": "core/base-elements/button-base-element.js"
108293
- }
108294
- },
108295
- {
108296
- "kind": "field",
108297
- "name": "formAssociated",
108298
- "type": {
108299
- "text": "boolean"
108300
108500
  },
108301
- "privacy": "public",
108302
- "static": true,
108303
- "default": "true",
108501
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
108304
108502
  "inheritedFrom": {
108305
- "name": "SbbFormAssociatedMixin",
108306
- "module": "core/mixins/form-associated-mixin.js"
108503
+ "name": "SbbDisabledMixin",
108504
+ "module": "core/mixins/disabled-mixin.js"
108307
108505
  }
108308
108506
  },
108309
108507
  {
108310
108508
  "kind": "field",
108311
- "name": "name",
108312
- "privacy": "public",
108313
- "description": "Name of the form element. Will be read from name attribute.",
108509
+ "name": "href",
108314
108510
  "type": {
108315
108511
  "text": "string"
108316
108512
  },
108317
- "attribute": "name",
108513
+ "privacy": "public",
108514
+ "default": "''",
108515
+ "description": "The href value you want to link to.",
108516
+ "attribute": "href",
108517
+ "reflects": true,
108318
108518
  "inheritedFrom": {
108319
- "name": "SbbFormAssociatedMixin",
108320
- "module": "core/mixins/form-associated-mixin.js"
108519
+ "name": "SbbLinkBaseElement",
108520
+ "module": "core/base-elements/link-base-element.js"
108321
108521
  }
108322
108522
  },
108323
108523
  {
108324
108524
  "kind": "field",
108325
- "name": "validity",
108525
+ "name": "target",
108326
108526
  "type": {
108327
- "text": "ValidityState"
108527
+ "text": "LinkTargetType | string"
108328
108528
  },
108329
108529
  "privacy": "public",
108330
- "description": "Returns the ValidityState object for this element.",
108331
- "readonly": true,
108530
+ "default": "''",
108531
+ "description": "Where to display the linked URL.",
108532
+ "attribute": "target",
108533
+ "reflects": true,
108332
108534
  "inheritedFrom": {
108333
- "name": "SbbFormAssociatedMixin",
108334
- "module": "core/mixins/form-associated-mixin.js"
108535
+ "name": "SbbLinkBaseElement",
108536
+ "module": "core/base-elements/link-base-element.js"
108335
108537
  }
108336
108538
  },
108337
108539
  {
108338
108540
  "kind": "field",
108339
- "name": "validationMessage",
108541
+ "name": "rel",
108340
108542
  "type": {
108341
108543
  "text": "string"
108342
108544
  },
108343
108545
  "privacy": "public",
108344
- "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.",
108345
- "readonly": true,
108546
+ "default": "''",
108547
+ "description": "The relationship of the linked URL as space-separated link types.",
108548
+ "attribute": "rel",
108549
+ "reflects": true,
108346
108550
  "inheritedFrom": {
108347
- "name": "SbbFormAssociatedMixin",
108348
- "module": "core/mixins/form-associated-mixin.js"
108551
+ "name": "SbbLinkBaseElement",
108552
+ "module": "core/base-elements/link-base-element.js"
108349
108553
  }
108350
108554
  },
108351
108555
  {
108352
108556
  "kind": "field",
108353
- "name": "willValidate",
108557
+ "name": "download",
108354
108558
  "type": {
108355
108559
  "text": "boolean"
108356
108560
  },
108357
108561
  "privacy": "public",
108358
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
108359
- "readonly": true,
108360
- "inheritedFrom": {
108361
- "name": "SbbFormAssociatedMixin",
108362
- "module": "core/mixins/form-associated-mixin.js"
108363
- }
108364
- },
108365
- {
108366
- "kind": "field",
108367
- "name": "_validityStates",
108368
- "privacy": "private",
108369
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
108562
+ "default": "false",
108563
+ "description": "Whether the browser will show the download dialog on click.",
108564
+ "attribute": "download",
108565
+ "reflects": true,
108370
108566
  "inheritedFrom": {
108371
- "name": "SbbFormAssociatedMixin",
108372
- "module": "core/mixins/form-associated-mixin.js"
108567
+ "name": "SbbLinkBaseElement",
108568
+ "module": "core/base-elements/link-base-element.js"
108373
108569
  }
108374
108570
  },
108375
108571
  {
108376
108572
  "kind": "field",
108377
- "name": "formDisabled",
108573
+ "name": "accessibilityLabel",
108378
108574
  "type": {
108379
- "text": "boolean"
108575
+ "text": "string"
108380
108576
  },
108381
- "privacy": "protected",
108382
- "default": "false",
108383
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
108384
- "inheritedFrom": {
108385
- "name": "SbbFormAssociatedMixin",
108386
- "module": "core/mixins/form-associated-mixin.js"
108387
- }
108388
- },
108389
- {
108390
- "kind": "method",
108391
- "name": "checkValidity",
108392
108577
  "privacy": "public",
108393
- "return": {
108394
- "type": {
108395
- "text": "boolean"
108396
- }
108397
- },
108398
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
108578
+ "default": "''",
108579
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
108580
+ "attribute": "accessibility-label",
108399
108581
  "inheritedFrom": {
108400
- "name": "SbbFormAssociatedMixin",
108401
- "module": "core/mixins/form-associated-mixin.js"
108582
+ "name": "SbbLinkBaseElement",
108583
+ "module": "core/base-elements/link-base-element.js"
108402
108584
  }
108403
108585
  },
108404
108586
  {
108405
- "kind": "method",
108406
- "name": "reportValidity",
108407
- "privacy": "public",
108408
- "return": {
108409
- "type": {
108410
- "text": "boolean"
108411
- }
108587
+ "kind": "field",
108588
+ "name": "accessibilityCurrent",
108589
+ "type": {
108590
+ "text": "string"
108412
108591
  },
108413
- "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.",
108414
- "inheritedFrom": {
108415
- "name": "SbbFormAssociatedMixin",
108416
- "module": "core/mixins/form-associated-mixin.js"
108417
- }
108418
- },
108419
- {
108420
- "kind": "method",
108421
- "name": "setCustomValidity",
108422
108592
  "privacy": "public",
108423
- "return": {
108424
- "type": {
108425
- "text": "void"
108426
- }
108427
- },
108428
- "parameters": [
108429
- {
108430
- "name": "message",
108431
- "type": {
108432
- "text": "string"
108433
- }
108434
- }
108435
- ],
108436
- "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.",
108437
- "inheritedFrom": {
108438
- "name": "SbbFormAssociatedMixin",
108439
- "module": "core/mixins/form-associated-mixin.js"
108440
- }
108441
- },
108442
- {
108443
- "kind": "method",
108444
- "name": "_hasDisabledAncestor",
108445
- "privacy": "private",
108446
- "return": {
108447
- "type": {
108448
- "text": "boolean"
108449
- }
108450
- },
108451
- "inheritedFrom": {
108452
- "name": "SbbFormAssociatedMixin",
108453
- "module": "core/mixins/form-associated-mixin.js"
108454
- }
108455
- },
108456
- {
108457
- "kind": "method",
108458
- "name": "updateFormValue",
108459
- "privacy": "protected",
108460
- "return": {
108461
- "type": {
108462
- "text": "void"
108463
- }
108464
- },
108465
- "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",
108466
- "inheritedFrom": {
108467
- "name": "SbbFormAssociatedMixin",
108468
- "module": "core/mixins/form-associated-mixin.js"
108469
- }
108470
- },
108471
- {
108472
- "kind": "method",
108473
- "name": "formState",
108474
- "privacy": "protected",
108475
- "return": {
108476
- "type": {
108477
- "text": "FormRestoreState"
108478
- }
108479
- },
108480
- "inheritedFrom": {
108481
- "name": "SbbFormAssociatedMixin",
108482
- "module": "core/mixins/form-associated-mixin.js"
108483
- }
108484
- },
108485
- {
108486
- "kind": "method",
108487
- "name": "setValidityFlag",
108488
- "privacy": "protected",
108489
- "return": {
108490
- "type": {
108491
- "text": "void"
108492
- }
108493
- },
108494
- "parameters": [
108495
- {
108496
- "name": "flag",
108497
- "type": {
108498
- "text": "T"
108499
- }
108500
- },
108501
- {
108502
- "name": "message",
108503
- "type": {
108504
- "text": "string"
108505
- }
108506
- },
108507
- {
108508
- "name": "flagValue",
108509
- "optional": true,
108510
- "type": {
108511
- "text": "ValidityStateFlags[T]"
108512
- }
108513
- }
108514
- ],
108515
- "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).",
108593
+ "default": "''",
108594
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
108595
+ "attribute": "accessibility-current",
108516
108596
  "inheritedFrom": {
108517
- "name": "SbbFormAssociatedMixin",
108518
- "module": "core/mixins/form-associated-mixin.js"
108597
+ "name": "SbbLinkBaseElement",
108598
+ "module": "core/base-elements/link-base-element.js"
108519
108599
  }
108520
108600
  },
108521
108601
  {
108522
- "kind": "method",
108523
- "name": "removeValidityFlag",
108602
+ "kind": "field",
108603
+ "name": "language",
108524
108604
  "privacy": "protected",
108525
- "return": {
108526
- "type": {
108527
- "text": "void"
108528
- }
108529
- },
108530
- "parameters": [
108531
- {
108532
- "name": "flag",
108533
- "type": {
108534
- "text": "T"
108535
- }
108536
- }
108537
- ],
108538
- "description": "Removes the validity state flag entry and updates validity state.",
108605
+ "default": "new SbbLanguageController(this)",
108539
108606
  "inheritedFrom": {
108540
- "name": "SbbFormAssociatedMixin",
108541
- "module": "core/mixins/form-associated-mixin.js"
108607
+ "name": "SbbLinkBaseElement",
108608
+ "module": "core/base-elements/link-base-element.js"
108542
108609
  }
108543
108610
  },
108544
108611
  {
108545
- "kind": "method",
108546
- "name": "validate",
108547
- "privacy": "protected",
108548
- "return": {
108549
- "type": {
108550
- "text": "void"
108551
- }
108552
- },
108553
- "description": "To be called whenever the current element needs to be validated.",
108612
+ "kind": "field",
108613
+ "name": "_evaluateRelAttribute",
108614
+ "privacy": "private",
108554
108615
  "inheritedFrom": {
108555
- "name": "SbbFormAssociatedMixin",
108556
- "module": "core/mixins/form-associated-mixin.js"
108616
+ "name": "SbbLinkBaseElement",
108617
+ "module": "core/base-elements/link-base-element.js"
108557
108618
  }
108558
108619
  },
108559
108620
  {
108560
108621
  "kind": "method",
108561
- "name": "shouldValidate",
108622
+ "name": "renderLink",
108562
108623
  "privacy": "protected",
108563
108624
  "return": {
108564
108625
  "type": {
108565
- "text": "boolean"
108626
+ "text": "TemplateResult"
108566
108627
  }
108567
108628
  },
108568
108629
  "parameters": [
108569
108630
  {
108570
- "name": "name",
108631
+ "name": "renderContent",
108571
108632
  "type": {
108572
- "text": "PropertyKey | undefined"
108633
+ "text": "TemplateResult"
108573
108634
  }
108574
108635
  }
108575
108636
  ],
108576
- "description": "Whether validation should be run on a property change with the given name.",
108577
- "inheritedFrom": {
108578
- "name": "SbbFormAssociatedMixin",
108579
- "module": "core/mixins/form-associated-mixin.js"
108580
- }
108581
- },
108582
- {
108583
- "kind": "method",
108584
- "name": "_setInternalValidity",
108585
- "privacy": "private",
108586
- "return": {
108587
- "type": {
108588
- "text": "void"
108589
- }
108590
- },
108591
- "inheritedFrom": {
108592
- "name": "SbbFormAssociatedMixin",
108593
- "module": "core/mixins/form-associated-mixin.js"
108594
- }
108595
- },
108596
- {
108597
- "kind": "field",
108598
- "name": "_preventScrollOnSpaceKeydown",
108599
- "privacy": "private",
108600
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
108601
- "parameters": [
108602
- {
108603
- "description": "The origin event.",
108604
- "name": "event"
108605
- }
108606
- ],
108607
- "inheritedFrom": {
108608
- "name": "SbbButtonLikeBaseElement",
108609
- "module": "core/base-elements/button-base-element.js"
108610
- }
108611
- },
108612
- {
108613
- "kind": "field",
108614
- "name": "_removeActiveMarker",
108615
- "privacy": "private",
108616
- "inheritedFrom": {
108617
- "name": "SbbButtonLikeBaseElement",
108618
- "module": "core/base-elements/button-base-element.js"
108619
- }
108620
- },
108621
- {
108622
- "kind": "field",
108623
- "name": "_dispatchClickEventOnSpaceKeyup",
108624
- "privacy": "private",
108625
- "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.",
108626
- "parameters": [
108627
- {
108628
- "description": "The origin event.",
108629
- "name": "event"
108630
- }
108631
- ],
108632
- "inheritedFrom": {
108633
- "name": "SbbButtonLikeBaseElement",
108634
- "module": "core/base-elements/button-base-element.js"
108635
- }
108636
- },
108637
- {
108638
- "kind": "field",
108639
- "name": "_dispatchClickEvent",
108640
- "privacy": "private",
108641
108637
  "inheritedFrom": {
108642
- "name": "SbbButtonLikeBaseElement",
108643
- "module": "core/base-elements/button-base-element.js"
108638
+ "name": "SbbLinkBaseElement",
108639
+ "module": "core/base-elements/link-base-element.js"
108644
108640
  }
108645
108641
  },
108646
108642
  {
@@ -108791,7 +108787,7 @@
108791
108787
  ],
108792
108788
  "mixins": [
108793
108789
  {
108794
- "name": "SbbDisabledTabIndexActionMixin",
108790
+ "name": "SbbDisabledInteractiveMixin",
108795
108791
  "module": "core/mixins.js"
108796
108792
  },
108797
108793
  {
@@ -108800,10 +108796,10 @@
108800
108796
  }
108801
108797
  ],
108802
108798
  "superclass": {
108803
- "name": "SbbButtonBaseElement",
108799
+ "name": "SbbLinkBaseElement",
108804
108800
  "module": "core/base-elements.js"
108805
108801
  },
108806
- "tagName": "sbb-menu-button",
108802
+ "tagName": "sbb-menu-link",
108807
108803
  "customElement": true,
108808
108804
  "attributes": [
108809
108805
  {
@@ -108819,6 +108815,19 @@
108819
108815
  "module": "core/mixins/disabled-mixin.js"
108820
108816
  }
108821
108817
  },
108818
+ {
108819
+ "name": "icon-name",
108820
+ "type": {
108821
+ "text": "string"
108822
+ },
108823
+ "default": "''",
108824
+ "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.",
108825
+ "fieldName": "iconName",
108826
+ "inheritedFrom": {
108827
+ "name": "SbbIconNameMixin",
108828
+ "module": "icon/icon-name-mixin.js"
108829
+ }
108830
+ },
108822
108831
  {
108823
108832
  "name": "disabled",
108824
108833
  "description": "Whether the component is disabled.",
@@ -108833,66 +108842,81 @@
108833
108842
  }
108834
108843
  },
108835
108844
  {
108836
- "name": "icon-name",
108845
+ "name": "href",
108837
108846
  "type": {
108838
108847
  "text": "string"
108839
108848
  },
108840
108849
  "default": "''",
108841
- "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.",
108842
- "fieldName": "iconName",
108850
+ "description": "The href value you want to link to.",
108851
+ "fieldName": "href",
108843
108852
  "inheritedFrom": {
108844
- "name": "SbbIconNameMixin",
108845
- "module": "icon/icon-name-mixin.js"
108853
+ "name": "SbbLinkBaseElement",
108854
+ "module": "core/base-elements/link-base-element.js"
108846
108855
  }
108847
108856
  },
108848
108857
  {
108849
- "name": "value",
108858
+ "name": "target",
108859
+ "type": {
108860
+ "text": "LinkTargetType | string"
108861
+ },
108862
+ "default": "''",
108863
+ "description": "Where to display the linked URL.",
108864
+ "fieldName": "target",
108865
+ "inheritedFrom": {
108866
+ "name": "SbbLinkBaseElement",
108867
+ "module": "core/base-elements/link-base-element.js"
108868
+ }
108869
+ },
108870
+ {
108871
+ "name": "rel",
108850
108872
  "type": {
108851
108873
  "text": "string"
108852
108874
  },
108853
108875
  "default": "''",
108854
- "description": "Value of the form element.",
108855
- "fieldName": "value",
108876
+ "description": "The relationship of the linked URL as space-separated link types.",
108877
+ "fieldName": "rel",
108856
108878
  "inheritedFrom": {
108857
- "name": "SbbButtonBaseElement",
108858
- "module": "core/base-elements/button-base-element.js"
108879
+ "name": "SbbLinkBaseElement",
108880
+ "module": "core/base-elements/link-base-element.js"
108859
108881
  }
108860
108882
  },
108861
108883
  {
108862
- "name": "type",
108863
- "description": "The type attribute to use for the button.",
108864
- "default": "'button'",
108884
+ "name": "download",
108865
108885
  "type": {
108866
- "text": "SbbButtonType"
108886
+ "text": "boolean"
108867
108887
  },
108868
- "fieldName": "type",
108888
+ "default": "false",
108889
+ "description": "Whether the browser will show the download dialog on click.",
108890
+ "fieldName": "download",
108869
108891
  "inheritedFrom": {
108870
- "name": "SbbButtonBaseElement",
108871
- "module": "core/base-elements/button-base-element.js"
108892
+ "name": "SbbLinkBaseElement",
108893
+ "module": "core/base-elements/link-base-element.js"
108872
108894
  }
108873
108895
  },
108874
108896
  {
108875
- "name": "form",
108876
- "description": "The `<form>` element to associate the button with.",
108897
+ "name": "accessibility-label",
108877
108898
  "type": {
108878
- "text": "HTMLFormElement | null"
108899
+ "text": "string"
108879
108900
  },
108880
- "fieldName": "form",
108901
+ "default": "''",
108902
+ "description": "This will be forwarded as aria-label to the inner anchor element.",
108903
+ "fieldName": "accessibilityLabel",
108881
108904
  "inheritedFrom": {
108882
- "name": "SbbButtonBaseElement",
108883
- "module": "core/base-elements/button-base-element.js"
108905
+ "name": "SbbLinkBaseElement",
108906
+ "module": "core/base-elements/link-base-element.js"
108884
108907
  }
108885
108908
  },
108886
108909
  {
108887
- "name": "name",
108888
- "description": "Name of the form element. Will be read from name attribute.",
108910
+ "name": "accessibility-current",
108889
108911
  "type": {
108890
108912
  "text": "string"
108891
108913
  },
108892
- "fieldName": "name",
108914
+ "default": "''",
108915
+ "description": "This will be forwarded as aria-current to the inner anchor element.",
108916
+ "fieldName": "accessibilityCurrent",
108893
108917
  "inheritedFrom": {
108894
- "name": "SbbFormAssociatedMixin",
108895
- "module": "core/mixins/form-associated-mixin.js"
108918
+ "name": "SbbLinkBaseElement",
108919
+ "module": "core/base-elements/link-base-element.js"
108896
108920
  }
108897
108921
  }
108898
108922
  ]
@@ -108901,10 +108925,10 @@
108901
108925
  "exports": [
108902
108926
  {
108903
108927
  "kind": "js",
108904
- "name": "SbbMenuButtonElement",
108928
+ "name": "SbbMenuLinkElement",
108905
108929
  "declaration": {
108906
- "name": "SbbMenuButtonElement",
108907
- "module": "menu/menu-button/menu-button.component.js"
108930
+ "name": "SbbMenuLinkElement",
108931
+ "module": "menu/menu-link/menu-link.component.js"
108908
108932
  }
108909
108933
  }
108910
108934
  ]
@@ -118991,6 +119015,14 @@
118991
119015
  "text": "void"
118992
119016
  }
118993
119017
  },
119018
+ "parameters": [
119019
+ {
119020
+ "name": "previousName",
119021
+ "type": {
119022
+ "text": "string"
119023
+ }
119024
+ }
119025
+ ],
118994
119026
  "description": "Remove `this` from the radioButton registry and, if the group is empty, delete the entry from the groups Map",
118995
119027
  "inheritedFrom": {
118996
119028
  "name": "SbbFormAssociatedRadioButtonMixin",
@@ -120002,6 +120034,14 @@
120002
120034
  "text": "void"
120003
120035
  }
120004
120036
  },
120037
+ "parameters": [
120038
+ {
120039
+ "name": "previousName",
120040
+ "type": {
120041
+ "text": "string"
120042
+ }
120043
+ }
120044
+ ],
120005
120045
  "description": "Remove `this` from the radioButton registry and, if the group is empty, delete the entry from the groups Map",
120006
120046
  "inheritedFrom": {
120007
120047
  "name": "SbbFormAssociatedRadioButtonMixin",
@@ -122898,6 +122938,317 @@
122898
122938
  }
122899
122939
  ]
122900
122940
  },
122941
+ {
122942
+ "kind": "javascript-module",
122943
+ "path": "stepper/step/step.component.js",
122944
+ "declarations": [
122945
+ {
122946
+ "kind": "class",
122947
+ "description": "Combined with a `sbb-stepper`, it displays a step's content.",
122948
+ "name": "SbbStepElement",
122949
+ "slots": [
122950
+ {
122951
+ "description": "Use the unnamed slot to provide content.",
122952
+ "name": ""
122953
+ }
122954
+ ],
122955
+ "members": [
122956
+ {
122957
+ "kind": "field",
122958
+ "name": "elementName",
122959
+ "type": {
122960
+ "text": "string"
122961
+ },
122962
+ "privacy": "public",
122963
+ "static": true,
122964
+ "readonly": true,
122965
+ "default": "'sbb-step'",
122966
+ "inheritedFrom": {
122967
+ "name": "SbbElement",
122968
+ "module": "core/base-elements/element.js"
122969
+ }
122970
+ },
122971
+ {
122972
+ "kind": "field",
122973
+ "name": "role",
122974
+ "type": {
122975
+ "text": "string"
122976
+ },
122977
+ "privacy": "public",
122978
+ "static": true,
122979
+ "readonly": true,
122980
+ "default": "'tabpanel'"
122981
+ },
122982
+ {
122983
+ "kind": "field",
122984
+ "name": "events",
122985
+ "privacy": "public",
122986
+ "static": true,
122987
+ "readonly": true,
122988
+ "default": "{ validate: 'validate', resizechange: 'resizechange', active: 'active', }",
122989
+ "type": {
122990
+ "text": "{\n validate: 'validate',\n resizechange: 'resizechange',\n active: 'active',\n }"
122991
+ }
122992
+ },
122993
+ {
122994
+ "kind": "field",
122995
+ "name": "_stepResizeObserver",
122996
+ "privacy": "private",
122997
+ "default": "new ResizeController(this, { target: null, skipInitial: true, callback: () => setTimeout(() => this._onStepElementResize()), })"
122998
+ },
122999
+ {
123000
+ "kind": "field",
123001
+ "name": "label",
123002
+ "type": {
123003
+ "text": "SbbStepLabelElement | null"
123004
+ },
123005
+ "privacy": "public",
123006
+ "description": "The label of the step.",
123007
+ "readonly": true,
123008
+ "default": "null"
123009
+ },
123010
+ {
123011
+ "kind": "field",
123012
+ "name": "_label",
123013
+ "type": {
123014
+ "text": "SbbStepLabelElement | null"
123015
+ },
123016
+ "privacy": "private",
123017
+ "default": "null"
123018
+ },
123019
+ {
123020
+ "kind": "field",
123021
+ "name": "stepper",
123022
+ "type": {
123023
+ "text": "SbbStepperElement | null"
123024
+ },
123025
+ "privacy": "public",
123026
+ "readonly": true
123027
+ },
123028
+ {
123029
+ "kind": "field",
123030
+ "name": "_previousOrientation",
123031
+ "type": {
123032
+ "text": "string | undefined"
123033
+ },
123034
+ "privacy": "private"
123035
+ },
123036
+ {
123037
+ "kind": "method",
123038
+ "name": "_handleClick",
123039
+ "privacy": "private",
123040
+ "return": {
123041
+ "type": {
123042
+ "text": "void"
123043
+ }
123044
+ },
123045
+ "parameters": [
123046
+ {
123047
+ "name": "event",
123048
+ "type": {
123049
+ "text": "Event"
123050
+ }
123051
+ }
123052
+ ],
123053
+ "description": "Watches for clicked elements with `sbb-stepper-next` or `sbb-stepper-previous` attributes."
123054
+ },
123055
+ {
123056
+ "kind": "method",
123057
+ "name": "_isGoNextElement",
123058
+ "privacy": "private",
123059
+ "return": {
123060
+ "type": {
123061
+ "text": "boolean"
123062
+ }
123063
+ },
123064
+ "parameters": [
123065
+ {
123066
+ "name": "element",
123067
+ "type": {
123068
+ "text": "HTMLElement"
123069
+ }
123070
+ }
123071
+ ]
123072
+ },
123073
+ {
123074
+ "kind": "method",
123075
+ "name": "_isGoPreviousElement",
123076
+ "privacy": "private",
123077
+ "return": {
123078
+ "type": {
123079
+ "text": "boolean"
123080
+ }
123081
+ },
123082
+ "parameters": [
123083
+ {
123084
+ "name": "element",
123085
+ "type": {
123086
+ "text": "HTMLElement"
123087
+ }
123088
+ }
123089
+ ]
123090
+ },
123091
+ {
123092
+ "kind": "method",
123093
+ "name": "_onStepElementResize",
123094
+ "privacy": "private",
123095
+ "return": {
123096
+ "type": {
123097
+ "text": "void"
123098
+ }
123099
+ }
123100
+ },
123101
+ {
123102
+ "kind": "method",
123103
+ "name": "_assignLabel",
123104
+ "privacy": "private",
123105
+ "return": {
123106
+ "type": {
123107
+ "text": "void"
123108
+ }
123109
+ }
123110
+ },
123111
+ {
123112
+ "kind": "field",
123113
+ "name": "_hydrationRequired",
123114
+ "type": {
123115
+ "text": "boolean"
123116
+ },
123117
+ "privacy": "private",
123118
+ "default": "!!this.shadowRoot",
123119
+ "inheritedFrom": {
123120
+ "name": "SbbElement",
123121
+ "module": "core/base-elements/element.js"
123122
+ }
123123
+ },
123124
+ {
123125
+ "kind": "field",
123126
+ "name": "_hydrationComplete",
123127
+ "privacy": "private",
123128
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
123129
+ "inheritedFrom": {
123130
+ "name": "SbbElement",
123131
+ "module": "core/base-elements/element.js"
123132
+ }
123133
+ },
123134
+ {
123135
+ "kind": "field",
123136
+ "name": "_resolveHydration",
123137
+ "type": {
123138
+ "text": "(hydrationRequired: boolean) => void"
123139
+ },
123140
+ "privacy": "private",
123141
+ "inheritedFrom": {
123142
+ "name": "SbbElement",
123143
+ "module": "core/base-elements/element.js"
123144
+ }
123145
+ },
123146
+ {
123147
+ "kind": "field",
123148
+ "name": "hydrationRequired",
123149
+ "type": {
123150
+ "text": "boolean"
123151
+ },
123152
+ "privacy": "protected",
123153
+ "description": "Returns whether hydration is required and not completed.",
123154
+ "readonly": true,
123155
+ "inheritedFrom": {
123156
+ "name": "SbbElement",
123157
+ "module": "core/base-elements/element.js"
123158
+ },
123159
+ "default": "!!this.shadowRoot"
123160
+ },
123161
+ {
123162
+ "kind": "method",
123163
+ "name": "toggleState",
123164
+ "privacy": "protected",
123165
+ "return": {
123166
+ "type": {
123167
+ "text": "void"
123168
+ }
123169
+ },
123170
+ "parameters": [
123171
+ {
123172
+ "name": "value",
123173
+ "type": {
123174
+ "text": "string"
123175
+ }
123176
+ },
123177
+ {
123178
+ "name": "force",
123179
+ "optional": true,
123180
+ "type": {
123181
+ "text": "boolean"
123182
+ }
123183
+ }
123184
+ ],
123185
+ "inheritedFrom": {
123186
+ "name": "SbbElement",
123187
+ "module": "core/base-elements/element.js"
123188
+ }
123189
+ },
123190
+ {
123191
+ "kind": "field",
123192
+ "name": "['_$sbbElement$']",
123193
+ "type": {
123194
+ "text": "boolean"
123195
+ },
123196
+ "privacy": "public",
123197
+ "static": true,
123198
+ "default": "true",
123199
+ "inheritedFrom": {
123200
+ "name": "SbbElement",
123201
+ "module": "core/base-elements/element.js"
123202
+ }
123203
+ },
123204
+ {
123205
+ "kind": "field",
123206
+ "name": "_controllers",
123207
+ "type": {
123208
+ "text": "Set<SbbReactiveController> | undefined"
123209
+ },
123210
+ "privacy": "private",
123211
+ "inheritedFrom": {
123212
+ "name": "SbbElement",
123213
+ "module": "core/base-elements/element.js"
123214
+ }
123215
+ }
123216
+ ],
123217
+ "events": [
123218
+ {
123219
+ "name": "active",
123220
+ "type": {
123221
+ "text": "Event"
123222
+ },
123223
+ "description": "The active event is dispatched when a step is activated."
123224
+ },
123225
+ {
123226
+ "name": "validate",
123227
+ "type": {
123228
+ "text": "CustomEvent<SbbStepValidateEventDetails>"
123229
+ },
123230
+ "description": "The validate event is dispatched when a step change is triggered. Can be canceled to abort the step change."
123231
+ }
123232
+ ],
123233
+ "superclass": {
123234
+ "name": "SbbElement",
123235
+ "module": "core/base-elements.js"
123236
+ },
123237
+ "tagName": "sbb-step",
123238
+ "customElement": true
123239
+ }
123240
+ ],
123241
+ "exports": [
123242
+ {
123243
+ "kind": "js",
123244
+ "name": "SbbStepElement",
123245
+ "declaration": {
123246
+ "name": "SbbStepElement",
123247
+ "module": "stepper/step/step.component.js"
123248
+ }
123249
+ }
123250
+ ]
123251
+ },
122901
123252
  {
122902
123253
  "kind": "javascript-module",
122903
123254
  "path": "stepper/step-label/step-label.component.js",
@@ -123860,317 +124211,6 @@
123860
124211
  }
123861
124212
  ]
123862
124213
  },
123863
- {
123864
- "kind": "javascript-module",
123865
- "path": "stepper/step/step.component.js",
123866
- "declarations": [
123867
- {
123868
- "kind": "class",
123869
- "description": "Combined with a `sbb-stepper`, it displays a step's content.",
123870
- "name": "SbbStepElement",
123871
- "slots": [
123872
- {
123873
- "description": "Use the unnamed slot to provide content.",
123874
- "name": ""
123875
- }
123876
- ],
123877
- "members": [
123878
- {
123879
- "kind": "field",
123880
- "name": "elementName",
123881
- "type": {
123882
- "text": "string"
123883
- },
123884
- "privacy": "public",
123885
- "static": true,
123886
- "readonly": true,
123887
- "default": "'sbb-step'",
123888
- "inheritedFrom": {
123889
- "name": "SbbElement",
123890
- "module": "core/base-elements/element.js"
123891
- }
123892
- },
123893
- {
123894
- "kind": "field",
123895
- "name": "role",
123896
- "type": {
123897
- "text": "string"
123898
- },
123899
- "privacy": "public",
123900
- "static": true,
123901
- "readonly": true,
123902
- "default": "'tabpanel'"
123903
- },
123904
- {
123905
- "kind": "field",
123906
- "name": "events",
123907
- "privacy": "public",
123908
- "static": true,
123909
- "readonly": true,
123910
- "default": "{ validate: 'validate', resizechange: 'resizechange', active: 'active', }",
123911
- "type": {
123912
- "text": "{\n validate: 'validate',\n resizechange: 'resizechange',\n active: 'active',\n }"
123913
- }
123914
- },
123915
- {
123916
- "kind": "field",
123917
- "name": "_stepResizeObserver",
123918
- "privacy": "private",
123919
- "default": "new ResizeController(this, { target: null, skipInitial: true, callback: () => setTimeout(() => this._onStepElementResize()), })"
123920
- },
123921
- {
123922
- "kind": "field",
123923
- "name": "label",
123924
- "type": {
123925
- "text": "SbbStepLabelElement | null"
123926
- },
123927
- "privacy": "public",
123928
- "description": "The label of the step.",
123929
- "readonly": true,
123930
- "default": "null"
123931
- },
123932
- {
123933
- "kind": "field",
123934
- "name": "_label",
123935
- "type": {
123936
- "text": "SbbStepLabelElement | null"
123937
- },
123938
- "privacy": "private",
123939
- "default": "null"
123940
- },
123941
- {
123942
- "kind": "field",
123943
- "name": "stepper",
123944
- "type": {
123945
- "text": "SbbStepperElement | null"
123946
- },
123947
- "privacy": "public",
123948
- "readonly": true
123949
- },
123950
- {
123951
- "kind": "field",
123952
- "name": "_previousOrientation",
123953
- "type": {
123954
- "text": "string | undefined"
123955
- },
123956
- "privacy": "private"
123957
- },
123958
- {
123959
- "kind": "method",
123960
- "name": "_handleClick",
123961
- "privacy": "private",
123962
- "return": {
123963
- "type": {
123964
- "text": "void"
123965
- }
123966
- },
123967
- "parameters": [
123968
- {
123969
- "name": "event",
123970
- "type": {
123971
- "text": "Event"
123972
- }
123973
- }
123974
- ],
123975
- "description": "Watches for clicked elements with `sbb-stepper-next` or `sbb-stepper-previous` attributes."
123976
- },
123977
- {
123978
- "kind": "method",
123979
- "name": "_isGoNextElement",
123980
- "privacy": "private",
123981
- "return": {
123982
- "type": {
123983
- "text": "boolean"
123984
- }
123985
- },
123986
- "parameters": [
123987
- {
123988
- "name": "element",
123989
- "type": {
123990
- "text": "HTMLElement"
123991
- }
123992
- }
123993
- ]
123994
- },
123995
- {
123996
- "kind": "method",
123997
- "name": "_isGoPreviousElement",
123998
- "privacy": "private",
123999
- "return": {
124000
- "type": {
124001
- "text": "boolean"
124002
- }
124003
- },
124004
- "parameters": [
124005
- {
124006
- "name": "element",
124007
- "type": {
124008
- "text": "HTMLElement"
124009
- }
124010
- }
124011
- ]
124012
- },
124013
- {
124014
- "kind": "method",
124015
- "name": "_onStepElementResize",
124016
- "privacy": "private",
124017
- "return": {
124018
- "type": {
124019
- "text": "void"
124020
- }
124021
- }
124022
- },
124023
- {
124024
- "kind": "method",
124025
- "name": "_assignLabel",
124026
- "privacy": "private",
124027
- "return": {
124028
- "type": {
124029
- "text": "void"
124030
- }
124031
- }
124032
- },
124033
- {
124034
- "kind": "field",
124035
- "name": "_hydrationRequired",
124036
- "type": {
124037
- "text": "boolean"
124038
- },
124039
- "privacy": "private",
124040
- "default": "!!this.shadowRoot",
124041
- "inheritedFrom": {
124042
- "name": "SbbElement",
124043
- "module": "core/base-elements/element.js"
124044
- }
124045
- },
124046
- {
124047
- "kind": "field",
124048
- "name": "_hydrationComplete",
124049
- "privacy": "private",
124050
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
124051
- "inheritedFrom": {
124052
- "name": "SbbElement",
124053
- "module": "core/base-elements/element.js"
124054
- }
124055
- },
124056
- {
124057
- "kind": "field",
124058
- "name": "_resolveHydration",
124059
- "type": {
124060
- "text": "(hydrationRequired: boolean) => void"
124061
- },
124062
- "privacy": "private",
124063
- "inheritedFrom": {
124064
- "name": "SbbElement",
124065
- "module": "core/base-elements/element.js"
124066
- }
124067
- },
124068
- {
124069
- "kind": "field",
124070
- "name": "hydrationRequired",
124071
- "type": {
124072
- "text": "boolean"
124073
- },
124074
- "privacy": "protected",
124075
- "description": "Returns whether hydration is required and not completed.",
124076
- "readonly": true,
124077
- "inheritedFrom": {
124078
- "name": "SbbElement",
124079
- "module": "core/base-elements/element.js"
124080
- },
124081
- "default": "!!this.shadowRoot"
124082
- },
124083
- {
124084
- "kind": "method",
124085
- "name": "toggleState",
124086
- "privacy": "protected",
124087
- "return": {
124088
- "type": {
124089
- "text": "void"
124090
- }
124091
- },
124092
- "parameters": [
124093
- {
124094
- "name": "value",
124095
- "type": {
124096
- "text": "string"
124097
- }
124098
- },
124099
- {
124100
- "name": "force",
124101
- "optional": true,
124102
- "type": {
124103
- "text": "boolean"
124104
- }
124105
- }
124106
- ],
124107
- "inheritedFrom": {
124108
- "name": "SbbElement",
124109
- "module": "core/base-elements/element.js"
124110
- }
124111
- },
124112
- {
124113
- "kind": "field",
124114
- "name": "['_$sbbElement$']",
124115
- "type": {
124116
- "text": "boolean"
124117
- },
124118
- "privacy": "public",
124119
- "static": true,
124120
- "default": "true",
124121
- "inheritedFrom": {
124122
- "name": "SbbElement",
124123
- "module": "core/base-elements/element.js"
124124
- }
124125
- },
124126
- {
124127
- "kind": "field",
124128
- "name": "_controllers",
124129
- "type": {
124130
- "text": "Set<SbbReactiveController> | undefined"
124131
- },
124132
- "privacy": "private",
124133
- "inheritedFrom": {
124134
- "name": "SbbElement",
124135
- "module": "core/base-elements/element.js"
124136
- }
124137
- }
124138
- ],
124139
- "events": [
124140
- {
124141
- "name": "active",
124142
- "type": {
124143
- "text": "Event"
124144
- },
124145
- "description": "The active event is dispatched when a step is activated."
124146
- },
124147
- {
124148
- "name": "validate",
124149
- "type": {
124150
- "text": "CustomEvent<SbbStepValidateEventDetails>"
124151
- },
124152
- "description": "The validate event is dispatched when a step change is triggered. Can be canceled to abort the step change."
124153
- }
124154
- ],
124155
- "superclass": {
124156
- "name": "SbbElement",
124157
- "module": "core/base-elements.js"
124158
- },
124159
- "tagName": "sbb-step",
124160
- "customElement": true
124161
- }
124162
- ],
124163
- "exports": [
124164
- {
124165
- "kind": "js",
124166
- "name": "SbbStepElement",
124167
- "declaration": {
124168
- "name": "SbbStepElement",
124169
- "module": "stepper/step/step.component.js"
124170
- }
124171
- }
124172
- ]
124173
- },
124174
124214
  {
124175
124215
  "kind": "javascript-module",
124176
124216
  "path": "stepper/stepper/stepper.component.js",