@milaboratories/uikit 2.3.29 → 2.4.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 +26 -26
- package/.turbo/turbo-type-check.log +1 -1
- package/CHANGELOG.md +17 -0
- package/dist/components/DataTable/TableComponent.vue.js +1 -1
- package/dist/components/PlAccordion/{ExpandTransition.vue2.js → ExpandTransition.vue.js} +1 -1
- package/dist/components/PlAccordion/ExpandTransition.vue.js.map +1 -0
- package/dist/components/PlAccordion/ExpandTransition.vue3.js +1 -1
- package/dist/components/PlAccordion/PlAccordionSection.vue2.js +1 -1
- package/dist/components/PlAutocomplete/PlAutocomplete.vue.js +1 -1
- package/dist/components/PlDropdown/PlDropdown.vue.d.ts +6 -7
- package/dist/components/PlDropdown/PlDropdown.vue.d.ts.map +1 -1
- package/dist/components/PlDropdown/PlDropdown.vue.js +78 -75
- package/dist/components/PlDropdown/PlDropdown.vue.js.map +1 -1
- package/dist/components/PlDropdownLegacy/PlDropdownLegacy.vue.js +1 -1
- package/dist/components/PlDropdownLine/PlDropdownLine.vue.d.ts.map +1 -1
- package/dist/components/PlDropdownLine/PlDropdownLine.vue.js +100 -96
- package/dist/components/PlDropdownLine/PlDropdownLine.vue.js.map +1 -1
- package/dist/components/PlDropdownMulti/PlDropdownMulti.vue.js +1 -1
- package/dist/components/PlDropdownRef/PlDropdownRef.vue.d.ts +68 -123
- package/dist/components/PlDropdownRef/PlDropdownRef.vue.d.ts.map +1 -1
- package/dist/components/PlDropdownRef/PlDropdownRef.vue.js +23 -21
- package/dist/components/PlDropdownRef/PlDropdownRef.vue.js.map +1 -1
- package/dist/components/PlFileInput/PlFileInput.vue.js +11 -11
- package/dist/components/PlSlideModal/PlPureSlideModal.vue.js +1 -1
- package/dist/components/PlTextArea/PlTextArea.vue.js +1 -1
- package/dist/components/PlTextField/PlTextField.vue.js +1 -1
- package/dist/generated/components/svg/images/{SvgRequired.vue2.js → SvgRequired.vue.js} +1 -1
- package/dist/generated/components/svg/images/SvgRequired.vue.js.map +1 -0
- package/dist/lib/model/common/dist/index.js +182 -159
- package/dist/lib/model/common/dist/index.js.map +1 -1
- package/dist/sdk/model/dist/index.js +334 -322
- package/dist/sdk/model/dist/index.js.map +1 -1
- package/dist/utils/DropdownOverlay/DropdownOverlay.vue.d.ts.map +1 -1
- package/dist/utils/DropdownOverlay/DropdownOverlay.vue.js +19 -17
- package/dist/utils/DropdownOverlay/DropdownOverlay.vue.js.map +1 -1
- package/package.json +3 -3
- package/src/components/PlDropdown/PlDropdown.vue +9 -13
- package/src/components/PlDropdown/pl-dropdown.scss +6 -11
- package/src/components/PlDropdownLine/PlDropdownLine.vue +10 -1
- package/src/components/PlDropdownRef/PlDropdownRef.vue +16 -14
- package/src/utils/DropdownOverlay/DropdownOverlay.vue +7 -1
- package/dist/components/PlAccordion/ExpandTransition.vue2.js.map +0 -1
- package/dist/generated/components/svg/images/SvgRequired.vue2.js.map +0 -1
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import u from "../../../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.js";
|
|
2
|
-
import
|
|
3
|
-
var
|
|
2
|
+
import g from "../../../../_virtual/canonicalize.js";
|
|
3
|
+
var O = Object.defineProperty, A = (e, t, n) => t in e ? O(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, m = (e, t, n) => A(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
u.object({
|
|
5
5
|
/** Included left border. */
|
|
6
6
|
from: u.number(),
|
|
7
7
|
/** Excluded right border. */
|
|
8
8
|
to: u.number()
|
|
9
9
|
});
|
|
10
|
-
function
|
|
10
|
+
function l(e) {
|
|
11
11
|
throw new Error("Unexpected object: " + e);
|
|
12
12
|
}
|
|
13
|
-
const
|
|
14
|
-
function
|
|
15
|
-
return e.startsWith(
|
|
13
|
+
const w = "upload://upload/", k = "index://index/";
|
|
14
|
+
function j(e) {
|
|
15
|
+
return e.startsWith(w);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function E(e) {
|
|
18
18
|
return e.startsWith(k);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
if (
|
|
20
|
+
function J(e) {
|
|
21
|
+
if (E(e)) {
|
|
22
22
|
const t = e.slice(k.length);
|
|
23
23
|
return JSON.parse(decodeURIComponent(t)).path;
|
|
24
|
-
} else if (
|
|
25
|
-
const t = e.slice(
|
|
24
|
+
} else if (j(e)) {
|
|
25
|
+
const t = e.slice(w.length);
|
|
26
26
|
return JSON.parse(decodeURIComponent(t)).localPath;
|
|
27
27
|
}
|
|
28
|
-
|
|
28
|
+
l(e);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function S(e) {
|
|
31
31
|
return e.replace(/^.*[\\/]/, "");
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
return
|
|
33
|
+
function M(e) {
|
|
34
|
+
return S(J(e));
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function R(e) {
|
|
37
37
|
if (!e || typeof e != "object")
|
|
38
38
|
return !1;
|
|
39
39
|
const t = e;
|
|
@@ -43,8 +43,8 @@ function _(e) {
|
|
|
43
43
|
case "Json":
|
|
44
44
|
return typeof t.keyLength == "number" && t.data !== void 0 && typeof t.data == "object";
|
|
45
45
|
case "JsonPartitioned":
|
|
46
|
-
return typeof t.partitionKeyLength == "number" && t.parts !== void 0 && typeof t.parts == "object";
|
|
47
46
|
case "BinaryPartitioned":
|
|
47
|
+
case "ParquetPartitioned":
|
|
48
48
|
return typeof t.partitionKeyLength == "number" && t.parts !== void 0 && typeof t.parts == "object";
|
|
49
49
|
default:
|
|
50
50
|
return !1;
|
|
@@ -57,8 +57,8 @@ function U(e, t) {
|
|
|
57
57
|
return e;
|
|
58
58
|
case "JsonPartitioned": {
|
|
59
59
|
const n = {};
|
|
60
|
-
for (const [r,
|
|
61
|
-
n[r] = t(
|
|
60
|
+
for (const [r, i] of Object.entries(e.parts))
|
|
61
|
+
n[r] = t(i);
|
|
62
62
|
return {
|
|
63
63
|
...e,
|
|
64
64
|
parts: n
|
|
@@ -66,19 +66,28 @@ function U(e, t) {
|
|
|
66
66
|
}
|
|
67
67
|
case "BinaryPartitioned": {
|
|
68
68
|
const n = {};
|
|
69
|
-
for (const [r,
|
|
69
|
+
for (const [r, i] of Object.entries(e.parts))
|
|
70
70
|
n[r] = {
|
|
71
|
-
index: t(
|
|
72
|
-
values: t(
|
|
71
|
+
index: t(i.index),
|
|
72
|
+
values: t(i.values)
|
|
73
73
|
};
|
|
74
74
|
return {
|
|
75
75
|
...e,
|
|
76
76
|
parts: n
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
|
+
case "ParquetPartitioned": {
|
|
80
|
+
const n = {};
|
|
81
|
+
for (const [r, i] of Object.entries(e.parts))
|
|
82
|
+
n[r] = t(i);
|
|
83
|
+
return {
|
|
84
|
+
...e,
|
|
85
|
+
parts: n
|
|
86
|
+
};
|
|
87
|
+
}
|
|
79
88
|
}
|
|
80
89
|
}
|
|
81
|
-
function
|
|
90
|
+
function I(e) {
|
|
82
91
|
if (!e || typeof e != "object")
|
|
83
92
|
return !1;
|
|
84
93
|
const t = e;
|
|
@@ -88,87 +97,101 @@ function J(e) {
|
|
|
88
97
|
case "Json":
|
|
89
98
|
return typeof t.keyLength == "number" && Array.isArray(t.data);
|
|
90
99
|
case "JsonPartitioned":
|
|
91
|
-
return typeof t.partitionKeyLength == "number" && Array.isArray(t.parts);
|
|
92
100
|
case "BinaryPartitioned":
|
|
101
|
+
case "ParquetPartitioned":
|
|
93
102
|
return typeof t.partitionKeyLength == "number" && Array.isArray(t.parts);
|
|
94
103
|
default:
|
|
95
104
|
return !1;
|
|
96
105
|
}
|
|
97
106
|
}
|
|
98
|
-
function
|
|
99
|
-
|
|
107
|
+
function _(e) {
|
|
108
|
+
if (!I(e)) return !1;
|
|
109
|
+
switch (e.type) {
|
|
110
|
+
case "JsonPartitioned":
|
|
111
|
+
case "BinaryPartitioned":
|
|
112
|
+
case "ParquetPartitioned":
|
|
113
|
+
return !0;
|
|
114
|
+
default:
|
|
115
|
+
return !1;
|
|
116
|
+
}
|
|
100
117
|
}
|
|
101
|
-
function
|
|
118
|
+
function H(e) {
|
|
102
119
|
switch (e.type) {
|
|
103
|
-
case "Json":
|
|
104
|
-
const t = Object.entries(e.data).map(([n, r]) => ({ key: JSON.parse(n), value: r }));
|
|
120
|
+
case "Json":
|
|
105
121
|
return {
|
|
106
122
|
type: "Json",
|
|
107
123
|
keyLength: e.keyLength,
|
|
108
|
-
data: t
|
|
124
|
+
data: Object.entries(e.data).map(([t, n]) => ({ key: JSON.parse(t), value: n }))
|
|
109
125
|
};
|
|
110
|
-
|
|
111
|
-
case "JsonPartitioned": {
|
|
112
|
-
const t = Object.entries(e.parts).map(([n, r]) => ({ key: JSON.parse(n), value: r }));
|
|
126
|
+
case "JsonPartitioned":
|
|
113
127
|
return {
|
|
114
128
|
type: "JsonPartitioned",
|
|
115
129
|
partitionKeyLength: e.partitionKeyLength,
|
|
116
|
-
parts: t
|
|
130
|
+
parts: Object.entries(e.parts).map(([t, n]) => ({ key: JSON.parse(t), value: n }))
|
|
117
131
|
};
|
|
118
|
-
|
|
119
|
-
case "BinaryPartitioned": {
|
|
120
|
-
const t = Object.entries(e.parts).map(([n, r]) => ({ key: JSON.parse(n), value: r }));
|
|
132
|
+
case "BinaryPartitioned":
|
|
121
133
|
return {
|
|
122
134
|
type: "BinaryPartitioned",
|
|
123
135
|
partitionKeyLength: e.partitionKeyLength,
|
|
124
|
-
parts: t
|
|
136
|
+
parts: Object.entries(e.parts).map(([t, n]) => ({ key: JSON.parse(t), value: n }))
|
|
125
137
|
};
|
|
126
|
-
|
|
138
|
+
case "ParquetPartitioned":
|
|
139
|
+
return {
|
|
140
|
+
type: "ParquetPartitioned",
|
|
141
|
+
partitionKeyLength: e.partitionKeyLength,
|
|
142
|
+
parts: Object.entries(e.parts).map(([t, n]) => ({ key: JSON.parse(t), value: n }))
|
|
143
|
+
};
|
|
144
|
+
default:
|
|
145
|
+
l(e);
|
|
127
146
|
}
|
|
128
147
|
}
|
|
129
|
-
function
|
|
148
|
+
function W(e) {
|
|
130
149
|
switch (e.type) {
|
|
131
|
-
case "Json":
|
|
132
|
-
const t = {};
|
|
133
|
-
for (const n of e.data)
|
|
134
|
-
t[JSON.stringify(n.key)] = n.value;
|
|
150
|
+
case "Json":
|
|
135
151
|
return {
|
|
136
152
|
type: "Json",
|
|
137
153
|
keyLength: e.keyLength,
|
|
138
|
-
data:
|
|
154
|
+
data: Object.fromEntries(
|
|
155
|
+
e.data.map(({ key: t, value: n }) => [JSON.stringify(t), n])
|
|
156
|
+
)
|
|
139
157
|
};
|
|
140
|
-
|
|
141
|
-
case "JsonPartitioned": {
|
|
142
|
-
const t = {};
|
|
143
|
-
for (const n of e.parts)
|
|
144
|
-
t[JSON.stringify(n.key)] = n.value;
|
|
158
|
+
case "JsonPartitioned":
|
|
145
159
|
return {
|
|
146
160
|
type: "JsonPartitioned",
|
|
147
161
|
partitionKeyLength: e.partitionKeyLength,
|
|
148
|
-
parts:
|
|
162
|
+
parts: Object.fromEntries(
|
|
163
|
+
e.parts.map(({ key: t, value: n }) => [JSON.stringify(t), n])
|
|
164
|
+
)
|
|
149
165
|
};
|
|
150
|
-
|
|
151
|
-
case "BinaryPartitioned": {
|
|
152
|
-
const t = {};
|
|
153
|
-
for (const n of e.parts)
|
|
154
|
-
t[JSON.stringify(n.key)] = n.value;
|
|
166
|
+
case "BinaryPartitioned":
|
|
155
167
|
return {
|
|
156
168
|
type: "BinaryPartitioned",
|
|
157
169
|
partitionKeyLength: e.partitionKeyLength,
|
|
158
|
-
parts:
|
|
170
|
+
parts: Object.fromEntries(
|
|
171
|
+
e.parts.map(({ key: t, value: n }) => [JSON.stringify(t), n])
|
|
172
|
+
)
|
|
159
173
|
};
|
|
160
|
-
|
|
174
|
+
case "ParquetPartitioned":
|
|
175
|
+
return {
|
|
176
|
+
type: "ParquetPartitioned",
|
|
177
|
+
partitionKeyLength: e.partitionKeyLength,
|
|
178
|
+
parts: Object.fromEntries(
|
|
179
|
+
e.parts.map(({ key: t, value: n }) => [JSON.stringify(t), n])
|
|
180
|
+
)
|
|
181
|
+
};
|
|
182
|
+
default:
|
|
183
|
+
l(e);
|
|
161
184
|
}
|
|
162
185
|
}
|
|
163
186
|
function d(e) {
|
|
164
|
-
const { type: t, name: n, domain: r } = e,
|
|
165
|
-
return r && Object.entries(r).length > 0 && Object.assign(
|
|
187
|
+
const { type: t, name: n, domain: r } = e, i = { type: t, name: n };
|
|
188
|
+
return r && Object.entries(r).length > 0 && Object.assign(i, { domain: r }), i;
|
|
166
189
|
}
|
|
167
190
|
function L(e) {
|
|
168
191
|
return e.map(d);
|
|
169
192
|
}
|
|
170
|
-
function
|
|
171
|
-
return
|
|
193
|
+
function G(e) {
|
|
194
|
+
return g(d(e));
|
|
172
195
|
}
|
|
173
196
|
function C(e, t) {
|
|
174
197
|
if (e === void 0) return t === void 0;
|
|
@@ -180,10 +203,10 @@ function C(e, t) {
|
|
|
180
203
|
function $(e, t) {
|
|
181
204
|
return e.name === t.name && C(e.domain, t.domain);
|
|
182
205
|
}
|
|
183
|
-
function
|
|
184
|
-
return { ...e, src:
|
|
206
|
+
function Q(e, t) {
|
|
207
|
+
return { ...e, src: h(e.src, t) };
|
|
185
208
|
}
|
|
186
|
-
function
|
|
209
|
+
function h(e, t) {
|
|
187
210
|
switch (e.type) {
|
|
188
211
|
case "column":
|
|
189
212
|
return {
|
|
@@ -203,28 +226,28 @@ function p(e, t) {
|
|
|
203
226
|
case "full":
|
|
204
227
|
return {
|
|
205
228
|
type: e.type,
|
|
206
|
-
entries: e.entries.map((n) =>
|
|
229
|
+
entries: e.entries.map((n) => h(n, t))
|
|
207
230
|
};
|
|
208
231
|
case "outer":
|
|
209
232
|
return {
|
|
210
233
|
type: "outer",
|
|
211
|
-
primary:
|
|
212
|
-
secondary: e.secondary.map((n) =>
|
|
234
|
+
primary: h(e.primary, t),
|
|
235
|
+
secondary: e.secondary.map((n) => h(n, t))
|
|
213
236
|
};
|
|
214
237
|
default:
|
|
215
|
-
|
|
238
|
+
l(e);
|
|
216
239
|
}
|
|
217
240
|
}
|
|
218
241
|
function N(e) {
|
|
219
|
-
return
|
|
242
|
+
return g(e);
|
|
220
243
|
}
|
|
221
|
-
function
|
|
222
|
-
return
|
|
244
|
+
function b(e) {
|
|
245
|
+
return g(d(e));
|
|
223
246
|
}
|
|
224
|
-
function
|
|
247
|
+
function x(e, t) {
|
|
225
248
|
return JSON.stringify([e, t]);
|
|
226
249
|
}
|
|
227
|
-
class
|
|
250
|
+
class V {
|
|
228
251
|
/**
|
|
229
252
|
* Creates a new anchor context from a set of anchor column specifications
|
|
230
253
|
* @param anchors Record of anchor column specifications indexed by anchor ID
|
|
@@ -232,17 +255,17 @@ class Q {
|
|
|
232
255
|
constructor(t) {
|
|
233
256
|
m(this, "domains", /* @__PURE__ */ new Map()), m(this, "axes", /* @__PURE__ */ new Map()), m(this, "domainPacks", []), m(this, "domainPackToAnchor", /* @__PURE__ */ new Map()), this.anchors = t;
|
|
234
257
|
const n = Object.entries(t);
|
|
235
|
-
n.sort((r,
|
|
236
|
-
for (const [r,
|
|
237
|
-
for (let
|
|
238
|
-
const a =
|
|
239
|
-
this.axes.set(s, { anchor: r, idx:
|
|
258
|
+
n.sort((r, i) => r[0].localeCompare(i[0]));
|
|
259
|
+
for (const [r, i] of n) {
|
|
260
|
+
for (let o = 0; o < i.axesSpec.length; o++) {
|
|
261
|
+
const a = i.axesSpec[o], s = b(a);
|
|
262
|
+
this.axes.set(s, { anchor: r, idx: o });
|
|
240
263
|
}
|
|
241
|
-
if (
|
|
242
|
-
const
|
|
243
|
-
|
|
244
|
-
for (const [a, s] of
|
|
245
|
-
const c =
|
|
264
|
+
if (i.domain !== void 0) {
|
|
265
|
+
const o = Object.entries(i.domain);
|
|
266
|
+
o.sort((a, s) => a[0].localeCompare(s[0])), this.domainPackToAnchor.set(JSON.stringify(o), r), this.domainPacks.push(o.map(([a]) => a));
|
|
267
|
+
for (const [a, s] of o) {
|
|
268
|
+
const c = x(a, s);
|
|
246
269
|
this.domains.set(c, r);
|
|
247
270
|
}
|
|
248
271
|
}
|
|
@@ -256,52 +279,52 @@ class Q {
|
|
|
256
279
|
name: t.name,
|
|
257
280
|
axes: []
|
|
258
281
|
};
|
|
259
|
-
let
|
|
282
|
+
let i;
|
|
260
283
|
if (t.domain !== void 0)
|
|
261
284
|
e:
|
|
262
285
|
for (const a of this.domainPacks) {
|
|
263
286
|
const s = [];
|
|
264
287
|
for (const f of a) {
|
|
265
|
-
const
|
|
266
|
-
if (
|
|
267
|
-
s.push([f,
|
|
288
|
+
const p = t.domain[f];
|
|
289
|
+
if (p !== void 0)
|
|
290
|
+
s.push([f, p]);
|
|
268
291
|
else
|
|
269
292
|
break e;
|
|
270
293
|
}
|
|
271
294
|
const c = this.domainPackToAnchor.get(JSON.stringify(s));
|
|
272
295
|
if (c !== void 0) {
|
|
273
|
-
r.domainAnchor = c,
|
|
296
|
+
r.domainAnchor = c, i = new Set(a);
|
|
274
297
|
break;
|
|
275
298
|
}
|
|
276
299
|
}
|
|
277
300
|
for (const [a, s] of Object.entries(t.domain ?? {})) {
|
|
278
|
-
if (
|
|
301
|
+
if (i !== void 0 && i.has(a))
|
|
279
302
|
continue;
|
|
280
|
-
const c =
|
|
303
|
+
const c = x(a, s), f = this.domains.get(c);
|
|
281
304
|
r.domain ?? (r.domain = {}), r.domain[a] = f ? { anchor: f } : s;
|
|
282
305
|
}
|
|
283
306
|
if (r.axes = t.axesSpec.map((a) => {
|
|
284
|
-
const s =
|
|
307
|
+
const s = b(a), c = this.axes.get(s);
|
|
285
308
|
return c === void 0 ? d(a) : c;
|
|
286
309
|
}), !n || n.length === 0)
|
|
287
310
|
return r;
|
|
288
|
-
const
|
|
311
|
+
const o = [];
|
|
289
312
|
for (const a of n) {
|
|
290
313
|
const [s, c] = a;
|
|
291
314
|
if (typeof s == "number") {
|
|
292
315
|
if (s < 0 || s >= t.axesSpec.length)
|
|
293
316
|
throw new Error(`Axis index ${s} is out of bounds (0-${t.axesSpec.length - 1})`);
|
|
294
|
-
|
|
317
|
+
o.push([s, c]);
|
|
295
318
|
} else {
|
|
296
|
-
const f = t.axesSpec.findIndex((
|
|
319
|
+
const f = t.axesSpec.findIndex((p) => p.name === s);
|
|
297
320
|
if (f === -1)
|
|
298
321
|
throw new Error(`Axis with name "${s}" not found in the column specification`);
|
|
299
|
-
|
|
322
|
+
o.push([f, c]);
|
|
300
323
|
}
|
|
301
324
|
}
|
|
302
|
-
return
|
|
325
|
+
return o.sort((a, s) => a[0] - s[0]), {
|
|
303
326
|
source: r,
|
|
304
|
-
axisFilters:
|
|
327
|
+
axisFilters: o
|
|
305
328
|
};
|
|
306
329
|
}
|
|
307
330
|
/**
|
|
@@ -315,36 +338,36 @@ class Q {
|
|
|
315
338
|
}
|
|
316
339
|
}
|
|
317
340
|
function X(e, t, n) {
|
|
318
|
-
const r = { ...t },
|
|
341
|
+
const r = { ...t }, i = (n == null ? void 0 : n.ignoreMissingDomains) ?? !1;
|
|
319
342
|
if (r.domainAnchor !== void 0) {
|
|
320
|
-
const
|
|
321
|
-
if (!
|
|
343
|
+
const o = e[r.domainAnchor];
|
|
344
|
+
if (!o)
|
|
322
345
|
throw new Error(`Anchor "${r.domainAnchor}" not found`);
|
|
323
|
-
const a =
|
|
346
|
+
const a = o.domain || {};
|
|
324
347
|
r.domain = { ...a, ...r.domain }, delete r.domainAnchor;
|
|
325
348
|
}
|
|
326
349
|
if (r.domain) {
|
|
327
|
-
const
|
|
350
|
+
const o = {};
|
|
328
351
|
for (const [a, s] of Object.entries(r.domain))
|
|
329
352
|
if (typeof s == "string")
|
|
330
|
-
|
|
353
|
+
o[a] = s;
|
|
331
354
|
else {
|
|
332
355
|
const c = e[s.anchor];
|
|
333
356
|
if (!c)
|
|
334
357
|
throw new Error(`Anchor "${s.anchor}" not found for domain key "${a}"`);
|
|
335
358
|
if (!c.domain || c.domain[a] === void 0) {
|
|
336
|
-
if (!
|
|
359
|
+
if (!i)
|
|
337
360
|
throw new Error(`Domain key "${a}" not found in anchor "${s.anchor}"`);
|
|
338
361
|
continue;
|
|
339
362
|
}
|
|
340
|
-
|
|
363
|
+
o[a] = c.domain[a];
|
|
341
364
|
}
|
|
342
|
-
r.domain =
|
|
365
|
+
r.domain = o;
|
|
343
366
|
}
|
|
344
|
-
return r.axes && (r.axes = r.axes.map((
|
|
367
|
+
return r.axes && (r.axes = r.axes.map((o) => K(e, o))), r;
|
|
345
368
|
}
|
|
346
369
|
function K(e, t) {
|
|
347
|
-
if (!
|
|
370
|
+
if (!q(t))
|
|
348
371
|
return t;
|
|
349
372
|
const n = t.anchor, r = e[n];
|
|
350
373
|
if (!r)
|
|
@@ -354,33 +377,33 @@ function K(e, t) {
|
|
|
354
377
|
throw new Error(`Axis index ${t.idx} out of bounds for anchor "${n}"`);
|
|
355
378
|
return r.axesSpec[t.idx];
|
|
356
379
|
} else if ("name" in t) {
|
|
357
|
-
const
|
|
358
|
-
if (
|
|
380
|
+
const i = r.axesSpec.filter((o) => o.name === t.name);
|
|
381
|
+
if (i.length > 1)
|
|
359
382
|
throw new Error(`Multiple axes with name "${t.name}" found in anchor "${n}"`);
|
|
360
|
-
if (
|
|
383
|
+
if (i.length === 0)
|
|
361
384
|
throw new Error(`Axis with name "${t.name}" not found in anchor "${n}"`);
|
|
362
|
-
return
|
|
385
|
+
return i[0];
|
|
363
386
|
} else if ("id" in t) {
|
|
364
|
-
const
|
|
365
|
-
if (
|
|
387
|
+
const i = r.axesSpec.filter((o) => $(t.id, d(o)));
|
|
388
|
+
if (i.length > 1)
|
|
366
389
|
throw new Error(`Multiple matching axes found for matcher in anchor "${n}"`);
|
|
367
|
-
if (
|
|
390
|
+
if (i.length === 0)
|
|
368
391
|
throw new Error(`No matching axis found for matcher in anchor "${n}"`);
|
|
369
|
-
return
|
|
392
|
+
return i[0];
|
|
370
393
|
}
|
|
371
394
|
throw new Error("Unsupported axis reference type");
|
|
372
395
|
}
|
|
373
|
-
function
|
|
396
|
+
function q(e) {
|
|
374
397
|
return typeof e == "object" && "anchor" in e;
|
|
375
398
|
}
|
|
376
|
-
function
|
|
399
|
+
function y(e) {
|
|
377
400
|
return e.kind === "PColumn";
|
|
378
401
|
}
|
|
379
|
-
function
|
|
380
|
-
return
|
|
402
|
+
function T(e) {
|
|
403
|
+
return y(e.spec);
|
|
381
404
|
}
|
|
382
405
|
function Y(e) {
|
|
383
|
-
if (!
|
|
406
|
+
if (!T(e)) throw new Error(`not a PColumn (kind = ${e.spec.kind})`);
|
|
384
407
|
return e;
|
|
385
408
|
}
|
|
386
409
|
function z(e, t) {
|
|
@@ -402,14 +425,14 @@ function Z(e) {
|
|
|
402
425
|
return;
|
|
403
426
|
case "full":
|
|
404
427
|
case "inner":
|
|
405
|
-
for (const
|
|
428
|
+
for (const i of r.entries) n(i);
|
|
406
429
|
return;
|
|
407
430
|
case "outer":
|
|
408
431
|
n(r.primary);
|
|
409
|
-
for (const
|
|
432
|
+
for (const i of r.secondary) n(i);
|
|
410
433
|
return;
|
|
411
434
|
default:
|
|
412
|
-
|
|
435
|
+
l(r);
|
|
413
436
|
}
|
|
414
437
|
};
|
|
415
438
|
return n(e), [...t.values()];
|
|
@@ -426,13 +449,13 @@ function v(e, t) {
|
|
|
426
449
|
}
|
|
427
450
|
if (e.domain !== void 0) {
|
|
428
451
|
const n = t.domain || {};
|
|
429
|
-
for (const [r,
|
|
430
|
-
if (n[r] !==
|
|
452
|
+
for (const [r, i] of Object.entries(e.domain))
|
|
453
|
+
if (n[r] !== i)
|
|
431
454
|
return !1;
|
|
432
455
|
}
|
|
433
456
|
return !0;
|
|
434
457
|
}
|
|
435
|
-
function
|
|
458
|
+
function P(e, t) {
|
|
436
459
|
if (t.name !== void 0 && e.name !== t.name || t.namePattern !== void 0 && !new RegExp(t.namePattern).test(e.name))
|
|
437
460
|
return !1;
|
|
438
461
|
if (t.type !== void 0) {
|
|
@@ -444,15 +467,15 @@ function w(e, t) {
|
|
|
444
467
|
}
|
|
445
468
|
if (t.domain !== void 0) {
|
|
446
469
|
const n = e.domain || {};
|
|
447
|
-
for (const [r,
|
|
448
|
-
if (n[r] !==
|
|
470
|
+
for (const [r, i] of Object.entries(t.domain))
|
|
471
|
+
if (n[r] !== i)
|
|
449
472
|
return !1;
|
|
450
473
|
}
|
|
451
474
|
if (t.axes !== void 0) {
|
|
452
475
|
const n = e.axesSpec.map(d);
|
|
453
476
|
if (t.partialAxesMatch) {
|
|
454
477
|
for (const r of t.axes)
|
|
455
|
-
if (!n.some((
|
|
478
|
+
if (!n.some((i) => v(r, i)))
|
|
456
479
|
return !1;
|
|
457
480
|
} else {
|
|
458
481
|
if (n.length !== t.axes.length)
|
|
@@ -464,29 +487,29 @@ function w(e, t) {
|
|
|
464
487
|
}
|
|
465
488
|
if (t.annotations !== void 0) {
|
|
466
489
|
const n = e.annotations || {};
|
|
467
|
-
for (const [r,
|
|
468
|
-
if (n[r] !==
|
|
490
|
+
for (const [r, i] of Object.entries(t.annotations))
|
|
491
|
+
if (n[r] !== i)
|
|
469
492
|
return !1;
|
|
470
493
|
}
|
|
471
494
|
if (t.annotationPatterns !== void 0) {
|
|
472
495
|
const n = e.annotations || {};
|
|
473
|
-
for (const [r,
|
|
474
|
-
const
|
|
475
|
-
if (
|
|
496
|
+
for (const [r, i] of Object.entries(t.annotationPatterns)) {
|
|
497
|
+
const o = n[r];
|
|
498
|
+
if (o === void 0 || !new RegExp(i).test(o))
|
|
476
499
|
return !1;
|
|
477
500
|
}
|
|
478
501
|
}
|
|
479
502
|
return !0;
|
|
480
503
|
}
|
|
481
504
|
function ee(e) {
|
|
482
|
-
return Array.isArray(e) ? (t) => e.some((n) =>
|
|
505
|
+
return Array.isArray(e) ? (t) => e.some((n) => y(t) && P(t, n)) : (t) => y(t) && P(t, e);
|
|
483
506
|
}
|
|
484
507
|
function te(e) {
|
|
485
508
|
const t = {
|
|
486
509
|
kind: e.kind,
|
|
487
510
|
name: e.name
|
|
488
511
|
};
|
|
489
|
-
return e.domain !== void 0 && (t.domain = e.domain),
|
|
512
|
+
return e.domain !== void 0 && (t.domain = e.domain), y(e) && (t.axesSpec = L(e.axesSpec)), g(t);
|
|
490
513
|
}
|
|
491
514
|
u.object({
|
|
492
515
|
__isRef: u.literal(!0).describe("Crucial marker for the block dependency tree reconstruction"),
|
|
@@ -510,40 +533,40 @@ function re(e, t = !0) {
|
|
|
510
533
|
return r;
|
|
511
534
|
}
|
|
512
535
|
}
|
|
513
|
-
function
|
|
536
|
+
function ie(e, t) {
|
|
514
537
|
return e.ok ? { ok: !0, value: t(e.value) } : e;
|
|
515
538
|
}
|
|
516
|
-
const
|
|
517
|
-
u.string().length(
|
|
539
|
+
const B = 24;
|
|
540
|
+
u.string().length(B).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
|
|
518
541
|
export {
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
542
|
+
V as AnchoredIdDeriver,
|
|
543
|
+
B as PlIdLength,
|
|
544
|
+
G as canonicalizeAxisId,
|
|
545
|
+
H as dataInfoToEntries,
|
|
523
546
|
te as deriveNativeId,
|
|
524
547
|
Y as ensurePColumn,
|
|
525
|
-
|
|
548
|
+
W as entriesToDataInfo,
|
|
526
549
|
Z as extractAllColumns,
|
|
527
550
|
L as getAxesId,
|
|
528
551
|
d as getAxisId,
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
552
|
+
M as getFileNameFromHandle,
|
|
553
|
+
J as getFilePathFromHandle,
|
|
554
|
+
R as isDataInfo,
|
|
555
|
+
I as isDataInfoEntries,
|
|
556
|
+
E as isImportFileHandleIndex,
|
|
557
|
+
j as isImportFileHandleUpload,
|
|
558
|
+
T as isPColumn,
|
|
559
|
+
y as isPColumnSpec,
|
|
560
|
+
_ as isPartitionedDataInfoEntries,
|
|
538
561
|
ne as isPlRef,
|
|
539
562
|
U as mapDataInfo,
|
|
540
|
-
|
|
563
|
+
h as mapJoinEntry,
|
|
541
564
|
z as mapPObjectData,
|
|
542
|
-
|
|
543
|
-
|
|
565
|
+
Q as mapPTableDef,
|
|
566
|
+
ie as mapValueInVOE,
|
|
544
567
|
v as matchAxis,
|
|
545
568
|
$ as matchAxisId,
|
|
546
|
-
|
|
569
|
+
P as matchPColumn,
|
|
547
570
|
X as resolveAnchors,
|
|
548
571
|
ee as selectorsToPredicate,
|
|
549
572
|
N as stringifyColumnId,
|