@milaboratories/milaboratories.ui-examples.model 1.1.63 → 1.1.65

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.63 build /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
3
+ > @milaboratories/milaboratories.ui-examples.model@1.1.65 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 6.35 KB
15
- ESM dist/index.js.map 14.56 KB
16
- ESM ⚡️ Build success in 300ms
17
- CJS dist/index.cjs 6.46 KB
18
- CJS dist/index.cjs.map 14.65 KB
19
- CJS ⚡️ Build success in 300ms
14
+ ESM dist/index.js 6.43 KB
15
+ ESM dist/index.js.map 14.71 KB
16
+ ESM ⚡️ Build success in 384ms
17
+ CJS dist/index.cjs 6.54 KB
18
+ CJS dist/index.cjs.map 14.80 KB
19
+ CJS ⚡️ Build success in 386ms
20
20
  DTS Build start
21
- DTS ⚡️ Build success in 5715ms
22
- DTS dist/index.d.cts 4.28 KB
23
- DTS dist/index.d.ts 4.28 KB
21
+ DTS ⚡️ Build success in 4787ms
22
+ DTS dist/index.d.cts 4.30 KB
23
+ DTS dist/index.d.ts 4.30 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 189.43 kB │ gzip: 36.74 kB │ map: 406.20 kB
30
- dist/bundle.js 202.44 kB │ gzip: 37.40 kB │ map: 407.79 kB
31
- ✓ built in 1.79s
29
+ dist/bundle.js 189.64 kB │ gzip: 36.78 kB │ map: 406.61 kB
30
+ dist/bundle.js 202.67 kB │ gzip: 37.44 kB │ map: 408.20 kB
31
+ ✓ built in 2.03s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @milaboratories/milaboratories.ui-examples.model
2
2
 
3
+ ## 1.1.65
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [9b15f24]
8
+ - @platforma-sdk/model@1.33.2
9
+
10
+ ## 1.1.64
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [0f511ff]
15
+ - @platforma-sdk/model@1.32.1
16
+
3
17
  ## 1.1.63
4
18
 
5
19
  ### Patch Changes
package/dist/bundle.js CHANGED
@@ -3999,7 +3999,7 @@
3999
3999
  }
4000
4000
  }
4001
4001
  }
4002
- function F(n2) {
4002
+ function F$1(n2) {
4003
4003
  if (!n2 || typeof n2 != "object")
4004
4004
  return false;
4005
4005
  const e = n2;
@@ -4017,7 +4017,7 @@
4017
4017
  }
4018
4018
  }
4019
4019
  function gn(n2) {
4020
- return F(n2) ? n2.type === "JsonPartitioned" || n2.type === "BinaryPartitioned" : false;
4020
+ return F$1(n2) ? n2.type === "JsonPartitioned" || n2.type === "BinaryPartitioned" : false;
4021
4021
  }
4022
4022
  function bn(n2) {
4023
4023
  switch (n2.type) {
@@ -4503,14 +4503,14 @@
4503
4503
  });
4504
4504
  var Xe = Object.defineProperty;
4505
4505
  var Qe = (t, e, n2) => e in t ? Xe(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
4506
- var R = (t, e, n2) => Qe(t, typeof e != "symbol" ? e + "" : e, n2);
4506
+ var F = (t, e, n2) => Qe(t, typeof e != "symbol" ? e + "" : e, n2);
4507
4507
  function re(t) {
4508
4508
  return { type: "Immediate", value: t };
4509
4509
  }
4510
4510
  function ht() {
4511
4511
  return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
4512
4512
  }
4513
- function De(t) {
4513
+ function Re(t) {
4514
4514
  if (t && typeof globalThis.getPlatforma == "function")
4515
4515
  return globalThis.getPlatforma(t);
4516
4516
  if (typeof globalThis.platforma < "u") return globalThis.platforma;
@@ -4538,8 +4538,8 @@
4538
4538
  }
4539
4539
  class I {
4540
4540
  constructor(e, n2 = (r) => r) {
4541
- R(this, "isResolved", false);
4542
- R(this, "resolvedValue");
4541
+ F(this, "isResolved", false);
4542
+ F(this, "resolvedValue");
4543
4543
  this.handle = e, this.postProcess = n2, mt(e, (r) => {
4544
4544
  this.resolvedValue = n2(r), this.isResolved = true;
4545
4545
  });
@@ -4780,7 +4780,7 @@
4780
4780
  return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, d]) => o(u2, d));
4781
4781
  }
