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

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.40 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 7.7s
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.6s
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.40 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,18 @@
1
1
  # @milaboratories/milaboratories.ui-examples.model
2
2
 
3
+ ## 1.2.40
4
+
5
+ ### Patch Changes
6
+
7
+ - @platforma-sdk/model@1.43.29
8
+
9
+ ## 1.2.39
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [ed7a454]
14
+ - @platforma-sdk/model@1.43.21
15
+
3
16
  ## 1.2.38
4
17
 
5
18
  ### Patch Changes
package/dist/bundle.js CHANGED
@@ -4636,14 +4636,27 @@
4636
4636
  Description: 'pl7.app/description',
4637
4637
  DiscreteValues: 'pl7.app/discreteValues',
4638
4638
  Graph: {
4639
+ Axis: {
4640
+ HighCardinality: 'pl7.app/graph/axis/highCardinality',
4641
+ LowerLimit: 'pl7.app/graph/axis/lowerLimit',
4642
+ SymmetricRange: 'pl7.app/graph/axis/symmetricRange',
4643
+ UpperLimit: 'pl7.app/graph/axis/upperLimit',
4644
+ },
4645
+ IsDenseAxis: 'pl7.app/graph/isDenseAxis',
4639
4646
  IsVirtual: 'pl7.app/graph/isVirtual',
4647
+ Palette: 'pl7.app/graph/palette',
4648
+ Thresholds: 'pl7.app/graph/thresholds',
4649
+ TreatAbsentValuesAs: 'pl7.app/graph/treatAbsentValuesAs',
4640
4650
  },
4641
4651
  HideDataFromUi: 'pl7.app/hideDataFromUi',
4642
4652
  HideDataFromGraphs: 'pl7.app/hideDataFromGraphs',
4653
+ IsDiscreteFilter: 'pl7.app/isDiscreteFilter',
4643
4654
  IsLinkerColumn: 'pl7.app/isLinkerColumn',
4655
+ IsSubset: 'pl7.app/isSubset',
4644
4656
  Label: 'pl7.app/label',
4645
4657
  Max: 'pl7.app/max',
4646
4658
  Min: 'pl7.app/min',
4659
+ MultipliesBy: 'pl7.app/multipliesBy',
4647
4660
  Parents: 'pl7.app/parents',
4648
4661
  Sequence: {
4649
4662
  Annotation: {
@@ -4657,14 +4670,29 @@
4657
4670
  },
4658
4671
  Trace: 'pl7.app/trace',
4659
4672
  };
4673
+ const ValueTypeSchema = z.enum(['Int', 'Long', 'Float', 'Double', 'String']);
4660
4674
  const AnnotationJson = {
4661
4675
  [Annotation.DiscreteValues]: z.array(z.string()).or(z.array(z.number())),
4676
+ [Annotation.Graph.Axis.HighCardinality]: z.boolean(),
4677
+ [Annotation.Graph.Axis.LowerLimit]: z.number(),
4678
+ [Annotation.Graph.Axis.UpperLimit]: z.number(),
4679
+ [Annotation.Graph.Axis.SymmetricRange]: z.boolean(),
4680
+ [Annotation.Graph.IsDenseAxis]: z.boolean(),
4681
+ [Annotation.Graph.Palette]: z.object({ mapping: z.record(z.number()), name: z.string() }),
4682
+ [Annotation.Graph.Thresholds]: z.array(z.object({
4683
+ columnId: z.object({ valueType: ValueTypeSchema, name: z.string() }),
4684
+ value: z.number(),
4685
+ })),
4686
+ [Annotation.Graph.TreatAbsentValuesAs]: z.number(),
4662
4687
  [Annotation.Graph.IsVirtual]: z.boolean(),
4663
4688
  [Annotation.HideDataFromUi]: z.boolean(),
4664
4689
  [Annotation.HideDataFromGraphs]: z.boolean(),
4690
+ [Annotation.IsDiscreteFilter]: z.boolean(),
4665
4691
  [Annotation.IsLinkerColumn]: z.boolean(),
4692
+ [Annotation.IsSubset]: z.boolean(),
4666
4693
  [Annotation.Max]: z.number(),
4667
4694
  [Annotation.Min]: z.number(),
4695
+ [Annotation.MultipliesBy]: z.array(z.string()),
4668
4696
  [Annotation.Parents]: z.array(z.string()),
4669
4697
  [Annotation.Sequence.Annotation.Mapping]: z.record(z.string(), z.string()),
4670
4698
  [Annotation.Sequence.IsAnnotation]: z.boolean(),
@@ -6849,7 +6877,7 @@
6849
6877
  }
6850
6878
  }
6851
6879
 
6852
- var version = "1.43.18";
6880
+ var version = "1.43.29";
6853
6881
 
6854
6882
  const PlatformaSDKVersion = version;
6855
6883
 
@@ -7189,7 +7217,7 @@
7189
7217
  if (params.coreColumnPredicate) {
7190
7218
  coreColumns = [];
7191
7219
  for (const c of params.columns)
7192
- if (params.coreColumnPredicate(c.spec))
7220
+ if (params.coreColumnPredicate(getColumnIdAndSpec(c)))
7193
7221
  coreColumns.push(c);
7194
7222
  else
7195
7223
  secondaryColumns.push(c);
@@ -7226,9 +7254,9 @@
7226
7254
  * @returns PlAgDataTableV2 table source
7227
7255
  */
7228
7256
  function createPlDataTableV2(ctx, inputColumns, tableState, ops) {
7229
- if (inputColumns.length === 0)
7230
- return undefined;
7231
7257
  const columns = inputColumns.filter((c) => isLinkerColumn(c.spec) || !isColumnHidden(c.spec));
7258
+ if (columns.length === 0)
7259
+ return undefined;
7232
7260
  const tableStateNormalized = upgradePlDataTableStateV2(tableState);
7233
7261
  const allLabelColumns = getAllLabelColumns(ctx.resultPool);
7234
7262
  if (!allLabelColumns)
@@ -7284,6 +7312,8 @@
7284
7312
  columns
7285
7313
  .filter((c) => isLinkerColumn(c.spec))
7286
7314
  .forEach((c) => hiddenColumns.delete(c.id));
7315
+ // Preserve core columns as they change the shape of join.
7316
+ const coreColumnPredicate = ops?.coreColumnPredicate;
7287
7317
  // Filters decrease the number of result rows, sorting changes the order of result rows
7288
7318
  [...partitionFilters.map((f) => f.column), ...filters.map((f) => f.column), ...sorting.map((s) => s.column)]
7289
7319
  .filter((c) => c.type === 'column')
@@ -7300,7 +7330,7 @@
7300
7330
  partitionFilters,
7301
7331
  filters,
7302
7332
  sorting,
7303
- coreColumnPredicate: ops?.coreColumnPredicate,
7333
+ coreColumnPredicate,
7304
7334
  });
7305
7335
  const visibleHandle = ctx.createPTable(visibleDef);
7306
7336
  return {