@platforma-open/milaboratories.repertoire-diversity-2.model 1.4.0 → 1.5.0

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.
@@ -1,6 +1,6 @@
1
1
   WARN  Issue while reading "/home/runner/work/repertoire-diversity/repertoire-diversity/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
2
2
 
3
- > @platforma-open/milaboratories.repertoire-diversity-2.model@1.4.0 build /home/runner/work/repertoire-diversity/repertoire-diversity/model
3
+ > @platforma-open/milaboratories.repertoire-diversity-2.model@1.5.0 build /home/runner/work/repertoire-diversity/repertoire-diversity/model
4
4
  > tsup && vite build && block-tools build-model
5
5
 
6
6
  CLI Building entry: src/index.ts
@@ -11,21 +11,21 @@
11
11
  CLI Cleaning output folder
12
12
  CJS Build start
13
13
  ESM Build start
14
- ESM dist/index.js 2.57 KB
15
- ESM dist/index.js.map 6.48 KB
16
- ESM ⚡️ Build success in 131ms
17
- CJS dist/index.cjs 2.55 KB
18
- CJS dist/index.cjs.map 6.57 KB
19
- CJS ⚡️ Build success in 131ms
14
+ CJS dist/index.cjs 2.82 KB
15
+ CJS dist/index.cjs.map 7.18 KB
16
+ CJS ⚡️ Build success in 161ms
17
+ ESM dist/index.js 2.81 KB
18
+ ESM dist/index.js.map 7.09 KB
19
+ ESM ⚡️ Build success in 162ms
20
20
  DTS Build start
21
- DTS ⚡️ Build success in 2421ms
22
- DTS dist/index.d.cts 2.66 KB
23
- DTS dist/index.d.ts 2.66 KB
21
+ DTS ⚡️ Build success in 2304ms
22
+ DTS dist/index.d.cts 2.83 KB
23
+ DTS dist/index.d.ts 2.83 KB
24
24
  vite v6.2.6 building for production...
25
25
  transforming...
26
- ✓ 11 modules transformed.
26
+ ✓ 12 modules transformed.
27
27
  rendering chunks...
28
28
  computing gzip size...
29
- dist/bundle.js 193.27 kB │ gzip: 37.79 kB │ map: 416.02 kB
30
- dist/bundle.js 206.54 kB │ gzip: 38.45 kB │ map: 417.63 kB
31
- ✓ built in 685ms
29
+ dist/bundle.js 193.45 kB │ gzip: 37.84 kB │ map: 416.60 kB
30
+ dist/bundle.js 206.78 kB │ gzip: 38.50 kB │ map: 418.20 kB
31
+ ✓ built in 823ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @platforma-open/milaboratories.repertoire-diversity-2.model
2
2
 
3
+ ## 1.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 365f92f: Use ui state for metric metadata
8
+
3
9
  ## 1.4.0
4
10
 
5
11
  ### Minor Changes
package/dist/bundle.js CHANGED
@@ -6317,7 +6317,24 @@
6317
6317
  ))
6318
6318
  return t.createPFrame(h);
6319
6319
  }
6320
+ const convertMetricsUiToArgs = (metrics) => {
6321
+ return metrics.map((metric) => {
6322
+ return {
6323
+ type: metric.type,
6324
+ downsampling: metric.downsampling
6325
+ };
6326
+ });
6327
+ };
6320
6328
  const model = Te.create().withArgs({
6329
+ metrics: []
6330
+ }).withUiState({
6331
+ blockTitle: "Repertoire Diversity",
6332
+ graphState: {
6333
+ title: "Repertoire Diversity",
6334
+ template: "bar",
6335
+ currentTab: null
6336
+ },
6337
+ tableState: Nt(),
6321
6338
  metrics: [
6322
6339
  {
6323
6340
  id: "observed",
@@ -6365,14 +6382,6 @@
6365
6382
  isExpanded: false
6366
6383
  }
6367
6384
  ]
6368
- }).withUiState({
6369
- blockTitle: "Repertoire Diversity",
6370
- graphState: {
6371
- title: "Repertoire Diversity",
6372
- template: "bar",
6373
- currentTab: null
6374
- },
6375
- tableState: Nt()
6376
6385
  }).argsValid((ctx) => ctx.args.abundanceRef !== void 0).output(
6377
6386
  "abundanceOptions",
6378
6387
  (ctx) => ctx.resultPool.getOptions([
@@ -6389,12 +6398,12 @@
6389
6398
  }
6390
6399
  ])
6391
6400
  ).output("pt", (ctx) => {
6392
- var _a, _b, _c;
6401
+ var _a, _b;
6393
6402
  const pCols = (_b = (_a = ctx.outputs) == null ? void 0 : _a.resolve("pf")) == null ? void 0 : _b.getPColumns();
6394
6403
  if (pCols === void 0) {
6395
6404
  return void 0;
6396
6405
  }
6397
- return Nn(ctx, pCols, (_c = ctx.uiState) == null ? void 0 : _c.tableState);
6406
+ return Nn(ctx, pCols, ctx.uiState.tableState);
6398
6407
  }).output("pf", (ctx) => {
6399
6408
  var _a, _b;
6400
6409
  const pCols = (_b = (_a = ctx.outputs) == null ? void 0 : _a.resolve("pf")) == null ? void 0 : _b.getPColumns();
@@ -6424,6 +6433,7 @@
6424
6433
  { type: "link", href: "/", label: "Main" },
6425
6434
  { type: "link", href: "/diversityGraph", label: "Diversity Graph" }
6426
6435
  ]).done();
6436
+ exports2.convertMetricsUiToArgs = convertMetricsUiToArgs;
6427
6437
  exports2.model = model;
6428
6438
  Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
6429
6439
  });