@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.
@@ -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 = e.detail.value;
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"
@@ -1,4 +1,4 @@
1
- import { ECCClientElixirTrsToolCreate } from './chunk.FZDL764O.js';
1
+ import { ECCClientElixirTrsToolCreate } from './chunk.4N7ZYKCA.js';
2
2
  import * as React from 'react';
3
3
  import { createComponent } from '@lit/react';
4
4
 
@@ -1,4 +1,4 @@
1
- import { tool_create_default } from './chunk.FZDL764O.js';
1
+ import { tool_create_default } from './chunk.4N7ZYKCA.js';
2
2
 
3
3
  // src/components/tool-create/index.ts
4
4
  var tool_create_default2 = tool_create_default;
@@ -1,4 +1,4 @@
1
1
  import '../chunks/chunk.3WU6NPWM.js';
2
- import '../chunks/chunk.ZZTQWNKT.js';
3
- import '../chunks/chunk.FZDL764O.js';
2
+ import '../chunks/chunk.X4SIVSZN.js';
3
+ import '../chunks/chunk.4N7ZYKCA.js';
4
4
  import '../chunks/chunk.Q5GOJN3Z.js';
@@ -1,3 +1,3 @@
1
- export { tool_create_default as default } from '../../chunks/chunk.ZZTQWNKT.js';
2
- export { ECCClientElixirTrsToolCreate } from '../../chunks/chunk.FZDL764O.js';
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.FZDL764O.js';
1
+ export { ECCClientElixirTrsToolCreate, tool_create_default as default } from '../../chunks/chunk.4N7ZYKCA.js';
2
2
  import '../../chunks/chunk.Q5GOJN3Z.js';
@@ -817,7 +817,7 @@
817
817
  "package": {
818
818
  "name": "@elixir-cloud/trs-filer",
819
819
  "description": "Web Component for interacting with Elixir TRS Filer",
820
- "version": "2.0.0-alpha.2",
820
+ "version": "2.0.0-alpha.4",
821
821
  "license": "Apache-2.0"
822
822
  }
823
823
  }
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import './chunks/chunk.3WU6NPWM.js';
2
- import './chunks/chunk.ZZTQWNKT.js';
3
- import './chunks/chunk.FZDL764O.js';
2
+ import './chunks/chunk.X4SIVSZN.js';
3
+ import './chunks/chunk.4N7ZYKCA.js';
4
4
  import './chunks/chunk.Q5GOJN3Z.js';
@@ -1,3 +1,3 @@
1
- export { ecc_client_elixir_trs_tool_create_default as default } from '../../chunks/chunk.II7PIADM.js';
2
- import '../../chunks/chunk.FZDL764O.js';
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';
@@ -1,3 +1,3 @@
1
- export { ecc_client_elixir_trs_tool_create_default as ECCClientElixirTrsToolCreate } from '../chunks/chunk.II7PIADM.js';
2
- import '../chunks/chunk.FZDL764O.js';
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';
@@ -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.2",
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.2",
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.9",
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"