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

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