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

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