@milaboratories/milaboratories.ui-examples.model 1.1.15 → 1.1.17

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,5 +1,5 @@
1
1
 
2
- > @milaboratories/milaboratories.ui-examples.model@1.1.15 build /home/runner/work/platforma/platforma/etc/blocks/ui-examples/model
2
+ > @milaboratories/milaboratories.ui-examples.model@1.1.17 build /home/runner/work/platforma/platforma/etc/blocks/ui-examples/model
3
3
  > tsup && vite build && block-tools build-model
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -10,21 +10,21 @@
10
10
  CLI Cleaning output folder
11
11
  CJS Build start
12
12
  ESM Build start
13
- ESM dist/index.js 2.98 KB
14
- ESM dist/index.js.map 7.12 KB
15
- ESM ⚡️ Build success in 79ms
16
- CJS dist/index.cjs 3.02 KB
17
- CJS dist/index.cjs.map 7.16 KB
18
- CJS ⚡️ Build success in 79ms
13
+ ESM dist/index.js 3.06 KB
14
+ ESM dist/index.js.map 7.28 KB
15
+ ESM ⚡️ Build success in 77ms
16
+ CJS dist/index.cjs 3.11 KB
17
+ CJS dist/index.cjs.map 7.32 KB
18
+ CJS ⚡️ Build success in 77ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 846ms
21
- DTS dist/index.d.cts 1.43 KB
22
- DTS dist/index.d.ts 1.43 KB
20
+ DTS ⚡️ Build success in 823ms
21
+ DTS dist/index.d.cts 1.46 KB
22
+ DTS dist/index.d.ts 1.46 KB
23
23
  vite v5.4.11 building for production...
24
24
  transforming...
25
25
  ✓ 4 modules transformed.
26
26
  rendering chunks...
27
27
  computing gzip size...
28
- dist/bundle.js 145.23 kB │ gzip: 26.62 kB │ map: 317.47 kB
29
- dist/bundle.js 155.47 kB │ gzip: 27.13 kB │ map: 318.59 kB
30
- ✓ built in 419ms
28
+ dist/bundle.js 145.40 kB │ gzip: 26.65 kB │ map: 317.93 kB
29
+ dist/bundle.js 155.64 kB │ gzip: 27.15 kB │ map: 319.06 kB
30
+ ✓ built in 389ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @milaboratories/milaboratories.ui-examples.model
2
2
 
3
+ ## 1.1.17
4
+
5
+ ### Patch Changes
6
+
7
+ - 19c273b: SDK Eslint config
8
+
9
+ ## 1.1.16
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [388c9d2]
14
+ - @platforma-sdk/model@1.22.18
15
+
3
16
  ## 1.1.15
4
17
 
5
18
  ### Patch Changes
package/dist/bundle.js CHANGED
@@ -3967,11 +3967,11 @@
3967
3967
  function i(t) {
3968
3968
  return t.kind === "PColumn";
3969
3969
  }
