@genexus/mercury 0.3.3 → 0.3.5
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/dist/assets/MERCURY_ASSETS.d.ts +352 -0
- package/dist/assets/MERCURY_ASSETS.js +352 -0
- package/dist/assets/MERCURY_ASSETS.ts +352 -0
- package/dist/assets/icons/gx-test/dark/cutfo.svg +1 -0
- package/dist/assets/icons/gx-test/dark/explorer.svg +1 -0
- package/dist/assets/icons/gx-test/dark/image.svg +1 -0
- package/dist/assets/icons/gx-test/dark/plus.svg +1 -0
- package/dist/assets/icons/gx-test/dark/record-mock.svg +1 -0
- package/dist/assets/icons/gx-test/dark/result-error.svg +1 -0
- package/dist/assets/icons/gx-test/dark/result-exception.svg +1 -0
- package/dist/assets/icons/gx-test/dark/result-ok.svg +1 -0
- package/dist/assets/icons/gx-test/dark/result-skipped.svg +1 -0
- package/dist/assets/icons/gx-test/dark/result-warning.svg +1 -0
- package/dist/assets/icons/gx-test/dark/run-test-cancel.svg +1 -0
- package/dist/assets/icons/gx-test/dark/run-test-suite.svg +1 -0
- package/dist/assets/icons/gx-test/dark/run-tests.svg +1 -0
- package/dist/assets/icons/gx-test/dark/run-ui-test-sd.svg +1 -0
- package/dist/assets/icons/gx-test/dark/run-ui-test-web.svg +1 -0
- package/dist/assets/icons/gx-test/dark/run-unit-test.svg +1 -0
- package/dist/assets/icons/gx-test/dark/screenshot-viewer.svg +1 -0
- package/dist/assets/icons/gx-test/dark/test-folder-open.svg +1 -0
- package/dist/assets/icons/gx-test/dark/test-folder.svg +1 -0
- package/dist/assets/icons/gx-test/dark/test-results.svg +1 -0
- package/dist/assets/icons/gx-test/dark/test-suite.svg +1 -0
- package/dist/assets/icons/gx-test/dark/ui-test-sd.svg +1 -0
- package/dist/assets/icons/gx-test/dark/ui-test-web.svg +1 -0
- package/dist/assets/icons/gx-test/dark/unit-test-db.svg +1 -0
- package/dist/assets/icons/gx-test/dark/unit-test.svg +1 -0
- package/dist/assets/icons/gx-test/light/cutfo.svg +1 -0
- package/dist/assets/icons/gx-test/light/explorer.svg +1 -0
- package/dist/assets/icons/gx-test/light/image.svg +1 -0
- package/dist/assets/icons/gx-test/light/plus.svg +1 -0
- package/dist/assets/icons/gx-test/light/record-mock.svg +1 -0
- package/dist/assets/icons/gx-test/light/result-error.svg +1 -0
- package/dist/assets/icons/gx-test/light/result-exception.svg +1 -0
- package/dist/assets/icons/gx-test/light/result-ok.svg +1 -0
- package/dist/assets/icons/gx-test/light/result-skipped.svg +1 -0
- package/dist/assets/icons/gx-test/light/result-warning.svg +1 -0
- package/dist/assets/icons/gx-test/light/run-test-cancel.svg +1 -0
- package/dist/assets/icons/gx-test/light/run-test-suite.svg +1 -0
- package/dist/assets/icons/gx-test/light/run-tests.svg +1 -0
- package/dist/assets/icons/gx-test/light/run-ui-test-sd.svg +1 -0
- package/dist/assets/icons/gx-test/light/run-ui-test-web.svg +1 -0
- package/dist/assets/icons/gx-test/light/run-unit-test.svg +1 -0
- package/dist/assets/icons/gx-test/light/screenshot-viewer.svg +1 -0
- package/dist/assets/icons/gx-test/light/test-folder-open.svg +1 -0
- package/dist/assets/icons/gx-test/light/test-folder.svg +1 -0
- package/dist/assets/icons/gx-test/light/test-results.svg +1 -0
- package/dist/assets/icons/gx-test/light/test-suite.svg +1 -0
- package/dist/assets/icons/gx-test/light/ui-test-sd.svg +1 -0
- package/dist/assets/icons/gx-test/light/ui-test-web.svg +1 -0
- package/dist/assets/icons/gx-test/light/unit-test-db.svg +1 -0
- package/dist/assets/icons/gx-test/light/unit-test.svg +1 -0
- package/dist/assets-manager.d.ts +7 -1
- package/dist/assets-manager.js +19 -4
- package/dist/css/mercury.css +825 -10
- package/dist/css/mercury.css.map +1 -1
- package/dist/mercury.scss +1103 -12
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" data-scheme="multicolor" viewBox="0 0 16 16"><defs><g id="icon-def"><path fill="var(--05)" d="M15 11h-.73a2.8 2.8 0 0 0-.38-.92l.52-.51a.24.24 0 0 0 0-.33l-.58-.59a.25.25 0 0 0-.34 0l-.51.52a2.8 2.8 0 0 0-.98-.38v-.73a.23.23 0 0 0-.23-.23H11a.23.23 0 0 0-.24.23v.73a2.7 2.7 0 0 0-.91.38l-.52-.52a.24.24 0 0 0-.33 0l-.58.59a.24.24 0 0 0 0 .33l.51.51a3.3 3.3 0 0 0-.38.92h-.76a.23.23 0 0 0-.24.23v.83a.24.24 0 0 0 .24.23h.72c.077.322.205.63.38.91l-.51.52a.24.24 0 0 0 0 .33l.58.58a.22.22 0 0 0 .33 0l.52-.51c.28.177.587.306.91.38v.73a.23.23 0 0 0 .149.215.2.2 0 0 0 .091.015h.82a.23.23 0 0 0 .23-.23v-.73a3 3 0 0 0 .92-.38l.51.51a.23.23 0 0 0 .263.055.2.2 0 0 0 .077-.055l.58-.58a.24.24 0 0 0 0-.33l-.52-.52a2.6 2.6 0 0 0 .38-.91H15a.24.24 0 0 0 .24-.23v-.83A.23.23 0 0 0 15 11m-3.58 2.63a2 2 0 1 1 .73-.138 2 2 0 0 1-.78.138zm.65-2a.65.65 0 1 1-1.3 0 .65.65 0 0 1 1.3 0"/><path fill="var(--09)" d="M8.65 15.61a5.2 5.2 0 0 1-1.54.26 5 5 0 0 1-2.35-9.48v-3.9A1.2 1.2 0 0 1 5 .13h4.18a1.2 1.2 0 0 1 1.2 1.19 1.21 1.21 0 0 1-.93 1.17v3.9q.483.262.9.62a1.17 1.17 0 0 0-.59.75l-.15-.06a4 4 0 0 0-.86-.54L8.45 7V1.52h.73a.2.2 0 1 0 0-.39H5a.19.19 0 0 0-.19.19.19.19 0 0 0 .19.2h.73V7l-.3.13a4 4 0 0 0 1.65 7.71 4 4 0 0 0 .61-.06l.53.53c.122.127.268.23.43.3"/></g></defs><view id="enabled" viewBox="0 0 16 16"/><use href="#icon-def" style="--05:#39b54a;--09:#616164"/><view id="hover" viewBox="16 0 16 16"/><use x="16" href="#icon-def" style="--05:#79cc81;--09:#828385"/><view id="active" viewBox="32 0 16 16"/><use x="32" href="#icon-def" style="--05:#2fa640;--09:#3e3f42"/><view id="disabled" viewBox="48 0 16 16"/><use x="48" href="#icon-def" style="--05:#a4a5a6;--09:#a4a5a6"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" data-scheme="multicolor" viewBox="0 0 16 16"><defs><g id="icon-def"><path fill="var(--05)" d="M15.41 10.43V8.61a.91.91 0 0 0-.91-.91H12a.91.91 0 0 0-.91.91v6.11a.91.91 0 0 0 .91.91h2.5a.91.91 0 0 0 .91-.91zm-2.64 4.29H12v-.91h.82zm1.73 0h-.82v-.91h.82zm0-1.82H12v-2.47h2.5zm0-3.38H12v-.91h2.5z"/><path fill="var(--07)" d="M10 13.35v-.13H6A2.79 2.79 0 1 1 3.32 9.8c.322.002.64.063.94.18l1.88-3.56a3.34 3.34 0 1 1 5.22-2.76 3.3 3.3 0 0 1-1.17 2.51l.52 1a1.93 1.93 0 0 0-.61 1l-.75-1.45A3.3 3.3 0 0 1 7 6.84l-1.87 3.64a2.76 2.76 0 0 1 .94 1.74H10a2 2 0 0 1 .08-.33z"/></g></defs><view id="enabled" viewBox="0 0 16 16"/><use href="#icon-def" style="--05:#39b54a;--07:#f26522"/><view id="hover" viewBox="16 0 16 16"/><use x="16" href="#icon-def" style="--05:#79cc81;--07:#f59065"/><view id="active" viewBox="32 0 16 16"/><use x="32" href="#icon-def" style="--05:#2fa640;--07:#e75e1e"/><view id="disabled" viewBox="48 0 16 16"/><use x="48" href="#icon-def" style="--05:#a4a5a6;--07:#a4a5a6"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" data-scheme="multicolor" viewBox="0 0 16 16"><defs><path id="icon-def" fill="var(--07)" d="M12.65 9.84q-.289 0-.57.06l-1.95-3.69a3.3 3.3 0 0 0 .738-4.153A3.34 3.34 0 1 0 6.08 6.46L4.21 10a2.7 2.7 0 0 0-.94-.18A2.79 2.79 0 1 0 6 13.26h4a2.79 2.79 0 1 0 2.71-3.42zM7 6.88A3.5 3.5 0 0 0 8 7a3.3 3.3 0 0 0 1.33-.28l1.86 3.53a2.77 2.77 0 0 0-1.25 2H6a2.82 2.82 0 0 0-.95-1.74z"/></defs><view id="enabled" viewBox="0 0 16 16"/><use href="#icon-def" style="--07:#f26522"/><view id="hover" viewBox="16 0 16 16"/><use x="16" href="#icon-def" style="--07:#f59065"/><view id="active" viewBox="32 0 16 16"/><use x="32" href="#icon-def" style="--07:#e75e1e"/><view id="disabled" viewBox="48 0 16 16"/><use x="48" href="#icon-def" style="--07:#a4a5a6"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" data-scheme="multicolor" viewBox="0 0 16 16"><defs><g id="icon-def"><path fill="var(--09)" fill-rule="evenodd" d="M15.15 7.24H9.48a.85.85 0 0 0-.85.86V15a.85.85 0 0 0 .85.85h5.67A.86.86 0 0 0 16 15V8.1a.86.86 0 0 0-.85-.86m-.14 1v1.51H9.63V8.24zm0 2.51v1.56H9.63v-1.56zm-5.38 4.11v-1.55H15v1.55zm1.15-5.61h-.54v-.53h.54zm0 2.57h-.54v-.53h.54zm0 2.54h-.54v-.53h.54z" clip-rule="evenodd"/><path fill="var(--05)" d="M7.63 13h-2a2.79 2.79 0 1 1-2.75-3.39c.322.004.64.065.94.18l1.87-3.56a3.34 3.34 0 1 1 4.915-1.365A3.3 3.3 0 0 1 9.74 6l.34.64h-.6A1.6 1.6 0 0 0 9 6.7l-.1-.17a3.32 3.32 0 0 1-2.3.12l-1.92 3.64a2.8 2.8 0 0 1 1 1.74h2z"/></g></defs><view id="enabled" viewBox="0 0 16 16"/><use href="#icon-def" style="--09:#616164;--05:#39b54a"/><view id="hover" viewBox="16 0 16 16"/><use x="16" href="#icon-def" style="--09:#828385;--05:#79cc81"/><view id="active" viewBox="32 0 16 16"/><use x="32" href="#icon-def" style="--09:#3e3f42;--05:#2fa640"/><view id="disabled" viewBox="48 0 16 16"/><use x="48" href="#icon-def" style="--09:#a4a5a6;--05:#a4a5a6"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" data-scheme="multicolor" viewBox="0 0 16 16"><defs><path id="icon-def" fill="var(--09)" d="M12.75 10q-.294 0-.58.06l-1.94-3.74a3.33 3.33 0 1 0-4.05.24l-1.87 3.56a2.7 2.7 0 0 0-.95-.12 2.79 2.79 0 1 0 2.71 3.41h4A2.79 2.79 0 1 0 12.75 10M7.09 7c.324.102.66.156 1 .16a3.3 3.3 0 0 0 1.33-.28l1.86 3.53a2.79 2.79 0 0 0-1.25 2H6.12a2.82 2.82 0 0 0-1-1.74z"/></defs><view id="enabled" viewBox="0 0 16 16"/><use href="#icon-def" style="--09:#616164"/><view id="hover" viewBox="16 0 16 16"/><use x="16" href="#icon-def" style="--09:#828385"/><view id="active" viewBox="32 0 16 16"/><use x="32" href="#icon-def" style="--09:#3e3f42"/><view id="disabled" viewBox="48 0 16 16"/><use x="48" href="#icon-def" style="--09:#a4a5a6"/></svg>
|
package/dist/assets-manager.d.ts
CHANGED
|
@@ -74,11 +74,17 @@ export declare const getAsset: (vendorAliasOrName: string, assetMetadata: Assets
|
|
|
74
74
|
* Given the metadata of the icon, it transforms the metadata into a string
|
|
75
75
|
* that contains the given information.
|
|
76
76
|
*/
|
|
77
|
-
export declare const
|
|
77
|
+
export declare const getIconPath: (iconMetadata: AssetsMetadata, vendorAlias?: string) => `${string}/${string}/${string}${string}`;
|
|
78
|
+
/**
|
|
79
|
+
* Given the metadata of the icon and the metadata of its expanded version, it
|
|
80
|
+
* transforms both metadata into a string that contains the given information.
|
|
81
|
+
*/
|
|
82
|
+
export declare const getIconPathExpanded: (iconMetadata: AssetsMetadata, iconMetadataExpanded: AssetsMetadata, vendorAlias?: string) => `${string}/${string}/${string}${string}:${string}/${string}/${string}${string}`;
|
|
78
83
|
export declare const getImagePathCallback: (iconPath: string) => ImageMultiState | undefined;
|
|
79
84
|
export declare const getTreeViewImagePathCallback: (item: {
|
|
80
85
|
startImgSrc?: string;
|
|
81
86
|
endImgSrc?: string;
|
|
82
87
|
}, direction: "start" | "end") => {
|
|
83
88
|
default: ImageMultiState;
|
|
89
|
+
expanded?: ImageMultiState;
|
|
84
90
|
} | undefined;
|
package/dist/assets-manager.js
CHANGED
|
@@ -2,6 +2,7 @@ import { MERCURY_ASSETS } from "./assets/MERCURY_ASSETS";
|
|
|
2
2
|
const ASSETS_BY_VENDOR = {};
|
|
3
3
|
const ALIAS_TO_VENDOR_NAME = {};
|
|
4
4
|
const SEPARATOR = "/";
|
|
5
|
+
const EXPANDED_SEPARATOR = ":";
|
|
5
6
|
const MERCURY_ALIAS = "mer";
|
|
6
7
|
/**
|
|
7
8
|
* Given a vendor and its assets, it register the assets of the vendor. After
|
|
@@ -48,12 +49,17 @@ export const getAsset = (vendorAliasOrName, assetMetadata) => {
|
|
|
48
49
|
* Given the metadata of the icon, it transforms the metadata into a string
|
|
49
50
|
* that contains the given information.
|
|
50
51
|
*/
|
|
51
|
-
export const
|
|
52
|
+
export const getIconPath = (iconMetadata, vendorAlias = MERCURY_ALIAS) => {
|
|
52
53
|
const additionalInfo = iconMetadata.colorType
|
|
53
54
|
? `${SEPARATOR}${iconMetadata.colorType}`
|
|
54
55
|
: "";
|
|
55
56
|
return `${vendorAlias}${SEPARATOR}${iconMetadata.category}${SEPARATOR}${iconMetadata.name}${additionalInfo}`;
|
|
56
57
|
};
|
|
58
|
+
/**
|
|
59
|
+
* Given the metadata of the icon and the metadata of its expanded version, it
|
|
60
|
+
* transforms both metadata into a string that contains the given information.
|
|
61
|
+
*/
|
|
62
|
+
export const getIconPathExpanded = (iconMetadata, iconMetadataExpanded, vendorAlias = MERCURY_ALIAS) => `${getIconPath(iconMetadata, vendorAlias)}${EXPANDED_SEPARATOR}${getIconPath(iconMetadataExpanded, vendorAlias)}`;
|
|
57
63
|
const getCustomFullValue = (iconName, vendorAliasOrName, suffix) => {
|
|
58
64
|
const vendorPrefix = vendorAliasOrName === MERCURY_ALIAS ? "" : `${vendorAliasOrName}-`;
|
|
59
65
|
return suffix
|
|
@@ -116,11 +122,20 @@ export const getTreeViewImagePathCallback = (item, direction) => {
|
|
|
116
122
|
(!item.endImgSrc && direction === "end")) {
|
|
117
123
|
return undefined;
|
|
118
124
|
}
|
|
119
|
-
const
|
|
120
|
-
|
|
125
|
+
const imgSrc = direction === "start" ? item.startImgSrc : item.endImgSrc;
|
|
126
|
+
// Split the path into the collapsed (default) and expanded
|
|
127
|
+
const collapsedAndExpandedSrc = imgSrc.split(EXPANDED_SEPARATOR);
|
|
128
|
+
const defaultPath = getImagePathCallback(collapsedAndExpandedSrc[0]);
|
|
129
|
+
if (!defaultPath) {
|
|
121
130
|
return undefined;
|
|
122
131
|
}
|
|
123
|
-
|
|
132
|
+
// If the icon has expanded state, process the expanded state
|
|
133
|
+
return collapsedAndExpandedSrc[1]
|
|
134
|
+
? {
|
|
135
|
+
default: defaultPath,
|
|
136
|
+
expanded: getImagePathCallback(collapsedAndExpandedSrc[1])
|
|
137
|
+
}
|
|
138
|
+
: { default: defaultPath };
|
|
124
139
|
};
|
|
125
140
|
// Initialize Mercury at the start
|
|
126
141
|
registerAssets("Mercury", MERCURY_ALIAS, MERCURY_ASSETS);
|