@sbb-esta/lyne-elements-dev 5.0.0-next.1-dev.1777673087 → 5.0.0-next.1-dev.1777811489

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 +1505 -1505
  2. package/package.json +2 -2
@@ -125113,20 +125113,51 @@
125113
125113
  },
125114
125114
  {
125115
125115
  "kind": "javascript-module",
125116
- "path": "link/common/block-link-common.js",
125116
+ "path": "link/block-link-static/block-link-static.component.js",
125117
125117
  "declarations": [
125118
125118
  {
125119
125119
  "kind": "class",
125120
- "description": "",
125121
- "name": "SbbBlockLinkCommonElementMixinType",
125120
+ "description": "It displays a static link enhanced with the SBB Design.",
125121
+ "name": "SbbBlockLinkStaticElement",
125122
+ "slots": [
125123
+ {
125124
+ "description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
125125
+ "name": ""
125126
+ },
125127
+ {
125128
+ "description": "Slot used to display the icon, if one is set.",
125129
+ "name": "icon"
125130
+ }
125131
+ ],
125122
125132
  "members": [
125123
125133
  {
125124
125134
  "kind": "field",
125125
- "name": "iconPlacement",
125135
+ "name": "elementName",
125126
125136
  "type": {
125127
- "text": "SbbIconPlacement"
125137
+ "text": "string"
125128
125138
  },
125129
- "privacy": "public"
125139
+ "privacy": "public",
125140
+ "static": true,
125141
+ "readonly": true,
125142
+ "inheritedFrom": {
125143
+ "name": "SbbElement",
125144
+ "module": "core/base-elements/element.js"
125145
+ },
125146
+ "default": "'sbb-block-link-static'"
125147
+ },
125148
+ {
125149
+ "kind": "field",
125150
+ "name": "styles",
125151
+ "type": {
125152
+ "text": "CSSResultGroup"
125153
+ },
125154
+ "privacy": "public",
125155
+ "static": true,
125156
+ "default": "[unsafeCSS(blockStyle)]",
125157
+ "inheritedFrom": {
125158
+ "name": "SbbLinkCommonElementMixin",
125159
+ "module": "link/common/link-common.js"
125160
+ }
125130
125161
  },
125131
125162
  {
125132
125163
  "kind": "field",
@@ -125134,20 +125165,30 @@
125134
125165
  "type": {
125135
125166
  "text": "SbbLinkSize"
125136
125167
  },
125137
- "privacy": "public"
125168
+ "privacy": "public",
125169
+ "description": "Size variant, either xs, s or m.",
125170
+ "default": "'s' / 'xs' (lean)",
125171
+ "attribute": "size",
125172
+ "reflects": true,
125173
+ "inheritedFrom": {
125174
+ "name": "SbbBlockLinkCommonElementMixin",
125175
+ "module": "link/common/block-link-common.js"
125176
+ }
125138
125177
  },
125139
125178
  {
125140
125179
  "kind": "field",
125141
- "name": "styles",
125180
+ "name": "iconPlacement",
125142
125181
  "type": {
125143
- "text": "CSSResultGroup"
125182
+ "text": "SbbIconPlacement"
125144
125183
  },
125145
125184
  "privacy": "public",
125146
- "static": true,
125147
- "default": "[boxSizingStyles, unsafeCSS(style)]",
125185
+ "default": "'start'",
125186
+ "description": "Moves the icon to the end of the component if set to true.",
125187
+ "attribute": "icon-placement",
125188
+ "reflects": true,
125148
125189
  "inheritedFrom": {
125149
- "name": "SbbLinkCommonElementMixin",
125150
- "module": "link/common/link-common.js"
125190
+ "name": "SbbBlockLinkCommonElementMixin",
125191
+ "module": "link/common/block-link-common.js"
125151
125192
  }
125152
125193
  },
125153
125194
  {
@@ -125165,22 +125206,6 @@
125165
125206
  "module": "core/base-elements/action-base-element.js"
125166
125207
  }
125167
125208
  },
125168
- {
125169
- "kind": "field",
125170
- "name": "negative",
125171
- "type": {
125172
- "text": "boolean"
125173
- },
125174
- "privacy": "public",
125175
- "default": "false",
125176
- "description": "Negative coloring variant flag.",
125177
- "attribute": "negative",
125178
- "reflects": true,
125179
- "inheritedFrom": {
125180
- "name": "SbbNegativeMixin",
125181
- "module": "core/mixins/negative-mixin.js"
125182
- }
125183
- },
125184
125209
  {
125185
125210
  "kind": "field",
125186
125211
  "name": "elementDependencies",
@@ -125261,6 +125286,50 @@
125261
125286
  "module": "icon/icon-name-mixin.js"
125262
125287
  }
125263
125288
  },
125289
+ {
125290
+ "kind": "field",
125291
+ "name": "disabled",
125292
+ "privacy": "public",
125293
+ "description": "Whether the component is disabled.",
125294
+ "default": "false",
125295
+ "type": {
125296
+ "text": "boolean"
125297
+ },
125298
+ "attribute": "disabled",
125299
+ "reflects": true,
125300
+ "inheritedFrom": {
125301
+ "name": "SbbDisabledMixin",
125302
+ "module": "core/mixins/disabled-mixin.js"
125303
+ }
125304
+ },
125305
+ {
125306
+ "kind": "field",
125307
+ "name": "#disabled",
125308
+ "privacy": "private",
125309
+ "type": {
125310
+ "text": "boolean"
125311
+ },
125312
+ "default": "false",
125313
+ "inheritedFrom": {
125314
+ "name": "SbbDisabledMixin",
125315
+ "module": "core/mixins/disabled-mixin.js"
125316
+ }
125317
+ },
125318
+ {
125319
+ "kind": "method",
125320
+ "name": "isDisabledExternally",
125321
+ "privacy": "protected",
125322
+ "return": {
125323
+ "type": {
125324
+ "text": "boolean"
125325
+ }
125326
+ },
125327
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
125328
+ "inheritedFrom": {
125329
+ "name": "SbbDisabledMixin",
125330
+ "module": "core/mixins/disabled-mixin.js"
125331
+ }
125332
+ },
125264
125333
  {
125265
125334
  "kind": "field",
125266
125335
  "name": "maybeDisabled",
@@ -125315,20 +125384,6 @@
125315
125384
  "module": "core/base-elements/element.js"
125316
125385
  }
125317
125386
  },
125318
- {
125319
- "kind": "field",
125320
- "name": "elementName",
125321
- "type": {
125322
- "text": "string"
125323
- },
125324
- "privacy": "public",
125325
- "static": true,
125326
- "readonly": true,
125327
- "inheritedFrom": {
125328
- "name": "SbbElement",
125329
- "module": "core/base-elements/element.js"
125330
- }
125331
- },
125332
125387
  {
125333
125388
  "kind": "field",
125334
125389
  "name": "role",
@@ -125588,30 +125643,45 @@
125588
125643
  ],
125589
125644
  "mixins": [
125590
125645
  {
125591
- "name": "SbbLinkCommonElementMixin",
125592
- "module": "link/common/link-common.js"
125646
+ "name": "SbbBlockLinkCommonElementMixin",
125647
+ "module": "link/common/block-link-common.js"
125593
125648
  },
125594
125649
  {
125595
- "name": "SbbIconNameMixin",
125596
- "module": "icon.pure.js"
125650
+ "name": "SbbDisabledMixin",
125651
+ "module": "core.js"
125597
125652
  }
125598
125653
  ],
125599
125654
  "superclass": {
125600
125655
  "name": "SbbActionBaseElement",
125601
125656
  "module": "core.js"
125602
125657
  },
125658
+ "tagName": "sbb-block-link-static",
125659
+ "customElement": true,
125603
125660
  "attributes": [
125604
125661
  {
125605
- "name": "negative",
125662
+ "name": "size",
125606
125663
  "type": {
125607
- "text": "boolean"
125664
+ "text": "SbbLinkSize"
125608
125665
  },
125609
- "default": "false",
125610
- "description": "Negative coloring variant flag.",
125611
- "fieldName": "negative",
125666
+ "description": "Size variant, either xs, s or m.",
125667
+ "default": "'s' / 'xs' (lean)",
125668
+ "fieldName": "size",
125612
125669
  "inheritedFrom": {
125613
- "name": "SbbNegativeMixin",
125614
- "module": "core/mixins/negative-mixin.js"
125670
+ "name": "SbbBlockLinkCommonElementMixin",
125671
+ "module": "link/common/block-link-common.js"
125672
+ }
125673
+ },
125674
+ {
125675
+ "name": "icon-placement",
125676
+ "type": {
125677
+ "text": "SbbIconPlacement"
125678
+ },
125679
+ "default": "'start'",
125680
+ "description": "Moves the icon to the end of the component if set to true.",
125681
+ "fieldName": "iconPlacement",
125682
+ "inheritedFrom": {
125683
+ "name": "SbbBlockLinkCommonElementMixin",
125684
+ "module": "link/common/block-link-common.js"
125615
125685
  }
125616
125686
  },
125617
125687
  {
@@ -125626,27 +125696,50 @@
125626
125696
  "name": "SbbIconNameMixin",
125627
125697
  "module": "icon/icon-name-mixin.js"
125628
125698
  }
125699
+ },
125700
+ {
125701
+ "name": "disabled",
125702
+ "description": "Whether the component is disabled.",
125703
+ "default": "false",
125704
+ "type": {
125705
+ "text": "boolean"
125706
+ },
125707
+ "fieldName": "disabled",
125708
+ "inheritedFrom": {
125709
+ "name": "SbbDisabledMixin",
125710
+ "module": "core/mixins/disabled-mixin.js"
125711
+ }
125629
125712
  }
125630
125713
  ]
125631
- },
125714
+ }
125715
+ ],
125716
+ "exports": [
125632
125717
  {
125633
- "kind": "mixin",
125718
+ "kind": "js",
125719
+ "name": "SbbBlockLinkStaticElement",
125720
+ "declaration": {
125721
+ "name": "SbbBlockLinkStaticElement",
125722
+ "module": "link/block-link-static/block-link-static.component.js"
125723
+ }
125724
+ }
125725
+ ]
125726
+ },
125727
+ {
125728
+ "kind": "javascript-module",
125729
+ "path": "link/common/block-link-common.js",
125730
+ "declarations": [
125731
+ {
125732
+ "kind": "class",
125634
125733
  "description": "",
125635
- "name": "SbbBlockLinkCommonElementMixin",
125734
+ "name": "SbbBlockLinkCommonElementMixinType",
125636
125735
  "members": [
125637
125736
  {
125638
125737
  "kind": "field",
125639
- "name": "styles",
125738
+ "name": "iconPlacement",
125640
125739
  "type": {
125641
- "text": "CSSResultGroup"
125740
+ "text": "SbbIconPlacement"
125642
125741
  },
125643
- "privacy": "public",
125644
- "static": true,
125645
- "default": "[unsafeCSS(blockStyle)]",
125646
- "inheritedFrom": {
125647
- "name": "SbbLinkCommonElementMixin",
125648
- "module": "link/common/link-common.js"
125649
- }
125742
+ "privacy": "public"
125650
125743
  },
125651
125744
  {
125652
125745
  "kind": "field",
@@ -125654,23 +125747,21 @@
125654
125747
  "type": {
125655
125748
  "text": "SbbLinkSize"
125656
125749
  },
125657
- "privacy": "public",
125658
- "description": "Size variant, either xs, s or m.",
125659
- "default": "'s' / 'xs' (lean)",
125660
- "attribute": "size",
125661
- "reflects": true
125750
+ "privacy": "public"
125662
125751
  },
125663
125752
  {
125664
125753
  "kind": "field",
125665
- "name": "iconPlacement",
125754
+ "name": "styles",
125666
125755
  "type": {
125667
- "text": "SbbIconPlacement"
125756
+ "text": "CSSResultGroup"
125668
125757
  },
125669
125758
  "privacy": "public",
125670
- "default": "'start'",
125671
- "description": "Moves the icon to the end of the component if set to true.",
125672
- "attribute": "icon-placement",
125673
- "reflects": true
125759
+ "static": true,
125760
+ "default": "[boxSizingStyles, unsafeCSS(style)]",
125761
+ "inheritedFrom": {
125762
+ "name": "SbbLinkCommonElementMixin",
125763
+ "module": "link/common/link-common.js"
125764
+ }
125674
125765
  },
125675
125766
  {
125676
125767
  "kind": "method",
@@ -125681,9 +125772,10 @@
125681
125772
  "text": "TemplateResult"
125682
125773
  }
125683
125774
  },
125775
+ "description": "Override this method to render the component template.",
125684
125776
  "inheritedFrom": {
125685
- "name": "SbbLinkCommonElementMixin",
125686
- "module": "link/common/link-common.js"
125777
+ "name": "SbbActionBaseElement",
125778
+ "module": "core/base-elements/action-base-element.js"
125687
125779
  }
125688
125780
  },
125689
125781
  {
@@ -125710,13 +125802,13 @@
125710
125802
  },
125711
125803
  "privacy": "public",
125712
125804
  "static": true,
125713
- "default": "[SbbIconElement]",
125714
125805
  "inheritedFrom": {
125715
- "name": "SbbIconNameMixin",
125716
- "module": "icon/icon-name-mixin.js"
125717
- }
125718
- },
125719
- {
125806
+ "name": "SbbElement",
125807
+ "module": "core/base-elements/element.js"
125808
+ },
125809
+ "default": "[SbbIconElement]"
125810
+ },
125811
+ {
125720
125812
  "kind": "field",
125721
125813
  "name": "iconName",
125722
125814
  "type": {
@@ -125781,156 +125873,6 @@
125781
125873
  "name": "SbbIconNameMixin",
125782
125874
  "module": "icon/icon-name-mixin.js"
125783
125875
  }
125784
- }
125785
- ],
125786
- "attributes": [
125787
- {
125788
- "name": "size",
125789
- "type": {
125790
- "text": "SbbLinkSize"
125791
- },
125792
- "description": "Size variant, either xs, s or m.",
125793
- "default": "'s' / 'xs' (lean)",
125794
- "fieldName": "size"
125795
- },
125796
- {
125797
- "name": "icon-placement",
125798
- "type": {
125799
- "text": "SbbIconPlacement"
125800
- },
125801
- "default": "'start'",
125802
- "description": "Moves the icon to the end of the component if set to true.",
125803
- "fieldName": "iconPlacement"
125804
- },
125805
- {
125806
- "name": "negative",
125807
- "type": {
125808
- "text": "boolean"
125809
- },
125810
- "default": "false",
125811
- "description": "Negative coloring variant flag.",
125812
- "fieldName": "negative",
125813
- "inheritedFrom": {
125814
- "name": "SbbNegativeMixin",
125815
- "module": "core/mixins/negative-mixin.js"
125816
- }
125817
- },
125818
- {
125819
- "name": "icon-name",
125820
- "type": {
125821
- "text": "string"
125822
- },
125823
- "default": "''",
125824
- "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.",
125825
- "fieldName": "iconName",
125826
- "inheritedFrom": {
125827
- "name": "SbbIconNameMixin",
125828
- "module": "icon/icon-name-mixin.js"
125829
- }
125830
- }
125831
- ],
125832
- "mixins": [
125833
- {
125834
- "name": "SbbLinkCommonElementMixin",
125835
- "module": "link/common/link-common.js"
125836
- },
125837
- {
125838
- "name": "SbbIconNameMixin",
125839
- "module": "icon.pure.js"
125840
- }
125841
- ],
125842
- "parameters": [
125843
- {
125844
- "name": "superClass",
125845
- "type": {
125846
- "text": "T"
125847
- }
125848
- }
125849
- ]
125850
- }
125851
- ],
125852
- "exports": [
125853
- {
125854
- "kind": "js",
125855
- "name": "SbbBlockLinkCommonElementMixinType",
125856
- "declaration": {
125857
- "name": "SbbBlockLinkCommonElementMixinType",
125858
- "module": "link/common/block-link-common.js"
125859
- }
125860
- },
125861
- {
125862
- "kind": "js",
125863
- "name": "SbbBlockLinkCommonElementMixin",
125864
- "declaration": {
125865
- "name": "SbbBlockLinkCommonElementMixin",
125866
- "module": "link/common/block-link-common.js"
125867
- }
125868
- }
125869
- ]
125870
- },
125871
- {
125872
- "kind": "javascript-module",
125873
- "path": "link/common/inline-link-common.js",
125874
- "declarations": [
125875
- {
125876
- "kind": "class",
125877
- "description": "",
125878
- "name": "SbbInlineLinkCommonElementMixinType",
125879
- "mixins": [
125880
- {
125881
- "name": "SbbLinkCommonElementMixin",
125882
- "module": "link/common/link-common.js"
125883
- }
125884
- ],
125885
- "superclass": {
125886
- "name": "SbbActionBaseElement",
125887
- "module": "core.js"
125888
- },
125889
- "members": [
125890
- {
125891
- "kind": "field",
125892
- "name": "styles",
125893
- "type": {
125894
- "text": "CSSResultGroup"
125895
- },
125896
- "privacy": "public",
125897
- "static": true,
125898
- "default": "[boxSizingStyles, unsafeCSS(style)]",
125899
- "inheritedFrom": {
125900
- "name": "SbbLinkCommonElementMixin",
125901
- "module": "link/common/link-common.js"
125902
- }
125903
- },
125904
- {
125905
- "kind": "method",
125906
- "name": "renderTemplate",
125907
- "privacy": "protected",
125908
- "return": {
125909
- "type": {
125910
- "text": "TemplateResult"
125911
- }
125912
- },
125913
- "description": "Override this method to render the component template.",
125914
- "inheritedFrom": {
125915
- "name": "SbbActionBaseElement",
125916
- "module": "core/base-elements/action-base-element.js"
125917
- }
125918
- },
125919
- {
125920
- "kind": "field",
125921
- "name": "negative",
125922
- "type": {
125923
- "text": "boolean"
125924
- },
125925
- "privacy": "public",
125926
- "default": "false",
125927
- "description": "Negative coloring variant flag.",
125928
- "attribute": "negative",
125929
- "reflects": true,
125930
- "inheritedFrom": {
125931
- "name": "SbbNegativeMixin",
125932
- "module": "core/mixins/negative-mixin.js"
125933
- }
125934
125876
  },
125935
125877
  {
125936
125878
  "kind": "field",
@@ -126000,19 +125942,6 @@
126000
125942
  "module": "core/base-elements/element.js"
126001
125943
  }
126002
125944
  },
126003
- {
126004
- "kind": "field",
126005
- "name": "elementDependencies",
126006
- "type": {
126007
- "text": "SbbElementType[] | undefined"
126008
- },
126009
- "privacy": "public",
126010
- "static": true,
126011
- "inheritedFrom": {
126012
- "name": "SbbElement",
126013
- "module": "core/base-elements/element.js"
126014
- }
126015
- },
126016
125945
  {
126017
125946
  "kind": "field",
126018
125947
  "name": "role",
@@ -126270,6 +126199,20 @@
126270
126199
  }
126271
126200
  }
126272
126201
  ],
126202
+ "mixins": [
126203
+ {
126204
+ "name": "SbbLinkCommonElementMixin",
126205
+ "module": "link/common/link-common.js"
126206
+ },
126207
+ {
126208
+ "name": "SbbIconNameMixin",
126209
+ "module": "icon.pure.js"
126210
+ }
126211
+ ],
126212
+ "superclass": {
126213
+ "name": "SbbActionBaseElement",
126214
+ "module": "core.js"
126215
+ },
126273
126216
  "attributes": [
126274
126217
  {
126275
126218
  "name": "negative",
@@ -126283,13 +126226,26 @@
126283
126226
  "name": "SbbNegativeMixin",
126284
126227
  "module": "core/mixins/negative-mixin.js"
126285
126228
  }
126229
+ },
126230
+ {
126231
+ "name": "icon-name",
126232
+ "type": {
126233
+ "text": "string"
126234
+ },
126235
+ "default": "''",
126236
+ "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.",
126237
+ "fieldName": "iconName",
126238
+ "inheritedFrom": {
126239
+ "name": "SbbIconNameMixin",
126240
+ "module": "icon/icon-name-mixin.js"
126241
+ }
126286
126242
  }
126287
126243
  ]
