@sbb-esta/lyne-elements-dev 4.7.0-dev.1773208987 → 4.7.0-dev.1773217409

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.
@@ -114683,37 +114683,6 @@
114683
114683
  }
114684
114684
  ]
114685
114685
  },
114686
- {
114687
- "kind": "javascript-module",
114688
- "path": "sidebar/common/styles.js",
114689
- "declarations": [],
114690
- "exports": [
114691
- {
114692
- "kind": "js",
114693
- "name": "sidebarContainerCommonStyle",
114694
- "declaration": {
114695
- "name": "default",
114696
- "module": "./sidebar-container-common.scss?lit&inline"
114697
- }
114698
- },
114699
- {
114700
- "kind": "js",
114701
- "name": "sidebarContentCommonStyle",
114702
- "declaration": {
114703
- "name": "default",
114704
- "module": "./sidebar-content-common.scss?lit&inline"
114705
- }
114706
- },
114707
- {
114708
- "kind": "js",
114709
- "name": "iconSidebarButtonCommonStyle",
114710
- "declaration": {
114711
- "name": "default",
114712
- "module": "./icon-sidebar-button-common.scss?lit&inline"
114713
- }
114714
- }
114715
- ]
114716
- },
114717
114686
  {
114718
114687
  "kind": "javascript-module",
114719
114688
  "path": "sidebar/sidebar/sidebar.component.js",
@@ -115445,6 +115414,37 @@
115445
115414
  }
115446
115415
  ]
115447
115416
  },
115417
+ {
115418
+ "kind": "javascript-module",
115419
+ "path": "sidebar/common/styles.js",
115420
+ "declarations": [],
115421
+ "exports": [
115422
+ {
115423
+ "kind": "js",
115424
+ "name": "sidebarContainerCommonStyle",
115425
+ "declaration": {
115426
+ "name": "default",
115427
+ "module": "./sidebar-container-common.scss?lit&inline"
115428
+ }
115429
+ },
115430
+ {
115431
+ "kind": "js",
115432
+ "name": "sidebarContentCommonStyle",
115433
+ "declaration": {
115434
+ "name": "default",
115435
+ "module": "./sidebar-content-common.scss?lit&inline"
115436
+ }
115437
+ },
115438
+ {
115439
+ "kind": "js",
115440
+ "name": "iconSidebarButtonCommonStyle",
115441
+ "declaration": {
115442
+ "name": "default",
115443
+ "module": "./icon-sidebar-button-common.scss?lit&inline"
115444
+ }
115445
+ }
115446
+ ]
115447
+ },
115448
115448
  {
115449
115449
  "kind": "javascript-module",
115450
115450
  "path": "sidebar/sidebar-close-button/sidebar-close-button.component.js",
@@ -117063,16 +117063,20 @@
117063
117063
  },
117064
117064
  {
117065
117065
  "kind": "javascript-module",
117066
- "path": "stepper/step/step.component.js",
117066
+ "path": "stepper/step-label/step-label.component.js",
117067
117067
  "declarations": [
117068
117068
  {
117069
117069
  "kind": "class",
117070
- "description": "Combined with a `sbb-stepper`, it displays a step's content.",
117071
- "name": "SbbStepElement",
117070
+ "description": "Combined with a `sbb-stepper`, it displays a step's label.",
117071
+ "name": "SbbStepLabelElement",
117072
117072
  "slots": [
117073
117073
  {
117074
- "description": "Use the unnamed slot to provide content.",
117074
+ "description": "Use the unnamed slot to provide a label.",
117075
117075
  "name": ""
117076
+ },
117077
+ {
117078
+ "description": "Use this to display an icon in the label bubble.",
117079
+ "name": "icon"
117076
117080
  }
117077
117081
  ],
117078
117082
  "members": [
@@ -117085,11 +117089,11 @@
117085
117089
  "privacy": "public",
117086
117090
  "static": true,
117087
117091
  "readonly": true,
117088
- "default": "'sbb-step'",
117089
117092
  "inheritedFrom": {
117090
117093
  "name": "SbbElement",
117091
117094
  "module": "core/base-elements/element.js"
117092
- }
117095
+ },
117096
+ "default": "'sbb-step-label'"
117093
117097
  },
117094
117098
  {
117095
117099
  "kind": "field",
@@ -117100,41 +117104,28 @@
117100
117104
  "privacy": "public",
117101
117105
  "static": true,
117102
117106
  "readonly": true,
117103
- "default": "'tabpanel'"
117104
- },
117105
- {
117106
- "kind": "field",
117107
- "name": "events",
117108
- "privacy": "public",
117109
- "static": true,
117110
- "readonly": true,
117111
- "default": "{ validate: 'validate', resizechange: 'resizechange', }",
117112
- "type": {
117113
- "text": "{\n validate: 'validate',\n resizechange: 'resizechange',\n }"
117107
+ "default": "'tab'",
117108
+ "inheritedFrom": {
117109
+ "name": "SbbButtonLikeBaseElement",
117110
+ "module": "core/base-elements/button-base-element.js"
117114
117111
  }
117115
117112
  },
117116
117113
  {
117117
117114
  "kind": "field",
117118
- "name": "_stepResizeObserver",
117119
- "privacy": "private",
117120
- "default": "new ResizeController(this, { target: null, skipInitial: true, callback: () => setTimeout(() => this._onStepElementResize()), })"
117121
- },
117122
- {
117123
- "kind": "field",
117124
- "name": "label",
117115
+ "name": "step",
117125
117116
  "type": {
117126
- "text": "SbbStepLabelElement | null"
117117
+ "text": "SbbStepElement | null"
117127
117118
  },
117128
117119
  "privacy": "public",
117129
- "description": "The label of the step.",
117120
+ "description": "The step controlled by the label.",
117130
117121
  "readonly": true,
117131
117122
  "default": "null"
117132
117123
  },
117133
117124
  {
117134
117125
  "kind": "field",
117135
- "name": "_label",
117126
+ "name": "_step",
117136
117127
  "type": {
117137
- "text": "SbbStepLabelElement | null"
117128
+ "text": "SbbStepElement | null"
117138
117129
  },
117139
117130
  "privacy": "private",
117140
117131
  "default": "null"
@@ -117148,6 +117139,22 @@
117148
117139
  "privacy": "public",
117149
117140
  "readonly": true
117150
117141
  },
117142
+ {
117143
+ "kind": "field",
117144
+ "name": "disabled",
117145
+ "privacy": "public",
117146
+ "description": "Whether the component is disabled.",
117147
+ "default": "false",
117148
+ "type": {
117149
+ "text": "boolean"
117150
+ },
117151
+ "attribute": "disabled",
117152
+ "reflects": true,
117153
+ "inheritedFrom": {
117154
+ "name": "SbbDisabledMixin",
117155
+ "module": "core/mixins/disabled-mixin.js"
117156
+ }
117157
+ },
117151
117158
  {
117152
117159
  "kind": "field",
117153
117160
  "name": "_previousOrientation",
@@ -117156,135 +117163,220 @@
117156
117163
  },
117157
117164
  "privacy": "private"
117158
117165
  },
117166
+ {
117167
+ "kind": "field",
117168
+ "name": "_previousSize",
117169
+ "type": {
117170
+ "text": "string | undefined"
117171
+ },
117172
+ "privacy": "private"
117173
+ },
117159
117174
  {
117160
117175
  "kind": "method",
117161
- "name": "_handleClick",
117176
+ "name": "_isNotDeactivatedByLinearMode",
117162
117177
  "privacy": "private",
117163
117178
  "return": {
117164
117179
  "type": {
117165
- "text": "void"
117180
+ "text": "boolean"
117166
117181
  }
117167
117182
  },
117168
117183
  "parameters": [
117169
117184
  {
117170
- "name": "event",
117185
+ "name": "step",
117171
117186
  "type": {
117172
- "text": "Event"
117187
+ "text": "SbbStepElement"
117173
117188
  }
117174
117189
  }
117175
- ],
117176
- "description": "Watches for clicked elements with `sbb-stepper-next` or `sbb-stepper-previous` attributes."
117190
+ ]
117177
117191
  },
117178
117192
  {
117179
117193
  "kind": "method",
117180
- "name": "_isGoNextElement",
117194
+ "name": "_assignStep",
117181
117195
  "privacy": "private",
117182
117196
  "return": {
117183
117197
  "type": {
117184
- "text": "boolean"
117198
+ "text": "void"
117185
117199
  }
117200
+ }
117201
+ },
117202
+ {
117203
+ "kind": "field",
117204
+ "name": "iconName",
117205
+ "type": {
117206
+ "text": "string"
117186
117207
  },
117187
- "parameters": [
117188
- {
117189
- "name": "element",
117190
- "type": {
117191
- "text": "HTMLElement"
117192
- }
117193
- }
117194
- ]
117208
+ "privacy": "public",
117209
+ "default": "''",
117210
+ "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.",
117211
+ "attribute": "icon-name",
117212
+ "inheritedFrom": {
117213
+ "name": "SbbIconNameMixin",
117214
+ "module": "icon/icon-name-mixin.js"
117215
+ }
117195
117216
  },
117196
117217
  {
117197
117218
  "kind": "method",
117198
- "name": "_isGoPreviousElement",
117199
- "privacy": "private",
117219
+ "name": "renderIconSlot",
117220
+ "privacy": "protected",
117200
117221
  "return": {
117201
117222
  "type": {
117202
- "text": "boolean"
117223
+ "text": "TemplateResult"
117203
117224
  }
117204
117225
  },
117205
117226
  "parameters": [
117206
117227
  {
117207
- "name": "element",
117228
+ "name": "classname",
117229
+ "optional": true,
117208
117230
  "type": {
117209
- "text": "HTMLElement"
117231
+ "text": "string"
117210
117232
  }
117211
117233
  }
117212
- ]
117234
+ ],
117235
+ "inheritedFrom": {
117236
+ "name": "SbbIconNameMixin",
117237
+ "module": "icon/icon-name-mixin.js"
117238
+ }
117213
117239
  },
