@platforma-open/milaboratories.vj-usage.model 2.1.1 → 2.1.2

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/vj-gene-usage/vj-gene-usage/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
2
2
 
3
- > @platforma-open/milaboratories.vj-usage.model@2.1.1 build /home/runner/work/vj-gene-usage/vj-gene-usage/model
3
+ > @platforma-open/milaboratories.vj-usage.model@2.1.2 build /home/runner/work/vj-gene-usage/vj-gene-usage/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.18 KB
15
- ESM dist/index.js.map 5.01 KB
16
- ESM ⚡️ Build success in 113ms
17
14
  CJS dist/index.cjs 2.19 KB
18
- CJS dist/index.cjs.map 5.05 KB
19
- CJS ⚡️ Build success in 113ms
15
+ CJS dist/index.cjs.map 5.06 KB
16
+ CJS ⚡️ Build success in 127ms
17
+ ESM dist/index.js 2.18 KB
18
+ ESM dist/index.js.map 5.02 KB
19
+ ESM ⚡️ Build success in 127ms
20
20
  DTS Build start
21
- DTS ⚡️ Build success in 2218ms
21
+ DTS ⚡️ Build success in 2368ms
22
22
  DTS dist/index.d.cts 1.92 KB
23
23
  DTS dist/index.d.ts 1.92 KB
24
24
  vite v6.2.6 building for production...
25
25
  transforming...
26
- ✓ 68 modules transformed.
26
+ ✓ 69 modules transformed.
27
27
  rendering chunks...
28
28
  computing gzip size...
29
- dist/bundle.js 228.45 kB │ gzip: 43.39 kB │ map: 499.68 kB
30
- dist/bundle.js 242.94 kB │ gzip: 44.08 kB │ map: 501.34 kB
31
- ✓ built in 789ms
29
+ dist/bundle.js 229.07 kB │ gzip: 43.40 kB │ map: 501.24 kB
30
+ dist/bundle.js 243.54 kB │ gzip: 44.11 kB │ map: 502.89 kB
31
+ ✓ built in 939ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @platforma-open/milaboratories.vj-usage.model
2
2
 
3
+ ## 2.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 8498650: Full SDK and python update
8
+
3
9
  ## 2.1.1
4
10
 
5
11
  ### Patch Changes
package/dist/bundle.js CHANGED
@@ -3966,9 +3966,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3966
3966
  });
3967
3967
  z.object({
3968
3968
  /** Included left border. */
3969
- from: z.number(),
3969
+ from: z.number().min(0),
3970
3970
  /** Excluded right border. */
3971
- to: z.number()
3971
+ to: z.number().min(1)
3972
3972
  });
3973
3973
  function assertNever(x) {
3974
3974
  throw new Error("Unexpected object: " + x);
@@ -4229,14 +4229,6 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4229
4229
  function parseJson(value) {
4230
4230
  return JSON.parse(value);
4231
4231
  }
4232
- const ValueType = {
4233
- Int: "Int",
4234
- Long: "Long",
4235
- Float: "Float",
4236
- Double: "Double",
4237
- String: "String",
4238
- Bytes: "Bytes"
4239
- };
4240
4232
  function readMetadata(metadata, key) {
4241
4233
  return metadata == null ? void 0 : metadata[key];
4242
4234
  }
@@ -4265,6 +4257,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4265
4257
  IsVirtual: "pl7.app/graph/isVirtual"
4266
4258
  },
4267
4259
  HideDataFromUi: "pl7.app/hideDataFromUi",
4260
+ HideDataFromGraphs: "pl7.app/hideDataFromGraphs",
4268
4261
  IsLinkerColumn: "pl7.app/isLinkerColumn",
4269
4262
  Label: "pl7.app/label",
4270
4263
  Max: "pl7.app/max",
@@ -4281,21 +4274,15 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4281
4274
  },
4282
4275
  Trace: "pl7.app/trace"
4283
4276
  };
4284
- const AxisSpec = z.object({
4285
- type: z.nativeEnum(ValueType),
4286
- name: z.string(),
4287
- domain: z.record(z.string(), z.string()).optional(),
4288
- annotations: z.record(z.string(), z.string()).optional(),
4289
- parentAxes: z.array(z.number()).optional()
4290
- }).passthrough();
4291
4277
  const AnnotationJson = {
4292
4278
  [Annotation.DiscreteValues]: z.array(z.string()).or(z.array(z.number())),
4293
4279
  [Annotation.Graph.IsVirtual]: z.boolean(),
4294
4280
  [Annotation.HideDataFromUi]: z.boolean(),
4281
+ [Annotation.HideDataFromGraphs]: z.boolean(),
4295
4282
  [Annotation.IsLinkerColumn]: z.boolean(),
4296
4283
  [Annotation.Max]: z.number(),
4297
4284
  [Annotation.Min]: z.number(),
4298
- [Annotation.Parents]: z.array(AxisSpec),
4285
+ [Annotation.Parents]: z.array(z.string()),
4299
4286
  [Annotation.Sequence.Annotation.Mapping]: z.record(z.string(), z.string()),
4300
4287
  [Annotation.Sequence.IsAnnotation]: z.boolean(),
4301
4288
  [Annotation.Table.OrderPriority]: z.number(),
@@ -4415,7 +4402,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4415
4402
  if (axis.parentAxes) {
4416
4403
  modifiedAxis.parentAxesSpec = axis.parentAxes.map((idx2) => modifiedAxes[idx2]);
4417
4404
  } else {
4418
- modifiedAxis.parentAxesSpec = getNormalizedAxesList(parseParentsFromAnnotations(axis));
4405
+ const parents = parseParentsFromAnnotations(axis).map((name) => modifiedAxes.find((axis2) => axis2.name === name));
4406
+ modifiedAxis.parentAxesSpec = parents.some((p) => p === void 0) ? [] : parents;
4419
4407
  (_a = modifiedAxis.annotations) == null ? true : delete _a[Annotation.Parents];
4420
4408
  }
4421
4409
  });
