@platforma-sdk/ui-vue 1.41.19 → 1.42.1

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 (58) hide show
  1. package/.turbo/turbo-build.log +18 -18
  2. package/.turbo/turbo-type-check.log +1 -1
  3. package/CHANGELOG.md +18 -0
  4. package/dist/components/PlAgDataTable/sources/table-source-v2.js +11 -11
  5. package/dist/components/PlMultiSequenceAlignment/Legend.vue.d.ts +2 -2
  6. package/dist/components/PlMultiSequenceAlignment/Legend.vue.d.ts.map +1 -1
  7. package/dist/components/PlMultiSequenceAlignment/Legend.vue2.js +11 -11
  8. package/dist/components/PlMultiSequenceAlignment/Legend.vue3.js +8 -8
  9. package/dist/components/PlMultiSequenceAlignment/MultiSequenceAlignmentView.vue.d.ts +12 -6
  10. package/dist/components/PlMultiSequenceAlignment/MultiSequenceAlignmentView.vue.d.ts.map +1 -1
  11. package/dist/components/PlMultiSequenceAlignment/MultiSequenceAlignmentView.vue2.js +80 -65
  12. package/dist/components/PlMultiSequenceAlignment/MultiSequenceAlignmentView.vue2.js.map +1 -1
  13. package/dist/components/PlMultiSequenceAlignment/MultiSequenceAlignmentView.vue3.js +14 -12
  14. package/dist/components/PlMultiSequenceAlignment/MultiSequenceAlignmentView.vue3.js.map +1 -1
  15. package/dist/components/PlMultiSequenceAlignment/PlMultiSequenceAlignment.vue.d.ts +36 -1
  16. package/dist/components/PlMultiSequenceAlignment/PlMultiSequenceAlignment.vue.d.ts.map +1 -1
  17. package/dist/components/PlMultiSequenceAlignment/PlMultiSequenceAlignment.vue2.js +146 -111
  18. package/dist/components/PlMultiSequenceAlignment/PlMultiSequenceAlignment.vue2.js.map +1 -1
  19. package/dist/components/PlMultiSequenceAlignment/Toolbar.vue.d.ts +2 -0
  20. package/dist/components/PlMultiSequenceAlignment/Toolbar.vue.d.ts.map +1 -1
  21. package/dist/components/PlMultiSequenceAlignment/Toolbar.vue2.js +71 -68
  22. package/dist/components/PlMultiSequenceAlignment/Toolbar.vue2.js.map +1 -1
  23. package/dist/components/PlMultiSequenceAlignment/chemical-properties.d.ts +42 -6
  24. package/dist/components/PlMultiSequenceAlignment/chemical-properties.d.ts.map +1 -1
  25. package/dist/components/PlMultiSequenceAlignment/chemical-properties.js +96 -130
  26. package/dist/components/PlMultiSequenceAlignment/chemical-properties.js.map +1 -1
  27. package/dist/components/PlMultiSequenceAlignment/data.d.ts +3 -9
  28. package/dist/components/PlMultiSequenceAlignment/data.d.ts.map +1 -1
  29. package/dist/components/PlMultiSequenceAlignment/data.js +197 -211
  30. package/dist/components/PlMultiSequenceAlignment/data.js.map +1 -1
  31. package/dist/components/PlMultiSequenceAlignment/markup.d.ts +7 -5
  32. package/dist/components/PlMultiSequenceAlignment/markup.d.ts.map +1 -1
  33. package/dist/components/PlMultiSequenceAlignment/markup.js +47 -26
  34. package/dist/components/PlMultiSequenceAlignment/markup.js.map +1 -1
  35. package/dist/components/PlMultiSequenceAlignment/types.d.ts +1 -1
  36. package/dist/components/PlMultiSequenceAlignment/types.d.ts.map +1 -1
  37. package/dist/components/PlTableFilters/PlTableFiltersV2.vue2.js +18 -18
  38. package/dist/defineApp.js +6 -6
  39. package/dist/internal/createAppV2.js +12 -12
  40. package/dist/lib/model/common/dist/index.js +24 -24
  41. package/dist/lib/ui/uikit/dist/components/PlFileInput/PlFileInput.vue.js +7 -7
  42. package/dist/lib/ui/uikit/dist/lib/model/common/dist/index.js +8 -8
  43. package/dist/lib/ui/uikit/dist/lib/model/common/dist/index.js.map +1 -1
  44. package/dist/lib/ui/uikit/dist/sdk/model/dist/index.js +1 -1
  45. package/dist/node_modules/.pnpm/@vueuse_core@13.3.0_vue@3.5.13_typescript@5.6.3_/node_modules/@vueuse/core/index.js +111 -165
  46. package/dist/node_modules/.pnpm/@vueuse_core@13.3.0_vue@3.5.13_typescript@5.6.3_/node_modules/@vueuse/core/index.js.map +1 -1
  47. package/dist/node_modules/.pnpm/@vueuse_shared@13.3.0_vue@3.5.13_typescript@5.6.3_/node_modules/@vueuse/shared/index.js +1 -1
  48. package/dist/sdk/model/dist/index.js +1 -1
  49. package/package.json +4 -4
  50. package/src/components/PlMultiSequenceAlignment/Legend.vue +4 -3
  51. package/src/components/PlMultiSequenceAlignment/MultiSequenceAlignmentView.vue +66 -46
  52. package/src/components/PlMultiSequenceAlignment/PlMultiSequenceAlignment.vue +85 -34
  53. package/src/components/PlMultiSequenceAlignment/README.md +10 -8
  54. package/src/components/PlMultiSequenceAlignment/Toolbar.vue +4 -1
  55. package/src/components/PlMultiSequenceAlignment/chemical-properties.ts +154 -161
  56. package/src/components/PlMultiSequenceAlignment/data.ts +65 -85
  57. package/src/components/PlMultiSequenceAlignment/markup.ts +47 -15
  58. package/src/components/PlMultiSequenceAlignment/types.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"markup.d.ts","sourceRoot":"","sources":["../../../src/components/PlMultiSequenceAlignment/markup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,MAAM,MAAM,MAAM,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EAAE,CAAC;AAErE,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAmB/C;AAED,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,MAAM,EACvB,MAAM,EAAE,MAAM,GACb,MAAM,CAkBR;AAED,wBAAgB,yBAAyB,CACvC,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE;IACrC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,QAAQ,CAAC;CACpB,GACA,OAAO,CAAC,IAAI,CAAC,CAYf;AAED,eAAO,MAAM,YAAY,UAiBxB,CAAC"}
