@milaboratories/milaboratories.ui-examples.model 1.3.19 → 1.3.21
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/.turbo/turbo-build.log +3 -3
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-type-check.log +1 -1
- package/CHANGELOG.md +14 -0
- package/dist/bundle.js +30 -7
- package/dist/bundle.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +5 -5
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
WARN Issue while reading "/home/runner/_work/platforma/platforma/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
|
|
2
2
|
|
|
3
|
-
> @milaboratories/milaboratories.ui-examples.model@1.3.
|
|
3
|
+
> @milaboratories/milaboratories.ui-examples.model@1.3.21 build /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
|
|
4
4
|
> ts-builder build --target block-model && block-tools build-model
|
|
5
5
|
|
|
6
6
|
Building block-model project...
|
|
7
7
|
↳ rollup -c /configs/rollup.block-model.config.js
|
|
8
8
|
[36m
|
|
9
9
|
[1m./src/index.ts[22m → [1mdist, dist[22m...[39m
|
|
10
|
-
[32mcreated [1mdist, dist[22m in [
|
|
10
|
+
[32mcreated [1mdist, dist[22m in [1m3.9s[22m[39m
|
|
11
11
|
[36m
|
|
12
12
|
[1m./src/index.ts[22m → [1mdist[22m...[39m
|
|
13
13
|
[1m[33m(!) Circular dependency[39m[22m
|
|
14
14
|
../../../../sdk/model/dist/components/PFrameForGraphs.js -> ../../../../sdk/model/dist/pframe_utils/columns.js -> ../../../../sdk/model/dist/components/PFrameForGraphs.js
|
|
15
|
-
[32mcreated [1mdist[22m in [
|
|
15
|
+
[32mcreated [1mdist[22m in [1m5.1s[22m[39m
|
|
16
16
|
Build completed successfully
|
package/.turbo/turbo-lint.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
WARN Issue while reading "/home/runner/_work/platforma/platforma/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
|
|
2
2
|
|
|
3
|
-
> @milaboratories/milaboratories.ui-examples.model@1.3.
|
|
3
|
+
> @milaboratories/milaboratories.ui-examples.model@1.3.21 lint /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
|
|
4
4
|
> eslint .
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
WARN Issue while reading "/home/runner/_work/platforma/platforma/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
|
|
2
2
|
|
|
3
|
-
> @milaboratories/milaboratories.ui-examples.model@1.3.
|
|
3
|
+
> @milaboratories/milaboratories.ui-examples.model@1.3.21 type-check /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
|
|
4
4
|
> ts-builder types --target block-model
|
|
5
5
|
|
|
6
6
|
↳ tsc --noEmit --project ./tsconfig.json --customConditions ,
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @milaboratories/milaboratories.ui-examples.model
|
|
2
2
|
|
|
3
|
+
## 1.3.21
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [b0ceca1]
|
|
8
|
+
- @platforma-sdk/model@1.51.6
|
|
9
|
+
|
|
10
|
+
## 1.3.20
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [dd9a004]
|
|
15
|
+
- @platforma-sdk/model@1.51.5
|
|
16
|
+
|
|
3
17
|
## 1.3.19
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/bundle.js
CHANGED
|
@@ -6108,6 +6108,25 @@
|
|
|
6108
6108
|
}
|
|
6109
6109
|
return result;
|
|
6110
6110
|
};
|
|
6111
|
+
// Checks if a result has all unique labels
|
|
6112
|
+
const hasUniqueLabels = (result) => result !== undefined && new Set(result.map((c) => c.label)).size === values.length;
|
|
6113
|
+
// Post-processing: try removing types one by one (lowest importance first) to minimize the label set
|
|
6114
|
+
const minimizeTypeSet = (typeSet) => {
|
|
6115
|
+
// Get types sorted by importance ascending (lowest first), excluding forced elements
|
|
6116
|
+
const removableSorted = [...typeSet]
|
|
6117
|
+
.filter((t) => !forceTraceElements?.has(t.split('@')[0])
|
|
6118
|
+
&& !(ops.includeNativeLabel && t === LabelTypeFull))
|
|
6119
|
+
.sort((a, b) => (importances.get(a) ?? 0) - (importances.get(b) ?? 0));
|
|
6120
|
+
for (const typeToRemove of removableSorted) {
|
|
6121
|
+
const reducedSet = new Set(typeSet);
|
|
6122
|
+
reducedSet.delete(typeToRemove);
|
|
6123
|
+
const candidateResult = calculate(reducedSet);
|
|
6124
|
+
if (hasUniqueLabels(candidateResult)) {
|
|
6125
|
+
typeSet.delete(typeToRemove);
|
|
6126
|
+
}
|
|
6127
|
+
}
|
|
6128
|
+
return typeSet;
|
|
6129
|
+
};
|
|
6111
6130
|
if (mainTypes.length === 0) {
|
|
6112
6131
|
if (secondaryTypes.length !== 0)
|
|
6113
6132
|
throw new Error('Non-empty secondary types list while main types list is empty.');
|
|
@@ -6133,16 +6152,20 @@
|
|
|
6133
6152
|
if (additionalType >= 0)
|
|
6134
6153
|
currentSet.add(mainTypes[additionalType]);
|
|
6135
6154
|
const candidateResult = calculate(currentSet);
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
return
|
|
6155
|
+
if (hasUniqueLabels(candidateResult)) {
|
|
6156
|
+
minimizeTypeSet(currentSet);
|
|
6157
|
+
return calculate(currentSet);
|
|
6158
|
+
}
|
|
6139
6159
|
additionalType++;
|
|
6140
6160
|
if (additionalType >= mainTypes.length) {
|
|
6141
6161
|
includedTypes++;
|
|
6142
6162
|
additionalType = includedTypes;
|
|
6143
6163
|
}
|
|
6144
6164
|
}
|
|
6145
|
-
|
|
6165
|
+
// Fallback: include all types, then try to minimize
|
|
6166
|
+
const fallbackSet = new Set([...mainTypes, ...secondaryTypes]);
|
|
6167
|
+
minimizeTypeSet(fallbackSet);
|
|
6168
|
+
return calculate(fallbackSet, true);
|
|
6146
6169
|
}
|
|
6147
6170
|
|
|
6148
6171
|
const PCD_PREFIX = 'PColumnData/';
|
|
@@ -7378,7 +7401,7 @@
|
|
|
7378
7401
|
}
|
|
7379
7402
|
}
|
|
7380
7403
|
|
|
7381
|
-
var version = "1.51.
|
|
7404
|
+
var version = "1.51.6";
|
|
7382
7405
|
|
|
7383
7406
|
const PlatformaSDKVersion = version;
|
|
7384
7407
|
|
|
@@ -7829,13 +7852,13 @@
|
|
|
7829
7852
|
ctx.logWarn(`Partition filter ${JSON.stringify(f)} does not match provided columns, skipping`);
|
|
7830
7853
|
return valid;
|
|
7831
7854
|
});
|
|
7832
|
-
const filters = uniqueBy([...
|
|
7855
|
+
const filters = uniqueBy([...tableStateNormalized.pTableParams.filters, ...([])], (f) => canonicalizeJson(f.column)).filter((f) => {
|
|
7833
7856
|
const valid = isValidColumnId(f.column);
|
|
7834
7857
|
if (!valid)
|
|
7835
7858
|
ctx.logWarn(`Filter ${JSON.stringify(f)} does not match provided columns, skipping`);
|
|
7836
7859
|
return valid;
|
|
7837
7860
|
});
|
|
7838
|
-
const sorting = uniqueBy([...
|
|
7861
|
+
const sorting = uniqueBy([...tableStateNormalized.pTableParams.sorting, ...([])], (s) => canonicalizeJson(s.column)).filter((s) => {
|
|
7839
7862
|
const valid = isValidColumnId(s.column);
|
|
7840
7863
|
if (!valid)
|
|
7841
7864
|
ctx.logWarn(`Sorting ${JSON.stringify(s)} does not match provided columns, skipping`);
|