@sbb-esta/lyne-elements-dev 4.9.0-dev.1775549122 → 4.10.0-dev.1775560003

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/custom-elements.json +1489 -1489
  2. package/package.json +2 -2
@@ -81093,12 +81093,12 @@
81093
81093
  },
81094
81094
  {
81095
81095
  "kind": "javascript-module",
81096
- "path": "datepicker/datepicker-next-day/datepicker-next-day.component.js",
81096
+ "path": "datepicker/datepicker-previous-day/datepicker-previous-day.component.js",
81097
81097
  "declarations": [
81098
81098
  {
81099
81099
  "kind": "class",
81100
- "description": "Combined with a `sbb-datepicker`, it can be used to move the date ahead.",
81101
- "name": "SbbDatepickerNextDayElement",
81100
+ "description": "Combined with a `sbb-datepicker`, it can be used to move the date back.",
81101
+ "name": "SbbDatepickerPreviousDayElement",
81102
81102
  "members": [
81103
81103
  {
81104
81104
  "kind": "field",
@@ -81113,7 +81113,7 @@
81113
81113
  "name": "SbbElement",
81114
81114
  "module": "core/base-elements/element.js"
81115
81115
  },
81116
- "default": "'sbb-datepicker-next-day'"
81116
+ "default": "'sbb-datepicker-previous-day'"
81117
81117
  },
81118
81118
  {
81119
81119
  "kind": "field",
@@ -81126,7 +81126,7 @@
81126
81126
  "name": "SbbDatepickerButtonBase",
81127
81127
  "module": "datepicker/common/datepicker-button.js"
81128
81128
  },
81129
- "default": "'chevron-small-right-small'"
81129
+ "default": "'chevron-small-left-small'"
81130
81130
  },
81131
81131
  {
81132
81132
  "kind": "field",
@@ -81135,7 +81135,7 @@
81135
81135
  "text": "Record<string, string>"
81136
81136
  },
81137
81137
  "privacy": "protected",
81138
- "default": "i18nNextDay",
81138
+ "default": "i18nPreviousDay",
81139
81139
  "inheritedFrom": {
81140
81140
  "name": "SbbDatepickerButton",
81141
81141
  "module": "datepicker/common/datepicker-button.js"
@@ -81148,7 +81148,7 @@
81148
81148
  "text": "(_currentDate: string) => Record<string, string>"
81149
81149
  },
81150
81150
  "privacy": "protected",
81151
- "default": "i18nSelectNextDay",
81151
+ "default": "i18nSelectPreviousDay",
81152
81152
  "inheritedFrom": {
81153
81153
  "name": "SbbDatepickerButton",
81154
81154
  "module": "datepicker/common/datepicker-button.js"
@@ -81178,7 +81178,7 @@
81178
81178
  },
81179
81179
  {
81180
81180
  "kind": "method",
81181
- "name": "_isAfterMaxDate",
81181
+ "name": "_isBeforeMinDate",
81182
81182
  "privacy": "private",
81183
81183
  "return": {
81184
81184
  "type": {
@@ -82038,7 +82038,7 @@
82038
82038
  "name": "SbbDatepickerButton",
82039
82039
  "module": "datepicker/common/datepicker-button.js"
82040
82040
  },
82041
- "tagName": "sbb-datepicker-next-day",
82041
+ "tagName": "sbb-datepicker-previous-day",
82042
82042
  "customElement": true,
82043
82043
  "classGenerics": "T = Date",
82044
82044
  "attributes": [
@@ -82124,22 +82124,22 @@
82124
82124
  "exports": [
82125
82125
  {
82126
82126
  "kind": "js",
82127
- "name": "SbbDatepickerNextDayElement",
82127
+ "name": "SbbDatepickerPreviousDayElement",
82128
82128
  "declaration": {
82129
- "name": "SbbDatepickerNextDayElement",
82130
- "module": "datepicker/datepicker-next-day/datepicker-next-day.component.js"
82129
+ "name": "SbbDatepickerPreviousDayElement",
82130
+ "module": "datepicker/datepicker-previous-day/datepicker-previous-day.component.js"
82131
82131
  }
82132
82132
  }
82133
82133
  ]
82134
82134
  },
82135
82135
  {
82136
82136
  "kind": "javascript-module",
82137
- "path": "datepicker/datepicker-previous-day/datepicker-previous-day.component.js",
82137
+ "path": "datepicker/datepicker-next-day/datepicker-next-day.component.js",
82138
82138
  "declarations": [
82139
82139
  {
82140
82140
  "kind": "class",
82141
- "description": "Combined with a `sbb-datepicker`, it can be used to move the date back.",
82142
- "name": "SbbDatepickerPreviousDayElement",
82141
+ "description": "Combined with a `sbb-datepicker`, it can be used to move the date ahead.",
82142
+ "name": "SbbDatepickerNextDayElement",
82143
82143
  "members": [
82144
82144
  {
82145
82145
  "kind": "field",
@@ -82154,7 +82154,7 @@
82154
82154
  "name": "SbbElement",
82155
82155
  "module": "core/base-elements/element.js"
82156
82156
  },
82157
- "default": "'sbb-datepicker-previous-day'"
82157
+ "default": "'sbb-datepicker-next-day'"
82158
82158
  },
82159
82159
  {
82160
82160
  "kind": "field",
@@ -82167,7 +82167,7 @@
82167
82167
  "name": "SbbDatepickerButtonBase",
82168
82168
  "module": "datepicker/common/datepicker-button.js"
82169
82169
  },
82170
- "default": "'chevron-small-left-small'"
82170
+ "default": "'chevron-small-right-small'"
82171
82171
  },
82172
82172
  {
82173
82173
  "kind": "field",
@@ -82176,7 +82176,7 @@
82176
82176
  "text": "Record<string, string>"
82177
82177
  },
82178
82178
  "privacy": "protected",
82179
- "default": "i18nPreviousDay",
82179
+ "default": "i18nNextDay",
82180
82180
  "inheritedFrom": {
82181
82181
  "name": "SbbDatepickerButton",
82182
82182
  "module": "datepicker/common/datepicker-button.js"
@@ -82189,7 +82189,7 @@
82189
82189
  "text": "(_currentDate: string) => Record<string, string>"
82190
82190
  },
82191
82191
  "privacy": "protected",
82192
- "default": "i18nSelectPreviousDay",
82192
+ "default": "i18nSelectNextDay",
82193
82193
  "inheritedFrom": {
82194
82194
  "name": "SbbDatepickerButton",
82195
82195
  "module": "datepicker/common/datepicker-button.js"
@@ -82219,7 +82219,7 @@
82219
82219
  },
82220
82220
  {
82221
82221
  "kind": "method",
82222
- "name": "_isBeforeMinDate",
82222
+ "name": "_isAfterMaxDate",
82223
82223
  "privacy": "private",
82224
82224
  "return": {
82225
82225
  "type": {
@@ -83079,7 +83079,7 @@
83079
83079
  "name": "SbbDatepickerButton",
83080
83080
  "module": "datepicker/common/datepicker-button.js"
83081
83081
  },
83082
- "tagName": "sbb-datepicker-previous-day",
83082
+ "tagName": "sbb-datepicker-next-day",
83083
83083
  "customElement": true,
83084
83084
  "classGenerics": "T = Date",
83085
83085
  "attributes": [
@@ -83165,10 +83165,10 @@
83165
83165
  "exports": [
83166
83166
  {
83167
83167
  "kind": "js",
83168
- "name": "SbbDatepickerPreviousDayElement",
83168
+ "name": "SbbDatepickerNextDayElement",
83169
83169
  "declaration": {
83170
- "name": "SbbDatepickerPreviousDayElement",
83171
- "module": "datepicker/datepicker-previous-day/datepicker-previous-day.component.js"
83170
+ "name": "SbbDatepickerNextDayElement",
83171
+ "module": "datepicker/datepicker-next-day/datepicker-next-day.component.js"
83172
83172
  }
83173
83173
  }
83174
83174
  ]
@@ -97447,192 +97447,6 @@
97447
97447
  }
97448
97448
  ]
97449
97449
  },
97450
- {
97451
- "kind": "javascript-module",
97452
- "path": "header/header-environment/header-environment.component.js",
97453
- "declarations": [
97454
- {
97455
- "kind": "class",
97456
- "description": "It displays a ribbon inside the header to indicate the current environment.",
97457
- "name": "SbbHeaderEnvironmentElement",
97458
- "cssProperties": [
97459
- {
97460
- "description": "Can be used change the ribbon color.",
97461
- "name": "--sbb-header-environment-background-color",
97462
- "default": "var(sbb-color-granite)"
97463
- },
97464
- {
97465
- "description": "Can be used change the text color.",
97466
- "name": "--sbb-header-environment-color",
97467
- "default": "var(sbb-color-white)"
97468
- }
97469
- ],
97470
- "slots": [
97471
- {
97472
- "description": "Use the unnamed slot to add the environment.",
97473
- "name": ""
97474
- }
97475
- ],
97476
- "members": [
97477
- {
97478
- "kind": "field",
97479
- "name": "elementName",
97480
- "type": {
97481
- "text": "string"
97482
- },
97483
- "privacy": "public",
97484
- "static": true,
97485
- "readonly": true,
97486
- "default": "'sbb-header-environment'",
97487
- "inheritedFrom": {
97488
- "name": "SbbElement",
97489
- "module": "core/base-elements/element.js"
97490
- }
97491
- },
97492
- {
97493
- "kind": "field",
97494
- "name": "_env",
97495
- "type": {
97496
- "text": "string | null"
97497
- },
97498
- "privacy": "private",
97499
- "default": "null"
97500
- },
97501
- {
97502
- "kind": "method",
97503
- "name": "_slottedTextChange",
97504
- "privacy": "private",
97505
- "return": {
97506
- "type": {
97507
- "text": "void"
97508
- }
97509
- }
97510
- },
97511
- {
97512
- "kind": "field",
97513
- "name": "_hydrationRequired",
97514
- "type": {
97515
- "text": "boolean"
97516
- },
97517
- "privacy": "private",
97518
- "default": "!!this.shadowRoot",
97519
- "inheritedFrom": {
97520
- "name": "SbbElement",
97521
- "module": "core/base-elements/element.js"
97522
- }
97523
- },
97524
- {
97525
- "kind": "field",
97526
- "name": "_hydrationComplete",
97527
- "privacy": "private",
97528
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
97529
- "inheritedFrom": {
97530
- "name": "SbbElement",
97531
- "module": "core/base-elements/element.js"
97532
- }
97533
- },
97534
- {
97535
- "kind": "field",
97536
- "name": "_resolveHydration",
97537
- "type": {
97538
- "text": "(hydrationRequired: boolean) => void"
97539
- },
97540
- "privacy": "private",
97541
- "inheritedFrom": {
97542
- "name": "SbbElement",
97543
- "module": "core/base-elements/element.js"
97544
- }
97545
- },
97546
- {
97547
- "kind": "field",
97548
- "name": "hydrationRequired",
97549
- "type": {
97550
- "text": "boolean"
97551
- },
97552
- "privacy": "protected",
97553
- "description": "Returns whether hydration is required and not completed.",
97554
- "readonly": true,
97555
- "inheritedFrom": {
97556
- "name": "SbbElement",
97557
- "module": "core/base-elements/element.js"
97558
- },
97559
- "default": "!!this.shadowRoot"
97560
- },
97561
- {
97562
- "kind": "method",
97563
- "name": "toggleState",
97564
- "privacy": "protected",
97565
- "return": {
97566
- "type": {
97567
- "text": "void"
97568
- }
97569
- },
97570
- "parameters": [
97571
- {
97572
- "name": "value",
97573
- "type": {
97574
- "text": "string"
97575
- }
97576
- },
97577
- {
97578
- "name": "force",
97579
- "optional": true,
97580
- "type": {
97581
- "text": "boolean"
97582
- }
97583
- }
97584
- ],
97585
- "inheritedFrom": {
97586
- "name": "SbbElement",
97587
- "module": "core/base-elements/element.js"
97588
- }
97589
- },
97590
- {
97591
- "kind": "field",
97592
- "name": "['_$sbbElement$']",
97593
- "type": {
97594
- "text": "boolean"
97595
- },
97596
- "privacy": "public",
97597
- "static": true,
97598
- "default": "true",
97599
- "inheritedFrom": {
97600
- "name": "SbbElement",
97601
- "module": "core/base-elements/element.js"
97602
- }
97603
- },
97604
- {
97605
- "kind": "field",
97606
- "name": "_controllers",
97607
- "type": {
97608
- "text": "Set<SbbReactiveController> | undefined"
97609
- },
97610
- "privacy": "private",
97611
- "inheritedFrom": {
97612
- "name": "SbbElement",
97613
- "module": "core/base-elements/element.js"
97614
- }
97615
- }
97616
- ],
97617
- "superclass": {
97618
- "name": "SbbElement",
97619
- "module": "core/base-elements.js"
97620
- },
97621
- "tagName": "sbb-header-environment",
97622
- "customElement": true
97623
- }
97624
- ],
97625
- "exports": [
97626
- {
97627
- "kind": "js",
97628
- "name": "SbbHeaderEnvironmentElement",
97629
- "declaration": {
97630
- "name": "SbbHeaderEnvironmentElement",
97631
- "module": "header/header-environment/header-environment.component.js"
97632
- }
97633
- }
97634
- ]
97635
- },
97636
97450
  {
97637
97451
  "kind": "javascript-module",
97638
97452
  "path": "header/header-link/header-link.component.js",
@@ -98206,15 +98020,27 @@
98206
98020
  },
98207
98021
  {
98208
98022
  "kind": "javascript-module",
98209
- "path": "icon-sidebar/icon-sidebar/icon-sidebar.component.js",
98023
+ "path": "header/header-environment/header-environment.component.js",
98210
98024
  "declarations": [
98211
98025
  {
98212
98026
  "kind": "class",
98213
- "description": "Icon sidebar, can be placed inside a `sbb-icon-sidebar-container` element.",
98214
- "name": "SbbIconSidebarElement",
98027
+ "description": "It displays a ribbon inside the header to indicate the current environment.",
98028
+ "name": "SbbHeaderEnvironmentElement",
98029
+ "cssProperties": [
98030
+ {
98031
+ "description": "Can be used change the ribbon color.",
98032
+ "name": "--sbb-header-environment-background-color",
98033
+ "default": "var(sbb-color-granite)"
98034
+ },
98035
+ {
98036
+ "description": "Can be used change the text color.",
98037
+ "name": "--sbb-header-environment-color",
98038
+ "default": "var(sbb-color-white)"
98039
+ }
98040
+ ],
98215
98041
  "slots": [
98216
98042
  {
98217
- "description": "Use the unnamed slot to slot any content into the icon-sidebar.",
98043
+ "description": "Use the unnamed slot to add the environment.",
98218
98044
  "name": ""
98219
98045
  }
98220
98046
  ],
@@ -98228,7 +98054,7 @@
98228
98054
  "privacy": "public",
98229
98055
  "static": true,
98230
98056
  "readonly": true,
98231
- "default": "'sbb-icon-sidebar'",
98057
+ "default": "'sbb-header-environment'",
98232
98058
  "inheritedFrom": {
98233
98059
  "name": "SbbElement",
98234
98060
  "module": "core/base-elements/element.js"
@@ -98236,36 +98062,210 @@
98236
98062
  },
98237
98063
  {
98238
98064
  "kind": "field",
98239
- "name": "role",
98240
- "type": {
98241
- "text": "string"
98242
- },
98243
- "privacy": "public",
98244
- "static": true,
98245
- "readonly": true,
98246
- "default": "'navigation'"
98247
- },
98248
- {
98249
- "kind": "field",
98250
- "name": "color",
98065
+ "name": "_env",
98251
98066
  "type": {
98252
- "text": "'white' | 'milk'"
98067
+ "text": "string | null"
98253
98068
  },
98254
- "privacy": "public",
98255
- "default": "'white'",
98256
- "description": "Background color of the icon sidebar. Either `white` or `milk`. *",
98257
- "attribute": "color",
98258
- "reflects": true
98069
+ "privacy": "private",
98070
+ "default": "null"
98259
98071
  },
98260
98072
  {
98261
- "kind": "field",
98262
- "name": "container",
98263
- "type": {
98264
- "text": "SbbIconSidebarContainerElement | null"
98265
- },
98266
- "privacy": "public",
98267
- "description": "Returns the SbbIconSidebarContainerElement where this icon-sidebar is contained.",
98268
- "readonly": true
98073
+ "kind": "method",
98074
+ "name": "_slottedTextChange",
98075
+ "privacy": "private",
98076
+ "return": {
98077
+ "type": {
98078
+ "text": "void"
98079
+ }
98080
+ }
98081
+ },
98082
+ {
98083
+ "kind": "field",
98084
+ "name": "_hydrationRequired",
98085
+ "type": {
98086
+ "text": "boolean"
98087
+ },
98088
+ "privacy": "private",
98089
+ "default": "!!this.shadowRoot",
98090
+ "inheritedFrom": {
98091
+ "name": "SbbElement",
98092
+ "module": "core/base-elements/element.js"
98093
+ }
98094
+ },
98095
+ {
98096
+ "kind": "field",
98097
+ "name": "_hydrationComplete",
98098
+ "privacy": "private",
98099
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
98100
+ "inheritedFrom": {
98101
+ "name": "SbbElement",
98102
+ "module": "core/base-elements/element.js"
98103
+ }
98104
+ },
98105
+ {
98106
+ "kind": "field",
98107
+ "name": "_resolveHydration",
98108
+ "type": {
98109
+ "text": "(hydrationRequired: boolean) => void"
98110
+ },
98111
+ "privacy": "private",
98112
+ "inheritedFrom": {
98113
+ "name": "SbbElement",
98114
+ "module": "core/base-elements/element.js"
98115
+ }
98116
+ },
98117
+ {
98118
+ "kind": "field",
98119
+ "name": "hydrationRequired",
98120
+ "type": {
98121
+ "text": "boolean"
98122
+ },
98123
+ "privacy": "protected",
98124
+ "description": "Returns whether hydration is required and not completed.",
98125
+ "readonly": true,
98126
+ "inheritedFrom": {
98127
+ "name": "SbbElement",
98128
+ "module": "core/base-elements/element.js"
98129
+ },
98130
+ "default": "!!this.shadowRoot"
98131
+ },
98132
+ {
98133
+ "kind": "method",
98134
+ "name": "toggleState",
98135
+ "privacy": "protected",
98136
+ "return": {
98137
+ "type": {
98138
+ "text": "void"
98139
+ }
98140
+ },
98141
+ "parameters": [
98142
+ {
98143
+ "name": "value",
98144
+ "type": {
98145
+ "text": "string"
98146
+ }
98147
+ },
98148
+ {
98149
+ "name": "force",
98150
+ "optional": true,
98151
+ "type": {
98152
+ "text": "boolean"
98153
+ }
98154
+ }
98155
+ ],
98156
+ "inheritedFrom": {
98157
+ "name": "SbbElement",
98158
+ "module": "core/base-elements/element.js"
98159
+ }
98160
+ },
98161
+ {
98162
+ "kind": "field",
98163
+ "name": "['_$sbbElement$']",
98164
+ "type": {
98165
+ "text": "boolean"
98166
+ },
98167
+ "privacy": "public",
98168
+ "static": true,
98169
+ "default": "true",
98170
+ "inheritedFrom": {
98171
+ "name": "SbbElement",
98172
+ "module": "core/base-elements/element.js"
98173
+ }
98174
+ },
98175
+ {
98176
+ "kind": "field",
98177
+ "name": "_controllers",
98178
+ "type": {
98179
+ "text": "Set<SbbReactiveController> | undefined"
98180
+ },
98181
+ "privacy": "private",
98182
+ "inheritedFrom": {
98183
+ "name": "SbbElement",
98184
+ "module": "core/base-elements/element.js"
98185
+ }
98186
+ }
98187
+ ],
98188
+ "superclass": {
98189
+ "name": "SbbElement",
98190
+ "module": "core/base-elements.js"
98191
+ },
98192
+ "tagName": "sbb-header-environment",
98193
+ "customElement": true
98194
+ }
98195
+ ],
98196
+ "exports": [
98197
+ {
98198
+ "kind": "js",
98199
+ "name": "SbbHeaderEnvironmentElement",
98200
+ "declaration": {
98201
+ "name": "SbbHeaderEnvironmentElement",
98202
+ "module": "header/header-environment/header-environment.component.js"
98203
+ }
98204
+ }
98205
+ ]
98206
+ },
98207
+ {
98208
+ "kind": "javascript-module",
98209
+ "path": "icon-sidebar/icon-sidebar/icon-sidebar.component.js",
98210
+ "declarations": [
98211
+ {
98212
+ "kind": "class",
98213
+ "description": "Icon sidebar, can be placed inside a `sbb-icon-sidebar-container` element.",
98214
+ "name": "SbbIconSidebarElement",
98215
+ "slots": [
98216
+ {
98217
+ "description": "Use the unnamed slot to slot any content into the icon-sidebar.",
98218
+ "name": ""
98219
+ }
98220
+ ],
98221
+ "members": [
98222
+ {
98223
+ "kind": "field",
98224
+ "name": "elementName",
98225
+ "type": {
98226
+ "text": "string"
98227
+ },
98228
+ "privacy": "public",
98229
+ "static": true,
98230
+ "readonly": true,
98231
+ "default": "'sbb-icon-sidebar'",
98232
+ "inheritedFrom": {
98233
+ "name": "SbbElement",
98234
+ "module": "core/base-elements/element.js"
98235
+ }
98236
+ },
98237
+ {
98238
+ "kind": "field",
98239
+ "name": "role",
98240
+ "type": {
98241
+ "text": "string"
98242
+ },
98243
+ "privacy": "public",
98244
+ "static": true,
98245
+ "readonly": true,
98246
+ "default": "'navigation'"
98247
+ },
98248
+ {
98249
+ "kind": "field",
98250
+ "name": "color",
98251
+ "type": {
98252
+ "text": "'white' | 'milk'"
98253
+ },
98254
+ "privacy": "public",
98255
+ "default": "'white'",
98256
+ "description": "Background color of the icon sidebar. Either `white` or `milk`. *",
98257
+ "attribute": "color",
98258
+ "reflects": true
98259
+ },
98260
+ {
98261
+ "kind": "field",
98262
+ "name": "container",
98263
+ "type": {
98264
+ "text": "SbbIconSidebarContainerElement | null"
98265
+ },
98266
+ "privacy": "public",
98267
+ "description": "Returns the SbbIconSidebarContainerElement where this icon-sidebar is contained.",
98268
+ "readonly": true
98269
98269
  },
98270
98270
  {
98271
98271
  "kind": "field",
@@ -120224,28 +120224,20 @@
120224
120224
  },
120225
120225
  {
120226
120226
  "kind": "javascript-module",
120227
- "path": "sidebar/sidebar-close-button/sidebar-close-button.component.js",
120227
+ "path": "sidebar/sidebar/sidebar.component.js",
120228
120228
  "declarations": [
120229
120229
  {
120230
120230
  "kind": "class",
120231
- "description": "Sidebar close button, intended to be placed inside sbb-sidebar.",
120232
- "name": "SbbSidebarCloseButtonElement",
120231
+ "description": "This component corresponds to a sidebar that can be opened on the sidebar container.",
120232
+ "name": "SbbSidebarElement",
120233
120233
  "slots": [
120234
120234
  {
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
- }
120235
+ "description": "Use the unnamed slot to slot any content into the sidebar.",
120236
+ "name": ""
120241
120237
  },
120242
120238
  {
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
- }
120239
+ "description": "Use the title slot to add an <sbb-title>.",
120240
+ "name": "title"
120249
120241
  }
120250
120242
  ],
120251
120243
  "members": [
@@ -120262,442 +120254,248 @@
120262
120254
  "name": "SbbElement",
120263
120255
  "module": "core/base-elements/element.js"
120264
120256
  },
120265
- "default": "'sbb-sidebar-close-button'"
120257
+ "default": "'sbb-sidebar'"
120266
120258
  },
120267
120259
  {
120268
120260
  "kind": "field",
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
- }
120261
+ "name": "color",
120262
+ "type": {
120263
+ "text": "'white' | 'milk'"
120281
120264
  },
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
- }
120265
+ "privacy": "public",
120266
+ "default": "'white'",
120267
+ "description": "Background color of the sidebar. Either `white` or `milk`.",
120268
+ "attribute": "color",
120269
+ "reflects": true
120287
120270
  },
120288
120271
  {
120289
- "kind": "method",
120290
- "name": "renderIconName",
120291
- "privacy": "protected",
120292
- "return": {
120293
- "type": {
120294
- "text": "string"
120295
- }
120272
+ "kind": "field",
120273
+ "name": "mode",
120274
+ "type": {
120275
+ "text": "'side' | 'over'"
120296
120276
  },
120297
- "inheritedFrom": {
120298
- "name": "SbbIconNameMixin",
120299
- "module": "icon/icon-name-mixin.js"
120300
- }
120277
+ "privacy": "public",
120278
+ "default": "'side'",
120279
+ "description": "Mode of the sidebar; one of 'side' or 'over'.",
120280
+ "attribute": "mode",
120281
+ "reflects": true
120301
120282
  },
120302
120283
  {
120303
120284
  "kind": "field",
120304
- "name": "size",
120285
+ "name": "position",
120305
120286
  "type": {
120306
- "text": "SbbButtonSize"
120287
+ "text": "'start' | 'end'"
120307
120288
  },
120308
120289
  "privacy": "public",
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
- }
120290
+ "default": "'start'",
120291
+ "description": "The side that the sidebar is attached to.",
120292
+ "attribute": "position",
120293
+ "reflects": true
120317
120294
  },
120318
120295
  {
120319
120296
  "kind": "field",
120320
- "name": "loading",
120297
+ "name": "opened",
120321
120298
  "type": {
120322
120299
  "text": "boolean"
120323
120300
  },
120324
120301
  "privacy": "public",
120325
120302
  "default": "false",
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
- }
120303
+ "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
120304
+ "attribute": "opened",
120305
+ "reflects": true
120333
120306
  },
120334
120307
  {
120335
120308
  "kind": "field",
120336
- "name": "negative",
120309
+ "name": "focusOnOpen",
120337
120310
  "type": {
120338
120311
  "text": "boolean"
120339
120312
  },
120340
120313
  "privacy": "public",
120341
120314
  "default": "false",
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
- }
120315
+ "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.",
120316
+ "attribute": "focus-on-open"
120349
120317
  },
120350
120318
  {
120351
120319
  "kind": "field",
120352
- "name": "iconName",
120320
+ "name": "container",
120353
120321
  "type": {
120354
- "text": "string"
120322
+ "text": "SbbSidebarContainerElement | null"
120355
120323
  },
120356
120324
  "privacy": "public",
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
- }
120325
+ "description": "Returns the SbbSidebarContainerElement where this sidebar is contained.",
120326
+ "readonly": true,
120327
+ "default": "null"
120364
120328
  },
120365
120329
  {
120366
- "kind": "method",
120367
- "name": "renderIconSlot",
120368
- "privacy": "protected",
120369
- "return": {
120370
- "type": {
120371
- "text": "TemplateResult"
120372
- }
120330
+ "kind": "field",
120331
+ "name": "_container",
120332
+ "type": {
120333
+ "text": "SbbSidebarContainerElement | null"
120373
120334
  },
120374
- "parameters": [
120375
- {
120376
- "name": "classname",
120377
- "optional": true,
120378
- "type": {
120379
- "text": "string"
120380
- }
120381
- }
120382
- ],
120383
- "inheritedFrom": {
120384
- "name": "SbbIconNameMixin",
120385
- "module": "icon/icon-name-mixin.js"
120386
- }
120387
- },
120388
- {
120389
- "kind": "method",
120390
- "name": "_renderIconName",
120391
120335
  "privacy": "private",
120392
- "return": {
120393
- "type": {
120394
- "text": "string"
120395
- }
120396
- },
120397
- "inheritedFrom": {
120398
- "name": "SbbIconNameMixin",
120399
- "module": "icon/icon-name-mixin.js"
120400
- }
120336
+ "default": "null"
120401
120337
  },
120402
120338
  {
120403
120339
  "kind": "field",
120404
- "name": "disabledInteractive",
120340
+ "name": "_lastFocusedElement",
120405
120341
  "type": {
120406
- "text": "boolean"
120342
+ "text": "HTMLElement | null"
120407
120343
  },
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"
120416
- }
120344
+ "privacy": "private",
120345
+ "default": "null"
120417
120346
  },
120418
120347
  {
120419
120348
  "kind": "field",
120420
- "name": "disabled",
120421
- "privacy": "public",
120422
- "description": "Whether the component is disabled.",
120423
- "default": "false",
120424
- "type": {
120425
- "text": "boolean"
120426
- },
120427
- "attribute": "disabled",
120428
- "reflects": true,
120429
- "inheritedFrom": {
120430
- "name": "SbbDisabledMixin",
120431
- "module": "core/mixins/disabled-mixin.js"
120432
- }
120349
+ "name": "_focusTrapController",
120350
+ "privacy": "private",
120351
+ "default": "new SbbFocusTrapController(this)"
120433
120352
  },
120434
120353
  {
120435
120354
  "kind": "field",
120436
- "name": "#disabled",
120355
+ "name": "_escapableOverlayController",
120437
120356
  "privacy": "private",
120438
- "type": {
120439
- "text": "boolean"
120357
+ "default": "new SbbEscapableOverlayController(this)"
120358
+ },
120359
+ {
120360
+ "kind": "method",
120361
+ "name": "toggle",
120362
+ "privacy": "public",
120363
+ "return": {
120364
+ "type": {
120365
+ "text": "void"
120366
+ }
120440
120367
  },
120441
- "default": "false",
120442
- "inheritedFrom": {
120443
- "name": "SbbDisabledMixin",
120444
- "module": "core/mixins/disabled-mixin.js"
120445
- }
120368
+ "description": "Toggles the sidebar visibility."
120446
120369
  },
120447
120370
  {
120448
120371
  "kind": "method",
120449
- "name": "isDisabledExternally",
120450
- "privacy": "protected",
120372
+ "name": "open",
120373
+ "privacy": "public",
120451
120374
  "return": {
120452
120375
  "type": {
120453
- "text": "boolean"
120376
+ "text": "void"
120454
120377
  }
120455
120378
  },
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.",
120379
+ "description": "Opens the sidebar.",
120457
120380
  "inheritedFrom": {
120458
- "name": "SbbDisabledMixin",
120459
- "module": "core/mixins/disabled-mixin.js"
120381
+ "name": "SbbOpenCloseBaseElement",
120382
+ "module": "core/base-elements/open-close-base-element.js"
120460
120383
  }
120461
120384
  },
120462
120385
  {
120463
- "kind": "field",
120464
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
120465
- "type": {
120466
- "text": "array"
120467
- },
120386
+ "kind": "method",
120387
+ "name": "_isZeroAnimationDuration",
120468
120388
  "privacy": "private",
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"
120389
+ "return": {
120390
+ "type": {
120391
+ "text": "boolean"
120392
+ }
120474
120393
  }
120475
120394
  },
120476
120395
  {
120477
- "kind": "field",
120478
- "name": "value",
120479
- "type": {
120480
- "text": "string"
120481
- },
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"
120396
+ "kind": "method",
120397
+ "name": "_handleOpening",
120398
+ "privacy": "private",
120399
+ "return": {
120400
+ "type": {
120401
+ "text": "void"
120402
+ }
120403
+ }
120490
120404
  },
120491
120405
  {
120492
- "kind": "field",
120493
- "name": "type",
120406
+ "kind": "method",
120407
+ "name": "close",
120494
120408
  "privacy": "public",
120495
- "description": "The type attribute to use for the button.",
120496
- "default": "'button'",
120497
- "type": {
120498
- "text": "SbbButtonType"
120409
+ "return": {
120410
+ "type": {
120411
+ "text": "void"
120412
+ }
120499
120413
  },
120500
- "attribute": "type",
120414
+ "description": "Closes the sidebar.",
120501
120415
  "inheritedFrom": {
120502
- "name": "SbbButtonBaseElement",
120503
- "module": "core/base-elements/button-base-element.js"
120416
+ "name": "SbbOpenCloseBaseElement",
120417
+ "module": "core/base-elements/open-close-base-element.js"
120504
120418
  }
120505
120419
  },
120506
120420
  {
120507
- "kind": "field",
120508
- "name": "form",
120509
- "type": {
120510
- "text": "HTMLFormElement | null"
120511
- },
120512
- "privacy": "public",
120513
- "description": "The `<form>` element to associate the button with.",
120514
- "inheritedFrom": {
120515
- "name": "SbbButtonBaseElement",
120516
- "module": "core/base-elements/button-base-element.js"
120517
- },
120518
- "attribute": "form"
120519
- },
120520
- {
120521
- "kind": "field",
120522
- "name": "_formId",
120523
- "type": {
120524
- "text": "string"
120525
- },
120421
+ "kind": "method",
120422
+ "name": "_handleClosing",
120526
120423
  "privacy": "private",
120527
- "default": "''",
120528
- "inheritedFrom": {
120529
- "name": "SbbButtonBaseElement",
120530
- "module": "core/base-elements/button-base-element.js"
120424
+ "return": {
120425
+ "type": {
120426
+ "text": "void"
120427
+ }
120531
120428
  }
120532
120429
  },
120533
120430
  {
120534
- "kind": "field",
120535
- "name": "_handleButtonClick",
120431
+ "kind": "method",
120432
+ "name": "_takeFocus",
120536
120433
  "privacy": "private",
120537
- "inheritedFrom": {
120538
- "name": "SbbButtonBaseElement",
120539
- "module": "core/base-elements/button-base-element.js"
120434
+ "return": {
120435
+ "type": {
120436
+ "text": "void"
120437
+ }
120540
120438
  }
120541
120439
  },
120542
120440
  {
120543
120441
  "kind": "method",
120544
- "name": "_requestSubmit",
120545
- "privacy": "private",
120442
+ "name": "cedeFocus",
120443
+ "privacy": "protected",
120546
120444
  "return": {
120547
120445
  "type": {
120548
120446
  "text": "void"
120549
120447
  }
120550
- },
120551
- "parameters": [
120552
- {
120553
- "name": "form",
120554
- "type": {
120555
- "text": "HTMLFormElement"
120556
- }
120557
- }
120558
- ],
120559
- "inheritedFrom": {
120560
- "name": "SbbButtonBaseElement",
120561
- "module": "core/base-elements/button-base-element.js"
120562
- }
120563
- },
120564
- {
120565
- "kind": "field",
120566
- "name": "_formKeyDown",
120567
- "privacy": "private",
120568
- "inheritedFrom": {
120569
- "name": "SbbButtonBaseElement",
120570
- "module": "core/base-elements/button-base-element.js"
120571
- }
120572
- },
120573
- {
120574
- "kind": "field",
120575
- "name": "formAssociated",
120576
- "type": {
120577
- "text": "boolean"
120578
- },
120579
- "privacy": "public",
120580
- "static": true,
120581
- "default": "true",
120582
- "inheritedFrom": {
120583
- "name": "SbbFormAssociatedMixin",
120584
- "module": "core/mixins/form-associated-mixin.js"
120585
- }
120586
- },
120587
- {
120588
- "kind": "field",
120589
- "name": "name",
120590
- "privacy": "public",
120591
- "description": "Name of the form element. Will be read from name attribute.",
120592
- "type": {
120593
- "text": "string"
120594
- },
120595
- "attribute": "name",
120596
- "inheritedFrom": {
120597
- "name": "SbbFormAssociatedMixin",
120598
- "module": "core/mixins/form-associated-mixin.js"
120599
120448
  }
120600
120449
  },
120601
120450
  {
120602
- "kind": "field",
120603
- "name": "validity",
120604
- "type": {
120605
- "text": "ValidityState"
120606
- },
120607
- "privacy": "public",
120608
- "description": "Returns the ValidityState object for this element.",
120609
- "readonly": true,
120610
- "inheritedFrom": {
120611
- "name": "SbbFormAssociatedMixin",
120612
- "module": "core/mixins/form-associated-mixin.js"
120613
- }
120614
- },
120615
- {
120616
- "kind": "field",
120617
- "name": "validationMessage",
120618
- "type": {
120619
- "text": "string"
120620
- },
120621
- "privacy": "public",
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.",
120623
- "readonly": true,
120624
- "inheritedFrom": {
120625
- "name": "SbbFormAssociatedMixin",
120626
- "module": "core/mixins/form-associated-mixin.js"
120627
- }
120628
- },
120629
- {
120630
- "kind": "field",
120631
- "name": "willValidate",
120632
- "type": {
120633
- "text": "boolean"
120634
- },
120635
- "privacy": "public",
120636
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
120637
- "readonly": true,
120638
- "inheritedFrom": {
120639
- "name": "SbbFormAssociatedMixin",
120640
- "module": "core/mixins/form-associated-mixin.js"
120641
- }
120642
- },
120643
- {
120644
- "kind": "field",
120645
- "name": "_validityStates",
120451
+ "kind": "method",
120452
+ "name": "_updateSidebarWidth",
120646
120453
  "privacy": "private",
120647
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
120648
- "inheritedFrom": {
120649
- "name": "SbbFormAssociatedMixin",
120650
- "module": "core/mixins/form-associated-mixin.js"
120651
- }
120652
- },
120653
- {
120654
- "kind": "field",
120655
- "name": "formDisabled",
120656
- "type": {
120657
- "text": "boolean"
120454
+ "return": {
120455
+ "type": {
120456
+ "text": "void"
120457
+ }
120658
120458
  },
120659
- "privacy": "protected",
120660
- "default": "false",
120661
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
120662
- "inheritedFrom": {
120663
- "name": "SbbFormAssociatedMixin",
120664
- "module": "core/mixins/form-associated-mixin.js"
120665
- }
120459
+ "parameters": [
120460
+ {
120461
+ "name": "oldPosition",
120462
+ "optional": true,
120463
+ "type": {
120464
+ "text": "this['position']"
120465
+ }
120466
+ }
120467
+ ]
120666
120468
  },
120667
120469
  {
120668
120470
  "kind": "method",
120669
- "name": "checkValidity",
120670
- "privacy": "public",
120471
+ "name": "_buildCssWidthVar",
120472
+ "privacy": "private",
120671
120473
  "return": {
120672
120474
  "type": {
120673
- "text": "boolean"
120475
+ "text": "string"
120674
120476
  }
120675
120477
  },
120676
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
120677
- "inheritedFrom": {
120678
- "name": "SbbFormAssociatedMixin",
120679
- "module": "core/mixins/form-associated-mixin.js"
120680
- }
120478
+ "parameters": [
120479
+ {
120480
+ "name": "position",
120481
+ "default": "this.position"
120482
+ }
120483
+ ]
120681
120484
  },
120682
120485
  {
120683
120486
  "kind": "method",
120684
- "name": "reportValidity",
120685
- "privacy": "public",
120487
+ "name": "_isModeOver",
120488
+ "privacy": "private",
120686
120489
  "return": {
120687
120490
  "type": {
120688
120491
  "text": "boolean"
120689
120492
  }
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.",
120692
- "inheritedFrom": {
120693
- "name": "SbbFormAssociatedMixin",
120694
- "module": "core/mixins/form-associated-mixin.js"
120695
120493
  }
120696
120494
  },
120697
120495
  {
120698
120496
  "kind": "method",
120699
- "name": "setCustomValidity",
120700
- "privacy": "public",
120497
+ "name": "_onTransitionEnd",
120498
+ "privacy": "private",
120701
120499
  "return": {
120702
120500
  "type": {
120703
120501
  "text": "void"
@@ -120705,275 +120503,230 @@
120705
120503
  },
120706
120504
  "parameters": [
120707
120505
  {
120708
- "name": "message",
120506
+ "name": "event",
120709
120507
  "type": {
120710
- "text": "string"
120508
+ "text": "TransitionEvent"
120711
120509
  }
120712
120510
  }
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.",
120715
- "inheritedFrom": {
120716
- "name": "SbbFormAssociatedMixin",
120717
- "module": "core/mixins/form-associated-mixin.js"
120718
- }
120511
+ ]
120719
120512
  },
120720
120513
  {
120721
120514
  "kind": "method",
120722
- "name": "_hasDisabledAncestor",
120515
+ "name": "_detectScrolledState",
120723
120516
  "privacy": "private",
120724
120517
  "return": {
120725
120518
  "type": {
120726
- "text": "boolean"
120519
+ "text": "void"
120727
120520
  }
120728
- },
120729
- "inheritedFrom": {
120730
- "name": "SbbFormAssociatedMixin",
120731
- "module": "core/mixins/form-associated-mixin.js"
120732
120521
  }
120733
120522
  },
120734
120523
  {
120735
- "kind": "method",
120736
- "name": "updateFormValue",
120737
- "privacy": "protected",
120738
- "return": {
120739
- "type": {
120740
- "text": "void"
120741
- }
120524
+ "kind": "field",
120525
+ "name": "isAnimating",
120526
+ "type": {
120527
+ "text": "boolean"
120742
120528
  },
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",
120529
+ "privacy": "public",
120530
+ "default": "false",
120531
+ "description": "Whether the component is currently animating.",
120744
120532
  "inheritedFrom": {
120745
- "name": "SbbFormAssociatedMixin",
120746
- "module": "core/mixins/form-associated-mixin.js"
120533
+ "name": "SbbAnimationCompleteMixin",
120534
+ "module": "core/mixins/animation-complete-mixin.js"
120747
120535
  }
120748
120536
  },
120749
120537
  {
120750
- "kind": "method",
120751
- "name": "formState",
120752
- "privacy": "protected",
120753
- "return": {
120754
- "type": {
120755
- "text": "FormRestoreState"
120756
- }
120538
+ "kind": "field",
120539
+ "name": "animationComplete",
120540
+ "type": {
120541
+ "text": "Promise<void>"
120757
120542
  },
120543
+ "privacy": "public",
120544
+ "description": "Returns a promise which completes whenever an animation ends.\nWhen a new animation starts, a new Promise is returned.",
120545
+ "readonly": true,
120758
120546
  "inheritedFrom": {
120759
- "name": "SbbFormAssociatedMixin",
120760
- "module": "core/mixins/form-associated-mixin.js"
120547
+ "name": "SbbAnimationCompleteMixin",
120548
+ "module": "core/mixins/animation-complete-mixin.js"
120761
120549
  }
120762
120550
  },
120763
120551
  {
120764
- "kind": "method",
120765
- "name": "setValidityFlag",
120766
- "privacy": "protected",
120767
- "return": {
120768
- "type": {
120769
- "text": "void"
120770
- }
120552
+ "kind": "field",
120553
+ "name": "_animationPromise",
120554
+ "type": {
120555
+ "text": "Promise<void>"
120771
120556
  },
120772
- "parameters": [
120773
- {
120774
- "name": "flag",
120775
- "type": {
120776
- "text": "T"
120777
- }
120778
- },
120779
- {
120780
- "name": "message",
120781
- "type": {
120782
- "text": "string"
120783
- }
120784
- },
120785
- {
120786
- "name": "flagValue",
120787
- "optional": true,
120788
- "type": {
120789
- "text": "ValidityStateFlags[T]"
120790
- }
120791
- }
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).",
120557
+ "privacy": "private",
120794
120558
  "inheritedFrom": {
120795
- "name": "SbbFormAssociatedMixin",
120796
- "module": "core/mixins/form-associated-mixin.js"
120559
+ "name": "SbbAnimationCompleteMixin",
120560
+ "module": "core/mixins/animation-complete-mixin.js"
120797
120561
  }
120798
120562
  },
120799
120563
  {
120800
120564
  "kind": "method",
120801
- "name": "removeValidityFlag",
120565
+ "name": "startAnimation",
120802
120566
  "privacy": "protected",
120803
120567
  "return": {
120804
120568
  "type": {
120805
120569
  "text": "void"
120806
120570
  }
120807
120571
  },
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.",
120817
120572
  "inheritedFrom": {
120818
- "name": "SbbFormAssociatedMixin",
120819
- "module": "core/mixins/form-associated-mixin.js"
120573
+ "name": "SbbAnimationCompleteMixin",
120574
+ "module": "core/mixins/animation-complete-mixin.js"
120820
120575
  }
120821
120576
  },
120822
120577
  {
120823
120578
  "kind": "method",
120824
- "name": "validate",
120579
+ "name": "stopAnimation",
120825
120580
  "privacy": "protected",
120826
120581
  "return": {
120827
120582
  "type": {
120828
120583
  "text": "void"
120829
120584
  }
120830
120585
  },
120831
- "description": "To be called whenever the current element needs to be validated.",
120586
+ "description": "Overriding stopAnimation() breaks functionality.",
120832
120587
  "inheritedFrom": {
120833
- "name": "SbbFormAssociatedMixin",
120834
- "module": "core/mixins/form-associated-mixin.js"
120588
+ "name": "SbbAnimationCompleteMixin",
120589
+ "module": "core/mixins/animation-complete-mixin.js"
120835
120590
  }
120836
120591
  },
120837
120592
  {
120838
120593
  "kind": "method",
120839
- "name": "shouldValidate",
120840
- "privacy": "protected",
120594
+ "name": "_enqueueAnimation",
120595
+ "privacy": "private",
120841
120596
  "return": {
120842
120597
  "type": {
120843
- "text": "boolean"
120598
+ "text": "Promise<void>"
120844
120599
  }
120845
120600
  },
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
120601
  "inheritedFrom": {
120856
- "name": "SbbFormAssociatedMixin",
120857
- "module": "core/mixins/form-associated-mixin.js"
120602
+ "name": "SbbAnimationCompleteMixin",
120603
+ "module": "core/mixins/animation-complete-mixin.js"
120858
120604
  }
120859
120605
  },
120860
120606
  {
120861
- "kind": "method",
120862
- "name": "_setInternalValidity",
120863
- "privacy": "private",
120864
- "return": {
120865
- "type": {
120866
- "text": "void"
120867
- }
120607
+ "kind": "field",
120608
+ "name": "events",
120609
+ "privacy": "public",
120610
+ "static": true,
120611
+ "readonly": true,
120612
+ "default": "{ beforeopen: 'beforeopen', open: 'open', beforeclose: 'beforeclose', close: 'close', }",
120613
+ "type": {
120614
+ "text": "{\n beforeopen: 'beforeopen',\n open: 'open',\n beforeclose: 'beforeclose',\n close: 'close',\n }"
120868
120615
  },
120869
120616
  "inheritedFrom": {
120870
- "name": "SbbFormAssociatedMixin",
120871
- "module": "core/mixins/form-associated-mixin.js"
120617
+ "name": "SbbOpenCloseBaseElement",
120618
+ "module": "core/base-elements/open-close-base-element.js"
120872
120619
  }
120873
120620
  },
120874
120621
  {
120875
120622
  "kind": "field",
120876
- "name": "role",
120623
+ "name": "state",
120624
+ "privacy": "protected",
120625
+ "description": "The state of the component.",
120877
120626
  "type": {
120878
- "text": "ElementInternals['role']"
120627
+ "text": "SbbOpenedClosedState"
120879
120628
  },
120880
- "privacy": "public",
120881
- "static": true,
120882
- "readonly": true,
120883
- "default": "'button'",
120629
+ "default": "'closed'",
120884
120630
  "inheritedFrom": {
120885
- "name": "SbbButtonLikeBaseElement",
120886
- "module": "core/base-elements/button-base-element.js"
120631
+ "name": "SbbOpenCloseBaseElement",
120632
+ "module": "core/base-elements/open-close-base-element.js"
120887
120633
  }
120888
120634
  },
120889
120635
  {
120890
120636
  "kind": "field",
120891
- "name": "_preventScrollOnSpaceKeydown",
120637
+ "name": "_state",
120638
+ "type": {
120639
+ "text": "SbbOpenedClosedState"
120640
+ },
120892
120641
  "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
- ],
120900
120642
  "inheritedFrom": {
120901
- "name": "SbbButtonLikeBaseElement",
120902
- "module": "core/base-elements/button-base-element.js"
120643
+ "name": "SbbOpenCloseBaseElement",
120644
+ "module": "core/base-elements/open-close-base-element.js"
120903
120645
  }
120904
120646
  },
120905
120647
  {
120906
120648
  "kind": "field",
120907
- "name": "_removeActiveMarker",
120908
- "privacy": "private",
120649
+ "name": "isOpen",
120650
+ "type": {
120651
+ "text": "boolean"
120652
+ },
120653
+ "privacy": "public",
120654
+ "description": "Whether the element is open.",
120655
+ "readonly": true,
120909
120656
  "inheritedFrom": {
120910
- "name": "SbbButtonLikeBaseElement",
120911
- "module": "core/base-elements/button-base-element.js"
120657
+ "name": "SbbOpenCloseBaseElement",
120658
+ "module": "core/base-elements/open-close-base-element.js"
120912
120659
  }
120913
120660
  },
120914
120661
  {
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"
120662
+ "kind": "method",
120663
+ "name": "escapeStrategy",
120664
+ "privacy": "public",
120665
+ "return": {
120666
+ "type": {
120667
+ "text": "void"
120923
120668
  }
120924
- ],
120669
+ },
120670
+ "description": "The method which is called on escape key press. Defaults to calling close()",
120925
120671
  "inheritedFrom": {
120926
- "name": "SbbButtonLikeBaseElement",
120927
- "module": "core/base-elements/button-base-element.js"
120672
+ "name": "SbbOpenCloseBaseElement",
120673
+ "module": "core/base-elements/open-close-base-element.js"
120928
120674
  }
120929
120675
  },
120930
120676
  {
120931
- "kind": "field",
120932
- "name": "_dispatchClickEvent",
120933
- "privacy": "private",
120677
+ "kind": "method",
120678
+ "name": "dispatchBeforeOpenEvent",
120679
+ "privacy": "protected",
120680
+ "return": {
120681
+ "type": {
120682
+ "text": "boolean"
120683
+ }
120684
+ },
120934
120685
  "inheritedFrom": {
120935
- "name": "SbbButtonLikeBaseElement",
120936
- "module": "core/base-elements/button-base-element.js"
120686
+ "name": "SbbOpenCloseBaseElement",
120687
+ "module": "core/base-elements/open-close-base-element.js"
120937
120688
  }
120938
120689
  },
120939
120690
  {
120940
- "kind": "field",
120941
- "name": "maybeDisabled",
120942
- "type": {
120943
- "text": "boolean | undefined"
120944
- },
120691
+ "kind": "method",
120692
+ "name": "dispatchOpenEvent",
120945
120693
  "privacy": "protected",
120946
- "readonly": true,
120694
+ "return": {
120695
+ "type": {
120696
+ "text": "boolean"
120697
+ }
120698
+ },
120947
120699
  "inheritedFrom": {
120948
- "name": "SbbActionBaseElement",
120949
- "module": "core/base-elements/action-base-element.js"
120700
+ "name": "SbbOpenCloseBaseElement",
120701
+ "module": "core/base-elements/open-close-base-element.js"
120950
120702
  }
120951
120703
  },
120952
120704
  {
120953
- "kind": "field",
120954
- "name": "maybeDisabledInteractive",
120955
- "type": {
120956
- "text": "boolean | undefined"
120957
- },
120705
+ "kind": "method",
120706
+ "name": "dispatchBeforeCloseEvent",
120958
120707
  "privacy": "protected",
120959
- "readonly": true,
120708
+ "return": {
120709
+ "type": {
120710
+ "text": "boolean"
120711
+ }
120712
+ },
120960
120713
  "inheritedFrom": {
120961
- "name": "SbbActionBaseElement",
120962
- "module": "core/base-elements/action-base-element.js"
120714
+ "name": "SbbOpenCloseBaseElement",
120715
+ "module": "core/base-elements/open-close-base-element.js"
120963
120716
  }
120964
120717
  },
120965
120718
  {
120966
120719
  "kind": "method",
120967
- "name": "setupBaseEventHandlers",
120720
+ "name": "dispatchCloseEvent",
120968
120721
  "privacy": "protected",
120969
120722
  "return": {
120970
120723
  "type": {
120971
- "text": "void"
120724
+ "text": "boolean"
120972
120725
  }
120973
120726
  },
120974
120727
  "inheritedFrom": {
120975
- "name": "SbbActionBaseElement",
120976
- "module": "core/base-elements/action-base-element.js"
120728
+ "name": "SbbOpenCloseBaseElement",
120729
+ "module": "core/base-elements/open-close-base-element.js"
120977
120730
  }
120978
120731
  },
120979
120732
  {
@@ -121082,395 +120835,666 @@
121082
120835
  }
121083
120836
  }
121084
120837
  ],
120838
+ "attributes": [
120839
+ {
120840
+ "name": "color",
120841
+ "type": {
120842
+ "text": "'white' | 'milk'"
120843
+ },
120844
+ "default": "'white'",
120845
+ "description": "Background color of the sidebar. Either `white` or `milk`.",
120846
+ "fieldName": "color"
120847
+ },
120848
+ {
120849
+ "name": "mode",
120850
+ "type": {
120851
+ "text": "'side' | 'over'"
120852
+ },
120853
+ "default": "'side'",
120854
+ "description": "Mode of the sidebar; one of 'side' or 'over'.",
120855
+ "fieldName": "mode"
120856
+ },
120857
+ {
120858
+ "name": "position",
120859
+ "type": {
120860
+ "text": "'start' | 'end'"
120861
+ },
120862
+ "default": "'start'",
120863
+ "description": "The side that the sidebar is attached to.",
120864
+ "fieldName": "position"
120865
+ },
120866
+ {
120867
+ "name": "opened",
120868
+ "type": {
120869
+ "text": "boolean"
120870
+ },
120871
+ "default": "false",
120872
+ "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
120873
+ "fieldName": "opened"
120874
+ },
120875
+ {
120876
+ "name": "focus-on-open",
120877
+ "type": {
120878
+ "text": "boolean"
120879
+ },
120880
+ "default": "false",
120881
+ "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.",
120882
+ "fieldName": "focusOnOpen"
120883
+ }
120884
+ ],
120885
+ "mixins": [
120886
+ {
120887
+ "name": "SbbAnimationCompleteMixin",
120888
+ "module": "core/mixins.js"
120889
+ }
120890
+ ],
121085
120891
  "superclass": {
121086
- "name": "SbbSecondaryButtonElement",
121087
- "module": "button.pure.js"
120892
+ "name": "SbbOpenCloseBaseElement",
120893
+ "module": "core/base-elements.js"
121088
120894
  },
121089
- "tagName": "sbb-sidebar-close-button",
120895
+ "tagName": "sbb-sidebar",
121090
120896
  "customElement": true,
121091
- "attributes": [
120897
+ "events": [
120898
+ {
120899
+ "name": "beforeopen",
120900
+ "type": {
120901
+ "text": "Event"
120902
+ },
120903
+ "description": "Emits whenever the component starts the opening transition. Can be canceled.",
120904
+ "inheritedFrom": {
120905
+ "name": "SbbOpenCloseBaseElement",
120906
+ "module": "core/base-elements/open-close-base-element.js"
120907
+ }
120908
+ },
120909
+ {
120910
+ "name": "open",
120911
+ "type": {
120912
+ "text": "Event"
120913
+ },
120914
+ "description": "Emits whenever the component is opened.",
120915
+ "inheritedFrom": {
120916
+ "name": "SbbOpenCloseBaseElement",
120917
+ "module": "core/base-elements/open-close-base-element.js"
120918
+ }
120919
+ },
120920
+ {
120921
+ "name": "beforeclose",
120922
+ "type": {
120923
+ "text": "Event"
120924
+ },
120925
+ "description": "Emits whenever the component begins the closing transition. Can be canceled.",
120926
+ "inheritedFrom": {
120927
+ "name": "SbbOpenCloseBaseElement",
120928
+ "module": "core/base-elements/open-close-base-element.js"
120929
+ }
120930
+ },
120931
+ {
120932
+ "name": "close",
120933
+ "type": {
120934
+ "text": "Event"
120935
+ },
120936
+ "description": "Emits whenever the component is closed.",
120937
+ "inheritedFrom": {
120938
+ "name": "SbbOpenCloseBaseElement",
120939
+ "module": "core/base-elements/open-close-base-element.js"
120940
+ }
120941
+ }
120942
+ ]
120943
+ }
120944
+ ],
120945
+ "exports": [
120946
+ {
120947
+ "kind": "js",
120948
+ "name": "SbbSidebarElement",
120949
+ "declaration": {
120950
+ "name": "SbbSidebarElement",
120951
+ "module": "sidebar/sidebar/sidebar.component.js"
120952
+ }
120953
+ }
120954
+ ]
120955
+ },
120956
+ {
120957
+ "kind": "javascript-module",
120958
+ "path": "sidebar/sidebar-close-button/sidebar-close-button.component.js",
120959
+ "declarations": [
120960
+ {
120961
+ "kind": "class",
120962
+ "description": "Sidebar close button, intended to be placed inside sbb-sidebar.",
120963
+ "name": "SbbSidebarCloseButtonElement",
120964
+ "slots": [
120965
+ {
120966
+ "description": "Use the unnamed slot to add content to the sidebar-close-button. Not intended to be used in this context.",
120967
+ "name": "",
120968
+ "inheritedFrom": {
120969
+ "name": "SbbSecondaryButtonElement",
120970
+ "module": "button/secondary-button/secondary-button.component.js"
120971
+ }
120972
+ },
120973
+ {
120974
+ "description": "Slot used to display the icon, if one is set. Not intended to be used in this context.",
120975
+ "name": "icon",
120976
+ "inheritedFrom": {
120977
+ "name": "SbbSecondaryButtonElement",
120978
+ "module": "button/secondary-button/secondary-button.component.js"
120979
+ }
120980
+ }
120981
+ ],
120982
+ "members": [
120983
+ {
120984
+ "kind": "field",
120985
+ "name": "elementName",
120986
+ "type": {
120987
+ "text": "string"
120988
+ },
120989
+ "privacy": "public",
120990
+ "static": true,
120991
+ "readonly": true,
120992
+ "inheritedFrom": {
120993
+ "name": "SbbElement",
120994
+ "module": "core/base-elements/element.js"
120995
+ },
120996
+ "default": "'sbb-sidebar-close-button'"
120997
+ },
120998
+ {
120999
+ "kind": "field",
121000
+ "name": "_languageController",
121001
+ "privacy": "private",
121002
+ "default": "new SbbLanguageController(this)"
121003
+ },
121004
+ {
121005
+ "kind": "method",
121006
+ "name": "renderTemplate",
121007
+ "privacy": "protected",
121008
+ "return": {
121009
+ "type": {
121010
+ "text": "TemplateResult"
121011
+ }
121012
+ },
121013
+ "description": "Override this method to render the component template.",
121014
+ "inheritedFrom": {
121015
+ "name": "SbbActionBaseElement",
121016
+ "module": "core/base-elements/action-base-element.js"
121017
+ }
121018
+ },
121019
+ {
121020
+ "kind": "method",
121021
+ "name": "renderIconName",
121022
+ "privacy": "protected",
121023
+ "return": {
121024
+ "type": {
121025
+ "text": "string"
121026
+ }
121027
+ },
121028
+ "inheritedFrom": {
121029
+ "name": "SbbIconNameMixin",
121030
+ "module": "icon/icon-name-mixin.js"
121031
+ }
121032
+ },
121092
121033
  {
121034
+ "kind": "field",
121093
121035
  "name": "size",
121094
121036
  "type": {
121095
121037
  "text": "SbbButtonSize"
121096
121038
  },
121039
+ "privacy": "public",
121097
121040
  "description": "Size variant, either l, m or s.",
121098
- "default": "'l' / 's' (lean)",
121099
- "fieldName": "size",
121041
+ "default": "'s'",
121042
+ "attribute": "size",
121043
+ "reflects": true,
121100
121044
  "inheritedFrom": {
121101
121045
  "name": "SbbButtonCommonElementMixin",
121102
121046
  "module": "button/common/button-common.js"
121103
121047
  }
121104
121048
  },
121105
121049
  {
121050
+ "kind": "field",
121106
121051
  "name": "loading",
121107
121052
  "type": {
121108
121053
  "text": "boolean"
121109
121054
  },
121055
+ "privacy": "public",
121110
121056
  "default": "false",
121111
121057
  "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",
121058
+ "attribute": "loading",
121059
+ "reflects": true,
121113
121060
  "inheritedFrom": {
121114
121061
  "name": "SbbButtonCommonElementMixin",
121115
121062
  "module": "button/common/button-common.js"
121116
121063
  }
121117
121064
  },
121118
121065
  {
121066
+ "kind": "field",
121119
121067
  "name": "negative",
121120
121068
  "type": {
121121
121069
  "text": "boolean"
121122
121070
  },
121071
+ "privacy": "public",
121123
121072
  "default": "false",
121124
121073
  "description": "Negative coloring variant flag.",
121125
- "fieldName": "negative",
121074
+ "attribute": "negative",
121075
+ "reflects": true,
121126
121076
  "inheritedFrom": {
121127
121077
  "name": "SbbNegativeMixin",
121128
121078
  "module": "core/mixins/negative-mixin.js"
121129
121079
  }
121130
121080
  },
121131
121081
  {
121132
- "name": "icon-name",
121082
+ "kind": "field",
121083
+ "name": "iconName",
121133
121084
  "type": {
121134
121085
  "text": "string"
121135
121086
  },
121087
+ "privacy": "public",
121136
121088
  "default": "''",
121137
121089
  "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",
121090
+ "attribute": "icon-name",
121139
121091
  "inheritedFrom": {
121140
121092
  "name": "SbbIconNameMixin",
121141
121093
  "module": "icon/icon-name-mixin.js"
121142
121094
  }
121143
121095
  },
121144
121096
  {
121145
- "name": "disabled-interactive",
121097
+ "kind": "method",
121098
+ "name": "renderIconSlot",
121099
+ "privacy": "protected",
121100
+ "return": {
121101
+ "type": {
121102
+ "text": "TemplateResult"
121103
+ }
121104
+ },
121105
+ "parameters": [
121106
+ {
121107
+ "name": "classname",
121108
+ "optional": true,
121109
+ "type": {
121110
+ "text": "string"
121111
+ }
121112
+ }
121113
+ ],
121114
+ "inheritedFrom": {
121115
+ "name": "SbbIconNameMixin",
121116
+ "module": "icon/icon-name-mixin.js"
121117
+ }
121118
+ },
121119
+ {
121120
+ "kind": "method",
121121
+ "name": "_renderIconName",
121122
+ "privacy": "private",
121123
+ "return": {
121124
+ "type": {
121125
+ "text": "string"
121126
+ }
121127
+ },
121128
+ "inheritedFrom": {
121129
+ "name": "SbbIconNameMixin",
121130
+ "module": "icon/icon-name-mixin.js"
121131
+ }
121132
+ },
121133
+ {
121134
+ "kind": "field",
121135
+ "name": "disabledInteractive",
121146
121136
  "type": {
121147
121137
  "text": "boolean"
121148
121138
  },
121139
+ "privacy": "public",
121149
121140
  "default": "false",
121150
121141
  "description": "Whether the button should be aria-disabled but stay interactive.",
121151
- "fieldName": "disabledInteractive",
121142
+ "attribute": "disabled-interactive",
121143
+ "reflects": true,
121152
121144
  "inheritedFrom": {
121153
121145
  "name": "SbbDisabledInteractiveMixin",
121154
121146
  "module": "core/mixins/disabled-mixin.js"
121155
121147
  }
121156
121148
  },
121157
121149
  {
121150
+ "kind": "field",
121158
121151
  "name": "disabled",
121152
+ "privacy": "public",
121159
121153
  "description": "Whether the component is disabled.",
121160
121154
  "default": "false",
121161
121155
  "type": {
121162
121156
  "text": "boolean"
121163
121157
  },
121164
- "fieldName": "disabled",
121158
+ "attribute": "disabled",
121159
+ "reflects": true,
121165
121160
  "inheritedFrom": {
121166
121161
  "name": "SbbDisabledMixin",
121167
121162
  "module": "core/mixins/disabled-mixin.js"
121168
121163
  }
121169
121164
  },
121170
121165
  {
121171
- "name": "value",
121166
+ "kind": "field",
121167
+ "name": "#disabled",
121168
+ "privacy": "private",
121172
121169
  "type": {
121173
- "text": "string"
121170
+ "text": "boolean"
121174
121171
  },
121175
- "default": "''",
121176
- "description": "Value of the form element.",
121177
- "fieldName": "value",
121172
+ "default": "false",
121178
121173
  "inheritedFrom": {
121179
- "name": "SbbButtonBaseElement",
121180
- "module": "core/base-elements/button-base-element.js"
121174
+ "name": "SbbDisabledMixin",
121175
+ "module": "core/mixins/disabled-mixin.js"
121181
121176
  }
121182
121177
  },
121183
121178
  {
121184
- "name": "type",
121185
- "description": "The type attribute to use for the button.",
121186
- "default": "'button'",
121187
- "type": {
121188
- "text": "SbbButtonType"
121179
+ "kind": "method",
121180
+ "name": "isDisabledExternally",
121181
+ "privacy": "protected",
121182
+ "return": {
121183
+ "type": {
121184
+ "text": "boolean"
121185
+ }
121189
121186
  },
121190
- "fieldName": "type",
121187
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
121191
121188
  "inheritedFrom": {
121192
- "name": "SbbButtonBaseElement",
121193
- "module": "core/base-elements/button-base-element.js"
121189
+ "name": "SbbDisabledMixin",
121190
+ "module": "core/mixins/disabled-mixin.js"
121194
121191
  }
121195
121192
  },
121196
121193
  {
121197
- "name": "form",
121198
- "description": "The `<form>` element to associate the button with.",
121194
+ "kind": "field",
121195
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
121199
121196
  "type": {
121200
- "text": "HTMLFormElement | null"
121197
+ "text": "array"
121201
121198
  },
121202
- "fieldName": "form",
121199
+ "privacy": "private",
121200
+ "readonly": true,
121201
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
121203
121202
  "inheritedFrom": {
121204
121203
  "name": "SbbButtonBaseElement",
121205
121204
  "module": "core/base-elements/button-base-element.js"
121206
121205
  }
121207
121206
  },
121208
121207
  {
121209
- "name": "name",
121210
- "description": "Name of the form element. Will be read from name attribute.",
121208
+ "kind": "field",
121209
+ "name": "value",
121211
121210
  "type": {
121212
121211
  "text": "string"
121213
121212
  },
121214
- "fieldName": "name",
121213
+ "privacy": "public",
121215
121214
  "inheritedFrom": {
121216
- "name": "SbbFormAssociatedMixin",
121217
- "module": "core/mixins/form-associated-mixin.js"
121218
- }
121219
- }
121220
- ],
121221
- "cssProperties": [
121215
+ "name": "SbbButtonBaseElement",
121216
+ "module": "core/base-elements/button-base-element.js"
121217
+ },
121218
+ "default": "''",
121219
+ "description": "Value of the form element.",
121220
+ "attribute": "value"
121221
+ },
121222
121222
  {
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",
121223
+ "kind": "field",
121224
+ "name": "type",
121225
+ "privacy": "public",
121226
+ "description": "The type attribute to use for the button.",
121227
+ "default": "'button'",
121228
+ "type": {
121229
+ "text": "SbbButtonType"
121230
+ },
121231
+ "attribute": "type",
121226
121232
  "inheritedFrom": {
121227
- "name": "SbbSecondaryButtonElement",
121228
- "module": "button/secondary-button/secondary-button.component.js"
121233
+ "name": "SbbButtonBaseElement",
121234
+ "module": "core/base-elements/button-base-element.js"
121229
121235
  }
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": ""
121257
121236
  },
121258
- {
121259
- "description": "Use the title slot to add an <sbb-title>.",
121260
- "name": "title"
121261
- }
121262
- ],
121263
- "members": [
121264
121237
  {
121265
121238
  "kind": "field",
121266
- "name": "elementName",
121239
+ "name": "form",
121267
121240
  "type": {
121268
- "text": "string"
121241
+ "text": "HTMLFormElement | null"
121269
121242
  },
121270
121243
  "privacy": "public",
121271
- "static": true,
121272
- "readonly": true,
121244
+ "description": "The `<form>` element to associate the button with.",
121273
121245
  "inheritedFrom": {
121274
- "name": "SbbElement",
121275
- "module": "core/base-elements/element.js"
121246
+ "name": "SbbButtonBaseElement",
121247
+ "module": "core/base-elements/button-base-element.js"
121276
121248
  },
121277
- "default": "'sbb-sidebar'"
121249
+ "attribute": "form"
121278
121250
  },
121279
121251
  {
121280
121252
  "kind": "field",
121281
- "name": "color",
121253
+ "name": "_formId",
121282
121254
  "type": {
121283
- "text": "'white' | 'milk'"
121255
+ "text": "string"
121284
121256
  },
121285
- "privacy": "public",
121286
- "default": "'white'",
121287
- "description": "Background color of the sidebar. Either `white` or `milk`.",
121288
- "attribute": "color",
121289
- "reflects": true
121257
+ "privacy": "private",
121258
+ "default": "''",
121259
+ "inheritedFrom": {
121260
+ "name": "SbbButtonBaseElement",
121261
+ "module": "core/base-elements/button-base-element.js"
121262
+ }
121290
121263
  },
121291
121264
  {
121292
121265
  "kind": "field",
121293
- "name": "mode",
121294
- "type": {
121295
- "text": "'side' | 'over'"
121266
+ "name": "_handleButtonClick",
121267
+ "privacy": "private",
121268
+ "inheritedFrom": {
121269
+ "name": "SbbButtonBaseElement",
121270
+ "module": "core/base-elements/button-base-element.js"
121271
+ }
121272
+ },
121273
+ {
121274
+ "kind": "method",
121275
+ "name": "_requestSubmit",
121276
+ "privacy": "private",
121277
+ "return": {
121278
+ "type": {
121279
+ "text": "void"
121280
+ }
121296
121281
  },
121297
- "privacy": "public",
121298
- "default": "'side'",
121299
- "description": "Mode of the sidebar; one of 'side' or 'over'.",
121300
- "attribute": "mode",
121301
- "reflects": true
121282
+ "parameters": [
121283
+ {
121284
+ "name": "form",
121285
+ "type": {
121286
+ "text": "HTMLFormElement"
121287
+ }
121288
+ }
121289
+ ],
121290
+ "inheritedFrom": {
121291
+ "name": "SbbButtonBaseElement",
121292
+ "module": "core/base-elements/button-base-element.js"
121293
+ }
121302
121294
  },
121303
121295
  {
121304
121296
  "kind": "field",
121305
- "name": "position",
121306
- "type": {
121307
- "text": "'start' | 'end'"
121308
- },
121309
- "privacy": "public",
121310
- "default": "'start'",
121311
- "description": "The side that the sidebar is attached to.",
121312
- "attribute": "position",
121313
- "reflects": true
121297
+ "name": "_formKeyDown",
121298
+ "privacy": "private",
121299
+ "inheritedFrom": {
121300
+ "name": "SbbButtonBaseElement",
121301
+ "module": "core/base-elements/button-base-element.js"
121302
+ }
121314
121303
  },
121315
121304
  {
121316
121305
  "kind": "field",
121317
- "name": "opened",
121306
+ "name": "formAssociated",
121318
121307
  "type": {
121319
121308
  "text": "boolean"
121320
121309
  },
121321
121310
  "privacy": "public",
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
121311
+ "static": true,
121312
+ "default": "true",
121313
+ "inheritedFrom": {
121314
+ "name": "SbbFormAssociatedMixin",
121315
+ "module": "core/mixins/form-associated-mixin.js"
121316
+ }
121326
121317
  },
121327
121318
  {
121328
121319
  "kind": "field",
121329
- "name": "focusOnOpen",
121320
+ "name": "name",
121321
+ "privacy": "public",
121322
+ "description": "Name of the form element. Will be read from name attribute.",
121330
121323
  "type": {
121331
- "text": "boolean"
121324
+ "text": "string"
121332
121325
  },
121333
- "privacy": "public",
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"
121326
+ "attribute": "name",
121327
+ "inheritedFrom": {
121328
+ "name": "SbbFormAssociatedMixin",
121329
+ "module": "core/mixins/form-associated-mixin.js"
121330
+ }
121337
121331
  },
121338
121332
  {
121339
121333
  "kind": "field",
121340
- "name": "container",
121334
+ "name": "validity",
121341
121335
  "type": {
121342
- "text": "SbbSidebarContainerElement | null"
121336
+ "text": "ValidityState"
121343
121337
  },
121344
121338
  "privacy": "public",
121345
- "description": "Returns the SbbSidebarContainerElement where this sidebar is contained.",
121339
+ "description": "Returns the ValidityState object for this element.",
121346
121340
  "readonly": true,
121347
- "default": "null"
121341
+ "inheritedFrom": {
121342
+ "name": "SbbFormAssociatedMixin",
121343
+ "module": "core/mixins/form-associated-mixin.js"
121344
+ }
121348
121345
  },
121349
121346
  {
121350
121347
  "kind": "field",
121351
- "name": "_container",
121348
+ "name": "validationMessage",
121352
121349
  "type": {
121353
- "text": "SbbSidebarContainerElement | null"
121350
+ "text": "string"
121354
121351
  },
121355
- "privacy": "private",
121356
- "default": "null"
121352
+ "privacy": "public",
121353
+ "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.",
121354
+ "readonly": true,
121355
+ "inheritedFrom": {
121356
+ "name": "SbbFormAssociatedMixin",
121357
+ "module": "core/mixins/form-associated-mixin.js"
121358
+ }
121357
121359
  },
121358
121360
  {
121359
121361
  "kind": "field",
121360
- "name": "_lastFocusedElement",
121362
+ "name": "willValidate",
121361
121363
  "type": {
121362
- "text": "HTMLElement | null"
121364
+ "text": "boolean"
121363
121365
  },
121364
- "privacy": "private",
121365
- "default": "null"
121366
+ "privacy": "public",
121367
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
121368
+ "readonly": true,
121369
+ "inheritedFrom": {
121370
+ "name": "SbbFormAssociatedMixin",
121371
+ "module": "core/mixins/form-associated-mixin.js"
121372
+ }
121366
121373
  },
121367
121374
  {
121368
121375
  "kind": "field",
121369
- "name": "_focusTrapController",
121376
+ "name": "_validityStates",
121370
121377
  "privacy": "private",
121371
- "default": "new SbbFocusTrapController(this)"
121378
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
121379
+ "inheritedFrom": {
121380
+ "name": "SbbFormAssociatedMixin",
121381
+ "module": "core/mixins/form-associated-mixin.js"
121382
+ }
121372
121383
  },
121373
121384
  {
121374
121385
  "kind": "field",
121375
- "name": "_escapableOverlayController",
121376
- "privacy": "private",
121377
- "default": "new SbbEscapableOverlayController(this)"
121378
- },
121379
- {
121380
- "kind": "method",
121381
- "name": "toggle",
121382
- "privacy": "public",
121383
- "return": {
121384
- "type": {
121385
- "text": "void"
121386
- }
121387
- },
121388
- "description": "Toggles the sidebar visibility."
121389
- },
121390
- {
121391
- "kind": "method",
121392
- "name": "open",
121393
- "privacy": "public",
121394
- "return": {
121395
- "type": {
121396
- "text": "void"
121397
- }
121386
+ "name": "formDisabled",
121387
+ "type": {
121388
+ "text": "boolean"
121398
121389
  },
121399
- "description": "Opens the sidebar.",
121390
+ "privacy": "protected",
121391
+ "default": "false",
121392
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
121400
121393
  "inheritedFrom": {
121401
- "name": "SbbOpenCloseBaseElement",
121402
- "module": "core/base-elements/open-close-base-element.js"
121394
+ "name": "SbbFormAssociatedMixin",
121395
+ "module": "core/mixins/form-associated-mixin.js"
121403
121396
  }
121404
121397
  },
121405
121398
  {
121406
121399
  "kind": "method",
121407
- "name": "_isZeroAnimationDuration",
121408
- "privacy": "private",
121400
+ "name": "checkValidity",
121401
+ "privacy": "public",
121409
121402
  "return": {
121410
121403
  "type": {
121411
121404
  "text": "boolean"
121412
121405
  }
121406
+ },
121407
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
121408
+ "inheritedFrom": {
121409
+ "name": "SbbFormAssociatedMixin",
121410
+ "module": "core/mixins/form-associated-mixin.js"
121413
121411
  }
121414
121412
  },
121415
121413
  {
121416
121414
  "kind": "method",
121417
- "name": "_handleOpening",
121418
- "privacy": "private",
121415
+ "name": "reportValidity",
121416
+ "privacy": "public",
121419
121417
  "return": {
121420
121418
  "type": {
121421
- "text": "void"
121419
+ "text": "boolean"
121422
121420
  }
121421
+ },
121422
+ "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.",
121423
+ "inheritedFrom": {
121424
+ "name": "SbbFormAssociatedMixin",
121425
+ "module": "core/mixins/form-associated-mixin.js"
121423
121426
  }
121424
121427
  },
121425
121428
  {
121426
121429
  "kind": "method",
121427
- "name": "close",
121430
+ "name": "setCustomValidity",
121428
121431
  "privacy": "public",
121429
121432
  "return": {
121430
121433
  "type": {
121431
121434
  "text": "void"
121432
121435
  }
121433
121436
  },
121434
- "description": "Closes the sidebar.",
121437
+ "parameters": [
121438
+ {
121439
+ "name": "message",
121440
+ "type": {
121441
+ "text": "string"
121442
+ }
121443
+ }
121444
+ ],
121445
+ "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.",
121435
121446
  "inheritedFrom": {
121436
- "name": "SbbOpenCloseBaseElement",
121437
- "module": "core/base-elements/open-close-base-element.js"
121447
+ "name": "SbbFormAssociatedMixin",
121448
+ "module": "core/mixins/form-associated-mixin.js"
121438
121449
  }
121439
121450
  },
121440
121451
  {
121441
121452
  "kind": "method",
121442
- "name": "_handleClosing",
121453
+ "name": "_hasDisabledAncestor",
121443
121454
  "privacy": "private",
121444
121455
  "return": {
121445
121456
  "type": {
121446
- "text": "void"
121457
+ "text": "boolean"
121447
121458
  }
121459
+ },
121460
+ "inheritedFrom": {
121461
+ "name": "SbbFormAssociatedMixin",
121462
+ "module": "core/mixins/form-associated-mixin.js"
121448
121463
  }
121449
121464
  },
121450
121465
  {
121451
121466
  "kind": "method",
121452
- "name": "_takeFocus",
121453
- "privacy": "private",
121467
+ "name": "updateFormValue",
121468
+ "privacy": "protected",
121454
121469
  "return": {
121455
121470
  "type": {
121456
121471
  "text": "void"
121457
121472
  }
121473
+ },
121474
+ "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",
121475
+ "inheritedFrom": {
121476
+ "name": "SbbFormAssociatedMixin",
121477
+ "module": "core/mixins/form-associated-mixin.js"
121458
121478
  }
121459
121479
  },
121460
121480
  {
121461
121481
  "kind": "method",
121462
- "name": "cedeFocus",
121482
+ "name": "formState",
121463
121483
  "privacy": "protected",
121464
121484
  "return": {
121465
121485
  "type": {
121466
- "text": "void"
121486
+ "text": "FormRestoreState"
121467
121487
  }
121488
+ },
121489
+ "inheritedFrom": {
121490
+ "name": "SbbFormAssociatedMixin",
121491
+ "module": "core/mixins/form-associated-mixin.js"
121468
121492
  }
121469
121493
  },
121470
121494
  {
121471
121495
  "kind": "method",
121472
- "name": "_updateSidebarWidth",
121473
- "privacy": "private",
121496
+ "name": "setValidityFlag",
121497
+ "privacy": "protected",
121474
121498
  "return": {
121475
121499
  "type": {
121476
121500
  "text": "void"
@@ -121478,44 +121502,35 @@
121478
121502
  },
121479
121503
  "parameters": [
121480
121504
  {
121481
- "name": "oldPosition",
121482
- "optional": true,
121505
+ "name": "flag",
121483
121506
  "type": {
121484
- "text": "this['position']"
121507
+ "text": "T"
121485
121508
  }
121486
- }
121487
- ]
121488
- },
121489
- {
121490
- "kind": "method",
121491
- "name": "_buildCssWidthVar",
121492
- "privacy": "private",
121493
- "return": {
121494
- "type": {
121495
- "text": "string"
121496
- }
121497
- },
121498
- "parameters": [
121509
+ },
121499
121510
  {
121500
- "name": "position",
121501
- "default": "this.position"
121502
- }
121503
- ]
121504
- },
121505
- {
121506
- "kind": "method",
121507
- "name": "_isModeOver",
121508
- "privacy": "private",
121509
- "return": {
121510
- "type": {
121511
- "text": "boolean"
121511
+ "name": "message",
121512
+ "type": {
121513
+ "text": "string"
121514
+ }
121515
+ },
121516
+ {
121517
+ "name": "flagValue",
121518
+ "optional": true,
121519
+ "type": {
121520
+ "text": "ValidityStateFlags[T]"
121521
+ }
121512
121522
  }
121523
+ ],
121524
+ "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).",
121525
+ "inheritedFrom": {
121526
+ "name": "SbbFormAssociatedMixin",
121527
+ "module": "core/mixins/form-associated-mixin.js"
121513
121528
  }
121514
121529
  },
121515
121530
  {
121516
121531
  "kind": "method",
121517
- "name": "_onTransitionEnd",
121518
- "privacy": "private",
121532
+ "name": "removeValidityFlag",
121533
+ "privacy": "protected",
121519
121534
  "return": {
121520
121535
  "type": {
121521
121536
  "text": "void"
@@ -121523,230 +121538,173 @@
121523
121538
  },
121524
121539
  "parameters": [
121525
121540
  {
121526
- "name": "event",
121541
+ "name": "flag",
121527
121542
  "type": {
121528
- "text": "TransitionEvent"
121543
+ "text": "T"
121529
121544
  }
121530
121545
  }
121531
- ]
121532
- },
121533
- {
121534
- "kind": "method",
121535
- "name": "_detectScrolledState",
121536
- "privacy": "private",
121537
- "return": {
121538
- "type": {
121539
- "text": "void"
121540
- }
121541
- }
121542
- },
121543
- {
121544
- "kind": "field",
121545
- "name": "isAnimating",
121546
- "type": {
121547
- "text": "boolean"
121548
- },
121549
- "privacy": "public",
121550
- "default": "false",
121551
- "description": "Whether the component is currently animating.",
121552
- "inheritedFrom": {
121553
- "name": "SbbAnimationCompleteMixin",
121554
- "module": "core/mixins/animation-complete-mixin.js"
121555
- }
121556
- },
121557
- {
121558
- "kind": "field",
121559
- "name": "animationComplete",
121560
- "type": {
121561
- "text": "Promise<void>"
121562
- },
121563
- "privacy": "public",
121564
- "description": "Returns a promise which completes whenever an animation ends.\nWhen a new animation starts, a new Promise is returned.",
121565
- "readonly": true,
121566
- "inheritedFrom": {
121567
- "name": "SbbAnimationCompleteMixin",
121568
- "module": "core/mixins/animation-complete-mixin.js"
121569
- }
121570
- },
121571
- {
121572
- "kind": "field",
121573
- "name": "_animationPromise",
121574
- "type": {
121575
- "text": "Promise<void>"
121576
- },
121577
- "privacy": "private",
121546
+ ],
121547
+ "description": "Removes the validity state flag entry and updates validity state.",
121578
121548
  "inheritedFrom": {
121579
- "name": "SbbAnimationCompleteMixin",
121580
- "module": "core/mixins/animation-complete-mixin.js"
121549
+ "name": "SbbFormAssociatedMixin",
121550
+ "module": "core/mixins/form-associated-mixin.js"
121581
121551
  }
121582
121552
  },
121583
121553
  {
121584
121554
  "kind": "method",
121585
- "name": "startAnimation",
121555
+ "name": "validate",
121586
121556
  "privacy": "protected",
121587
121557
  "return": {
121588
121558
  "type": {
121589
121559
  "text": "void"
121590
121560
  }
121591
121561
  },
121562
+ "description": "To be called whenever the current element needs to be validated.",
121592
121563
  "inheritedFrom": {
121593
- "name": "SbbAnimationCompleteMixin",
121594
- "module": "core/mixins/animation-complete-mixin.js"
121564
+ "name": "SbbFormAssociatedMixin",
121565
+ "module": "core/mixins/form-associated-mixin.js"
121595
121566
  }
121596
121567
  },
121597
121568
  {
121598
121569
  "kind": "method",
121599
- "name": "stopAnimation",
121570
+ "name": "shouldValidate",
121600
121571
  "privacy": "protected",
121601
121572
  "return": {
121602
121573
  "type": {
121603
- "text": "void"
121574
+ "text": "boolean"
121604
121575
  }
121605
121576
  },
121606
- "description": "Overriding stopAnimation() breaks functionality.",
121577
+ "parameters": [
121578
+ {
121579
+ "name": "name",
121580
+ "type": {
121581
+ "text": "PropertyKey | undefined"
121582
+ }
121583
+ }
121584
+ ],
121585
+ "description": "Whether validation should be run on a property change with the given name.",
121607
121586
  "inheritedFrom": {
121608
- "name": "SbbAnimationCompleteMixin",
121609
- "module": "core/mixins/animation-complete-mixin.js"
121587
+ "name": "SbbFormAssociatedMixin",
121588
+ "module": "core/mixins/form-associated-mixin.js"
121610
121589
  }
121611
121590
  },
121612
121591
  {
121613
121592
  "kind": "method",
121614
- "name": "_enqueueAnimation",
121593
+ "name": "_setInternalValidity",
121615
121594
  "privacy": "private",
121616
121595
  "return": {
121617
121596
  "type": {
121618
- "text": "Promise<void>"
121597
+ "text": "void"
121619
121598
  }
121620
121599
  },
121621
121600
  "inheritedFrom": {
121622
- "name": "SbbAnimationCompleteMixin",
121623
- "module": "core/mixins/animation-complete-mixin.js"
121601
+ "name": "SbbFormAssociatedMixin",
121602
+ "module": "core/mixins/form-associated-mixin.js"
121624
121603
  }
121625
121604
  },
121626
121605
  {
121627
121606
  "kind": "field",
121628
- "name": "events",
121607
+ "name": "role",
121608
+ "type": {
121609
+ "text": "ElementInternals['role']"
121610
+ },
121629
121611
  "privacy": "public",
121630
121612
  "static": true,
121631
121613
  "readonly": true,
121632
- "default": "{ beforeopen: 'beforeopen', open: 'open', beforeclose: 'beforeclose', close: 'close', }",
121633
- "type": {
121634
- "text": "{\n beforeopen: 'beforeopen',\n open: 'open',\n beforeclose: 'beforeclose',\n close: 'close',\n }"
121635
- },
121614
+ "default": "'button'",
121636
121615
  "inheritedFrom": {
121637
- "name": "SbbOpenCloseBaseElement",
121638
- "module": "core/base-elements/open-close-base-element.js"
121616
+ "name": "SbbButtonLikeBaseElement",
121617
+ "module": "core/base-elements/button-base-element.js"
121639
121618
  }
121640
121619
  },
121641
121620
  {
121642
121621
  "kind": "field",
121643
- "name": "state",
121644
- "privacy": "protected",
121645
- "description": "The state of the component.",
121646
- "type": {
121647
- "text": "SbbOpenedClosedState"
121648
- },
121649
- "default": "'closed'",
121622
+ "name": "_preventScrollOnSpaceKeydown",
121623
+ "privacy": "private",
121624
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
121625
+ "parameters": [
121626
+ {
121627
+ "description": "The origin event.",
121628
+ "name": "event"
121629
+ }
121630
+ ],
121650
121631
  "inheritedFrom": {
121651
- "name": "SbbOpenCloseBaseElement",
121652
- "module": "core/base-elements/open-close-base-element.js"
121632
+ "name": "SbbButtonLikeBaseElement",
121633
+ "module": "core/base-elements/button-base-element.js"
121653
121634
  }
121654
121635
  },
121655
121636
  {
121656
121637
  "kind": "field",
121657
- "name": "_state",
121658
- "type": {
121659
- "text": "SbbOpenedClosedState"
121660
- },
121638
+ "name": "_removeActiveMarker",
121661
121639
  "privacy": "private",
121662
121640
  "inheritedFrom": {
121663
- "name": "SbbOpenCloseBaseElement",
121664
- "module": "core/base-elements/open-close-base-element.js"
121641
+ "name": "SbbButtonLikeBaseElement",
121642
+ "module": "core/base-elements/button-base-element.js"
121665
121643
  }
121666
121644
  },
121667
121645
  {
121668
121646
  "kind": "field",
121669
- "name": "isOpen",
121670
- "type": {
121671
- "text": "boolean"
121672
- },
121673
- "privacy": "public",
121674
- "description": "Whether the element is open.",
121675
- "readonly": true,
121676
- "inheritedFrom": {
121677
- "name": "SbbOpenCloseBaseElement",
121678
- "module": "core/base-elements/open-close-base-element.js"
121679
- }
121680
- },
121681
- {
121682
- "kind": "method",
121683
- "name": "escapeStrategy",
121684
- "privacy": "public",
121685
- "return": {
121686
- "type": {
121687
- "text": "void"
121647
+ "name": "_dispatchClickEventOnSpaceKeyup",
121648
+ "privacy": "private",
121649
+ "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.",
121650
+ "parameters": [
121651
+ {
121652
+ "description": "The origin event.",
121653
+ "name": "event"
121688
121654
  }
121689
- },
121690
- "description": "The method which is called on escape key press. Defaults to calling close()",
121655
+ ],
121691
121656
  "inheritedFrom": {
121692
- "name": "SbbOpenCloseBaseElement",
121693
- "module": "core/base-elements/open-close-base-element.js"
121657
+ "name": "SbbButtonLikeBaseElement",
121658
+ "module": "core/base-elements/button-base-element.js"
121694
121659
  }
121695
121660
  },
121696
121661
  {
121697
- "kind": "method",
121698
- "name": "dispatchBeforeOpenEvent",
121699
- "privacy": "protected",
121700
- "return": {
121701
- "type": {
121702
- "text": "boolean"
121703
- }
121704
- },
121662
+ "kind": "field",
121663
+ "name": "_dispatchClickEvent",
121664
+ "privacy": "private",
121705
121665
  "inheritedFrom": {
121706
- "name": "SbbOpenCloseBaseElement",
121707
- "module": "core/base-elements/open-close-base-element.js"
121666
+ "name": "SbbButtonLikeBaseElement",
121667
+ "module": "core/base-elements/button-base-element.js"
121708
121668
  }
121709
121669
  },
121710
121670
  {
121711
- "kind": "method",
121712
- "name": "dispatchOpenEvent",
121713
- "privacy": "protected",
121714
- "return": {
121715
- "type": {
121716
- "text": "boolean"
121717
- }
121671
+ "kind": "field",
121672
+ "name": "maybeDisabled",
121673
+ "type": {
121674
+ "text": "boolean | undefined"
121718
121675
  },
121676
+ "privacy": "protected",
121677
+ "readonly": true,
121719
121678
  "inheritedFrom": {
121720
- "name": "SbbOpenCloseBaseElement",
121721
- "module": "core/base-elements/open-close-base-element.js"
121679
+ "name": "SbbActionBaseElement",
121680
+ "module": "core/base-elements/action-base-element.js"
121722
121681
  }
121723
121682
  },
121724
121683
  {
121725
- "kind": "method",
121726
- "name": "dispatchBeforeCloseEvent",
121727
- "privacy": "protected",
121728
- "return": {
121729
- "type": {
121730
- "text": "boolean"
121731
- }
121684
+ "kind": "field",
121685
+ "name": "maybeDisabledInteractive",
121686
+ "type": {
121687
+ "text": "boolean | undefined"
121732
121688
  },
121689
+ "privacy": "protected",
121690
+ "readonly": true,
121733
121691
  "inheritedFrom": {
121734
- "name": "SbbOpenCloseBaseElement",
121735
- "module": "core/base-elements/open-close-base-element.js"
121692
+ "name": "SbbActionBaseElement",
121693
+ "module": "core/base-elements/action-base-element.js"
121736
121694
  }
121737
121695
  },
121738
121696
  {
121739
121697
  "kind": "method",
121740
- "name": "dispatchCloseEvent",
121698
+ "name": "setupBaseEventHandlers",
121741
121699
  "privacy": "protected",
121742
121700
  "return": {
121743
121701
  "type": {
121744
- "text": "boolean"
121702
+ "text": "void"
121745
121703
  }
121746
121704
  },
121747
121705
  "inheritedFrom": {
121748
- "name": "SbbOpenCloseBaseElement",
121749
- "module": "core/base-elements/open-close-base-element.js"
121706
+ "name": "SbbActionBaseElement",
121707
+ "module": "core/base-elements/action-base-element.js"
121750
121708
  }
121751
121709
  },
121752
121710
  {
@@ -121855,108 +121813,150 @@
121855
121813
  }
121856
121814
  }
121857
121815
  ],
121816
+ "superclass": {
121817
+ "name": "SbbSecondaryButtonElement",
121818
+ "module": "button.pure.js"
121819
+ },
121820
+ "tagName": "sbb-sidebar-close-button",
121821
+ "customElement": true,
121858
121822
  "attributes": [
121859
121823
  {
121860
- "name": "color",
121824
+ "name": "size",
121861
121825
  "type": {
121862
- "text": "'white' | 'milk'"
121826
+ "text": "SbbButtonSize"
121863
121827
  },
121864
- "default": "'white'",
121865
- "description": "Background color of the sidebar. Either `white` or `milk`.",
121866
- "fieldName": "color"
121828
+ "description": "Size variant, either l, m or s.",
121829
+ "default": "'l' / 's' (lean)",
121830
+ "fieldName": "size",
121831
+ "inheritedFrom": {
121832
+ "name": "SbbButtonCommonElementMixin",
121833
+ "module": "button/common/button-common.js"
121834
+ }
121867
121835
  },
121868
121836
  {
121869
- "name": "mode",
121837
+ "name": "loading",
121870
121838
  "type": {
121871
- "text": "'side' | 'over'"
121839
+ "text": "boolean"
121872
121840
  },
121873
- "default": "'side'",
121874
- "description": "Mode of the sidebar; one of 'side' or 'over'.",
121875
- "fieldName": "mode"
121841
+ "default": "false",
121842
+ "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.",
121843
+ "fieldName": "loading",
121844
+ "inheritedFrom": {
121845
+ "name": "SbbButtonCommonElementMixin",
121846
+ "module": "button/common/button-common.js"
121847
+ }
121876
121848
  },
121877
121849
  {
121878
- "name": "position",
121850
+ "name": "negative",
121879
121851
  "type": {
121880
- "text": "'start' | 'end'"
121852
+ "text": "boolean"
121881
121853
  },
121882
- "default": "'start'",
121883
- "description": "The side that the sidebar is attached to.",
121884
- "fieldName": "position"
121854
+ "default": "false",
121855
+ "description": "Negative coloring variant flag.",
121856
+ "fieldName": "negative",
121857
+ "inheritedFrom": {
121858
+ "name": "SbbNegativeMixin",
121859
+ "module": "core/mixins/negative-mixin.js"
121860
+ }
121885
121861
  },
121886
121862
  {
121887
- "name": "opened",
121863
+ "name": "icon-name",
121888
121864
  "type": {
121889
- "text": "boolean"
121865
+ "text": "string"
121890
121866
  },
121891
- "default": "false",
121892
- "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
121893
- "fieldName": "opened"
121867
+ "default": "''",
121868
+ "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.",
121869
+ "fieldName": "iconName",
121870
+ "inheritedFrom": {
121871
+ "name": "SbbIconNameMixin",
121872
+ "module": "icon/icon-name-mixin.js"
121873
+ }
121894
121874
  },
121895
121875
  {
121896
- "name": "focus-on-open",
121876
+ "name": "disabled-interactive",
121897
121877
  "type": {
121898
121878
  "text": "boolean"
121899
121879
  },
121900
121880
  "default": "false",
121901
- "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.",
121902
- "fieldName": "focusOnOpen"
121903
- }
121904
- ],
121905
- "mixins": [
121881
+ "description": "Whether the button should be aria-disabled but stay interactive.",
121882
+ "fieldName": "disabledInteractive",
121883
+ "inheritedFrom": {
121884
+ "name": "SbbDisabledInteractiveMixin",
121885
+ "module": "core/mixins/disabled-mixin.js"
121886
+ }
121887
+ },
121906
121888
  {
121907
- "name": "SbbAnimationCompleteMixin",
121908
- "module": "core/mixins.js"
121909
- }
121910
- ],
121911
- "superclass": {
121912
- "name": "SbbOpenCloseBaseElement",
121913
- "module": "core/base-elements.js"
121914
- },
121915
- "tagName": "sbb-sidebar",
121916
- "customElement": true,
121917
- "events": [
121889
+ "name": "disabled",
121890
+ "description": "Whether the component is disabled.",
121891
+ "default": "false",
121892
+ "type": {
121893
+ "text": "boolean"
121894
+ },
121895
+ "fieldName": "disabled",
121896
+ "inheritedFrom": {
121897
+ "name": "SbbDisabledMixin",
121898
+ "module": "core/mixins/disabled-mixin.js"
121899
+ }
121900
+ },
121918
121901
  {
121919
- "name": "beforeopen",
121902
+ "name": "value",
121920
121903
  "type": {
121921
- "text": "Event"
121904
+ "text": "string"
121922
121905
  },
121923
- "description": "Emits whenever the component starts the opening transition. Can be canceled.",
121906
+ "default": "''",
121907
+ "description": "Value of the form element.",
121908
+ "fieldName": "value",
121924
121909
  "inheritedFrom": {
121925
- "name": "SbbOpenCloseBaseElement",
121926
- "module": "core/base-elements/open-close-base-element.js"
121910
+ "name": "SbbButtonBaseElement",
121911
+ "module": "core/base-elements/button-base-element.js"
121927
121912
  }
121928
121913
  },
121929
121914
  {
121930
- "name": "open",
121915
+ "name": "type",
121916
+ "description": "The type attribute to use for the button.",
121917
+ "default": "'button'",
121931
121918
  "type": {
121932
- "text": "Event"
121919
+ "text": "SbbButtonType"
121933
121920
  },
121934
- "description": "Emits whenever the component is opened.",
121921
+ "fieldName": "type",
121935
121922
  "inheritedFrom": {
121936
- "name": "SbbOpenCloseBaseElement",
121937
- "module": "core/base-elements/open-close-base-element.js"
121923
+ "name": "SbbButtonBaseElement",
121924
+ "module": "core/base-elements/button-base-element.js"
121938
121925
  }
121939
121926
  },
121940
121927
  {
121941
- "name": "beforeclose",
121928
+ "name": "form",
121929
+ "description": "The `<form>` element to associate the button with.",
121942
121930
  "type": {
121943
- "text": "Event"
121931
+ "text": "HTMLFormElement | null"
121944
121932
  },
121945
- "description": "Emits whenever the component begins the closing transition. Can be canceled.",
121933
+ "fieldName": "form",
121946
121934
  "inheritedFrom": {
121947
- "name": "SbbOpenCloseBaseElement",
121948
- "module": "core/base-elements/open-close-base-element.js"
121935
+ "name": "SbbButtonBaseElement",
121936
+ "module": "core/base-elements/button-base-element.js"
121949
121937
  }
121950
121938
  },
121951
121939
  {
121952
- "name": "close",
121940
+ "name": "name",
121941
+ "description": "Name of the form element. Will be read from name attribute.",
121953
121942
  "type": {
121954
- "text": "Event"
121943
+ "text": "string"
121955
121944
  },
121956
- "description": "Emits whenever the component is closed.",
121945
+ "fieldName": "name",
121957
121946
  "inheritedFrom": {
121958
- "name": "SbbOpenCloseBaseElement",
121959
- "module": "core/base-elements/open-close-base-element.js"
121947
+ "name": "SbbFormAssociatedMixin",
121948
+ "module": "core/mixins/form-associated-mixin.js"
121949
+ }
121950
+ }
121951
+ ],
121952
+ "cssProperties": [
121953
+ {
121954
+ "description": "The delay before the loading animation starts, when setting the button into loading state.",
121955
+ "name": "--sbb-button-loading-delay",
121956
+ "default": "300ms",
121957
+ "inheritedFrom": {
121958
+ "name": "SbbSecondaryButtonElement",
121959
+ "module": "button/secondary-button/secondary-button.component.js"
121960
121960
  }
121961
121961
  }
121962
121962
  ]
@@ -121965,10 +121965,10 @@
121965
121965
  "exports": [
121966
121966
  {
121967
121967
  "kind": "js",
121968
- "name": "SbbSidebarElement",
121968
+ "name": "SbbSidebarCloseButtonElement",
121969
121969
  "declaration": {
121970
- "name": "SbbSidebarElement",
121971
- "module": "sidebar/sidebar/sidebar.component.js"
121970
+ "name": "SbbSidebarCloseButtonElement",
121971
+ "module": "sidebar/sidebar-close-button/sidebar-close-button.component.js"
121972
121972
  }
121973
121973
  }
121974
121974
  ]
@@ -123728,109 +123728,364 @@
123728
123728
  }
123729
123729
  }
123730
123730
  ],
123731
- "mixins": [
123732
- {
123733
- "name": "SbbIconNameMixin",
123734
- "module": "icon.js"
123735
- },
123736
- {
123737
- "name": "SbbDisabledMixin",
123738
- "module": "core/mixins.js"
123739
- }
123740
- ],
123741
- "superclass": {
123742
- "name": "SbbButtonBaseElement",
123743
- "module": "core/base-elements.js"
123744
- },
123745
- "tagName": "sbb-step-label",
123746
- "customElement": true,
123731
+ "mixins": [
123732
+ {
123733
+ "name": "SbbIconNameMixin",
123734
+ "module": "icon.js"
123735
+ },
123736
+ {
123737
+ "name": "SbbDisabledMixin",
123738
+ "module": "core/mixins.js"
123739
+ }
123740
+ ],
123741
+ "superclass": {
123742
+ "name": "SbbButtonBaseElement",
123743
+ "module": "core/base-elements.js"
123744
+ },
123745
+ "tagName": "sbb-step-label",
123746
+ "customElement": true,
123747
+ "attributes": [
123748
+ {
123749
+ "name": "icon-name",
123750
+ "type": {
123751
+ "text": "string"
123752
+ },
123753
+ "default": "''",
123754
+ "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.",
123755
+ "fieldName": "iconName",
123756
+ "inheritedFrom": {
123757
+ "name": "SbbIconNameMixin",
123758
+ "module": "icon/icon-name-mixin.js"
123759
+ }
123760
+ },
123761
+ {
123762
+ "name": "disabled",
123763
+ "description": "Whether the component is disabled.",
123764
+ "default": "false",
123765
+ "type": {
123766
+ "text": "boolean"
123767
+ },
123768
+ "fieldName": "disabled",
123769
+ "inheritedFrom": {
123770
+ "name": "SbbDisabledMixin",
123771
+ "module": "core/mixins/disabled-mixin.js"
123772
+ }
123773
+ },
123774
+ {
123775
+ "name": "value",
123776
+ "type": {
123777
+ "text": "string"
123778
+ },
123779
+ "default": "''",
123780
+ "description": "Value of the form element.",
123781
+ "fieldName": "value",
123782
+ "inheritedFrom": {
123783
+ "name": "SbbButtonBaseElement",
123784
+ "module": "core/base-elements/button-base-element.js"
123785
+ }
123786
+ },
123787
+ {
123788
+ "name": "type",
123789
+ "description": "The type attribute to use for the button.",
123790
+ "default": "'button'",
123791
+ "type": {
123792
+ "text": "SbbButtonType"
123793
+ },
123794
+ "fieldName": "type",
123795
+ "inheritedFrom": {
123796
+ "name": "SbbButtonBaseElement",
123797
+ "module": "core/base-elements/button-base-element.js"
123798
+ }
123799
+ },
123800
+ {
123801
+ "name": "form",
123802
+ "description": "The `<form>` element to associate the button with.",
123803
+ "type": {
123804
+ "text": "HTMLFormElement | null"
123805
+ },
123806
+ "fieldName": "form",
123807
+ "inheritedFrom": {
123808
+ "name": "SbbButtonBaseElement",
123809
+ "module": "core/base-elements/button-base-element.js"
123810
+ }
123811
+ },
123812
+ {
123813
+ "name": "name",
123814
+ "description": "Name of the form element. Will be read from name attribute.",
123815
+ "type": {
123816
+ "text": "string"
123817
+ },
123818
+ "fieldName": "name",
123819
+ "inheritedFrom": {
123820
+ "name": "SbbFormAssociatedMixin",
123821
+ "module": "core/mixins/form-associated-mixin.js"
123822
+ }
123823
+ }
123824
+ ]
123825
+ }
123826
+ ],
123827
+ "exports": [
123828
+ {
123829
+ "kind": "js",
123830
+ "name": "SbbStepLabelElement",
123831
+ "declaration": {
123832
+ "name": "SbbStepLabelElement",
123833
+ "module": "stepper/step-label/step-label.component.js"
123834
+ }
123835
+ }
123836
+ ]
123837
+ },
123838
+ {
123839
+ "kind": "javascript-module",
123840
+ "path": "table/table-wrapper/table-wrapper.component.js",
123841
+ "declarations": [
123842
+ {
123843
+ "kind": "class",
123844
+ "description": "Wraps a table to enhance its functionality.",
123845
+ "name": "SbbTableWrapperElement",
123846
+ "slots": [
123847
+ {
123848
+ "description": "Use the unnamed slot to add the table.",
123849
+ "name": ""
123850
+ }
123851
+ ],
123852
+ "members": [
123853
+ {
123854
+ "kind": "field",
123855
+ "name": "elementName",
123856
+ "type": {
123857
+ "text": "string"
123858
+ },
123859
+ "privacy": "public",
123860
+ "static": true,
123861
+ "readonly": true,
123862
+ "default": "'sbb-table-wrapper'",
123863
+ "inheritedFrom": {
123864
+ "name": "SbbElement",
123865
+ "module": "core/base-elements/element.js"
123866
+ }
123867
+ },
123868
+ {
123869
+ "kind": "field",
123870
+ "name": "role",
123871
+ "type": {
123872
+ "text": "string"
123873
+ },
123874
+ "privacy": "public",
123875
+ "static": true,
123876
+ "readonly": true,
123877
+ "default": "'section'"
123878
+ },
123879
+ {
123880
+ "kind": "field",
123881
+ "name": "focusable",
123882
+ "type": {
123883
+ "text": "boolean"
123884
+ },
123885
+ "privacy": "public",
123886
+ "default": "false",
123887
+ "description": "Whether the table wrapper is focusable.",
123888
+ "attribute": "focusable",
123889
+ "reflects": true
123890
+ },
123891
+ {
123892
+ "kind": "method",
123893
+ "name": "_updateScrollbarClass",
123894
+ "privacy": "private",
123895
+ "return": {
123896
+ "type": {
123897
+ "text": "void"
123898
+ }
123899
+ }
123900
+ },
123901
+ {
123902
+ "kind": "method",
123903
+ "name": "_checkHorizontalScrollbarOffset",
123904
+ "privacy": "private",
123905
+ "return": {
123906
+ "type": {
123907
+ "text": "void"
123908
+ }
123909
+ },
123910
+ "description": "Calculates whether the table is horizontally scrolled and adds the\ncorresponding class `sbb-table-wrapper-offset-${none | left | right | both}`"
123911
+ },
123912
+ {
123913
+ "kind": "method",
123914
+ "name": "_calculateScrollOffset",
123915
+ "privacy": "private",
123916
+ "return": {
123917
+ "type": {
123918
+ "text": "'none' | 'left' | 'right' | 'both'"
123919
+ }
123920
+ }
123921
+ },
123922
+ {
123923
+ "kind": "field",
123924
+ "name": "negative",
123925
+ "type": {
123926
+ "text": "boolean"
123927
+ },
123928
+ "privacy": "public",
123929
+ "default": "false",
123930
+ "description": "Negative coloring variant flag.",
123931
+ "attribute": "negative",
123932
+ "reflects": true,
123933
+ "inheritedFrom": {
123934
+ "name": "SbbNegativeMixin",
123935
+ "module": "core/mixins/negative-mixin.js"
123936
+ }
123937
+ },
123938
+ {
123939
+ "kind": "field",
123940
+ "name": "_hydrationRequired",
123941
+ "type": {
123942
+ "text": "boolean"
123943
+ },
123944
+ "privacy": "private",
123945
+ "default": "!!this.shadowRoot",
123946
+ "inheritedFrom": {
123947
+ "name": "SbbElement",
123948
+ "module": "core/base-elements/element.js"
123949
+ }
123950
+ },
123951
+ {
123952
+ "kind": "field",
123953
+ "name": "_hydrationComplete",
123954
+ "privacy": "private",
123955
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
123956
+ "inheritedFrom": {
123957
+ "name": "SbbElement",
123958
+ "module": "core/base-elements/element.js"
123959
+ }
123960
+ },
123961
+ {
123962
+ "kind": "field",
123963
+ "name": "_resolveHydration",
123964
+ "type": {
123965
+ "text": "(hydrationRequired: boolean) => void"
123966
+ },
123967
+ "privacy": "private",
123968
+ "inheritedFrom": {
123969
+ "name": "SbbElement",
123970
+ "module": "core/base-elements/element.js"
123971
+ }
123972
+ },
123973
+ {
123974
+ "kind": "field",
123975
+ "name": "hydrationRequired",
123976
+ "type": {
123977
+ "text": "boolean"
123978
+ },
123979
+ "privacy": "protected",
123980
+ "description": "Returns whether hydration is required and not completed.",
123981
+ "readonly": true,
123982
+ "inheritedFrom": {
123983
+ "name": "SbbElement",
123984
+ "module": "core/base-elements/element.js"
123985
+ },
123986
+ "default": "!!this.shadowRoot"
123987
+ },
123988
+ {
123989
+ "kind": "method",
123990
+ "name": "toggleState",
123991
+ "privacy": "protected",
123992
+ "return": {
123993
+ "type": {
123994
+ "text": "void"
123995
+ }
123996
+ },
123997
+ "parameters": [
123998
+ {
123999
+ "name": "value",
124000
+ "type": {
124001
+ "text": "string"
124002
+ }
124003
+ },
124004
+ {
124005
+ "name": "force",
124006
+ "optional": true,
124007
+ "type": {
124008
+ "text": "boolean"
124009
+ }
124010
+ }
124011
+ ],
124012
+ "inheritedFrom": {
124013
+ "name": "SbbElement",
124014
+ "module": "core/base-elements/element.js"
124015
+ }
124016
+ },
124017
+ {
124018
+ "kind": "field",
124019
+ "name": "['_$sbbElement$']",
124020
+ "type": {
124021
+ "text": "boolean"
124022
+ },
124023
+ "privacy": "public",
124024
+ "static": true,
124025
+ "default": "true",
124026
+ "inheritedFrom": {
124027
+ "name": "SbbElement",
124028
+ "module": "core/base-elements/element.js"
124029
+ }
124030
+ },
124031
+ {
124032
+ "kind": "field",
124033
+ "name": "_controllers",
124034
+ "type": {
124035
+ "text": "Set<SbbReactiveController> | undefined"
124036
+ },
124037
+ "privacy": "private",
124038
+ "inheritedFrom": {
124039
+ "name": "SbbElement",
124040
+ "module": "core/base-elements/element.js"
124041
+ }
124042
+ }
124043
+ ],
123747
124044
  "attributes": [
123748
124045
  {
123749
- "name": "icon-name",
123750
- "type": {
123751
- "text": "string"
123752
- },
123753
- "default": "''",
123754
- "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.",
123755
- "fieldName": "iconName",
123756
- "inheritedFrom": {
123757
- "name": "SbbIconNameMixin",
123758
- "module": "icon/icon-name-mixin.js"
123759
- }
123760
- },
123761
- {
123762
- "name": "disabled",
123763
- "description": "Whether the component is disabled.",
123764
- "default": "false",
124046
+ "name": "focusable",
123765
124047
  "type": {
123766
124048
  "text": "boolean"
123767
124049
  },
123768
- "fieldName": "disabled",
123769
- "inheritedFrom": {
123770
- "name": "SbbDisabledMixin",
123771
- "module": "core/mixins/disabled-mixin.js"
123772
- }
123773
- },
123774
- {
123775
- "name": "value",
123776
- "type": {
123777
- "text": "string"
123778
- },
123779
- "default": "''",
123780
- "description": "Value of the form element.",
123781
- "fieldName": "value",
123782
- "inheritedFrom": {
123783
- "name": "SbbButtonBaseElement",
123784
- "module": "core/base-elements/button-base-element.js"
123785
- }
123786
- },
123787
- {
123788
- "name": "type",
123789
- "description": "The type attribute to use for the button.",
123790
- "default": "'button'",
123791
- "type": {
123792
- "text": "SbbButtonType"
123793
- },
123794
- "fieldName": "type",
123795
- "inheritedFrom": {
123796
- "name": "SbbButtonBaseElement",
123797
- "module": "core/base-elements/button-base-element.js"
123798
- }
124050
+ "default": "false",
124051
+ "description": "Whether the table wrapper is focusable.",
124052
+ "fieldName": "focusable"
123799
124053
  },
123800
124054
  {
123801
- "name": "form",
123802
- "description": "The `<form>` element to associate the button with.",
124055
+ "name": "negative",
123803
124056
  "type": {
123804
- "text": "HTMLFormElement | null"
124057
+ "text": "boolean"
123805
124058
  },
123806
- "fieldName": "form",
124059
+ "default": "false",
124060
+ "description": "Negative coloring variant flag.",
124061
+ "fieldName": "negative",
123807
124062
  "inheritedFrom": {
123808
- "name": "SbbButtonBaseElement",
123809
- "module": "core/base-elements/button-base-element.js"
124063
+ "name": "SbbNegativeMixin",
124064
+ "module": "core/mixins/negative-mixin.js"
123810
124065
  }
123811
- },
124066
+ }
124067
+ ],
124068
+ "mixins": [
123812
124069
  {
123813
- "name": "name",
123814
- "description": "Name of the form element. Will be read from name attribute.",
123815
- "type": {
123816
- "text": "string"
123817
- },
123818
- "fieldName": "name",
123819
- "inheritedFrom": {
123820
- "name": "SbbFormAssociatedMixin",
123821
- "module": "core/mixins/form-associated-mixin.js"
123822
- }
124070
+ "name": "SbbNegativeMixin",
124071
+ "module": "core/mixins.js"
123823
124072
  }
123824
- ]
124073
+ ],
124074
+ "superclass": {
124075
+ "name": "SbbElement",
124076
+ "module": "core/base-elements.js"
124077
+ },
124078
+ "tagName": "sbb-table-wrapper",
124079
+ "customElement": true
123825
124080
  }
123826
124081
  ],
123827
124082
  "exports": [
123828
124083
  {
123829
124084
  "kind": "js",
123830
- "name": "SbbStepLabelElement",
124085
+ "name": "SbbTableWrapperElement",
123831
124086
  "declaration": {
123832
- "name": "SbbStepLabelElement",
123833
- "module": "stepper/step-label/step-label.component.js"
124087
+ "name": "SbbTableWrapperElement",
124088
+ "module": "table/table-wrapper/table-wrapper.component.js"
123834
124089
  }
123835
124090
  }
123836
124091
  ]
@@ -124466,261 +124721,6 @@
124466
124721
  }
124467
124722
  ]
124468
124723
  },
124469
- {
124470
- "kind": "javascript-module",
124471
- "path": "table/table-wrapper/table-wrapper.component.js",
124472
- "declarations": [
124473
- {
124474
- "kind": "class",
124475
- "description": "Wraps a table to enhance its functionality.",
124476
- "name": "SbbTableWrapperElement",
124477
- "slots": [
124478
- {
124479
- "description": "Use the unnamed slot to add the table.",
124480
- "name": ""
124481
- }
124482
- ],
124483
- "members": [
124484
- {
124485
- "kind": "field",
124486
- "name": "elementName",
124487
- "type": {
124488
- "text": "string"
124489
- },
124490
- "privacy": "public",
124491
- "static": true,
124492
- "readonly": true,
124493
- "default": "'sbb-table-wrapper'",
124494
- "inheritedFrom": {
124495
- "name": "SbbElement",
124496
- "module": "core/base-elements/element.js"
124497
- }
124498
- },
124499
- {
124500
- "kind": "field",
124501
- "name": "role",
124502
- "type": {
124503
- "text": "string"
124504
- },
124505
- "privacy": "public",
124506
- "static": true,
124507
- "readonly": true,
124508
- "default": "'section'"
124509
- },
124510
- {
124511
- "kind": "field",
124512
- "name": "focusable",
124513
- "type": {
124514
- "text": "boolean"
124515
- },
124516
- "privacy": "public",
124517
- "default": "false",
124518
- "description": "Whether the table wrapper is focusable.",
124519
- "attribute": "focusable",
124520
- "reflects": true
124521
- },
124522
- {
124523
- "kind": "method",
124524
- "name": "_updateScrollbarClass",
124525
- "privacy": "private",
124526
- "return": {
124527
- "type": {
124528
- "text": "void"
124529
- }
124530
- }
124531
- },
124532
- {
124533
- "kind": "method",
124534
- "name": "_checkHorizontalScrollbarOffset",
124535
- "privacy": "private",
124536
- "return": {
124537
- "type": {
124538
- "text": "void"
124539
- }
124540
- },
124541
- "description": "Calculates whether the table is horizontally scrolled and adds the\ncorresponding class `sbb-table-wrapper-offset-${none | left | right | both}`"
124542
- },
124543
- {
124544
- "kind": "method",
124545
- "name": "_calculateScrollOffset",
124546
- "privacy": "private",
124547
- "return": {
124548
- "type": {
124549
- "text": "'none' | 'left' | 'right' | 'both'"
124550
- }
124551
- }
124552
- },
124553
- {
124554
- "kind": "field",
124555
- "name": "negative",
124556
- "type": {
124557
- "text": "boolean"
124558
- },
124559
- "privacy": "public",
124560
- "default": "false",
124561
- "description": "Negative coloring variant flag.",
124562
- "attribute": "negative",
124563
- "reflects": true,
124564
- "inheritedFrom": {
124565
- "name": "SbbNegativeMixin",
124566
- "module": "core/mixins/negative-mixin.js"
124567
- }
124568
- },
124569
- {
124570
- "kind": "field",
124571
- "name": "_hydrationRequired",
124572
- "type": {
124573
- "text": "boolean"
124574
- },
124575
- "privacy": "private",
124576
- "default": "!!this.shadowRoot",
124577
- "inheritedFrom": {
124578
- "name": "SbbElement",
124579
- "module": "core/base-elements/element.js"
124580
- }
124581
- },
124582
- {
124583
- "kind": "field",
124584
- "name": "_hydrationComplete",
124585
- "privacy": "private",
124586
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
124587
- "inheritedFrom": {
124588
- "name": "SbbElement",
124589
- "module": "core/base-elements/element.js"
124590
- }
124591
- },
124592
- {
124593
- "kind": "field",
124594
- "name": "_resolveHydration",
124595
- "type": {
124596
- "text": "(hydrationRequired: boolean) => void"
124597
- },
124598
- "privacy": "private",
124599
- "inheritedFrom": {
124600
- "name": "SbbElement",
124601
- "module": "core/base-elements/element.js"
124602
- }
124603
- },
124604
- {
124605
- "kind": "field",
124606
- "name": "hydrationRequired",
124607
- "type": {
124608
- "text": "boolean"
124609
- },
124610
- "privacy": "protected",
124611
- "description": "Returns whether hydration is required and not completed.",
124612
- "readonly": true,
124613
- "inheritedFrom": {
124614
- "name": "SbbElement",
124615
- "module": "core/base-elements/element.js"
124616
- },
124617
- "default": "!!this.shadowRoot"
124618
- },
124619
- {
124620
- "kind": "method",
124621
- "name": "toggleState",
124622
- "privacy": "protected",
124623
- "return": {
124624
- "type": {
124625
- "text": "void"
124626
- }
124627
- },
124628
- "parameters": [
124629
- {
124630
- "name": "value",
124631
- "type": {
124632
- "text": "string"
124633
- }
124634
- },
124635
- {
124636
- "name": "force",
124637
- "optional": true,
124638
- "type": {
124639
- "text": "boolean"
124640
- }
124641
- }
124642
- ],
124643
- "inheritedFrom": {
124644
- "name": "SbbElement",
124645
- "module": "core/base-elements/element.js"
124646
- }
124647
- },
124648
- {
124649
- "kind": "field",
124650
- "name": "['_$sbbElement$']",
124651
- "type": {
124652
- "text": "boolean"
124653
- },
124654
- "privacy": "public",
124655
- "static": true,
124656
- "default": "true",
124657
- "inheritedFrom": {
124658
- "name": "SbbElement",
124659
- "module": "core/base-elements/element.js"
124660
- }
124661
- },
124662
- {
124663
- "kind": "field",
124664
- "name": "_controllers",
124665
- "type": {
124666
- "text": "Set<SbbReactiveController> | undefined"
124667
- },
124668
- "privacy": "private",
124669
- "inheritedFrom": {
124670
- "name": "SbbElement",
124671
- "module": "core/base-elements/element.js"
124672
- }
124673
- }
124674
- ],
124675
- "attributes": [
124676
- {
124677
- "name": "focusable",
124678
- "type": {
124679
- "text": "boolean"
124680
- },
124681
- "default": "false",
124682
- "description": "Whether the table wrapper is focusable.",
124683
- "fieldName": "focusable"
124684
- },
124685
- {
124686
- "name": "negative",
124687
- "type": {
124688
- "text": "boolean"
124689
- },
124690
- "default": "false",
124691
- "description": "Negative coloring variant flag.",
124692
- "fieldName": "negative",
124693
- "inheritedFrom": {
124694
- "name": "SbbNegativeMixin",
124695
- "module": "core/mixins/negative-mixin.js"
124696
- }
124697
- }
124698
- ],
124699
- "mixins": [
124700
- {
124701
- "name": "SbbNegativeMixin",
124702
- "module": "core/mixins.js"
124703
- }
124704
- ],
124705
- "superclass": {
124706
- "name": "SbbElement",
124707
- "module": "core/base-elements.js"
124708
- },
124709
- "tagName": "sbb-table-wrapper",
124710
- "customElement": true
124711
- }
124712
- ],
124713
- "exports": [
124714
- {
124715
- "kind": "js",
124716
- "name": "SbbTableWrapperElement",
124717
- "declaration": {
124718
- "name": "SbbTableWrapperElement",
124719
- "module": "table/table-wrapper/table-wrapper.component.js"
124720
- }
124721
- }
124722
- ]
124723
- },
124724
124724
  {
124725
124725
  "kind": "javascript-module",
124726
124726
  "path": "tabs/common/styles.js",