@sbb-esta/lyne-elements-dev 4.9.0-dev.1775547473 → 4.10.0-dev.1775549890

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.
@@ -9403,205 +9403,6 @@
9403
9403
  }
9404
9404
  ]
9405
9405
  },
9406
- {
9407
- "kind": "javascript-module",
9408
- "path": "chip-label/chip-label.component.js",
9409
- "declarations": [
9410
- {
9411
- "kind": "class",
9412
- "description": "It displays brief and compact information.",
9413
- "name": "SbbChipLabelElement",
9414
- "slots": [
9415
- {
9416
- "description": "Use the unnamed slot to add content to the `sbb-chip-label`.",
9417
- "name": ""
9418
- }
9419
- ],
9420
- "members": [
9421
- {
9422
- "kind": "field",
9423
- "name": "elementName",
9424
- "type": {
9425
- "text": "string"
9426
- },
9427
- "privacy": "public",
9428
- "static": true,
9429
- "readonly": true,
9430
- "default": "'sbb-chip-label'",
9431
- "inheritedFrom": {
9432
- "name": "SbbElement",
9433
- "module": "core/base-elements/element.js"
9434
- }
9435
- },
9436
- {
9437
- "kind": "field",
9438
- "name": "size",
9439
- "type": {
9440
- "text": "'xxs' | 'xs' | 's'"
9441
- },
9442
- "privacy": "public",
9443
- "default": "'xxs'",
9444
- "description": "Size of the chip.",
9445
- "attribute": "size",
9446
- "reflects": true
9447
- },
9448
- {
9449
- "kind": "field",
9450
- "name": "color",
9451
- "type": {
9452
- "text": "'milk' | 'charcoal' | 'white' | 'granite'"
9453
- },
9454
- "privacy": "public",
9455
- "default": "'milk'",
9456
- "description": "Color of the chip.",
9457
- "attribute": "color",
9458
- "reflects": true
9459
- },
9460
- {
9461
- "kind": "field",
9462
- "name": "_hydrationRequired",
9463
- "type": {
9464
- "text": "boolean"
9465
- },
9466
- "privacy": "private",
9467
- "default": "!!this.shadowRoot",
9468
- "inheritedFrom": {
9469
- "name": "SbbHydrationMixin",
9470
- "module": "core/mixins/hydration-mixin.js"
9471
- }
9472
- },
9473
- {
9474
- "kind": "field",
9475
- "name": "_hydrationComplete",
9476
- "privacy": "private",
9477
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
9478
- "inheritedFrom": {
9479
- "name": "SbbHydrationMixin",
9480
- "module": "core/mixins/hydration-mixin.js"
9481
- }
9482
- },
9483
- {
9484
- "kind": "field",
9485
- "name": "_resolveHydration",
9486
- "type": {
9487
- "text": "(hydrationRequired: boolean) => void"
9488
- },
9489
- "privacy": "private",
9490
- "inheritedFrom": {
9491
- "name": "SbbHydrationMixin",
9492
- "module": "core/mixins/hydration-mixin.js"
9493
- }
9494
- },
9495
- {
9496
- "kind": "field",
9497
- "name": "hydrationRequired",
9498
- "type": {
9499
- "text": "boolean"
9500
- },
9501
- "privacy": "protected",
9502
- "description": "Returns whether hydration is required and not completed.",
9503
- "readonly": true,
9504
- "inheritedFrom": {
9505
- "name": "SbbHydrationMixin",
9506
- "module": "core/mixins/hydration-mixin.js"
9507
- },
9508
- "default": "!!this.shadowRoot"
9509
- },
9510
- {
9511
- "kind": "method",
9512
- "name": "toggleState",
9513
- "privacy": "protected",
9514
- "return": {
9515
- "type": {
9516
- "text": "void"
9517
- }
9518
- },
9519
- "parameters": [
9520
- {
9521
- "name": "value",
9522
- "type": {
9523
- "text": "string"
9524
- }
9525
- },
9526
- {
9527
- "name": "force",
9528
- "optional": true,
9529
- "type": {
9530
- "text": "boolean"
9531
- }
9532
- }
9533
- ],
9534
- "inheritedFrom": {
9535
- "name": "SbbElementInternalsMixin",
9536
- "module": "core/mixins/element-internals-mixin.js"
9537
- }
9538
- },
9539
- {
9540
- "kind": "field",
9541
- "name": "['_$sbbElement$']",
9542
- "type": {
9543
- "text": "boolean"
9544
- },
9545
- "privacy": "public",
9546
- "static": true,
9547
- "default": "true",
9548
- "inheritedFrom": {
9549
- "name": "SbbElement",
9550
- "module": "core/base-elements/element.js"
9551
- }
9552
- },
9553
- {
9554
- "kind": "field",
9555
- "name": "_controllers",
9556
- "type": {
9557
- "text": "Set<SbbReactiveController> | undefined"
9558
- },
9559
- "privacy": "private",
9560
- "inheritedFrom": {
9561
- "name": "SbbElement",
9562
- "module": "core/base-elements/element.js"
9563
- }
9564
- }
9565
- ],
9566
- "attributes": [
9567
- {
9568
- "name": "size",
9569
- "type": {
9570
- "text": "'xxs' | 'xs' | 's'"
9571
- },
9572
- "default": "'xxs'",
9573
- "description": "Size of the chip.",
9574
- "fieldName": "size"
9575
- },
9576
- {
9577
- "name": "color",
9578
- "type": {
9579
- "text": "'milk' | 'charcoal' | 'white' | 'granite'"
9580
- },
9581
- "default": "'milk'",
9582
- "description": "Color of the chip.",
9583
- "fieldName": "color"
9584
- }
9585
- ],
9586
- "superclass": {
9587
- "name": "SbbElement",
9588
- "module": "core/base-elements.js"
9589
- },
9590
- "tagName": "sbb-chip-label",
9591
- "customElement": true
9592
- }
9593
- ],
9594
- "exports": [
9595
- {
9596
- "kind": "js",
9597
- "name": "SbbChipLabelElement",
9598
- "declaration": {
9599
- "name": "SbbChipLabelElement",
9600
- "module": "chip-label/chip-label.component.js"
9601
- }
9602
- }
9603
- ]
9604
- },
9605
9406
  {
9606
9407
  "kind": "javascript-module",
9607
9408
  "path": "clock/clock.component.js",
@@ -10032,6 +9833,205 @@
10032
9833
  }
10033
9834
  ]
10034
9835
  },
9836
+ {
9837
+ "kind": "javascript-module",
9838
+ "path": "chip-label/chip-label.component.js",
9839
+ "declarations": [
9840
+ {
9841
+ "kind": "class",
9842
+ "description": "It displays brief and compact information.",
9843
+ "name": "SbbChipLabelElement",
9844
+ "slots": [
9845
+ {
9846
+ "description": "Use the unnamed slot to add content to the `sbb-chip-label`.",
9847
+ "name": ""
9848
+ }
9849
+ ],
9850
+ "members": [
9851
+ {
9852
+ "kind": "field",
9853
+ "name": "elementName",
9854
+ "type": {
9855
+ "text": "string"
9856
+ },
9857
+ "privacy": "public",
9858
+ "static": true,
9859
+ "readonly": true,
9860
+ "default": "'sbb-chip-label'",
9861
+ "inheritedFrom": {
9862
+ "name": "SbbElement",
9863
+ "module": "core/base-elements/element.js"
9864
+ }
9865
+ },
9866
+ {
9867
+ "kind": "field",
9868
+ "name": "size",
9869
+ "type": {
9870
+ "text": "'xxs' | 'xs' | 's'"
9871
+ },
9872
+ "privacy": "public",
9873
+ "default": "'xxs'",
9874
+ "description": "Size of the chip.",
9875
+ "attribute": "size",
9876
+ "reflects": true
9877
+ },
9878
+ {
9879
+ "kind": "field",
9880
+ "name": "color",
9881
+ "type": {
9882
+ "text": "'milk' | 'charcoal' | 'white' | 'granite'"
9883
+ },
9884
+ "privacy": "public",
9885
+ "default": "'milk'",
9886
+ "description": "Color of the chip.",
9887
+ "attribute": "color",
9888
+ "reflects": true
9889
+ },
9890
+ {
9891
+ "kind": "field",
9892
+ "name": "_hydrationRequired",
9893
+ "type": {
9894
+ "text": "boolean"
9895
+ },
9896
+ "privacy": "private",
9897
+ "default": "!!this.shadowRoot",
9898
+ "inheritedFrom": {
9899
+ "name": "SbbHydrationMixin",
9900
+ "module": "core/mixins/hydration-mixin.js"
9901
+ }
9902
+ },
9903
+ {
9904
+ "kind": "field",
9905
+ "name": "_hydrationComplete",
9906
+ "privacy": "private",
9907
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
9908
+ "inheritedFrom": {
9909
+ "name": "SbbHydrationMixin",
9910
+ "module": "core/mixins/hydration-mixin.js"
9911
+ }
9912
+ },
9913
+ {
9914
+ "kind": "field",
9915
+ "name": "_resolveHydration",
9916
+ "type": {
9917
+ "text": "(hydrationRequired: boolean) => void"
9918
+ },
9919
+ "privacy": "private",
9920
+ "inheritedFrom": {
9921
+ "name": "SbbHydrationMixin",
9922
+ "module": "core/mixins/hydration-mixin.js"
9923
+ }
9924
+ },
9925
+ {
9926
+ "kind": "field",
9927
+ "name": "hydrationRequired",
9928
+ "type": {
9929
+ "text": "boolean"
9930
+ },
9931
+ "privacy": "protected",
9932
+ "description": "Returns whether hydration is required and not completed.",
9933
+ "readonly": true,
9934
+ "inheritedFrom": {
9935
+ "name": "SbbHydrationMixin",
9936
+ "module": "core/mixins/hydration-mixin.js"
9937
+ },
9938
+ "default": "!!this.shadowRoot"
9939
+ },
9940
+ {
9941
+ "kind": "method",
9942
+ "name": "toggleState",
9943
+ "privacy": "protected",
9944
+ "return": {
9945
+ "type": {
9946
+ "text": "void"
9947
+ }
9948
+ },
9949
+ "parameters": [
9950
+ {
9951
+ "name": "value",
9952
+ "type": {
9953
+ "text": "string"
9954
+ }
9955
+ },
9956
+ {
9957
+ "name": "force",
9958
+ "optional": true,
9959
+ "type": {
9960
+ "text": "boolean"
9961
+ }
9962
+ }
9963
+ ],
9964
+ "inheritedFrom": {
9965
+ "name": "SbbElementInternalsMixin",
9966
+ "module": "core/mixins/element-internals-mixin.js"
9967
+ }
9968
+ },
9969
+ {
9970
+ "kind": "field",
9971
+ "name": "['_$sbbElement$']",
9972
+ "type": {
9973
+ "text": "boolean"
9974
+ },
9975
+ "privacy": "public",
9976
+ "static": true,
9977
+ "default": "true",
9978
+ "inheritedFrom": {
9979
+ "name": "SbbElement",
9980
+ "module": "core/base-elements/element.js"
9981
+ }
9982
+ },
9983
+ {
9984
+ "kind": "field",
9985
+ "name": "_controllers",
9986
+ "type": {
9987
+ "text": "Set<SbbReactiveController> | undefined"
9988
+ },
9989
+ "privacy": "private",
9990
+ "inheritedFrom": {
9991
+ "name": "SbbElement",
9992
+ "module": "core/base-elements/element.js"
9993
+ }
9994
+ }
9995
+ ],
9996
+ "attributes": [
9997
+ {
9998
+ "name": "size",
9999
+ "type": {
10000
+ "text": "'xxs' | 'xs' | 's'"
10001
+ },
10002
+ "default": "'xxs'",
10003
+ "description": "Size of the chip.",
10004
+ "fieldName": "size"
10005
+ },
10006
+ {
10007
+ "name": "color",
10008
+ "type": {
10009
+ "text": "'milk' | 'charcoal' | 'white' | 'granite'"
10010
+ },
10011
+ "default": "'milk'",
10012
+ "description": "Color of the chip.",
10013
+ "fieldName": "color"
10014
+ }
10015
+ ],
10016
+ "superclass": {
10017
+ "name": "SbbElement",
10018
+ "module": "core/base-elements.js"
10019
+ },
10020
+ "tagName": "sbb-chip-label",
10021
+ "customElement": true
10022
+ }
10023
+ ],
10024
+ "exports": [
10025
+ {
10026
+ "kind": "js",
10027
+ "name": "SbbChipLabelElement",
10028
+ "declaration": {
10029
+ "name": "SbbChipLabelElement",
10030
+ "module": "chip-label/chip-label.component.js"
10031
+ }
10032
+ }
10033
+ ]
10034
+ },
10035
10035
  {
10036
10036
  "kind": "javascript-module",
10037
10037
  "path": "container/container.js",
@@ -14467,6 +14467,7 @@
14467
14467
  "privacy": "public",
14468
14468
  "description": "Journey header size, either s, m or l.",
14469
14469
  "default": "'m' / 's' (lean)",
14470
+ "deprecated": "Use visualLevel instead.",
14470
14471
  "attribute": "size",
14471
14472
  "reflects": true
14472
14473
  },
@@ -14679,6 +14680,7 @@
14679
14680
  },
14680
14681
  "description": "Journey header size, either s, m or l.",
14681
14682
  "default": "'m' / 's' (lean)",
14683
+ "deprecated": "Use visualLevel instead.",
14682
14684
  "fieldName": "size"
14683
14685
  },
14684
14686
  {
@@ -120222,20 +120224,16 @@
120222
120224
  },
