@vscode-elements/elements 1.16.2-pre.0 → 1.17.0

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.
@@ -4273,17 +4273,9 @@
4273
4273
  }
4274
4274
  },
4275
4275
  {
4276
- "kind": "method",
4276
+ "kind": "field",
4277
4277
  "name": "_onOptionListScroll",
4278
- "privacy": "protected",
4279
- "parameters": [
4280
- {
4281
- "name": "ev",
4282
- "type": {
4283
- "text": "Event"
4284
- }
4285
- }
4286
- ],
4278
+ "privacy": "private",
4287
4279
  "inheritedFrom": {
4288
4280
  "name": "VscodeSelectBase",
4289
4281
  "module": "src/includes/vscode-select/vscode-select-base.ts"
@@ -5882,9 +5874,9 @@
5882
5874
  "name": "VscodeScrollable",
5883
5875
  "cssProperties": [
5884
5876
  {
5885
- "description": "Scrollbar thumb minimum height",
5877
+ "description": "",
5886
5878
  "name": "--min-thumb-height",
5887
- "default": "20px"
5879
+ "deprecated": "This css property is deprecated. Use the `minThumbSize` property instead."
5888
5880
  },
5889
5881
  {
5890
5882
  "name": "--vscode-scrollbar-shadow",
@@ -5904,6 +5896,47 @@
5904
5896
  }
5905
5897
  ],
5906
5898
  "members": [
5899
+ {
5900
+ "kind": "field",
5901
+ "name": "alwaysVisible",
5902
+ "type": {
5903
+ "text": "boolean"
5904
+ },
5905
+ "default": "false",
5906
+ "description": "By default, the scrollbar appears only when the cursor hovers over the\ncomponent. With this option, the scrollbar will always be visible.",
5907
+ "attribute": "always-visible",
5908
+ "reflects": true
5909
+ },
5910
+ {
5911
+ "kind": "field",
5912
+ "name": "fastScrollSensitivity",
5913
+ "type": {
5914
+ "text": "number"
5915
+ },
5916
+ "default": "5",
5917
+ "description": "Scrolling speed multiplier when pressing `Alt`. This property is designed to use the value of\n`editor.fastScrollSensitivity`, `workbench.list.fastScrollSensitivity` or\n`terminal.integrated.fastScrollSensitivity` depending on the context.",
5918
+ "attribute": "fast-scroll-sensitivity"
5919
+ },
5920
+ {
5921
+ "kind": "field",
5922
+ "name": "minThumbSize",
5923
+ "type": {
5924
+ "text": "number"
5925
+ },
5926
+ "default": "20",
5927
+ "description": "This setting defines the scrollbar's minimum size when the component contains a large amount of content.",
5928
+ "attribute": "min-thumb-size"
5929
+ },
5930
+ {
5931
+ "kind": "field",
5932
+ "name": "mouseWheelScrollSensitivity",
5933
+ "type": {
5934
+ "text": "number"
5935
+ },
5936
+ "default": "1",
5937
+ "description": "A multiplier to be used on the `deltaY` of the mouse wheel scroll events. This property is\ndesigned to use the value of `editor.mouseWheelScrollSensitivity`,\n`workbench.list.mouseWheelScrollSensitivity` or\n`terminal.integrated.mouseWheelScrollSensitivity` depending on the context.",
5938
+ "attribute": "mouse-wheel-scroll-sensitivity"
5939
+ },
5907
5940
  {
5908
5941
  "kind": "field",
5909
5942
  "name": "shadow",
@@ -5911,6 +5944,7 @@
5911
5944
  "text": "boolean"
5912
5945
  },
5913
5946
  "default": "true",
5947
+ "description": "Controls shadow visibility when content overflows.",
5914
5948
  "attribute": "shadow",
5915
5949
  "reflects": true
5916
5950
  },
@@ -5921,23 +5955,35 @@
5921
5955
  "text": "boolean"
5922
5956
  },
5923
5957
  "default": "false",
5958
+ "description": "It's true when `scrollPos` greater than 0",
5924
5959
  "attribute": "scrolled",
5925
5960
  "reflects": true
5926
5961
  },
5927
5962
  {
5928
5963
  "kind": "field",
5929
5964
  "name": "scrollPos",
5965
+ "description": "Scroll position.",
5930
5966
  "type": {
5931
5967
  "text": "number"
5932
5968
  },
5933
5969
  "attribute": "scroll-pos"
5934
5970
  },
