@milaboratories/milaboratories.ui-examples.model 1.1.51 → 1.1.53

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,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.1.51 build /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
3
+ > @milaboratories/milaboratories.ui-examples.model@1.1.53 build /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
4
4
  > tsup && vite build && block-tools build-model
5
5
 
6
6
  CLI Building entry: src/index.ts
@@ -11,21 +11,21 @@
11
11
  CLI Cleaning output folder
12
12
  CJS Build start
13
13
  ESM Build start
14
- ESM dist/index.js 4.87 KB
15
- ESM dist/index.js.map 11.51 KB
16
- ESM ⚡️ Build success in 378ms
17
- CJS dist/index.cjs 5.01 KB
18
- CJS dist/index.cjs.map 11.55 KB
19
- CJS ⚡️ Build success in 379ms
14
+ CJS dist/index.cjs 6.46 KB
15
+ CJS dist/index.cjs.map 14.65 KB
16
+ CJS ⚡️ Build success in 506ms
17
+ ESM dist/index.js 6.35 KB
18
+ ESM dist/index.js.map 14.56 KB
19
+ ESM ⚡️ Build success in 506ms
20
20
  DTS Build start
21
- DTS ⚡️ Build success in 4303ms
22
- DTS dist/index.d.cts 2.43 KB
23
- DTS dist/index.d.ts 2.43 KB
21
+ DTS ⚡️ Build success in 4314ms
22
+ DTS dist/index.d.cts 4.28 KB
23
+ DTS dist/index.d.ts 4.28 KB
24
24
  vite v5.4.11 building for production...
25
25
  transforming...
26
26
  ✓ 9 modules transformed.
27
27
  rendering chunks...
28
28
  computing gzip size...
29
- dist/bundle.js 184.73 kB │ gzip: 35.86 kB │ map: 395.85 kB
30
- dist/bundle.js 197.45 kB │ gzip: 36.50 kB │ map: 397.40 kB
31
- ✓ built in 2.10s
29
+ dist/bundle.js 187.91 kB │ gzip: 36.32 kB │ map: 400.46 kB
30
+ dist/bundle.js 200.83 kB │ gzip: 36.95 kB │ map: 402.03 kB
31
+ ✓ built in 1.69s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @milaboratories/milaboratories.ui-examples.model
2
2
 
3
+ ## 1.1.53
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [d42b276]
8
+ - @platforma-sdk/model@1.30.3
9
+
10
+ ## 1.1.52
11
+
12
+ ### Patch Changes
13
+
14
+ - 59e2bd3: Fix PlAgDataTableSettingsPTable type
15
+
3
16
  ## 1.1.51
4
17
 
5
18
  ### Patch Changes
