@platforma-open/milaboratories.clonotype-clustering.model 2.13.0 → 2.13.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/clonotype-clustering/clonotype-clustering/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
2
2
 
3
- > @platforma-open/milaboratories.clonotype-clustering.model@2.13.0 build /home/runner/work/clonotype-clustering/clonotype-clustering/model
3
+ > @platforma-open/milaboratories.clonotype-clustering.model@2.13.2 build /home/runner/work/clonotype-clustering/clonotype-clustering/model
4
4
  > tsup && vite build && block-tools build-model
5
5
 
6
6
  CLI Building entry: src/index.ts
@@ -12,20 +12,20 @@
12
12
  CJS Build start
13
13
  ESM Build start
14
14
  CJS dist/index.cjs 6.49 KB
15
- CJS dist/index.cjs.map 16.04 KB
16
- CJS ⚡️ Build success in 185ms
15
+ CJS dist/index.cjs.map 16.05 KB
16
+ CJS ⚡️ Build success in 213ms
17
17
  ESM dist/index.js 6.48 KB
18
- ESM dist/index.js.map 15.95 KB
19
- ESM ⚡️ Build success in 184ms
18
+ ESM dist/index.js.map 15.96 KB
19
+ ESM ⚡️ Build success in 214ms
20
20
  DTS Build start
21
- DTS ⚡️ Build success in 2455ms
21
+ DTS ⚡️ Build success in 2521ms
22
22
  DTS dist/index.d.cts 5.85 KB
23
23
  DTS dist/index.d.ts 5.85 KB
24
24
  vite v6.3.5 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 242.11 kB │ gzip: 46.10 kB │ map: 515.68 kB
30
- dist/bundle.js 257.37 kB │ gzip: 46.84 kB │ map: 517.35 kB
31
- ✓ built in 947ms
29
+ dist/bundle.js 242.78 kB │ gzip: 46.12 kB │ map: 517.30 kB
30
+ dist/bundle.js 258.04 kB │ gzip: 46.87 kB │ map: 518.96 kB
31
+ ✓ built in 1.49s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @platforma-open/milaboratories.clonotype-clustering.model
2
2
 
3
+ ## 2.13.2
4
+
5
+ ### Patch Changes
6
+
7
+ - c0bb670: technical release
8
+
9
+ ## 2.13.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 823ff69: Full SDK update
14
+
3
15
  ## 2.13.0
4
16
 
5
17
  ### Minor Changes
package/dist/bundle.js CHANGED
@@ -3966,13 +3966,16 @@ 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);
3975
3975
  }
3976
+ function uniqueBy(array, makeId) {
3977
+ return [...new Map(array.map((e) => [makeId(e), e])).values()];
3978
+ }
3976
3979
  function isDataInfo(value) {
3977
3980
  if (!value || typeof value !== "object") {
3978
3981
  return false;
@@ -4229,14 +4232,6 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4229
4232
  function parseJson(value) {
4230
4233
  return JSON.parse(value);
4231
4234
  }
4232
- const ValueType = {
4233
- Int: "Int",
4234
- Long: "Long",
4235
- Float: "Float",
4236
- Double: "Double",
4237
- String: "String",
4238
- Bytes: "Bytes"
4239
- };
4240
4235
  function readMetadata(metadata, key) {
4241
4236
  return metadata == null ? void 0 : metadata[key];
4242
4237
  }
@@ -4265,6 +4260,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4265
4260
  IsVirtual: "pl7.app/graph/isVirtual"
4266
4261
  },
4267
4262
  HideDataFromUi: "pl7.app/hideDataFromUi",
4263
+ HideDataFromGraphs: "pl7.app/hideDataFromGraphs",
4268
4264
  IsLinkerColumn: "pl7.app/isLinkerColumn",
4269
4265
  Label: "pl7.app/label",
4270
4266
  Max: "pl7.app/max",
@@ -4282,21 +4278,15 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4282
4278
  },
4283
4279
  Trace: "pl7.app/trace"
4284
4280
  };