5971
+ {
5972
+ "kind": "field",
5973
+ "name": "_scrollPos",
5974
+ "type": {
5975
+ "text": "number"
5976
+ },
5977
+ "privacy": "private",
5978
+ "default": "0"
5979
+ },
5935
5980
  {
5936
5981
  "kind": "field",
5937
5982
  "name": "scrollMax",
5938
5983
  "type": {
5939
5984
  "text": "number"
5940
5985
  },
5986
+ "description": "The maximum amount of the `scrollPos`.",
5941
5987
  "readonly": true,
5942
5988
  "attribute": "scroll-max"
5943
5989
  },
@@ -6084,6 +6130,11 @@
6084
6130
  "name": "_resizeObserverCallback",
6085
6131
  "privacy": "private"
6086
6132
  },
6133
+ {
6134
+ "kind": "method",
6135
+ "name": "_calcThumbHeight",
6136
+ "privacy": "private"
6137
+ },
6087
6138
  {
6088
6139
  "kind": "method",
6089
6140
  "name": "_updateScrollbar",
@@ -6095,44 +6146,57 @@
6095
6146
  "privacy": "private"
6096
6147
  },
6097
6148
  {
6098
- "kind": "field",
6099
- "name": "_onSlotChange",
6149
+ "kind": "method",
6150
+ "name": "_updateThumbPosition",
6100
6151
  "privacy": "private"
6101
6152
  },
6102
6153
  {
6103
6154
  "kind": "method",
6104
- "name": "_onScrollThumbMouseDown",
6155
+ "name": "_calculateScrollPosFromThumbPos",
6105
6156
  "privacy": "private",
6106
6157
  "parameters": [
6107
6158
  {
6108
- "name": "event",
6159
+ "name": "scrollPos",
6109
6160
  "type": {
6110
- "text": "MouseEvent"
6161
+ "text": "number"
6111
6162
  }
6112
6163
  }
6113
6164
  ]
6114
6165
  },
6115
6166
  {
6116
6167
  "kind": "method",
6117
- "name": "_onScrollThumbMouseMove",
6168
+ "name": "_limitScrollPos",
6118
6169
  "privacy": "private",
6119
6170
  "parameters": [
6120
6171
  {
6121
- "name": "event",
6172
+ "name": "newPos",
6122
6173
  "type": {
6123
- "text": "MouseEvent"
6174
+ "text": "number"
6175
+ }
6176
+ }
6177
+ ]
6178
+ },
6179
+ {
6180
+ "kind": "method",
6181
+ "name": "_limitThumbPos",
6182
+ "privacy": "private",
6183
+ "parameters": [
6184
+ {
6185
+ "name": "newPos",
6186
+ "type": {
6187
+ "text": "number"
6124
6188
  }
6125
6189
  }
6126
6190
  ]
6127
6191
  },
6128
6192
  {
6129
6193
  "kind": "field",
6130
- "name": "_onScrollThumbMouseMoveBound",
6194
+ "name": "_handleSlotChange",
6131
6195
  "privacy": "private"
6132
6196
  },