package/dist/bundle.js CHANGED
@@ -5322,7 +5322,7 @@
5322
5322
  getOptions(e, n2) {
5323
5323
  const r = typeof e == "function" ? e : Kn(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
5324
5324
  let s2 = {}, o = false;
5325
- return typeof n2 < "u" && (typeof n2 == "function" ? s2 = n2 : typeof n2 == "object" && ("includeNativeLabel" in n2 || "separator" in n2 || "addLabelAsSuffix" in n2 ? s2 = n2 : (n2 = n2, s2 = n2.label ?? {}, o = n2.requireEnrichments ?? false))), typeof s2 == "object" ? Re(i, (a) => a.obj, s2 ?? {}).map(({ value: { ref: a }, label: l2 }) => ({
5325
+ return typeof n2 < "u" && (typeof n2 == "function" ? s2 = n2 : typeof n2 == "object" && ("includeNativeLabel" in n2 || "separator" in n2 || "addLabelAsSuffix" in n2 ? s2 = n2 : (n2 = n2, s2 = n2.label ?? {}, o = n2.refsWithEnrichments ?? false))), typeof s2 == "object" ? Re(i, (a) => a.obj, s2 ?? {}).map(({ value: { ref: a }, label: l2 }) => ({
5326
5326
  ref: vn(a, o),
5327
5327
  label: l2
5328
5328
  })) : i.map(({ ref: a, obj: l2 }) => ({
@@ -5652,7 +5652,7 @@
5652
5652
  return this.ctx.getCurrentUnstableMarker();
5653
5653
  }
5654
5654
  }
5655
- const W = "1.30.0";
5655
+ const W = "1.30.3";
5656
5656
  function Lt(t) {
5657
5657
  return t.__renderLambda === true;
5658
5658
  }
@@ -5861,6 +5861,9 @@
5861
5861
  return st() ? Ee({ sdkVersion: W }) : { config: e };
5862
5862
  }
5863
5863
  }
5864
+ function Tt(t) {
5865
+ return JSON.parse(t);
5866
+ }
5864
5867
  function Ve(t) {
5865
5868
  return new ge().addAxisLabelProvider(t).addColumnProvider(t).getColumns({
5866
5869
  name: "pl7.app/label",
@@ -5952,6 +5955,44 @@
5952
5955
  Je(e, l2, i, s2, o, r == null ? void 0 : r.coreColumnPredicate)
5953
5956
  );
5954
5957
  }
5958
+ function Et(t) {
5959
+ var e;
5960
+ return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "optional";
5961
+ }
5962
+ function _n(t, e, n2, r, i) {
5963
+ var p2, x2;
5964
+ const s2 = (i == null ? void 0 : i.coreJoinType) ?? "full", o = [...(i == null ? void 0 : i.filters) ?? [], ...((p2 = r == null ? void 0 : r.pTableParams) == null ? void 0 : p2.filters) ?? []], a = ((x2 = r == null ? void 0 : r.pTableParams) == null ? void 0 : x2.sorting) ?? [], l2 = e.find((c2) => n2(c2.spec));
5965
+ if (!l2) return;
5966
+ const u2 = Ve(t.resultPool);
5967
+ if (!u2) return;
5968
+ const y2 = new Set((() => {
5969
+ var v, g;
5970
+ if (s2 === "inner") return [];
5971
+ const c2 = (g = (v = r == null ? void 0 : r.gridState.columnVisibility) == null ? void 0 : v.hiddenColIds) == null ? void 0 : g.map(Tt).filter((b) => b.type === "column").map((b) => b.id);
5972
+ return c2 || e.filter((b) => Et(b.spec)).map((b) => b.id);
5973
+ })());
5974
+ y2.delete(l2.id), [...o.map((c2) => c2.column), ...a.map((c2) => c2.column)].filter((c2) => c2.type === "column").map((c2) => y2.delete(c2.id));
5975
+ const w2 = e.filter((c2) => !y2.has(c2.id)), d = Ke(w2.map(Cn$1), u2), f2 = [
5976
+ ...l2.spec.axesSpec.map((c2) => ({
5977
+ type: "axis",
5978
+ id: m$2(c2),
5979
+ spec: c2
5980
+ })),
5981
+ ...[...e, ...d].map((c2) => ({
5982
+ type: "column",
5983
+ id: c2.id,
5984
+ spec: c2.spec
5985
+ }))
5986
+ ];
5987
+ if (!$e([...w2, ...d])) return;
5988
+ const h = t.createPTable(
5989
+ Je(e, d, s2, o, a, i == null ? void 0 : i.coreColumnPredicate)
5990
+ );
5991
+ return {
5992
+ tableSpec: f2,
5993
+ tableHandle: h
5994
+ };
5995
+ }
5955
5996
  const ImportFileHandleSchema = z$1.string().optional().refine(
5956
5997
  (_a) => true
5957
5998
  );
@@ -6041,6 +6082,62 @@
6041
6082
  ]
6042
6083
  }
6043
6084
  );
6085
+ }).output("ptV2", (ctx) => {
6086
+ var _a, _b, _c, _d, _e;
6087
+ if (!((_c = (_b = (_a = ctx.uiState) == null ? void 0 : _a.dataTableState) == null ? void 0 : _b.tableState.pTableParams) == null ? void 0 : _c.filters)) return void 0;
6088
+ const data = times(ctx.args.tableNumRows ?? 0, (i) => {
6089
+ const v = i + 1;
6090
+ return {
6091
+ key: [v, v + 0.1],
6092
+ val: v.toString()
6093
+ };
6094
+ });
6095
+ return _n(
6096
+ ctx,
6097
+ [
6098
+ {
6099
+ id: "example",
6100
+ spec: {
6101
+ kind: "PColumn",
6102
+ valueType: "String",
6103
+ name: "example",
6104
+ annotations: {
6105
+ "pl7.app/label": "String column",
6106
+ "pl7.app/discreteValues": '["up","down"]'
6107
+ },
6108
+ axesSpec: [
6109
+ {
6110
+ type: "Int",
6111
+ name: "index",
6112
+ annotations: {
6113
+ "pl7.app/label": "Int axis",
6114
+ "pl7.app/discreteValues": "[1,2]"
6115
+ }
6116
+ },
6117
+ {
6118
+ type: "Float",
6119
+ name: "value",
6120
+ annotations: {
6121
+ "pl7.app/label": "Float axis",
6122
+ "pl7.app/table/visibility": "optional"
6123
+ }
6124
+ }
6125
+ ]
6126
+ },
6127
+ data
6128
+ }
6129
+ ],
6130
+ Kn({
6131
+ name: "example"
6132
+ }),
6133
+ ctx.uiState.dataTableState.tableState,
6134
+ {
6135
+ filters: [
6136
+ ...((_d = ctx.uiState.dataTableState.tableState.pTableParams) == null ? void 0 : _d.filters) ?? [],
6137
+ ...((_e = ctx.uiState.dataTableState.filterModel) == null ? void 0 : _e.filters) ?? []
6138
+ ]
6139
+ }
6140
+ );
6044
6141
  }).title((ctx) => {
6045
6142
  if (ctx.args.numbers.length === 5) {
6046
6143
  throw new Error("block title: test error");
@@ -6069,6 +6166,7 @@
6069
6166
  { type: "link", href: "/ag-grid-vue", label: "AgGridVue" },
6070
6167
  { type: "link", href: "/ag-grid-vue-with-builder", label: "AgGridVue with builder" },
6071
6168
  { type: "link", href: "/pl-ag-data-table", label: "PlAgDataTable" },
6169
+ { type: "link", href: "/pl-ag-data-table-v2", label: "PlAgDataTableV2" },
6072
6170
  { type: "link", href: "/pl-splash-page", label: "PlSplashPage" },
6073
6171
  { type: "link", href: "/errors", label: "Errors" },
6074
6172
  { type: "link", href: "/text-fields", label: "PlTextField" },