@sbb-esta/lyne-elements 4.10.0 → 4.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +1 -1
  2. package/breadcrumb/breadcrumb-group.js +1 -1
  3. package/{breadcrumb-group.component-Cc6CHbVy.js → breadcrumb-group.component-F3-JZkfO.js} +1 -1
  4. package/breadcrumb.js +1 -1
  5. package/breadcrumb.pure.js +1 -1
  6. package/calendar/calendar/calendar.component.js +1 -1
  7. package/calendar/calendar.js +1 -1
  8. package/{calendar.component-DhmaJt2k.js → calendar.component-DjQOyRGl.js} +2 -2
  9. package/calendar.js +1 -1
  10. package/calendar.pure.js +1 -1
  11. package/core/base-elements/element.js +1 -1
  12. package/core/styles/mixins/table.scss +18 -19
  13. package/core/styles/theme.scss +3 -1
  14. package/custom-elements.json +986 -959
  15. package/development/breadcrumb/breadcrumb-group/breadcrumb-group.component.js +1 -1
  16. package/development/breadcrumb/breadcrumb-group.js +1 -1
  17. package/development/breadcrumb-group.component-HBWRdDpS.js +195 -0
  18. package/development/breadcrumb.js +1 -1
  19. package/development/breadcrumb.pure.js +1 -1
  20. package/development/core/base-elements/element.d.ts.map +1 -1
  21. package/development/core/base-elements/element.js +2 -5
  22. package/development/dialog/dialog/dialog.component.js +1 -1
  23. package/development/dialog/dialog.js +1 -1
  24. package/development/{dialog.component-TBiL0Sdq.js → dialog.component-DKuR4u-y.js} +2 -2
  25. package/development/dialog.js +1 -1
  26. package/development/dialog.pure.js +1 -1
  27. package/development/expansion-panel/expansion-panel/expansion-panel.component.js +1 -1
  28. package/development/expansion-panel/expansion-panel.js +1 -1
  29. package/development/{expansion-panel.component-PDUmZe7w.js → expansion-panel.component-CV_IuWZA.js} +2 -2
  30. package/development/expansion-panel.js +1 -1
  31. package/development/expansion-panel.pure.js +1 -1
  32. package/development/form-field/form-field/form-field.component.d.ts +6 -0
  33. package/development/form-field/form-field/form-field.component.d.ts.map +1 -1
  34. package/development/form-field/form-field/form-field.component.js +1 -1
  35. package/development/form-field/form-field.js +1 -1
  36. package/development/form-field.component-DfMO_ihX.js +706 -0
  37. package/development/form-field.js +1 -1
  38. package/development/form-field.pure.js +1 -1
  39. package/development/sidebar/sidebar/sidebar.component.d.ts +1 -0
  40. package/development/sidebar/sidebar/sidebar.component.d.ts.map +1 -1
  41. package/development/sidebar/sidebar/sidebar.component.js +1 -1
  42. package/development/sidebar/sidebar.js +1 -1
  43. package/development/{sidebar.component-DvRTyNry.js → sidebar.component-BLqO52nH.js} +8 -1
  44. package/development/sidebar.js +1 -1
  45. package/development/sidebar.pure.js +1 -1
  46. package/dialog/dialog/dialog.component.js +1 -1
  47. package/dialog/dialog.js +1 -1
  48. package/{dialog.component-B3oQbMki.js → dialog.component-Dv5ch5mh.js} +1 -1
  49. package/dialog.js +1 -1
  50. package/dialog.pure.js +1 -1
  51. package/expansion-panel/expansion-panel/expansion-panel.component.js +1 -1
  52. package/expansion-panel/expansion-panel.js +1 -1
  53. package/{expansion-panel.component-BJCjwcoj.js → expansion-panel.component-DBnZ6IgB.js} +1 -1
  54. package/expansion-panel.js +1 -1
  55. package/expansion-panel.pure.js +1 -1
  56. package/form-field/form-field/form-field.component.js +1 -1
  57. package/form-field/form-field.js +1 -1
  58. package/{form-field.component-D50q1wC0.js → form-field.component-Cx5Keg_p.js} +15 -15
  59. package/form-field.js +1 -1
  60. package/form-field.pure.js +1 -1
  61. package/off-brand-theme.css +32 -37
  62. package/package.json +1 -1
  63. package/safety-theme.css +32 -37
  64. package/sidebar/sidebar/sidebar.component.js +1 -1
  65. package/sidebar/sidebar.js +1 -1
  66. package/{sidebar.component-DxOx02l6.js → sidebar.component-Dsx1FAg0.js} +5 -3
  67. package/sidebar.js +1 -1
  68. package/sidebar.pure.js +1 -1
  69. package/standard-theme.css +32 -37
  70. package/table.css +32 -37
  71. package/core/styles/table.scss +0 -156
  72. package/development/breadcrumb-group.component-B3Shlng3.js +0 -195
  73. package/development/form-field.component-BEXX0OcL.js +0 -702
@@ -9403,6 +9403,205 @@
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
+ },
9406
9605
  {
9407
9606
  "kind": "javascript-module",
9408
9607
  "path": "clock/clock.component.js",
@@ -9833,205 +10032,6 @@
9833
10032
  }
9834
10033
  ]
9835
10034
  },
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",
@@ -93941,6 +93941,15 @@
93941
93941
  "privacy": "private",
93942
93942
  "default": "null"
93943
93943
  },
93944
+ {
93945
+ "kind": "field",
93946
+ "name": "_previousType",
93947
+ "type": {
93948
+ "text": "string | null"
93949
+ },
93950
+ "privacy": "private",
93951
+ "default": "null"
93952
+ },
93944
93953
  {
93945
93954
  "kind": "method",
93946
93955
  "name": "_handleWrapperClick",
@@ -120224,16 +120233,20 @@
120224
120233
  },