6133
6197
  {
6134
6198
  "kind": "method",
6135
- "name": "_onScrollThumbMouseUp",
6199
+ "name": "_handleScrollThumbMouseDown",
6136
6200
  "privacy": "private",
6137
6201
  "parameters": [
6138
6202
  {
@@ -6145,32 +6209,45 @@
6145
6209
  },
6146
6210
  {
6147
6211
  "kind": "field",
6148
- "name": "_onScrollThumbMouseUpBound",
6212
+ "name": "_handleScrollThumbMouseMove",
6149
6213
  "privacy": "private"
6150
6214
  },
6151
6215
  {
6152
- "kind": "method",
6153
- "name": "_onScrollableContainerScroll",
6216
+ "kind": "field",
6217
+ "name": "_handleScrollThumbMouseUp",
6154
6218
  "privacy": "private"
6155
6219
  },
6156
6220
  {
6157
- "kind": "method",
6158
- "name": "_onComponentMouseOver",
6221
+ "kind": "field",
6222
+ "name": "_handleComponentMouseOver",
6159
6223
  "privacy": "private"
6160
6224
  },
6161
6225
  {
6162
6226
  "kind": "field",
6163
- "name": "_onComponentMouseOverBound",
6227
+ "name": "_handleComponentMouseOut",
6164
6228
  "privacy": "private"
6165
6229
  },
6166
6230
  {
6167
- "kind": "method",
6168
- "name": "_onComponentMouseOut",
6231
+ "kind": "field",
6232
+ "name": "_handleComponentWheel",
6169
6233
  "privacy": "private"
6170
6234
  },
6235
+ {
6236
+ "kind": "method",
6237
+ "name": "_handleScrollbarTrackPress",
6238
+ "privacy": "private",
6239
+ "parameters": [
6240
+ {
6241
+ "name": "ev",
6242
+ "type": {
6243
+ "text": "PointerEvent"
6244
+ }
6245
+ }
6246
+ ]
6247
+ },
6171
6248
  {
6172
6249
  "kind": "field",
6173
- "name": "_onComponentMouseOutBound",
6250
+ "name": "_handleScrollableContainerScroll",
6174
6251
  "privacy": "private"
6175
6252
  },
6176
6253
  {
@@ -6188,12 +6265,49 @@
6188
6265
  }
6189
6266
  ],
6190
6267
  "attributes": [
6268
+ {
6269
+ "name": "always-visible",
6270
+ "type": {
6271
+ "text": "boolean"
6272
+ },
6273
+ "default": "false",
6274
+ "description": "By default, the scrollbar appears only when the cursor hovers over the\ncomponent. With this option, the scrollbar will always be visible.",
6275
+ "fieldName": "alwaysVisible"
6276
+ },
6277
+ {
6278
+ "name": "fast-scroll-sensitivity",
6279
+ "type": {
6280
+ "text": "number"
6281
+ },
6282
+ "default": "5",
6283
+ "description": "Scrolling speed multiplier when pressing `Alt`. This property is designed to use the value of\n`editor.fastScrollSensitivity`, `workbench.list.fastScrollSensitivity` or\n`terminal.integrated.fastScrollSensitivity` depending on the context.",
6284
+ "fieldName": "fastScrollSensitivity"
6285
+ },
6286
+ {
6287
+ "name": "min-thumb-size",
6288
+ "type": {
6289
+ "text": "number"
6290
+ },
6291
+ "default": "20",
6292
+ "description": "This setting defines the scrollbar's minimum size when the component contains a large amount of content.",
6293
+ "fieldName": "minThumbSize"
6294
+ },
6295
+ {
6296
+ "name": "mouse-wheel-scroll-sensitivity",
6297
+ "type": {
6298
+ "text": "number"
6299
+ },
6300
+ "default": "1",
6301
+ "description": "A multiplier to be used on the `deltaY` of the mouse wheel scroll events. This property is\ndesigned to use the value of `editor.mouseWheelScrollSensitivity`,\n`workbench.list.mouseWheelScrollSensitivity` or\n`terminal.integrated.mouseWheelScrollSensitivity` depending on the context.",
6302
+ "fieldName": "mouseWheelScrollSensitivity"
6303
+ },
6191
6304
  {
6192
6305
  "name": "shadow",
6193
6306
  "type": {
6194
6307
  "text": "boolean"
6195
6308
  },
6196
6309
  "default": "true",
6310
+ "description": "Controls shadow visibility when content overflows.",
6197
6311
  "fieldName": "shadow"
6198
6312
  },
6199
6313
  {
@@ -6202,10 +6316,12 @@
6202
6316
  "text": "boolean"
6203
6317
  },
6204
6318
  "default": "false",
6319
+ "description": "It's true when `scrollPos` greater than 0",
6205
6320
  "fieldName": "scrolled"
6206
6321
  },
6207
6322
  {
6208
6323
  "name": "scroll-pos",
6324
+ "description": "Scroll position.",
6209
6325
  "type": {
6210
6326
  "text": "number"
6211
6327
  },
@@ -6216,6 +6332,7 @@
6216
6332
  "type": {
6217
6333
  "text": "number"
6218
6334
  },
6335
+ "description": "The maximum amount of the `scrollPos`.",
6219
6336
  "readonly": true,
6220
6337
  "fieldName": "scrollMax"
6221
6338
  }
@@ -7106,17 +7223,9 @@
7106
7223
  }
7107
7224
  },
7108
7225
  {
7109
- "kind": "method",
7226
+ "kind": "field",
7110
7227
  "name": "_onOptionListScroll",
7111
- "privacy": "protected",
7112
- "parameters": [
7113
- {
7114
- "name": "ev",
7115
- "type": {
7116
- "text": "Event"
7117
- }
7118
- }
7119
- ],
7228
+ "privacy": "private",
7120
7229
  "inheritedFrom": {
7121
7230
  "name": "VscodeSelectBase",
7122
7231
  "module": "src/includes/vscode-select/vscode-select-base.ts"
@@ -8294,6 +8403,128 @@
8294
8403
  }
8295
8404
  ]
