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

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.16 build /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
3
+ > @milaboratories/milaboratories.ui-examples.model@1.3.18 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 3.8s
10
+ created dist, dist in 973ms
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 4.7s
15
+ created dist in 1.3s
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.16 lint /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
3
+ > @milaboratories/milaboratories.ui-examples.model@1.3.18 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.16 type-check /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
3
+ > @milaboratories/milaboratories.ui-examples.model@1.3.18 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,18 @@
1
1
  # @milaboratories/milaboratories.ui-examples.model
2
2
 
3
+ ## 1.3.18
4
+
5
+ ### Patch Changes
6
+
7
+ - a12641f: Updated PlAgDataTableV2 example.
8
+
9
+ ## 1.3.17
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [fc75a16]
14
+ - @platforma-sdk/model@1.50.0
15
+
3
16
  ## 1.3.16
4
17
 
5
18
  ### Patch Changes
package/dist/bundle.js CHANGED
@@ -7378,7 +7378,7 @@
7378
7378
  }
7379
7379
  }
7380
7380
 
7381
- var version = "1.49.0";
7381
+ var version = "1.50.0";
7382
7382
 
7383
7383
  const PlatformaSDKVersion = version;
7384
7384
 
@@ -7449,6 +7449,14 @@
7449
7449
  retentiveOutput(key, rf) {
7450
7450
  return this.output(key, rf, { retentive: true });
7451
7451
  }
7452
+ /** Shortcut for {@link output} with withStatus flag set to true. */
7453
+ outputWithStatus(key, rf) {
7454
+ return this.output(key, rf, { withStatus: true });
7455
+ }
7456
+ /** Shortcut for {@link output} with retentive and withStatus flags set to true. */
7457
+ retentiveOutputWithStatus(key, rf) {
7458
+ return this.output(key, rf, { retentive: true, withStatus: true });
7459
+ }
7452
7460
  argsValid(cfgOrRf) {
7453
7461
  if (typeof cfgOrRf === 'function') {
7454
7462
  tryRegisterCallback('inputsValid', () => cfgOrRf(new RenderCtx()));
@@ -7605,7 +7613,15 @@
7605
7613
  return { config };
7606
7614
  // normal operation inside the UI
7607
7615
  else
7608
- return getPlatformaInstance({ sdkVersion: PlatformaSDKVersion, apiVersion: platformaApiVersion });
7616
+ return {
7617
+ ...getPlatformaInstance({ sdkVersion: PlatformaSDKVersion, apiVersion: platformaApiVersion }),
7618
+ blockModelInfo: {
7619
+ outputs: Object.fromEntries(Object.entries(this.config.outputs)
7620
+ .map(([key, value]) => [key, {
7621
+ withStatus: Boolean(isConfigLambda(value) && value.withStatus),
7622
+ }])),
7623
+ },
7624
+ };
7609
7625
  }
7610
7626
  }
7611
7627
 
@@ -8009,7 +8025,7 @@
8009
8025
  ];
8010
8026
  return rowCount > 0 ? sheets : [];
8011
8027
  })
8012
- .output('ptV2', (ctx) => {
8028
+ .outputWithStatus('ptV2', (ctx) => {
8013
8029
  const rowCount = ctx.uiState.dataTableV2.numRows ?? 0;
8014
8030
  const makePartitionId = (rowCount, i) => Math.floor((2 * i) / (rowCount + 1));
8015
8031
  const columns = [