@platforma-sdk/ui-vue 1.39.16 → 1.39.18

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
- > @platforma-sdk/ui-vue@1.39.16 build /home/runner/_work/platforma/platforma/sdk/ui-vue
3
+ > @platforma-sdk/ui-vue@1.39.18 build /home/runner/_work/platforma/platforma/sdk/ui-vue
4
4
  > vite build
5
5
 
6
6
  vite v6.3.5 building for production...
@@ -10,7 +10,7 @@ rendering chunks...
10
10
 
11
11
  [vite:dts] Start generate declaration files...
12
12
  computing gzip size...
13
- [vite:dts] Declaration files built in 6657ms.
13
+ [vite:dts] Declaration files built in 5593ms.
14
14
 
15
15
  dist/_virtual/re.js  0.08 kB │ gzip: 0.10 kB │ map: 0.09 kB
16
16
  dist/_virtual/lodash2.js  0.09 kB │ gzip: 0.10 kB │ map: 0.09 kB
@@ -39,18 +39,18 @@ computing gzip size...
39
39
  dist/lib/ui/uikit/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/number.js  0.11 kB │ gzip: 0.12 kB │ map: 0.79 kB
40
40
  dist/components/PlAgCsvExporter/PlAgCsvExporter.vue2.js  0.12 kB │ gzip: 0.12 kB │ map: 0.11 kB
41
41
  dist/lib/ui/uikit/dist/helpers/math.js  0.12 kB │ gzip: 0.13 kB │ map: 0.36 kB
42
- dist/components/PlAgColumnHeader/PlAgColumnHeader.vue2.js  0.12 kB │ gzip: 0.12 kB │ map: 0.11 kB
43
42
  dist/components/PlAgCellProgress/PlAgCellProgress.vue2.js  0.12 kB │ gzip: 0.12 kB │ map: 0.11 kB
43
+ dist/components/PlAgColumnHeader/PlAgColumnHeader.vue2.js  0.12 kB │ gzip: 0.12 kB │ map: 0.11 kB
44
44
  dist/components/PlAgRowNumHeader.vue2.js  0.12 kB │ gzip: 0.12 kB │ map: 0.11 kB
45
45
  dist/lib/ui/uikit/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/constant.js  0.12 kB │ gzip: 0.12 kB │ map: 0.40 kB
46
46
  dist/lib/ui/uikit/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/constant.js  0.12 kB │ gzip: 0.12 kB │ map: 0.40 kB
47
47
  dist/components/PlAgDataTable/PlAgOverlayLoading.vue2.js  0.12 kB │ gzip: 0.12 kB │ map: 0.11 kB
48
- dist/components/PlTableFilters/PlTableAddFilterV2.vue2.js  0.12 kB │ gzip: 0.12 kB │ map: 0.11 kB
49
48
  dist/components/PlAgRowNumCheckbox/PlAgRowNumCheckbox.vue2.js  0.12 kB │ gzip: 0.12 kB │ map: 0.11 kB
49
+ dist/components/PlTableFilters/PlTableAddFilterV2.vue2.js  0.12 kB │ gzip: 0.12 kB │ map: 0.11 kB
50
50
  dist/plugins/Monetization/MonetizationSidebar.vue2.js  0.13 kB │ gzip: 0.12 kB │ map: 0.11 kB
51
51
  dist/components/PlTableFilters/PlTableFilterEntryV2.vue2.js  0.13 kB │ gzip: 0.12 kB │ map: 0.11 kB
52
- dist/components/PlAgGridColumnManager/PlAgGridColumnManager.vue2.js  0.13 kB │ gzip: 0.12 kB │ map: 0.11 kB
53
52
  dist/components/PlAgTextAndButtonCell/PlAgTextAndButtonCell.vue2.js  0.13 kB │ gzip: 0.12 kB │ map: 0.11 kB
53
+ dist/components/PlAgGridColumnManager/PlAgGridColumnManager.vue2.js  0.13 kB │ gzip: 0.12 kB │ map: 0.11 kB
54
54
  dist/lib/ui/uikit/dist/components/PlRadio/keys.js  0.13 kB │ gzip: 0.13 kB │ map: 0.46 kB
55
55
  dist/lib/ui/uikit/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/size.js  0.13 kB │ gzip: 0.13 kB │ map: 0.49 kB
56
56
  dist/components/ValueOrErrorsComponent.vue2.js  0.13 kB │ gzip: 0.12 kB │ map: 0.11 kB
@@ -805,8 +805,8 @@ computing gzip size...
805
805
  dist/lib/ui/uikit/dist/components/PlProgressCell/PlProgressCell.vue.js  3.51 kB │ gzip: 1.42 kB │ map: 1.99 kB
806
806
  dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.js  3.51 kB │ gzip: 1.04 kB │ map: 11.66 kB
807
807
  dist/components/PlMultiSequenceAlignment/MultiSequenceAlignmentView.vue2.js  3.51 kB │ gzip: 1.29 kB │ map: 5.72 kB
