@platforma-sdk/ui-vue 1.41.3 → 1.41.4

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.
Files changed (42) hide show
  1. package/.turbo/turbo-build.log +15 -25
  2. package/.turbo/turbo-type-check.log +1 -1
  3. package/CHANGELOG.md +9 -0
  4. package/dist/aggrid.js +4 -4
  5. package/dist/components/PlAgDataTable/PlAgDataTableV2.vue.d.ts +14 -3
  6. package/dist/components/PlAgDataTable/PlAgDataTableV2.vue.d.ts.map +1 -1
  7. package/dist/components/PlAgDataTable/PlAgDataTableV2.vue2.js +252 -179
  8. package/dist/components/PlAgDataTable/PlAgDataTableV2.vue2.js.map +1 -1
  9. package/dist/components/PlAgDataTable/PlAgRowCount.vue.js +1 -1
  10. package/dist/components/PlAgDataTable/sources/focus-row.d.ts +8 -7
  11. package/dist/components/PlAgDataTable/sources/focus-row.d.ts.map +1 -1
  12. package/dist/components/PlAgDataTable/sources/focus-row.js +46 -31
  13. package/dist/components/PlAgDataTable/sources/focus-row.js.map +1 -1
  14. package/dist/components/PlAgDataTable/sources/table-source-v2.d.ts +10 -5
  15. package/dist/components/PlAgDataTable/sources/table-source-v2.d.ts.map +1 -1
  16. package/dist/components/PlAgDataTable/sources/table-source-v2.js +144 -141
  17. package/dist/components/PlAgDataTable/sources/table-source-v2.js.map +1 -1
  18. package/dist/components/PlAgDataTable/types.d.ts +27 -1
  19. package/dist/components/PlAgDataTable/types.d.ts.map +1 -1
  20. package/dist/components/PlAgDataTable/types.js.map +1 -1
  21. package/dist/components/PlAgRowNumCheckbox/PlAgRowNumCheckbox.vue.js +1 -1
  22. package/dist/components/PlAgRowNumHeader.vue.js +1 -1
  23. package/dist/components/PlAnnotations/components/DynamicForm.vue2.js +24 -24
  24. package/dist/components/PlAnnotations/components/FilterSidebar.vue2.js +2 -2
  25. package/dist/internal/test-helpers/BlockMock.d.ts +1 -0
  26. package/dist/internal/test-helpers/BlockMock.d.ts.map +1 -1
  27. package/dist/lib/ui/uikit/dist/components/PlAccordion/{ExpandTransition.vue.js → ExpandTransition.vue2.js} +1 -1
  28. package/dist/lib/ui/uikit/dist/components/PlAccordion/ExpandTransition.vue2.js.map +1 -0
  29. package/dist/lib/ui/uikit/dist/components/PlAccordion/PlAccordionSection.vue2.js +1 -1
  30. package/dist/lib/ui/uikit/dist/sdk/model/dist/index.js +1 -1
  31. package/dist/lib/util/helpers/dist/index.js +88 -73
  32. package/dist/lib/util/helpers/dist/index.js.map +1 -1
  33. package/dist/lib.js +73 -73
  34. package/dist/sdk/model/dist/index.js +82 -75
  35. package/dist/sdk/model/dist/index.js.map +1 -1
  36. package/package.json +7 -7
  37. package/src/components/PlAgDataTable/PlAgDataTableV2.vue +172 -45
  38. package/src/components/PlAgDataTable/sources/focus-row.ts +38 -37
  39. package/src/components/PlAgDataTable/sources/table-source-v2.ts +113 -110
  40. package/src/components/PlAgDataTable/types.ts +30 -1
  41. package/src/internal/test-helpers/BlockMock.ts +5 -0
  42. package/dist/lib/ui/uikit/dist/components/PlAccordion/ExpandTransition.vue.js.map +0 -1
