@platforma-sdk/ui-vue 1.42.0 → 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.
- package/.turbo/turbo-build.log +6 -6
- package/.turbo/turbo-type-check.log +1 -1
- package/CHANGELOG.md +7 -0
- package/dist/components/PlAgDataTable/sources/table-source-v2.js +11 -11
- package/dist/components/PlMultiSequenceAlignment/data.js +24 -24
- package/dist/components/PlTableFilters/PlTableFiltersV2.vue2.js +18 -18
- package/dist/defineApp.js +6 -6
- package/dist/internal/createAppV2.js +12 -12
- package/dist/lib/model/common/dist/index.js +24 -24
- package/dist/lib/ui/uikit/dist/components/PlAccordion/{ExpandTransition.vue2.js → ExpandTransition.vue.js} +1 -1
- package/dist/lib/ui/uikit/dist/components/PlAccordion/ExpandTransition.vue.js.map +1 -0
- package/dist/lib/ui/uikit/dist/components/PlAccordion/PlAccordionSection.vue2.js +1 -1
- package/dist/lib/ui/uikit/dist/components/PlFileInput/PlFileInput.vue.js +7 -7
- package/dist/lib/ui/uikit/dist/lib/model/common/dist/index.js +8 -8
- package/dist/lib/ui/uikit/dist/sdk/model/dist/index.js +1 -1
- package/dist/sdk/model/dist/index.js +1 -1
- package/package.json +5 -5
- package/dist/lib/ui/uikit/dist/components/PlAccordion/ExpandTransition.vue2.js.map +0 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -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.42.
|
|
3
|
+
> @platforma-sdk/ui-vue@1.42.1 build /home/runner/_work/platforma/platforma/sdk/ui-vue
|
|
4
4
|
> vite build
|
|
5
5
|
|
|
6
6
|
[36mvite v6.3.5 [32mbuilding for production...[36m[39m
|
|
@@ -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
|
|
13
|
+
[vite:dts] Declaration files built in 6433ms.
|
|
14
14
|
|
|
15
15
|
[2mdist/[22m[36m_virtual/re.js [39m[1m[2m 0.08 kB[22m[1m[22m[2m │ gzip: 0.10 kB[22m[2m │ map: 0.09 kB[22m
|
|
16
16
|
[2mdist/[22m[36mlib/ui/uikit/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/constant.js [39m[1m[2m 0.09 kB[22m[1m[22m[2m │ gzip: 0.10 kB[22m[2m │ map: 0.32 kB[22m
|
|
@@ -38,8 +38,8 @@ computing gzip size...
|
|
|
38
38
|
[2mdist/[22m[36mlib/ui/uikit/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/number.js [39m[1m[2m 0.11 kB[22m[1m[22m[2m │ gzip: 0.12 kB[22m[2m │ map: 0.79 kB[22m
|
|
39
39
|
[2mdist/[22m[36mcomponents/PlAgCsvExporter/PlAgCsvExporter.vue2.js [39m[1m[2m 0.12 kB[22m[1m[22m[2m │ gzip: 0.12 kB[22m[2m │ map: 0.11 kB[22m
|
|
40
40
|
[2mdist/[22m[36mlib/ui/uikit/dist/helpers/math.js [39m[1m[2m 0.12 kB[22m[1m[22m[2m │ gzip: 0.13 kB[22m[2m │ map: 0.36 kB[22m
|
|
41
|
-
[2mdist/[22m[36mcomponents/PlAgColumnHeader/PlAgColumnHeader.vue2.js [39m[1m[2m 0.12 kB[22m[1m[22m[2m │ gzip: 0.12 kB[22m[2m │ map: 0.11 kB[22m
|
|
42
41
|
[2mdist/[22m[36mcomponents/PlAgCellProgress/PlAgCellProgress.vue2.js [39m[1m[2m 0.12 kB[22m[1m[22m[2m │ gzip: 0.12 kB[22m[2m │ map: 0.11 kB[22m
|
|
42
|
+
[2mdist/[22m[36mcomponents/PlAgColumnHeader/PlAgColumnHeader.vue2.js [39m[1m[2m 0.12 kB[22m[1m[22m[2m │ gzip: 0.12 kB[22m[2m │ map: 0.11 kB[22m
|
|
43
43
|
[2mdist/[22m[36mcomponents/PlAgRowNumHeader.vue2.js [39m[1m[2m 0.12 kB[22m[1m[22m[2m │ gzip: 0.12 kB[22m[2m │ map: 0.11 kB[22m
|
|
44
44
|
[2mdist/[22m[36mlib/ui/uikit/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/constant.js [39m[1m[2m 0.12 kB[22m[1m[22m[2m │ gzip: 0.12 kB[22m[2m │ map: 0.40 kB[22m
|
|
45
45
|
[2mdist/[22m[36mlib/ui/uikit/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/constant.js [39m[1m[2m 0.12 kB[22m[1m[22m[2m │ gzip: 0.12 kB[22m[2m │ map: 0.40 kB[22m
|
|
@@ -554,7 +554,7 @@ computing gzip size...
|
|
|
554
554
|
[2mdist/[22m[36mlib/ui/uikit/dist/assets/icons/icon-assets-min/24_bubble.svg.js [39m[1m[2m 0.77 kB[22m[1m[22m[2m │ gzip: 0.40 kB[22m[2m │ map: 1.00 kB[22m
|
|
555
555
|
[2mdist/[22m[36mplugins/Monetization/EndOfPeriod.vue2.js [39m[1m[2m 0.77 kB[22m[1m[22m[2m │ gzip: 0.47 kB[22m[2m │ map: 1.55 kB[22m
|
|
556
556
|
[2mdist/[22m[36mlib/ui/uikit/dist/assets/icons/icon-assets-min/24_container.svg.js [39m[1m[2m 0.78 kB[22m[1m[22m[2m │ gzip: 0.43 kB[22m[2m │ map: 1.08 kB[22m
|
|
557
|
-
[2mdist/[22m[36mlib/ui/uikit/dist/components/PlAccordion/ExpandTransition.
|
|
557
|
+
[2mdist/[22m[36mlib/ui/uikit/dist/components/PlAccordion/ExpandTransition.vue.js [39m[1m[2m 0.78 kB[22m[1m[22m[2m │ gzip: 0.43 kB[22m[2m │ map: 1.34 kB[22m
|
|
558
558
|
[2mdist/[22m[36mnode_modules/.pnpm/canonicalize@2.1.0/node_modules/canonicalize/lib/canonicalize.js [39m[1m[2m 0.80 kB[22m[1m[22m[2m │ gzip: 0.45 kB[22m[2m │ map: 2.18 kB[22m
|
|
559
559
|
[2mdist/[22m[36mlib/ui/uikit/dist/node_modules/.pnpm/canonicalize@2.1.0/node_modules/canonicalize/lib/canonicalize.js [39m[1m[2m 0.80 kB[22m[1m[22m[2m │ gzip: 0.45 kB[22m[2m │ map: 2.20 kB[22m
|
|
560
560
|
[2mdist/[22m[36mlib/ui/uikit/dist/components/DataTable/adapters/AsyncData.js [39m[1m[2m 0.81 kB[22m[1m[22m[2m │ gzip: 0.43 kB[22m[2m │ map: 2.16 kB[22m
|
|
@@ -757,7 +757,7 @@ computing gzip size...
|
|
|
757
757
|
[2mdist/[22m[36mlib/ui/uikit/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/continuous.js [39m[1m[2m 2.53 kB[22m[1m[22m[2m │ gzip: 0.94 kB[22m[2m │ map: 7.07 kB[22m
|
|
758
758
|
[2mdist/[22m[36mlib/util/helpers/dist/index.js [39m[1m[2m 2.55 kB[22m[1m[22m[2m │ gzip: 1.06 kB[22m[2m │ map: 25.73 kB[22m
|
|
759
759
|
[2mdist/[22m[36mplugins/Monetization/LimitCard.vue3.js [39m[1m[2m 2.55 kB[22m[1m[22m[2m │ gzip: 0.92 kB[22m[2m │ map: 0.11 kB[22m
|
|
760
|
-
[2mdist/[22m[36mlib/ui/uikit/dist/components/PlAccordion/PlAccordionSection.vue2.js [39m[1m[2m 2.
|
|
760
|
+
[2mdist/[22m[36mlib/ui/uikit/dist/components/PlAccordion/PlAccordionSection.vue2.js [39m[1m[2m 2.56 kB[22m[1m[22m[2m │ gzip: 1.16 kB[22m[2m │ map: 2.90 kB[22m
|
|
761
761
|
[2mdist/[22m[36mnode_modules/.pnpm/@vueuse_shared@13.3.0_vue@3.5.13_typescript@5.6.3_/node_modules/@vueuse/shared/index.js [39m[1m[2m 2.57 kB[22m[1m[22m[2m │ gzip: 1.13 kB[22m[2m │ map: 50.11 kB[22m
|
|
762
762
|
[2mdist/[22m[36mcomponents/PlTableFilters/PlTableFiltersV2.vue3.js [39m[1m[2m 2.58 kB[22m[1m[22m[2m │ gzip: 0.94 kB[22m[2m │ map: 0.12 kB[22m
|
|
763
763
|
[2mdist/[22m[36mplugins/Monetization/LimitCard.vue2.js [39m[1m[2m 2.61 kB[22m[1m[22m[2m │ gzip: 0.88 kB[22m[2m │ map: 4.83 kB[22m
|
|
@@ -878,4 +878,4 @@ computing gzip size...
|
|
|
878
878
|
[2mdist/[22m[36mlib/ui/uikit/dist/index.js [39m[1m[2m497.77 kB[22m[1m[22m[2m │ gzip: 191.75 kB[22m[2m │ map: 0.18 kB[22m
|
|
879
879
|
[2mdist/[22m[36mlib/ui/uikit/dist/components/PlSlideModal/PlPureSlideModal.vue.js [39m[1m[33m601.01 kB[39m[22m[2m │ gzip: 204.69 kB[22m[2m │ map: 0.21 kB[22m
|
|
880
880
|
[2mdist/[22m[36mlib/ui/uikit/dist/components/DataTable/TableComponent.vue.js [39m[1m[33m602.90 kB[39m[22m[2m │ gzip: 205.54 kB[22m[2m │ map: 0.27 kB[22m
|
|
881
|
-
[32m✓ built in 10.
|
|
881
|
+
[32m✓ built in 10.70s[39m
|
|
@@ -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.42.
|
|
3
|
+
> @platforma-sdk/ui-vue@1.42.1 type-check /home/runner/_work/platforma/platforma/sdk/ui-vue
|
|
4
4
|
> vue-tsc --noEmit --project ./tsconfig.json
|
|
5
5
|
|
package/CHANGELOG.md
CHANGED
|
@@ -6,7 +6,7 @@ import { defaultMainMenuItems as j } from "./menu-items.js";
|
|
|
6
6
|
import { makeRowNumberColDef as U, PlAgDataTableRowNumberColId as W } from "./row-number.js";
|
|
7
7
|
import { getColumnRenderingSpec as Z } from "./value-rendering.js";
|
|
8
8
|
import { isJsonEqual as $ } from "../../../lib/util/helpers/dist/index.js";
|
|
9
|
-
import { canonicalizeJson as
|
|
9
|
+
import { canonicalizeJson as O, getAxisId as F, matchAxisId as T, pTableValue as E } from "../../../lib/model/common/dist/index.js";
|
|
10
10
|
function X(a) {
|
|
11
11
|
switch (a.type) {
|
|
12
12
|
case "axis":
|
|
@@ -26,7 +26,7 @@ function Y(a, o, w, c) {
|
|
|
26
26
|
for (let u = 0; u < o[0].data.length; ++u) {
|
|
27
27
|
const d = w.map((n) => K(
|
|
28
28
|
E(o[c[n]], u)
|
|
29
|
-
)), l = { id:
|
|
29
|
+
)), l = { id: O(d), axesKey: d };
|
|
30
30
|
a.forEach((n, p) => {
|
|
31
31
|
l[n.toString()] = c[p] === -1 ? V : E(o[c[p]], u);
|
|
32
32
|
}), r.push(l);
|
|
@@ -46,7 +46,7 @@ async function ue({
|
|
|
46
46
|
if (i !== a.value) throw l;
|
|
47
47
|
const p = w.visibleTableHandle, S = await o.getSpec(p);
|
|
48
48
|
if (i !== a.value) throw l;
|
|
49
|
-
const x = (e) =>
|
|
49
|
+
const x = (e) => O(X(e)), b = new Map(
|
|
50
50
|
S.entries().map(([e, t]) => [x(t), e])
|
|
51
51
|
), g = new Map(
|
|
52
52
|
n.entries().map(([e, t]) => {
|
|
@@ -76,12 +76,12 @@ async function ue({
|
|
|
76
76
|
}
|
|
77
77
|
).map(([e]) => e).toArray();
|
|
78
78
|
f.sort((e, t) => {
|
|
79
|
-
var
|
|
79
|
+
var k, N;
|
|
80
80
|
if (n[e].type !== n[t].type) return n[e].type === "axis" ? -1 : 1;
|
|
81
|
-
const s = (
|
|
81
|
+
const s = (k = n[e].spec.annotations) == null ? void 0 : k["pl7.app/table/orderPriority"], y = (N = n[t].spec.annotations) == null ? void 0 : N["pl7.app/table/orderPriority"];
|
|
82
82
|
return s === void 0 ? y === void 0 ? 0 : 1 : y === void 0 ? -1 : Number(y) - Number(s);
|
|
83
83
|
});
|
|
84
|
-
const
|
|
84
|
+
const q = [...f];
|
|
85
85
|
f = f.map((e) => {
|
|
86
86
|
const t = n[e];
|
|
87
87
|
if (t.type === "axis") {
|
|
@@ -93,8 +93,8 @@ async function ue({
|
|
|
93
93
|
});
|
|
94
94
|
const L = [
|
|
95
95
|
U(),
|
|
96
|
-
...
|
|
97
|
-
],
|
|
96
|
+
...q.map((e, t) => B(e, n[e], n[f[t]], u, d))
|
|
97
|
+
], M = n.values().filter((e) => e.type === "axis").map((e) => e.spec).toArray(), P = M.keys().map((e) => {
|
|
98
98
|
let t = f.indexOf(e);
|
|
99
99
|
return t === -1 && (t = f.length, f.push(e)), t;
|
|
100
100
|
}).toArray(), C = [], D = [];
|
|
@@ -104,7 +104,7 @@ async function ue({
|
|
|
104
104
|
});
|
|
105
105
|
let m = -1, R;
|
|
106
106
|
return {
|
|
107
|
-
axesSpec:
|
|
107
|
+
axesSpec: M,
|
|
108
108
|
columnDefs: L,
|
|
109
109
|
serverSideDatasource: {
|
|
110
110
|
getRows: async (e) => {
|
|
@@ -129,7 +129,7 @@ async function ue({
|
|
|
129
129
|
length: t
|
|
130
130
|
});
|
|
131
131
|
if (i !== a.value || e.api.isDestroyed()) return e.fail();
|
|
132
|
-
s = Y(
|
|
132
|
+
s = Y(q, y, P, D);
|
|
133
133
|
}
|
|
134
134
|
e.success({ rowData: s, rowCount: m }), e.api.autoSizeColumns(
|
|
135
135
|
e.api.getAllDisplayedColumns().filter((y) => y.getColId() !== W)
|
|
@@ -144,7 +144,7 @@ async function ue({
|
|
|
144
144
|
}
|
|
145
145
|
function B(a, o, w, c, r) {
|
|
146
146
|
var n, p;
|
|
147
|
-
const u =
|
|
147
|
+
const u = O({
|
|
148
148
|
source: o,
|
|
149
149
|
labeled: w
|
|
150
150
|
}), d = o.type === "axis" ? o.spec.type : o.spec.valueType, i = Z(o), l = {};
|
|
@@ -5,14 +5,14 @@ import { highlightByChemicalProperties as H } from "./chemical-properties.js";
|
|
|
5
5
|
import { parseMarkup as K, markupAlignedSequence as Q, highlightByMarkup as Y } from "./markup.js";
|
|
6
6
|
import { multiSequenceAlignment as Z } from "./multi-sequence-alignment.js";
|
|
7
7
|
import { getResidueCounts as nn } from "./residue-counts.js";
|
|
8
|
-
import { ensureError as tn, canonicalizeJson as A, getAxisId as E, parseJson as D, matchAxisId as en, pTableValue as
|
|
9
|
-
const S = () => z().pFrameDriver,
|
|
8
|
+
import { ensureError as tn, canonicalizeJson as A, getAxisId as E, parseJson as D, matchAxisId as en, pTableValue as q } from "../../lib/model/common/dist/index.js";
|
|
9
|
+
const S = () => z().pFrameDriver, O = 1e3, gn = k(
|
|
10
10
|
an
|
|
11
|
-
), hn =
|
|
11
|
+
), hn = k(
|
|
12
12
|
on
|
|
13
|
-
), wn =
|
|
13
|
+
), wn = k(
|
|
14
14
|
rn
|
|
15
|
-
), bn =
|
|
15
|
+
), bn = k(
|
|
16
16
|
sn
|
|
17
17
|
);
|
|
18
18
|
async function an({
|
|
@@ -107,7 +107,7 @@ async function sn({
|
|
|
107
107
|
colorScheme: t,
|
|
108
108
|
alignmentParams: l
|
|
109
109
|
}) {
|
|
110
|
-
var
|
|
110
|
+
var F, I;
|
|
111
111
|
if (!c || !(e != null && e.length) || !y) return;
|
|
112
112
|
const o = S(), u = await o.listColumns(c), m = u.filter((n) => W(n.spec)), f = X({ selection: p });
|
|
113
113
|
let h = {
|
|
@@ -163,11 +163,11 @@ async function sn({
|
|
|
163
163
|
{
|
|
164
164
|
offset: 0,
|
|
165
165
|
// +1 is a hack to check whether the selection is over the limit
|
|
166
|
-
length:
|
|
166
|
+
length: O + 1
|
|
167
167
|
}
|
|
168
168
|
);
|
|
169
169
|
let g = (a == null ? void 0 : a[0].data.data.length) ?? 0, v = !1;
|
|
170
|
-
g >
|
|
170
|
+
g > O && (g = O, v = !0);
|
|
171
171
|
const L = e.map((n) => {
|
|
172
172
|
const r = a.find(({ spec: s }) => s.id === n);
|
|
173
173
|
if (!r)
|
|
@@ -190,13 +190,13 @@ async function sn({
|
|
|
190
190
|
{ length: g },
|
|
191
191
|
(r, s) => {
|
|
192
192
|
var w;
|
|
193
|
-
return ((w =
|
|
193
|
+
return ((w = q(n.data, s, { na: "", absent: "" })) == null ? void 0 : w.toString()) ?? "";
|
|
194
194
|
}
|
|
195
195
|
),
|
|
196
196
|
l
|
|
197
197
|
)
|
|
198
198
|
)
|
|
199
|
-
),
|
|
199
|
+
), R = Array.from(
|
|
200
200
|
{ length: g },
|
|
201
201
|
(n, r) => j.map((s) => s[r])
|
|
202
202
|
), B = L.map(
|
|
@@ -209,20 +209,20 @@ async function sn({
|
|
|
209
209
|
(n, r) => _.map(
|
|
210
210
|
(s) => {
|
|
211
211
|
var w;
|
|
212
|
-
return ((w =
|
|
212
|
+
return ((w = q(s.data, r, { na: "", absent: "" })) == null ? void 0 : w.toString()) ?? "";
|
|
213
213
|
}
|
|
214
214
|
)
|
|
215
|
-
), x =
|
|
215
|
+
), x = R.map((n) => n.join(" ")), $ = nn(x), C = {
|
|
216
216
|
sequences: x,
|
|
217
217
|
sequenceNames: B,
|
|
218
218
|
labelRows: T,
|
|
219
219
|
exceedsLimit: v,
|
|
220
|
-
residueCounts:
|
|
220
|
+
residueCounts: $
|
|
221
221
|
};
|
|
222
222
|
if (t.type === "chemical-properties")
|
|
223
|
-
|
|
223
|
+
C.highlightImage = H({
|
|
224
224
|
sequences: x,
|
|
225
|
-
residueCounts:
|
|
225
|
+
residueCounts: $
|
|
226
226
|
});
|
|
227
227
|
else if (t.type === "markup") {
|
|
228
228
|
const n = a.find(
|
|
@@ -234,25 +234,25 @@ async function sn({
|
|
|
234
234
|
);
|
|
235
235
|
const r = Array.from(
|
|
236
236
|
{ length: g },
|
|
237
|
-
(w,
|
|
237
|
+
(w, P) => {
|
|
238
238
|
var U;
|
|
239
239
|
const V = K(
|
|
240
|
-
((U =
|
|
240
|
+
((U = q(n.data, P, { na: "", absent: "" })) == null ? void 0 : U.toString()) ?? ""
|
|
241
241
|
);
|
|
242
|
-
return Q(P
|
|
242
|
+
return Q(R[P][0], V);
|
|
243
243
|
}
|
|
244
244
|
), s = JSON.parse(
|
|
245
|
-
((
|
|
245
|
+
((F = n.spec.spec.annotations) == null ? void 0 : F["pl7.app/sequence/annotation/mapping"]) ?? "{}"
|
|
246
246
|
);
|
|
247
|
-
|
|
247
|
+
C.highlightImage = Y({
|
|
248
248
|
markupRows: r,
|
|
249
|
-
columnCount: ((
|
|
249
|
+
columnCount: ((I = x.at(0)) == null ? void 0 : I.length) ?? 0,
|
|
250
250
|
labels: s
|
|
251
251
|
});
|
|
252
252
|
}
|
|
253
|
-
return
|
|
253
|
+
return C;
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function k(c) {
|
|
256
256
|
const e = M(), y = M(!0), p = M();
|
|
257
257
|
let t;
|
|
258
258
|
return (l) => (G(l, async (o, u) => {
|
|
@@ -270,7 +270,7 @@ function C(c) {
|
|
|
270
270
|
}, { immediate: !0 }), { data: e, isLoading: y, error: p });
|
|
271
271
|
}
|
|
272
272
|
export {
|
|
273
|
-
|
|
273
|
+
O as sequenceLimit,
|
|
274
274
|
hn as useLabelColumnsOptions,
|
|
275
275
|
wn as useMarkupColumnsOptions,
|
|
276
276
|
bn as useMultipleAlignmentData,
|
|
@@ -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
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { isJsonEqual as
|
|
8
|
-
import { usePlBlockPageTitleTeleportTarget as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
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 =
|
|
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 =
|
|
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 || !
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
|
6
|
-
import { activateAgGrid as
|
|
7
|
-
import { unwrapResult as
|
|
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
|
-
|
|
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 =
|
|
34
|
+
const t = O(r);
|
|
35
35
|
a.loaded = !0;
|
|
36
|
-
const i =
|
|
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
|
|
4
|
-
import { createModel as
|
|
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
|
-
},
|
|
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 =
|
|
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(
|
|
59
|
-
if (r("patches.length", a.value.length), r("uTagRef.value",
|
|
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),
|
|
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:
|
|
72
|
+
cloneNavigationState: N,
|
|
73
73
|
createArgsModel(e = {}) {
|
|
74
|
-
return
|
|
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
|
|
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 =
|
|
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
|
|
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
|
|
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" },
|
|
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 ?
|
|
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
|
|
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 =
|
|
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
|
|
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
|
|
565
|
-
function
|
|
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 =
|
|
571
|
+
r = F, o = !0;
|
|
572
572
|
break;
|
|
573
573
|
case "RFC4648-HEX":
|
|
574
|
-
r =
|
|
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 =
|
|
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
|
|
592
|
+
const z = 15, H = 24, Q = f.string().length(H).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
|
|
593
593
|
function we() {
|
|
594
|
-
const e = new Uint8Array(
|
|
595
|
-
return crypto.getRandomValues(e),
|
|
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
|
|
604
|
-
return e instanceof Error ? e.name === "AbortError" ||
|
|
603
|
+
function G(e) {
|
|
604
|
+
return e instanceof Error ? e.name === "AbortError" || G(e.cause) : !1;
|
|
605
605
|
}
|
|
606
|
-
function
|
|
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(
|
|
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
|
-
|
|
632
|
+
$ as PTableNA,
|
|
633
633
|
J as PValueBytesNA,
|
|
634
634
|
N as PValueIntNA,
|
|
635
635
|
b as PValueLongNA,
|
|
636
636
|
I as PValueStringNA,
|
|
637
|
-
|
|
638
|
-
|
|
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
|
-
|
|
649
|
+
L as getAxesId,
|
|
650
650
|
l as getAxisId,
|
|
651
651
|
ce as getPTableColumnId,
|
|
652
|
-
|
|
653
|
-
|
|
652
|
+
G as hasAbortError,
|
|
653
|
+
Z as isDataInfo,
|
|
654
654
|
S as isDataInfoEntries,
|
|
655
655
|
K as isPColumn,
|
|
656
656
|
h as isPColumnSpec,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExpandTransition.vue.js","sources":["../../../../../../../../../lib/ui/uikit/src/components/PlAccordion/ExpandTransition.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nconst onStart = (el: Element) => {\n el.classList.add('expand-collapse-fix');\n (el as HTMLElement).style.setProperty('--component-height', el.scrollHeight + 'px');\n};\n\nconst onAfter = (el: Element) => {\n (el as HTMLElement).style.removeProperty('--component-height');\n el.classList.remove('expand-collapse-fix');\n};\n</script>\n\n<template>\n <Transition name=\"expand-collapse\" @enter=\"onStart\" @leave=\"onStart\" @after-enter=\"onAfter\" @after-leave=\"onAfter\">\n <slot/>\n </Transition>\n</template>\n\n<style>\n.expand-collapse-fix {\n overflow: hidden;\n}\n\n.expand-collapse-enter-active,\n.expand-collapse-leave-active {\n transition:\n height 0.2s ease-in-out,\n opacity 0.2s ease-in-out;\n height: var(--component-height);\n}\n\n.expand-collapse-enter-from,\n.expand-collapse-leave-to {\n opacity: 0.5;\n height: 0;\n}\n</style>\n"],"names":["onStart","el","onAfter"],"mappings":";;;;AACMA,UAAAA,IAAU,CAACC,MAAgB;AAC5BA,QAAA,UAAU,IAAI,qBAAqB,GACrCA,EAAmB,MAAM,YAAY,sBAAsBA,EAAG,eAAe,IAAI;AAAA,IAAA,GAG9EC,IAAU,CAACD,MAAgB;AAC9BA,QAAmB,MAAM,eAAe,oBAAoB,GAC1DA,EAAA,UAAU,OAAO,qBAAqB;AAAA,IAC3C;;;;;;;;;;;;;;;"}
|
|
@@ -2,7 +2,7 @@ import { defineComponent as x, mergeModels as g, inject as d, toRef as u, useMod
|
|
|
2
2
|
import { uniqueId as w } from "../../lib/util/helpers/dist/index.js";
|
|
3
3
|
import B from "../PlIcon16/PlIcon16.vue.js";
|
|
4
4
|
import N from "../PlSectionSeparator/PlSectionSeparator.vue.js";
|
|
5
|
-
import _ from "./ExpandTransition.
|
|
5
|
+
import _ from "./ExpandTransition.vue.js";
|
|
6
6
|
(function() {
|
|
7
7
|
try {
|
|
8
8
|
if (typeof document < "u") {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as M, reactive as P, useSlots as
|
|
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
|
-
}), _ =
|
|
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
|
-
},
|
|
73
|
+
}, $ = (e) => {
|
|
74
74
|
e.files.length && g("update:modelValue", e.files[0]);
|
|
75
|
-
},
|
|
76
|
-
|
|
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(
|
|
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":
|
|
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 (!
|
|
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
|
|
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
|
|
379
|
+
function F(n) {
|
|
380
380
|
return h(n.spec);
|
|
381
381
|
}
|
|
382
382
|
function X(n) {
|
|
383
|
-
if (!
|
|
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
|
|
517
|
-
u.string().length(
|
|
516
|
+
const T = 24;
|
|
517
|
+
u.string().length(T).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
|
|
518
518
|
export {
|
|
519
519
|
G as AnchoredIdDeriver,
|
|
520
|
-
|
|
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
|
-
|
|
535
|
+
F as isPColumn,
|
|
536
536
|
h as isPColumnSpec,
|
|
537
537
|
H as isPartitionedDataInfoEntries,
|
|
538
538
|
tn as isPlRef,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platforma-sdk/ui-vue",
|
|
3
|
-
"version": "1.42.
|
|
3
|
+
"version": "1.42.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/lib.js",
|
|
6
6
|
"styles": "dist/lib.js",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"d3-format": "^3.1.0",
|
|
27
27
|
"zod": "~3.23.8",
|
|
28
28
|
"@milaboratories/biowasm-tools": "^1.1.0",
|
|
29
|
-
"@milaboratories/uikit": "2.3.
|
|
30
|
-
"@platforma-sdk/model": "~1.42.
|
|
29
|
+
"@milaboratories/uikit": "2.3.25",
|
|
30
|
+
"@platforma-sdk/model": "~1.42.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"happy-dom": "^15.11.7",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"fast-json-patch": "^3.1.1",
|
|
45
45
|
"@faker-js/faker": "^9.2.0",
|
|
46
46
|
"@milaboratories/ts-configs": "1.0.5",
|
|
47
|
+
"@milaboratories/build-configs": "1.0.5",
|
|
47
48
|
"@milaboratories/eslint-config": "^1.0.4",
|
|
48
|
-
"@milaboratories/helpers": "^1.6.19"
|
|
49
|
-
"@milaboratories/build-configs": "1.0.5"
|
|
49
|
+
"@milaboratories/helpers": "^1.6.19"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"test": "vitest run --passWithNoTests",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ExpandTransition.vue2.js","sources":["../../../../../../../../../lib/ui/uikit/src/components/PlAccordion/ExpandTransition.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nconst onStart = (el: Element) => {\n el.classList.add('expand-collapse-fix');\n (el as HTMLElement).style.setProperty('--component-height', el.scrollHeight + 'px');\n};\n\nconst onAfter = (el: Element) => {\n (el as HTMLElement).style.removeProperty('--component-height');\n el.classList.remove('expand-collapse-fix');\n};\n</script>\n\n<template>\n <Transition name=\"expand-collapse\" @enter=\"onStart\" @leave=\"onStart\" @after-enter=\"onAfter\" @after-leave=\"onAfter\">\n <slot/>\n </Transition>\n</template>\n\n<style>\n.expand-collapse-fix {\n overflow: hidden;\n}\n\n.expand-collapse-enter-active,\n.expand-collapse-leave-active {\n transition:\n height 0.2s ease-in-out,\n opacity 0.2s ease-in-out;\n height: var(--component-height);\n}\n\n.expand-collapse-enter-from,\n.expand-collapse-leave-to {\n opacity: 0.5;\n height: 0;\n}\n</style>\n"],"names":["onStart","el","onAfter"],"mappings":";;;;AACMA,UAAAA,IAAU,CAACC,MAAgB;AAC5BA,QAAA,UAAU,IAAI,qBAAqB,GACrCA,EAAmB,MAAM,YAAY,sBAAsBA,EAAG,eAAe,IAAI;AAAA,IAAA,GAG9EC,IAAU,CAACD,MAAgB;AAC9BA,QAAmB,MAAM,eAAe,oBAAoB,GAC1DA,EAAA,UAAU,OAAO,qBAAqB;AAAA,IAC3C;;;;;;;;;;;;;;;"}
|