120225
120234
  {
120226
120235
  "kind": "javascript-module",
120227
- "path": "sidebar/sidebar-container/sidebar-container.component.js",
120236
+ "path": "sidebar/sidebar/sidebar.component.js",
120228
120237
  "declarations": [
120229
120238
  {
120230
120239
  "kind": "class",
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",
120240
+ "description": "This component corresponds to a sidebar that can be opened on the sidebar container.",
120241
+ "name": "SbbSidebarElement",
120233
120242
  "slots": [
120234
120243
  {
120235
- "description": "Use the unnamed slot to add `sbb-sidebar` and `sbb-sidebar-content` elements.",
120244
+ "description": "Use the unnamed slot to slot any content into the sidebar.",
120236
120245
  "name": ""
120246
+ },
120247
+ {
120248
+ "description": "Use the title slot to add an <sbb-title>.",
120249
+ "name": "title"
120237
120250
  }
120238
120251
  ],
120239
120252
  "members": [
@@ -120246,51 +120259,156 @@
120246
120259
  "privacy": "public",
120247
120260
  "static": true,
120248
120261
  "readonly": true,
120249
- "default": "'sbb-sidebar-container'",
120250
120262
  "inheritedFrom": {
120251
120263
  "name": "SbbElement",
120252
120264
  "module": "core/base-elements/element.js"
120253
- }
120265
+ },
120266
+ "default": "'sbb-sidebar'"
120254
120267
  },
120255
120268
  {
120256
120269
  "kind": "field",
120257
- "name": "sidebars",
120270
+ "name": "color",
120258
120271
  "type": {
120259
- "text": "SbbSidebarElement[]"
120272
+ "text": "'white' | 'milk'"
120260
120273
  },
120261
120274
  "privacy": "public",
120262
- "description": "The sidebar children.",
120263
- "readonly": true
120275
+ "default": "'white'",
120276
+ "description": "Background color of the sidebar. Either `white` or `milk`.",
120277
+ "attribute": "color",
120278
+ "reflects": true
120264
120279
  },
120265
120280
  {
120266
120281
  "kind": "field",
120267
- "name": "start",
120282
+ "name": "mode",
120268
120283
  "type": {
120269
- "text": "SbbSidebarElement | null"
120284
+ "text": "'side' | 'over'"
120270
120285
  },
120271
120286
  "privacy": "public",
120272
- "description": "The sidebar child with the `start` position.",
120273
- "readonly": true
120287
+ "default": "'side'",
120288
+ "description": "Mode of the sidebar; one of 'side' or 'over'.",
120289
+ "attribute": "mode",
120290
+ "reflects": true
120274
120291
  },
120275
120292
  {
120276
120293
  "kind": "field",
120277
- "name": "end",
120294
+ "name": "position",
120278
120295
  "type": {
120279
- "text": "SbbSidebarElement | null"
120296
+ "text": "'start' | 'end'"
120280
120297
  },
120281
120298
  "privacy": "public",
120282
- "description": "The sidebar child with the `end` position.",
120283
- "readonly": true
120299
+ "default": "'start'",
120300
+ "description": "The side that the sidebar is attached to.",
120301
+ "attribute": "position",
120302
+ "reflects": true
120284
120303
  },
120285
120304
  {
120286
120305
  "kind": "field",
120287
- "name": "_forcedClosedSidebars",
120306
+ "name": "opened",
120307
+ "type": {
120308
+ "text": "boolean"
120309
+ },
120310
+ "privacy": "public",
120311
+ "default": "false",
120312
+ "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
120313
+ "attribute": "opened",
120314
+ "reflects": true
120315
+ },
120316
+ {
120317
+ "kind": "field",
120318
+ "name": "focusOnOpen",
120319
+ "type": {
120320
+ "text": "boolean"
120321
+ },
120322
+ "privacy": "public",
120323
+ "default": "false",
120324
+ "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.",
120325
+ "attribute": "focus-on-open"
120326
+ },
120327
+ {
120328
+ "kind": "field",
120329
+ "name": "container",
120330
+ "type": {
120331
+ "text": "SbbSidebarContainerElement | null"
120332
+ },
120333
+ "privacy": "public",
120334
+ "description": "Returns the SbbSidebarContainerElement where this sidebar is contained.",
120335
+ "readonly": true,
120336
+ "default": "null"
120337
+ },
120338
+ {
120339
+ "kind": "field",
120340
+ "name": "_container",
120341
+ "type": {
120342
+ "text": "SbbSidebarContainerElement | null"
120343
+ },
120288
120344
  "privacy": "private",
120289
- "default": "new WeakSet<SbbSidebarElement>()"
120345
+ "default": "null"
120346
+ },
120347
+ {
120348
+ "kind": "field",
120349
+ "name": "_lastFocusedElement",
120350
+ "type": {
120351
+ "text": "HTMLElement | null"
120352
+ },
120353
+ "privacy": "private",
120354
+ "default": "null"
120355
+ },
120356
+ {
120357
+ "kind": "field",
120358
+ "name": "_focusTrapController",
120359
+ "privacy": "private",
120360
+ "default": "new SbbFocusTrapController(this)"
120361
+ },
120362
+ {
120363
+ "kind": "field",
120364
+ "name": "_escapableOverlayController",
120365
+ "privacy": "private",
120366
+ "default": "new SbbEscapableOverlayController(this)"
120367
+ },
120368
+ {
120369
+ "kind": "field",
120370
+ "name": "_closeOnNavigation",
120371
+ "privacy": "private"
120290
120372
  },
120291
120373
  {
120292
120374
  "kind": "method",
120293
- "name": "_handleWidthChange",
120375
+ "name": "toggle",
120376
+ "privacy": "public",
120377
+ "return": {
120378
+ "type": {
120379
+ "text": "void"
120380
+ }
120381
+ },
120382
+ "description": "Toggles the sidebar visibility."
120383
+ },
120384
+ {
120385
+ "kind": "method",
120386
+ "name": "open",
120387
+ "privacy": "public",
120388
+ "return": {
120389
+ "type": {
120390
+ "text": "void"
120391
+ }
120392
+ },
120393
+ "description": "Opens the sidebar.",
120394
+ "inheritedFrom": {
120395
+ "name": "SbbOpenCloseBaseElement",
120396
+ "module": "core/base-elements/open-close-base-element.js"
120397
+ }
120398
+ },
120399
+ {
120400
+ "kind": "method",
120401
+ "name": "_isZeroAnimationDuration",
120402
+ "privacy": "private",
120403
+ "return": {
120404
+ "type": {
120405
+ "text": "boolean"
120406
+ }
120407
+ }
120408
+ },
120409
+ {
120410
+ "kind": "method",
120411
+ "name": "_handleOpening",
120294
120412
  "privacy": "private",
120295
120413
  "return": {
120296
120414
  "type": {
@@ -120300,14 +120418,330 @@
120300
120418
  },
120301
120419
  {
120302
120420
  "kind": "method",
120303
- "name": "_calculateSpaceState",
120421
+ "name": "close",
120422
+ "privacy": "public",
120423
+ "return": {
120424
+ "type": {
120425
+ "text": "void"
120426
+ }
120427
+ },
120428
+ "description": "Closes the sidebar.",
120429
+ "inheritedFrom": {
120430
+ "name": "SbbOpenCloseBaseElement",
120431
+ "module": "core/base-elements/open-close-base-element.js"
120432
+ }
120433
+ },
120434
+ {
120435
+ "kind": "method",
120436
+ "name": "_handleClosing",
120437
+ "privacy": "private",
120438
+ "return": {
120439
+ "type": {
120440
+ "text": "void"
120441
+ }
120442
+ }
120443
+ },
120444
+ {
120445
+ "kind": "method",
120446
+ "name": "_takeFocus",
120447
+ "privacy": "private",
120448
+ "return": {
120449
+ "type": {
120450
+ "text": "void"
120451
+ }
120452
+ }
120453
+ },
120454
+ {
120455
+ "kind": "method",
120456
+ "name": "cedeFocus",
120457
+ "privacy": "protected",
120458
+ "return": {
120459
+ "type": {
120460
+ "text": "void"
120461
+ }
120462
+ }
120463
+ },
120464
+ {
120465
+ "kind": "method",
120466
+ "name": "_updateSidebarWidth",
120467
+ "privacy": "private",
120468
+ "return": {
120469
+ "type": {
120470
+ "text": "void"
120471
+ }
120472
+ },
120473
+ "parameters": [
120474
+ {
120475
+ "name": "oldPosition",
120476
+ "optional": true,
120477
+ "type": {
120478
+ "text": "this['position']"
120479
+ }
120480
+ }
120481
+ ]
120482
+ },
120483
+ {
120484
+ "kind": "method",
120485
+ "name": "_buildCssWidthVar",
120486
+ "privacy": "private",
120487
+ "return": {
120488
+ "type": {
120489
+ "text": "string"
120490
+ }
120491
+ },
120492
+ "parameters": [
120493
+ {
120494
+ "name": "position",
120495
+ "default": "this.position"
120496
+ }
120497
+ ]
120498
+ },
120499
+ {
120500
+ "kind": "method",
120501
+ "name": "_isModeOver",
120502
+ "privacy": "private",
120503
+ "return": {
120504
+ "type": {
120505
+ "text": "boolean"
120506
+ }
120507
+ }
120508
+ },
120509
+ {
120510
+ "kind": "method",
120511
+ "name": "_onTransitionEnd",
120512
+ "privacy": "private",
120513
+ "return": {
120514
+ "type": {
120515
+ "text": "void"
120516
+ }
120517
+ },
120518
+ "parameters": [
120519
+ {
120520
+ "name": "event",
120521
+ "type": {
120522
+ "text": "TransitionEvent"
120523
+ }
120524
+ }
120525
+ ]
120526
+ },
120527
+ {
120528
+ "kind": "method",
120529
+ "name": "_detectScrolledState",
120530
+ "privacy": "private",
120531
+ "return": {
120532
+ "type": {
120533
+ "text": "void"
120534
+ }
120535
+ }
120536
+ },
120537
+ {
120538
+ "kind": "field",
120539
+ "name": "isAnimating",
120540
+ "type": {
120541
+ "text": "boolean"
120542
+ },
120543
+ "privacy": "public",
120544
+ "default": "false",
120545
+ "description": "Whether the component is currently animating.",
120546
+ "inheritedFrom": {
120547
+ "name": "SbbAnimationCompleteMixin",
120548
+ "module": "core/mixins/animation-complete-mixin.js"
120549
+ }
120550
+ },
120551
+ {
120552
+ "kind": "field",
120553
+ "name": "animationComplete",
120554
+ "type": {
120555
+ "text": "Promise<void>"
120556
+ },
120557
+ "privacy": "public",
120558
+ "description": "Returns a promise which completes whenever an animation ends.\nWhen a new animation starts, a new Promise is returned.",
120559
+ "readonly": true,
120560
+ "inheritedFrom": {
120561
+ "name": "SbbAnimationCompleteMixin",
120562
+ "module": "core/mixins/animation-complete-mixin.js"
120563
+ }
120564
+ },
120565
+ {
120566
+ "kind": "field",
120567
+ "name": "_animationPromise",
120568
+ "type": {
120569
+ "text": "Promise<void>"
120570
+ },
120571
+ "privacy": "private",
120572
+ "inheritedFrom": {
120573
+ "name": "SbbAnimationCompleteMixin",
120574
+ "module": "core/mixins/animation-complete-mixin.js"
120575
+ }
120576
+ },
120577
+ {
120578
+ "kind": "method",
120579
+ "name": "startAnimation",
120580
+ "privacy": "protected",
120581
+ "return": {
120582
+ "type": {
120583
+ "text": "void"
120584
+ }
120585
+ },
120586
+ "inheritedFrom": {
120587
+ "name": "SbbAnimationCompleteMixin",
120588
+ "module": "core/mixins/animation-complete-mixin.js"
120589
+ }
120590
+ },
120591
+ {
120592
+ "kind": "method",
120593
+ "name": "stopAnimation",
120594
+ "privacy": "protected",
120595
+ "return": {
120596
+ "type": {
120597
+ "text": "void"
120598
+ }
120599
+ },
120600
+ "description": "Overriding stopAnimation() breaks functionality.",
120601
+ "inheritedFrom": {
120602
+ "name": "SbbAnimationCompleteMixin",
120603
+ "module": "core/mixins/animation-complete-mixin.js"
120604
+ }
120605
+ },
120606
+ {
120607
+ "kind": "method",
120608
+ "name": "_enqueueAnimation",
120304
120609
  "privacy": "private",
120305
120610
  "return": {
120306
120611
  "type": {
120307
120612
  "text": "Promise<void>"
120308
120613
  }
120309
120614
  },
120310
- "description": "Closes and opens sidebars depending on available width\nof the container and its parent container."
120615
+ "inheritedFrom": {
120616
+ "name": "SbbAnimationCompleteMixin",
120617
+ "module": "core/mixins/animation-complete-mixin.js"
120618
+ }
120619
+ },
120620
+ {
120621
+ "kind": "field",
120622
+ "name": "events",
120623
+ "privacy": "public",
120624
+ "static": true,
120625
+ "readonly": true,
120626
+ "default": "{ beforeopen: 'beforeopen', open: 'open', beforeclose: 'beforeclose', close: 'close', }",
120627
+ "type": {
120628
+ "text": "{\n beforeopen: 'beforeopen',\n open: 'open',\n beforeclose: 'beforeclose',\n close: 'close',\n }"
120629
+ },
120630
+ "inheritedFrom": {
120631
+ "name": "SbbOpenCloseBaseElement",
120632
+ "module": "core/base-elements/open-close-base-element.js"
120633
+ }
120634
+ },
120635
+ {
120636
+ "kind": "field",
120637
+ "name": "state",
120638
+ "privacy": "protected",
120639
+ "description": "The state of the component.",
120640
+ "type": {
120641
+ "text": "SbbOpenedClosedState"
120642
+ },
120643
+ "default": "'closed'",
120644
+ "inheritedFrom": {
120645
+ "name": "SbbOpenCloseBaseElement",
120646
+ "module": "core/base-elements/open-close-base-element.js"
120647
+ }
120648
+ },
120649
+ {
120650
+ "kind": "field",
120651
+ "name": "_state",
120652
+ "type": {
120653
+ "text": "SbbOpenedClosedState"
120654
+ },
120655
+ "privacy": "private",
120656
+ "inheritedFrom": {
120657
+ "name": "SbbOpenCloseBaseElement",
120658
+ "module": "core/base-elements/open-close-base-element.js"
120659
+ }
120660
+ },
120661
+ {
120662
+ "kind": "field",
120663
+ "name": "isOpen",
120664
+ "type": {
120665
+ "text": "boolean"
120666
+ },
120667
+ "privacy": "public",
120668
+ "description": "Whether the element is open.",
120669
+ "readonly": true,
120670
+ "inheritedFrom": {
120671
+ "name": "SbbOpenCloseBaseElement",
120672
+ "module": "core/base-elements/open-close-base-element.js"
120673
+ }
120674
+ },
120675
+ {
120676
+ "kind": "method",
120677
+ "name": "escapeStrategy",
120678
+ "privacy": "public",
120679
+ "return": {
120680
+ "type": {
120681
+ "text": "void"
120682
+ }
120683
+ },
120684
+ "description": "The method which is called on escape key press. Defaults to calling close()",
120685
+ "inheritedFrom": {
120686
+ "name": "SbbOpenCloseBaseElement",
120687
+ "module": "core/base-elements/open-close-base-element.js"
120688
+ }
120689
+ },
120690
+ {
120691
+ "kind": "method",
120692
+ "name": "dispatchBeforeOpenEvent",
120693
+ "privacy": "protected",
120694
+ "return": {
120695
+ "type": {
120696
+ "text": "boolean"
120697
+ }
120698
+ },
120699
+ "inheritedFrom": {
120700
+ "name": "SbbOpenCloseBaseElement",
120701
+ "module": "core/base-elements/open-close-base-element.js"
120702
+ }
120703
+ },
120704
+ {
120705
+ "kind": "method",
120706
+ "name": "dispatchOpenEvent",
120707
+ "privacy": "protected",
120708
+ "return": {
120709
+ "type": {
120710
+ "text": "boolean"
120711
+ }
120712
+ },
120713
+ "inheritedFrom": {
120714
+ "name": "SbbOpenCloseBaseElement",
120715
+ "module": "core/base-elements/open-close-base-element.js"
120716
+ }
120717
+ },
120718
+ {
120719
+ "kind": "method",
120720
+ "name": "dispatchBeforeCloseEvent",
120721
+ "privacy": "protected",
120722
+ "return": {
120723
+ "type": {
120724
+ "text": "boolean"
120725
+ }
120726
+ },
120727
+ "inheritedFrom": {
120728
+ "name": "SbbOpenCloseBaseElement",
120729
+ "module": "core/base-elements/open-close-base-element.js"
120730
+ }
120731
+ },
120732
+ {
120733
+ "kind": "method",
120734
+ "name": "dispatchCloseEvent",
120735
+ "privacy": "protected",
120736
+ "return": {
120737
+ "type": {
120738
+ "text": "boolean"
120739
+ }
120740
+ },
120741
+ "inheritedFrom": {
120742
+ "name": "SbbOpenCloseBaseElement",
120743
+ "module": "core/base-elements/open-close-base-element.js"
120744
+ }
120311
120745
  },
120312
120746
  {
120313
120747
  "kind": "field",
@@ -120415,21 +120849,120 @@
120415
120849
  }
120416
120850
  }
120417
120851
  ],
120852
+ "attributes": [
120853
+ {
120854
+ "name": "color",
120855
+ "type": {
120856
+ "text": "'white' | 'milk'"
120857
+ },
120858
+ "default": "'white'",
120859
+ "description": "Background color of the sidebar. Either `white` or `milk`.",
120860
+ "fieldName": "color"
120861
+ },
120862
+ {
120863
+ "name": "mode",
120864
+ "type": {
120865
+ "text": "'side' | 'over'"
120866
+ },
120867
+ "default": "'side'",
120868
+ "description": "Mode of the sidebar; one of 'side' or 'over'.",
120869
+ "fieldName": "mode"
120870
+ },
120871
+ {
120872
+ "name": "position",
120873
+ "type": {
120874
+ "text": "'start' | 'end'"
120875
+ },
120876
+ "default": "'start'",
120877
+ "description": "The side that the sidebar is attached to.",
120878
+ "fieldName": "position"
120879
+ },
120880
+ {
120881
+ "name": "opened",
120882
+ "type": {
120883
+ "text": "boolean"
120884
+ },
120885
+ "default": "false",
120886
+ "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
120887
+ "fieldName": "opened"
120888
+ },
120889
+ {
120890
+ "name": "focus-on-open",
120891
+ "type": {
120892
+ "text": "boolean"
120893
+ },
120894
+ "default": "false",
120895
+ "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.",
120896
+ "fieldName": "focusOnOpen"
120897
+ }
120898
+ ],
120899
+ "mixins": [
120900
+ {
120901
+ "name": "SbbAnimationCompleteMixin",
120902
+ "module": "core/mixins.js"
120903
+ }
120904
+ ],
120418
120905
  "superclass": {
120419
- "name": "SbbElement",
120906
+ "name": "SbbOpenCloseBaseElement",
120420
120907
  "module": "core/base-elements.js"
120421
120908
  },
120422
- "tagName": "sbb-sidebar-container",
120423
- "customElement": true
120909
+ "tagName": "sbb-sidebar",
120910
+ "customElement": true,
120911
+ "events": [
120912
+ {
120913
+ "name": "beforeopen",
120914
+ "type": {
120915
+ "text": "Event"
120916
+ },
120917
+ "description": "Emits whenever the component starts the opening transition. Can be canceled.",
120918
+ "inheritedFrom": {
120919
+ "name": "SbbOpenCloseBaseElement",
120920
+ "module": "core/base-elements/open-close-base-element.js"
120921
+ }
120922
+ },
120923
+ {
120924
+ "name": "open",
120925
+ "type": {
120926
+ "text": "Event"
120927
+ },
120928
+ "description": "Emits whenever the component is opened.",
120929
+ "inheritedFrom": {
120930
+ "name": "SbbOpenCloseBaseElement",
120931
+ "module": "core/base-elements/open-close-base-element.js"
120932
+ }
120933
+ },
120934
+ {
120935
+ "name": "beforeclose",
120936
+ "type": {
120937
+ "text": "Event"
120938
+ },
120939
+ "description": "Emits whenever the component begins the closing transition. Can be canceled.",
120940
+ "inheritedFrom": {
120941
+ "name": "SbbOpenCloseBaseElement",
120942
+ "module": "core/base-elements/open-close-base-element.js"
120943
+ }
120944
+ },
120945
+ {
120946
+ "name": "close",
120947
+ "type": {
120948
+ "text": "Event"
120949
+ },
120950
+ "description": "Emits whenever the component is closed.",
120951
+ "inheritedFrom": {
120952
+ "name": "SbbOpenCloseBaseElement",
120953
+ "module": "core/base-elements/open-close-base-element.js"
120954
+ }
120955
+ }
120956
+ ]
120424
120957
  }
120425
120958
  ],
