@milaboratories/milaboratories.ui-examples.model 1.3.18 → 1.3.20

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,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.18 build /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
3
+ > @milaboratories/milaboratories.ui-examples.model@1.3.20 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
  
9
9
  ./src/index.ts → dist, dist...
10
- created dist, dist in 973ms
10
+ created dist, dist in 2.8s
11
11
  
12
12
  ./src/index.ts → dist...
13
13
  (!) Circular dependency
14
14
  ../../../../sdk/model/dist/components/PFrameForGraphs.js -> ../../../../sdk/model/dist/pframe_utils/columns.js -> ../../../../sdk/model/dist/components/PFrameForGraphs.js
15
- created dist in 1.3s
15
+ created dist in 3.8s
16
16
  Build completed successfully
@@ -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.18 lint /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
3
+ > @milaboratories/milaboratories.ui-examples.model@1.3.20 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.18 type-check /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
3
+ > @milaboratories/milaboratories.ui-examples.model@1.3.20 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.20
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [dd9a004]
8
+ - @platforma-sdk/model@1.51.5
9
+
10
+ ## 1.3.19
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [5dc0a70]
15
+ - @platforma-sdk/model@1.51.2
16
+
3
17
  ## 1.3.18
4
18
 
5
19
  ### Patch Changes
package/dist/bundle.js CHANGED
@@ -7378,7 +7378,7 @@
7378
7378
  }
7379
7379
  }
7380
7380
 
7381
- var version = "1.50.0";
7381
+ var version = "1.51.5";
7382
7382
 
7383
7383
  const PlatformaSDKVersion = version;
7384
7384
 
@@ -7625,6 +7625,10 @@
7625
7625
  }
7626
7626
  }
7627
7627
 
7628
+ function identity(x) {
7629
+ return x;
7630
+ }
7631
+
7628
7632
  function makeDefaultPTableParams() {
7629
7633
  return {
7630
7634
  sourceId: null,
@@ -7679,7 +7683,7 @@
7679
7683
  .getColumns({
7680
7684
  name: PColumnName.Label,
7681
7685
  axes: [{}], // exactly one axis
7682
- }, { dontWaitAllData: true });
7686
+ }, { dontWaitAllData: true, overrideLabelAnnotation: false });
7683
7687
  }
7684
7688
  /** Get label columns matching the provided columns from the result pool */
7685
7689
  function getMatchingLabelColumns(columns, allLabelColumns) {
@@ -7796,7 +7800,19 @@
7796
7800
  const allLabelColumns = getAllLabelColumns(ctx.resultPool);
7797
7801
  if (!allLabelColumns)
7798
7802
  return undefined;
7799
- const fullLabelColumns = getMatchingLabelColumns(columns.map(getColumnIdAndSpec), allLabelColumns);
7803
+ let fullLabelColumns = getMatchingLabelColumns(columns.map(getColumnIdAndSpec), allLabelColumns);
7804
+ fullLabelColumns = deriveLabels(fullLabelColumns, identity, { includeNativeLabel: true }).map((v) => {
7805
+ return {
7806
+ ...v.value,
7807
+ spec: {
7808
+ ...v.value.spec,
7809
+ annotations: {
7810
+ ...v.value.spec.annotations,
7811
+ [Annotation.Label]: v.label,
7812
+ },
7813
+ },
7814
+ };
7815
+ });
7800
7816
  const fullColumns = [...columns, ...fullLabelColumns];
7801
7817
  const fullColumnsAxes = uniqueBy(fullColumns.flatMap((c) => c.spec.axesSpec.map((a) => getAxisId(a))), (a) => canonicalizeJson(a));
7802
7818
  const fullColumnsIds = [
@@ -7813,13 +7829,13 @@
7813
7829
  ctx.logWarn(`Partition filter ${JSON.stringify(f)} does not match provided columns, skipping`);
7814
7830
  return valid;
7815
7831
  });
7816
- const filters = uniqueBy([...([]), ...tableStateNormalized.pTableParams.filters], (f) => canonicalizeJson(f.column)).filter((f) => {
7832
+ const filters = uniqueBy([...tableStateNormalized.pTableParams.filters, ...([])], (f) => canonicalizeJson(f.column)).filter((f) => {
7817
7833
  const valid = isValidColumnId(f.column);
7818
7834
  if (!valid)
7819
7835
  ctx.logWarn(`Filter ${JSON.stringify(f)} does not match provided columns, skipping`);
7820
7836
  return valid;
7821
7837
  });
7822
- const sorting = uniqueBy([...([]), ...tableStateNormalized.pTableParams.sorting], (s) => canonicalizeJson(s.column)).filter((s) => {
7838
+ const sorting = uniqueBy([...tableStateNormalized.pTableParams.sorting, ...([])], (s) => canonicalizeJson(s.column)).filter((s) => {
7823
7839
  const valid = isValidColumnId(s.column);
7824
7840
  if (!valid)
7825
7841
  ctx.logWarn(`Sorting ${JSON.stringify(s)} does not match provided columns, skipping`);