126288
126244
  },
126289
126245
  {
126290
126246
  "kind": "mixin",
126291
126247
  "description": "",
126292
- "name": "SbbInlineLinkCommonElementMixin",
126248
+ "name": "SbbBlockLinkCommonElementMixin",
126293
126249
  "members": [
126294
126250
  {
126295
126251
  "kind": "field",
@@ -126299,12 +126255,36 @@
126299
126255
  },
126300
126256
  "privacy": "public",
126301
126257
  "static": true,
126302
- "default": "[unsafeCSS(inlineStyle)]",
126258
+ "default": "[unsafeCSS(blockStyle)]",
126303
126259
  "inheritedFrom": {
126304
126260
  "name": "SbbLinkCommonElementMixin",
126305
126261
  "module": "link/common/link-common.js"
126306
126262
  }
126307
126263
  },
126264
+ {
126265
+ "kind": "field",
126266
+ "name": "size",
126267
+ "type": {
126268
+ "text": "SbbLinkSize"
126269
+ },
126270
+ "privacy": "public",
126271
+ "description": "Size variant, either xs, s or m.",
126272
+ "default": "'s' / 'xs' (lean)",
126273
+ "attribute": "size",
126274
+ "reflects": true
126275
+ },
126276
+ {
126277
+ "kind": "field",
126278
+ "name": "iconPlacement",
126279
+ "type": {
126280
+ "text": "SbbIconPlacement"
126281
+ },
126282
+ "privacy": "public",
126283
+ "default": "'start'",
126284
+ "description": "Moves the icon to the end of the component if set to true.",
126285
+ "attribute": "icon-placement",
126286
+ "reflects": true
126287
+ },
126308
126288
  {
126309
126289
  "kind": "method",
126310
126290
  "name": "renderTemplate",
@@ -126334,35 +126314,150 @@
126334
126314
  "name": "SbbNegativeMixin",
126335
126315
  "module": "core/mixins/negative-mixin.js"
126336
126316
  }
126337
- }
126338
- ],
126339
- "mixins": [
126340
- {
126341
- "name": "SbbLinkCommonElementMixin",
126342
- "module": "link/common/link-common.js"
126343
- }
126344
- ],
126345
- "parameters": [
126317
+ },
126346
126318
  {
126347
- "name": "superClass",
126319
+ "kind": "field",
126320
+ "name": "elementDependencies",
126348
126321
  "type": {
126349
- "text": "T"
126322
+ "text": "SbbElementType[]"
126323
+ },
126324
+ "privacy": "public",
126325
+ "static": true,
126326
+ "default": "[SbbIconElement]",
126327
+ "inheritedFrom": {
126328
+ "name": "SbbIconNameMixin",
126329
+ "module": "icon/icon-name-mixin.js"
126350
126330
  }
126351
- }
126352
- ],
126353
- "attributes": [
126331
+ },
126354
126332
  {
126355
- "name": "negative",
126333
+ "kind": "field",
126334
+ "name": "iconName",
126356
126335
  "type": {
126357
- "text": "boolean"
126336
+ "text": "string"
126358
126337
  },
126359
- "default": "false",
126338
+ "privacy": "public",
126339
+ "default": "''",
126340
+ "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.",
126341
+ "attribute": "icon-name",
126342
+ "inheritedFrom": {
126343
+ "name": "SbbIconNameMixin",
126344
+ "module": "icon/icon-name-mixin.js"
126345
+ }
126346
+ },
126347
+ {
126348
+ "kind": "method",
126349
+ "name": "renderIconSlot",
126350
+ "privacy": "protected",
126351
+ "return": {
126352
+ "type": {
126353
+ "text": "TemplateResult"
126354
+ }
126355
+ },
126356
+ "parameters": [
126357
+ {
126358
+ "name": "classname",
126359
+ "optional": true,
126360
+ "type": {
126361
+ "text": "string"
126362
+ }
126363
+ }
126364
+ ],
126365
+ "inheritedFrom": {
126366
+ "name": "SbbIconNameMixin",
126367
+ "module": "icon/icon-name-mixin.js"
126368
+ }
126369
+ },
126370
+ {
126371
+ "kind": "method",
126372
+ "name": "renderIconName",
126373
+ "privacy": "protected",
126374
+ "return": {
126375
+ "type": {
126376
+ "text": "string"
126377
+ }
126378
+ },
126379
+ "inheritedFrom": {
126380
+ "name": "SbbIconNameMixin",
126381
+ "module": "icon/icon-name-mixin.js"
126382
+ }
126383
+ },
126384
+ {
126385
+ "kind": "method",
126386
+ "name": "_renderIconName",
126387
+ "privacy": "private",
126388
+ "return": {
126389
+ "type": {
126390
+ "text": "string"
126391
+ }
126392
+ },
126393
+ "inheritedFrom": {
126394
+ "name": "SbbIconNameMixin",
126395
+ "module": "icon/icon-name-mixin.js"
126396
+ }
126397
+ }
126398
+ ],
126399
+ "attributes": [
126400
+ {
126401
+ "name": "size",
126402
+ "type": {
126403
+ "text": "SbbLinkSize"
126404
+ },
126405
+ "description": "Size variant, either xs, s or m.",
126406
+ "default": "'s' / 'xs' (lean)",
126407
+ "fieldName": "size"
126408
+ },
126409
+ {
126410
+ "name": "icon-placement",
126411
+ "type": {
126412
+ "text": "SbbIconPlacement"
126413
+ },
126414
+ "default": "'start'",
126415
+ "description": "Moves the icon to the end of the component if set to true.",
126416
+ "fieldName": "iconPlacement"
126417
+ },
126418
+ {
126419
+ "name": "negative",
126420
+ "type": {
126421
+ "text": "boolean"
126422
+ },
126423
+ "default": "false",
126360
126424
  "description": "Negative coloring variant flag.",
126361
126425
  "fieldName": "negative",
126362
126426
  "inheritedFrom": {
126363
126427
  "name": "SbbNegativeMixin",
126364
126428
  "module": "core/mixins/negative-mixin.js"
126365
126429
  }
126430
+ },
126431
+ {
126432
+ "name": "icon-name",
126433
+ "type": {
126434
+ "text": "string"
126435
+ },
126436
+ "default": "''",
126437
+ "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.",
126438
+ "fieldName": "iconName",
126439
+ "inheritedFrom": {
126440
+ "name": "SbbIconNameMixin",
126441
+ "module": "icon/icon-name-mixin.js"
126442
+ }
126443
+ }
126444
+ ],
126445
+ "mixins": [
126446
+ {
126447
+ "name": "SbbLinkCommonElementMixin",
126448
+ "module": "link/common/link-common.js"
126449
+ },
126450
+ {
126451
+ "name": "SbbIconNameMixin",
126452
+ "module": "icon.pure.js"
126453
+ }
126454
+ ],
126455
+ "parameters": [
126456
+ {
126457
+ "name": "superClass",
126458
+ "type": {
126459
+ "text": "T"
126460
+ }
126366
126461
  }
126367
126462
  ]
126368
126463
  }
@@ -126370,56 +126465,70 @@
126370
126465
  "exports": [
126371
126466
  {
126372
126467
  "kind": "js",
126373
- "name": "SbbInlineLinkCommonElementMixinType",
126468
+ "name": "SbbBlockLinkCommonElementMixinType",
126374
126469
  "declaration": {
126375
- "name": "SbbInlineLinkCommonElementMixinType",
126376
- "module": "link/common/inline-link-common.js"
126470
+ "name": "SbbBlockLinkCommonElementMixinType",
126471
+ "module": "link/common/block-link-common.js"
126377
126472
  }
126378
126473
  },
126379
126474
  {
126380
126475
  "kind": "js",
126381
- "name": "SbbInlineLinkCommonElementMixin",
126476
+ "name": "SbbBlockLinkCommonElementMixin",
126382
126477
  "declaration": {
126383
- "name": "SbbInlineLinkCommonElementMixin",
126384
- "module": "link/common/inline-link-common.js"
126478
+ "name": "SbbBlockLinkCommonElementMixin",
126479
+ "module": "link/common/block-link-common.js"
126385
126480
  }
126386
126481
  }
126387
126482
  ]
126388
126483
  },
126389
126484
  {
126390
126485
  "kind": "javascript-module",
126391
- "path": "link/common/link-common.js",
126486
+ "path": "link/common/inline-link-common.js",
126392
126487
  "declarations": [
126393
126488
  {
126394
126489
  "kind": "class",
126395
126490
  "description": "",
126396
- "name": "SbbLinkCommonElementMixinType",
126491
+ "name": "SbbInlineLinkCommonElementMixinType",
126397
126492
  "mixins": [
126398
126493
  {
126399
- "name": "SbbNegativeMixin",
126400
- "module": "core.js"
126494
+ "name": "SbbLinkCommonElementMixin",
126495
+ "module": "link/common/link-common.js"
126401
126496
  }
126402
126497
  ],
126403
126498
  "superclass": {
126404
126499
  "name": "SbbActionBaseElement",
126405
126500
  "module": "core.js"
126406
126501
  },
126407
- "attributes": [
126502
+ "members": [
126408
126503
  {
126409
- "name": "negative",
126504
+ "kind": "field",
126505
+ "name": "styles",
126410
126506
  "type": {
126411
- "text": "boolean"
126507
+ "text": "CSSResultGroup"
126412
126508
  },
126413
- "default": "false",
126414
- "description": "Negative coloring variant flag.",
126415
- "fieldName": "negative",
126509
+ "privacy": "public",
126510
+ "static": true,
126511
+ "default": "[boxSizingStyles, unsafeCSS(style)]",
126416
126512
  "inheritedFrom": {
126417
- "name": "SbbNegativeMixin",
126418
- "module": "core/mixins/negative-mixin.js"
126513
+ "name": "SbbLinkCommonElementMixin",
126514
+ "module": "link/common/link-common.js"
126419
126515
  }
126420
- }
126421
- ],
126422
- "members": [
126516
+ },
126517
+ {
126518
+ "kind": "method",
126519
+ "name": "renderTemplate",
126520
+ "privacy": "protected",
126521
+ "return": {
126522
+ "type": {
126523
+ "text": "TemplateResult"
126524
+ }
126525
+ },
126526
+ "description": "Override this method to render the component template.",
126527
+ "inheritedFrom": {
126528
+ "name": "SbbActionBaseElement",
126529
+ "module": "core/base-elements/action-base-element.js"
126530
+ }
126531
+ },
126423
126532
  {
126424
126533
  "kind": "field",
126425
126534
  "name": "negative",
@@ -126476,21 +126585,6 @@
126476
126585
  "module": "core/base-elements/action-base-element.js"
126477
126586
  }
126478
126587
  },
126479
- {
126480
- "kind": "method",
126481
- "name": "renderTemplate",
126482
- "privacy": "protected",
126483
- "return": {
126484
- "type": {
126485
- "text": "TemplateResult"
126486
- }
126487
- },
126488
- "description": "Override this method to render the component template.",
126489
- "inheritedFrom": {
126490
- "name": "SbbActionBaseElement",
126491
- "module": "core/base-elements/action-base-element.js"
126492
- }
126493
- },
126494
126588
  {
126495
126589
  "kind": "field",
126496
126590
  "name": "['_$sbbElement$']",
@@ -126788,12 +126882,27 @@
126788
126882
  "module": "core/base-elements/element.js"
126789
126883
  }
126790
126884
  }
126885
+ ],
126886
+ "attributes": [
126887
+ {
126888
+ "name": "negative",
126889
+ "type": {
126890
+ "text": "boolean"
126891
+ },
126892
+ "default": "false",
126893
+ "description": "Negative coloring variant flag.",
126894
+ "fieldName": "negative",
126895
+ "inheritedFrom": {
126896
+ "name": "SbbNegativeMixin",
126897
+ "module": "core/mixins/negative-mixin.js"
126898
+ }
126899
+ }
126791
126900
  ]
126792
126901
  },
126793
126902
  {
126794
126903
  "kind": "mixin",
126795
126904
  "description": "",
126796
- "name": "SbbLinkCommonElementMixin",
126905
+ "name": "SbbInlineLinkCommonElementMixin",
126797
126906
  "members": [
126798
126907
  {
126799
126908
  "kind": "field",
@@ -126803,7 +126912,11 @@
126803
126912
  },
126804
126913
  "privacy": "public",
126805
126914
  "static": true,
126806
- "default": "[boxSizingStyles, unsafeCSS(style)]"
126915
+ "default": "[unsafeCSS(inlineStyle)]",
126916
+ "inheritedFrom": {
126917
+ "name": "SbbLinkCommonElementMixin",
126918
+ "module": "link/common/link-common.js"
126919
+ }
126807
126920
  },
126808
126921
  {
126809
126922
  "kind": "method",
@@ -126813,6 +126926,10 @@
126813
126926
  "type": {
126814
126927
  "text": "TemplateResult"
126815
126928
  }
126929
+ },
126930
+ "inheritedFrom": {
126931
+ "name": "SbbLinkCommonElementMixin",
126932
+ "module": "link/common/link-common.js"
126816
126933
  }
126817
126934
  },
126818
126935
  {
@@ -126834,8 +126951,8 @@
126834
126951
  ],
126835
126952
  "mixins": [
126836
126953
  {
126837
- "name": "SbbNegativeMixin",
126838
- "module": "core.js"
126954
+ "name": "SbbLinkCommonElementMixin",
126955
+ "module": "link/common/link-common.js"
126839
126956
  }
126840
126957
  ],
126841
126958
  "parameters": [
@@ -126866,112 +126983,80 @@
126866
126983
  "exports": [
126867
126984
  {
126868
126985
  "kind": "js",
126869
- "name": "SbbLinkCommonElementMixinType",
126986
+ "name": "SbbInlineLinkCommonElementMixinType",
126870
126987
  "declaration": {
126871
- "name": "SbbLinkCommonElementMixinType",
126872
- "module": "link/common/link-common.js"
126988
+ "name": "SbbInlineLinkCommonElementMixinType",
126989
+ "module": "link/common/inline-link-common.js"
126873
126990
  }
126874
126991
  },
126875
126992
  {
126876
126993
  "kind": "js",
126877
- "name": "SbbLinkCommonElementMixin",
126994
+ "name": "SbbInlineLinkCommonElementMixin",
126878
126995
  "declaration": {
126879
- "name": "SbbLinkCommonElementMixin",
126880
- "module": "link/common/link-common.js"
126996
+ "name": "SbbInlineLinkCommonElementMixin",
126997
+ "module": "link/common/inline-link-common.js"
126881
126998
  }
126882
126999
  }
126883
127000
  ]
126884
127001
  },