120426
120959
  "exports": [
120427
120960
  {
120428
120961
  "kind": "js",
120429
- "name": "SbbSidebarContainerElement",
120962
+ "name": "SbbSidebarElement",
120430
120963
  "declaration": {
120431
- "name": "SbbSidebarContainerElement",
120432
- "module": "sidebar/sidebar-container/sidebar-container.component.js"
120964
+ "name": "SbbSidebarElement",
120965
+ "module": "sidebar/sidebar/sidebar.component.js"
120433
120966
  }
120434
120967
  }
120435
120968
  ]
@@ -121454,6 +121987,218 @@
121454
121987
  }
121455
121988
  ]
121456
121989
  },
121990
+ {
121991
+ "kind": "javascript-module",
121992
+ "path": "sidebar/sidebar-container/sidebar-container.component.js",
121993
+ "declarations": [
121994
+ {
121995
+ "kind": "class",
121996
+ "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.",
121997
+ "name": "SbbSidebarContainerElement",
121998
+ "slots": [
121999
+ {
122000
+ "description": "Use the unnamed slot to add `sbb-sidebar` and `sbb-sidebar-content` elements.",
122001
+ "name": ""
122002
+ }
122003
+ ],
122004
+ "members": [
122005
+ {
122006
+ "kind": "field",
122007
+ "name": "elementName",
122008
+ "type": {
122009
+ "text": "string"
122010
+ },
122011
+ "privacy": "public",
122012
+ "static": true,
122013
+ "readonly": true,
122014
+ "default": "'sbb-sidebar-container'",
122015
+ "inheritedFrom": {
122016
+ "name": "SbbElement",
122017
+ "module": "core/base-elements/element.js"
122018
+ }
122019
+ },
122020
+ {
122021
+ "kind": "field",
122022
+ "name": "sidebars",
122023
+ "type": {
122024
+ "text": "SbbSidebarElement[]"
122025
+ },
122026
+ "privacy": "public",
122027
+ "description": "The sidebar children.",
122028
+ "readonly": true
122029
+ },
122030
+ {
122031
+ "kind": "field",
122032
+ "name": "start",
122033
+ "type": {
122034
+ "text": "SbbSidebarElement | null"
122035
+ },
122036
+ "privacy": "public",
122037
+ "description": "The sidebar child with the `start` position.",
122038
+ "readonly": true
122039
+ },
122040
+ {
122041
+ "kind": "field",
122042
+ "name": "end",
122043
+ "type": {
122044
+ "text": "SbbSidebarElement | null"
122045
+ },
122046
+ "privacy": "public",
122047
+ "description": "The sidebar child with the `end` position.",
122048
+ "readonly": true
122049
+ },
122050
+ {
122051
+ "kind": "field",
122052
+ "name": "_forcedClosedSidebars",
122053
+ "privacy": "private",
122054
+ "default": "new WeakSet<SbbSidebarElement>()"
122055
+ },
122056
+ {
122057
+ "kind": "method",
122058
+ "name": "_handleWidthChange",
122059
+ "privacy": "private",
122060
+ "return": {
122061
+ "type": {
122062
+ "text": "void"
122063
+ }
122064
+ }
122065
+ },
122066
+ {
122067
+ "kind": "method",
122068
+ "name": "_calculateSpaceState",
122069
+ "privacy": "private",
122070
+ "return": {
122071
+ "type": {
122072
+ "text": "Promise<void>"
122073
+ }
122074
+ },
122075
+ "description": "Closes and opens sidebars depending on available width\nof the container and its parent container."
122076
+ },
122077
+ {
122078
+ "kind": "field",
122079
+ "name": "_hydrationRequired",
122080
+ "type": {
122081
+ "text": "boolean"
122082
+ },
122083
+ "privacy": "private",
122084
+ "default": "!!this.shadowRoot",
122085
+ "inheritedFrom": {
122086
+ "name": "SbbElement",
122087
+ "module": "core/base-elements/element.js"
122088
+ }
122089
+ },
122090
+ {
122091
+ "kind": "field",
122092
+ "name": "_hydrationComplete",
122093
+ "privacy": "private",
122094
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
122095
+ "inheritedFrom": {
122096
+ "name": "SbbElement",
122097
+ "module": "core/base-elements/element.js"
122098
+ }
122099
+ },
122100
+ {
122101
+ "kind": "field",
122102
+ "name": "_resolveHydration",
122103
+ "type": {
122104
+ "text": "(hydrationRequired: boolean) => void"
122105
+ },
122106
+ "privacy": "private",
122107
+ "inheritedFrom": {
122108
+ "name": "SbbElement",
122109
+ "module": "core/base-elements/element.js"
122110
+ }
122111
+ },
122112
+ {
122113
+ "kind": "field",
122114
+ "name": "hydrationRequired",
122115
+ "type": {
122116
+ "text": "boolean"
122117
+ },
122118
+ "privacy": "protected",
122119
+ "description": "Returns whether hydration is required and not completed.",
122120
+ "readonly": true,
122121
+ "inheritedFrom": {
122122
+ "name": "SbbElement",
122123
+ "module": "core/base-elements/element.js"
122124
+ },
122125
+ "default": "!!this.shadowRoot"
122126
+ },
122127
+ {
122128
+ "kind": "method",
122129
+ "name": "toggleState",
122130
+ "privacy": "protected",
122131
+ "return": {
122132
+ "type": {
122133
+ "text": "void"
122134
+ }
122135
+ },
122136
+ "parameters": [
122137
+ {
122138
+ "name": "value",
122139
+ "type": {
122140
+ "text": "string"
122141
+ }
122142
+ },
122143
+ {
122144
+ "name": "force",
122145
+ "optional": true,
122146
+ "type": {
122147
+ "text": "boolean"
122148
+ }
122149
+ }
122150
+ ],
122151
+ "inheritedFrom": {
122152
+ "name": "SbbElement",
122153
+ "module": "core/base-elements/element.js"
122154
+ }
122155
+ },
122156
+ {
122157
+ "kind": "field",
122158
+ "name": "['_$sbbElement$']",
122159
+ "type": {
122160
+ "text": "boolean"
122161
+ },
122162
+ "privacy": "public",
122163
+ "static": true,
122164
+ "default": "true",
122165
+ "inheritedFrom": {
122166
+ "name": "SbbElement",
122167
+ "module": "core/base-elements/element.js"
122168
+ }
122169
+ },
122170
+ {
122171
+ "kind": "field",
122172
+ "name": "_controllers",
122173
+ "type": {
122174
+ "text": "Set<SbbReactiveController> | undefined"
122175
+ },
122176
+ "privacy": "private",
122177
+ "inheritedFrom": {
122178
+ "name": "SbbElement",
122179
+ "module": "core/base-elements/element.js"
122180
+ }
122181
+ }
122182
+ ],
122183
+ "superclass": {
122184
+ "name": "SbbElement",
122185
+ "module": "core/base-elements.js"
122186
+ },
122187
+ "tagName": "sbb-sidebar-container",
122188
+ "customElement": true
122189
+ }
122190
+ ],
122191
+ "exports": [
122192
+ {
122193
+ "kind": "js",
122194
+ "name": "SbbSidebarContainerElement",
122195
+ "declaration": {
122196
+ "name": "SbbSidebarContainerElement",
122197
+ "module": "sidebar/sidebar-container/sidebar-container.component.js"
122198
+ }
122199
+ }
122200
+ ]
122201
+ },
121457
122202
  {
121458
122203
  "kind": "javascript-module",
121459
122204
  "path": "sidebar/sidebar-content/sidebar-content.component.js",
@@ -121609,737 +122354,6 @@
121609
122354
  }
