@sbb-esta/lyne-elements-dev 5.0.0-next-dev.1777283651 → 5.0.0-next.1-dev.1777286188

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.
@@ -119728,15 +119728,15 @@
119728
119728
  },
119729
119729
  {
119730
119730
  "kind": "javascript-module",
119731
- "path": "link/block-link-button/block-link-button.component.js",
119731
+ "path": "link/block-link-static/block-link-static.component.js",
119732
119732
  "declarations": [
119733
119733
  {
119734
119734
  "kind": "class",
119735
- "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
119736
- "name": "SbbBlockLinkButtonElement",
119735
+ "description": "It displays a static link enhanced with the SBB Design.",
119736
+ "name": "SbbBlockLinkStaticElement",
119737
119737
  "slots": [
119738
119738
  {
119739
- "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
119739
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
119740
119740
  "name": ""
119741
119741
  },
119742
119742
  {
@@ -119758,7 +119758,7 @@
119758
119758
  "name": "SbbElement",
119759
119759
  "module": "core/base-elements/element.js"
119760
119760
  },
119761
- "default": "'sbb-block-link-button'"
119761
+ "default": "'sbb-block-link-static'"
119762
119762
  },
119763
119763
  {
119764
119764
  "kind": "field",
@@ -119901,22 +119901,6 @@
119901
119901
  "module": "icon/icon-name-mixin.js"
119902
119902
  }
119903
119903
  },
119904
- {
119905
- "kind": "field",
119906
- "name": "disabledInteractive",
119907
- "type": {
119908
- "text": "boolean"
119909
- },
119910
- "privacy": "public",
119911
- "default": "false",
119912
- "description": "Whether the button should be aria-disabled but stay interactive.",
119913
- "attribute": "disabled-interactive",
119914
- "reflects": true,
119915
- "inheritedFrom": {
119916
- "name": "SbbDisabledInteractiveMixin",
119917
- "module": "core/mixins/disabled-mixin.js"
119918
- }
119919
- },
119920
119904
  {
119921
119905
  "kind": "field",
119922
119906
  "name": "disabled",
@@ -119963,118 +119947,47 @@
119963
119947
  },
119964
119948
  {
119965
119949
  "kind": "field",
119966
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
119950
+ "name": "maybeDisabled",
119967
119951
  "type": {
119968
- "text": "array"
119952
+ "text": "boolean | undefined"
119969
119953
  },
119970
- "privacy": "private",
119954
+ "privacy": "protected",
119971
119955
  "readonly": true,
119972
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
119973
- "inheritedFrom": {
119974
- "name": "SbbButtonBaseElement",
119975
- "module": "core/base-elements/button-base-element.js"
119976
- }
119977
- },
119978
- {
119979
- "kind": "field",
119980
- "name": "value",
119981
- "type": {
119982
- "text": "string"
119983
- },
119984
- "privacy": "public",
119985
- "inheritedFrom": {
119986
- "name": "SbbButtonBaseElement",
119987
- "module": "core/base-elements/button-base-element.js"
119988
- },
119989
- "default": "''",
119990
- "description": "Value of the form element.",
119991
- "attribute": "value"
119992
- },
119993
- {
119994
- "kind": "field",
119995
- "name": "type",
119996
- "privacy": "public",
119997
- "description": "The type attribute to use for the button.",
119998
- "default": "'button'",
119999
- "type": {
120000
- "text": "SbbButtonType"
120001
- },
120002
- "attribute": "type",
120003
119956
  "inheritedFrom": {
120004
- "name": "SbbButtonBaseElement",
120005
- "module": "core/base-elements/button-base-element.js"
119957
+ "name": "SbbActionBaseElement",
119958
+ "module": "core/base-elements/action-base-element.js"
120006
119959
  }
120007
119960
  },
120008
119961
  {
120009
119962
  "kind": "field",
120010
- "name": "form",
120011
- "type": {
120012
- "text": "HTMLFormElement | null"
120013
- },
120014
- "privacy": "public",
120015
- "description": "The `<form>` element to associate the button with.",
120016
- "inheritedFrom": {
120017
- "name": "SbbButtonBaseElement",
120018
- "module": "core/base-elements/button-base-element.js"
120019
- },
120020
- "attribute": "form"
120021
- },
120022
- {
120023
- "kind": "field",
120024
- "name": "_formId",
119963
+ "name": "maybeDisabledInteractive",
120025
119964
  "type": {
120026
- "text": "string"
119965
+ "text": "boolean | undefined"
120027
119966
  },
120028
- "privacy": "private",
120029
- "default": "''",
120030
- "inheritedFrom": {
120031
- "name": "SbbButtonBaseElement",
120032
- "module": "core/base-elements/button-base-element.js"
120033
- }
120034
- },
120035
- {
120036
- "kind": "field",
120037
- "name": "_handleButtonClick",
120038
- "privacy": "private",
119967
+ "privacy": "protected",
119968
+ "readonly": true,
120039
119969
  "inheritedFrom": {
120040
- "name": "SbbButtonBaseElement",
120041
- "module": "core/base-elements/button-base-element.js"
119970
+ "name": "SbbActionBaseElement",
119971
+ "module": "core/base-elements/action-base-element.js"
120042
119972
  }
120043
119973
  },
120044
119974
  {
120045
119975
  "kind": "method",
120046
- "name": "_requestSubmit",
120047
- "privacy": "private",
119976
+ "name": "setupBaseEventHandlers",
119977
+ "privacy": "protected",
120048
119978
  "return": {
120049
119979
  "type": {
120050
119980
  "text": "void"
120051
119981
  }
120052
119982
  },
120053
- "parameters": [
120054
- {
120055
- "name": "form",
120056
- "type": {
120057
- "text": "HTMLFormElement"
120058
- }
120059
- }
120060
- ],
120061
- "inheritedFrom": {
120062
- "name": "SbbButtonBaseElement",
120063
- "module": "core/base-elements/button-base-element.js"
120064
- }
120065
- },
120066
- {
120067
- "kind": "field",
120068
- "name": "_formKeyDown",
120069
- "privacy": "private",
120070
119983
  "inheritedFrom": {
120071
- "name": "SbbButtonBaseElement",
120072
- "module": "core/base-elements/button-base-element.js"
119984
+ "name": "SbbActionBaseElement",
119985
+ "module": "core/base-elements/action-base-element.js"
120073
119986
  }
120074
119987
  },
120075
119988
  {
120076
119989
  "kind": "field",
120077
- "name": "formAssociated",
119990
+ "name": "['_$sbbElement$']",
120078
119991
  "type": {
120079
119992
  "text": "boolean"
120080
119993
  },
@@ -120082,124 +119995,101 @@
120082
119995
  "static": true,
120083
119996
  "default": "true",
120084
119997
  "inheritedFrom": {
120085
- "name": "SbbFormAssociatedMixin",
120086
- "module": "core/mixins/form-associated-mixin.js"
120087
- }
120088
- },
120089
- {
120090
- "kind": "field",
120091
- "name": "name",
120092
- "privacy": "public",
120093
- "description": "Name of the form element. Will be read from name attribute.",
120094
- "type": {
120095
- "text": "string"
120096
- },
120097
- "attribute": "name",
120098
- "inheritedFrom": {
120099
- "name": "SbbFormAssociatedMixin",
120100
- "module": "core/mixins/form-associated-mixin.js"
119998
+ "name": "SbbElement",
119999
+ "module": "core/base-elements/element.js"
120101
120000
  }
120102
120001
  },
120103
120002
  {
120104
120003
  "kind": "field",
120105
- "name": "validity",
120004
+ "name": "role",
120106
120005
  "type": {
120107
- "text": "ValidityState"
120006
+ "text": "ElementInternals['role'] | undefined"
120108
120007
  },
120109
120008
  "privacy": "public",
120110
- "description": "Returns the ValidityState object for this element.",
120111
- "readonly": true,
120009
+ "static": true,
120112
120010
  "inheritedFrom": {
120113
- "name": "SbbFormAssociatedMixin",
120114
- "module": "core/mixins/form-associated-mixin.js"
120011
+ "name": "SbbElement",
120012
+ "module": "core/base-elements/element.js"
120115
120013
  }
120116
120014
  },
120117
120015
  {
120118
120016
  "kind": "field",
120119
- "name": "validationMessage",
120017
+ "name": "_controllers",
120120
120018
  "type": {
120121
- "text": "string"
120019
+ "text": "Set<SbbReactiveController> | undefined"
120122
120020
  },
120123
- "privacy": "public",
120124
- "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.",
120125
- "readonly": true,
120021
+ "privacy": "private",
120126
120022
  "inheritedFrom": {
120127
- "name": "SbbFormAssociatedMixin",
120128
- "module": "core/mixins/form-associated-mixin.js"
120023
+ "name": "SbbElement",
120024
+ "module": "core/base-elements/element.js"
120129
120025
  }
120130
120026
  },
120131
120027
  {
120132
120028
  "kind": "field",
120133
- "name": "willValidate",
120029
+ "name": "_hydrationRequired",
120134
120030
  "type": {
120135
120031
  "text": "boolean"
120136
120032
  },
120137
- "privacy": "public",
120138
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
120139
- "readonly": true,
120033
+ "privacy": "private",
120034
+ "default": "!!this.shadowRoot",
120140
120035
  "inheritedFrom": {
120141
- "name": "SbbFormAssociatedMixin",
120142
- "module": "core/mixins/form-associated-mixin.js"
120036
+ "name": "SbbElement",
120037
+ "module": "core/base-elements/element.js"
120143
120038
  }
120144
120039
  },
120145
120040
  {
120146
120041
  "kind": "field",
120147
- "name": "_validityStates",
120042
+ "name": "_hydrationComplete",
120148
120043
  "privacy": "private",
120149
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
120044
+ "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
120150
120045
  "inheritedFrom": {
120151
- "name": "SbbFormAssociatedMixin",
120152
- "module": "core/mixins/form-associated-mixin.js"
120046
+ "name": "SbbElement",
120047
+ "module": "core/base-elements/element.js"
120153
120048
  }
120154
120049
  },
120155
120050
  {
120156
120051
  "kind": "field",
120157
- "name": "formDisabled",
120052
+ "name": "_resolveHydration",
120158
120053
  "type": {
120159
- "text": "boolean"
120054
+ "text": "(hydrationRequired: boolean) => void"
120160
120055
  },
120161
- "privacy": "protected",
120162
- "default": "false",
120163
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
120056
+ "privacy": "private",
120164
120057
  "inheritedFrom": {
120165
- "name": "SbbFormAssociatedMixin",
120166
- "module": "core/mixins/form-associated-mixin.js"
120058
+ "name": "SbbElement",
120059
+ "module": "core/base-elements/element.js"
120167
120060
  }
120168
120061
  },
120169
120062
  {
120170
- "kind": "method",
120171
- "name": "checkValidity",
120172
- "privacy": "public",
120173
- "return": {
120174
- "type": {
120175
- "text": "boolean"
120176
- }
120063
+ "kind": "field",
120064
+ "name": "_textObserver",
120065
+ "type": {
120066
+ "text": "MutationObserver | undefined"
120177
120067
  },
120178
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
120068
+ "privacy": "private",
120179
120069
  "inheritedFrom": {
120180
- "name": "SbbFormAssociatedMixin",
120181
- "module": "core/mixins/form-associated-mixin.js"
120070
+ "name": "SbbElement",
120071
+ "module": "core/base-elements/element.js"
120182
120072
  }
120183
120073
  },
120184
120074
  {
120185
- "kind": "method",
120186
- "name": "reportValidity",
120187
- "privacy": "public",
120188
- "return": {
120189
- "type": {
120190
- "text": "boolean"
120191
- }
120075
+ "kind": "field",
120076
+ "name": "hydrationRequired",
120077
+ "type": {
120078
+ "text": "boolean"
120192
120079
  },
120193
- "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.",
120080
+ "privacy": "protected",
120081
+ "description": "Returns whether hydration is required and not completed.",
120082
+ "readonly": true,
120194
120083
  "inheritedFrom": {
120195
- "name": "SbbFormAssociatedMixin",
120196
- "module": "core/mixins/form-associated-mixin.js"
120197
- }
120084
+ "name": "SbbElement",
120085
+ "module": "core/base-elements/element.js"
120086
+ },
120087
+ "default": "!!this.shadowRoot"
120198
120088
  },
120199
120089
  {
120200
120090
  "kind": "method",
120201
- "name": "setCustomValidity",
120202
- "privacy": "public",
120091
+ "name": "toggleState",
120092
+ "privacy": "protected",
120203
120093
  "return": {
120204
120094
  "type": {
120205
120095
  "text": "void"
@@ -120207,65 +120097,28 @@
120207
120097
  },
120208
120098
  "parameters": [
120209
120099
  {
120210
- "name": "message",
120100
+ "name": "value",
120211
120101
  "type": {
120212
120102
  "text": "string"
120213
120103
  }
120104
+ },
120105
+ {
120106
+ "name": "force",
120107
+ "optional": true,
120108
+ "type": {
120109
+ "text": "boolean"
120110
+ }
120214
120111
  }
120215
120112
  ],
120216
- "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.",
120217
120113
  "inheritedFrom": {
120218
- "name": "SbbFormAssociatedMixin",
120219
- "module": "core/mixins/form-associated-mixin.js"
120114
+ "name": "SbbElement",
120115
+ "module": "core/base-elements/element.js"
120220
120116
  }
120221
120117
  },
120222
120118
  {
120223
120119
  "kind": "method",
120224
- "name": "_hasDisabledAncestor",
120120
+ "name": "_slotchangeHandler",
120225
120121
  "privacy": "private",
120226
- "return": {
120227
- "type": {
120228
- "text": "boolean"
120229
- }
120230
- },
120231
- "inheritedFrom": {
120232
- "name": "SbbFormAssociatedMixin",
120233
- "module": "core/mixins/form-associated-mixin.js"
120234
- }
120235
- },
120236
- {
120237
- "kind": "method",
120238
- "name": "updateFormValue",
120239
- "privacy": "protected",
120240
- "return": {
120241
- "type": {
120242
- "text": "void"
120243
- }
120244
- },
120245
- "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",
120246
- "inheritedFrom": {
120247
- "name": "SbbFormAssociatedMixin",
120248
- "module": "core/mixins/form-associated-mixin.js"
120249
- }
120250
- },
120251
- {
120252
- "kind": "method",
120253
- "name": "formState",
120254
- "privacy": "protected",
120255
- "return": {
120256
- "type": {
120257
- "text": "FormRestoreState"
120258
- }
120259
- },
120260
- "inheritedFrom": {
120261
- "name": "SbbFormAssociatedMixin",
120262
- "module": "core/mixins/form-associated-mixin.js"
120263
- }
120264
- },
120265
- {
120266
- "kind": "method",
120267
- "name": "setValidityFlag",
120268
- "privacy": "protected",
120269
120122
  "return": {
120270
120123
  "type": {
120271
120124
  "text": "void"
@@ -120273,35 +120126,27 @@
120273
120126
  },
120274
120127
  "parameters": [
120275
120128
  {
120276
- "name": "flag",
120277
- "type": {
120278
- "text": "T"
120279
- }
120280
- },
120281
- {
120282
- "name": "message",
120129
+ "name": "event",
120283
120130
  "type": {
120284
- "text": "string"
120131
+ "text": "Event"
120285
120132
  }
120286
120133
  },
120287
120134
  {
120288
- "name": "flagValue",
120289
- "optional": true,
120135
+ "name": "slot",
120290
120136
  "type": {
120291
- "text": "ValidityStateFlags[T]"
120137
+ "text": "HTMLSlotElement"
120292
120138
  }
120293
120139
  }
120294
120140
  ],
120295
- "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).",
120296
120141
  "inheritedFrom": {
120297
- "name": "SbbFormAssociatedMixin",
120298
- "module": "core/mixins/form-associated-mixin.js"
120142
+ "name": "SbbElement",
120143
+ "module": "core/base-elements/element.js"
120299
120144
  }
120300
120145
  },
120301
120146
  {
120302
120147
  "kind": "method",
120303
- "name": "removeValidityFlag",
120304
- "privacy": "protected",
120148
+ "name": "_handleSlotChangeForSlottedState",
120149
+ "privacy": "private",
120305
120150
  "return": {
120306
120151
  "type": {
120307
120152
  "text": "void"
@@ -120309,772 +120154,877 @@
120309
120154
  },
120310
120155
  "parameters": [
120311
120156
  {
120312
- "name": "flag",
120157
+ "name": "slot",
120313
120158
  "type": {
120314
- "text": "T"
120159
+ "text": "HTMLSlotElement"
120315
120160
  }
120316
120161
  }
120317
120162
  ],
120318
- "description": "Removes the validity state flag entry and updates validity state.",
120319
120163
  "inheritedFrom": {
120320
- "name": "SbbFormAssociatedMixin",
120321
- "module": "core/mixins/form-associated-mixin.js"
120164
+ "name": "SbbElement",
120165
+ "module": "core/base-elements/element.js"
120322
120166
  }
120323
120167
  },
120324
120168
  {
120325
120169
  "kind": "method",
120326
- "name": "validate",
120327
- "privacy": "protected",
120170
+ "name": "_updateSlottedState",
120171
+ "privacy": "private",
120328
120172
  "return": {
120329
120173
  "type": {
120330
120174
  "text": "void"
120331
120175
  }
120332
120176
  },
120333
- "description": "To be called whenever the current element needs to be validated.",
120334
- "inheritedFrom": {
120335
- "name": "SbbFormAssociatedMixin",
120336
- "module": "core/mixins/form-associated-mixin.js"
120337
- }
120338
- },
120339
- {
120340
- "kind": "method",
120341
- "name": "shouldValidate",
120342
- "privacy": "protected",
120343
- "return": {
120344
- "type": {
120345
- "text": "boolean"
120346
- }
120347
- },
120348
120177
  "parameters": [
120349
120178
  {
120350
- "name": "name",
120179
+ "name": "slot",
120351
120180
  "type": {
120352
- "text": "PropertyKey | undefined"
120181
+ "text": "HTMLSlotElement"
120353
120182
  }
120354
120183
  }
120355
120184
  ],
120356
- "description": "Whether validation should be run on a property change with the given name.",
120357
120185
  "inheritedFrom": {
120358
- "name": "SbbFormAssociatedMixin",
120359
- "module": "core/mixins/form-associated-mixin.js"
120186
+ "name": "SbbElement",
120187
+ "module": "core/base-elements/element.js"
120360
120188
  }
120361
120189
  },
120362
120190
  {
120363
120191
  "kind": "method",
120364
- "name": "_setInternalValidity",
120192
+ "name": "_observeTextNodesInSlot",
120365
120193
  "privacy": "private",
120366
120194
  "return": {
120367
120195
  "type": {
120368
120196
  "text": "void"
120369
120197
  }
120370
120198
  },
120371
- "inheritedFrom": {
120372
- "name": "SbbFormAssociatedMixin",
120373
- "module": "core/mixins/form-associated-mixin.js"
120374
- }
120375
- },
120376
- {
120377
- "kind": "field",
120378
- "name": "role",
120379
- "type": {
120380
- "text": "ElementInternals['role']"
120381
- },
120382
- "privacy": "public",
120383
- "static": true,
120384
- "inheritedFrom": {
120385
- "name": "SbbElement",
120386
- "module": "core/base-elements/element.js"
120387
- },
120388
- "readonly": true,
120389
- "default": "'button'"
120390
- },
120391
- {
120392
- "kind": "field",
120393
- "name": "_preventScrollOnSpaceKeydown",
120394
- "privacy": "private",
120395
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
120396
120199
  "parameters": [
120397
120200
  {
120398
- "description": "The origin event.",
120399
- "name": "event"
120201
+ "name": "slot",
120202
+ "type": {
120203
+ "text": "HTMLSlotElement"
120204
+ }
120400
120205
  }
120401
120206
  ],
120402
120207
  "inheritedFrom": {
120403
- "name": "SbbButtonLikeBaseElement",
120404
- "module": "core/base-elements/button-base-element.js"
120405
- }
120406
- },
120407
- {
120408
- "kind": "field",
120409
- "name": "_removeActiveMarker",
120410
- "privacy": "private",
120411
- "inheritedFrom": {
120412
- "name": "SbbButtonLikeBaseElement",
120413
- "module": "core/base-elements/button-base-element.js"
120208
+ "name": "SbbElement",
120209
+ "module": "core/base-elements/element.js"
120414
120210
  }
120415
120211
  },
120416
120212
  {
120417
- "kind": "field",
120418
- "name": "_dispatchClickEventOnSpaceKeyup",
120213
+ "kind": "method",
120214
+ "name": "_hasSlottedContent",
120419
120215
  "privacy": "private",
120420
- "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.",
120216
+ "return": {
120217
+ "type": {
120218
+ "text": "boolean"
120219
+ }
120220
+ },
120421
120221
  "parameters": [
120422
120222
  {
120423
- "description": "The origin event.",
120424
- "name": "event"
120223
+ "name": "slot",
120224
+ "type": {
120225
+ "text": "HTMLSlotElement"
120226
+ }
120425
120227
  }
120426
120228
  ],
120427
120229
  "inheritedFrom": {
120428
- "name": "SbbButtonLikeBaseElement",
120429
- "module": "core/base-elements/button-base-element.js"
120230
+ "name": "SbbElement",
120231
+ "module": "core/base-elements/element.js"
120430
120232
  }
120431
- },
120233
+ }
120234
+ ],
120235
+ "mixins": [
120432
120236
  {
120433
- "kind": "field",
120434
- "name": "_dispatchClickEvent",
120435
- "privacy": "private",
120436
- "inheritedFrom": {
120437
- "name": "SbbButtonLikeBaseElement",
120438
- "module": "core/base-elements/button-base-element.js"
120439
- }
120237
+ "name": "SbbBlockLinkCommonElementMixin",
120238
+ "module": "link/common/block-link-common.js"
120440
120239
  },
120441
120240
  {
120442
- "kind": "field",
120443
- "name": "maybeDisabled",
120241
+ "name": "SbbDisabledMixin",
120242
+ "module": "core.js"
120243
+ }
120244
+ ],
120245
+ "superclass": {
120246
+ "name": "SbbActionBaseElement",
120247
+ "module": "core.js"
120248
+ },
120249
+ "tagName": "sbb-block-link-static",
120250
+ "customElement": true,
120251
+ "attributes": [
120252
+ {
120253
+ "name": "size",
120444
120254
  "type": {
120445
- "text": "boolean | undefined"
120255
+ "text": "SbbLinkSize"
120446
120256
  },
120447
- "privacy": "protected",
120448
- "readonly": true,
120257
+ "description": "Size variant, either xs, s or m.",
120258
+ "default": "'s' / 'xs' (lean)",
120259
+ "fieldName": "size",
120449
120260
  "inheritedFrom": {
120450
- "name": "SbbActionBaseElement",
120451
- "module": "core/base-elements/action-base-element.js"
120261
+ "name": "SbbBlockLinkCommonElementMixin",
120262
+ "module": "link/common/block-link-common.js"
120452
120263
  }
120453
120264
  },
120454
120265
  {
120455
- "kind": "field",
120456
- "name": "maybeDisabledInteractive",
120266
+ "name": "icon-placement",
120457
120267
  "type": {
120458
- "text": "boolean | undefined"
120268
+ "text": "SbbIconPlacement"
120459
120269
  },
120460
- "privacy": "protected",
120461
- "readonly": true,
120270
+ "default": "'start'",
120271
+ "description": "Moves the icon to the end of the component if set to true.",
120272
+ "fieldName": "iconPlacement",
120462
120273
  "inheritedFrom": {
120463
- "name": "SbbActionBaseElement",
120464
- "module": "core/base-elements/action-base-element.js"
120274
+ "name": "SbbBlockLinkCommonElementMixin",
120275
+ "module": "link/common/block-link-common.js"
120465
120276
  }
120466
120277
  },
120467
120278
  {
120468
- "kind": "method",
120469
- "name": "setupBaseEventHandlers",
120470
- "privacy": "protected",
120471
- "return": {
120472
- "type": {
120473
- "text": "void"
120474
- }
120279
+ "name": "icon-name",
120280
+ "type": {
120281
+ "text": "string"
120475
120282
  },
120283
+ "default": "''",
120284
+ "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.",
120285
+ "fieldName": "iconName",
120476
120286
  "inheritedFrom": {
120477
- "name": "SbbActionBaseElement",
120478
- "module": "core/base-elements/action-base-element.js"
120287
+ "name": "SbbIconNameMixin",
120288
+ "module": "icon/icon-name-mixin.js"
120479
120289
  }
120480
120290
  },
120481
120291
  {
120482
- "kind": "field",
120483
- "name": "['_$sbbElement$']",
120292
+ "name": "disabled",
120293
+ "description": "Whether the component is disabled.",
120294
+ "default": "false",
120484
120295
  "type": {
120485
120296
  "text": "boolean"
120486
120297
  },
120487
- "privacy": "public",
120488
- "static": true,
120489
- "default": "true",
120298
+ "fieldName": "disabled",
120490
120299
  "inheritedFrom": {
120491
- "name": "SbbElement",
120492
- "module": "core/base-elements/element.js"
120493
- }
120300
+ "name": "SbbDisabledMixin",
120301
+ "module": "core/mixins/disabled-mixin.js"
120302
+ }
120303
+ }
120304
+ ]
120305
+ }
120306
+ ],
120307
+ "exports": [
120308
+ {
120309
+ "kind": "js",
120310
+ "name": "SbbBlockLinkStaticElement",
120311
+ "declaration": {
120312
+ "name": "SbbBlockLinkStaticElement",
120313
+ "module": "link/block-link-static/block-link-static.component.js"
120314
+ }
120315
+ }
120316
+ ]
120317
+ },
120318
+ {
120319
+ "kind": "javascript-module",
120320
+ "path": "link/block-link-button/block-link-button.component.js",
120321
+ "declarations": [
120322
+ {
120323
+ "kind": "class",
120324
+ "description": "It displays a link enhanced with the SBB Design, which will behave as a button.",
120325
+ "name": "SbbBlockLinkButtonElement",
120326
+ "slots": [
120327
+ {
120328
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-button`.",
120329
+ "name": ""
120494
120330
  },
120331
+ {
120332
+ "description": "Slot used to display the icon, if one is set.",
120333
+ "name": "icon"
120334
+ }
120335
+ ],
120336
+ "members": [
120495
120337
  {
120496
120338
  "kind": "field",
120497
- "name": "_controllers",
120339
+ "name": "elementName",
120498
120340
  "type": {
120499
- "text": "Set<SbbReactiveController> | undefined"
120341
+ "text": "string"
120500
120342
  },
120501
- "privacy": "private",
120343
+ "privacy": "public",
120344
+ "static": true,
120345
+ "readonly": true,
120502
120346
  "inheritedFrom": {
120503
120347
  "name": "SbbElement",
120504
120348
  "module": "core/base-elements/element.js"
120505
- }
120349
+ },
120350
+ "default": "'sbb-block-link-button'"
120506
120351
  },
120507
120352
  {
120508
120353
  "kind": "field",
120509
- "name": "_hydrationRequired",
120354
+ "name": "styles",
120510
120355
  "type": {
120511
- "text": "boolean"
120356
+ "text": "CSSResultGroup"
120512
120357
  },
120513
- "privacy": "private",
120514
- "default": "!!this.shadowRoot",
120358
+ "privacy": "public",
120359
+ "static": true,
120360
+ "default": "[super.styles, unsafeCSS(blockStyle)]",
120515
120361
  "inheritedFrom": {
120516
- "name": "SbbElement",
120517
- "module": "core/base-elements/element.js"
120362
+ "name": "SbbLinkCommonElementMixin",
120363
+ "module": "link/common/link-common.js"
120518
120364
  }
120519
120365
  },
120520
120366
  {
120521
120367
  "kind": "field",
120522
- "name": "_hydrationComplete",
120523
- "privacy": "private",
120524
- "default": "new Promise<boolean>( (resolve) => (this._resolveHydration = resolve), )",
120368
+ "name": "size",
120369
+ "type": {
120370
+ "text": "SbbLinkSize"
120371
+ },
120372
+ "privacy": "public",
120373
+ "description": "Size variant, either xs, s or m.",
120374
+ "default": "'s' / 'xs' (lean)",
120375
+ "attribute": "size",
120376
+ "reflects": true,
120525
120377
  "inheritedFrom": {
120526
- "name": "SbbElement",
120527
- "module": "core/base-elements/element.js"
120378
+ "name": "SbbBlockLinkCommonElementMixin",
120379
+ "module": "link/common/block-link-common.js"
120528
120380
  }
120529
120381
  },
120530
120382
  {
120531
120383
  "kind": "field",
120532
- "name": "_resolveHydration",
120384
+ "name": "iconPlacement",
120533
120385
  "type": {
120534
- "text": "(hydrationRequired: boolean) => void"
120386
+ "text": "SbbIconPlacement"
120535
120387
  },
120536
- "privacy": "private",
120388
+ "privacy": "public",
120389
+ "default": "'start'",
120390
+ "description": "Moves the icon to the end of the component if set to true.",
120391
+ "attribute": "icon-placement",
120392
+ "reflects": true,
120537
120393
  "inheritedFrom": {
120538
- "name": "SbbElement",
120539
- "module": "core/base-elements/element.js"
120394
+ "name": "SbbBlockLinkCommonElementMixin",
120395
+ "module": "link/common/block-link-common.js"
120540
120396
  }
120541
120397
  },
120542
120398
  {
120543
- "kind": "field",
120544
- "name": "_textObserver",
120545
- "type": {
120546
- "text": "MutationObserver | undefined"
120399
+ "kind": "method",
120400
+ "name": "renderTemplate",
120401
+ "privacy": "protected",
120402
+ "return": {
120403
+ "type": {
120404
+ "text": "TemplateResult"
120405
+ }
120547
120406
  },
120548
- "privacy": "private",
120407
+ "description": "Override this method to render the component template.",
120549
120408
  "inheritedFrom": {
120550
- "name": "SbbElement",
120551
- "module": "core/base-elements/element.js"
120409
+ "name": "SbbActionBaseElement",
120410
+ "module": "core/base-elements/action-base-element.js"
120552
120411
  }
120553
120412
  },
120554
120413
  {
120555
120414
  "kind": "field",
120556
- "name": "hydrationRequired",
120415
+ "name": "elementDependencies",
120557
120416
  "type": {
120558
- "text": "boolean"
120417
+ "text": "SbbElementType[]"
120559
120418
  },
120560
- "privacy": "protected",
120561
- "description": "Returns whether hydration is required and not completed.",
120562
- "readonly": true,
120419
+ "privacy": "public",
120420
+ "static": true,
120563
120421
  "inheritedFrom": {
120564
120422
  "name": "SbbElement",
120565
120423
  "module": "core/base-elements/element.js"
120566
120424
  },
120567
- "default": "!!this.shadowRoot"
120425
+ "default": "[SbbIconElement]"
120426
+ },
120427
+ {
120428
+ "kind": "field",
120429
+ "name": "iconName",
120430
+ "type": {
120431
+ "text": "string"
120432
+ },
120433
+ "privacy": "public",
120434
+ "default": "''",
120435
+ "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.",
120436
+ "attribute": "icon-name",
120437
+ "inheritedFrom": {
120438
+ "name": "SbbIconNameMixin",
120439
+ "module": "icon/icon-name-mixin.js"
120440
+ }
120568
120441
  },
120569
120442
  {
120570
120443
  "kind": "method",
120571
- "name": "toggleState",
120444
+ "name": "renderIconSlot",
120572
120445
  "privacy": "protected",
120573
120446
  "return": {
120574
120447
  "type": {
120575
- "text": "void"
120448
+ "text": "TemplateResult"
120576
120449
  }
120577
120450
  },
120578
120451
  "parameters": [
120579
120452
  {
120580
- "name": "value",
120581
- "type": {
120582
- "text": "string"
120583
- }
120584
- },
120585
- {
120586
- "name": "force",
120453
+ "name": "classname",
120587
120454
  "optional": true,
120588
120455
  "type": {
120589
- "text": "boolean"
120456
+ "text": "string"
120590
120457
  }
120591
120458
  }
120592
120459
  ],
120593
120460
  "inheritedFrom": {
120594
- "name": "SbbElement",
120595
- "module": "core/base-elements/element.js"
120461
+ "name": "SbbIconNameMixin",
120462
+ "module": "icon/icon-name-mixin.js"
120596
120463
  }
120597
120464
  },
120598
120465
  {
120599
120466
  "kind": "method",
120600
- "name": "_slotchangeHandler",
120601
- "privacy": "private",
120467
+ "name": "renderIconName",
120468
+ "privacy": "protected",
120602
120469
  "return": {
120603
120470
  "type": {
120604
- "text": "void"
120471
+ "text": "string"
120605
120472
  }
120606
120473
  },
120607
- "parameters": [
120608
- {
120609
- "name": "event",
120610
- "type": {
120611
- "text": "Event"
120612
- }
120613
- },
120614
- {
120615
- "name": "slot",
120616
- "type": {
120617
- "text": "HTMLSlotElement"
120618
- }
120619
- }
120620
- ],
120621
120474
  "inheritedFrom": {
120622
- "name": "SbbElement",
120623
- "module": "core/base-elements/element.js"
120475
+ "name": "SbbIconNameMixin",
120476
+ "module": "icon/icon-name-mixin.js"
120624
120477
  }
120625
120478
  },
120626
120479
  {
120627
120480
  "kind": "method",
120628
- "name": "_handleSlotChangeForSlottedState",
120481
+ "name": "_renderIconName",
120629
120482
  "privacy": "private",
120630
120483
  "return": {
120631
120484
  "type": {
120632
- "text": "void"
120485
+ "text": "string"
120633
120486
  }
120634
120487
  },
120635
- "parameters": [
120636
- {
120637
- "name": "slot",
120638
- "type": {
120639
- "text": "HTMLSlotElement"
120640
- }
120641
- }
120642
- ],
120643
120488
  "inheritedFrom": {
120644
- "name": "SbbElement",
120645
- "module": "core/base-elements/element.js"
120489
+ "name": "SbbIconNameMixin",
120490
+ "module": "icon/icon-name-mixin.js"
120646
120491
  }
120647
120492
  },
120648
120493
  {
120649
- "kind": "method",
120650
- "name": "_updateSlottedState",
120651
- "privacy": "private",
120652
- "return": {
120653
- "type": {
120654
- "text": "void"
120655
- }
120494
+ "kind": "field",
120495
+ "name": "disabledInteractive",
120496
+ "type": {
120497
+ "text": "boolean"
120656
120498
  },
120657
- "parameters": [
120658
- {
120659
- "name": "slot",
120660
- "type": {
120661
- "text": "HTMLSlotElement"
120662
- }
120663
- }
120664
- ],
120499
+ "privacy": "public",
120500
+ "default": "false",
120501
+ "description": "Whether the button should be aria-disabled but stay interactive.",
120502
+ "attribute": "disabled-interactive",
120503
+ "reflects": true,
120665
120504
  "inheritedFrom": {
120666
- "name": "SbbElement",
120667
- "module": "core/base-elements/element.js"
120505
+ "name": "SbbDisabledInteractiveMixin",
120506
+ "module": "core/mixins/disabled-mixin.js"
120668
120507
  }
120669
120508
  },
120670
120509
  {
120671
- "kind": "method",
120672
- "name": "_observeTextNodesInSlot",
120673
- "privacy": "private",
120674
- "return": {
120675
- "type": {
120676
- "text": "void"
120677
- }
120510
+ "kind": "field",
120511
+ "name": "disabled",
120512
+ "privacy": "public",
120513
+ "description": "Whether the component is disabled.",
120514
+ "default": "false",
120515
+ "type": {
120516
+ "text": "boolean"
120678
120517
  },
120679
- "parameters": [
120680
- {
120681
- "name": "slot",
120682
- "type": {
120683
- "text": "HTMLSlotElement"
120684
- }
120685
- }
120686
- ],
120518
+ "attribute": "disabled",
120519
+ "reflects": true,
120687
120520
  "inheritedFrom": {
120688
- "name": "SbbElement",
120689
- "module": "core/base-elements/element.js"
120521
+ "name": "SbbDisabledMixin",
120522
+ "module": "core/mixins/disabled-mixin.js"
120690
120523
  }
120691
120524
  },
120692
120525
  {
120693
- "kind": "method",
120694
- "name": "_hasSlottedContent",
120526
+ "kind": "field",
120527
+ "name": "#disabled",
120695
120528
  "privacy": "private",
120696
- "return": {
120697
- "type": {
120698
- "text": "boolean"
120699
- }
120700
- },
120701
- "parameters": [
120702
- {
120703
- "name": "slot",
120704
- "type": {
120705
- "text": "HTMLSlotElement"
120706
- }
120707
- }
120708
- ],
120529
+ "type": {
120530
+ "text": "boolean"
120531
+ },
120532
+ "default": "false",
120709
120533
  "inheritedFrom": {
120710
- "name": "SbbElement",
120711
- "module": "core/base-elements/element.js"
120534
+ "name": "SbbDisabledMixin",
120535
+ "module": "core/mixins/disabled-mixin.js"
120712
120536
  }
120713
- }
120714
- ],
120715
- "mixins": [
120716
- {
120717
- "name": "SbbBlockLinkCommonElementMixin",
120718
- "module": "link/common/block-link-common.js"
120719
120537
  },
120720
120538
  {
120721
- "name": "SbbDisabledTabIndexActionMixin",
120722
- "module": "core.js"
120723
- }
120724
- ],
120725
- "superclass": {
120726
- "name": "SbbButtonBaseElement",
120727
- "module": "core.js"
120728
- },
120729
- "tagName": "sbb-block-link-button",
120730
- "customElement": true,
120731
- "attributes": [
120732
- {
120733
- "name": "size",
120734
- "type": {
120735
- "text": "SbbLinkSize"
120539
+ "kind": "method",
120540
+ "name": "isDisabledExternally",
120541
+ "privacy": "protected",
120542
+ "return": {
120543
+ "type": {
120544
+ "text": "boolean"
120545
+ }
120736
120546
  },
120737
- "description": "Size variant, either xs, s or m.",
120738
- "default": "'s' / 'xs' (lean)",
120739
- "fieldName": "size",
120547
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
120740
120548
  "inheritedFrom": {
120741
- "name": "SbbBlockLinkCommonElementMixin",
120742
- "module": "link/common/block-link-common.js"
120549
+ "name": "SbbDisabledMixin",
120550
+ "module": "core/mixins/disabled-mixin.js"
120743
120551
  }
120744
120552
  },
120745
120553
  {
120746
- "name": "icon-placement",
120554
+ "kind": "field",
120555
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
120747
120556
  "type": {
120748
- "text": "SbbIconPlacement"
120557
+ "text": "array"
120749
120558
  },
120750
- "default": "'start'",
120751
- "description": "Moves the icon to the end of the component if set to true.",
120752
- "fieldName": "iconPlacement",
120559
+ "privacy": "private",
120560
+ "readonly": true,
120561
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
120753
120562
  "inheritedFrom": {
120754
- "name": "SbbBlockLinkCommonElementMixin",
120755
- "module": "link/common/block-link-common.js"
120563
+ "name": "SbbButtonBaseElement",
120564
+ "module": "core/base-elements/button-base-element.js"
120756
120565
  }
120757
120566
  },
120758
120567
  {
120759
- "name": "icon-name",
120568
+ "kind": "field",
120569
+ "name": "value",
120760
120570
  "type": {
120761
120571
  "text": "string"
120762
120572
  },
120763
- "default": "''",
120764
- "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.",
120765
- "fieldName": "iconName",
120573
+ "privacy": "public",
120766
120574
  "inheritedFrom": {
120767
- "name": "SbbIconNameMixin",
120768
- "module": "icon/icon-name-mixin.js"
120769
- }
120575
+ "name": "SbbButtonBaseElement",
120576
+ "module": "core/base-elements/button-base-element.js"
120577
+ },
120578
+ "default": "''",
120579
+ "description": "Value of the form element.",
120580
+ "attribute": "value"
120770
120581
  },
120771
120582
  {
120772
- "name": "disabled-interactive",
120583
+ "kind": "field",
120584
+ "name": "type",
120585
+ "privacy": "public",
120586
+ "description": "The type attribute to use for the button.",
120587
+ "default": "'button'",
120773
120588
  "type": {
120774
- "text": "boolean"
120589
+ "text": "SbbButtonType"
120775
120590
  },
120776
- "default": "false",
120777
- "description": "Whether the button should be aria-disabled but stay interactive.",
120778
- "fieldName": "disabledInteractive",
120591
+ "attribute": "type",
120779
120592
  "inheritedFrom": {
120780
- "name": "SbbDisabledInteractiveMixin",
120781
- "module": "core/mixins/disabled-mixin.js"
120593
+ "name": "SbbButtonBaseElement",
120594
+ "module": "core/base-elements/button-base-element.js"
120782
120595
  }
120783
120596
  },
120784
120597
  {
120785
- "name": "disabled",
120786
- "description": "Whether the component is disabled.",
120787
- "default": "false",
120598
+ "kind": "field",
120599
+ "name": "form",
120788
120600
  "type": {
120789
- "text": "boolean"
120601
+ "text": "HTMLFormElement | null"
120790
120602
  },
120791
- "fieldName": "disabled",
120603
+ "privacy": "public",
120604
+ "description": "The `<form>` element to associate the button with.",
120792
120605
  "inheritedFrom": {
120793
- "name": "SbbDisabledMixin",
120794
- "module": "core/mixins/disabled-mixin.js"
120795
- }
120606
+ "name": "SbbButtonBaseElement",
120607
+ "module": "core/base-elements/button-base-element.js"
120608
+ },
120609
+ "attribute": "form"
120796
120610
  },
120797
120611
  {
120798
- "name": "value",
120612
+ "kind": "field",
120613
+ "name": "_formId",
120799
120614
  "type": {
120800
120615
  "text": "string"
120801
120616
  },
120617
+ "privacy": "private",
120802
120618
  "default": "''",
120803
- "description": "Value of the form element.",
120804
- "fieldName": "value",
120805
120619
  "inheritedFrom": {
120806
120620
  "name": "SbbButtonBaseElement",
120807
120621
  "module": "core/base-elements/button-base-element.js"
120808
120622
  }
120809
120623
  },
120810
120624
  {
120811
- "name": "type",
120812
- "description": "The type attribute to use for the button.",
120813
- "default": "'button'",
120814
- "type": {
120815
- "text": "SbbButtonType"
120816
- },
120817
- "fieldName": "type",
120625
+ "kind": "field",
120626
+ "name": "_handleButtonClick",
120627
+ "privacy": "private",
120818
120628
  "inheritedFrom": {
120819
120629
  "name": "SbbButtonBaseElement",
120820
120630
  "module": "core/base-elements/button-base-element.js"
120821
120631
  }
120822
120632
  },
120823
120633
  {
120824
- "name": "form",
120825
- "description": "The `<form>` element to associate the button with.",
120826
- "type": {
120827
- "text": "HTMLFormElement | null"
120634
+ "kind": "method",
120635
+ "name": "_requestSubmit",
120636
+ "privacy": "private",
120637
+ "return": {
120638
+ "type": {
120639
+ "text": "void"
120640
+ }
120828
120641
  },
120829
- "fieldName": "form",
120642
+ "parameters": [
120643
+ {
120644
+ "name": "form",
120645
+ "type": {
120646
+ "text": "HTMLFormElement"
120647
+ }
120648
+ }
120649
+ ],
120830
120650
  "inheritedFrom": {
120831
120651
  "name": "SbbButtonBaseElement",
120832
120652
  "module": "core/base-elements/button-base-element.js"
120833
120653
  }
120834
120654
  },
120835
120655
  {
120656
+ "kind": "field",
120657
+ "name": "_formKeyDown",
120658
+ "privacy": "private",
120659
+ "inheritedFrom": {
120660
+ "name": "SbbButtonBaseElement",
120661
+ "module": "core/base-elements/button-base-element.js"
120662
+ }
120663
+ },
120664
+ {
120665
+ "kind": "field",
120666
+ "name": "formAssociated",
120667
+ "type": {
120668
+ "text": "boolean"
120669
+ },
120670
+ "privacy": "public",
120671
+ "static": true,
120672
+ "default": "true",
120673
+ "inheritedFrom": {
120674
+ "name": "SbbFormAssociatedMixin",
120675
+ "module": "core/mixins/form-associated-mixin.js"
120676
+ }
120677
+ },
120678
+ {
120679
+ "kind": "field",
120836
120680
  "name": "name",
120681
+ "privacy": "public",
120837
120682
  "description": "Name of the form element. Will be read from name attribute.",
120838
120683
  "type": {
120839
120684
  "text": "string"
120840
120685
  },
120841
- "fieldName": "name",
120686
+ "attribute": "name",
120842
120687
  "inheritedFrom": {
120843
120688
  "name": "SbbFormAssociatedMixin",
120844
120689
  "module": "core/mixins/form-associated-mixin.js"
120845
120690
  }
120846
- }
120847
- ]
120848
- }
120849
- ],
120850
- "exports": [
120851
- {
120852
- "kind": "js",
120853
- "name": "SbbBlockLinkButtonElement",
120854
- "declaration": {
120855
- "name": "SbbBlockLinkButtonElement",
120856
- "module": "link/block-link-button/block-link-button.component.js"
120857
- }
120858
- }
120859
- ]
120860
- },
120861
- {
120862
- "kind": "javascript-module",
120863
- "path": "link/block-link-static/block-link-static.component.js",
120864
- "declarations": [
120865
- {
120866
- "kind": "class",
120867
- "description": "It displays a static link enhanced with the SBB Design.",
120868
- "name": "SbbBlockLinkStaticElement",
120869
- "slots": [
120870
- {
120871
- "description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
120872
- "name": ""
120873
120691
  },
120874
- {
120875
- "description": "Slot used to display the icon, if one is set.",
120876
- "name": "icon"
120877
- }
120878
- ],
120879
- "members": [
120880
120692
  {
120881
120693
  "kind": "field",
120882
- "name": "elementName",
120694
+ "name": "validity",
120883
120695
  "type": {
120884
- "text": "string"
120696
+ "text": "ValidityState"
120885
120697
  },
120886
120698
  "privacy": "public",
120887
- "static": true,
120699
+ "description": "Returns the ValidityState object for this element.",
120888
120700
  "readonly": true,
120889
120701
  "inheritedFrom": {
120890
- "name": "SbbElement",
120891
- "module": "core/base-elements/element.js"
120892
- },
120893
- "default": "'sbb-block-link-static'"
120702
+ "name": "SbbFormAssociatedMixin",
120703
+ "module": "core/mixins/form-associated-mixin.js"
120704
+ }
120894
120705
  },
120895
120706
  {
120896
120707
  "kind": "field",
120897
- "name": "styles",
120708
+ "name": "validationMessage",
120898
120709
  "type": {
120899
- "text": "CSSResultGroup"
120710
+ "text": "string"
120900
120711
  },
120901
120712
  "privacy": "public",
120902
- "static": true,
120903
- "default": "[super.styles, unsafeCSS(blockStyle)]",
120713
+ "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.",
120714
+ "readonly": true,
120904
120715
  "inheritedFrom": {
120905
- "name": "SbbLinkCommonElementMixin",
120906
- "module": "link/common/link-common.js"
120716
+ "name": "SbbFormAssociatedMixin",
120717
+ "module": "core/mixins/form-associated-mixin.js"
120907
120718
  }
120908
120719
  },
120909
120720
  {
120910
120721
  "kind": "field",
120911
- "name": "size",
120722
+ "name": "willValidate",
120912
120723
  "type": {
120913
- "text": "SbbLinkSize"
120724
+ "text": "boolean"
120914
120725
  },
120915
120726
  "privacy": "public",
120916
- "description": "Size variant, either xs, s or m.",
120917
- "default": "'s' / 'xs' (lean)",
120918
- "attribute": "size",
120919
- "reflects": true,
120727
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
120728
+ "readonly": true,
120920
120729
  "inheritedFrom": {
120921
- "name": "SbbBlockLinkCommonElementMixin",
120922
- "module": "link/common/block-link-common.js"
120730
+ "name": "SbbFormAssociatedMixin",
120731
+ "module": "core/mixins/form-associated-mixin.js"
120923
120732
  }
120924
120733
  },
120925
120734
  {
120926
120735
  "kind": "field",
120927
- "name": "iconPlacement",
120736
+ "name": "_validityStates",
120737
+ "privacy": "private",
120738
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
120739
+ "inheritedFrom": {
120740
+ "name": "SbbFormAssociatedMixin",
120741
+ "module": "core/mixins/form-associated-mixin.js"
120742
+ }
120743
+ },
120744
+ {
120745
+ "kind": "field",
120746
+ "name": "formDisabled",
120928
120747
  "type": {
120929
- "text": "SbbIconPlacement"
120748
+ "text": "boolean"
120930
120749
  },
120750
+ "privacy": "protected",
120751
+ "default": "false",
120752
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
120753
+ "inheritedFrom": {
120754
+ "name": "SbbFormAssociatedMixin",
120755
+ "module": "core/mixins/form-associated-mixin.js"
120756
+ }
120757
+ },
120758
+ {
120759
+ "kind": "method",
120760
+ "name": "checkValidity",
120931
120761
  "privacy": "public",
120932
- "default": "'start'",
120933
- "description": "Moves the icon to the end of the component if set to true.",
120934
- "attribute": "icon-placement",
120935
- "reflects": true,
120762
+ "return": {
120763
+ "type": {
120764
+ "text": "boolean"
120765
+ }
120766
+ },
120767
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
120768
+ "inheritedFrom": {
120769
+ "name": "SbbFormAssociatedMixin",
120770
+ "module": "core/mixins/form-associated-mixin.js"
120771
+ }
120772
+ },
120773
+ {
120774
+ "kind": "method",
120775
+ "name": "reportValidity",
120776
+ "privacy": "public",
120777
+ "return": {
120778
+ "type": {
120779
+ "text": "boolean"
120780
+ }
120781
+ },
120782
+ "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.",
120783
+ "inheritedFrom": {
120784
+ "name": "SbbFormAssociatedMixin",
120785
+ "module": "core/mixins/form-associated-mixin.js"
120786
+ }
120787
+ },
120788
+ {
120789
+ "kind": "method",
120790
+ "name": "setCustomValidity",
120791
+ "privacy": "public",
120792
+ "return": {
120793
+ "type": {
120794
+ "text": "void"
120795
+ }
120796
+ },
120797
+ "parameters": [
120798
+ {
120799
+ "name": "message",
120800
+ "type": {
120801
+ "text": "string"
120802
+ }
120803
+ }
120804
+ ],
120805
+ "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.",
120806
+ "inheritedFrom": {
120807
+ "name": "SbbFormAssociatedMixin",
120808
+ "module": "core/mixins/form-associated-mixin.js"
120809
+ }
120810
+ },
120811
+ {
120812
+ "kind": "method",
120813
+ "name": "_hasDisabledAncestor",
120814
+ "privacy": "private",
120815
+ "return": {
120816
+ "type": {
120817
+ "text": "boolean"
120818
+ }
120819
+ },
120820
+ "inheritedFrom": {
120821
+ "name": "SbbFormAssociatedMixin",
120822
+ "module": "core/mixins/form-associated-mixin.js"
120823
+ }
120824
+ },
120825
+ {
120826
+ "kind": "method",
120827
+ "name": "updateFormValue",
120828
+ "privacy": "protected",
120829
+ "return": {
120830
+ "type": {
120831
+ "text": "void"
120832
+ }
120833
+ },
120834
+ "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",
120835
+ "inheritedFrom": {
120836
+ "name": "SbbFormAssociatedMixin",
120837
+ "module": "core/mixins/form-associated-mixin.js"
120838
+ }
120839
+ },
120840
+ {
120841
+ "kind": "method",
120842
+ "name": "formState",
120843
+ "privacy": "protected",
120844
+ "return": {
120845
+ "type": {
120846
+ "text": "FormRestoreState"
120847
+ }
120848
+ },
120849
+ "inheritedFrom": {
120850
+ "name": "SbbFormAssociatedMixin",
120851
+ "module": "core/mixins/form-associated-mixin.js"
120852
+ }
120853
+ },
120854
+ {
120855
+ "kind": "method",
120856
+ "name": "setValidityFlag",
120857
+ "privacy": "protected",
120858
+ "return": {
120859
+ "type": {
120860
+ "text": "void"
120861
+ }
120862
+ },
120863
+ "parameters": [
120864
+ {
120865
+ "name": "flag",
120866
+ "type": {
120867
+ "text": "T"
120868
+ }
120869
+ },
120870
+ {
120871
+ "name": "message",
120872
+ "type": {
120873
+ "text": "string"
120874
+ }
120875
+ },
120876
+ {
120877
+ "name": "flagValue",
120878
+ "optional": true,
120879
+ "type": {
120880
+ "text": "ValidityStateFlags[T]"
120881
+ }
120882
+ }
120883
+ ],
120884
+ "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).",
120936
120885
  "inheritedFrom": {
120937
- "name": "SbbBlockLinkCommonElementMixin",
120938
- "module": "link/common/block-link-common.js"
120886
+ "name": "SbbFormAssociatedMixin",
120887
+ "module": "core/mixins/form-associated-mixin.js"
120939
120888
  }
120940
120889
  },
120941
120890
  {
120942
120891
  "kind": "method",
120943
- "name": "renderTemplate",
120892
+ "name": "removeValidityFlag",
120944
120893
  "privacy": "protected",
120945
120894
  "return": {
120946
120895
  "type": {
120947
- "text": "TemplateResult"
120896
+ "text": "void"
120948
120897
  }
120949
120898
  },
120950
- "description": "Override this method to render the component template.",
120899
+ "parameters": [
120900
+ {
120901
+ "name": "flag",
120902
+ "type": {
120903
+ "text": "T"
120904
+ }
120905
+ }
120906
+ ],
120907
+ "description": "Removes the validity state flag entry and updates validity state.",
120951
120908
  "inheritedFrom": {
120952
- "name": "SbbActionBaseElement",
120953
- "module": "core/base-elements/action-base-element.js"
120909
+ "name": "SbbFormAssociatedMixin",
120910
+ "module": "core/mixins/form-associated-mixin.js"
120954
120911
  }
120955
120912
  },
120956
120913
  {
120957
- "kind": "field",
120958
- "name": "elementDependencies",
120959
- "type": {
120960
- "text": "SbbElementType[]"
120961
- },
120962
- "privacy": "public",
120963
- "static": true,
120964
- "inheritedFrom": {
120965
- "name": "SbbElement",
120966
- "module": "core/base-elements/element.js"
120967
- },
120968
- "default": "[SbbIconElement]"
120969
- },
120970
- {
120971
- "kind": "field",
120972
- "name": "iconName",
120973
- "type": {
120974
- "text": "string"
120914
+ "kind": "method",
120915
+ "name": "validate",
120916
+ "privacy": "protected",
120917
+ "return": {
120918
+ "type": {
120919
+ "text": "void"
120920
+ }
120975
120921
  },
120976
- "privacy": "public",
120977
- "default": "''",
120978
- "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.",
120979
- "attribute": "icon-name",
120922
+ "description": "To be called whenever the current element needs to be validated.",
120980
120923
  "inheritedFrom": {
120981
- "name": "SbbIconNameMixin",
120982
- "module": "icon/icon-name-mixin.js"
120924
+ "name": "SbbFormAssociatedMixin",
120925
+ "module": "core/mixins/form-associated-mixin.js"
120983
120926
  }
120984
120927
  },
120985
120928
  {
120986
120929
  "kind": "method",
120987
- "name": "renderIconSlot",
120930
+ "name": "shouldValidate",
120988
120931
  "privacy": "protected",
120989
120932
  "return": {
120990
120933
  "type": {
120991
- "text": "TemplateResult"
120934
+ "text": "boolean"
120992
120935
  }
120993
120936
  },
120994
120937
  "parameters": [
120995
120938
  {
120996
- "name": "classname",
120997
- "optional": true,
120939
+ "name": "name",
120998
120940
  "type": {
120999
- "text": "string"
120941
+ "text": "PropertyKey | undefined"
121000
120942
  }
121001
120943
  }
121002
120944
  ],
120945
+ "description": "Whether validation should be run on a property change with the given name.",
121003
120946
  "inheritedFrom": {
121004
- "name": "SbbIconNameMixin",
121005
- "module": "icon/icon-name-mixin.js"
120947
+ "name": "SbbFormAssociatedMixin",
120948
+ "module": "core/mixins/form-associated-mixin.js"
121006
120949
  }
121007
120950
  },
121008
120951
  {
121009
120952
  "kind": "method",
121010
- "name": "renderIconName",
121011
- "privacy": "protected",
120953
+ "name": "_setInternalValidity",
120954
+ "privacy": "private",
121012
120955
  "return": {
121013
120956
  "type": {
121014
- "text": "string"
120957
+ "text": "void"
121015
120958
  }
121016
120959
  },
121017
120960
  "inheritedFrom": {
121018
- "name": "SbbIconNameMixin",
121019
- "module": "icon/icon-name-mixin.js"
120961
+ "name": "SbbFormAssociatedMixin",
120962
+ "module": "core/mixins/form-associated-mixin.js"
121020
120963
  }
121021
120964
  },
121022
120965
  {
121023
- "kind": "method",
121024
- "name": "_renderIconName",
120966
+ "kind": "field",
120967
+ "name": "role",
120968
+ "type": {
120969
+ "text": "ElementInternals['role']"
120970
+ },
120971
+ "privacy": "public",
120972
+ "static": true,
120973
+ "inheritedFrom": {
120974
+ "name": "SbbElement",
120975
+ "module": "core/base-elements/element.js"
120976
+ },
120977
+ "readonly": true,
120978
+ "default": "'button'"
120979
+ },
120980
+ {
120981
+ "kind": "field",
120982
+ "name": "_preventScrollOnSpaceKeydown",
121025
120983
  "privacy": "private",
121026
- "return": {
121027
- "type": {
121028
- "text": "string"
120984
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
120985
+ "parameters": [
120986
+ {
120987
+ "description": "The origin event.",
120988
+ "name": "event"
121029
120989
  }
121030
- },
120990
+ ],
121031
120991
  "inheritedFrom": {
121032
- "name": "SbbIconNameMixin",
121033
- "module": "icon/icon-name-mixin.js"
120992
+ "name": "SbbButtonLikeBaseElement",
120993
+ "module": "core/base-elements/button-base-element.js"
121034
120994
  }
121035
120995
  },
121036
120996
  {
121037
120997
  "kind": "field",
121038
- "name": "disabled",
121039
- "privacy": "public",
121040
- "description": "Whether the component is disabled.",
121041
- "default": "false",
121042
- "type": {
121043
- "text": "boolean"
121044
- },
121045
- "attribute": "disabled",
121046
- "reflects": true,
120998
+ "name": "_removeActiveMarker",
120999
+ "privacy": "private",
121047
121000
  "inheritedFrom": {
121048
- "name": "SbbDisabledMixin",
121049
- "module": "core/mixins/disabled-mixin.js"
121001
+ "name": "SbbButtonLikeBaseElement",
121002
+ "module": "core/base-elements/button-base-element.js"
121050
121003
  }
121051
121004
  },
121052
121005
  {
121053
121006
  "kind": "field",
121054
- "name": "#disabled",
121007
+ "name": "_dispatchClickEventOnSpaceKeyup",
121055
121008
  "privacy": "private",
121056
- "type": {
121057
- "text": "boolean"
121058
- },
121059
- "default": "false",
121009
+ "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.",
121010
+ "parameters": [
121011
+ {
121012
+ "description": "The origin event.",
121013
+ "name": "event"
121014
+ }
121015
+ ],
121060
121016
  "inheritedFrom": {
121061
- "name": "SbbDisabledMixin",
121062
- "module": "core/mixins/disabled-mixin.js"
121017
+ "name": "SbbButtonLikeBaseElement",
121018
+ "module": "core/base-elements/button-base-element.js"
121063
121019
  }
121064
121020
  },
121065
121021
  {
121066
- "kind": "method",
121067
- "name": "isDisabledExternally",
121068
- "privacy": "protected",
121069
- "return": {
121070
- "type": {
121071
- "text": "boolean"
121072
- }
121073
- },
121074
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
121022
+ "kind": "field",
121023
+ "name": "_dispatchClickEvent",
121024
+ "privacy": "private",
121075
121025
  "inheritedFrom": {
121076
- "name": "SbbDisabledMixin",
121077
- "module": "core/mixins/disabled-mixin.js"
121026
+ "name": "SbbButtonLikeBaseElement",
121027
+ "module": "core/base-elements/button-base-element.js"
121078
121028
  }
121079
121029
  },
121080
121030
  {
@@ -121131,19 +121081,6 @@
121131
121081
  "module": "core/base-elements/element.js"
121132
121082
  }
121133
121083
  },
121134
- {
121135
- "kind": "field",
121136
- "name": "role",
121137
- "type": {
121138
- "text": "ElementInternals['role'] | undefined"
121139
- },
121140
- "privacy": "public",
121141
- "static": true,
121142
- "inheritedFrom": {
121143
- "name": "SbbElement",
121144
- "module": "core/base-elements/element.js"
121145
- }
121146
- },
121147
121084
  {
121148
121085
  "kind": "field",
121149
121086
  "name": "_controllers",
@@ -121370,15 +121307,15 @@
121370
121307
  "module": "link/common/block-link-common.js"
121371
121308
  },
121372
121309
  {
121373
- "name": "SbbDisabledMixin",
121310
+ "name": "SbbDisabledTabIndexActionMixin",
121374
121311
  "module": "core.js"
121375
121312
  }
121376
121313
  ],
121377
121314
  "superclass": {
121378
- "name": "SbbActionBaseElement",
121315
+ "name": "SbbButtonBaseElement",
121379
121316
  "module": "core.js"
121380
121317
  },
121381
- "tagName": "sbb-block-link-static",
121318
+ "tagName": "sbb-block-link-button",
121382
121319
  "customElement": true,
121383
121320
  "attributes": [
121384
121321
  {
@@ -121420,6 +121357,19 @@
121420
121357
  "module": "icon/icon-name-mixin.js"
121421
121358
  }
121422
121359
  },
121360
+ {
121361
+ "name": "disabled-interactive",
121362
+ "type": {
121363
+ "text": "boolean"
121364
+ },
121365
+ "default": "false",
121366
+ "description": "Whether the button should be aria-disabled but stay interactive.",
121367
+ "fieldName": "disabledInteractive",
121368
+ "inheritedFrom": {
121369
+ "name": "SbbDisabledInteractiveMixin",
121370
+ "module": "core/mixins/disabled-mixin.js"
121371
+ }
121372
+ },
121423
121373
  {
121424
121374
  "name": "disabled",
121425
121375
  "description": "Whether the component is disabled.",
@@ -121432,6 +121382,56 @@
121432
121382
  "name": "SbbDisabledMixin",
121433
121383
  "module": "core/mixins/disabled-mixin.js"
121434
121384
  }
121385
+ },
121386
+ {
121387
+ "name": "value",
121388
+ "type": {
121389
+ "text": "string"
121390
+ },
121391
+ "default": "''",
121392
+ "description": "Value of the form element.",
121393
+ "fieldName": "value",
121394
+ "inheritedFrom": {
121395
+ "name": "SbbButtonBaseElement",
121396
+ "module": "core/base-elements/button-base-element.js"
121397
+ }
121398
+ },
121399
+ {
121400
+ "name": "type",
121401
+ "description": "The type attribute to use for the button.",
121402
+ "default": "'button'",
121403
+ "type": {
121404
+ "text": "SbbButtonType"
121405
+ },
121406
+ "fieldName": "type",
121407
+ "inheritedFrom": {
121408
+ "name": "SbbButtonBaseElement",
121409
+ "module": "core/base-elements/button-base-element.js"
121410
+ }
121411
+ },
121412
+ {
121413
+ "name": "form",
121414
+ "description": "The `<form>` element to associate the button with.",
121415
+ "type": {
121416
+ "text": "HTMLFormElement | null"
121417
+ },
121418
+ "fieldName": "form",
121419
+ "inheritedFrom": {
121420
+ "name": "SbbButtonBaseElement",
121421
+ "module": "core/base-elements/button-base-element.js"
121422
+ }
121423
+ },
121424
+ {
121425
+ "name": "name",
121426
+ "description": "Name of the form element. Will be read from name attribute.",
121427
+ "type": {
121428
+ "text": "string"
121429
+ },
121430
+ "fieldName": "name",
121431
+ "inheritedFrom": {
121432
+ "name": "SbbFormAssociatedMixin",
121433
+ "module": "core/mixins/form-associated-mixin.js"
121434
+ }
121435
121435
  }
121436
121436
  ]
121437
121437
  }
@@ -121439,10 +121439,10 @@
121439
121439
  "exports": [
121440
121440
  {
121441
121441
  "kind": "js",
121442
- "name": "SbbBlockLinkStaticElement",
121442
+ "name": "SbbBlockLinkButtonElement",
121443
121443
  "declaration": {
121444
- "name": "SbbBlockLinkStaticElement",
121445
- "module": "link/block-link-static/block-link-static.component.js"
121444
+ "name": "SbbBlockLinkButtonElement",
121445
+ "module": "link/block-link-button/block-link-button.component.js"
121446
121446
  }
121447
121447
  }
121448
121448
  ]