808
- dist/lib/ui/uikit/dist/components/PlFileDialog/PlFileDialog.vue.js  3.51 kB │ gzip: 1.39 kB │ map: 4.61 kB
809
808
  dist/lib/ui/uikit/dist/components/PlBtnAccent/PlBtnAccent.vue.js  3.53 kB │ gzip: 1.34 kB │ map: 1.24 kB
809
+ dist/lib/ui/uikit/dist/components/PlFileDialog/PlFileDialog.vue.js  3.58 kB │ gzip: 1.41 kB │ map: 4.63 kB
810
810
  dist/lib/ui/uikit/dist/layout/PlBlockPage/PlBlockPage.vue.js  3.58 kB │ gzip: 1.41 kB │ map: 2.34 kB
811
811
  dist/lib/ui/uikit/dist/components/PlBtnSecondary/PlBtnSecondary.vue.js  3.59 kB │ gzip: 1.35 kB │ map: 1.25 kB
812
812
  dist/components/PlAppErrorNotificationAlert/PlAppErrorNotificationAlert.vue.js  3.59 kB │ gzip: 1.43 kB │ map: 2.78 kB
@@ -856,11 +856,11 @@ computing gzip size...
856
856
  dist/lib/ui/uikit/dist/components/PlFileInput/PlFileInput.vue.js  10.76 kB │ gzip: 3.37 kB │ map: 8.09 kB
857
857
  dist/lib/ui/uikit/dist/demo-site-data/all-css-variables.js  11.00 kB │ gzip: 1.76 kB │ map: 18.24 kB
858
858
  dist/lib/ui/uikit/dist/components/PlDropdownLine/PlDropdownLine.vue.js  14.70 kB │ gzip: 3.91 kB │ map: 12.75 kB
859
- dist/lib/ui/uikit/dist/lib/model/common/dist/index.js  15.38 kB │ gzip: 4.26 kB │ map: 88.49 kB
859
+ dist/lib/ui/uikit/dist/lib/model/common/dist/index.js  15.38 kB │ gzip: 4.26 kB │ map: 89.29 kB
860
860
  dist/lib/ui/uikit/dist/components/PlDropdown/PlDropdown.vue.js  16.33 kB │ gzip: 4.80 kB │ map: 14.67 kB
861
861
  dist/lib/ui/uikit/dist/components/PlDropdownLegacy/PlDropdownLegacy.vue.js  17.39 kB │ gzip: 4.84 kB │ map: 14.46 kB
862
862
  dist/lib/ui/uikit/dist/components/PlAutocomplete/PlAutocomplete.vue.js  17.76 kB │ gzip: 5.14 kB │ map: 17.09 kB
863
- dist/lib/model/common/dist/index.js  18.37 kB │ gzip: 5.16 kB │ map: 106.36 kB
863
+ dist/lib/model/common/dist/index.js  18.37 kB │ gzip: 5.16 kB │ map: 107.16 kB
864
864
  dist/lib/ui/uikit/dist/components/PlDropdownMulti/PlDropdownMulti.vue.js  20.23 kB │ gzip: 5.27 kB │ map: 12.97 kB
865
865
  dist/components/PlAgDataTable/PlAgOverlayNoRows.vue3.js  35.48 kB │ gzip: 26.70 kB │ map: 0.11 kB
866
866
  dist/node_modules/.pnpm/lru-cache@11.1.0/node_modules/lru-cache/dist/esm/index.js  37.21 kB │ gzip: 9.81 kB │ map: 127.30 kB
@@ -874,7 +874,7 @@ computing gzip size...
874
874
  dist/lib/ui/uikit/dist/sdk/model/dist/index.js  48.66 kB │ gzip: 12.57 kB │ map: 170.61 kB
875
875
  dist/AgGridVue/useAgGridOptions.js  49.28 kB │ gzip: 30.14 kB │ map: 16.35 kB
876
876
  dist/lib/ui/uikit/dist/node_modules/.pnpm/sortablejs@1.15.6/node_modules/sortablejs/modular/sortable.esm.js  50.21 kB │ gzip: 14.79 kB │ map: 181.68 kB
877
- dist/sdk/model/dist/index.js  51.22 kB │ gzip: 13.38 kB │ map: 210.39 kB
877
+ dist/sdk/model/dist/index.js  51.22 kB │ gzip: 13.38 kB │ map: 212.04 kB
878
878
  dist/lib.js  54.63 kB │ gzip: 31.26 kB │ map: 0.22 kB
879
879
  dist/lib/ui/uikit/dist/node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.js  83.80 kB │ gzip: 17.23 kB │ map: 240.83 kB
880
880
  dist/node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.js  83.81 kB │ gzip: 17.26 kB │ map: 241.15 kB