126885
127002
  {
126886
127003
  "kind": "javascript-module",
126887
- "path": "link/block-link-static/block-link-static.component.js",
127004
+ "path": "link/common/link-common.js",
126888
127005
  "declarations": [
126889
127006
  {
126890
127007
  "kind": "class",
126891
- "description": "It displays a static link enhanced with the SBB Design.",
126892
- "name": "SbbBlockLinkStaticElement",
126893
- "slots": [
126894
- {
126895
- "description": "Use the unnamed slot to add content to the `sbb-block-link-static`.",
126896
- "name": ""
126897
- },
127008
+ "description": "",
127009
+ "name": "SbbLinkCommonElementMixinType",
127010
+ "mixins": [
126898
127011
  {
126899
- "description": "Slot used to display the icon, if one is set.",
126900
- "name": "icon"
127012
+ "name": "SbbNegativeMixin",
127013
+ "module": "core.js"
126901
127014
  }
126902
127015
  ],
126903
- "members": [
127016
+ "superclass": {
127017
+ "name": "SbbActionBaseElement",
127018
+ "module": "core.js"
127019
+ },
127020
+ "attributes": [
126904
127021
  {
126905
- "kind": "field",
126906
- "name": "elementName",
127022
+ "name": "negative",
126907
127023
  "type": {
126908
- "text": "string"
126909
- },
126910
- "privacy": "public",
126911
- "static": true,
126912
- "readonly": true,
126913
- "inheritedFrom": {
126914
- "name": "SbbElement",
126915
- "module": "core/base-elements/element.js"
126916
- },
126917
- "default": "'sbb-block-link-static'"
126918
- },
126919
- {
126920
- "kind": "field",
126921
- "name": "styles",
126922
- "type": {
126923
- "text": "CSSResultGroup"
127024
+ "text": "boolean"
126924
127025
  },
126925
- "privacy": "public",
126926
- "static": true,
126927
- "default": "[unsafeCSS(blockStyle)]",
127026
+ "default": "false",
127027
+ "description": "Negative coloring variant flag.",
127028
+ "fieldName": "negative",
126928
127029
  "inheritedFrom": {
126929
- "name": "SbbLinkCommonElementMixin",
126930
- "module": "link/common/link-common.js"
127030
+ "name": "SbbNegativeMixin",
127031
+ "module": "core/mixins/negative-mixin.js"
126931
127032
  }
126932
- },
127033
+ }
127034
+ ],
127035
+ "members": [
126933
127036
  {
126934
127037
  "kind": "field",
126935
- "name": "size",
127038
+ "name": "negative",
126936
127039
  "type": {
126937
- "text": "SbbLinkSize"
127040
+ "text": "boolean"
126938
127041
  },
126939
127042
  "privacy": "public",
126940
- "description": "Size variant, either xs, s or m.",
126941
- "default": "'s' / 'xs' (lean)",
126942
- "attribute": "size",
127043
+ "default": "false",
127044
+ "description": "Negative coloring variant flag.",
127045
+ "attribute": "negative",
126943
127046
  "reflects": true,
126944
127047
  "inheritedFrom": {
126945
- "name": "SbbBlockLinkCommonElementMixin",
126946
- "module": "link/common/block-link-common.js"
127048
+ "name": "SbbNegativeMixin",
127049
+ "module": "core/mixins/negative-mixin.js"
126947
127050
  }
126948
127051
  },
126949
127052
  {
126950
127053
  "kind": "field",
126951
- "name": "iconPlacement",
127054
+ "name": "maybeDisabled",
126952
127055
  "type": {
126953
- "text": "SbbIconPlacement"
127056
+ "text": "boolean | undefined"
126954
127057
  },
126955
- "privacy": "public",
126956
- "default": "'start'",
126957
- "description": "Moves the icon to the end of the component if set to true.",
126958
- "attribute": "icon-placement",
126959
- "reflects": true,
126960
- "inheritedFrom": {
126961
- "name": "SbbBlockLinkCommonElementMixin",
126962
- "module": "link/common/block-link-common.js"
126963
- }
126964
- },
126965
- {
126966
- "kind": "method",
126967
- "name": "renderTemplate",
126968
127058
  "privacy": "protected",
126969
- "return": {
126970
- "type": {
126971
- "text": "TemplateResult"
126972
- }
126973
- },
126974
- "description": "Override this method to render the component template.",
127059
+ "readonly": true,
126975
127060
  "inheritedFrom": {
126976
127061
  "name": "SbbActionBaseElement",
126977
127062
  "module": "core/base-elements/action-base-element.js"
@@ -126979,177 +127064,82 @@
126979
127064
  },
126980
127065
  {
126981
127066
  "kind": "field",
126982
- "name": "elementDependencies",
126983
- "type": {
126984
- "text": "SbbElementType[]"
126985
- },
126986
- "privacy": "public",
126987
- "static": true,
126988
- "inheritedFrom": {
126989
- "name": "SbbElement",
126990
- "module": "core/base-elements/element.js"
126991
- },
126992
- "default": "[SbbIconElement]"
126993
- },
126994
- {
126995
- "kind": "field",
126996
- "name": "iconName",
127067
+ "name": "maybeDisabledInteractive",
126997
127068
  "type": {
126998
- "text": "string"
127069
+ "text": "boolean | undefined"
126999
127070
  },
127000
- "privacy": "public",
127001
- "default": "''",
127002
- "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.",
127003
- "attribute": "icon-name",
127004
- "inheritedFrom": {
127005
- "name": "SbbIconNameMixin",
127006
- "module": "icon/icon-name-mixin.js"
127007
- }
127008
- },
127009
- {
127010
- "kind": "method",
127011
- "name": "renderIconSlot",
127012
127071
  "privacy": "protected",
127013
- "return": {
127014
- "type": {
127015
- "text": "TemplateResult"
127016
- }
127017
- },
127018
- "parameters": [
127019
- {
127020
- "name": "classname",
127021
- "optional": true,
127022
- "type": {
127023
- "text": "string"
127024
- }
127025
- }
127026
- ],
127072
+ "readonly": true,
127027
127073
  "inheritedFrom": {
127028
- "name": "SbbIconNameMixin",
127029
- "module": "icon/icon-name-mixin.js"
127074
+ "name": "SbbActionBaseElement",
127075
+ "module": "core/base-elements/action-base-element.js"
127030
127076
  }
127031
127077
  },
127032
127078
  {
127033
127079
  "kind": "method",
127034
- "name": "renderIconName",
127080
+ "name": "setupBaseEventHandlers",
127035
127081
  "privacy": "protected",
127036
127082
  "return": {
127037
127083
  "type": {
127038
- "text": "string"
127039
- }
127040
- },
127041
- "inheritedFrom": {
127042
- "name": "SbbIconNameMixin",
127043
- "module": "icon/icon-name-mixin.js"
127044
- }
127045
- },
127046
- {
127047
- "kind": "method",
127048
- "name": "_renderIconName",
127049
- "privacy": "private",
127050
- "return": {
127051
- "type": {
127052
- "text": "string"
127084
+ "text": "void"
127053
127085
  }
127054
127086
  },
127055
127087
  "inheritedFrom": {
127056
- "name": "SbbIconNameMixin",
127057
- "module": "icon/icon-name-mixin.js"
127058
- }
127059
- },
127060
- {
127061
- "kind": "field",
127062
- "name": "disabled",
127063
- "privacy": "public",
127064
- "description": "Whether the component is disabled.",
127065
- "default": "false",
127066
- "type": {
127067
- "text": "boolean"
127068
- },
127069
- "attribute": "disabled",
127070
- "reflects": true,
127071
- "inheritedFrom": {
127072
- "name": "SbbDisabledMixin",
127073
- "module": "core/mixins/disabled-mixin.js"
127074
- }
127075
- },
127076
- {
127077
- "kind": "field",
127078
- "name": "#disabled",
127079
- "privacy": "private",
127080
- "type": {
127081
- "text": "boolean"
127082
- },
127083
- "default": "false",
127084
- "inheritedFrom": {
127085
- "name": "SbbDisabledMixin",
127086
- "module": "core/mixins/disabled-mixin.js"
127088
+ "name": "SbbActionBaseElement",
127089
+ "module": "core/base-elements/action-base-element.js"
127087
127090
  }
127088
127091
  },
127089
127092
  {
127090
127093
  "kind": "method",
127091
- "name": "isDisabledExternally",
127094
+ "name": "renderTemplate",
127092
127095
  "privacy": "protected",
127093
127096
  "return": {
127094
127097
  "type": {
127095
- "text": "boolean"
127098
+ "text": "TemplateResult"
127096
127099
  }
127097
127100
  },
127098
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
127101
+ "description": "Override this method to render the component template.",
127099
127102
  "inheritedFrom": {
127100
- "name": "SbbDisabledMixin",
127101
- "module": "core/mixins/disabled-mixin.js"
127103
+ "name": "SbbActionBaseElement",
127104
+ "module": "core/base-elements/action-base-element.js"
127102
127105
  }
127103
127106
  },
127104
127107
  {
127105
127108
  "kind": "field",
127106
- "name": "maybeDisabled",
127109
+ "name": "['_$sbbElement$']",
127107
127110
  "type": {
127108
- "text": "boolean | undefined"
127111
+ "text": "boolean"
127109
127112
  },
127110
- "privacy": "protected",
127111
- "readonly": true,
127113
+ "privacy": "public",
127114
+ "static": true,
127115
+ "default": "true",
127112
127116
  "inheritedFrom": {
127113
- "name": "SbbActionBaseElement",
127114
- "module": "core/base-elements/action-base-element.js"
127117
+ "name": "SbbElement",
127118
+ "module": "core/base-elements/element.js"
127115
127119
  }
127116
127120
  },
127117
127121
  {
127118
127122
  "kind": "field",
127119
- "name": "maybeDisabledInteractive",
127123
+ "name": "elementName",
127120
127124
  "type": {
127121
- "text": "boolean | undefined"
127125
+ "text": "string"
127122
127126
  },
127123
- "privacy": "protected",
127127
+ "privacy": "public",
127128
+ "static": true,
127124
127129
  "readonly": true,
127125
127130
  "inheritedFrom": {
127126
- "name": "SbbActionBaseElement",
127127
- "module": "core/base-elements/action-base-element.js"
127128
- }
127129
- },
127130
- {
127131
- "kind": "method",
127132
- "name": "setupBaseEventHandlers",
127133
- "privacy": "protected",
127134
- "return": {
127135
- "type": {
127136
- "text": "void"
127137
- }
127138
- },
127139
- "inheritedFrom": {
127140
- "name": "SbbActionBaseElement",
127141
- "module": "core/base-elements/action-base-element.js"
127131
+ "name": "SbbElement",
127132
+ "module": "core/base-elements/element.js"
127142
127133
  }
127143
127134
  },
127144
127135
  {
127145
127136
  "kind": "field",
127146
- "name": "['_$sbbElement$']",
127137
+ "name": "elementDependencies",
127147
127138
  "type": {
127148
- "text": "boolean"
127139
+ "text": "SbbElementType[] | undefined"
127149
127140
  },
127150
127141
  "privacy": "public",
127151
127142
  "static": true,
127152
- "default": "true",
127153
127143
  "inheritedFrom": {
127154
127144
  "name": "SbbElement",
127155
127145
  "module": "core/base-elements/element.js"
@@ -127411,74 +127401,76 @@
127411
127401
  "module": "core/base-elements/element.js"
127412
127402
  }
127413
127403
  }
127414
- ],
127415
- "mixins": [
127416
- {
127417
- "name": "SbbBlockLinkCommonElementMixin",
127418
- "module": "link/common/block-link-common.js"
127419
- },
127420
- {
127421
- "name": "SbbDisabledMixin",
127422
- "module": "core.js"
127423
- }
127424
- ],
127425
- "superclass": {
127426
- "name": "SbbActionBaseElement",
127427
- "module": "core.js"
127428
- },
127429
- "tagName": "sbb-block-link-static",
127430
- "customElement": true,
127431
- "attributes": [
127404
+ ]
127405
+ },
127406
+ {
127407
+ "kind": "mixin",
127408
+ "description": "",
127409
+ "name": "SbbLinkCommonElementMixin",
127410
+ "members": [
127432
127411
  {
127433
- "name": "size",
127412
+ "kind": "field",
127413
+ "name": "styles",
127434
127414
  "type": {
127435
- "text": "SbbLinkSize"
127415
+ "text": "CSSResultGroup"
127436
127416
  },
127437
- "description": "Size variant, either xs, s or m.",
127438
- "default": "'s' / 'xs' (lean)",
127439
- "fieldName": "size",
127440
- "inheritedFrom": {
127441
- "name": "SbbBlockLinkCommonElementMixin",
127442
- "module": "link/common/block-link-common.js"
127417
+ "privacy": "public",
127418
+ "static": true,
127419
+ "default": "[boxSizingStyles, unsafeCSS(style)]"
127420
+ },
127421
+ {
127422
+ "kind": "method",
127423
+ "name": "renderTemplate",
127424
+ "privacy": "protected",
127425
+ "return": {
127426
+ "type": {
127427
+ "text": "TemplateResult"
127428
+ }
127443
127429
  }
127444
127430
  },
127445
127431
  {
127446
- "name": "icon-placement",
127432
+ "kind": "field",
127433
+ "name": "negative",
127447
127434
  "type": {
127448
- "text": "SbbIconPlacement"
127435
+ "text": "boolean"
127449
127436
  },
127450
- "default": "'start'",
127451
- "description": "Moves the icon to the end of the component if set to true.",
127452
- "fieldName": "iconPlacement",
127437
+ "privacy": "public",
127438
+ "default": "false",
127439
+ "description": "Negative coloring variant flag.",
127440
+ "attribute": "negative",
127441
+ "reflects": true,
127453
127442
  "inheritedFrom": {
127454
- "name": "SbbBlockLinkCommonElementMixin",
127455
- "module": "link/common/block-link-common.js"
127443
+ "name": "SbbNegativeMixin",
127444
+ "module": "core/mixins/negative-mixin.js"
127456
127445
  }
127457
- },
127446
+ }
127447
+ ],
127448
+ "mixins": [
127458
127449
  {
127459
- "name": "icon-name",
127450
+ "name": "SbbNegativeMixin",
127451
+ "module": "core.js"
127452
+ }
127453
+ ],
127454
+ "parameters": [
127455
+ {
127456
+ "name": "superClass",
127460
127457
  "type": {
127461
- "text": "string"
127462
- },
127463
- "default": "''",
127464
- "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.",
127465
- "fieldName": "iconName",
127466
- "inheritedFrom": {
127467
- "name": "SbbIconNameMixin",
127468
- "module": "icon/icon-name-mixin.js"
127458
+ "text": "T"
127469
127459
  }
127470
- },
127460
+ }
127461
+ ],
127462
+ "attributes": [
127471
127463
  {
127472
- "name": "disabled",
127473
- "description": "Whether the component is disabled.",
127474
- "default": "false",
127464
+ "name": "negative",
127475
127465
  "type": {
127476
127466
  "text": "boolean"
127477
127467
  },
127478
- "fieldName": "disabled",
127468
+ "default": "false",
127469
+ "description": "Negative coloring variant flag.",
127470
+ "fieldName": "negative",
127479
127471
  "inheritedFrom": {
127480
- "name": "SbbDisabledMixin",
127481
- "module": "core/mixins/disabled-mixin.js"
127472
+ "name": "SbbNegativeMixin",
127473
+ "module": "core/mixins/negative-mixin.js"
127482
127474
  }
127483
127475
  }
127484
127476
  ]
@@ -127487,10 +127479,18 @@
127487
127479
  "exports": [
127488
127480
  {
127489
127481
  "kind": "js",
127490
- "name": "SbbBlockLinkStaticElement",
127482
+ "name": "SbbLinkCommonElementMixinType",
127491
127483
  "declaration": {
127492
- "name": "SbbBlockLinkStaticElement",
127493
- "module": "link/block-link-static/block-link-static.component.js"
127484
+ "name": "SbbLinkCommonElementMixinType",
127485
+ "module": "link/common/link-common.js"
127486
+ }
127487
+ },
127488
+ {
127489
+ "kind": "js",
127490
+ "name": "SbbLinkCommonElementMixin",
127491
+ "declaration": {
127492
+ "name": "SbbLinkCommonElementMixin",
127493
+ "module": "link/common/link-common.js"
127494
127494
  }
127495
127495
  }
127496
127496
  ]
@@ -148729,28 +148729,20 @@
148729
148729
  },
148730
148730
  {
148731
148731
  "kind": "javascript-module",
148732
- "path": "sidebar/sidebar-close-button/sidebar-close-button.component.js",
148732
+ "path": "sidebar/sidebar/sidebar.component.js",
148733
148733
  "declarations": [
148734
148734
  {
148735
148735
  "kind": "class",
148736
- "description": "Sidebar close button, intended to be placed inside sbb-sidebar.",
148737
- "name": "SbbSidebarCloseButtonElement",
148736
+ "description": "This component corresponds to a sidebar that can be opened on the sidebar container.",
148737
+ "name": "SbbSidebarElement",
148738
148738
  "slots": [
148739
148739
  {
148740
- "description": "Use the unnamed slot to add content to the sidebar-close-button. Not intended to be used in this context.",
148741
- "name": "",
148742
- "inheritedFrom": {
148743
- "name": "SbbSecondaryButtonElement",
148744
- "module": "button/secondary-button/secondary-button.component.js"
148745
- }
148740
+ "description": "Use the unnamed slot to slot any content into the sidebar.",
148741
+ "name": ""
148746
148742
  },
148747
148743
  {
148748
- "description": "Slot used to display the icon, if one is set. Not intended to be used in this context.",
148749
- "name": "icon",
148750
- "inheritedFrom": {
148751
- "name": "SbbSecondaryButtonElement",
148752
- "module": "button/secondary-button/secondary-button.component.js"
148753
- }
148744
+ "description": "Use the title slot to add an <sbb-title>.",
148745
+ "name": "title"
148754
148746
  }
148755
148747
  ],
148756
148748
  "members": [
@@ -148767,314 +148759,252 @@
148767
148759
  "name": "SbbElement",
148768
148760
  "module": "core/base-elements/element.js"
148769
148761
  },
148770
- "default": "'sbb-sidebar-close-button'"
148762
+ "default": "'sbb-sidebar'"
148771
148763
  },
148772
148764
  {
148773
148765
  "kind": "field",
148774
- "name": "_languageController",
148775
- "privacy": "private",
148776
- "default": "new SbbLanguageController(this)"
148777
- },
148778
- {
148779
- "kind": "method",
148780
- "name": "renderTemplate",
148781
- "privacy": "protected",
148782
- "return": {
148783
- "type": {
148784
- "text": "TemplateResult"
148785
- }
148786
- },
148787
- "description": "Override this method to render the component template.",
148788
- "inheritedFrom": {
148789
- "name": "SbbActionBaseElement",
148790
- "module": "core/base-elements/action-base-element.js"
148791
- }
148792
- },
148793
- {
148794
- "kind": "method",
148795
- "name": "renderIconName",
148796
- "privacy": "protected",
148797
- "return": {
148798
- "type": {
148799
- "text": "string"
148800
- }
148766
+ "name": "color",
148767
+ "type": {
148768
+ "text": "'white' | 'milk'"
148801
148769
  },
148802
- "inheritedFrom": {
148803
- "name": "SbbIconNameMixin",
148804
- "module": "icon/icon-name-mixin.js"
148805
- }
148770
+ "privacy": "public",
148771
+ "default": "'white'",
148772
+ "description": "Background color of the sidebar. Either `white` or `milk`.",
148773
+ "attribute": "color",
148774
+ "reflects": true
148806
148775
  },
148807
148776
  {
148808
148777
  "kind": "field",
148809
- "name": "size",
148778
+ "name": "mode",
148810
148779
  "type": {
148811
- "text": "SbbButtonSize"
148780
+ "text": "'side' | 'over'"
148812
148781
  },
148813
148782
  "privacy": "public",
148814
- "description": "Size variant, either l, m or s.",
148815
- "default": "'s'",
148816
- "attribute": "size",
148817
- "reflects": true,
148818
- "inheritedFrom": {
148819
- "name": "SbbButtonCommonElementMixin",
148820
- "module": "button/common/button-common.js"
148821
- }
148783
+ "default": "'side'",
148784
+ "description": "Mode of the sidebar; one of 'side' or 'over'.",
148785
+ "attribute": "mode",
148786
+ "reflects": true
148822
148787
  },
148823
148788
  {
148824
148789
  "kind": "field",
148825
- "name": "styles",
148790
+ "name": "position",
148826
148791
  "type": {
148827
- "text": "CSSResultGroup"
148792
+ "text": "'start' | 'end'"
148828
148793
  },
148829
148794
  "privacy": "public",
148830
- "static": true,
148831
- "default": "[boxSizingStyles, unsafeCSS(style)]",
148832
- "inheritedFrom": {
148833
- "name": "SbbButtonCommonElementMixin",
148834
- "module": "button/common/button-common.js"
148835
- }
148795
+ "default": "'start'",
148796
+ "description": "The side that the sidebar is attached to.",
148797
+ "attribute": "position",
148798
+ "reflects": true
148836
148799
  },
148837
148800
  {
148838
148801
  "kind": "field",
148839
- "name": "loading",
148802
+ "name": "opened",
148840
148803
  "type": {
148841
148804
  "text": "boolean"
148842
148805
  },
148843
148806
  "privacy": "public",
148844
148807
  "default": "false",
148845
- "description": "Whether the button indicates a loading state.\nThe animation kicks in after a delay of 300ms, configurable with --sbb-button-loading-delay CSS variable.",
148846
- "attribute": "loading",
148847
- "reflects": true,
148848
- "inheritedFrom": {
148849
- "name": "SbbButtonCommonElementMixin",
148850
- "module": "button/common/button-common.js"
148851
- }
148808
+ "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
148809
+ "attribute": "opened",
148810
+ "reflects": true
148852
148811
  },
148853
148812
  {
148854
148813
  "kind": "field",
148855
- "name": "negative",
148814
+ "name": "focusOnOpen",
148856
148815
  "type": {
148857
148816
  "text": "boolean"
148858
148817
  },
148859
148818
  "privacy": "public",
148860
148819
  "default": "false",
148861
- "description": "Negative coloring variant flag.",
148862
- "attribute": "negative",
148863
- "reflects": true,
148864
- "inheritedFrom": {
148865
- "name": "SbbNegativeMixin",
148866
- "module": "core/mixins/negative-mixin.js"
148867
- }
148820
+ "description": "Whether the sidebar should focus the first focusable element automatically when opened.\nDefaults to false in when mode is set to `side`, otherwise defaults to true.\nIf explicitly enabled, focus will be moved into the sidebar in `side` mode as well.",
148821
+ "attribute": "focus-on-open"
148868
148822
  },
148869
148823
  {
148870
148824
  "kind": "field",
148871
- "name": "elementDependencies",
148825
+ "name": "container",
148872
148826
  "type": {
148873
- "text": "SbbElementType[]"
148827
+ "text": "SbbSidebarContainerElement | null"
148874
148828
  },
148875
148829
  "privacy": "public",
148876
- "static": true,
148877
- "inheritedFrom": {
148878
- "name": "SbbElement",
148879
- "module": "core/base-elements/element.js"
148830
+ "description": "Returns the SbbSidebarContainerElement where this sidebar is contained.",
148831
+ "readonly": true,
148832
+ "default": "null"
148833
+ },
148834
+ {
148835
+ "kind": "field",
148836
+ "name": "_container",
148837
+ "type": {
148838
+ "text": "SbbSidebarContainerElement | null"
148880
148839
  },
148881
- "default": "[SbbIconElement]"
148840
+ "privacy": "private",
148841
+ "default": "null"
148882
148842
  },
148883
148843
  {
148884
148844
  "kind": "field",
148885
- "name": "iconName",
148845
+ "name": "_lastFocusedElement",
148886
148846
  "type": {
148887
- "text": "string"
148847
+ "text": "HTMLElement | null"
148888
148848
  },
148889
- "privacy": "public",
148890
- "default": "''",
148891
- "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.",
148892
- "attribute": "icon-name",
148893
- "inheritedFrom": {
148894
- "name": "SbbIconNameMixin",
148895
- "module": "icon/icon-name-mixin.js"
148896
- }
148849
+ "privacy": "private",
148850
+ "default": "null"
148851
+ },
148852
+ {
148853
+ "kind": "field",
148854
+ "name": "_focusTrapController",
148855
+ "privacy": "private",
148856
+ "default": "new SbbFocusTrapController(this)"
148857
+ },
148858
+ {
148859
+ "kind": "field",
148860
+ "name": "_escapableOverlayController",
148861
+ "privacy": "private",
148862
+ "default": "new SbbEscapableOverlayController(this)"
148863
+ },
148864
+ {
148865
+ "kind": "field",
148866
+ "name": "_closeOnNavigation",
148867
+ "privacy": "private"
148897
148868
  },
148898
148869
  {
148899
148870
  "kind": "method",
148900
- "name": "renderIconSlot",
148901
- "privacy": "protected",
148871
+ "name": "toggle",
148872
+ "privacy": "public",
148902
148873
  "return": {
148903
148874
  "type": {
148904
- "text": "TemplateResult"
148875
+ "text": "void"
148905
148876
  }
148906
148877
  },
148907
- "parameters": [
148908
- {
148909
- "name": "classname",
148910
- "optional": true,
148911
- "type": {
148912
- "text": "string"
148913
- }
148914
- }
148915
- ],
148916
- "inheritedFrom": {
148917
- "name": "SbbIconNameMixin",
148918
- "module": "icon/icon-name-mixin.js"
148919
- }
148878
+ "description": "Toggles the sidebar visibility."
148920
148879
  },
148921
148880
  {
148922
148881
  "kind": "method",
148923
- "name": "_renderIconName",
148924
- "privacy": "private",
148882
+ "name": "open",
148883
+ "privacy": "public",
148925
148884
  "return": {
148926
148885
  "type": {
148927
- "text": "string"
148886
+ "text": "void"
148928
148887
  }
148929
148888
  },
148889
+ "description": "Opens the sidebar.",
148930
148890
  "inheritedFrom": {
148931
- "name": "SbbIconNameMixin",
148932
- "module": "icon/icon-name-mixin.js"
148933
- }
148934
- },
148935
- {
148936
- "kind": "field",
148937
- "name": "disabledInteractive",
148938
- "type": {
148939
- "text": "boolean"
148940
- },
148941
- "privacy": "public",
148942
- "default": "false",
148943
- "description": "Whether the button should be aria-disabled but stay interactive.",
148944
- "attribute": "disabled-interactive",
148945
- "reflects": true,
148946
- "inheritedFrom": {
148947
- "name": "SbbDisabledInteractiveMixin",
148948
- "module": "core/mixins/disabled-mixin.js"
148891
+ "name": "SbbOpenCloseBaseElement",
148892
+ "module": "core/base-elements/open-close-base-element.js"
148949
148893
  }
148950
148894
  },
148951
148895
  {
148952
- "kind": "field",
148953
- "name": "disabled",
148954
- "privacy": "public",
148955
- "description": "Whether the component is disabled.",
148956
- "default": "false",
148957
- "type": {
148958
- "text": "boolean"
148959
- },
148960
- "attribute": "disabled",
148961
- "reflects": true,
148962
- "inheritedFrom": {
148963
- "name": "SbbDisabledMixin",
148964
- "module": "core/mixins/disabled-mixin.js"
148896
+ "kind": "method",
148897
+ "name": "_isZeroAnimationDuration",
148898
+ "privacy": "private",
148899
+ "return": {
148900
+ "type": {
148901
+ "text": "boolean"
148902
+ }
148965
148903
  }
148966
148904
  },
148967
148905
  {
148968
- "kind": "field",
148969
- "name": "#disabled",
148906
+ "kind": "method",
148907
+ "name": "_handleOpening",
148970
148908
  "privacy": "private",
148971
- "type": {
148972
- "text": "boolean"
148973
- },
148974
- "default": "false",
148975
- "inheritedFrom": {
148976
- "name": "SbbDisabledMixin",
148977
- "module": "core/mixins/disabled-mixin.js"
148909
+ "return": {
148910
+ "type": {
148911
+ "text": "void"
148912
+ }
148978
148913
  }
148979
148914
  },
148980
148915
  {
148981
148916
  "kind": "method",
148982
- "name": "isDisabledExternally",
148983
- "privacy": "protected",
148917
+ "name": "close",
148918
+ "privacy": "public",
148984
148919
  "return": {
148985
148920
  "type": {
148986
- "text": "boolean"
148921
+ "text": "void"
148987
148922
  }
148988
148923
  },
148989
- "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
148924
+ "description": "Closes the sidebar.",
148990
148925
  "inheritedFrom": {
148991
- "name": "SbbDisabledMixin",
148992
- "module": "core/mixins/disabled-mixin.js"
148926
+ "name": "SbbOpenCloseBaseElement",
148927
+ "module": "core/base-elements/open-close-base-element.js"
148993
148928
  }
148994
148929
  },
148995
148930
  {
148996
- "kind": "field",
148997
- "name": "_elementsOnWhichEnterPressTriggersSubmit",
148998
- "type": {
148999
- "text": "array"
149000
- },
148931
+ "kind": "method",
148932
+ "name": "_handleClosing",
149001
148933
  "privacy": "private",
149002
- "readonly": true,
149003
- "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
149004
- "inheritedFrom": {
149005
- "name": "SbbButtonBaseElement",
149006
- "module": "core/base-elements/button-base-element.js"
148934
+ "return": {
148935
+ "type": {
148936
+ "text": "void"
148937
+ }
149007
148938
  }
149008
148939
  },
149009
148940
  {
149010
- "kind": "field",
149011
- "name": "value",
149012
- "type": {
149013
- "text": "string"
149014
- },
149015
- "privacy": "public",
149016
- "inheritedFrom": {
149017
- "name": "SbbButtonBaseElement",
149018
- "module": "core/base-elements/button-base-element.js"
149019
- },
149020
- "default": "''",
149021
- "description": "Value of the form element.",
149022
- "attribute": "value"
148941
+ "kind": "method",
148942
+ "name": "_takeFocus",
148943
+ "privacy": "private",
148944
+ "return": {
148945
+ "type": {
148946
+ "text": "void"
148947
+ }
148948
+ }
149023
148949
  },
149024
148950
  {
149025
- "kind": "field",
149026
- "name": "type",
149027
- "privacy": "public",
149028
- "description": "The type attribute to use for the button.",
149029
- "default": "'button'",
149030
- "type": {
149031
- "text": "SbbButtonType"
149032
- },
149033
- "attribute": "type",
149034
- "inheritedFrom": {
149035
- "name": "SbbButtonBaseElement",
149036
- "module": "core/base-elements/button-base-element.js"
148951
+ "kind": "method",
148952
+ "name": "cedeFocus",
148953
+ "privacy": "protected",
148954
+ "return": {
148955
+ "type": {
148956
+ "text": "void"
148957
+ }
149037
148958
  }
149038
148959
  },
149039
148960
  {
149040
- "kind": "field",
149041
- "name": "form",
149042
- "type": {
149043
- "text": "HTMLFormElement | null"
149044
- },
149045
- "privacy": "public",
149046
- "description": "The `<form>` element to associate the button with.",
149047
- "inheritedFrom": {
149048
- "name": "SbbButtonBaseElement",
149049
- "module": "core/base-elements/button-base-element.js"
148961
+ "kind": "method",
148962
+ "name": "_updateSidebarWidth",
148963
+ "privacy": "private",
148964
+ "return": {
148965
+ "type": {
148966
+ "text": "void"
148967
+ }
149050
148968
  },
149051
- "attribute": "form"
148969
+ "parameters": [
148970
+ {
148971
+ "name": "oldPosition",
148972
+ "optional": true,
148973
+ "type": {
148974
+ "text": "this['position']"
148975
+ }
148976
+ }
148977
+ ]
149052
148978
  },
149053
148979
  {
149054
- "kind": "field",
149055
- "name": "_formId",
149056
- "type": {
149057
- "text": "string"
149058
- },
148980
+ "kind": "method",
148981
+ "name": "_buildCssWidthVar",
149059
148982
  "privacy": "private",
149060
- "default": "''",
149061
- "inheritedFrom": {
149062
- "name": "SbbButtonBaseElement",
149063
- "module": "core/base-elements/button-base-element.js"
149064
- }
148983
+ "return": {
148984
+ "type": {
148985
+ "text": "string"
148986
+ }
148987
+ },
148988
+ "parameters": [
148989
+ {
148990
+ "name": "position",
148991
+ "default": "this.position"
148992
+ }
148993
+ ]
149065
148994
  },
149066
148995
  {
149067
- "kind": "field",
149068
- "name": "_handleButtonClick",
148996
+ "kind": "method",
148997
+ "name": "_isModeOver",
149069
148998
  "privacy": "private",
149070
- "inheritedFrom": {
149071
- "name": "SbbButtonBaseElement",
149072
- "module": "core/base-elements/button-base-element.js"
148999
+ "return": {
149000
+ "type": {
149001
+ "text": "boolean"
149002
+ }
149073
149003
  }
149074
149004
  },
149075
149005
  {
149076
149006
  "kind": "method",
149077
- "name": "_requestSubmit",
149007
+ "name": "_onTransitionEnd",
149078
149008
  "privacy": "private",
149079
149009
  "return": {
149080
149010
  "type": {
@@ -149083,441 +149013,267 @@
149083
149013
  },
149084
149014
  "parameters": [
149085
149015
  {
149086
- "name": "form",
149016
+ "name": "event",
149087
149017
  "type": {
149088
- "text": "HTMLFormElement"
149018
+ "text": "TransitionEvent"
149089
149019
  }
149090
149020
  }
149091
- ],
149092
- "inheritedFrom": {
149093
- "name": "SbbButtonBaseElement",
149094
- "module": "core/base-elements/button-base-element.js"
149095
- }
149021
+ ]
149096
149022
  },
149097
149023
  {
149098
- "kind": "field",
149099
- "name": "_formKeyDown",
149024
+ "kind": "method",
149025
+ "name": "_detectScrolledState",
149100
149026
  "privacy": "private",
149101
- "inheritedFrom": {
149102
- "name": "SbbButtonBaseElement",
149103
- "module": "core/base-elements/button-base-element.js"
149027
+ "return": {
149028
+ "type": {
149029
+ "text": "void"
149030
+ }
149104
149031
  }
149105
149032
  },
149106
149033
  {
149107
149034
  "kind": "field",
149108
- "name": "formAssociated",
149035
+ "name": "isAnimating",
149109
149036
  "type": {
149110
149037
  "text": "boolean"
149111
149038
  },
149112
149039
  "privacy": "public",
149113
- "static": true,
149114
- "default": "true",
149040
+ "default": "false",
149041
+ "description": "Whether the component is currently animating.",
149115
149042
  "inheritedFrom": {
149116
- "name": "SbbFormAssociatedMixin",
149117
- "module": "core/mixins/form-associated-mixin.js"
149043
+ "name": "SbbAnimationCompleteMixin",
149044
+ "module": "core/mixins/animation-complete-mixin.js"
149118
149045
  }
149119
149046
  },
149120
149047
  {
149121
149048
  "kind": "field",
149122
- "name": "name",
149123
- "privacy": "public",
149124
- "description": "Name of the form element. Will be read from name attribute.",
149049
+ "name": "animationComplete",
149125
149050
  "type": {
149126
- "text": "string"
149051
+ "text": "Promise<void>"
149127
149052
  },
149128
- "attribute": "name",
149053
+ "privacy": "public",
149054
+ "description": "Returns a promise which completes whenever an animation ends.\nWhen a new animation starts, a new Promise is returned.",
149055
+ "readonly": true,
149129
149056
  "inheritedFrom": {
149130
- "name": "SbbFormAssociatedMixin",
149131
- "module": "core/mixins/form-associated-mixin.js"
149057
+ "name": "SbbAnimationCompleteMixin",
149058
+ "module": "core/mixins/animation-complete-mixin.js"
149132
149059
  }
149133
149060
  },
149134
149061
  {
149135
149062
  "kind": "field",
149136
- "name": "validity",
149063
+ "name": "_animationPromise",
149137
149064
  "type": {
149138
- "text": "ValidityState"
149065
+ "text": "Promise<void>"
149139
149066
  },
149140
- "privacy": "public",
149141
- "description": "Returns the ValidityState object for this element.",
149142
- "readonly": true,
149143
- "inheritedFrom": {
149144
- "name": "SbbFormAssociatedMixin",
149145
- "module": "core/mixins/form-associated-mixin.js"
149146
- }
149147
- },
149148
- {
149149
- "kind": "field",
149150
- "name": "validationMessage",
149151
- "type": {
149152
- "text": "string"
149153
- },
149154
- "privacy": "public",
149155
- "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.",
149156
- "readonly": true,
149157
- "inheritedFrom": {
149158
- "name": "SbbFormAssociatedMixin",
149159
- "module": "core/mixins/form-associated-mixin.js"
149160
- }
149161
- },
149162
- {
149163
- "kind": "field",
149164
- "name": "willValidate",
149165
- "type": {
149166
- "text": "boolean"
149167
- },
149168
- "privacy": "public",
149169
- "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
149170
- "readonly": true,
149171
- "inheritedFrom": {
149172
- "name": "SbbFormAssociatedMixin",
149173
- "module": "core/mixins/form-associated-mixin.js"
149174
- }
149175
- },
149176
- {
149177
- "kind": "field",
149178
- "name": "_validityStates",
149179
149067
  "privacy": "private",
149180
- "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
149181
149068
  "inheritedFrom": {
149182
- "name": "SbbFormAssociatedMixin",
149183
- "module": "core/mixins/form-associated-mixin.js"
149069
+ "name": "SbbAnimationCompleteMixin",
149070
+ "module": "core/mixins/animation-complete-mixin.js"
149184
149071
  }
149185
149072
  },
149186
149073
  {
149187
- "kind": "field",
149188
- "name": "formDisabled",
149189
- "type": {
149190
- "text": "boolean"
149191
- },
149074
+ "kind": "method",
149075
+ "name": "startAnimation",
149192
149076
  "privacy": "protected",
149193
- "default": "false",
149194
- "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
149077
+ "return": {
149078
+ "type": {
149079
+ "text": "void"
149080
+ }
149081
+ },
149195
149082
  "inheritedFrom": {
149196
- "name": "SbbFormAssociatedMixin",
149197
- "module": "core/mixins/form-associated-mixin.js"
149083
+ "name": "SbbAnimationCompleteMixin",
149084
+ "module": "core/mixins/animation-complete-mixin.js"
149198
149085
  }
149199
149086
  },
149200
149087
  {
149201
149088
  "kind": "method",
149202
- "name": "checkValidity",
149203
- "privacy": "public",
149089
+ "name": "stopAnimation",
149090
+ "privacy": "protected",
149204
149091
  "return": {
149205
149092
  "type": {
149206
- "text": "boolean"
149093
+ "text": "void"
149207
149094
  }
149208
149095
  },
149209
- "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
149096
+ "description": "Overriding stopAnimation() breaks functionality.",
149210
149097
  "inheritedFrom": {
149211
- "name": "SbbFormAssociatedMixin",
149212
- "module": "core/mixins/form-associated-mixin.js"
149098
+ "name": "SbbAnimationCompleteMixin",
149099
+ "module": "core/mixins/animation-complete-mixin.js"
149213
149100
  }
149214
149101
  },
149215
149102
  {
149216
149103
  "kind": "method",
149217
- "name": "reportValidity",
149218
- "privacy": "public",
149104
+ "name": "_enqueueAnimation",
149105
+ "privacy": "private",
149219
149106
  "return": {
149220
149107
  "type": {
149221
- "text": "boolean"
149108
+ "text": "Promise<void>"
149222
149109
  }
149223
149110
  },
149224
- "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.",
149225
149111
  "inheritedFrom": {
149226
- "name": "SbbFormAssociatedMixin",
149227
- "module": "core/mixins/form-associated-mixin.js"
149112
+ "name": "SbbAnimationCompleteMixin",
149113
+ "module": "core/mixins/animation-complete-mixin.js"
149228
149114
  }
149229
149115
  },
149230
149116
  {
149231
- "kind": "method",
149232
- "name": "setCustomValidity",
149117
+ "kind": "field",
149118
+ "name": "events",
149233
149119
  "privacy": "public",
149234
- "return": {
149235
- "type": {
149236
- "text": "void"
149237
- }
149120
+ "static": true,
149121
+ "readonly": true,
149122
+ "default": "{ beforeopen: 'beforeopen', open: 'open', beforeclose: 'beforeclose', close: 'close', }",
149123
+ "type": {
149124
+ "text": "{\n beforeopen: 'beforeopen',\n open: 'open',\n beforeclose: 'beforeclose',\n close: 'close',\n }"
149238
149125
  },
149239
- "parameters": [
149240
- {
149241
- "name": "message",
149242
- "type": {
149243
- "text": "string"
149244
- }
149245
- }
149246
- ],
149247
- "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.",
149248
149126
  "inheritedFrom": {
149249
- "name": "SbbFormAssociatedMixin",
149250
- "module": "core/mixins/form-associated-mixin.js"
149127
+ "name": "SbbOpenCloseBaseElement",
149128
+ "module": "core/base-elements/open-close-base-element.js"
149251
149129
  }
149252
149130
  },
149253
149131
  {
149254
- "kind": "method",
149255
- "name": "_hasDisabledAncestor",
149256
- "privacy": "private",
149257
- "return": {
149258
- "type": {
149259
- "text": "boolean"
149260
- }
149132
+ "kind": "field",
149133
+ "name": "state",
149134
+ "privacy": "protected",
149135
+ "description": "The state of the component.",
149136
+ "type": {
149137
+ "text": "SbbOpenedClosedState"
149261
149138
  },
149139
+ "default": "'closed'",
149262
149140
  "inheritedFrom": {
149263
- "name": "SbbFormAssociatedMixin",
149264
- "module": "core/mixins/form-associated-mixin.js"
149141
+ "name": "SbbOpenCloseBaseElement",
149142
+ "module": "core/base-elements/open-close-base-element.js"
149265
149143
  }
149266
149144
  },
149267
149145
  {
149268
- "kind": "method",
149269
- "name": "updateFormValue",
149270
- "privacy": "protected",
149271
- "return": {
149272
- "type": {
149273
- "text": "void"
149274
- }
149146
+ "kind": "field",
149147
+ "name": "_state",
149148
+ "type": {
149149
+ "text": "SbbOpenedClosedState"
149275
149150
  },
149276
- "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",
149151
+ "privacy": "private",
149277
149152
  "inheritedFrom": {
149278
- "name": "SbbFormAssociatedMixin",
149279
- "module": "core/mixins/form-associated-mixin.js"
149153
+ "name": "SbbOpenCloseBaseElement",
149154
+ "module": "core/base-elements/open-close-base-element.js"
149280
149155
  }
149281
149156
  },
149282
149157
  {
149283
- "kind": "method",
149284
- "name": "formState",
149285
- "privacy": "protected",
149286
- "return": {
149287
- "type": {
149288
- "text": "FormRestoreState"
149289
- }
149158
+ "kind": "field",
149159
+ "name": "isOpen",
149160
+ "type": {
149161
+ "text": "boolean"
149290
149162
  },
149163
+ "privacy": "public",
149164
+ "description": "Whether the element is open.",
149165
+ "readonly": true,
149291
149166
  "inheritedFrom": {
149292
- "name": "SbbFormAssociatedMixin",
149293
- "module": "core/mixins/form-associated-mixin.js"
149167
+ "name": "SbbOpenCloseBaseElement",
149168
+ "module": "core/base-elements/open-close-base-element.js"
149294
149169
  }
149295
149170
  },
149296
149171
  {
149297
149172
  "kind": "method",
149298
- "name": "setValidityFlag",
149299
- "privacy": "protected",
149173
+ "name": "escapeStrategy",
149174
+ "privacy": "public",
149300
149175
  "return": {
149301
149176
  "type": {
149302
149177
  "text": "void"
149303
149178
  }
149304
149179
  },
149305
- "parameters": [
149306
- {
149307
- "name": "flag",
149308
- "type": {
149309
- "text": "T"
149310
- }
149311
- },
149312
- {
149313
- "name": "message",
149314
- "type": {
149315
- "text": "string"
149316
- }
149317
- },
149318
- {
149319
- "name": "flagValue",
149320
- "optional": true,
149321
- "type": {
149322
- "text": "ValidityStateFlags[T]"
149323
- }
149324
- }
149325
- ],
149326
- "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).",
149180
+ "description": "The method which is called on escape key press. Defaults to calling close()",
149327
149181
  "inheritedFrom": {
149328
- "name": "SbbFormAssociatedMixin",
149329
- "module": "core/mixins/form-associated-mixin.js"
149182
+ "name": "SbbOpenCloseBaseElement",
149183
+ "module": "core/base-elements/open-close-base-element.js"
149330
149184
  }
149331
149185
  },
149332
149186
  {
149333
149187
  "kind": "method",
149334
- "name": "removeValidityFlag",
149188
+ "name": "dispatchBeforeOpenEvent",
149335
149189
  "privacy": "protected",
149336
149190
  "return": {
149337
149191
  "type": {
149338
- "text": "void"
149192
+ "text": "boolean"
149339
149193
  }
149340
149194
  },
149341
- "parameters": [
149342
- {
149343
- "name": "flag",
149344
- "type": {
149345
- "text": "T"
149346
- }
149347
- }
149348
- ],
149349
- "description": "Removes the validity state flag entry and updates validity state.",
149350
149195
  "inheritedFrom": {
149351
- "name": "SbbFormAssociatedMixin",
149352
- "module": "core/mixins/form-associated-mixin.js"
149196
+ "name": "SbbOpenCloseBaseElement",
149197
+ "module": "core/base-elements/open-close-base-element.js"
149353
149198
  }
149354
149199
  },
149355
149200
  {
149356
149201
  "kind": "method",
149357
- "name": "validate",
149202
+ "name": "dispatchOpenEvent",
149358
149203
  "privacy": "protected",
149359
149204
  "return": {
149360
149205
  "type": {
149361
- "text": "void"
149206
+ "text": "boolean"
149362
149207
  }
149363
149208
  },
149364
- "description": "To be called whenever the current element needs to be validated.",
149365
149209
  "inheritedFrom": {
149366
- "name": "SbbFormAssociatedMixin",
149367
- "module": "core/mixins/form-associated-mixin.js"
149210
+ "name": "SbbOpenCloseBaseElement",
149211
+ "module": "core/base-elements/open-close-base-element.js"
149368
149212
  }
149369
149213
  },
149370
149214
  {
149371
149215
  "kind": "method",
149372
- "name": "shouldValidate",
149216
+ "name": "dispatchBeforeCloseEvent",
149373
149217
  "privacy": "protected",
149374
149218
  "return": {
149375
149219
  "type": {
149376
149220
  "text": "boolean"
149377
149221
  }
149378
149222
  },
149379
- "parameters": [
149380
- {
149381
- "name": "name",
149382
- "type": {
149383
- "text": "PropertyKey | undefined"
149384
- }
149385
- }
149386
- ],
149387
- "description": "Whether validation should be run on a property change with the given name.",
149388
149223
  "inheritedFrom": {
149389
- "name": "SbbFormAssociatedMixin",
149390
- "module": "core/mixins/form-associated-mixin.js"
149224
+ "name": "SbbOpenCloseBaseElement",
149225
+ "module": "core/base-elements/open-close-base-element.js"
149391
149226
  }
149392
149227
  },
149393
149228
  {
149394
149229
  "kind": "method",
149395
- "name": "_setInternalValidity",
149396
- "privacy": "private",
149230
+ "name": "dispatchCloseEvent",
149231
+ "privacy": "protected",
149397
149232
  "return": {
149398
149233
  "type": {
149399
- "text": "void"
149234
+ "text": "boolean"
149400
149235
  }
149401
149236
  },
149402
149237
  "inheritedFrom": {
149403
- "name": "SbbFormAssociatedMixin",
149404
- "module": "core/mixins/form-associated-mixin.js"
149238
+ "name": "SbbOpenCloseBaseElement",
149239
+ "module": "core/base-elements/open-close-base-element.js"
149405
149240
  }
149406
149241
  },
149407
149242
  {
149408
149243
  "kind": "field",
149409
- "name": "role",
149244
+ "name": "['_$sbbElement$']",
149410
149245
  "type": {
149411
- "text": "ElementInternals['role']"
149246
+ "text": "boolean"
149412
149247
  },
149413
149248
  "privacy": "public",
149414
149249
  "static": true,
149250
+ "default": "true",
149415
149251
  "inheritedFrom": {
149416
149252
  "name": "SbbElement",
149417
149253
  "module": "core/base-elements/element.js"
149418
- },
149419
- "readonly": true,
149420
- "default": "'button'"
149254
+ }
149421
149255
  },
149422
149256
  {
149423
149257
  "kind": "field",
149424
- "name": "_preventScrollOnSpaceKeydown",
149425
- "privacy": "private",
149426
- "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
149427
- "parameters": [
149428
- {
149429
- "description": "The origin event.",
149430
- "name": "event"
149431
- }
149432
- ],
149433
- "inheritedFrom": {
149434
- "name": "SbbButtonLikeBaseElement",
149435
- "module": "core/base-elements/button-base-element.js"
149436
- }
149437
- },
149438
- {
149439
- "kind": "field",
149440
- "name": "_removeActiveMarker",
149441
- "privacy": "private",
149442
- "inheritedFrom": {
149443
- "name": "SbbButtonLikeBaseElement",
149444
- "module": "core/base-elements/button-base-element.js"
149445
- }
149446
- },
149447
- {
149448
- "kind": "field",
149449
- "name": "_dispatchClickEventOnSpaceKeyup",
149450
- "privacy": "private",
149451
- "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.",
149452
- "parameters": [
149453
- {
149454
- "description": "The origin event.",
149455
- "name": "event"
149456
- }
149457
- ],
149458
- "inheritedFrom": {
149459
- "name": "SbbButtonLikeBaseElement",
149460
- "module": "core/base-elements/button-base-element.js"
149461
- }
149462
- },
149463
- {
149464
- "kind": "field",
149465
- "name": "_dispatchClickEvent",
149466
- "privacy": "private",
149467
- "inheritedFrom": {
149468
- "name": "SbbButtonLikeBaseElement",
149469
- "module": "core/base-elements/button-base-element.js"
149470
- }
149471
- },
149472
- {
149473
- "kind": "field",
149474
- "name": "maybeDisabled",
149475
- "type": {
149476
- "text": "boolean | undefined"
149477
- },
149478
- "privacy": "protected",
149479
- "readonly": true,
149480
- "inheritedFrom": {
149481
- "name": "SbbActionBaseElement",
149482
- "module": "core/base-elements/action-base-element.js"
149483
- }
149484
- },
149485
- {
149486
- "kind": "field",
149487
- "name": "maybeDisabledInteractive",
149258
+ "name": "elementDependencies",
149488
149259
  "type": {
149489
- "text": "boolean | undefined"
149490
- },
149491
- "privacy": "protected",
149492
- "readonly": true,
149493
- "inheritedFrom": {
149494
- "name": "SbbActionBaseElement",
149495
- "module": "core/base-elements/action-base-element.js"
149496
- }
149497
- },
149498
- {
149499
- "kind": "method",
149500
- "name": "setupBaseEventHandlers",
149501
- "privacy": "protected",
149502
- "return": {
149503
- "type": {
149504
- "text": "void"
149505
- }
149260
+ "text": "SbbElementType[] | undefined"
149506
149261
  },
149262
+ "privacy": "public",
149263
+ "static": true,
149507
149264
  "inheritedFrom": {
149508
- "name": "SbbActionBaseElement",
149509
- "module": "core/base-elements/action-base-element.js"
149265
+ "name": "SbbElement",
149266
+ "module": "core/base-elements/element.js"
149510
149267
  }
149511
149268
  },
149512
149269
  {
149513
149270
  "kind": "field",
149514
- "name": "['_$sbbElement$']",
149271
+ "name": "role",
149515
149272
  "type": {
149516
- "text": "boolean"
149273
+ "text": "ElementInternals['role'] | undefined"
149517
149274
  },
149518
149275
  "privacy": "public",
149519
149276
  "static": true,
149520
- "default": "true",
149521
149277
  "inheritedFrom": {
149522
149278
  "name": "SbbElement",
149523
149279
  "module": "core/base-elements/element.js"
@@ -149767,150 +149523,108 @@
149767
149523
  }
149768
149524
  }
149769
149525
  ],
149770
- "superclass": {
149771
- "name": "SbbSecondaryButtonElement",
149772
- "module": "button.pure.js"
149773
- },
149774
- "tagName": "sbb-sidebar-close-button",
149775
- "customElement": true,
149776
149526
  "attributes": [
149777
149527
  {
149778
- "name": "size",
149779
- "type": {
149780
- "text": "SbbButtonSize"
149781
- },
149782
- "description": "Size variant, either l, m or s.",
149783
- "default": "'m' / 's' (lean)",
149784
- "fieldName": "size",
149785
- "inheritedFrom": {
149786
- "name": "SbbButtonCommonElementMixin",
149787
- "module": "button/common/button-common.js"
149788
- }
149789
- },
149790
- {
149791
- "name": "loading",
149528
+ "name": "color",
149792
149529
  "type": {
149793
- "text": "boolean"
149530
+ "text": "'white' | 'milk'"
149794
149531
  },
149795
- "default": "false",
149796
- "description": "Whether the button indicates a loading state.\nThe animation kicks in after a delay of 300ms, configurable with --sbb-button-loading-delay CSS variable.",
149797
- "fieldName": "loading",
149798
- "inheritedFrom": {
149799
- "name": "SbbButtonCommonElementMixin",
149800
- "module": "button/common/button-common.js"
149801
- }
149532
+ "default": "'white'",
149533
+ "description": "Background color of the sidebar. Either `white` or `milk`.",
149534
+ "fieldName": "color"
149802
149535
  },
149803
149536
  {
149804
- "name": "negative",
149537
+ "name": "mode",
149805
149538
  "type": {
149806
- "text": "boolean"
149539
+ "text": "'side' | 'over'"
149807
149540
  },
149808
- "default": "false",
149809
- "description": "Negative coloring variant flag.",
149810
- "fieldName": "negative",
149811
- "inheritedFrom": {
149812
- "name": "SbbNegativeMixin",
149813
- "module": "core/mixins/negative-mixin.js"
149814
- }
149541
+ "default": "'side'",
149542
+ "description": "Mode of the sidebar; one of 'side' or 'over'.",
149543
+ "fieldName": "mode"
149815
149544
  },
149816
149545
  {
149817
- "name": "icon-name",
149546
+ "name": "position",
149818
149547
  "type": {
149819
- "text": "string"
149548
+ "text": "'start' | 'end'"
149820
149549
  },
149821
- "default": "''",
149822
- "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.",
149823
- "fieldName": "iconName",
149824
- "inheritedFrom": {
149825
- "name": "SbbIconNameMixin",
149826
- "module": "icon/icon-name-mixin.js"
149827
- }
149550
+ "default": "'start'",
149551
+ "description": "The side that the sidebar is attached to.",
149552
+ "fieldName": "position"
149828
149553
  },
149829
149554
  {
149830
- "name": "disabled-interactive",
149555
+ "name": "opened",
149831
149556
  "type": {
149832
149557
  "text": "boolean"
149833
149558
  },
149834
149559
  "default": "false",
149835
- "description": "Whether the button should be aria-disabled but stay interactive.",
149836
- "fieldName": "disabledInteractive",
149837
- "inheritedFrom": {
149838
- "name": "SbbDisabledInteractiveMixin",
149839
- "module": "core/mixins/disabled-mixin.js"
149840
- }
149560
+ "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
149561
+ "fieldName": "opened"
149841
149562
  },
149842
149563
  {
149843
- "name": "disabled",
149844
- "description": "Whether the component is disabled.",
149845
- "default": "false",
149564
+ "name": "focus-on-open",
149846
149565
  "type": {
149847
149566
  "text": "boolean"
149848
149567
  },
149849
- "fieldName": "disabled",
149850
- "inheritedFrom": {
149851
- "name": "SbbDisabledMixin",
149852
- "module": "core/mixins/disabled-mixin.js"
149853
- }
149854
- },
149568
+ "default": "false",
149569
+ "description": "Whether the sidebar should focus the first focusable element automatically when opened.\nDefaults to false in when mode is set to `side`, otherwise defaults to true.\nIf explicitly enabled, focus will be moved into the sidebar in `side` mode as well.",
149570
+ "fieldName": "focusOnOpen"
149571
+ }
149572
+ ],
149573
+ "mixins": [
149855
149574
  {
149856
- "name": "value",
149575
+ "name": "SbbAnimationCompleteMixin",
149576
+ "module": "core.js"
149577
+ }
149578
+ ],
149579
+ "superclass": {
149580
+ "name": "SbbOpenCloseBaseElement",
149581
+ "module": "core.js"
149582
+ },
149583
+ "tagName": "sbb-sidebar",
149584
+ "customElement": true,
149585
+ "events": [
149586
+ {
149587
+ "name": "beforeopen",
149857
149588
  "type": {
149858
- "text": "string"
149589
+ "text": "Event"
149859
149590
  },
149860
- "default": "''",
149861
- "description": "Value of the form element.",
149862
- "fieldName": "value",
149591
+ "description": "Emits whenever the component starts the opening transition. Can be canceled.",
149863
149592
  "inheritedFrom": {
149864
- "name": "SbbButtonBaseElement",
149865
- "module": "core/base-elements/button-base-element.js"
149593
+ "name": "SbbOpenCloseBaseElement",
149594
+ "module": "core/base-elements/open-close-base-element.js"
149866
149595
  }
149867
149596
  },
149868
149597
  {
149869
- "name": "type",
149870
- "description": "The type attribute to use for the button.",
149871
- "default": "'button'",
149598
+ "name": "open",
149872
149599
  "type": {
149873
- "text": "SbbButtonType"
149600
+ "text": "Event"
149874
149601
  },
149875
- "fieldName": "type",
149602
+ "description": "Emits whenever the component is opened.",
149876
149603
  "inheritedFrom": {
149877
- "name": "SbbButtonBaseElement",
149878
- "module": "core/base-elements/button-base-element.js"
149604
+ "name": "SbbOpenCloseBaseElement",
149605
+ "module": "core/base-elements/open-close-base-element.js"
149879
149606
  }
149880
149607
  },
149881
149608
  {
149882
- "name": "form",
149883
- "description": "The `<form>` element to associate the button with.",
149609
+ "name": "beforeclose",
149884
149610
  "type": {
149885
- "text": "HTMLFormElement | null"
149611
+ "text": "Event"
149886
149612
  },
149887
- "fieldName": "form",
149613
+ "description": "Emits whenever the component begins the closing transition. Can be canceled.",
149888
149614
  "inheritedFrom": {
149889
- "name": "SbbButtonBaseElement",
149890
- "module": "core/base-elements/button-base-element.js"
149615
+ "name": "SbbOpenCloseBaseElement",
149616
+ "module": "core/base-elements/open-close-base-element.js"
149891
149617
  }
149892
149618
  },
149893
149619
  {
149894
- "name": "name",
149895
- "description": "Name of the form element. Will be read from name attribute.",
149620
+ "name": "close",
149896
149621
  "type": {
149897
- "text": "string"
149622
+ "text": "Event"
149898
149623
  },
149899
- "fieldName": "name",
149900
- "inheritedFrom": {
149901
- "name": "SbbFormAssociatedMixin",
149902
- "module": "core/mixins/form-associated-mixin.js"
149903
- }
149904
- }
149905
- ],
149906
- "cssProperties": [
149907
- {
149908
- "description": "The delay before the loading animation starts, when setting the button into loading state.",
149909
- "name": "--sbb-button-loading-delay",
149910
- "default": "300ms",
149624
+ "description": "Emits whenever the component is closed.",
149911
149625
  "inheritedFrom": {
149912
- "name": "SbbSecondaryButtonElement",
149913
- "module": "button/secondary-button/secondary-button.component.js"
149626
+ "name": "SbbOpenCloseBaseElement",
149627
+ "module": "core/base-elements/open-close-base-element.js"
149914
149628
  }
149915
149629
  }
149916
149630
  ]
@@ -149919,30 +149633,38 @@
149919
149633
  "exports": [
149920
149634
  {
149921
149635
  "kind": "js",
149922
- "name": "SbbSidebarCloseButtonElement",
149636
+ "name": "SbbSidebarElement",
149923
149637
  "declaration": {
149924
- "name": "SbbSidebarCloseButtonElement",
149925
- "module": "sidebar/sidebar-close-button/sidebar-close-button.component.js"
149638
+ "name": "SbbSidebarElement",
149639
+ "module": "sidebar/sidebar/sidebar.component.js"
149926
149640
  }
149927
149641
  }
149928
149642
  ]
149929
149643
  },
149930
149644
  {
149931
149645
  "kind": "javascript-module",
149932
- "path": "sidebar/sidebar/sidebar.component.js",
149646
+ "path": "sidebar/sidebar-close-button/sidebar-close-button.component.js",
149933
149647
  "declarations": [
149934
149648
  {
149935
149649
  "kind": "class",
149936
- "description": "This component corresponds to a sidebar that can be opened on the sidebar container.",
149937
- "name": "SbbSidebarElement",
149650
+ "description": "Sidebar close button, intended to be placed inside sbb-sidebar.",
149651
+ "name": "SbbSidebarCloseButtonElement",
149938
149652
  "slots": [
149939
149653
  {
149940
- "description": "Use the unnamed slot to slot any content into the sidebar.",
149941
- "name": ""
149654
+ "description": "Use the unnamed slot to add content to the sidebar-close-button. Not intended to be used in this context.",
149655
+ "name": "",
149656
+ "inheritedFrom": {
149657
+ "name": "SbbSecondaryButtonElement",
149658
+ "module": "button/secondary-button/secondary-button.component.js"
149659
+ }
149942
149660
  },
149943
149661
  {
149944
- "description": "Use the title slot to add an <sbb-title>.",
149945
- "name": "title"
149662
+ "description": "Slot used to display the icon, if one is set. Not intended to be used in this context.",
149663
+ "name": "icon",
149664
+ "inheritedFrom": {
149665
+ "name": "SbbSecondaryButtonElement",
149666
+ "module": "button/secondary-button/secondary-button.component.js"
149667
+ }
149946
149668
  }
149947
149669
  ],
149948
149670
  "members": [
@@ -149959,208 +149681,536 @@
149959
149681
  "name": "SbbElement",
149960
149682
  "module": "core/base-elements/element.js"
149961
149683
  },
149962
- "default": "'sbb-sidebar'"
149684
+ "default": "'sbb-sidebar-close-button'"
149963
149685
  },
149964
149686
  {
149965
149687
  "kind": "field",
149966
- "name": "color",
149967
- "type": {
149968
- "text": "'white' | 'milk'"
149688
+ "name": "_languageController",
149689
+ "privacy": "private",
149690
+ "default": "new SbbLanguageController(this)"
149691
+ },
149692
+ {
149693
+ "kind": "method",
149694
+ "name": "renderTemplate",
149695
+ "privacy": "protected",
149696
+ "return": {
149697
+ "type": {
149698
+ "text": "TemplateResult"
149699
+ }
149969
149700
  },
149970
- "privacy": "public",
149971
- "default": "'white'",
149972
- "description": "Background color of the sidebar. Either `white` or `milk`.",
149973
- "attribute": "color",
149974
- "reflects": true
149701
+ "description": "Override this method to render the component template.",
149702
+ "inheritedFrom": {
149703
+ "name": "SbbActionBaseElement",
149704
+ "module": "core/base-elements/action-base-element.js"
149705
+ }
149706
+ },
149707
+ {
149708
+ "kind": "method",
149709
+ "name": "renderIconName",
149710
+ "privacy": "protected",
149711
+ "return": {
149712
+ "type": {
149713
+ "text": "string"
149714
+ }
149715
+ },
149716
+ "inheritedFrom": {
149717
+ "name": "SbbIconNameMixin",
149718
+ "module": "icon/icon-name-mixin.js"
149719
+ }
149975
149720
  },
149976
149721
  {
149977
149722
  "kind": "field",
149978
- "name": "mode",
149723
+ "name": "size",
149979
149724
  "type": {
149980
- "text": "'side' | 'over'"
149725
+ "text": "SbbButtonSize"
149981
149726
  },
149982
149727
  "privacy": "public",
149983
- "default": "'side'",
149984
- "description": "Mode of the sidebar; one of 'side' or 'over'.",
149985
- "attribute": "mode",
149986
- "reflects": true
149728
+ "description": "Size variant, either l, m or s.",
149729
+ "default": "'s'",
149730
+ "attribute": "size",
149731
+ "reflects": true,
149732
+ "inheritedFrom": {
149733
+ "name": "SbbButtonCommonElementMixin",
149734
+ "module": "button/common/button-common.js"
149735
+ }
149987
149736
  },
149988
149737
  {
149989
149738
  "kind": "field",
149990
- "name": "position",
149739
+ "name": "styles",
149991
149740
  "type": {
149992
- "text": "'start' | 'end'"
149741
+ "text": "CSSResultGroup"
149993
149742
  },
149994
149743
  "privacy": "public",
149995
- "default": "'start'",
149996
- "description": "The side that the sidebar is attached to.",
149997
- "attribute": "position",
149998
- "reflects": true
149744
+ "static": true,
149745
+ "default": "[boxSizingStyles, unsafeCSS(style)]",
149746
+ "inheritedFrom": {
149747
+ "name": "SbbButtonCommonElementMixin",
149748
+ "module": "button/common/button-common.js"
149749
+ }
149999
149750
  },
150000
149751
  {
150001
149752
  "kind": "field",
150002
- "name": "opened",
149753
+ "name": "loading",
150003
149754
  "type": {
150004
149755
  "text": "boolean"
150005
149756
  },
150006
149757
  "privacy": "public",
150007
149758
  "default": "false",
150008
- "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
150009
- "attribute": "opened",
150010
- "reflects": true
149759
+ "description": "Whether the button indicates a loading state.\nThe animation kicks in after a delay of 300ms, configurable with --sbb-button-loading-delay CSS variable.",
149760
+ "attribute": "loading",
149761
+ "reflects": true,
149762
+ "inheritedFrom": {
149763
+ "name": "SbbButtonCommonElementMixin",
149764
+ "module": "button/common/button-common.js"
149765
+ }
150011
149766
  },
150012
149767
  {
150013
149768
  "kind": "field",
150014
- "name": "focusOnOpen",
149769
+ "name": "negative",
150015
149770
  "type": {
150016
149771
  "text": "boolean"
150017
149772
  },
150018
149773
  "privacy": "public",
150019
149774
  "default": "false",
150020
- "description": "Whether the sidebar should focus the first focusable element automatically when opened.\nDefaults to false in when mode is set to `side`, otherwise defaults to true.\nIf explicitly enabled, focus will be moved into the sidebar in `side` mode as well.",
150021
- "attribute": "focus-on-open"
149775
+ "description": "Negative coloring variant flag.",
149776
+ "attribute": "negative",
149777
+ "reflects": true,
149778
+ "inheritedFrom": {
149779
+ "name": "SbbNegativeMixin",
149780
+ "module": "core/mixins/negative-mixin.js"
149781
+ }
150022
149782
  },
150023
149783
  {
150024
149784
  "kind": "field",
150025
- "name": "container",
149785
+ "name": "elementDependencies",
150026
149786
  "type": {
150027
- "text": "SbbSidebarContainerElement | null"
149787
+ "text": "SbbElementType[]"
150028
149788
  },
150029
149789
  "privacy": "public",
150030
- "description": "Returns the SbbSidebarContainerElement where this sidebar is contained.",
150031
- "readonly": true,
150032
- "default": "null"
149790
+ "static": true,
149791
+ "inheritedFrom": {
149792
+ "name": "SbbElement",
149793
+ "module": "core/base-elements/element.js"
149794
+ },
149795
+ "default": "[SbbIconElement]"
150033
149796
  },
150034
149797
  {
150035
149798
  "kind": "field",
150036
- "name": "_container",
149799
+ "name": "iconName",
150037
149800
  "type": {
150038
- "text": "SbbSidebarContainerElement | null"
149801
+ "text": "string"
149802
+ },
149803
+ "privacy": "public",
149804
+ "default": "''",
149805
+ "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.",
149806
+ "attribute": "icon-name",
149807
+ "inheritedFrom": {
149808
+ "name": "SbbIconNameMixin",
149809
+ "module": "icon/icon-name-mixin.js"
149810
+ }
149811
+ },
149812
+ {
149813
+ "kind": "method",
149814
+ "name": "renderIconSlot",
149815
+ "privacy": "protected",
149816
+ "return": {
149817
+ "type": {
149818
+ "text": "TemplateResult"
149819
+ }
150039
149820
  },
149821
+ "parameters": [
149822
+ {
149823
+ "name": "classname",
149824
+ "optional": true,
149825
+ "type": {
149826
+ "text": "string"
149827
+ }
149828
+ }
149829
+ ],
149830
+ "inheritedFrom": {
149831
+ "name": "SbbIconNameMixin",
149832
+ "module": "icon/icon-name-mixin.js"
149833
+ }
149834
+ },
149835
+ {
149836
+ "kind": "method",
149837
+ "name": "_renderIconName",
150040
149838
  "privacy": "private",
150041
- "default": "null"
149839
+ "return": {
149840
+ "type": {
149841
+ "text": "string"
149842
+ }
149843
+ },
149844
+ "inheritedFrom": {
149845
+ "name": "SbbIconNameMixin",
149846
+ "module": "icon/icon-name-mixin.js"
149847
+ }
150042
149848
  },
150043
149849
  {
150044
149850
  "kind": "field",
150045
- "name": "_lastFocusedElement",
149851
+ "name": "disabledInteractive",
150046
149852
  "type": {
150047
- "text": "HTMLElement | null"
149853
+ "text": "boolean"
149854
+ },
149855
+ "privacy": "public",
149856
+ "default": "false",
149857
+ "description": "Whether the button should be aria-disabled but stay interactive.",
149858
+ "attribute": "disabled-interactive",
149859
+ "reflects": true,
149860
+ "inheritedFrom": {
149861
+ "name": "SbbDisabledInteractiveMixin",
149862
+ "module": "core/mixins/disabled-mixin.js"
149863
+ }
149864
+ },
149865
+ {
149866
+ "kind": "field",
149867
+ "name": "disabled",
149868
+ "privacy": "public",
149869
+ "description": "Whether the component is disabled.",
149870
+ "default": "false",
149871
+ "type": {
149872
+ "text": "boolean"
150048
149873
  },
149874
+ "attribute": "disabled",
149875
+ "reflects": true,
149876
+ "inheritedFrom": {
149877
+ "name": "SbbDisabledMixin",
149878
+ "module": "core/mixins/disabled-mixin.js"
149879
+ }
149880
+ },
149881
+ {
149882
+ "kind": "field",
149883
+ "name": "#disabled",
150049
149884
  "privacy": "private",
150050
- "default": "null"
149885
+ "type": {
149886
+ "text": "boolean"
149887
+ },
149888
+ "default": "false",
149889
+ "inheritedFrom": {
149890
+ "name": "SbbDisabledMixin",
149891
+ "module": "core/mixins/disabled-mixin.js"
149892
+ }
149893
+ },
149894
+ {
149895
+ "kind": "method",
149896
+ "name": "isDisabledExternally",
149897
+ "privacy": "protected",
149898
+ "return": {
149899
+ "type": {
149900
+ "text": "boolean"
149901
+ }
149902
+ },
149903
+ "description": "Will be used as 'or' check to the current disabled state.\nCan e.g. be used to read disabled state of a group.",
149904
+ "inheritedFrom": {
149905
+ "name": "SbbDisabledMixin",
149906
+ "module": "core/mixins/disabled-mixin.js"
149907
+ }
150051
149908
  },
150052
149909
  {
150053
149910
  "kind": "field",
150054
- "name": "_focusTrapController",
149911
+ "name": "_elementsOnWhichEnterPressTriggersSubmit",
149912
+ "type": {
149913
+ "text": "array"
149914
+ },
150055
149915
  "privacy": "private",
150056
- "default": "new SbbFocusTrapController(this)"
149916
+ "readonly": true,
149917
+ "default": "[ 'input', 'sbb-date-input', 'sbb-time-input', ]",
149918
+ "inheritedFrom": {
149919
+ "name": "SbbButtonBaseElement",
149920
+ "module": "core/base-elements/button-base-element.js"
149921
+ }
150057
149922
  },
150058
149923
  {
150059
149924
  "kind": "field",
150060
- "name": "_escapableOverlayController",
149925
+ "name": "value",
149926
+ "type": {
149927
+ "text": "string"
149928
+ },
149929
+ "privacy": "public",
149930
+ "inheritedFrom": {
149931
+ "name": "SbbButtonBaseElement",
149932
+ "module": "core/base-elements/button-base-element.js"
149933
+ },
149934
+ "default": "''",
149935
+ "description": "Value of the form element.",
149936
+ "attribute": "value"
149937
+ },
149938
+ {
149939
+ "kind": "field",
149940
+ "name": "type",
149941
+ "privacy": "public",
149942
+ "description": "The type attribute to use for the button.",
149943
+ "default": "'button'",
149944
+ "type": {
149945
+ "text": "SbbButtonType"
149946
+ },
149947
+ "attribute": "type",
149948
+ "inheritedFrom": {
149949
+ "name": "SbbButtonBaseElement",
149950
+ "module": "core/base-elements/button-base-element.js"
149951
+ }
149952
+ },
149953
+ {
149954
+ "kind": "field",
149955
+ "name": "form",
149956
+ "type": {
149957
+ "text": "HTMLFormElement | null"
149958
+ },
149959
+ "privacy": "public",
149960
+ "description": "The `<form>` element to associate the button with.",
149961
+ "inheritedFrom": {
149962
+ "name": "SbbButtonBaseElement",
149963
+ "module": "core/base-elements/button-base-element.js"
149964
+ },
149965
+ "attribute": "form"
149966
+ },
149967
+ {
149968
+ "kind": "field",
149969
+ "name": "_formId",
149970
+ "type": {
149971
+ "text": "string"
149972
+ },
150061
149973
  "privacy": "private",
150062
- "default": "new SbbEscapableOverlayController(this)"
149974
+ "default": "''",
149975
+ "inheritedFrom": {
149976
+ "name": "SbbButtonBaseElement",
149977
+ "module": "core/base-elements/button-base-element.js"
149978
+ }
150063
149979
  },
150064
149980
  {
150065
149981
  "kind": "field",
150066
- "name": "_closeOnNavigation",
150067
- "privacy": "private"
149982
+ "name": "_handleButtonClick",
149983
+ "privacy": "private",
149984
+ "inheritedFrom": {
149985
+ "name": "SbbButtonBaseElement",
149986
+ "module": "core/base-elements/button-base-element.js"
149987
+ }
150068
149988
  },
150069
149989
  {
150070
149990
  "kind": "method",
150071
- "name": "toggle",
150072
- "privacy": "public",
149991
+ "name": "_requestSubmit",
149992
+ "privacy": "private",
150073
149993
  "return": {
150074
149994
  "type": {
150075
149995
  "text": "void"
150076
149996
  }
150077
149997
  },
150078
- "description": "Toggles the sidebar visibility."
149998
+ "parameters": [
149999
+ {
150000
+ "name": "form",
150001
+ "type": {
150002
+ "text": "HTMLFormElement"
150003
+ }
150004
+ }
150005
+ ],
150006
+ "inheritedFrom": {
150007
+ "name": "SbbButtonBaseElement",
150008
+ "module": "core/base-elements/button-base-element.js"
150009
+ }
150079
150010
  },
150080
150011
  {
150081
- "kind": "method",
150082
- "name": "open",
150012
+ "kind": "field",
150013
+ "name": "_formKeyDown",
150014
+ "privacy": "private",
150015
+ "inheritedFrom": {
150016
+ "name": "SbbButtonBaseElement",
150017
+ "module": "core/base-elements/button-base-element.js"
150018
+ }
150019
+ },
150020
+ {
150021
+ "kind": "field",
150022
+ "name": "formAssociated",
150023
+ "type": {
150024
+ "text": "boolean"
150025
+ },
150083
150026
  "privacy": "public",
150084
- "return": {
150085
- "type": {
150086
- "text": "void"
150087
- }
150027
+ "static": true,
150028
+ "default": "true",
150029
+ "inheritedFrom": {
150030
+ "name": "SbbFormAssociatedMixin",
150031
+ "module": "core/mixins/form-associated-mixin.js"
150032
+ }
150033
+ },
150034
+ {
150035
+ "kind": "field",
150036
+ "name": "name",
150037
+ "privacy": "public",
150038
+ "description": "Name of the form element. Will be read from name attribute.",
150039
+ "type": {
150040
+ "text": "string"
150088
150041
  },
150089
- "description": "Opens the sidebar.",
150042
+ "attribute": "name",
150090
150043
  "inheritedFrom": {
150091
- "name": "SbbOpenCloseBaseElement",
150092
- "module": "core/base-elements/open-close-base-element.js"
150044
+ "name": "SbbFormAssociatedMixin",
150045
+ "module": "core/mixins/form-associated-mixin.js"
150093
150046
  }
150094
150047
  },
150095
150048
  {
150096
- "kind": "method",
150097
- "name": "_isZeroAnimationDuration",
150049
+ "kind": "field",
150050
+ "name": "validity",
150051
+ "type": {
150052
+ "text": "ValidityState"
150053
+ },
150054
+ "privacy": "public",
150055
+ "description": "Returns the ValidityState object for this element.",
150056
+ "readonly": true,
150057
+ "inheritedFrom": {
150058
+ "name": "SbbFormAssociatedMixin",
150059
+ "module": "core/mixins/form-associated-mixin.js"
150060
+ }
150061
+ },
150062
+ {
150063
+ "kind": "field",
150064
+ "name": "validationMessage",
150065
+ "type": {
150066
+ "text": "string"
150067
+ },
150068
+ "privacy": "public",
150069
+ "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.",
150070
+ "readonly": true,
150071
+ "inheritedFrom": {
150072
+ "name": "SbbFormAssociatedMixin",
150073
+ "module": "core/mixins/form-associated-mixin.js"
150074
+ }
150075
+ },
150076
+ {
150077
+ "kind": "field",
150078
+ "name": "willValidate",
150079
+ "type": {
150080
+ "text": "boolean"
150081
+ },
150082
+ "privacy": "public",
150083
+ "description": "Returns true if this element will be validated\nwhen the form is submitted; false otherwise.",
150084
+ "readonly": true,
150085
+ "inheritedFrom": {
150086
+ "name": "SbbFormAssociatedMixin",
150087
+ "module": "core/mixins/form-associated-mixin.js"
150088
+ }
150089
+ },
150090
+ {
150091
+ "kind": "field",
150092
+ "name": "_validityStates",
150098
150093
  "privacy": "private",
150094
+ "default": "new Map< keyof ValidityStateFlags, { flagValue: unknown; message: string } >()",
150095
+ "inheritedFrom": {
150096
+ "name": "SbbFormAssociatedMixin",
150097
+ "module": "core/mixins/form-associated-mixin.js"
150098
+ }
150099
+ },
150100
+ {
150101
+ "kind": "field",
150102
+ "name": "formDisabled",
150103
+ "type": {
150104
+ "text": "boolean"
150105
+ },
150106
+ "privacy": "protected",
150107
+ "default": "false",
150108
+ "description": "Whenever a surrounding form or fieldset is changing its disabled state.",
150109
+ "inheritedFrom": {
150110
+ "name": "SbbFormAssociatedMixin",
150111
+ "module": "core/mixins/form-associated-mixin.js"
150112
+ }
150113
+ },
150114
+ {
150115
+ "kind": "method",
150116
+ "name": "checkValidity",
150117
+ "privacy": "public",
150099
150118
  "return": {
150100
150119
  "type": {
150101
150120
  "text": "boolean"
150102
150121
  }
150122
+ },
150123
+ "description": "Returns true if this element has no validity problems; false otherwise.\nFires an invalid event at the element in the latter case.",
150124
+ "inheritedFrom": {
150125
+ "name": "SbbFormAssociatedMixin",
150126
+ "module": "core/mixins/form-associated-mixin.js"
150103
150127
  }
150104
150128
  },
150105
150129
  {
150106
150130
  "kind": "method",
150107
- "name": "_handleOpening",
150108
- "privacy": "private",
150131
+ "name": "reportValidity",
150132
+ "privacy": "public",
150109
150133
  "return": {
150110
150134
  "type": {
150111
- "text": "void"
150135
+ "text": "boolean"
150112
150136
  }
150137
+ },
150138
+ "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.",
150139
+ "inheritedFrom": {
150140
+ "name": "SbbFormAssociatedMixin",
150141
+ "module": "core/mixins/form-associated-mixin.js"
150113
150142
  }
150114
150143
  },
150115
150144
  {
150116
150145
  "kind": "method",
150117
- "name": "close",
150146
+ "name": "setCustomValidity",
150118
150147
  "privacy": "public",
150119
150148
  "return": {
150120
150149
  "type": {
150121
150150
  "text": "void"
150122
150151
  }
150123
150152
  },
150124
- "description": "Closes the sidebar.",
150153
+ "parameters": [
150154
+ {
150155
+ "name": "message",
150156
+ "type": {
150157
+ "text": "string"
150158
+ }
150159
+ }
150160
+ ],
150161
+ "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.",
150125
150162
  "inheritedFrom": {
150126
- "name": "SbbOpenCloseBaseElement",
150127
- "module": "core/base-elements/open-close-base-element.js"
150163
+ "name": "SbbFormAssociatedMixin",
150164
+ "module": "core/mixins/form-associated-mixin.js"
150128
150165
  }
150129
150166
  },
150130
150167
  {
150131
150168
  "kind": "method",
150132
- "name": "_handleClosing",
150169
+ "name": "_hasDisabledAncestor",
150133
150170
  "privacy": "private",
150134
150171
  "return": {
150135
150172
  "type": {
150136
- "text": "void"
150173
+ "text": "boolean"
150137
150174
  }
150175
+ },
150176
+ "inheritedFrom": {
150177
+ "name": "SbbFormAssociatedMixin",
150178
+ "module": "core/mixins/form-associated-mixin.js"
150138
150179
  }
150139
150180
  },
150140
150181
  {
150141
150182
  "kind": "method",
150142
- "name": "_takeFocus",
150143
- "privacy": "private",
150183
+ "name": "updateFormValue",
150184
+ "privacy": "protected",
150144
150185
  "return": {
150145
150186
  "type": {
150146
150187
  "text": "void"
150147
150188
  }
150189
+ },
150190
+ "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",
150191
+ "inheritedFrom": {
150192
+ "name": "SbbFormAssociatedMixin",
150193
+ "module": "core/mixins/form-associated-mixin.js"
150148
150194
  }
150149
150195
  },
150150
150196
  {
150151
150197
  "kind": "method",
150152
- "name": "cedeFocus",
150198
+ "name": "formState",
150153
150199
  "privacy": "protected",
150154
150200
  "return": {
150155
150201
  "type": {
150156
- "text": "void"
150202
+ "text": "FormRestoreState"
150157
150203
  }
150204
+ },
150205
+ "inheritedFrom": {
150206
+ "name": "SbbFormAssociatedMixin",
150207
+ "module": "core/mixins/form-associated-mixin.js"
150158
150208
  }
150159
150209
  },
150160
150210
  {
150161
150211
  "kind": "method",
150162
- "name": "_updateSidebarWidth",
150163
- "privacy": "private",
150212
+ "name": "setValidityFlag",
150213
+ "privacy": "protected",
150164
150214
  "return": {
150165
150215
  "type": {
150166
150216
  "text": "void"
@@ -150168,44 +150218,35 @@
150168
150218
  },
150169
150219
  "parameters": [
150170
150220
  {
150171
- "name": "oldPosition",
150172
- "optional": true,
150221
+ "name": "flag",
150173
150222
  "type": {
150174
- "text": "this['position']"
150223
+ "text": "T"
150175
150224
  }
150176
- }
150177
- ]
150178
- },
150179
- {
150180
- "kind": "method",
150181
- "name": "_buildCssWidthVar",
150182
- "privacy": "private",
150183
- "return": {
150184
- "type": {
150185
- "text": "string"
150186
- }
150187
- },
150188
- "parameters": [
150225
+ },
150189
150226
  {
150190
- "name": "position",
150191
- "default": "this.position"
150192
- }
150193
- ]
150194
- },
150195
- {
150196
- "kind": "method",
150197
- "name": "_isModeOver",
150198
- "privacy": "private",
150199
- "return": {
150200
- "type": {
150201
- "text": "boolean"
150227
+ "name": "message",
150228
+ "type": {
150229
+ "text": "string"
150230
+ }
150231
+ },
150232
+ {
150233
+ "name": "flagValue",
150234
+ "optional": true,
150235
+ "type": {
150236
+ "text": "ValidityStateFlags[T]"
150237
+ }
150202
150238
  }
150239
+ ],
150240
+ "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).",
150241
+ "inheritedFrom": {
150242
+ "name": "SbbFormAssociatedMixin",
150243
+ "module": "core/mixins/form-associated-mixin.js"
150203
150244
  }
150204
150245
  },
150205
150246
  {
150206
150247
  "kind": "method",
150207
- "name": "_onTransitionEnd",
150208
- "privacy": "private",
150248
+ "name": "removeValidityFlag",
150249
+ "privacy": "protected",
150209
150250
  "return": {
150210
150251
  "type": {
150211
150252
  "text": "void"
@@ -150213,230 +150254,173 @@
150213
150254
  },
150214
150255
  "parameters": [
150215
150256
  {
150216
- "name": "event",
150257
+ "name": "flag",
150217
150258
  "type": {
150218
- "text": "TransitionEvent"
150259
+ "text": "T"
150219
150260
  }
150220
150261
  }
150221
- ]
150222
- },
150223
- {
150224
- "kind": "method",
150225
- "name": "_detectScrolledState",
150226
- "privacy": "private",
150227
- "return": {
150228
- "type": {
150229
- "text": "void"
150230
- }
150231
- }
150232
- },
150233
- {
150234
- "kind": "field",
150235
- "name": "isAnimating",
150236
- "type": {
150237
- "text": "boolean"
150238
- },
150239
- "privacy": "public",
150240
- "default": "false",
150241
- "description": "Whether the component is currently animating.",
150242
- "inheritedFrom": {
150243
- "name": "SbbAnimationCompleteMixin",
150244
- "module": "core/mixins/animation-complete-mixin.js"
150245
- }
150246
- },
150247
- {
150248
- "kind": "field",
150249
- "name": "animationComplete",
150250
- "type": {
150251
- "text": "Promise<void>"
150252
- },
150253
- "privacy": "public",
150254
- "description": "Returns a promise which completes whenever an animation ends.\nWhen a new animation starts, a new Promise is returned.",
150255
- "readonly": true,
150256
- "inheritedFrom": {
150257
- "name": "SbbAnimationCompleteMixin",
150258
- "module": "core/mixins/animation-complete-mixin.js"
150259
- }
150260
- },
150261
- {
150262
- "kind": "field",
150263
- "name": "_animationPromise",
150264
- "type": {
150265
- "text": "Promise<void>"
150266
- },
150267
- "privacy": "private",
150262
+ ],
150263
+ "description": "Removes the validity state flag entry and updates validity state.",
150268
150264
  "inheritedFrom": {
150269
- "name": "SbbAnimationCompleteMixin",
150270
- "module": "core/mixins/animation-complete-mixin.js"
150265
+ "name": "SbbFormAssociatedMixin",
150266
+ "module": "core/mixins/form-associated-mixin.js"
150271
150267
  }
150272
150268
  },
150273
150269
  {
150274
150270
  "kind": "method",
150275
- "name": "startAnimation",
150271
+ "name": "validate",
150276
150272
  "privacy": "protected",
150277
150273
  "return": {
150278
150274
  "type": {
150279
150275
  "text": "void"
150280
150276
  }
150281
150277
  },
150278
+ "description": "To be called whenever the current element needs to be validated.",
150282
150279
  "inheritedFrom": {
150283
- "name": "SbbAnimationCompleteMixin",
150284
- "module": "core/mixins/animation-complete-mixin.js"
150280
+ "name": "SbbFormAssociatedMixin",
150281
+ "module": "core/mixins/form-associated-mixin.js"
150285
150282
  }
150286
150283
  },
150287
150284
  {
150288
150285
  "kind": "method",
150289
- "name": "stopAnimation",
150286
+ "name": "shouldValidate",
150290
150287
  "privacy": "protected",
150291
150288
  "return": {
150292
150289
  "type": {
150293
- "text": "void"
150290
+ "text": "boolean"
150294
150291
  }
150295
150292
  },
150296
- "description": "Overriding stopAnimation() breaks functionality.",
150293
+ "parameters": [
150294
+ {
150295
+ "name": "name",
150296
+ "type": {
150297
+ "text": "PropertyKey | undefined"
150298
+ }
150299
+ }
150300
+ ],
150301
+ "description": "Whether validation should be run on a property change with the given name.",
150297
150302
  "inheritedFrom": {
150298
- "name": "SbbAnimationCompleteMixin",
150299
- "module": "core/mixins/animation-complete-mixin.js"
150303
+ "name": "SbbFormAssociatedMixin",
150304
+ "module": "core/mixins/form-associated-mixin.js"
150300
150305
  }
150301
150306
  },
150302
150307
  {
150303
150308
  "kind": "method",
150304
- "name": "_enqueueAnimation",
150309
+ "name": "_setInternalValidity",
150305
150310
  "privacy": "private",
150306
150311
  "return": {
150307
150312
  "type": {
150308
- "text": "Promise<void>"
150313
+ "text": "void"
150309
150314
  }
150310
150315
  },
150311
150316
  "inheritedFrom": {
150312
- "name": "SbbAnimationCompleteMixin",
150313
- "module": "core/mixins/animation-complete-mixin.js"
150317
+ "name": "SbbFormAssociatedMixin",
150318
+ "module": "core/mixins/form-associated-mixin.js"
150314
150319
  }
150315
150320
  },
150316
150321
  {
150317
150322
  "kind": "field",
150318
- "name": "events",
150319
- "privacy": "public",
150320
- "static": true,
150321
- "readonly": true,
150322
- "default": "{ beforeopen: 'beforeopen', open: 'open', beforeclose: 'beforeclose', close: 'close', }",
150323
+ "name": "role",
150323
150324
  "type": {
150324
- "text": "{\n beforeopen: 'beforeopen',\n open: 'open',\n beforeclose: 'beforeclose',\n close: 'close',\n }"
150325
+ "text": "ElementInternals['role']"
150325
150326
  },
150327
+ "privacy": "public",
150328
+ "static": true,
150326
150329
  "inheritedFrom": {
150327
- "name": "SbbOpenCloseBaseElement",
150328
- "module": "core/base-elements/open-close-base-element.js"
150329
- }
150330
- },
150331
- {
150332
- "kind": "field",
150333
- "name": "state",
150334
- "privacy": "protected",
150335
- "description": "The state of the component.",
150336
- "type": {
150337
- "text": "SbbOpenedClosedState"
150330
+ "name": "SbbElement",
150331
+ "module": "core/base-elements/element.js"
150338
150332
  },
150339
- "default": "'closed'",
150340
- "inheritedFrom": {
150341
- "name": "SbbOpenCloseBaseElement",
150342
- "module": "core/base-elements/open-close-base-element.js"
150343
- }
150333
+ "readonly": true,
150334
+ "default": "'button'"
150344
150335
  },
150345
150336
  {
150346
150337
  "kind": "field",
150347
- "name": "_state",
150348
- "type": {
150349
- "text": "SbbOpenedClosedState"
150350
- },
150338
+ "name": "_preventScrollOnSpaceKeydown",
150351
150339
  "privacy": "private",
150340
+ "description": "Prevents scrolling from pressing Space, when the event target is an action element.\nAlso sets active state.",
150341
+ "parameters": [
150342
+ {
150343
+ "description": "The origin event.",
150344
+ "name": "event"
150345
+ }
150346
+ ],
150352
150347
  "inheritedFrom": {
150353
- "name": "SbbOpenCloseBaseElement",
150354
- "module": "core/base-elements/open-close-base-element.js"
150348
+ "name": "SbbButtonLikeBaseElement",
150349
+ "module": "core/base-elements/button-base-element.js"
150355
150350
  }
150356
150351
  },
150357
150352
  {
150358
150353
  "kind": "field",
150359
- "name": "isOpen",
150360
- "type": {
150361
- "text": "boolean"
150362
- },
150363
- "privacy": "public",
150364
- "description": "Whether the element is open.",
150365
- "readonly": true,
150354
+ "name": "_removeActiveMarker",
150355
+ "privacy": "private",
150366
150356
  "inheritedFrom": {
150367
- "name": "SbbOpenCloseBaseElement",
150368
- "module": "core/base-elements/open-close-base-element.js"
150357
+ "name": "SbbButtonLikeBaseElement",
150358
+ "module": "core/base-elements/button-base-element.js"
150369
150359
  }
150370
150360
  },
150371
150361
  {
150372
- "kind": "method",
150373
- "name": "escapeStrategy",
150374
- "privacy": "public",
150375
- "return": {
150376
- "type": {
150377
- "text": "void"
150362
+ "kind": "field",
150363
+ "name": "_dispatchClickEventOnSpaceKeyup",
150364
+ "privacy": "private",
150365
+ "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.",
150366
+ "parameters": [
150367
+ {
150368
+ "description": "The origin event.",
150369
+ "name": "event"
150378
150370
  }
150379
- },
150380
- "description": "The method which is called on escape key press. Defaults to calling close()",
150371
+ ],
150381
150372
  "inheritedFrom": {
150382
- "name": "SbbOpenCloseBaseElement",
150383
- "module": "core/base-elements/open-close-base-element.js"
150373
+ "name": "SbbButtonLikeBaseElement",
150374
+ "module": "core/base-elements/button-base-element.js"
150384
150375
  }
150385
150376
  },
150386
150377
  {
150387
- "kind": "method",
150388
- "name": "dispatchBeforeOpenEvent",
150389
- "privacy": "protected",
150390
- "return": {
150391
- "type": {
150392
- "text": "boolean"
150393
- }
150394
- },
150378
+ "kind": "field",
150379
+ "name": "_dispatchClickEvent",
150380
+ "privacy": "private",
150395
150381
  "inheritedFrom": {
150396
- "name": "SbbOpenCloseBaseElement",
150397
- "module": "core/base-elements/open-close-base-element.js"
150382
+ "name": "SbbButtonLikeBaseElement",
150383
+ "module": "core/base-elements/button-base-element.js"
150398
150384
  }
150399
150385
  },
150400
150386
  {
150401
- "kind": "method",
150402
- "name": "dispatchOpenEvent",
150403
- "privacy": "protected",
150404
- "return": {
150405
- "type": {
150406
- "text": "boolean"
150407
- }
150387
+ "kind": "field",
150388
+ "name": "maybeDisabled",
150389
+ "type": {
150390
+ "text": "boolean | undefined"
150408
150391
  },
150392
+ "privacy": "protected",
150393
+ "readonly": true,
150409
150394
  "inheritedFrom": {
150410
- "name": "SbbOpenCloseBaseElement",
150411
- "module": "core/base-elements/open-close-base-element.js"
150395
+ "name": "SbbActionBaseElement",
150396
+ "module": "core/base-elements/action-base-element.js"
150412
150397
  }
150413
150398
  },
150414
150399
  {
150415
- "kind": "method",
150416
- "name": "dispatchBeforeCloseEvent",
150417
- "privacy": "protected",
150418
- "return": {
150419
- "type": {
150420
- "text": "boolean"
150421
- }
150400
+ "kind": "field",
150401
+ "name": "maybeDisabledInteractive",
150402
+ "type": {
150403
+ "text": "boolean | undefined"
150422
150404
  },
150405
+ "privacy": "protected",
150406
+ "readonly": true,
150423
150407
  "inheritedFrom": {
150424
- "name": "SbbOpenCloseBaseElement",
150425
- "module": "core/base-elements/open-close-base-element.js"
150408
+ "name": "SbbActionBaseElement",
150409
+ "module": "core/base-elements/action-base-element.js"
150426
150410
  }
150427
150411
  },
150428
150412
  {
150429
150413
  "kind": "method",
150430
- "name": "dispatchCloseEvent",
150414
+ "name": "setupBaseEventHandlers",
150431
150415
  "privacy": "protected",
150432
150416
  "return": {
150433
150417
  "type": {
150434
- "text": "boolean"
150418
+ "text": "void"
150435
150419
  }
150436
150420
  },
150437
150421
  "inheritedFrom": {
150438
- "name": "SbbOpenCloseBaseElement",
150439
- "module": "core/base-elements/open-close-base-element.js"
150422
+ "name": "SbbActionBaseElement",
150423
+ "module": "core/base-elements/action-base-element.js"
150440
150424
  }
150441
150425
  },
150442
150426
  {
@@ -150453,32 +150437,6 @@
150453
150437
  "module": "core/base-elements/element.js"
150454
150438
  }
150455
150439
  },
150456
- {
150457
- "kind": "field",
150458
- "name": "elementDependencies",
150459
- "type": {
150460
- "text": "SbbElementType[] | undefined"
150461
- },
150462
- "privacy": "public",
150463
- "static": true,
150464
- "inheritedFrom": {
150465
- "name": "SbbElement",
150466
- "module": "core/base-elements/element.js"
150467
- }
150468
- },
150469
- {
150470
- "kind": "field",
150471
- "name": "role",
150472
- "type": {
150473
- "text": "ElementInternals['role'] | undefined"
150474
- },
150475
- "privacy": "public",
150476
- "static": true,
150477
- "inheritedFrom": {
150478
- "name": "SbbElement",
150479
- "module": "core/base-elements/element.js"
150480
- }
150481
- },
150482
150440
  {
150483
150441
  "kind": "field",
150484
150442
  "name": "_controllers",
@@ -150723,108 +150681,150 @@
150723
150681
  }
150724
150682
  }
150725
150683
  ],
150684
+ "superclass": {
150685
+ "name": "SbbSecondaryButtonElement",
150686
+ "module": "button.pure.js"
150687
+ },
150688
+ "tagName": "sbb-sidebar-close-button",
150689
+ "customElement": true,
150726
150690
  "attributes": [
150727
150691
  {
150728
- "name": "color",
150692
+ "name": "size",
150729
150693
  "type": {
150730
- "text": "'white' | 'milk'"
150694
+ "text": "SbbButtonSize"
150731
150695
  },
150732
- "default": "'white'",
150733
- "description": "Background color of the sidebar. Either `white` or `milk`.",
150734
- "fieldName": "color"
150696
+ "description": "Size variant, either l, m or s.",
150697
+ "default": "'m' / 's' (lean)",
150698
+ "fieldName": "size",
150699
+ "inheritedFrom": {
150700
+ "name": "SbbButtonCommonElementMixin",
150701
+ "module": "button/common/button-common.js"
150702
+ }
150735
150703
  },
150736
150704
  {
150737
- "name": "mode",
150705
+ "name": "loading",
150738
150706
  "type": {
150739
- "text": "'side' | 'over'"
150707
+ "text": "boolean"
150740
150708
  },
150741
- "default": "'side'",
150742
- "description": "Mode of the sidebar; one of 'side' or 'over'.",
150743
- "fieldName": "mode"
150709
+ "default": "false",
150710
+ "description": "Whether the button indicates a loading state.\nThe animation kicks in after a delay of 300ms, configurable with --sbb-button-loading-delay CSS variable.",
150711
+ "fieldName": "loading",
150712
+ "inheritedFrom": {
150713
+ "name": "SbbButtonCommonElementMixin",
150714
+ "module": "button/common/button-common.js"
150715
+ }
150744
150716
  },
150745
150717
  {
150746
- "name": "position",
150718
+ "name": "negative",
150747
150719
  "type": {
150748
- "text": "'start' | 'end'"
150720
+ "text": "boolean"
150749
150721
  },
150750
- "default": "'start'",
150751
- "description": "The side that the sidebar is attached to.",
150752
- "fieldName": "position"
150722
+ "default": "false",
150723
+ "description": "Negative coloring variant flag.",
150724
+ "fieldName": "negative",
150725
+ "inheritedFrom": {
150726
+ "name": "SbbNegativeMixin",
150727
+ "module": "core/mixins/negative-mixin.js"
150728
+ }
150753
150729
  },
150754
150730
  {
150755
- "name": "opened",
150731
+ "name": "icon-name",
150756
150732
  "type": {
150757
- "text": "boolean"
150733
+ "text": "string"
150758
150734
  },
150759
- "default": "false",
150760
- "description": "Whether the sidebar is opened or closed.\nCan be used to initially set the opened state, where\nthe animation will be skipped.",
150761
- "fieldName": "opened"
150735
+ "default": "''",
150736
+ "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.",
150737
+ "fieldName": "iconName",
150738
+ "inheritedFrom": {
150739
+ "name": "SbbIconNameMixin",
150740
+ "module": "icon/icon-name-mixin.js"
150741
+ }
150762
150742
  },
150763
150743
  {
150764
- "name": "focus-on-open",
150744
+ "name": "disabled-interactive",
150765
150745
  "type": {
150766
150746
  "text": "boolean"
150767
150747
  },
150768
150748
  "default": "false",
150769
- "description": "Whether the sidebar should focus the first focusable element automatically when opened.\nDefaults to false in when mode is set to `side`, otherwise defaults to true.\nIf explicitly enabled, focus will be moved into the sidebar in `side` mode as well.",
150770
- "fieldName": "focusOnOpen"
150771
- }
150772
- ],
150773
- "mixins": [
150749
+ "description": "Whether the button should be aria-disabled but stay interactive.",
150750
+ "fieldName": "disabledInteractive",
150751
+ "inheritedFrom": {
150752
+ "name": "SbbDisabledInteractiveMixin",
150753
+ "module": "core/mixins/disabled-mixin.js"
150754
+ }
150755
+ },
150774
150756
  {
150775
- "name": "SbbAnimationCompleteMixin",
150776
- "module": "core.js"
150777
- }
150778
- ],
150779
- "superclass": {
150780
- "name": "SbbOpenCloseBaseElement",
150781
- "module": "core.js"
150782
- },
150783
- "tagName": "sbb-sidebar",
150784
- "customElement": true,
150785
- "events": [
150757
+ "name": "disabled",
150758
+ "description": "Whether the component is disabled.",
150759
+ "default": "false",
150760
+ "type": {
150761
+ "text": "boolean"
150762
+ },
150763
+ "fieldName": "disabled",
150764
+ "inheritedFrom": {
150765
+ "name": "SbbDisabledMixin",
150766
+ "module": "core/mixins/disabled-mixin.js"
150767
+ }
150768
+ },
150786
150769
  {
150787
- "name": "beforeopen",
150770
+ "name": "value",
150788
150771
  "type": {
150789
- "text": "Event"
150772
+ "text": "string"
150790
150773
  },
150791
- "description": "Emits whenever the component starts the opening transition. Can be canceled.",
150774
+ "default": "''",
150775
+ "description": "Value of the form element.",
150776
+ "fieldName": "value",
150792
150777
  "inheritedFrom": {
150793
- "name": "SbbOpenCloseBaseElement",
150794
- "module": "core/base-elements/open-close-base-element.js"
150778
+ "name": "SbbButtonBaseElement",
150779
+ "module": "core/base-elements/button-base-element.js"
150795
150780
  }
150796
150781
  },
150797
150782
  {
150798
- "name": "open",
150783
+ "name": "type",
150784
+ "description": "The type attribute to use for the button.",
150785
+ "default": "'button'",
150799
150786
  "type": {
150800
- "text": "Event"
150787
+ "text": "SbbButtonType"
150801
150788
  },
150802
- "description": "Emits whenever the component is opened.",
150789
+ "fieldName": "type",
150803
150790
  "inheritedFrom": {
150804
- "name": "SbbOpenCloseBaseElement",
150805
- "module": "core/base-elements/open-close-base-element.js"
150791
+ "name": "SbbButtonBaseElement",
150792
+ "module": "core/base-elements/button-base-element.js"
150806
150793
  }
150807
150794
  },
150808
150795
  {
150809
- "name": "beforeclose",
150796
+ "name": "form",
150797
+ "description": "The `<form>` element to associate the button with.",
150810
150798
  "type": {
150811
- "text": "Event"
150799
+ "text": "HTMLFormElement | null"
150812
150800
  },
150813
- "description": "Emits whenever the component begins the closing transition. Can be canceled.",
150801
+ "fieldName": "form",
150814
150802
  "inheritedFrom": {
150815
- "name": "SbbOpenCloseBaseElement",
150816
- "module": "core/base-elements/open-close-base-element.js"
150803
+ "name": "SbbButtonBaseElement",
150804
+ "module": "core/base-elements/button-base-element.js"
150817
150805
  }
150818
150806
  },
150819
150807
  {
150820
- "name": "close",
150808
+ "name": "name",
150809
+ "description": "Name of the form element. Will be read from name attribute.",
150821
150810
  "type": {
150822
- "text": "Event"
150811
+ "text": "string"
150823
150812
  },
150824
- "description": "Emits whenever the component is closed.",
150813
+ "fieldName": "name",
150825
150814
  "inheritedFrom": {
150826
- "name": "SbbOpenCloseBaseElement",
150827
- "module": "core/base-elements/open-close-base-element.js"
150815
+ "name": "SbbFormAssociatedMixin",
150816
+ "module": "core/mixins/form-associated-mixin.js"
150817
+ }
150818
+ }
150819
+ ],
150820
+ "cssProperties": [
150821
+ {
150822
+ "description": "The delay before the loading animation starts, when setting the button into loading state.",
150823
+ "name": "--sbb-button-loading-delay",
150824
+ "default": "300ms",
150825
+ "inheritedFrom": {
150826
+ "name": "SbbSecondaryButtonElement",
150827
+ "module": "button/secondary-button/secondary-button.component.js"
150828
150828
  }
150829
150829
  }
150830
150830
  ]
@@ -150833,10 +150833,10 @@
150833
150833
  "exports": [
150834
150834
  {
150835
150835
  "kind": "js",
150836
- "name": "SbbSidebarElement",
150836
+ "name": "SbbSidebarCloseButtonElement",
150837
150837
  "declaration": {
150838
- "name": "SbbSidebarElement",
150839
- "module": "sidebar/sidebar/sidebar.component.js"
150838
+ "name": "SbbSidebarCloseButtonElement",
150839
+ "module": "sidebar/sidebar-close-button/sidebar-close-button.component.js"
150840
150840
  }
150841
150841
  }
150842
150842
  ]