@milaboratories/uikit 2.3.13 → 2.3.15

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 (118) hide show
  1. package/.turbo/turbo-build.log +53 -40
  2. package/.turbo/turbo-type-check.log +1 -1
  3. package/CHANGELOG.md +17 -0
  4. package/dist/components/DataTable/TableComponent.vue.js +23 -23
  5. package/dist/components/PlAccordion/{ExpandTransition.vue2.js → ExpandTransition.vue.js} +1 -1
  6. package/dist/components/PlAccordion/ExpandTransition.vue.js.map +1 -0
  7. package/dist/components/PlAccordion/ExpandTransition.vue3.js +1 -1
  8. package/dist/components/PlAccordion/PlAccordionSection.vue2.js +1 -1
  9. package/dist/components/PlAutocomplete/PlAutocomplete.vue.js +1 -1
  10. package/dist/components/PlBtnGhost/PlBtnGhost.vue.js +1 -1
  11. package/dist/components/PlConfirmDialog.vue.d.ts +22 -0
  12. package/dist/components/PlConfirmDialog.vue.d.ts.map +1 -0
  13. package/dist/components/PlConfirmDialog.vue.js +63 -0
  14. package/dist/components/PlConfirmDialog.vue.js.map +1 -0
  15. package/dist/components/PlConfirmDialog.vue2.js +5 -0
  16. package/dist/components/PlConfirmDialog.vue2.js.map +1 -0
  17. package/dist/components/PlDialogModal/PlDialogModal.vue.d.ts +8 -4
  18. package/dist/components/PlDialogModal/PlDialogModal.vue.d.ts.map +1 -1
  19. package/dist/components/PlDialogModal/PlDialogModal.vue.js +38 -38
  20. package/dist/components/PlDialogModal/PlDialogModal.vue.js.map +1 -1
  21. package/dist/components/PlDropdown/PlDropdown.vue.js +1 -1
  22. package/dist/components/PlDropdownLegacy/PlDropdownLegacy.vue.js +1 -1
  23. package/dist/components/PlDropdownLine/PlDropdownLine.vue.d.ts +1 -1
  24. package/dist/components/PlDropdownLine/PlDropdownLine.vue.d.ts.map +1 -1
  25. package/dist/components/PlDropdownMulti/PlDropdownMulti.vue.js +1 -1
  26. package/dist/components/PlDropdownRef/PlDropdownRef.vue.d.ts +1 -1
  27. package/dist/components/PlDropdownRef/PlDropdownRef.vue.d.ts.map +1 -1
  28. package/dist/components/PlEditableTitle/PlEditableTitle.vue.d.ts +4 -0
  29. package/dist/components/PlEditableTitle/PlEditableTitle.vue.d.ts.map +1 -1
  30. package/dist/components/PlEditableTitle/PlEditableTitle.vue.js +47 -43
  31. package/dist/components/PlEditableTitle/PlEditableTitle.vue.js.map +1 -1
  32. package/dist/components/PlElementList/PlElementList.vue.d.ts.map +1 -1
  33. package/dist/components/PlElementList/PlElementList.vue2.js +20 -16
  34. package/dist/components/PlElementList/PlElementList.vue2.js.map +1 -1
  35. package/dist/components/PlElementList/PlElementListItem.vue.d.ts.map +1 -1
  36. package/dist/components/PlElementList/PlElementListItem.vue2.js +10 -9
  37. package/dist/components/PlElementList/PlElementListItem.vue2.js.map +1 -1
  38. package/dist/components/PlElementList/PlElementListItem.vue3.js +29 -29
  39. package/dist/components/PlElementList/utils.d.ts.map +1 -1
  40. package/dist/components/PlElementList/utils.js +4 -3
  41. package/dist/components/PlElementList/utils.js.map +1 -1
  42. package/dist/components/PlFileInput/PlFileInput.vue.js +1 -1
  43. package/dist/components/PlSidebar/PlSidebarGroup.vue.d.ts +20 -0
  44. package/dist/components/PlSidebar/PlSidebarGroup.vue.d.ts.map +1 -0
  45. package/dist/components/PlSidebar/PlSidebarGroup.vue.js +10 -0
  46. package/dist/components/PlSidebar/PlSidebarGroup.vue.js.map +1 -0
  47. package/dist/components/PlSidebar/PlSidebarGroup.vue2.js +21 -0
  48. package/dist/components/PlSidebar/PlSidebarGroup.vue2.js.map +1 -0
  49. package/dist/components/PlSidebar/PlSidebarGroup.vue3.js +11 -0
  50. package/dist/components/PlSidebar/PlSidebarGroup.vue3.js.map +1 -0
  51. package/dist/components/PlSidebar/PlSidebarItem.vue.d.ts +30 -0
  52. package/dist/components/PlSidebar/PlSidebarItem.vue.d.ts.map +1 -0
  53. package/dist/components/PlSidebar/PlSidebarItem.vue.js +10 -0
  54. package/dist/components/PlSidebar/PlSidebarItem.vue.js.map +1 -0
  55. package/dist/components/PlSidebar/PlSidebarItem.vue2.js +39 -0
  56. package/dist/components/PlSidebar/PlSidebarItem.vue2.js.map +1 -0
  57. package/dist/components/PlSidebar/PlSidebarItem.vue3.js +17 -0
  58. package/dist/components/PlSidebar/PlSidebarItem.vue3.js.map +1 -0
  59. package/dist/components/PlSidebar/index.d.ts +3 -0
  60. package/dist/components/PlSidebar/index.d.ts.map +1 -0
  61. package/dist/components/PlSlideModal/PlPureSlideModal.vue.d.ts +22 -0
  62. package/dist/components/PlSlideModal/PlPureSlideModal.vue.d.ts.map +1 -0
  63. package/dist/components/PlSlideModal/PlPureSlideModal.vue.js +150 -0
  64. package/dist/components/PlSlideModal/PlPureSlideModal.vue.js.map +1 -0
  65. package/dist/components/PlSlideModal/PlPureSlideModal.vue2.js +5 -0
  66. package/dist/components/PlSlideModal/PlPureSlideModal.vue2.js.map +1 -0
  67. package/dist/components/PlSlideModal/PlSlideModal.vue.d.ts +3 -42
  68. package/dist/components/PlSlideModal/PlSlideModal.vue.d.ts.map +1 -1
  69. package/dist/components/PlSlideModal/PlSlideModal.vue.js +7 -162
  70. package/dist/components/PlSlideModal/PlSlideModal.vue.js.map +1 -1
  71. package/dist/components/PlSlideModal/PlSlideModal.vue2.js +45 -2
  72. package/dist/components/PlSlideModal/PlSlideModal.vue2.js.map +1 -1
  73. package/dist/components/PlSlideModal/PlSlideModal.vue3.js +9 -0
  74. package/dist/components/PlSlideModal/PlSlideModal.vue3.js.map +1 -0
  75. package/dist/components/PlSlideModal/index.d.ts +1 -0
  76. package/dist/components/PlSlideModal/index.d.ts.map +1 -1
  77. package/dist/components/PlSlideModal/props.d.ts +20 -0
  78. package/dist/components/PlSlideModal/props.d.ts.map +1 -0
  79. package/dist/components/PlSlideModal/props.js +10 -0
  80. package/dist/components/PlSlideModal/props.js.map +1 -0
  81. package/dist/components/PlTextArea/PlTextArea.vue.js +1 -1
  82. package/dist/components/PlTextField/PlTextField.vue.js +1 -1
  83. package/dist/composition/useConfirm.d.ts +8 -0
  84. package/dist/composition/useConfirm.d.ts.map +1 -0
  85. package/dist/composition/useConfirm.js +23 -0
  86. package/dist/composition/useConfirm.js.map +1 -0
  87. package/dist/generated/components/svg/images/{SvgRequired.vue.js → SvgRequired.vue2.js} +1 -1
  88. package/dist/generated/components/svg/images/SvgRequired.vue2.js.map +1 -0
  89. package/dist/index.d.ts +49 -47
  90. package/dist/index.d.ts.map +1 -1
  91. package/dist/index.js +202 -194
  92. package/dist/index.js.map +1 -1
  93. package/dist/lib/model/common/dist/index.js +10 -10
  94. package/dist/node_modules/.pnpm/@vueuse_core@13.3.0_vue@3.5.13_typescript@5.6.3_/node_modules/@vueuse/core/index.js +1 -1
  95. package/dist/node_modules/.pnpm/@vueuse_shared@13.3.0_vue@3.5.13_typescript@5.6.3_/node_modules/@vueuse/shared/index.js +3 -3
  96. package/dist/sdk/model/dist/index.js +113 -113
  97. package/dist/sdk/model/dist/index.js.map +1 -1
  98. package/package.json +4 -3
  99. package/src/assets/variables.scss +4 -1
  100. package/src/components/PlBtnGhost/pl-btn-ghost.scss +0 -7
  101. package/src/components/PlConfirmDialog.vue +55 -0
  102. package/src/components/PlDialogModal/PlDialogModal.vue +6 -2
  103. package/src/components/PlEditableTitle/PlEditableTitle.vue +13 -2
  104. package/src/components/PlElementList/PlElementList.vue +14 -6
  105. package/src/components/PlElementList/PlElementListItem.vue +6 -4
  106. package/src/components/PlElementList/utils.ts +2 -0
  107. package/src/components/PlSidebar/PlSidebarGroup.vue +35 -0
  108. package/src/components/PlSidebar/PlSidebarItem.vue +59 -0
  109. package/src/components/PlSidebar/index.ts +2 -0
  110. package/src/components/PlSlideModal/PlPureSlideModal.vue +57 -0
  111. package/src/components/PlSlideModal/PlSlideModal.vue +31 -75
  112. package/src/components/PlSlideModal/index.ts +1 -0
  113. package/src/components/PlSlideModal/pl-slide-modal.scss +5 -4
  114. package/src/components/PlSlideModal/props.ts +25 -0
  115. package/src/composition/useConfirm.ts +35 -0
  116. package/src/index.ts +51 -47
  117. package/dist/components/PlAccordion/ExpandTransition.vue2.js.map +0 -1
  118. package/dist/generated/components/svg/images/SvgRequired.vue.js.map +0 -1