@@ -882,4 +882,4 @@ computing gzip size...
882
882
  dist/lib/ui/uikit/dist/index.js 497.61 kB │ gzip: 191.71 kB │ map: 0.18 kB
883
883
  dist/lib/ui/uikit/dist/components/PlSlideModal/PlSlideModal.vue.js 601.75 kB │ gzip: 204.47 kB │ map: 0.23 kB
884
884
  dist/lib/ui/uikit/dist/components/DataTable/TableComponent.vue.js 603.08 kB │ gzip: 205.08 kB │ map: 0.28 kB
885
- ✓ built in 11.98s
885
+ ✓ built in 10.23s
@@ -1,5 +1,5 @@
1
1
   WARN  Issue while reading "/home/runner/_work/platforma/platforma/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
2
2
 
3
- > @platforma-sdk/ui-vue@1.39.16 type-check /home/runner/_work/platforma/platforma/sdk/ui-vue
3
+ > @platforma-sdk/ui-vue@1.39.18 type-check /home/runner/_work/platforma/platforma/sdk/ui-vue
4
4
  > vue-tsc --noEmit --project ./tsconfig.json
5
5
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @platforma-sdk/ui-vue
2
2
 
3
+ ## 1.39.18
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [c12345a]
8
+ - Updated dependencies [c12345a]
9
+ - @platforma-sdk/model@1.39.18
10
+ - @milaboratories/uikit@2.3.8
11
+
12
+ ## 1.39.17
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [bc814d2]
17
+ - @milaboratories/uikit@2.3.7
18
+
3
19
  ## 1.39.16
4
20
 
5
21
  ### Patch Changes
@@ -1,17 +1,17 @@
1
- import { isLabelColumn as $, isColumnOptional as G, mapPTableValueToAxisKey as L } from "../../../sdk/model/dist/index.js";
1
+ import { isLabelColumn as G, isColumnOptional as $, mapPTableValueToAxisKey as L } from "../../../sdk/model/dist/index.js";
2
2
  import _ from "../../../_virtual/canonicalize.js";
3
3
  import { l as g } from "../../../_virtual/lodash.js";
4
4
  import z from "../../PlAgColumnHeader/PlAgColumnHeader.vue.js";
5
5
  import H from "../../PlAgTextAndButtonCell/PlAgTextAndButtonCell.vue.js";
6
6
  import { PTableHidden as J } from "./common.js";
7
- import { defaultMainMenuItems as K } from "./menu-items.js";
8
- import { makeRowNumberColDef as P, PlAgDataTableRowNumberColId as A } from "./row-number.js";
7
+ import { defaultMainMenuItems as P } from "./menu-items.js";
8
+ import { makeRowNumberColDef as A, PlAgDataTableRowNumberColId as K } from "./row-number.js";
9
9
  import { getColumnRenderingSpec as V } from "./value-rendering.js";
10
10
  import { canonicalizeJson as F, getAxisId as b, pTableValue as T } from "../../../lib/model/common/dist/index.js";