117214
117240
  {
117215
117241
  "kind": "method",
117216
- "name": "_onStepElementResize",
117217
- "privacy": "private",
117242
+ "name": "renderIconName",
117243
+ "privacy": "protected",
117218
117244
  "return": {
117219
117245
  "type": {
117220
- "text": "void"
117246
+ "text": "string"
117221
117247
  }
117248
+ },
117249
+ "inheritedFrom": {
117250
+ "name": "SbbIconNameMixin",
117251
+ "module": "icon/icon-name-mixin.js"
117222
117252
  }
117223
117253
  },
117224
117254
  {
117225
117255
  "kind": "method",
117226
- "name": "_assignLabel",
117256
+ "name": "_renderIconName",
117227
117257
  "privacy": "private",
117228
117258
  "return": {
117229
117259
  "type": {
117230
- "text": "void"
117260
+ "text": "string"
117231
117261
  }
117262
+ },
117263
+ "inheritedFrom": {
117264
+ "name": "SbbIconNameMixin",
117265
+ "module": "icon/icon-name-mixin.js"
117232
117266
  }
117233
117267
  },
117234
117268
  {
117235
117269
  "kind": "field",
117236
- "name": "_hydrationRequired",
117270
+ "name": "#disabled",
117271
+ "privacy": "private",
117237
117272
  "type": {
117238
117273
  "text": "boolean"
117239
117274
  },
117240
- "privacy": "private",
117241
- "default": "!!this.shadowRoot",
117275
+ "default": "false",
117242
117276
  "inheritedFrom": {
117243
- "name": "SbbElement",
117244
- "module": "core/base-elements/element.js"
117277
+ "name": "SbbDisabledMixin",
117278
+ "module": "core/mixins/disabled-mixin.js"
117245
117279
  }
117246
117280
  },
117247
117281
  {
117248
- "kind": "field",
117249
- "name": "_hydrationComplete",
117250
- "privacy": "private",
117251
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
117282
+ "kind": "method",
117283
+ "name": "isDisabledExternally",
117284
+ "privacy": "protected",
117285
+ "return": {
117286
+ "type": {
117287
+ "text": "boolean"
117288
+ }
117289
+ },
117290
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
117252
117291
  "inheritedFrom": {
117253
- "name": "SbbElement",
117254
- "module": "core/base-elements/element.js"
117292
+ "name": "SbbDisabledMixin",
117293
+ "module": "core/mixins/disabled-mixin.js"
117255
117294
  }
117256
117295
  },
117257
117296
  {
117258
117297
  "kind": "field",
117259
- "name": "_resolveHydration",
117298
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
117260
117299
  "type": {
117261
- "text": "(hydrationRequired: boolean) => void"
117300
+ "text": "array"
117262
117301
  },
117263
117302
  "privacy": "private",
117303
+ "readonly": true,
117304
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
117264
117305
  "inheritedFrom": {
117265
- "name": "SbbElement",
117266
- "module": "core/base-elements/element.js"
117306
+ "name": "SbbButtonBaseElement",
117307
+ "module": "core/base-elements/button-base-element.js"
117267
117308
  }
117268
117309
  },
117269
117310
  {
117270
117311
  "kind": "field",
117271
- "name": "hydrationRequired",
117312
+ "name": "value",
117272
117313
  "type": {
117273
- "text": "boolean"
117314
+ "text": "string"
117274
117315
  },
117275
- "privacy": "protected",
117276
- "description": "Returns whether hydration is required and not completed.",
117277
- "readonly": true,
117316
+ "privacy": "public",
117278
117317
  "inheritedFrom": {
117279
- "name": "SbbElement",
117280
- "module": "core/base-elements/element.js"
117318
+ "name": "SbbButtonBaseElement",
117319
+ "module": "core/base-elements/button-base-element.js"
117281
117320
  },
117282
- "default": "!!this.shadowRoot"
117321
+ "default": "''",
117322
+ "description": "Value of the form element.",
117323
+ "attribute": "value"
117324
+ },
117325
+ {
117326
+ "kind": "field",
117327
+ "name": "type",
117328
+ "privacy": "public",
117329
+ "description": "The type attribute to use for the button.",
117330
+ "default": "'button'",
117331
+ "type": {
117332
+ "text": "SbbButtonType"
117333
+ },
117334
+ "attribute": "type",
117335
+ "inheritedFrom": {
117336
+ "name": "SbbButtonBaseElement",
117337
+ "module": "core/base-elements/button-base-element.js"
117338
+ }
117339
+ },
117340
+ {
117341
+ "kind": "field",
117342
+ "name": "form",
117343
+ "type": {
117344
+ "text": "HTMLFormElement | null"
117345
+ },
117346
+ "privacy": "public",
117347
+ "description": "The `<form>` element to associate the button with.",
117348
+ "inheritedFrom": {
117349
+ "name": "SbbButtonBaseElement",
117350
+ "module": "core/base-elements/button-base-element.js"
117351
+ },
117352
+ "attribute": "form"
117353
+ },
117354
+ {
117355
+ "kind": "field",
117356
+ "name": "_formId",
117357
+ "type": {
117358
+ "text": "string"
117359
+ },
117360
+ "privacy": "private",
117361
+ "default": "''",
117362
+ "inheritedFrom": {
117363
+ "name": "SbbButtonBaseElement",
117364
+ "module": "core/base-elements/button-base-element.js"
117365
+ }
117366
+ },
117367
+ {
117368
+ "kind": "field",
117369
+ "name": "_handleButtonClick",
117370
+ "privacy": "private",
117371
+ "inheritedFrom": {
117372
+ "name": "SbbButtonBaseElement",
117373
+ "module": "core/base-elements/button-base-element.js"
117374
+ }
117283
117375
  },
