@vscode-elements/elements 1.12.0 → 1.13.1

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 (111) hide show
  1. package/README.md +95 -21
  2. package/custom-elements.json +230 -103
  3. package/dist/bundled.js +231 -220
  4. package/dist/includes/VscElement.js +1 -1
  5. package/dist/includes/VscElement.js.map +1 -1
  6. package/dist/includes/form-button-widget/FormButtonWidgetBase.d.ts.map +1 -1
  7. package/dist/includes/form-button-widget/FormButtonWidgetBase.js.map +1 -1
  8. package/dist/includes/helpers.d.ts +2 -0
  9. package/dist/includes/helpers.d.ts.map +1 -1
  10. package/dist/includes/helpers.js +28 -0
  11. package/dist/includes/helpers.js.map +1 -1
  12. package/dist/includes/style-property-map.d.ts.map +1 -1
  13. package/dist/includes/style-property-map.js.map +1 -1
  14. package/dist/includes/vscode-select/vscode-select-base.d.ts.map +1 -1
  15. package/dist/includes/vscode-select/vscode-select-base.js +13 -8
  16. package/dist/includes/vscode-select/vscode-select-base.js.map +1 -1
  17. package/dist/vscode-badge/vscode-badge.d.ts +7 -6
  18. package/dist/vscode-badge/vscode-badge.d.ts.map +1 -1
  19. package/dist/vscode-badge/vscode-badge.js +6 -5
  20. package/dist/vscode-badge/vscode-badge.js.map +1 -1
  21. package/dist/vscode-badge/vscode-badge.styles.d.ts.map +1 -1
  22. package/dist/vscode-badge/vscode-badge.styles.js +22 -10
  23. package/dist/vscode-badge/vscode-badge.styles.js.map +1 -1
  24. package/dist/vscode-button/vscode-button.d.ts +11 -11
  25. package/dist/vscode-button/vscode-button.d.ts.map +1 -1
  26. package/dist/vscode-button/vscode-button.js +11 -11
  27. package/dist/vscode-button/vscode-button.js.map +1 -1
  28. package/dist/vscode-button/vscode-button.styles.d.ts.map +1 -1
  29. package/dist/vscode-button/vscode-button.styles.js +21 -19
  30. package/dist/vscode-button/vscode-button.styles.js.map +1 -1
  31. package/dist/vscode-checkbox/vscode-checkbox.d.ts.map +1 -1
  32. package/dist/vscode-checkbox/vscode-checkbox.js +1 -1
  33. package/dist/vscode-checkbox/vscode-checkbox.js.map +1 -1
  34. package/dist/vscode-checkbox-group/vscode-checkbox-group.d.ts.map +1 -1
  35. package/dist/vscode-checkbox-group/vscode-checkbox-group.js.map +1 -1
  36. package/dist/vscode-collapsible/vscode-collapsible.d.ts.map +1 -1
  37. package/dist/vscode-collapsible/vscode-collapsible.js.map +1 -1
  38. package/dist/vscode-context-menu/vscode-context-menu.d.ts.map +1 -1
  39. package/dist/vscode-context-menu/vscode-context-menu.js.map +1 -1
  40. package/dist/vscode-context-menu-item/vscode-context-menu-item.d.ts.map +1 -1
  41. package/dist/vscode-context-menu-item/vscode-context-menu-item.js.map +1 -1
  42. package/dist/vscode-divider/vscode-divider.d.ts.map +1 -1
  43. package/dist/vscode-divider/vscode-divider.js.map +1 -1
  44. package/dist/vscode-form-container/vscode-form-container.d.ts.map +1 -1
  45. package/dist/vscode-form-container/vscode-form-container.js.map +1 -1
  46. package/dist/vscode-form-group/vscode-form-group.d.ts.map +1 -1
  47. package/dist/vscode-form-group/vscode-form-group.js.map +1 -1
  48. package/dist/vscode-form-helper/vscode-form-helper.d.ts.map +1 -1
  49. package/dist/vscode-form-helper/vscode-form-helper.js.map +1 -1
  50. package/dist/vscode-form-helper/vscode-form-helper.styles.js +1 -1
  51. package/dist/vscode-form-helper/vscode-form-helper.styles.js.map +1 -1
  52. package/dist/vscode-icon/vscode-icon.d.ts.map +1 -1
  53. package/dist/vscode-icon/vscode-icon.js +1 -1
  54. package/dist/vscode-icon/vscode-icon.js.map +1 -1
  55. package/dist/vscode-label/vscode-label.d.ts.map +1 -1
  56. package/dist/vscode-label/vscode-label.js.map +1 -1
  57. package/dist/vscode-multi-select/vscode-multi-select.d.ts.map +1 -1
  58. package/dist/vscode-multi-select/vscode-multi-select.js +3 -4
  59. package/dist/vscode-multi-select/vscode-multi-select.js.map +1 -1
  60. package/dist/vscode-option/vscode-option.d.ts.map +1 -1
  61. package/dist/vscode-option/vscode-option.js.map +1 -1
  62. package/dist/vscode-progress-ring/vscode-progress-ring.d.ts.map +1 -1
  63. package/dist/vscode-progress-ring/vscode-progress-ring.js.map +1 -1
  64. package/dist/vscode-radio/vscode-radio.d.ts.map +1 -1
  65. package/dist/vscode-radio/vscode-radio.js +1 -1
  66. package/dist/vscode-radio/vscode-radio.js.map +1 -1
  67. package/dist/vscode-radio-group/vscode-radio-group.d.ts.map +1 -1
  68. package/dist/vscode-radio-group/vscode-radio-group.js.map +1 -1
  69. package/dist/vscode-scrollable/vscode-scrollable.d.ts.map +1 -1
  70. package/dist/vscode-scrollable/vscode-scrollable.js.map +1 -1
  71. package/dist/vscode-single-select/vscode-single-select.d.ts.map +1 -1
  72. package/dist/vscode-single-select/vscode-single-select.js +2 -1
  73. package/dist/vscode-single-select/vscode-single-select.js.map +1 -1
  74. package/dist/vscode-split-layout/vscode-split-layout.d.ts +2 -0
  75. package/dist/vscode-split-layout/vscode-split-layout.d.ts.map +1 -1
  76. package/dist/vscode-split-layout/vscode-split-layout.js +2 -0
  77. package/dist/vscode-split-layout/vscode-split-layout.js.map +1 -1
  78. package/dist/vscode-tab-header/vscode-tab-header.d.ts.map +1 -1
  79. package/dist/vscode-tab-header/vscode-tab-header.js.map +1 -1
  80. package/dist/vscode-tab-panel/vscode-tab-panel.d.ts.map +1 -1
  81. package/dist/vscode-tab-panel/vscode-tab-panel.js.map +1 -1
  82. package/dist/vscode-table/vscode-table.d.ts +23 -7
  83. package/dist/vscode-table/vscode-table.d.ts.map +1 -1
  84. package/dist/vscode-table/vscode-table.js +57 -9
  85. package/dist/vscode-table/vscode-table.js.map +1 -1
  86. package/dist/vscode-table-body/vscode-table-body.d.ts.map +1 -1
  87. package/dist/vscode-table-body/vscode-table-body.js.map +1 -1
  88. package/dist/vscode-table-cell/vscode-table-cell.d.ts.map +1 -1
  89. package/dist/vscode-table-cell/vscode-table-cell.js.map +1 -1
  90. package/dist/vscode-table-header/vscode-table-header.d.ts.map +1 -1
  91. package/dist/vscode-table-header/vscode-table-header.js.map +1 -1
  92. package/dist/vscode-table-header-cell/vscode-table-header-cell.d.ts.map +1 -1
  93. package/dist/vscode-table-header-cell/vscode-table-header-cell.js.map +1 -1
  94. package/dist/vscode-table-row/vscode-table-row.d.ts.map +1 -1
  95. package/dist/vscode-table-row/vscode-table-row.js.map +1 -1
  96. package/dist/vscode-tabs/vscode-tabs.d.ts.map +1 -1
  97. package/dist/vscode-tabs/vscode-tabs.js.map +1 -1
  98. package/dist/vscode-textarea/vscode-textarea.d.ts.map +1 -1
  99. package/dist/vscode-textarea/vscode-textarea.js.map +1 -1
  100. package/dist/vscode-textfield/vscode-textfield.d.ts +14 -11
  101. package/dist/vscode-textfield/vscode-textfield.d.ts.map +1 -1
  102. package/dist/vscode-textfield/vscode-textfield.js +15 -12
  103. package/dist/vscode-textfield/vscode-textfield.js.map +1 -1
  104. package/dist/vscode-textfield/vscode-textfield.styles.d.ts.map +1 -1
  105. package/dist/vscode-textfield/vscode-textfield.styles.js +20 -18
  106. package/dist/vscode-textfield/vscode-textfield.styles.js.map +1 -1
  107. package/dist/vscode-tree/vscode-tree.d.ts.map +1 -1
  108. package/dist/vscode-tree/vscode-tree.js.map +1 -1
  109. package/package.json +5 -3
  110. package/vscode.css-custom-data.json +19 -3
  111. package/vscode.html-custom-data.json +24 -27
