@sbb-esta/lyne-elements-dev 4.0.0-dev.1775666054 → 4.0.0-dev.1775700454

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/custom-elements.json +1060 -1060
  2. package/package.json +2 -2
@@ -143308,28 +143308,20 @@
143308
143308
  },
143309
143309
  {
143310
143310
  "kind": "javascript-module",
143311
- "path": "sidebar/sidebar-close-button/sidebar-close-button.component.js",
143311
+ "path": "sidebar/sidebar/sidebar.component.js",
143312
143312
  "declarations": [
143313
143313
  {
143314
143314
  "kind": "class",
143315
- "description": "Sidebar close button, intended to be placed inside sbb-sidebar.",
143316
- "name": "SbbSidebarCloseButtonElement",
143315
+ "description": "This component corresponds to a sidebar that can be opened on the sidebar container.",
143316
+ "name": "SbbSidebarElement",
143317
143317
  "slots": [
143318
143318
  {
143319
- "description": "Use the unnamed slot to add content to the sidebar-close-button. Not intended to be used in this context.",
143320
- "name": "",
143321
- "inheritedFrom": {
143322
- "name": "SbbSecondaryButtonElement",
143323
- "module": "button/secondary-button/secondary-button.component.js"
143324
- }
143319
+ "description": "Use the unnamed slot to slot any content into the sidebar.",
143320
+ "name": ""
143325
143321
  },
143326
143322
  {
143327
- "description": "Slot used to display the icon, if one is set. Not intended to be used in this context.",
143328
- "name": "icon",
143329
- "inheritedFrom": {
143330
- "name": "SbbSecondaryButtonElement",
143331
- "module": "button/secondary-button/secondary-button.component.js"
143332
- }
143323
+ "description": "Use the title slot to add an <sbb-title>.",
143324
+ "name": "title"
143333
143325
  }
143334
143326
  ],
143335
143327
  "members": [
@@ -143346,521 +143338,603 @@
143346
143338
  "name": "SbbElement",
143347
143339
  "module": "core/base-elements/element.js"
143348
143340
  },
143349
- "default": "'sbb-sidebar-close-button'"
143341
+ "default": "'sbb-sidebar'"
143350
143342
  },
143351
143343
  {
143352
143344
  "kind": "field",
143353
- "name": "_languageController",
143354
- "privacy": "private",
143355
- "default": "new SbbLanguageController(this)"
143356
- },
143357
- {
143358
- "kind": "method",
143359
- "name": "renderTemplate",
143360
- "privacy": "protected",
143361
- "return": {
143362
- "type": {
143363
- "text": "TemplateResult"
143364
- }
143345
+ "name": "color",
143346
+ "type": {
143347
+ "text": "'white' | 'milk'"
143365
143348
  },
143366
- "description": "Override this method to render the component template.",
143367
- "inheritedFrom": {
143368
- "name": "SbbActionBaseElement",
143369
- "module": "core/base-elements/action-base-element.js"
143370
- }
143349
+ "privacy": "public",
143350
+ "default": "'white'",
143351
+ "description": "Background color of the sidebar. Either `white` or `milk`.",
143352
+ "attribute": "color",
143353
+ "reflects": true
143371
143354
  },
143372
143355
  {
143373
- "kind": "method",
143374
- "name": "renderIconName",
143375
- "privacy": "protected",
143376
- "return": {
143377
- "type": {
143378
- "text": "string"
143379
- }
143356
+ "kind": "field",
143357
+ "name": "mode",
143358
+ "type": {
143359
+ "text": "'side' | 'over'"
143380
143360
  },
143381
- "inheritedFrom": {
143382
- "name": "SbbIconNameMixin",
143383
- "module": "icon/icon-name-mixin.js"
143384
- }
143361
+ "privacy": "public",
143362
+ "default": "'side'",
143363
+ "description": "Mode of the sidebar; one of 'side' or 'over'.",
143364
+ "attribute": "mode",
143365
+ "reflects": true
143385
143366
  },
143386
143367
  {
143387
143368
  "kind": "field",
143388
- "name": "size",
143369
+ "name": "position",
143389
143370
  "type": {
143390
- "text": "SbbButtonSize"
143371
+ "text": "'start' | 'end'"
143391
143372
  },
143392
143373
  "privacy": "public",
143393
- "description": "Size variant, either l, m or s.",
143394
- "default": "'s'",
143395
- "attribute": "size",
143396
- "reflects": true,
143397
- "inheritedFrom": {
143398
- "name": "SbbButtonCommonElementMixin",
143399
- "module": "button/common/button-common.js"
143400
- }
143374
+ "default": "'start'",
143375
+ "description": "The side that the sidebar is attached to.",
143376
+ "attribute": "position",
143377
+ "reflects": true
143401
143378
  },
143402
143379
  {
143403
143380
  "kind": "field",
143404
- "name": "loading",
143381
+ "name": "opened",
143405
143382
  "type": {
143406
143383
  "text": "boolean"
143407
143384
  },
143408
143385
  "privacy": "public",
143409
143386
  "default": "false",
143410
- "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.",
143411
- "attribute": "loading",
143412
- "reflects": true,
143413
- "inheritedFrom": {
143414
- "name": "SbbButtonCommonElementMixin",
143415
- "module": "button/common/button-common.js"
143416
- }
143387
+ "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
143388
+ "attribute": "opened",
143389
+ "reflects": true
143417
143390
  },
143418
143391
  {
143419
143392
  "kind": "field",
143420
- "name": "negative",
143393
+ "name": "focusOnOpen",
143421
143394
  "type": {
143422
143395
  "text": "boolean"
143423
143396
  },
143424
143397
  "privacy": "public",
143425
143398
  "default": "false",
143426
- "description": "Negative coloring variant flag.",
143427
- "attribute": "negative",
143428
- "reflects": true,
143429
- "inheritedFrom": {
143430
- "name": "SbbNegativeMixin",
143431
- "module": "core/mixins/negative-mixin.js"
143432
- }
143399
+ "description": "Whether the sidebar should focus the first focusable element automatically when opened.\nDefaults to false in when mode is set to `side`, otherwise defaults to true.\nIf explicitly enabled, focus will be moved into the sidebar in `side` mode as well.",
143400
+ "attribute": "focus-on-open"
143433
143401
  },
143434
143402
  {
143435
143403
  "kind": "field",
143436
- "name": "elementDependencies",
143404
+ "name": "container",
143437
143405
  "type": {
143438
- "text": "SbbElementType[]"
143406
+ "text": "SbbSidebarContainerElement | null"
143439
143407
  },
143440
143408
  "privacy": "public",
143441
- "static": true,
143442
- "inheritedFrom": {
143443
- "name": "SbbElement",
143444
- "module": "core/base-elements/element.js"
143409
+ "description": "Returns the SbbSidebarContainerElement where this sidebar is contained.",
143410
+ "readonly": true,
143411
+ "default": "null"
143412
+ },
143413
+ {
143414
+ "kind": "field",
143415
+ "name": "_container",
143416
+ "type": {
143417
+ "text": "SbbSidebarContainerElement | null"
143445
143418
  },
143446
- "default": "[SbbIconElement]"
143419
+ "privacy": "private",
143420
+ "default": "null"
143447
143421
  },
143448
143422
  {
143449
143423
  "kind": "field",
143450
- "name": "iconName",
143424
+ "name": "_lastFocusedElement",
143451
143425
  "type": {
143452
- "text": "string"
143426
+ "text": "HTMLElement | null"
143453
143427
  },
143454
- "privacy": "public",
143455
- "default": "''",
143456
- "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.",
143457
- "attribute": "icon-name",
143458
- "inheritedFrom": {
143459
- "name": "SbbIconNameMixin",
143460
- "module": "icon/icon-name-mixin.js"
143461
- }
143428
+ "privacy": "private",
143429
+ "default": "null"
143430
+ },
143431
+ {
143432
+ "kind": "field",
143433
+ "name": "_focusTrapController",
143434
+ "privacy": "private",
143435
+ "default": "new SbbFocusTrapController(this)"
143436
+ },
143437
+ {
143438
+ "kind": "field",
143439
+ "name": "_escapableOverlayController",
143440
+ "privacy": "private",
143441
+ "default": "new SbbEscapableOverlayController(this)"
143442
+ },
143443
+ {
143444
+ "kind": "field",
143445
+ "name": "_closeOnNavigation",
143446
+ "privacy": "private"
143462
143447
  },
143463
143448
  {
143464
143449
  "kind": "method",
143465
- "name": "renderIconSlot",
143466
- "privacy": "protected",
143450
+ "name": "toggle",
143451
+ "privacy": "public",
143467
143452
  "return": {
143468
143453
  "type": {
143469
- "text": "TemplateResult"
143454
+ "text": "void"
143470
143455
  }
143471
143456
  },
143472
- "parameters": [
143473
- {
143474
- "name": "classname",
143475
- "optional": true,
143476
- "type": {
143477
- "text": "string"
143478
- }
143457
+ "description": "Toggles the sidebar visibility."
143458
+ },
143459
+ {
143460
+ "kind": "method",
143461
+ "name": "open",
143462
+ "privacy": "public",
143463
+ "return": {
143464
+ "type": {
143465
+ "text": "void"
143479
143466
  }
143480
- ],
143467
+ },
143468
+ "description": "Opens the sidebar.",
143481
143469
  "inheritedFrom": {
143482
- "name": "SbbIconNameMixin",
143483
- "module": "icon/icon-name-mixin.js"
143470
+ "name": "SbbOpenCloseBaseElement",
143471
+ "module": "core/base-elements/open-close-base-element.js"
143484
143472
  }
143485
143473
  },
143486
143474
  {
143487
143475
  "kind": "method",
143488
- "name": "_renderIconName",
143476
+ "name": "_isZeroAnimationDuration",
143489
143477
  "privacy": "private",
143490
143478
  "return": {
143491
143479
  "type": {
143492
- "text": "string"
143480
+ "text": "boolean"
143493
143481
  }
143494
- },
143495
- "inheritedFrom": {
143496
- "name": "SbbIconNameMixin",
143497
- "module": "icon/icon-name-mixin.js"
143498
143482
  }
143499
143483
  },
143500
143484
  {
143501
- "kind": "field",
143502
- "name": "disabledInteractive",
143503
- "type": {
143504
- "text": "boolean"
143505
- },
143506
- "privacy": "public",
143507
- "default": "false",
143508
- "description": "Whether the button should be aria-disabled but stay interactive.",
143509
- "attribute": "disabled-interactive",
143510
- "reflects": true,
143511
- "inheritedFrom": {
143512
- "name": "SbbDisabledInteractiveMixin",
143513
- "module": "core/mixins/disabled-mixin.js"
143485
+ "kind": "method",
143486
+ "name": "_handleOpening",
143487
+ "privacy": "private",
143488
+ "return": {
143489
+ "type": {
143490
+ "text": "void"
143491
+ }
143514
143492
  }
143515
143493
  },
143516
143494
  {
143517
- "kind": "field",
143518
- "name": "disabled",
143495
+ "kind": "method",
143496
+ "name": "close",
143519
143497
  "privacy": "public",
143520
- "description": "Whether the component is disabled.",
143521
- "default": "false",
143522
- "type": {
143523
- "text": "boolean"
143498
+ "return": {
143499
+ "type": {
143500
+ "text": "void"
143501
+ }
143524
143502
  },
143525
- "attribute": "disabled",
143526
- "reflects": true,
143503
+ "description": "Closes the sidebar.",
143527
143504
  "inheritedFrom": {
143528
- "name": "SbbDisabledMixin",
143529
- "module": "core/mixins/disabled-mixin.js"
143505
+ "name": "SbbOpenCloseBaseElement",
143506
+ "module": "core/base-elements/open-close-base-element.js"
143530
143507
  }
143531
143508
  },
143532
143509
  {
143533
- "kind": "field",
143534
- "name": "#disabled",
143510
+ "kind": "method",
143511
+ "name": "_handleClosing",
143535
143512
  "privacy": "private",
143536
- "type": {
143537
- "text": "boolean"
143538
- },
143539
- "default": "false",
143540
- "inheritedFrom": {
143541
- "name": "SbbDisabledMixin",
143542
- "module": "core/mixins/disabled-mixin.js"
143513
+ "return": {
143514
+ "type": {
143515
+ "text": "void"
143516
+ }
143543
143517
  }
143544
143518
  },
143545
143519
  {
143546
143520
  "kind": "method",
143547
- "name": "isDisabledExternally",
143548
- "privacy": "protected",
143521
+ "name": "_takeFocus",
143522
+ "privacy": "private",
143549
143523
  "return": {
143550
143524
  "type": {
143551
- "text": "boolean"
143525
+ "text": "void"
143552
143526
  }
143553
- },
143554
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
143555
- "inheritedFrom": {
143556
- "name": "SbbDisabledMixin",
143557
- "module": "core/mixins/disabled-mixin.js"
143558
143527
  }
143559
143528
  },
143560
143529
  {
143561
- "kind": "field",
143562
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
143563
- "type": {
143564
- "text": "array"
143530
+ "kind": "method",
143531
+ "name": "cedeFocus",
143532
+ "privacy": "protected",
143533
+ "return": {
143534
+ "type": {
143535
+ "text": "void"
143536
+ }
143537
+ }
143538
+ },
143539
+ {
143540
+ "kind": "method",
143541
+ "name": "_updateSidebarWidth",
143542
+ "privacy": "private",
143543
+ "return": {
143544
+ "type": {
143545
+ "text": "void"
143546
+ }
143547
+ },
143548
+ "parameters": [
143549
+ {
143550
+ "name": "oldPosition",
143551
+ "optional": true,
143552
+ "type": {
143553
+ "text": "this['position']"
143554
+ }
143555
+ }
143556
+ ]
143557
+ },
143558
+ {
143559
+ "kind": "method",
143560
+ "name": "_buildCssWidthVar",
143561
+ "privacy": "private",
143562
+ "return": {
143563
+ "type": {
143564
+ "text": "string"
143565
+ }
143565
143566
  },
143567
+ "parameters": [
143568
+ {
143569
+ "name": "position",
143570
+ "default": "this.position"
143571
+ }
143572
+ ]
143573
+ },
143574
+ {
143575
+ "kind": "method",
143576
+ "name": "_isModeOver",
143566
143577
  "privacy": "private",
143567
- "readonly": true,
143568
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
143569
- "inheritedFrom": {
143570
- "name": "SbbButtonBaseElement",
143571
- "module": "core/base-elements/button-base-element.js"
143578
+ "return": {
143579
+ "type": {
143580
+ "text": "boolean"
143581
+ }
143572
143582
  }
143573
143583
  },
143574
143584
  {
143575
- "kind": "field",
143576
- "name": "value",
143577
- "type": {
143578
- "text": "string"
143579
- },
143580
- "privacy": "public",
143581
- "inheritedFrom": {
143582
- "name": "SbbButtonBaseElement",
143583
- "module": "core/base-elements/button-base-element.js"
143585
+ "kind": "method",
143586
+ "name": "_onTransitionEnd",
143587
+ "privacy": "private",
143588
+ "return": {
143589
+ "type": {
143590
+ "text": "void"
143591
+ }
143584
143592
  },
143585
- "default": "''",
143586
- "description": "Value of the form element.",
143587
- "attribute": "value"
143593
+ "parameters": [
143594
+ {
143595
+ "name": "event",
143596
+ "type": {
143597
+ "text": "TransitionEvent"
143598
+ }
143599
+ }
143600
+ ]
143601
+ },
143602
+ {
143603
+ "kind": "method",
143604
+ "name": "_detectScrolledState",
143605
+ "privacy": "private",
143606
+ "return": {
143607
+ "type": {
143608
+ "text": "void"
143609
+ }
143610
+ }
143588
143611
  },
143589
143612
  {
143590
143613
  "kind": "field",
143591
- "name": "type",
143592
- "privacy": "public",
143593
- "description": "The type attribute to use for the button.",
143594
- "default": "'button'",
143614
+ "name": "isAnimating",
143595
143615
  "type": {
143596
- "text": "SbbButtonType"
143616
+ "text": "boolean"
143597
143617
  },
143598
- "attribute": "type",
143618
+ "privacy": "public",
143619
+ "default": "false",
143620
+ "description": "Whether the component is currently animating.",
143599
143621
  "inheritedFrom": {
143600
- "name": "SbbButtonBaseElement",
143601
- "module": "core/base-elements/button-base-element.js"
143622
+ "name": "SbbAnimationCompleteMixin",
143623
+ "module": "core/mixins/animation-complete-mixin.js"
143602
143624
  }
143603
143625
  },
143604
143626
  {
143605
143627
  "kind": "field",
143606
- "name": "form",
143628
+ "name": "animationComplete",
143607
143629
  "type": {
143608
- "text": "HTMLFormElement | null"
143630
+ "text": "Promise<void>"
143609
143631
  },
143610
143632
  "privacy": "public",
143611
- "description": "The `<form>` element to associate the button with.",
143633
+ "description": "Returns a promise which completes whenever an animation ends.\nWhen a new animation starts, a new Promise is returned.",
143634
+ "readonly": true,
143612
143635
  "inheritedFrom": {
143613
- "name": "SbbButtonBaseElement",
143614
- "module": "core/base-elements/button-base-element.js"
143615
- },
143616
- "attribute": "form"
143636
+ "name": "SbbAnimationCompleteMixin",
143637
+ "module": "core/mixins/animation-complete-mixin.js"
143638
+ }
143617
143639
  },
143618
143640
  {
143619
143641
  "kind": "field",
143620
- "name": "_formId",
143642
+ "name": "_animationPromise",
143621
143643
  "type": {
143622
- "text": "string"
143644
+ "text": "Promise<void>"
143623
143645
  },
143624
143646
  "privacy": "private",
143625
- "default": "''",
143626
143647
  "inheritedFrom": {
143627
- "name": "SbbButtonBaseElement",
143628
- "module": "core/base-elements/button-base-element.js"
143648
+ "name": "SbbAnimationCompleteMixin",
143649
+ "module": "core/mixins/animation-complete-mixin.js"
143629
143650
  }
143630
143651
  },
143631
143652
  {
143632
- "kind": "field",
143633
- "name": "_handleButtonClick",
143634
- "privacy": "private",
143653
+ "kind": "method",
143654
+ "name": "startAnimation",
143655
+ "privacy": "protected",
143656
+ "return": {
143657
+ "type": {
143658
+ "text": "void"
143659
+ }
143660
+ },
143635
143661
  "inheritedFrom": {
143636
- "name": "SbbButtonBaseElement",
143637
- "module": "core/base-elements/button-base-element.js"
143662
+ "name": "SbbAnimationCompleteMixin",
143663
+ "module": "core/mixins/animation-complete-mixin.js"
143638
143664
  }
143639
143665
  },
143640
143666
  {
143641
143667
  "kind": "method",
143642
- "name": "_requestSubmit",
143643
- "privacy": "private",
143668
+ "name": "stopAnimation",
143669
+ "privacy": "protected",
143644
143670
  "return": {
143645
143671
  "type": {
143646
143672
  "text": "void"
143647
143673
  }
143648
143674
  },
143649
- "parameters": [
143650
- {
143651
- "name": "form",
143652
- "type": {
143653
- "text": "HTMLFormElement"
143654
- }
143655
- }
143656
- ],
143675
+ "description": "Overriding stopAnimation() breaks functionality.",
143657
143676
  "inheritedFrom": {
143658
- "name": "SbbButtonBaseElement",
143659
- "module": "core/base-elements/button-base-element.js"
143677
+ "name": "SbbAnimationCompleteMixin",
143678
+ "module": "core/mixins/animation-complete-mixin.js"
143660
143679
  }
143661
143680
  },
143662
143681
  {
143663
- "kind": "field",
143664
- "name": "_formKeyDown",
143682
+ "kind": "method",
143683
+ "name": "_enqueueAnimation",
143665
143684
  "privacy": "private",
143685
+ "return": {
143686
+ "type": {
143687
+ "text": "Promise<void>"
143688
+ }
143689
+ },
143666
143690
  "inheritedFrom": {
143667
- "name": "SbbButtonBaseElement",
143668
- "module": "core/base-elements/button-base-element.js"
143691
+ "name": "SbbAnimationCompleteMixin",
143692
+ "module": "core/mixins/animation-complete-mixin.js"
143669
143693
  }
143670
143694
  },
143671
143695
  {
143672
143696
  "kind": "field",
143673
- "name": "formAssociated",
143674
- "type": {
143675
- "text": "boolean"
143676
- },
143697
+ "name": "events",
143677
143698
  "privacy": "public",
143678
143699
  "static": true,
143679
- "default": "true",
143700
+ "readonly": true,
143701
+ "default": "{ beforeopen: 'beforeopen', open: 'open', beforeclose: 'beforeclose', close: 'close', }",
143702
+ "type": {
143703
+ "text": "{\n beforeopen: 'beforeopen',\n open: 'open',\n beforeclose: 'beforeclose',\n close: 'close',\n }"
143704
+ },
143680
143705
  "inheritedFrom": {
143681
- "name": "SbbFormAssociatedMixin",
143682
- "module": "core/mixins/form-associated-mixin.js"
143706
+ "name": "SbbOpenCloseBaseElement",
143707
+ "module": "core/base-elements/open-close-base-element.js"
143683
143708
  }
143684
143709
  },
143685
143710
  {
143686
143711
  "kind": "field",
143687
- "name": "name",
143688
- "privacy": "public",
143689
- "description": "Name of the form element. Will be read from name attribute.",
143712
+ "name": "state",
143713
+ "privacy": "protected",
143714
+ "description": "The state of the component.",
143690
143715
  "type": {
143691
- "text": "string"
143716
+ "text": "SbbOpenedClosedState"
143692
143717
  },
143693
- "attribute": "name",
143718
+ "default": "'closed'",
143694
143719
  "inheritedFrom": {
143695
- "name": "SbbFormAssociatedMixin",
143696
- "module": "core/mixins/form-associated-mixin.js"
143720
+ "name": "SbbOpenCloseBaseElement",
143721
+ "module": "core/base-elements/open-close-base-element.js"
143697
143722
  }
143698
143723
  },
143699
143724
  {
143700
143725
  "kind": "field",
143701
- "name": "validity",
143726
+ "name": "_state",
143702
143727
  "type": {
143703
- "text": "ValidityState"
143728
+ "text": "SbbOpenedClosedState"
143704
143729
  },
143705
- "privacy": "public",
143706
- "description": "Returns the ValidityState object for this element.",
143707
- "readonly": true,
143730
+ "privacy": "private",
143708
143731
  "inheritedFrom": {
143709
- "name": "SbbFormAssociatedMixin",
143710
- "module": "core/mixins/form-associated-mixin.js"
143732
+ "name": "SbbOpenCloseBaseElement",
143733
+ "module": "core/base-elements/open-close-base-element.js"
143711
143734
  }
143712
143735
  },
143713
143736
  {
143714
143737
  "kind": "field",
143715
- "name": "validationMessage",
143738
+ "name": "isOpen",
143716
143739
  "type": {
143717
- "text": "string"
143740
+ "text": "boolean"
143718
143741
  },
143719
143742
  "privacy": "public",
143720
- "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.",
143743
+ "description": "Whether the element is open.",
143721
143744
  "readonly": true,
143722
143745
  "inheritedFrom": {
143723
- "name": "SbbFormAssociatedMixin",
143724
- "module": "core/mixins/form-associated-mixin.js"
143746
+ "name": "SbbOpenCloseBaseElement",
143747
+ "module": "core/base-elements/open-close-base-element.js"
143725
143748
  }
143726
143749
  },
143727
143750
  {
143728
- "kind": "field",
143729
- "name": "willValidate",
143730
- "type": {
143731
- "text": "boolean"
143732
- },
143751
+ "kind": "method",
143752
+ "name": "escapeStrategy",
143733
143753
  "privacy": "public",
143734
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
143735
- "readonly": true,
143754
+ "return": {
143755
+ "type": {
143756
+ "text": "void"
143757
+ }
143758
+ },
143759
+ "description": "The method which is called on escape key press. Defaults to calling close()",
143736
143760
  "inheritedFrom": {
143737
- "name": "SbbFormAssociatedMixin",
143738
- "module": "core/mixins/form-associated-mixin.js"
143761
+ "name": "SbbOpenCloseBaseElement",
143762
+ "module": "core/base-elements/open-close-base-element.js"
143739
143763
  }
143740
143764
  },
143741
143765
  {
143742
- "kind": "field",
143743
- "name": "_validityStates",
143744
- "privacy": "private",
143745
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
143766
+ "kind": "method",
143767
+ "name": "dispatchBeforeOpenEvent",
143768
+ "privacy": "protected",
143769
+ "return": {
143770
+ "type": {
143771
+ "text": "boolean"
143772
+ }
143773
+ },
143746
143774
  "inheritedFrom": {
143747
- "name": "SbbFormAssociatedMixin",
143748
- "module": "core/mixins/form-associated-mixin.js"
143775
+ "name": "SbbOpenCloseBaseElement",
143776
+ "module": "core/base-elements/open-close-base-element.js"
143749
143777
  }
143750
143778
  },
143751
143779
  {
143752
- "kind": "field",
143753
- "name": "formDisabled",
143754
- "type": {
143755
- "text": "boolean"
143756
- },
143780
+ "kind": "method",
143781
+ "name": "dispatchOpenEvent",
143757
143782
  "privacy": "protected",
143758
- "default": "false",
143759
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
143783
+ "return": {
143784
+ "type": {
143785
+ "text": "boolean"
143786
+ }
143787
+ },
143760
143788
  "inheritedFrom": {
143761
- "name": "SbbFormAssociatedMixin",
143762
- "module": "core/mixins/form-associated-mixin.js"
143789
+ "name": "SbbOpenCloseBaseElement",
143790
+ "module": "core/base-elements/open-close-base-element.js"
143763
143791
  }
143764
143792
  },
143765
143793
  {
143766
143794
  "kind": "method",
143767
- "name": "checkValidity",
143768
- "privacy": "public",
143795
+ "name": "dispatchBeforeCloseEvent",
143796
+ "privacy": "protected",
143769
143797
  "return": {
143770
143798
  "type": {
143771
143799
  "text": "boolean"
143772
143800
  }
143773
143801
  },
143774
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
143775
143802
  "inheritedFrom": {
143776
- "name": "SbbFormAssociatedMixin",
143777
- "module": "core/mixins/form-associated-mixin.js"
143803
+ "name": "SbbOpenCloseBaseElement",
143804
+ "module": "core/base-elements/open-close-base-element.js"
143778
143805
  }
143779
143806
  },
143780
143807
  {
143781
143808
  "kind": "method",
143782
- "name": "reportValidity",
143783
- "privacy": "public",
143809
+ "name": "dispatchCloseEvent",
143810
+ "privacy": "protected",
143784
143811
  "return": {
143785
143812
  "type": {
143786
143813
  "text": "boolean"
143787
143814
  }
143788
143815
  },
143789
- "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.",
143790
143816
  "inheritedFrom": {
143791
- "name": "SbbFormAssociatedMixin",
143792
- "module": "core/mixins/form-associated-mixin.js"
143817
+ "name": "SbbOpenCloseBaseElement",
143818
+ "module": "core/base-elements/open-close-base-element.js"
143793
143819
  }
143794
143820
  },
143795
143821
  {
143796
- "kind": "method",
143797
- "name": "setCustomValidity",
143822
+ "kind": "field",
143823
+ "name": "['_$sbbElement$']",
143824
+ "type": {
143825
+ "text": "boolean"
143826
+ },
143798
143827
  "privacy": "public",
143799
- "return": {
143800
- "type": {
143801
- "text": "void"
143802
- }
143828
+ "static": true,
143829
+ "default": "true",
143830
+ "inheritedFrom": {
143831
+ "name": "SbbElement",
143832
+ "module": "core/base-elements/element.js"
143833
+ }
143834
+ },
143835
+ {
143836
+ "kind": "field",
143837
+ "name": "elementDependencies",
143838
+ "type": {
143839
+ "text": "SbbElementType[] | undefined"
143803
143840
  },
143804
- "parameters": [
143805
- {
143806
- "name": "message",
143807
- "type": {
143808
- "text": "string"
143809
- }
143810
- }
143811
- ],
143812
- "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.",
143841
+ "privacy": "public",
143842
+ "static": true,
143813
143843
  "inheritedFrom": {
143814
- "name": "SbbFormAssociatedMixin",
143815
- "module": "core/mixins/form-associated-mixin.js"
143844
+ "name": "SbbElement",
143845
+ "module": "core/base-elements/element.js"
143816
143846
  }
143817
143847
  },
143818
143848
  {
143819
- "kind": "method",
143820
- "name": "_hasDisabledAncestor",
143849
+ "kind": "field",
143850
+ "name": "role",
143851
+ "type": {
143852
+ "text": "ElementInternals['role'] | undefined"
143853
+ },
143854
+ "privacy": "public",
143855
+ "static": true,
143856
+ "inheritedFrom": {
143857
+ "name": "SbbElement",
143858
+ "module": "core/base-elements/element.js"
143859
+ }
143860
+ },
143861
+ {
143862
+ "kind": "field",
143863
+ "name": "_controllers",
143864
+ "type": {
143865
+ "text": "Set<SbbReactiveController> | undefined"
143866
+ },
143821
143867
  "privacy": "private",
143822
- "return": {
143823
- "type": {
143824
- "text": "boolean"
143825
- }
143868
+ "inheritedFrom": {
143869
+ "name": "SbbElement",
143870
+ "module": "core/base-elements/element.js"
143871
+ }
143872
+ },
143873
+ {
143874
+ "kind": "field",
143875
+ "name": "_hydrationRequired",
143876
+ "type": {
143877
+ "text": "boolean"
143826
143878
  },
143879
+ "privacy": "private",
143880
+ "default": "!!this.shadowRoot",
143827
143881
  "inheritedFrom": {
143828
- "name": "SbbFormAssociatedMixin",
143829
- "module": "core/mixins/form-associated-mixin.js"
143882
+ "name": "SbbElement",
143883
+ "module": "core/base-elements/element.js"
143830
143884
  }
143831
143885
  },
143832
143886
  {
143833
- "kind": "method",
143834
- "name": "updateFormValue",
143835
- "privacy": "protected",
143836
- "return": {
143837
- "type": {
143838
- "text": "void"
143839
- }
143887
+ "kind": "field",
143888
+ "name": "_hydrationComplete",
143889
+ "privacy": "private",
143890
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
143891
+ "inheritedFrom": {
143892
+ "name": "SbbElement",
143893
+ "module": "core/base-elements/element.js"
143894
+ }
143895
+ },
143896
+ {
143897
+ "kind": "field",
143898
+ "name": "_resolveHydration",
143899
+ "type": {
143900
+ "text": "(hydrationRequired: boolean) => void"
143840
143901
  },
143841
- "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",
143902
+ "privacy": "private",
143842
143903
  "inheritedFrom": {
143843
- "name": "SbbFormAssociatedMixin",
143844
- "module": "core/mixins/form-associated-mixin.js"
143904
+ "name": "SbbElement",
143905
+ "module": "core/base-elements/element.js"
143845
143906
  }
143846
143907
  },
143847
143908
  {
143848
- "kind": "method",
143849
- "name": "formState",
143850
- "privacy": "protected",
143851
- "return": {
143852
- "type": {
143853
- "text": "FormRestoreState"
143854
- }
143909
+ "kind": "field",
143910
+ "name": "_textObserver",
143911
+ "type": {
143912
+ "text": "MutationObserver | undefined"
143855
143913
  },
143914
+ "privacy": "private",
143856
143915
  "inheritedFrom": {
143857
- "name": "SbbFormAssociatedMixin",
143858
- "module": "core/mixins/form-associated-mixin.js"
143916
+ "name": "SbbElement",
143917
+ "module": "core/base-elements/element.js"
143859
143918
  }
143860
143919
  },
143920
+ {
143921
+ "kind": "field",
143922
+ "name": "hydrationRequired",
143923
+ "type": {
143924
+ "text": "boolean"
143925
+ },
143926
+ "privacy": "protected",
143927
+ "description": "Returns whether hydration is required and not completed.",
143928
+ "readonly": true,
143929
+ "inheritedFrom": {
143930
+ "name": "SbbElement",
143931
+ "module": "core/base-elements/element.js"
143932
+ },
143933
+ "default": "!!this.shadowRoot"
143934
+ },
143861
143935
  {
143862
143936
  "kind": "method",
143863
- "name": "setValidityFlag",
143937
+ "name": "toggleState",
143864
143938
  "privacy": "protected",
143865
143939
  "return": {
143866
143940
  "type": {
@@ -143869,35 +143943,28 @@
143869
143943
  },
143870
143944
  "parameters": [
143871
143945
  {
143872
- "name": "flag",
143873
- "type": {
143874
- "text": "T"
143875
- }
143876
- },
143877
- {
143878
- "name": "message",
143946
+ "name": "value",
143879
143947
  "type": {
143880
143948
  "text": "string"
143881
143949
  }
143882
143950
  },
143883
143951
  {
143884
- "name": "flagValue",
143952
+ "name": "force",
143885
143953
  "optional": true,
143886
143954
  "type": {
143887
- "text": "ValidityStateFlags[T]"
143955
+ "text": "boolean"
143888
143956
  }
143889
143957
  }
143890
143958
  ],
143891
- "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).",
143892
143959
  "inheritedFrom": {
143893
- "name": "SbbFormAssociatedMixin",
143894
- "module": "core/mixins/form-associated-mixin.js"
143960
+ "name": "SbbElement",
143961
+ "module": "core/base-elements/element.js"
143895
143962
  }
143896
143963
  },
143897
143964
  {
143898
143965
  "kind": "method",
143899
- "name": "removeValidityFlag",
143900
- "privacy": "protected",
143966
+ "name": "_slotchangeHandler",
143967
+ "privacy": "private",
143901
143968
  "return": {
143902
143969
  "type": {
143903
143970
  "text": "void"
@@ -143905,803 +143972,786 @@
143905
143972
  },
143906
143973
  "parameters": [
143907
143974
  {
143908
- "name": "flag",
143975
+ "name": "event",
143909
143976
  "type": {
143910
- "text": "T"
143977
+ "text": "Event"
143978
+ }
143979
+ },
143980
+ {
143981
+ "name": "slot",
143982
+ "type": {
143983
+ "text": "HTMLSlotElement"
143911
143984
  }
143912
143985
  }
143913
143986
  ],
143914
- "description": "Removes the validity state flag entry and updates validity state.",
143915
143987
  "inheritedFrom": {
143916
- "name": "SbbFormAssociatedMixin",
143917
- "module": "core/mixins/form-associated-mixin.js"
143988
+ "name": "SbbElement",
143989
+ "module": "core/base-elements/element.js"
143918
143990
  }
143919
143991
  },
143920
143992
  {
143921
143993
  "kind": "method",
143922
- "name": "validate",
143923
- "privacy": "protected",
143994
+ "name": "_handleSlotChangeForSlottedState",
143995
+ "privacy": "private",
143924
143996
  "return": {
143925
143997
  "type": {
143926
143998
  "text": "void"
143927
143999
  }
143928
144000
  },
143929
- "description": "To be called whenever the current element needs to be validated.",
144001
+ "parameters": [
144002
+ {
144003
+ "name": "slot",
144004
+ "type": {
144005
+ "text": "HTMLSlotElement"
144006
+ }
144007
+ }
144008
+ ],
143930
144009
  "inheritedFrom": {
143931
- "name": "SbbFormAssociatedMixin",
143932
- "module": "core/mixins/form-associated-mixin.js"
144010
+ "name": "SbbElement",
144011
+ "module": "core/base-elements/element.js"
143933
144012
  }
143934
144013
  },
143935
144014
  {
143936
144015
  "kind": "method",
143937
- "name": "shouldValidate",
143938
- "privacy": "protected",
144016
+ "name": "_updateSlottedState",
144017
+ "privacy": "private",
143939
144018
  "return": {
143940
144019
  "type": {
143941
- "text": "boolean"
144020
+ "text": "void"
143942
144021
  }
143943
144022
  },
143944
144023
  "parameters": [
143945
144024
  {
143946
- "name": "name",
144025
+ "name": "slot",
143947
144026
  "type": {
143948
- "text": "PropertyKey | undefined"
144027
+ "text": "HTMLSlotElement"
143949
144028
  }
143950
144029
  }
143951
144030
  ],
143952
- "description": "Whether validation should be run on a property change with the given name.",
143953
144031
  "inheritedFrom": {
143954
- "name": "SbbFormAssociatedMixin",
143955
- "module": "core/mixins/form-associated-mixin.js"
144032
+ "name": "SbbElement",
144033
+ "module": "core/base-elements/element.js"
143956
144034
  }
143957
144035
  },
143958
144036
  {
143959
144037
  "kind": "method",
143960
- "name": "_setInternalValidity",
144038
+ "name": "_observeTextNodesInSlot",
143961
144039
  "privacy": "private",
143962
144040
  "return": {
143963
144041
  "type": {
143964
144042
  "text": "void"
143965
144043
  }
143966
144044
  },
143967
- "inheritedFrom": {
143968
- "name": "SbbFormAssociatedMixin",
143969
- "module": "core/mixins/form-associated-mixin.js"
143970
- }
143971
- },
143972
- {
143973
- "kind": "field",
143974
- "name": "role",
143975
- "type": {
143976
- "text": "ElementInternals['role']"
143977
- },
143978
- "privacy": "public",
143979
- "static": true,
143980
- "inheritedFrom": {
143981
- "name": "SbbElement",
143982
- "module": "core/base-elements/element.js"
143983
- },
143984
- "readonly": true,
143985
- "default": "'button'"
143986
- },
143987
- {
143988
- "kind": "field",
143989
- "name": "_preventScrollOnSpaceKeydown",
143990
- "privacy": "private",
143991
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
143992
144045
  "parameters": [
143993
144046
  {
143994
- "description": "The origin event.",
143995
- "name": "event"
144047
+ "name": "slot",
144048
+ "type": {
144049
+ "text": "HTMLSlotElement"
144050
+ }
143996
144051
  }
143997
144052
  ],
143998
144053
  "inheritedFrom": {
143999
- "name": "SbbButtonLikeBaseElement",
144000
- "module": "core/base-elements/button-base-element.js"
144001
- }
144002
- },
144003
- {
144004
- "kind": "field",
144005
- "name": "_removeActiveMarker",
144006
- "privacy": "private",
144007
- "inheritedFrom": {
144008
- "name": "SbbButtonLikeBaseElement",
144009
- "module": "core/base-elements/button-base-element.js"
144054
+ "name": "SbbElement",
144055
+ "module": "core/base-elements/element.js"
144010
144056
  }
144011
144057
  },
144012
144058
  {
144013
- "kind": "field",
144014
- "name": "_dispatchClickEventOnSpaceKeyup",
144059
+ "kind": "method",
144060
+ "name": "_hasSlottedContent",
144015
144061
  "privacy": "private",
144016
- "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.",
144062
+ "return": {
144063
+ "type": {
144064
+ "text": "boolean"
144065
+ }
144066
+ },
144017
144067
  "parameters": [
144018
144068
  {
144019
- "description": "The origin event.",
144020
- "name": "event"
144069
+ "name": "slot",
144070
+ "type": {
144071
+ "text": "HTMLSlotElement"
144072
+ }
144021
144073
  }
144022
144074
  ],
144023
144075
  "inheritedFrom": {
144024
- "name": "SbbButtonLikeBaseElement",
144025
- "module": "core/base-elements/button-base-element.js"
144026
- }
144027
- },
144028
- {
144029
- "kind": "field",
144030
- "name": "_dispatchClickEvent",
144031
- "privacy": "private",
144032
- "inheritedFrom": {
144033
- "name": "SbbButtonLikeBaseElement",
144034
- "module": "core/base-elements/button-base-element.js"
144076
+ "name": "SbbElement",
144077
+ "module": "core/base-elements/element.js"
144035
144078
  }
144036
- },
144079
+ }
144080
+ ],
144081
+ "attributes": [
144037
144082
  {
144038
- "kind": "field",
144039
- "name": "maybeDisabled",
144083
+ "name": "color",
144040
144084
  "type": {
144041
- "text": "boolean | undefined"
144085
+ "text": "'white' | 'milk'"
144042
144086
  },
144043
- "privacy": "protected",
144044
- "readonly": true,
144045
- "inheritedFrom": {
144046
- "name": "SbbActionBaseElement",
144047
- "module": "core/base-elements/action-base-element.js"
144048
- }
144087
+ "default": "'white'",
144088
+ "description": "Background color of the sidebar. Either `white` or `milk`.",
144089
+ "fieldName": "color"
144049
144090
  },
144050
144091
  {
144051
- "kind": "field",
144052
- "name": "maybeDisabledInteractive",
144092
+ "name": "mode",
144053
144093
  "type": {
144054
- "text": "boolean | undefined"
144055
- },
144056
- "privacy": "protected",
144057
- "readonly": true,
144058
- "inheritedFrom": {
144059
- "name": "SbbActionBaseElement",
144060
- "module": "core/base-elements/action-base-element.js"
144061
- }
144062
- },
144063
- {
144064
- "kind": "method",
144065
- "name": "setupBaseEventHandlers",
144066
- "privacy": "protected",
144067
- "return": {
144068
- "type": {
144069
- "text": "void"
144070
- }
144094
+ "text": "'side' | 'over'"
144071
144095
  },
144072
- "inheritedFrom": {
144073
- "name": "SbbActionBaseElement",
144074
- "module": "core/base-elements/action-base-element.js"
144075
- }
144096
+ "default": "'side'",
144097
+ "description": "Mode of the sidebar; one of 'side' or 'over'.",
144098
+ "fieldName": "mode"
144076
144099
  },
144077
144100
  {
144078
- "kind": "field",
144079
- "name": "['_$sbbElement$']",
144101
+ "name": "position",
144080
144102
  "type": {
144081
- "text": "boolean"
144103
+ "text": "'start' | 'end'"
144082
144104
  },
144083
- "privacy": "public",
144084
- "static": true,
144085
- "default": "true",
144086
- "inheritedFrom": {
144087
- "name": "SbbElement",
144088
- "module": "core/base-elements/element.js"
144089
- }
144105
+ "default": "'start'",
144106
+ "description": "The side that the sidebar is attached to.",
144107
+ "fieldName": "position"
144090
144108
  },
144091
144109
  {
144092
- "kind": "field",
144093
- "name": "_controllers",
144110
+ "name": "opened",
144094
144111
  "type": {
144095
- "text": "Set<SbbReactiveController> | undefined"
144112
+ "text": "boolean"
144096
144113
  },
144097
- "privacy": "private",
144098
- "inheritedFrom": {
144099
- "name": "SbbElement",
144100
- "module": "core/base-elements/element.js"
144101
- }
144114
+ "default": "false",
144115
+ "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
144116
+ "fieldName": "opened"
144102
144117
  },
144103
144118
  {
144104
- "kind": "field",
144105
- "name": "_hydrationRequired",
144119
+ "name": "focus-on-open",
144106
144120
  "type": {
144107
144121
  "text": "boolean"
144108
144122
  },
144109
- "privacy": "private",
144110
- "default": "!!this.shadowRoot",
144111
- "inheritedFrom": {
144112
- "name": "SbbElement",
144113
- "module": "core/base-elements/element.js"
144114
- }
144115
- },
144123
+ "default": "false",
144124
+ "description": "Whether the sidebar should focus the first focusable element automatically when opened.\nDefaults to false in when mode is set to `side`, otherwise defaults to true.\nIf explicitly enabled, focus will be moved into the sidebar in `side` mode as well.",
144125
+ "fieldName": "focusOnOpen"
144126
+ }
144127
+ ],
144128
+ "mixins": [
144116
144129
  {
144117
- "kind": "field",
144118
- "name": "_hydrationComplete",
144119
- "privacy": "private",
144120
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
144121
- "inheritedFrom": {
144122
- "name": "SbbElement",
144123
- "module": "core/base-elements/element.js"
144124
- }
144125
- },
144130
+ "name": "SbbAnimationCompleteMixin",
144131
+ "module": "core.js"
144132
+ }
144133
+ ],
144134
+ "superclass": {
144135
+ "name": "SbbOpenCloseBaseElement",
144136
+ "module": "core.js"
144137
+ },
144138
+ "tagName": "sbb-sidebar",
144139
+ "customElement": true,
144140
+ "events": [
144126
144141
  {
144127
- "kind": "field",
144128
- "name": "_resolveHydration",
144142
+ "name": "beforeopen",
144129
144143
  "type": {
144130
- "text": "(hydrationRequired: boolean) => void"
144144
+ "text": "Event"
144131
144145
  },
144132
- "privacy": "private",
144146
+ "description": "Emits whenever the component starts the opening transition. Can be canceled.",
144133
144147
  "inheritedFrom": {
144134
- "name": "SbbElement",
144135
- "module": "core/base-elements/element.js"
144148
+ "name": "SbbOpenCloseBaseElement",
144149
+ "module": "core/base-elements/open-close-base-element.js"
144136
144150
  }
144137
144151
  },
144138
144152
  {
144139
- "kind": "field",
144140
- "name": "_textObserver",
144153
+ "name": "open",
144141
144154
  "type": {
144142
- "text": "MutationObserver | undefined"
144155
+ "text": "Event"
144143
144156
  },
144144
- "privacy": "private",
144157
+ "description": "Emits whenever the component is opened.",
144145
144158
  "inheritedFrom": {
144146
- "name": "SbbElement",
144147
- "module": "core/base-elements/element.js"
144159
+ "name": "SbbOpenCloseBaseElement",
144160
+ "module": "core/base-elements/open-close-base-element.js"
144148
144161
  }
144149
144162
  },
144150
144163
  {
144151
- "kind": "field",
144152
- "name": "hydrationRequired",
144164
+ "name": "beforeclose",
144153
144165
  "type": {
144154
- "text": "boolean"
144166
+ "text": "Event"
144155
144167
  },
144156
- "privacy": "protected",
144157
- "description": "Returns whether hydration is required and not completed.",
144158
- "readonly": true,
144168
+ "description": "Emits whenever the component begins the closing transition. Can be canceled.",
144159
144169
  "inheritedFrom": {
144160
- "name": "SbbElement",
144161
- "module": "core/base-elements/element.js"
144162
- },
144163
- "default": "!!this.shadowRoot"
144170
+ "name": "SbbOpenCloseBaseElement",
144171
+ "module": "core/base-elements/open-close-base-element.js"
144172
+ }
144164
144173
  },
144165
144174
  {
144166
- "kind": "method",
144167
- "name": "toggleState",
144168
- "privacy": "protected",
144169
- "return": {
144170
- "type": {
144171
- "text": "void"
144172
- }
144175
+ "name": "close",
144176
+ "type": {
144177
+ "text": "Event"
144173
144178
  },
144174
- "parameters": [
144175
- {
144176
- "name": "value",
144177
- "type": {
144178
- "text": "string"
144179
- }
144180
- },
144181
- {
144182
- "name": "force",
144183
- "optional": true,
144184
- "type": {
144185
- "text": "boolean"
144186
- }
144187
- }
144188
- ],
144179
+ "description": "Emits whenever the component is closed.",
144189
144180
  "inheritedFrom": {
144190
- "name": "SbbElement",
144191
- "module": "core/base-elements/element.js"
144181
+ "name": "SbbOpenCloseBaseElement",
144182
+ "module": "core/base-elements/open-close-base-element.js"
144192
144183
  }
144193
- },
144184
+ }
144185
+ ]
144186
+ }
144187
+ ],
144188
+ "exports": [
144189
+ {
144190
+ "kind": "js",
144191
+ "name": "SbbSidebarElement",
144192
+ "declaration": {
144193
+ "name": "SbbSidebarElement",
144194
+ "module": "sidebar/sidebar/sidebar.component.js"
144195
+ }
144196
+ }
144197
+ ]
144198
+ },
144199
+ {
144200
+ "kind": "javascript-module",
144201
+ "path": "sidebar/sidebar-close-button/sidebar-close-button.component.js",
144202
+ "declarations": [
144203
+ {
144204
+ "kind": "class",
144205
+ "description": "Sidebar close button, intended to be placed inside sbb-sidebar.",
144206
+ "name": "SbbSidebarCloseButtonElement",
144207
+ "slots": [
144194
144208
  {
144195
- "kind": "method",
144196
- "name": "_slotchangeHandler",
144197
- "privacy": "private",
144198
- "return": {
144199
- "type": {
144200
- "text": "void"
144201
- }
144202
- },
144203
- "parameters": [
144204
- {
144205
- "name": "event",
144206
- "type": {
144207
- "text": "Event"
144208
- }
144209
- },
144210
- {
144211
- "name": "slot",
144212
- "type": {
144213
- "text": "HTMLSlotElement"
144214
- }
144215
- }
144216
- ],
144209
+ "description": "Use the unnamed slot to add content to the sidebar-close-button. Not intended to be used in this context.",
144210
+ "name": "",
144217
144211
  "inheritedFrom": {
144218
- "name": "SbbElement",
144219
- "module": "core/base-elements/element.js"
144212
+ "name": "SbbSecondaryButtonElement",
144213
+ "module": "button/secondary-button/secondary-button.component.js"
144220
144214
  }
144221
144215
  },
144222
144216
  {
144223
- "kind": "method",
144224
- "name": "_handleSlotChangeForSlottedState",
144225
- "privacy": "private",
144226
- "return": {
144227
- "type": {
144228
- "text": "void"
144229
- }
144230
- },
144231
- "parameters": [
144232
- {
144233
- "name": "slot",
144234
- "type": {
144235
- "text": "HTMLSlotElement"
144236
- }
144237
- }
144238
- ],
144217
+ "description": "Slot used to display the icon, if one is set. Not intended to be used in this context.",
144218
+ "name": "icon",
144239
144219
  "inheritedFrom": {
144240
- "name": "SbbElement",
144241
- "module": "core/base-elements/element.js"
144220
+ "name": "SbbSecondaryButtonElement",
144221
+ "module": "button/secondary-button/secondary-button.component.js"
144242
144222
  }
144243
- },
144223
+ }
144224
+ ],
144225
+ "members": [
144244
144226
  {
144245
- "kind": "method",
144246
- "name": "_updateSlottedState",
144247
- "privacy": "private",
144248
- "return": {
144249
- "type": {
144250
- "text": "void"
144251
- }
144227
+ "kind": "field",
144228
+ "name": "elementName",
144229
+ "type": {
144230
+ "text": "string"
144252
144231
  },
144253
- "parameters": [
144254
- {
144255
- "name": "slot",
144256
- "type": {
144257
- "text": "HTMLSlotElement"
144258
- }
144259
- }
144260
- ],
144232
+ "privacy": "public",
144233
+ "static": true,
144234
+ "readonly": true,
144261
144235
  "inheritedFrom": {
144262
144236
  "name": "SbbElement",
144263
144237
  "module": "core/base-elements/element.js"
144264
- }
144238
+ },
144239
+ "default": "'sbb-sidebar-close-button'"
144265
144240
  },
144266
144241
  {
144267
- "kind": "method",
144268
- "name": "_observeTextNodesInSlot",
144242
+ "kind": "field",
144243
+ "name": "_languageController",
144269
144244
  "privacy": "private",
144245
+ "default": "new SbbLanguageController(this)"
144246
+ },
144247
+ {
144248
+ "kind": "method",
144249
+ "name": "renderTemplate",
144250
+ "privacy": "protected",
144270
144251
  "return": {
144271
144252
  "type": {
144272
- "text": "void"
144253
+ "text": "TemplateResult"
144273
144254
  }
144274
144255
  },
144275
- "parameters": [
144276
- {
144277
- "name": "slot",
144278
- "type": {
144279
- "text": "HTMLSlotElement"
144280
- }
144281
- }
144282
- ],
144256
+ "description": "Override this method to render the component template.",
144283
144257
  "inheritedFrom": {
144284
- "name": "SbbElement",
144285
- "module": "core/base-elements/element.js"
144258
+ "name": "SbbActionBaseElement",
144259
+ "module": "core/base-elements/action-base-element.js"
144286
144260
  }
144287
144261
  },
144288
144262
  {
144289
144263
  "kind": "method",
144290
- "name": "_hasSlottedContent",
144291
- "privacy": "private",
144264
+ "name": "renderIconName",
144265
+ "privacy": "protected",
144292
144266
  "return": {
144293
144267
  "type": {
144294
- "text": "boolean"
144268
+ "text": "string"
144295
144269
  }
144296
144270
  },
144297
- "parameters": [
144298
- {
144299
- "name": "slot",
144300
- "type": {
144301
- "text": "HTMLSlotElement"
144302
- }
144303
- }
144304
- ],
144305
144271
  "inheritedFrom": {
144306
- "name": "SbbElement",
144307
- "module": "core/base-elements/element.js"
144272
+ "name": "SbbIconNameMixin",
144273
+ "module": "icon/icon-name-mixin.js"
144308
144274
  }
144309
- }
144310
- ],
144311
- "superclass": {
144312
- "name": "SbbSecondaryButtonElement",
144313
- "module": "button.pure.js"
144314
- },
144315
- "tagName": "sbb-sidebar-close-button",
144316
- "customElement": true,
144317
- "attributes": [
144275
+ },
144318
144276
  {
144277
+ "kind": "field",
144319
144278
  "name": "size",
144320
144279
  "type": {
144321
144280
  "text": "SbbButtonSize"
144322
144281
  },
144282
+ "privacy": "public",
144323
144283
  "description": "Size variant, either l, m or s.",
144324
- "default": "'l' / 's' (lean)",
144325
- "fieldName": "size",
144284
+ "default": "'s'",
144285
+ "attribute": "size",
144286
+ "reflects": true,
144326
144287
  "inheritedFrom": {
144327
144288
  "name": "SbbButtonCommonElementMixin",
144328
144289
  "module": "button/common/button-common.js"
144329
144290
  }
144330
144291
  },
144331
144292
  {
144293
+ "kind": "field",
144332
144294
  "name": "loading",
144333
144295
  "type": {
144334
144296
  "text": "boolean"
144335
144297
  },
144298
+ "privacy": "public",
144336
144299
  "default": "false",
144337
144300
  "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.",
144338
- "fieldName": "loading",
144301
+ "attribute": "loading",
144302
+ "reflects": true,
144339
144303
  "inheritedFrom": {
144340
144304
  "name": "SbbButtonCommonElementMixin",
144341
144305
  "module": "button/common/button-common.js"
144342
144306
  }
144343
144307
  },
144344
144308
  {
144309
+ "kind": "field",
144345
144310
  "name": "negative",
144346
144311
  "type": {
144347
144312
  "text": "boolean"
144348
144313
  },
144314
+ "privacy": "public",
144349
144315
  "default": "false",
144350
144316
  "description": "Negative coloring variant flag.",
144351
- "fieldName": "negative",
144317
+ "attribute": "negative",
144318
+ "reflects": true,
144352
144319
  "inheritedFrom": {
144353
144320
  "name": "SbbNegativeMixin",
144354
144321
  "module": "core/mixins/negative-mixin.js"
144355
144322
  }
144356
144323
  },
144357
144324
  {
144358
- "name": "icon-name",
144325
+ "kind": "field",
144326
+ "name": "elementDependencies",
144327
+ "type": {
144328
+ "text": "SbbElementType[]"
144329
+ },
144330
+ "privacy": "public",
144331
+ "static": true,
144332
+ "inheritedFrom": {
144333
+ "name": "SbbElement",
144334
+ "module": "core/base-elements/element.js"
144335
+ },
144336
+ "default": "[SbbIconElement]"
144337
+ },
144338
+ {
144339
+ "kind": "field",
144340
+ "name": "iconName",
144359
144341
  "type": {
144360
144342
  "text": "string"
144361
144343
  },
144344
+ "privacy": "public",
144362
144345
  "default": "''",
144363
144346
  "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.",
144364
- "fieldName": "iconName",
144347
+ "attribute": "icon-name",
144365
144348
  "inheritedFrom": {
144366
144349
  "name": "SbbIconNameMixin",
144367
144350
  "module": "icon/icon-name-mixin.js"
144368
144351
  }
144369
144352
  },
144370
144353
  {
144371
- "name": "disabled-interactive",
144354
+ "kind": "method",
144355
+ "name": "renderIconSlot",
144356
+ "privacy": "protected",
144357
+ "return": {
144358
+ "type": {
144359
+ "text": "TemplateResult"
144360
+ }
144361
+ },
144362
+ "parameters": [
144363
+ {
144364
+ "name": "classname",
144365
+ "optional": true,
144366
+ "type": {
144367
+ "text": "string"
144368
+ }
144369
+ }
144370
+ ],
144371
+ "inheritedFrom": {
144372
+ "name": "SbbIconNameMixin",
144373
+ "module": "icon/icon-name-mixin.js"
144374
+ }
144375
+ },
144376
+ {
144377
+ "kind": "method",
144378
+ "name": "_renderIconName",
144379
+ "privacy": "private",
144380
+ "return": {
144381
+ "type": {
144382
+ "text": "string"
144383
+ }
144384
+ },
144385
+ "inheritedFrom": {
144386
+ "name": "SbbIconNameMixin",
144387
+ "module": "icon/icon-name-mixin.js"
144388
+ }
144389
+ },
144390
+ {
144391
+ "kind": "field",
144392
+ "name": "disabledInteractive",
144372
144393
  "type": {
144373
144394
  "text": "boolean"
144374
144395
  },
144396
+ "privacy": "public",
144375
144397
  "default": "false",
144376
144398
  "description": "Whether the button should be aria-disabled but stay interactive.",
144377
- "fieldName": "disabledInteractive",
144399
+ "attribute": "disabled-interactive",
144400
+ "reflects": true,
144378
144401
  "inheritedFrom": {
144379
144402
  "name": "SbbDisabledInteractiveMixin",
144380
144403
  "module": "core/mixins/disabled-mixin.js"
144381
144404
  }
144382
144405
  },
144383
144406
  {
144407
+ "kind": "field",
144384
144408
  "name": "disabled",
144409
+ "privacy": "public",
144385
144410
  "description": "Whether the component is disabled.",
144386
144411
  "default": "false",
144387
144412
  "type": {
144388
144413
  "text": "boolean"
144389
144414
  },
144390
- "fieldName": "disabled",
144415
+ "attribute": "disabled",
144416
+ "reflects": true,
144417
+ "inheritedFrom": {
144418
+ "name": "SbbDisabledMixin",
144419
+ "module": "core/mixins/disabled-mixin.js"
144420
+ }
144421
+ },
144422
+ {
144423
+ "kind": "field",
144424
+ "name": "#disabled",
144425
+ "privacy": "private",
144426
+ "type": {
144427
+ "text": "boolean"
144428
+ },
144429
+ "default": "false",
144430
+ "inheritedFrom": {
144431
+ "name": "SbbDisabledMixin",
144432
+ "module": "core/mixins/disabled-mixin.js"
144433
+ }
144434
+ },
144435
+ {
144436
+ "kind": "method",
144437
+ "name": "isDisabledExternally",
144438
+ "privacy": "protected",
144439
+ "return": {
144440
+ "type": {
144441
+ "text": "boolean"
144442
+ }
144443
+ },
144444
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
144391
144445
  "inheritedFrom": {
144392
144446
  "name": "SbbDisabledMixin",
144393
144447
  "module": "core/mixins/disabled-mixin.js"
144394
144448
  }
144395
144449
  },
144396
144450
  {
144451
+ "kind": "field",
144452
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
144453
+ "type": {
144454
+ "text": "array"
144455
+ },
144456
+ "privacy": "private",
144457
+ "readonly": true,
144458
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
144459
+ "inheritedFrom": {
144460
+ "name": "SbbButtonBaseElement",
144461
+ "module": "core/base-elements/button-base-element.js"
144462
+ }
144463
+ },
144464
+ {
144465
+ "kind": "field",
144397
144466
  "name": "value",
144398
144467
  "type": {
144399
144468
  "text": "string"
144400
144469
  },
144470
+ "privacy": "public",
144471
+ "inheritedFrom": {
144472
+ "name": "SbbButtonBaseElement",
144473
+ "module": "core/base-elements/button-base-element.js"
144474
+ },
144475
+ "default": "''",
144476
+ "description": "Value of the form element.",
144477
+ "attribute": "value"
144478
+ },
144479
+ {
144480
+ "kind": "field",
144481
+ "name": "type",
144482
+ "privacy": "public",
144483
+ "description": "The type attribute to use for the button.",
144484
+ "default": "'button'",
144485
+ "type": {
144486
+ "text": "SbbButtonType"
144487
+ },
144488
+ "attribute": "type",
144489
+ "inheritedFrom": {
144490
+ "name": "SbbButtonBaseElement",
144491
+ "module": "core/base-elements/button-base-element.js"
144492
+ }
144493
+ },
144494
+ {
144495
+ "kind": "field",
144496
+ "name": "form",
144497
+ "type": {
144498
+ "text": "HTMLFormElement | null"
144499
+ },
144500
+ "privacy": "public",
144501
+ "description": "The `<form>` element to associate the button with.",
144502
+ "inheritedFrom": {
144503
+ "name": "SbbButtonBaseElement",
144504
+ "module": "core/base-elements/button-base-element.js"
144505
+ },
144506
+ "attribute": "form"
144507
+ },
144508
+ {
144509
+ "kind": "field",
144510
+ "name": "_formId",
144511
+ "type": {
144512
+ "text": "string"
144513
+ },
144514
+ "privacy": "private",
144401
144515
  "default": "''",
144402
- "description": "Value of the form element.",
144403
- "fieldName": "value",
144404
144516
  "inheritedFrom": {
144405
144517
  "name": "SbbButtonBaseElement",
144406
144518
  "module": "core/base-elements/button-base-element.js"
144407
144519
  }
144408
144520
  },
144409
144521
  {
144410
- "name": "type",
144411
- "description": "The type attribute to use for the button.",
144412
- "default": "'button'",
144413
- "type": {
144414
- "text": "SbbButtonType"
144415
- },
144416
- "fieldName": "type",
144522
+ "kind": "field",
144523
+ "name": "_handleButtonClick",
144524
+ "privacy": "private",
144417
144525
  "inheritedFrom": {
144418
144526
  "name": "SbbButtonBaseElement",
144419
144527
  "module": "core/base-elements/button-base-element.js"
144420
144528
  }
144421
144529
  },
144422
144530
  {
144423
- "name": "form",
144424
- "description": "The `<form>` element to associate the button with.",
144425
- "type": {
144426
- "text": "HTMLFormElement | null"
144531
+ "kind": "method",
144532
+ "name": "_requestSubmit",
144533
+ "privacy": "private",
144534
+ "return": {
144535
+ "type": {
144536
+ "text": "void"
144537
+ }
144427
144538
  },
144428
- "fieldName": "form",
144539
+ "parameters": [
144540
+ {
144541
+ "name": "form",
144542
+ "type": {
144543
+ "text": "HTMLFormElement"
144544
+ }
144545
+ }
144546
+ ],
144429
144547
  "inheritedFrom": {
144430
144548
  "name": "SbbButtonBaseElement",
144431
144549
  "module": "core/base-elements/button-base-element.js"
144432
144550
  }
144433
144551
  },
144434
144552
  {
144435
- "name": "name",
144436
- "description": "Name of the form element. Will be read from name attribute.",
144437
- "type": {
144438
- "text": "string"
144439
- },
144440
- "fieldName": "name",
144441
- "inheritedFrom": {
144442
- "name": "SbbFormAssociatedMixin",
144443
- "module": "core/mixins/form-associated-mixin.js"
144444
- }
144445
- }
144446
- ],
144447
- "cssProperties": [
144448
- {
144449
- "description": "The delay before the loading animation starts, when setting the button into loading state.",
144450
- "name": "--sbb-button-loading-delay",
144451
- "default": "300ms",
144553
+ "kind": "field",
144554
+ "name": "_formKeyDown",
144555
+ "privacy": "private",
144452
144556
  "inheritedFrom": {
144453
- "name": "SbbSecondaryButtonElement",
144454
- "module": "button/secondary-button/secondary-button.component.js"
144557
+ "name": "SbbButtonBaseElement",
144558
+ "module": "core/base-elements/button-base-element.js"
144455
144559
  }
144456
- }
144457
- ]
144458
- }
144459
- ],
144460
- "exports": [
144461
- {
144462
- "kind": "js",
144463
- "name": "SbbSidebarCloseButtonElement",
144464
- "declaration": {
144465
- "name": "SbbSidebarCloseButtonElement",
144466
- "module": "sidebar/sidebar-close-button/sidebar-close-button.component.js"
144467
- }
144468
- }
144469
- ]
144470
- },
144471
- {
144472
- "kind": "javascript-module",
144473
- "path": "sidebar/sidebar/sidebar.component.js",
144474
- "declarations": [
144475
- {
144476
- "kind": "class",
144477
- "description": "This component corresponds to a sidebar that can be opened on the sidebar container.",
144478
- "name": "SbbSidebarElement",
144479
- "slots": [
144480
- {
144481
- "description": "Use the unnamed slot to slot any content into the sidebar.",
144482
- "name": ""
144483
144560
  },
144484
- {
144485
- "description": "Use the title slot to add an <sbb-title>.",
144486
- "name": "title"
144487
- }
144488
- ],
144489
- "members": [
144490
144561
  {
144491
144562
  "kind": "field",
144492
- "name": "elementName",
144563
+ "name": "formAssociated",
144493
144564
  "type": {
144494
- "text": "string"
144565
+ "text": "boolean"
144495
144566
  },
144496
144567
  "privacy": "public",
144497
144568
  "static": true,
144498
- "readonly": true,
144569
+ "default": "true",
144499
144570
  "inheritedFrom": {
144500
- "name": "SbbElement",
144501
- "module": "core/base-elements/element.js"
144502
- },
144503
- "default": "'sbb-sidebar'"
144571
+ "name": "SbbFormAssociatedMixin",
144572
+ "module": "core/mixins/form-associated-mixin.js"
144573
+ }
144504
144574
  },
144505
144575
  {
144506
144576
  "kind": "field",
144507
- "name": "color",
144508
- "type": {
144509
- "text": "'white' | 'milk'"
144510
- },
144577
+ "name": "name",
144511
144578
  "privacy": "public",
144512
- "default": "'white'",
144513
- "description": "Background color of the sidebar. Either `white` or `milk`.",
144514
- "attribute": "color",
144515
- "reflects": true
144516
- },
144517
- {
144518
- "kind": "field",
144519
- "name": "mode",
144579
+ "description": "Name of the form element. Will be read from name attribute.",
144520
144580
  "type": {
144521
- "text": "'side' | 'over'"
144581
+ "text": "string"
144522
144582
  },
144523
- "privacy": "public",
144524
- "default": "'side'",
144525
- "description": "Mode of the sidebar; one of 'side' or 'over'.",
144526
- "attribute": "mode",
144527
- "reflects": true
144583
+ "attribute": "name",
144584
+ "inheritedFrom": {
144585
+ "name": "SbbFormAssociatedMixin",
144586
+ "module": "core/mixins/form-associated-mixin.js"
144587
+ }
144528
144588
  },
144529
144589
  {
144530
144590
  "kind": "field",
144531
- "name": "position",
144591
+ "name": "validity",
144532
144592
  "type": {
144533
- "text": "'start' | 'end'"
144593
+ "text": "ValidityState"
144534
144594
  },
144535
144595
  "privacy": "public",
144536
- "default": "'start'",
144537
- "description": "The side that the sidebar is attached to.",
144538
- "attribute": "position",
144539
- "reflects": true
144596
+ "description": "Returns the ValidityState object for this element.",
144597
+ "readonly": true,
144598
+ "inheritedFrom": {
144599
+ "name": "SbbFormAssociatedMixin",
144600
+ "module": "core/mixins/form-associated-mixin.js"
144601
+ }
144540
144602
  },
144541
144603
  {
144542
144604
  "kind": "field",
144543
- "name": "opened",
144605
+ "name": "validationMessage",
144544
144606
  "type": {
144545
- "text": "boolean"
144607
+ "text": "string"
144546
144608
  },
144547
144609
  "privacy": "public",
144548
- "default": "false",
144549
- "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
144550
- "attribute": "opened",
144551
- "reflects": true
144610
+ "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.",
144611
+ "readonly": true,
144612
+ "inheritedFrom": {
144613
+ "name": "SbbFormAssociatedMixin",
144614
+ "module": "core/mixins/form-associated-mixin.js"
144615
+ }
144552
144616
  },
144553
144617
  {
144554
144618
  "kind": "field",
144555
- "name": "focusOnOpen",
144619
+ "name": "willValidate",
144556
144620
  "type": {
144557
144621
  "text": "boolean"
144558
144622
  },
144559
144623
  "privacy": "public",
144560
- "default": "false",
144561
- "description": "Whether the sidebar should focus the first focusable element automatically when opened.\nDefaults to false in when mode is set to `side`, otherwise defaults to true.\nIf explicitly enabled, focus will be moved into the sidebar in `side` mode as well.",
144562
- "attribute": "focus-on-open"
144563
- },
144564
- {
144565
- "kind": "field",
144566
- "name": "container",
144567
- "type": {
144568
- "text": "SbbSidebarContainerElement | null"
144569
- },
144570
- "privacy": "public",
144571
- "description": "Returns the SbbSidebarContainerElement where this sidebar is contained.",
144624
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
144572
144625
  "readonly": true,
144573
- "default": "null"
144626
+ "inheritedFrom": {
144627
+ "name": "SbbFormAssociatedMixin",
144628
+ "module": "core/mixins/form-associated-mixin.js"
144629
+ }
144574
144630
  },
144575
144631
  {
144576
144632
  "kind": "field",
144577
- "name": "_container",
144578
- "type": {
144579
- "text": "SbbSidebarContainerElement | null"
144580
- },
144633
+ "name": "_validityStates",
144581
144634
  "privacy": "private",
144582
- "default": "null"
144635
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
144636
+ "inheritedFrom": {
144637
+ "name": "SbbFormAssociatedMixin",
144638
+ "module": "core/mixins/form-associated-mixin.js"
144639
+ }
144583
144640
  },
144584
144641
  {
144585
144642
  "kind": "field",
144586
- "name": "_lastFocusedElement",
144643
+ "name": "formDisabled",
144587
144644
  "type": {
144588
- "text": "HTMLElement | null"
144589
- },
144590
- "privacy": "private",
144591
- "default": "null"
144592
- },
144593
- {
144594
- "kind": "field",
144595
- "name": "_focusTrapController",
144596
- "privacy": "private",
144597
- "default": "new SbbFocusTrapController(this)"
144598
- },
144599
- {
144600
- "kind": "field",
144601
- "name": "_escapableOverlayController",
144602
- "privacy": "private",
144603
- "default": "new SbbEscapableOverlayController(this)"
144604
- },
144605
- {
144606
- "kind": "field",
144607
- "name": "_closeOnNavigation",
144608
- "privacy": "private"
144609
- },
144610
- {
144611
- "kind": "method",
144612
- "name": "toggle",
144613
- "privacy": "public",
144614
- "return": {
144615
- "type": {
144616
- "text": "void"
144617
- }
144645
+ "text": "boolean"
144618
144646
  },
144619
- "description": "Toggles the sidebar visibility."
144647
+ "privacy": "protected",
144648
+ "default": "false",
144649
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
144650
+ "inheritedFrom": {
144651
+ "name": "SbbFormAssociatedMixin",
144652
+ "module": "core/mixins/form-associated-mixin.js"
144653
+ }
144620
144654
  },
144621
144655
  {
144622
144656
  "kind": "method",
144623
- "name": "open",
144657
+ "name": "checkValidity",
144624
144658
  "privacy": "public",
144625
144659
  "return": {
144626
144660
  "type": {
144627
- "text": "void"
144661
+ "text": "boolean"
144628
144662
  }
144629
144663
  },
144630
- "description": "Opens the sidebar.",
144664
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
144631
144665
  "inheritedFrom": {
144632
- "name": "SbbOpenCloseBaseElement",
144633
- "module": "core/base-elements/open-close-base-element.js"
144666
+ "name": "SbbFormAssociatedMixin",
144667
+ "module": "core/mixins/form-associated-mixin.js"
144634
144668
  }
144635
144669
  },
144636
144670
  {
144637
144671
  "kind": "method",
144638
- "name": "_isZeroAnimationDuration",
144639
- "privacy": "private",
144672
+ "name": "reportValidity",
144673
+ "privacy": "public",
144640
144674
  "return": {
144641
144675
  "type": {
144642
144676
  "text": "boolean"
144643
144677
  }
144678
+ },
144679
+ "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.",
144680
+ "inheritedFrom": {
144681
+ "name": "SbbFormAssociatedMixin",
144682
+ "module": "core/mixins/form-associated-mixin.js"
144644
144683
  }
144645
144684
  },
144646
144685
  {
144647
144686
  "kind": "method",
144648
- "name": "_handleOpening",
144649
- "privacy": "private",
144650
- "return": {
144651
- "type": {
144652
- "text": "void"
144653
- }
144654
- }
144655
- },
144656
- {
144657
- "kind": "method",
144658
- "name": "close",
144687
+ "name": "setCustomValidity",
144659
144688
  "privacy": "public",
144660
144689
  "return": {
144661
144690
  "type": {
144662
144691
  "text": "void"
144663
144692
  }
144664
144693
  },
144665
- "description": "Closes the sidebar.",
144694
+ "parameters": [
144695
+ {
144696
+ "name": "message",
144697
+ "type": {
144698
+ "text": "string"
144699
+ }
144700
+ }
144701
+ ],
144702
+ "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.",
144666
144703
  "inheritedFrom": {
144667
- "name": "SbbOpenCloseBaseElement",
144668
- "module": "core/base-elements/open-close-base-element.js"
144704
+ "name": "SbbFormAssociatedMixin",
144705
+ "module": "core/mixins/form-associated-mixin.js"
144669
144706
  }
144670
144707
  },
144671
144708
  {
144672
144709
  "kind": "method",
144673
- "name": "_handleClosing",
144710
+ "name": "_hasDisabledAncestor",
144674
144711
  "privacy": "private",
144675
144712
  "return": {
144676
144713
  "type": {
144677
- "text": "void"
144714
+ "text": "boolean"
144678
144715
  }
144716
+ },
144717
+ "inheritedFrom": {
144718
+ "name": "SbbFormAssociatedMixin",
144719
+ "module": "core/mixins/form-associated-mixin.js"
144679
144720
  }
144680
144721
  },
144681
144722
  {
144682
144723
  "kind": "method",
144683
- "name": "_takeFocus",
144684
- "privacy": "private",
144724
+ "name": "updateFormValue",
144725
+ "privacy": "protected",
144685
144726
  "return": {
144686
144727
  "type": {
144687
144728
  "text": "void"
144688
144729
  }
144730
+ },
144731
+ "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",
144732
+ "inheritedFrom": {
144733
+ "name": "SbbFormAssociatedMixin",
144734
+ "module": "core/mixins/form-associated-mixin.js"
144689
144735
  }
144690
144736
  },
144691
144737
  {
144692
144738
  "kind": "method",
144693
- "name": "cedeFocus",
144739
+ "name": "formState",
144694
144740
  "privacy": "protected",
144695
144741
  "return": {
144696
144742
  "type": {
144697
- "text": "void"
144743
+ "text": "FormRestoreState"
144698
144744
  }
144745
+ },
144746
+ "inheritedFrom": {
144747
+ "name": "SbbFormAssociatedMixin",
144748
+ "module": "core/mixins/form-associated-mixin.js"
144699
144749
  }
144700
144750
  },
144701
144751
  {
144702
144752
  "kind": "method",
144703
- "name": "_updateSidebarWidth",
144704
- "privacy": "private",
144753
+ "name": "setValidityFlag",
144754
+ "privacy": "protected",
144705
144755
  "return": {
144706
144756
  "type": {
144707
144757
  "text": "void"
@@ -144709,44 +144759,35 @@
144709
144759
  },
144710
144760
  "parameters": [
144711
144761
  {
144712
- "name": "oldPosition",
144713
- "optional": true,
144762
+ "name": "flag",
144714
144763
  "type": {
144715
- "text": "this['position']"
144764
+ "text": "T"
144716
144765
  }
144717
- }
144718
- ]
144719
- },
144720
- {
144721
- "kind": "method",
144722
- "name": "_buildCssWidthVar",
144723
- "privacy": "private",
144724
- "return": {
144725
- "type": {
144726
- "text": "string"
144727
- }
144728
- },
144729
- "parameters": [
144766
+ },
144730
144767
  {
144731
- "name": "position",
144732
- "default": "this.position"
144733
- }
144734
- ]
144735
- },
144736
- {
144737
- "kind": "method",
144738
- "name": "_isModeOver",
144739
- "privacy": "private",
144740
- "return": {
144741
- "type": {
144742
- "text": "boolean"
144768
+ "name": "message",
144769
+ "type": {
144770
+ "text": "string"
144771
+ }
144772
+ },
144773
+ {
144774
+ "name": "flagValue",
144775
+ "optional": true,
144776
+ "type": {
144777
+ "text": "ValidityStateFlags[T]"
144778
+ }
144743
144779
  }
144780
+ ],
144781
+ "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).",
144782
+ "inheritedFrom": {
144783
+ "name": "SbbFormAssociatedMixin",
144784
+ "module": "core/mixins/form-associated-mixin.js"
144744
144785
  }
144745
144786
  },
144746
144787
  {
144747
144788
  "kind": "method",
144748
- "name": "_onTransitionEnd",
144749
- "privacy": "private",
144789
+ "name": "removeValidityFlag",
144790
+ "privacy": "protected",
144750
144791
  "return": {
144751
144792
  "type": {
144752
144793
  "text": "void"
@@ -144754,230 +144795,173 @@
144754
144795
  },
144755
144796
  "parameters": [
144756
144797
  {
144757
- "name": "event",
144798
+ "name": "flag",
144758
144799
  "type": {
144759
- "text": "TransitionEvent"
144800
+ "text": "T"
144760
144801
  }
144761
144802
  }
144762
- ]
144763
- },
144764
- {
144765
- "kind": "method",
144766
- "name": "_detectScrolledState",
144767
- "privacy": "private",
144768
- "return": {
144769
- "type": {
144770
- "text": "void"
144771
- }
144772
- }
144773
- },
144774
- {
144775
- "kind": "field",
144776
- "name": "isAnimating",
144777
- "type": {
144778
- "text": "boolean"
144779
- },
144780
- "privacy": "public",
144781
- "default": "false",
144782
- "description": "Whether the component is currently animating.",
144783
- "inheritedFrom": {
144784
- "name": "SbbAnimationCompleteMixin",
144785
- "module": "core/mixins/animation-complete-mixin.js"
144786
- }
144787
- },
144788
- {
144789
- "kind": "field",
144790
- "name": "animationComplete",
144791
- "type": {
144792
- "text": "Promise<void>"
144793
- },
144794
- "privacy": "public",
144795
- "description": "Returns a promise which completes whenever an animation ends.\nWhen a new animation starts, a new Promise is returned.",
144796
- "readonly": true,
144797
- "inheritedFrom": {
144798
- "name": "SbbAnimationCompleteMixin",
144799
- "module": "core/mixins/animation-complete-mixin.js"
144800
- }
144801
- },
144802
- {
144803
- "kind": "field",
144804
- "name": "_animationPromise",
144805
- "type": {
144806
- "text": "Promise<void>"
144807
- },
144808
- "privacy": "private",
144803
+ ],
144804
+ "description": "Removes the validity state flag entry and updates validity state.",
144809
144805
  "inheritedFrom": {
144810
- "name": "SbbAnimationCompleteMixin",
144811
- "module": "core/mixins/animation-complete-mixin.js"
144806
+ "name": "SbbFormAssociatedMixin",
144807
+ "module": "core/mixins/form-associated-mixin.js"
144812
144808
  }
144813
144809
  },
144814
144810
  {
144815
144811
  "kind": "method",
144816
- "name": "startAnimation",
144812
+ "name": "validate",
144817
144813
  "privacy": "protected",
144818
144814
  "return": {
144819
144815
  "type": {
144820
144816
  "text": "void"
144821
144817
  }
144822
144818
  },
144819
+ "description": "To be called whenever the current element needs to be validated.",
144823
144820
  "inheritedFrom": {
144824
- "name": "SbbAnimationCompleteMixin",
144825
- "module": "core/mixins/animation-complete-mixin.js"
144821
+ "name": "SbbFormAssociatedMixin",
144822
+ "module": "core/mixins/form-associated-mixin.js"
144826
144823
  }
144827
144824
  },
144828
144825
  {
144829
144826
  "kind": "method",
144830
- "name": "stopAnimation",
144827
+ "name": "shouldValidate",
144831
144828
  "privacy": "protected",
144832
144829
  "return": {
144833
144830
  "type": {
144834
- "text": "void"
144831
+ "text": "boolean"
144835
144832
  }
144836
144833
  },
144837
- "description": "Overriding stopAnimation() breaks functionality.",
144834
+ "parameters": [
144835
+ {
144836
+ "name": "name",
144837
+ "type": {
144838
+ "text": "PropertyKey | undefined"
144839
+ }
144840
+ }
144841
+ ],
144842
+ "description": "Whether validation should be run on a property change with the given name.",
144838
144843
  "inheritedFrom": {
144839
- "name": "SbbAnimationCompleteMixin",
144840
- "module": "core/mixins/animation-complete-mixin.js"
144844
+ "name": "SbbFormAssociatedMixin",
144845
+ "module": "core/mixins/form-associated-mixin.js"
144841
144846
  }
144842
144847
  },
144843
144848
  {
144844
144849
  "kind": "method",
144845
- "name": "_enqueueAnimation",
144850
+ "name": "_setInternalValidity",
144846
144851
  "privacy": "private",
144847
144852
  "return": {
144848
144853
  "type": {
144849
- "text": "Promise<void>"
144854
+ "text": "void"
144850
144855
  }
144851
144856
  },
144852
144857
  "inheritedFrom": {
144853
- "name": "SbbAnimationCompleteMixin",
144854
- "module": "core/mixins/animation-complete-mixin.js"
144858
+ "name": "SbbFormAssociatedMixin",
144859
+ "module": "core/mixins/form-associated-mixin.js"
144855
144860
  }
144856
144861
  },
144857
144862
  {
144858
144863
  "kind": "field",
144859
- "name": "events",
144860
- "privacy": "public",
144861
- "static": true,
144862
- "readonly": true,
144863
- "default": "{ beforeopen: 'beforeopen', open: 'open', beforeclose: 'beforeclose', close: 'close', }",
144864
+ "name": "role",
144864
144865
  "type": {
144865
- "text": "{\n beforeopen: 'beforeopen',\n open: 'open',\n beforeclose: 'beforeclose',\n close: 'close',\n }"
144866
+ "text": "ElementInternals['role']"
144866
144867
  },
144868
+ "privacy": "public",
144869
+ "static": true,
144867
144870
  "inheritedFrom": {
144868
- "name": "SbbOpenCloseBaseElement",
144869
- "module": "core/base-elements/open-close-base-element.js"
144870
- }
144871
- },
144872
- {
144873
- "kind": "field",
144874
- "name": "state",
144875
- "privacy": "protected",
144876
- "description": "The state of the component.",
144877
- "type": {
144878
- "text": "SbbOpenedClosedState"
144871
+ "name": "SbbElement",
144872
+ "module": "core/base-elements/element.js"
144879
144873
  },
144880
- "default": "'closed'",
144881
- "inheritedFrom": {
144882
- "name": "SbbOpenCloseBaseElement",
144883
- "module": "core/base-elements/open-close-base-element.js"
144884
- }
144874
+ "readonly": true,
144875
+ "default": "'button'"
144885
144876
  },
144886
144877
  {
144887
144878
  "kind": "field",
144888
- "name": "_state",
144889
- "type": {
144890
- "text": "SbbOpenedClosedState"
144891
- },
144879
+ "name": "_preventScrollOnSpaceKeydown",
144892
144880
  "privacy": "private",
144881
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
144882
+ "parameters": [
144883
+ {
144884
+ "description": "The origin event.",
144885
+ "name": "event"
144886
+ }
144887
+ ],
144893
144888
  "inheritedFrom": {
144894
- "name": "SbbOpenCloseBaseElement",
144895
- "module": "core/base-elements/open-close-base-element.js"
144889
+ "name": "SbbButtonLikeBaseElement",
144890
+ "module": "core/base-elements/button-base-element.js"
144896
144891
  }
144897
144892
  },
144898
144893
  {
144899
144894
  "kind": "field",
144900
- "name": "isOpen",
144901
- "type": {
144902
- "text": "boolean"
144903
- },
144904
- "privacy": "public",
144905
- "description": "Whether the element is open.",
144906
- "readonly": true,
144895
+ "name": "_removeActiveMarker",
144896
+ "privacy": "private",
144907
144897
  "inheritedFrom": {
144908
- "name": "SbbOpenCloseBaseElement",
144909
- "module": "core/base-elements/open-close-base-element.js"
144898
+ "name": "SbbButtonLikeBaseElement",
144899
+ "module": "core/base-elements/button-base-element.js"
144910
144900
  }
144911
144901
  },
144912
144902
  {
144913
- "kind": "method",
144914
- "name": "escapeStrategy",
144915
- "privacy": "public",
144916
- "return": {
144917
- "type": {
144918
- "text": "void"
144903
+ "kind": "field",
144904
+ "name": "_dispatchClickEventOnSpaceKeyup",
144905
+ "privacy": "private",
144906
+ "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.",
144907
+ "parameters": [
144908
+ {
144909
+ "description": "The origin event.",
144910
+ "name": "event"
144919
144911
  }
144920
- },
144921
- "description": "The method which is called on escape key press. Defaults to calling close()",
144912
+ ],
144922
144913
  "inheritedFrom": {
144923
- "name": "SbbOpenCloseBaseElement",
144924
- "module": "core/base-elements/open-close-base-element.js"
144914
+ "name": "SbbButtonLikeBaseElement",
144915
+ "module": "core/base-elements/button-base-element.js"
144925
144916
  }
144926
144917
  },
144927
144918
  {
144928
- "kind": "method",
144929
- "name": "dispatchBeforeOpenEvent",
144930
- "privacy": "protected",
144931
- "return": {
144932
- "type": {
144933
- "text": "boolean"
144934
- }
144935
- },
144919
+ "kind": "field",
144920
+ "name": "_dispatchClickEvent",
144921
+ "privacy": "private",
144936
144922
  "inheritedFrom": {
144937
- "name": "SbbOpenCloseBaseElement",
144938
- "module": "core/base-elements/open-close-base-element.js"
144923
+ "name": "SbbButtonLikeBaseElement",
144924
+ "module": "core/base-elements/button-base-element.js"
144939
144925
  }
144940
144926
  },
144941
144927
  {
144942
- "kind": "method",
144943
- "name": "dispatchOpenEvent",
144944
- "privacy": "protected",
144945
- "return": {
144946
- "type": {
144947
- "text": "boolean"
144948
- }
144928
+ "kind": "field",
144929
+ "name": "maybeDisabled",
144930
+ "type": {
144931
+ "text": "boolean | undefined"
144949
144932
  },
144933
+ "privacy": "protected",
144934
+ "readonly": true,
144950
144935
  "inheritedFrom": {
144951
- "name": "SbbOpenCloseBaseElement",
144952
- "module": "core/base-elements/open-close-base-element.js"
144936
+ "name": "SbbActionBaseElement",
144937
+ "module": "core/base-elements/action-base-element.js"
144953
144938
  }
144954
144939
  },
144955
144940
  {
144956
- "kind": "method",
144957
- "name": "dispatchBeforeCloseEvent",
144958
- "privacy": "protected",
144959
- "return": {
144960
- "type": {
144961
- "text": "boolean"
144962
- }
144941
+ "kind": "field",
144942
+ "name": "maybeDisabledInteractive",
144943
+ "type": {
144944
+ "text": "boolean | undefined"
144963
144945
  },
144946
+ "privacy": "protected",
144947
+ "readonly": true,
144964
144948
  "inheritedFrom": {
144965
- "name": "SbbOpenCloseBaseElement",
144966
- "module": "core/base-elements/open-close-base-element.js"
144949
+ "name": "SbbActionBaseElement",
144950
+ "module": "core/base-elements/action-base-element.js"
144967
144951
  }
144968
144952
  },
144969
144953
  {
144970
144954
  "kind": "method",
144971
- "name": "dispatchCloseEvent",
144955
+ "name": "setupBaseEventHandlers",
144972
144956
  "privacy": "protected",
144973
144957
  "return": {
144974
144958
  "type": {
144975
- "text": "boolean"
144959
+ "text": "void"
144976
144960
  }
144977
144961
  },
144978
144962
  "inheritedFrom": {
144979
- "name": "SbbOpenCloseBaseElement",
144980
- "module": "core/base-elements/open-close-base-element.js"
144963
+ "name": "SbbActionBaseElement",
144964
+ "module": "core/base-elements/action-base-element.js"
144981
144965
  }
144982
144966
  },
144983
144967
  {
@@ -144994,32 +144978,6 @@
144994
144978
  "module": "core/base-elements/element.js"
144995
144979
  }
144996
144980
  },
144997
- {
144998
- "kind": "field",
144999
- "name": "elementDependencies",
145000
- "type": {
145001
- "text": "SbbElementType[] | undefined"
145002
- },
145003
- "privacy": "public",
145004
- "static": true,
145005
- "inheritedFrom": {
145006
- "name": "SbbElement",
145007
- "module": "core/base-elements/element.js"
145008
- }
145009
- },
145010
- {
145011
- "kind": "field",
145012
- "name": "role",
145013
- "type": {
145014
- "text": "ElementInternals['role'] | undefined"
145015
- },
145016
- "privacy": "public",
145017
- "static": true,
145018
- "inheritedFrom": {
145019
- "name": "SbbElement",
145020
- "module": "core/base-elements/element.js"
145021
- }
145022
- },
145023
144981
  {
145024
144982
  "kind": "field",
145025
144983
  "name": "_controllers",
@@ -145240,108 +145198,150 @@
145240
145198
  }
145241
145199
  }
145242
145200
  ],
145201
+ "superclass": {
145202
+ "name": "SbbSecondaryButtonElement",
145203
+ "module": "button.pure.js"
145204
+ },
145205
+ "tagName": "sbb-sidebar-close-button",
145206
+ "customElement": true,
145243
145207
  "attributes": [
145244
145208
  {
145245
- "name": "color",
145209
+ "name": "size",
145246
145210
  "type": {
145247
- "text": "'white' | 'milk'"
145211
+ "text": "SbbButtonSize"
145248
145212
  },
145249
- "default": "'white'",
145250
- "description": "Background color of the sidebar. Either `white` or `milk`.",
145251
- "fieldName": "color"
145213
+ "description": "Size variant, either l, m or s.",
145214
+ "default": "'l' / 's' (lean)",
145215
+ "fieldName": "size",
145216
+ "inheritedFrom": {
145217
+ "name": "SbbButtonCommonElementMixin",
145218
+ "module": "button/common/button-common.js"
145219
+ }
145252
145220
  },
145253
145221
  {
145254
- "name": "mode",
145222
+ "name": "loading",
145255
145223
  "type": {
145256
- "text": "'side' | 'over'"
145224
+ "text": "boolean"
145257
145225
  },
145258
- "default": "'side'",
145259
- "description": "Mode of the sidebar; one of 'side' or 'over'.",
145260
- "fieldName": "mode"
145226
+ "default": "false",
145227
+ "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.",
145228
+ "fieldName": "loading",
145229
+ "inheritedFrom": {
145230
+ "name": "SbbButtonCommonElementMixin",
145231
+ "module": "button/common/button-common.js"
145232
+ }
145261
145233
  },
145262
145234
  {
145263
- "name": "position",
145235
+ "name": "negative",
145264
145236
  "type": {
145265
- "text": "'start' | 'end'"
145237
+ "text": "boolean"
145266
145238
  },
145267
- "default": "'start'",
145268
- "description": "The side that the sidebar is attached to.",
145269
- "fieldName": "position"
145239
+ "default": "false",
145240
+ "description": "Negative coloring variant flag.",
145241
+ "fieldName": "negative",
145242
+ "inheritedFrom": {
145243
+ "name": "SbbNegativeMixin",
145244
+ "module": "core/mixins/negative-mixin.js"
145245
+ }
145270
145246
  },
145271
145247
  {
145272
- "name": "opened",
145248
+ "name": "icon-name",
145273
145249
  "type": {
145274
- "text": "boolean"
145250
+ "text": "string"
145275
145251
  },
145276
- "default": "false",
145277
- "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
145278
- "fieldName": "opened"
145252
+ "default": "''",
145253
+ "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.",
145254
+ "fieldName": "iconName",
145255
+ "inheritedFrom": {
145256
+ "name": "SbbIconNameMixin",
145257
+ "module": "icon/icon-name-mixin.js"
145258
+ }
145279
145259
  },
145280
145260
  {
145281
- "name": "focus-on-open",
145261
+ "name": "disabled-interactive",
145282
145262
  "type": {
145283
145263
  "text": "boolean"
145284
145264
  },
145285
145265
  "default": "false",
145286
- "description": "Whether the sidebar should focus the first focusable element automatically when opened.\nDefaults to false in when mode is set to `side`, otherwise defaults to true.\nIf explicitly enabled, focus will be moved into the sidebar in `side` mode as well.",
145287
- "fieldName": "focusOnOpen"
145288
- }
145289
- ],
145290
- "mixins": [
145266
+ "description": "Whether the button should be aria-disabled but stay interactive.",
145267
+ "fieldName": "disabledInteractive",
145268
+ "inheritedFrom": {
145269
+ "name": "SbbDisabledInteractiveMixin",
145270
+ "module": "core/mixins/disabled-mixin.js"
145271
+ }
145272
+ },
145291
145273
  {
145292
- "name": "SbbAnimationCompleteMixin",
145293
- "module": "core.js"
145294
- }
145295
- ],
145296
- "superclass": {
145297
- "name": "SbbOpenCloseBaseElement",
145298
- "module": "core.js"
145299
- },
145300
- "tagName": "sbb-sidebar",
145301
- "customElement": true,
145302
- "events": [
145274
+ "name": "disabled",
145275
+ "description": "Whether the component is disabled.",
145276
+ "default": "false",
145277
+ "type": {
145278
+ "text": "boolean"
145279
+ },
145280
+ "fieldName": "disabled",
145281
+ "inheritedFrom": {
145282
+ "name": "SbbDisabledMixin",
145283
+ "module": "core/mixins/disabled-mixin.js"
145284
+ }
145285
+ },
145303
145286
  {
145304
- "name": "beforeopen",
145287
+ "name": "value",
145305
145288
  "type": {
145306
- "text": "Event"
145289
+ "text": "string"
145307
145290
  },
145308
- "description": "Emits whenever the component starts the opening transition. Can be canceled.",
145291
+ "default": "''",
145292
+ "description": "Value of the form element.",
145293
+ "fieldName": "value",
145309
145294
  "inheritedFrom": {
145310
- "name": "SbbOpenCloseBaseElement",
145311
- "module": "core/base-elements/open-close-base-element.js"
145295
+ "name": "SbbButtonBaseElement",
145296
+ "module": "core/base-elements/button-base-element.js"
145312
145297
  }
145313
145298
  },
145314
145299
  {
145315
- "name": "open",
145300
+ "name": "type",
145301
+ "description": "The type attribute to use for the button.",
145302
+ "default": "'button'",
145316
145303
  "type": {
145317
- "text": "Event"
145304
+ "text": "SbbButtonType"
145318
145305
  },
145319
- "description": "Emits whenever the component is opened.",
145306
+ "fieldName": "type",
145320
145307
  "inheritedFrom": {
145321
- "name": "SbbOpenCloseBaseElement",
145322
- "module": "core/base-elements/open-close-base-element.js"
145308
+ "name": "SbbButtonBaseElement",
145309
+ "module": "core/base-elements/button-base-element.js"
145323
145310
  }
145324
145311
  },
145325
145312
  {
145326
- "name": "beforeclose",
145313
+ "name": "form",
145314
+ "description": "The `<form>` element to associate the button with.",
145327
145315
  "type": {
145328
- "text": "Event"
145316
+ "text": "HTMLFormElement | null"
145329
145317
  },
145330
- "description": "Emits whenever the component begins the closing transition. Can be canceled.",
145318
+ "fieldName": "form",
145331
145319
  "inheritedFrom": {
145332
- "name": "SbbOpenCloseBaseElement",
145333
- "module": "core/base-elements/open-close-base-element.js"
145320
+ "name": "SbbButtonBaseElement",
145321
+ "module": "core/base-elements/button-base-element.js"
145334
145322
  }
145335
145323
  },
145336
145324
  {
145337
- "name": "close",
145325
+ "name": "name",
145326
+ "description": "Name of the form element. Will be read from name attribute.",
145338
145327
  "type": {
145339
- "text": "Event"
145328
+ "text": "string"
145340
145329
  },
145341
- "description": "Emits whenever the component is closed.",
145330
+ "fieldName": "name",
145342
145331
  "inheritedFrom": {
145343
- "name": "SbbOpenCloseBaseElement",
145344
- "module": "core/base-elements/open-close-base-element.js"
145332
+ "name": "SbbFormAssociatedMixin",
145333
+ "module": "core/mixins/form-associated-mixin.js"
145334
+ }
145335
+ }
145336
+ ],
145337
+ "cssProperties": [
145338
+ {
145339
+ "description": "The delay before the loading animation starts, when setting the button into loading state.",
145340
+ "name": "--sbb-button-loading-delay",
145341
+ "default": "300ms",
145342
+ "inheritedFrom": {
145343
+ "name": "SbbSecondaryButtonElement",
145344
+ "module": "button/secondary-button/secondary-button.component.js"
145345
145345
  }
145346
145346
  }
145347
145347
  ]
@@ -145350,10 +145350,10 @@
145350
145350
  "exports": [
145351
145351
  {
145352
145352
  "kind": "js",
145353
- "name": "SbbSidebarElement",
145353
+ "name": "SbbSidebarCloseButtonElement",
145354
145354
  "declaration": {
145355
- "name": "SbbSidebarElement",
145356
- "module": "sidebar/sidebar/sidebar.component.js"
145355
+ "name": "SbbSidebarCloseButtonElement",
145356
+ "module": "sidebar/sidebar-close-button/sidebar-close-button.component.js"
145357
145357
  }
145358
145358
  }
145359
145359
  ]