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

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