8296
8405
  },
8406
+ {
8407
+ "kind": "javascript-module",
8408
+ "path": "src/vscode-tab-panel/vscode-tab-panel.styles.ts",
8409
+ "declarations": [
8410
+ {
8411
+ "kind": "variable",
8412
+ "name": "styles",
8413
+ "type": {
8414
+ "text": "CSSResultGroup"
8415
+ },
8416
+ "default": "[ defaultStyles, css` :host { display: block; overflow: hidden; } :host(:focus-visible) { outline-color: var(--vscode-focusBorder); outline-offset: 3px; outline-style: solid; outline-width: 1px; } :host([panel]) { background-color: var(--vscode-panel-background); } `, ]"
8417
+ }
8418
+ ],
8419
+ "exports": [
8420
+ {
8421
+ "kind": "js",
8422
+ "name": "default",
8423
+ "declaration": {
8424
+ "name": "styles",
8425
+ "module": "src/vscode-tab-panel/vscode-tab-panel.styles.ts"
8426
+ }
8427
+ }
8428
+ ]
8429
+ },
8430
+ {
8431
+ "kind": "javascript-module",
8432
+ "path": "src/vscode-tab-panel/vscode-tab-panel.ts",
8433
+ "declarations": [
8434
+ {
8435
+ "kind": "class",
8436
+ "description": "",
8437
+ "name": "VscodeTabPanel",
8438
+ "cssProperties": [
8439
+ {
8440
+ "name": "--vscode-panel--background"
8441
+ },
8442
+ {
8443
+ "name": "--vscode-focusBorder"
8444
+ }
8445
+ ],
8446
+ "members": [
8447
+ {
8448
+ "kind": "field",
8449
+ "name": "hidden",
8450
+ "type": {
8451
+ "text": "boolean"
8452
+ },
8453
+ "default": "false",
8454
+ "attribute": "hidden",
8455
+ "reflects": true
8456
+ },
8457
+ {
8458
+ "kind": "field",
8459
+ "name": "panel",
8460
+ "type": {
8461
+ "text": "boolean"
8462
+ },
8463
+ "default": "false",
8464
+ "description": "Panel-like look",
8465
+ "attribute": "panel",
8466
+ "reflects": true
8467
+ },
8468
+ {
8469
+ "kind": "field",
8470
+ "name": "version",
8471
+ "type": {
8472
+ "text": "string"
8473
+ },
8474
+ "description": "VSCode Elements version",
8475
+ "readonly": true,
8476
+ "inheritedFrom": {
8477
+ "name": "VscElement",
8478
+ "module": "src/includes/VscElement.ts"
8479
+ }
8480
+ }
8481
+ ],
8482
+ "attributes": [
8483
+ {
8484
+ "name": "hidden",
8485
+ "type": {
8486
+ "text": "boolean"
8487
+ },
8488
+ "default": "false",
8489
+ "fieldName": "hidden"
8490
+ },
8491
+ {
8492
+ "name": "panel",
8493
+ "type": {
8494
+ "text": "boolean"
8495
+ },
8496
+ "default": "false",
8497
+ "description": "Panel-like look",
8498
+ "fieldName": "panel"
8499
+ }
8500
+ ],
8501
+ "superclass": {
8502
+ "name": "VscElement",
8503
+ "module": "/src/includes/VscElement.js"
8504
+ },
8505
+ "tagName": "vscode-tab-panel",
8506
+ "customElement": true
8507
+ }
8508
+ ],
8509
+ "exports": [
8510
+ {
8511
+ "kind": "js",
8512
+ "name": "VscodeTabPanel",
8513
+ "declaration": {
8514
+ "name": "VscodeTabPanel",
8515
+ "module": "src/vscode-tab-panel/vscode-tab-panel.ts"
8516
+ }
8517
+ },
8518
+ {
8519
+ "kind": "custom-element-definition",
8520
+ "name": "vscode-tab-panel",
8521
+ "declaration": {
8522
+ "name": "VscodeTabPanel",
8523
+ "module": "src/vscode-tab-panel/vscode-tab-panel.ts"
8524
+ }
8525
+ }
8526
+ ]
8527
+ },
8297
8528
  {
8298
8529
  "kind": "javascript-module",
8299
8530
  "path": "src/vscode-table/helpers.ts",
@@ -9321,128 +9552,6 @@
9321
9552
  }
9322
9553
  ]
9323
9554
  },
