@vscode-elements/elements 1.15.0 → 1.16.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.
- package/README.md +5 -1
- package/custom-elements.json +151 -4
- package/dist/bundled.js +233 -155
- package/dist/includes/VscElement.js +1 -1
- package/dist/includes/VscElement.js.map +1 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +1 -0
- package/dist/main.js.map +1 -1
- package/dist/vscode-button/vscode-button.d.ts +1 -0
- package/dist/vscode-button/vscode-button.d.ts.map +1 -1
- package/dist/vscode-button/vscode-button.js +6 -0
- package/dist/vscode-button/vscode-button.js.map +1 -1
- package/dist/vscode-button/vscode-button.styles.d.ts.map +1 -1
- package/dist/vscode-button/vscode-button.styles.js +58 -6
- package/dist/vscode-button/vscode-button.styles.js.map +1 -1
- package/dist/vscode-button-group/index.d.ts +2 -0
- package/dist/vscode-button-group/index.d.ts.map +1 -0
- package/dist/vscode-button-group/index.js +2 -0
- package/dist/vscode-button-group/index.js.map +1 -0
- package/dist/vscode-button-group/vscode-button-group.d.ts +29 -0
- package/dist/vscode-button-group/vscode-button-group.d.ts.map +1 -0
- package/dist/vscode-button-group/vscode-button-group.js +38 -0
- package/dist/vscode-button-group/vscode-button-group.js.map +1 -0
- package/dist/vscode-button-group/vscode-button-group.styles.d.ts +4 -0
- package/dist/vscode-button-group/vscode-button-group.styles.d.ts.map +1 -0
- package/dist/vscode-button-group/vscode-button-group.styles.js +33 -0
- package/dist/vscode-button-group/vscode-button-group.styles.js.map +1 -0
- package/dist/vscode-context-menu/vscode-context-menu.d.ts +1 -1
- package/dist/vscode-context-menu/vscode-context-menu.d.ts.map +1 -1
- package/dist/vscode-context-menu/vscode-context-menu.js.map +1 -1
- package/dist/vscode-split-layout/vscode-split-layout.d.ts +3 -1
- package/dist/vscode-split-layout/vscode-split-layout.d.ts.map +1 -1
- package/dist/vscode-split-layout/vscode-split-layout.js +3 -1
- package/dist/vscode-split-layout/vscode-split-layout.js.map +1 -1
- package/dist/vscode-split-layout/vscode-split-layout.styles.js +3 -3
- package/dist/vscode-split-layout/vscode-split-layout.styles.js.map +1 -1
- package/package.json +3 -3
- package/vscode.css-custom-data.json +18 -1
- package/vscode.html-custom-data.json +8 -1
package/README.md
CHANGED
|
@@ -101,7 +101,11 @@ Same as above, but it also generates coverage.
|
|
|
101
101
|
|
|
102
102
|
### test:watch
|
|
103
103
|
|
|
104
|
-
Watches
|
|
104
|
+
Watches file changes and runs the tests automatically when any modifications are detected.
|
|
105
|
+
|
|
106
|
+
### wtr:watch
|
|
107
|
+
|
|
108
|
+
Starts the web-test-runner in watch mode without rebuilding any files. It can be run in a separate terminal during development, allowing you to catch new errors as you code.
|
|
105
109
|
|
|
106
110
|
### checksize
|
|
107
111
|
|
package/custom-elements.json
CHANGED
|
@@ -451,7 +451,7 @@
|
|
|
451
451
|
"type": {
|
|
452
452
|
"text": "CSSResultGroup"
|
|
453
453
|
},
|
|
454
|
-
"default": "[ defaultStyles, css` :host { background-color: var(--vscode-button-background, #0078d4); border-color: var(--vscode-button-border, transparent); border-style: solid; border-radius: 2px; border-width: 1px; color: var(--vscode-button-foreground, #ffffff); cursor: pointer; display: inline-
|
|
454
|
+
"default": "[ defaultStyles, css` :host { background-color: var(--vscode-button-background, #0078d4); border-color: var(--vscode-button-border, transparent); border-style: solid; border-radius: 2px; border-width: 1px; color: var(--vscode-button-foreground, #ffffff); cursor: pointer; display: inline-flex; font-family: var(--vscode-font-family, ${defaultFontStack}); font-size: var(--vscode-font-size, 13px); font-weight: var(--vscode-font-weight, normal); line-height: 22px; overflow: hidden; padding: 0; user-select: none; white-space: nowrap; } :host([secondary]) { color: var(--vscode-button-secondaryForeground, #cccccc); background-color: var(--vscode-button-secondaryBackground, #313131); border-color: var( --vscode-button-border, var(--vscode-button-secondaryBackground, rgba(255, 255, 255, 0.07)) ); } :host([disabled]) { cursor: default; opacity: 0.4; pointer-events: none; } :host(:hover) { background-color: var(--vscode-button-hoverBackground, #026ec1); } :host([disabled]:hover) { background-color: var(--vscode-button-background, #0078d4); } :host([secondary]:hover) { background-color: var(--vscode-button-secondaryHoverBackground, #3c3c3c); } :host([secondary][disabled]:hover) { background-color: var(--vscode-button-secondaryBackground, #313131); } :host(:focus), :host(:active) { outline: none; } :host(:focus) { background-color: var(--vscode-button-hoverBackground, #026ec1); outline: 1px solid var(--vscode-focusBorder, #0078d4); outline-offset: 2px; } :host([disabled]:focus) { background-color: var(--vscode-button-background, #0078d4); outline: 0; } :host([secondary]:focus) { background-color: var(--vscode-button-secondaryHoverBackground, #3c3c3c); } :host([secondary][disabled]:focus) { background-color: var(--vscode-button-secondaryBackground, #313131); } ::slotted(*) { display: inline-block; margin-left: 4px; margin-right: 4px; } ::slotted(*:first-child) { margin-left: 0; } ::slotted(*:last-child) { margin-right: 0; } ::slotted(vscode-icon) { color: inherit; } .wrapper { align-items: center; box-sizing: border-box; display: flex; justify-content: center; position: relative; width: 100%; height: 100%; padding: 1px 13px; } :host(:empty) .wrapper, :host([icon-only]) .wrapper { min-height: 24px; min-width: 16px; padding: 1px 5px; } slot { align-items: center; display: flex; height: 100%; } .icon, .icon-after { color: inherit; display: block; } :host(:not(:empty)) .icon { margin-right: 3px; } :host(:not(:empty)) .icon-after, :host([icon]) .icon-after { margin-left: 3px; } .divider { display: var(--divider-display, none); background-color: transparent; padding: 4px 0; box-sizing: border-box; } :host(:hover) .divider, :host(:focus) .divider { background-color: var(--vscode-button-hoverBackground, #026ec1); } :host([secondary]) .divider { background-color: var(--vscode-button-secondaryBackground, #313131); } :host([secondary]:hover) .divider, :host([secondary]:focus) .divider { background-color: var(--vscode-button-secondaryHoverBackground, #3c3c3c); } .divider > div { background-color: var( --vscode-button-separator, rgba(255, 255, 255, 0.4) ); height: 100%; width: 1px; margin: 0; } :host([secondary]) .divider > div { background-color: var(--vscode-button-secondaryForeground, #cccccc); opacity: 0.4; } `, ]"
|
|
455
455
|
}
|
|
456
456
|
],
|
|
457
457
|
"exports": [
|
|
@@ -634,6 +634,16 @@
|
|
|
634
634
|
"attribute": "name",
|
|
635
635
|
"reflects": true
|
|
636
636
|
},
|
|
637
|
+
{
|
|
638
|
+
"kind": "field",
|
|
639
|
+
"name": "iconOnly",
|
|
640
|
+
"type": {
|
|
641
|
+
"text": "boolean"
|
|
642
|
+
},
|
|
643
|
+
"default": "false",
|
|
644
|
+
"attribute": "icon-only",
|
|
645
|
+
"reflects": true
|
|
646
|
+
},
|
|
637
647
|
{
|
|
638
648
|
"kind": "field",
|
|
639
649
|
"name": "type",
|
|
@@ -837,6 +847,14 @@
|
|
|
837
847
|
"default": "undefined",
|
|
838
848
|
"fieldName": "name"
|
|
839
849
|
},
|
|
850
|
+
{
|
|
851
|
+
"name": "icon-only",
|
|
852
|
+
"type": {
|
|
853
|
+
"text": "boolean"
|
|
854
|
+
},
|
|
855
|
+
"default": "false",
|
|
856
|
+
"fieldName": "iconOnly"
|
|
857
|
+
},
|
|
840
858
|
{
|
|
841
859
|
"name": "type",
|
|
842
860
|
"type": {
|
|
@@ -881,6 +899,127 @@
|
|
|
881
899
|
}
|
|
882
900
|
]
|
|
883
901
|
},
|
|
902
|
+
{
|
|
903
|
+
"kind": "javascript-module",
|
|
904
|
+
"path": "src/vscode-button-group/vscode-button-group.styles.ts",
|
|
905
|
+
"declarations": [
|
|
906
|
+
{
|
|
907
|
+
"kind": "variable",
|
|
908
|
+
"name": "styles",
|
|
909
|
+
"type": {
|
|
910
|
+
"text": "CSSResultGroup"
|
|
911
|
+
},
|
|
912
|
+
"default": "[ defaultStyles, css` :host { display: inline-flex; align-items: stretch; padding: 0; border: none; } ::slotted(vscode-button:not(:first-child)) { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left-width: 0; } ::slotted(vscode-button:not(:last-child)) { --divider-display: block; border-top-right-radius: 0; border-bottom-right-radius: 0; border-right-width: 0; } ::slotted(vscode-button:focus) { z-index: 1; } `, ]"
|
|
913
|
+
}
|
|
914
|
+
],
|
|
915
|
+
"exports": [
|
|
916
|
+
{
|
|
917
|
+
"kind": "js",
|
|
918
|
+
"name": "default",
|
|
919
|
+
"declaration": {
|
|
920
|
+
"name": "styles",
|
|
921
|
+
"module": "src/vscode-button-group/vscode-button-group.styles.ts"
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
]
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
"kind": "javascript-module",
|
|
928
|
+
"path": "src/vscode-button-group/vscode-button-group.ts",
|
|
929
|
+
"declarations": [
|
|
930
|
+
{
|
|
931
|
+
"kind": "class",
|
|
932
|
+
"description": "Shows a split button, including several components in a single button. Commonly used to show a button with a dropdown to the right.",
|
|
933
|
+
"name": "VscodeButtonGroup",
|
|
934
|
+
"cssProperties": [
|
|
935
|
+
{
|
|
936
|
+
"name": "--vscode-button-background",
|
|
937
|
+
"default": "#0078d4"
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
"name": "--vscode-button-foreground",
|
|
941
|
+
"default": "#ffffff"
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
"name": "--vscode-button-border",
|
|
945
|
+
"default": "var(--vscode-button-background, rgba(255, 255, 255, 0.07))"
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
"name": "--vscode-button-hoverBackground",
|
|
949
|
+
"default": "#026ec1"
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
"description": "A sans-serif font type depends on the host OS.",
|
|
953
|
+
"name": "--vscode-font-family",
|
|
954
|
+
"default": "sans-serif"
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
"name": "--vscode-font-size",
|
|
958
|
+
"default": "13px"
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
"name": "--vscode-font-weight",
|
|
962
|
+
"default": "normal"
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
"name": "--vscode-button-secondaryForeground",
|
|
966
|
+
"default": "#cccccc"
|
|
967
|
+
},
|
|
968
|
+
{
|
|
969
|
+
"name": "--vscode-button-secondaryBackground",
|
|
970
|
+
"default": "#313131"
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
"name": "--vscode-button-secondaryHoverBackground",
|
|
974
|
+
"default": "#3c3c3c"
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
"name": "--vscode-focusBorder",
|
|
978
|
+
"default": "#0078d4"
|
|
979
|
+
}
|
|
980
|
+
],
|
|
981
|
+
"members": [
|
|
982
|
+
{
|
|
983
|
+
"kind": "field",
|
|
984
|
+
"name": "version",
|
|
985
|
+
"type": {
|
|
986
|
+
"text": "string"
|
|
987
|
+
},
|
|
988
|
+
"description": "VSCode Elements version",
|
|
989
|
+
"readonly": true,
|
|
990
|
+
"inheritedFrom": {
|
|
991
|
+
"name": "VscElement",
|
|
992
|
+
"module": "src/includes/VscElement.ts"
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
],
|
|
996
|
+
"superclass": {
|
|
997
|
+
"name": "VscElement",
|
|
998
|
+
"module": "/src/includes/VscElement.js"
|
|
999
|
+
},
|
|
1000
|
+
"tagName": "vscode-button-group",
|
|
1001
|
+
"customElement": true
|
|
1002
|
+
}
|
|
1003
|
+
],
|
|
1004
|
+
"exports": [
|
|
1005
|
+
{
|
|
1006
|
+
"kind": "js",
|
|
1007
|
+
"name": "VscodeButtonGroup",
|
|
1008
|
+
"declaration": {
|
|
1009
|
+
"name": "VscodeButtonGroup",
|
|
1010
|
+
"module": "src/vscode-button-group/vscode-button-group.ts"
|
|
1011
|
+
}
|
|
1012
|
+
},
|
|
1013
|
+
{
|
|
1014
|
+
"kind": "custom-element-definition",
|
|
1015
|
+
"name": "vscode-button-group",
|
|
1016
|
+
"declaration": {
|
|
1017
|
+
"name": "VscodeButtonGroup",
|
|
1018
|
+
"module": "src/vscode-button-group/vscode-button-group.ts"
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
]
|
|
1022
|
+
},
|
|
884
1023
|
{
|
|
885
1024
|
"kind": "javascript-module",
|
|
886
1025
|
"path": "src/vscode-checkbox/vscode-checkbox.styles.ts",
|
|
@@ -7472,7 +7611,7 @@
|
|
|
7472
7611
|
"type": {
|
|
7473
7612
|
"text": "CSSResultGroup"
|
|
7474
7613
|
},
|
|
7475
|
-
"default": "[ defaultStyles, css` :host { --separator-border: var(--vscode-editorWidget-border,
|
|
7614
|
+
"default": "[ defaultStyles, css` :host { --separator-border: var(--vscode-editorWidget-border, #454545); border: 1px solid var(--vscode-editorWidget-border, #454545); display: block; overflow: hidden; position: relative; } ::slotted(*) { height: 100%; width: 100%; } ::slotted(vscode-split-layout) { border: 0; } .wrapper { display: flex; height: 100%; width: 100%; } .wrapper.horizontal { flex-direction: column; } .start { box-sizing: border-box; flex: 1; min-height: 0; min-width: 0; } :host([split='vertical']) .start { border-right: 1px solid var(--separator-border); } :host([split='horizontal']) .start { border-bottom: 1px solid var(--separator-border); } .end { flex: 1; min-height: 0; min-width: 0; } :host([split='vertical']) .start, :host([split='vertical']) .end { height: 100%; } :host([split='horizontal']) .start, :host([split='horizontal']) .end { width: 100%; } .handle-overlay { display: none; height: 100%; left: 0; position: absolute; top: 0; width: 100%; z-index: 1; } .handle-overlay.active { display: block; } .handle-overlay.split-vertical { cursor: ew-resize; } .handle-overlay.split-horizontal { cursor: ns-resize; } .handle { background-color: transparent; position: absolute; z-index: 2; } .handle.hover { transition: background-color 0.1s ease-out 0.3s; background-color: var(--vscode-sash-hoverBorder, #0078d4); } .handle.hide { background-color: transparent; transition: background-color 0.1s ease-out; } .handle.split-vertical { cursor: ew-resize; height: 100%; } .handle.split-horizontal { cursor: ns-resize; width: 100%; } `, ]"
|
|
7476
7615
|
}
|
|
7477
7616
|
],
|
|
7478
7617
|
"exports": [
|
|
@@ -7549,8 +7688,16 @@
|
|
|
7549
7688
|
"name": "VscodeSplitLayout",
|
|
7550
7689
|
"cssProperties": [
|
|
7551
7690
|
{
|
|
7552
|
-
"name": "--
|
|
7553
|
-
"default": "
|
|
7691
|
+
"name": "--separator-border",
|
|
7692
|
+
"default": "#454545"
|
|
7693
|
+
},
|
|
7694
|
+
{
|
|
7695
|
+
"name": "--vscode-editorWidget-border",
|
|
7696
|
+
"default": "#454545"
|
|
7697
|
+
},
|
|
7698
|
+
{
|
|
7699
|
+
"name": "--vscode-sash-hoverBorder",
|
|
7700
|
+
"default": "#0078d4"
|
|
7554
7701
|
}
|
|
7555
7702
|
],
|
|
7556
7703
|
"members": [
|