@@ -1,8 +1,8 @@
1
1
  import { isPTableAbsent as ke, uniquePlId as Ne, PTableNA as De, isDataInfo as ue, extractAllColumns as Re, mapPTableDef as Ue, selectorsToPredicate as W, withEnrichments as ce, AnchoredIdDeriver as fe, isPlRef as $e, mapValueInVOE as Ke, mapPObjectData as pe, ensurePColumn as je, isPColumnSpec as Q, isPColumn as Ce, resolveAnchors as he, deriveNativeId as Be, isPartitionedDataInfoEntries as Je, getAxisId as ge, entriesToDataInfo as qe, isDataInfoEntries as _e, dataInfoToEntries as Me, canonicalizeAxisId as We, mapDataInfo as He } from "../../../lib/model/common/dist/index.js";
2
- import { PTableAbsent as Kt, PValueBytesNA as jt, PValueIntNA as Bt, PValueLongNA as Jt, PValueStringNA as qt, PlId as Mt, PlIdBytes as Wt, PlIdLength as Ht, canonicalizeJson as zt, deserializeError as Xt, ensureError as Gt, getAxesId as Qt, getPTableColumnId as Yt, hasAbortError as Zt, isValueAbsent as en, isValueNA as tn, mapJoinEntry as nn, matchAxis as rn, matchAxisId as sn, matchPColumn as an, pTableValue as on, parseJson as ln, stringifyColumnId as un, unwrapResult as pn } from "../../../lib/model/common/dist/index.js";
2
+ import { PTableAbsent as jt, PValueBytesNA as Bt, PValueIntNA as Jt, PValueLongNA as qt, PValueStringNA as Mt, PlId as Wt, PlIdBytes as Ht, PlIdLength as zt, canonicalizeJson as Xt, deserializeError as Gt, ensureError as Qt, getAxesId as Yt, getPTableColumnId as Zt, hasAbortError as en, isValueAbsent as tn, isValueNA as nn, mapJoinEntry as rn, matchAxis as sn, matchAxisId as an, matchPColumn as on, pTableValue as ln, parseJson as un, stringifyColumnId as pn, unwrapResult as dn } from "../../../lib/model/common/dist/index.js";
3
3
  import Se from "../../../_virtual/canonicalize.js";
4
4
  import U from "../../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.js";