package/README.md CHANGED
@@ -1,42 +1,116 @@
1
- # VSCode Elements
1
+ # VSCode Elements
2
2
 
3
3
  For the end-user documentation, [click here](https://vscode-elements.github.io).
4
4
 
5
- ## Setup
5
+ This documentation is intended for developers who would like to contribute to or modify the code on their own.
6
6
 
7
- Install dependencies:
7
+ VSCode Elements is based on the [Lit](https://lit.dev/) library. The local development environment requires `NodeJS 22` or newer. If you want to use a local copy of the library in your codebase, you can use the `npm link` command. First, navigate to the VSCode Elements directory and run:
8
8
 
9
9
  ```bash
10
- npm ci
10
+ npm link
11
11
  ```
12
12
 
13
- ## The main NPM tasks
14
-
15
- ### Production build
13
+ Then, go to the library where you want to use it and run:
16
14
 
17
15
  ```bash
18
- npm run build
16
+ npm link @vscode-elements/elements
19
17
  ```
20
18
 
21
- ### Start development mode
19
+ > [!WARNING]
20
+ >
21
+ > Multiple packages must be linked with a single command. For example:
22
+ >
23
+ > ```bash
24
+ > npm link @vscode-elements/elements @vscode-elements/webview-playground
25
+ > ```
26
+
27
+ Don't forget to run the build script before using the package.
28
+
29
+ ## Setup
22
30
 
23
- Start TypeScript compiler in development mode and start the [@web-dev-server](https://modern-web.dev/docs/dev-server/overview/)
31
+ Install dependencies:
24
32
 
25
33
  ```bash
26
- npm run start
34
+ npm ci
27
35
  ```
28
36
 
29
- ### Testing
37
+ ## The scripts defined in `package.json`
30
38
 
31
- ```bash
32
- npm run build:watch
39
+ Each script can be run using the `npm run <script_name>` format. Wireit is used to cache the script
40
+ results.
33
41
 
34
- # in another terminal instance:
35
- npm run test:watch
36
- ```
42
+ ### build
37
43
 
38
- ### Run tests
44
+ Build everything. This command generates all the files that will be included in the package. These include:
39
45
 
40
- ```bash
41
- npm run test
42
- ```
46
+ - Transpiled JavaScript files with type definitions and source maps.
47
+ - The custom elements manifest file.
48
+ - VSCode custom data files.
49
+ - The entire library as a single, minified JavaScript file.
50
+
51
+ ### built:ts
52
+
53
+ Transpiles TypeScript files into standard ES6 JavaScript, without minification. These files can then be imported and optimized in the end-user application.
54
+
55
+ ### build:watch
56
+
57
+ Same as the above, but the TypeScript compiler run in watch mode and recompile the modified files
58
+ automatically.
59
+
60
+ ### clean
61
+
62
+ Removes the generated files.
63
+
64
+ ### lint
65
+
66
+ Code style check with [ESLint](https://eslint.org/).
67
+
68
+ ### lint:fix
69
+
70
+ Automatically fixing code style issues.
71
+
72
+ ### prettier
73
+
74
+ Checks code formatting with [Prettier](https://prettier.io/).
75
+
76
+ ### prettier:fix
77
+
78
+ Automatically fixing code format issues.
79
+
80
+ ### analyze
81
+
82
+ Generates a [custom elements manifest file](https://custom-elements-manifest.open-wc.org/). This file is shipped with the package, and it is the file on which the API view in the documentation site is based.
83
+
84
+ ### serve
85
+
86
+ Start the [Web Test Runner](https://modern-web.dev/docs/test-runner/overview/) development server.
87
+
88
+ ### start
89
+
90
+ Start the development server and the TypeScript compiler in watch mode, then opens the default
91
+ browser. This is the most used command during the development.
92
+
93
+ ### test
94
+
95
+ Compiles the test files and runs them. Because tests are written in TypeScript, a transpilation step
96
+ is also needed.
97
+
98
+ ### test:coverage
99
+
100
+ Same as above, but it also generates coverage.
101
+
102
+ ### test:watch
103
+
104
+ Watches the transpiled test files and runs them if any changes are detected. This script does not compile the test files; the `build:watch` script needs to be run in a separate terminal. However, it can also be run in parallel with the `start` script instead of build:watch.
105
+
106
+ ### checksize
107
+
108
+ Displays the file size of the bundled library (dist/bundled.js) in bytes.
109
+
110
+ ### icons
111
+
112
+ Generates icon list for the documentation site
113
+
114
+ ### vscode-data
115
+
116
+ Generates HTML and CSS [custom data format](https://code.visualstudio.com/blogs/2020/02/24/custom-data-format) for VSCode code completions.