4285
- const AxisSpec = z.object({
4286
- type: z.nativeEnum(ValueType),
4287
- name: z.string(),
4288
- domain: z.record(z.string(), z.string()).optional(),
4289
- annotations: z.record(z.string(), z.string()).optional(),
4290
- parentAxes: z.array(z.number()).optional()
4291
- }).passthrough();
4292
4281
  const AnnotationJson = {
4293
4282
  [Annotation.DiscreteValues]: z.array(z.string()).or(z.array(z.number())),
4294
4283
  [Annotation.Graph.IsVirtual]: z.boolean(),
4295
4284
  [Annotation.HideDataFromUi]: z.boolean(),
4285
+ [Annotation.HideDataFromGraphs]: z.boolean(),
4296
4286
  [Annotation.IsLinkerColumn]: z.boolean(),
4297
4287
  [Annotation.Max]: z.number(),
4298
4288
  [Annotation.Min]: z.number(),
4299
- [Annotation.Parents]: z.array(AxisSpec),
4289
+ [Annotation.Parents]: z.array(z.string()),
4300
4290
  [Annotation.Sequence.Annotation.Mapping]: z.record(z.string(), z.string()),
4301
4291
  [Annotation.Sequence.IsAnnotation]: z.boolean(),
4302
4292
  [Annotation.Table.OrderPriority]: z.number(),
@@ -4416,7 +4406,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4416
4406
  if (axis.parentAxes) {
4417
4407
  modifiedAxis.parentAxesSpec = axis.parentAxes.map((idx2) => modifiedAxes[idx2]);
4418
4408
  } else {
4419
- modifiedAxis.parentAxesSpec = getNormalizedAxesList(parseParentsFromAnnotations(axis));
4409
+ const parents = parseParentsFromAnnotations(axis).map((name) => modifiedAxes.find((axis2) => axis2.name === name));
4410
+ modifiedAxis.parentAxesSpec = parents.some((p) => p === void 0) ? [] : parents;
4420
4411
  (_a = modifiedAxis.annotations) == null ? true : delete _a[Annotation.Parents];
4421
4412
  }
4422
4413
  });
@@ -4485,6 +4476,13 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4485
4476
  newId: entry.newId,
4486
4477
  axisFilters: entry.axisFilters
4487
4478
  };
4479
+ case "artificialColumn":
4480
+ return {
4481
+ type: "artificialColumn",
4482
+ column: cb(entry.column),
4483
+ newId: entry.newId,
4484
+ axesIndices: entry.axesIndices
4485
+ };
4488
4486
  case "inlineColumn":
4489
4487
  return entry;
4490
4488
  case "inner":
@@ -4721,6 +4719,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4721
4719
  case "slicedColumn":
4722
4720
  columns.set(entry2.column.id, entry2.column);
4723
4721
  return;
4722
+ case "artificialColumn":
4723
+ columns.set(entry2.column.id, entry2.column);
4724
+ return;
4724
4725
  case "inlineColumn":
4725
4726
  return;
4726
4727
  case "full":
@@ -6522,7 +6523,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6522
6523
  this.ctx.logError(msg);
6523
6524
  }
6524
6525
  }
6525
- var version = "1.42.20";
6526
+ var version = "1.43.2";
6526
6527
  const PlatformaSDKVersion = version;
6527
6528
  function isConfigLambda(cfgOrFh) {
6528
6529
  return cfgOrFh.__renderLambda === true;
@@ -6695,6 +6696,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6695
6696
  };
6696
6697
  }
