@sbb-esta/lyne-elements-dev 4.0.0-dev.1776067066 → 4.0.0-dev.1776072012

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/custom-elements.json +1059 -1059
  2. package/package.json +2 -2
@@ -143105,20 +143105,28 @@
143105
143105
  },
143106
143106
  {
143107
143107
  "kind": "javascript-module",
143108
- "path": "sidebar/sidebar/sidebar.component.js",
143108
+ "path": "sidebar/sidebar-close-button/sidebar-close-button.component.js",
143109
143109
  "declarations": [
143110
143110
  {
143111
143111
  "kind": "class",
143112
- "description": "This component corresponds to a sidebar that can be opened on the sidebar container.",
143113
- "name": "SbbSidebarElement",
143112
+ "description": "Sidebar close button, intended to be placed inside sbb-sidebar.",
143113
+ "name": "SbbSidebarCloseButtonElement",
143114
143114
  "slots": [
143115
143115
  {
143116
- "description": "Use the unnamed slot to slot any content into the sidebar.",
143117
- "name": ""
143116
+ "description": "Use the unnamed slot to add content to the sidebar-close-button. Not intended to be used in this context.",
143117
+ "name": "",
143118
+ "inheritedFrom": {
143119
+ "name": "SbbSecondaryButtonElement",
143120
+ "module": "button/secondary-button/secondary-button.component.js"
143121
+ }
143118
143122
  },
143119
143123
  {
143120
- "description": "Use the title slot to add an <sbb-title>.",
143121
- "name": "title"
143124
+ "description": "Slot used to display the icon, if one is set. Not intended to be used in this context.",
143125
+ "name": "icon",
143126
+ "inheritedFrom": {
143127
+ "name": "SbbSecondaryButtonElement",
143128
+ "module": "button/secondary-button/secondary-button.component.js"
143129
+ }
143122
143130
  }
143123
143131
  ],
143124
143132
  "members": [
@@ -143135,603 +143143,521 @@
143135
143143
  "name": "SbbElement",
143136
143144
  "module": "core/base-elements/element.js"
143137
143145
  },
143138
- "default": "'sbb-sidebar'"
143146
+ "default": "'sbb-sidebar-close-button'"
143139
143147
  },
143140
143148
  {
143141
143149
  "kind": "field",
143142
- "name": "color",
143143
- "type": {
143144
- "text": "'white' | 'milk'"
143150
+ "name": "_languageController",
143151
+ "privacy": "private",
143152
+ "default": "new SbbLanguageController(this)"
143153
+ },
143154
+ {
143155
+ "kind": "method",
143156
+ "name": "renderTemplate",
143157
+ "privacy": "protected",
143158
+ "return": {
143159
+ "type": {
143160
+ "text": "TemplateResult"
143161
+ }
143145
143162
  },
143146
- "privacy": "public",
143147
- "default": "'white'",
143148
- "description": "Background color of the sidebar. Either `white` or `milk`.",
143149
- "attribute": "color",
143150
- "reflects": true
143163
+ "description": "Override this method to render the component template.",
143164
+ "inheritedFrom": {
143165
+ "name": "SbbActionBaseElement",
143166
+ "module": "core/base-elements/action-base-element.js"
143167
+ }
143151
143168
  },
143152
143169
  {
143153
- "kind": "field",
143154
- "name": "mode",
143155
- "type": {
143156
- "text": "'side' | 'over'"
143170
+ "kind": "method",
143171
+ "name": "renderIconName",
143172
+ "privacy": "protected",
143173
+ "return": {
143174
+ "type": {
143175
+ "text": "string"
143176
+ }
143157
143177
  },
143158
- "privacy": "public",
143159
- "default": "'side'",
143160
- "description": "Mode of the sidebar; one of 'side' or 'over'.",
143161
- "attribute": "mode",
143162
- "reflects": true
143178
+ "inheritedFrom": {
143179
+ "name": "SbbIconNameMixin",
143180
+ "module": "icon/icon-name-mixin.js"
143181
+ }
143163
143182
  },
143164
143183
  {
143165
143184
  "kind": "field",
143166
- "name": "position",
143185
+ "name": "size",
143167
143186
  "type": {
143168
- "text": "'start' | 'end'"
143187
+ "text": "SbbButtonSize"
143169
143188
  },
143170
143189
  "privacy": "public",
143171
- "default": "'start'",
143172
- "description": "The side that the sidebar is attached to.",
143173
- "attribute": "position",
143174
- "reflects": true
143190
+ "description": "Size variant, either l, m or s.",
143191
+ "default": "'s'",
143192
+ "attribute": "size",
143193
+ "reflects": true,
143194
+ "inheritedFrom": {
143195
+ "name": "SbbButtonCommonElementMixin",
143196
+ "module": "button/common/button-common.js"
143197
+ }
143175
143198
  },
143176
143199
  {
143177
143200
  "kind": "field",
143178
- "name": "opened",
143201
+ "name": "loading",
143179
143202
  "type": {
143180
143203
  "text": "boolean"
143181
143204
  },
143182
143205
  "privacy": "public",
143183
143206
  "default": "false",
143184
- "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
143185
- "attribute": "opened",
143186
- "reflects": true
143207
+ "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.",
143208
+ "attribute": "loading",
143209
+ "reflects": true,
143210
+ "inheritedFrom": {
143211
+ "name": "SbbButtonCommonElementMixin",
143212
+ "module": "button/common/button-common.js"
143213
+ }
143187
143214
  },
143188
143215
  {
143189
143216
  "kind": "field",
143190
- "name": "focusOnOpen",
143217
+ "name": "negative",
143191
143218
  "type": {
143192
143219
  "text": "boolean"
143193
143220
  },
143194
143221
  "privacy": "public",
143195
143222
  "default": "false",
143196
- "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.",
143197
- "attribute": "focus-on-open"
143223
+ "description": "Negative coloring variant flag.",
143224
+ "attribute": "negative",
143225
+ "reflects": true,
143226
+ "inheritedFrom": {
143227
+ "name": "SbbNegativeMixin",
143228
+ "module": "core/mixins/negative-mixin.js"
143229
+ }
143198
143230
  },
143199
143231
  {
143200
143232
  "kind": "field",
143201
- "name": "container",
143233
+ "name": "elementDependencies",
143202
143234
  "type": {
143203
- "text": "SbbSidebarContainerElement | null"
143235
+ "text": "SbbElementType[]"
143204
143236
  },
143205
143237
  "privacy": "public",
143206
- "description": "Returns the SbbSidebarContainerElement where this sidebar is contained.",
143207
- "readonly": true,
143208
- "default": "null"
143209
- },
143210
- {
143211
- "kind": "field",
143212
- "name": "_container",
143213
- "type": {
143214
- "text": "SbbSidebarContainerElement | null"
143238
+ "static": true,
143239
+ "inheritedFrom": {
143240
+ "name": "SbbElement",
143241
+ "module": "core/base-elements/element.js"
143215
143242
  },
143216
- "privacy": "private",
143217
- "default": "null"
143243
+ "default": "[SbbIconElement]"
143218
143244
  },
143219
143245
  {
143220
143246
  "kind": "field",
143221
- "name": "_lastFocusedElement",
143247
+ "name": "iconName",
143222
143248
  "type": {
143223
- "text": "HTMLElement | null"
143249
+ "text": "string"
143224
143250
  },
143225
- "privacy": "private",
143226
- "default": "null"
143227
- },
143228
- {
143229
- "kind": "field",
143230
- "name": "_focusTrapController",
143231
- "privacy": "private",
143232
- "default": "new SbbFocusTrapController(this)"
143233
- },
143234
- {
143235
- "kind": "field",
143236
- "name": "_escapableOverlayController",
143237
- "privacy": "private",
143238
- "default": "new SbbEscapableOverlayController(this)"
143239
- },
143240
- {
143241
- "kind": "field",
143242
- "name": "_closeOnNavigation",
143243
- "privacy": "private"
143244
- },
143245
- {
143246
- "kind": "method",
143247
- "name": "toggle",
143248
143251
  "privacy": "public",
143249
- "return": {
143250
- "type": {
143251
- "text": "void"
143252
- }
143253
- },
143254
- "description": "Toggles the sidebar visibility."
143252
+ "default": "''",
143253
+ "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.",
143254
+ "attribute": "icon-name",
143255
+ "inheritedFrom": {
143256
+ "name": "SbbIconNameMixin",
143257
+ "module": "icon/icon-name-mixin.js"
143258
+ }
143255
143259
  },
143256
143260
  {
143257
143261
  "kind": "method",
143258
- "name": "open",
143259
- "privacy": "public",
143262
+ "name": "renderIconSlot",
143263
+ "privacy": "protected",
143260
143264
  "return": {
143261
143265
  "type": {
143262
- "text": "void"
143266
+ "text": "TemplateResult"
143263
143267
  }
143264
143268
  },
143265
- "description": "Opens the sidebar.",
143269
+ "parameters": [
143270
+ {
143271
+ "name": "classname",
143272
+ "optional": true,
143273
+ "type": {
143274
+ "text": "string"
143275
+ }
143276
+ }
143277
+ ],
143266
143278
  "inheritedFrom": {
143267
- "name": "SbbOpenCloseBaseElement",
143268
- "module": "core/base-elements/open-close-base-element.js"
143279
+ "name": "SbbIconNameMixin",
143280
+ "module": "icon/icon-name-mixin.js"
143269
143281
  }
143270
143282
  },
143271
143283
  {
143272
143284
  "kind": "method",
143273
- "name": "_isZeroAnimationDuration",
143285
+ "name": "_renderIconName",
143274
143286
  "privacy": "private",
143275
143287
  "return": {
143276
143288
  "type": {
143277
- "text": "boolean"
143289
+ "text": "string"
143278
143290
  }
143291
+ },
143292
+ "inheritedFrom": {
143293
+ "name": "SbbIconNameMixin",
143294
+ "module": "icon/icon-name-mixin.js"
143279
143295
  }
143280
143296
  },
143281
143297
  {
143282
- "kind": "method",
143283
- "name": "_handleOpening",
143284
- "privacy": "private",
143285
- "return": {
143286
- "type": {
143287
- "text": "void"
143288
- }
143298
+ "kind": "field",
143299
+ "name": "disabledInteractive",
143300
+ "type": {
143301
+ "text": "boolean"
143302
+ },
143303
+ "privacy": "public",
143304
+ "default": "false",
143305
+ "description": "Whether the button should be aria-disabled but stay interactive.",
143306
+ "attribute": "disabled-interactive",
143307
+ "reflects": true,
143308
+ "inheritedFrom": {
143309
+ "name": "SbbDisabledInteractiveMixin",
143310
+ "module": "core/mixins/disabled-mixin.js"
143289
143311
  }
143290
143312
  },
143291
143313
  {
143292
- "kind": "method",
143293
- "name": "close",
143314
+ "kind": "field",
143315
+ "name": "disabled",
143294
143316
  "privacy": "public",
143295
- "return": {
143296
- "type": {
143297
- "text": "void"
143298
- }
143317
+ "description": "Whether the component is disabled.",
143318
+ "default": "false",
143319
+ "type": {
143320
+ "text": "boolean"
143299
143321
  },
143300
- "description": "Closes the sidebar.",
143322
+ "attribute": "disabled",
143323
+ "reflects": true,
143301
143324
  "inheritedFrom": {
143302
- "name": "SbbOpenCloseBaseElement",
143303
- "module": "core/base-elements/open-close-base-element.js"
143325
+ "name": "SbbDisabledMixin",
143326
+ "module": "core/mixins/disabled-mixin.js"
143304
143327
  }
143305
143328
  },
143306
143329
  {
143307
- "kind": "method",
143308
- "name": "_handleClosing",
143330
+ "kind": "field",
143331
+ "name": "#disabled",
143309
143332
  "privacy": "private",
143310
- "return": {
143311
- "type": {
143312
- "text": "void"
143313
- }
143333
+ "type": {
143334
+ "text": "boolean"
143335
+ },
143336
+ "default": "false",
143337
+ "inheritedFrom": {
143338
+ "name": "SbbDisabledMixin",
143339
+ "module": "core/mixins/disabled-mixin.js"
143314
143340
  }
143315
143341
  },
143316
143342
  {
143317
143343
  "kind": "method",
143318
- "name": "_takeFocus",
143319
- "privacy": "private",
143344
+ "name": "isDisabledExternally",
143345
+ "privacy": "protected",
143320
143346
  "return": {
143321
143347
  "type": {
143322
- "text": "void"
143323
- }
143324
- }
143325
- },
143326
- {
143327
- "kind": "method",
143328
- "name": "cedeFocus",
143329
- "privacy": "protected",
143330
- "return": {
143331
- "type": {
143332
- "text": "void"
143333
- }
143334
- }
143335
- },
143336
- {
143337
- "kind": "method",
143338
- "name": "_updateSidebarWidth",
143339
- "privacy": "private",
143340
- "return": {
143341
- "type": {
143342
- "text": "void"
143348
+ "text": "boolean"
143343
143349
  }
143344
143350
  },
143345
- "parameters": [
143346
- {
143347
- "name": "oldPosition",
143348
- "optional": true,
143349
- "type": {
143350
- "text": "this['position']"
143351
- }
143352
- }
143353
- ]
143351
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
143352
+ "inheritedFrom": {
143353
+ "name": "SbbDisabledMixin",
143354
+ "module": "core/mixins/disabled-mixin.js"
143355
+ }
143354
143356
  },
143355
143357
  {
143356
- "kind": "method",
143357
- "name": "_buildCssWidthVar",
143358
- "privacy": "private",
143359
- "return": {
143360
- "type": {
143361
- "text": "string"
143362
- }
143358
+ "kind": "field",
143359
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
143360
+ "type": {
143361
+ "text": "array"
143363
143362
  },
143364
- "parameters": [
143365
- {
143366
- "name": "position",
143367
- "default": "this.position"
143368
- }
143369
- ]
143370
- },
143371
- {
143372
- "kind": "method",
143373
- "name": "_isModeOver",
143374
143363
  "privacy": "private",
143375
- "return": {
143376
- "type": {
143377
- "text": "boolean"
143378
- }
143364
+ "readonly": true,
143365
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
143366
+ "inheritedFrom": {
143367
+ "name": "SbbButtonBaseElement",
143368
+ "module": "core/base-elements/button-base-element.js"
143379
143369
  }
143380
143370
  },
143381
143371
  {
143382
- "kind": "method",
143383
- "name": "_onTransitionEnd",
143384
- "privacy": "private",
143385
- "return": {
143386
- "type": {
143387
- "text": "void"
143388
- }
143372
+ "kind": "field",
143373
+ "name": "value",
143374
+ "type": {
143375
+ "text": "string"
143389
143376
  },
143390
- "parameters": [
143391
- {
143392
- "name": "event",
143393
- "type": {
143394
- "text": "TransitionEvent"
143395
- }
143396
- }
143397
- ]
143398
- },
143399
- {
143400
- "kind": "method",
143401
- "name": "_detectScrolledState",
143402
- "privacy": "private",
143403
- "return": {
143404
- "type": {
143405
- "text": "void"
143406
- }
143407
- }
143377
+ "privacy": "public",
143378
+ "inheritedFrom": {
143379
+ "name": "SbbButtonBaseElement",
143380
+ "module": "core/base-elements/button-base-element.js"
143381
+ },
143382
+ "default": "''",
143383
+ "description": "Value of the form element.",
143384
+ "attribute": "value"
143408
143385
  },
143409
143386
  {
143410
143387
  "kind": "field",
143411
- "name": "isAnimating",
143388
+ "name": "type",
143389
+ "privacy": "public",
143390
+ "description": "The type attribute to use for the button.",
143391
+ "default": "'button'",
143412
143392
  "type": {
143413
- "text": "boolean"
143393
+ "text": "SbbButtonType"
143414
143394
  },
143415
- "privacy": "public",
143416
- "default": "false",
143417
- "description": "Whether the component is currently animating.",
143395
+ "attribute": "type",
143418
143396
  "inheritedFrom": {
143419
- "name": "SbbAnimationCompleteMixin",
143420
- "module": "core/mixins/animation-complete-mixin.js"
143397
+ "name": "SbbButtonBaseElement",
143398
+ "module": "core/base-elements/button-base-element.js"
143421
143399
  }
143422
143400
  },
143423
143401
  {
143424
143402
  "kind": "field",
143425
- "name": "animationComplete",
143403
+ "name": "form",
143426
143404
  "type": {
143427
- "text": "Promise<void>"
143405
+ "text": "HTMLFormElement | null"
143428
143406
  },
143429
143407
  "privacy": "public",
143430
- "description": "Returns a promise which completes whenever an animation ends.\nWhen a new animation starts, a new Promise is returned.",
143431
- "readonly": true,
143408
+ "description": "The `<form>` element to associate the button with.",
143432
143409
  "inheritedFrom": {
143433
- "name": "SbbAnimationCompleteMixin",
143434
- "module": "core/mixins/animation-complete-mixin.js"
143435
- }
143410
+ "name": "SbbButtonBaseElement",
143411
+ "module": "core/base-elements/button-base-element.js"
143412
+ },
143413
+ "attribute": "form"
143436
143414
  },
143437
143415
  {
143438
143416
  "kind": "field",
143439
- "name": "_animationPromise",
143417
+ "name": "_formId",
143440
143418
  "type": {
143441
- "text": "Promise<void>"
143419
+ "text": "string"
143442
143420
  },
143443
143421
  "privacy": "private",
143422
+ "default": "''",
143444
143423
  "inheritedFrom": {
143445
- "name": "SbbAnimationCompleteMixin",
143446
- "module": "core/mixins/animation-complete-mixin.js"
143424
+ "name": "SbbButtonBaseElement",
143425
+ "module": "core/base-elements/button-base-element.js"
143447
143426
  }
143448
143427
  },
143449
143428
  {
143450
- "kind": "method",
143451
- "name": "startAnimation",
143452
- "privacy": "protected",
143453
- "return": {
143454
- "type": {
143455
- "text": "void"
143456
- }
143457
- },
143429
+ "kind": "field",
143430
+ "name": "_handleButtonClick",
143431
+ "privacy": "private",
143458
143432
  "inheritedFrom": {
143459
- "name": "SbbAnimationCompleteMixin",
143460
- "module": "core/mixins/animation-complete-mixin.js"
143433
+ "name": "SbbButtonBaseElement",
143434
+ "module": "core/base-elements/button-base-element.js"
143461
143435
  }
143462
143436
  },
143463
143437
  {
143464
143438
  "kind": "method",
143465
- "name": "stopAnimation",
143466
- "privacy": "protected",
143439
+ "name": "_requestSubmit",
143440
+ "privacy": "private",
143467
143441
  "return": {
143468
143442
  "type": {
143469
143443
  "text": "void"
143470
143444
  }
143471
143445
  },
143472
- "description": "Overriding stopAnimation() breaks functionality.",
143446
+ "parameters": [
143447
+ {
143448
+ "name": "form",
143449
+ "type": {
143450
+ "text": "HTMLFormElement"
143451
+ }
143452
+ }
143453
+ ],
143473
143454
  "inheritedFrom": {
143474
- "name": "SbbAnimationCompleteMixin",
143475
- "module": "core/mixins/animation-complete-mixin.js"
143455
+ "name": "SbbButtonBaseElement",
143456
+ "module": "core/base-elements/button-base-element.js"
143476
143457
  }
143477
143458
  },
143478
143459
  {
143479
- "kind": "method",
143480
- "name": "_enqueueAnimation",
143460
+ "kind": "field",
143461
+ "name": "_formKeyDown",
143481
143462
  "privacy": "private",
143482
- "return": {
143483
- "type": {
143484
- "text": "Promise<void>"
143485
- }
143486
- },
143487
143463
  "inheritedFrom": {
143488
- "name": "SbbAnimationCompleteMixin",
143489
- "module": "core/mixins/animation-complete-mixin.js"
143464
+ "name": "SbbButtonBaseElement",
143465
+ "module": "core/base-elements/button-base-element.js"
143490
143466
  }
143491
143467
  },
143492
143468
  {
143493
143469
  "kind": "field",
143494
- "name": "events",
143495
- "privacy": "public",
143496
- "static": true,
143497
- "readonly": true,
143498
- "default": "{ beforeopen: 'beforeopen', open: 'open', beforeclose: 'beforeclose', close: 'close', }",
143470
+ "name": "formAssociated",
143499
143471
  "type": {
143500
- "text": "{\n beforeopen: 'beforeopen',\n open: 'open',\n beforeclose: 'beforeclose',\n close: 'close',\n }"
143472
+ "text": "boolean"
143501
143473
  },
143474
+ "privacy": "public",
143475
+ "static": true,
143476
+ "default": "true",
143502
143477
  "inheritedFrom": {
143503
- "name": "SbbOpenCloseBaseElement",
143504
- "module": "core/base-elements/open-close-base-element.js"
143478
+ "name": "SbbFormAssociatedMixin",
143479
+ "module": "core/mixins/form-associated-mixin.js"
143505
143480
  }
143506
143481
  },
143507
143482
  {
143508
143483
  "kind": "field",
143509
- "name": "state",
143510
- "privacy": "protected",
143511
- "description": "The state of the component.",
143484
+ "name": "name",
143485
+ "privacy": "public",
143486
+ "description": "Name of the form element. Will be read from name attribute.",
143512
143487
  "type": {
143513
- "text": "SbbOpenedClosedState"
143488
+ "text": "string"
143514
143489
  },
143515
- "default": "'closed'",
143490
+ "attribute": "name",
143516
143491
  "inheritedFrom": {
143517
- "name": "SbbOpenCloseBaseElement",
143518
- "module": "core/base-elements/open-close-base-element.js"
143492
+ "name": "SbbFormAssociatedMixin",
143493
+ "module": "core/mixins/form-associated-mixin.js"
143519
143494
  }
143520
143495
  },
143521
143496
  {
143522
143497
  "kind": "field",
143523
- "name": "_state",
143498
+ "name": "validity",
143524
143499
  "type": {
143525
- "text": "SbbOpenedClosedState"
143500
+ "text": "ValidityState"
143526
143501
  },
143527
- "privacy": "private",
143502
+ "privacy": "public",
143503
+ "description": "Returns the ValidityState object for this element.",
143504
+ "readonly": true,
143528
143505
  "inheritedFrom": {
143529
- "name": "SbbOpenCloseBaseElement",
143530
- "module": "core/base-elements/open-close-base-element.js"
143506
+ "name": "SbbFormAssociatedMixin",
143507
+ "module": "core/mixins/form-associated-mixin.js"
143531
143508
  }
143532
143509
  },
143533
143510
  {
143534
143511
  "kind": "field",
143535
- "name": "isOpen",
143512
+ "name": "validationMessage",
143536
143513
  "type": {
143537
- "text": "boolean"
143514
+ "text": "string"
143538
143515
  },
143539
143516
  "privacy": "public",
143540
- "description": "Whether the element is open.",
143517
+ "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.",
143541
143518
  "readonly": true,
143542
143519
  "inheritedFrom": {
143543
- "name": "SbbOpenCloseBaseElement",
143544
- "module": "core/base-elements/open-close-base-element.js"
143520
+ "name": "SbbFormAssociatedMixin",
143521
+ "module": "core/mixins/form-associated-mixin.js"
143545
143522
  }
143546
143523
  },
143547
143524
  {
143548
- "kind": "method",
143549
- "name": "escapeStrategy",
143550
- "privacy": "public",
143551
- "return": {
143552
- "type": {
143553
- "text": "void"
143554
- }
143525
+ "kind": "field",
143526
+ "name": "willValidate",
143527
+ "type": {
143528
+ "text": "boolean"
143555
143529
  },
143556
- "description": "The method which is called on escape key press. Defaults to calling close()",
143530
+ "privacy": "public",
143531
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
143532
+ "readonly": true,
143557
143533
  "inheritedFrom": {
143558
- "name": "SbbOpenCloseBaseElement",
143559
- "module": "core/base-elements/open-close-base-element.js"
143534
+ "name": "SbbFormAssociatedMixin",
143535
+ "module": "core/mixins/form-associated-mixin.js"
143560
143536
  }
143561
143537
  },
143562
143538
  {
143563
- "kind": "method",
143564
- "name": "dispatchBeforeOpenEvent",
143565
- "privacy": "protected",
143566
- "return": {
143567
- "type": {
143568
- "text": "boolean"
143569
- }
143570
- },
143539
+ "kind": "field",
143540
+ "name": "_validityStates",
143541
+ "privacy": "private",
143542
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
143571
143543
  "inheritedFrom": {
143572
- "name": "SbbOpenCloseBaseElement",
143573
- "module": "core/base-elements/open-close-base-element.js"
143544
+ "name": "SbbFormAssociatedMixin",
143545
+ "module": "core/mixins/form-associated-mixin.js"
143574
143546
  }
143575
143547
  },
143576
143548
  {
143577
- "kind": "method",
143578
- "name": "dispatchOpenEvent",
143579
- "privacy": "protected",
143580
- "return": {
143581
- "type": {
143582
- "text": "boolean"
143583
- }
143549
+ "kind": "field",
143550
+ "name": "formDisabled",
143551
+ "type": {
143552
+ "text": "boolean"
143584
143553
  },
143554
+ "privacy": "protected",
143555
+ "default": "false",
143556
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
143585
143557
  "inheritedFrom": {
143586
- "name": "SbbOpenCloseBaseElement",
143587
- "module": "core/base-elements/open-close-base-element.js"
143558
+ "name": "SbbFormAssociatedMixin",
143559
+ "module": "core/mixins/form-associated-mixin.js"
143588
143560
  }
143589
143561
  },
143590
143562
  {
143591
143563
  "kind": "method",
143592
- "name": "dispatchBeforeCloseEvent",
143593
- "privacy": "protected",
143564
+ "name": "checkValidity",
143565
+ "privacy": "public",
143594
143566
  "return": {
143595
143567
  "type": {
143596
143568
  "text": "boolean"
143597
143569
  }
143598
143570
  },
143571
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
143599
143572
  "inheritedFrom": {
143600
- "name": "SbbOpenCloseBaseElement",
143601
- "module": "core/base-elements/open-close-base-element.js"
143573
+ "name": "SbbFormAssociatedMixin",
143574
+ "module": "core/mixins/form-associated-mixin.js"
143602
143575
  }
143603
143576
  },
143604
143577
  {
143605
143578
  "kind": "method",
143606
- "name": "dispatchCloseEvent",
143607
- "privacy": "protected",
143579
+ "name": "reportValidity",
143580
+ "privacy": "public",
143608
143581
  "return": {
143609
143582
  "type": {
143610
143583
  "text": "boolean"
143611
143584
  }
143612
143585
  },
143586
+ "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.",
143613
143587
  "inheritedFrom": {
143614
- "name": "SbbOpenCloseBaseElement",
143615
- "module": "core/base-elements/open-close-base-element.js"
143616
- }
143617
- },
143618
- {
143619
- "kind": "field",
143620
- "name": "['_$sbbElement$']",
143621
- "type": {
143622
- "text": "boolean"
143623
- },
143624
- "privacy": "public",
143625
- "static": true,
143626
- "default": "true",
143627
- "inheritedFrom": {
143628
- "name": "SbbElement",
143629
- "module": "core/base-elements/element.js"
143588
+ "name": "SbbFormAssociatedMixin",
143589
+ "module": "core/mixins/form-associated-mixin.js"
143630
143590
  }
143631
143591
  },
143632
143592
  {
143633
- "kind": "field",
143634
- "name": "elementDependencies",
143635
- "type": {
143636
- "text": "SbbElementType[] | undefined"
143637
- },
143593
+ "kind": "method",
143594
+ "name": "setCustomValidity",
143638
143595
  "privacy": "public",
143639
- "static": true,
143640
- "inheritedFrom": {
143641
- "name": "SbbElement",
143642
- "module": "core/base-elements/element.js"
143643
- }
143644
- },
143645
- {
143646
- "kind": "field",
143647
- "name": "role",
143648
- "type": {
143649
- "text": "ElementInternals['role'] | undefined"
143596
+ "return": {
143597
+ "type": {
143598
+ "text": "void"
143599
+ }
143650
143600
  },
143651
- "privacy": "public",
143652
- "static": true,
143601
+ "parameters": [
143602
+ {
143603
+ "name": "message",
143604
+ "type": {
143605
+ "text": "string"
143606
+ }
143607
+ }
143608
+ ],
143609
+ "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.",
143653
143610
  "inheritedFrom": {
143654
- "name": "SbbElement",
143655
- "module": "core/base-elements/element.js"
143611
+ "name": "SbbFormAssociatedMixin",
143612
+ "module": "core/mixins/form-associated-mixin.js"
143656
143613
  }
143657
143614
  },
143658
143615
  {
143659
- "kind": "field",
143660
- "name": "_controllers",
143661
- "type": {
143662
- "text": "Set<SbbReactiveController> | undefined"
143663
- },
143616
+ "kind": "method",
143617
+ "name": "_hasDisabledAncestor",
143664
143618
  "privacy": "private",
143665
- "inheritedFrom": {
143666
- "name": "SbbElement",
143667
- "module": "core/base-elements/element.js"
143668
- }
143669
- },
143670
- {
143671
- "kind": "field",
143672
- "name": "_hydrationRequired",
143673
- "type": {
143674
- "text": "boolean"
143619
+ "return": {
143620
+ "type": {
143621
+ "text": "boolean"
143622
+ }
143675
143623
  },
143676
- "privacy": "private",
143677
- "default": "!!this.shadowRoot",
143678
- "inheritedFrom": {
143679
- "name": "SbbElement",
143680
- "module": "core/base-elements/element.js"
143681
- }
143682
- },
143683
- {
143684
- "kind": "field",
143685
- "name": "_hydrationComplete",
143686
- "privacy": "private",
143687
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
143688
143624
  "inheritedFrom": {
143689
- "name": "SbbElement",
143690
- "module": "core/base-elements/element.js"
143625
+ "name": "SbbFormAssociatedMixin",
143626
+ "module": "core/mixins/form-associated-mixin.js"
143691
143627
  }
143692
143628
  },
143693
143629
  {
143694
- "kind": "field",
143695
- "name": "_resolveHydration",
143696
- "type": {
143697
- "text": "(hydrationRequired: boolean) => void"
143630
+ "kind": "method",
143631
+ "name": "updateFormValue",
143632
+ "privacy": "protected",
143633
+ "return": {
143634
+ "type": {
143635
+ "text": "void"
143636
+ }
143698
143637
  },
143699
- "privacy": "private",
143638
+ "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",
143700
143639
  "inheritedFrom": {
143701
- "name": "SbbElement",
143702
- "module": "core/base-elements/element.js"
143640
+ "name": "SbbFormAssociatedMixin",
143641
+ "module": "core/mixins/form-associated-mixin.js"
143703
143642
  }
143704
143643
  },
143705
143644
  {
143706
- "kind": "field",
143707
- "name": "_textObserver",
143708
- "type": {
143709
- "text": "MutationObserver | undefined"
143645
+ "kind": "method",
143646
+ "name": "formState",
143647
+ "privacy": "protected",
143648
+ "return": {
143649
+ "type": {
143650
+ "text": "FormRestoreState"
143651
+ }
143710
143652
  },
143711
- "privacy": "private",
143712
143653
  "inheritedFrom": {
143713
- "name": "SbbElement",
143714
- "module": "core/base-elements/element.js"
143654
+ "name": "SbbFormAssociatedMixin",
143655
+ "module": "core/mixins/form-associated-mixin.js"
143715
143656
  }
143716
143657
  },
143717
- {
143718
- "kind": "field",
143719
- "name": "hydrationRequired",
143720
- "type": {
143721
- "text": "boolean"
143722
- },
143723
- "privacy": "protected",
143724
- "description": "Returns whether hydration is required and not completed.",
143725
- "readonly": true,
143726
- "inheritedFrom": {
143727
- "name": "SbbElement",
143728
- "module": "core/base-elements/element.js"
143729
- },
143730
- "default": "!!this.shadowRoot"
143731
- },
143732
143658
  {
143733
143659
  "kind": "method",
143734
- "name": "toggleState",
143660
+ "name": "setValidityFlag",
143735
143661
  "privacy": "protected",
143736
143662
  "return": {
143737
143663
  "type": {
@@ -143740,28 +143666,35 @@
143740
143666
  },
143741
143667
  "parameters": [
143742
143668
  {
143743
- "name": "value",
143669
+ "name": "flag",
143670
+ "type": {
143671
+ "text": "T"
143672
+ }
143673
+ },
143674
+ {
143675
+ "name": "message",
143744
143676
  "type": {
143745
143677
  "text": "string"
143746
143678
  }
143747
143679
  },
143748
143680
  {
143749
- "name": "force",
143681
+ "name": "flagValue",
143750
143682
  "optional": true,
143751
143683
  "type": {
143752
- "text": "boolean"
143684
+ "text": "ValidityStateFlags[T]"
143753
143685
  }
143754
143686
  }
143755
143687
  ],
143688
+ "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).",
143756
143689
  "inheritedFrom": {
143757
- "name": "SbbElement",
143758
- "module": "core/base-elements/element.js"
143690
+ "name": "SbbFormAssociatedMixin",
143691
+ "module": "core/mixins/form-associated-mixin.js"
143759
143692
  }
143760
143693
  },
143761
143694
  {
143762
143695
  "kind": "method",
143763
- "name": "_slotchangeHandler",
143764
- "privacy": "private",
143696
+ "name": "removeValidityFlag",
143697
+ "privacy": "protected",
143765
143698
  "return": {
143766
143699
  "type": {
143767
143700
  "text": "void"
@@ -143769,786 +143702,803 @@
143769
143702
  },
143770
143703
  "parameters": [
143771
143704
  {
143772
- "name": "event",
143773
- "type": {
143774
- "text": "Event"
143775
- }
143776
- },
143777
- {
143778
- "name": "slot",
143705
+ "name": "flag",
143779
143706
  "type": {
143780
- "text": "HTMLSlotElement"
143707
+ "text": "T"
143781
143708
  }
143782
143709
  }
143783
143710
  ],
143711
+ "description": "Removes the validity state flag entry and updates validity state.",
143784
143712
  "inheritedFrom": {
143785
- "name": "SbbElement",
143786
- "module": "core/base-elements/element.js"
143713
+ "name": "SbbFormAssociatedMixin",
143714
+ "module": "core/mixins/form-associated-mixin.js"
143787
143715
  }
143788
143716
  },
143789
143717
  {
143790
143718
  "kind": "method",
143791
- "name": "_handleSlotChangeForSlottedState",
143792
- "privacy": "private",
143719
+ "name": "validate",
143720
+ "privacy": "protected",
143793
143721
  "return": {
143794
143722
  "type": {
143795
143723
  "text": "void"
143796
143724
  }
143797
143725
  },
143798
- "parameters": [
143799
- {
143800
- "name": "slot",
143801
- "type": {
143802
- "text": "HTMLSlotElement"
143803
- }
143804
- }
143805
- ],
143726
+ "description": "To be called whenever the current element needs to be validated.",
143806
143727
  "inheritedFrom": {
143807
- "name": "SbbElement",
143808
- "module": "core/base-elements/element.js"
143728
+ "name": "SbbFormAssociatedMixin",
143729
+ "module": "core/mixins/form-associated-mixin.js"
143809
143730
  }
143810
143731
  },
143811
143732
  {
143812
143733
  "kind": "method",
143813
- "name": "_updateSlottedState",
143814
- "privacy": "private",
143734
+ "name": "shouldValidate",
143735
+ "privacy": "protected",
143815
143736
  "return": {
143816
143737
  "type": {
143817
- "text": "void"
143738
+ "text": "boolean"
143818
143739
  }
143819
143740
  },
143820
143741
  "parameters": [
143821
143742
  {
143822
- "name": "slot",
143743
+ "name": "name",
143823
143744
  "type": {
143824
- "text": "HTMLSlotElement"
143745
+ "text": "PropertyKey | undefined"
143825
143746
  }
143826
143747
  }
143827
143748
  ],
143749
+ "description": "Whether validation should be run on a property change with the given name.",
143828
143750
  "inheritedFrom": {
143829
- "name": "SbbElement",
143830
- "module": "core/base-elements/element.js"
143751
+ "name": "SbbFormAssociatedMixin",
143752
+ "module": "core/mixins/form-associated-mixin.js"
143831
143753
  }
143832
143754
  },
143833
143755
  {
143834
143756
  "kind": "method",
143835
- "name": "_observeTextNodesInSlot",
143757
+ "name": "_setInternalValidity",
143836
143758
  "privacy": "private",
143837
143759
  "return": {
143838
143760
  "type": {
143839
143761
  "text": "void"
143840
143762
  }
143841
143763
  },
143764
+ "inheritedFrom": {
143765
+ "name": "SbbFormAssociatedMixin",
143766
+ "module": "core/mixins/form-associated-mixin.js"
143767
+ }
143768
+ },
143769
+ {
143770
+ "kind": "field",
143771
+ "name": "role",
143772
+ "type": {
143773
+ "text": "ElementInternals['role']"
143774
+ },
143775
+ "privacy": "public",
143776
+ "static": true,
143777
+ "inheritedFrom": {
143778
+ "name": "SbbElement",
143779
+ "module": "core/base-elements/element.js"
143780
+ },
143781
+ "readonly": true,
143782
+ "default": "'button'"
143783
+ },
143784
+ {
143785
+ "kind": "field",
143786
+ "name": "_preventScrollOnSpaceKeydown",
143787
+ "privacy": "private",
143788
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
143842
143789
  "parameters": [
143843
143790
  {
143844
- "name": "slot",
143845
- "type": {
143846
- "text": "HTMLSlotElement"
143847
- }
143791
+ "description": "The origin event.",
143792
+ "name": "event"
143848
143793
  }
143849
143794
  ],
143850
143795
  "inheritedFrom": {
143851
- "name": "SbbElement",
143852
- "module": "core/base-elements/element.js"
143796
+ "name": "SbbButtonLikeBaseElement",
143797
+ "module": "core/base-elements/button-base-element.js"
143853
143798
  }
143854
143799
  },
143855
143800
  {
143856
- "kind": "method",
143857
- "name": "_hasSlottedContent",
143801
+ "kind": "field",
143802
+ "name": "_removeActiveMarker",
143858
143803
  "privacy": "private",
143859
- "return": {
143860
- "type": {
143861
- "text": "boolean"
143862
- }
143863
- },
143804
+ "inheritedFrom": {
143805
+ "name": "SbbButtonLikeBaseElement",
143806
+ "module": "core/base-elements/button-base-element.js"
143807
+ }
143808
+ },
143809
+ {
143810
+ "kind": "field",
143811
+ "name": "_dispatchClickEventOnSpaceKeyup",
143812
+ "privacy": "private",
143813
+ "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.",
143864
143814
  "parameters": [
143865
143815
  {
143866
- "name": "slot",
143867
- "type": {
143868
- "text": "HTMLSlotElement"
143869
- }
143816
+ "description": "The origin event.",
143817
+ "name": "event"
143870
143818
  }
143871
143819
  ],
143872
143820
  "inheritedFrom": {
143873
- "name": "SbbElement",
143874
- "module": "core/base-elements/element.js"
143821
+ "name": "SbbButtonLikeBaseElement",
143822
+ "module": "core/base-elements/button-base-element.js"
143875
143823
  }
143876
- }
143877
- ],
143878
- "attributes": [
143824
+ },
143879
143825
  {
143880
- "name": "color",
143826
+ "kind": "field",
143827
+ "name": "_dispatchClickEvent",
143828
+ "privacy": "private",
143829
+ "inheritedFrom": {
143830
+ "name": "SbbButtonLikeBaseElement",
143831
+ "module": "core/base-elements/button-base-element.js"
143832
+ }
143833
+ },
143834
+ {
143835
+ "kind": "field",
143836
+ "name": "maybeDisabled",
143881
143837
  "type": {
143882
- "text": "'white' | 'milk'"
143838
+ "text": "boolean | undefined"
143883
143839
  },
143884
- "default": "'white'",
143885
- "description": "Background color of the sidebar. Either `white` or `milk`.",
143886
- "fieldName": "color"
143840
+ "privacy": "protected",
143841
+ "readonly": true,
143842
+ "inheritedFrom": {
143843
+ "name": "SbbActionBaseElement",
143844
+ "module": "core/base-elements/action-base-element.js"
143845
+ }
143887
143846
  },
143888
143847
  {
143889
- "name": "mode",
143848
+ "kind": "field",
143849
+ "name": "maybeDisabledInteractive",
143890
143850
  "type": {
143891
- "text": "'side' | 'over'"
143851
+ "text": "boolean | undefined"
143892
143852
  },
143893
- "default": "'side'",
143894
- "description": "Mode of the sidebar; one of 'side' or 'over'.",
143895
- "fieldName": "mode"
143853
+ "privacy": "protected",
143854
+ "readonly": true,
143855
+ "inheritedFrom": {
143856
+ "name": "SbbActionBaseElement",
143857
+ "module": "core/base-elements/action-base-element.js"
143858
+ }
143896
143859
  },
143897
143860
  {
143898
- "name": "position",
143899
- "type": {
143900
- "text": "'start' | 'end'"
143861
+ "kind": "method",
143862
+ "name": "setupBaseEventHandlers",
143863
+ "privacy": "protected",
143864
+ "return": {
143865
+ "type": {
143866
+ "text": "void"
143867
+ }
143901
143868
  },
143902
- "default": "'start'",
143903
- "description": "The side that the sidebar is attached to.",
143904
- "fieldName": "position"
143869
+ "inheritedFrom": {
143870
+ "name": "SbbActionBaseElement",
143871
+ "module": "core/base-elements/action-base-element.js"
143872
+ }
143905
143873
  },
143906
143874
  {
143907
- "name": "opened",
143875
+ "kind": "field",
143876
+ "name": "['_$sbbElement$']",
143908
143877
  "type": {
143909
143878
  "text": "boolean"
143910
143879
  },
143911
- "default": "false",
143912
- "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
143913
- "fieldName": "opened"
143880
+ "privacy": "public",
143881
+ "static": true,
143882
+ "default": "true",
143883
+ "inheritedFrom": {
143884
+ "name": "SbbElement",
143885
+ "module": "core/base-elements/element.js"
143886
+ }
143914
143887
  },
143915
143888
  {
143916
- "name": "focus-on-open",
143889
+ "kind": "field",
143890
+ "name": "_controllers",
143917
143891
  "type": {
143918
- "text": "boolean"
143892
+ "text": "Set<SbbReactiveController> | undefined"
143919
143893
  },
143920
- "default": "false",
143921
- "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.",
143922
- "fieldName": "focusOnOpen"
143923
- }
143924
- ],
143925
- "mixins": [
143926
- {
143927
- "name": "SbbAnimationCompleteMixin",
143928
- "module": "core.js"
143929
- }
143930
- ],
143931
- "superclass": {
143932
- "name": "SbbOpenCloseBaseElement",
143933
- "module": "core.js"
143934
- },
143935
- "tagName": "sbb-sidebar",
143936
- "customElement": true,
143937
- "events": [
143894
+ "privacy": "private",
143895
+ "inheritedFrom": {
143896
+ "name": "SbbElement",
143897
+ "module": "core/base-elements/element.js"
143898
+ }
143899
+ },
143938
143900
  {
143939
- "name": "beforeopen",
143901
+ "kind": "field",
143902
+ "name": "_hydrationRequired",
143940
143903
  "type": {
143941
- "text": "Event"
143904
+ "text": "boolean"
143942
143905
  },
143943
- "description": "Emits whenever the component starts the opening transition. Can be canceled.",
143906
+ "privacy": "private",
143907
+ "default": "!!this.shadowRoot",
143944
143908
  "inheritedFrom": {
143945
- "name": "SbbOpenCloseBaseElement",
143946
- "module": "core/base-elements/open-close-base-element.js"
143909
+ "name": "SbbElement",
143910
+ "module": "core/base-elements/element.js"
143947
143911
  }
143948
143912
  },
143949
143913
  {
143950
- "name": "open",
143914
+ "kind": "field",
143915
+ "name": "_hydrationComplete",
143916
+ "privacy": "private",
143917
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
143918
+ "inheritedFrom": {
143919
+ "name": "SbbElement",
143920
+ "module": "core/base-elements/element.js"
143921
+ }
143922
+ },
143923
+ {
143924
+ "kind": "field",
143925
+ "name": "_resolveHydration",
143951
143926
  "type": {
143952
- "text": "Event"
143927
+ "text": "(hydrationRequired: boolean) => void"
143953
143928
  },
143954
- "description": "Emits whenever the component is opened.",
143929
+ "privacy": "private",
143955
143930
  "inheritedFrom": {
143956
- "name": "SbbOpenCloseBaseElement",
143957
- "module": "core/base-elements/open-close-base-element.js"
143931
+ "name": "SbbElement",
143932
+ "module": "core/base-elements/element.js"
143958
143933
  }
143959
143934
  },
143960
143935
  {
143961
- "name": "beforeclose",
143936
+ "kind": "field",
143937
+ "name": "_textObserver",
143962
143938
  "type": {
143963
- "text": "Event"
143939
+ "text": "MutationObserver | undefined"
143964
143940
  },
143965
- "description": "Emits whenever the component begins the closing transition. Can be canceled.",
143941
+ "privacy": "private",
143966
143942
  "inheritedFrom": {
143967
- "name": "SbbOpenCloseBaseElement",
143968
- "module": "core/base-elements/open-close-base-element.js"
143943
+ "name": "SbbElement",
143944
+ "module": "core/base-elements/element.js"
143969
143945
  }
143970
143946
  },
143971
143947
  {
143972
- "name": "close",
143948
+ "kind": "field",
143949
+ "name": "hydrationRequired",
143973
143950
  "type": {
143974
- "text": "Event"
143951
+ "text": "boolean"
143975
143952
  },
143976
- "description": "Emits whenever the component is closed.",
143953
+ "privacy": "protected",
143954
+ "description": "Returns whether hydration is required and not completed.",
143955
+ "readonly": true,
143977
143956
  "inheritedFrom": {
143978
- "name": "SbbOpenCloseBaseElement",
143979
- "module": "core/base-elements/open-close-base-element.js"
143980
- }
143981
- }
143982
- ]
143983
- }
143984
- ],
143985
- "exports": [
143986
- {
143987
- "kind": "js",
143988
- "name": "SbbSidebarElement",
143989
- "declaration": {
143990
- "name": "SbbSidebarElement",
143991
- "module": "sidebar/sidebar/sidebar.component.js"
143992
- }
143993
- }
143994
- ]
143995
- },
143996
- {
143997
- "kind": "javascript-module",
143998
- "path": "sidebar/sidebar-close-button/sidebar-close-button.component.js",
143999
- "declarations": [
144000
- {
144001
- "kind": "class",
144002
- "description": "Sidebar close button, intended to be placed inside sbb-sidebar.",
144003
- "name": "SbbSidebarCloseButtonElement",
144004
- "slots": [
143957
+ "name": "SbbElement",
143958
+ "module": "core/base-elements/element.js"
143959
+ },
143960
+ "default": "!!this.shadowRoot"
143961
+ },
144005
143962
  {
144006
- "description": "Use the unnamed slot to add content to the sidebar-close-button. Not intended to be used in this context.",
144007
- "name": "",
143963
+ "kind": "method",
143964
+ "name": "toggleState",
143965
+ "privacy": "protected",
143966
+ "return": {
143967
+ "type": {
143968
+ "text": "void"
143969
+ }
143970
+ },
143971
+ "parameters": [
143972
+ {
143973
+ "name": "value",
143974
+ "type": {
143975
+ "text": "string"
143976
+ }
143977
+ },
143978
+ {
143979
+ "name": "force",
143980
+ "optional": true,
143981
+ "type": {
143982
+ "text": "boolean"
143983
+ }
143984
+ }
143985
+ ],
144008
143986
  "inheritedFrom": {
144009
- "name": "SbbSecondaryButtonElement",
144010
- "module": "button/secondary-button/secondary-button.component.js"
143987
+ "name": "SbbElement",
143988
+ "module": "core/base-elements/element.js"
144011
143989
  }
144012
143990
  },
144013
143991
  {
144014
- "description": "Slot used to display the icon, if one is set. Not intended to be used in this context.",
144015
- "name": "icon",
143992
+ "kind": "method",
143993
+ "name": "_slotchangeHandler",
143994
+ "privacy": "private",
143995
+ "return": {
143996
+ "type": {
143997
+ "text": "void"
143998
+ }
143999
+ },
144000
+ "parameters": [
144001
+ {
144002
+ "name": "event",
144003
+ "type": {
144004
+ "text": "Event"
144005
+ }
144006
+ },
144007
+ {
144008
+ "name": "slot",
144009
+ "type": {
144010
+ "text": "HTMLSlotElement"
144011
+ }
144012
+ }
144013
+ ],
144016
144014
  "inheritedFrom": {
144017
- "name": "SbbSecondaryButtonElement",
144018
- "module": "button/secondary-button/secondary-button.component.js"
144015
+ "name": "SbbElement",
144016
+ "module": "core/base-elements/element.js"
144019
144017
  }
144020
- }
144021
- ],
144022
- "members": [
144018
+ },
144023
144019
  {
144024
- "kind": "field",
144025
- "name": "elementName",
144026
- "type": {
144027
- "text": "string"
144028
- },
144029
- "privacy": "public",
144030
- "static": true,
144031
- "readonly": true,
144020
+ "kind": "method",
144021
+ "name": "_handleSlotChangeForSlottedState",
144022
+ "privacy": "private",
144023
+ "return": {
144024
+ "type": {
144025
+ "text": "void"
144026
+ }
144027
+ },
144028
+ "parameters": [
144029
+ {
144030
+ "name": "slot",
144031
+ "type": {
144032
+ "text": "HTMLSlotElement"
144033
+ }
144034
+ }
144035
+ ],
144032
144036
  "inheritedFrom": {
144033
144037
  "name": "SbbElement",
144034
144038
  "module": "core/base-elements/element.js"
144035
- },
144036
- "default": "'sbb-sidebar-close-button'"
144039
+ }
144037
144040
  },
144038
144041
  {
144039
- "kind": "field",
144040
- "name": "_languageController",
144042
+ "kind": "method",
144043
+ "name": "_updateSlottedState",
144041
144044
  "privacy": "private",
144042
- "default": "new SbbLanguageController(this)"
144045
+ "return": {
144046
+ "type": {
144047
+ "text": "void"
144048
+ }
144049
+ },
144050
+ "parameters": [
144051
+ {
144052
+ "name": "slot",
144053
+ "type": {
144054
+ "text": "HTMLSlotElement"
144055
+ }
144056
+ }
144057
+ ],
144058
+ "inheritedFrom": {
144059
+ "name": "SbbElement",
144060
+ "module": "core/base-elements/element.js"
144061
+ }
144043
144062
  },
144044
144063
  {
144045
144064
  "kind": "method",
144046
- "name": "renderTemplate",
144047
- "privacy": "protected",
144065
+ "name": "_observeTextNodesInSlot",
144066
+ "privacy": "private",
144048
144067
  "return": {
144049
144068
  "type": {
144050
- "text": "TemplateResult"
144069
+ "text": "void"
144051
144070
  }
144052
144071
  },
144053
- "description": "Override this method to render the component template.",
144072
+ "parameters": [
144073
+ {
144074
+ "name": "slot",
144075
+ "type": {
144076
+ "text": "HTMLSlotElement"
144077
+ }
144078
+ }
144079
+ ],
144054
144080
  "inheritedFrom": {
144055
- "name": "SbbActionBaseElement",
144056
- "module": "core/base-elements/action-base-element.js"
144081
+ "name": "SbbElement",
144082
+ "module": "core/base-elements/element.js"
144057
144083
  }
144058
144084
  },
144059
144085
  {
144060
144086
  "kind": "method",
144061
- "name": "renderIconName",
144062
- "privacy": "protected",
144087
+ "name": "_hasSlottedContent",
144088
+ "privacy": "private",
144063
144089
  "return": {
144064
144090
  "type": {
144065
- "text": "string"
144091
+ "text": "boolean"
144066
144092
  }
144067
144093
  },
144094
+ "parameters": [
144095
+ {
144096
+ "name": "slot",
144097
+ "type": {
144098
+ "text": "HTMLSlotElement"
144099
+ }
144100
+ }
144101
+ ],
144068
144102
  "inheritedFrom": {
144069
- "name": "SbbIconNameMixin",
144070
- "module": "icon/icon-name-mixin.js"
144103
+ "name": "SbbElement",
144104
+ "module": "core/base-elements/element.js"
144071
144105
  }
144072
- },
144106
+ }
144107
+ ],
144108
+ "superclass": {
144109
+ "name": "SbbSecondaryButtonElement",
144110
+ "module": "button.pure.js"
144111
+ },
144112
+ "tagName": "sbb-sidebar-close-button",
144113
+ "customElement": true,
144114
+ "attributes": [
144073
144115
  {
144074
- "kind": "field",
144075
144116
  "name": "size",
144076
144117
  "type": {
144077
144118
  "text": "SbbButtonSize"
144078
144119
  },
144079
- "privacy": "public",
144080
144120
  "description": "Size variant, either l, m or s.",
144081
- "default": "'s'",
144082
- "attribute": "size",
144083
- "reflects": true,
144121
+ "default": "'l' / 's' (lean)",
144122
+ "fieldName": "size",
144084
144123
  "inheritedFrom": {
144085
144124
  "name": "SbbButtonCommonElementMixin",
144086
144125
  "module": "button/common/button-common.js"
144087
144126
  }
144088
144127
  },
144089
144128
  {
144090
- "kind": "field",
144091
144129
  "name": "loading",
144092
144130
  "type": {
144093
144131
  "text": "boolean"
144094
144132
  },
144095
- "privacy": "public",
144096
144133
  "default": "false",
144097
144134
  "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.",
144098
- "attribute": "loading",
144099
- "reflects": true,
144135
+ "fieldName": "loading",
144100
144136
  "inheritedFrom": {
144101
144137
  "name": "SbbButtonCommonElementMixin",
144102
144138
  "module": "button/common/button-common.js"
144103
144139
  }
144104
144140
  },
144105
144141
  {
144106
- "kind": "field",
144107
144142
  "name": "negative",
144108
144143
  "type": {
144109
144144
  "text": "boolean"
144110
144145
  },
144111
- "privacy": "public",
144112
144146
  "default": "false",
144113
144147
  "description": "Negative coloring variant flag.",
144114
- "attribute": "negative",
144115
- "reflects": true,
144148
+ "fieldName": "negative",
144116
144149
  "inheritedFrom": {
144117
144150
  "name": "SbbNegativeMixin",
144118
144151
  "module": "core/mixins/negative-mixin.js"
144119
144152
  }
144120
144153
  },
144121
144154
  {
144122
- "kind": "field",
144123
- "name": "elementDependencies",
144124
- "type": {
144125
- "text": "SbbElementType[]"
144126
- },
144127
- "privacy": "public",
144128
- "static": true,
144129
- "inheritedFrom": {
144130
- "name": "SbbElement",
144131
- "module": "core/base-elements/element.js"
144132
- },
144133
- "default": "[SbbIconElement]"
144134
- },
144135
- {
144136
- "kind": "field",
144137
- "name": "iconName",
144155
+ "name": "icon-name",
144138
144156
  "type": {
144139
144157
  "text": "string"
144140
144158
  },
144141
- "privacy": "public",
144142
144159
  "default": "''",
144143
144160
  "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.",
144144
- "attribute": "icon-name",
144145
- "inheritedFrom": {
144146
- "name": "SbbIconNameMixin",
144147
- "module": "icon/icon-name-mixin.js"
144148
- }
144149
- },
144150
- {
144151
- "kind": "method",
144152
- "name": "renderIconSlot",
144153
- "privacy": "protected",
144154
- "return": {
144155
- "type": {
144156
- "text": "TemplateResult"
144157
- }
144158
- },
144159
- "parameters": [
144160
- {
144161
- "name": "classname",
144162
- "optional": true,
144163
- "type": {
144164
- "text": "string"
144165
- }
144166
- }
144167
- ],
144168
- "inheritedFrom": {
144169
- "name": "SbbIconNameMixin",
144170
- "module": "icon/icon-name-mixin.js"
144171
- }
144172
- },
144173
- {
144174
- "kind": "method",
144175
- "name": "_renderIconName",
144176
- "privacy": "private",
144177
- "return": {
144178
- "type": {
144179
- "text": "string"
144180
- }
144181
- },
144161
+ "fieldName": "iconName",
144182
144162
  "inheritedFrom": {
144183
144163
  "name": "SbbIconNameMixin",
144184
144164
  "module": "icon/icon-name-mixin.js"
144185
144165
  }
144186
144166
  },
144187
144167
  {
144188
- "kind": "field",
144189
- "name": "disabledInteractive",
144168
+ "name": "disabled-interactive",
144190
144169
  "type": {
144191
144170
  "text": "boolean"
144192
144171
  },
144193
- "privacy": "public",
144194
144172
  "default": "false",
144195
144173
  "description": "Whether the button should be aria-disabled but stay interactive.",
144196
- "attribute": "disabled-interactive",
144197
- "reflects": true,
144174
+ "fieldName": "disabledInteractive",
144198
144175
  "inheritedFrom": {
144199
144176
  "name": "SbbDisabledInteractiveMixin",
144200
144177
  "module": "core/mixins/disabled-mixin.js"
144201
144178
  }
144202
144179
  },
144203
144180
  {
144204
- "kind": "field",
144205
144181
  "name": "disabled",
144206
- "privacy": "public",
144207
144182
  "description": "Whether the component is disabled.",
144208
144183
  "default": "false",
144209
144184
  "type": {
144210
144185
  "text": "boolean"
144211
144186
  },
144212
- "attribute": "disabled",
144213
- "reflects": true,
144214
- "inheritedFrom": {
144215
- "name": "SbbDisabledMixin",
144216
- "module": "core/mixins/disabled-mixin.js"
144217
- }
144218
- },
144219
- {
144220
- "kind": "field",
144221
- "name": "#disabled",
144222
- "privacy": "private",
144223
- "type": {
144224
- "text": "boolean"
144225
- },
144226
- "default": "false",
144227
- "inheritedFrom": {
144228
- "name": "SbbDisabledMixin",
144229
- "module": "core/mixins/disabled-mixin.js"
144230
- }
144231
- },
144232
- {
144233
- "kind": "method",
144234
- "name": "isDisabledExternally",
144235
- "privacy": "protected",
144236
- "return": {
144237
- "type": {
144238
- "text": "boolean"
144239
- }
144240
- },
144241
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
144187
+ "fieldName": "disabled",
144242
144188
  "inheritedFrom": {
144243
144189
  "name": "SbbDisabledMixin",
144244
144190
  "module": "core/mixins/disabled-mixin.js"
144245
144191
  }
144246
144192
  },
144247
144193
  {
144248
- "kind": "field",
144249
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
144250
- "type": {
144251
- "text": "array"
144252
- },
144253
- "privacy": "private",
144254
- "readonly": true,
144255
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
144256
- "inheritedFrom": {
144257
- "name": "SbbButtonBaseElement",
144258
- "module": "core/base-elements/button-base-element.js"
144259
- }
144260
- },
144261
- {
144262
- "kind": "field",
144263
144194
  "name": "value",
144264
144195
  "type": {
144265
144196
  "text": "string"
144266
144197
  },
144267
- "privacy": "public",
144268
- "inheritedFrom": {
144269
- "name": "SbbButtonBaseElement",
144270
- "module": "core/base-elements/button-base-element.js"
144271
- },
144272
- "default": "''",
144273
- "description": "Value of the form element.",
144274
- "attribute": "value"
144275
- },
144276
- {
144277
- "kind": "field",
144278
- "name": "type",
144279
- "privacy": "public",
144280
- "description": "The type attribute to use for the button.",
144281
- "default": "'button'",
144282
- "type": {
144283
- "text": "SbbButtonType"
144284
- },
144285
- "attribute": "type",
144286
- "inheritedFrom": {
144287
- "name": "SbbButtonBaseElement",
144288
- "module": "core/base-elements/button-base-element.js"
144289
- }
144290
- },
144291
- {
144292
- "kind": "field",
144293
- "name": "form",
144294
- "type": {
144295
- "text": "HTMLFormElement | null"
144296
- },
144297
- "privacy": "public",
144298
- "description": "The `<form>` element to associate the button with.",
144299
- "inheritedFrom": {
144300
- "name": "SbbButtonBaseElement",
144301
- "module": "core/base-elements/button-base-element.js"
144302
- },
144303
- "attribute": "form"
144304
- },
144305
- {
144306
- "kind": "field",
144307
- "name": "_formId",
144308
- "type": {
144309
- "text": "string"
144310
- },
144311
- "privacy": "private",
144312
144198
  "default": "''",
144199
+ "description": "Value of the form element.",
144200
+ "fieldName": "value",
144313
144201
  "inheritedFrom": {
144314
144202
  "name": "SbbButtonBaseElement",
144315
144203
  "module": "core/base-elements/button-base-element.js"
144316
144204
  }
144317
144205
  },
144318
144206
  {
144319
- "kind": "field",
144320
- "name": "_handleButtonClick",
144321
- "privacy": "private",
144207
+ "name": "type",
144208
+ "description": "The type attribute to use for the button.",
144209
+ "default": "'button'",
144210
+ "type": {
144211
+ "text": "SbbButtonType"
144212
+ },
144213
+ "fieldName": "type",
144322
144214
  "inheritedFrom": {
144323
144215
  "name": "SbbButtonBaseElement",
144324
144216
  "module": "core/base-elements/button-base-element.js"
144325
144217
  }
144326
144218
  },
144327
144219
  {
144328
- "kind": "method",
144329
- "name": "_requestSubmit",
144330
- "privacy": "private",
144331
- "return": {
144332
- "type": {
144333
- "text": "void"
144334
- }
144220
+ "name": "form",
144221
+ "description": "The `<form>` element to associate the button with.",
144222
+ "type": {
144223
+ "text": "HTMLFormElement | null"
144335
144224
  },
144336
- "parameters": [
144337
- {
144338
- "name": "form",
144339
- "type": {
144340
- "text": "HTMLFormElement"
144341
- }
144342
- }
144343
- ],
144225
+ "fieldName": "form",
144344
144226
  "inheritedFrom": {
144345
144227
  "name": "SbbButtonBaseElement",
144346
144228
  "module": "core/base-elements/button-base-element.js"
144347
144229
  }
144348
144230
  },
144349
144231
  {
144350
- "kind": "field",
144351
- "name": "_formKeyDown",
144352
- "privacy": "private",
144232
+ "name": "name",
144233
+ "description": "Name of the form element. Will be read from name attribute.",
144234
+ "type": {
144235
+ "text": "string"
144236
+ },
144237
+ "fieldName": "name",
144353
144238
  "inheritedFrom": {
144354
- "name": "SbbButtonBaseElement",
144355
- "module": "core/base-elements/button-base-element.js"
144239
+ "name": "SbbFormAssociatedMixin",
144240
+ "module": "core/mixins/form-associated-mixin.js"
144241
+ }
144242
+ }
144243
+ ],
144244
+ "cssProperties": [
144245
+ {
144246
+ "description": "The delay before the loading animation starts, when setting the button into loading state.",
144247
+ "name": "--sbb-button-loading-delay",
144248
+ "default": "300ms",
144249
+ "inheritedFrom": {
144250
+ "name": "SbbSecondaryButtonElement",
144251
+ "module": "button/secondary-button/secondary-button.component.js"
144356
144252
  }
144253
+ }
144254
+ ]
144255
+ }
144256
+ ],
144257
+ "exports": [
144258
+ {
144259
+ "kind": "js",
144260
+ "name": "SbbSidebarCloseButtonElement",
144261
+ "declaration": {
144262
+ "name": "SbbSidebarCloseButtonElement",
144263
+ "module": "sidebar/sidebar-close-button/sidebar-close-button.component.js"
144264
+ }
144265
+ }
144266
+ ]
144267
+ },
144268
+ {
144269
+ "kind": "javascript-module",
144270
+ "path": "sidebar/sidebar/sidebar.component.js",
144271
+ "declarations": [
144272
+ {
144273
+ "kind": "class",
144274
+ "description": "This component corresponds to a sidebar that can be opened on the sidebar container.",
144275
+ "name": "SbbSidebarElement",
144276
+ "slots": [
144277
+ {
144278
+ "description": "Use the unnamed slot to slot any content into the sidebar.",
144279
+ "name": ""
144357
144280
  },
144281
+ {
144282
+ "description": "Use the title slot to add an <sbb-title>.",
144283
+ "name": "title"
144284
+ }
144285
+ ],
144286
+ "members": [
144358
144287
  {
144359
144288
  "kind": "field",
144360
- "name": "formAssociated",
144289
+ "name": "elementName",
144361
144290
  "type": {
144362
- "text": "boolean"
144291
+ "text": "string"
144363
144292
  },
144364
144293
  "privacy": "public",
144365
144294
  "static": true,
144366
- "default": "true",
144295
+ "readonly": true,
144367
144296
  "inheritedFrom": {
144368
- "name": "SbbFormAssociatedMixin",
144369
- "module": "core/mixins/form-associated-mixin.js"
144370
- }
144297
+ "name": "SbbElement",
144298
+ "module": "core/base-elements/element.js"
144299
+ },
144300
+ "default": "'sbb-sidebar'"
144371
144301
  },
144372
144302
  {
144373
144303
  "kind": "field",
144374
- "name": "name",
144304
+ "name": "color",
144305
+ "type": {
144306
+ "text": "'white' | 'milk'"
144307
+ },
144375
144308
  "privacy": "public",
144376
- "description": "Name of the form element. Will be read from name attribute.",
144309
+ "default": "'white'",
144310
+ "description": "Background color of the sidebar. Either `white` or `milk`.",
144311
+ "attribute": "color",
144312
+ "reflects": true
144313
+ },
144314
+ {
144315
+ "kind": "field",
144316
+ "name": "mode",
144377
144317
  "type": {
144378
- "text": "string"
144318
+ "text": "'side' | 'over'"
144379
144319
  },
144380
- "attribute": "name",
144381
- "inheritedFrom": {
144382
- "name": "SbbFormAssociatedMixin",
144383
- "module": "core/mixins/form-associated-mixin.js"
144384
- }
144320
+ "privacy": "public",
144321
+ "default": "'side'",
144322
+ "description": "Mode of the sidebar; one of 'side' or 'over'.",
144323
+ "attribute": "mode",
144324
+ "reflects": true
144385
144325
  },
144386
144326
  {
144387
144327
  "kind": "field",
144388
- "name": "validity",
144328
+ "name": "position",
144389
144329
  "type": {
144390
- "text": "ValidityState"
144330
+ "text": "'start' | 'end'"
144391
144331
  },
144392
144332
  "privacy": "public",
144393
- "description": "Returns the ValidityState object for this element.",
144394
- "readonly": true,
144395
- "inheritedFrom": {
144396
- "name": "SbbFormAssociatedMixin",
144397
- "module": "core/mixins/form-associated-mixin.js"
144398
- }
144333
+ "default": "'start'",
144334
+ "description": "The side that the sidebar is attached to.",
144335
+ "attribute": "position",
144336
+ "reflects": true
144399
144337
  },
144400
144338
  {
144401
144339
  "kind": "field",
144402
- "name": "validationMessage",
144340
+ "name": "opened",
144403
144341
  "type": {
144404
- "text": "string"
144342
+ "text": "boolean"
144405
144343
  },
144406
144344
  "privacy": "public",
144407
- "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.",
144408
- "readonly": true,
144409
- "inheritedFrom": {
144410
- "name": "SbbFormAssociatedMixin",
144411
- "module": "core/mixins/form-associated-mixin.js"
144412
- }
144345
+ "default": "false",
144346
+ "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
144347
+ "attribute": "opened",
144348
+ "reflects": true
144413
144349
  },
144414
144350
  {
144415
144351
  "kind": "field",
144416
- "name": "willValidate",
144352
+ "name": "focusOnOpen",
144417
144353
  "type": {
144418
144354
  "text": "boolean"
144419
144355
  },
144420
144356
  "privacy": "public",
144421
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
144357
+ "default": "false",
144358
+ "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.",
144359
+ "attribute": "focus-on-open"
144360
+ },
144361
+ {
144362
+ "kind": "field",
144363
+ "name": "container",
144364
+ "type": {
144365
+ "text": "SbbSidebarContainerElement | null"
144366
+ },
144367
+ "privacy": "public",
144368
+ "description": "Returns the SbbSidebarContainerElement where this sidebar is contained.",
144422
144369
  "readonly": true,
144423
- "inheritedFrom": {
144424
- "name": "SbbFormAssociatedMixin",
144425
- "module": "core/mixins/form-associated-mixin.js"
144426
- }
144370
+ "default": "null"
144427
144371
  },
144428
144372
  {
144429
144373
  "kind": "field",
144430
- "name": "_validityStates",
144374
+ "name": "_container",
144375
+ "type": {
144376
+ "text": "SbbSidebarContainerElement | null"
144377
+ },
144431
144378
  "privacy": "private",
144432
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
144433
- "inheritedFrom": {
144434
- "name": "SbbFormAssociatedMixin",
144435
- "module": "core/mixins/form-associated-mixin.js"
144436
- }
144379
+ "default": "null"
144437
144380
  },
144438
144381
  {
144439
144382
  "kind": "field",
144440
- "name": "formDisabled",
144383
+ "name": "_lastFocusedElement",
144441
144384
  "type": {
144442
- "text": "boolean"
144385
+ "text": "HTMLElement | null"
144443
144386
  },
144444
- "privacy": "protected",
144445
- "default": "false",
144446
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
144447
- "inheritedFrom": {
144448
- "name": "SbbFormAssociatedMixin",
144449
- "module": "core/mixins/form-associated-mixin.js"
144450
- }
144387
+ "privacy": "private",
144388
+ "default": "null"
144389
+ },
144390
+ {
144391
+ "kind": "field",
144392
+ "name": "_focusTrapController",
144393
+ "privacy": "private",
144394
+ "default": "new SbbFocusTrapController(this)"
144395
+ },
144396
+ {
144397
+ "kind": "field",
144398
+ "name": "_escapableOverlayController",
144399
+ "privacy": "private",
144400
+ "default": "new SbbEscapableOverlayController(this)"
144401
+ },
144402
+ {
144403
+ "kind": "field",
144404
+ "name": "_closeOnNavigation",
144405
+ "privacy": "private"
144451
144406
  },
144452
144407
  {
144453
144408
  "kind": "method",
144454
- "name": "checkValidity",
144409
+ "name": "toggle",
144455
144410
  "privacy": "public",
144456
144411
  "return": {
144457
144412
  "type": {
144458
- "text": "boolean"
144413
+ "text": "void"
144459
144414
  }
144460
144415
  },
144461
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
144462
- "inheritedFrom": {
144463
- "name": "SbbFormAssociatedMixin",
144464
- "module": "core/mixins/form-associated-mixin.js"
144465
- }
144416
+ "description": "Toggles the sidebar visibility."
144466
144417
  },
144467
144418
  {
144468
144419
  "kind": "method",
144469
- "name": "reportValidity",
144420
+ "name": "open",
144470
144421
  "privacy": "public",
144471
144422
  "return": {
144472
144423
  "type": {
144473
- "text": "boolean"
144424
+ "text": "void"
144474
144425
  }
144475
144426
  },
144476
- "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.",
144427
+ "description": "Opens the sidebar.",
144477
144428
  "inheritedFrom": {
144478
- "name": "SbbFormAssociatedMixin",
144479
- "module": "core/mixins/form-associated-mixin.js"
144429
+ "name": "SbbOpenCloseBaseElement",
144430
+ "module": "core/base-elements/open-close-base-element.js"
144431
+ }
144432
+ },
144433
+ {
144434
+ "kind": "method",
144435
+ "name": "_isZeroAnimationDuration",
144436
+ "privacy": "private",
144437
+ "return": {
144438
+ "type": {
144439
+ "text": "boolean"
144440
+ }
144441
+ }
144442
+ },
144443
+ {
144444
+ "kind": "method",
144445
+ "name": "_handleOpening",
144446
+ "privacy": "private",
144447
+ "return": {
144448
+ "type": {
144449
+ "text": "void"
144450
+ }
144480
144451
  }
144481
144452
  },
144482
144453
  {
144483
144454
  "kind": "method",
144484
- "name": "setCustomValidity",
144455
+ "name": "close",
144485
144456
  "privacy": "public",
144486
144457
  "return": {
144487
144458
  "type": {
144488
144459
  "text": "void"
144489
144460
  }
144490
144461
  },
144491
- "parameters": [
144492
- {
144493
- "name": "message",
144494
- "type": {
144495
- "text": "string"
144496
- }
144497
- }
144498
- ],
144499
- "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.",
144462
+ "description": "Closes the sidebar.",
144500
144463
  "inheritedFrom": {
144501
- "name": "SbbFormAssociatedMixin",
144502
- "module": "core/mixins/form-associated-mixin.js"
144464
+ "name": "SbbOpenCloseBaseElement",
144465
+ "module": "core/base-elements/open-close-base-element.js"
144503
144466
  }
144504
144467
  },
144505
144468
  {
144506
144469
  "kind": "method",
144507
- "name": "_hasDisabledAncestor",
144470
+ "name": "_handleClosing",
144508
144471
  "privacy": "private",
144509
144472
  "return": {
144510
144473
  "type": {
144511
- "text": "boolean"
144474
+ "text": "void"
144512
144475
  }
144513
- },
144514
- "inheritedFrom": {
144515
- "name": "SbbFormAssociatedMixin",
144516
- "module": "core/mixins/form-associated-mixin.js"
144517
144476
  }
144518
144477
  },
144519
144478
  {
144520
144479
  "kind": "method",
144521
- "name": "updateFormValue",
144522
- "privacy": "protected",
144480
+ "name": "_takeFocus",
144481
+ "privacy": "private",
144523
144482
  "return": {
144524
144483
  "type": {
144525
144484
  "text": "void"
144526
144485
  }
144527
- },
144528
- "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",
144529
- "inheritedFrom": {
144530
- "name": "SbbFormAssociatedMixin",
144531
- "module": "core/mixins/form-associated-mixin.js"
144532
144486
  }
144533
144487
  },
144534
144488
  {
144535
144489
  "kind": "method",
144536
- "name": "formState",
144490
+ "name": "cedeFocus",
144537
144491
  "privacy": "protected",
144538
144492
  "return": {
144539
144493
  "type": {
144540
- "text": "FormRestoreState"
144494
+ "text": "void"
144541
144495
  }
144542
- },
144543
- "inheritedFrom": {
144544
- "name": "SbbFormAssociatedMixin",
144545
- "module": "core/mixins/form-associated-mixin.js"
144546
144496
  }
144547
144497
  },
144548
144498
  {
144549
144499
  "kind": "method",
144550
- "name": "setValidityFlag",
144551
- "privacy": "protected",
144500
+ "name": "_updateSidebarWidth",
144501
+ "privacy": "private",
144552
144502
  "return": {
144553
144503
  "type": {
144554
144504
  "text": "void"
@@ -144556,35 +144506,44 @@
144556
144506
  },
144557
144507
  "parameters": [
144558
144508
  {
144559
- "name": "flag",
144560
- "type": {
144561
- "text": "T"
144562
- }
144563
- },
144564
- {
144565
- "name": "message",
144566
- "type": {
144567
- "text": "string"
144568
- }
144569
- },
144570
- {
144571
- "name": "flagValue",
144509
+ "name": "oldPosition",
144572
144510
  "optional": true,
144573
144511
  "type": {
144574
- "text": "ValidityStateFlags[T]"
144512
+ "text": "this['position']"
144575
144513
  }
144576
144514
  }
144577
- ],
144578
- "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).",
144579
- "inheritedFrom": {
144580
- "name": "SbbFormAssociatedMixin",
144581
- "module": "core/mixins/form-associated-mixin.js"
144515
+ ]
144516
+ },
144517
+ {
144518
+ "kind": "method",
144519
+ "name": "_buildCssWidthVar",
144520
+ "privacy": "private",
144521
+ "return": {
144522
+ "type": {
144523
+ "text": "string"
144524
+ }
144525
+ },
144526
+ "parameters": [
144527
+ {
144528
+ "name": "position",
144529
+ "default": "this.position"
144530
+ }
144531
+ ]
144532
+ },
144533
+ {
144534
+ "kind": "method",
144535
+ "name": "_isModeOver",
144536
+ "privacy": "private",
144537
+ "return": {
144538
+ "type": {
144539
+ "text": "boolean"
144540
+ }
144582
144541
  }
144583
144542
  },
144584
144543
  {
144585
144544
  "kind": "method",
144586
- "name": "removeValidityFlag",
144587
- "privacy": "protected",
144545
+ "name": "_onTransitionEnd",
144546
+ "privacy": "private",
144588
144547
  "return": {
144589
144548
  "type": {
144590
144549
  "text": "void"
@@ -144592,173 +144551,230 @@
144592
144551
  },
144593
144552
  "parameters": [
144594
144553
  {
144595
- "name": "flag",
144554
+ "name": "event",
144596
144555
  "type": {
144597
- "text": "T"
144556
+ "text": "TransitionEvent"
144598
144557
  }
144599
144558
  }
144600
- ],
144601
- "description": "Removes the validity state flag entry and updates validity state.",
144559
+ ]
144560
+ },
144561
+ {
144562
+ "kind": "method",
144563
+ "name": "_detectScrolledState",
144564
+ "privacy": "private",
144565
+ "return": {
144566
+ "type": {
144567
+ "text": "void"
144568
+ }
144569
+ }
144570
+ },
144571
+ {
144572
+ "kind": "field",
144573
+ "name": "isAnimating",
144574
+ "type": {
144575
+ "text": "boolean"
144576
+ },
144577
+ "privacy": "public",
144578
+ "default": "false",
144579
+ "description": "Whether the component is currently animating.",
144602
144580
  "inheritedFrom": {
144603
- "name": "SbbFormAssociatedMixin",
144604
- "module": "core/mixins/form-associated-mixin.js"
144581
+ "name": "SbbAnimationCompleteMixin",
144582
+ "module": "core/mixins/animation-complete-mixin.js"
144583
+ }
144584
+ },
144585
+ {
144586
+ "kind": "field",
144587
+ "name": "animationComplete",
144588
+ "type": {
144589
+ "text": "Promise<void>"
144590
+ },
144591
+ "privacy": "public",
144592
+ "description": "Returns a promise which completes whenever an animation ends.\nWhen a new animation starts, a new Promise is returned.",
144593
+ "readonly": true,
144594
+ "inheritedFrom": {
144595
+ "name": "SbbAnimationCompleteMixin",
144596
+ "module": "core/mixins/animation-complete-mixin.js"
144597
+ }
144598
+ },
144599
+ {
144600
+ "kind": "field",
144601
+ "name": "_animationPromise",
144602
+ "type": {
144603
+ "text": "Promise<void>"
144604
+ },
144605
+ "privacy": "private",
144606
+ "inheritedFrom": {
144607
+ "name": "SbbAnimationCompleteMixin",
144608
+ "module": "core/mixins/animation-complete-mixin.js"
144605
144609
  }
144606
144610
  },
144607
144611
  {
144608
144612
  "kind": "method",
144609
- "name": "validate",
144613
+ "name": "startAnimation",
144610
144614
  "privacy": "protected",
144611
144615
  "return": {
144612
144616
  "type": {
144613
144617
  "text": "void"
144614
144618
  }
144615
144619
  },
144616
- "description": "To be called whenever the current element needs to be validated.",
144617
144620
  "inheritedFrom": {
144618
- "name": "SbbFormAssociatedMixin",
144619
- "module": "core/mixins/form-associated-mixin.js"
144621
+ "name": "SbbAnimationCompleteMixin",
144622
+ "module": "core/mixins/animation-complete-mixin.js"
144620
144623
  }
144621
144624
  },
144622
144625
  {
144623
144626
  "kind": "method",
144624
- "name": "shouldValidate",
144627
+ "name": "stopAnimation",
144625
144628
  "privacy": "protected",
144626
144629
  "return": {
144627
144630
  "type": {
144628
- "text": "boolean"
144631
+ "text": "void"
144629
144632
  }
144630
144633
  },
144631
- "parameters": [
144632
- {
144633
- "name": "name",
144634
- "type": {
144635
- "text": "PropertyKey | undefined"
144636
- }
144637
- }
144638
- ],
144639
- "description": "Whether validation should be run on a property change with the given name.",
144634
+ "description": "Overriding stopAnimation() breaks functionality.",
144640
144635
  "inheritedFrom": {
144641
- "name": "SbbFormAssociatedMixin",
144642
- "module": "core/mixins/form-associated-mixin.js"
144636
+ "name": "SbbAnimationCompleteMixin",
144637
+ "module": "core/mixins/animation-complete-mixin.js"
144643
144638
  }
144644
144639
  },
144645
144640
  {
144646
144641
  "kind": "method",
144647
- "name": "_setInternalValidity",
144642
+ "name": "_enqueueAnimation",
144648
144643
  "privacy": "private",
144649
144644
  "return": {
144650
144645
  "type": {
144651
- "text": "void"
144646
+ "text": "Promise<void>"
144652
144647
  }
144653
144648
  },
144654
144649
  "inheritedFrom": {
144655
- "name": "SbbFormAssociatedMixin",
144656
- "module": "core/mixins/form-associated-mixin.js"
144650
+ "name": "SbbAnimationCompleteMixin",
144651
+ "module": "core/mixins/animation-complete-mixin.js"
144657
144652
  }
144658
144653
  },
144659
144654
  {
144660
144655
  "kind": "field",
144661
- "name": "role",
144662
- "type": {
144663
- "text": "ElementInternals['role']"
144664
- },
144656
+ "name": "events",
144665
144657
  "privacy": "public",
144666
144658
  "static": true,
144667
- "inheritedFrom": {
144668
- "name": "SbbElement",
144669
- "module": "core/base-elements/element.js"
144670
- },
144671
144659
  "readonly": true,
144672
- "default": "'button'"
144660
+ "default": "{ beforeopen: 'beforeopen', open: 'open', beforeclose: 'beforeclose', close: 'close', }",
144661
+ "type": {
144662
+ "text": "{\n beforeopen: 'beforeopen',\n open: 'open',\n beforeclose: 'beforeclose',\n close: 'close',\n }"
144663
+ },
144664
+ "inheritedFrom": {
144665
+ "name": "SbbOpenCloseBaseElement",
144666
+ "module": "core/base-elements/open-close-base-element.js"
144667
+ }
144673
144668
  },
144674
144669
  {
144675
144670
  "kind": "field",
144676
- "name": "_preventScrollOnSpaceKeydown",
144677
- "privacy": "private",
144678
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
144679
- "parameters": [
144680
- {
144681
- "description": "The origin event.",
144682
- "name": "event"
144683
- }
144684
- ],
144671
+ "name": "state",
144672
+ "privacy": "protected",
144673
+ "description": "The state of the component.",
144674
+ "type": {
144675
+ "text": "SbbOpenedClosedState"
144676
+ },
144677
+ "default": "'closed'",
144685
144678
  "inheritedFrom": {
144686
- "name": "SbbButtonLikeBaseElement",
144687
- "module": "core/base-elements/button-base-element.js"
144679
+ "name": "SbbOpenCloseBaseElement",
144680
+ "module": "core/base-elements/open-close-base-element.js"
144688
144681
  }
144689
144682
  },
144690
144683
  {
144691
144684
  "kind": "field",
144692
- "name": "_removeActiveMarker",
144685
+ "name": "_state",
144686
+ "type": {
144687
+ "text": "SbbOpenedClosedState"
144688
+ },
144693
144689
  "privacy": "private",
144694
144690
  "inheritedFrom": {
144695
- "name": "SbbButtonLikeBaseElement",
144696
- "module": "core/base-elements/button-base-element.js"
144691
+ "name": "SbbOpenCloseBaseElement",
144692
+ "module": "core/base-elements/open-close-base-element.js"
144697
144693
  }
144698
144694
  },
144699
144695
  {
144700
144696
  "kind": "field",
144701
- "name": "_dispatchClickEventOnSpaceKeyup",
144702
- "privacy": "private",
144703
- "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.",
144704
- "parameters": [
144705
- {
144706
- "description": "The origin event.",
144707
- "name": "event"
144697
+ "name": "isOpen",
144698
+ "type": {
144699
+ "text": "boolean"
144700
+ },
144701
+ "privacy": "public",
144702
+ "description": "Whether the element is open.",
144703
+ "readonly": true,
144704
+ "inheritedFrom": {
144705
+ "name": "SbbOpenCloseBaseElement",
144706
+ "module": "core/base-elements/open-close-base-element.js"
144707
+ }
144708
+ },
144709
+ {
144710
+ "kind": "method",
144711
+ "name": "escapeStrategy",
144712
+ "privacy": "public",
144713
+ "return": {
144714
+ "type": {
144715
+ "text": "void"
144708
144716
  }
144709
- ],
144717
+ },
144718
+ "description": "The method which is called on escape key press. Defaults to calling close()",
144710
144719
  "inheritedFrom": {
144711
- "name": "SbbButtonLikeBaseElement",
144712
- "module": "core/base-elements/button-base-element.js"
144720
+ "name": "SbbOpenCloseBaseElement",
144721
+ "module": "core/base-elements/open-close-base-element.js"
144713
144722
  }
144714
144723
  },
144715
144724
  {
144716
- "kind": "field",
144717
- "name": "_dispatchClickEvent",
144718
- "privacy": "private",
144725
+ "kind": "method",
144726
+ "name": "dispatchBeforeOpenEvent",
144727
+ "privacy": "protected",
144728
+ "return": {
144729
+ "type": {
144730
+ "text": "boolean"
144731
+ }
144732
+ },
144719
144733
  "inheritedFrom": {
144720
- "name": "SbbButtonLikeBaseElement",
144721
- "module": "core/base-elements/button-base-element.js"
144734
+ "name": "SbbOpenCloseBaseElement",
144735
+ "module": "core/base-elements/open-close-base-element.js"
144722
144736
  }
144723
144737
  },
144724
144738
  {
144725
- "kind": "field",
144726
- "name": "maybeDisabled",
144727
- "type": {
144728
- "text": "boolean | undefined"
144729
- },
144739
+ "kind": "method",
144740
+ "name": "dispatchOpenEvent",
144730
144741
  "privacy": "protected",
144731
- "readonly": true,
144742
+ "return": {
144743
+ "type": {
144744
+ "text": "boolean"
144745
+ }
144746
+ },
144732
144747
  "inheritedFrom": {
144733
- "name": "SbbActionBaseElement",
144734
- "module": "core/base-elements/action-base-element.js"
144748
+ "name": "SbbOpenCloseBaseElement",
144749
+ "module": "core/base-elements/open-close-base-element.js"
144735
144750
  }
144736
144751
  },
144737
144752
  {
144738
- "kind": "field",
144739
- "name": "maybeDisabledInteractive",
144740
- "type": {
144741
- "text": "boolean | undefined"
144742
- },
144753
+ "kind": "method",
144754
+ "name": "dispatchBeforeCloseEvent",
144743
144755
  "privacy": "protected",
144744
- "readonly": true,
144756
+ "return": {
144757
+ "type": {
144758
+ "text": "boolean"
144759
+ }
144760
+ },
144745
144761
  "inheritedFrom": {
144746
- "name": "SbbActionBaseElement",
144747
- "module": "core/base-elements/action-base-element.js"
144762
+ "name": "SbbOpenCloseBaseElement",
144763
+ "module": "core/base-elements/open-close-base-element.js"
144748
144764
  }
144749
144765
  },
144750
144766
  {
144751
144767
  "kind": "method",
144752
- "name": "setupBaseEventHandlers",
144768
+ "name": "dispatchCloseEvent",
144753
144769
  "privacy": "protected",
144754
144770
  "return": {
144755
144771
  "type": {
144756
- "text": "void"
144772
+ "text": "boolean"
144757
144773
  }
144758
144774
  },
144759
144775
  "inheritedFrom": {
144760
- "name": "SbbActionBaseElement",
144761
- "module": "core/base-elements/action-base-element.js"
144776
+ "name": "SbbOpenCloseBaseElement",
144777
+ "module": "core/base-elements/open-close-base-element.js"
144762
144778
  }
144763
144779
  },
144764
144780
  {
@@ -144775,6 +144791,32 @@
144775
144791
  "module": "core/base-elements/element.js"
144776
144792
  }
144777
144793
  },
144794
+ {
144795
+ "kind": "field",
144796
+ "name": "elementDependencies",
144797
+ "type": {
144798
+ "text": "SbbElementType[] | undefined"
144799
+ },
144800
+ "privacy": "public",
144801
+ "static": true,
144802
+ "inheritedFrom": {
144803
+ "name": "SbbElement",
144804
+ "module": "core/base-elements/element.js"
144805
+ }
144806
+ },
144807
+ {
144808
+ "kind": "field",
144809
+ "name": "role",
144810
+ "type": {
144811
+ "text": "ElementInternals['role'] | undefined"
144812
+ },
144813
+ "privacy": "public",
144814
+ "static": true,
144815
+ "inheritedFrom": {
144816
+ "name": "SbbElement",
144817
+ "module": "core/base-elements/element.js"
144818
+ }
144819
+ },
144778
144820
  {
144779
144821
  "kind": "field",
144780
144822
  "name": "_controllers",
@@ -144995,150 +145037,108 @@
144995
145037
  }
144996
145038
  }
144997
145039
  ],
144998
- "superclass": {
144999
- "name": "SbbSecondaryButtonElement",
145000
- "module": "button.pure.js"
145001
- },
145002
- "tagName": "sbb-sidebar-close-button",
145003
- "customElement": true,
145004
145040
  "attributes": [
145005
145041
  {
145006
- "name": "size",
145007
- "type": {
145008
- "text": "SbbButtonSize"
145009
- },
145010
- "description": "Size variant, either l, m or s.",
145011
- "default": "'l' / 's' (lean)",
145012
- "fieldName": "size",
145013
- "inheritedFrom": {
145014
- "name": "SbbButtonCommonElementMixin",
145015
- "module": "button/common/button-common.js"
145016
- }
145017
- },
145018
- {
145019
- "name": "loading",
145042
+ "name": "color",
145020
145043
  "type": {
145021
- "text": "boolean"
145044
+ "text": "'white' | 'milk'"
145022
145045
  },
145023
- "default": "false",
145024
- "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.",
145025
- "fieldName": "loading",
145026
- "inheritedFrom": {
145027
- "name": "SbbButtonCommonElementMixin",
145028
- "module": "button/common/button-common.js"
145029
- }
145046
+ "default": "'white'",
145047
+ "description": "Background color of the sidebar. Either `white` or `milk`.",
145048
+ "fieldName": "color"
145030
145049
  },
145031
145050
  {
145032
- "name": "negative",
145051
+ "name": "mode",
145033
145052
  "type": {
145034
- "text": "boolean"
145053
+ "text": "'side' | 'over'"
145035
145054
  },
145036
- "default": "false",
145037
- "description": "Negative coloring variant flag.",
145038
- "fieldName": "negative",
145039
- "inheritedFrom": {
145040
- "name": "SbbNegativeMixin",
145041
- "module": "core/mixins/negative-mixin.js"
145042
- }
145055
+ "default": "'side'",
145056
+ "description": "Mode of the sidebar; one of 'side' or 'over'.",
145057
+ "fieldName": "mode"
145043
145058
  },
145044
145059
  {
145045
- "name": "icon-name",
145060
+ "name": "position",
145046
145061
  "type": {
145047
- "text": "string"
145062
+ "text": "'start' | 'end'"
145048
145063
  },
145049
- "default": "''",
145050
- "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.",
145051
- "fieldName": "iconName",
145052
- "inheritedFrom": {
145053
- "name": "SbbIconNameMixin",
145054
- "module": "icon/icon-name-mixin.js"
145055
- }
145064
+ "default": "'start'",
145065
+ "description": "The side that the sidebar is attached to.",
145066
+ "fieldName": "position"
145056
145067
  },
145057
145068
  {
145058
- "name": "disabled-interactive",
145069
+ "name": "opened",
145059
145070
  "type": {
145060
145071
  "text": "boolean"
145061
145072
  },
145062
145073
  "default": "false",
145063
- "description": "Whether the button should be aria-disabled but stay interactive.",
145064
- "fieldName": "disabledInteractive",
145065
- "inheritedFrom": {
145066
- "name": "SbbDisabledInteractiveMixin",
145067
- "module": "core/mixins/disabled-mixin.js"
145068
- }
145074
+ "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
145075
+ "fieldName": "opened"
145069
145076
  },
145070
145077
  {
145071
- "name": "disabled",
145072
- "description": "Whether the component is disabled.",
145073
- "default": "false",
145078
+ "name": "focus-on-open",
145074
145079
  "type": {
145075
145080
  "text": "boolean"
145076
145081
  },
145077
- "fieldName": "disabled",
145078
- "inheritedFrom": {
145079
- "name": "SbbDisabledMixin",
145080
- "module": "core/mixins/disabled-mixin.js"
145081
- }
145082
- },
145082
+ "default": "false",
145083
+ "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.",
145084
+ "fieldName": "focusOnOpen"
145085
+ }
145086
+ ],
145087
+ "mixins": [
145083
145088
  {
145084
- "name": "value",
145089
+ "name": "SbbAnimationCompleteMixin",
145090
+ "module": "core.js"
145091
+ }
145092
+ ],
145093
+ "superclass": {
145094
+ "name": "SbbOpenCloseBaseElement",
145095
+ "module": "core.js"
145096
+ },
145097
+ "tagName": "sbb-sidebar",
145098
+ "customElement": true,
145099
+ "events": [
145100
+ {
145101
+ "name": "beforeopen",
145085
145102
  "type": {
145086
- "text": "string"
145103
+ "text": "Event"
145087
145104
  },
145088
- "default": "''",
145089
- "description": "Value of the form element.",
145090
- "fieldName": "value",
145105
+ "description": "Emits whenever the component starts the opening transition. Can be canceled.",
145091
145106
  "inheritedFrom": {
145092
- "name": "SbbButtonBaseElement",
145093
- "module": "core/base-elements/button-base-element.js"
145107
+ "name": "SbbOpenCloseBaseElement",
145108
+ "module": "core/base-elements/open-close-base-element.js"
145094
145109
  }
145095
145110
  },
145096
145111
  {
145097
- "name": "type",
145098
- "description": "The type attribute to use for the button.",
145099
- "default": "'button'",
145112
+ "name": "open",
145100
145113
  "type": {
145101
- "text": "SbbButtonType"
145114
+ "text": "Event"
145102
145115
  },
145103
- "fieldName": "type",
145116
+ "description": "Emits whenever the component is opened.",
145104
145117
  "inheritedFrom": {
145105
- "name": "SbbButtonBaseElement",
145106
- "module": "core/base-elements/button-base-element.js"
145118
+ "name": "SbbOpenCloseBaseElement",
145119
+ "module": "core/base-elements/open-close-base-element.js"
145107
145120
  }
145108
145121
  },
145109
145122
  {
145110
- "name": "form",
145111
- "description": "The `<form>` element to associate the button with.",
145123
+ "name": "beforeclose",
145112
145124
  "type": {
145113
- "text": "HTMLFormElement | null"
145125
+ "text": "Event"
145114
145126
  },
145115
- "fieldName": "form",
145127
+ "description": "Emits whenever the component begins the closing transition. Can be canceled.",
145116
145128
  "inheritedFrom": {
145117
- "name": "SbbButtonBaseElement",
145118
- "module": "core/base-elements/button-base-element.js"
145129
+ "name": "SbbOpenCloseBaseElement",
145130
+ "module": "core/base-elements/open-close-base-element.js"
145119
145131
  }
145120
145132
  },
145121
145133
  {
145122
- "name": "name",
145123
- "description": "Name of the form element. Will be read from name attribute.",
145134
+ "name": "close",
145124
145135
  "type": {
145125
- "text": "string"
145136
+ "text": "Event"
145126
145137
  },
145127
- "fieldName": "name",
145128
- "inheritedFrom": {
145129
- "name": "SbbFormAssociatedMixin",
145130
- "module": "core/mixins/form-associated-mixin.js"
145131
- }
145132
- }
145133
- ],
145134
- "cssProperties": [
145135
- {
145136
- "description": "The delay before the loading animation starts, when setting the button into loading state.",
145137
- "name": "--sbb-button-loading-delay",
145138
- "default": "300ms",
145138
+ "description": "Emits whenever the component is closed.",
145139
145139
  "inheritedFrom": {
145140
- "name": "SbbSecondaryButtonElement",
145141
- "module": "button/secondary-button/secondary-button.component.js"
145140
+ "name": "SbbOpenCloseBaseElement",
145141
+ "module": "core/base-elements/open-close-base-element.js"
145142
145142
  }
145143
145143
  }
145144
145144
  ]
@@ -145147,10 +145147,10 @@
145147
145147
  "exports": [
145148
145148
  {
145149
145149
  "kind": "js",
145150
- "name": "SbbSidebarCloseButtonElement",
145150
+ "name": "SbbSidebarElement",
145151
145151
  "declaration": {
145152
- "name": "SbbSidebarCloseButtonElement",
145153
- "module": "sidebar/sidebar-close-button/sidebar-close-button.component.js"
145152
+ "name": "SbbSidebarElement",
145153
+ "module": "sidebar/sidebar/sidebar.component.js"
145154
145154
  }
145155
145155
  }
145156
145156
  ]