11
- function j(i) {
12
- return i.type === "column" && $(i.spec);
11
+ function W(i) {
12
+ return i.type === "column" && G(i.spec);
13
13
  }
14
- function U(i, n, p, s) {
14
+ function j(i, n, p, s) {
15
15
  const y = [];
16
16
  for (let a = 0; a < n[0].data.length; ++a) {
17
17
  const l = p.map((f) => L(
@@ -43,20 +43,20 @@ async function ae(i, n, p, s, y, a) {
43
43
  (t) => g.isEqual(b(t.axis), o[e].id) || o[e].type === "column" && o[e].spec.name === "pl7.app/label" && o[e].spec.axesSpec.length === 1 && g.isEqual(b(t.axis), b(o[e].spec.axesSpec[0]))
44
44
  )
45
45
  ).sort((e, t) => {
46
- var E, C;
46
+ var E, q;
47
47
  if (o[e].type !== o[t].type) return o[e].type === "axis" ? -1 : 1;
48
- const u = (E = o[e].spec.annotations) == null ? void 0 : E["pl7.app/table/orderPriority"], r = (C = o[t].spec.annotations) == null ? void 0 : C["pl7.app/table/orderPriority"];
48
+ const u = (E = o[e].spec.annotations) == null ? void 0 : E["pl7.app/table/orderPriority"], r = (q = o[t].spec.annotations) == null ? void 0 : q["pl7.app/table/orderPriority"];
49
49
  return u === void 0 ? r === void 0 ? 0 : 1 : r === void 0 ? -1 : Number(r) - Number(u);
50
50
  }), x = [...c], D = c.findIndex((e) => o[e].type === "column");
51
51
  for (let e = c.length - 1; e >= D; --e) {
52
52
  const t = c[e];
53
- if (!j(o[t])) continue;
53
+ if (!W(o[t])) continue;
54
54
  const u = b(o[t].spec.axesSpec[0]), r = c.findIndex((E) => g.isEqual(o[E].id, u));
55
55
  r !== -1 ? c[r] = t : console.warn(`multiple label columns match axisId: ${JSON.stringify(u)}`), c.splice(e, 1), x.splice(e, 1);
56
56
  }
57
57
  const M = [
58
- P(),
59
- ...x.map((e) => W(e, o[e], y, a))
58
+ A(),
59
+ ...x.map((e) => U(e, o[e], y, a))
60
60
  ], h = [...c], S = /* @__PURE__ */ new Map();
61
61
  for (let e = 0; e < w; ++e) S.set(e, -1);
62
62
  h.forEach((e, t) => {
@@ -80,13 +80,13 @@ async function ae(i, n, p, s, y, a) {
80
80
  `Assertion failed: Original axis spec index ${e} (from fields) for key construction not found in allIndices.`
81
81
  );
82
82
  return t;
83
- }), k = [], O = [];
83
+ }), k = [], C = [];
84
84
  h.forEach((e) => {
85
85
  const t = v.get(e);
86
- t !== -1 ? (O.push(k.length), k.push(t)) : O.push(-1);
86
+ t !== -1 ? (C.push(k.length), k.push(t)) : C.push(-1);
87
87
  });
88
88
  const R = i.value;
89
- let d = -1, q;
89
+ let d = -1, O;
90
90
  return {
91
91
  columnDefs: M,
92
92
  serverSideDatasource: {
@@ -102,9 +102,9 @@ async function ae(i, n, p, s, y, a) {
102
102
  e.success({ rowData: [], rowCount: d }), e.api.setGridOption("loading", !1), e.api.showNoRowsOverlay();
103
103
  return;
104
104
  }
105
- if (q && !g.isEqual(q.request.sortModel, e.request.sortModel))
105
+ if (O && !g.isEqual(O.request.sortModel, e.request.sortModel))
106
106
  return e.success({ rowData: [], rowCount: d });
107
- q = e;
107
+ O = e;
108
108
  let t = 0, u = [];
109
109
  if (d > 0 && e.request.startRow !== void 0 && e.request.endRow !== void 0 && (t = Math.min(d, e.request.endRow) - e.request.startRow, t > 0)) {
110
110
  const r = await n.getData(l, k, {
@@ -112,10 +112,10 @@ async function ae(i, n, p, s, y, a) {
112
112
  length: t
113
113
  });
114
114
  if (R !== i.value) return e.fail();
115
- u = U(x, r, N, O);
115
+ u = j(x, r, N, C);
116
116
  }
117
117
  e.success({ rowData: u, rowCount: d }), e.api.autoSizeColumns(
118
- e.api.getAllDisplayedColumns().filter((r) => r.getColId() !== A)
118
+ e.api.getAllDisplayedColumns().filter((r) => r.getColId() !== K)
119
119
  ), e.api.setGridOption("loading", !1);
120
120
  } catch (t) {
121
121
  if (R !== i.value) return e.fail();
@@ -125,17 +125,17 @@ async function ae(i, n, p, s, y, a) {
125
125
  }
126
126
  };
127
127
  }
128
- function W(i, n, p, s) {
128
+ function U(i, n, p, s) {
129
129
  var f, m;
130
130
  const y = F(n), a = n.type === "axis" ? n.spec.type : n.spec.valueType, l = V(n), o = {};
131
131
  return l.fontFamily && (l.fontFamily === "monospace" ? (o.fontFamily = "Spline Sans Mono", o.fontWeight = 300) : o.fontFamily = l.fontFamily), {
132
132
  colId: y,
133
- mainMenuItems: K,
133
+ mainMenuItems: P,
134
134
  context: n,
135
135
  field: i.toString(),
136
136
  headerName: ((m = (f = n.spec.annotations) == null ? void 0 : f["pl7.app/label"]) == null ? void 0 : m.trim()) ?? "Unlabeled " + n.type + " " + i.toString(),
137
137
  lockPosition: n.type === "axis",
138
- hide: (p == null ? void 0 : p.includes(y)) ?? G(n.spec),
138
+ hide: (p == null ? void 0 : p.includes(y)) ?? $(n.spec),
139
139
  valueFormatter: l.valueFormatter,
140
140
  headerComponent: z,
141
141
  cellRendererSelector: s != null && s.showCellButtonForAxisId ? (I) => {
@@ -192,8 +192,8 @@ function Q(i) {
192
192
  }
193
193
  export {
194
194
  ae as calculateGridOptions,
195
- j as isLabelColumn,
196
- W as makeColDef,
195
+ W as isLabelColumn,
196
+ U as makeColDef,
197
197
  Q as makeRowId
198
198
  };
199
199
  //# sourceMappingURL=table-source-v2.js.map
@@ -1,7 +1,7 @@
1
1
  import { makeDefaultPTableParams as i, upgradePlDataTableStateV2 as v } from "../../../sdk/model/dist/index.js";
2
2
  import { computed as n, watch as I } from "vue";
3
- import { isJsonEqual as h } from "../../../lib/util/helpers/dist/index.js";
4
- import { makePredicate as g } from "../../PlTableFilters/filters_logic.js";
3
+ import { isJsonEqual as g } from "../../../lib/util/helpers/dist/index.js";
4
+ import { makePredicate as h } from "../../PlTableFilters/filters_logic.js";
5
5
  import { cachedComputed as b } from "../../../composition/cachedComputed.js";
6
6
  import { parseJson as d } from "../../../lib/model/common/dist/index.js";
7
7
  function P() {
@@ -33,7 +33,7 @@ function k(e) {
33
33
  return e.flatMap((a) => !a.filter || a.filter.disabled ? [] : [{
34
34
  type: "bySingleColumnV2",
35
35
  column: a.id,
36
- predicate: g(a.alphabetic, a.filter.value)
36
+ predicate: h(a.alphabetic, a.filter.value)
37
37
  }]);
38
38
  }
39
39
  function y(e) {
@@ -89,7 +89,7 @@ function D(e, a) {
89
89
  () => o.value,
90
90
  (t) => {
91
91
  const r = t.sourceId ? c(t) : i(), l = s.value.pTableParams;
92
- h(r, l) || (s.value = {
92
+ g(r, l) || (s.value = {
93
93
  ...s.value,
94
94
  pTableParams: r
95
95
  });
@@ -1,11 +1,11 @@
1
- import { isJsonEqual as P } from "../../lib/util/helpers/dist/index.js";
2
- import { getRawPlatformaInstance as G, isLabelColumn as _, isLinkerColumn as K, createRowSelectionColumn as W } from "../../sdk/model/dist/index.js";
1
+ import { isJsonEqual as _ } from "../../lib/util/helpers/dist/index.js";
2
+ import { getRawPlatformaInstance as W, isLabelColumn as P, isLinkerColumn as B, createRowSelectionColumn as G } from "../../sdk/model/dist/index.js";
3
3
  import { asyncComputed as C } from "../../node_modules/.pnpm/@vueuse_core@13.3.0_vue@3.5.13_typescript@5.6.3_/node_modules/@vueuse/core/index.js";
4
- import { shallowRef as D, ref as B, toValue as q } from "vue";
5
- import { parseMarkup as H, markupAlignedSequence as Q } from "./markup.js";
4
+ import { shallowRef as D, ref as H, toValue as q } from "vue";
5
+ import { parseMarkup as K, markupAlignedSequence as Q } from "./markup.js";
6
6
  import { multiSequenceAlignment as X } from "./multi-sequence-alignment.js";
7
7
  import { ensureError as M, canonicalizeJson as x, getAxisId as k, parseJson as S, matchAxisId as Y, pTableValue as J } from "../../lib/model/common/dist/index.js";
8
- const E = () => G().pFrameDriver, L = 1e3;
8
+ const E = () => W().pFrameDriver, L = 1e3;
9
9
  function pn(t) {
10
10
  const e = D();
11
11
  return { data: C(
@@ -46,16 +46,16 @@ function fn(t) {
46
46
  ), error: e };
47
47
  }
48
48
  function dn(t) {
49
- const e = B(!0), m = D();
49
+ const e = H(!0), m = D();
50
50
  return { data: C(
51
51
  async () => {
52
52
  try {
53
53
  return m.value = void 0, await tn(q(t));
54
54
  } catch (c) {
55
- return console.error(c), m.value = M(c), F();
55
+ return console.error(c), m.value = M(c), U();
56
56
  }
57
57
  },
58
- F(),
58
+ U(),
59
59
  { evaluating: e }
60
60
  ), error: m, loading: e };
61
61
  }
@@ -87,7 +87,7 @@ async function nn({
87
87
  }));
88
88
  for (const [i, o] of u.entries()) {
89
89
  const r = S(i), g = a.find(
90
- ({ spec: v }) => _(v) && Y(r, k(v.axesSpec[0]))
90
+ ({ spec: v }) => P(v) && Y(r, k(v.axesSpec[0]))
91
91
  );
92
92
  c.set(
93
93
  g ? x({ type: "column", id: g.columnId }) : x({ type: "axis", id: r }),
@@ -114,7 +114,7 @@ async function nn({
114
114
  ), y = f.filter(({ value: i }) => {
115
115
  if (i.type === "axis") return !0;
116
116
  const o = a.find(({ columnId: r }) => r === i.id);
117
- return o && _(o.spec);
117
+ return o && P(o.spec);
118
118
  }).map(({ value: i }) => i);
119
119
  return { options: f, defaults: y };
120
120
  }
@@ -133,7 +133,7 @@ async function en({
133
133
  return a.filter(
134
134
  (u) => {
135
135
  var p;
136
- return ((p = u.spec.annotations) == null ? void 0 : p["pl7.app/sequence/isAnnotation"]) === "true" && P(c.spec.axesSpec, u.spec.axesSpec) && Object.entries(c.spec.domain ?? {}).every(([f, y]) => {
136
+ return ((p = u.spec.annotations) == null ? void 0 : p["pl7.app/sequence/isAnnotation"]) === "true" && _(c.spec.axesSpec, u.spec.axesSpec) && Object.entries(c.spec.domain ?? {}).every(([f, y]) => {
137
137
  var d;
138
138
  return ((d = u.spec.domain) == null ? void 0 : d[f]) === y;
139
139
  });
@@ -155,8 +155,8 @@ async function tn({
155
155
  }) {
156
156
  var $;
157
157
  if (!t || e.length === 0)
158
- return F();
159
- const u = E(), p = await u.listColumns(t), f = p.filter((n) => K(n.spec)), y = W({ selection: c });
158
+ return U();
159
+ const u = E(), p = await u.listColumns(t), f = p.filter((n) => B(n.spec)), y = G({ selection: c });
160
160
  let d = {
161
161
  type: "inner",
162
162
  entries: e.map((n) => ({
@@ -221,7 +221,7 @@ async function tn({
221
221
  }), R = m.map((n) => {
222
222
  const s = o.find(({ spec: l }) => {
223
223
  if (n.type === "axis" && l.type === "axis")
224
- return P(n.id, l.id);
224
+ return _(n.id, l.id);
225
225
  if (n.type === "column" && l.type === "column")
226
226
  return n.id === l.id;
227
227
  });
@@ -238,15 +238,15 @@ async function tn({
238
238
  }
239
239
  ))
240
240
  )
241
- ), N = Array.from(
241
+ ), F = Array.from(
242
242
  { length: r },
243
243
  (n, s) => V.map((l) => l[s])
244
- ), T = v.map(
244
+ ), z = v.map(
245
245
  (n) => {
246
246
  var s;
247
247
  return ((s = n.spec.spec.annotations) == null ? void 0 : s["pl7.app/label"]) ?? "Unlabelled column";
248
248
  }
249
- ), j = Array.from(
249
+ ), T = Array.from(
250
250
  { length: r },
251
251
  (n, s) => R.map(
252
252
  (l) => {
@@ -254,10 +254,10 @@ async function tn({
254
254
  return ((w = J(l.data, s, { na: "", absent: "" })) == null ? void 0 : w.toString()) ?? "";
255
255
  }
256
256
  )
257
- ), U = {
258
- sequences: N,
259
- sequenceNames: T,
260
- labels: j,
257
+ ), N = {
258
+ sequences: F,
259
+ sequenceNames: z,
260
+ labels: T,
261
261
  exceedsLimit: g
262
262
  };
263
263
  if (O) {
@@ -267,20 +267,20 @@ async function tn({
267
267
  { length: r },
268
268
  (l, w) => {
269
269
  var I;
270
- const z = H(
270
+ const j = K(
271
271
  ((I = J(O.data, w, { na: "", absent: "" })) == null ? void 0 : I.toString()) ?? ""
272
272
  );
273
- return Q(N[w][0], z);
273
+ return Q(F[w][0], j);
274
274
  }
275
275
  );
276
- U.markup = { labels: n, data: s };
276
+ N.markup = { labels: n, data: s };
277
277
  }
278
- return U;
278
+ return N;
279
279
  }
280
280
  function b() {
281
281
  return { options: [], defaults: [] };
282
282
  }
283
- function F() {
283
+ function U() {
284
284
  return {
285
285
  sequences: [],
286
286
  sequenceNames: [],
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as D, mergeModels as w, useModel as H, toRefs as J, computed as u, ref as f, onMounted as $, watch as O, onBeforeUnmount as W, createElementBlock as b, openBlock as m, Fragment as q, createBlock as E, createCommentVNode as V, createVNode as i, unref as o, Teleport as I, withModifiers as C, withCtx as d, createTextVNode as p, createElementVNode as k, normalizeClass as v, toDisplayString as S } from "vue";
2
2
  import "../../sdk/model/dist/index.js";
3
3
  import "../../lib/ui/uikit/dist/index.js";
4
- import { useFilters as j } from "./filters-state.js";
5
- import G from "./PlTableAddFilterV2.vue.js";
6
- import K from "./PlTableFilterEntryV2.vue.js";
7
- import { isJsonEqual as L } from "../../lib/util/helpers/dist/index.js";
8
- import { usePlBlockPageTitleTeleportTarget as Q } from "../../lib/ui/uikit/dist/layout/PlBlockPage/usePlBlockPageTitleTeleportTarget.js";
9
- import X from "../../lib/ui/uikit/dist/components/PlBtnGhost/PlBtnGhost.vue.js";
10
- import Y from "../../lib/ui/uikit/dist/components/PlSlideModal/PlSlideModal.vue.js";
11
- import Z from "../../lib/ui/uikit/dist/components/PlElementList/PlElementList.vue.js";
12
- import h from "../../lib/ui/uikit/dist/components/PlIcon16/PlIcon16.vue.js";
4
+ import { useFilters as h } from "./filters-state.js";
5
+ import j from "./PlTableAddFilterV2.vue.js";
6
+ import G from "./PlTableFilterEntryV2.vue.js";
7
+ import { isJsonEqual as K } from "../../lib/util/helpers/dist/index.js";
8
+ import { usePlBlockPageTitleTeleportTarget as L } from "../../lib/ui/uikit/dist/layout/PlBlockPage/usePlBlockPageTitleTeleportTarget.js";
9
+ import Q from "../../lib/ui/uikit/dist/components/PlBtnGhost/PlBtnGhost.vue.js";
10
+ import X from "../../lib/ui/uikit/dist/components/PlSlideModal/PlSlideModal.vue.js";
11
+ import Y from "../../lib/ui/uikit/dist/components/PlElementList/PlElementList.vue.js";
12
+ import Z from "../../lib/ui/uikit/dist/components/PlIcon16/PlIcon16.vue.js";
13
13
  import _ from "../../lib/ui/uikit/dist/components/PlBtnSecondary/PlBtnSecondary.vue.js";
14
14
  import { canonicalizeJson as ee } from "../../lib/model/common/dist/index.js";
15
15
  const te = ["disabled"], le = { key: 1 }, be = /* @__PURE__ */ D({
@@ -24,11 +24,11 @@ const te = ["disabled"], le = { key: 1 }, be = /* @__PURE__ */ D({
24
24
  }),
25
25
  emits: ["update:modelValue"],
26
26
  setup(F) {
27
- const U = H(F, "modelValue"), B = F, { settings: N } = J(B), r = j(N, U), R = u(() => r.value.some((e) => e.filter && !e.filter.disabled)), y = f(!1);
27
+ const U = H(F, "modelValue"), B = F, { settings: N } = J(B), r = h(N, U), R = u(() => r.value.some((e) => e.filter && !e.filter.disabled)), y = f(!1);
28
28
  $(() => {
29
29
  y.value = !0;
30
30
  });
31
- const T = Q("PlTableFiltersV2"), c = f(!1), A = f(!1), s = f();
31
+ const T = L("PlTableFiltersV2"), c = f(!1), A = f(!1), s = f();
32
32
  let n;
33
33
  $(() => {
34
34
  n = new ResizeObserver(() => {
@@ -43,7 +43,7 @@ const te = ["disabled"], le = { key: 1 }, be = /* @__PURE__ */ D({
43
43
  });
44
44
  const P = u(() => r.value.some((e) => !e.filter)), g = f(!1), x = u(() => r.value.some((e) => {
45
45
  var l, t;
46
- return !e.defaultFilter && e.filter || e.defaultFilter && (((l = e.filter) == null ? void 0 : l.disabled) === !0 || !L((t = e.filter) == null ? void 0 : t.value, e.defaultFilter));
46
+ return !e.defaultFilter && e.filter || e.defaultFilter && (((l = e.filter) == null ? void 0 : l.disabled) === !0 || !K((t = e.filter) == null ? void 0 : t.value, e.defaultFilter));
47
47
  })), z = () => {
48
48
  r.value.forEach((e) => {
49
49
  e.defaultFilter ? e.filter = {
@@ -58,7 +58,7 @@ const te = ["disabled"], le = { key: 1 }, be = /* @__PURE__ */ D({
58
58
  key: 0,
59
59
  to: o(T)
60
60
  }, [
61
- i(o(X), {
61
+ i(o(Q), {
62
62
  icon: R.value ? "filter-on" : "filter",
63
63
  onClick: l[0] || (l[0] = C((t) => c.value = !0, ["stop"]))
64
64
  }, {
@@ -68,7 +68,7 @@ const te = ["disabled"], le = { key: 1 }, be = /* @__PURE__ */ D({
68
68
  _: 1
69
69
  }, 8, ["icon"])
70
70
  ], 8, ["to"])) : V("", !0),
71
- i(o(Y), {
71
+ i(o(X), {
72
72
  modelValue: c.value,
73
73
  "onUpdate:modelValue": l[3] || (l[3] = (t) => c.value = t),
74
74
  "close-on-outside-click": !1
@@ -82,7 +82,7 @@ const te = ["disabled"], le = { key: 1 }, be = /* @__PURE__ */ D({
82
82
  ref: s,
83
83
  class: v(e.$style["filter-manager"])
84
84
  }, [
85
- i(o(Z), {
85
+ i(o(Y), {
86
86
  items: M.value,
87
87
  "onUpdate:items": l[1] || (l[1] = (t) => M.value = t),
88
88
  "on-expand": (t) => {
@@ -109,7 +109,7 @@ const te = ["disabled"], le = { key: 1 }, be = /* @__PURE__ */ D({
109
109
  p(S(t.label), 1)
110
110
  ]),
111
111
  "item-content": d(({ index: t }) => [
112
- i(K, {
112
+ i(G, {
113
113
  modelValue: o(r).value[t],
114
114
  "onUpdate:modelValue": (a) => o(r).value[t] = a
115
115
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
@@ -125,7 +125,7 @@ const te = ["disabled"], le = { key: 1 }, be = /* @__PURE__ */ D({
125
125
  class: v(e.$style["add-btn"]),
126
126
  onClick: l[2] || (l[2] = (t) => g.value = !0)
127
127
  }, [
128
- i(o(h), { name: "add" }),
128
+ i(o(Z), { name: "add" }),
129
129
  k("div", {
130
130
  class: v(e.$style["add-btn-title"])
131
131
  }, "Add Filter", 2)
@@ -145,7 +145,7 @@ const te = ["disabled"], le = { key: 1 }, be = /* @__PURE__ */ D({
145
145
  ]),
146
146
  _: 1
147
147
  }, 8, ["modelValue"]),
148
- i(G, {
148
+ i(j, {
149
149
  modelValue: g.value,
150
150
  "onUpdate:modelValue": l[4] || (l[4] = (t) => g.value = t),
151
151
  filters: o(r).value,
@@ -1,10 +1,10 @@
1
- import { ref as z, reactive as J, watch as h } from "vue";
1
+ import { ref as J, reactive as V, watch as h } from "vue";
2
2
  import "../../sdk/model/dist/index.js";
3
3
  import { isJsonEqual as b } from "../../lib/util/helpers/dist/index.js";
4
- import { getFilterOptions as g, makeDiscreteOptions as V, isFilterValid as F, isAlphabetic as k, getColumnName as q } from "./filters_logic.js";
5
- import { getPTableColumnId as x, canonicalizeJson as f } from "../../lib/model/common/dist/index.js";
6
- function N(M, m) {
7
- const w = z(/* @__PURE__ */ new Map()), o = J({
4
+ import { getFilterOptions as g, makeDiscreteOptions as k, isFilterValid as F, isAlphabetic as q, getColumnName as x } from "./filters_logic.js";
5
+ import { getPTableColumnId as z, canonicalizeJson as f } from "../../lib/model/common/dist/index.js";
6
+ function K(M, m) {
7
+ const w = J(/* @__PURE__ */ new Map()), o = V({
8
8
  value: []
9
9
  });
10
10
  return h(
@@ -13,23 +13,23 @@ function N(M, m) {
13
13
  const p = w.value = new Map(
14
14
  d.map((e, t) => {
15
15
  try {
16
- const i = x(e), l = n(e), r = l.options ? g(e).filter((C) => l.options.includes(C.value)) : g(e);
16
+ const i = z(e), l = n(e), r = l.options ? g(e).filter((y) => l.options.includes(y.value)) : g(e);
17
17
  if (r.length === 0) return null;
18
- const u = V(e), c = l.default && F(l.default, r, u) ? l.default : null, S = c ? {
18
+ const u = k(e), c = l.default && F(l.default, r, u) ? l.default : null, S = c ? {
19
19
  value: c,
20
20
  disabled: !1,
21
21
  open: !1
22
- } : null, y = {
22
+ } : null, C = {
23
23
  id: i,
24
24
  spec: e,
25
- label: q(e, t),
26
- alphabetic: k(e),
25
+ label: x(e, t),
26
+ alphabetic: q(e),
27
27
  options: r,
28
28
  discreteOptions: u,
29
29
  defaultFilter: c,
30
30
  filter: S
31
31
  };
32
- return [f(i), y];
32
+ return [f(i), C];
33
33
  } catch (i) {
34
34
  return console.error(`Filter creation for column ${e.id} has failed`, i), null;
35
35
  }
@@ -73,6 +73,6 @@ function N(M, m) {
73
73
  ), o;
74
74
  }
75
75
  export {
76
- N as useFilters
76
+ K as useFilters
77
77
  };
78
78
  //# sourceMappingURL=filters-state.js.map
package/dist/defineApp.js CHANGED
@@ -4,10 +4,10 @@ import { inject as A, reactive as v, markRaw as b } from "vue";
4
4
  import { createApp as j } from "./internal/createApp.js";
5
5
  import { activateAgGrid as k } from "./aggrid.js";
6
6
  const p = Symbol("sdk-vue");
7
- function G() {
7
+ function P() {
8
8
  return A(p);
9
9
  }
10
- function P(n, c, l = {}) {
10
+ function R(n, c, l = {}) {
11
11
  let i;
12
12
  k();
13
13
  const u = () => {
@@ -44,7 +44,7 @@ function P(n, c, l = {}) {
44
44
  return e;
45
45
  }
46
46
  export {
47
- P as defineApp,
48
- G as useSdkPlugin
47
+ R as defineApp,
48
+ P as useSdkPlugin
49
49
  };
50
50
  //# sourceMappingURL=defineApp.js.map