@sbb-esta/lyne-elements-dev 4.10.0-dev.1775645960 → 4.10.0-dev.1775721925
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.
package/custom-elements.json
CHANGED
|
@@ -120224,20 +120224,28 @@
|
|
|
120224
120224
|
},
|
|
120225
120225
|
{
|
|
120226
120226
|
"kind": "javascript-module",
|
|
120227
|
-
"path": "sidebar/sidebar/sidebar.component.js",
|
|
120227
|
+
"path": "sidebar/sidebar-close-button/sidebar-close-button.component.js",
|
|
120228
120228
|
"declarations": [
|
|
120229
120229
|
{
|
|
120230
120230
|
"kind": "class",
|
|
120231
|
-
"description": "
|
|
120232
|
-
"name": "
|
|
120231
|
+
"description": "Sidebar close button, intended to be placed inside sbb-sidebar.",
|
|
120232
|
+
"name": "SbbSidebarCloseButtonElement",
|
|
120233
120233
|
"slots": [
|
|
120234
120234
|
{
|
|
120235
|
-
"description": "Use the unnamed slot to
|
|
120236
|
-
"name": ""
|
|
120235
|
+
"description": "Use the unnamed slot to add content to the sidebar-close-button. Not intended to be used in this context.",
|
|
120236
|
+
"name": "",
|
|
120237
|
+
"inheritedFrom": {
|
|
120238
|
+
"name": "SbbSecondaryButtonElement",
|
|
120239
|
+
"module": "button/secondary-button/secondary-button.component.js"
|
|
120240
|
+
}
|
|
120237
120241
|
},
|
|
120238
120242
|
{
|
|
120239
|
-
"description": "
|
|
120240
|
-
"name": "
|
|
120243
|
+
"description": "Slot used to display the icon, if one is set. Not intended to be used in this context.",
|
|
120244
|
+
"name": "icon",
|
|
120245
|
+
"inheritedFrom": {
|
|
120246
|
+
"name": "SbbSecondaryButtonElement",
|
|
120247
|
+
"module": "button/secondary-button/secondary-button.component.js"
|
|
120248
|
+
}
|
|
120241
120249
|
}
|
|
120242
120250
|
],
|
|
120243
120251
|
"members": [
|
|
@@ -120254,539 +120262,507 @@
|
|
|
120254
120262
|
"name": "SbbElement",
|
|
120255
120263
|
"module": "core/base-elements/element.js"
|
|
120256
120264
|
},
|
|
120257
|
-
"default": "'sbb-sidebar'"
|
|
120265
|
+
"default": "'sbb-sidebar-close-button'"
|
|
120258
120266
|
},
|
|
120259
120267
|
{
|
|
120260
120268
|
"kind": "field",
|
|
120261
|
-
"name": "
|
|
120262
|
-
"
|
|
120263
|
-
|
|
120269
|
+
"name": "_languageController",
|
|
120270
|
+
"privacy": "private",
|
|
120271
|
+
"default": "new SbbLanguageController(this)"
|
|
120272
|
+
},
|
|
120273
|
+
{
|
|
120274
|
+
"kind": "method",
|
|
120275
|
+
"name": "renderTemplate",
|
|
120276
|
+
"privacy": "protected",
|
|
120277
|
+
"return": {
|
|
120278
|
+
"type": {
|
|
120279
|
+
"text": "TemplateResult"
|
|
120280
|
+
}
|
|
120264
120281
|
},
|
|
120265
|
-
"
|
|
120266
|
-
"
|
|
120267
|
-
|
|
120268
|
-
|
|
120269
|
-
|
|
120282
|
+
"description": "Override this method to render the component template.",
|
|
120283
|
+
"inheritedFrom": {
|
|
120284
|
+
"name": "SbbActionBaseElement",
|
|
120285
|
+
"module": "core/base-elements/action-base-element.js"
|
|
120286
|
+
}
|
|
120270
120287
|
},
|
|
120271
120288
|
{
|
|
120272
|
-
"kind": "
|
|
120273
|
-
"name": "
|
|
120274
|
-
"
|
|
120275
|
-
|
|
120289
|
+
"kind": "method",
|
|
120290
|
+
"name": "renderIconName",
|
|
120291
|
+
"privacy": "protected",
|
|
120292
|
+
"return": {
|
|
120293
|
+
"type": {
|
|
120294
|
+
"text": "string"
|
|
120295
|
+
}
|
|
120276
120296
|
},
|
|
120277
|
-
"
|
|
120278
|
-
|
|
120279
|
-
|
|
120280
|
-
|
|
120281
|
-
"reflects": true
|
|
120297
|
+
"inheritedFrom": {
|
|
120298
|
+
"name": "SbbIconNameMixin",
|
|
120299
|
+
"module": "icon/icon-name-mixin.js"
|
|
120300
|
+
}
|
|
120282
120301
|
},
|
|
120283
120302
|
{
|
|
120284
120303
|
"kind": "field",
|
|
120285
|
-
"name": "
|
|
120304
|
+
"name": "size",
|
|
120286
120305
|
"type": {
|
|
120287
|
-
"text": "
|
|
120306
|
+
"text": "SbbButtonSize"
|
|
120288
120307
|
},
|
|
120289
120308
|
"privacy": "public",
|
|
120290
|
-
"
|
|
120291
|
-
"
|
|
120292
|
-
"attribute": "
|
|
120293
|
-
"reflects": true
|
|
120309
|
+
"description": "Size variant, either l, m or s.",
|
|
120310
|
+
"default": "'s'",
|
|
120311
|
+
"attribute": "size",
|
|
120312
|
+
"reflects": true,
|
|
120313
|
+
"inheritedFrom": {
|
|
120314
|
+
"name": "SbbButtonCommonElementMixin",
|
|
120315
|
+
"module": "button/common/button-common.js"
|
|
120316
|
+
}
|
|
120294
120317
|
},
|
|
120295
120318
|
{
|
|
120296
120319
|
"kind": "field",
|
|
120297
|
-
"name": "
|
|
120320
|
+
"name": "loading",
|
|
120298
120321
|
"type": {
|
|
120299
120322
|
"text": "boolean"
|
|
120300
120323
|
},
|
|
120301
120324
|
"privacy": "public",
|
|
120302
120325
|
"default": "false",
|
|
120303
|
-
"description": "Whether the
|
|
120304
|
-
"attribute": "
|
|
120305
|
-
"reflects": true
|
|
120326
|
+
"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.",
|
|
120327
|
+
"attribute": "loading",
|
|
120328
|
+
"reflects": true,
|
|
120329
|
+
"inheritedFrom": {
|
|
120330
|
+
"name": "SbbButtonCommonElementMixin",
|
|
120331
|
+
"module": "button/common/button-common.js"
|
|
120332
|
+
}
|
|
120306
120333
|
},
|
|
120307
120334
|
{
|
|
120308
120335
|
"kind": "field",
|
|
120309
|
-
"name": "
|
|
120336
|
+
"name": "negative",
|
|
120310
120337
|
"type": {
|
|
120311
120338
|
"text": "boolean"
|
|
120312
120339
|
},
|
|
120313
120340
|
"privacy": "public",
|
|
120314
120341
|
"default": "false",
|
|
120315
|
-
"description": "
|
|
120316
|
-
"attribute": "
|
|
120342
|
+
"description": "Negative coloring variant flag.",
|
|
120343
|
+
"attribute": "negative",
|
|
120344
|
+
"reflects": true,
|
|
120345
|
+
"inheritedFrom": {
|
|
120346
|
+
"name": "SbbNegativeMixin",
|
|
120347
|
+
"module": "core/mixins/negative-mixin.js"
|
|
120348
|
+
}
|
|
120317
120349
|
},
|
|
120318
120350
|
{
|
|
120319
120351
|
"kind": "field",
|
|
120320
|
-
"name": "
|
|
120352
|
+
"name": "iconName",
|
|
120321
120353
|
"type": {
|
|
120322
|
-
"text": "
|
|
120354
|
+
"text": "string"
|
|
120323
120355
|
},
|
|
120324
120356
|
"privacy": "public",
|
|
120325
|
-
"
|
|
120326
|
-
"
|
|
120327
|
-
"
|
|
120328
|
-
|
|
120329
|
-
|
|
120330
|
-
|
|
120331
|
-
|
|
120332
|
-
"type": {
|
|
120333
|
-
"text": "SbbSidebarContainerElement | null"
|
|
120334
|
-
},
|
|
120335
|
-
"privacy": "private",
|
|
120336
|
-
"default": "null"
|
|
120337
|
-
},
|
|
120338
|
-
{
|
|
120339
|
-
"kind": "field",
|
|
120340
|
-
"name": "_lastFocusedElement",
|
|
120341
|
-
"type": {
|
|
120342
|
-
"text": "HTMLElement | null"
|
|
120343
|
-
},
|
|
120344
|
-
"privacy": "private",
|
|
120345
|
-
"default": "null"
|
|
120346
|
-
},
|
|
120347
|
-
{
|
|
120348
|
-
"kind": "field",
|
|
120349
|
-
"name": "_focusTrapController",
|
|
120350
|
-
"privacy": "private",
|
|
120351
|
-
"default": "new SbbFocusTrapController(this)"
|
|
120352
|
-
},
|
|
120353
|
-
{
|
|
120354
|
-
"kind": "field",
|
|
120355
|
-
"name": "_escapableOverlayController",
|
|
120356
|
-
"privacy": "private",
|
|
120357
|
-
"default": "new SbbEscapableOverlayController(this)"
|
|
120358
|
-
},
|
|
120359
|
-
{
|
|
120360
|
-
"kind": "field",
|
|
120361
|
-
"name": "_closeOnNavigation",
|
|
120362
|
-
"privacy": "private"
|
|
120357
|
+
"default": "''",
|
|
120358
|
+
"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.",
|
|
120359
|
+
"attribute": "icon-name",
|
|
120360
|
+
"inheritedFrom": {
|
|
120361
|
+
"name": "SbbIconNameMixin",
|
|
120362
|
+
"module": "icon/icon-name-mixin.js"
|
|
120363
|
+
}
|
|
120363
120364
|
},
|
|
120364
120365
|
{
|
|
120365
120366
|
"kind": "method",
|
|
120366
|
-
"name": "
|
|
120367
|
-
"privacy": "
|
|
120367
|
+
"name": "renderIconSlot",
|
|
120368
|
+
"privacy": "protected",
|
|
120368
120369
|
"return": {
|
|
120369
120370
|
"type": {
|
|
120370
|
-
"text": "
|
|
120371
|
+
"text": "TemplateResult"
|
|
120371
120372
|
}
|
|
120372
120373
|
},
|
|
120373
|
-
"
|
|
120374
|
-
|
|
120375
|
-
|
|
120376
|
-
|
|
120377
|
-
|
|
120378
|
-
|
|
120379
|
-
|
|
120380
|
-
"type": {
|
|
120381
|
-
"text": "void"
|
|
120374
|
+
"parameters": [
|
|
120375
|
+
{
|
|
120376
|
+
"name": "classname",
|
|
120377
|
+
"optional": true,
|
|
120378
|
+
"type": {
|
|
120379
|
+
"text": "string"
|
|
120380
|
+
}
|
|
120382
120381
|
}
|
|
120383
|
-
|
|
120384
|
-
"description": "Opens the sidebar.",
|
|
120382
|
+
],
|
|
120385
120383
|
"inheritedFrom": {
|
|
120386
|
-
"name": "
|
|
120387
|
-
"module": "
|
|
120384
|
+
"name": "SbbIconNameMixin",
|
|
120385
|
+
"module": "icon/icon-name-mixin.js"
|
|
120388
120386
|
}
|
|
120389
120387
|
},
|
|
120390
120388
|
{
|
|
120391
120389
|
"kind": "method",
|
|
120392
|
-
"name": "
|
|
120390
|
+
"name": "_renderIconName",
|
|
120393
120391
|
"privacy": "private",
|
|
120394
120392
|
"return": {
|
|
120395
120393
|
"type": {
|
|
120396
|
-
"text": "
|
|
120394
|
+
"text": "string"
|
|
120397
120395
|
}
|
|
120396
|
+
},
|
|
120397
|
+
"inheritedFrom": {
|
|
120398
|
+
"name": "SbbIconNameMixin",
|
|
120399
|
+
"module": "icon/icon-name-mixin.js"
|
|
120398
120400
|
}
|
|
120399
120401
|
},
|
|
120400
120402
|
{
|
|
120401
|
-
"kind": "
|
|
120402
|
-
"name": "
|
|
120403
|
-
"
|
|
120404
|
-
|
|
120405
|
-
|
|
120406
|
-
|
|
120407
|
-
|
|
120403
|
+
"kind": "field",
|
|
120404
|
+
"name": "disabledInteractive",
|
|
120405
|
+
"type": {
|
|
120406
|
+
"text": "boolean"
|
|
120407
|
+
},
|
|
120408
|
+
"privacy": "public",
|
|
120409
|
+
"default": "false",
|
|
120410
|
+
"description": "Whether the button should be aria-disabled but stay interactive.",
|
|
120411
|
+
"attribute": "disabled-interactive",
|
|
120412
|
+
"reflects": true,
|
|
120413
|
+
"inheritedFrom": {
|
|
120414
|
+
"name": "SbbDisabledInteractiveMixin",
|
|
120415
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
120408
120416
|
}
|
|
120409
120417
|
},
|
|
120410
120418
|
{
|
|
120411
|
-
"kind": "
|
|
120412
|
-
"name": "
|
|
120419
|
+
"kind": "field",
|
|
120420
|
+
"name": "disabled",
|
|
120413
120421
|
"privacy": "public",
|
|
120414
|
-
"
|
|
120415
|
-
|
|
120416
|
-
|
|
120417
|
-
|
|
120422
|
+
"description": "Whether the component is disabled.",
|
|
120423
|
+
"default": "false",
|
|
120424
|
+
"type": {
|
|
120425
|
+
"text": "boolean"
|
|
120418
120426
|
},
|
|
120419
|
-
"
|
|
120427
|
+
"attribute": "disabled",
|
|
120428
|
+
"reflects": true,
|
|
120420
120429
|
"inheritedFrom": {
|
|
120421
|
-
"name": "
|
|
120422
|
-
"module": "core/
|
|
120430
|
+
"name": "SbbDisabledMixin",
|
|
120431
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
120423
120432
|
}
|
|
120424
120433
|
},
|
|
120425
120434
|
{
|
|
120426
|
-
"kind": "
|
|
120427
|
-
"name": "
|
|
120435
|
+
"kind": "field",
|
|
120436
|
+
"name": "#disabled",
|
|
120428
120437
|
"privacy": "private",
|
|
120429
|
-
"
|
|
120430
|
-
"
|
|
120431
|
-
|
|
120432
|
-
|
|
120438
|
+
"type": {
|
|
120439
|
+
"text": "boolean"
|
|
120440
|
+
},
|
|
120441
|
+
"default": "false",
|
|
120442
|
+
"inheritedFrom": {
|
|
120443
|
+
"name": "SbbDisabledMixin",
|
|
120444
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
120433
120445
|
}
|
|
120434
120446
|
},
|
|
120435
120447
|
{
|
|
120436
120448
|
"kind": "method",
|
|
120437
|
-
"name": "
|
|
120438
|
-
"privacy": "
|
|
120449
|
+
"name": "isDisabledExternally",
|
|
120450
|
+
"privacy": "protected",
|
|
120439
120451
|
"return": {
|
|
120440
120452
|
"type": {
|
|
120441
|
-
"text": "
|
|
120442
|
-
}
|
|
120443
|
-
}
|
|
120444
|
-
},
|
|
120445
|
-
{
|
|
120446
|
-
"kind": "method",
|
|
120447
|
-
"name": "cedeFocus",
|
|
120448
|
-
"privacy": "protected",
|
|
120449
|
-
"return": {
|
|
120450
|
-
"type": {
|
|
120451
|
-
"text": "void"
|
|
120452
|
-
}
|
|
120453
|
-
}
|
|
120454
|
-
},
|
|
120455
|
-
{
|
|
120456
|
-
"kind": "method",
|
|
120457
|
-
"name": "_updateSidebarWidth",
|
|
120458
|
-
"privacy": "private",
|
|
120459
|
-
"return": {
|
|
120460
|
-
"type": {
|
|
120461
|
-
"text": "void"
|
|
120453
|
+
"text": "boolean"
|
|
120462
120454
|
}
|
|
120463
120455
|
},
|
|
120464
|
-
"
|
|
120465
|
-
|
|
120466
|
-
|
|
120467
|
-
|
|
120468
|
-
|
|
120469
|
-
"text": "this['position']"
|
|
120470
|
-
}
|
|
120471
|
-
}
|
|
120472
|
-
]
|
|
120456
|
+
"description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
|
|
120457
|
+
"inheritedFrom": {
|
|
120458
|
+
"name": "SbbDisabledMixin",
|
|
120459
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
120460
|
+
}
|
|
120473
120461
|
},
|
|
120474
120462
|
{
|
|
120475
|
-
"kind": "
|
|
120476
|
-
"name": "
|
|
120477
|
-
"
|
|
120478
|
-
|
|
120479
|
-
"type": {
|
|
120480
|
-
"text": "string"
|
|
120481
|
-
}
|
|
120463
|
+
"kind": "field",
|
|
120464
|
+
"name": "_elementsOnWhichEnterPressTriggersSubmit",
|
|
120465
|
+
"type": {
|
|
120466
|
+
"text": "array"
|
|
120482
120467
|
},
|
|
120483
|
-
"parameters": [
|
|
120484
|
-
{
|
|
120485
|
-
"name": "position",
|
|
120486
|
-
"default": "this.position"
|
|
120487
|
-
}
|
|
120488
|
-
]
|
|
120489
|
-
},
|
|
120490
|
-
{
|
|
120491
|
-
"kind": "method",
|
|
120492
|
-
"name": "_isModeOver",
|
|
120493
120468
|
"privacy": "private",
|
|
120494
|
-
"
|
|
120495
|
-
|
|
120496
|
-
|
|
120497
|
-
|
|
120469
|
+
"readonly": true,
|
|
120470
|
+
"default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
|
|
120471
|
+
"inheritedFrom": {
|
|
120472
|
+
"name": "SbbButtonBaseElement",
|
|
120473
|
+
"module": "core/base-elements/button-base-element.js"
|
|
120498
120474
|
}
|
|
120499
120475
|
},
|
|
120500
120476
|
{
|
|
120501
|
-
"kind": "
|
|
120502
|
-
"name": "
|
|
120503
|
-
"
|
|
120504
|
-
|
|
120505
|
-
"type": {
|
|
120506
|
-
"text": "void"
|
|
120507
|
-
}
|
|
120477
|
+
"kind": "field",
|
|
120478
|
+
"name": "value",
|
|
120479
|
+
"type": {
|
|
120480
|
+
"text": "string"
|
|
120508
120481
|
},
|
|
120509
|
-
"
|
|
120510
|
-
|
|
120511
|
-
|
|
120512
|
-
|
|
120513
|
-
|
|
120514
|
-
|
|
120515
|
-
|
|
120516
|
-
|
|
120517
|
-
},
|
|
120518
|
-
{
|
|
120519
|
-
"kind": "method",
|
|
120520
|
-
"name": "_detectScrolledState",
|
|
120521
|
-
"privacy": "private",
|
|
120522
|
-
"return": {
|
|
120523
|
-
"type": {
|
|
120524
|
-
"text": "void"
|
|
120525
|
-
}
|
|
120526
|
-
}
|
|
120482
|
+
"privacy": "public",
|
|
120483
|
+
"inheritedFrom": {
|
|
120484
|
+
"name": "SbbButtonBaseElement",
|
|
120485
|
+
"module": "core/base-elements/button-base-element.js"
|
|
120486
|
+
},
|
|
120487
|
+
"default": "''",
|
|
120488
|
+
"description": "Value of the form element.",
|
|
120489
|
+
"attribute": "value"
|
|
120527
120490
|
},
|
|
120528
120491
|
{
|
|
120529
120492
|
"kind": "field",
|
|
120530
|
-
"name": "
|
|
120493
|
+
"name": "type",
|
|
120494
|
+
"privacy": "public",
|
|
120495
|
+
"description": "The type attribute to use for the button.",
|
|
120496
|
+
"default": "'button'",
|
|
120531
120497
|
"type": {
|
|
120532
|
-
"text": "
|
|
120498
|
+
"text": "SbbButtonType"
|
|
120533
120499
|
},
|
|
120534
|
-
"
|
|
120535
|
-
"default": "false",
|
|
120536
|
-
"description": "Whether the component is currently animating.",
|
|
120500
|
+
"attribute": "type",
|
|
120537
120501
|
"inheritedFrom": {
|
|
120538
|
-
"name": "
|
|
120539
|
-
"module": "core/
|
|
120502
|
+
"name": "SbbButtonBaseElement",
|
|
120503
|
+
"module": "core/base-elements/button-base-element.js"
|
|
120540
120504
|
}
|
|
120541
120505
|
},
|
|
120542
120506
|
{
|
|
120543
120507
|
"kind": "field",
|
|
120544
|
-
"name": "
|
|
120508
|
+
"name": "form",
|
|
120545
120509
|
"type": {
|
|
120546
|
-
"text": "
|
|
120510
|
+
"text": "HTMLFormElement | null"
|
|
120547
120511
|
},
|
|
120548
120512
|
"privacy": "public",
|
|
120549
|
-
"description": "
|
|
120550
|
-
"readonly": true,
|
|
120513
|
+
"description": "The `<form>` element to associate the button with.",
|
|
120551
120514
|
"inheritedFrom": {
|
|
120552
|
-
"name": "
|
|
120553
|
-
"module": "core/
|
|
120554
|
-
}
|
|
120515
|
+
"name": "SbbButtonBaseElement",
|
|
120516
|
+
"module": "core/base-elements/button-base-element.js"
|
|
120517
|
+
},
|
|
120518
|
+
"attribute": "form"
|
|
120555
120519
|
},
|
|
120556
120520
|
{
|
|
120557
120521
|
"kind": "field",
|
|
120558
|
-
"name": "
|
|
120522
|
+
"name": "_formId",
|
|
120559
120523
|
"type": {
|
|
120560
|
-
"text": "
|
|
120524
|
+
"text": "string"
|
|
120561
120525
|
},
|
|
120562
120526
|
"privacy": "private",
|
|
120527
|
+
"default": "''",
|
|
120563
120528
|
"inheritedFrom": {
|
|
120564
|
-
"name": "
|
|
120565
|
-
"module": "core/
|
|
120529
|
+
"name": "SbbButtonBaseElement",
|
|
120530
|
+
"module": "core/base-elements/button-base-element.js"
|
|
120566
120531
|
}
|
|
120567
120532
|
},
|
|
120568
120533
|
{
|
|
120569
|
-
"kind": "
|
|
120570
|
-
"name": "
|
|
120571
|
-
"privacy": "
|
|
120572
|
-
"return": {
|
|
120573
|
-
"type": {
|
|
120574
|
-
"text": "void"
|
|
120575
|
-
}
|
|
120576
|
-
},
|
|
120534
|
+
"kind": "field",
|
|
120535
|
+
"name": "_handleButtonClick",
|
|
120536
|
+
"privacy": "private",
|
|
120577
120537
|
"inheritedFrom": {
|
|
120578
|
-
"name": "
|
|
120579
|
-
"module": "core/
|
|
120538
|
+
"name": "SbbButtonBaseElement",
|
|
120539
|
+
"module": "core/base-elements/button-base-element.js"
|
|
120580
120540
|
}
|
|
120581
120541
|
},
|
|
120582
120542
|
{
|
|
120583
120543
|
"kind": "method",
|
|
120584
|
-
"name": "
|
|
120585
|
-
"privacy": "
|
|
120544
|
+
"name": "_requestSubmit",
|
|
120545
|
+
"privacy": "private",
|
|
120586
120546
|
"return": {
|
|
120587
120547
|
"type": {
|
|
120588
120548
|
"text": "void"
|
|
120589
120549
|
}
|
|
120590
120550
|
},
|
|
120591
|
-
"
|
|
120551
|
+
"parameters": [
|
|
120552
|
+
{
|
|
120553
|
+
"name": "form",
|
|
120554
|
+
"type": {
|
|
120555
|
+
"text": "HTMLFormElement"
|
|
120556
|
+
}
|
|
120557
|
+
}
|
|
120558
|
+
],
|
|
120592
120559
|
"inheritedFrom": {
|
|
120593
|
-
"name": "
|
|
120594
|
-
"module": "core/
|
|
120560
|
+
"name": "SbbButtonBaseElement",
|
|
120561
|
+
"module": "core/base-elements/button-base-element.js"
|
|
120595
120562
|
}
|
|
120596
120563
|
},
|
|
120597
120564
|
{
|
|
120598
|
-
"kind": "
|
|
120599
|
-
"name": "
|
|
120565
|
+
"kind": "field",
|
|
120566
|
+
"name": "_formKeyDown",
|
|
120600
120567
|
"privacy": "private",
|
|
120601
|
-
"return": {
|
|
120602
|
-
"type": {
|
|
120603
|
-
"text": "Promise<void>"
|
|
120604
|
-
}
|
|
120605
|
-
},
|
|
120606
120568
|
"inheritedFrom": {
|
|
120607
|
-
"name": "
|
|
120608
|
-
"module": "core/
|
|
120569
|
+
"name": "SbbButtonBaseElement",
|
|
120570
|
+
"module": "core/base-elements/button-base-element.js"
|
|
120609
120571
|
}
|
|
120610
120572
|
},
|
|
120611
120573
|
{
|
|
120612
120574
|
"kind": "field",
|
|
120613
|
-
"name": "
|
|
120614
|
-
"privacy": "public",
|
|
120615
|
-
"static": true,
|
|
120616
|
-
"readonly": true,
|
|
120617
|
-
"default": "{ beforeopen: 'beforeopen', open: 'open', beforeclose: 'beforeclose', close: 'close', }",
|
|
120575
|
+
"name": "formAssociated",
|
|
120618
120576
|
"type": {
|
|
120619
|
-
"text": "
|
|
120577
|
+
"text": "boolean"
|
|
120620
120578
|
},
|
|
120579
|
+
"privacy": "public",
|
|
120580
|
+
"static": true,
|
|
120581
|
+
"default": "true",
|
|
120621
120582
|
"inheritedFrom": {
|
|
120622
|
-
"name": "
|
|
120623
|
-
"module": "core/
|
|
120583
|
+
"name": "SbbFormAssociatedMixin",
|
|
120584
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
120624
120585
|
}
|
|
120625
120586
|
},
|
|
120626
120587
|
{
|
|
120627
120588
|
"kind": "field",
|
|
120628
|
-
"name": "
|
|
120629
|
-
"privacy": "
|
|
120630
|
-
"description": "
|
|
120589
|
+
"name": "name",
|
|
120590
|
+
"privacy": "public",
|
|
120591
|
+
"description": "Name of the form element. Will be read from name attribute.",
|
|
120631
120592
|
"type": {
|
|
120632
|
-
"text": "
|
|
120593
|
+
"text": "string"
|
|
120633
120594
|
},
|
|
120634
|
-
"
|
|
120595
|
+
"attribute": "name",
|
|
120635
120596
|
"inheritedFrom": {
|
|
120636
|
-
"name": "
|
|
120637
|
-
"module": "core/
|
|
120597
|
+
"name": "SbbFormAssociatedMixin",
|
|
120598
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
120638
120599
|
}
|
|
120639
120600
|
},
|
|
120640
120601
|
{
|
|
120641
120602
|
"kind": "field",
|
|
120642
|
-
"name": "
|
|
120603
|
+
"name": "validity",
|
|
120643
120604
|
"type": {
|
|
120644
|
-
"text": "
|
|
120605
|
+
"text": "ValidityState"
|
|
120645
120606
|
},
|
|
120646
|
-
"privacy": "
|
|
120607
|
+
"privacy": "public",
|
|
120608
|
+
"description": "Returns the ValidityState object for this element.",
|
|
120609
|
+
"readonly": true,
|
|
120647
120610
|
"inheritedFrom": {
|
|
120648
|
-
"name": "
|
|
120649
|
-
"module": "core/
|
|
120611
|
+
"name": "SbbFormAssociatedMixin",
|
|
120612
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
120650
120613
|
}
|
|
120651
120614
|
},
|
|
120652
120615
|
{
|
|
120653
120616
|
"kind": "field",
|
|
120654
|
-
"name": "
|
|
120617
|
+
"name": "validationMessage",
|
|
120655
120618
|
"type": {
|
|
120656
|
-
"text": "
|
|
120619
|
+
"text": "string"
|
|
120657
120620
|
},
|
|
120658
120621
|
"privacy": "public",
|
|
120659
|
-
"description": "
|
|
120622
|
+
"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.",
|
|
120660
120623
|
"readonly": true,
|
|
120661
120624
|
"inheritedFrom": {
|
|
120662
|
-
"name": "
|
|
120663
|
-
"module": "core/
|
|
120625
|
+
"name": "SbbFormAssociatedMixin",
|
|
120626
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
120664
120627
|
}
|
|
120665
120628
|
},
|
|
120666
120629
|
{
|
|
120667
|
-
"kind": "
|
|
120668
|
-
"name": "
|
|
120669
|
-
"
|
|
120670
|
-
|
|
120671
|
-
"type": {
|
|
120672
|
-
"text": "void"
|
|
120673
|
-
}
|
|
120630
|
+
"kind": "field",
|
|
120631
|
+
"name": "willValidate",
|
|
120632
|
+
"type": {
|
|
120633
|
+
"text": "boolean"
|
|
120674
120634
|
},
|
|
120675
|
-
"
|
|
120635
|
+
"privacy": "public",
|
|
120636
|
+
"description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
|
|
120637
|
+
"readonly": true,
|
|
120676
120638
|
"inheritedFrom": {
|
|
120677
|
-
"name": "
|
|
120678
|
-
"module": "core/
|
|
120639
|
+
"name": "SbbFormAssociatedMixin",
|
|
120640
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
120679
120641
|
}
|
|
120680
120642
|
},
|
|
120681
120643
|
{
|
|
120682
|
-
"kind": "
|
|
120683
|
-
"name": "
|
|
120684
|
-
"privacy": "
|
|
120685
|
-
"
|
|
120686
|
-
"type": {
|
|
120687
|
-
"text": "boolean"
|
|
120688
|
-
}
|
|
120689
|
-
},
|
|
120644
|
+
"kind": "field",
|
|
120645
|
+
"name": "_validityStates",
|
|
120646
|
+
"privacy": "private",
|
|
120647
|
+
"default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
|
|
120690
120648
|
"inheritedFrom": {
|
|
120691
|
-
"name": "
|
|
120692
|
-
"module": "core/
|
|
120649
|
+
"name": "SbbFormAssociatedMixin",
|
|
120650
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
120693
120651
|
}
|
|
120694
120652
|
},
|
|
120695
120653
|
{
|
|
120696
|
-
"kind": "
|
|
120697
|
-
"name": "
|
|
120698
|
-
"
|
|
120699
|
-
|
|
120700
|
-
"type": {
|
|
120701
|
-
"text": "boolean"
|
|
120702
|
-
}
|
|
120654
|
+
"kind": "field",
|
|
120655
|
+
"name": "formDisabled",
|
|
120656
|
+
"type": {
|
|
120657
|
+
"text": "boolean"
|
|
120703
120658
|
},
|
|
120659
|
+
"privacy": "protected",
|
|
120660
|
+
"default": "false",
|
|
120661
|
+
"description": "Whenever a surrounding form or fieldset is changing its disabled state.",
|
|
120704
120662
|
"inheritedFrom": {
|
|
120705
|
-
"name": "
|
|
120706
|
-
"module": "core/
|
|
120663
|
+
"name": "SbbFormAssociatedMixin",
|
|
120664
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
120707
120665
|
}
|
|
120708
120666
|
},
|
|
120709
120667
|
{
|
|
120710
120668
|
"kind": "method",
|
|
120711
|
-
"name": "
|
|
120712
|
-
"privacy": "
|
|
120669
|
+
"name": "checkValidity",
|
|
120670
|
+
"privacy": "public",
|
|
120713
120671
|
"return": {
|
|
120714
120672
|
"type": {
|
|
120715
120673
|
"text": "boolean"
|
|
120716
120674
|
}
|
|
120717
120675
|
},
|
|
120676
|
+
"description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
|
|
120718
120677
|
"inheritedFrom": {
|
|
120719
|
-
"name": "
|
|
120720
|
-
"module": "core/
|
|
120678
|
+
"name": "SbbFormAssociatedMixin",
|
|
120679
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
120721
120680
|
}
|
|
120722
120681
|
},
|
|
120723
120682
|
{
|
|
120724
120683
|
"kind": "method",
|
|
120725
|
-
"name": "
|
|
120726
|
-
"privacy": "
|
|
120684
|
+
"name": "reportValidity",
|
|
120685
|
+
"privacy": "public",
|
|
120727
120686
|
"return": {
|
|
120728
120687
|
"type": {
|
|
120729
120688
|
"text": "boolean"
|
|
120730
120689
|
}
|
|
120731
120690
|
},
|
|
120691
|
+
"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.",
|
|
120732
120692
|
"inheritedFrom": {
|
|
120733
|
-
"name": "
|
|
120734
|
-
"module": "core/
|
|
120693
|
+
"name": "SbbFormAssociatedMixin",
|
|
120694
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
120735
120695
|
}
|
|
120736
120696
|
},
|
|
120737
120697
|
{
|
|
120738
|
-
"kind": "
|
|
120739
|
-
"name": "
|
|
120740
|
-
"
|
|
120741
|
-
|
|
120698
|
+
"kind": "method",
|
|
120699
|
+
"name": "setCustomValidity",
|
|
120700
|
+
"privacy": "public",
|
|
120701
|
+
"return": {
|
|
120702
|
+
"type": {
|
|
120703
|
+
"text": "void"
|
|
120704
|
+
}
|
|
120742
120705
|
},
|
|
120743
|
-
"
|
|
120744
|
-
|
|
120706
|
+
"parameters": [
|
|
120707
|
+
{
|
|
120708
|
+
"name": "message",
|
|
120709
|
+
"type": {
|
|
120710
|
+
"text": "string"
|
|
120711
|
+
}
|
|
120712
|
+
}
|
|
120713
|
+
],
|
|
120714
|
+
"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.",
|
|
120745
120715
|
"inheritedFrom": {
|
|
120746
|
-
"name": "
|
|
120747
|
-
"module": "core/
|
|
120716
|
+
"name": "SbbFormAssociatedMixin",
|
|
120717
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
120748
120718
|
}
|
|
120749
120719
|
},
|
|
120750
120720
|
{
|
|
120751
|
-
"kind": "
|
|
120752
|
-
"name": "
|
|
120721
|
+
"kind": "method",
|
|
120722
|
+
"name": "_hasDisabledAncestor",
|
|
120753
120723
|
"privacy": "private",
|
|
120754
|
-
"
|
|
120724
|
+
"return": {
|
|
120725
|
+
"type": {
|
|
120726
|
+
"text": "boolean"
|
|
120727
|
+
}
|
|
120728
|
+
},
|
|
120755
120729
|
"inheritedFrom": {
|
|
120756
|
-
"name": "
|
|
120757
|
-
"module": "core/
|
|
120730
|
+
"name": "SbbFormAssociatedMixin",
|
|
120731
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
120758
120732
|
}
|
|
120759
120733
|
},
|
|
120760
120734
|
{
|
|
120761
|
-
"kind": "
|
|
120762
|
-
"name": "
|
|
120763
|
-
"
|
|
120764
|
-
|
|
120735
|
+
"kind": "method",
|
|
120736
|
+
"name": "updateFormValue",
|
|
120737
|
+
"privacy": "protected",
|
|
120738
|
+
"return": {
|
|
120739
|
+
"type": {
|
|
120740
|
+
"text": "void"
|
|
120741
|
+
}
|
|
120765
120742
|
},
|
|
120766
|
-
"
|
|
120743
|
+
"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",
|
|
120767
120744
|
"inheritedFrom": {
|
|
120768
|
-
"name": "
|
|
120769
|
-
"module": "core/
|
|
120745
|
+
"name": "SbbFormAssociatedMixin",
|
|
120746
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
120770
120747
|
}
|
|
120771
120748
|
},
|
|
120772
120749
|
{
|
|
120773
|
-
"kind": "
|
|
120774
|
-
"name": "
|
|
120775
|
-
"type": {
|
|
120776
|
-
"text": "boolean"
|
|
120777
|
-
},
|
|
120750
|
+
"kind": "method",
|
|
120751
|
+
"name": "formState",
|
|
120778
120752
|
"privacy": "protected",
|
|
120779
|
-
"
|
|
120780
|
-
|
|
120781
|
-
|
|
120782
|
-
|
|
120783
|
-
"module": "core/base-elements/element.js"
|
|
120753
|
+
"return": {
|
|
120754
|
+
"type": {
|
|
120755
|
+
"text": "FormRestoreState"
|
|
120756
|
+
}
|
|
120784
120757
|
},
|
|
120785
|
-
"
|
|
120758
|
+
"inheritedFrom": {
|
|
120759
|
+
"name": "SbbFormAssociatedMixin",
|
|
120760
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
120761
|
+
}
|
|
120786
120762
|
},
|
|
120787
120763
|
{
|
|
120788
120764
|
"kind": "method",
|
|
120789
|
-
"name": "
|
|
120765
|
+
"name": "setValidityFlag",
|
|
120790
120766
|
"privacy": "protected",
|
|
120791
120767
|
"return": {
|
|
120792
120768
|
"type": {
|
|
@@ -120795,227 +120771,192 @@
|
|
|
120795
120771
|
},
|
|
120796
120772
|
"parameters": [
|
|
120797
120773
|
{
|
|
120798
|
-
"name": "
|
|
120774
|
+
"name": "flag",
|
|
120775
|
+
"type": {
|
|
120776
|
+
"text": "T"
|
|
120777
|
+
}
|
|
120778
|
+
},
|
|
120779
|
+
{
|
|
120780
|
+
"name": "message",
|
|
120799
120781
|
"type": {
|
|
120800
120782
|
"text": "string"
|
|
120801
120783
|
}
|
|
120802
120784
|
},
|
|
120803
120785
|
{
|
|
120804
|
-
"name": "
|
|
120786
|
+
"name": "flagValue",
|
|
120805
120787
|
"optional": true,
|
|
120806
120788
|
"type": {
|
|
120807
|
-
"text": "
|
|
120789
|
+
"text": "ValidityStateFlags[T]"
|
|
120808
120790
|
}
|
|
120809
120791
|
}
|
|
120810
120792
|
],
|
|
120793
|
+
"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).",
|
|
120811
120794
|
"inheritedFrom": {
|
|
120812
|
-
"name": "
|
|
120813
|
-
"module": "core/
|
|
120795
|
+
"name": "SbbFormAssociatedMixin",
|
|
120796
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
120814
120797
|
}
|
|
120815
120798
|
},
|
|
120816
120799
|
{
|
|
120817
|
-
"kind": "
|
|
120818
|
-
"name": "
|
|
120819
|
-
"
|
|
120820
|
-
|
|
120800
|
+
"kind": "method",
|
|
120801
|
+
"name": "removeValidityFlag",
|
|
120802
|
+
"privacy": "protected",
|
|
120803
|
+
"return": {
|
|
120804
|
+
"type": {
|
|
120805
|
+
"text": "void"
|
|
120806
|
+
}
|
|
120821
120807
|
},
|
|
120822
|
-
"
|
|
120823
|
-
|
|
120824
|
-
|
|
120808
|
+
"parameters": [
|
|
120809
|
+
{
|
|
120810
|
+
"name": "flag",
|
|
120811
|
+
"type": {
|
|
120812
|
+
"text": "T"
|
|
120813
|
+
}
|
|
120814
|
+
}
|
|
120815
|
+
],
|
|
120816
|
+
"description": "Removes the validity state flag entry and updates validity state.",
|
|
120825
120817
|
"inheritedFrom": {
|
|
120826
|
-
"name": "
|
|
120827
|
-
"module": "core/
|
|
120818
|
+
"name": "SbbFormAssociatedMixin",
|
|
120819
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
120828
120820
|
}
|
|
120829
120821
|
},
|
|
120830
120822
|
{
|
|
120831
|
-
"kind": "
|
|
120832
|
-
"name": "
|
|
120833
|
-
"
|
|
120834
|
-
|
|
120823
|
+
"kind": "method",
|
|
120824
|
+
"name": "validate",
|
|
120825
|
+
"privacy": "protected",
|
|
120826
|
+
"return": {
|
|
120827
|
+
"type": {
|
|
120828
|
+
"text": "void"
|
|
120829
|
+
}
|
|
120835
120830
|
},
|
|
120836
|
-
"
|
|
120831
|
+
"description": "To be called whenever the current element needs to be validated.",
|
|
120837
120832
|
"inheritedFrom": {
|
|
120838
|
-
"name": "
|
|
120839
|
-
"module": "core/
|
|
120833
|
+
"name": "SbbFormAssociatedMixin",
|
|
120834
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
120840
120835
|
}
|
|
120841
|
-
}
|
|
120842
|
-
],
|
|
120843
|
-
"attributes": [
|
|
120844
|
-
{
|
|
120845
|
-
"name": "color",
|
|
120846
|
-
"type": {
|
|
120847
|
-
"text": "'white' | 'milk'"
|
|
120848
|
-
},
|
|
120849
|
-
"default": "'white'",
|
|
120850
|
-
"description": "Background color of the sidebar. Either `white` or `milk`.",
|
|
120851
|
-
"fieldName": "color"
|
|
120852
120836
|
},
|
|
120853
120837
|
{
|
|
120854
|
-
"
|
|
120855
|
-
"
|
|
120856
|
-
|
|
120857
|
-
|
|
120858
|
-
|
|
120859
|
-
|
|
120860
|
-
|
|
120861
|
-
},
|
|
120862
|
-
{
|
|
120863
|
-
"name": "position",
|
|
120864
|
-
"type": {
|
|
120865
|
-
"text": "'start' | 'end'"
|
|
120866
|
-
},
|
|
120867
|
-
"default": "'start'",
|
|
120868
|
-
"description": "The side that the sidebar is attached to.",
|
|
120869
|
-
"fieldName": "position"
|
|
120870
|
-
},
|
|
120871
|
-
{
|
|
120872
|
-
"name": "opened",
|
|
120873
|
-
"type": {
|
|
120874
|
-
"text": "boolean"
|
|
120838
|
+
"kind": "method",
|
|
120839
|
+
"name": "shouldValidate",
|
|
120840
|
+
"privacy": "protected",
|
|
120841
|
+
"return": {
|
|
120842
|
+
"type": {
|
|
120843
|
+
"text": "boolean"
|
|
120844
|
+
}
|
|
120875
120845
|
},
|
|
120876
|
-
"
|
|
120877
|
-
|
|
120878
|
-
|
|
120846
|
+
"parameters": [
|
|
120847
|
+
{
|
|
120848
|
+
"name": "name",
|
|
120849
|
+
"type": {
|
|
120850
|
+
"text": "PropertyKey | undefined"
|
|
120851
|
+
}
|
|
120852
|
+
}
|
|
120853
|
+
],
|
|
120854
|
+
"description": "Whether validation should be run on a property change with the given name.",
|
|
120855
|
+
"inheritedFrom": {
|
|
120856
|
+
"name": "SbbFormAssociatedMixin",
|
|
120857
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
120858
|
+
}
|
|
120879
120859
|
},
|
|
120880
120860
|
{
|
|
120881
|
-
"
|
|
120882
|
-
"
|
|
120883
|
-
|
|
120884
|
-
|
|
120885
|
-
|
|
120886
|
-
|
|
120887
|
-
|
|
120888
|
-
}
|
|
120889
|
-
],
|
|
120890
|
-
"mixins": [
|
|
120891
|
-
{
|
|
120892
|
-
"name": "SbbAnimationCompleteMixin",
|
|
120893
|
-
"module": "core/mixins.js"
|
|
120894
|
-
}
|
|
120895
|
-
],
|
|
120896
|
-
"superclass": {
|
|
120897
|
-
"name": "SbbOpenCloseBaseElement",
|
|
120898
|
-
"module": "core/base-elements.js"
|
|
120899
|
-
},
|
|
120900
|
-
"tagName": "sbb-sidebar",
|
|
120901
|
-
"customElement": true,
|
|
120902
|
-
"events": [
|
|
120903
|
-
{
|
|
120904
|
-
"name": "beforeopen",
|
|
120905
|
-
"type": {
|
|
120906
|
-
"text": "Event"
|
|
120861
|
+
"kind": "method",
|
|
120862
|
+
"name": "_setInternalValidity",
|
|
120863
|
+
"privacy": "private",
|
|
120864
|
+
"return": {
|
|
120865
|
+
"type": {
|
|
120866
|
+
"text": "void"
|
|
120867
|
+
}
|
|
120907
120868
|
},
|
|
120908
|
-
"description": "Emits whenever the component starts the opening transition. Can be canceled.",
|
|
120909
120869
|
"inheritedFrom": {
|
|
120910
|
-
"name": "
|
|
120911
|
-
"module": "core/
|
|
120870
|
+
"name": "SbbFormAssociatedMixin",
|
|
120871
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
120912
120872
|
}
|
|
120913
120873
|
},
|
|
120914
120874
|
{
|
|
120915
|
-
"
|
|
120875
|
+
"kind": "field",
|
|
120876
|
+
"name": "role",
|
|
120916
120877
|
"type": {
|
|
120917
|
-
"text": "
|
|
120878
|
+
"text": "ElementInternals['role']"
|
|
120918
120879
|
},
|
|
120919
|
-
"
|
|
120880
|
+
"privacy": "public",
|
|
120881
|
+
"static": true,
|
|
120882
|
+
"readonly": true,
|
|
120883
|
+
"default": "'button'",
|
|
120920
120884
|
"inheritedFrom": {
|
|
120921
|
-
"name": "
|
|
120922
|
-
"module": "core/base-elements/
|
|
120885
|
+
"name": "SbbButtonLikeBaseElement",
|
|
120886
|
+
"module": "core/base-elements/button-base-element.js"
|
|
120923
120887
|
}
|
|
120924
120888
|
},
|
|
120925
120889
|
{
|
|
120926
|
-
"
|
|
120927
|
-
"
|
|
120928
|
-
|
|
120929
|
-
|
|
120930
|
-
"
|
|
120890
|
+
"kind": "field",
|
|
120891
|
+
"name": "_preventScrollOnSpaceKeydown",
|
|
120892
|
+
"privacy": "private",
|
|
120893
|
+
"description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
|
|
120894
|
+
"parameters": [
|
|
120895
|
+
{
|
|
120896
|
+
"description": "The origin event.",
|
|
120897
|
+
"name": "event"
|
|
120898
|
+
}
|
|
120899
|
+
],
|
|
120931
120900
|
"inheritedFrom": {
|
|
120932
|
-
"name": "
|
|
120933
|
-
"module": "core/base-elements/
|
|
120901
|
+
"name": "SbbButtonLikeBaseElement",
|
|
120902
|
+
"module": "core/base-elements/button-base-element.js"
|
|
120934
120903
|
}
|
|
120935
120904
|
},
|
|
120936
120905
|
{
|
|
120937
|
-
"
|
|
120938
|
-
"
|
|
120939
|
-
|
|
120940
|
-
},
|
|
120941
|
-
"description": "Emits whenever the component is closed.",
|
|
120906
|
+
"kind": "field",
|
|
120907
|
+
"name": "_removeActiveMarker",
|
|
120908
|
+
"privacy": "private",
|
|
120942
120909
|
"inheritedFrom": {
|
|
120943
|
-
"name": "
|
|
120944
|
-
"module": "core/base-elements/
|
|
120910
|
+
"name": "SbbButtonLikeBaseElement",
|
|
120911
|
+
"module": "core/base-elements/button-base-element.js"
|
|
120945
120912
|
}
|
|
120946
|
-
}
|
|
120947
|
-
]
|
|
120948
|
-
}
|
|
120949
|
-
],
|
|
120950
|
-
"exports": [
|
|
120951
|
-
{
|
|
120952
|
-
"kind": "js",
|
|
120953
|
-
"name": "SbbSidebarElement",
|
|
120954
|
-
"declaration": {
|
|
120955
|
-
"name": "SbbSidebarElement",
|
|
120956
|
-
"module": "sidebar/sidebar/sidebar.component.js"
|
|
120957
|
-
}
|
|
120958
|
-
}
|
|
120959
|
-
]
|
|
120960
|
-
},
|
|
120961
|
-
{
|
|
120962
|
-
"kind": "javascript-module",
|
|
120963
|
-
"path": "sidebar/sidebar-close-button/sidebar-close-button.component.js",
|
|
120964
|
-
"declarations": [
|
|
120965
|
-
{
|
|
120966
|
-
"kind": "class",
|
|
120967
|
-
"description": "Sidebar close button, intended to be placed inside sbb-sidebar.",
|
|
120968
|
-
"name": "SbbSidebarCloseButtonElement",
|
|
120969
|
-
"slots": [
|
|
120913
|
+
},
|
|
120970
120914
|
{
|
|
120971
|
-
"
|
|
120972
|
-
"name": "",
|
|
120915
|
+
"kind": "field",
|
|
120916
|
+
"name": "_dispatchClickEventOnSpaceKeyup",
|
|
120917
|
+
"privacy": "private",
|
|
120918
|
+
"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.",
|
|
120919
|
+
"parameters": [
|
|
120920
|
+
{
|
|
120921
|
+
"description": "The origin event.",
|
|
120922
|
+
"name": "event"
|
|
120923
|
+
}
|
|
120924
|
+
],
|
|
120973
120925
|
"inheritedFrom": {
|
|
120974
|
-
"name": "
|
|
120975
|
-
"module": "
|
|
120926
|
+
"name": "SbbButtonLikeBaseElement",
|
|
120927
|
+
"module": "core/base-elements/button-base-element.js"
|
|
120976
120928
|
}
|
|
120977
120929
|
},
|
|
120978
120930
|
{
|
|
120979
|
-
"
|
|
120980
|
-
"name": "
|
|
120931
|
+
"kind": "field",
|
|
120932
|
+
"name": "_dispatchClickEvent",
|
|
120933
|
+
"privacy": "private",
|
|
120981
120934
|
"inheritedFrom": {
|
|
120982
|
-
"name": "
|
|
120983
|
-
"module": "
|
|
120935
|
+
"name": "SbbButtonLikeBaseElement",
|
|
120936
|
+
"module": "core/base-elements/button-base-element.js"
|
|
120984
120937
|
}
|
|
120985
|
-
}
|
|
120986
|
-
],
|
|
120987
|
-
"members": [
|
|
120938
|
+
},
|
|
120988
120939
|
{
|
|
120989
120940
|
"kind": "field",
|
|
120990
|
-
"name": "
|
|
120941
|
+
"name": "maybeDisabled",
|
|
120991
120942
|
"type": {
|
|
120992
|
-
"text": "
|
|
120943
|
+
"text": "boolean | undefined"
|
|
120993
120944
|
},
|
|
120994
|
-
"privacy": "
|
|
120995
|
-
"static": true,
|
|
120945
|
+
"privacy": "protected",
|
|
120996
120946
|
"readonly": true,
|
|
120997
120947
|
"inheritedFrom": {
|
|
120998
|
-
"name": "
|
|
120999
|
-
"module": "core/base-elements/element.js"
|
|
121000
|
-
}
|
|
121001
|
-
"default": "'sbb-sidebar-close-button'"
|
|
120948
|
+
"name": "SbbActionBaseElement",
|
|
120949
|
+
"module": "core/base-elements/action-base-element.js"
|
|
120950
|
+
}
|
|
121002
120951
|
},
|
|
121003
120952
|
{
|
|
121004
120953
|
"kind": "field",
|
|
121005
|
-
"name": "
|
|
121006
|
-
"
|
|
121007
|
-
|
|
121008
|
-
},
|
|
121009
|
-
{
|
|
121010
|
-
"kind": "method",
|
|
121011
|
-
"name": "renderTemplate",
|
|
121012
|
-
"privacy": "protected",
|
|
121013
|
-
"return": {
|
|
121014
|
-
"type": {
|
|
121015
|
-
"text": "TemplateResult"
|
|
121016
|
-
}
|
|
120954
|
+
"name": "maybeDisabledInteractive",
|
|
120955
|
+
"type": {
|
|
120956
|
+
"text": "boolean | undefined"
|
|
121017
120957
|
},
|
|
121018
|
-
"
|
|
120958
|
+
"privacy": "protected",
|
|
120959
|
+
"readonly": true,
|
|
121019
120960
|
"inheritedFrom": {
|
|
121020
120961
|
"name": "SbbActionBaseElement",
|
|
121021
120962
|
"module": "core/base-elements/action-base-element.js"
|
|
@@ -121023,483 +120964,518 @@
|
|
|
121023
120964
|
},
|
|
121024
120965
|
{
|
|
121025
120966
|
"kind": "method",
|
|
121026
|
-
"name": "
|
|
120967
|
+
"name": "setupBaseEventHandlers",
|
|
121027
120968
|
"privacy": "protected",
|
|
121028
120969
|
"return": {
|
|
121029
120970
|
"type": {
|
|
121030
|
-
"text": "
|
|
120971
|
+
"text": "void"
|
|
121031
120972
|
}
|
|
121032
120973
|
},
|
|
121033
120974
|
"inheritedFrom": {
|
|
121034
|
-
"name": "
|
|
121035
|
-
"module": "
|
|
120975
|
+
"name": "SbbActionBaseElement",
|
|
120976
|
+
"module": "core/base-elements/action-base-element.js"
|
|
121036
120977
|
}
|
|
121037
120978
|
},
|
|
121038
120979
|
{
|
|
121039
120980
|
"kind": "field",
|
|
121040
|
-
"name": "
|
|
120981
|
+
"name": "_hydrationRequired",
|
|
121041
120982
|
"type": {
|
|
121042
|
-
"text": "
|
|
120983
|
+
"text": "boolean"
|
|
121043
120984
|
},
|
|
121044
|
-
"privacy": "
|
|
121045
|
-
"
|
|
121046
|
-
"default": "'s'",
|
|
121047
|
-
"attribute": "size",
|
|
121048
|
-
"reflects": true,
|
|
120985
|
+
"privacy": "private",
|
|
120986
|
+
"default": "!!this.shadowRoot",
|
|
121049
120987
|
"inheritedFrom": {
|
|
121050
|
-
"name": "
|
|
121051
|
-
"module": "
|
|
120988
|
+
"name": "SbbElement",
|
|
120989
|
+
"module": "core/base-elements/element.js"
|
|
121052
120990
|
}
|
|
121053
120991
|
},
|
|
121054
120992
|
{
|
|
121055
120993
|
"kind": "field",
|
|
121056
|
-
"name": "
|
|
121057
|
-
"
|
|
121058
|
-
|
|
121059
|
-
},
|
|
121060
|
-
"privacy": "public",
|
|
121061
|
-
"default": "false",
|
|
121062
|
-
"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.",
|
|
121063
|
-
"attribute": "loading",
|
|
121064
|
-
"reflects": true,
|
|
120994
|
+
"name": "_hydrationComplete",
|
|
120995
|
+
"privacy": "private",
|
|
120996
|
+
"default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
|
|
121065
120997
|
"inheritedFrom": {
|
|
121066
|
-
"name": "
|
|
121067
|
-
"module": "
|
|
120998
|
+
"name": "SbbElement",
|
|
120999
|
+
"module": "core/base-elements/element.js"
|
|
121068
121000
|
}
|
|
121069
121001
|
},
|
|
121070
121002
|
{
|
|
121071
121003
|
"kind": "field",
|
|
121072
|
-
"name": "
|
|
121004
|
+
"name": "_resolveHydration",
|
|
121073
121005
|
"type": {
|
|
121074
|
-
"text": "boolean"
|
|
121006
|
+
"text": "(hydrationRequired: boolean) => void"
|
|
121075
121007
|
},
|
|
121076
|
-
"privacy": "
|
|
121077
|
-
"default": "false",
|
|
121078
|
-
"description": "Negative coloring variant flag.",
|
|
121079
|
-
"attribute": "negative",
|
|
121080
|
-
"reflects": true,
|
|
121008
|
+
"privacy": "private",
|
|
121081
121009
|
"inheritedFrom": {
|
|
121082
|
-
"name": "
|
|
121083
|
-
"module": "core/
|
|
121010
|
+
"name": "SbbElement",
|
|
121011
|
+
"module": "core/base-elements/element.js"
|
|
121084
121012
|
}
|
|
121085
121013
|
},
|
|
121086
121014
|
{
|
|
121087
121015
|
"kind": "field",
|
|
121088
|
-
"name": "
|
|
121016
|
+
"name": "hydrationRequired",
|
|
121089
121017
|
"type": {
|
|
121090
|
-
"text": "
|
|
121018
|
+
"text": "boolean"
|
|
121091
121019
|
},
|
|
121092
|
-
"privacy": "
|
|
121093
|
-
"
|
|
121094
|
-
"
|
|
121095
|
-
"attribute": "icon-name",
|
|
121020
|
+
"privacy": "protected",
|
|
121021
|
+
"description": "Returns whether hydration is required and not completed.",
|
|
121022
|
+
"readonly": true,
|
|
121096
121023
|
"inheritedFrom": {
|
|
121097
|
-
"name": "
|
|
121098
|
-
"module": "
|
|
121099
|
-
}
|
|
121024
|
+
"name": "SbbElement",
|
|
121025
|
+
"module": "core/base-elements/element.js"
|
|
121026
|
+
},
|
|
121027
|
+
"default": "!!this.shadowRoot"
|
|
121100
121028
|
},
|
|
121101
121029
|
{
|
|
121102
121030
|
"kind": "method",
|
|
121103
|
-
"name": "
|
|
121031
|
+
"name": "toggleState",
|
|
121104
121032
|
"privacy": "protected",
|
|
121105
121033
|
"return": {
|
|
121106
121034
|
"type": {
|
|
121107
|
-
"text": "
|
|
121035
|
+
"text": "void"
|
|
121108
121036
|
}
|
|
121109
121037
|
},
|
|
121110
121038
|
"parameters": [
|
|
121111
121039
|
{
|
|
121112
|
-
"name": "
|
|
121113
|
-
"optional": true,
|
|
121040
|
+
"name": "value",
|
|
121114
121041
|
"type": {
|
|
121115
121042
|
"text": "string"
|
|
121116
121043
|
}
|
|
121044
|
+
},
|
|
121045
|
+
{
|
|
121046
|
+
"name": "force",
|
|
121047
|
+
"optional": true,
|
|
121048
|
+
"type": {
|
|
121049
|
+
"text": "boolean"
|
|
121050
|
+
}
|
|
121117
121051
|
}
|
|
121118
121052
|
],
|
|
121119
121053
|
"inheritedFrom": {
|
|
121120
|
-
"name": "
|
|
121121
|
-
"module": "
|
|
121054
|
+
"name": "SbbElement",
|
|
121055
|
+
"module": "core/base-elements/element.js"
|
|
121122
121056
|
}
|
|
121123
121057
|
},
|
|
121124
121058
|
{
|
|
121125
|
-
"kind": "
|
|
121126
|
-
"name": "
|
|
121127
|
-
"
|
|
121128
|
-
|
|
121129
|
-
"type": {
|
|
121130
|
-
"text": "string"
|
|
121131
|
-
}
|
|
121059
|
+
"kind": "field",
|
|
121060
|
+
"name": "['_$sbbElement$']",
|
|
121061
|
+
"type": {
|
|
121062
|
+
"text": "boolean"
|
|
121132
121063
|
},
|
|
121064
|
+
"privacy": "public",
|
|
121065
|
+
"static": true,
|
|
121066
|
+
"default": "true",
|
|
121133
121067
|
"inheritedFrom": {
|
|
121134
|
-
"name": "
|
|
121135
|
-
"module": "
|
|
121068
|
+
"name": "SbbElement",
|
|
121069
|
+
"module": "core/base-elements/element.js"
|
|
121136
121070
|
}
|
|
121137
121071
|
},
|
|
121138
121072
|
{
|
|
121139
121073
|
"kind": "field",
|
|
121140
|
-
"name": "
|
|
121074
|
+
"name": "_controllers",
|
|
121141
121075
|
"type": {
|
|
121142
|
-
"text": "
|
|
121076
|
+
"text": "Set<SbbReactiveController> | undefined"
|
|
121143
121077
|
},
|
|
121144
|
-
"privacy": "
|
|
121145
|
-
"default": "false",
|
|
121146
|
-
"description": "Whether the button should be aria-disabled but stay interactive.",
|
|
121147
|
-
"attribute": "disabled-interactive",
|
|
121148
|
-
"reflects": true,
|
|
121078
|
+
"privacy": "private",
|
|
121149
121079
|
"inheritedFrom": {
|
|
121150
|
-
"name": "
|
|
121151
|
-
"module": "core/
|
|
121080
|
+
"name": "SbbElement",
|
|
121081
|
+
"module": "core/base-elements/element.js"
|
|
121082
|
+
}
|
|
121083
|
+
}
|
|
121084
|
+
],
|
|
121085
|
+
"superclass": {
|
|
121086
|
+
"name": "SbbSecondaryButtonElement",
|
|
121087
|
+
"module": "button.pure.js"
|
|
121088
|
+
},
|
|
121089
|
+
"tagName": "sbb-sidebar-close-button",
|
|
121090
|
+
"customElement": true,
|
|
121091
|
+
"attributes": [
|
|
121092
|
+
{
|
|
121093
|
+
"name": "size",
|
|
121094
|
+
"type": {
|
|
121095
|
+
"text": "SbbButtonSize"
|
|
121096
|
+
},
|
|
121097
|
+
"description": "Size variant, either l, m or s.",
|
|
121098
|
+
"default": "'l' / 's' (lean)",
|
|
121099
|
+
"fieldName": "size",
|
|
121100
|
+
"inheritedFrom": {
|
|
121101
|
+
"name": "SbbButtonCommonElementMixin",
|
|
121102
|
+
"module": "button/common/button-common.js"
|
|
121152
121103
|
}
|
|
121153
121104
|
},
|
|
121154
121105
|
{
|
|
121155
|
-
"
|
|
121156
|
-
"name": "disabled",
|
|
121157
|
-
"privacy": "public",
|
|
121158
|
-
"description": "Whether the component is disabled.",
|
|
121159
|
-
"default": "false",
|
|
121106
|
+
"name": "loading",
|
|
121160
121107
|
"type": {
|
|
121161
121108
|
"text": "boolean"
|
|
121162
121109
|
},
|
|
121163
|
-
"
|
|
121164
|
-
"
|
|
121110
|
+
"default": "false",
|
|
121111
|
+
"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.",
|
|
121112
|
+
"fieldName": "loading",
|
|
121165
121113
|
"inheritedFrom": {
|
|
121166
|
-
"name": "
|
|
121167
|
-
"module": "
|
|
121114
|
+
"name": "SbbButtonCommonElementMixin",
|
|
121115
|
+
"module": "button/common/button-common.js"
|
|
121168
121116
|
}
|
|
121169
121117
|
},
|
|
121170
121118
|
{
|
|
121171
|
-
"
|
|
121172
|
-
"name": "#disabled",
|
|
121173
|
-
"privacy": "private",
|
|
121119
|
+
"name": "negative",
|
|
121174
121120
|
"type": {
|
|
121175
121121
|
"text": "boolean"
|
|
121176
121122
|
},
|
|
121177
121123
|
"default": "false",
|
|
121124
|
+
"description": "Negative coloring variant flag.",
|
|
121125
|
+
"fieldName": "negative",
|
|
121178
121126
|
"inheritedFrom": {
|
|
121179
|
-
"name": "
|
|
121180
|
-
"module": "core/mixins/
|
|
121127
|
+
"name": "SbbNegativeMixin",
|
|
121128
|
+
"module": "core/mixins/negative-mixin.js"
|
|
121181
121129
|
}
|
|
121182
121130
|
},
|
|
121183
121131
|
{
|
|
121184
|
-
"
|
|
121185
|
-
"
|
|
121186
|
-
|
|
121187
|
-
"return": {
|
|
121188
|
-
"type": {
|
|
121189
|
-
"text": "boolean"
|
|
121190
|
-
}
|
|
121132
|
+
"name": "icon-name",
|
|
121133
|
+
"type": {
|
|
121134
|
+
"text": "string"
|
|
121191
121135
|
},
|
|
121192
|
-
"
|
|
121136
|
+
"default": "''",
|
|
121137
|
+
"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.",
|
|
121138
|
+
"fieldName": "iconName",
|
|
121193
121139
|
"inheritedFrom": {
|
|
121194
|
-
"name": "
|
|
121140
|
+
"name": "SbbIconNameMixin",
|
|
121141
|
+
"module": "icon/icon-name-mixin.js"
|
|
121142
|
+
}
|
|
121143
|
+
},
|
|
121144
|
+
{
|
|
121145
|
+
"name": "disabled-interactive",
|
|
121146
|
+
"type": {
|
|
121147
|
+
"text": "boolean"
|
|
121148
|
+
},
|
|
121149
|
+
"default": "false",
|
|
121150
|
+
"description": "Whether the button should be aria-disabled but stay interactive.",
|
|
121151
|
+
"fieldName": "disabledInteractive",
|
|
121152
|
+
"inheritedFrom": {
|
|
121153
|
+
"name": "SbbDisabledInteractiveMixin",
|
|
121195
121154
|
"module": "core/mixins/disabled-mixin.js"
|
|
121196
121155
|
}
|
|
121197
121156
|
},
|
|
121198
121157
|
{
|
|
121199
|
-
"
|
|
121200
|
-
"
|
|
121158
|
+
"name": "disabled",
|
|
121159
|
+
"description": "Whether the component is disabled.",
|
|
121160
|
+
"default": "false",
|
|
121201
121161
|
"type": {
|
|
121202
|
-
"text": "
|
|
121162
|
+
"text": "boolean"
|
|
121203
121163
|
},
|
|
121204
|
-
"
|
|
121205
|
-
"readonly": true,
|
|
121206
|
-
"default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
|
|
121164
|
+
"fieldName": "disabled",
|
|
121207
121165
|
"inheritedFrom": {
|
|
121208
|
-
"name": "
|
|
121209
|
-
"module": "core/
|
|
121166
|
+
"name": "SbbDisabledMixin",
|
|
121167
|
+
"module": "core/mixins/disabled-mixin.js"
|
|
121210
121168
|
}
|
|
121211
121169
|
},
|
|
121212
121170
|
{
|
|
121213
|
-
"kind": "field",
|
|
121214
121171
|
"name": "value",
|
|
121215
121172
|
"type": {
|
|
121216
121173
|
"text": "string"
|
|
121217
121174
|
},
|
|
121218
|
-
"
|
|
121175
|
+
"default": "''",
|
|
121176
|
+
"description": "Value of the form element.",
|
|
121177
|
+
"fieldName": "value",
|
|
121219
121178
|
"inheritedFrom": {
|
|
121220
121179
|
"name": "SbbButtonBaseElement",
|
|
121221
121180
|
"module": "core/base-elements/button-base-element.js"
|
|
121222
|
-
}
|
|
121223
|
-
"default": "''",
|
|
121224
|
-
"description": "Value of the form element.",
|
|
121225
|
-
"attribute": "value"
|
|
121181
|
+
}
|
|
121226
121182
|
},
|
|
121227
121183
|
{
|
|
121228
|
-
"kind": "field",
|
|
121229
121184
|
"name": "type",
|
|
121230
|
-
"privacy": "public",
|
|
121231
121185
|
"description": "The type attribute to use for the button.",
|
|
121232
121186
|
"default": "'button'",
|
|
121233
121187
|
"type": {
|
|
121234
121188
|
"text": "SbbButtonType"
|
|
121235
121189
|
},
|
|
121236
|
-
"
|
|
121190
|
+
"fieldName": "type",
|
|
121237
121191
|
"inheritedFrom": {
|
|
121238
121192
|
"name": "SbbButtonBaseElement",
|
|
121239
121193
|
"module": "core/base-elements/button-base-element.js"
|
|
121240
121194
|
}
|
|
121241
121195
|
},
|
|
121242
121196
|
{
|
|
121243
|
-
"kind": "field",
|
|
121244
121197
|
"name": "form",
|
|
121198
|
+
"description": "The `<form>` element to associate the button with.",
|
|
121245
121199
|
"type": {
|
|
121246
121200
|
"text": "HTMLFormElement | null"
|
|
121247
121201
|
},
|
|
121248
|
-
"
|
|
121249
|
-
"description": "The `<form>` element to associate the button with.",
|
|
121202
|
+
"fieldName": "form",
|
|
121250
121203
|
"inheritedFrom": {
|
|
121251
121204
|
"name": "SbbButtonBaseElement",
|
|
121252
121205
|
"module": "core/base-elements/button-base-element.js"
|
|
121253
|
-
}
|
|
121254
|
-
"attribute": "form"
|
|
121206
|
+
}
|
|
121255
121207
|
},
|
|
121256
121208
|
{
|
|
121257
|
-
"
|
|
121258
|
-
"
|
|
121209
|
+
"name": "name",
|
|
121210
|
+
"description": "Name of the form element. Will be read from name attribute.",
|
|
121259
121211
|
"type": {
|
|
121260
121212
|
"text": "string"
|
|
121261
121213
|
},
|
|
121262
|
-
"
|
|
121263
|
-
"default": "''",
|
|
121214
|
+
"fieldName": "name",
|
|
121264
121215
|
"inheritedFrom": {
|
|
121265
|
-
"name": "
|
|
121266
|
-
"module": "core/
|
|
121216
|
+
"name": "SbbFormAssociatedMixin",
|
|
121217
|
+
"module": "core/mixins/form-associated-mixin.js"
|
|
121267
121218
|
}
|
|
121268
|
-
}
|
|
121219
|
+
}
|
|
121220
|
+
],
|
|
121221
|
+
"cssProperties": [
|
|
121269
121222
|
{
|
|
121270
|
-
"
|
|
121271
|
-
"name": "
|
|
121272
|
-
"
|
|
121223
|
+
"description": "The delay before the loading animation starts, when setting the button into loading state.",
|
|
121224
|
+
"name": "--sbb-button-loading-delay",
|
|
121225
|
+
"default": "300ms",
|
|
121273
121226
|
"inheritedFrom": {
|
|
121274
|
-
"name": "
|
|
121275
|
-
"module": "
|
|
121227
|
+
"name": "SbbSecondaryButtonElement",
|
|
121228
|
+
"module": "button/secondary-button/secondary-button.component.js"
|
|
121276
121229
|
}
|
|
121230
|
+
}
|
|
121231
|
+
]
|
|
121232
|
+
}
|
|
121233
|
+
],
|
|
121234
|
+
"exports": [
|
|
121235
|
+
{
|
|
121236
|
+
"kind": "js",
|
|
121237
|
+
"name": "SbbSidebarCloseButtonElement",
|
|
121238
|
+
"declaration": {
|
|
121239
|
+
"name": "SbbSidebarCloseButtonElement",
|
|
121240
|
+
"module": "sidebar/sidebar-close-button/sidebar-close-button.component.js"
|
|
121241
|
+
}
|
|
121242
|
+
}
|
|
121243
|
+
]
|
|
121244
|
+
},
|
|
121245
|
+
{
|
|
121246
|
+
"kind": "javascript-module",
|
|
121247
|
+
"path": "sidebar/sidebar/sidebar.component.js",
|
|
121248
|
+
"declarations": [
|
|
121249
|
+
{
|
|
121250
|
+
"kind": "class",
|
|
121251
|
+
"description": "This component corresponds to a sidebar that can be opened on the sidebar container.",
|
|
121252
|
+
"name": "SbbSidebarElement",
|
|
121253
|
+
"slots": [
|
|
121254
|
+
{
|
|
121255
|
+
"description": "Use the unnamed slot to slot any content into the sidebar.",
|
|
121256
|
+
"name": ""
|
|
121277
121257
|
},
|
|
121278
121258
|
{
|
|
121279
|
-
"
|
|
121280
|
-
"name": "
|
|
121281
|
-
|
|
121282
|
-
|
|
121283
|
-
|
|
121284
|
-
|
|
121285
|
-
|
|
121259
|
+
"description": "Use the title slot to add an <sbb-title>.",
|
|
121260
|
+
"name": "title"
|
|
121261
|
+
}
|
|
121262
|
+
],
|
|
121263
|
+
"members": [
|
|
121264
|
+
{
|
|
121265
|
+
"kind": "field",
|
|
121266
|
+
"name": "elementName",
|
|
121267
|
+
"type": {
|
|
121268
|
+
"text": "string"
|
|
121286
121269
|
},
|
|
121287
|
-
"
|
|
121288
|
-
|
|
121289
|
-
|
|
121290
|
-
"type": {
|
|
121291
|
-
"text": "HTMLFormElement"
|
|
121292
|
-
}
|
|
121293
|
-
}
|
|
121294
|
-
],
|
|
121270
|
+
"privacy": "public",
|
|
121271
|
+
"static": true,
|
|
121272
|
+
"readonly": true,
|
|
121295
121273
|
"inheritedFrom": {
|
|
121296
|
-
"name": "
|
|
121297
|
-
"module": "core/base-elements/
|
|
121298
|
-
}
|
|
121274
|
+
"name": "SbbElement",
|
|
121275
|
+
"module": "core/base-elements/element.js"
|
|
121276
|
+
},
|
|
121277
|
+
"default": "'sbb-sidebar'"
|
|
121299
121278
|
},
|
|
121300
121279
|
{
|
|
121301
121280
|
"kind": "field",
|
|
121302
|
-
"name": "
|
|
121303
|
-
"
|
|
121304
|
-
|
|
121305
|
-
|
|
121306
|
-
|
|
121307
|
-
|
|
121281
|
+
"name": "color",
|
|
121282
|
+
"type": {
|
|
121283
|
+
"text": "'white' | 'milk'"
|
|
121284
|
+
},
|
|
121285
|
+
"privacy": "public",
|
|
121286
|
+
"default": "'white'",
|
|
121287
|
+
"description": "Background color of the sidebar. Either `white` or `milk`.",
|
|
121288
|
+
"attribute": "color",
|
|
121289
|
+
"reflects": true
|
|
121308
121290
|
},
|
|
121309
121291
|
{
|
|
121310
121292
|
"kind": "field",
|
|
121311
|
-
"name": "
|
|
121293
|
+
"name": "mode",
|
|
121312
121294
|
"type": {
|
|
121313
|
-
"text": "
|
|
121295
|
+
"text": "'side' | 'over'"
|
|
121314
121296
|
},
|
|
121315
121297
|
"privacy": "public",
|
|
121316
|
-
"
|
|
121317
|
-
"
|
|
121318
|
-
"
|
|
121319
|
-
|
|
121320
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
121321
|
-
}
|
|
121298
|
+
"default": "'side'",
|
|
121299
|
+
"description": "Mode of the sidebar; one of 'side' or 'over'.",
|
|
121300
|
+
"attribute": "mode",
|
|
121301
|
+
"reflects": true
|
|
121322
121302
|
},
|
|
121323
121303
|
{
|
|
121324
121304
|
"kind": "field",
|
|
121325
|
-
"name": "
|
|
121326
|
-
"privacy": "public",
|
|
121327
|
-
"description": "Name of the form element. Will be read from name attribute.",
|
|
121305
|
+
"name": "position",
|
|
121328
121306
|
"type": {
|
|
121329
|
-
"text": "
|
|
121307
|
+
"text": "'start' | 'end'"
|
|
121330
121308
|
},
|
|
121331
|
-
"
|
|
121332
|
-
"
|
|
121333
|
-
|
|
121334
|
-
|
|
121335
|
-
|
|
121309
|
+
"privacy": "public",
|
|
121310
|
+
"default": "'start'",
|
|
121311
|
+
"description": "The side that the sidebar is attached to.",
|
|
121312
|
+
"attribute": "position",
|
|
121313
|
+
"reflects": true
|
|
121336
121314
|
},
|
|
121337
121315
|
{
|
|
121338
121316
|
"kind": "field",
|
|
121339
|
-
"name": "
|
|
121317
|
+
"name": "opened",
|
|
121340
121318
|
"type": {
|
|
121341
|
-
"text": "
|
|
121319
|
+
"text": "boolean"
|
|
121342
121320
|
},
|
|
121343
121321
|
"privacy": "public",
|
|
121344
|
-
"
|
|
121345
|
-
"
|
|
121346
|
-
"
|
|
121347
|
-
|
|
121348
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
121349
|
-
}
|
|
121322
|
+
"default": "false",
|
|
121323
|
+
"description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
|
|
121324
|
+
"attribute": "opened",
|
|
121325
|
+
"reflects": true
|
|
121350
121326
|
},
|
|
121351
121327
|
{
|
|
121352
121328
|
"kind": "field",
|
|
121353
|
-
"name": "
|
|
121329
|
+
"name": "focusOnOpen",
|
|
121354
121330
|
"type": {
|
|
121355
|
-
"text": "
|
|
121331
|
+
"text": "boolean"
|
|
121356
121332
|
},
|
|
121357
121333
|
"privacy": "public",
|
|
121358
|
-
"
|
|
121359
|
-
"
|
|
121360
|
-
"
|
|
121361
|
-
"name": "SbbFormAssociatedMixin",
|
|
121362
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
121363
|
-
}
|
|
121334
|
+
"default": "false",
|
|
121335
|
+
"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.",
|
|
121336
|
+
"attribute": "focus-on-open"
|
|
121364
121337
|
},
|
|
121365
121338
|
{
|
|
121366
121339
|
"kind": "field",
|
|
121367
|
-
"name": "
|
|
121340
|
+
"name": "container",
|
|
121368
121341
|
"type": {
|
|
121369
|
-
"text": "
|
|
121342
|
+
"text": "SbbSidebarContainerElement | null"
|
|
121370
121343
|
},
|
|
121371
121344
|
"privacy": "public",
|
|
121372
|
-
"description": "Returns
|
|
121345
|
+
"description": "Returns the SbbSidebarContainerElement where this sidebar is contained.",
|
|
121373
121346
|
"readonly": true,
|
|
121374
|
-
"
|
|
121375
|
-
"name": "SbbFormAssociatedMixin",
|
|
121376
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
121377
|
-
}
|
|
121347
|
+
"default": "null"
|
|
121378
121348
|
},
|
|
121379
121349
|
{
|
|
121380
121350
|
"kind": "field",
|
|
121381
|
-
"name": "
|
|
121351
|
+
"name": "_container",
|
|
121352
|
+
"type": {
|
|
121353
|
+
"text": "SbbSidebarContainerElement | null"
|
|
121354
|
+
},
|
|
121382
121355
|
"privacy": "private",
|
|
121383
|
-
"default": "
|
|
121384
|
-
"inheritedFrom": {
|
|
121385
|
-
"name": "SbbFormAssociatedMixin",
|
|
121386
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
121387
|
-
}
|
|
121356
|
+
"default": "null"
|
|
121388
121357
|
},
|
|
121389
121358
|
{
|
|
121390
121359
|
"kind": "field",
|
|
121391
|
-
"name": "
|
|
121360
|
+
"name": "_lastFocusedElement",
|
|
121392
121361
|
"type": {
|
|
121393
|
-
"text": "
|
|
121362
|
+
"text": "HTMLElement | null"
|
|
121394
121363
|
},
|
|
121395
|
-
"privacy": "
|
|
121396
|
-
"default": "
|
|
121397
|
-
|
|
121364
|
+
"privacy": "private",
|
|
121365
|
+
"default": "null"
|
|
121366
|
+
},
|
|
121367
|
+
{
|
|
121368
|
+
"kind": "field",
|
|
121369
|
+
"name": "_focusTrapController",
|
|
121370
|
+
"privacy": "private",
|
|
121371
|
+
"default": "new SbbFocusTrapController(this)"
|
|
121372
|
+
},
|
|
121373
|
+
{
|
|
121374
|
+
"kind": "field",
|
|
121375
|
+
"name": "_escapableOverlayController",
|
|
121376
|
+
"privacy": "private",
|
|
121377
|
+
"default": "new SbbEscapableOverlayController(this)"
|
|
121378
|
+
},
|
|
121379
|
+
{
|
|
121380
|
+
"kind": "field",
|
|
121381
|
+
"name": "_closeOnNavigation",
|
|
121382
|
+
"privacy": "private"
|
|
121383
|
+
},
|
|
121384
|
+
{
|
|
121385
|
+
"kind": "method",
|
|
121386
|
+
"name": "toggle",
|
|
121387
|
+
"privacy": "public",
|
|
121388
|
+
"return": {
|
|
121389
|
+
"type": {
|
|
121390
|
+
"text": "void"
|
|
121391
|
+
}
|
|
121392
|
+
},
|
|
121393
|
+
"description": "Toggles the sidebar visibility."
|
|
121394
|
+
},
|
|
121395
|
+
{
|
|
121396
|
+
"kind": "method",
|
|
121397
|
+
"name": "open",
|
|
121398
|
+
"privacy": "public",
|
|
121399
|
+
"return": {
|
|
121400
|
+
"type": {
|
|
121401
|
+
"text": "void"
|
|
121402
|
+
}
|
|
121403
|
+
},
|
|
121404
|
+
"description": "Opens the sidebar.",
|
|
121398
121405
|
"inheritedFrom": {
|
|
121399
|
-
"name": "
|
|
121400
|
-
"module": "core/
|
|
121406
|
+
"name": "SbbOpenCloseBaseElement",
|
|
121407
|
+
"module": "core/base-elements/open-close-base-element.js"
|
|
121401
121408
|
}
|
|
121402
121409
|
},
|
|
121403
121410
|
{
|
|
121404
121411
|
"kind": "method",
|
|
121405
|
-
"name": "
|
|
121406
|
-
"privacy": "
|
|
121412
|
+
"name": "_isZeroAnimationDuration",
|
|
121413
|
+
"privacy": "private",
|
|
121407
121414
|
"return": {
|
|
121408
121415
|
"type": {
|
|
121409
121416
|
"text": "boolean"
|
|
121410
121417
|
}
|
|
121411
|
-
},
|
|
121412
|
-
"description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
|
|
121413
|
-
"inheritedFrom": {
|
|
121414
|
-
"name": "SbbFormAssociatedMixin",
|
|
121415
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
121416
121418
|
}
|
|
121417
121419
|
},
|
|
121418
121420
|
{
|
|
121419
121421
|
"kind": "method",
|
|
121420
|
-
"name": "
|
|
121421
|
-
"privacy": "
|
|
121422
|
+
"name": "_handleOpening",
|
|
121423
|
+
"privacy": "private",
|
|
121422
121424
|
"return": {
|
|
121423
121425
|
"type": {
|
|
121424
|
-
"text": "
|
|
121426
|
+
"text": "void"
|
|
121425
121427
|
}
|
|
121426
|
-
},
|
|
121427
|
-
"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.",
|
|
121428
|
-
"inheritedFrom": {
|
|
121429
|
-
"name": "SbbFormAssociatedMixin",
|
|
121430
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
121431
121428
|
}
|
|
121432
121429
|
},
|
|
121433
121430
|
{
|
|
121434
121431
|
"kind": "method",
|
|
121435
|
-
"name": "
|
|
121432
|
+
"name": "close",
|
|
121436
121433
|
"privacy": "public",
|
|
121437
121434
|
"return": {
|
|
121438
121435
|
"type": {
|
|
121439
121436
|
"text": "void"
|
|
121440
121437
|
}
|
|
121441
121438
|
},
|
|
121442
|
-
"
|
|
121443
|
-
{
|
|
121444
|
-
"name": "message",
|
|
121445
|
-
"type": {
|
|
121446
|
-
"text": "string"
|
|
121447
|
-
}
|
|
121448
|
-
}
|
|
121449
|
-
],
|
|
121450
|
-
"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.",
|
|
121439
|
+
"description": "Closes the sidebar.",
|
|
121451
121440
|
"inheritedFrom": {
|
|
121452
|
-
"name": "
|
|
121453
|
-
"module": "core/
|
|
121441
|
+
"name": "SbbOpenCloseBaseElement",
|
|
121442
|
+
"module": "core/base-elements/open-close-base-element.js"
|
|
121454
121443
|
}
|
|
121455
121444
|
},
|
|
121456
121445
|
{
|
|
121457
121446
|
"kind": "method",
|
|
121458
|
-
"name": "
|
|
121447
|
+
"name": "_handleClosing",
|
|
121459
121448
|
"privacy": "private",
|
|
121460
121449
|
"return": {
|
|
121461
121450
|
"type": {
|
|
121462
|
-
"text": "
|
|
121451
|
+
"text": "void"
|
|
121463
121452
|
}
|
|
121464
|
-
},
|
|
121465
|
-
"inheritedFrom": {
|
|
121466
|
-
"name": "SbbFormAssociatedMixin",
|
|
121467
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
121468
121453
|
}
|
|
121469
121454
|
},
|
|
121470
121455
|
{
|
|
121471
121456
|
"kind": "method",
|
|
121472
|
-
"name": "
|
|
121473
|
-
"privacy": "
|
|
121457
|
+
"name": "_takeFocus",
|
|
121458
|
+
"privacy": "private",
|
|
121474
121459
|
"return": {
|
|
121475
121460
|
"type": {
|
|
121476
121461
|
"text": "void"
|
|
121477
121462
|
}
|
|
121478
|
-
},
|
|
121479
|
-
"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",
|
|
121480
|
-
"inheritedFrom": {
|
|
121481
|
-
"name": "SbbFormAssociatedMixin",
|
|
121482
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
121483
121463
|
}
|
|
121484
121464
|
},
|
|
121485
121465
|
{
|
|
121486
121466
|
"kind": "method",
|
|
121487
|
-
"name": "
|
|
121467
|
+
"name": "cedeFocus",
|
|
121488
121468
|
"privacy": "protected",
|
|
121489
121469
|
"return": {
|
|
121490
121470
|
"type": {
|
|
121491
|
-
"text": "
|
|
121471
|
+
"text": "void"
|
|
121492
121472
|
}
|
|
121493
|
-
},
|
|
121494
|
-
"inheritedFrom": {
|
|
121495
|
-
"name": "SbbFormAssociatedMixin",
|
|
121496
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
121497
121473
|
}
|
|
121498
121474
|
},
|
|
121499
121475
|
{
|
|
121500
121476
|
"kind": "method",
|
|
121501
|
-
"name": "
|
|
121502
|
-
"privacy": "
|
|
121477
|
+
"name": "_updateSidebarWidth",
|
|
121478
|
+
"privacy": "private",
|
|
121503
121479
|
"return": {
|
|
121504
121480
|
"type": {
|
|
121505
121481
|
"text": "void"
|
|
@@ -121507,35 +121483,44 @@
|
|
|
121507
121483
|
},
|
|
121508
121484
|
"parameters": [
|
|
121509
121485
|
{
|
|
121510
|
-
"name": "
|
|
121511
|
-
"type": {
|
|
121512
|
-
"text": "T"
|
|
121513
|
-
}
|
|
121514
|
-
},
|
|
121515
|
-
{
|
|
121516
|
-
"name": "message",
|
|
121517
|
-
"type": {
|
|
121518
|
-
"text": "string"
|
|
121519
|
-
}
|
|
121520
|
-
},
|
|
121521
|
-
{
|
|
121522
|
-
"name": "flagValue",
|
|
121486
|
+
"name": "oldPosition",
|
|
121523
121487
|
"optional": true,
|
|
121524
121488
|
"type": {
|
|
121525
|
-
"text": "
|
|
121489
|
+
"text": "this['position']"
|
|
121526
121490
|
}
|
|
121527
121491
|
}
|
|
121528
|
-
]
|
|
121529
|
-
|
|
121530
|
-
|
|
121531
|
-
|
|
121532
|
-
|
|
121492
|
+
]
|
|
121493
|
+
},
|
|
121494
|
+
{
|
|
121495
|
+
"kind": "method",
|
|
121496
|
+
"name": "_buildCssWidthVar",
|
|
121497
|
+
"privacy": "private",
|
|
121498
|
+
"return": {
|
|
121499
|
+
"type": {
|
|
121500
|
+
"text": "string"
|
|
121501
|
+
}
|
|
121502
|
+
},
|
|
121503
|
+
"parameters": [
|
|
121504
|
+
{
|
|
121505
|
+
"name": "position",
|
|
121506
|
+
"default": "this.position"
|
|
121507
|
+
}
|
|
121508
|
+
]
|
|
121509
|
+
},
|
|
121510
|
+
{
|
|
121511
|
+
"kind": "method",
|
|
121512
|
+
"name": "_isModeOver",
|
|
121513
|
+
"privacy": "private",
|
|
121514
|
+
"return": {
|
|
121515
|
+
"type": {
|
|
121516
|
+
"text": "boolean"
|
|
121517
|
+
}
|
|
121533
121518
|
}
|
|
121534
121519
|
},
|
|
121535
121520
|
{
|
|
121536
121521
|
"kind": "method",
|
|
121537
|
-
"name": "
|
|
121538
|
-
"privacy": "
|
|
121522
|
+
"name": "_onTransitionEnd",
|
|
121523
|
+
"privacy": "private",
|
|
121539
121524
|
"return": {
|
|
121540
121525
|
"type": {
|
|
121541
121526
|
"text": "void"
|
|
@@ -121543,173 +121528,230 @@
|
|
|
121543
121528
|
},
|
|
121544
121529
|
"parameters": [
|
|
121545
121530
|
{
|
|
121546
|
-
"name": "
|
|
121531
|
+
"name": "event",
|
|
121547
121532
|
"type": {
|
|
121548
|
-
"text": "
|
|
121533
|
+
"text": "TransitionEvent"
|
|
121549
121534
|
}
|
|
121550
121535
|
}
|
|
121551
|
-
]
|
|
121552
|
-
|
|
121536
|
+
]
|
|
121537
|
+
},
|
|
121538
|
+
{
|
|
121539
|
+
"kind": "method",
|
|
121540
|
+
"name": "_detectScrolledState",
|
|
121541
|
+
"privacy": "private",
|
|
121542
|
+
"return": {
|
|
121543
|
+
"type": {
|
|
121544
|
+
"text": "void"
|
|
121545
|
+
}
|
|
121546
|
+
}
|
|
121547
|
+
},
|
|
121548
|
+
{
|
|
121549
|
+
"kind": "field",
|
|
121550
|
+
"name": "isAnimating",
|
|
121551
|
+
"type": {
|
|
121552
|
+
"text": "boolean"
|
|
121553
|
+
},
|
|
121554
|
+
"privacy": "public",
|
|
121555
|
+
"default": "false",
|
|
121556
|
+
"description": "Whether the component is currently animating.",
|
|
121553
121557
|
"inheritedFrom": {
|
|
121554
|
-
"name": "
|
|
121555
|
-
"module": "core/mixins/
|
|
121558
|
+
"name": "SbbAnimationCompleteMixin",
|
|
121559
|
+
"module": "core/mixins/animation-complete-mixin.js"
|
|
121560
|
+
}
|
|
121561
|
+
},
|
|
121562
|
+
{
|
|
121563
|
+
"kind": "field",
|
|
121564
|
+
"name": "animationComplete",
|
|
121565
|
+
"type": {
|
|
121566
|
+
"text": "Promise<void>"
|
|
121567
|
+
},
|
|
121568
|
+
"privacy": "public",
|
|
121569
|
+
"description": "Returns a promise which completes whenever an animation ends.\nWhen a new animation starts, a new Promise is returned.",
|
|
121570
|
+
"readonly": true,
|
|
121571
|
+
"inheritedFrom": {
|
|
121572
|
+
"name": "SbbAnimationCompleteMixin",
|
|
121573
|
+
"module": "core/mixins/animation-complete-mixin.js"
|
|
121574
|
+
}
|
|
121575
|
+
},
|
|
121576
|
+
{
|
|
121577
|
+
"kind": "field",
|
|
121578
|
+
"name": "_animationPromise",
|
|
121579
|
+
"type": {
|
|
121580
|
+
"text": "Promise<void>"
|
|
121581
|
+
},
|
|
121582
|
+
"privacy": "private",
|
|
121583
|
+
"inheritedFrom": {
|
|
121584
|
+
"name": "SbbAnimationCompleteMixin",
|
|
121585
|
+
"module": "core/mixins/animation-complete-mixin.js"
|
|
121556
121586
|
}
|
|
121557
121587
|
},
|
|
121558
121588
|
{
|
|
121559
121589
|
"kind": "method",
|
|
121560
|
-
"name": "
|
|
121590
|
+
"name": "startAnimation",
|
|
121561
121591
|
"privacy": "protected",
|
|
121562
121592
|
"return": {
|
|
121563
121593
|
"type": {
|
|
121564
121594
|
"text": "void"
|
|
121565
121595
|
}
|
|
121566
121596
|
},
|
|
121567
|
-
"description": "To be called whenever the current element needs to be validated.",
|
|
121568
121597
|
"inheritedFrom": {
|
|
121569
|
-
"name": "
|
|
121570
|
-
"module": "core/mixins/
|
|
121598
|
+
"name": "SbbAnimationCompleteMixin",
|
|
121599
|
+
"module": "core/mixins/animation-complete-mixin.js"
|
|
121571
121600
|
}
|
|
121572
121601
|
},
|
|
121573
121602
|
{
|
|
121574
121603
|
"kind": "method",
|
|
121575
|
-
"name": "
|
|
121604
|
+
"name": "stopAnimation",
|
|
121576
121605
|
"privacy": "protected",
|
|
121577
121606
|
"return": {
|
|
121578
121607
|
"type": {
|
|
121579
|
-
"text": "
|
|
121608
|
+
"text": "void"
|
|
121580
121609
|
}
|
|
121581
121610
|
},
|
|
121582
|
-
"
|
|
121583
|
-
{
|
|
121584
|
-
"name": "name",
|
|
121585
|
-
"type": {
|
|
121586
|
-
"text": "PropertyKey | undefined"
|
|
121587
|
-
}
|
|
121588
|
-
}
|
|
121589
|
-
],
|
|
121590
|
-
"description": "Whether validation should be run on a property change with the given name.",
|
|
121611
|
+
"description": "Overriding stopAnimation() breaks functionality.",
|
|
121591
121612
|
"inheritedFrom": {
|
|
121592
|
-
"name": "
|
|
121593
|
-
"module": "core/mixins/
|
|
121613
|
+
"name": "SbbAnimationCompleteMixin",
|
|
121614
|
+
"module": "core/mixins/animation-complete-mixin.js"
|
|
121594
121615
|
}
|
|
121595
121616
|
},
|
|
121596
121617
|
{
|
|
121597
121618
|
"kind": "method",
|
|
121598
|
-
"name": "
|
|
121619
|
+
"name": "_enqueueAnimation",
|
|
121599
121620
|
"privacy": "private",
|
|
121600
121621
|
"return": {
|
|
121601
121622
|
"type": {
|
|
121602
|
-
"text": "void"
|
|
121623
|
+
"text": "Promise<void>"
|
|
121603
121624
|
}
|
|
121604
121625
|
},
|
|
121605
121626
|
"inheritedFrom": {
|
|
121606
|
-
"name": "
|
|
121607
|
-
"module": "core/mixins/
|
|
121627
|
+
"name": "SbbAnimationCompleteMixin",
|
|
121628
|
+
"module": "core/mixins/animation-complete-mixin.js"
|
|
121608
121629
|
}
|
|
121609
121630
|
},
|
|
121610
121631
|
{
|
|
121611
121632
|
"kind": "field",
|
|
121612
|
-
"name": "
|
|
121613
|
-
"type": {
|
|
121614
|
-
"text": "ElementInternals['role']"
|
|
121615
|
-
},
|
|
121633
|
+
"name": "events",
|
|
121616
121634
|
"privacy": "public",
|
|
121617
121635
|
"static": true,
|
|
121618
121636
|
"readonly": true,
|
|
121619
|
-
"default": "'
|
|
121637
|
+
"default": "{ beforeopen: 'beforeopen', open: 'open', beforeclose: 'beforeclose', close: 'close', }",
|
|
121638
|
+
"type": {
|
|
121639
|
+
"text": "{\n beforeopen: 'beforeopen',\n open: 'open',\n beforeclose: 'beforeclose',\n close: 'close',\n }"
|
|
121640
|
+
},
|
|
121620
121641
|
"inheritedFrom": {
|
|
121621
|
-
"name": "
|
|
121622
|
-
"module": "core/base-elements/
|
|
121642
|
+
"name": "SbbOpenCloseBaseElement",
|
|
121643
|
+
"module": "core/base-elements/open-close-base-element.js"
|
|
121623
121644
|
}
|
|
121624
121645
|
},
|
|
121625
121646
|
{
|
|
121626
121647
|
"kind": "field",
|
|
121627
|
-
"name": "
|
|
121628
|
-
"privacy": "
|
|
121629
|
-
"description": "
|
|
121630
|
-
"
|
|
121631
|
-
|
|
121632
|
-
|
|
121633
|
-
|
|
121634
|
-
}
|
|
121635
|
-
],
|
|
121648
|
+
"name": "state",
|
|
121649
|
+
"privacy": "protected",
|
|
121650
|
+
"description": "The state of the component.",
|
|
121651
|
+
"type": {
|
|
121652
|
+
"text": "SbbOpenedClosedState"
|
|
121653
|
+
},
|
|
121654
|
+
"default": "'closed'",
|
|
121636
121655
|
"inheritedFrom": {
|
|
121637
|
-
"name": "
|
|
121638
|
-
"module": "core/base-elements/
|
|
121656
|
+
"name": "SbbOpenCloseBaseElement",
|
|
121657
|
+
"module": "core/base-elements/open-close-base-element.js"
|
|
121658
|
+
}
|
|
121659
|
+
},
|
|
121660
|
+
{
|
|
121661
|
+
"kind": "field",
|
|
121662
|
+
"name": "_state",
|
|
121663
|
+
"type": {
|
|
121664
|
+
"text": "SbbOpenedClosedState"
|
|
121665
|
+
},
|
|
121666
|
+
"privacy": "private",
|
|
121667
|
+
"inheritedFrom": {
|
|
121668
|
+
"name": "SbbOpenCloseBaseElement",
|
|
121669
|
+
"module": "core/base-elements/open-close-base-element.js"
|
|
121639
121670
|
}
|
|
121640
121671
|
},
|
|
121641
121672
|
{
|
|
121642
121673
|
"kind": "field",
|
|
121643
|
-
"name": "
|
|
121644
|
-
"
|
|
121674
|
+
"name": "isOpen",
|
|
121675
|
+
"type": {
|
|
121676
|
+
"text": "boolean"
|
|
121677
|
+
},
|
|
121678
|
+
"privacy": "public",
|
|
121679
|
+
"description": "Whether the element is open.",
|
|
121680
|
+
"readonly": true,
|
|
121645
121681
|
"inheritedFrom": {
|
|
121646
|
-
"name": "
|
|
121647
|
-
"module": "core/base-elements/
|
|
121682
|
+
"name": "SbbOpenCloseBaseElement",
|
|
121683
|
+
"module": "core/base-elements/open-close-base-element.js"
|
|
121648
121684
|
}
|
|
121649
121685
|
},
|
|
121650
121686
|
{
|
|
121651
|
-
"kind": "
|
|
121652
|
-
"name": "
|
|
121653
|
-
"privacy": "
|
|
121654
|
-
"
|
|
121655
|
-
|
|
121656
|
-
|
|
121657
|
-
"description": "The origin event.",
|
|
121658
|
-
"name": "event"
|
|
121687
|
+
"kind": "method",
|
|
121688
|
+
"name": "escapeStrategy",
|
|
121689
|
+
"privacy": "public",
|
|
121690
|
+
"return": {
|
|
121691
|
+
"type": {
|
|
121692
|
+
"text": "void"
|
|
121659
121693
|
}
|
|
121660
|
-
|
|
121694
|
+
},
|
|
121695
|
+
"description": "The method which is called on escape key press. Defaults to calling close()",
|
|
121661
121696
|
"inheritedFrom": {
|
|
121662
|
-
"name": "
|
|
121663
|
-
"module": "core/base-elements/
|
|
121697
|
+
"name": "SbbOpenCloseBaseElement",
|
|
121698
|
+
"module": "core/base-elements/open-close-base-element.js"
|
|
121664
121699
|
}
|
|
121665
121700
|
},
|
|
121666
121701
|
{
|
|
121667
|
-
"kind": "
|
|
121668
|
-
"name": "
|
|
121669
|
-
"privacy": "
|
|
121702
|
+
"kind": "method",
|
|
121703
|
+
"name": "dispatchBeforeOpenEvent",
|
|
121704
|
+
"privacy": "protected",
|
|
121705
|
+
"return": {
|
|
121706
|
+
"type": {
|
|
121707
|
+
"text": "boolean"
|
|
121708
|
+
}
|
|
121709
|
+
},
|
|
121670
121710
|
"inheritedFrom": {
|
|
121671
|
-
"name": "
|
|
121672
|
-
"module": "core/base-elements/
|
|
121711
|
+
"name": "SbbOpenCloseBaseElement",
|
|
121712
|
+
"module": "core/base-elements/open-close-base-element.js"
|
|
121673
121713
|
}
|
|
121674
121714
|
},
|
|
121675
121715
|
{
|
|
121676
|
-
"kind": "
|
|
121677
|
-
"name": "
|
|
121678
|
-
"type": {
|
|
121679
|
-
"text": "boolean | undefined"
|
|
121680
|
-
},
|
|
121716
|
+
"kind": "method",
|
|
121717
|
+
"name": "dispatchOpenEvent",
|
|
121681
121718
|
"privacy": "protected",
|
|
121682
|
-
"
|
|
121719
|
+
"return": {
|
|
121720
|
+
"type": {
|
|
121721
|
+
"text": "boolean"
|
|
121722
|
+
}
|
|
121723
|
+
},
|
|
121683
121724
|
"inheritedFrom": {
|
|
121684
|
-
"name": "
|
|
121685
|
-
"module": "core/base-elements/
|
|
121725
|
+
"name": "SbbOpenCloseBaseElement",
|
|
121726
|
+
"module": "core/base-elements/open-close-base-element.js"
|
|
121686
121727
|
}
|
|
121687
121728
|
},
|
|
121688
121729
|
{
|
|
121689
|
-
"kind": "
|
|
121690
|
-
"name": "
|
|
121691
|
-
"type": {
|
|
121692
|
-
"text": "boolean | undefined"
|
|
121693
|
-
},
|
|
121730
|
+
"kind": "method",
|
|
121731
|
+
"name": "dispatchBeforeCloseEvent",
|
|
121694
121732
|
"privacy": "protected",
|
|
121695
|
-
"
|
|
121733
|
+
"return": {
|
|
121734
|
+
"type": {
|
|
121735
|
+
"text": "boolean"
|
|
121736
|
+
}
|
|
121737
|
+
},
|
|
121696
121738
|
"inheritedFrom": {
|
|
121697
|
-
"name": "
|
|
121698
|
-
"module": "core/base-elements/
|
|
121739
|
+
"name": "SbbOpenCloseBaseElement",
|
|
121740
|
+
"module": "core/base-elements/open-close-base-element.js"
|
|
121699
121741
|
}
|
|
121700
121742
|
},
|
|
121701
121743
|
{
|
|
121702
121744
|
"kind": "method",
|
|
121703
|
-
"name": "
|
|
121745
|
+
"name": "dispatchCloseEvent",
|
|
121704
121746
|
"privacy": "protected",
|
|
121705
121747
|
"return": {
|
|
121706
121748
|
"type": {
|
|
121707
|
-
"text": "
|
|
121749
|
+
"text": "boolean"
|
|
121708
121750
|
}
|
|
121709
121751
|
},
|
|
121710
121752
|
"inheritedFrom": {
|
|
121711
|
-
"name": "
|
|
121712
|
-
"module": "core/base-elements/
|
|
121753
|
+
"name": "SbbOpenCloseBaseElement",
|
|
121754
|
+
"module": "core/base-elements/open-close-base-element.js"
|
|
121713
121755
|
}
|
|
121714
121756
|
},
|
|
121715
121757
|
{
|
|
@@ -121818,150 +121860,108 @@
|
|
|
121818
121860
|
}
|
|
121819
121861
|
}
|
|
121820
121862
|
],
|
|
121821
|
-
"superclass": {
|
|
121822
|
-
"name": "SbbSecondaryButtonElement",
|
|
121823
|
-
"module": "button.pure.js"
|
|
121824
|
-
},
|
|
121825
|
-
"tagName": "sbb-sidebar-close-button",
|
|
121826
|
-
"customElement": true,
|
|
121827
121863
|
"attributes": [
|
|
121828
121864
|
{
|
|
121829
|
-
"name": "
|
|
121830
|
-
"type": {
|
|
121831
|
-
"text": "SbbButtonSize"
|
|
121832
|
-
},
|
|
121833
|
-
"description": "Size variant, either l, m or s.",
|
|
121834
|
-
"default": "'l' / 's' (lean)",
|
|
121835
|
-
"fieldName": "size",
|
|
121836
|
-
"inheritedFrom": {
|
|
121837
|
-
"name": "SbbButtonCommonElementMixin",
|
|
121838
|
-
"module": "button/common/button-common.js"
|
|
121839
|
-
}
|
|
121840
|
-
},
|
|
121841
|
-
{
|
|
121842
|
-
"name": "loading",
|
|
121865
|
+
"name": "color",
|
|
121843
121866
|
"type": {
|
|
121844
|
-
"text": "
|
|
121867
|
+
"text": "'white' | 'milk'"
|
|
121845
121868
|
},
|
|
121846
|
-
"default": "
|
|
121847
|
-
"description": "
|
|
121848
|
-
"fieldName": "
|
|
121849
|
-
"inheritedFrom": {
|
|
121850
|
-
"name": "SbbButtonCommonElementMixin",
|
|
121851
|
-
"module": "button/common/button-common.js"
|
|
121852
|
-
}
|
|
121869
|
+
"default": "'white'",
|
|
121870
|
+
"description": "Background color of the sidebar. Either `white` or `milk`.",
|
|
121871
|
+
"fieldName": "color"
|
|
121853
121872
|
},
|
|
121854
121873
|
{
|
|
121855
|
-
"name": "
|
|
121874
|
+
"name": "mode",
|
|
121856
121875
|
"type": {
|
|
121857
|
-
"text": "
|
|
121876
|
+
"text": "'side' | 'over'"
|
|
121858
121877
|
},
|
|
121859
|
-
"default": "
|
|
121860
|
-
"description": "
|
|
121861
|
-
"fieldName": "
|
|
121862
|
-
"inheritedFrom": {
|
|
121863
|
-
"name": "SbbNegativeMixin",
|
|
121864
|
-
"module": "core/mixins/negative-mixin.js"
|
|
121865
|
-
}
|
|
121878
|
+
"default": "'side'",
|
|
121879
|
+
"description": "Mode of the sidebar; one of 'side' or 'over'.",
|
|
121880
|
+
"fieldName": "mode"
|
|
121866
121881
|
},
|
|
121867
121882
|
{
|
|
121868
|
-
"name": "
|
|
121883
|
+
"name": "position",
|
|
121869
121884
|
"type": {
|
|
121870
|
-
"text": "
|
|
121885
|
+
"text": "'start' | 'end'"
|
|
121871
121886
|
},
|
|
121872
|
-
"default": "''",
|
|
121873
|
-
"description": "The
|
|
121874
|
-
"fieldName": "
|
|
121875
|
-
"inheritedFrom": {
|
|
121876
|
-
"name": "SbbIconNameMixin",
|
|
121877
|
-
"module": "icon/icon-name-mixin.js"
|
|
121878
|
-
}
|
|
121887
|
+
"default": "'start'",
|
|
121888
|
+
"description": "The side that the sidebar is attached to.",
|
|
121889
|
+
"fieldName": "position"
|
|
121879
121890
|
},
|
|
121880
121891
|
{
|
|
121881
|
-
"name": "
|
|
121892
|
+
"name": "opened",
|
|
121882
121893
|
"type": {
|
|
121883
121894
|
"text": "boolean"
|
|
121884
121895
|
},
|
|
121885
121896
|
"default": "false",
|
|
121886
|
-
"description": "Whether the
|
|
121887
|
-
"fieldName": "
|
|
121888
|
-
"inheritedFrom": {
|
|
121889
|
-
"name": "SbbDisabledInteractiveMixin",
|
|
121890
|
-
"module": "core/mixins/disabled-mixin.js"
|
|
121891
|
-
}
|
|
121897
|
+
"description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
|
|
121898
|
+
"fieldName": "opened"
|
|
121892
121899
|
},
|
|
121893
121900
|
{
|
|
121894
|
-
"name": "
|
|
121895
|
-
"description": "Whether the component is disabled.",
|
|
121896
|
-
"default": "false",
|
|
121901
|
+
"name": "focus-on-open",
|
|
121897
121902
|
"type": {
|
|
121898
121903
|
"text": "boolean"
|
|
121899
121904
|
},
|
|
121900
|
-
"
|
|
121901
|
-
"
|
|
121902
|
-
|
|
121903
|
-
|
|
121904
|
-
|
|
121905
|
-
|
|
121905
|
+
"default": "false",
|
|
121906
|
+
"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.",
|
|
121907
|
+
"fieldName": "focusOnOpen"
|
|
121908
|
+
}
|
|
121909
|
+
],
|
|
121910
|
+
"mixins": [
|
|
121906
121911
|
{
|
|
121907
|
-
"name": "
|
|
121912
|
+
"name": "SbbAnimationCompleteMixin",
|
|
121913
|
+
"module": "core/mixins.js"
|
|
121914
|
+
}
|
|
121915
|
+
],
|
|
121916
|
+
"superclass": {
|
|
121917
|
+
"name": "SbbOpenCloseBaseElement",
|
|
121918
|
+
"module": "core/base-elements.js"
|
|
121919
|
+
},
|
|
121920
|
+
"tagName": "sbb-sidebar",
|
|
121921
|
+
"customElement": true,
|
|
121922
|
+
"events": [
|
|
121923
|
+
{
|
|
121924
|
+
"name": "beforeopen",
|
|
121908
121925
|
"type": {
|
|
121909
|
-
"text": "
|
|
121926
|
+
"text": "Event"
|
|
121910
121927
|
},
|
|
121911
|
-
"
|
|
121912
|
-
"description": "Value of the form element.",
|
|
121913
|
-
"fieldName": "value",
|
|
121928
|
+
"description": "Emits whenever the component starts the opening transition. Can be canceled.",
|
|
121914
121929
|
"inheritedFrom": {
|
|
121915
|
-
"name": "
|
|
121916
|
-
"module": "core/base-elements/
|
|
121930
|
+
"name": "SbbOpenCloseBaseElement",
|
|
121931
|
+
"module": "core/base-elements/open-close-base-element.js"
|
|
121917
121932
|
}
|
|
121918
121933
|
},
|
|
121919
121934
|
{
|
|
121920
|
-
"name": "
|
|
121921
|
-
"description": "The type attribute to use for the button.",
|
|
121922
|
-
"default": "'button'",
|
|
121935
|
+
"name": "open",
|
|
121923
121936
|
"type": {
|
|
121924
|
-
"text": "
|
|
121937
|
+
"text": "Event"
|
|
121925
121938
|
},
|
|
121926
|
-
"
|
|
121939
|
+
"description": "Emits whenever the component is opened.",
|
|
121927
121940
|
"inheritedFrom": {
|
|
121928
|
-
"name": "
|
|
121929
|
-
"module": "core/base-elements/
|
|
121941
|
+
"name": "SbbOpenCloseBaseElement",
|
|
121942
|
+
"module": "core/base-elements/open-close-base-element.js"
|
|
121930
121943
|
}
|
|
121931
121944
|
},
|
|
121932
121945
|
{
|
|
121933
|
-
"name": "
|
|
121934
|
-
"description": "The `<form>` element to associate the button with.",
|
|
121946
|
+
"name": "beforeclose",
|
|
121935
121947
|
"type": {
|
|
121936
|
-
"text": "
|
|
121948
|
+
"text": "Event"
|
|
121937
121949
|
},
|
|
121938
|
-
"
|
|
121950
|
+
"description": "Emits whenever the component begins the closing transition. Can be canceled.",
|
|
121939
121951
|
"inheritedFrom": {
|
|
121940
|
-
"name": "
|
|
121941
|
-
"module": "core/base-elements/
|
|
121952
|
+
"name": "SbbOpenCloseBaseElement",
|
|
121953
|
+
"module": "core/base-elements/open-close-base-element.js"
|
|
121942
121954
|
}
|
|
121943
121955
|
},
|
|
121944
121956
|
{
|
|
121945
|
-
"name": "
|
|
121946
|
-
"description": "Name of the form element. Will be read from name attribute.",
|
|
121957
|
+
"name": "close",
|
|
121947
121958
|
"type": {
|
|
121948
|
-
"text": "
|
|
121959
|
+
"text": "Event"
|
|
121949
121960
|
},
|
|
121950
|
-
"
|
|
121951
|
-
"inheritedFrom": {
|
|
121952
|
-
"name": "SbbFormAssociatedMixin",
|
|
121953
|
-
"module": "core/mixins/form-associated-mixin.js"
|
|
121954
|
-
}
|
|
121955
|
-
}
|
|
121956
|
-
],
|
|
121957
|
-
"cssProperties": [
|
|
121958
|
-
{
|
|
121959
|
-
"description": "The delay before the loading animation starts, when setting the button into loading state.",
|
|
121960
|
-
"name": "--sbb-button-loading-delay",
|
|
121961
|
-
"default": "300ms",
|
|
121961
|
+
"description": "Emits whenever the component is closed.",
|
|
121962
121962
|
"inheritedFrom": {
|
|
121963
|
-
"name": "
|
|
121964
|
-
"module": "
|
|
121963
|
+
"name": "SbbOpenCloseBaseElement",
|
|
121964
|
+
"module": "core/base-elements/open-close-base-element.js"
|
|
121965
121965
|
}
|
|
121966
121966
|
}
|
|
121967
121967
|
]
|
|
@@ -121970,10 +121970,10 @@
|
|
|
121970
121970
|
"exports": [
|
|
121971
121971
|
{
|
|
121972
121972
|
"kind": "js",
|
|
121973
|
-
"name": "
|
|
121973
|
+
"name": "SbbSidebarElement",
|
|
121974
121974
|
"declaration": {
|
|
121975
|
-
"name": "
|
|
121976
|
-
"module": "sidebar/sidebar
|
|
121975
|
+
"name": "SbbSidebarElement",
|
|
121976
|
+
"module": "sidebar/sidebar/sidebar.component.js"
|
|
121977
121977
|
}
|
|
121978
121978
|
}
|
|
121979
121979
|
]
|