117284
117376
  {
117285
117377
  "kind": "method",
117286
- "name": "toggleState",
117287
- "privacy": "protected",
117378
+ "name": "_requestSubmit",
117379
+ "privacy": "private",
117288
117380
  "return": {
117289
117381
  "type": {
117290
117382
  "text": "void"
@@ -117292,27 +117384,29 @@
117292
117384
  },
117293
117385
  "parameters": [
117294
117386
  {
117295
- "name": "value",
117296
- "type": {
117297
- "text": "string"
117298
- }
117299
- },
117300
- {
117301
- "name": "force",
117302
- "optional": true,
117387
+ "name": "form",
117303
117388
  "type": {
117304
- "text": "boolean"
117389
+ "text": "HTMLFormElement"
117305
117390
  }
117306
117391
  }
117307
117392
  ],
117308
117393
  "inheritedFrom": {
117309
- "name": "SbbElement",
117310
- "module": "core/base-elements/element.js"
117394
+ "name": "SbbButtonBaseElement",
117395
+ "module": "core/base-elements/button-base-element.js"
117311
117396
  }
117312
117397
  },
117313
117398
  {
117314
117399
  "kind": "field",
117315
- "name": "['_$sbbElement$']",
117400
+ "name": "_formKeyDown",
117401
+ "privacy": "private",
117402
+ "inheritedFrom": {
117403
+ "name": "SbbButtonBaseElement",
117404
+ "module": "core/base-elements/button-base-element.js"
117405
+ }
117406
+ },
117407
+ {
117408
+ "kind": "field",
117409
+ "name": "formAssociated",
117316
117410
  "type": {
117317
117411
  "text": "boolean"
117318
117412
  },
@@ -117320,624 +117414,714 @@
117320
117414
  "static": true,
117321
117415
  "default": "true",
117322
117416
  "inheritedFrom": {
117323
- "name": "SbbElement",
117324
- "module": "core/base-elements/element.js"
117417
+ "name": "SbbFormAssociatedMixin",
117418
+ "module": "core/mixins/form-associated-mixin.js"
117325
117419
  }
117326
117420
  },
117327
117421
  {
117328
117422
  "kind": "field",
117329
- "name": "_controllers",
117423
+ "name": "name",
117424
+ "privacy": "public",
117425
+ "description": "Name of the form element. Will be read from name attribute.",
117330
117426
  "type": {
117331
- "text": "Set<SbbReactiveController> | undefined"
117427
+ "text": "string"
117332
117428
  },
117333
- "privacy": "private",
117429
+ "attribute": "name",
117334
117430
  "inheritedFrom": {
117335
- "name": "SbbElement",
117336
- "module": "core/base-elements/element.js"
117431
+ "name": "SbbFormAssociatedMixin",
117432
+ "module": "core/mixins/form-associated-mixin.js"
117337
117433
  }
117338
- }
117339
- ],
117340
- "events": [
117341
- {
117342
- "name": "validate",
117343
- "type": {
117344
- "text": "CustomEvent<SbbStepValidateEventDetails>"
117345
- },
117346
- "description": "The validate event is dispatched when a step change is triggered. Can be canceled to abort the step change."
117347
- }
117348
- ],
117349
- "superclass": {
117350
- "name": "SbbElement",
117351
- "module": "core/base-elements.js"
117352
- },
117353
- "tagName": "sbb-step",
117354
- "customElement": true
117355
- }
117356
- ],
117357
- "exports": [
117358
- {
117359
- "kind": "js",
117360
- "name": "SbbStepElement",
117361
- "declaration": {
117362
- "name": "SbbStepElement",
117363
- "module": "stepper/step/step.component.js"
117364
- }
117365
- }
117366
- ]
117367
- },
117368
- {
117369
- "kind": "javascript-module",
117370
- "path": "stepper/step-label/step-label.component.js",
117371
- "declarations": [
117372
- {
117373
- "kind": "class",
117374
- "description": "Combined with a `sbb-stepper`, it displays a step's label.",
117375
- "name": "SbbStepLabelElement",
117376
- "slots": [
117377
- {
117378
- "description": "Use the unnamed slot to provide a label.",
117379
- "name": ""
117380
117434
  },
117381
- {
117382
- "description": "Use this to display an icon in the label bubble.",
117383
- "name": "icon"
117384
- }
117385
- ],
117386
- "members": [
117387
117435
  {
117388
117436
  "kind": "field",
117389
- "name": "elementName",
117437
+ "name": "validity",
117390
117438
  "type": {
117391
- "text": "string"
117439
+ "text": "ValidityState"
117392
117440
  },
117393
117441
  "privacy": "public",
117394
- "static": true,
117442
+ "description": "Returns the ValidityState object for this element.",
117395
117443
  "readonly": true,
117396
117444
  "inheritedFrom": {
117397
- "name": "SbbElement",
117398
- "module": "core/base-elements/element.js"
117399
- },
117400
- "default": "'sbb-step-label'"
117445
+ "name": "SbbFormAssociatedMixin",
117446
+ "module": "core/mixins/form-associated-mixin.js"
117447
+ }
117401
117448
  },
117402
117449
  {
117403
117450
  "kind": "field",
117404
- "name": "role",
117451
+ "name": "validationMessage",
117405
117452
  "type": {
117406
117453
  "text": "string"
117407
117454
  },
117408
117455
  "privacy": "public",
117409
- "static": true,
117456
+ "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.",
117410
117457
  "readonly": true,
117411
- "default": "'tab'",
117412
117458
  "inheritedFrom": {
117413
- "name": "SbbButtonLikeBaseElement",
117414
- "module": "core/base-elements/button-base-element.js"
117459
+ "name": "SbbFormAssociatedMixin",
117460
+ "module": "core/mixins/form-associated-mixin.js"
117415
117461
  }
117416
117462
  },
117417
117463
  {
117418
117464
  "kind": "field",
117419
- "name": "step",
117465
+ "name": "willValidate",
117420
117466
  "type": {
117421
- "text": "SbbStepElement | null"
117467
+ "text": "boolean"
117422
117468
  },
117423
117469
  "privacy": "public",
117424
- "description": "The step controlled by the label.",
117470
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
117425
117471
  "readonly": true,
117426
- "default": "null"
117472
+ "inheritedFrom": {
117473
+ "name": "SbbFormAssociatedMixin",
117474
+ "module": "core/mixins/form-associated-mixin.js"
117475
+ }
117427
117476
  },
117428
117477
  {
117429
117478
  "kind": "field",
117430
- "name": "_step",
117431
- "type": {
117432
- "text": "SbbStepElement | null"
117433
- },
117479
+ "name": "_validityStates",
117434
117480
  "privacy": "private",
117435
- "default": "null"
117436
- },
117437
- {
117438
- "kind": "field",
117439
- "name": "stepper",
117440
- "type": {
117441
- "text": "SbbStepperElement | null"
117442
- },
117443
- "privacy": "public",
117444
- "readonly": true
117481
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
117482
+ "inheritedFrom": {
117483
+ "name": "SbbFormAssociatedMixin",
117484
+ "module": "core/mixins/form-associated-mixin.js"
117485
+ }
117445
117486
  },
117446
117487
  {
117447
117488
  "kind": "field",
117448
- "name": "disabled",
117449
- "privacy": "public",
117450
- "description": "Whether the component is disabled.",
117451
- "default": "false",
117489
+ "name": "formDisabled",
117452
117490
  "type": {
117453
117491
  "text": "boolean"
117454
117492
  },
117455
- "attribute": "disabled",
117456
- "reflects": true,
117493
+ "privacy": "protected",
117494
+ "default": "false",
117495
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
117457
117496
  "inheritedFrom": {
117458
- "name": "SbbDisabledMixin",
117459
- "module": "core/mixins/disabled-mixin.js"
117497
+ "name": "SbbFormAssociatedMixin",
117498
+ "module": "core/mixins/form-associated-mixin.js"
117460
117499
  }
117461
117500
  },
117462
117501
  {
117463
- "kind": "field",
117464
- "name": "_previousOrientation",
117465
- "type": {
117466
- "text": "string | undefined"
117502
+ "kind": "method",
117503
+ "name": "checkValidity",
117504
+ "privacy": "public",
117505
+ "return": {
117506
+ "type": {
117507
+ "text": "boolean"
117508
+ }
117467
117509
  },
117468
- "privacy": "private"
117510
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
117511
+ "inheritedFrom": {
117512
+ "name": "SbbFormAssociatedMixin",
117513
+ "module": "core/mixins/form-associated-mixin.js"
117514
+ }
117469
117515
  },
117470
117516
  {
117471
- "kind": "field",
117472
- "name": "_previousSize",
117473
- "type": {
117474
- "text": "string | undefined"
117517
+ "kind": "method",
117518
+ "name": "reportValidity",
117519
+ "privacy": "public",
117520
+ "return": {
117521
+ "type": {
117522
+ "text": "boolean"
117523
+ }
117475
117524
  },
117476
- "privacy": "private"
117525
+ "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.",
117526
+ "inheritedFrom": {
117527
+ "name": "SbbFormAssociatedMixin",
117528
+ "module": "core/mixins/form-associated-mixin.js"
117529
+ }
117477
117530
  },
117478
117531
  {
117479
117532
  "kind": "method",
117480
- "name": "_isNotDeactivatedByLinearMode",
117481
- "privacy": "private",
117533
+ "name": "setCustomValidity",
117534
+ "privacy": "public",
117482
117535
  "return": {
117483
117536
  "type": {
117484
- "text": "boolean"
117537
+ "text": "void"
117485
117538
  }
117486
117539
  },
117487
117540
  "parameters": [
117488
117541
  {
117489
- "name": "step",
117542
+ "name": "message",
117490
117543
  "type": {
117491
- "text": "SbbStepElement"
117544
+ "text": "string"
117492
117545
  }
117493
117546
  }
117494
- ]
117547
+ ],
117548
+ "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.",
117549
+ "inheritedFrom": {
117550
+ "name": "SbbFormAssociatedMixin",
117551
+ "module": "core/mixins/form-associated-mixin.js"
117552
+ }
117495
117553
  },
117496
117554
  {
117497
117555
  "kind": "method",
117498
- "name": "_assignStep",
117556
+ "name": "_hasDisabledAncestor",
117499
117557
  "privacy": "private",
117558
+ "return": {
117559
+ "type": {
117560
+ "text": "boolean"
117561
+ }
117562
+ },
117563
+ "inheritedFrom": {
117564
+ "name": "SbbFormAssociatedMixin",
117565
+ "module": "core/mixins/form-associated-mixin.js"
117566
+ }
117567
+ },
117568
+ {
117569
+ "kind": "method",
117570
+ "name": "updateFormValue",
117571
+ "privacy": "protected",
117500
117572
  "return": {
117501
117573
  "type": {
117502
117574
  "text": "void"
117503
117575
  }
117576
+ },
117577
+ "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",
117578
+ "inheritedFrom": {
117579
+ "name": "SbbFormAssociatedMixin",
117580
+ "module": "core/mixins/form-associated-mixin.js"
117504
117581
  }
117505
117582
  },
117506
117583
  {
117507
- "kind": "field",
117508
- "name": "iconName",
117509
- "type": {
117510
- "text": "string"
117584
+ "kind": "method",
117585
+ "name": "formState",
117586
+ "privacy": "protected",
117587
+ "return": {
117588
+ "type": {
117589
+ "text": "FormRestoreState"
117590
+ }
117511
117591
  },
117512
- "privacy": "public",
117513
- "default": "''",
117514
- "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.",
117515
- "attribute": "icon-name",
117516
117592
  "inheritedFrom": {
117517
- "name": "SbbIconNameMixin",
117518
- "module": "icon/icon-name-mixin.js"
117593
+ "name": "SbbFormAssociatedMixin",
117594
+ "module": "core/mixins/form-associated-mixin.js"
117519
117595
  }
117520
117596
  },
117521
117597
  {
117522
117598
  "kind": "method",
117523
- "name": "renderIconSlot",
117599
+ "name": "setValidityFlag",
117524
117600
  "privacy": "protected",
117525
117601
  "return": {
117526
117602
  "type": {
117527
- "text": "TemplateResult"
117603
+ "text": "void"
117528
117604
  }
117529
117605
  },
117530
117606
  "parameters": [
117531
117607
  {
117532
- "name": "classname",
117533
- "optional": true,
117608
+ "name": "flag",
117609
+ "type": {
117610
+ "text": "T"
117611
+ }
117612
+ },
117613
+ {
117614
+ "name": "message",
117534
117615
  "type": {
117535
117616
  "text": "string"
117536
117617
  }
117618
+ },
117619
+ {
117620
+ "name": "flagValue",
117621
+ "optional": true,
117622
+ "type": {
117623
+ "text": "ValidityStateFlags[T]"
117624
+ }
117537
117625
  }
117538
117626
  ],
117627
+ "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).",
117539
117628
  "inheritedFrom": {
117540
- "name": "SbbIconNameMixin",
117541
- "module": "icon/icon-name-mixin.js"
117629
+ "name": "SbbFormAssociatedMixin",
117630
+ "module": "core/mixins/form-associated-mixin.js"
117542
117631
  }
117543
117632
  },
117544
117633
  {
117545
117634
  "kind": "method",
117546
- "name": "renderIconName",
117635
+ "name": "removeValidityFlag",
117547
117636
  "privacy": "protected",
117548
117637
  "return": {
117549
117638
  "type": {
117550
- "text": "string"
117639
+ "text": "void"
117551
117640
  }
117552
117641
  },
117642
+ "parameters": [
117643
+ {
117644
+ "name": "flag",
117645
+ "type": {
117646
+ "text": "T"
117647
+ }
117648
+ }
117649
+ ],
117650
+ "description": "Removes the validity state flag entry and updates validity state.",
117553
117651
  "inheritedFrom": {
117554
- "name": "SbbIconNameMixin",
117555
- "module": "icon/icon-name-mixin.js"
117652
+ "name": "SbbFormAssociatedMixin",
117653
+ "module": "core/mixins/form-associated-mixin.js"
117556
117654
  }
117557
117655
  },
117558
117656
  {
117559
117657
  "kind": "method",
117560
- "name": "_renderIconName",
117561
- "privacy": "private",
117658
+ "name": "validate",
117659
+ "privacy": "protected",
117562
117660
  "return": {
117563
117661
  "type": {
117564
- "text": "string"
117662
+ "text": "void"
117565
117663
  }
117566
117664
  },
117665
+ "description": "To be called whenever the current element needs to be validated.",
117567
117666
  "inheritedFrom": {
117568
- "name": "SbbIconNameMixin",
117569
- "module": "icon/icon-name-mixin.js"
117667
+ "name": "SbbFormAssociatedMixin",
117668
+ "module": "core/mixins/form-associated-mixin.js"
117570
117669
  }
117571
117670
  },
117572
117671
  {
117573
- "kind": "field",
117574
- "name": "#disabled",
117575
- "privacy": "private",
117576
- "type": {
117577
- "text": "boolean"
117672
+ "kind": "method",
117673
+ "name": "shouldValidate",
117674
+ "privacy": "protected",
117675
+ "return": {
117676
+ "type": {
117677
+ "text": "boolean"
117678
+ }
117578
117679
  },
117579
- "default": "false",
117680
+ "parameters": [
117681
+ {
117682
+ "name": "name",
117683
+ "type": {
117684
+ "text": "PropertyKey | undefined"
117685
+ }
117686
+ }
117687
+ ],
117688
+ "description": "Whether validation should be run on a property change with the given name.",
117580
117689
  "inheritedFrom": {
117581
- "name": "SbbDisabledMixin",
117582
- "module": "core/mixins/disabled-mixin.js"
117690
+ "name": "SbbFormAssociatedMixin",
117691
+ "module": "core/mixins/form-associated-mixin.js"
117583
117692
  }
117584
117693
  },
117585
117694
  {
117586
117695
  "kind": "method",
117587
- "name": "isDisabledExternally",
117588
- "privacy": "protected",
117696
+ "name": "_setInternalValidity",
117697
+ "privacy": "private",
117589
117698
  "return": {
117590
117699
  "type": {
117591
- "text": "boolean"
117700
+ "text": "void"
117592
117701
  }
117593
117702
  },
117594
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
117595
117703
  "inheritedFrom": {
117596
- "name": "SbbDisabledMixin",
117597
- "module": "core/mixins/disabled-mixin.js"
117704
+ "name": "SbbFormAssociatedMixin",
117705
+ "module": "core/mixins/form-associated-mixin.js"
117598
117706
  }
117599
117707
  },
117600
117708
  {
117601
117709
  "kind": "field",
117602
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
117603
- "type": {
117604
- "text": "array"
117605
- },
117710
+ "name": "_preventScrollOnSpaceKeydown",
117606
117711
  "privacy": "private",
117607
- "readonly": true,
117608
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
117712
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
117713
+ "parameters": [
117714
+ {
117715
+ "description": "The origin event.",
117716
+ "name": "event"
117717
+ }
117718
+ ],
117609
117719
  "inheritedFrom": {
117610
- "name": "SbbButtonBaseElement",
117720
+ "name": "SbbButtonLikeBaseElement",
117611
117721
  "module": "core/base-elements/button-base-element.js"
117612
117722
  }
117613
117723
  },
117614
117724
  {
117615
117725
  "kind": "field",
117616
- "name": "value",
117617
- "type": {
117618
- "text": "string"
117619
- },
117620
- "privacy": "public",
117726
+ "name": "_removeActiveMarker",
117727
+ "privacy": "private",
117621
117728
  "inheritedFrom": {
117622
- "name": "SbbButtonBaseElement",
117729
+ "name": "SbbButtonLikeBaseElement",
117623
117730
  "module": "core/base-elements/button-base-element.js"
117624
- },
117625
- "default": "''",
117626
- "description": "Value of the form element.",
117627
- "attribute": "value"
117731
+ }
117628
117732
  },
117629
117733
  {
117630
117734
  "kind": "field",
117631
- "name": "type",
117632
- "privacy": "public",
117633
- "description": "The type attribute to use for the button.",
117634
- "default": "'button'",
117635
- "type": {
117636
- "text": "SbbButtonType"
117637
- },
117638
- "attribute": "type",
117735
+ "name": "_dispatchClickEventOnSpaceKeyup",
117736
+ "privacy": "private",
117737
+ "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.",
117738
+ "parameters": [
117739
+ {
117740
+ "description": "The origin event.",
117741
+ "name": "event"
117742
+ }
117743
+ ],
117639
117744
  "inheritedFrom": {
117640
- "name": "SbbButtonBaseElement",
117745
+ "name": "SbbButtonLikeBaseElement",
117641
117746
  "module": "core/base-elements/button-base-element.js"
117642
117747
  }
117643
117748
  },
117644
117749
  {
117645
117750
  "kind": "field",
117646
- "name": "form",
117647
- "type": {
117648
- "text": "HTMLFormElement | null"
117649
- },
117650
- "privacy": "public",
117651
- "description": "The `<form>` element to associate the button with.",
117751
+ "name": "_dispatchClickEvent",
117752
+ "privacy": "private",
117652
117753
  "inheritedFrom": {
117653
- "name": "SbbButtonBaseElement",
117754
+ "name": "SbbButtonLikeBaseElement",
117654
117755
  "module": "core/base-elements/button-base-element.js"
117655
- },
117656
- "attribute": "form"
117756
+ }
117657
117757
  },
117658
117758
  {
117659
117759
  "kind": "field",
117660
- "name": "_formId",
117760
+ "name": "maybeDisabled",
117661
117761
  "type": {
117662
- "text": "string"
117762
+ "text": "boolean | undefined"
117663
117763
  },
117664
- "privacy": "private",
117665
- "default": "''",
117764
+ "privacy": "protected",
117765
+ "readonly": true,
117666
117766
  "inheritedFrom": {
117667
- "name": "SbbButtonBaseElement",
117668
- "module": "core/base-elements/button-base-element.js"
117767
+ "name": "SbbActionBaseElement",
117768
+ "module": "core/base-elements/action-base-element.js"
117669
117769
  }
117670
117770
  },
117671
117771
  {
117672
117772
  "kind": "field",
117673
- "name": "_handleButtonClick",
117674
- "privacy": "private",
117773
+ "name": "maybeDisabledInteractive",
117774
+ "type": {
117775
+ "text": "boolean | undefined"
117776
+ },
117777
+ "privacy": "protected",
117778
+ "readonly": true,
117675
117779
  "inheritedFrom": {
117676
- "name": "SbbButtonBaseElement",
117677
- "module": "core/base-elements/button-base-element.js"
117780
+ "name": "SbbActionBaseElement",
117781
+ "module": "core/base-elements/action-base-element.js"
117678
117782
  }
117679
117783
  },
117680
117784
  {
117681
117785
  "kind": "method",
117682
- "name": "_requestSubmit",
117683
- "privacy": "private",
117786
+ "name": "setupBaseEventHandlers",
117787
+ "privacy": "protected",
117684
117788
  "return": {
117685
117789
  "type": {
117686
117790
  "text": "void"
117687
117791
  }
117688
117792
  },
117689
- "parameters": [
117690
- {
117691
- "name": "form",
117692
- "type": {
117693
- "text": "HTMLFormElement"
117694
- }
117793
+ "inheritedFrom": {
117794
+ "name": "SbbActionBaseElement",
117795
+ "module": "core/base-elements/action-base-element.js"
117796
+ }
117797
+ },
117798
+ {
117799
+ "kind": "method",
117800
+ "name": "renderTemplate",
117801
+ "privacy": "protected",
117802
+ "return": {
117803
+ "type": {
117804
+ "text": "TemplateResult"
117695
117805
  }
117696
- ],
117806
+ },
117807
+ "description": "Override this method to render the component template.",
117697
117808
  "inheritedFrom": {
117698
- "name": "SbbButtonBaseElement",
117699
- "module": "core/base-elements/button-base-element.js"
117809
+ "name": "SbbActionBaseElement",
117810
+ "module": "core/base-elements/action-base-element.js"
117700
117811
  }
117701
117812
  },
117702
117813
  {
117703
117814
  "kind": "field",
117704
- "name": "_formKeyDown",
117815
+ "name": "_hydrationRequired",
117816
+ "type": {
117817
+ "text": "boolean"
117818
+ },
117705
117819
  "privacy": "private",
117820
+ "default": "!!this.shadowRoot",
117706
117821
  "inheritedFrom": {
117707
- "name": "SbbButtonBaseElement",
117708
- "module": "core/base-elements/button-base-element.js"
117822
+ "name": "SbbElement",
117823
+ "module": "core/base-elements/element.js"
117709
117824
  }
117710
117825
  },
117711
117826
  {
117712
117827
  "kind": "field",
117713
- "name": "formAssociated",
117714
- "type": {
117715
- "text": "boolean"
117716
- },
117717
- "privacy": "public",
117718
- "static": true,
117719
- "default": "true",
117828
+ "name": "_hydrationComplete",
117829
+ "privacy": "private",
117830
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
117720
117831
  "inheritedFrom": {
117721
- "name": "SbbFormAssociatedMixin",
117722
- "module": "core/mixins/form-associated-mixin.js"
117832
+ "name": "SbbElement",
117833
+ "module": "core/base-elements/element.js"
117723
117834
  }
117724
117835
  },
117725
117836
  {
117726
117837
  "kind": "field",
117727
- "name": "name",
117728
- "privacy": "public",
117729
- "description": "Name of the form element. Will be read from name attribute.",
117838
+ "name": "_resolveHydration",
117730
117839
  "type": {
117731
- "text": "string"
117840
+ "text": "(hydrationRequired: boolean) => void"
117732
117841
  },
117733
- "attribute": "name",
117842
+ "privacy": "private",
117734
117843
  "inheritedFrom": {
117735
- "name": "SbbFormAssociatedMixin",
117736
- "module": "core/mixins/form-associated-mixin.js"
117844
+ "name": "SbbElement",
117845
+ "module": "core/base-elements/element.js"
117737
117846
  }
117738
117847
  },
117739
117848
  {
117740
117849
  "kind": "field",
117741
- "name": "validity",
117850
+ "name": "hydrationRequired",
117742
117851
  "type": {
117743
- "text": "ValidityState"
117852
+ "text": "boolean"
117744
117853
  },
117745
- "privacy": "public",
117746
- "description": "Returns the ValidityState object for this element.",
117854
+ "privacy": "protected",
117855
+ "description": "Returns whether hydration is required and not completed.",
117747
117856
  "readonly": true,
117748
117857
  "inheritedFrom": {
117749
- "name": "SbbFormAssociatedMixin",
117750
- "module": "core/mixins/form-associated-mixin.js"
117751
- }
117858
+ "name": "SbbElement",
117859
+ "module": "core/base-elements/element.js"
117860
+ },
117861
+ "default": "!!this.shadowRoot"
117752
117862
  },
117753
117863
  {
117754
- "kind": "field",
117755
- "name": "validationMessage",
117756
- "type": {
117757
- "text": "string"
117864
+ "kind": "method",
117865
+ "name": "toggleState",
117866
+ "privacy": "protected",
117867
+ "return": {
117868
+ "type": {
117869
+ "text": "void"
117870
+ }
117758
117871
  },
117759
- "privacy": "public",
117760
- "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.",
117761
- "readonly": true,
117872
+ "parameters": [
117873
+ {
117874
+ "name": "value",
117875
+ "type": {
117876
+ "text": "string"
117877
+ }
117878
+ },
117879
+ {
117880
+ "name": "force",
117881
+ "optional": true,
117882
+ "type": {
117883
+ "text": "boolean"
117884
+ }
117885
+ }
117886
+ ],
117762
117887
  "inheritedFrom": {
117763
- "name": "SbbFormAssociatedMixin",
117764
- "module": "core/mixins/form-associated-mixin.js"
117888
+ "name": "SbbElement",
117889
+ "module": "core/base-elements/element.js"
117765
117890
  }
117766
117891
  },
117767
117892
  {
117768
117893
  "kind": "field",
117769
- "name": "willValidate",
117894
+ "name": "['_$sbbElement$']",
117770
117895
  "type": {
117771
117896
  "text": "boolean"
117772
117897
  },
117773
117898
  "privacy": "public",
117774
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
117775
- "readonly": true,
117899
+ "static": true,
117900
+ "default": "true",
117776
117901
  "inheritedFrom": {
117777
- "name": "SbbFormAssociatedMixin",
117778
- "module": "core/mixins/form-associated-mixin.js"
117902
+ "name": "SbbElement",
117903
+ "module": "core/base-elements/element.js"
117779
117904
  }
117780
117905
  },
117781
117906
  {
117782
117907
  "kind": "field",
117783
- "name": "_validityStates",
117908
+ "name": "_controllers",
117909
+ "type": {
117910
+ "text": "Set<SbbReactiveController> | undefined"
117911
+ },
117784
117912
  "privacy": "private",
117785
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
117786
117913
  "inheritedFrom": {
117787
- "name": "SbbFormAssociatedMixin",
117788
- "module": "core/mixins/form-associated-mixin.js"
117914
+ "name": "SbbElement",
117915
+ "module": "core/base-elements/element.js"
117789
117916
  }
117917
+ }
117918
+ ],
117919
+ "mixins": [
117920
+ {
117921
+ "name": "SbbIconNameMixin",
117922
+ "module": "icon.js"
117790
117923
  },
117791
117924
  {
117792
- "kind": "field",
117793
- "name": "formDisabled",
117925
+ "name": "SbbDisabledMixin",
117926
+ "module": "core/mixins.js"
117927
+ }
117928
+ ],
117929
+ "superclass": {
117930
+ "name": "SbbButtonBaseElement",
117931
+ "module": "core/base-elements.js"
117932
+ },
117933
+ "tagName": "sbb-step-label",
117934
+ "customElement": true,
117935
+ "attributes": [
117936
+ {
117937
+ "name": "icon-name",
117794
117938
  "type": {
117795
- "text": "boolean"
117939
+ "text": "string"
117796
117940
  },
117797
- "privacy": "protected",
117798
- "default": "false",
117799
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
117941
+ "default": "''",
117942
+ "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.",
117943
+ "fieldName": "iconName",
117800
117944
  "inheritedFrom": {
117801
- "name": "SbbFormAssociatedMixin",
117802
- "module": "core/mixins/form-associated-mixin.js"
117945
+ "name": "SbbIconNameMixin",
117946
+ "module": "icon/icon-name-mixin.js"
117803
117947
  }
117804
117948
  },
117805
117949
  {
117806
- "kind": "method",
117807
- "name": "checkValidity",
117808
- "privacy": "public",
117809
- "return": {
117810
- "type": {
117811
- "text": "boolean"
117812
- }
117950
+ "name": "disabled",
117951
+ "description": "Whether the component is disabled.",
117952
+ "default": "false",
117953
+ "type": {
117954
+ "text": "boolean"
117813
117955
  },
117814
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
117956
+ "fieldName": "disabled",
117815
117957
  "inheritedFrom": {
117816
- "name": "SbbFormAssociatedMixin",
117817
- "module": "core/mixins/form-associated-mixin.js"
117958
+ "name": "SbbDisabledMixin",
117959
+ "module": "core/mixins/disabled-mixin.js"
117818
117960
  }
117819
117961
  },
117820
117962
  {
117821
- "kind": "method",
117822
- "name": "reportValidity",
117823
- "privacy": "public",
117824
- "return": {
117825
- "type": {
117826
- "text": "boolean"
117827
- }
117963
+ "name": "value",
117964
+ "type": {
117965
+ "text": "string"
117828
117966
  },
117829
- "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.",
117967
+ "default": "''",
117968
+ "description": "Value of the form element.",
117969
+ "fieldName": "value",
117830
117970
  "inheritedFrom": {
117831
- "name": "SbbFormAssociatedMixin",
117832
- "module": "core/mixins/form-associated-mixin.js"
117971
+ "name": "SbbButtonBaseElement",
117972
+ "module": "core/base-elements/button-base-element.js"
117833
117973
  }
117834
117974
  },
117835
117975
  {
117836
- "kind": "method",
117837
- "name": "setCustomValidity",
117838
- "privacy": "public",
117839
- "return": {
117840
- "type": {
117841
- "text": "void"
117842
- }
117976
+ "name": "type",
117977
+ "description": "The type attribute to use for the button.",
117978
+ "default": "'button'",
117979
+ "type": {
117980
+ "text": "SbbButtonType"
117843
117981
  },
117844
- "parameters": [
117845
- {
117846
- "name": "message",
117847
- "type": {
117848
- "text": "string"
117849
- }
117850
- }
117851
- ],
117852
- "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.",
117982
+ "fieldName": "type",
117853
117983
  "inheritedFrom": {
117854
- "name": "SbbFormAssociatedMixin",
117855
- "module": "core/mixins/form-associated-mixin.js"
117984
+ "name": "SbbButtonBaseElement",
117985
+ "module": "core/base-elements/button-base-element.js"
117856
117986
  }
117857
117987
  },
117858
117988
  {
117859
- "kind": "method",
117860
- "name": "_hasDisabledAncestor",
117861
- "privacy": "private",
117862
- "return": {
117863
- "type": {
117864
- "text": "boolean"
117865
- }
117989
+ "name": "form",
117990
+ "description": "The `<form>` element to associate the button with.",
117991
+ "type": {
117992
+ "text": "HTMLFormElement | null"
117866
117993
  },
117994
+ "fieldName": "form",
117867
117995
  "inheritedFrom": {
117868
- "name": "SbbFormAssociatedMixin",
117869
- "module": "core/mixins/form-associated-mixin.js"
117996
+ "name": "SbbButtonBaseElement",
117997
+ "module": "core/base-elements/button-base-element.js"
117870
117998
  }
117871
117999
  },
117872
118000
  {
117873
- "kind": "method",
117874
- "name": "updateFormValue",
117875
- "privacy": "protected",
117876
- "return": {
117877
- "type": {
117878
- "text": "void"
117879
- }
118001
+ "name": "name",
118002
+ "description": "Name of the form element. Will be read from name attribute.",
118003
+ "type": {
118004
+ "text": "string"
117880
118005
  },
117881
- "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",
118006
+ "fieldName": "name",
117882
118007
  "inheritedFrom": {
117883
118008
  "name": "SbbFormAssociatedMixin",
117884
118009
  "module": "core/mixins/form-associated-mixin.js"
117885
118010
  }
117886
- },
118011
+ }
118012
+ ]
118013
+ }
118014
+ ],
118015
+ "exports": [
118016
+ {
118017
+ "kind": "js",
118018
+ "name": "SbbStepLabelElement",
118019
+ "declaration": {
118020
+ "name": "SbbStepLabelElement",
118021
+ "module": "stepper/step-label/step-label.component.js"
118022
+ }
118023
+ }
118024
+ ]
118025
+ },
118026
+ {
118027
+ "kind": "javascript-module",
118028
+ "path": "stepper/step/step.component.js",
118029
+ "declarations": [
118030
+ {
118031
+ "kind": "class",
118032
+ "description": "Combined with a `sbb-stepper`, it displays a step's content.",
118033
+ "name": "SbbStepElement",
118034
+ "slots": [
117887
118035
  {
117888
- "kind": "method",
117889
- "name": "formState",
117890
- "privacy": "protected",
117891
- "return": {
117892
- "type": {
117893
- "text": "FormRestoreState"
117894
- }
118036
+ "description": "Use the unnamed slot to provide content.",
118037
+ "name": ""
118038
+ }
118039
+ ],
118040
+ "members": [
118041
+ {
118042
+ "kind": "field",
118043
+ "name": "elementName",
118044
+ "type": {
118045
+ "text": "string"
117895
118046
  },
118047
+ "privacy": "public",
118048
+ "static": true,
118049
+ "readonly": true,
118050
+ "default": "'sbb-step'",
117896
118051
  "inheritedFrom": {
117897
- "name": "SbbFormAssociatedMixin",
117898
- "module": "core/mixins/form-associated-mixin.js"
118052
+ "name": "SbbElement",
118053
+ "module": "core/base-elements/element.js"
117899
118054
  }
117900
118055
  },
117901
118056
  {
117902
- "kind": "method",
117903
- "name": "setValidityFlag",
117904
- "privacy": "protected",
117905
- "return": {
117906
- "type": {
117907
- "text": "void"
117908
- }
118057
+ "kind": "field",
118058
+ "name": "role",
118059
+ "type": {
118060
+ "text": "string"
117909
118061
  },
117910
- "parameters": [
117911
- {
117912
- "name": "flag",
117913
- "type": {
117914
- "text": "T"
117915
- }
117916
- },
117917
- {
117918
- "name": "message",
117919
- "type": {
117920
- "text": "string"
117921
- }
117922
- },
117923
- {
117924
- "name": "flagValue",
117925
- "optional": true,
117926
- "type": {
117927
- "text": "ValidityStateFlags[T]"
117928
- }
117929
- }
117930
- ],
117931
- "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).",
117932
- "inheritedFrom": {
117933
- "name": "SbbFormAssociatedMixin",
117934
- "module": "core/mixins/form-associated-mixin.js"
118062
+ "privacy": "public",
118063
+ "static": true,
118064
+ "readonly": true,
118065
+ "default": "'tabpanel'"
118066
+ },
118067
+ {
118068
+ "kind": "field",
118069
+ "name": "events",
118070
+ "privacy": "public",
118071
+ "static": true,
118072
+ "readonly": true,
118073
+ "default": "{ validate: 'validate', resizechange: 'resizechange', }",
118074
+ "type": {
118075
+ "text": "{\n validate: 'validate',\n resizechange: 'resizechange',\n }"
117935
118076
  }
117936
118077
  },
118078
+ {
118079
+ "kind": "field",
118080
+ "name": "_stepResizeObserver",
118081
+ "privacy": "private",
118082
+ "default": "new ResizeController(this, { target: null, skipInitial: true, callback: () => setTimeout(() => this._onStepElementResize()), })"
118083
+ },
118084
+ {
118085
+ "kind": "field",
118086
+ "name": "label",
118087
+ "type": {
118088
+ "text": "SbbStepLabelElement | null"
118089
+ },
118090
+ "privacy": "public",
118091
+ "description": "The label of the step.",
118092
+ "readonly": true,
118093
+ "default": "null"
118094
+ },
118095
+ {
118096
+ "kind": "field",
118097
+ "name": "_label",
118098
+ "type": {
118099
+ "text": "SbbStepLabelElement | null"
118100
+ },
118101
+ "privacy": "private",
118102
+ "default": "null"
118103
+ },
118104
+ {
118105
+ "kind": "field",
118106
+ "name": "stepper",
118107
+ "type": {
118108
+ "text": "SbbStepperElement | null"
118109
+ },
118110
+ "privacy": "public",
118111
+ "readonly": true
118112
+ },
118113
+ {
118114
+ "kind": "field",
118115
+ "name": "_previousOrientation",
118116
+ "type": {
118117
+ "text": "string | undefined"
118118
+ },
118119
+ "privacy": "private"
118120
+ },
117937
118121
  {
117938
118122
  "kind": "method",
117939
- "name": "removeValidityFlag",
117940
- "privacy": "protected",
118123
+ "name": "_handleClick",
118124
+ "privacy": "private",
117941
118125
  "return": {
117942
118126
  "type": {
117943
118127
  "text": "void"
@@ -117945,37 +118129,18 @@
117945
118129
  },
117946
118130
  "parameters": [
117947
118131
  {
117948
- "name": "flag",
118132
+ "name": "event",
117949
118133
  "type": {
117950
- "text": "T"
118134
+ "text": "Event"
117951
118135
  }
117952
118136
  }
117953
118137
  ],
117954
- "description": "Removes the validity state flag entry and updates validity state.",
117955
- "inheritedFrom": {
117956
- "name": "SbbFormAssociatedMixin",
117957
- "module": "core/mixins/form-associated-mixin.js"
117958
- }
117959
- },
117960
- {
117961
- "kind": "method",
117962
- "name": "validate",
117963
- "privacy": "protected",
117964
- "return": {
117965
- "type": {
117966
- "text": "void"
117967
- }
117968
- },
117969
- "description": "To be called whenever the current element needs to be validated.",
117970
- "inheritedFrom": {
117971
- "name": "SbbFormAssociatedMixin",
117972
- "module": "core/mixins/form-associated-mixin.js"
117973
- }
118138
+ "description": "Watches for clicked elements with `sbb-stepper-next` or `sbb-stepper-previous` attributes."
117974
118139
  },
117975
118140
  {
117976
118141
  "kind": "method",
117977
- "name": "shouldValidate",
117978
- "privacy": "protected",
118142
+ "name": "_isGoNextElement",
118143
+ "privacy": "private",
117979
118144
  "return": {
117980
118145
  "type": {
117981
118146
  "text": "boolean"
@@ -117983,135 +118148,49 @@
117983
118148
  },
117984
118149
  "parameters": [
117985
118150
  {
117986
- "name": "name",
118151
+ "name": "element",
117987
118152
  "type": {
117988
- "text": "PropertyKey | undefined"
118153
+ "text": "HTMLElement"
117989
118154
  }
117990
118155
  }
117991
- ],
117992
- "description": "Whether validation should be run on a property change with the given name.",
117993
- "inheritedFrom": {
117994
- "name": "SbbFormAssociatedMixin",
117995
- "module": "core/mixins/form-associated-mixin.js"
117996
- }
118156
+ ]
117997
118157
  },
117998
118158
  {
117999
118159
  "kind": "method",
118000
- "name": "_setInternalValidity",
118160
+ "name": "_isGoPreviousElement",
118001
118161
  "privacy": "private",
118002
118162
  "return": {
118003
118163
  "type": {
118004
- "text": "void"
118164
+ "text": "boolean"
118005
118165
  }
118006
118166
  },
118007
- "inheritedFrom": {
118008
- "name": "SbbFormAssociatedMixin",
118009
- "module": "core/mixins/form-associated-mixin.js"
118010
- }
118011
- },
118012
- {
118013
- "kind": "field",
118014
- "name": "_preventScrollOnSpaceKeydown",
118015
- "privacy": "private",
118016
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
118017
- "parameters": [
118018
- {
118019
- "description": "The origin event.",
118020
- "name": "event"
118021
- }
118022
- ],
118023
- "inheritedFrom": {
118024
- "name": "SbbButtonLikeBaseElement",
118025
- "module": "core/base-elements/button-base-element.js"
118026
- }
118027
- },
118028
- {
118029
- "kind": "field",
118030
- "name": "_removeActiveMarker",
118031
- "privacy": "private",
118032
- "inheritedFrom": {
118033
- "name": "SbbButtonLikeBaseElement",
118034
- "module": "core/base-elements/button-base-element.js"
118035
- }
118036
- },
118037
- {
118038
- "kind": "field",
118039
- "name": "_dispatchClickEventOnSpaceKeyup",
118040
- "privacy": "private",
118041
- "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.",
118042
118167
  "parameters": [
118043
118168
  {
118044
- "description": "The origin event.",
118045
- "name": "event"
118169
+ "name": "element",
118170
+ "type": {
118171
+ "text": "HTMLElement"
118172
+ }
118046
118173
  }
118047
- ],
118048
- "inheritedFrom": {
118049
- "name": "SbbButtonLikeBaseElement",
118050
- "module": "core/base-elements/button-base-element.js"
118051
- }
118052
- },
118053
- {
118054
- "kind": "field",
118055
- "name": "_dispatchClickEvent",
118056
- "privacy": "private",
118057
- "inheritedFrom": {
118058
- "name": "SbbButtonLikeBaseElement",
118059
- "module": "core/base-elements/button-base-element.js"
118060
- }
118061
- },
118062
- {
118063
- "kind": "field",
118064
- "name": "maybeDisabled",
118065
- "type": {
118066
- "text": "boolean | undefined"
118067
- },
118068
- "privacy": "protected",
118069
- "readonly": true,
118070
- "inheritedFrom": {
118071
- "name": "SbbActionBaseElement",
118072
- "module": "core/base-elements/action-base-element.js"
118073
- }
118074
- },
118075
- {
118076
- "kind": "field",
118077
- "name": "maybeDisabledInteractive",
118078
- "type": {
118079
- "text": "boolean | undefined"
118080
- },
118081
- "privacy": "protected",
118082
- "readonly": true,
118083
- "inheritedFrom": {
118084
- "name": "SbbActionBaseElement",
118085
- "module": "core/base-elements/action-base-element.js"
118086
- }
118174
+ ]
118087
118175
  },
118088
118176
  {
118089
118177
  "kind": "method",
118090
- "name": "setupBaseEventHandlers",
118091
- "privacy": "protected",
118178
+ "name": "_onStepElementResize",
118179
+ "privacy": "private",
118092
118180
  "return": {
118093
118181
  "type": {
118094
118182
  "text": "void"
118095
118183
  }
118096
- },
118097
- "inheritedFrom": {
118098
- "name": "SbbActionBaseElement",
118099
- "module": "core/base-elements/action-base-element.js"
118100
118184
  }
118101
118185
  },
118102
118186
  {
118103
118187
  "kind": "method",
118104
- "name": "renderTemplate",
118105
- "privacy": "protected",
118188
+ "name": "_assignLabel",
118189
+ "privacy": "private",
118106
118190
  "return": {
118107
118191
  "type": {
118108
- "text": "TemplateResult"
118192
+ "text": "void"
118109
118193
  }
118110
- },
118111
- "description": "Override this method to render the component template.",
118112
- "inheritedFrom": {
118113
- "name": "SbbActionBaseElement",
118114
- "module": "core/base-elements/action-base-element.js"
118115
118194
  }
118116
118195
  },
118117
118196
  {
@@ -118220,109 +118299,30 @@
118220
118299
  }
118221
118300
  }
118222
118301
  ],
118223
- "mixins": [
118224
- {
118225
- "name": "SbbIconNameMixin",
118226
- "module": "icon.js"
118227
- },
118302
+ "events": [
118228
118303
  {
118229
- "name": "SbbDisabledMixin",
118230
- "module": "core/mixins.js"
118304
+ "name": "validate",
118305
+ "type": {
118306
+ "text": "CustomEvent<SbbStepValidateEventDetails>"
118307
+ },
118308
+ "description": "The validate event is dispatched when a step change is triggered. Can be canceled to abort the step change."
118231
118309
  }
118232
118310
  ],
118233
118311
  "superclass": {
118234
- "name": "SbbButtonBaseElement",
118312
+ "name": "SbbElement",
118235
118313
  "module": "core/base-elements.js"
118236
118314
  },
118237
- "tagName": "sbb-step-label",
118238
- "customElement": true,
118239
- "attributes": [
118240
- {
118241
- "name": "icon-name",
118242
- "type": {
118243
- "text": "string"
118244
- },
118245
- "default": "''",
118246
- "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.",
118247
- "fieldName": "iconName",
118248
- "inheritedFrom": {
118249
- "name": "SbbIconNameMixin",
118250
- "module": "icon/icon-name-mixin.js"
118251
- }
118252
- },
118253
- {
118254
- "name": "disabled",
118255
- "description": "Whether the component is disabled.",
118256
- "default": "false",
118257
- "type": {
118258
- "text": "boolean"
118259
- },
118260
- "fieldName": "disabled",
118261
- "inheritedFrom": {
118262
- "name": "SbbDisabledMixin",
118263
- "module": "core/mixins/disabled-mixin.js"
118264
- }
118265
- },
118266
- {
118267
- "name": "value",
118268
- "type": {
118269
- "text": "string"
118270
- },
118271
- "default": "''",
118272
- "description": "Value of the form element.",
118273
- "fieldName": "value",
118274
- "inheritedFrom": {
118275
- "name": "SbbButtonBaseElement",
118276
- "module": "core/base-elements/button-base-element.js"
118277
- }
118278
- },
118279
- {
118280
- "name": "type",
118281
- "description": "The type attribute to use for the button.",
118282
- "default": "'button'",
118283
- "type": {
118284
- "text": "SbbButtonType"
118285
- },
118286
- "fieldName": "type",
118287
- "inheritedFrom": {
118288
- "name": "SbbButtonBaseElement",
118289
- "module": "core/base-elements/button-base-element.js"
118290
- }
118291
- },
118292
- {
118293
- "name": "form",
118294
- "description": "The `<form>` element to associate the button with.",
118295
- "type": {
118296
- "text": "HTMLFormElement | null"
118297
- },
118298
- "fieldName": "form",
118299
- "inheritedFrom": {
118300
- "name": "SbbButtonBaseElement",
118301
- "module": "core/base-elements/button-base-element.js"
118302
- }
118303
- },
118304
- {
118305
- "name": "name",
118306
- "description": "Name of the form element. Will be read from name attribute.",
118307
- "type": {
118308
- "text": "string"
118309
- },
118310
- "fieldName": "name",
118311
- "inheritedFrom": {
118312
- "name": "SbbFormAssociatedMixin",
118313
- "module": "core/mixins/form-associated-mixin.js"
118314
- }
118315
- }
118316
- ]
118315
+ "tagName": "sbb-step",
118316
+ "customElement": true
118317
118317
  }
118318
118318
  ],
118319
118319
  "exports": [
118320
118320
  {
118321
118321
  "kind": "js",
118322
- "name": "SbbStepLabelElement",
118322
+ "name": "SbbStepElement",
118323
118323
  "declaration": {
118324
- "name": "SbbStepLabelElement",
118325
- "module": "stepper/step-label/step-label.component.js"
118324
+ "name": "SbbStepElement",
118325
+ "module": "stepper/step/step.component.js"
118326
118326
  }
118327
118327
  }
118328
118328
  ]