@@ -1,10 +1,10 @@
1
- import { isDataInfo as ae, extractAllColumns as Ee, mapPTableDef as Te, selectorsToPredicate as W, withEnrichments as ce, AnchoredIdDeriver as he, isPlRef as Fe, mapValueInVOE as Oe, mapPObjectData as le, ensurePColumn as ke, isPColumnSpec as G, isPColumn as be, resolveAnchors as pe, deriveNativeId as De, isPartitionedDataInfoEntries as Re, getAxisId as de, entriesToDataInfo as $e, isDataInfoEntries as _e, dataInfoToEntries as je, canonicalizeAxisId as Ke, mapDataInfo as Ne } from "../../../lib/model/common/dist/index.js";
2
- import { PlIdLength as bt, getAxesId as _t, getFileNameFromHandle as wt, getFilePathFromHandle as Pt, isImportFileHandleIndex as At, isImportFileHandleUpload as xt, mapJoinEntry as It, matchAxis as St, matchAxisId as Lt, matchPColumn as Ct, stringifyColumnId as Et } from "../../../lib/model/common/dist/index.js";
1
+ import { isDataInfo as ae, extractAllColumns as Ee, mapPTableDef as Te, selectorsToPredicate as W, withEnrichments as ce, AnchoredIdDeriver as he, isPlRef as Fe, mapValueInVOE as ke, mapPObjectData as le, ensurePColumn as Oe, isPColumnSpec as z, isPColumn as be, resolveAnchors as pe, deriveNativeId as De, isPartitionedDataInfoEntries as Re, getAxisId as de, entriesToDataInfo as $e, isDataInfoEntries as _e, dataInfoToEntries as Ke, canonicalizeAxisId as je, mapDataInfo as Ne } from "../../../lib/model/common/dist/index.js";
2
+ import { PlIdLength as bt, getAxesId as _t, getFileNameFromHandle as wt, getFilePathFromHandle as Pt, isImportFileHandleIndex as xt, isImportFileHandleUpload as At, mapJoinEntry as It, matchAxis as St, matchAxisId as Ct, matchPColumn as Lt, stringifyColumnId as Et } from "../../../lib/model/common/dist/index.js";
3
3
  import we from "../../../_virtual/canonicalize.js";
