@platforma-open/milaboratories.top-antibodies 4.4.0 → 4.4.1
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/block-pack/main.plj.gz +0 -0
- package/block-pack/manifest.json +1 -1
- package/block-pack/model.json +1 -1
- package/block-pack/published.json +1 -1
- package/block-pack/ui.tgz +0 -0
- package/dist/AGENTS.d.ts +2565 -2468
- package/dist/AGENTS.d.ts.map +1 -1
- package/dist/index.d.ts +2565 -2468
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +165 -88
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as __toESM, t as __commonJSMin } from "./rolldown-runtime-B-1-B7_t.js";
|
|
2
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
2
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/plugin_handle.js
|
|
3
3
|
const PLUGIN_OUTPUT_PREFIX = "plugin-output#";
|
|
4
4
|
/** Construct the output key for a plugin output in the block outputs map. */
|
|
5
5
|
function pluginOutputKey(handle, outputKey) {
|
|
6
6
|
return `${PLUGIN_OUTPUT_PREFIX}${handle}#${outputKey}`;
|
|
7
7
|
}
|
|
8
8
|
//#endregion
|
|
9
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
9
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/block_storage.js
|
|
10
10
|
/**
|
|
11
11
|
* Discriminator key for BlockStorage format detection.
|
|
12
12
|
* This unique hash-based key identifies data as BlockStorage vs legacy formats.
|
|
@@ -3788,12 +3788,34 @@ ZodOptional.create;
|
|
|
3788
3788
|
ZodNullable.create;
|
|
3789
3789
|
ZodEffects.createWithPreprocess;
|
|
3790
3790
|
ZodPipeline.create;
|
|
3791
|
+
const coerce = {
|
|
3792
|
+
string: ((arg) => ZodString.create({
|
|
3793
|
+
...arg,
|
|
3794
|
+
coerce: true
|
|
3795
|
+
})),
|
|
3796
|
+
number: ((arg) => ZodNumber.create({
|
|
3797
|
+
...arg,
|
|
3798
|
+
coerce: true
|
|
3799
|
+
})),
|
|
3800
|
+
boolean: ((arg) => ZodBoolean.create({
|
|
3801
|
+
...arg,
|
|
3802
|
+
coerce: true
|
|
3803
|
+
})),
|
|
3804
|
+
bigint: ((arg) => ZodBigInt.create({
|
|
3805
|
+
...arg,
|
|
3806
|
+
coerce: true
|
|
3807
|
+
})),
|
|
3808
|
+
date: ((arg) => ZodDate.create({
|
|
3809
|
+
...arg,
|
|
3810
|
+
coerce: true
|
|
3811
|
+
}))
|
|
3812
|
+
};
|
|
3791
3813
|
objectType({
|
|
3792
3814
|
type: literalType("plain"),
|
|
3793
3815
|
content: stringType()
|
|
3794
3816
|
});
|
|
3795
3817
|
//#endregion
|
|
3796
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
3818
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/bmodel/block_kind_ref.js
|
|
3797
3819
|
/**
|
|
3798
3820
|
* Compose a {@link BlockKindReference} from a kind's `name`/`version`.
|
|
3799
3821
|
*
|
|
@@ -3809,7 +3831,7 @@ objectType({
|
|
|
3809
3831
|
to: numberType().min(1)
|
|
3810
3832
|
});
|
|
3811
3833
|
//#endregion
|
|
3812
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
3834
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/util.js
|
|
3813
3835
|
function assertNever(x) {
|
|
3814
3836
|
throw new Error("Unexpected object: " + x);
|
|
3815
3837
|
}
|
|
@@ -3821,7 +3843,7 @@ function uniqueBy(array, makeId) {
|
|
|
3821
3843
|
return [...new Map(array.map((e) => [makeId(e), e])).values()];
|
|
3822
3844
|
}
|
|
3823
3845
|
//#endregion
|
|
3824
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
3846
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/data_info.js
|
|
3825
3847
|
/**
|
|
3826
3848
|
* Type guard function that checks if the given value is a valid DataInfo.
|
|
3827
3849
|
*
|
|
@@ -4012,7 +4034,7 @@ function entriesToDataInfo(dataInfoEntries) {
|
|
|
4012
4034
|
}
|
|
4013
4035
|
}
|
|
4014
4036
|
//#endregion
|
|
4015
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
4037
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/errors.js
|
|
4016
4038
|
var ServiceError = class extends Error {
|
|
4017
4039
|
name = "ServiceError";
|
|
4018
4040
|
};
|
|
@@ -4036,7 +4058,7 @@ function ensureError(value) {
|
|
|
4036
4058
|
return new Error(stringifyValue(value));
|
|
4037
4059
|
}
|
|
4038
4060
|
//#endregion
|
|
4039
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
4061
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/json.js
|
|
4040
4062
|
var import_canonicalize = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4041
4063
|
module.exports = function serialize(object) {
|
|
4042
4064
|
if (typeof object === "number" && isNaN(object)) throw new Error("NaN is not allowed");
|
|
@@ -4069,7 +4091,7 @@ function parseJsonSafely(value, fallback) {
|
|
|
4069
4091
|
}
|
|
4070
4092
|
}
|
|
4071
4093
|
//#endregion
|
|
4072
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
4094
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/spec.js
|
|
4073
4095
|
function readMetadata(metadata, key) {
|
|
4074
4096
|
return metadata?.[key];
|
|
4075
4097
|
}
|
|
@@ -4091,6 +4113,36 @@ function readMetadataJson(metadata, metadataJson, key) {
|
|
|
4091
4113
|
return;
|
|
4092
4114
|
}
|
|
4093
4115
|
}
|
|
4116
|
+
/**
|
|
4117
|
+
* Domain keys whose value is the id of a block, rather than a qualifier of the data.
|
|
4118
|
+
*
|
|
4119
|
+
* Applying a template repoints these at the blocks of the project being built: an axis a block
|
|
4120
|
+
* produced names that block in its domain, so an axis left naming the exported-from project
|
|
4121
|
+
* resolves to nothing. Listing the keys is what makes that safe — a template's entry ids are
|
|
4122
|
+
* arbitrary non-empty strings, so a hand-written template may name an entry `closest`, and a
|
|
4123
|
+
* qualifier that happens to read `closest` must not be mistaken for a reference to it.
|
|
4124
|
+
*
|
|
4125
|
+
* A key absent from here is simply left alone, which is the behaviour from before relocation
|
|
4126
|
+
* reached domains at all. Adding one is therefore safe; omitting one costs only that a template
|
|
4127
|
+
* carrying it applies still pointing at the project it came from.
|
|
4128
|
+
*/
|
|
4129
|
+
const BlockScopedDomain = /* @__PURE__ */ new Set([
|
|
4130
|
+
"pl7.app/blockId",
|
|
4131
|
+
"pl7.app/block",
|
|
4132
|
+
"pl7.app/redefined-by",
|
|
4133
|
+
"pl7.app/annotationRunId",
|
|
4134
|
+
"pl7.app/clonotypeAnnotationRunId",
|
|
4135
|
+
"pl7.app/clustering/blockId",
|
|
4136
|
+
"pl7.app/umap/blockId",
|
|
4137
|
+
"pl7.app/peptide/extractionRunId",
|
|
4138
|
+
"pl7.app/repertoire/extractionRunId",
|
|
4139
|
+
"pl7.app/antibodyVariantDesigner/designRunId",
|
|
4140
|
+
"pl7.app/vdj/clonotypingRunId",
|
|
4141
|
+
"pl7.app/vdj/clustering/blockId",
|
|
4142
|
+
"pl7.app/vdj/integration/blockId",
|
|
4143
|
+
"pl7.app/vdj/spatiotemporalAnalysis/blockId",
|
|
4144
|
+
"pl7.app/vdj/libraryId"
|
|
4145
|
+
]);
|
|
4094
4146
|
const Annotation = {
|
|
4095
4147
|
AxisNature: "pl7.app/axisNature",
|
|
4096
4148
|
Alphabet: "pl7.app/alphabet",
|
|
@@ -4108,6 +4160,7 @@ const Annotation = {
|
|
|
4108
4160
|
IsDenseAxis: "pl7.app/graph/isDenseAxis",
|
|
4109
4161
|
IsVirtual: "pl7.app/graph/isVirtual",
|
|
4110
4162
|
Palette: "pl7.app/graph/palette",
|
|
4163
|
+
Shape: "pl7.app/graph/shape",
|
|
4111
4164
|
Thresholds: "pl7.app/graph/thresholds",
|
|
4112
4165
|
TreatAbsentValuesAs: "pl7.app/graph/treatAbsentValuesAs"
|
|
4113
4166
|
},
|
|
@@ -4163,9 +4216,14 @@ const AnnotationJson = {
|
|
|
4163
4216
|
[Annotation.Graph.Axis.SymmetricRange]: booleanType(),
|
|
4164
4217
|
[Annotation.Graph.IsDenseAxis]: booleanType(),
|
|
4165
4218
|
[Annotation.Graph.Palette]: objectType({
|
|
4166
|
-
|
|
4167
|
-
|
|
4219
|
+
name: stringType(),
|
|
4220
|
+
mapping: recordType(coerce.number()).optional(),
|
|
4221
|
+
midPoint: numberType().optional(),
|
|
4222
|
+
min: numberType().optional(),
|
|
4223
|
+
max: numberType().optional(),
|
|
4224
|
+
log: booleanType().optional()
|
|
4168
4225
|
}),
|
|
4226
|
+
[Annotation.Graph.Shape]: objectType({ mapping: recordType(stringType()) }),
|
|
4169
4227
|
[Annotation.Graph.Thresholds]: arrayType(objectType({
|
|
4170
4228
|
columnId: objectType({
|
|
4171
4229
|
valueType: ValueTypeSchema,
|
|
@@ -4361,7 +4419,7 @@ function matchAxisId(query, target) {
|
|
|
4361
4419
|
return query.name === target.name && matchDomain$1(query.domain, target.domain) && matchDomain$1(query.contextDomain, target.contextDomain);
|
|
4362
4420
|
}
|
|
4363
4421
|
//#endregion
|
|
4364
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
4422
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/query/utils.js
|
|
4365
4423
|
const BOOLEAN_TYPES = /* @__PURE__ */ new Set([
|
|
4366
4424
|
"numericComparison",
|
|
4367
4425
|
"stringEquals",
|
|
@@ -4466,7 +4524,7 @@ function collectSpecQueryColumns(query) {
|
|
|
4466
4524
|
return result;
|
|
4467
4525
|
}
|
|
4468
4526
|
//#endregion
|
|
4469
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
4527
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/table_calculate.js
|
|
4470
4528
|
function mapPTableDef(def, cb) {
|
|
4471
4529
|
return {
|
|
4472
4530
|
...def,
|
|
@@ -4509,7 +4567,7 @@ function mapJoinEntry(entry, cb) {
|
|
|
4509
4567
|
}
|
|
4510
4568
|
}
|
|
4511
4569
|
//#endregion
|
|
4512
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
4570
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/table_common.js
|
|
4513
4571
|
function getPTableColumnId(spec) {
|
|
4514
4572
|
switch (spec.type) {
|
|
4515
4573
|
case "axis": return {
|
|
@@ -4523,7 +4581,7 @@ function getPTableColumnId(spec) {
|
|
|
4523
4581
|
}
|
|
4524
4582
|
}
|
|
4525
4583
|
//#endregion
|
|
4526
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
4584
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/filtered_column.js
|
|
4527
4585
|
function stringifyColumnFilteredId(key) {
|
|
4528
4586
|
return canonicalizeJson(createColumnFilteredKey(key));
|
|
4529
4587
|
}
|
|
@@ -4556,7 +4614,7 @@ function applyAxisFilters(spec, axisFilters) {
|
|
|
4556
4614
|
};
|
|
4557
4615
|
}
|
|
4558
4616
|
//#endregion
|
|
4559
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
4617
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/pool/spec.js
|
|
4560
4618
|
function isPObjectId(value) {
|
|
4561
4619
|
if (typeof value !== "string") return false;
|
|
4562
4620
|
return isPObjectKey(parseJsonSafely(value));
|
|
@@ -4682,7 +4740,7 @@ function throwError(v) {
|
|
|
4682
4740
|
else throw v;
|
|
4683
4741
|
}
|
|
4684
4742
|
//#endregion
|
|
4685
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
4743
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/discovered_column.js
|
|
4686
4744
|
function isColumnDiscoveredKey(obj) {
|
|
4687
4745
|
return typeof obj === "object" && obj !== null && "__isDiscovered" in obj;
|
|
4688
4746
|
}
|
|
@@ -4746,7 +4804,7 @@ function isString(value) {
|
|
|
4746
4804
|
return typeof value === "string";
|
|
4747
4805
|
}
|
|
4748
4806
|
//#endregion
|
|
4749
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
4807
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/ids.js
|
|
4750
4808
|
/**
|
|
4751
4809
|
* Canonically serializes a column key to a branded string id. Accepts both
|
|
4752
4810
|
* the new {@link ColumnUniversalKey} and the deprecated {@link UniversalPColumnId}
|
|
@@ -4920,7 +4978,7 @@ function extractPObjectId(id) {
|
|
|
4920
4978
|
throw new Error(`extractPObjectId: unrecognized column id structure: ${JSON.stringify(id)}`);
|
|
4921
4979
|
}
|
|
4922
4980
|
//#endregion
|
|
4923
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
4981
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/overridden.js
|
|
4924
4982
|
function isColumnOverriddenKey(obj) {
|
|
4925
4983
|
return typeof obj === "object" && obj !== null && "__isOverridden" in obj;
|
|
4926
4984
|
}
|
|
@@ -5042,7 +5100,7 @@ function mergeRecord(a, b) {
|
|
|
5042
5100
|
};
|
|
5043
5101
|
}
|
|
5044
5102
|
//#endregion
|
|
5045
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
5103
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/anchored.js
|
|
5046
5104
|
function axisKey(axis) {
|
|
5047
5105
|
return (0, import_canonicalize.default)(getAxisId(axis));
|
|
5048
5106
|
}
|
|
@@ -5288,7 +5346,7 @@ function isAnchorAxisRef(value) {
|
|
|
5288
5346
|
return typeof value === "object" && "anchor" in value;
|
|
5289
5347
|
}
|
|
5290
5348
|
//#endregion
|
|
5291
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
5349
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/selectors.js
|
|
5292
5350
|
/**
|
|
5293
5351
|
* Determines if an axis ID matches an axis selector.
|
|
5294
5352
|
*
|
|
@@ -5414,7 +5472,7 @@ function multiColumnSelectorsToPredicate(selectors) {
|
|
|
5414
5472
|
return (spec) => isPColumnSpec(spec) && arr.some((sel) => matchMultiColumnSelector(spec, sel));
|
|
5415
5473
|
}
|
|
5416
5474
|
//#endregion
|
|
5417
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
5475
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/native_id.js
|
|
5418
5476
|
function deriveNativeId(spec) {
|
|
5419
5477
|
const result = {
|
|
5420
5478
|
kind: spec.kind,
|
|
@@ -5426,7 +5484,7 @@ function deriveNativeId(spec) {
|
|
|
5426
5484
|
return (0, import_canonicalize.default)(result);
|
|
5427
5485
|
}
|
|
5428
5486
|
//#endregion
|
|
5429
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
5487
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/linker_columns.js
|
|
5430
5488
|
var LinkerMap = class LinkerMap {
|
|
5431
5489
|
/** Graph of linkers connected by axes (single or grouped by parents) */
|
|
5432
5490
|
data;
|
|
@@ -5604,7 +5662,7 @@ var LinkerMap = class LinkerMap {
|
|
|
5604
5662
|
}
|
|
5605
5663
|
};
|
|
5606
5664
|
//#endregion
|
|
5607
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
5665
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/flags/block_flags.js
|
|
5608
5666
|
/**
|
|
5609
5667
|
* Required PFrames version. Bump this in lockstep with the `@milaboratories/pframes-rs-*`
|
|
5610
5668
|
* version in `pnpm-workspace.yaml` so blocks built against the new SDK refuse to load on
|
|
@@ -5667,7 +5725,7 @@ function createEnrichmentRef(hit, options = {}) {
|
|
|
5667
5725
|
};
|
|
5668
5726
|
}
|
|
5669
5727
|
//#endregion
|
|
5670
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
5728
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/value_or_error.js
|
|
5671
5729
|
function mapValueInVOE(voe, cb) {
|
|
5672
5730
|
return voe.ok ? {
|
|
5673
5731
|
ok: true,
|
|
@@ -5675,7 +5733,7 @@ function mapValueInVOE(voe, cb) {
|
|
|
5675
5733
|
} : voe;
|
|
5676
5734
|
}
|
|
5677
5735
|
//#endregion
|
|
5678
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
5736
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/resource_types.js
|
|
5679
5737
|
/** Well-known resource type names used across the platform. */
|
|
5680
5738
|
const ResourceTypeName = {
|
|
5681
5739
|
StreamManager: "StreamManager",
|
|
@@ -5719,7 +5777,7 @@ const ResourceTypeName = {
|
|
|
5719
5777
|
SharedEnvelope: "SharedEnvelope"
|
|
5720
5778
|
};
|
|
5721
5779
|
//#endregion
|
|
5722
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
5780
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/services/service_types.js
|
|
5723
5781
|
const SERVICE_ID_PATTERN = /^[a-zA-Z][a-zA-Z0-9]*$/;
|
|
5724
5782
|
const { service, isNodeService, isWasmService, isMainService, getServiceKind, getServiceModelMethods, getServiceUiMethods } = (() => {
|
|
5725
5783
|
const typeMap = /* @__PURE__ */ new Map();
|
|
@@ -5758,7 +5816,7 @@ const { service, isNodeService, isWasmService, isMainService, getServiceKind, ge
|
|
|
5758
5816
|
};
|
|
5759
5817
|
})();
|
|
5760
5818
|
//#endregion
|
|
5761
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
5819
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/services/service_declarations.js
|
|
5762
5820
|
const Services = {
|
|
5763
5821
|
PFrameSpec: service()({
|
|
5764
5822
|
type: "wasm",
|
|
@@ -5852,7 +5910,7 @@ function resolveRequiredServices(flags) {
|
|
|
5852
5910
|
}
|
|
5853
5911
|
Object.fromEntries(Object.keys(Services).map((key) => [`requires${key}`, true]));
|
|
5854
5912
|
//#endregion
|
|
5855
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
5913
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/services/service_injectors.js
|
|
5856
5914
|
function buildMethodMap(pick) {
|
|
5857
5915
|
const result = {};
|
|
5858
5916
|
for (const id of Object.values(Services)) result[id] = [...pick(id)];
|
|
@@ -5861,7 +5919,7 @@ function buildMethodMap(pick) {
|
|
|
5861
5919
|
buildMethodMap(getServiceUiMethods);
|
|
5862
5920
|
buildMethodMap(getServiceModelMethods);
|
|
5863
5921
|
//#endregion
|
|
5864
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
5922
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/columns/accessor_traversal.js
|
|
5865
5923
|
/** Resource types that hold column collections — DFS stops here and collects. */
|
|
5866
5924
|
const COLLECT_TYPES = [ResourceTypeName.PFrame];
|
|
5867
5925
|
/** Resource types DFS descends through when looking for PFrames. */
|
|
@@ -5969,7 +6027,7 @@ function indexPoolBlock(block) {
|
|
|
5969
6027
|
return result;
|
|
5970
6028
|
}
|
|
5971
6029
|
//#endregion
|
|
5972
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
6030
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/columns/column_registry.js
|
|
5973
6031
|
/**
|
|
5974
6032
|
* Id-index over a set of {@link ColumnEntriesProvider}s. Sole job:
|
|
5975
6033
|
* {@link PObjectId} → {@link LeafEntry}. Generic over the accessor flavour, so
|
|
@@ -6006,7 +6064,7 @@ var ColumnRegistry = class {
|
|
|
6006
6064
|
}
|
|
6007
6065
|
};
|
|
6008
6066
|
//#endregion
|
|
6009
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
6067
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/columns/dedup.js
|
|
6010
6068
|
/**
|
|
6011
6069
|
* Two-track dedup over an item stream keyed by `ColumnUniversalId`:
|
|
6012
6070
|
*
|
|
@@ -6047,7 +6105,7 @@ function dedupColumns(items, getId, getSpec) {
|
|
|
6047
6105
|
return out;
|
|
6048
6106
|
}
|
|
6049
6107
|
//#endregion
|
|
6050
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
6108
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/columns/providers.js
|
|
6051
6109
|
/**
|
|
6052
6110
|
* Generic entries provider over a single accessor root. Walks `<root>` once
|
|
6053
6111
|
* from the supplied `rootPath`, builds an id → {@link LeafEntry} map and
|
|
@@ -6104,7 +6162,7 @@ var ResultPoolEntriesProvider = class {
|
|
|
6104
6162
|
}
|
|
6105
6163
|
};
|
|
6106
6164
|
//#endregion
|
|
6107
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
6165
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/template/template_ref_form.js
|
|
6108
6166
|
/**
|
|
6109
6167
|
* Whether `value` is a reference in the readable spelling.
|
|
6110
6168
|
*
|
|
@@ -6173,7 +6231,7 @@ function expandTemplatePlRef(ref) {
|
|
|
6173
6231
|
};
|
|
6174
6232
|
}
|
|
6175
6233
|
//#endregion
|
|
6176
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
6234
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/template/template_relocate.js
|
|
6177
6235
|
/**
|
|
6178
6236
|
* Point every column identifier in a block's params at the blocks of the project being built.
|
|
6179
6237
|
*
|
|
@@ -6189,8 +6247,13 @@ function expandTemplatePlRef(ref) {
|
|
|
6189
6247
|
*
|
|
6190
6248
|
* Rewriting is structural, never textual: an identifier is taken apart, its `blockId` fields
|
|
6191
6249
|
* are replaced, and it is rebuilt canonically. That is what keeps a value that merely *looks*
|
|
6192
|
-
* like an id —
|
|
6193
|
-
* what re-sorts a qualifications map whose
|
|
6250
|
+
* like an id — an axis filter, a domain this package can see belongs to an identifier it
|
|
6251
|
+
* knows — from being rewritten along with it, and what re-sorts a qualifications map whose
|
|
6252
|
+
* keys are identifiers.
|
|
6253
|
+
*
|
|
6254
|
+
* A domain reached on its own is the exception, and `relocateDomain` below says why: an axis is
|
|
6255
|
+
* qualified by the block that produced it. Only the domain keys known to name a block are
|
|
6256
|
+
* repointed — matching an entry id is not on its own evidence of a reference.
|
|
6194
6257
|
*
|
|
6195
6258
|
* An id the map does not mention is left as it is. That is the ordering rule doing its work:
|
|
6196
6259
|
* a caller building the map as it creates blocks passes only the entries already created, so
|
|
@@ -6208,13 +6271,27 @@ function relocateBlockIds(params, blockIds) {
|
|
|
6208
6271
|
if (typeof node === "string") return remapColumnIdBlockIds(node, remapBlockId);
|
|
6209
6272
|
if (isColumnUniversalKey(node)) return remapColumnIdBlockIds(node, remapBlockId);
|
|
6210
6273
|
if (Array.isArray(node)) return node.map(walk);
|
|
6211
|
-
if (typeof node === "object" && node !== null) return Object.fromEntries(Object.entries(node).map(([key, value]) => [remapColumnIdBlockIds(key, remapBlockId), walk(value)]));
|
|
6274
|
+
if (typeof node === "object" && node !== null) return Object.fromEntries(Object.entries(node).map(([key, value]) => [remapColumnIdBlockIds(key, remapBlockId), key === "domain" && isPlainObject(value) ? relocateDomain(value) : walk(value)]));
|
|
6212
6275
|
return node;
|
|
6213
6276
|
};
|
|
6277
|
+
/**
|
|
6278
|
+
* The block-naming entries of a domain, repointed at the project being built: an axis a block
|
|
6279
|
+
* produced names that block in its domain, so those are references like any other.
|
|
6280
|
+
*
|
|
6281
|
+
* Only the keys {@link BlockScopedDomain} lists, because a template's entry ids are arbitrary
|
|
6282
|
+
* non-empty strings — a hand-written template may name an entry `closest`, and a qualifier
|
|
6283
|
+
* reading `closest` is not a reference to it. Matching the map is not on its own enough to
|
|
6284
|
+
* tell one from the other; the key is.
|
|
6285
|
+
*
|
|
6286
|
+
* Reached only from the generic object case — inside an identifier this package recognizes a
|
|
6287
|
+
* domain is spec data and stays as it is, which is what keeps an overridden column's
|
|
6288
|
+
* `specOverrides.domain` untouched.
|
|
6289
|
+
*/
|
|
6290
|
+
const relocateDomain = (domain) => Object.fromEntries(Object.entries(domain).map(([key, value]) => [key, typeof value === "string" && BlockScopedDomain.has(key) ? remapBlockId(value) : walk(value)]));
|
|
6214
6291
|
return walk(params);
|
|
6215
6292
|
}
|
|
6216
6293
|
//#endregion
|
|
6217
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
6294
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/block_migrations.js
|
|
6218
6295
|
/** Create a DataVersioned wrapper with correct shape */
|
|
6219
6296
|
function makeVersionedData(version, data) {
|
|
6220
6297
|
return {
|
|
@@ -6792,7 +6869,7 @@ var DataModel = class DataModel {
|
|
|
6792
6869
|
}
|
|
6793
6870
|
};
|
|
6794
6871
|
//#endregion
|
|
6795
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
6872
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/internal.js
|
|
6796
6873
|
/** Utility code helping to identify whether the code is running in actual UI environment */
|
|
6797
6874
|
function isInUI() {
|
|
6798
6875
|
return typeof globalThis.getPlatforma !== "undefined" || typeof globalThis.platforma !== "undefined";
|
|
@@ -6862,7 +6939,7 @@ function registerFutureAwait(handle, onResolve) {
|
|
|
6862
6939
|
futureResolves.get(handle).push(onResolve);
|
|
6863
6940
|
}
|
|
6864
6941
|
//#endregion
|
|
6865
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
6942
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/block_storage_facade.js
|
|
6866
6943
|
/**
|
|
6867
6944
|
* All facade callback names as constants.
|
|
6868
6945
|
* These are the source of truth - the interface is derived from these.
|
|
@@ -6900,7 +6977,7 @@ function registerFacadeCallbacks(callbacks) {
|
|
|
6900
6977
|
for (const key of Object.values(BlockStorageFacadeCallbacks)) tryRegisterCallback(key, callbacks[key]);
|
|
6901
6978
|
}
|
|
6902
6979
|
//#endregion
|
|
6903
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
6980
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/services/block_services.js
|
|
6904
6981
|
/**
|
|
6905
6982
|
* Services required by all V3 blocks by default.
|
|
6906
6983
|
* Edit this when a new service should be available to all blocks.
|
|
@@ -6916,7 +6993,7 @@ const BLOCK_SERVICE_FLAGS = {
|
|
|
6916
6993
|
};
|
|
6917
6994
|
resolveRequiredServices(BLOCK_SERVICE_FLAGS);
|
|
6918
6995
|
//#endregion
|
|
6919
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
6996
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/render/future.js
|
|
6920
6997
|
var FutureRef = class FutureRef {
|
|
6921
6998
|
handle;
|
|
6922
6999
|
postProcess;
|
|
@@ -6944,7 +7021,7 @@ var FutureRef = class FutureRef {
|
|
|
6944
7021
|
}
|
|
6945
7022
|
};
|
|
6946
7023
|
//#endregion
|
|
6947
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
7024
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/render/accessor.js
|
|
6948
7025
|
function ifDef(value, cb) {
|
|
6949
7026
|
return value === void 0 ? void 0 : cb(value);
|
|
6950
7027
|
}
|
|
@@ -7194,11 +7271,11 @@ var TreeNodeAccessor = class TreeNodeAccessor {
|
|
|
7194
7271
|
}
|
|
7195
7272
|
};
|
|
7196
7273
|
//#endregion
|
|
7197
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
7274
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/render/internal.js
|
|
7198
7275
|
const MainAccessorName = "main";
|
|
7199
7276
|
const StagingAccessorName = "staging";
|
|
7200
7277
|
//#endregion
|
|
7201
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
7278
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/render/util/axis_filtering.js
|
|
7202
7279
|
function filterDataInfoEntries(dataInfoEntries, axisFilters) {
|
|
7203
7280
|
const sortedFilters = [...axisFilters].sort((a, b) => b[0] - a[0]);
|
|
7204
7281
|
const { type } = dataInfoEntries;
|
|
@@ -7262,7 +7339,7 @@ function filterDataInfoEntries(dataInfoEntries, axisFilters) {
|
|
|
7262
7339
|
}
|
|
7263
7340
|
}
|
|
7264
7341
|
//#endregion
|
|
7265
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
7342
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/labels/linked_column_postfix.js
|
|
7266
7343
|
/**
|
|
7267
7344
|
* Structural postfix derivation for linked columns (phase 2 of `deriveDistinctLabels`).
|
|
7268
7345
|
*
|
|
@@ -7445,7 +7522,7 @@ function derivePostfixes(entries, format = defaultLinkerFormatter) {
|
|
|
7445
7522
|
});
|
|
7446
7523
|
}
|
|
7447
7524
|
//#endregion
|
|
7448
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
7525
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/labels/derive_distinct_labels.js
|
|
7449
7526
|
const DISTANCE_PENALTY = .001;
|
|
7450
7527
|
const LABEL_TYPE = "__LABEL__";
|
|
7451
7528
|
const LABEL_TYPE_FULL = "__LABEL__@1";
|
|
@@ -7733,7 +7810,7 @@ function repairBareByPresence(labels, minimized, records, stats, forcedSet, forc
|
|
|
7733
7810
|
return patched;
|
|
7734
7811
|
}
|
|
7735
7812
|
//#endregion
|
|
7736
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
7813
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/render/util/label.js
|
|
7737
7814
|
/** @deprecated Use deriveDistinctLabels */
|
|
7738
7815
|
function deriveLabels(values, getSpec, options = {}) {
|
|
7739
7816
|
return deriveDistinctLabels(values.map(getSpec), options).map((label, i) => ({
|
|
@@ -7742,7 +7819,7 @@ function deriveLabels(values, getSpec, options = {}) {
|
|
|
7742
7819
|
}));
|
|
7743
7820
|
}
|
|
7744
7821
|
//#endregion
|
|
7745
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
7822
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/render/util/pcolumn_data.js
|
|
7746
7823
|
const RT_RESOURCE_MAP = "PColumnData/ResourceMap";
|
|
7747
7824
|
const RT_RESOURCE_MAP_PARTITIONED = "PColumnData/Partitioned/ResourceMap";
|
|
7748
7825
|
const RT_JSON_PARTITIONED = "PColumnData/JsonPartitioned";
|
|
@@ -8040,7 +8117,7 @@ function allPColumnsReady(columns) {
|
|
|
8040
8117
|
return columns.every(isPColumnReady);
|
|
8041
8118
|
}
|
|
8042
8119
|
//#endregion
|
|
8043
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
8120
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/render/util/column_collection.js
|
|
8044
8121
|
function isPColumnValues(value) {
|
|
8045
8122
|
if (!Array.isArray(value)) return false;
|
|
8046
8123
|
if (value.length === 0) return true;
|
|
@@ -8318,7 +8395,7 @@ var PColumnCollection = class {
|
|
|
8318
8395
|
}
|
|
8319
8396
|
};
|
|
8320
8397
|
//#endregion
|
|
8321
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
8398
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/services/service_bridge.js
|
|
8322
8399
|
/**
|
|
8323
8400
|
* Builds a ServiceProxy from a ServiceDispatch.
|
|
8324
8401
|
* Each service method call is forwarded to dispatch.callServiceMethod.
|
|
@@ -8327,7 +8404,7 @@ function createServiceProxy(dispatch) {
|
|
|
8327
8404
|
return ((serviceId) => Object.freeze(Object.fromEntries(dispatch.getServiceMethods(serviceId).map((method) => [method, (...args) => dispatch.callServiceMethod(serviceId, method, ...args)]))));
|
|
8328
8405
|
}
|
|
8329
8406
|
//#endregion
|
|
8330
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
8407
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/services/get_services.js
|
|
8331
8408
|
const cachedServices = /* @__PURE__ */ new WeakMap();
|
|
8332
8409
|
function getService(name, deps) {
|
|
8333
8410
|
const ctx = deps?.ctx ?? getCfgRenderCtx();
|
|
@@ -8341,7 +8418,7 @@ function getService(name, deps) {
|
|
|
8341
8418
|
})();
|
|
8342
8419
|
}
|
|
8343
8420
|
//#endregion
|
|
8344
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
8421
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/render/util/pframe_upgraders.js
|
|
8345
8422
|
function patchInSetFilters(filters) {
|
|
8346
8423
|
const inSetToOrEqual = (predicate) => {
|
|
8347
8424
|
if (predicate.operator !== "InSet") return predicate;
|
|
@@ -8379,7 +8456,7 @@ function patchInSetFilters(filters) {
|
|
|
8379
8456
|
return filters.map((filter) => mapFilter(filter, inSetToOrEqual));
|
|
8380
8457
|
}
|
|
8381
8458
|
//#endregion
|
|
8382
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
8459
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/render/api.js
|
|
8383
8460
|
/**
|
|
8384
8461
|
* Helper function to match domain objects
|
|
8385
8462
|
* @param query Optional domain to match against
|
|
@@ -8828,27 +8905,27 @@ var PluginRenderCtx = class extends RenderCtxBase {
|
|
|
8828
8905
|
}
|
|
8829
8906
|
};
|
|
8830
8907
|
//#endregion
|
|
8831
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
8908
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/plugin_model.js
|
|
8832
8909
|
/** Internal plugin↔block handshake. `Symbol.for` (not `Symbol`) so it stays
|
|
8833
8910
|
* identical across multiple `@platforma-sdk/model` copies in one process. */
|
|
8834
8911
|
const CREATE_PLUGIN_MODEL = Symbol.for("@platforma-sdk/model:createPluginModel");
|
|
8835
8912
|
//#endregion
|
|
8836
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
8837
|
-
const PlatformaSDKVersion = "1.
|
|
8913
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/version.js
|
|
8914
|
+
const PlatformaSDKVersion = "1.84.1";
|
|
8838
8915
|
//#endregion
|
|
8839
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
8916
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/bconfig/types.js
|
|
8840
8917
|
function isConfigLambda(cfgOrFh) {
|
|
8841
8918
|
return cfgOrFh.__renderLambda === true;
|
|
8842
8919
|
}
|
|
8843
8920
|
//#endregion
|
|
8844
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
8921
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/bconfig/normalization.js
|
|
8845
8922
|
function downgradeCfgOrLambda(data) {
|
|
8846
8923
|
if (data === void 0) return void 0;
|
|
8847
8924
|
if (isConfigLambda(data)) return data.handle;
|
|
8848
8925
|
return data;
|
|
8849
8926
|
}
|
|
8850
8927
|
//#endregion
|
|
8851
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
8928
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/block_storage_callbacks.js
|
|
8852
8929
|
/**
|
|
8853
8930
|
* BlockStorage Callback Implementations - wired to facade callbacks in BlockModelV3.done().
|
|
8854
8931
|
*
|
|
@@ -9202,7 +9279,7 @@ function deriveTemplateParamsFromStorage(storageJson, deriveTemplateParams) {
|
|
|
9202
9279
|
}
|
|
9203
9280
|
}
|
|
9204
9281
|
//#endregion
|
|
9205
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
9282
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/block_model.js
|
|
9206
9283
|
/**
|
|
9207
9284
|
* Merges two feature flag objects with type-aware logic:
|
|
9208
9285
|
* - `supports*` (boolean): OR — `true` if either side is `true`
|
|
@@ -9568,7 +9645,7 @@ var BlockModelV3 = class BlockModelV3 {
|
|
|
9568
9645
|
}
|
|
9569
9646
|
};
|
|
9570
9647
|
//#endregion
|
|
9571
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
9648
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/pframe_utils/axes.js
|
|
9572
9649
|
/** Create id for column copy with added keys in axes domains */
|
|
9573
9650
|
const colId = (id, domains, contextDomains) => {
|
|
9574
9651
|
let wid = id.toString();
|
|
@@ -9674,7 +9751,7 @@ function getAdditionalColumnsForColumn(blockAxes, column) {
|
|
|
9674
9751
|
})];
|
|
9675
9752
|
}
|
|
9676
9753
|
//#endregion
|
|
9677
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
9754
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/columns/column_recipes/leaf_rebrand.js
|
|
9678
9755
|
/**
|
|
9679
9756
|
* Replace every column leaf whose id equals `fromId` with `toId`, leaving
|
|
9680
9757
|
* other column refs (linkers, sub-anchors) intact. Wrapper recipes
|
|
@@ -10872,7 +10949,7 @@ var LRUCache = class LRUCache {
|
|
|
10872
10949
|
}
|
|
10873
10950
|
};
|
|
10874
10951
|
//#endregion
|
|
10875
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
10952
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/columns/column_providers/providers.js
|
|
10876
10953
|
/**
|
|
10877
10954
|
* Unified memoised factory dispatching to the right provider flavour by the
|
|
10878
10955
|
* source shape:
|
|
@@ -10961,7 +11038,7 @@ function hashRawPool(rawPool) {
|
|
|
10961
11038
|
return rawPool.map((b) => `${b.blockId}\x1f${b.prodCtx ?? ""}\x1f${b.stagingCtx ?? ""}\x1f${b.prodIncomplete ? 1 : 0}\x1f${b.stagingIncomplete ? 1 : 0}`).join("");
|
|
10962
11039
|
}
|
|
10963
11040
|
//#endregion
|
|
10964
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
11041
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/columns/column_providers/index.js
|
|
10965
11042
|
/**
|
|
10966
11043
|
* Build the default set of ColumnsProviders for the ambient render ctx:
|
|
10967
11044
|
* - `AccessorColumnsProvider` over `outputs` (if present)
|
|
@@ -10996,7 +11073,7 @@ function isColumnProvider(source) {
|
|
|
10996
11073
|
return typeof p.getColumns === "function" && typeof p.isFinal === "function";
|
|
10997
11074
|
}
|
|
10998
11075
|
//#endregion
|
|
10999
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
11076
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/columns/data_column.js
|
|
11000
11077
|
/**
|
|
11001
11078
|
* Thrown by leaf-recipe factories when the requested column is provably
|
|
11002
11079
|
* absent in the active render ctx — i.e. every relevant accessor reports
|
|
@@ -11236,7 +11313,7 @@ function memoizeByEntry(fn) {
|
|
|
11236
11313
|
};
|
|
11237
11314
|
}
|
|
11238
11315
|
//#endregion
|
|
11239
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
11316
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/columns/column_recipes/column_overrided_recipe.js
|
|
11240
11317
|
/**
|
|
11241
11318
|
* Recipe wrapper that overlays {@link SpecOverrides} on top of any other
|
|
11242
11319
|
* recipe. The id is `ColumnOverriddenKey { source: inner.id, specOverrides }`.
|
|
@@ -11374,7 +11451,7 @@ var DataColumnOverriddenRecipe = class extends ColumnOverriddenRecipe {
|
|
|
11374
11451
|
}
|
|
11375
11452
|
};
|
|
11376
11453
|
//#endregion
|
|
11377
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
11454
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/columns/column_recipes/column_filtered_recipe.js
|
|
11378
11455
|
/**
|
|
11379
11456
|
* Recipe wrapper that fixes the values of selected axes of an inner recipe
|
|
11380
11457
|
* (axis slicing). The id is `FilteredPColumnId { source: inner.id,
|
|
@@ -11500,7 +11577,7 @@ function toAxisSelector(axis) {
|
|
|
11500
11577
|
return selector;
|
|
11501
11578
|
}
|
|
11502
11579
|
//#endregion
|
|
11503
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
11580
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/columns/column_recipes/index.js
|
|
11504
11581
|
/**
|
|
11505
11582
|
* Build a `ColumnRecipe` from a stringified id. Dispatches to the matching
|
|
11506
11583
|
* concrete recipe variant based on the id's encoding and recurses on
|
|
@@ -11551,7 +11628,7 @@ function ColumnRecipeGetStatus(id, opts = {}) {
|
|
|
11551
11628
|
}
|
|
11552
11629
|
const ColumnRecipe = Object.assign(ColumnRecipeBuild, { getStatus: ColumnRecipeGetStatus });
|
|
11553
11630
|
//#endregion
|
|
11554
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
11631
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/columns/column_recipes/column_discovered_recipe.js
|
|
11555
11632
|
/**
|
|
11556
11633
|
* Recipe for columns identified by a {@link ColumnDiscoveredKey}: a base
|
|
11557
11634
|
* column + a `path` of linkers + qualifications.
|
|
@@ -11722,7 +11799,7 @@ function referencedUniIdsOf(key) {
|
|
|
11722
11799
|
return /* @__PURE__ */ new Set([key.column, ...(key.path ?? []).map((item) => item.column)]);
|
|
11723
11800
|
}
|
|
11724
11801
|
//#endregion
|
|
11725
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
11802
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/columns/column.js
|
|
11726
11803
|
/**
|
|
11727
11804
|
* Unified entry point — routes between the two top-level dispatchers:
|
|
11728
11805
|
* - string id (`PObjectId` / `ColumnUniversalId`) → {@link ColumnRecipe}
|
|
@@ -11736,7 +11813,7 @@ function Column(source, opts) {
|
|
|
11736
11813
|
return DataColumn(source, opts);
|
|
11737
11814
|
}
|
|
11738
11815
|
//#endregion
|
|
11739
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
11816
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/columns/columns_collection.js
|
|
11740
11817
|
/**
|
|
11741
11818
|
* Build a {@link ColumnsCollection} from sandbox-side source descriptors.
|
|
11742
11819
|
* Resolves the `columnsCollection` driver (either from `deps.driver` or via
|
|
@@ -11845,7 +11922,7 @@ function defaultCtxSources(ctx) {
|
|
|
11845
11922
|
return [...currentBlockSources(ctx), { kind: "result_pool" }];
|
|
11846
11923
|
}
|
|
11847
11924
|
//#endregion
|
|
11848
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
11925
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/columns/utils.js
|
|
11849
11926
|
/**
|
|
11850
11927
|
* PObjectIds of every non-hit column referenced by `recipe.getQuery()`,
|
|
11851
11928
|
* deduped in traversal order. The hit column is
|
|
@@ -11976,7 +12053,7 @@ function hasSingleDataColumn(recipe) {
|
|
|
11976
12053
|
return recipe.getReferencedIds().length === 1;
|
|
11977
12054
|
}
|
|
11978
12055
|
//#endregion
|
|
11979
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
12056
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/pframe_utils/columns.js
|
|
11980
12057
|
function getAllRelatedColumns(ctx, predicate) {
|
|
11981
12058
|
const columns = new PColumnCollection();
|
|
11982
12059
|
columns.addColumnProvider(ctx.resultPool);
|
|
@@ -12052,7 +12129,7 @@ function discoverIntegrableColumnIds(ctx, rootColumns) {
|
|
|
12052
12129
|
}
|
|
12053
12130
|
}
|
|
12054
12131
|
//#endregion
|
|
12055
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
12132
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/components/PFrameForGraphs.js
|
|
12056
12133
|
function isHiddenFromGraphColumn(column) {
|
|
12057
12134
|
return !!readAnnotationJson(column, Annotation.HideDataFromGraphs);
|
|
12058
12135
|
}
|
|
@@ -12081,7 +12158,7 @@ function createPFrameForGraphs(ctx, blockColumns) {
|
|
|
12081
12158
|
}));
|
|
12082
12159
|
}
|
|
12083
12160
|
//#endregion
|
|
12084
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
12161
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/components/PlDatasetSelector/dataset_selection.js
|
|
12085
12162
|
function isDatasetSelection(value) {
|
|
12086
12163
|
return typeof value === "object" && value !== null && value.__isDatasetSelection === "v1" && "primary" in value;
|
|
12087
12164
|
}
|
|
@@ -12097,7 +12174,7 @@ function createDatasetSelection(primary, enrichments) {
|
|
|
12097
12174
|
};
|
|
12098
12175
|
}
|
|
12099
12176
|
//#endregion
|
|
12100
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
12177
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/components/PlDatasetSelector/filter_discovery.js
|
|
12101
12178
|
/**
|
|
12102
12179
|
* Matches columns annotated `pl7.app/isSubset: "true"` whose axes ⊆ anchor axes.
|
|
12103
12180
|
*
|
|
@@ -12149,7 +12226,7 @@ function buildRefMap(entries) {
|
|
|
12149
12226
|
return new Map(entries.map((e) => [(0, import_canonicalize.default)(e.ref), e.ref]));
|
|
12150
12227
|
}
|
|
12151
12228
|
//#endregion
|
|
12152
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
12229
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/components/PlDatasetSelector/enrichment_discovery.js
|
|
12153
12230
|
/**
|
|
12154
12231
|
* Linker-reached hits attached to the anchor primary. Drops zero-hop variants
|
|
12155
12232
|
* (filters / the primary itself) and structural hits (subset, linker, label
|
|
@@ -12209,7 +12286,7 @@ function enrichmentVariantsToRefs(variants, labelOptions) {
|
|
|
12209
12286
|
});
|
|
12210
12287
|
}
|
|
12211
12288
|
//#endregion
|
|
12212
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
12289
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/components/PlDatasetSelector/build_dataset_options.js
|
|
12213
12290
|
function toPredicate(opt) {
|
|
12214
12291
|
if (opt === void 0) return () => true;
|
|
12215
12292
|
return typeof opt === "function" ? opt : multiColumnSelectorsToPredicate(opt);
|
|
@@ -12259,7 +12336,7 @@ function buildDatasetOptions(ctx, opts) {
|
|
|
12259
12336
|
});
|
|
12260
12337
|
}
|
|
12261
12338
|
//#endregion
|
|
12262
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
12339
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/filters/traverse.js
|
|
12263
12340
|
/**
|
|
12264
12341
|
* Recursively traverses a FilterSpec tree bottom-up, applying visitor callbacks.
|
|
12265
12342
|
*
|
|
@@ -12298,7 +12375,7 @@ function collectFilterSpecColumns(filter) {
|
|
|
12298
12375
|
});
|
|
12299
12376
|
}
|
|
12300
12377
|
//#endregion
|
|
12301
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
12378
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/filters/converters/filterToQuery.js
|
|
12302
12379
|
/** Converts a QueryColumnId object into a SpecQueryExpression reference. */
|
|
12303
12380
|
function resolveColumnRef(col) {
|
|
12304
12381
|
return col.type === "axis" ? {
|
|
@@ -12636,7 +12713,7 @@ function isNumber(value) {
|
|
|
12636
12713
|
return typeof value === "number" || value instanceof Number;
|
|
12637
12714
|
}
|
|
12638
12715
|
//#endregion
|
|
12639
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
12716
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/filters/distill.js
|
|
12640
12717
|
/**
|
|
12641
12718
|
* Strips non-FilterSpec metadata (whitelist approach) and removes
|
|
12642
12719
|
* unfilled leaves (type is undefined or any required field is undefined).
|
|
@@ -12741,7 +12818,7 @@ const REQUIRED_KEYS_BY_TYPE = {
|
|
|
12741
12818
|
greaterThanColumnOrEqual: ["column", "rhs"]
|
|
12742
12819
|
};
|
|
12743
12820
|
//#endregion
|
|
12744
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
12821
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/components/PlDataTable/state-migration.js
|
|
12745
12822
|
/** Upgrade PlDataTableStateV2 to the latest version */
|
|
12746
12823
|
function upgradePlDataTableStateV2(state) {
|
|
12747
12824
|
if (!state) return createPlDataTableStateV2();
|
|
@@ -13099,7 +13176,7 @@ function parseLegacyLeafColumn(s) {
|
|
|
13099
13176
|
return parsed;
|
|
13100
13177
|
}
|
|
13101
13178
|
//#endregion
|
|
13102
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
13179
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/components/PlDataTable/createPlDataTable/utils.js
|
|
13103
13180
|
/** Adapt a {@link ColumnRecipe} to the plain {@link RuleColumn} shape. */
|
|
13104
13181
|
function toRuleColumn(col) {
|
|
13105
13182
|
return {
|
|
@@ -13197,7 +13274,7 @@ function deriveAllLabels(options) {
|
|
|
13197
13274
|
})), deriveLabelsOptions).reduce((acc, label, index) => (acc[columns[index].id] = label, acc), {});
|
|
13198
13275
|
}
|
|
13199
13276
|
//#endregion
|
|
13200
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
13277
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/components/PlDataTable/createPlDataTable/createPTableDefV3.js
|
|
13201
13278
|
/**
|
|
13202
13279
|
* Assemble a ptable def directly from recipes. Each secondary recipe is its own
|
|
13203
13280
|
* outer-joined subtree: `getQuery()` encodes its linker chain, and its
|
|
@@ -13261,7 +13338,7 @@ function columnToJoinEntry(col, qualifications) {
|
|
|
13261
13338
|
};
|
|
13262
13339
|
}
|
|
13263
13340
|
//#endregion
|
|
13264
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
13341
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/components/PlDataTable/columnResolver.js
|
|
13265
13342
|
function createColumnResolver(columns) {
|
|
13266
13343
|
const axisIds = [];
|
|
13267
13344
|
for (const c of columns) for (const ax of c.getSpec().axesSpec) axisIds.push(getAxisId(ax));
|
|
@@ -13283,7 +13360,7 @@ function createColumnResolver(columns) {
|
|
|
13283
13360
|
};
|
|
13284
13361
|
}
|
|
13285
13362
|
//#endregion
|
|
13286
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
13363
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/components/PlDataTable/createPlDataTable/discoverColumns.js
|
|
13287
13364
|
/**
|
|
13288
13365
|
* Discover columns from sources/anchors and split them into primary
|
|
13289
13366
|
* (direct anchor hits — zero-hop, query is a bare column) and secondary
|
|
@@ -13329,7 +13406,7 @@ function discoverLabelColumns(ctx, primary) {
|
|
|
13329
13406
|
}).getColumns();
|
|
13330
13407
|
}
|
|
13331
13408
|
//#endregion
|
|
13332
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
13409
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/components/PlDataTable/createPlDataTable/createPlDataTableV3.js
|
|
13333
13410
|
function createPlDataTableV3(ctx, options) {
|
|
13334
13411
|
const state = upgradePlDataTableStateV2(options.tableState);
|
|
13335
13412
|
const primaryJoinType = options.primaryJoinType ?? "full";
|