3970
- function W(t) {
3970
+ function W$1(t) {
3971
3971
  return i(t.spec);
3972
3972
  }
3973
3973
  function dt(t) {
3974
- if (!W(t)) throw new Error(`not a PColumn (kind = ${t.spec.kind})`);
3974
+ if (!W$1(t)) throw new Error(`not a PColumn (kind = ${t.spec.kind})`);
3975
3975
  return t;
3976
3976
  }
3977
3977
  function lt(t, n) {
@@ -4027,7 +4027,7 @@
4027
4027
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
4028
4028
  throw new Error("Not in config rendering context");
4029
4029
  }
4030
- function L(t, e) {
4030
+ function D(t, e) {
4031
4031
  const n = we();
4032
4032
  if (n === void 0) return false;
4033
4033
  if (t in n.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
@@ -4061,7 +4061,7 @@
4061
4061
  return this.isResolved ? this.resolvedValue : { __awaited_futures__: [this.handle] };
4062
4062
  }
4063
4063
  }
4064
- function H(t, e) {
4064
+ function W(t, e) {
4065
4065
  return t === void 0 ? void 0 : e(t);
4066
4066
  }
4067
4067
  class v {
@@ -4101,11 +4101,11 @@
4101
4101
  resolveWithCommon(e, ...n) {
4102
4102
  const r = [
4103
4103
  ...this.resolvePath,
4104
- ...n.map((i2) => typeof i2 == "string" ? i2 : i2.field)
4104
+ ...n.map((s) => typeof s == "string" ? s : s.field)
4105
4105
  ];
4106
- return H(
4106
+ return W(
4107
4107
  c().resolveWithCommon(this.handle, e, ...n),
4108
- (i2) => new v(i2, r)
4108
+ (s) => new v(s, r)
4109
4109
  );
4110
4110
  }
4111
4111
  get resourceType() {
@@ -4125,7 +4125,7 @@
4125
4125
  }
4126
4126
  getError() {
4127
4127
  const e = [...this.resolvePath, "error"];
4128
- return H(
4128
+ return W(
4129
4129
  c().getError(this.handle),
4130
4130
  (n) => new v(n, e)
4131
4131
  );
@@ -4166,9 +4166,9 @@
4166
4166
  */
4167
4167
  getPColumns(e = false, n = "") {
4168
4168
  const r = this.parsePObjectCollection(e, n);
4169
- return r === void 0 ? void 0 : Object.entries(r).map(([, s]) => {
4170
- if (!W(s)) throw new Error(`not a PColumn (kind = ${s.spec.kind})`);
4171
- return s;
4169
+ return r === void 0 ? void 0 : Object.entries(r).map(([, i2]) => {
4170
+ if (!W$1(i2)) throw new Error(`not a PColumn (kind = ${i2.spec.kind})`);
4171
+ return i2;
4172
4172
  });
4173
4173
  }
4174
4174
  /**
@@ -4182,12 +4182,12 @@
4182
4182
  ...this.resolvePath
4183
4183
  );
4184
4184
  if (r === void 0) return;
4185
- const i2 = {};
4186
- for (const [s, o] of Object.entries(r)) {
4187
- const l = [...this.resolvePath, s];
4188
- i2[s] = lt(o, (a) => new v(a, l));
4185
+ const s = {};
4186
+ for (const [i2, o] of Object.entries(r)) {
4187
+ const l = [...this.resolvePath, i2];
4188
+ s[i2] = lt(o, (a) => new v(a, l));
4189
4189
  }
4190
- return i2;
4190
+ return s;
4191
4191
  }
4192
4192
  getFileContentAsBase64() {
4193
4193
  return new b(c().getBlobContentAsBase64(this.handle));
@@ -4251,6 +4251,9 @@
4251
4251
  getProgressLog(e) {
4252
4252
  return new b(c().getProgressLog(this.handle, e));
4253
4253
  }
4254
+ getProgressLogWithInfo(e) {
4255
+ return new b(c().getProgressLogWithInfo(this.handle, e));
4256
+ }
4254
4257
  getLogHandle() {
4255
4258
  return new b(c().getLogHandle(this.handle));
4256
4259
  }
@@ -4267,18 +4270,18 @@
4267
4270
  }
4268
4271
  }
4269
4272
  mapFields(e, n) {
4270
- const { fieldType: r, requireLocked: i2, skipUnresolved: s } = {
4273
+ const { fieldType: r, requireLocked: s, skipUnresolved: i2 } = {
4271
4274
  fieldType: "Input",
4272
4275
  requireLocked: true,
4273
4276
  skipUnresolved: false,
4274
4277
  ...n
4275
4278
  }, o = e;
4276
- if (i2 && (r === "Input" && !this.getInputsLocked() || r === "Output" && !this.getOutputsLocked()))
4279
+ if (s && (r === "Input" && !this.getInputsLocked() || r === "Output" && !this.getOutputsLocked()))
4277
4280
  return;
4278
4281
  let a = (r === "Input" ? this.listInputFields() : r === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
4279
4282
  (u) => [u, this.resolve({ field: u, assertFieldType: r })]
4280
4283
  );
4281
- return s && (a = a.filter((u) => u[1] !== void 0)), a.map(([u, h]) => o(u, h));
4284
+ return i2 && (a = a.filter((u) => u[1] !== void 0)), a.map(([u, h]) => o(u, h));
4282
4285
  }
4283
4286
  }
4284
4287
  const ae = "staging", le = "main";
@@ -4289,19 +4292,19 @@
4289
4292
  label: z.string()
4290
4293
  }), xe = z.array(Fe), Te = 1e-3, Oe = "__LABEL__", ee = "__LABEL__@1";
4291
4294
  function ke(t, e, n = {}) {
4292
- const r = /* @__PURE__ */ new Map(), i2 = /* @__PURE__ */ new Map(), s = t.map((p) => {
4295
+ const r = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), i2 = t.map((p) => {
4293
4296
  var R, Q2;
4294
4297
  const g = e(p), f2 = (R = g.annotations) == null ? void 0 : R[Ie], A = (Q2 = g.annotations) == null ? void 0 : Q2[Re], y = (A ? xe.safeParse(JSON.parse(A)).data : void 0) ?? [];
4295
4298
  if (f2) {
4296
4299
  const w = { label: f2, type: Oe, importance: -2 };
4297
4300
  n.addLabelAsSuffix ? y.push(w) : y.splice(0, 0, w);
4298
4301
  }
4299
- const I = [], D = /* @__PURE__ */ new Map();
4302
+ const I = [], L = /* @__PURE__ */ new Map();
4300
4303
  for (let w = y.length - 1; w >= 0; --w) {
4301
- const { type: N } = y[w], pe = y[w].importance ?? 0, M = (D.get(N) ?? 0) + 1;
4302
- D.set(N, M);
4304
+ const { type: N } = y[w], pe = y[w].importance ?? 0, M = (L.get(N) ?? 0) + 1;
4305
+ L.set(N, M);
4303
4306
  const F = `${N}@${M}`;
4304
- i2.set(F, (i2.get(F) ?? 0) + 1), r.set(
4307
+ s.set(F, (s.get(F) ?? 0) + 1), r.set(
4305
4308
  F,
4306
4309
  Math.max(
4307
4310
  r.get(F) ?? Number.NEGATIVE_INFINITY,
@@ -4318,8 +4321,8 @@
4318
4321
  }), o = [], l = [], a = [...r];
4319
4322
  a.sort(([, p], [, g]) => g - p);
4320
4323
  for (const [p] of a)
4321
- p.endsWith("@1") || i2.get(p) === t.length ? o.push(p) : l.push(p);
4322
- const u = (p) => s.map((g) => {
4324
+ p.endsWith("@1") || s.get(p) === t.length ? o.push(p) : l.push(p);
4325
+ const u = (p) => i2.map((g) => {
4323
4326
  const f2 = g.fullTrace.filter((y) => p.has(y.fullType)).map((y) => y.label), A = n.separator ?? " / ";
4324
4327
  return {
4325
4328
  label: f2.join(A),
@@ -4342,7 +4345,7 @@
4342
4345
  }
4343
4346
  return u(/* @__PURE__ */ new Set([...o, ...l]));
4344
4347
  }
4345
- class De {
4348
+ class Le {
4346
4349
  constructor() {
4347
4350
  S(this, "ctx", c());
4348
4351
  S(this, "defaultLabelFn", (e, n) => {
@@ -4357,13 +4360,13 @@
4357
4360
  return this.ctx.calculateOptions(e);
4358
4361
  }
4359
4362
  getOptions(e, n) {
4360
- const r = this.getSpecs().entries.filter((i2) => e(i2.obj));
4361
- return typeof n == "object" || typeof n > "u" ? ke(r, (i2) => i2.obj, n ?? {}).map(({ value: { ref: i2 }, label: s }) => ({
4362
- ref: i2,
4363
- label: s
4364
- })) : r.map((i2) => ({
4365
- ref: i2.ref,
4366
- label: n(i2.obj, i2.ref)
4363
+ const r = this.getSpecs().entries.filter((s) => e(s.obj));
4364
+ return typeof n == "object" || typeof n > "u" ? ke(r, (s) => s.obj, n ?? {}).map(({ value: { ref: s }, label: i2 }) => ({
4365
+ ref: s,
4366
+ label: i2
4367
+ })) : r.map((s) => ({
4368
+ ref: s.ref,
4369
+ label: n(s.obj, s.ref)
4367
4370
  }));
4368
4371
  }
4369
4372
  /**
@@ -4471,10 +4474,10 @@
4471
4474
  e: for (const r of this.getData().entries) {
4472
4475
  if (!i(r.obj.spec))
4473
4476
  continue;
4474
- const i$1 = r.obj.spec;
4475
- if (e.name === i$1.name && e.valueType === i$1.valueType && e.axesSpec.length === i$1.axesSpec.length && q(e.domain, i$1.domain)) {
4476
- for (let s = 0; s < e.axesSpec.length; ++s) {
4477
- const o = e.axesSpec[s], l = i$1.axesSpec[s];
4477
+ const s = r.obj.spec;
4478
+ if (e.name === s.name && e.valueType === s.valueType && e.axesSpec.length === s.axesSpec.length && q(e.domain, s.domain)) {
4479
+ for (let i2 = 0; i2 < e.axesSpec.length; ++i2) {
4480
+ const o = e.axesSpec[i2], l = s.axesSpec[i2];
4478
4481
  if (o.name !== l.name || o.type !== l.type || !q(o.domain, l.domain))
4479
4482
  continue e;
4480
4483
  }
@@ -4497,7 +4500,7 @@
4497
4500
  S(this, "args");
4498
4501
  S(this, "uiState");
4499
4502
  S(this, "_activeArgsCache");
4500
- S(this, "resultPool", new De());
4503
+ S(this, "resultPool", new Le());
4501
4504
  this.ctx = c(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
4502
4505
  }
4503
4506
  /**
@@ -4514,7 +4517,7 @@
4514
4517
  // return this.ctx.featureFlags;
4515
4518
  // }
4516
4519
  getNamedAccessor(e) {
4517
- return H(
4520
+ return W(
4518
4521
  this.ctx.getAccessorHandleByName(e),
4519
4522
  (n) => new v(n, [e])
4520
4523
  );
@@ -4532,9 +4535,9 @@
4532
4535
  findLabels(e) {
4533
4536
  const n = this.resultPool.getData();
4534
4537
  for (const r of n.entries) {
4535
- if (!W(r.obj)) continue;
4536
- const i2 = r.obj.spec;
4537
- if (i2.name === "pl7.app/label" && i2.axesSpec.length === 1 && i2.axesSpec[0].name === e.name && i2.axesSpec[0].type === e.type && q(e.domain, i2.axesSpec[0].domain)) {
4538
+ if (!W$1(r.obj)) continue;
4539
+ const s = r.obj.spec;
4540
+ if (s.name === "pl7.app/label" && s.axesSpec.length === 1 && s.axesSpec[0].name === e.name && s.axesSpec[0].type === e.type && q(e.domain, s.axesSpec[0].domain)) {
4538
4541
  if (r.obj.data.resourceType.name !== "PColumnData/Json")
4539
4542
  throw Error(`Expected JSON column for labels, got: ${r.obj.data.resourceType.name}`);
4540
4543
  return Object.fromEntries(
@@ -4546,8 +4549,8 @@
4546
4549
  }
4547
4550
  }
4548
4551
  verifyInlineColumnsSupport(e) {
4549
- var i2;
4550
- const n = e.some((s) => !(s.data instanceof v)), r = ((i2 = this.ctx.featureFlags) == null ? void 0 : i2.inlineColumnsSupport) === true;
4552
+ var s;
4553
+ const n = e.some((i2) => !(i2.data instanceof v)), r = ((s = this.ctx.featureFlags) == null ? void 0 : s.inlineColumnsSupport) === true;
4551
4554
  if (n && !r) throw Error("inline columns not supported");
4552
4555
  }
4553
4556
  createPFrame(e) {
@@ -4567,7 +4570,7 @@
4567
4570
  } : n = e, this.verifyInlineColumnsSupport(pt(n.src)), this.ctx.createPTable(
4568
4571
  it(
4569
4572
  n,
4570
- (r) => lt(r, (i2) => i2 instanceof v ? i2.handle : i2)
4573
+ (r) => lt(r, (s) => s instanceof v ? s.handle : s)
4571
4574
  )
4572
4575
  );
4573
4576
  }
@@ -4580,7 +4583,7 @@
4580
4583
  return this.ctx.getCurrentUnstableMarker();
4581
4584
  }
4582
4585
  }
4583
- const T = "1.22.2";
4586
+ const T = "1.22.18";
4584
4587
  function Ee(t) {
4585
4588
  return t.__renderLambda === true;
4586
4589
  }
@@ -4589,8 +4592,8 @@
4589
4592
  return Ee(t) ? t.handle : t;
4590
4593
  }
4591
4594
  class _ {
4592
- constructor(e, n, r, i2, s, o, l) {
4593
- this._renderingMode = e, this._initialArgs = n, this._initialUiState = r, this._outputs = i2, this._inputsValid = s, this._sections = o, this._title = l;
4595
+ constructor(e, n, r, s, i2, o, l) {
4596
+ this._renderingMode = e, this._initialArgs = n, this._initialUiState = r, this._outputs = s, this._inputsValid = i2, this._sections = o, this._title = l;
4594
4597
  }
4595
4598
  static create(e = "Heavy") {
4596
4599
  return new _(
@@ -4605,8 +4608,8 @@
4605
4608
  }
4606
4609
  output(e, n, r = {}) {
4607
4610
  if (typeof n == "function") {
4608
- const i2 = `output#${e}`;
4609
- return L(i2, () => n(new E())), new _(
4611
+ const s = `output#${e}`;
4612
+ return D(s, () => n(new E())), new _(
4610
4613
  this._renderingMode,
4611
4614
  this._initialArgs,
4612
4615
  this._initialUiState,
@@ -4614,7 +4617,7 @@
4614
4617
  ...this._outputs,
4615
4618
  [e]: {
4616
4619
  __renderLambda: true,
4617
- handle: i2,
4620
+ handle: s,
4618
4621
  ...r
4619
4622
  }
4620
4623
  },
@@ -4641,7 +4644,7 @@
4641
4644
  return this.output(e, n, { retentive: true });
4642
4645
  }
4643
4646
  argsValid(e) {
4644
- return typeof e == "function" ? (L("inputsValid", () => e(new E())), new _(
4647
+ return typeof e == "function" ? (D("inputsValid", () => e(new E())), new _(
4645
4648
  this._renderingMode,
4646
4649
  this._initialArgs,
4647
4650
  this._initialUiState,
@@ -4663,7 +4666,7 @@
4663
4666
  );
4664
4667
  }
4665
4668
  sections(e) {
4666
- return Array.isArray(e) ? this.sections(V(e)) : typeof e == "function" ? (L("sections", () => e(new E())), new _(
4669
+ return Array.isArray(e) ? this.sections(V(e)) : typeof e == "function" ? (D("sections", () => e(new E())), new _(
4667
4670
  this._renderingMode,
4668
4671
  this._initialArgs,
4669
4672
  this._initialUiState,
@@ -4683,7 +4686,7 @@
4683
4686
  }
4684
4687
  /** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
4685
4688
  title(e) {
4686
- return L("title", () => e(new E())), new _(
4689
+ return D("title", () => e(new E())), new _(
4687
4690
  this._renderingMode,
4688
4691
  this._initialArgs,
4689
4692
  this._initialUiState,
@@ -4761,10 +4764,10 @@
4761
4764
  return Se() ? oe({ sdkVersion: T }) : { config: e };
4762
4765
  }
4763
4766
  }
4764
- function St(t, e, n, r) {
4767
+ function wt(t, e, n, r) {
4765
4768
  var u, h;
4766
4769
  Array.isArray(r) && (r = { filters: r });
4767
- const i2 = t.resultPool.getData().entries.map((d) => d.obj).filter(W).filter((d) => d.spec.name === "pl7.app/label" && d.spec.axesSpec.length === 1), s = (d, p) => {
4770
+ const s = t.resultPool.getData().entries.map((d) => d.obj).filter(W$1).filter((d) => d.spec.name === "pl7.app/label" && d.spec.axesSpec.length === 1), i2 = (d, p) => {
4768
4771
  let g = d.toString();
4769
4772
  if (p)
4770
4773
  for (const f2 in p)
@@ -4774,12 +4777,12 @@
4774
4777
  for (const d of e)
4775
4778
  for (const p of d.spec.axesSpec) {
4776
4779
  const g = J$1(p);
4777
- for (const f2 of i2) {
4780
+ for (const f2 of s) {
4778
4781
  const A = f2.spec.axesSpec[0], y = J$1(f2.spec.axesSpec[0]);
4779
4782
  if (ot(g, y)) {
4780
- const I = Object.keys(g.domain ?? {}).length, D = Object.keys(y.domain ?? {}).length;
4781
- if (I > D) {
4782
- const R = s(f2.id, g.domain);
4783
+ const I = Object.keys(g.domain ?? {}).length, L = Object.keys(y.domain ?? {}).length;
4784
+ if (I > L) {
4785
+ const R = i2(f2.id, g.domain);
4783
4786
  o.set(R, {
4784
4787
  id: R,
4785
4788
  spec: {
@@ -4789,7 +4792,7 @@
4789
4792
  data: f2.data
4790
4793
  });
4791
4794
  } else
4792
- o.set(s(f2.id), f2);
4795
+ o.set(i2(f2.id), f2);
4793
4796
  }
4794
4797
  }
4795
4798
  }
@@ -4826,7 +4829,7 @@
4826
4829
  }).output("pt", (ctx) => {
4827
4830
  var _a, _b, _c, _d, _e;
4828
4831
  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;
4829
- return St(ctx, [
4832
+ return wt(ctx, [
4830
4833
  {
4831
4834
  id: "example",
4832
4835
  spec: {
@@ -4874,6 +4877,7 @@
4874
4877
  { type: "link", href: "/typography", label: "Typography" },
4875
4878
  { type: "link", href: "/ag-grid-vue", label: "AgGridVue" },
4876
4879
  { type: "link", href: "/pl-ag-data-table", label: "PlAgDataTable" },
4880
+ { type: "link", href: "/pl-ag-overlay-loading", label: "PlAgOverlayLoadingPage" },
4877
4881
  { type: "link", href: "/errors", label: "Errors" },
4878
4882
  { type: "link", href: "/text-fields", label: "PlTextField" },
4879
4883
  { type: "link", href: "/tabs", label: "PlTabs" },