120223
120225
  {
120224
120226
  "kind": "javascript-module",
120225
- "path": "sidebar/sidebar/sidebar.component.js",
120227
+ "path": "sidebar/sidebar-container/sidebar-container.component.js",
120226
120228
  "declarations": [
120227
120229
  {
120228
120230
  "kind": "class",
120229
- "description": "This component corresponds to a sidebar that can be opened on the sidebar container.",
120230
- "name": "SbbSidebarElement",
120231
+ "description": "This is the parent component to one or two `<sbb-sidebar>`s that validates the state internally\nand coordinates the backdrop and content styling.",
120232
+ "name": "SbbSidebarContainerElement",
120231
120233
  "slots": [
120232
120234
  {
120233
- "description": "Use the unnamed slot to slot any content into the sidebar.",
120235
+ "description": "Use the unnamed slot to add `sbb-sidebar` and `sbb-sidebar-content` elements.",
120234
120236
  "name": ""
120235
- },
120236
- {
120237
- "description": "Use the title slot to add an <sbb-title>.",
120238
- "name": "title"
120239
120237
  }
120240
120238
  ],
120241
120239
  "members": [
@@ -120248,483 +120246,946 @@
120248
120246
  "privacy": "public",
120249
120247
  "static": true,
120250
120248
  "readonly": true,
120249
+ "default": "'sbb-sidebar-container'",
120251
120250
  "inheritedFrom": {
120252
120251
  "name": "SbbElement",
120253
120252
  "module": "core/base-elements/element.js"
120254
- },
120255
- "default": "'sbb-sidebar'"
120253
+ }
120256
120254
  },
120257
120255
  {
120258
120256
  "kind": "field",
120259
- "name": "color",
120257
+ "name": "sidebars",
120260
120258
  "type": {
120261
- "text": "'white' | 'milk'"
120259
+ "text": "SbbSidebarElement[]"
120262
120260
  },
120263
120261
  "privacy": "public",
120264
- "default": "'white'",
120265
- "description": "Background color of the sidebar. Either `white` or `milk`.",
120266
- "attribute": "color",
120267
- "reflects": true
120262
+ "description": "The sidebar children.",
120263
+ "readonly": true
120268
120264
  },
120269
120265
  {
120270
120266
  "kind": "field",
120271
- "name": "mode",
120267
+ "name": "start",
120272
120268
  "type": {
120273
- "text": "'side' | 'over'"
120269
+ "text": "SbbSidebarElement | null"
120274
120270
  },
120275
120271
  "privacy": "public",
120276
- "default": "'side'",
120277
- "description": "Mode of the sidebar; one of 'side' or 'over'.",
120278
- "attribute": "mode",
120279
- "reflects": true
120272
+ "description": "The sidebar child with the `start` position.",
120273
+ "readonly": true
120280
120274
  },
120281
120275
  {
120282
120276
  "kind": "field",
120283
- "name": "position",
120277
+ "name": "end",
120284
120278
  "type": {
120285
- "text": "'start' | 'end'"
120279
+ "text": "SbbSidebarElement | null"
120286
120280
  },
120287
120281
  "privacy": "public",
120288
- "default": "'start'",
120289
- "description": "The side that the sidebar is attached to.",
120290
- "attribute": "position",
120291
- "reflects": true
120282
+ "description": "The sidebar child with the `end` position.",
120283
+ "readonly": true
120292
120284
  },
120293
120285
  {
120294
120286
  "kind": "field",
120295
- "name": "opened",
120296
- "type": {
120297
- "text": "boolean"
120298
- },
120299
- "privacy": "public",
120300
- "default": "false",
120301
- "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
120302
- "attribute": "opened",
120303
- "reflects": true
120287
+ "name": "_forcedClosedSidebars",
120288
+ "privacy": "private",
120289
+ "default": "new WeakSet<SbbSidebarElement>()"
120304
120290
  },
120305
120291
  {
120306
- "kind": "field",
120307
- "name": "focusOnOpen",
120308
- "type": {
120309
- "text": "boolean"
120310
- },
120311
- "privacy": "public",
120312
- "default": "false",
120313
- "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.",
120314
- "attribute": "focus-on-open"
120292
+ "kind": "method",
120293
+ "name": "_handleWidthChange",
120294
+ "privacy": "private",
120295
+ "return": {
120296
+ "type": {
120297
+ "text": "void"
120298
+ }
120299
+ }
120315
120300
  },
120316
120301
  {
120317
- "kind": "field",
120318
- "name": "container",
120319
- "type": {
120320
- "text": "SbbSidebarContainerElement | null"
120302
+ "kind": "method",
120303
+ "name": "_calculateSpaceState",
120304
+ "privacy": "private",
120305
+ "return": {
120306
+ "type": {
120307
+ "text": "Promise<void>"
120308
+ }
120321
120309
  },
120322
- "privacy": "public",
120323
- "description": "Returns the SbbSidebarContainerElement where this sidebar is contained.",
120324
- "readonly": true,
120325
- "default": "null"
120310
+ "description": "Closes and opens sidebars depending on available width\nof the container and its parent container."
120326
120311
  },
120327
120312
  {
120328
120313
  "kind": "field",
120329
- "name": "_container",
120314
+ "name": "_hydrationRequired",
120330
120315
  "type": {
120331
- "text": "SbbSidebarContainerElement | null"
120316
+ "text": "boolean"
120332
120317
  },
120333
120318
  "privacy": "private",
120334
- "default": "null"
120319
+ "default": "!!this.shadowRoot",
120320
+ "inheritedFrom": {
120321
+ "name": "SbbElement",
120322
+ "module": "core/base-elements/element.js"
120323
+ }
120335
120324
  },
120336
120325
  {
120337
120326
  "kind": "field",
120338
- "name": "_lastFocusedElement",
120339
- "type": {
120340
- "text": "HTMLElement | null"
120341
- },
120327
+ "name": "_hydrationComplete",
120342
120328
  "privacy": "private",
120343
- "default": "null"
120329
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
120330
+ "inheritedFrom": {
120331
+ "name": "SbbElement",
120332
+ "module": "core/base-elements/element.js"
120333
+ }
120344
120334
  },
120345
120335
  {
120346
120336
  "kind": "field",
120347
- "name": "_focusTrapController",
120337
+ "name": "_resolveHydration",
120338
+ "type": {
120339
+ "text": "(hydrationRequired: boolean) => void"
120340
+ },
120348
120341
  "privacy": "private",
120349
- "default": "new SbbFocusTrapController(this)"
120342
+ "inheritedFrom": {
120343
+ "name": "SbbElement",
120344
+ "module": "core/base-elements/element.js"
120345
+ }
120350
120346
  },
120351
120347
  {
120352
120348
  "kind": "field",
120353
- "name": "_escapableOverlayController",
120354
- "privacy": "private",
120355
- "default": "new SbbEscapableOverlayController(this)"
120356
- },
120357
- {
120358
- "kind": "method",
120359
- "name": "toggle",
120360
- "privacy": "public",
120361
- "return": {
120362
- "type": {
120363
- "text": "void"
120364
- }
120349
+ "name": "hydrationRequired",
120350
+ "type": {
120351
+ "text": "boolean"
120365
120352
  },
120366
- "description": "Toggles the sidebar visibility."
120353
+ "privacy": "protected",
120354
+ "description": "Returns whether hydration is required and not completed.",
120355
+ "readonly": true,
120356
+ "inheritedFrom": {
120357
+ "name": "SbbElement",
120358
+ "module": "core/base-elements/element.js"
120359
+ },
120360
+ "default": "!!this.shadowRoot"
120367
120361
  },
120368
120362
  {
120369
120363
  "kind": "method",
120370
- "name": "open",
120371
- "privacy": "public",
120364
+ "name": "toggleState",
120365
+ "privacy": "protected",
120372
120366
  "return": {
120373
120367
  "type": {
120374
120368
  "text": "void"
120375
120369
  }
120376
120370
  },
120377
- "description": "Opens the sidebar.",
120371
+ "parameters": [
120372
+ {
120373
+ "name": "value",
120374
+ "type": {
120375
+ "text": "string"
120376
+ }
120377
+ },
120378
+ {
120379
+ "name": "force",
120380
+ "optional": true,
120381
+ "type": {
120382
+ "text": "boolean"
120383
+ }
120384
+ }
120385
+ ],
120378
120386
  "inheritedFrom": {
120379
- "name": "SbbOpenCloseBaseElement",
120380
- "module": "core/base-elements/open-close-base-element.js"
120387
+ "name": "SbbElement",
120388
+ "module": "core/base-elements/element.js"
120381
120389
  }
120382
120390
  },
120383
120391
  {
120384
- "kind": "method",
120385
- "name": "_isZeroAnimationDuration",
120386
- "privacy": "private",
120387
- "return": {
120388
- "type": {
120389
- "text": "boolean"
120390
- }
120392
+ "kind": "field",
120393
+ "name": "['_$sbbElement$']",
120394
+ "type": {
120395
+ "text": "boolean"
120396
+ },
120397
+ "privacy": "public",
120398
+ "static": true,
120399
+ "default": "true",
120400
+ "inheritedFrom": {
120401
+ "name": "SbbElement",
120402
+ "module": "core/base-elements/element.js"
120391
120403
  }
120392
120404
  },
120393
120405
  {
120394
- "kind": "method",
120395
- "name": "_handleOpening",
120406
+ "kind": "field",
120407
+ "name": "_controllers",
120408
+ "type": {
120409
+ "text": "Set<SbbReactiveController> | undefined"
120410
+ },
120396
120411
  "privacy": "private",
120397
- "return": {
120398
- "type": {
120399
- "text": "void"
120400
- }
120412
+ "inheritedFrom": {
120413
+ "name": "SbbElement",
120414
+ "module": "core/base-elements/element.js"
120401
120415
  }
120402
- },
120416
+ }
120417
+ ],
120418
+ "superclass": {
120419
+ "name": "SbbElement",
120420
+ "module": "core/base-elements.js"
120421
+ },
120422
+ "tagName": "sbb-sidebar-container",
120423
+ "customElement": true
120424
+ }
120425
+ ],
120426
+ "exports": [
120427
+ {
120428
+ "kind": "js",
120429
+ "name": "SbbSidebarContainerElement",
120430
+ "declaration": {
120431
+ "name": "SbbSidebarContainerElement",
120432
+ "module": "sidebar/sidebar-container/sidebar-container.component.js"
120433
+ }
120434
+ }
120435
+ ]
120436
+ },
120437
+ {
120438
+ "kind": "javascript-module",
120439
+ "path": "sidebar/sidebar-close-button/sidebar-close-button.component.js",
120440
+ "declarations": [
120441
+ {
120442
+ "kind": "class",
120443
+ "description": "Sidebar close button, intended to be placed inside sbb-sidebar.",
120444
+ "name": "SbbSidebarCloseButtonElement",
120445
+ "slots": [
120403
120446
  {
120404
- "kind": "method",
120405
- "name": "close",
120406
- "privacy": "public",
120407
- "return": {
120408
- "type": {
120409
- "text": "void"
120410
- }
120411
- },
120412
- "description": "Closes the sidebar.",
120447
+ "description": "Use the unnamed slot to add content to the sidebar-close-button. Not intended to be used in this context.",
120448
+ "name": "",
120413
120449
  "inheritedFrom": {
120414
- "name": "SbbOpenCloseBaseElement",
120415
- "module": "core/base-elements/open-close-base-element.js"
120450
+ "name": "SbbSecondaryButtonElement",
120451
+ "module": "button/secondary-button/secondary-button.component.js"
120416
120452
  }
120417
120453
  },
120418
120454
  {
120419
- "kind": "method",
120420
- "name": "_handleClosing",
120421
- "privacy": "private",
120422
- "return": {
120423
- "type": {
120424
- "text": "void"
120425
- }
120455
+ "description": "Slot used to display the icon, if one is set. Not intended to be used in this context.",
120456
+ "name": "icon",
120457
+ "inheritedFrom": {
120458
+ "name": "SbbSecondaryButtonElement",
120459
+ "module": "button/secondary-button/secondary-button.component.js"
120426
120460
  }
120461
+ }
120462
+ ],
120463
+ "members": [
120464
+ {
120465
+ "kind": "field",
120466
+ "name": "elementName",
120467
+ "type": {
120468
+ "text": "string"
120469
+ },
120470
+ "privacy": "public",
120471
+ "static": true,
120472
+ "readonly": true,
120473
+ "inheritedFrom": {
120474
+ "name": "SbbElement",
120475
+ "module": "core/base-elements/element.js"
120476
+ },
120477
+ "default": "'sbb-sidebar-close-button'"
120427
120478
  },
120428
120479
  {
120429
- "kind": "method",
120430
- "name": "_takeFocus",
120480
+ "kind": "field",
120481
+ "name": "_languageController",
120431
120482
  "privacy": "private",
120432
- "return": {
120433
- "type": {
120434
- "text": "void"
120435
- }
120436
- }
120483
+ "default": "new SbbLanguageController(this)"
120437
120484
  },
120438
120485
  {
120439
120486
  "kind": "method",
120440
- "name": "cedeFocus",
120487
+ "name": "renderTemplate",
120441
120488
  "privacy": "protected",
120442
120489
  "return": {
120443
120490
  "type": {
120444
- "text": "void"
120445
- }
120446
- }
120447
- },
120448
- {
120449
- "kind": "method",
120450
- "name": "_updateSidebarWidth",
120451
- "privacy": "private",
120452
- "return": {
120453
- "type": {
120454
- "text": "void"
120491
+ "text": "TemplateResult"
120455
120492
  }
120456
120493
  },
120457
- "parameters": [
120458
- {
120459
- "name": "oldPosition",
120460
- "optional": true,
120461
- "type": {
120462
- "text": "this['position']"
120463
- }
120464
- }
120465
- ]
120494
+ "description": "Override this method to render the component template.",
120495
+ "inheritedFrom": {
120496
+ "name": "SbbActionBaseElement",
120497
+ "module": "core/base-elements/action-base-element.js"
120498
+ }
120466
120499
  },
120467
120500
  {
120468
120501
  "kind": "method",
120469
- "name": "_buildCssWidthVar",
120470
- "privacy": "private",
120502
+ "name": "renderIconName",
120503
+ "privacy": "protected",
120471
120504
  "return": {
120472
120505
  "type": {
120473
120506
  "text": "string"
120474
120507
  }
120475
120508
  },
120476
- "parameters": [
120477
- {
120478
- "name": "position",
120479
- "default": "this.position"
120480
- }
120481
- ]
120482
- },
120483
- {
120484
- "kind": "method",
120485
- "name": "_isModeOver",
120486
- "privacy": "private",
120487
- "return": {
120488
- "type": {
120489
- "text": "boolean"
120490
- }
120509
+ "inheritedFrom": {
120510
+ "name": "SbbIconNameMixin",
120511
+ "module": "icon/icon-name-mixin.js"
120491
120512
  }
120492
120513
  },
120493
120514
  {
120494
- "kind": "method",
120495
- "name": "_onTransitionEnd",
120496
- "privacy": "private",
120497
- "return": {
120498
- "type": {
120499
- "text": "void"
120500
- }
120515
+ "kind": "field",
120516
+ "name": "size",
120517
+ "type": {
120518
+ "text": "SbbButtonSize"
120501
120519
  },
120502
- "parameters": [
120503
- {
120504
- "name": "event",
120505
- "type": {
120506
- "text": "TransitionEvent"
120507
- }
120508
- }
120509
- ]
120510
- },
120511
- {
120512
- "kind": "method",
120513
- "name": "_detectScrolledState",
120514
- "privacy": "private",
120515
- "return": {
120516
- "type": {
120517
- "text": "void"
120518
- }
120520
+ "privacy": "public",
120521
+ "description": "Size variant, either l, m or s.",
120522
+ "default": "'s'",
120523
+ "attribute": "size",
120524
+ "reflects": true,
120525
+ "inheritedFrom": {
120526
+ "name": "SbbButtonCommonElementMixin",
120527
+ "module": "button/common/button-common.js"
120519
120528
  }
120520
120529
  },
120521
120530
  {
120522
120531
  "kind": "field",
120523
- "name": "isAnimating",
120532
+ "name": "loading",
120524
120533
  "type": {
120525
120534
  "text": "boolean"
120526
120535
  },
120527
120536
  "privacy": "public",
120528
120537
  "default": "false",
120529
- "description": "Whether the component is currently animating.",
120538
+ "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.",
120539
+ "attribute": "loading",
120540
+ "reflects": true,
120530
120541
  "inheritedFrom": {
120531
- "name": "SbbAnimationCompleteMixin",
120532
- "module": "core/mixins/animation-complete-mixin.js"
120542
+ "name": "SbbButtonCommonElementMixin",
120543
+ "module": "button/common/button-common.js"
120533
120544
  }
120534
120545
  },
120535
120546
  {
120536
120547
  "kind": "field",
120537
- "name": "animationComplete",
120548
+ "name": "negative",
120538
120549
  "type": {
120539
- "text": "Promise<void>"
120550
+ "text": "boolean"
120540
120551
  },
120541
120552
  "privacy": "public",
120542
- "description": "Returns a promise which completes whenever an animation ends.\nWhen a new animation starts, a new Promise is returned.",
120543
- "readonly": true,
120553
+ "default": "false",
120554
+ "description": "Negative coloring variant flag.",
120555
+ "attribute": "negative",
120556
+ "reflects": true,
120544
120557
  "inheritedFrom": {
120545
- "name": "SbbAnimationCompleteMixin",
120546
- "module": "core/mixins/animation-complete-mixin.js"
120558
+ "name": "SbbNegativeMixin",
120559
+ "module": "core/mixins/negative-mixin.js"
120547
120560
  }
120548
120561
  },
120549
120562
  {
120550
120563
  "kind": "field",
120551
- "name": "_animationPromise",
120564
+ "name": "iconName",
120552
120565
  "type": {
120553
- "text": "Promise<void>"
120566
+ "text": "string"
120554
120567
  },
120555
- "privacy": "private",
120568
+ "privacy": "public",
120569
+ "default": "''",
120570
+ "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.",
120571
+ "attribute": "icon-name",
120556
120572
  "inheritedFrom": {
120557
- "name": "SbbAnimationCompleteMixin",
120558
- "module": "core/mixins/animation-complete-mixin.js"
120573
+ "name": "SbbIconNameMixin",
120574
+ "module": "icon/icon-name-mixin.js"
120559
120575
  }
120560
120576
  },
120561
120577
  {
120562
120578
  "kind": "method",
120563
- "name": "startAnimation",
120579
+ "name": "renderIconSlot",
120564
120580
  "privacy": "protected",
120565
120581
  "return": {
120566
120582
  "type": {
120567
- "text": "void"
120583
+ "text": "TemplateResult"
120568
120584
  }
120569
120585
  },
120570
- "inheritedFrom": {
120571
- "name": "SbbAnimationCompleteMixin",
120572
- "module": "core/mixins/animation-complete-mixin.js"
120573
- }
120574
- },
120575
- {
120576
- "kind": "method",
120577
- "name": "stopAnimation",
120578
- "privacy": "protected",
120579
- "return": {
120580
- "type": {
120581
- "text": "void"
120586
+ "parameters": [
120587
+ {
120588
+ "name": "classname",
120589
+ "optional": true,
120590
+ "type": {
120591
+ "text": "string"
120592
+ }
120582
120593
  }
120583
- },
120584
- "description": "Overriding stopAnimation() breaks functionality.",
120594
+ ],
120585
120595
  "inheritedFrom": {
120586
- "name": "SbbAnimationCompleteMixin",
120587
- "module": "core/mixins/animation-complete-mixin.js"
120596
+ "name": "SbbIconNameMixin",
120597
+ "module": "icon/icon-name-mixin.js"
120588
120598
  }
120589
120599
  },
120590
120600
  {
120591
120601
  "kind": "method",
120592
- "name": "_enqueueAnimation",
120602
+ "name": "_renderIconName",
120593
120603
  "privacy": "private",
120594
120604
  "return": {
120595
120605
  "type": {
120596
- "text": "Promise<void>"
120606
+ "text": "string"
120597
120607
  }
120598
120608
  },
120599
120609
  "inheritedFrom": {
120600
- "name": "SbbAnimationCompleteMixin",
120601
- "module": "core/mixins/animation-complete-mixin.js"
120610
+ "name": "SbbIconNameMixin",
120611
+ "module": "icon/icon-name-mixin.js"
120602
120612
  }
120603
120613
  },
120604
120614
  {
120605
120615
  "kind": "field",
120606
- "name": "events",
120607
- "privacy": "public",
120608
- "static": true,
120609
- "readonly": true,
120610
- "default": "{ beforeopen: 'beforeopen', open: 'open', beforeclose: 'beforeclose', close: 'close', }",
120616
+ "name": "disabledInteractive",
120611
120617
  "type": {
120612
- "text": "{\n beforeopen: 'beforeopen',\n open: 'open',\n beforeclose: 'beforeclose',\n close: 'close',\n }"
120618
+ "text": "boolean"
120613
120619
  },
120620
+ "privacy": "public",
120621
+ "default": "false",
120622
+ "description": "Whether the button should be aria-disabled but stay interactive.",
120623
+ "attribute": "disabled-interactive",
120624
+ "reflects": true,
120614
120625
  "inheritedFrom": {
120615
- "name": "SbbOpenCloseBaseElement",
120616
- "module": "core/base-elements/open-close-base-element.js"
120626
+ "name": "SbbDisabledInteractiveMixin",
120627
+ "module": "core/mixins/disabled-mixin.js"
120617
120628
  }
120618
120629
  },
120619
120630
  {
120620
120631
  "kind": "field",
120621
- "name": "state",
120622
- "privacy": "protected",
120623
- "description": "The state of the component.",
120632
+ "name": "disabled",
120633
+ "privacy": "public",
120634
+ "description": "Whether the component is disabled.",
120635
+ "default": "false",
120624
120636
  "type": {
120625
- "text": "SbbOpenedClosedState"
120637
+ "text": "boolean"
120626
120638
  },
120627
- "default": "'closed'",
120639
+ "attribute": "disabled",
120640
+ "reflects": true,
120628
120641
  "inheritedFrom": {
120629
- "name": "SbbOpenCloseBaseElement",
120630
- "module": "core/base-elements/open-close-base-element.js"
120642
+ "name": "SbbDisabledMixin",
120643
+ "module": "core/mixins/disabled-mixin.js"
120631
120644
  }
120632
120645
  },
120633
120646
  {
120634
120647
  "kind": "field",
120635
- "name": "_state",
120636
- "type": {
120637
- "text": "SbbOpenedClosedState"
120638
- },
120648
+ "name": "#disabled",
120639
120649
  "privacy": "private",
120640
- "inheritedFrom": {
120641
- "name": "SbbOpenCloseBaseElement",
120642
- "module": "core/base-elements/open-close-base-element.js"
120643
- }
120644
- },
120645
- {
120646
- "kind": "field",
120647
- "name": "isOpen",
120648
120650
  "type": {
120649
120651
  "text": "boolean"
120650
120652
  },
120651
- "privacy": "public",
120652
- "description": "Whether the element is open.",
120653
- "readonly": true,
120653
+ "default": "false",
120654
120654
  "inheritedFrom": {
120655
- "name": "SbbOpenCloseBaseElement",
120656
- "module": "core/base-elements/open-close-base-element.js"
120655
+ "name": "SbbDisabledMixin",
120656
+ "module": "core/mixins/disabled-mixin.js"
120657
120657
  }
120658
120658
  },
120659
120659
  {
120660
120660
  "kind": "method",
120661
- "name": "escapeStrategy",
120662
- "privacy": "public",
120661
+ "name": "isDisabledExternally",
120662
+ "privacy": "protected",
120663
120663
  "return": {
120664
120664
  "type": {
120665
- "text": "void"
120665
+ "text": "boolean"
120666
120666
  }
120667
120667
  },
120668
- "description": "The method which is called on escape key press. Defaults to calling close()",
120668
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
120669
120669
  "inheritedFrom": {
120670
- "name": "SbbOpenCloseBaseElement",
120671
- "module": "core/base-elements/open-close-base-element.js"
120670
+ "name": "SbbDisabledMixin",
120671
+ "module": "core/mixins/disabled-mixin.js"
120672
+ }
120673
+ },
120674
+ {
120675
+ "kind": "field",
120676
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
120677
+ "type": {
120678
+ "text": "array"
120679
+ },
120680
+ "privacy": "private",
120681
+ "readonly": true,
120682
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
120683
+ "inheritedFrom": {
120684
+ "name": "SbbButtonBaseElement",
120685
+ "module": "core/base-elements/button-base-element.js"
120686
+ }
120687
+ },
120688
+ {
120689
+ "kind": "field",
120690
+ "name": "value",
120691
+ "type": {
120692
+ "text": "string"
120693
+ },
120694
+ "privacy": "public",
120695
+ "inheritedFrom": {
120696
+ "name": "SbbButtonBaseElement",
120697
+ "module": "core/base-elements/button-base-element.js"
120698
+ },
120699
+ "default": "''",
120700
+ "description": "Value of the form element.",
120701
+ "attribute": "value"
120702
+ },
120703
+ {
120704
+ "kind": "field",
120705
+ "name": "type",
120706
+ "privacy": "public",
120707
+ "description": "The type attribute to use for the button.",
120708
+ "default": "'button'",
120709
+ "type": {
120710
+ "text": "SbbButtonType"
120711
+ },
120712
+ "attribute": "type",
120713
+ "inheritedFrom": {
120714
+ "name": "SbbButtonBaseElement",
120715
+ "module": "core/base-elements/button-base-element.js"
120716
+ }
120717
+ },
120718
+ {
120719
+ "kind": "field",
120720
+ "name": "form",
120721
+ "type": {
120722
+ "text": "HTMLFormElement | null"
120723
+ },
120724
+ "privacy": "public",
120725
+ "description": "The `<form>` element to associate the button with.",
120726
+ "inheritedFrom": {
120727
+ "name": "SbbButtonBaseElement",
120728
+ "module": "core/base-elements/button-base-element.js"
120729
+ },
120730
+ "attribute": "form"
120731
+ },
120732
+ {
120733
+ "kind": "field",
120734
+ "name": "_formId",
120735
+ "type": {
120736
+ "text": "string"
120737
+ },
120738
+ "privacy": "private",
120739
+ "default": "''",
120740
+ "inheritedFrom": {
120741
+ "name": "SbbButtonBaseElement",
120742
+ "module": "core/base-elements/button-base-element.js"
120743
+ }
120744
+ },
120745
+ {
120746
+ "kind": "field",
120747
+ "name": "_handleButtonClick",
120748
+ "privacy": "private",
120749
+ "inheritedFrom": {
120750
+ "name": "SbbButtonBaseElement",
120751
+ "module": "core/base-elements/button-base-element.js"
120672
120752
  }
120673
120753
  },
120674
120754
  {
120675
120755
  "kind": "method",
120676
- "name": "dispatchBeforeOpenEvent",
120756
+ "name": "_requestSubmit",
120757
+ "privacy": "private",
120758
+ "return": {
120759
+ "type": {
120760
+ "text": "void"
120761
+ }
120762
+ },
120763
+ "parameters": [
120764
+ {
120765
+ "name": "form",
120766
+ "type": {
120767
+ "text": "HTMLFormElement"
120768
+ }
120769
+ }
120770
+ ],
120771
+ "inheritedFrom": {
120772
+ "name": "SbbButtonBaseElement",
120773
+ "module": "core/base-elements/button-base-element.js"
120774
+ }
120775
+ },
120776
+ {
120777
+ "kind": "field",
120778
+ "name": "_formKeyDown",
120779
+ "privacy": "private",
120780
+ "inheritedFrom": {
120781
+ "name": "SbbButtonBaseElement",
120782
+ "module": "core/base-elements/button-base-element.js"
120783
+ }
120784
+ },
120785
+ {
120786
+ "kind": "field",
120787
+ "name": "formAssociated",
120788
+ "type": {
120789
+ "text": "boolean"
120790
+ },
120791
+ "privacy": "public",
120792
+ "static": true,
120793
+ "default": "true",
120794
+ "inheritedFrom": {
120795
+ "name": "SbbFormAssociatedMixin",
120796
+ "module": "core/mixins/form-associated-mixin.js"
120797
+ }
120798
+ },
120799
+ {
120800
+ "kind": "field",
120801
+ "name": "name",
120802
+ "privacy": "public",
120803
+ "description": "Name of the form element. Will be read from name attribute.",
120804
+ "type": {
120805
+ "text": "string"
120806
+ },
120807
+ "attribute": "name",
120808
+ "inheritedFrom": {
120809
+ "name": "SbbFormAssociatedMixin",
120810
+ "module": "core/mixins/form-associated-mixin.js"
120811
+ }
120812
+ },
120813
+ {
120814
+ "kind": "field",
120815
+ "name": "validity",
120816
+ "type": {
120817
+ "text": "ValidityState"
120818
+ },
120819
+ "privacy": "public",
120820
+ "description": "Returns the ValidityState object for this element.",
120821
+ "readonly": true,
120822
+ "inheritedFrom": {
120823
+ "name": "SbbFormAssociatedMixin",
120824
+ "module": "core/mixins/form-associated-mixin.js"
120825
+ }
120826
+ },
120827
+ {
120828
+ "kind": "field",
120829
+ "name": "validationMessage",
120830
+ "type": {
120831
+ "text": "string"
120832
+ },
120833
+ "privacy": "public",
120834
+ "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.",
120835
+ "readonly": true,
120836
+ "inheritedFrom": {
120837
+ "name": "SbbFormAssociatedMixin",
120838
+ "module": "core/mixins/form-associated-mixin.js"
120839
+ }
120840
+ },
120841
+ {
120842
+ "kind": "field",
120843
+ "name": "willValidate",
120844
+ "type": {
120845
+ "text": "boolean"
120846
+ },
120847
+ "privacy": "public",
120848
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
120849
+ "readonly": true,
120850
+ "inheritedFrom": {
120851
+ "name": "SbbFormAssociatedMixin",
120852
+ "module": "core/mixins/form-associated-mixin.js"
120853
+ }
120854
+ },
120855
+ {
120856
+ "kind": "field",
120857
+ "name": "_validityStates",
120858
+ "privacy": "private",
120859
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
120860
+ "inheritedFrom": {
120861
+ "name": "SbbFormAssociatedMixin",
120862
+ "module": "core/mixins/form-associated-mixin.js"
120863
+ }
120864
+ },
120865
+ {
120866
+ "kind": "field",
120867
+ "name": "formDisabled",
120868
+ "type": {
120869
+ "text": "boolean"
120870
+ },
120677
120871
  "privacy": "protected",
120872
+ "default": "false",
120873
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
120874
+ "inheritedFrom": {
120875
+ "name": "SbbFormAssociatedMixin",
120876
+ "module": "core/mixins/form-associated-mixin.js"
120877
+ }
120878
+ },
120879
+ {
120880
+ "kind": "method",
120881
+ "name": "checkValidity",
120882
+ "privacy": "public",
120678
120883
  "return": {
120679
120884
  "type": {
120680
120885
  "text": "boolean"
120681
120886
  }
120682
120887
  },
120888
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
120683
120889
  "inheritedFrom": {
120684
- "name": "SbbOpenCloseBaseElement",
120685
- "module": "core/base-elements/open-close-base-element.js"
120890
+ "name": "SbbFormAssociatedMixin",
120891
+ "module": "core/mixins/form-associated-mixin.js"
120686
120892
  }
120687
120893
  },
120688
120894
  {
120689
120895
  "kind": "method",
120690
- "name": "dispatchOpenEvent",
120691
- "privacy": "protected",
120896
+ "name": "reportValidity",
120897
+ "privacy": "public",
120692
120898
  "return": {
120693
120899
  "type": {
120694
120900
  "text": "boolean"
120695
120901
  }
120696
120902
  },
120903
+ "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.",
120697
120904
  "inheritedFrom": {
120698
- "name": "SbbOpenCloseBaseElement",
120699
- "module": "core/base-elements/open-close-base-element.js"
120905
+ "name": "SbbFormAssociatedMixin",
120906
+ "module": "core/mixins/form-associated-mixin.js"
120700
120907
  }
120701
120908
  },
120702
120909
  {
120703
120910
  "kind": "method",
120704
- "name": "dispatchBeforeCloseEvent",
120705
- "privacy": "protected",
120911
+ "name": "setCustomValidity",
120912
+ "privacy": "public",
120913
+ "return": {
120914
+ "type": {
120915
+ "text": "void"
120916
+ }
120917
+ },
120918
+ "parameters": [
120919
+ {
120920
+ "name": "message",
120921
+ "type": {
120922
+ "text": "string"
120923
+ }
120924
+ }
120925
+ ],
120926
+ "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.",
120927
+ "inheritedFrom": {
120928
+ "name": "SbbFormAssociatedMixin",
120929
+ "module": "core/mixins/form-associated-mixin.js"
120930
+ }
120931
+ },
120932
+ {
120933
+ "kind": "method",
120934
+ "name": "_hasDisabledAncestor",
120935
+ "privacy": "private",
120706
120936
  "return": {
120707
120937
  "type": {
120708
120938
  "text": "boolean"
120709
120939
  }
120710
120940
  },
120711
120941
  "inheritedFrom": {
120712
- "name": "SbbOpenCloseBaseElement",
120713
- "module": "core/base-elements/open-close-base-element.js"
120942
+ "name": "SbbFormAssociatedMixin",
120943
+ "module": "core/mixins/form-associated-mixin.js"
120714
120944
  }
120715
120945
  },
120716
120946
  {
120717
120947
  "kind": "method",
120718
- "name": "dispatchCloseEvent",
120948
+ "name": "updateFormValue",
120949
+ "privacy": "protected",
120950
+ "return": {
120951
+ "type": {
120952
+ "text": "void"
120953
+ }
120954
+ },
120955
+ "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",
120956
+ "inheritedFrom": {
120957
+ "name": "SbbFormAssociatedMixin",
120958
+ "module": "core/mixins/form-associated-mixin.js"
120959
+ }
120960
+ },
120961
+ {
120962
+ "kind": "method",
120963
+ "name": "formState",
120964
+ "privacy": "protected",
120965
+ "return": {
120966
+ "type": {
120967
+ "text": "FormRestoreState"
120968
+ }
120969
+ },
120970
+ "inheritedFrom": {
120971
+ "name": "SbbFormAssociatedMixin",
120972
+ "module": "core/mixins/form-associated-mixin.js"
120973
+ }
120974
+ },
120975
+ {
120976
+ "kind": "method",
120977
+ "name": "setValidityFlag",
120978
+ "privacy": "protected",
120979
+ "return": {
120980
+ "type": {
120981
+ "text": "void"
120982
+ }
120983
+ },
120984
+ "parameters": [
120985
+ {
120986
+ "name": "flag",
120987
+ "type": {
120988
+ "text": "T"
120989
+ }
120990
+ },
120991
+ {
120992
+ "name": "message",
120993
+ "type": {
120994
+ "text": "string"
120995
+ }
120996
+ },
120997
+ {
120998
+ "name": "flagValue",
120999
+ "optional": true,
121000
+ "type": {
121001
+ "text": "ValidityStateFlags[T]"
121002
+ }
121003
+ }
121004
+ ],
121005
+ "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).",
121006
+ "inheritedFrom": {
121007
+ "name": "SbbFormAssociatedMixin",
121008
+ "module": "core/mixins/form-associated-mixin.js"
121009
+ }
121010
+ },
121011
+ {
121012
+ "kind": "method",
121013
+ "name": "removeValidityFlag",
121014
+ "privacy": "protected",
121015
+ "return": {
121016
+ "type": {
121017
+ "text": "void"
121018
+ }
121019
+ },
121020
+ "parameters": [
121021
+ {
121022
+ "name": "flag",
121023
+ "type": {
121024
+ "text": "T"
121025
+ }
121026
+ }
121027
+ ],
121028
+ "description": "Removes the validity state flag entry and updates validity state.",
121029
+ "inheritedFrom": {
121030
+ "name": "SbbFormAssociatedMixin",
121031
+ "module": "core/mixins/form-associated-mixin.js"
121032
+ }
121033
+ },
121034
+ {
121035
+ "kind": "method",
121036
+ "name": "validate",
121037
+ "privacy": "protected",
121038
+ "return": {
121039
+ "type": {
121040
+ "text": "void"
121041
+ }
121042
+ },
121043
+ "description": "To be called whenever the current element needs to be validated.",
121044
+ "inheritedFrom": {
121045
+ "name": "SbbFormAssociatedMixin",
121046
+ "module": "core/mixins/form-associated-mixin.js"
121047
+ }
121048
+ },
121049
+ {
121050
+ "kind": "method",
121051
+ "name": "shouldValidate",
120719
121052
  "privacy": "protected",
120720
121053
  "return": {
120721
121054
  "type": {
120722
121055
  "text": "boolean"
120723
121056
  }
120724
121057
  },
121058
+ "parameters": [
121059
+ {
121060
+ "name": "name",
121061
+ "type": {
121062
+ "text": "PropertyKey | undefined"
121063
+ }
121064
+ }
121065
+ ],
121066
+ "description": "Whether validation should be run on a property change with the given name.",
121067
+ "inheritedFrom": {
121068
+ "name": "SbbFormAssociatedMixin",
121069
+ "module": "core/mixins/form-associated-mixin.js"
121070
+ }
121071
+ },
121072
+ {
121073
+ "kind": "method",
121074
+ "name": "_setInternalValidity",
121075
+ "privacy": "private",
121076
+ "return": {
121077
+ "type": {
121078
+ "text": "void"
121079
+ }
121080
+ },
120725
121081
  "inheritedFrom": {
120726
- "name": "SbbOpenCloseBaseElement",
120727
- "module": "core/base-elements/open-close-base-element.js"
121082
+ "name": "SbbFormAssociatedMixin",
121083
+ "module": "core/mixins/form-associated-mixin.js"
121084
+ }
121085
+ },
121086
+ {
121087
+ "kind": "field",
121088
+ "name": "role",
121089
+ "type": {
121090
+ "text": "ElementInternals['role']"
121091
+ },
121092
+ "privacy": "public",
121093
+ "static": true,
121094
+ "readonly": true,
121095
+ "default": "'button'",
121096
+ "inheritedFrom": {
121097
+ "name": "SbbButtonLikeBaseElement",
121098
+ "module": "core/base-elements/button-base-element.js"
121099
+ }
121100
+ },
121101
+ {
121102
+ "kind": "field",
121103
+ "name": "_preventScrollOnSpaceKeydown",
121104
+ "privacy": "private",
121105
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
121106
+ "parameters": [
121107
+ {
121108
+ "description": "The origin event.",
121109
+ "name": "event"
121110
+ }
121111
+ ],
121112
+ "inheritedFrom": {
121113
+ "name": "SbbButtonLikeBaseElement",
121114
+ "module": "core/base-elements/button-base-element.js"
121115
+ }
121116
+ },
121117
+ {
121118
+ "kind": "field",
121119
+ "name": "_removeActiveMarker",
121120
+ "privacy": "private",
121121
+ "inheritedFrom": {
121122
+ "name": "SbbButtonLikeBaseElement",
121123
+ "module": "core/base-elements/button-base-element.js"
121124
+ }
121125
+ },
121126
+ {
121127
+ "kind": "field",
121128
+ "name": "_dispatchClickEventOnSpaceKeyup",
121129
+ "privacy": "private",
121130
+ "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.",
121131
+ "parameters": [
121132
+ {
121133
+ "description": "The origin event.",
121134
+ "name": "event"
121135
+ }
121136
+ ],
121137
+ "inheritedFrom": {
121138
+ "name": "SbbButtonLikeBaseElement",
121139
+ "module": "core/base-elements/button-base-element.js"
121140
+ }
121141
+ },
121142
+ {
121143
+ "kind": "field",
121144
+ "name": "_dispatchClickEvent",
121145
+ "privacy": "private",
121146
+ "inheritedFrom": {
121147
+ "name": "SbbButtonLikeBaseElement",
121148
+ "module": "core/base-elements/button-base-element.js"
121149
+ }
121150
+ },
121151
+ {
121152
+ "kind": "field",
121153
+ "name": "maybeDisabled",
121154
+ "type": {
121155
+ "text": "boolean | undefined"
121156
+ },
121157
+ "privacy": "protected",
121158
+ "readonly": true,
121159
+ "inheritedFrom": {
121160
+ "name": "SbbActionBaseElement",
121161
+ "module": "core/base-elements/action-base-element.js"
121162
+ }
121163
+ },
121164
+ {
121165
+ "kind": "field",
121166
+ "name": "maybeDisabledInteractive",
121167
+ "type": {
121168
+ "text": "boolean | undefined"
121169
+ },
121170
+ "privacy": "protected",
121171
+ "readonly": true,
121172
+ "inheritedFrom": {
121173
+ "name": "SbbActionBaseElement",
121174
+ "module": "core/base-elements/action-base-element.js"
121175
+ }
121176
+ },
121177
+ {
121178
+ "kind": "method",
121179
+ "name": "setupBaseEventHandlers",
121180
+ "privacy": "protected",
121181
+ "return": {
121182
+ "type": {
121183
+ "text": "void"
121184
+ }
121185
+ },
121186
+ "inheritedFrom": {
121187
+ "name": "SbbActionBaseElement",
121188
+ "module": "core/base-elements/action-base-element.js"
120728
121189
  }
120729
121190
  },
120730
121191
  {
@@ -120833,108 +121294,150 @@
120833
121294
  }
120834
121295
  }
120835
121296
  ],
121297
+ "superclass": {
121298
+ "name": "SbbSecondaryButtonElement",
121299
+ "module": "button.pure.js"
121300
+ },
121301
+ "tagName": "sbb-sidebar-close-button",
121302
+ "customElement": true,
120836
121303
  "attributes": [
120837
121304
  {
120838
- "name": "color",
121305
+ "name": "size",
120839
121306
  "type": {
120840
- "text": "'white' | 'milk'"
121307
+ "text": "SbbButtonSize"
120841
121308
  },
120842
- "default": "'white'",
120843
- "description": "Background color of the sidebar. Either `white` or `milk`.",
120844
- "fieldName": "color"
121309
+ "description": "Size variant, either l, m or s.",
121310
+ "default": "'l' / 's' (lean)",
121311
+ "fieldName": "size",
121312
+ "inheritedFrom": {
121313
+ "name": "SbbButtonCommonElementMixin",
121314
+ "module": "button/common/button-common.js"
121315
+ }
120845
121316
  },
120846
121317
  {
120847
- "name": "mode",
121318
+ "name": "loading",
120848
121319
  "type": {
120849
- "text": "'side' | 'over'"
121320
+ "text": "boolean"
120850
121321
  },
120851
- "default": "'side'",
120852
- "description": "Mode of the sidebar; one of 'side' or 'over'.",
120853
- "fieldName": "mode"
121322
+ "default": "false",
121323
+ "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.",
121324
+ "fieldName": "loading",
121325
+ "inheritedFrom": {
121326
+ "name": "SbbButtonCommonElementMixin",
121327
+ "module": "button/common/button-common.js"
121328
+ }
120854
121329
  },
120855
121330
  {
120856
- "name": "position",
121331
+ "name": "negative",
120857
121332
  "type": {
120858
- "text": "'start' | 'end'"
121333
+ "text": "boolean"
120859
121334
  },
120860
- "default": "'start'",
120861
- "description": "The side that the sidebar is attached to.",
120862
- "fieldName": "position"
121335
+ "default": "false",
121336
+ "description": "Negative coloring variant flag.",
121337
+ "fieldName": "negative",
121338
+ "inheritedFrom": {
121339
+ "name": "SbbNegativeMixin",
121340
+ "module": "core/mixins/negative-mixin.js"
121341
+ }
120863
121342
  },
120864
121343
  {
120865
- "name": "opened",
121344
+ "name": "icon-name",
120866
121345
  "type": {
120867
- "text": "boolean"
121346
+ "text": "string"
120868
121347
  },
120869
- "default": "false",
120870
- "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
120871
- "fieldName": "opened"
121348
+ "default": "''",
121349
+ "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.",
121350
+ "fieldName": "iconName",
121351
+ "inheritedFrom": {
121352
+ "name": "SbbIconNameMixin",
121353
+ "module": "icon/icon-name-mixin.js"
121354
+ }
120872
121355
  },
120873
121356
  {
120874
- "name": "focus-on-open",
121357
+ "name": "disabled-interactive",
120875
121358
  "type": {
120876
121359
  "text": "boolean"
120877
121360
  },
120878
121361
  "default": "false",
120879
- "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.",
120880
- "fieldName": "focusOnOpen"
120881
- }
120882
- ],
120883
- "mixins": [
121362
+ "description": "Whether the button should be aria-disabled but stay interactive.",
121363
+ "fieldName": "disabledInteractive",
121364
+ "inheritedFrom": {
121365
+ "name": "SbbDisabledInteractiveMixin",
121366
+ "module": "core/mixins/disabled-mixin.js"
121367
+ }
121368
+ },
120884
121369
  {
120885
- "name": "SbbAnimationCompleteMixin",
120886
- "module": "core/mixins.js"
120887
- }
120888
- ],
120889
- "superclass": {
120890
- "name": "SbbOpenCloseBaseElement",
120891
- "module": "core/base-elements.js"
120892
- },
120893
- "tagName": "sbb-sidebar",
120894
- "customElement": true,
120895
- "events": [
121370
+ "name": "disabled",
121371
+ "description": "Whether the component is disabled.",
121372
+ "default": "false",
121373
+ "type": {
121374
+ "text": "boolean"
121375
+ },
121376
+ "fieldName": "disabled",
121377
+ "inheritedFrom": {
121378
+ "name": "SbbDisabledMixin",
121379
+ "module": "core/mixins/disabled-mixin.js"
121380
+ }
121381
+ },
120896
121382
  {
120897
- "name": "beforeopen",
121383
+ "name": "value",
120898
121384
  "type": {
120899
- "text": "Event"
121385
+ "text": "string"
120900
121386
  },
120901
- "description": "Emits whenever the component starts the opening transition. Can be canceled.",
121387
+ "default": "''",
121388
+ "description": "Value of the form element.",
121389
+ "fieldName": "value",
120902
121390
  "inheritedFrom": {
120903
- "name": "SbbOpenCloseBaseElement",
120904
- "module": "core/base-elements/open-close-base-element.js"
121391
+ "name": "SbbButtonBaseElement",
121392
+ "module": "core/base-elements/button-base-element.js"
120905
121393
  }
120906
121394
  },
120907
121395
  {
120908
- "name": "open",
121396
+ "name": "type",
121397
+ "description": "The type attribute to use for the button.",
121398
+ "default": "'button'",
120909
121399
  "type": {
120910
- "text": "Event"
121400
+ "text": "SbbButtonType"
120911
121401
  },
120912
- "description": "Emits whenever the component is opened.",
121402
+ "fieldName": "type",
120913
121403
  "inheritedFrom": {
120914
- "name": "SbbOpenCloseBaseElement",
120915
- "module": "core/base-elements/open-close-base-element.js"
121404
+ "name": "SbbButtonBaseElement",
121405
+ "module": "core/base-elements/button-base-element.js"
120916
121406
  }
120917
121407
  },
120918
121408
  {
120919
- "name": "beforeclose",
121409
+ "name": "form",
121410
+ "description": "The `<form>` element to associate the button with.",
120920
121411
  "type": {
120921
- "text": "Event"
121412
+ "text": "HTMLFormElement | null"
120922
121413
  },
120923
- "description": "Emits whenever the component begins the closing transition. Can be canceled.",
121414
+ "fieldName": "form",
120924
121415
  "inheritedFrom": {
120925
- "name": "SbbOpenCloseBaseElement",
120926
- "module": "core/base-elements/open-close-base-element.js"
121416
+ "name": "SbbButtonBaseElement",
121417
+ "module": "core/base-elements/button-base-element.js"
120927
121418
  }
120928
121419
  },
120929
121420
  {
120930
- "name": "close",
121421
+ "name": "name",
121422
+ "description": "Name of the form element. Will be read from name attribute.",
120931
121423
  "type": {
120932
- "text": "Event"
121424
+ "text": "string"
120933
121425
  },
120934
- "description": "Emits whenever the component is closed.",
121426
+ "fieldName": "name",
120935
121427
  "inheritedFrom": {
120936
- "name": "SbbOpenCloseBaseElement",
120937
- "module": "core/base-elements/open-close-base-element.js"
121428
+ "name": "SbbFormAssociatedMixin",
121429
+ "module": "core/mixins/form-associated-mixin.js"
121430
+ }
121431
+ }
121432
+ ],
121433
+ "cssProperties": [
121434
+ {
121435
+ "description": "The delay before the loading animation starts, when setting the button into loading state.",
121436
+ "name": "--sbb-button-loading-delay",
121437
+ "default": "300ms",
121438
+ "inheritedFrom": {
121439
+ "name": "SbbSecondaryButtonElement",
121440
+ "module": "button/secondary-button/secondary-button.component.js"
120938
121441
  }
120939
121442
  }
120940
121443
  ]
@@ -120943,38 +121446,26 @@
120943
121446
  "exports": [
120944
121447
  {
120945
121448
  "kind": "js",
120946
- "name": "SbbSidebarElement",
121449
+ "name": "SbbSidebarCloseButtonElement",
120947
121450
  "declaration": {
120948
- "name": "SbbSidebarElement",
120949
- "module": "sidebar/sidebar/sidebar.component.js"
121451
+ "name": "SbbSidebarCloseButtonElement",
121452
+ "module": "sidebar/sidebar-close-button/sidebar-close-button.component.js"
120950
121453
  }
120951
121454
  }
120952
121455
  ]
120953
121456
  },
120954
121457
  {
120955
121458
  "kind": "javascript-module",
120956
- "path": "sidebar/sidebar-close-button/sidebar-close-button.component.js",
121459
+ "path": "sidebar/sidebar-content/sidebar-content.component.js",
120957
121460
  "declarations": [
120958
121461
  {
120959
121462
  "kind": "class",
120960
- "description": "Sidebar close button, intended to be placed inside sbb-sidebar.",
120961
- "name": "SbbSidebarCloseButtonElement",
121463
+ "description": "Container for the sidebar content. Intended to be placed inside an `sbb-sidebar-container` element.",
121464
+ "name": "SbbSidebarContentElement",
120962
121465
  "slots": [
120963
121466
  {
120964
- "description": "Use the unnamed slot to add content to the sidebar-close-button. Not intended to be used in this context.",
120965
- "name": "",
120966
- "inheritedFrom": {
120967
- "name": "SbbSecondaryButtonElement",
120968
- "module": "button/secondary-button/secondary-button.component.js"
120969
- }
120970
- },
120971
- {
120972
- "description": "Slot used to display the icon, if one is set. Not intended to be used in this context.",
120973
- "name": "icon",
120974
- "inheritedFrom": {
120975
- "name": "SbbSecondaryButtonElement",
120976
- "module": "button/secondary-button/secondary-button.component.js"
120977
- }
121467
+ "description": "Use the unnamed slot to add any content elements. Further `sbb-sidebar-container`s are possible.",
121468
+ "name": ""
120978
121469
  }
120979
121470
  ],
120980
121471
  "members": [
@@ -120987,778 +121478,411 @@
120987
121478
  "privacy": "public",
120988
121479
  "static": true,
120989
121480
  "readonly": true,
121481
+ "default": "'sbb-sidebar-content'",
120990
121482
  "inheritedFrom": {
120991
121483
  "name": "SbbElement",
120992
121484
  "module": "core/base-elements/element.js"
120993
- },
120994
- "default": "'sbb-sidebar-close-button'"
120995
- },
120996
- {
120997
- "kind": "field",
120998
- "name": "_languageController",
120999
- "privacy": "private",
121000
- "default": "new SbbLanguageController(this)"
121001
- },
121002
- {
121003
- "kind": "method",
121004
- "name": "renderTemplate",
121005
- "privacy": "protected",
121006
- "return": {
121007
- "type": {
121008
- "text": "TemplateResult"
121009
- }
121010
- },
121011
- "description": "Override this method to render the component template.",
121012
- "inheritedFrom": {
121013
- "name": "SbbActionBaseElement",
121014
- "module": "core/base-elements/action-base-element.js"
121015
- }
121016
- },
121017
- {
121018
- "kind": "method",
121019
- "name": "renderIconName",
121020
- "privacy": "protected",
121021
- "return": {
121022
- "type": {
121023
- "text": "string"
121024
- }
121025
- },
121026
- "inheritedFrom": {
121027
- "name": "SbbIconNameMixin",
121028
- "module": "icon/icon-name-mixin.js"
121029
121485
  }
121030
121486
  },
121031
121487
  {
121032
121488
  "kind": "field",
121033
- "name": "size",
121489
+ "name": "_hydrationRequired",
121034
121490
  "type": {
121035
- "text": "SbbButtonSize"
121491
+ "text": "boolean"
121036
121492
  },
121037
- "privacy": "public",
121038
- "description": "Size variant, either l, m or s.",
121039
- "default": "'s'",
121040
- "attribute": "size",
121041
- "reflects": true,
121493
+ "privacy": "private",
121494
+ "default": "!!this.shadowRoot",
121042
121495
  "inheritedFrom": {
121043
- "name": "SbbButtonCommonElementMixin",
121044
- "module": "button/common/button-common.js"
121496
+ "name": "SbbElement",
121497
+ "module": "core/base-elements/element.js"
121045
121498
  }
121046
121499
  },
121047
121500
  {
121048
121501
  "kind": "field",
121049
- "name": "loading",
121050
- "type": {
121051
- "text": "boolean"
121052
- },
121053
- "privacy": "public",
121054
- "default": "false",
121055
- "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.",
121056
- "attribute": "loading",
121057
- "reflects": true,
121502
+ "name": "_hydrationComplete",
121503
+ "privacy": "private",
121504
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
121058
121505
  "inheritedFrom": {
121059
- "name": "SbbButtonCommonElementMixin",
121060
- "module": "button/common/button-common.js"
121506
+ "name": "SbbElement",
121507
+ "module": "core/base-elements/element.js"
121061
121508
  }
121062
121509
  },
121063
121510
  {
121064
121511
  "kind": "field",
121065
- "name": "negative",
121512
+ "name": "_resolveHydration",
121066
121513
  "type": {
121067
- "text": "boolean"
121514
+ "text": "(hydrationRequired: boolean) => void"
121068
121515
  },
121069
- "privacy": "public",
121070
- "default": "false",
121071
- "description": "Negative coloring variant flag.",
121072
- "attribute": "negative",
121073
- "reflects": true,
121516
+ "privacy": "private",
121074
121517
  "inheritedFrom": {
121075
- "name": "SbbNegativeMixin",
121076
- "module": "core/mixins/negative-mixin.js"
121518
+ "name": "SbbElement",
121519
+ "module": "core/base-elements/element.js"
121077
121520
  }
121078
121521
  },
121079
121522
  {
121080
121523
  "kind": "field",
121081
- "name": "iconName",
121524
+ "name": "hydrationRequired",
121082
121525
  "type": {
121083
- "text": "string"
121526
+ "text": "boolean"
121084
121527
  },
121085
- "privacy": "public",
121086
- "default": "''",
121087
- "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.",
121088
- "attribute": "icon-name",
121528
+ "privacy": "protected",
121529
+ "description": "Returns whether hydration is required and not completed.",
121530
+ "readonly": true,
121089
121531
  "inheritedFrom": {
121090
- "name": "SbbIconNameMixin",
121091
- "module": "icon/icon-name-mixin.js"
121092
- }
121532
+ "name": "SbbElement",
121533
+ "module": "core/base-elements/element.js"
121534
+ },
121535
+ "default": "!!this.shadowRoot"
121093
121536
  },
121094
121537
  {
121095
121538
  "kind": "method",
121096
- "name": "renderIconSlot",
121539
+ "name": "toggleState",
121097
121540
  "privacy": "protected",
121098
121541
  "return": {
121099
121542
  "type": {
121100
- "text": "TemplateResult"
121543
+ "text": "void"
121101
121544
  }
121102
121545
  },
121103
121546
  "parameters": [
121104
121547
  {
121105
- "name": "classname",
121106
- "optional": true,
121548
+ "name": "value",
121107
121549
  "type": {
121108
121550
  "text": "string"
121109
121551
  }
121552
+ },
121553
+ {
121554
+ "name": "force",
121555
+ "optional": true,
121556
+ "type": {
121557
+ "text": "boolean"
121558
+ }
121110
121559
  }
121111
121560
  ],
121112
121561
  "inheritedFrom": {
121113
- "name": "SbbIconNameMixin",
121114
- "module": "icon/icon-name-mixin.js"
121115
- }
121116
- },
121117
- {
121118
- "kind": "method",
121119
- "name": "_renderIconName",
121120
- "privacy": "private",
121121
- "return": {
121122
- "type": {
121123
- "text": "string"
121124
- }
121125
- },
121126
- "inheritedFrom": {
121127
- "name": "SbbIconNameMixin",
121128
- "module": "icon/icon-name-mixin.js"
121562
+ "name": "SbbElement",
121563
+ "module": "core/base-elements/element.js"
121129
121564
  }
121130
121565
  },
121131
121566
  {
121132
121567
  "kind": "field",
121133
- "name": "disabledInteractive",
121568
+ "name": "['_$sbbElement$']",
121134
121569
  "type": {
121135
121570
  "text": "boolean"
121136
121571
  },
121137
121572
  "privacy": "public",
121138
- "default": "false",
121139
- "description": "Whether the button should be aria-disabled but stay interactive.",
121140
- "attribute": "disabled-interactive",
121141
- "reflects": true,
121573
+ "static": true,
121574
+ "default": "true",
121142
121575
  "inheritedFrom": {
121143
- "name": "SbbDisabledInteractiveMixin",
121144
- "module": "core/mixins/disabled-mixin.js"
121576
+ "name": "SbbElement",
121577
+ "module": "core/base-elements/element.js"
121145
121578
  }
121146
121579
  },
121147
121580
  {
121148
121581
  "kind": "field",
121149
- "name": "disabled",
121150
- "privacy": "public",
121151
- "description": "Whether the component is disabled.",
121152
- "default": "false",
121582
+ "name": "_controllers",
121153
121583
  "type": {
121154
- "text": "boolean"
121584
+ "text": "Set<SbbReactiveController> | undefined"
121155
121585
  },
121156
- "attribute": "disabled",
121157
- "reflects": true,
121158
- "inheritedFrom": {
121159
- "name": "SbbDisabledMixin",
121160
- "module": "core/mixins/disabled-mixin.js"
121161
- }
121162
- },
121163
- {
121164
- "kind": "field",
121165
- "name": "#disabled",
121166
121586
  "privacy": "private",
121167
- "type": {
121168
- "text": "boolean"
121169
- },
121170
- "default": "false",
121171
- "inheritedFrom": {
121172
- "name": "SbbDisabledMixin",
121173
- "module": "core/mixins/disabled-mixin.js"
121174
- }
121175
- },
121176
- {
121177
- "kind": "method",
121178
- "name": "isDisabledExternally",
121179
- "privacy": "protected",
121180
- "return": {
121181
- "type": {
121182
- "text": "boolean"
121183
- }
121184
- },
121185
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
121186
121587
  "inheritedFrom": {
121187
- "name": "SbbDisabledMixin",
121188
- "module": "core/mixins/disabled-mixin.js"
121588
+ "name": "SbbElement",
121589
+ "module": "core/base-elements/element.js"
121189
121590
  }
121190
- },
121591
+ }
121592
+ ],
121593
+ "superclass": {
121594
+ "name": "SbbElement",
121595
+ "module": "core/base-elements.js"
121596
+ },
121597
+ "tagName": "sbb-sidebar-content",
121598
+ "customElement": true
121599
+ }
121600
+ ],
121601
+ "exports": [
121602
+ {
121603
+ "kind": "js",
121604
+ "name": "SbbSidebarContentElement",
121605
+ "declaration": {
121606
+ "name": "SbbSidebarContentElement",
121607
+ "module": "sidebar/sidebar-content/sidebar-content.component.js"
121608
+ }
121609
+ }
121610
+ ]
121611
+ },
121612
+ {
121613
+ "kind": "javascript-module",
121614
+ "path": "sidebar/sidebar/sidebar.component.js",
121615
+ "declarations": [
121616
+ {
121617
+ "kind": "class",
121618
+ "description": "This component corresponds to a sidebar that can be opened on the sidebar container.",
121619
+ "name": "SbbSidebarElement",
121620
+ "slots": [
121191
121621
  {
121192
- "kind": "field",
121193
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
121194
- "type": {
121195
- "text": "array"
121196
- },
121197
- "privacy": "private",
121198
- "readonly": true,
121199
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
121200
- "inheritedFrom": {
121201
- "name": "SbbButtonBaseElement",
121202
- "module": "core/base-elements/button-base-element.js"
121203
- }
121622
+ "description": "Use the unnamed slot to slot any content into the sidebar.",
121623
+ "name": ""
121204
121624
  },
121625
+ {
121626
+ "description": "Use the title slot to add an <sbb-title>.",
121627
+ "name": "title"
121628
+ }
121629
+ ],
121630
+ "members": [
121205
121631
  {
121206
121632
  "kind": "field",
121207
- "name": "value",
121633
+ "name": "elementName",
121208
121634
  "type": {
121209
121635
  "text": "string"
121210
121636
  },
121211
121637
  "privacy": "public",
121638
+ "static": true,
121639
+ "readonly": true,
121212
121640
  "inheritedFrom": {
121213
- "name": "SbbButtonBaseElement",
121214
- "module": "core/base-elements/button-base-element.js"
121641
+ "name": "SbbElement",
121642
+ "module": "core/base-elements/element.js"
121215
121643
  },
121216
- "default": "''",
121217
- "description": "Value of the form element.",
121218
- "attribute": "value"
121644
+ "default": "'sbb-sidebar'"
121219
121645
  },
121220
121646
  {
121221
121647
  "kind": "field",
121222
- "name": "type",
121223
- "privacy": "public",
121224
- "description": "The type attribute to use for the button.",
121225
- "default": "'button'",
121648
+ "name": "color",
121226
121649
  "type": {
121227
- "text": "SbbButtonType"
121650
+ "text": "'white' | 'milk'"
121228
121651
  },
121229
- "attribute": "type",
121230
- "inheritedFrom": {
121231
- "name": "SbbButtonBaseElement",
121232
- "module": "core/base-elements/button-base-element.js"
121233
- }
121652
+ "privacy": "public",
121653
+ "default": "'white'",
121654
+ "description": "Background color of the sidebar. Either `white` or `milk`.",
121655
+ "attribute": "color",
121656
+ "reflects": true
121234
121657
  },
121235
121658
  {
121236
121659
  "kind": "field",
121237
- "name": "form",
121660
+ "name": "mode",
121238
121661
  "type": {
121239
- "text": "HTMLFormElement | null"
121662
+ "text": "'side' | 'over'"
121240
121663
  },
121241
121664
  "privacy": "public",
121242
- "description": "The `<form>` element to associate the button with.",
121243
- "inheritedFrom": {
121244
- "name": "SbbButtonBaseElement",
121245
- "module": "core/base-elements/button-base-element.js"
121246
- },
121247
- "attribute": "form"
121665
+ "default": "'side'",
121666
+ "description": "Mode of the sidebar; one of 'side' or 'over'.",
121667
+ "attribute": "mode",
121668
+ "reflects": true
121248
121669
  },
121249
121670
  {
121250
121671
  "kind": "field",
121251
- "name": "_formId",
121672
+ "name": "position",
121252
121673
  "type": {
121253
- "text": "string"
121254
- },
121255
- "privacy": "private",
121256
- "default": "''",
121257
- "inheritedFrom": {
121258
- "name": "SbbButtonBaseElement",
121259
- "module": "core/base-elements/button-base-element.js"
121260
- }
121261
- },
121262
- {
121263
- "kind": "field",
121264
- "name": "_handleButtonClick",
121265
- "privacy": "private",
121266
- "inheritedFrom": {
121267
- "name": "SbbButtonBaseElement",
121268
- "module": "core/base-elements/button-base-element.js"
121269
- }
121270
- },
121271
- {
121272
- "kind": "method",
121273
- "name": "_requestSubmit",
121274
- "privacy": "private",
121275
- "return": {
121276
- "type": {
121277
- "text": "void"
121278
- }
121674
+ "text": "'start' | 'end'"
121279
121675
  },
121280
- "parameters": [
121281
- {
121282
- "name": "form",
121283
- "type": {
121284
- "text": "HTMLFormElement"
121285
- }
121286
- }
121287
- ],
121288
- "inheritedFrom": {
121289
- "name": "SbbButtonBaseElement",
121290
- "module": "core/base-elements/button-base-element.js"
121291
- }
121292
- },
121293
- {
121294
- "kind": "field",
121295
- "name": "_formKeyDown",
121296
- "privacy": "private",
121297
- "inheritedFrom": {
121298
- "name": "SbbButtonBaseElement",
121299
- "module": "core/base-elements/button-base-element.js"
121300
- }
121676
+ "privacy": "public",
121677
+ "default": "'start'",
121678
+ "description": "The side that the sidebar is attached to.",
121679
+ "attribute": "position",
121680
+ "reflects": true
121301
121681
  },
121302
121682
  {
121303
121683
  "kind": "field",
121304
- "name": "formAssociated",
121684
+ "name": "opened",
121305
121685
  "type": {
121306
121686
  "text": "boolean"
121307
121687
  },
121308
121688
  "privacy": "public",
121309
- "static": true,
121310
- "default": "true",
121311
- "inheritedFrom": {
121312
- "name": "SbbFormAssociatedMixin",
121313
- "module": "core/mixins/form-associated-mixin.js"
121314
- }
121689
+ "default": "false",
121690
+ "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
121691
+ "attribute": "opened",
121692
+ "reflects": true
121315
121693
  },
121316
121694
  {
121317
121695
  "kind": "field",
121318
- "name": "name",
121319
- "privacy": "public",
121320
- "description": "Name of the form element. Will be read from name attribute.",
121696
+ "name": "focusOnOpen",
121321
121697
  "type": {
121322
- "text": "string"
121698
+ "text": "boolean"
121323
121699
  },
121324
- "attribute": "name",
121325
- "inheritedFrom": {
121326
- "name": "SbbFormAssociatedMixin",
121327
- "module": "core/mixins/form-associated-mixin.js"
121328
- }
121700
+ "privacy": "public",
121701
+ "default": "false",
121702
+ "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.",
121703
+ "attribute": "focus-on-open"
121329
121704
  },
121330
121705
  {
121331
121706
  "kind": "field",
121332
- "name": "validity",
121707
+ "name": "container",
121333
121708
  "type": {
121334
- "text": "ValidityState"
121709
+ "text": "SbbSidebarContainerElement | null"
121335
121710
  },
121336
121711
  "privacy": "public",
121337
- "description": "Returns the ValidityState object for this element.",
121712
+ "description": "Returns the SbbSidebarContainerElement where this sidebar is contained.",
121338
121713
  "readonly": true,
121339
- "inheritedFrom": {
121340
- "name": "SbbFormAssociatedMixin",
121341
- "module": "core/mixins/form-associated-mixin.js"
121342
- }
121714
+ "default": "null"
121343
121715
  },
121344
121716
  {
121345
121717
  "kind": "field",
121346
- "name": "validationMessage",
121718
+ "name": "_container",
121347
121719
  "type": {
121348
- "text": "string"
121720
+ "text": "SbbSidebarContainerElement | null"
121349
121721
  },
121350
- "privacy": "public",
121351
- "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.",
121352
- "readonly": true,
121353
- "inheritedFrom": {
121354
- "name": "SbbFormAssociatedMixin",
121355
- "module": "core/mixins/form-associated-mixin.js"
121356
- }
121722
+ "privacy": "private",
121723
+ "default": "null"
121357
121724
  },
121358
121725
  {
121359
121726
  "kind": "field",
121360
- "name": "willValidate",
121727
+ "name": "_lastFocusedElement",
121361
121728
  "type": {
121362
- "text": "boolean"
121729
+ "text": "HTMLElement | null"
121363
121730
  },
121364
- "privacy": "public",
121365
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
121366
- "readonly": true,
121367
- "inheritedFrom": {
121368
- "name": "SbbFormAssociatedMixin",
121369
- "module": "core/mixins/form-associated-mixin.js"
121370
- }
121731
+ "privacy": "private",
121732
+ "default": "null"
121371
121733
  },
121372
121734
  {
121373
121735
  "kind": "field",
121374
- "name": "_validityStates",
121736
+ "name": "_focusTrapController",
121375
121737
  "privacy": "private",
121376
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
121377
- "inheritedFrom": {
121378
- "name": "SbbFormAssociatedMixin",
121379
- "module": "core/mixins/form-associated-mixin.js"
121380
- }
121738
+ "default": "new SbbFocusTrapController(this)"
121381
121739
  },
121382
121740
  {
121383
121741
  "kind": "field",
121384
- "name": "formDisabled",
121385
- "type": {
121386
- "text": "boolean"
121387
- },
121388
- "privacy": "protected",
121389
- "default": "false",
121390
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
121391
- "inheritedFrom": {
121392
- "name": "SbbFormAssociatedMixin",
121393
- "module": "core/mixins/form-associated-mixin.js"
121394
- }
121395
- },
121396
- {
121397
- "kind": "method",
121398
- "name": "checkValidity",
121399
- "privacy": "public",
121400
- "return": {
121401
- "type": {
121402
- "text": "boolean"
121403
- }
121404
- },
121405
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
121406
- "inheritedFrom": {
121407
- "name": "SbbFormAssociatedMixin",
121408
- "module": "core/mixins/form-associated-mixin.js"
121409
- }
121742
+ "name": "_escapableOverlayController",
121743
+ "privacy": "private",
121744
+ "default": "new SbbEscapableOverlayController(this)"
121410
121745
  },
121411
121746
  {
121412
121747
  "kind": "method",
121413
- "name": "reportValidity",
121748
+ "name": "toggle",
121414
121749
  "privacy": "public",
121415
121750
  "return": {
121416
121751
  "type": {
121417
- "text": "boolean"
121752
+ "text": "void"
121418
121753
  }
121419
121754
  },
121420
- "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.",
121421
- "inheritedFrom": {
121422
- "name": "SbbFormAssociatedMixin",
121423
- "module": "core/mixins/form-associated-mixin.js"
121424
- }
121755
+ "description": "Toggles the sidebar visibility."
121425
121756
  },
121426
121757
  {
121427
121758
  "kind": "method",
121428
- "name": "setCustomValidity",
121759
+ "name": "open",
121429
121760
  "privacy": "public",
121430
121761
  "return": {
121431
121762
  "type": {
121432
121763
  "text": "void"
121433
121764
  }
121434
121765
  },
121435
- "parameters": [
121436
- {
121437
- "name": "message",
121438
- "type": {
121439
- "text": "string"
121440
- }
121441
- }
121442
- ],
121443
- "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.",
121766
+ "description": "Opens the sidebar.",
121444
121767
  "inheritedFrom": {
121445
- "name": "SbbFormAssociatedMixin",
121446
- "module": "core/mixins/form-associated-mixin.js"
121768
+ "name": "SbbOpenCloseBaseElement",
121769
+ "module": "core/base-elements/open-close-base-element.js"
121447
121770
  }
121448
121771
  },
121449
121772
  {
121450
121773
  "kind": "method",
121451
- "name": "_hasDisabledAncestor",
121774
+ "name": "_isZeroAnimationDuration",
121452
121775
  "privacy": "private",
121453
121776
  "return": {
121454
121777
  "type": {
121455
121778
  "text": "boolean"
121456
121779
  }
121457
- },
121458
- "inheritedFrom": {
121459
- "name": "SbbFormAssociatedMixin",
121460
- "module": "core/mixins/form-associated-mixin.js"
121461
121780
  }
121462
121781
  },
121463
121782
  {
121464
121783
  "kind": "method",
121465
- "name": "updateFormValue",
121466
- "privacy": "protected",
121784
+ "name": "_handleOpening",
121785
+ "privacy": "private",
121467
121786
  "return": {
121468
121787
  "type": {
121469
121788
  "text": "void"
121470
121789
  }
121471
- },
121472
- "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",
121473
- "inheritedFrom": {
121474
- "name": "SbbFormAssociatedMixin",
121475
- "module": "core/mixins/form-associated-mixin.js"
121476
121790
  }
121477
121791
  },
121478
121792
  {
121479
121793
  "kind": "method",
121480
- "name": "formState",
121481
- "privacy": "protected",
121794
+ "name": "close",
121795
+ "privacy": "public",
121482
121796
  "return": {
121483
121797
  "type": {
121484
- "text": "FormRestoreState"
121798
+ "text": "void"
121485
121799
  }
121486
121800
  },
121801
+ "description": "Closes the sidebar.",
121487
121802
  "inheritedFrom": {
121488
- "name": "SbbFormAssociatedMixin",
121489
- "module": "core/mixins/form-associated-mixin.js"
121803
+ "name": "SbbOpenCloseBaseElement",
121804
+ "module": "core/base-elements/open-close-base-element.js"
121490
121805
  }
121491
121806
  },
121492
121807
  {
121493
121808
  "kind": "method",
121494
- "name": "setValidityFlag",
121495
- "privacy": "protected",
121809
+ "name": "_handleClosing",
121810
+ "privacy": "private",
121496
121811
  "return": {
121497
121812
  "type": {
121498
121813
  "text": "void"
121499
121814
  }
121500
- },
121501
- "parameters": [
121502
- {
121503
- "name": "flag",
121504
- "type": {
121505
- "text": "T"
121506
- }
121507
- },
121508
- {
121509
- "name": "message",
121510
- "type": {
121511
- "text": "string"
121512
- }
121513
- },
121514
- {
121515
- "name": "flagValue",
121516
- "optional": true,
121517
- "type": {
121518
- "text": "ValidityStateFlags[T]"
121519
- }
121520
- }
121521
- ],
121522
- "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).",
121523
- "inheritedFrom": {
121524
- "name": "SbbFormAssociatedMixin",
121525
- "module": "core/mixins/form-associated-mixin.js"
121526
121815
  }
121527
121816
  },
121528
121817
  {
121529
121818
  "kind": "method",
121530
- "name": "removeValidityFlag",
121531
- "privacy": "protected",
121819
+ "name": "_takeFocus",
121820
+ "privacy": "private",
121532
121821
  "return": {
121533
121822
  "type": {
121534
121823
  "text": "void"
121535
121824
  }
121536
- },
121537
- "parameters": [
121538
- {
121539
- "name": "flag",
121540
- "type": {
121541
- "text": "T"
121542
- }
121543
- }
121544
- ],
121545
- "description": "Removes the validity state flag entry and updates validity state.",
121546
- "inheritedFrom": {
121547
- "name": "SbbFormAssociatedMixin",
121548
- "module": "core/mixins/form-associated-mixin.js"
121549
121825
  }
121550
121826
  },
121551
121827
  {
121552
121828
  "kind": "method",
121553
- "name": "validate",
121829
+ "name": "cedeFocus",
121554
121830
  "privacy": "protected",
121555
121831
  "return": {
121556
121832
  "type": {
121557
121833
  "text": "void"
121558
121834
  }
121559
- },
121560
- "description": "To be called whenever the current element needs to be validated.",
121561
- "inheritedFrom": {
121562
- "name": "SbbFormAssociatedMixin",
121563
- "module": "core/mixins/form-associated-mixin.js"
121564
121835
  }
121565
121836
  },
121566
121837
  {
121567
121838
  "kind": "method",
121568
- "name": "shouldValidate",
121569
- "privacy": "protected",
121839
+ "name": "_updateSidebarWidth",
121840
+ "privacy": "private",
121570
121841
  "return": {
121571
121842
  "type": {
121572
- "text": "boolean"
121843
+ "text": "void"
121573
121844
  }
121574
121845
  },
121575
121846
  "parameters": [
121576
121847
  {
121577
- "name": "name",
121848
+ "name": "oldPosition",
121849
+ "optional": true,
121578
121850
  "type": {
121579
- "text": "PropertyKey | undefined"
121851
+ "text": "this['position']"
121580
121852
  }
121581
121853
  }
121582
- ],
121583
- "description": "Whether validation should be run on a property change with the given name.",
121584
- "inheritedFrom": {
121585
- "name": "SbbFormAssociatedMixin",
121586
- "module": "core/mixins/form-associated-mixin.js"
121587
- }
121854
+ ]
121588
121855
  },
121589
121856
  {
121590
121857
  "kind": "method",
121591
- "name": "_setInternalValidity",
121858
+ "name": "_buildCssWidthVar",
121592
121859
  "privacy": "private",
121593
121860
  "return": {
121594
121861
  "type": {
121595
- "text": "void"
121862
+ "text": "string"
121596
121863
  }
121597
121864
  },
121598
- "inheritedFrom": {
121599
- "name": "SbbFormAssociatedMixin",
121600
- "module": "core/mixins/form-associated-mixin.js"
121601
- }
121602
- },
121603
- {
121604
- "kind": "field",
121605
- "name": "role",
121606
- "type": {
121607
- "text": "ElementInternals['role']"
121608
- },
121609
- "privacy": "public",
121610
- "static": true,
121611
- "readonly": true,
121612
- "default": "'button'",
121613
- "inheritedFrom": {
121614
- "name": "SbbButtonLikeBaseElement",
121615
- "module": "core/base-elements/button-base-element.js"
121616
- }
121617
- },
121618
- {
121619
- "kind": "field",
121620
- "name": "_preventScrollOnSpaceKeydown",
121621
- "privacy": "private",
121622
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
121623
- "parameters": [
121624
- {
121625
- "description": "The origin event.",
121626
- "name": "event"
121627
- }
121628
- ],
121629
- "inheritedFrom": {
121630
- "name": "SbbButtonLikeBaseElement",
121631
- "module": "core/base-elements/button-base-element.js"
121632
- }
121633
- },
121634
- {
121635
- "kind": "field",
121636
- "name": "_removeActiveMarker",
121637
- "privacy": "private",
121638
- "inheritedFrom": {
121639
- "name": "SbbButtonLikeBaseElement",
121640
- "module": "core/base-elements/button-base-element.js"
121641
- }
121642
- },
121643
- {
121644
- "kind": "field",
121645
- "name": "_dispatchClickEventOnSpaceKeyup",
121646
- "privacy": "private",
121647
- "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.",
121648
121865
  "parameters": [
121649
121866
  {
121650
- "description": "The origin event.",
121651
- "name": "event"
121867
+ "name": "position",
121868
+ "default": "this.position"
121652
121869
  }
121653
- ],
121654
- "inheritedFrom": {
121655
- "name": "SbbButtonLikeBaseElement",
121656
- "module": "core/base-elements/button-base-element.js"
121657
- }
121658
- },
121659
- {
121660
- "kind": "field",
121661
- "name": "_dispatchClickEvent",
121662
- "privacy": "private",
121663
- "inheritedFrom": {
121664
- "name": "SbbButtonLikeBaseElement",
121665
- "module": "core/base-elements/button-base-element.js"
121666
- }
121667
- },
121668
- {
121669
- "kind": "field",
121670
- "name": "maybeDisabled",
121671
- "type": {
121672
- "text": "boolean | undefined"
121673
- },
121674
- "privacy": "protected",
121675
- "readonly": true,
121676
- "inheritedFrom": {
121677
- "name": "SbbActionBaseElement",
121678
- "module": "core/base-elements/action-base-element.js"
121679
- }
121680
- },
121681
- {
121682
- "kind": "field",
121683
- "name": "maybeDisabledInteractive",
121684
- "type": {
121685
- "text": "boolean | undefined"
121686
- },
121687
- "privacy": "protected",
121688
- "readonly": true,
121689
- "inheritedFrom": {
121690
- "name": "SbbActionBaseElement",
121691
- "module": "core/base-elements/action-base-element.js"
121692
- }
121870
+ ]
121693
121871
  },
121694
121872
  {
121695
121873
  "kind": "method",
121696
- "name": "setupBaseEventHandlers",
121697
- "privacy": "protected",
121874
+ "name": "_isModeOver",
121875
+ "privacy": "private",
121698
121876
  "return": {
121699
121877
  "type": {
121700
- "text": "void"
121878
+ "text": "boolean"
121701
121879
  }
121702
- },
121703
- "inheritedFrom": {
121704
- "name": "SbbActionBaseElement",
121705
- "module": "core/base-elements/action-base-element.js"
121706
- }
121707
- },
121708
- {
121709
- "kind": "field",
121710
- "name": "_hydrationRequired",
121711
- "type": {
121712
- "text": "boolean"
121713
- },
121714
- "privacy": "private",
121715
- "default": "!!this.shadowRoot",
121716
- "inheritedFrom": {
121717
- "name": "SbbElement",
121718
- "module": "core/base-elements/element.js"
121719
- }
121720
- },
121721
- {
121722
- "kind": "field",
121723
- "name": "_hydrationComplete",
121724
- "privacy": "private",
121725
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
121726
- "inheritedFrom": {
121727
- "name": "SbbElement",
121728
- "module": "core/base-elements/element.js"
121729
- }
121730
- },
121731
- {
121732
- "kind": "field",
121733
- "name": "_resolveHydration",
121734
- "type": {
121735
- "text": "(hydrationRequired: boolean) => void"
121736
- },
121737
- "privacy": "private",
121738
- "inheritedFrom": {
121739
- "name": "SbbElement",
121740
- "module": "core/base-elements/element.js"
121741
121880
  }
121742
121881
  },
121743
- {
121744
- "kind": "field",
121745
- "name": "hydrationRequired",
121746
- "type": {
121747
- "text": "boolean"
121748
- },
121749
- "privacy": "protected",
121750
- "description": "Returns whether hydration is required and not completed.",
121751
- "readonly": true,
121752
- "inheritedFrom": {
121753
- "name": "SbbElement",
121754
- "module": "core/base-elements/element.js"
121755
- },
121756
- "default": "!!this.shadowRoot"
121757
- },
121758
121882
  {
121759
121883
  "kind": "method",
121760
- "name": "toggleState",
121761
- "privacy": "protected",
121884
+ "name": "_onTransitionEnd",
121885
+ "privacy": "private",
121762
121886
  "return": {
121763
121887
  "type": {
121764
121888
  "text": "void"
@@ -121766,297 +121890,231 @@
121766
121890
  },
121767
121891
  "parameters": [
121768
121892
  {
121769
- "name": "value",
121770
- "type": {
121771
- "text": "string"
121772
- }
121773
- },
121774
- {
121775
- "name": "force",
121776
- "optional": true,
121893
+ "name": "event",
121777
121894
  "type": {
121778
- "text": "boolean"
121895
+ "text": "TransitionEvent"
121779
121896
  }
121780
121897
  }
121781
- ],
121782
- "inheritedFrom": {
121783
- "name": "SbbElement",
121784
- "module": "core/base-elements/element.js"
121898
+ ]
121899
+ },
121900
+ {
121901
+ "kind": "method",
121902
+ "name": "_detectScrolledState",
121903
+ "privacy": "private",
121904
+ "return": {
121905
+ "type": {
121906
+ "text": "void"
121907
+ }
121785
121908
  }
121786
121909
  },
121787
121910
  {
121788
121911
  "kind": "field",
121789
- "name": "['_$sbbElement$']",
121912
+ "name": "isAnimating",
121790
121913
  "type": {
121791
121914
  "text": "boolean"
121792
121915
  },
121793
121916
  "privacy": "public",
121794
- "static": true,
121795
- "default": "true",
121917
+ "default": "false",
121918
+ "description": "Whether the component is currently animating.",
121796
121919
  "inheritedFrom": {
121797
- "name": "SbbElement",
121798
- "module": "core/base-elements/element.js"
121920
+ "name": "SbbAnimationCompleteMixin",
121921
+ "module": "core/mixins/animation-complete-mixin.js"
121799
121922
  }
121800
121923
  },
121801
121924
  {
121802
121925
  "kind": "field",
121803
- "name": "_controllers",
121926
+ "name": "animationComplete",
121804
121927
  "type": {
121805
- "text": "Set<SbbReactiveController> | undefined"
121928
+ "text": "Promise<void>"
121806
121929
  },
121807
- "privacy": "private",
121930
+ "privacy": "public",
121931
+ "description": "Returns a promise which completes whenever an animation ends.\nWhen a new animation starts, a new Promise is returned.",
121932
+ "readonly": true,
121808
121933
  "inheritedFrom": {
121809
- "name": "SbbElement",
121810
- "module": "core/base-elements/element.js"
121934
+ "name": "SbbAnimationCompleteMixin",
121935
+ "module": "core/mixins/animation-complete-mixin.js"
121811
121936
  }
121812
- }
121813
- ],
121814
- "superclass": {
121815
- "name": "SbbSecondaryButtonElement",
121816
- "module": "button.pure.js"
121817
- },
121818
- "tagName": "sbb-sidebar-close-button",
121819
- "customElement": true,
121820
- "attributes": [
121937
+ },
121821
121938
  {
121822
- "name": "size",
121939
+ "kind": "field",
121940
+ "name": "_animationPromise",
121823
121941
  "type": {
121824
- "text": "SbbButtonSize"
121942
+ "text": "Promise<void>"
121825
121943
  },
121826
- "description": "Size variant, either l, m or s.",
121827
- "default": "'l' / 's' (lean)",
121828
- "fieldName": "size",
121944
+ "privacy": "private",
121829
121945
  "inheritedFrom": {
121830
- "name": "SbbButtonCommonElementMixin",
121831
- "module": "button/common/button-common.js"
121946
+ "name": "SbbAnimationCompleteMixin",
121947
+ "module": "core/mixins/animation-complete-mixin.js"
121832
121948
  }
121833
121949
  },
121834
121950
  {
121835
- "name": "loading",
121836
- "type": {
121837
- "text": "boolean"
121951
+ "kind": "method",
121952
+ "name": "startAnimation",
121953
+ "privacy": "protected",
121954
+ "return": {
121955
+ "type": {
121956
+ "text": "void"
121957
+ }
121838
121958
  },
121839
- "default": "false",
121840
- "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.",
121841
- "fieldName": "loading",
121842
121959
  "inheritedFrom": {
121843
- "name": "SbbButtonCommonElementMixin",
121844
- "module": "button/common/button-common.js"
121960
+ "name": "SbbAnimationCompleteMixin",
121961
+ "module": "core/mixins/animation-complete-mixin.js"
121845
121962
  }
121846
121963
  },
121847
121964
  {
121848
- "name": "negative",
121849
- "type": {
121850
- "text": "boolean"
121965
+ "kind": "method",
121966
+ "name": "stopAnimation",
121967
+ "privacy": "protected",
121968
+ "return": {
121969
+ "type": {
121970
+ "text": "void"
121971
+ }
121851
121972
  },
121852
- "default": "false",
121853
- "description": "Negative coloring variant flag.",
121854
- "fieldName": "negative",
121973
+ "description": "Overriding stopAnimation() breaks functionality.",
121855
121974
  "inheritedFrom": {
121856
- "name": "SbbNegativeMixin",
121857
- "module": "core/mixins/negative-mixin.js"
121975
+ "name": "SbbAnimationCompleteMixin",
121976
+ "module": "core/mixins/animation-complete-mixin.js"
121858
121977
  }
121859
121978
  },
121860
121979
  {
121861
- "name": "icon-name",
121862
- "type": {
121863
- "text": "string"
121980
+ "kind": "method",
121981
+ "name": "_enqueueAnimation",
121982
+ "privacy": "private",
121983
+ "return": {
121984
+ "type": {
121985
+ "text": "Promise<void>"
121986
+ }
121864
121987
  },
121865
- "default": "''",
121866
- "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.",
121867
- "fieldName": "iconName",
121868
121988
  "inheritedFrom": {
121869
- "name": "SbbIconNameMixin",
121870
- "module": "icon/icon-name-mixin.js"
121989
+ "name": "SbbAnimationCompleteMixin",
121990
+ "module": "core/mixins/animation-complete-mixin.js"
121871
121991
  }
121872
121992
  },
121873
121993
  {
121874
- "name": "disabled-interactive",
121994
+ "kind": "field",
121995
+ "name": "events",
121996
+ "privacy": "public",
121997
+ "static": true,
121998
+ "readonly": true,
121999
+ "default": "{ beforeopen: 'beforeopen', open: 'open', beforeclose: 'beforeclose', close: 'close', }",
121875
122000
  "type": {
121876
- "text": "boolean"
122001
+ "text": "{\n beforeopen: 'beforeopen',\n open: 'open',\n beforeclose: 'beforeclose',\n close: 'close',\n }"
121877
122002
  },
121878
- "default": "false",
121879
- "description": "Whether the button should be aria-disabled but stay interactive.",
121880
- "fieldName": "disabledInteractive",
121881
122003
  "inheritedFrom": {
121882
- "name": "SbbDisabledInteractiveMixin",
121883
- "module": "core/mixins/disabled-mixin.js"
122004
+ "name": "SbbOpenCloseBaseElement",
122005
+ "module": "core/base-elements/open-close-base-element.js"
121884
122006
  }
121885
122007
  },
121886
122008
  {
121887
- "name": "disabled",
121888
- "description": "Whether the component is disabled.",
121889
- "default": "false",
122009
+ "kind": "field",
122010
+ "name": "state",
122011
+ "privacy": "protected",
122012
+ "description": "The state of the component.",
121890
122013
  "type": {
121891
- "text": "boolean"
122014
+ "text": "SbbOpenedClosedState"
121892
122015
  },
121893
- "fieldName": "disabled",
122016
+ "default": "'closed'",
121894
122017
  "inheritedFrom": {
121895
- "name": "SbbDisabledMixin",
121896
- "module": "core/mixins/disabled-mixin.js"
122018
+ "name": "SbbOpenCloseBaseElement",
122019
+ "module": "core/base-elements/open-close-base-element.js"
121897
122020
  }
121898
122021
  },
121899
122022
  {
121900
- "name": "value",
122023
+ "kind": "field",
122024
+ "name": "_state",
121901
122025
  "type": {
121902
- "text": "string"
122026
+ "text": "SbbOpenedClosedState"
121903
122027
  },
121904
- "default": "''",
121905
- "description": "Value of the form element.",
121906
- "fieldName": "value",
122028
+ "privacy": "private",
121907
122029
  "inheritedFrom": {
121908
- "name": "SbbButtonBaseElement",
121909
- "module": "core/base-elements/button-base-element.js"
122030
+ "name": "SbbOpenCloseBaseElement",
122031
+ "module": "core/base-elements/open-close-base-element.js"
121910
122032
  }
121911
122033
  },
121912
122034
  {
121913
- "name": "type",
121914
- "description": "The type attribute to use for the button.",
121915
- "default": "'button'",
122035
+ "kind": "field",
122036
+ "name": "isOpen",
121916
122037
  "type": {
121917
- "text": "SbbButtonType"
122038
+ "text": "boolean"
121918
122039
  },
121919
- "fieldName": "type",
122040
+ "privacy": "public",
122041
+ "description": "Whether the element is open.",
122042
+ "readonly": true,
121920
122043
  "inheritedFrom": {
121921
- "name": "SbbButtonBaseElement",
121922
- "module": "core/base-elements/button-base-element.js"
122044
+ "name": "SbbOpenCloseBaseElement",
122045
+ "module": "core/base-elements/open-close-base-element.js"
121923
122046
  }
121924
122047
  },
121925
122048
  {
121926
- "name": "form",
121927
- "description": "The `<form>` element to associate the button with.",
121928
- "type": {
121929
- "text": "HTMLFormElement | null"
122049
+ "kind": "method",
122050
+ "name": "escapeStrategy",
122051
+ "privacy": "public",
122052
+ "return": {
122053
+ "type": {
122054
+ "text": "void"
122055
+ }
121930
122056
  },
121931
- "fieldName": "form",
122057
+ "description": "The method which is called on escape key press. Defaults to calling close()",
121932
122058
  "inheritedFrom": {
121933
- "name": "SbbButtonBaseElement",
121934
- "module": "core/base-elements/button-base-element.js"
122059
+ "name": "SbbOpenCloseBaseElement",
122060
+ "module": "core/base-elements/open-close-base-element.js"
121935
122061
  }
121936
122062
  },
121937
122063
  {
121938
- "name": "name",
121939
- "description": "Name of the form element. Will be read from name attribute.",
121940
- "type": {
121941
- "text": "string"
122064
+ "kind": "method",
122065
+ "name": "dispatchBeforeOpenEvent",
122066
+ "privacy": "protected",
122067
+ "return": {
122068
+ "type": {
122069
+ "text": "boolean"
122070
+ }
121942
122071
  },
121943
- "fieldName": "name",
121944
122072
  "inheritedFrom": {
121945
- "name": "SbbFormAssociatedMixin",
121946
- "module": "core/mixins/form-associated-mixin.js"
121947
- }
121948
- }
121949
- ],
121950
- "cssProperties": [
121951
- {
121952
- "description": "The delay before the loading animation starts, when setting the button into loading state.",
121953
- "name": "--sbb-button-loading-delay",
121954
- "default": "300ms",
121955
- "inheritedFrom": {
121956
- "name": "SbbSecondaryButtonElement",
121957
- "module": "button/secondary-button/secondary-button.component.js"
122073
+ "name": "SbbOpenCloseBaseElement",
122074
+ "module": "core/base-elements/open-close-base-element.js"
121958
122075
  }
121959
- }
121960
- ]
121961
- }
121962
- ],
121963
- "exports": [
121964
- {
121965
- "kind": "js",
121966
- "name": "SbbSidebarCloseButtonElement",
121967
- "declaration": {
121968
- "name": "SbbSidebarCloseButtonElement",
121969
- "module": "sidebar/sidebar-close-button/sidebar-close-button.component.js"
121970
- }
121971
- }
121972
- ]
121973
- },
121974
- {
121975
- "kind": "javascript-module",
121976
- "path": "sidebar/sidebar-container/sidebar-container.component.js",
121977
- "declarations": [
121978
- {
121979
- "kind": "class",
121980
- "description": "This is the parent component to one or two `<sbb-sidebar>`s that validates the state internally\nand coordinates the backdrop and content styling.",
121981
- "name": "SbbSidebarContainerElement",
121982
- "slots": [
121983
- {
121984
- "description": "Use the unnamed slot to add `sbb-sidebar` and `sbb-sidebar-content` elements.",
121985
- "name": ""
121986
- }
121987
- ],
121988
- "members": [
122076
+ },
121989
122077
  {
121990
- "kind": "field",
121991
- "name": "elementName",
121992
- "type": {
121993
- "text": "string"
122078
+ "kind": "method",
122079
+ "name": "dispatchOpenEvent",
122080
+ "privacy": "protected",
122081
+ "return": {
122082
+ "type": {
122083
+ "text": "boolean"
122084
+ }
121994
122085
  },
121995
- "privacy": "public",
121996
- "static": true,
121997
- "readonly": true,
121998
- "default": "'sbb-sidebar-container'",
121999
122086
  "inheritedFrom": {
122000
- "name": "SbbElement",
122001
- "module": "core/base-elements/element.js"
122087
+ "name": "SbbOpenCloseBaseElement",
122088
+ "module": "core/base-elements/open-close-base-element.js"
122002
122089
  }
122003
122090
  },
122004
- {
122005
- "kind": "field",
122006
- "name": "sidebars",
122007
- "type": {
122008
- "text": "SbbSidebarElement[]"
122009
- },
122010
- "privacy": "public",
122011
- "description": "The sidebar children.",
122012
- "readonly": true
122013
- },
122014
- {
122015
- "kind": "field",
122016
- "name": "start",
122017
- "type": {
122018
- "text": "SbbSidebarElement | null"
122019
- },
122020
- "privacy": "public",
122021
- "description": "The sidebar child with the `start` position.",
122022
- "readonly": true
122023
- },
122024
- {
122025
- "kind": "field",
122026
- "name": "end",
122027
- "type": {
122028
- "text": "SbbSidebarElement | null"
122029
- },
122030
- "privacy": "public",
122031
- "description": "The sidebar child with the `end` position.",
122032
- "readonly": true
122033
- },
122034
- {
122035
- "kind": "field",
122036
- "name": "_forcedClosedSidebars",
122037
- "privacy": "private",
122038
- "default": "new WeakSet<SbbSidebarElement>()"
122039
- },
122040
122091
  {
122041
122092
  "kind": "method",
122042
- "name": "_handleWidthChange",
122043
- "privacy": "private",
122093
+ "name": "dispatchBeforeCloseEvent",
122094
+ "privacy": "protected",
122044
122095
  "return": {
122045
122096
  "type": {
122046
- "text": "void"
122097
+ "text": "boolean"
122047
122098
  }
122099
+ },
122100
+ "inheritedFrom": {
122101
+ "name": "SbbOpenCloseBaseElement",
122102
+ "module": "core/base-elements/open-close-base-element.js"
122048
122103
  }
122049
122104
  },
122050
122105
  {
122051
122106
  "kind": "method",
122052
- "name": "_calculateSpaceState",
122053
- "privacy": "private",
122107
+ "name": "dispatchCloseEvent",
122108
+ "privacy": "protected",
122054
122109
  "return": {
122055
122110
  "type": {
122056
- "text": "Promise<void>"
122111
+ "text": "boolean"
122057
122112
  }
122058
122113
  },
122059
- "description": "Closes and opens sidebars depending on available width\nof the container and its parent container."
122114
+ "inheritedFrom": {
122115
+ "name": "SbbOpenCloseBaseElement",
122116
+ "module": "core/base-elements/open-close-base-element.js"
122117
+ }
122060
122118
  },
122061
122119
  {
122062
122120
  "kind": "field",
@@ -122164,176 +122222,120 @@
122164
122222
  }
122165
122223
  }
122166
122224
  ],
122167
- "superclass": {
122168
- "name": "SbbElement",
122169
- "module": "core/base-elements.js"
122170
- },
122171
- "tagName": "sbb-sidebar-container",
122172
- "customElement": true
122173
- }
122174
- ],
122175
- "exports": [
122176
- {
122177
- "kind": "js",
122178
- "name": "SbbSidebarContainerElement",
122179
- "declaration": {
122180
- "name": "SbbSidebarContainerElement",
122181
- "module": "sidebar/sidebar-container/sidebar-container.component.js"
122182
- }
122183
- }
122184
- ]
122185
- },
122186
- {
122187
- "kind": "javascript-module",
122188
- "path": "sidebar/sidebar-content/sidebar-content.component.js",
122189
- "declarations": [
122190
- {
122191
- "kind": "class",
122192
- "description": "Container for the sidebar content. Intended to be placed inside an `sbb-sidebar-container` element.",
122193
- "name": "SbbSidebarContentElement",
122194
- "slots": [
122195
- {
122196
- "description": "Use the unnamed slot to add any content elements. Further `sbb-sidebar-container`s are possible.",
122197
- "name": ""
122198
- }
122199
- ],
122200
- "members": [
122225
+ "attributes": [
122201
122226
  {
122202
- "kind": "field",
122203
- "name": "elementName",
122227
+ "name": "color",
122204
122228
  "type": {
122205
- "text": "string"
122229
+ "text": "'white' | 'milk'"
122206
122230
  },
122207
- "privacy": "public",
122208
- "static": true,
122209
- "readonly": true,
122210
- "default": "'sbb-sidebar-content'",
122211
- "inheritedFrom": {
122212
- "name": "SbbElement",
122213
- "module": "core/base-elements/element.js"
122214
- }
122231
+ "default": "'white'",
122232
+ "description": "Background color of the sidebar. Either `white` or `milk`.",
122233
+ "fieldName": "color"
122215
122234
  },
122216
122235
  {
122217
- "kind": "field",
122218
- "name": "_hydrationRequired",
122236
+ "name": "mode",
122219
122237
  "type": {
122220
- "text": "boolean"
122238
+ "text": "'side' | 'over'"
122221
122239
  },
122222
- "privacy": "private",
122223
- "default": "!!this.shadowRoot",
122224
- "inheritedFrom": {
122225
- "name": "SbbElement",
122226
- "module": "core/base-elements/element.js"
122227
- }
122240
+ "default": "'side'",
122241
+ "description": "Mode of the sidebar; one of 'side' or 'over'.",
122242
+ "fieldName": "mode"
122228
122243
  },
122229
122244
  {
122230
- "kind": "field",
122231
- "name": "_hydrationComplete",
122232
- "privacy": "private",
122233
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
122234
- "inheritedFrom": {
122235
- "name": "SbbElement",
122236
- "module": "core/base-elements/element.js"
122237
- }
122245
+ "name": "position",
122246
+ "type": {
122247
+ "text": "'start' | 'end'"
122248
+ },
122249
+ "default": "'start'",
122250
+ "description": "The side that the sidebar is attached to.",
122251
+ "fieldName": "position"
122238
122252
  },
122239
122253
  {
122240
- "kind": "field",
122241
- "name": "_resolveHydration",
122254
+ "name": "opened",
122242
122255
  "type": {
122243
- "text": "(hydrationRequired: boolean) => void"
122256
+ "text": "boolean"
122244
122257
  },
122245
- "privacy": "private",
122246
- "inheritedFrom": {
122247
- "name": "SbbElement",
122248
- "module": "core/base-elements/element.js"
122249
- }
122258
+ "default": "false",
122259
+ "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
122260
+ "fieldName": "opened"
122250
122261
  },
122251
122262
  {
122252
- "kind": "field",
122253
- "name": "hydrationRequired",
122263
+ "name": "focus-on-open",
122254
122264
  "type": {
122255
122265
  "text": "boolean"
122256
122266
  },
122257
- "privacy": "protected",
122258
- "description": "Returns whether hydration is required and not completed.",
122259
- "readonly": true,
122260
- "inheritedFrom": {
122261
- "name": "SbbElement",
122262
- "module": "core/base-elements/element.js"
122267
+ "default": "false",
122268
+ "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.",
122269
+ "fieldName": "focusOnOpen"
122270
+ }
122271
+ ],
122272
+ "mixins": [
122273
+ {
122274
+ "name": "SbbAnimationCompleteMixin",
122275
+ "module": "core/mixins.js"
122276
+ }
122277
+ ],
122278
+ "superclass": {
122279
+ "name": "SbbOpenCloseBaseElement",
122280
+ "module": "core/base-elements.js"
122281
+ },
122282
+ "tagName": "sbb-sidebar",
122283
+ "customElement": true,
122284
+ "events": [
122285
+ {
122286
+ "name": "beforeopen",
122287
+ "type": {
122288
+ "text": "Event"
122263
122289
  },
122264
- "default": "!!this.shadowRoot"
122290
+ "description": "Emits whenever the component starts the opening transition. Can be canceled.",
122291
+ "inheritedFrom": {
122292
+ "name": "SbbOpenCloseBaseElement",
122293
+ "module": "core/base-elements/open-close-base-element.js"
122294
+ }
122265
122295
  },
122266
122296
  {
122267
- "kind": "method",
122268
- "name": "toggleState",
122269
- "privacy": "protected",
122270
- "return": {
122271
- "type": {
122272
- "text": "void"
122273
- }
122297
+ "name": "open",
122298
+ "type": {
122299
+ "text": "Event"
122274
122300
  },
122275
- "parameters": [
122276
- {
122277
- "name": "value",
122278
- "type": {
122279
- "text": "string"
122280
- }
122281
- },
122282
- {
122283
- "name": "force",
122284
- "optional": true,
122285
- "type": {
122286
- "text": "boolean"
122287
- }
122288
- }
122289
- ],
122301
+ "description": "Emits whenever the component is opened.",
122290
122302
  "inheritedFrom": {
122291
- "name": "SbbElement",
122292
- "module": "core/base-elements/element.js"
122303
+ "name": "SbbOpenCloseBaseElement",
122304
+ "module": "core/base-elements/open-close-base-element.js"
122293
122305
  }
122294
122306
  },
122295
122307
  {
122296
- "kind": "field",
122297
- "name": "['_$sbbElement$']",
122308
+ "name": "beforeclose",
122298
122309
  "type": {
122299
- "text": "boolean"
122310
+ "text": "Event"
122300
122311
  },
122301
- "privacy": "public",
122302
- "static": true,
122303
- "default": "true",
122312
+ "description": "Emits whenever the component begins the closing transition. Can be canceled.",
122304
122313
  "inheritedFrom": {
122305
- "name": "SbbElement",
122306
- "module": "core/base-elements/element.js"
122314
+ "name": "SbbOpenCloseBaseElement",
122315
+ "module": "core/base-elements/open-close-base-element.js"
122307
122316
  }
122308
122317
  },
122309
122318
  {
122310
- "kind": "field",
122311
- "name": "_controllers",
122319
+ "name": "close",
122312
122320
  "type": {
122313
- "text": "Set<SbbReactiveController> | undefined"
122321
+ "text": "Event"
122314
122322
  },
122315
- "privacy": "private",
122323
+ "description": "Emits whenever the component is closed.",
122316
122324
  "inheritedFrom": {
122317
- "name": "SbbElement",
122318
- "module": "core/base-elements/element.js"
122325
+ "name": "SbbOpenCloseBaseElement",
122326
+ "module": "core/base-elements/open-close-base-element.js"
122319
122327
  }
122320
122328
  }
122321
- ],
122322
- "superclass": {
122323
- "name": "SbbElement",
122324
- "module": "core/base-elements.js"
122325
- },
122326
- "tagName": "sbb-sidebar-content",
122327
- "customElement": true
122329
+ ]
122328
122330
  }
122329
122331
  ],
122330
122332
  "exports": [
122331
122333
  {
122332
122334
  "kind": "js",
122333
- "name": "SbbSidebarContentElement",
122335
+ "name": "SbbSidebarElement",
122334
122336
  "declaration": {
122335
- "name": "SbbSidebarContentElement",
122336
- "module": "sidebar/sidebar-content/sidebar-content.component.js"
122337
+ "name": "SbbSidebarElement",
122338
+ "module": "sidebar/sidebar/sidebar.component.js"
122337
122339
  }
122338
122340
  }
122339
122341
  ]