@milaboratories/milaboratories.ui-examples.model 1.2.38 → 1.2.39

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.2.38 build /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
3
+ > @milaboratories/milaboratories.ui-examples.model@1.2.39 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 6.5s
10
+ created dist, dist in 10.9s
11
11
  
12
12
  ./src/index.ts → dist...
13
13
  (!) Circular dependency
14
14
  ../../../../sdk/model/dist/components/PFrameForGraphs.js -> ../../../../sdk/model/dist/components/PlDataTable.js -> ../../../../sdk/model/dist/components/PFrameForGraphs.js
15
- created dist in 7.7s
15
+ created dist in 7.3s
16
16
  Build completed successfully
@@ -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.2.38 type-check /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
3
+ > @milaboratories/milaboratories.ui-examples.model@1.2.39 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
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @milaboratories/milaboratories.ui-examples.model
2
2
 
3
+ ## 1.2.39
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [ed7a454]
8
+ - @platforma-sdk/model@1.43.21
9
+
3
10
  ## 1.2.38
4
11
 
5
12
  ### Patch Changes
package/dist/bundle.js CHANGED
@@ -6849,7 +6849,7 @@
6849
6849
  }
6850
6850
  }
6851
6851
 
6852
- var version = "1.43.18";
6852
+ var version = "1.43.21";
6853
6853
 
6854
6854
  const PlatformaSDKVersion = version;
6855
6855
 
@@ -7189,7 +7189,7 @@
7189
7189
  if (params.coreColumnPredicate) {
7190
7190
  coreColumns = [];
7191
7191
  for (const c of params.columns)
7192
- if (params.coreColumnPredicate(c.spec))
7192
+ if (params.coreColumnPredicate(getColumnIdAndSpec(c)))
7193
7193
  coreColumns.push(c);
7194
7194
  else
7195
7195
  secondaryColumns.push(c);
@@ -7226,9 +7226,9 @@
7226
7226
  * @returns PlAgDataTableV2 table source
7227
7227
  */
7228
7228
  function createPlDataTableV2(ctx, inputColumns, tableState, ops) {
7229
- if (inputColumns.length === 0)
7230
- return undefined;
7231
7229
  const columns = inputColumns.filter((c) => isLinkerColumn(c.spec) || !isColumnHidden(c.spec));
7230
+ if (columns.length === 0)
7231
+ return undefined;
7232
7232
  const tableStateNormalized = upgradePlDataTableStateV2(tableState);
7233
7233
  const allLabelColumns = getAllLabelColumns(ctx.resultPool);
7234
7234
  if (!allLabelColumns)
@@ -7284,6 +7284,8 @@
7284
7284
  columns
7285
7285
  .filter((c) => isLinkerColumn(c.spec))
7286
7286
  .forEach((c) => hiddenColumns.delete(c.id));
7287
+ // Preserve core columns as they change the shape of join.
7288
+ const coreColumnPredicate = ops?.coreColumnPredicate;
7287
7289
  // Filters decrease the number of result rows, sorting changes the order of result rows
7288
7290
  [...partitionFilters.map((f) => f.column), ...filters.map((f) => f.column), ...sorting.map((s) => s.column)]
7289
7291
  .filter((c) => c.type === 'column')
@@ -7300,7 +7302,7 @@
7300
7302
  partitionFilters,
7301
7303
  filters,
7302
7304
  sorting,
7303
- coreColumnPredicate: ops?.coreColumnPredicate,
7305
+ coreColumnPredicate,
7304
7306
  });
7305
7307
  const visibleHandle = ctx.createPTable(visibleDef);
7306
7308
  return {