1
+ {"version":3,"file":"markup.d.ts","sourceRoot":"","sources":["../../../src/components/PlMultiSequenceAlignment/markup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,MAAM,MAAM,MAAM,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EAAE,CAAC;AAErE,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAmB/C;AAED,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,MAAM,EACvB,MAAM,EAAE,MAAM,GACb,MAAM,CAkBR;AAED,wBAAgB,iBAAiB,CAC/B,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE;IACnC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC,GACA;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,MAAM,EAAE,eAAe,CAAA;CAAE,CA4CzC"}
@@ -1,40 +1,62 @@
1
- function l(e) {
2
- return Array.from(e.matchAll(
1
+ function E(o) {
2
+ return Array.from(o.matchAll(
3
3
  /(?<id>[^:]*):(?<start>[0-9A-Za-z]*)(?:\+(?<length>[0-9A-Za-z]*))?\|?/g
4
- )).map((o) => {
5
- const n = o.groups, s = Number.parseInt(n.start, 36), t = n.length ? Number.parseInt(n.length, 36) : 0;
4
+ )).map((l) => {
5
+ const r = l.groups, n = Number.parseInt(r.start, 36), t = r.length ? Number.parseInt(r.length, 36) : 0;
6
6
  return {
7
- id: n.id,
8
- start: s,
7
+ id: r.id,
8
+ start: n,
9
9
  length: t
10
10
  };
11
11
  });
12
12
  }
13
- function i(e, o) {
14
- const n = e.split("").reduce(
15
- (t, r, F) => (r !== "-" && t.push(F), t),
13
+ function f(o, l) {
14
+ const r = o.split("").reduce(
15
+ (t, a, e) => (a !== "-" && t.push(e), t),
16
16
  []
17
17
  );
18
- return o.map((t) => {
19
- const r = n[t.start], F = n[t.start + t.length - 1] + 1;
18
+ return l.map((t) => {
19
+ const a = r[t.start], e = r[t.start + t.length - 1] + 1;
20
20
  return {
21
21
  id: t.id,
22
- start: r,
23
- length: F - r
22
+ start: a,
23
+ length: e - a
24
24
  };
25
25
  });
26
26
  }
27
- function E({ markupRows: e, columnCount: o, colorMap: n }) {
28
- var r;
29
- const s = new OffscreenCanvas(o, e.length), t = s.getContext("2d");
30
- for (const [F, u] of e.entries())
31
- for (const c of u) {
32
- const a = (r = n[c.id]) == null ? void 0 : r.color;
33
- a && (t.fillStyle = a, t.fillRect(c.start, F, c.length, 1));
27
+ function C({ markupRows: o, columnCount: l, labels: r }) {
28
+ const n = /* @__PURE__ */ new Map();
29
+ for (const [e, F] of o.entries())
30
+ for (const { id: s, start: u, length: c } of F) {
31
+ let i = n.get(s);
32
+ i || n.set(s, i = []), i.push({ row: e, start: u, length: c });
34
33
  }
35
- return s.convertToBlob();
34
+ const t = Object.fromEntries(
35
+ Object.entries(r).filter(([e]) => n.has(e)).map(([e, F], s) => [
36
+ e,
37
+ {
38
+ label: F,
39
+ color: g[s % g.length]
40
+ }
41
+ ])
42
+ );
43
+ return { blob: new Blob(
44
+ function* () {
45
+ yield `<svg xmlns="http://www.w3.org/2000/svg" viewBox="${`0 0 ${l} ${o.length * 2}`}" stroke-width="2" preserveAspectRatio="none">`;
46
+ for (const [F, s] of n) {
47
+ const { color: u } = t[F];
48
+ yield `<path stroke="${u}" d="`;
49
+ let c = 0, i = 0;
50
+ for (const { row: d, start: p, length: h } of s)
51
+ yield `m${p - c},${d * 2 + 1 - i}h${h}`, c = p + h, i = d * 2 + 1;
52
+ yield '"/>';
53
+ }
54
+ yield "</svg>";
55
+ }().toArray(),
56
+ { type: "image/svg+xml" }
57
+ ), legend: t };
36
58
  }
37
- const C = [
59
+ const g = [
38
60
  "#E5F2FF",
39
61
  "#FFE8E8",
40
62
  "#F0EBFF",
@@ -53,9 +75,8 @@ const C = [
53
75
  "#DEEEEF"
54
76
  ];
55
77
  export {
56
- E as colorizeSequencesByMarkup,
57
- i as markupAlignedSequence,
58
- C as markupColors,
59
- l as parseMarkup
78
+ C as highlightByMarkup,
79
+ f as markupAlignedSequence,
80
+ E as parseMarkup
60
81
  };
61
82
  //# sourceMappingURL=markup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"markup.js","sources":["../../../src/components/PlMultiSequenceAlignment/markup.ts"],"sourcesContent":["import type { ColorMap } from './types';\n\nexport type Markup = { id: string; start: number; length: number }[];\n\nexport function parseMarkup(row: string): Markup {\n return Array.from(row.matchAll(\n /(?<id>[^:]*):(?<start>[0-9A-Za-z]*)(?:\\+(?<length>[0-9A-Za-z]*))?\\|?/g,\n )).map((match) => {\n const matchGroups = match.groups as {\n id: string;\n start: string;\n length: string | undefined;\n };\n const start = Number.parseInt(matchGroups.start, 36);\n const length = matchGroups.length\n ? Number.parseInt(matchGroups.length, 36)\n : 0;\n return {\n id: matchGroups.id,\n start,\n length,\n };\n });\n}\n\nexport function markupAlignedSequence(\n alignedSequence: string,\n markup: Markup,\n): Markup {\n const indexMap = alignedSequence.split('').reduce<number[]>(\n (acc, char, index) => {\n if (char !== '-') acc.push(index);\n return acc;\n },\n [],\n );\n const adjusted = markup.map((segment) => {\n const start = indexMap[segment.start];\n const end = indexMap[segment.start + segment.length - 1] + 1;\n return {\n id: segment.id,\n start: start,\n length: end - start,\n };\n });\n return adjusted;\n}\n\nexport function colorizeSequencesByMarkup(\n { markupRows, columnCount, colorMap }: {\n markupRows: Markup[];\n columnCount: number;\n colorMap: ColorMap;\n },\n): Promise<Blob> {\n const canvas = new OffscreenCanvas(columnCount, markupRows.length);\n const context = canvas.getContext('2d')!;\n for (const [rowIndex, markup] of markupRows.entries()) {\n for (const segment of markup) {\n const color = colorMap[segment.id]?.color;\n if (!color) continue;\n context.fillStyle = color;\n context.fillRect(segment.start, rowIndex, segment.length, 1);\n }\n }\n return canvas.convertToBlob();\n}\n\nexport const markupColors = [\n '#E5F2FF',\n '#FFE8E8',\n '#F0EBFF',\n '#FFFFE3',\n '#E5F7E5',\n '#FEEAFE',\n '#FDEED6',\n '#E8FDFE',\n '#CCDFF2',\n '#F2CCCD',\n '#D5CCF2',\n '#F2F2CC',\n '#CCF2CC',\n '#F2CCF2',\n '#EFDDBF',\n '#DEEEEF',\n];\n\nif (import.meta.vitest) {\n const { test, expect } = import.meta.vitest;\n test('annotateAlignedRow', () => {\n const alignedSequence\n = 'EVRLVESGGALVQPGGSLRLSCVAASGFTFINNWVTWVRQAPGKGLEWVANIKEDGSQKYYVDSVKGRFTISRDNAEKSVYLQMSSLRVDDTAVYYCAR------------GRAV----D---QWGQGTLVTVSS';\n // 0 10 20 30 40 50 60 70 80 90 100 110 120 130\n // EVRLVESGGALVQPGGSLRLSCVAASGFTFINNWVTWVRQAPGKGLEWVANIKEDGSQKYYVDSVKGRFTISRDNAEKSVYLQMSSLRVDDTAVYYCARGRAVDQWGQGTLVTVSS\n const markup = [\n { id: '1', start: 0, length: 99 },\n { id: '2', start: 99, length: 3 },\n { id: '3', start: 102, length: 14 },\n ];\n const alignedMarkup = markupAlignedSequence(alignedSequence, markup);\n expect(alignedMarkup).toEqual([\n { id: '1', start: 0, length: 99 },\n { id: '2', start: 111, length: 3 },\n { id: '3', start: 114, length: 21 },\n ]);\n });\n}\n"],"names":["parseMarkup","row","match","matchGroups","start","length","markupAlignedSequence","alignedSequence","markup","indexMap","acc","char","index","segment","end","colorizeSequencesByMarkup","markupRows","columnCount","colorMap","_a","canvas","context","rowIndex","color","markupColors"],"mappings":"AAIO,SAASA,EAAYC,GAAqB;AACxC,SAAA,MAAM,KAAKA,EAAI;AAAA,IACpB;AAAA,EAAA,CACD,EAAE,IAAI,CAACC,MAAU;AAChB,UAAMC,IAAcD,EAAM,QAKpBE,IAAQ,OAAO,SAASD,EAAY,OAAO,EAAE,GAC7CE,IAASF,EAAY,SACvB,OAAO,SAASA,EAAY,QAAQ,EAAE,IACtC;AACG,WAAA;AAAA,MACL,IAAIA,EAAY;AAAA,MAChB,OAAAC;AAAA,MACA,QAAAC;AAAA,IACF;AAAA,EAAA,CACD;AACH;AAEgB,SAAAC,EACdC,GACAC,GACQ;AACR,QAAMC,IAAWF,EAAgB,MAAM,EAAE,EAAE;AAAA,IACzC,CAACG,GAAKC,GAAMC,OACND,MAAS,OAASD,EAAA,KAAKE,CAAK,GACzBF;AAAA,IAET,CAAA;AAAA,EACF;AAUO,SATUF,EAAO,IAAI,CAACK,MAAY;AACjC,UAAAT,IAAQK,EAASI,EAAQ,KAAK,GAC9BC,IAAML,EAASI,EAAQ,QAAQA,EAAQ,SAAS,CAAC,IAAI;AACpD,WAAA;AAAA,MACL,IAAIA,EAAQ;AAAA,MACZ,OAAAT;AAAA,MACA,QAAQU,IAAMV;AAAA,IAChB;AAAA,EAAA,CACD;AAEH;AAEO,SAASW,EACd,EAAE,YAAAC,GAAY,aAAAC,GAAa,UAAAC,KAKZ;AAlDV,MAAAC;AAmDL,QAAMC,IAAS,IAAI,gBAAgBH,GAAaD,EAAW,MAAM,GAC3DK,IAAUD,EAAO,WAAW,IAAI;AACtC,aAAW,CAACE,GAAUd,CAAM,KAAKQ,EAAW;AAC1C,eAAWH,KAAWL,GAAQ;AAC5B,YAAMe,KAAQJ,IAAAD,EAASL,EAAQ,EAAE,MAAnB,gBAAAM,EAAsB;AACpC,MAAKI,MACLF,EAAQ,YAAYE,GACpBF,EAAQ,SAASR,EAAQ,OAAOS,GAAUT,EAAQ,QAAQ,CAAC;AAAA,IAAA;AAG/D,SAAOO,EAAO,cAAc;AAC9B;AAEO,MAAMI,IAAe;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;"}
1
+ {"version":3,"file":"markup.js","sources":["../../../src/components/PlMultiSequenceAlignment/markup.ts"],"sourcesContent":["import type { HighlightLegend } from './types';\n\nexport type Markup = { id: string; start: number; length: number }[];\n\nexport function parseMarkup(row: string): Markup {\n return Array.from(row.matchAll(\n /(?<id>[^:]*):(?<start>[0-9A-Za-z]*)(?:\\+(?<length>[0-9A-Za-z]*))?\\|?/g,\n )).map((match) => {\n const matchGroups = match.groups as {\n id: string;\n start: string;\n length: string | undefined;\n };\n const start = Number.parseInt(matchGroups.start, 36);\n const length = matchGroups.length\n ? Number.parseInt(matchGroups.length, 36)\n : 0;\n return {\n id: matchGroups.id,\n start,\n length,\n };\n });\n}\n\nexport function markupAlignedSequence(\n alignedSequence: string,\n markup: Markup,\n): Markup {\n const indexMap = alignedSequence.split('').reduce<number[]>(\n (acc, char, index) => {\n if (char !== '-') acc.push(index);\n return acc;\n },\n [],\n );\n const adjusted = markup.map((segment) => {\n const start = indexMap[segment.start];\n const end = indexMap[segment.start + segment.length - 1] + 1;\n return {\n id: segment.id,\n start: start,\n length: end - start,\n };\n });\n return adjusted;\n}\n\nexport function highlightByMarkup(\n { markupRows, columnCount, labels }: {\n markupRows: Markup[];\n columnCount: number;\n labels: Record<string, string>;\n },\n): { blob: Blob; legend: HighlightLegend } {\n const linesById: Map<string, {\n row: number;\n start: number;\n length: number;\n }[]> = new Map();\n for (const [row, markup] of markupRows.entries()) {\n for (const { id, start, length } of markup) {\n let bucket = linesById.get(id);\n if (!bucket) linesById.set(id, bucket = []);\n bucket.push({ row, start, length });\n }\n }\n const legend: HighlightLegend = Object.fromEntries(\n Object.entries(labels)\n .filter(([id]) => linesById.has(id))\n .map(([id, label], index) => [\n id,\n {\n label,\n color: markupColors[index % markupColors.length],\n },\n ]),\n );\n const blob = new Blob(\n (function*() {\n const viewBox = `0 0 ${columnCount} ${markupRows.length * 2}`;\n yield `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"${viewBox}\" stroke-width=\"2\" preserveAspectRatio=\"none\">`;\n for (const [id, lines] of linesById) {\n const { color } = legend[id];\n yield `<path stroke=\"${color}\" d=\"`;\n let x = 0, y = 0;\n for (const { row, start, length } of lines) {\n yield `m${start - x},${row * 2 + 1 - y}h${length}`;\n x = start + length;\n y = row * 2 + 1;\n }\n yield '\"/>';\n }\n yield '</svg>';\n })().toArray(),\n { type: 'image/svg+xml' },\n );\n return { blob, legend };\n}\n\nconst markupColors = [\n '#E5F2FF',\n '#FFE8E8',\n '#F0EBFF',\n '#FFFFE3',\n '#E5F7E5',\n '#FEEAFE',\n '#FDEED6',\n '#E8FDFE',\n '#CCDFF2',\n '#F2CCCD',\n '#D5CCF2',\n '#F2F2CC',\n '#CCF2CC',\n '#F2CCF2',\n '#EFDDBF',\n '#DEEEEF',\n];\n\nif (import.meta.vitest) {\n const { test, expect } = import.meta.vitest;\n test('annotateAlignedRow', () => {\n const alignedSequence\n = 'EVRLVESGGALVQPGGSLRLSCVAASGFTFINNWVTWVRQAPGKGLEWVANIKEDGSQKYYVDSVKGRFTISRDNAEKSVYLQMSSLRVDDTAVYYCAR------------GRAV----D---QWGQGTLVTVSS';\n // 0 10 20 30 40 50 60 70 80 90 100 110 120 130\n // EVRLVESGGALVQPGGSLRLSCVAASGFTFINNWVTWVRQAPGKGLEWVANIKEDGSQKYYVDSVKGRFTISRDNAEKSVYLQMSSLRVDDTAVYYCARGRAVDQWGQGTLVTVSS\n const markup = [\n { id: '1', start: 0, length: 99 },\n { id: '2', start: 99, length: 3 },\n { id: '3', start: 102, length: 14 },\n ];\n const alignedMarkup = markupAlignedSequence(alignedSequence, markup);\n expect(alignedMarkup).toEqual([\n { id: '1', start: 0, length: 99 },\n { id: '2', start: 111, length: 3 },\n { id: '3', start: 114, length: 21 },\n ]);\n });\n}\n"],"names":["parseMarkup","row","match","matchGroups","start","length","markupAlignedSequence","alignedSequence","markup","indexMap","acc","char","index","segment","end","highlightByMarkup","markupRows","columnCount","labels","linesById","id","bucket","legend","label","markupColors","lines","color","x","y"],"mappings":"AAIO,SAASA,EAAYC,GAAqB;AACxC,SAAA,MAAM,KAAKA,EAAI;AAAA,IACpB;AAAA,EAAA,CACD,EAAE,IAAI,CAACC,MAAU;AAChB,UAAMC,IAAcD,EAAM,QAKpBE,IAAQ,OAAO,SAASD,EAAY,OAAO,EAAE,GAC7CE,IAASF,EAAY,SACvB,OAAO,SAASA,EAAY,QAAQ,EAAE,IACtC;AACG,WAAA;AAAA,MACL,IAAIA,EAAY;AAAA,MAChB,OAAAC;AAAA,MACA,QAAAC;AAAA,IACF;AAAA,EAAA,CACD;AACH;AAEgB,SAAAC,EACdC,GACAC,GACQ;AACR,QAAMC,IAAWF,EAAgB,MAAM,EAAE,EAAE;AAAA,IACzC,CAACG,GAAKC,GAAMC,OACND,MAAS,OAASD,EAAA,KAAKE,CAAK,GACzBF;AAAA,IAET,CAAA;AAAA,EACF;AAUO,SATUF,EAAO,IAAI,CAACK,MAAY;AACjC,UAAAT,IAAQK,EAASI,EAAQ,KAAK,GAC9BC,IAAML,EAASI,EAAQ,QAAQA,EAAQ,SAAS,CAAC,IAAI;AACpD,WAAA;AAAA,MACL,IAAIA,EAAQ;AAAA,MACZ,OAAAT;AAAA,MACA,QAAQU,IAAMV;AAAA,IAChB;AAAA,EAAA,CACD;AAEH;AAEO,SAASW,EACd,EAAE,YAAAC,GAAY,aAAAC,GAAa,QAAAC,KAKc;AACnC,QAAAC,wBAIK,IAAI;AACf,aAAW,CAAClB,GAAKO,CAAM,KAAKQ,EAAW;AACrC,eAAW,EAAE,IAAAI,GAAI,OAAAhB,GAAO,QAAAC,EAAA,KAAYG,GAAQ;AACtC,UAAAa,IAASF,EAAU,IAAIC,CAAE;AAC7B,MAAKC,KAAQF,EAAU,IAAIC,GAAIC,IAAS,EAAE,GAC1CA,EAAO,KAAK,EAAE,KAAApB,GAAK,OAAAG,GAAO,QAAAC,GAAQ;AAAA,IAAA;AAGtC,QAAMiB,IAA0B,OAAO;AAAA,IACrC,OAAO,QAAQJ,CAAM,EAClB,OAAO,CAAC,CAACE,CAAE,MAAMD,EAAU,IAAIC,CAAE,CAAC,EAClC,IAAI,CAAC,CAACA,GAAIG,CAAK,GAAGX,MAAU;AAAA,MAC3BQ;AAAA,MACA;AAAA,QACE,OAAAG;AAAA,QACA,OAAOC,EAAaZ,IAAQY,EAAa,MAAM;AAAA,MAAA;AAAA,IAElD,CAAA;AAAA,EACL;AAoBO,SAAA,EAAE,MAnBI,IAAI;AAAA,IACd,aAAY;AAEX,YAAM,oDADU,OAAOP,CAAW,IAAID,EAAW,SAAS,CAAC,EACM;AACjE,iBAAW,CAACI,GAAIK,CAAK,KAAKN,GAAW;AACnC,cAAM,EAAE,OAAAO,EAAA,IAAUJ,EAAOF,CAAE;AAC3B,cAAM,iBAAiBM,CAAK;AACxB,YAAAC,IAAI,GAAGC,IAAI;AACf,mBAAW,EAAE,KAAA3B,GAAK,OAAAG,GAAO,QAAAC,EAAA,KAAYoB;AAC7B,gBAAA,IAAIrB,IAAQuB,CAAC,IAAI1B,IAAM,IAAI,IAAI2B,CAAC,IAAIvB,CAAM,IAChDsB,IAAIvB,IAAQC,GACZuB,IAAI3B,IAAM,IAAI;AAEV,cAAA;AAAA,MAAA;AAEF,YAAA;AAAA,IACR,EAAA,EAAK,QAAQ;AAAA,IACb,EAAE,MAAM,gBAAgB;AAAA,EAC1B,GACe,QAAAqB,EAAO;AACxB;AAEA,MAAME,IAAe;AAAA,EACnB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;"}
@@ -1,4 +1,4 @@
1
- export type ColorMap = Record<string, {
1
+ export type HighlightLegend = Record<string, {
2
2
  label: string;
3
3
  color: string;
4
4
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/PlMultiSequenceAlignment/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAExE,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/PlMultiSequenceAlignment/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAE/E,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC"}
@@ -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 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";
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";
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 = h(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 = j(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 = L("PlTableFiltersV2"), c = f(!1), A = f(!1), s = f();
31
+ const T = Q("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 || !K((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 || !L((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(Q), {
61
+ i(o(X), {
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(X), {
71
+ i(o(Y), {
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(Y), {
85
+ i(o(Z), {
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(G, {
112
+ i(K, {
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(Z), { name: "add" }),
128
+ i(o(h), { 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(j, {
148
+ i(G, {
149
149
  modelValue: g.value,
150
150
  "onUpdate:modelValue": l[4] || (l[4] = (t) => g.value = t),
151
151
  filters: o(r).value,
package/dist/defineApp.js CHANGED
@@ -2,16 +2,16 @@ import { notEmpty as V } from "./lib/util/helpers/dist/index.js";
2
2
  import { getPlatformaApiVersion as g } from "./sdk/model/dist/index.js";
3
3
  import { inject as k, reactive as h, markRaw as A } from "vue";
4
4
  import { createAppV1 as j } from "./internal/createAppV1.js";
5
- import { createAppV2 as S } from "./internal/createAppV2.js";
6
- import { activateAgGrid as w } from "./aggrid.js";
7
- import { unwrapResult as y } from "./lib/model/common/dist/index.js";
5
+ import { createAppV2 as w } from "./internal/createAppV2.js";
6
+ import { activateAgGrid as y } from "./aggrid.js";
7
+ import { unwrapResult as O } from "./lib/model/common/dist/index.js";
8
8
  const m = Symbol("sdk-vue");
9
9
  function $() {
10
10
  return k(m);
11
11
  }
12
12
  function C(e, p, l = {}) {
13
13
  let u;
14
- w();
14
+ y();
15
15
  const d = e.apiVersion ?? 1, f = g(), b = async () => {
16
16
  if (f !== d)
17
17
  throw new Error(`Block requested API version ${f} but runtime API version is ${d}.
@@ -31,9 +31,9 @@ function C(e, p, l = {}) {
31
31
  }
32
32
  });
33
33
  }) : e.apiVersion === 2 && await e.loadBlockState().then((r) => {
34
- const t = y(r);
34
+ const t = O(r);
35
35
  a.loaded = !0;
36
- const i = S(t, e, l), c = p(i), s = Object.fromEntries(
36
+ const i = w(t, e, l), c = p(i), s = Object.fromEntries(
37
37
  Object.entries(c.routes).map(([o, n]) => {
38
38
  const v = typeof n == "function" ? n() : n;
39
39
  return [o, A(v)];
@@ -1,7 +1,7 @@
1
1
  import { deepClone as l, uniqueId as V, delay as L } from "../lib/util/helpers/dist/index.js";
2
2
  import "../sdk/model/dist/index.js";
3
- import { ref as A, computed as p, reactive as B, watch as W } from "vue";
4
- import { createModel as N } from "../createModel.js";
3
+ import { ref as A, computed as p, reactive as P, watch as W } from "vue";
4
+ import { createModel as B } from "../createModel.js";
5
5
  import { parseQuery as F } from "../urls.js";
6
6
  import { MultiError as G, unwrapValueOrErrors as H } from "../utils.js";
7
7
  import "../node_modules/.pnpm/fast-json-patch@3.1.1/node_modules/fast-json-patch/index.js";
@@ -23,13 +23,13 @@ function se(n, d, h) {
23
23
  authorId: V(),
24
24
  localVersion: 0
25
25
  }
26
- }, S = () => (u.author = X(u.author), r("nextAuthorMarker", u.author), u.author), g = A(!1), f = A(n.uTag), v = h.debounceSpan ?? 200, y = new m({ debounceSpan: v }), M = new m({ debounceSpan: v }), U = new m({ debounceSpan: v }), R = new m({ debounceSpan: v }), o = A(n.value), T = async (e) => d.setBlockArgs(e, S()), x = async (e) => d.setBlockUiState(e, S()), k = async (e, t) => d.setBlockArgsAndUiState(e, t, S()), q = async (e) => d.setNavigationState(e), C = p(() => {
26
+ }, f = () => (u.author = X(u.author), r("nextAuthorMarker", u.author), u.author), g = A(!1), S = A(n.uTag), v = h.debounceSpan ?? 200, y = new m({ debounceSpan: v }), M = new m({ debounceSpan: v }), U = new m({ debounceSpan: v }), R = new m({ debounceSpan: v }), o = A(n.value), T = async (e) => d.setBlockArgs(e, f()), x = async (e) => d.setBlockUiState(e, f()), k = async (e, t) => d.setBlockArgsAndUiState(e, t, f()), q = async (e) => d.setNavigationState(e), C = p(() => {
27
27
  const e = Object.entries(o.value.outputs).map(([t, a]) => [t, a.ok && a.value !== void 0 ? a.value : void 0]);
28
28
  return Object.fromEntries(e);
29
29
  }), D = p(() => {
30
30
  const e = Object.entries(o.value.outputs).map(([t, a]) => [t, a && !a.ok ? new G(a.errors) : void 0]);
31
31
  return Object.fromEntries(e);
32
- }), s = B({
32
+ }), s = P({
33
33
  error: "",
34
34
  model: {
35
35
  args: l(o.value.args),
@@ -55,8 +55,8 @@ function se(n, d, h) {
55
55
  });
56
56
  }); !g.value; )
57
57
  try {
58
- const a = await d.getPatches(f.value).then(c);
59
- if (r("patches.length", a.value.length), r("uTagRef.value", f.value), r("patches.uTag", a.uTag), r("patches.author", a.author), r("data.author", u.author), f.value = a.uTag, a.value.length === 0) {
58
+ const a = await d.getPatches(S.value).then(c);
59
+ if (r("patches.length", a.value.length), r("uTagRef.value", S.value), r("patches.uTag", a.uTag), r("patches.author", a.author), r("data.author", u.author), S.value = a.uTag, a.value.length === 0) {
60
60
  await new Promise((w) => setTimeout(w, Q));
61
61
  continue;
62
62
  }
@@ -66,12 +66,12 @@ function se(n, d, h) {
66
66
  K(a) ? (r("patches loop aborted"), g.value = !0) : (b("error in patches loop", a), await new Promise((i) => setTimeout(i, 1e3)));
67
67
  }
68
68
  })();
69
- const I = () => l(s.model.args), j = () => l(s.model.ui), P = () => l(o.value.navigationState), z = {
69
+ const I = () => l(s.model.args), j = () => l(s.model.ui), N = () => l(o.value.navigationState), z = {
70
70
  cloneArgs: I,
71
71
  cloneUiState: j,
72
- cloneNavigationState: P,
72
+ cloneNavigationState: N,
73
73
  createArgsModel(e = {}) {
74
- return N({
74
+ return B({
75
75
  get() {
76
76
  return e.transform ? e.transform(o.value.args) : o.value.args;
77
77
  },
@@ -86,7 +86,7 @@ function se(n, d, h) {
86
86
  * defaultUiState is temporarily here, remove it after implementing initialUiState
87
87
  */
88
88
  createUiModel(e = {}, t) {
89
- return N({
89
+ return B({
90
90
  get() {
91
91
  return e.transform ? e.transform(o.value.ui) : o.value.ui ?? t();
92
92
  },
@@ -137,7 +137,7 @@ function se(n, d, h) {
137
137
  * @returns A promise resolving after the navigation state is updated.
138
138
  */
139
139
  navigateTo(e) {
140
- const t = P();
140
+ const t = N();
141
141
  return t.href = e, R.run(() => q(t).then(c));
142
142
  },
143
143
  async allSettled() {
@@ -150,7 +150,7 @@ function se(n, d, h) {
150
150
  href: p(() => o.value.navigationState.href),
151
151
  hasErrors: p(() => Object.values(o.value.outputs).some((e) => !(e != null && e.ok)))
152
152
  };
153
- return B(Object.assign(s, z, J));
153
+ return P(Object.assign(s, z, J));
154
154
  }
155
155
  export {
156
156
  se as createAppV2,
@@ -10,7 +10,7 @@ f.object({
10
10
  function A(e) {
11
11
  throw new Error("Unexpected object: " + e);
12
12
  }
13
- function W(e) {
13
+ function Z(e) {
14
14
  if (!e || typeof e != "object")
15
15
  return !1;
16
16
  const t = e;
@@ -160,7 +160,7 @@ function j(e, t) {
160
160
  const n = Math.floor(t / 8), r = 1 << 7 - t % 8;
161
161
  return (e[n] & r) > 0;
162
162
  }
163
- const C = { type: "absent" }, L = null;
163
+ const C = { type: "absent" }, $ = null;
164
164
  function oe(e) {
165
165
  return typeof e == "object" && e !== null && e.type === "absent";
166
166
  }
@@ -168,7 +168,7 @@ function ae(e, t, n = {}) {
168
168
  if (j(e.absent, t))
169
169
  return n.absent === void 0 ? C : n.absent;
170
170
  const r = e.data[t], o = e.type;
171
- if (O(r, o)) return n.na === void 0 ? L : n.na;
171
+ if (O(r, o)) return n.na === void 0 ? $ : n.na;
172
172
  switch (o) {
173
173
  case "Int":
174
174
  return r;
@@ -190,7 +190,7 @@ function l(e) {
190
190
  const { type: t, name: n, domain: r } = e, o = { type: t, name: n };
191
191
  return r && Object.entries(r).length > 0 && Object.assign(o, { domain: r }), o;
192
192
  }
193
- function $(e) {
193
+ function L(e) {
194
194
  return e.map(l);
195
195
  }
196
196
  function ie(e) {
@@ -526,7 +526,7 @@ function ye(e) {
526
526
  kind: e.kind,
527
527
  name: e.name
528
528
  };
529
- return e.domain !== void 0 && (t.domain = e.domain), h(e) && (t.axesSpec = $(e.axesSpec)), p(t);
529
+ return e.domain !== void 0 && (t.domain = e.domain), h(e) && (t.axesSpec = L(e.axesSpec)), p(t);
530
530
  }
531
531
  f.object({
532
532
  __isRef: f.literal(!0).describe("Crucial marker for the block dependency tree reconstruction"),
@@ -553,7 +553,7 @@ function be(e, t = !0) {
553
553
  function ge(e, t) {
554
554
  return e.ok ? { ok: !0, value: t(e.value) } : e;
555
555
  }
556
- function F(e) {
556
+ function U(e) {
557
557
  if (e instanceof Int8Array || e instanceof Uint8Array || e instanceof Uint8ClampedArray)
558
558
  return new DataView(e.buffer, e.byteOffset, e.byteLength);
559
559
  if (e instanceof ArrayBuffer) return new DataView(e);
@@ -561,17 +561,17 @@ function F(e) {
561
561
  "Expected `data` to be an ArrayBuffer, Buffer, Int8Array, Uint8Array or Uint8ClampedArray"
562
562
  );
563
563
  }
564
- const M = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567", U = "0123456789ABCDEFGHIJKLMNOPQRSTUV", _ = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
565
- function z(e, t, n) {
564
+ const F = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567", M = "0123456789ABCDEFGHIJKLMNOPQRSTUV", _ = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
565
+ function q(e, t, n) {
566
566
  n = n || {};
567
567
  let r, o;
568
568
  switch (t) {
569
569
  case "RFC3548":
570
570
  case "RFC4648":
571
- r = M, o = !0;
571
+ r = F, o = !0;
572
572
  break;
573
573
  case "RFC4648-HEX":
574
- r = U, o = !0;
574
+ r = M, o = !0;
575
575
  break;
576
576
  case "Crockford":
577
577
  r = _, o = !1;
@@ -579,7 +579,7 @@ function z(e, t, n) {
579
579
  default:
580
580
  throw new Error("Unknown base32 variant: " + String(t));
581
581
  }
582
- const s = n.padding !== void 0 ? n.padding : o, i = F(e);
582
+ const s = n.padding !== void 0 ? n.padding : o, i = U(e);
583
583
  let a = 0, c = 0, u = "";
584
584
  for (let d = 0; d < i.byteLength; d++)
585
585
  for (c = c << 8 | i.getUint8(d), a += 8; a >= 5; )
@@ -589,10 +589,10 @@ function z(e, t, n) {
589
589
  u += "=";
590
590
  return u;
591
591
  }
592
- const q = 15, H = 24, G = f.string().length(H).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
592
+ const z = 15, H = 24, Q = f.string().length(H).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
593
593
  function we() {
594
- const e = new Uint8Array(q);
595
- return crypto.getRandomValues(e), G.parse(z(e, "RFC4648"));
594
+ const e = new Uint8Array(z);
595
+ return crypto.getRandomValues(e), Q.parse(q(e, "RFC4648"));
596
596
  }
597
597
  function ve(e) {
598
598
  return p(e);
@@ -600,10 +600,10 @@ function ve(e) {
600
600
  function xe(e) {
601
601
  return JSON.parse(e);
602
602
  }
603
- function Q(e) {
604
- return e instanceof Error ? e.name === "AbortError" || Q(e.cause) : !1;
603
+ function G(e) {
604
+ return e instanceof Error ? e.name === "AbortError" || G(e.cause) : !1;
605
605
  }
606
- function X(e) {
606
+ function Y(e) {
607
607
  if (typeof e == "string")
608
608
  return `String value was thrown: ${e}`;
609
609
  if (e && typeof e == "object")
@@ -615,7 +615,7 @@ function X(e) {
615
615
  return `Non-Error value (${typeof e}) was thrown: ${e}`;
616
616
  }
617
617
  function Ae(e) {
618
- return e instanceof Error ? e : new Error(X(e));
618
+ return e instanceof Error ? e : new Error(Y(e));
619
619
  }
620
620
  function P(e) {
621
621
  const t = e.cause ? P(e.cause) : void 0, n = new Error(e.message, t !== void 0 ? { cause: t } : void 0);
@@ -629,13 +629,13 @@ function Pe(e) {
629
629
  export {
630
630
  ue as AnchoredIdDeriver,
631
631
  C as PTableAbsent,
632
- L as PTableNA,
632
+ $ as PTableNA,
633
633
  J as PValueBytesNA,
634
634
  N as PValueIntNA,
635
635
  b as PValueLongNA,
636
636
  I as PValueStringNA,
637
- G as PlId,
638
- q as PlIdBytes,
637
+ Q as PlId,
638
+ z as PlIdBytes,
639
639
  H as PlIdLength,
640
640
  ie as canonicalizeAxisId,
641
641
  ve as canonicalizeJson,
@@ -646,11 +646,11 @@ export {
646
646
  de as ensurePColumn,
647
647
  re as entriesToDataInfo,
648
648
  pe as extractAllColumns,
649
- $ as getAxesId,
649
+ L as getAxesId,
650
650
  l as getAxisId,
651
651
  ce as getPTableColumnId,
652
- Q as hasAbortError,
653
- W as isDataInfo,
652
+ G as hasAbortError,
653
+ Z as isDataInfo,
654
654
  S as isDataInfoEntries,
655
655
  K as isPColumn,
656
656
  h as isPColumnSpec,
@@ -1,4 +1,4 @@
1
- import { defineComponent as M, reactive as P, useSlots as j, computed as i, watch as I, ref as q, createElementBlock as n, openBlock as o, Fragment as S, createElementVNode as u, createVNode as D, normalizeClass as B, createCommentVNode as s, withModifiers as N, withKeys as H, createBlock as p, normalizeStyle as K, toDisplayString as c, unref as r, withCtx as L, renderSlot as Q, createTextVNode as R } from "vue";
1
+ import { defineComponent as M, reactive as P, useSlots as I, computed as i, watch as j, ref as q, createElementBlock as n, openBlock as o, Fragment as S, createElementVNode as u, createVNode as D, normalizeClass as B, createCommentVNode as s, withModifiers as N, withKeys as H, createBlock as p, normalizeStyle as K, toDisplayString as c, unref as r, withCtx as L, renderSlot as Q, createTextVNode as R } from "vue";
2
2
  import { prettyBytes as x } from "../../lib/util/helpers/dist/index.js";
3
3
  import "../../sdk/model/dist/index.js";
4
4
  import U from "../../generated/components/svg/images/SvgRequired.vue2.js";
@@ -52,7 +52,7 @@ const ee = {
52
52
  const a = P({
53
53
  fileDialogOpen: !1,
54
54
  error: void 0
55
- }), _ = j(), g = v, l = h, b = (e, t) => {
55
+ }), _ = I(), g = v, l = h, b = (e, t) => {
56
56
  if (e)
57
57
  try {
58
58
  return t(e);
@@ -70,10 +70,10 @@ const ee = {
70
70
  } : {};
71
71
  }), C = () => {
72
72
  a.fileDialogOpen = !0;
73
- }, F = (e) => {
73
+ }, $ = (e) => {
74
74
  e.files.length && g("update:modelValue", e.files[0]);
75
- }, $ = () => g("update:modelValue", void 0);
76
- I(
75
+ }, F = () => g("update:modelValue", void 0);
76
+ j(
77
77
  () => l.modelValue,
78
78
  () => a.error = void 0,
79
79
  { immediate: !0 }
@@ -133,7 +133,7 @@ const ee = {
133
133
  key: 6,
134
134
  class: "pl-file-input__clear",
135
135
  name: "close",
136
- onClick: N($, ["stop"])
136
+ onClick: N(F, ["stop"])
137
137
  })) : s("", !0),
138
138
  D(A, { class: "pl-file-input__contour" })
139
139
  ], 34),
@@ -145,7 +145,7 @@ const ee = {
145
145
  "close-on-outside-click": e.fileDialogCloseOnOutsideClick,
146
146
  extensions: e.extensions,
147
147
  title: e.fileDialogTitle,
148
- "onImport:files": F
148
+ "onImport:files": $
149
149
  }, null, 8, ["modelValue", "close-on-outside-click", "extensions", "title"])
150
150
  ], 64));
151
151
  }
@@ -344,7 +344,7 @@ function Q(n, e, t) {
344
344
  return r.axes && (r.axes = r.axes.map((i) => K(n, i))), r;
345
345
  }
346
346
  function K(n, e) {
347
- if (!T(e))
347
+ if (!D(e))
348
348
  return e;
349
349
  const t = e.anchor, r = n[t];
350
350
  if (!r)
@@ -370,17 +370,17 @@ function K(n, e) {
370
370
  }
371
371
  throw new Error("Unsupported axis reference type");
372
372
  }
373
- function T(n) {
373
+ function D(n) {
374
374
  return typeof n == "object" && "anchor" in n;
375
375
  }
376
376
  function h(n) {
377
377
  return n.kind === "PColumn";
378
378
  }
379
- function D(n) {
379
+ function F(n) {
380
380
  return h(n.spec);
381
381
  }
382
382
  function X(n) {
383
- if (!D(n)) throw new Error(`not a PColumn (kind = ${n.spec.kind})`);
383
+ if (!F(n)) throw new Error(`not a PColumn (kind = ${n.spec.kind})`);
384
384
  return n;
385
385
  }
386
386
  function Y(n, e) {
@@ -513,11 +513,11 @@ function rn(n, e = !0) {
513
513
  function on(n, e) {
514
514
  return n.ok ? { ok: !0, value: e(n.value) } : n;
515
515
  }
516
- const F = 24;
517
- u.string().length(F).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
516
+ const T = 24;
517
+ u.string().length(T).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
518
518
  export {
519
519
  G as AnchoredIdDeriver,
520
- F as PlIdLength,
520
+ T as PlIdLength,
521
521
  W as canonicalizeAxisId,
522
522
  q as dataInfoToEntries,
523
523
  en as deriveNativeId,
@@ -532,7 +532,7 @@ export {
532
532
  E as isDataInfoEntries,
533
533
  J as isImportFileHandleIndex,
534
534
  I as isImportFileHandleUpload,
535
- D as isPColumn,
535
+ F as isPColumn,
536
536
  h as isPColumnSpec,
537
537
  H as isPartitionedDataInfoEntries,
538
538
  tn as isPlRef,