121610
122355
  ]
121611
122356
  },
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": [
121621
- {
121622
- "description": "Use the unnamed slot to slot any content into the sidebar.",
121623
- "name": ""
121624
- },
121625
- {
121626
- "description": "Use the title slot to add an <sbb-title>.",
121627
- "name": "title"
121628
- }
121629
- ],
121630
- "members": [
121631
- {
121632
- "kind": "field",
121633
- "name": "elementName",
121634
- "type": {
121635
- "text": "string"
121636
- },
121637
- "privacy": "public",
121638
- "static": true,
121639
- "readonly": true,
121640
- "inheritedFrom": {
121641
- "name": "SbbElement",
121642
- "module": "core/base-elements/element.js"
121643
- },
121644
- "default": "'sbb-sidebar'"
121645
- },
121646
- {
121647
- "kind": "field",
121648
- "name": "color",
121649
- "type": {
121650
- "text": "'white' | 'milk'"
121651
- },
121652
- "privacy": "public",
121653
- "default": "'white'",
121654
- "description": "Background color of the sidebar. Either `white` or `milk`.",
121655
- "attribute": "color",
121656
- "reflects": true
121657
- },
121658
- {
121659
- "kind": "field",
121660
- "name": "mode",
121661
- "type": {
121662
- "text": "'side' | 'over'"
121663
- },
121664
- "privacy": "public",
121665
- "default": "'side'",
121666
- "description": "Mode of the sidebar; one of 'side' or 'over'.",
121667
- "attribute": "mode",
121668
- "reflects": true
121669
- },
121670
- {
121671
- "kind": "field",
121672
- "name": "position",
121673
- "type": {
121674
- "text": "'start' | 'end'"
121675
- },
121676
- "privacy": "public",
121677
- "default": "'start'",
121678
- "description": "The side that the sidebar is attached to.",
121679
- "attribute": "position",
121680
- "reflects": true
121681
- },
121682
- {
121683
- "kind": "field",
121684
- "name": "opened",
121685
- "type": {
121686
- "text": "boolean"
121687
- },
121688
- "privacy": "public",
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
121693
- },
121694
- {
121695
- "kind": "field",
121696
- "name": "focusOnOpen",
121697
- "type": {
121698
- "text": "boolean"
121699
- },
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"
121704
- },
121705
- {
121706
- "kind": "field",
121707
- "name": "container",
121708
- "type": {
121709
- "text": "SbbSidebarContainerElement | null"
121710
- },
121711
- "privacy": "public",
121712
- "description": "Returns the SbbSidebarContainerElement where this sidebar is contained.",
121713
- "readonly": true,
121714
- "default": "null"
121715
- },
121716
- {
121717
- "kind": "field",
121718
- "name": "_container",
121719
- "type": {
121720
- "text": "SbbSidebarContainerElement | null"
121721
- },
121722
- "privacy": "private",
121723
- "default": "null"
121724
- },
121725
- {
121726
- "kind": "field",
121727
- "name": "_lastFocusedElement",
121728
- "type": {
121729
- "text": "HTMLElement | null"
121730
- },
121731
- "privacy": "private",
121732
- "default": "null"
121733
- },
121734
- {
121735
- "kind": "field",
121736
- "name": "_focusTrapController",
121737
- "privacy": "private",
121738
- "default": "new SbbFocusTrapController(this)"
121739
- },
121740
- {
121741
- "kind": "field",
121742
- "name": "_escapableOverlayController",
121743
- "privacy": "private",
121744
- "default": "new SbbEscapableOverlayController(this)"
121745
- },
121746
- {
121747
- "kind": "method",
121748
- "name": "toggle",
121749
- "privacy": "public",
121750
- "return": {
121751
- "type": {
121752
- "text": "void"
121753
- }
121754
- },
121755
- "description": "Toggles the sidebar visibility."
121756
- },
121757
- {
121758
- "kind": "method",
121759
- "name": "open",
121760
- "privacy": "public",
121761
- "return": {
121762
- "type": {
121763
- "text": "void"
121764
- }
121765
- },
121766
- "description": "Opens the sidebar.",
121767
- "inheritedFrom": {
121768
- "name": "SbbOpenCloseBaseElement",
121769
- "module": "core/base-elements/open-close-base-element.js"
121770
- }
121771
- },
121772
- {
121773
- "kind": "method",
121774
- "name": "_isZeroAnimationDuration",
121775
- "privacy": "private",
121776
- "return": {
121777
- "type": {
121778
- "text": "boolean"
121779
- }
121780
- }
121781
- },
121782
- {
121783
- "kind": "method",
121784
- "name": "_handleOpening",
121785
- "privacy": "private",
121786
- "return": {
121787
- "type": {
121788
- "text": "void"
121789
- }
121790
- }
121791
- },
121792
- {
121793
- "kind": "method",
121794
- "name": "close",
121795
- "privacy": "public",
121796
- "return": {
121797
- "type": {
121798
- "text": "void"
121799
- }
121800
- },
121801
- "description": "Closes the sidebar.",
121802
- "inheritedFrom": {
121803
- "name": "SbbOpenCloseBaseElement",
121804
- "module": "core/base-elements/open-close-base-element.js"
121805
- }
121806
- },
121807
- {
121808
- "kind": "method",
121809
- "name": "_handleClosing",
121810
- "privacy": "private",
121811
- "return": {
121812
- "type": {
121813
- "text": "void"
121814
- }
121815
- }
121816
- },
121817
- {
121818
- "kind": "method",
121819
- "name": "_takeFocus",
121820
- "privacy": "private",
121821
- "return": {
121822
- "type": {
121823
- "text": "void"
121824
- }
121825
- }
121826
- },
121827
- {
121828
- "kind": "method",
121829
- "name": "cedeFocus",
121830
- "privacy": "protected",
121831
- "return": {
121832
- "type": {
121833
- "text": "void"
121834
- }
121835
- }
121836
- },
121837
- {
121838
- "kind": "method",
121839
- "name": "_updateSidebarWidth",
121840
- "privacy": "private",
121841
- "return": {
121842
- "type": {
121843
- "text": "void"
121844
- }
121845
- },
121846
- "parameters": [
121847
- {
121848
- "name": "oldPosition",
121849
- "optional": true,
121850
- "type": {
121851
- "text": "this['position']"
121852
- }
121853
- }
121854
- ]
121855
- },
121856
- {
121857
- "kind": "method",
121858
- "name": "_buildCssWidthVar",
121859
- "privacy": "private",
121860
- "return": {
121861
- "type": {
121862
- "text": "string"
121863
- }
121864
- },
121865
- "parameters": [
121866
- {
121867
- "name": "position",
121868
- "default": "this.position"
121869
- }
121870
- ]
121871
- },
121872
- {
121873
- "kind": "method",
121874
- "name": "_isModeOver",
121875
- "privacy": "private",
121876
- "return": {
121877
- "type": {
121878
- "text": "boolean"
121879
- }
121880
- }
121881
- },
121882
- {
121883
- "kind": "method",
121884
- "name": "_onTransitionEnd",
121885
- "privacy": "private",
121886
- "return": {
121887
- "type": {
121888
- "text": "void"
121889
- }
121890
- },
121891
- "parameters": [
121892
- {
121893
- "name": "event",
121894
- "type": {
121895
- "text": "TransitionEvent"
121896
- }
121897
- }
121898
- ]
121899
- },
121900
- {
121901
- "kind": "method",
121902
- "name": "_detectScrolledState",
121903
- "privacy": "private",
121904
- "return": {
121905
- "type": {
121906
- "text": "void"
121907
- }
121908
- }
121909
- },
121910
- {
121911
- "kind": "field",
121912
- "name": "isAnimating",
121913
- "type": {
121914
- "text": "boolean"
121915
- },
121916
- "privacy": "public",
121917
- "default": "false",
121918
- "description": "Whether the component is currently animating.",
121919
- "inheritedFrom": {
121920
- "name": "SbbAnimationCompleteMixin",
121921
- "module": "core/mixins/animation-complete-mixin.js"
121922
- }
121923
- },
121924
- {
121925
- "kind": "field",
121926
- "name": "animationComplete",
121927
- "type": {
121928
- "text": "Promise<void>"
121929
- },
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,
121933
- "inheritedFrom": {
121934
- "name": "SbbAnimationCompleteMixin",
121935
- "module": "core/mixins/animation-complete-mixin.js"
121936
- }
121937
- },
121938
- {
121939
- "kind": "field",
121940
- "name": "_animationPromise",
121941
- "type": {
121942
- "text": "Promise<void>"
121943
- },
121944
- "privacy": "private",
121945
- "inheritedFrom": {
121946
- "name": "SbbAnimationCompleteMixin",
121947
- "module": "core/mixins/animation-complete-mixin.js"
121948
- }
121949
- },
121950
- {
121951
- "kind": "method",
121952
- "name": "startAnimation",
121953
- "privacy": "protected",
121954
- "return": {
121955
- "type": {
121956
- "text": "void"
121957
- }
121958
- },
121959
- "inheritedFrom": {
121960
- "name": "SbbAnimationCompleteMixin",
121961
- "module": "core/mixins/animation-complete-mixin.js"
121962
- }
121963
- },
121964
- {
121965
- "kind": "method",
121966
- "name": "stopAnimation",
121967
- "privacy": "protected",
121968
- "return": {
121969
- "type": {
121970
- "text": "void"
121971
- }
121972
- },
121973
- "description": "Overriding stopAnimation() breaks functionality.",
121974
- "inheritedFrom": {
121975
- "name": "SbbAnimationCompleteMixin",
121976
- "module": "core/mixins/animation-complete-mixin.js"
121977
- }
121978
- },
121979
- {
121980
- "kind": "method",
121981
- "name": "_enqueueAnimation",
121982
- "privacy": "private",
121983
- "return": {
121984
- "type": {
121985
- "text": "Promise<void>"
121986
- }
121987
- },
121988
- "inheritedFrom": {
121989
- "name": "SbbAnimationCompleteMixin",
121990
- "module": "core/mixins/animation-complete-mixin.js"
121991
- }
121992
- },
121993
- {
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', }",
122000
- "type": {
122001
- "text": "{\n beforeopen: 'beforeopen',\n open: 'open',\n beforeclose: 'beforeclose',\n close: 'close',\n }"
122002
- },
122003
- "inheritedFrom": {
122004
- "name": "SbbOpenCloseBaseElement",
122005
- "module": "core/base-elements/open-close-base-element.js"
122006
- }
122007
- },
122008
- {
122009
- "kind": "field",
122010
- "name": "state",
122011
- "privacy": "protected",
122012
- "description": "The state of the component.",
122013
- "type": {
122014
- "text": "SbbOpenedClosedState"
122015
- },
122016
- "default": "'closed'",
122017
- "inheritedFrom": {
122018
- "name": "SbbOpenCloseBaseElement",
122019
- "module": "core/base-elements/open-close-base-element.js"
122020
- }
122021
- },
122022
- {
122023
- "kind": "field",
122024
- "name": "_state",
122025
- "type": {
122026
- "text": "SbbOpenedClosedState"
122027
- },
122028
- "privacy": "private",
122029
- "inheritedFrom": {
122030
- "name": "SbbOpenCloseBaseElement",
122031
- "module": "core/base-elements/open-close-base-element.js"
122032
- }
122033
- },
122034
- {
122035
- "kind": "field",
122036
- "name": "isOpen",
122037
- "type": {
122038
- "text": "boolean"
122039
- },
122040
- "privacy": "public",
122041
- "description": "Whether the element is open.",
122042
- "readonly": true,
122043
- "inheritedFrom": {
122044
- "name": "SbbOpenCloseBaseElement",
122045
- "module": "core/base-elements/open-close-base-element.js"
122046
- }
122047
- },
122048
- {
122049
- "kind": "method",
122050
- "name": "escapeStrategy",
122051
- "privacy": "public",
122052
- "return": {
122053
- "type": {
122054
- "text": "void"
122055
- }
122056
- },
122057
- "description": "The method which is called on escape key press. Defaults to calling close()",
122058
- "inheritedFrom": {
122059
- "name": "SbbOpenCloseBaseElement",
122060
- "module": "core/base-elements/open-close-base-element.js"
122061
- }
122062
- },
122063
- {
122064
- "kind": "method",
122065
- "name": "dispatchBeforeOpenEvent",
122066
- "privacy": "protected",
122067
- "return": {
122068
- "type": {
122069
- "text": "boolean"
122070
- }
122071
- },
122072
- "inheritedFrom": {
122073
- "name": "SbbOpenCloseBaseElement",
122074
- "module": "core/base-elements/open-close-base-element.js"
122075
- }
122076
- },
122077
- {
122078
- "kind": "method",
122079
- "name": "dispatchOpenEvent",
122080
- "privacy": "protected",
122081
- "return": {
122082
- "type": {
122083
- "text": "boolean"
122084
- }
122085
- },
122086
- "inheritedFrom": {
122087
- "name": "SbbOpenCloseBaseElement",
122088
- "module": "core/base-elements/open-close-base-element.js"
122089
- }
122090
- },
122091
- {
122092
- "kind": "method",
122093
- "name": "dispatchBeforeCloseEvent",
122094
- "privacy": "protected",
122095
- "return": {
122096
- "type": {
122097
- "text": "boolean"
122098
- }
122099
- },
122100
- "inheritedFrom": {
122101
- "name": "SbbOpenCloseBaseElement",
122102
- "module": "core/base-elements/open-close-base-element.js"
122103
- }
122104
- },
122105
- {
122106
- "kind": "method",
122107
- "name": "dispatchCloseEvent",
122108
- "privacy": "protected",
122109
- "return": {
122110
- "type": {
122111
- "text": "boolean"
122112
- }
122113
- },
122114
- "inheritedFrom": {
122115
- "name": "SbbOpenCloseBaseElement",
122116
- "module": "core/base-elements/open-close-base-element.js"
122117
- }
122118
- },
122119
- {
122120
- "kind": "field",
122121
- "name": "_hydrationRequired",
122122
- "type": {
122123
- "text": "boolean"
122124
- },
122125
- "privacy": "private",
122126
- "default": "!!this.shadowRoot",
122127
- "inheritedFrom": {
122128
- "name": "SbbElement",
122129
- "module": "core/base-elements/element.js"
122130
- }
122131
- },
122132
- {
122133
- "kind": "field",
122134
- "name": "_hydrationComplete",
122135
- "privacy": "private",
122136
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
122137
- "inheritedFrom": {
122138
- "name": "SbbElement",
122139
- "module": "core/base-elements/element.js"
122140
- }
122141
- },
122142
- {
122143
- "kind": "field",
122144
- "name": "_resolveHydration",
122145
- "type": {
122146
- "text": "(hydrationRequired: boolean) => void"
122147
- },
122148
- "privacy": "private",
122149
- "inheritedFrom": {
122150
- "name": "SbbElement",
122151
- "module": "core/base-elements/element.js"
122152
- }
122153
- },
122154
- {
122155
- "kind": "field",
122156
- "name": "hydrationRequired",
122157
- "type": {
122158
- "text": "boolean"
122159
- },
122160
- "privacy": "protected",
122161
- "description": "Returns whether hydration is required and not completed.",
122162
- "readonly": true,
122163
- "inheritedFrom": {
122164
- "name": "SbbElement",
122165
- "module": "core/base-elements/element.js"
122166
- },
122167
- "default": "!!this.shadowRoot"
122168
- },
122169
- {
122170
- "kind": "method",
122171
- "name": "toggleState",
122172
- "privacy": "protected",
122173
- "return": {
122174
- "type": {
122175
- "text": "void"
122176
- }
122177
- },
122178
- "parameters": [
122179
- {
122180
- "name": "value",
122181
- "type": {
122182
- "text": "string"
122183
- }
122184
- },
122185
- {
122186
- "name": "force",
122187
- "optional": true,
122188
- "type": {
122189
- "text": "boolean"
122190
- }
122191
- }
122192
- ],
122193
- "inheritedFrom": {
122194
- "name": "SbbElement",
122195
- "module": "core/base-elements/element.js"
122196
- }
122197
- },
122198
- {
122199
- "kind": "field",
122200
- "name": "['_$sbbElement$']",
122201
- "type": {
122202
- "text": "boolean"
122203
- },
122204
- "privacy": "public",
122205
- "static": true,
122206
- "default": "true",
122207
- "inheritedFrom": {
122208
- "name": "SbbElement",
122209
- "module": "core/base-elements/element.js"
122210
- }
122211
- },
122212
- {
122213
- "kind": "field",
122214
- "name": "_controllers",
122215
- "type": {
122216
- "text": "Set<SbbReactiveController> | undefined"
122217
- },
122218
- "privacy": "private",
122219
- "inheritedFrom": {
122220
- "name": "SbbElement",
122221
- "module": "core/base-elements/element.js"
122222
- }
122223
- }
122224
- ],
122225
- "attributes": [
122226
- {
122227
- "name": "color",
122228
- "type": {
122229
- "text": "'white' | 'milk'"
122230
- },
122231
- "default": "'white'",
122232
- "description": "Background color of the sidebar. Either `white` or `milk`.",
122233
- "fieldName": "color"
122234
- },
122235
- {
122236
- "name": "mode",
122237
- "type": {
122238
- "text": "'side' | 'over'"
122239
- },
122240
- "default": "'side'",
122241
- "description": "Mode of the sidebar; one of 'side' or 'over'.",
122242
- "fieldName": "mode"
122243
- },
122244
- {
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"
122252
- },
122253
- {
122254
- "name": "opened",
122255
- "type": {
122256
- "text": "boolean"
122257
- },
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"
122261
- },
122262
- {
122263
- "name": "focus-on-open",
122264
- "type": {
122265
- "text": "boolean"
122266
- },
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"
122289
- },
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
- }
122295
- },
122296
- {
122297
- "name": "open",
122298
- "type": {
122299
- "text": "Event"
122300
- },
122301
- "description": "Emits whenever the component is opened.",
122302
- "inheritedFrom": {
122303
- "name": "SbbOpenCloseBaseElement",
122304
- "module": "core/base-elements/open-close-base-element.js"
122305
- }
122306
- },
122307
- {
122308
- "name": "beforeclose",
122309
- "type": {
122310
- "text": "Event"
122311
- },
122312
- "description": "Emits whenever the component begins the closing transition. Can be canceled.",
122313
- "inheritedFrom": {
122314
- "name": "SbbOpenCloseBaseElement",
122315
- "module": "core/base-elements/open-close-base-element.js"
122316
- }
122317
- },
122318
- {
122319
- "name": "close",
122320
- "type": {
122321
- "text": "Event"
122322
- },
122323
- "description": "Emits whenever the component is closed.",
122324
- "inheritedFrom": {
122325
- "name": "SbbOpenCloseBaseElement",
122326
- "module": "core/base-elements/open-close-base-element.js"
122327
- }
122328
- }
122329
- ]
122330
- }
122331
- ],
122332
- "exports": [
122333
- {
122334
- "kind": "js",
122335
- "name": "SbbSidebarElement",
122336
- "declaration": {
122337
- "name": "SbbSidebarElement",
122338
- "module": "sidebar/sidebar/sidebar.component.js"
122339
- }
122340
- }
122341
- ]
122342
- },
122343
122357
  {
122344
122358
  "kind": "javascript-module",
122345
122359
  "path": "sidebar/sidebar-title/sidebar-title.component.js",
@@ -129341,6 +129355,19 @@
129341
129355
  "module": "form-field/form-field/form-field.component.js"
129342
129356
  }
129343
129357
  },
129358
+ {
129359
+ "kind": "field",
129360
+ "name": "_previousType",
129361
+ "type": {
129362
+ "text": "string | null"
129363
+ },
129364
+ "privacy": "private",
129365
+ "default": "null",
129366
+ "inheritedFrom": {
129367
+ "name": "SbbFormFieldElement",
129368
+ "module": "form-field/form-field/form-field.component.js"
129369
+ }
129370
+ },
129344
129371
  {
129345
129372
  "kind": "method",
129346
129373
  "name": "_handleWrapperClick",