@milaboratories/milaboratories.ui-examples.model 1.2.44 → 1.2.46

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.44 build /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
3
+ > @milaboratories/milaboratories.ui-examples.model@1.2.46 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 7.2s
10
+ created dist, dist in 5.3s
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 6.6s
15
+ created dist in 2.8s
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.44 type-check /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
3
+ > @milaboratories/milaboratories.ui-examples.model@1.2.46 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,19 @@
1
1
  # @milaboratories/milaboratories.ui-examples.model
2
2
 
3
+ ## 1.2.46
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [31a1ac2]
8
+ - @platforma-sdk/model@1.44.14
9
+
10
+ ## 1.2.45
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [fcdb249]
15
+ - @platforma-sdk/model@1.44.13
16
+
3
17
  ## 1.2.44
4
18
 
5
19
  ### Patch Changes
package/dist/bundle.js CHANGED
@@ -5677,9 +5677,11 @@
5677
5677
  const RT_RESOURCE_MAP_PARTITIONED = PCD_PREFIX + 'Partitioned/ResourceMap';
5678
5678
  const RT_JSON_PARTITIONED = PCD_PREFIX + 'JsonPartitioned';
5679
5679
  const RT_BINARY_PARTITIONED = PCD_PREFIX + 'BinaryPartitioned';
5680
+ const RT_PARQUET_PARTITIONED = PCD_PREFIX + 'ParquetPartitioned';
5680
5681
  const PCD_SUP_PREFIX = PCD_PREFIX + 'Partitioned/';
5681
5682
  const RT_JSON_SUPER_PARTITIONED = PCD_SUP_PREFIX + 'JsonPartitioned';
5682
5683
  const RT_BINARY_SUPER_PARTITIONED = PCD_SUP_PREFIX + 'BinaryPartitioned';