4
- import j from "../../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.js";
5
- import { BasePlErrorLike as Ft, ErrorLike as Ot, PlErrorLike as kt, StandardErrorLike as Dt } from "../../../lib/model/pl-error-like/dist/index.js";
4
+ import K from "../../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.js";
5
+ import { BasePlErrorLike as Ft, ErrorLike as kt, PlErrorLike as Ot, StandardErrorLike as Dt } from "../../../lib/model/pl-error-like/dist/index.js";
6
6
  var Be = Object.defineProperty, Je = (n, e, t) => e in n ? Be(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, I = (n, e, t) => Je(n, typeof e != "symbol" ? e + "" : e, t);
7
- function Z(n) {
7
+ function Q(n) {
8
8
  return { type: "Immediate", value: n };
9
9
  }
10
10
  function Ve() {
@@ -29,12 +29,12 @@ function V(n, e) {
29
29
  if (n in t.callbackRegistry) throw new Error(`Callback with key ${n} already registered.`);
30
30
  return t.callbackRegistry[n] = e, !0;
31
31
  }
32
- const Q = /* @__PURE__ */ new Map();
32
+ const Z = /* @__PURE__ */ new Map();
33
33
  function Me(n, e) {
34
34
  n in c().callbackRegistry || (c().callbackRegistry[n] = (t) => {
35
- for (const r of Q.get(n))
35
+ for (const r of Z.get(n))
36
36
  r(t);
37
- }, Q.set(n, [])), Q.get(n).push(e);
37
+ }, Z.set(n, [])), Z.get(n).push(e);
38
38
  }
39
39
  class w {
40
40
  constructor(e, t = (r) => r) {
@@ -278,39 +278,39 @@ class S {
278
278
  return s && (a = a.filter((l) => l[1] !== void 0)), a.map(([l, y]) => o(l, y));
279
279
  }
280
280
  }
281
- const We = "staging", He = "main", qe = "pl7.app/label", ze = "pl7.app/trace", Ge = j.object({
282
- type: j.string(),
283
- importance: j.number().optional(),
284
- id: j.string().optional(),
285
- label: j.string()
286
- }), Ye = j.array(Ge), Xe = 1e-3, Ze = "__LABEL__", fe = "__LABEL__@1";
287
- function Ae(n, e, t = {}) {
281
+ const We = "staging", He = "main", qe = "pl7.app/label", Ge = "pl7.app/trace", ze = K.object({
282
+ type: K.string(),
283
+ importance: K.number().optional(),
284
+ id: K.string().optional(),
285
+ label: K.string()
286
+ }), Xe = K.array(ze), Ye = 1e-3, Qe = "__LABEL__", fe = "__LABEL__@1";
287
+ function xe(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(), o = n.map((f) => {
289
289
  var P, u;
290
290
  const h = e(f);
291
- let v, L, C;
292
- "spec" in h && typeof h.spec == "object" ? (v = h.spec, L = h.prefixTrace, C = h.suffixTrace) : v = h;
293
- const p = (P = v.annotations) == null ? void 0 : P[qe], A = (u = v.annotations) == null ? void 0 : u[ze], d = (A ? Ye.safeParse(JSON.parse(A)).data : void 0) ?? [], g = [
294
- ...L ?? [],
291
+ let v, C, L;
292
+ "spec" in h && typeof h.spec == "object" ? (v = h.spec, C = h.prefixTrace, L = h.suffixTrace) : v = h;
293
+ const p = (P = v.annotations) == null ? void 0 : P[qe], x = (u = v.annotations) == null ? void 0 : u[Ge], d = (x ? Xe.safeParse(JSON.parse(x)).data : void 0) ?? [], g = [
294
+ ...C ?? [],
295
295
  ...d,
296
- ...C ?? []
296
+ ...L ?? []
297
297
  ];
298
298
  if (p !== void 0) {
299
- const x = { label: p, type: Ze, importance: -2 };
300
- t.addLabelAsSuffix ? g.push(x) : g.splice(0, 0, x);
299
+ const A = { label: p, type: Qe, importance: -2 };
300
+ t.addLabelAsSuffix ? g.push(A) : g.splice(0, 0, A);
301
301
  }
302
302
  const m = [], T = /* @__PURE__ */ new Map();
303
- for (let x = g.length - 1; x >= 0; --x) {
304
- const { type: B } = g[x], k = g[x].importance ?? 0, R = (T.get(B) ?? 0) + 1;
303
+ for (let A = g.length - 1; A >= 0; --A) {
304
+ const { type: B } = g[A], O = g[A].importance ?? 0, R = (T.get(B) ?? 0) + 1;
305
305
  T.set(B, R);
306
- const O = `${B}@${R}`;
307
- s.set(O, (s.get(O) ?? 0) + 1), r.set(
308
- O,
306
+ const k = `${B}@${R}`;
307
+ s.set(k, (s.get(k) ?? 0) + 1), r.set(
308
+ k,
309
309
  Math.max(
310
- r.get(O) ?? Number.NEGATIVE_INFINITY,
311
- k - (g.length - x) * Xe
310
+ r.get(k) ?? Number.NEGATIVE_INFINITY,
311
+ O - (g.length - A) * Ye
312
312
  )
313
- ), m.push({ ...g[x], fullType: O, occurrenceIndex: R });
313
+ ), m.push({ ...g[A], fullType: k, occurrenceIndex: R });
314
314
  }
315
315
  return m.reverse(), {
316
316
  value: f,
@@ -325,17 +325,17 @@ function Ae(n, e, t = {}) {
325
325
  const N = (f, P = !1) => {
326
326
  const u = [];
327
327
  for (let h = 0; h < o.length; h++) {
328
- const v = o[h], L = v.fullTrace.filter((A) => f.has(A.fullType) || i && i.has(A.type));
329
- if (L.length === 0)
328
+ const v = o[h], C = v.fullTrace.filter((x) => f.has(x.fullType) || i && i.has(x.type));
329
+ if (C.length === 0)
330
330
  if (P)
331
331
  u.push({
332
332
  label: "Unlabeled",
333
333
  value: v.value
334
334
  });
335
335
  else return;
336
- const C = L.map((A) => A.label), p = t.separator ?? " / ";
336
+ const L = C.map((x) => x.label), p = t.separator ?? " / ";
337
337
  u.push({
338
- label: C.join(p),
338
+ label: L.join(p),
339
339
  value: v.value
340
340
  });
341
341
  }
@@ -357,14 +357,14 @@ function Ae(n, e, t = {}) {
357
357
  }
358
358
  return N(/* @__PURE__ */ new Set([...a, ...l]), !0);
359
359
  }
360
- const H = "PColumnData/", ne = H + "ResourceMap", ie = H + "Partitioned/ResourceMap", U = H + "JsonPartitioned", K = H + "BinaryPartitioned", xe = H + "Partitioned/", X = xe + "JsonPartitioned", M = xe + "BinaryPartitioned", se = (n) => {
360
+ const H = "PColumnData/", ne = H + "ResourceMap", ie = H + "Partitioned/ResourceMap", U = H + "JsonPartitioned", j = H + "BinaryPartitioned", Ae = H + "Partitioned/", Y = Ae + "JsonPartitioned", M = Ae + "BinaryPartitioned", se = (n) => {
361
361
  if (n.endsWith(".index"))
362
362
  return { baseKey: n.substring(0, n.length - 6), type: "index" };
363
363
  if (n.endsWith(".values"))
364
364
  return { baseKey: n.substring(0, n.length - 7), type: "values" };
365
365
  throw new Error(`key must ends on .index/.values for binary p-column, got: ${n}`);
366
366
  };
367
- function Qe(n) {
367
+ function Ze(n) {
368
368
  if (!n) return;
369
369
  const e = n.resourceType.name, t = n.getDataAsJson(), r = [];
370
370
  let i = 0;
@@ -376,27 +376,27 @@ function Qe(n) {
376
376
  i = t.partitionKeyLength + t.keyLength;
377
377
  break;
378
378
  case U:
379
- case K:
379
+ case j:
380
380
  i = t.partitionKeyLength;
381
381
  break;
382
382
  case M:
383
- case X:
383
+ case Y:
384
384
  i = t.superPartitionKeyLength + t.partitionKeyLength;
385
385
  break;
386
386
  }
387
387
  switch (e) {
388
388
  case ne:
389
389
  case U:
390
- case K:
390
+ case j:
391
391
  for (let s of n.listInputFields()) {
392
- e === K && (s = se(s).baseKey);
392
+ e === j && (s = se(s).baseKey);
393
393
  const o = [...JSON.parse(s)];
394
394
  r.push(o);
395
395
  }
396
396
  break;
397
397
  case ie:
398
398
  case M:
399
- case X:
399
+ case Y:
400
400
  for (const s of n.listInputFields()) {
401
401
  const o = [...JSON.parse(s)], a = n.resolve({ field: s, assertFieldType: "Input" });
402
402
  if (a !== void 0)
@@ -433,7 +433,7 @@ function tt(n) {
433
433
  if (n === void 0) return;
434
434
  if (_e(n))
435
435
  return et(n);
436
- const e = Qe(n);
436
+ const e = Ze(n);
437
437
  if (!e) return;
438
438
  const { data: t, keyLength: r } = e, i = [];
439
439
  for (let s = 0; s < r; ++s)
@@ -449,7 +449,7 @@ function tt(n) {
449
449
  function oe(n, e = []) {
450
450
  if (n === void 0 || !n.getIsReadyOrError()) return;
451
451
  const t = n.resourceType.name, r = n.getDataAsJson();
452
- if (e.length > 0 && (t === X || t === M))
452
+ if (e.length > 0 && (t === Y || t === M))
453
453
  throw new Error(`Unexpected nested super-partitioned resource: ${t}`);
454
454
  switch (t) {
455
455
  case ne:
@@ -471,7 +471,7 @@ function oe(n, e = []) {
471
471
  parts: i
472
472
  };
473
473
  }
474
- case K: {
474
+ case j: {
475
475
  if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
476
476
  throw new Error(`Missing partitionKeyLength in metadata for ${t}`);
477
477
  const i = [], s = /* @__PURE__ */ new Map();
@@ -498,7 +498,7 @@ function oe(n, e = []) {
498
498
  parts: i
499
499
  };
500
500
  }
501
- case X: {
501
+ case Y: {
502
502
  if (typeof (r == null ? void 0 : r.superPartitionKeyLength) != "number" || typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
503
503
  throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${t}`);
504
504
  const i = r.superPartitionKeyLength + r.partitionKeyLength, s = [];
@@ -526,8 +526,8 @@ function oe(n, e = []) {
526
526
  for (const o of n.listInputFields()) {
527
527
  const a = n.resolve({ field: o, assertFieldType: "Input" });
528
528
  if (a === void 0) return;
529
- if (a.resourceType.name !== K)
530
- throw new Error(`Expected ${K} inside ${t}, but got ${a.resourceType.name}`);
529
+ if (a.resourceType.name !== j)
530
+ throw new Error(`Expected ${j} inside ${t}, but got ${a.resourceType.name}`);
531
531
  const l = oe(a, JSON.parse(o));
532
532
  if (l === void 0) return;
533
533
  if (l.type !== "BinaryPartitioned")
@@ -547,7 +547,7 @@ function oe(n, e = []) {
547
547
  function rt(n) {
548
548
  if (n !== void 0) {
549
549
  if (_e(n)) return n;
550
- if (ae(n)) return je(n);
550
+ if (ae(n)) return Ke(n);
551
551
  if (n instanceof S) return oe(n);
552
552
  throw new Error(`Unexpected input type: ${typeof n}`);
553
553
  }
@@ -630,7 +630,7 @@ class st {
630
630
  function ot(n) {
631
631
  if (n)
632
632
  return n.map((e) => ({
633
- type: `split:${Ke(e.axisId)}`,
633
+ type: `split:${je(e.axisId)}`,
634
634
  label: e.label,
635
635
  importance: 1e6
636
636
  // High importance for split filters in labels
@@ -708,23 +708,23 @@ class me {
708
708
  v = pe(r.anchors, u, t);
709
709
  } else
710
710
  v = u;
711
- const L = /* @__PURE__ */ new Set(), C = [];
711
+ const C = /* @__PURE__ */ new Set(), L = [];
712
712
  for (const d of this.providers) {
713
713
  const g = d.selectColumns(v);
714
714
  for (const m of g) {
715
715
  if (y(m.spec)) continue;
716
- if (L.has(m.id))
716
+ if (C.has(m.id))
717
717
  throw new Error(`Duplicate column id ${m.id} in provider ${d.constructor.name}`);
718
718
  const T = De(m.spec);
719
- F.has(T) || (L.add(m.id), F.add(T), C.push(m));
719
+ F.has(T) || (C.add(m.id), F.add(T), L.push(m));
720
720
  }
721
721
  }
722
- if (C.length === 0) continue;
723
- const p = ut(u), A = p.length > 0;
724
- for (const d of C) {
725
- if (!G(d.spec)) continue;
722
+ if (L.length === 0) continue;
723
+ const p = ut(u), x = p.length > 0;
724
+ for (const d of L) {
725
+ if (!z(d.spec)) continue;
726
726
  const g = d.spec;
727
- if (A) {
727
+ if (x) {
728
728
  if (it(d.data))
729
729
  throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${d.id}`);
730
730
  const m = rt(d.data);
@@ -734,12 +734,12 @@ class me {
734
734
  }
735
735
  if (!Re(m))
736
736
  throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${m.type} for column ${d.id}`);
737
- const T = tt(m), x = p[p.length - 1];
738
- if (x >= m.partitionKeyLength)
739
- throw new Error(`Not enough partition keys (${m.partitionKeyLength}) for requested split axes (max index ${x}) in column ${g.name}`);
740
- const B = p.map((b) => this.findLabels(de(g.axesSpec[b]))), k = [], R = (b, J) => {
737
+ const T = tt(m), A = p[p.length - 1];
738
+ if (A >= m.partitionKeyLength)
739
+ throw new Error(`Not enough partition keys (${m.partitionKeyLength}) for requested split axes (max index ${A}) in column ${g.name}`);
740
+ const B = p.map((b) => this.findLabels(de(g.axesSpec[b]))), O = [], R = (b, J) => {
741
741
  if (J >= p.length) {
742
- if (k.push([...b]), k.length > 1e4)
742
+ if (O.push([...b]), O.length > 1e4)
743
743
  throw new Error("Too many key combinations, aborting.");
744
744
  return;
745
745
  }
@@ -748,22 +748,22 @@ class me {
748
748
  throw new Error(`Axis index ${D} out of bounds for unique keys array (length ${T.length}) during split key generation for column ${d.id}`);
749
749
  const $ = T[D];
750
750
  if (!$ || $.length === 0) {
751
- k.length = 0;
751
+ O.length = 0;
752
752
  return;
753
753
  }
754
754
  for (const q of $)
755
755
  b.push(q), R(b, J + 1), b.pop();
756
756
  };
757
- if (R([], 0), k.length === 0)
757
+ if (R([], 0), O.length === 0)
758
758
  continue;
759
- const O = [...g.axesSpec], Ie = p.map((b) => b);
759
+ const k = [...g.axesSpec], Ie = p.map((b) => b);
760
760
  for (let b = p.length - 1; b >= 0; b--)
761
- O.splice(p[b], 1);
762
- const Se = { ...g, axesSpec: O };
763
- for (const b of k) {
761
+ k.splice(p[b], 1);
762
+ const Se = { ...g, axesSpec: k };
763
+ for (const b of O) {
764
764
  const J = b.map((D, $) => {
765
- const q = Ie[$], Le = de(g.axesSpec[q]), ue = B[$], Ce = (ue == null ? void 0 : ue[D]) ?? String(D);
766
- return { axisIdx: q, axisId: Le, value: D, label: Ce };
765
+ const q = Ie[$], Ce = de(g.axesSpec[q]), ue = B[$], Le = (ue == null ? void 0 : ue[D]) ?? String(D);
766
+ return { axisIdx: q, axisId: Ce, value: D, label: Le };
767
767
  });
768
768
  E.push({
769
769
  type: "split",
@@ -784,7 +784,7 @@ class me {
784
784
  }
785
785
  }
786
786
  if (E.length === 0) return [];
787
- const f = Ae(
787
+ const f = xe(
788
788
  E,
789
789
  (u) => ({
790
790
  spec: u.spec,
@@ -793,9 +793,9 @@ class me {
793
793
  l
794
794
  ), P = [];
795
795
  for (const { value: u, label: h } of f) {
796
- const { originalColumn: v, spec: L } = u, C = u.type === "split" ? u.axisFilters : void 0, p = at(C);
797
- let A;
798
- r ? A = r.deriveS(L, p) : A = lt(v.id, p);
796
+ const { originalColumn: v, spec: C } = u, L = u.type === "split" ? u.axisFilters : void 0, p = at(L);
797
+ let x;
798
+ r ? x = r.deriveS(C, p) : x = lt(v.id, p);
799
799
  let d = { ...u.adjustedSpec };
800
800
  o && (d = {
801
801
  ...d,
@@ -804,7 +804,7 @@ class me {
804
804
  "pl7.app/label": h
805
805
  }
806
806
  }), P.push({
807
- id: A,
807
+ id: x,
808
808
  spec: d,
809
809
  data: () => u.type === "split" ? $e(nt(u.dataEntries, p)) : u.originalColumn.data,
810
810
  label: h
@@ -891,7 +891,7 @@ class ct {
891
891
  getOptions(e, t) {
892
892
  const r = typeof e == "function" ? e : W(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
893
893
  let s = {}, o = !1;
894
- return typeof t < "u" && (typeof t == "function" ? s = t : typeof t == "object" && ("includeNativeLabel" in t || "separator" in t || "addLabelAsSuffix" in t ? s = t : (t = t, s = t.label ?? {}, o = t.refsWithEnrichments ?? !1))), typeof s == "object" ? Ae(i, (a) => a.obj, s ?? {}).map(({ value: { ref: a }, label: l }) => ({
894
+ return typeof t < "u" && (typeof t == "function" ? s = t : typeof t == "object" && ("includeNativeLabel" in t || "separator" in t || "addLabelAsSuffix" in t ? s = t : (t = t, s = t.label ?? {}, o = t.refsWithEnrichments ?? !1))), typeof s == "object" ? xe(i, (a) => a.obj, s ?? {}).map(({ value: { ref: a }, label: l }) => ({
895
895
  ref: ce(a, o),
896
896
  label: l
897
897
  })) : i.map(({ ref: a, obj: l }) => ({
@@ -1003,7 +1003,7 @@ class ct {
1003
1003
  ref: t.ref,
1004
1004
  obj: {
1005
1005
  ...t.obj,
1006
- data: Oe(
1006
+ data: ke(
1007
1007
  t.obj.data,
1008
1008
  (r) => new S(r, [t.ref.blockId, t.ref.name])
1009
1009
  )
@@ -1045,7 +1045,7 @@ class ct {
1045
1045
  getPColumnByRef(e) {
1046
1046
  const t = this.getDataByRef(e);
1047
1047
  if (t)
1048
- return ke(t);
1048
+ return Oe(t);
1049
1049
  }
1050
1050
  /**
1051
1051
  * Returns spec associated with the ref ensuring that it is a p-column spec.
@@ -1055,7 +1055,7 @@ class ct {
1055
1055
  getPColumnSpecByRef(e) {
1056
1056
  const t = this.getSpecByRef(e);
1057
1057
  if (t) {
1058
- if (!G(t)) throw new Error(`not a PColumn spec (kind = ${t.kind})`);
1058
+ if (!z(t)) throw new Error(`not a PColumn spec (kind = ${t.kind})`);
1059
1059
  return t;
1060
1060
  }
1061
1061
  }
@@ -1074,7 +1074,7 @@ class ct {
1074
1074
  findDataWithCompatibleSpec(e) {
1075
1075
  const t = [];
1076
1076
  e: for (const r of this.getData().entries) {
1077
- if (!G(r.obj.spec))
1077
+ if (!z(r.obj.spec))
1078
1078
  continue;
1079
1079
  const i = r.obj.spec;
1080
1080
  if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length && ee(e.domain, i.domain)) {
@@ -1117,7 +1117,7 @@ class ct {
1117
1117
  */
1118
1118
  selectColumns(e) {
1119
1119
  const t = typeof e == "function" ? e : W(e);
1120
- return this.getSpecs().entries.filter(({ obj: r }) => G(r) ? t(r) : !1).map(({ ref: r, obj: i }) => {
1120
+ return this.getSpecs().entries.filter(({ obj: r }) => z(r) ? t(r) : !1).map(({ ref: r, obj: i }) => {
1121
1121
  const s = i;
1122
1122
  let o = null;
1123
1123
  const a = this;
@@ -1147,7 +1147,7 @@ class ct {
1147
1147
  return i;
1148
1148
  }
1149
1149
  }
1150
- class z {
1150
+ class G {
1151
1151
  constructor() {
1152
1152
  I(this, "ctx"), I(this, "_argsCache"), I(this, "_uiStateCache"), I(this, "_activeArgsCache"), I(this, "resultPool", new ct()), this.ctx = c();
1153
1153
  }
@@ -1256,7 +1256,7 @@ class z {
1256
1256
  this.ctx.logError(e);
1257
1257
  }
1258
1258
  }
1259
- const Y = "1.40.1";
1259
+ const X = "1.40.6";
1260
1260
  function ht(n) {
1261
1261
  return n.__renderLambda === !0;
1262
1262
  }
@@ -1274,8 +1274,8 @@ const pt = class _ {
1274
1274
  void 0,
1275
1275
  {},
1276
1276
  {},
1277
- Z(!0),
1278
- Z([]),
1277
+ Q(!0),
1278
+ Q([]),
1279
1279
  void 0,
1280
1280
  void 0,
1281
1281
  { ..._.INITIAL_BLOCK_FEATURE_FLAGS }
@@ -1284,7 +1284,7 @@ const pt = class _ {
1284
1284
  output(e, t, r = {}) {
1285
1285
  if (typeof t == "function") {
1286
1286
  const i = `output#${e}`;
1287
- return V(i, () => t(new z())), new _(
1287
+ return V(i, () => t(new G())), new _(
1288
1288
  this._renderingMode,
1289
1289
  this._initialArgs,
1290
1290
  this._initialUiState,
@@ -1323,7 +1323,7 @@ const pt = class _ {
1323
1323
  return this.output(e, t, { retentive: !0 });
1324
1324
  }
1325
1325
  argsValid(e) {
1326
- return typeof e == "function" ? (V("inputsValid", () => e(new z())), new _(
1326
+ return typeof e == "function" ? (V("inputsValid", () => e(new G())), new _(
1327
1327
  this._renderingMode,
1328
1328
  this._initialArgs,
1329
1329
  this._initialUiState,
@@ -1349,7 +1349,7 @@ const pt = class _ {
1349
1349
  );
1350
1350
  }
1351
1351
  sections(e) {
1352
- return Array.isArray(e) ? this.sections(Z(e)) : typeof e == "function" ? (V("sections", () => e(new z())), new _(
1352
+ return Array.isArray(e) ? this.sections(Q(e)) : typeof e == "function" ? (V("sections", () => e(new G())), new _(
1353
1353
  this._renderingMode,
1354
1354
  this._initialArgs,
1355
1355
  this._initialUiState,
@@ -1373,7 +1373,7 @@ const pt = class _ {
1373
1373
  }
1374
1374
  /** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
1375
1375
  title(e) {
1376
- return V("title", () => e(new z())), new _(
1376
+ return V("title", () => e(new G())), new _(
1377
1377
  this._renderingMode,
1378
1378
  this._initialArgs,
1379
1379
  this._initialUiState,
@@ -1454,7 +1454,7 @@ const pt = class _ {
1454
1454
  if (this._initialArgs === void 0) throw new Error("Initial arguments not set.");
1455
1455
  const e = {
1456
1456
  v3: {
1457
- sdkVersion: Y,
1457
+ sdkVersion: X,
1458
1458
  renderingMode: this._renderingMode,
1459
1459
  initialArgs: this._initialArgs,
1460
1460
  initialUiState: this._initialUiState,
@@ -1466,7 +1466,7 @@ const pt = class _ {
1466
1466
  featureFlags: this._featureFlags
1467
1467
  },
1468
1468
  // fields below are added to allow previous desktop versions read generated configs
1469
- sdkVersion: Y,
1469
+ sdkVersion: X,
1470
1470
  renderingMode: this._renderingMode,
1471
1471
  initialArgs: this._initialArgs,
1472
1472
  inputsValid: te(this._inputsValid),
@@ -1475,7 +1475,7 @@ const pt = class _ {
1475
1475
  Object.entries(this._outputs).map(([t, r]) => [t, te(r)])
1476
1476
  )
1477
1477
  };
1478
- return Ve() ? Pe({ sdkVersion: Y }) : { config: e };
1478
+ return Ve() ? Pe({ sdkVersion: X }) : { config: e };
1479
1479
  }
1480
1480
  };
1481
1481
  I(pt, "INITIAL_BLOCK_FEATURE_FLAGS", {
@@ -1484,37 +1484,37 @@ I(pt, "INITIAL_BLOCK_FEATURE_FLAGS", {
1484
1484
  requiresModelAPIVersion: 1
1485
1485
  });
1486
1486
  function mt() {
1487
- return Pe({ sdkVersion: Y });
1487
+ return Pe({ sdkVersion: X });
1488
1488
  }
1489
1489
  export {
1490
1490
  he as AnchoredIdDeriver,
1491
1491
  Ft as BasePlErrorLike,
1492
- Ot as ErrorLike,
1492
+ kt as ErrorLike,
1493
1493
  w as FutureRef,
1494
1494
  qe as PAnnotationLabel,
1495
- ze as PAnnotationTrace,
1495
+ Ge as PAnnotationTrace,
1496
1496
  me as PColumnCollection,
1497
- kt as PlErrorLike,
1497
+ Ot as PlErrorLike,
1498
1498
  bt as PlIdLength,
1499
- K as RT_BINARY_PARTITIONED,
1499
+ j as RT_BINARY_PARTITIONED,
1500
1500
  M as RT_BINARY_SUPER_PARTITIONED,
1501
1501
  U as RT_JSON_PARTITIONED,
1502
- X as RT_JSON_SUPER_PARTITIONED,
1502
+ Y as RT_JSON_SUPER_PARTITIONED,
1503
1503
  ne as RT_RESOURCE_MAP,
1504
1504
  ie as RT_RESOURCE_MAP_PARTITIONED,
1505
- z as RenderCtx,
1505
+ G as RenderCtx,
1506
1506
  ct as ResultPool,
1507
1507
  Dt as StandardErrorLike,
1508
- Ye as Trace,
1509
- Ge as TraceEntry,
1508
+ Xe as Trace,
1509
+ ze as TraceEntry,
1510
1510
  S as TreeNodeAccessor,
1511
- Ke as canonicalizeAxisId,
1511
+ je as canonicalizeAxisId,
1512
1512
  rt as convertOrParsePColumnData,
1513
- je as dataInfoToEntries,
1514
- Ae as deriveLabels,
1513
+ Ke as dataInfoToEntries,
1514
+ xe as deriveLabels,
1515
1515
  De as deriveNativeId,
1516
1516
  te as downgradeCfgOrLambda,
1517
- ke as ensurePColumn,
1517
+ Oe as ensurePColumn,
1518
1518
  $e as entriesToDataInfo,
1519
1519
  Ee as extractAllColumns,
1520
1520
  nt as filterDataInfoEntries,
@@ -1522,28 +1522,28 @@ export {
1522
1522
  de as getAxisId,
1523
1523
  wt as getFileNameFromHandle,
1524
1524
  Pt as getFilePathFromHandle,
1525
- Z as getImmediate,
1526
- Qe as getPartitionKeysList,
1525
+ Q as getImmediate,
1526
+ Ze as getPartitionKeysList,
1527
1527
  mt as getRawPlatformaInstance,
1528
1528
  tt as getUniquePartitionKeys,
1529
1529
  re as ifDef,
1530
1530
  ht as isConfigLambda,
1531
1531
  ae as isDataInfo,
1532
1532
  _e as isDataInfoEntries,
1533
- At as isImportFileHandleIndex,
1534
- xt as isImportFileHandleUpload,
1533
+ xt as isImportFileHandleIndex,
1534
+ At as isImportFileHandleUpload,
1535
1535
  be as isPColumn,
1536
- G as isPColumnSpec,
1536
+ z as isPColumnSpec,
1537
1537
  Re as isPartitionedDataInfoEntries,
1538
1538
  Fe as isPlRef,
1539
1539
  Ne as mapDataInfo,
1540
1540
  It as mapJoinEntry,
1541
1541
  le as mapPObjectData,
1542
1542
  Te as mapPTableDef,
1543
- Oe as mapValueInVOE,
1543
+ ke as mapValueInVOE,
1544
1544
  St as matchAxis,
1545
- Lt as matchAxisId,
1546
- Ct as matchPColumn,
1545
+ Ct as matchAxisId,
1546
+ Lt as matchPColumn,
1547
1547
  oe as parsePColumnData,
1548
1548
  pe as resolveAnchors,
1549
1549
  W as selectorsToPredicate,