6697
6698
  function upgradePlDataTableStateV2(state) {
6699
+ if (!state) {
6700
+ return createPlDataTableStateV2();
6701
+ }
6698
6702
  if (!("version" in state)) {
6699
6703
  state = createPlDataTableStateV2();
6700
6704
  }
@@ -6843,9 +6847,6 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6843
6847
  function isColumnOptional(spec) {
6844
6848
  return readAnnotation(spec, Annotation.Table.Visibility) === "optional";
6845
6849
  }
6846
- function uniqueBy(array, makeId) {
6847
- return [...new Map(array.map((e) => [makeId(e), e])).values()];
6848
- }
6849
6850
  function createPlDataTableV2(ctx, inputColumns, tableState, ops) {
6850
6851
  if (inputColumns.length === 0)
6851
6852
  return void 0;
@@ -6949,6 +6950,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6949
6950
  function isLinkerColumn(column) {
6950
6951
  return !!readAnnotationJson(column, Annotation.IsLinkerColumn);
6951
6952
  }
6953
+ function isHiddenFromGraphColumn(column) {
6954
+ return !!readAnnotationJson(column, Annotation.HideDataFromGraphs);
6955
+ }
6952
6956
  function getAvailableWithLinkersAxes(linkerColumns, blockAxes) {
6953
6957
  const linkerMap = LinkerMap.fromColumns(linkerColumns.map(getColumnIdAndSpec));
6954
6958
  const startKeys = [];
@@ -7093,14 +7097,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
7093
7097
  blockAxes.set(...item);
7094
7098
  allAxes.set(...item);
7095
7099
  }
7096
- const compatibleWithoutLabels = (columns.getColumns((spec) => spec.axesSpec.some((axisSpec) => {
7100
+ let compatibleWithoutLabels = (columns.getColumns((spec) => !isHiddenFromGraphColumn(spec) && spec.axesSpec.some((axisSpec) => {
7097
7101
  const axisId = getAxisId(axisSpec);
7098
- for (const selectorAxisSpec of blockAxes.values()) {
7099
- if (matchAxisId(getAxisId(selectorAxisSpec), axisId)) {
7100
- return true;
7101
- }
7102
- }
7103
- return false;
7102
+ return Array.from(blockAxes.values()).some((selectorAxisSpec) => matchAxisId(getAxisId(selectorAxisSpec), axisId));
7104
7103
  }), { dontWaitAllData: true, overrideLabelAnnotation: false }) ?? []).filter((column) => !isLabelColumn(column.spec));
7105
7104
  if (!allColumnsReady(compatibleWithoutLabels)) {
7106
7105
  return void 0;
@@ -7111,14 +7110,13 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
7111
7110
  allAxes.set(canonicalizeJson(aid), spec);
7112
7111
  }
7113
7112
  }
7114
- const compatibleLabels = (columns.getColumns((spec) => spec.axesSpec.some((axisSpec) => {
7113
+ compatibleWithoutLabels = (columns.getColumns((spec) => !isHiddenFromGraphColumn(spec) && spec.axesSpec.every((axisSpec) => {
7115
7114
  const axisId = getAxisId(axisSpec);
7116
- for (const selectorAxisSpec of allAxes.values()) {
7117
- if (matchAxisId(getAxisId(selectorAxisSpec), axisId)) {
7118
- return true;
7119
- }
7120
- }
7121
- return false;
7115
+ return Array.from(allAxes.values()).some((selectorAxisSpec) => matchAxisId(getAxisId(selectorAxisSpec), axisId));
7116
+ }), { dontWaitAllData: true, overrideLabelAnnotation: false }) ?? []).filter((column) => !isLabelColumn(column.spec));
7117
+ const compatibleLabels = (columns.getColumns((spec) => !isHiddenFromGraphColumn(spec) && spec.axesSpec.some((axisSpec) => {
7118
+ const axisId = getAxisId(axisSpec);
7119
+ return Array.from(allAxes.values()).some((selectorAxisSpec) => matchAxisId(getAxisId(selectorAxisSpec), axisId));
7122
7120
  }), { dontWaitAllData: true, overrideLabelAnnotation: false }) ?? []).filter((column) => isLabelColumn(column.spec));
7123
7121
  if (!allColumnsReady(compatibleLabels)) {
7124
7122
  return void 0;
@@ -7418,7 +7416,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
7418
7416
  { type: "link", href: "/", label: "Main" },
7419
7417
  { type: "link", href: "/bubble", label: "Top Clusters Plot" },
7420
7418
  { type: "link", href: "/histogram", label: "Cluster Size Histogram" }
7421
- ]).done();
7419
+ ]).done(2);
7422
7420
  exports2.model = model;
7423
7421
  Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
7424
7422
  });