@@ -4484,6 +4472,13 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4484
4472
  newId: entry.newId,
4485
4473
  axisFilters: entry.axisFilters
4486
4474
  };
4475
+ case "artificialColumn":
4476
+ return {
4477
+ type: "artificialColumn",
4478
+ column: cb(entry.column),
4479
+ newId: entry.newId,
4480
+ axesIndices: entry.axesIndices
4481
+ };
4487
4482
  case "inlineColumn":
4488
4483
  return entry;
4489
4484
  case "inner":
@@ -4720,6 +4715,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4720
4715
  case "slicedColumn":
4721
4716
  columns.set(entry2.column.id, entry2.column);
4722
4717
  return;
4718
+ case "artificialColumn":
4719
+ columns.set(entry2.column.id, entry2.column);
4720
+ return;
4723
4721
  case "inlineColumn":
4724
4722
  return;
4725
4723
  case "full":
@@ -6521,7 +6519,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6521
6519
  this.ctx.logError(msg);
6522
6520
  }
6523
6521
  }
6524
- var version = "1.42.20";
6522
+ var version = "1.43.2";
6525
6523
  const PlatformaSDKVersion = version;
6526
6524
  function isConfigLambda(cfgOrFh) {
6527
6525
  return cfgOrFh.__renderLambda === true;
@@ -6709,6 +6707,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6709
6707
  function isLinkerColumn(column) {
6710
6708
  return !!readAnnotationJson(column, Annotation.IsLinkerColumn);
6711
6709
  }
6710
+ function isHiddenFromGraphColumn(column) {
6711
+ return !!readAnnotationJson(column, Annotation.HideDataFromGraphs);
6712
+ }
6712
6713
  function getAvailableWithLinkersAxes(linkerColumns, blockAxes) {
6713
6714
  const linkerMap = LinkerMap.fromColumns(linkerColumns.map(getColumnIdAndSpec));
6714
6715
  const startKeys = [];
@@ -6853,14 +6854,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6853
6854
  blockAxes.set(...item);
6854
6855
  allAxes.set(...item);
6855
6856
  }
6856
- const compatibleWithoutLabels = (columns.getColumns((spec) => spec.axesSpec.some((axisSpec) => {
6857
+ let compatibleWithoutLabels = (columns.getColumns((spec) => !isHiddenFromGraphColumn(spec) && spec.axesSpec.some((axisSpec) => {
6857
6858
  const axisId = getAxisId(axisSpec);
6858
- for (const selectorAxisSpec of blockAxes.values()) {
6859
- if (matchAxisId(getAxisId(selectorAxisSpec), axisId)) {
6860
- return true;
6861
- }
6862
- }
6863
- return false;
6859
+ return Array.from(blockAxes.values()).some((selectorAxisSpec) => matchAxisId(getAxisId(selectorAxisSpec), axisId));
6864
6860
  }), { dontWaitAllData: true, overrideLabelAnnotation: false }) ?? []).filter((column) => !isLabelColumn(column.spec));
6865
6861
  if (!allColumnsReady(compatibleWithoutLabels)) {
6866
6862
  return void 0;
@@ -6871,14 +6867,13 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6871
6867
  allAxes.set(canonicalizeJson(aid), spec);
6872
6868
  }
6873
6869
  }
6874
- const compatibleLabels = (columns.getColumns((spec) => spec.axesSpec.some((axisSpec) => {
6870
+ compatibleWithoutLabels = (columns.getColumns((spec) => !isHiddenFromGraphColumn(spec) && spec.axesSpec.every((axisSpec) => {
6875
6871
  const axisId = getAxisId(axisSpec);
6876
- for (const selectorAxisSpec of allAxes.values()) {
6877
- if (matchAxisId(getAxisId(selectorAxisSpec), axisId)) {
6878
- return true;
6879
- }
6880
- }
6881
- return false;
6872
+ return Array.from(allAxes.values()).some((selectorAxisSpec) => matchAxisId(getAxisId(selectorAxisSpec), axisId));
6873
+ }), { dontWaitAllData: true, overrideLabelAnnotation: false }) ?? []).filter((column) => !isLabelColumn(column.spec));
6874
+ const compatibleLabels = (columns.getColumns((spec) => !isHiddenFromGraphColumn(spec) && spec.axesSpec.some((axisSpec) => {
6875
+ const axisId = getAxisId(axisSpec);
6876
+ return Array.from(allAxes.values()).some((selectorAxisSpec) => matchAxisId(getAxisId(selectorAxisSpec), axisId));
6882
6877
  }), { dontWaitAllData: true, overrideLabelAnnotation: false }) ?? []).filter((column) => isLabelColumn(column.spec));
6883
6878
  if (!allColumnsReady(compatibleLabels)) {
6884
6879
  return void 0;
@@ -7030,7 +7025,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
7030
7025
  { type: "link", href: "/", label: "V Gene Usage" },
7031
7026
  { type: "link", href: "/jUsage", label: "J Gene Usage" },
7032
7027
  { type: "link", href: "/vjUsage", label: "V/J Gene Usage" }
7033
- ]).done();
7028
+ ]).done(2);
7034
7029
  exports2.model = model;
7035
7030
  Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
7036
7031
  });