@elixir-cloud/trs-filer 2.0.0-alpha.2 → 2.0.0-alpha.4
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/chunks/{chunk.FZDL764O.js → chunk.4N7ZYKCA.js} +21 -2
- package/dist/chunks/{chunk.II7PIADM.js → chunk.JMC4ZIIA.js} +1 -1
- package/dist/chunks/{chunk.ZZTQWNKT.js → chunk.X4SIVSZN.js} +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/tool-create/index.js +2 -2
- package/dist/components/tool-create/tool-create.js +1 -1
- package/dist/custom-elements.json +1 -1
- package/dist/index.js +2 -2
- package/dist/react/ecc-client-elixir-trs-tool-create/index.js +2 -2
- package/dist/react/index.js +2 -2
- package/dist/web-types.json +1 -1
- package/package.json +2 -2
|
@@ -728,7 +728,7 @@ var ECCClientElixirTrsToolCreate = class extends LitElement {
|
|
|
728
728
|
if (basename === "dockerfile" || basename.includes("container") || extension === "def") {
|
|
729
729
|
return "CONTAINERFILE";
|
|
730
730
|
}
|
|
731
|
-
if (extension === "yml" || extension === "yaml" || extension === "json") {
|
|
731
|
+
if (basename.includes("workflow") || basename.includes("main") || extension === "cwl" || extension === "wdl" || extension === "nf" || extension === "yml" || extension === "yaml" || extension === "json") {
|
|
732
732
|
return "SECONDARY_DESCRIPTOR";
|
|
733
733
|
}
|
|
734
734
|
return "OTHER";
|
|
@@ -1221,7 +1221,26 @@ var ECCClientElixirTrsToolCreate = class extends LitElement {
|
|
|
1221
1221
|
placeholder="Select supported languages..."
|
|
1222
1222
|
@ecc-utils-change=${(e) => {
|
|
1223
1223
|
const updatedVersions = [...this.versions];
|
|
1224
|
-
updatedVersions[index].descriptorTypes
|
|
1224
|
+
const oldDescriptorTypes = updatedVersions[index].descriptorTypes;
|
|
1225
|
+
const newDescriptorTypes = e.detail.value;
|
|
1226
|
+
updatedVersions[index].descriptorTypes = newDescriptorTypes;
|
|
1227
|
+
const removedDescriptorTypes = oldDescriptorTypes.filter(
|
|
1228
|
+
(type) => !newDescriptorTypes.includes(type)
|
|
1229
|
+
);
|
|
1230
|
+
if (removedDescriptorTypes.length > 0) {
|
|
1231
|
+
updatedVersions[index].files = updatedVersions[index].files.filter(
|
|
1232
|
+
(file) => !removedDescriptorTypes.includes(file.descriptorType)
|
|
1233
|
+
);
|
|
1234
|
+
}
|
|
1235
|
+
const currentActiveDescriptor = this.activeDescriptorType[index];
|
|
1236
|
+
if (currentActiveDescriptor && removedDescriptorTypes.includes(currentActiveDescriptor)) {
|
|
1237
|
+
this.activeDescriptorType = __spreadProps(__spreadValues({}, this.activeDescriptorType), {
|
|
1238
|
+
[index]: newDescriptorTypes.length > 0 ? newDescriptorTypes[0] : void 0
|
|
1239
|
+
});
|
|
1240
|
+
this.activeFileIndex = __spreadProps(__spreadValues({}, this.activeFileIndex), {
|
|
1241
|
+
[index]: -1
|
|
1242
|
+
});
|
|
1243
|
+
}
|
|
1225
1244
|
this.versions = updatedVersions;
|
|
1226
1245
|
}}
|
|
1227
1246
|
class="mt-2"
|
package/dist/components/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { tool_create_default as default } from '../../chunks/chunk.
|
|
2
|
-
export { ECCClientElixirTrsToolCreate } from '../../chunks/chunk.
|
|
1
|
+
export { tool_create_default as default } from '../../chunks/chunk.X4SIVSZN.js';
|
|
2
|
+
export { ECCClientElixirTrsToolCreate } from '../../chunks/chunk.4N7ZYKCA.js';
|
|
3
3
|
import '../../chunks/chunk.Q5GOJN3Z.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ECCClientElixirTrsToolCreate, tool_create_default as default } from '../../chunks/chunk.
|
|
1
|
+
export { ECCClientElixirTrsToolCreate, tool_create_default as default } from '../../chunks/chunk.4N7ZYKCA.js';
|
|
2
2
|
import '../../chunks/chunk.Q5GOJN3Z.js';
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { ecc_client_elixir_trs_tool_create_default as default } from '../../chunks/chunk.
|
|
2
|
-
import '../../chunks/chunk.
|
|
1
|
+
export { ecc_client_elixir_trs_tool_create_default as default } from '../../chunks/chunk.JMC4ZIIA.js';
|
|
2
|
+
import '../../chunks/chunk.4N7ZYKCA.js';
|
|
3
3
|
import '../../chunks/chunk.Q5GOJN3Z.js';
|
package/dist/react/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { ecc_client_elixir_trs_tool_create_default as ECCClientElixirTrsToolCreate } from '../chunks/chunk.
|
|
2
|
-
import '../chunks/chunk.
|
|
1
|
+
export { ecc_client_elixir_trs_tool_create_default as ECCClientElixirTrsToolCreate } from '../chunks/chunk.JMC4ZIIA.js';
|
|
2
|
+
import '../chunks/chunk.4N7ZYKCA.js';
|
|
3
3
|
import '../chunks/chunk.Q5GOJN3Z.js';
|
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@elixir-cloud/trs-filer",
|
|
4
|
-
"version": "2.0.0-alpha.
|
|
4
|
+
"version": "2.0.0-alpha.4",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@elixir-cloud/trs-filer",
|
|
3
3
|
"description": "Web Component for interacting with Elixir TRS Filer",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
|
-
"version": "2.0.0-alpha.
|
|
5
|
+
"version": "2.0.0-alpha.4",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.js",
|
|
8
8
|
"module": "./dist/index.mjs",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@elixir-cloud/design": "2.0.0-alpha.6",
|
|
49
|
-
"@elixir-cloud/trs": "2.0.0-alpha.
|
|
49
|
+
"@elixir-cloud/trs": "2.0.0-alpha.11",
|
|
50
50
|
"@lit/react": "^1.0.2",
|
|
51
51
|
"@progress/jszip-esm": "^1.0.4",
|
|
52
52
|
"lit": "^2.8.0"
|