5684
+ const RT_PARQUET_SUPER_PARTITIONED = PCD_SUP_PREFIX + 'ParquetPartitioned';
5683
5685
  const removeIndexSuffix = (keyStr) => {
5684
5686
  if (keyStr.endsWith('.index')) {
5685
5687
  return { baseKey: keyStr.substring(0, keyStr.length - 6), type: 'index' };
@@ -5710,10 +5712,12 @@
5710
5712
  break;
5711
5713
  case RT_JSON_PARTITIONED:
5712
5714
  case RT_BINARY_PARTITIONED:
5715
+ case RT_PARQUET_PARTITIONED:
5713
5716
  keyLength = meta['partitionKeyLength'];
5714
5717
  break;
5715
5718
  case RT_BINARY_SUPER_PARTITIONED:
5716
5719
  case RT_JSON_SUPER_PARTITIONED:
5720
+ case RT_PARQUET_SUPER_PARTITIONED:
5717
5721
  keyLength = meta['superPartitionKeyLength'] + meta['partitionKeyLength'];
5718
5722
  break;
5719
5723
  }
@@ -5721,6 +5725,7 @@
5721
5725
  case RT_RESOURCE_MAP:
5722
5726
  case RT_JSON_PARTITIONED:
5723
5727
  case RT_BINARY_PARTITIONED:
5728
+ case RT_PARQUET_PARTITIONED:
5724
5729
  for (let keyStr of acc.listInputFields()) {
5725
5730
  if (rt === RT_BINARY_PARTITIONED) {
5726
5731
  keyStr = removeIndexSuffix(keyStr).baseKey;
@@ -5732,6 +5737,7 @@
5732
5737
  case RT_RESOURCE_MAP_PARTITIONED:
5733
5738
  case RT_BINARY_SUPER_PARTITIONED:
5734
5739
  case RT_JSON_SUPER_PARTITIONED:
5740
+ case RT_PARQUET_SUPER_PARTITIONED:
5735
5741
  for (const supKeyStr of acc.listInputFields()) {
5736
5742
  const keyPrefix = [...JSON.parse(supKeyStr)];
5737
5743
  const value = acc.resolve({ field: supKeyStr, assertFieldType: 'Input' });
@@ -5750,7 +5756,7 @@
5750
5756
  return { data, keyLength };
5751
5757
  }
5752
5758
  function getUniquePartitionKeysForDataEntries(list) {
5753
- if (list.type !== 'JsonPartitioned' && list.type !== 'BinaryPartitioned')
5759
+ if (list.type !== 'JsonPartitioned' && list.type !== 'BinaryPartitioned' && list.type !== 'ParquetPartitioned')
5754
5760
  throw new Error(`Splitting requires Partitioned DataInfoEntries, got ${list.type}`);
5755
5761
  const { parts, partitionKeyLength } = list;
5756
5762
  const result = [];
@@ -5809,7 +5815,9 @@
5809
5815
  const meta = acc.getDataAsJson();
5810
5816
  // Prevent recursive super-partitioned resources
5811
5817
  if (keyPrefix.length > 0
5812
- && (resourceType === RT_JSON_SUPER_PARTITIONED || resourceType === RT_BINARY_SUPER_PARTITIONED)) {
5818
+ && (resourceType === RT_JSON_SUPER_PARTITIONED
5819
+ || resourceType === RT_BINARY_SUPER_PARTITIONED
5820
+ || resourceType === RT_PARQUET_SUPER_PARTITIONED)) {
5813
5821
  throw new Error(`Unexpected nested super-partitioned resource: ${resourceType}`);
5814
5822
  }
5815
5823
  switch (resourceType) {
@@ -5877,6 +5885,24 @@
5877
5885
  parts,
5878
5886
  };
5879
5887
  }
5888
+ case RT_PARQUET_PARTITIONED: {
5889
+ if (typeof meta?.partitionKeyLength !== 'number') {
5890
+ throw new Error(`Missing partitionKeyLength in metadata for ${resourceType}`);
5891
+ }
5892
+ const parts = [];
5893
+ for (const keyStr of acc.listInputFields()) {
5894
+ const value = acc.resolve({ field: keyStr, assertFieldType: 'Input' });
5895
+ if (value === undefined)
5896
+ return undefined;
5897
+ const key = [...keyPrefix, ...JSON.parse(keyStr)];
5898
+ parts.push({ key, value });
5899
+ }
5900
+ return {
5901
+ type: 'ParquetPartitioned',
5902
+ partitionKeyLength: meta.partitionKeyLength,
5903
+ parts,
5904
+ };
5905
+ }
5880
5906
  case RT_JSON_SUPER_PARTITIONED: {
5881
5907
  if (typeof meta?.superPartitionKeyLength !== 'number'
5882
5908
  || typeof meta?.partitionKeyLength !== 'number') {
@@ -5935,6 +5961,35 @@
5935
5961
  parts,
5936
5962
  };
5937
5963
  }
5964
+ case RT_PARQUET_SUPER_PARTITIONED: {
5965
+ if (typeof meta?.superPartitionKeyLength !== 'number'
5966
+ || typeof meta?.partitionKeyLength !== 'number') {
5967
+ throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${resourceType}`);
5968
+ }
5969
+ const totalKeyLength = meta.superPartitionKeyLength + meta.partitionKeyLength;
5970
+ const parts = [];
5971
+ // Process all super partitions
5972
+ for (const supKeyStr of acc.listInputFields()) {
5973
+ const superPartition = acc.resolve({ field: supKeyStr, assertFieldType: 'Input' });
5974
+ if (superPartition === undefined)
5975
+ return undefined;
5976
+ // Validate inner type
5977
+ if (superPartition.resourceType.name !== RT_PARQUET_PARTITIONED) {
5978
+ throw new Error(`Expected ${RT_PARQUET_PARTITIONED} inside ${resourceType}, but got ${superPartition.resourceType.name}`);
5979
+ }
5980
+ const innerResult = parsePColumnData(superPartition, JSON.parse(supKeyStr));
5981
+ if (innerResult === undefined)
5982
+ return undefined;
5983
+ if (innerResult.type !== 'ParquetPartitioned')
5984
+ throw new Error(`Unexpected inner result type for ${resourceType}: ${innerResult.type}`);
5985
+ parts.push(...innerResult.parts);
5986
+ }
5987
+ return {
5988
+ type: 'ParquetPartitioned',
5989
+ partitionKeyLength: totalKeyLength,
5990
+ parts,
5991
+ };
5992
+ }
5938
5993
  default:
5939
5994
  throw new Error(`Unknown resource type: ${resourceType}`);
5940
5995
  }
@@ -6882,7 +6937,7 @@
6882
6937
  }
6883
6938
  }
6884
6939
 
6885
- var version = "1.44.8";
6940
+ var version = "1.44.14";
6886
6941
 
6887
6942
  const PlatformaSDKVersion = version;
6888
6943