9324
- {
9325
- "kind": "javascript-module",
9326
- "path": "src/vscode-tab-panel/vscode-tab-panel.styles.ts",
9327
- "declarations": [
9328
- {
9329
- "kind": "variable",
9330
- "name": "styles",
9331
- "type": {
9332
- "text": "CSSResultGroup"
9333
- },
9334
- "default": "[ defaultStyles, css` :host { display: block; overflow: hidden; } :host(:focus-visible) { outline-color: var(--vscode-focusBorder); outline-offset: 3px; outline-style: solid; outline-width: 1px; } :host([panel]) { background-color: var(--vscode-panel-background); } `, ]"
9335
- }
9336
- ],
9337
- "exports": [
9338
- {
9339
- "kind": "js",
9340
- "name": "default",
9341
- "declaration": {
9342
- "name": "styles",
9343
- "module": "src/vscode-tab-panel/vscode-tab-panel.styles.ts"
9344
- }
9345
- }
9346
- ]
9347
- },
9348
- {
9349
- "kind": "javascript-module",
9350
- "path": "src/vscode-tab-panel/vscode-tab-panel.ts",
9351
- "declarations": [
9352
- {
9353
- "kind": "class",
9354
- "description": "",
9355
- "name": "VscodeTabPanel",
9356
- "cssProperties": [
9357
- {
9358
- "name": "--vscode-panel--background"
9359
- },
9360
- {
9361
- "name": "--vscode-focusBorder"
9362
- }
9363
- ],
9364
- "members": [
9365
- {
9366
- "kind": "field",
9367
- "name": "hidden",
9368
- "type": {
9369
- "text": "boolean"
9370
- },
9371
- "default": "false",
9372
- "attribute": "hidden",
9373
- "reflects": true
9374
- },
9375
- {
9376
- "kind": "field",
9377
- "name": "panel",
9378
- "type": {
9379
- "text": "boolean"
9380
- },
9381
- "default": "false",
9382
- "description": "Panel-like look",
9383
- "attribute": "panel",
9384
- "reflects": true
9385
- },
9386
- {
9387
- "kind": "field",
9388
- "name": "version",
9389
- "type": {
9390
- "text": "string"
9391
- },
9392
- "description": "VSCode Elements version",
9393
- "readonly": true,
9394
- "inheritedFrom": {
9395
- "name": "VscElement",
9396
- "module": "src/includes/VscElement.ts"
9397
- }
9398
- }
9399
- ],
9400
- "attributes": [
9401
- {
9402
- "name": "hidden",
9403
- "type": {
9404
- "text": "boolean"
9405
- },
9406
- "default": "false",
9407
- "fieldName": "hidden"
9408
- },
9409
- {
9410
- "name": "panel",
9411
- "type": {
9412
- "text": "boolean"
9413
- },
9414
- "default": "false",
9415
- "description": "Panel-like look",
9416
- "fieldName": "panel"
9417
- }
9418
- ],
9419
- "superclass": {
9420
- "name": "VscElement",
9421
- "module": "/src/includes/VscElement.js"
9422
- },
9423
- "tagName": "vscode-tab-panel",
9424
- "customElement": true
9425
- }
9426
- ],
9427
- "exports": [
9428
- {
9429
- "kind": "js",
9430
- "name": "VscodeTabPanel",
9431
- "declaration": {
9432
- "name": "VscodeTabPanel",
9433
- "module": "src/vscode-tab-panel/vscode-tab-panel.ts"
9434
- }
9435
- },
9436
- {
9437
- "kind": "custom-element-definition",
9438
- "name": "vscode-tab-panel",
9439
- "declaration": {
9440
- "name": "VscodeTabPanel",
9441
- "module": "src/vscode-tab-panel/vscode-tab-panel.ts"
9442
- }
9443
- }
9444
- ]
9445
- },
9446
9555
  {
9447
9556
  "kind": "javascript-module",
9448
9557
  "path": "src/vscode-table-header/vscode-table-header.styles.ts",
@@ -13493,17 +13602,9 @@
13493
13602
  ]
13494
13603
  },
13495
13604
  {
13496
- "kind": "method",
13605
+ "kind": "field",
13497
13606
  "name": "_onOptionListScroll",
13498
- "privacy": "protected",
13499
- "parameters": [
13500
- {
13501
- "name": "ev",
13502
- "type": {
13503
- "text": "Event"
13504
- }
13505
- }
13506
- ]
13607
+ "privacy": "private"
13507
13608
  },
13508
13609
  {
13509
13610
  "kind": "method",