5
- import { BasePlErrorLike as cn, ErrorLike as fn, PlErrorLike as hn, StandardErrorLike as gn, ensureErrorLike as mn } from "../../../lib/model/pl-error-like/dist/index.js";
5
+ import { BasePlErrorLike as fn, ErrorLike as hn, PlErrorLike as gn, StandardErrorLike as mn, ensureErrorLike as yn } from "../../../lib/model/pl-error-like/dist/index.js";
6
6
  var ze = Object.defineProperty, Xe = (n, e, t) => e in n ? ze(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, w = (n, e, t) => Xe(n, typeof e != "symbol" ? e + "" : e, t);
7
7
  function ee(n) {
8
8
  return { type: "Immediate", value: n };
@@ -288,12 +288,12 @@ function Ae(n, e, t = {}) {
288
288
  const r = /* @__PURE__ */ new Map(), i = t.forceTraceElements !== void 0 && t.forceTraceElements.length > 0 ? new Set(t.forceTraceElements) : void 0, s = /* @__PURE__ */ new Map(), a = n.map((h) => {
289
289
  var C, u;
290
290
  const d = e(h);
291
- let b, I, F;
292
- "spec" in d && typeof d.spec == "object" ? (b = d.spec, I = d.prefixTrace, F = d.suffixTrace) : b = d;
291
+ let b, I, x;
292
+ "spec" in d && typeof d.spec == "object" ? (b = d.spec, I = d.prefixTrace, x = d.suffixTrace) : b = d;
293
293
  const c = (C = b.annotations) == null ? void 0 : C[tt], _ = (u = b.annotations) == null ? void 0 : u[nt], f = (_ ? it.safeParse(JSON.parse(_)).data : void 0) ?? [], g = [
294
294
  ...I ?? [],
295
295
  ...f,
296
- ...F ?? []
296
+ ...x ?? []
297
297
  ];
298
298
  if (c !== void 0) {
299
299
  const S = { label: c, type: at, importance: -2 };
@@ -333,9 +333,9 @@ function Ae(n, e, t = {}) {
333
333
  value: b.value
334
334
  });
335
335
  else return;
336
- const F = I.map((_) => _.label), c = t.separator ?? " / ";
336
+ const x = I.map((_) => _.label), c = t.separator ?? " / ";
337
337
  u.push({
338
- label: F.join(c),
338
+ label: x.join(c),
339
339
  value: b.value
340
340
  });
341
341
  }
@@ -708,7 +708,7 @@ class be {
708
708
  b = he(r.anchors, u, t);
709
709
  } else
710
710
  b = u;
711
- const I = /* @__PURE__ */ new Set(), F = [];
711
+ const I = /* @__PURE__ */ new Set(), x = [];
712
712
  for (const f of this.providers) {
713
713
  const g = f.selectColumns(b);
714
714
  for (const m of g) {
@@ -716,12 +716,12 @@ class be {
716
716
  if (I.has(m.id))
717
717
  throw new Error(`Duplicate column id ${m.id} in provider ${f.constructor.name}`);
718
718
  const L = Be(m.spec);
719
- V.has(L) || (I.add(m.id), V.add(L), F.push(m));
719
+ V.has(L) || (I.add(m.id), V.add(L), x.push(m));
720
720
  }
721
721
  }
722
- if (F.length === 0) continue;
722
+ if (x.length === 0) continue;
723
723
  const c = yt(u), _ = c.length > 0;
724
- for (const f of F) {
724
+ for (const f of x) {
725
725
  if (!Q(f.spec)) continue;
726
726
  const g = f.spec;
727
727
  if (_) {
@@ -793,7 +793,7 @@ class be {
793
793
  l
794
794
  ), C = [];
795
795
  for (const { value: u, label: d } of h) {
796
- const { originalColumn: b, spec: I } = u, F = u.type === "split" ? u.axisFilters : void 0, c = gt(F);
796
+ const { originalColumn: b, spec: I } = u, x = u.type === "split" ? u.axisFilters : void 0, c = gt(x);
797
797
  let _;
798
798
  r ? _ = r.deriveS(I, c) : _ = mt(b.id, c);
799
799
  let f = { ...u.adjustedSpec };
@@ -1256,7 +1256,7 @@ class X {
1256
1256
  this.ctx.logError(e);
1257
1257
  }
1258
1258
  }
1259
- const vt = "1.41.3", Y = vt;
1259
+ const vt = "1.41.4", Y = vt;
1260
1260
  function Tt(n) {
1261
1261
  return n.__renderLambda === !0;
1262
1262
  }
@@ -1504,7 +1504,7 @@ w(Pt, "INITIAL_BLOCK_FEATURE_FLAGS", {
1504
1504
  requiresUIAPIVersion: 1,
1505
1505
  requiresModelAPIVersion: 1
1506
1506
  });
1507
- function Fe() {
1507
+ function xe() {
1508
1508
  return {
1509
1509
  sourceId: null,
1510
1510
  hiddenColIds: null,
@@ -1517,7 +1517,7 @@ function Pe() {
1517
1517
  return {
1518
1518
  version: 4,
1519
1519
  stateCache: [],
1520
- pTableParams: Fe()
1520
+ pTableParams: xe()
1521
1521
  };
1522
1522
  }
1523
1523
  function At(n) {
@@ -1527,17 +1527,17 @@ function At(n) {
1527
1527
  ...e,
1528
1528
  filtersState: []
1529
1529
  })),
1530
- pTableParams: Fe()
1530
+ pTableParams: xe()
1531
1531
  }), n.version === 3 && (n = Pe()), n;
1532
1532
  }
1533
1533
  function It(n) {
1534
1534
  return n.axesSpec.length === 1 && n.name === "pl7.app/label";
1535
1535
  }
1536
- function Ft(n) {
1536
+ function xt(n) {
1537
1537
  var e;
1538
1538
  return ((e = n.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "hidden";
1539
1539
  }
1540
- function xt(n) {
1540
+ function Ft(n) {
1541
1541
  var e;
1542
1542
  return ((e = n.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "optional";
1543
1543
  }
@@ -1572,16 +1572,22 @@ function Lt({
1572
1572
  data: i
1573
1573
  };
1574
1574
  }
1575
- function Vt(n) {
1575
+ function Vt() {
1576
+ return {
1577
+ axesSpec: [],
1578
+ selectedKeys: []
1579
+ };
1580
+ }
1581
+ function Ot(n) {
1576
1582
  return n === De ? (console.error("Axis value can never be N/A"), "") : n;
1577
1583
  }
1578
- function x(n) {
1584
+ function F(n) {
1579
1585
  return n.valueType === "Int" || n.valueType === "Long" || n.valueType === "Float" || n.valueType === "Double";
1580
1586
  }
1581
1587
  function G(n) {
1582
1588
  return n.valueType === "String";
1583
1589
  }
1584
- const xe = {
1590
+ const Fe = {
1585
1591
  lessThan: {
1586
1592
  label: "Col < X (Less Than)",
1587
1593
  form: {
@@ -1602,7 +1608,7 @@ const xe = {
1602
1608
  defaultValue: () => 0
1603
1609
  }
1604
1610
  },
1605
- supportedFor: x
1611
+ supportedFor: F
1606
1612
  },
1607
1613
  greaterThan: {
1608
1614
  label: "Col > X (Greater Than)",
@@ -1624,7 +1630,7 @@ const xe = {
1624
1630
  defaultValue: () => 0
1625
1631
  }
1626
1632
  },
1627
- supportedFor: x
1633
+ supportedFor: F
1628
1634
  },
1629
1635
  lessThanOrEqual: {
1630
1636
  label: "Col ≤ X (Less Than or Equal)",
@@ -1646,7 +1652,7 @@ const xe = {
1646
1652
  defaultValue: () => 0
1647
1653
  }
1648
1654
  },
1649
- supportedFor: x
1655
+ supportedFor: F
1650
1656
  },
1651
1657
  greaterThanOrEqual: {
1652
1658
  label: "Col ≥ X (Greater Than or Equal)",
@@ -1668,7 +1674,7 @@ const xe = {
1668
1674
  defaultValue: () => 0
1669
1675
  }
1670
1676
  },
1671
- supportedFor: x
1677
+ supportedFor: F
1672
1678
  },
1673
1679
  lessThanColumn: {
1674
1680
  label: "Col₁ < Col₂ (Compare Columns)",
@@ -1697,7 +1703,7 @@ const xe = {
1697
1703
  }
1698
1704
  }
1699
1705
  },
1700
- supportedFor: (n, e) => x(n) && (e === void 0 || x(e))
1706
+ supportedFor: (n, e) => F(n) && (e === void 0 || F(e))
1701
1707
  },
1702
1708
  lessThanColumnOrEqual: {
1703
1709
  label: "Col₁ ≤ Col₂ (Compare Columns)",
@@ -1726,7 +1732,7 @@ const xe = {
1726
1732
  }
1727
1733
  }
1728
1734
  },
1729
- supportedFor: (n, e) => x(n) && (e === void 0 || x(e))
1735
+ supportedFor: (n, e) => F(n) && (e === void 0 || F(e))
1730
1736
  },
1731
1737
  topN: {
1732
1738
  label: "Top N",
@@ -1748,7 +1754,7 @@ const xe = {
1748
1754
  defaultValue: () => 10
1749
1755
  }
1750
1756
  },
1751
- supportedFor: x
1757
+ supportedFor: F
1752
1758
  },
1753
1759
  bottomN: {
1754
1760
  label: "Bottom N",
@@ -1770,7 +1776,7 @@ const xe = {
1770
1776
  defaultValue: () => 10
1771
1777
  }
1772
1778
  },
1773
- supportedFor: x
1779
+ supportedFor: F
1774
1780
  },
1775
1781
  patternContainSubsequence: {
1776
1782
  label: "Col ~ Seq (Contain Subsequence)",
@@ -1945,44 +1951,44 @@ const xe = {
1945
1951
  supportedFor: () => !1
1946
1952
  }
1947
1953
  };
1948
- function Ot(n) {
1949
- return n ? Object.entries(xe).filter(([e, t]) => t.supportedFor(n)).map(([e, t]) => ({
1954
+ function kt(n) {
1955
+ return n ? Object.entries(Fe).filter(([e, t]) => t.supportedFor(n)).map(([e, t]) => ({
1950
1956
  label: t.label,
1951
1957
  value: e
1952
1958
  })) : [];
1953
1959
  }
1954
- function kt(n) {
1955
- return xe[n];
1960
+ function Nt(n) {
1961
+ return Fe[n];
1956
1962
  }
1957
- function Nt() {
1963
+ function Dt() {
1958
1964
  return platformaApiVersion ?? 1;
1959
1965
  }
1960
- function Dt() {
1966
+ function Rt() {
1961
1967
  return we({ sdkVersion: Y, apiVersion: platformaApiVersion });
1962
1968
  }
1963
- function Rt(n) {
1969
+ function Ut(n) {
1964
1970
  if (typeof globalThis.getEnvironmentValue == "function")
1965
1971
  return globalThis.getEnvironmentValue(n);
1966
1972
  }
1967
1973
  export {
1968
1974
  fe as AnchoredIdDeriver,
1969
- cn as BasePlErrorLike,
1970
- fn as ErrorLike,
1975
+ fn as BasePlErrorLike,
1976
+ hn as ErrorLike,
1971
1977
  P as FutureRef,
1972
1978
  Ct as LINKER_COLUMN_ANNOTATION,
1973
1979
  tt as PAnnotationLabel,
1974
1980
  nt as PAnnotationTrace,
1975
1981
  be as PColumnCollection,
1976
- Kt as PTableAbsent,
1982
+ jt as PTableAbsent,
1977
1983
  De as PTableNA,
1978
- jt as PValueBytesNA,
1979
- Bt as PValueIntNA,
1980
- Jt as PValueLongNA,
1981
- qt as PValueStringNA,
1982
- hn as PlErrorLike,
1983
- Mt as PlId,
1984
- Wt as PlIdBytes,
1985
- Ht as PlIdLength,
1984
+ Bt as PValueBytesNA,
1985
+ Jt as PValueIntNA,
1986
+ qt as PValueLongNA,
1987
+ Mt as PValueStringNA,
1988
+ gn as PlErrorLike,
1989
+ Wt as PlId,
1990
+ Ht as PlIdBytes,
1991
+ zt as PlIdLength,
1986
1992
  $ as RT_BINARY_PARTITIONED,
1987
1993
  M as RT_BINARY_SUPER_PARTITIONED,
1988
1994
  q as RT_JSON_PARTITIONED,
@@ -1991,42 +1997,43 @@ export {
1991
1997
  ae as RT_RESOURCE_MAP_PARTITIONED,
1992
1998
  X as RenderCtx,
1993
1999
  bt as ResultPool,
1994
- gn as StandardErrorLike,
2000
+ mn as StandardErrorLike,
1995
2001
  it as Trace,
1996
2002
  rt as TraceEntry,
1997
2003
  A as TreeNodeAccessor,
1998
2004
  We as canonicalizeAxisId,
1999
- zt as canonicalizeJson,
2005
+ Xt as canonicalizeJson,
2000
2006
  pt as convertOrParsePColumnData,
2001
2007
  Pe as createPlDataTableStateV2,
2008
+ Vt as createPlSelectionModel,
2002
2009
  Lt as createRowSelectionColumn,
2003
2010
  Me as dataInfoToEntries,
2004
2011
  Ae as deriveLabels,
2005
2012
  Be as deriveNativeId,
2006
- Xt as deserializeError,
2013
+ Gt as deserializeError,
2007
2014
  re as downgradeCfgOrLambda,
2008
- Gt as ensureError,
2009
- mn as ensureErrorLike,
2015
+ Qt as ensureError,
2016
+ yn as ensureErrorLike,
2010
2017
  je as ensurePColumn,
2011
2018
  qe as entriesToDataInfo,
2012
2019
  Re as extractAllColumns,
2013
2020
  dt as filterDataInfoEntries,
2014
- xe as filterUiMetadata,
2015
- Qt as getAxesId,
2021
+ Fe as filterUiMetadata,
2022
+ Yt as getAxesId,
2016
2023
  ge as getAxisId,
2017
- Rt as getEnvironmentValue,
2018
- kt as getFilterUiMetadata,
2019
- Ot as getFilterUiTypeOptions,
2024
+ Ut as getEnvironmentValue,
2025
+ Nt as getFilterUiMetadata,
2026
+ kt as getFilterUiTypeOptions,
2020
2027
  ee as getImmediate,
2021
- Yt as getPTableColumnId,
2028
+ Zt as getPTableColumnId,
2022
2029
  ot as getPartitionKeysList,
2023
- Nt as getPlatformaApiVersion,
2024
- Dt as getRawPlatformaInstance,
2030
+ Dt as getPlatformaApiVersion,
2031
+ Rt as getRawPlatformaInstance,
2025
2032
  ut as getUniquePartitionKeys,
2026
- Zt as hasAbortError,
2033
+ en as hasAbortError,
2027
2034
  ie as ifDef,
2028
- Ft as isColumnHidden,
2029
- xt as isColumnOptional,
2035
+ xt as isColumnHidden,
2036
+ Ft as isColumnOptional,
2030
2037
  Tt as isConfigLambda,
2031
2038
  ue as isDataInfo,
2032
2039
  _e as isDataInfoEntries,
@@ -2037,26 +2044,26 @@ export {
2037
2044
  ke as isPTableAbsent,
2038
2045
  Je as isPartitionedDataInfoEntries,
2039
2046
  $e as isPlRef,
2040
- en as isValueAbsent,
2041
- tn as isValueNA,
2042
- Fe as makeDefaultPTableParams,
2047
+ tn as isValueAbsent,
2048
+ nn as isValueNA,
2049
+ xe as makeDefaultPTableParams,
2043
2050
  He as mapDataInfo,
2044
- nn as mapJoinEntry,
2051
+ rn as mapJoinEntry,
2045
2052
  pe as mapPObjectData,
2046
2053
  Ue as mapPTableDef,
2047
- Vt as mapPTableValueToAxisKey,
2054
+ Ot as mapPTableValueToAxisKey,
2048
2055
  Ke as mapValueInVOE,
2049
- rn as matchAxis,
2050
- sn as matchAxisId,
2051
- an as matchPColumn,
2052
- on as pTableValue,
2053
- ln as parseJson,
2056
+ sn as matchAxis,
2057
+ an as matchAxisId,
2058
+ on as matchPColumn,
2059
+ ln as pTableValue,
2060
+ un as parseJson,
2054
2061
  le as parsePColumnData,
2055
2062
  he as resolveAnchors,
2056
2063
  W as selectorsToPredicate,
2057
- un as stringifyColumnId,
2064
+ pn as stringifyColumnId,
2058
2065
  Ne as uniquePlId,
2059
- pn as unwrapResult,
2066
+ dn as unwrapResult,
2060
2067
  At as upgradePlDataTableStateV2,
2061
2068
  ce as withEnrichments
2062
2069
  };