4782
4782
  }
4783
- const Fe = "staging", Ke = "main";
4783
+ const De = "staging", Ke = "main";
4784
4784
  const bt = "pl7.app/label", wt = "pl7.app/trace", At = z$2.object({
4785
4785
  type: z$2.string(),
4786
4786
  importance: z$2.number().optional(),
@@ -4789,11 +4789,11 @@
4789
4789
  }), xt = z$2.array(At), Ct = 1e-3, Pt = "__LABEL__", Se = "__LABEL__@1";
4790
4790
  function Ve(t, e, n2 = {}) {
4791
4791
  const r = /* @__PURE__ */ new Map(), i = n2.forceTraceElements !== void 0 && n2.forceTraceElements.length > 0 ? new Set(n2.forceTraceElements) : void 0, s2 = /* @__PURE__ */ new Map(), o = t.map((f2) => {
4792
- var S, D2;
4792
+ var S, R;
4793
4793
  const w2 = e(f2);
4794
4794
  let c2, g, x2;
4795
4795
  "spec" in w2 && typeof w2.spec == "object" ? (c2 = w2.spec, g = w2.prefixTrace, x2 = w2.suffixTrace) : c2 = w2;
4796
- const p2 = (S = c2.annotations) == null ? void 0 : S[bt], A2 = (D2 = c2.annotations) == null ? void 0 : D2[wt], m2 = (A2 ? xt.safeParse(JSON.parse(A2)).data : void 0) ?? [], v = [
4796
+ const p2 = (S = c2.annotations) == null ? void 0 : S[bt], A2 = (R = c2.annotations) == null ? void 0 : R[wt], m2 = (A2 ? xt.safeParse(JSON.parse(A2)).data : void 0) ?? [], v = [
4797
4797
  ...g ?? [],
4798
4798
  ...m2,
4799
4799
  ...x2 ?? []
@@ -4935,7 +4935,7 @@
4935
4935
  }
4936
4936
  function It(t) {
4937
4937
  if (t === void 0) return;
4938
- if (F(t))
4938
+ if (F$1(t))
4939
4939
  return _t(t);
4940
4940
  const e = St(t);
4941
4941
  if (!e) return;
@@ -5050,7 +5050,7 @@
5050
5050
  }
5051
5051
  function Tt(t) {
5052
5052
  if (t !== void 0) {
5053
- if (F(t)) return t;
5053
+ if (F$1(t)) return t;
5054
5054
  if (yn(t)) return bn(t);
5055
5055
  if (t instanceof O) return ye(t);
5056
5056
  throw new Error(`Unexpected input type: ${typeof t}`);
@@ -5138,7 +5138,7 @@
5138
5138
  if (t)
5139
5139
  return t.map((e) => [e.axisIdx, e.value]);
5140
5140
  }
5141
- function Rt(t, e) {
5141
+ function Ft(t, e) {
5142
5142
  if (!e || e.length === 0) return t;
5143
5143
  const n2 = [...e].sort((r, i) => r[0] - i[0]);
5144
5144
  return ke({ id: t, axisFilters: n2 });
@@ -5148,7 +5148,7 @@
5148
5148
  const e = t, n2 = e.domain && typeof e.domain == "object" && Object.values(e.domain).some((i) => typeof i == "object" && i !== null && "anchor" in i), r = e.axes && Array.isArray(e.axes) && e.axes.some((i) => typeof i == "object" && i !== null && "anchor" in i);
5149
5149
  return !!e.domainAnchor || n2 || r;
5150
5150
  }
5151
- function Dt(t) {
5151
+ function Rt(t) {
5152
5152
  if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
5153
5153
  return [];
5154
5154
  const e = t.axes.map((n2, r) => typeof n2 == "object" && "split" in n2 && n2.split === true ? r : -1).filter((n2) => n2 !== -1);
@@ -5158,9 +5158,9 @@
5158
5158
  }
5159
5159
  class ve {
5160
5160
  constructor() {
5161
- R(this, "defaultProviderStore", []);
5162
- R(this, "providers", [new Et(this.defaultProviderStore)]);
5163
- R(this, "axisLabelProviders", []);
5161
+ F(this, "defaultProviderStore", []);
5162
+ F(this, "providers", [new Et(this.defaultProviderStore)]);
5163
+ F(this, "axisLabelProviders", []);
5164
5164
  }
5165
5165
  addColumnProvider(e) {
5166
5166
  return this.providers.push(e), this;
@@ -5215,12 +5215,12 @@
5215
5215
  if (u2(S.spec)) continue;
5216
5216
  if (p2.has(S.id))
5217
5217
  throw new Error(`Duplicate column id ${S.id} in provider ${C2.constructor.name}`);
5218
- const D2 = _n(S.spec);
5219
- b.has(D2) || (p2.add(S.id), b.add(D2), A2.push(S));
5218
+ const R = _n(S.spec);
5219
+ b.has(R) || (p2.add(S.id), b.add(R), A2.push(S));
5220
5220
  }
5221
5221
  }
5222
5222
  if (A2.length === 0) continue;
5223
- const m2 = Dt(c2), v = m2.length > 0;
5223
+ const m2 = Rt(c2), v = m2.length > 0;
5224
5224
  for (const C2 of A2) {
5225
5225
  if (!f(C2.spec)) continue;
5226
5226
  const L = C2.spec;
@@ -5232,7 +5232,7 @@
5232
5232
  }
5233
5233
  if (!gn(S))
5234
5234
  throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${S.type} for column ${C2.id}`);
5235
- const D2 = It(S), k2 = m2[m2.length - 1];
5235
+ const R = It(S), k2 = m2[m2.length - 1];
5236
5236
  if (k2 >= S.partitionKeyLength)
5237
5237
  throw new Error(`Not enough partition keys (${S.partitionKeyLength}) for requested split axes (max index ${k2}) in column ${L.name}`);
5238
5238
  const W = m2.map((_) => this.findLabels(p$1(L.axesSpec[_]))), V = [], N2 = (_, G2) => {
@@ -5242,9 +5242,9 @@
5242
5242
  return;
5243
5243
  }
5244
5244
  const $ = m2[G2];
5245
- if ($ >= D2.length)
5246
- throw new Error(`Axis index ${$} out of bounds for unique keys array (length ${D2.length}) during split key generation for column ${C2.id}`);
5247
- const J = D2[$];
5245
+ if ($ >= R.length)
5246
+ throw new Error(`Axis index ${$} out of bounds for unique keys array (length ${R.length}) during split key generation for column ${C2.id}`);
5247
+ const J = R[$];
5248
5248
  if (!J || J.length === 0) {
5249
5249
  V.length = 0;
5250
5250
  return;
@@ -5293,7 +5293,7 @@
5293
5293
  for (const { value: c2, label: g } of f$1) {
5294
5294
  const { originalColumn: x2, spec: p2 } = c2, A2 = c2.type === "split" ? c2.axisFilters : void 0, m2 = kt(A2);
5295
5295
  let v;
5296
- r ? v = r.deriveS(p2, m2) : v = Rt(x2.id, m2);
5296
+ r ? v = r.deriveS(p2, m2) : v = Ft(x2.id, m2);
5297
5297
  let C2 = { ...c2.adjustedSpec };
5298
5298
  o && (C2 = {
5299
5299
  ...C2,
@@ -5343,9 +5343,9 @@
5343
5343
  function Ie(t) {
5344
5344
  return Kn$1(t, (e) => e instanceof O ? e.handle : yn(e) ? hn(e, (n2) => n2.handle) : e);
5345
5345
  }
5346
- class Ft {
5346
+ class Dt {
5347
5347
  constructor() {
5348
- R(this, "ctx", h());
5348
+ F(this, "ctx", h());
5349
5349
  }
5350
5350
  /**
5351
5351
  * @deprecated use getOptions()
@@ -5614,11 +5614,11 @@
5614
5614
  }
5615
5615
  class te {
5616
5616
  constructor() {
5617
- R(this, "ctx");
5618
- R(this, "args");
5619
- R(this, "uiState");
5620
- R(this, "_activeArgsCache");
5621
- R(this, "resultPool", new Ft());
5617
+ F(this, "ctx");
5618
+ F(this, "args");
5619
+ F(this, "uiState");
5620
+ F(this, "_activeArgsCache");
5621
+ F(this, "resultPool", new Dt());
5622
5622
  this.ctx = h(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
5623
5623
  }
5624
5624
  /**
@@ -5641,7 +5641,7 @@
5641
5641
  );
5642
5642
  }
5643
5643
  get prerun() {
5644
- return this.getNamedAccessor(Fe);
5644
+ return this.getNamedAccessor(De);
5645
5645
  }
5646
5646
  get outputs() {
5647
5647
  return this.getNamedAccessor(Ke);
@@ -5685,8 +5685,17 @@
5685
5685
  getCurrentUnstableMarker() {
5686
5686
  return this.ctx.getCurrentUnstableMarker();
5687
5687
  }
5688
+ logInfo(e) {
5689
+ this.ctx.logInfo(e);
5690
+ }
5691
+ logWarn(e) {
5692
+ this.ctx.logWarn(e);
5693
+ }
5694
+ logError(e) {
5695
+ this.ctx.logError(e);
5696
+ }
5688
5697
  }
5689
- const Y = "1.31.17";
5698
+ const Y = "1.33.2";
5690
5699
  function Kt(t) {
5691
5700
  return t.__renderLambda === true;
5692
5701
  }
@@ -5892,13 +5901,13 @@
5892
5901
  Object.entries(this._outputs).map(([n2, r]) => [n2, de(r)])
5893
5902
  )
5894
5903
  };
5895
- return ht() ? De({ sdkVersion: Y }) : { config: e };
5904
+ return ht() ? Re({ sdkVersion: Y }) : { config: e };
5896
5905
  }
5897
5906
  }
5898
- function Gt(t) {
5907
+ function Wt(t) {
5899
5908
  return t.axesSpec.length === 1 && t.name === "pl7.app/label";
5900
5909
  }
5901
- function Ue(t) {
5910
+ function Me(t) {
5902
5911
  return new ve().addAxisLabelProvider(t).addColumnProvider(t).getColumns({
5903
5912
  name: "pl7.app/label",
5904
5913
  axes: [{}]
@@ -5908,7 +5917,7 @@
5908
5917
  function Be(t, e) {
5909
5918
  const n2 = [], r = [];
5910
5919
  for (const a of t)
5911
- Gt(a.spec) ? n2.push(a) : r.push(a);
5920
+ Wt(a.spec) ? n2.push(a) : r.push(a);
5912
5921
  const i = [];
5913
5922
  for (const a of r)
5914
5923
  for (const l2 of a.spec.axesSpec) {
@@ -5986,7 +5995,7 @@
5986
5995
  function Kn(t, e, n2, r) {
5987
5996
  var u2, d;
5988
5997
  Array.isArray(r) && (r = { filters: r });
5989
- const i = (r == null ? void 0 : r.coreJoinType) ?? "full", s2 = [...(r == null ? void 0 : r.filters) ?? [], ...((u2 = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : u2.filters) ?? []], o = ((d = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : d.sorting) ?? [], a = Ue(t.resultPool);
5998
+ const i = (r == null ? void 0 : r.coreJoinType) ?? "full", s2 = [...(r == null ? void 0 : r.filters) ?? [], ...((u2 = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : u2.filters) ?? []], o = ((d = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : d.sorting) ?? [], a = Me(t.resultPool);
5990
5999
  if (!a) return;
5991
6000
  const l2 = Be(e.map(On), a);
5992
6001
  if (We([...e, ...l2]))
@@ -5994,25 +6003,25 @@
5994
6003
  Ge(e, l2, i, s2, o, r == null ? void 0 : r.coreColumnPredicate)
5995
6004
  );
5996
6005
  }
5997
- function Ht(t) {
6006
+ function Gt(t) {
5998
6007
  var e;
5999
6008
  return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "hidden";
6000
6009
  }
6001
- function qt(t) {
6010
+ function Ht(t) {
6002
6011
  var e;
6003
6012
  return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "optional";
6004
6013
  }
6005
6014
  function jn(t, e, n2, r, i) {
6006
6015
  var g, x2;
6007
- const s2 = (i == null ? void 0 : i.coreJoinType) ?? "full", o = [...(i == null ? void 0 : i.filters) ?? [], ...((g = r == null ? void 0 : r.pTableParams) == null ? void 0 : g.filters) ?? []], a = ((x2 = r == null ? void 0 : r.pTableParams) == null ? void 0 : x2.sorting) ?? [], l2 = e.filter((p2) => !Ht(p2.spec)), u2 = l2.find((p2) => n2(p2.spec));
6016
+ const s2 = (i == null ? void 0 : i.coreJoinType) ?? "full", o = [...(i == null ? void 0 : i.filters) ?? [], ...((g = r == null ? void 0 : r.pTableParams) == null ? void 0 : g.filters) ?? []], a = ((x2 = r == null ? void 0 : r.pTableParams) == null ? void 0 : x2.sorting) ?? [], l2 = e.filter((p2) => !Gt(p2.spec)), u2 = l2.find((p2) => n2(p2.spec));
6008
6017
  if (!u2) return;
6009
- const d = Ue(t.resultPool);
6018
+ const d = Me(t.resultPool);
6010
6019
  if (!d) return;
6011
6020
  const y = new Set((() => {
6012
6021
  var A2, m2;
6013
6022
  if (s2 === "inner") return [];
6014
6023
  const p2 = (m2 = (A2 = r == null ? void 0 : r.gridState.columnVisibility) == null ? void 0 : A2.hiddenColIds) == null ? void 0 : m2.map(ne).filter((v) => v.type === "column").map((v) => v.id);
6015
- return p2 || l2.filter((v) => qt(v.spec)).map((v) => v.id);
6024
+ return p2 || l2.filter((v) => Ht(v.spec)).map((v) => v.id);
6016
6025
  })());
6017
6026
  y.delete(u2.id), [...o.map((p2) => p2.column), ...a.map((p2) => p2.column)].filter((p2) => p2.type === "column").map((p2) => y.delete(p2.id));
6018
6027
  const b = l2.filter((p2) => !y.has(p2.id)), f2 = Be(b.map(On), d), w2 = [
@@ -6211,6 +6220,7 @@
6211
6220
  { type: "link", href: "/pl-ag-data-table", label: "PlAgDataTable" },
6212
6221
  { type: "link", href: "/pl-ag-data-table-v2", label: "PlAgDataTableV2" },
6213
6222
  { type: "link", href: "/pl-splash-page", label: "PlSplashPage" },
6223
+ { type: "link", href: "/pl-file-input-page", label: "PlFileInputPage" },
6214
6224
  { type: "link", href: "/errors", label: "Errors" },
6215
6225
  { type: "link", href: "/text-fields", label: "PlTextField" },
6216
6226
  { type: "link", href: "/tabs", label: "PlTabs" },