@dcupl/bundle 2.0.0-beta.19 → 2.0.0-beta.20
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/dist/dcupl.bundle.js
CHANGED
|
@@ -934,11 +934,11 @@
|
|
|
934
934
|
$$2.prototype.get = ws$1;
|
|
935
935
|
$$2.prototype.has = As$1;
|
|
936
936
|
$$2.prototype.set = xs$1;
|
|
937
|
-
var H$
|
|
937
|
+
var H$3 = q$1(O$1, "Map");
|
|
938
938
|
function Ss$1() {
|
|
939
939
|
this.size = 0, this.__data__ = {
|
|
940
940
|
hash: new Q$4(),
|
|
941
|
-
map: new (H$
|
|
941
|
+
map: new (H$3 || $$2)(),
|
|
942
942
|
string: new Q$4()
|
|
943
943
|
};
|
|
944
944
|
}
|
|
@@ -1067,7 +1067,7 @@
|
|
|
1067
1067
|
var t = this.__data__;
|
|
1068
1068
|
if (t instanceof $$2) {
|
|
1069
1069
|
var n = t.__data__;
|
|
1070
|
-
if (!H$
|
|
1070
|
+
if (!H$3 || n.length < Xs$1 - 1)
|
|
1071
1071
|
return n.push([r, e]), this.size = ++t.size, this;
|
|
1072
1072
|
t = this.__data__ = new _(n);
|
|
1073
1073
|
}
|
|
@@ -1111,8 +1111,8 @@
|
|
|
1111
1111
|
function Ae$2(r) {
|
|
1112
1112
|
return oi(r, le$1, ii);
|
|
1113
1113
|
}
|
|
1114
|
-
var xe$2 = q$1(O$1, "DataView"), Se$2 = q$1(O$1, "Promise"), Te$2 = q$1(O$1, "Set"), it$2 = "[object Map]", ai = "[object Object]", ot$3 = "[object Promise]", at$2 = "[object Set]", ut$2 = "[object WeakMap]", ct$2 = "[object DataView]", ui = j$2(xe$2), ci = j$2(H$
|
|
1115
|
-
(xe$2 && w(new xe$2(new ArrayBuffer(1))) != ct$2 || H$
|
|
1114
|
+
var xe$2 = q$1(O$1, "DataView"), Se$2 = q$1(O$1, "Promise"), Te$2 = q$1(O$1, "Set"), it$2 = "[object Map]", ai = "[object Object]", ot$3 = "[object Promise]", at$2 = "[object Set]", ut$2 = "[object WeakMap]", ct$2 = "[object DataView]", ui = j$2(xe$2), ci = j$2(H$3), fi = j$2(Se$2), li = j$2(Te$2), di = j$2(we$2), w = N$2;
|
|
1115
|
+
(xe$2 && w(new xe$2(new ArrayBuffer(1))) != ct$2 || H$3 && w(new H$3()) != it$2 || Se$2 && w(Se$2.resolve()) != ot$3 || Te$2 && w(new Te$2()) != at$2 || we$2 && w(new we$2()) != ut$2) && (w = function(r) {
|
|
1116
1116
|
var e = N$2(r), t = e == ai ? r.constructor : void 0, n = t ? j$2(t) : "";
|
|
1117
1117
|
if (n)
|
|
1118
1118
|
switch (n) {
|
|
@@ -3091,13 +3091,13 @@
|
|
|
3091
3091
|
}
|
|
3092
3092
|
}
|
|
3093
3093
|
const x$1 = new su();
|
|
3094
|
-
function L$
|
|
3094
|
+
function L$1(r, e) {
|
|
3095
3095
|
if (e.includes("[*]")) {
|
|
3096
3096
|
const i = e.indexOf("[*]"), o = e.substring(0, i), a = e.substring(i + 3), u = o ? W$2(r, o) : r;
|
|
3097
3097
|
if (!Array.isArray(u)) return [];
|
|
3098
3098
|
const c = [];
|
|
3099
3099
|
for (const f of u)
|
|
3100
|
-
!a || a === "" ? f !== void 0 && c.push(f) : a.startsWith(".") && c.push(...L$
|
|
3100
|
+
!a || a === "" ? f !== void 0 && c.push(f) : a.startsWith(".") && c.push(...L$1(f, a.slice(1)));
|
|
3101
3101
|
return c;
|
|
3102
3102
|
}
|
|
3103
3103
|
const t = e.split(".");
|
|
@@ -3158,7 +3158,7 @@
|
|
|
3158
3158
|
for (const s of e.values())
|
|
3159
3159
|
if (s)
|
|
3160
3160
|
if (t)
|
|
3161
|
-
n += L$
|
|
3161
|
+
n += L$1(s, r).filter((i) => i != null).length;
|
|
3162
3162
|
else {
|
|
3163
3163
|
const i = s[r];
|
|
3164
3164
|
if (i == null) continue;
|
|
@@ -3172,7 +3172,7 @@
|
|
|
3172
3172
|
if (!i) continue;
|
|
3173
3173
|
let o;
|
|
3174
3174
|
if (s)
|
|
3175
|
-
o = L$
|
|
3175
|
+
o = L$1(i, r);
|
|
3176
3176
|
else {
|
|
3177
3177
|
const a = i[r];
|
|
3178
3178
|
a === void 0 ? o = [] : Array.isArray(a) ? o = a.filter((u) => u !== void 0) : o = [a];
|
|
@@ -3198,7 +3198,7 @@
|
|
|
3198
3198
|
}, s = x$1.parse(r.attribute).isDeepQuery;
|
|
3199
3199
|
for (const i of e.values()) {
|
|
3200
3200
|
let o;
|
|
3201
|
-
s ? o = L$
|
|
3201
|
+
s ? o = L$1(i, r.attribute) : o = [i[r.attribute]];
|
|
3202
3202
|
let a = false;
|
|
3203
3203
|
for (const u of o)
|
|
3204
3204
|
for (const c of t)
|
|
@@ -3213,7 +3213,7 @@
|
|
|
3213
3213
|
if (!i) continue;
|
|
3214
3214
|
let o;
|
|
3215
3215
|
if (s)
|
|
3216
|
-
o = L$
|
|
3216
|
+
o = L$1(i, r);
|
|
3217
3217
|
else {
|
|
3218
3218
|
const a = i[r];
|
|
3219
3219
|
a === void 0 ? o = [] : Array.isArray(a) ? o = a : o = [a];
|
|
@@ -3939,7 +3939,9 @@
|
|
|
3939
3939
|
if (t.excludeUndefineds ? f.delete(void 0) : f.add(void 0), t.sort) {
|
|
3940
3940
|
const h = [];
|
|
3941
3941
|
for (const m of f.values())
|
|
3942
|
-
h.push(
|
|
3942
|
+
h.push(
|
|
3943
|
+
Tt(m, l, u, e, s, n, true)
|
|
3944
|
+
);
|
|
3943
3945
|
const p2 = t.excludeZeros ? h.filter((m) => m.size > 0) : h;
|
|
3944
3946
|
return p2.sort(lu(t.sort)), t.count ? p2.slice(0, t.count) : p2;
|
|
3945
3947
|
}
|
|
@@ -4093,7 +4095,7 @@
|
|
|
4093
4095
|
const a = x$1.parse(e).isDeepQuery;
|
|
4094
4096
|
for (const u of t.values()) {
|
|
4095
4097
|
let c;
|
|
4096
|
-
a ? (c = L$
|
|
4098
|
+
a ? (c = L$1(u, e), c.length === 0 && (c = [void 0])) : c = [u[e]], this.fillInverseIndex(s, u.key, c), this.fillDataMap(s, c);
|
|
4097
4099
|
}
|
|
4098
4100
|
i = this.getIndex(s) || /* @__PURE__ */ new Map();
|
|
4099
4101
|
}
|
|
@@ -5145,7 +5147,7 @@
|
|
|
5145
5147
|
}
|
|
5146
5148
|
d.forEach((h) => {
|
|
5147
5149
|
let y2;
|
|
5148
|
-
g2 ? (y2 = L$
|
|
5150
|
+
g2 ? (y2 = L$1(h, e), y2.length === 0 && (y2 = [void 0])) : y2 = [h[e]], this.indicesController.fillInverseIndex(e, h.key, y2), this.indicesController.fillDataMap(e, y2);
|
|
5149
5151
|
}), n = this.indicesController.getIndex(e), t || (o = this.indicesController.getData(e));
|
|
5150
5152
|
}
|
|
5151
5153
|
const f = ju(
|
|
@@ -5378,7 +5380,11 @@
|
|
|
5378
5380
|
const u = r[s];
|
|
5379
5381
|
if (u) {
|
|
5380
5382
|
const f = typeof u == "string" ? u : u.key, c = l?.getEntry(f);
|
|
5381
|
-
c ? i[s] = this.getProjectedData(
|
|
5383
|
+
c ? i[s] = this.getProjectedData(
|
|
5384
|
+
a,
|
|
5385
|
+
l,
|
|
5386
|
+
c
|
|
5387
|
+
) : this.modelParser.initOptions.referenceMetadata?.enabled ? i[s] = { key: f, _dcupl_ref_: "miss" } : delete i[s];
|
|
5382
5388
|
}
|
|
5383
5389
|
}
|
|
5384
5390
|
}
|
|
@@ -6190,10 +6196,10 @@
|
|
|
6190
6196
|
}
|
|
6191
6197
|
f && (o.set(a, c), r(c, a, s, i, o), o.delete(a)), T$2(d, t, c);
|
|
6192
6198
|
}
|
|
6193
|
-
function L
|
|
6199
|
+
function L(d, e, t, s, r) {
|
|
6194
6200
|
d !== e && ua(e, function(i, o) {
|
|
6195
6201
|
if (r || (r = new S$2()), E$3(i))
|
|
6196
|
-
Ue$2(d, e, o, t, L
|
|
6202
|
+
Ue$2(d, e, o, t, L, s, r);
|
|
6197
6203
|
else {
|
|
6198
6204
|
var n = s ? s(K$2(d, o), i, o + "", d, e, r) : void 0;
|
|
6199
6205
|
n === void 0 && (n = i), T$2(d, o, n);
|
|
@@ -6207,7 +6213,7 @@
|
|
|
6207
6213
|
return d === true || d === false || T$4(d) && N$2(d) == Qe$1;
|
|
6208
6214
|
}
|
|
6209
6215
|
var A$1 = Ee$1(function(d, e, t) {
|
|
6210
|
-
L
|
|
6216
|
+
L(d, e, t);
|
|
6211
6217
|
});
|
|
6212
6218
|
const p$2 = (d, e, t) => ({
|
|
6213
6219
|
title: d,
|
|
@@ -6414,14 +6420,14 @@
|
|
|
6414
6420
|
}
|
|
6415
6421
|
const st$1 = {
|
|
6416
6422
|
REF_VALUE: "_dcupl_ref_"
|
|
6417
|
-
}, H$
|
|
6423
|
+
}, H$2 = {
|
|
6418
6424
|
required: true,
|
|
6419
6425
|
forceStrictDataType: false,
|
|
6420
6426
|
nullable: false,
|
|
6421
6427
|
validatorHandling: "loose"
|
|
6422
6428
|
}, V$1 = {
|
|
6423
6429
|
enabled: true,
|
|
6424
|
-
attributes: H$
|
|
6430
|
+
attributes: H$2
|
|
6425
6431
|
};
|
|
6426
6432
|
let it$1 = class it {
|
|
6427
6433
|
constructor(e) {
|
|
@@ -6480,7 +6486,12 @@
|
|
|
6480
6486
|
}), this.supportsAutoCreation = !!e.supportsAutoCreation, this.keyProperty = e.keyProperty || "key", this.keyPropertySeparator = e.keyPropertySeparator, this.autoGenerateKey = !!e.autoGenerateKey, this.autoGenerateProperties = !!e.autoGenerateProperties, this.autoGeneratePropertiesOption = e.autoGenerateProperties ?? false, this.valueMappings = e.valueMappings || [], this.meta = e.meta;
|
|
6481
6487
|
}
|
|
6482
6488
|
setAttributeQualityConfig(e) {
|
|
6483
|
-
const t = this.qualityConfig.attributes, s = A$1(
|
|
6489
|
+
const t = this.qualityConfig.attributes, s = A$1(
|
|
6490
|
+
{},
|
|
6491
|
+
H$2,
|
|
6492
|
+
t,
|
|
6493
|
+
e.quality
|
|
6494
|
+
);
|
|
6484
6495
|
this.attributeQualityConfigs.set(e.key, s);
|
|
6485
6496
|
}
|
|
6486
6497
|
getModelDefinition() {
|
|
@@ -8574,7 +8585,9 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8574
8585
|
try {
|
|
8575
8586
|
this.dependencyGraph.order();
|
|
8576
8587
|
} catch (s) {
|
|
8577
|
-
this.log.warn(
|
|
8588
|
+
this.log.warn(
|
|
8589
|
+
"Your models have circular dependencies which might lead to errors. Please consider changing your models"
|
|
8590
|
+
), this.log.error("Dependency graph error", s);
|
|
8578
8591
|
}
|
|
8579
8592
|
const t = this.dependencyGraph.order({ allowCycles: true });
|
|
8580
8593
|
e.sort((s, r) => t.indexOf(s.model) - t.indexOf(r.model)), await this.handleDataContainer(e);
|
|
@@ -8999,7 +9012,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8999
9012
|
connectMessage: true
|
|
9000
9013
|
})
|
|
9001
9014
|
], E$1.prototype, "update");
|
|
9002
|
-
var N$1 = Object.defineProperty, Z$2 = Object.getOwnPropertyDescriptor, H = (u, e, t, r) => {
|
|
9015
|
+
var N$1 = Object.defineProperty, Z$2 = Object.getOwnPropertyDescriptor, H$1 = (u, e, t, r) => {
|
|
9003
9016
|
for (var s = Z$2(e, t), o = u.length - 1, i; o >= 0; o--)
|
|
9004
9017
|
(i = u[o]) && (s = i(e, t, s) || s);
|
|
9005
9018
|
return s && N$1(e, t, s), s;
|
|
@@ -9039,7 +9052,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
9039
9052
|
return r.init(e), this.lists.push(r), r;
|
|
9040
9053
|
}
|
|
9041
9054
|
}
|
|
9042
|
-
H([
|
|
9055
|
+
H$1([
|
|
9043
9056
|
Eu({
|
|
9044
9057
|
scope: "global",
|
|
9045
9058
|
type: "list_created",
|
|
@@ -9264,7 +9277,13 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
9264
9277
|
for (const f of l)
|
|
9265
9278
|
this.removeError(f.key);
|
|
9266
9279
|
this.setError(
|
|
9267
|
-
this.buildColumnCoercionError(
|
|
9280
|
+
this.buildColumnCoercionError(
|
|
9281
|
+
s,
|
|
9282
|
+
a,
|
|
9283
|
+
String(d?.rawValue ?? ""),
|
|
9284
|
+
h,
|
|
9285
|
+
l.length
|
|
9286
|
+
)
|
|
9268
9287
|
);
|
|
9269
9288
|
}
|
|
9270
9289
|
}
|
|
@@ -11801,16 +11820,16 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11801
11820
|
};
|
|
11802
11821
|
}
|
|
11803
11822
|
}
|
|
11804
|
-
var ze = typeof global == "object" && global && global.Object === Object && global, Ct = typeof self == "object" && self && self.Object === Object && self, A = ze || Ct || Function("return this")(), E = A.Symbol, qe = Object.prototype, Pt = qe.hasOwnProperty, jt = qe.toString,
|
|
11823
|
+
var ze = typeof global == "object" && global && global.Object === Object && global, Ct = typeof self == "object" && self && self.Object === Object && self, A = ze || Ct || Function("return this")(), E = A.Symbol, qe = Object.prototype, Pt = qe.hasOwnProperty, jt = qe.toString, H = E ? E.toStringTag : void 0;
|
|
11805
11824
|
function _t(t) {
|
|
11806
|
-
var e = Pt.call(t,
|
|
11825
|
+
var e = Pt.call(t, H), r = t[H];
|
|
11807
11826
|
try {
|
|
11808
|
-
t[
|
|
11827
|
+
t[H] = void 0;
|
|
11809
11828
|
var n = true;
|
|
11810
11829
|
} catch {
|
|
11811
11830
|
}
|
|
11812
11831
|
var a = jt.call(t);
|
|
11813
|
-
return n && (e ? t[
|
|
11832
|
+
return n && (e ? t[H] = r : delete t[H]), a;
|
|
11814
11833
|
}
|
|
11815
11834
|
var At = Object.prototype, St = At.toString;
|
|
11816
11835
|
function Ot(t) {
|
|
@@ -11878,13 +11897,13 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11878
11897
|
}
|
|
11879
11898
|
return "";
|
|
11880
11899
|
}
|
|
11881
|
-
var Ut = /[\\^$.*+?()[\]{}|]/g,
|
|
11900
|
+
var Ut = /[\\^$.*+?()[\]{}|]/g, Lt = /^\[object .+?Constructor\]$/, Ht = Function.prototype, Nt = Object.prototype, Kt = Ht.toString, Gt = Nt.hasOwnProperty, Bt = RegExp(
|
|
11882
11901
|
"^" + Kt.call(Gt).replace(Ut, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
11883
11902
|
);
|
|
11884
11903
|
function zt(t) {
|
|
11885
11904
|
if (!X(t) || Rt(t))
|
|
11886
11905
|
return false;
|
|
11887
|
-
var e = Xe(t) ? Bt :
|
|
11906
|
+
var e = Xe(t) ? Bt : Lt;
|
|
11888
11907
|
return e.test(F(t));
|
|
11889
11908
|
}
|
|
11890
11909
|
function qt(t, e) {
|
|
@@ -12043,9 +12062,9 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12043
12062
|
function _r() {
|
|
12044
12063
|
return false;
|
|
12045
12064
|
}
|
|
12046
|
-
var nt = typeof exports == "object" && exports && !exports.nodeType && exports, je = nt && typeof module == "object" && module && !module.nodeType && module, Ar = je && je.exports === nt, _e = Ar ? A.Buffer : void 0, Sr = _e ? _e.isBuffer : void 0, st = Sr || _r, Or = "[object Arguments]", $r = "[object Array]", Er = "[object Boolean]", Ir = "[object Date]", xr = "[object Error]", kr = "[object Function]", Fr = "[object Map]", Vr = "[object Number]", Rr = "[object Object]", Mr = "[object RegExp]", Dr = "[object Set]", Ur = "[object String]",
|
|
12065
|
+
var nt = typeof exports == "object" && exports && !exports.nodeType && exports, je = nt && typeof module == "object" && module && !module.nodeType && module, Ar = je && je.exports === nt, _e = Ar ? A.Buffer : void 0, Sr = _e ? _e.isBuffer : void 0, st = Sr || _r, Or = "[object Arguments]", $r = "[object Array]", Er = "[object Boolean]", Ir = "[object Date]", xr = "[object Error]", kr = "[object Function]", Fr = "[object Map]", Vr = "[object Number]", Rr = "[object Object]", Mr = "[object RegExp]", Dr = "[object Set]", Ur = "[object String]", Lr = "[object WeakMap]", Hr = "[object ArrayBuffer]", Nr = "[object DataView]", Kr = "[object Float32Array]", Gr = "[object Float64Array]", Br = "[object Int8Array]", zr = "[object Int16Array]", qr = "[object Int32Array]", Jr = "[object Uint8Array]", Qr = "[object Uint8ClampedArray]", Wr = "[object Uint16Array]", Xr = "[object Uint32Array]", T = {};
|
|
12047
12066
|
T[Kr] = T[Gr] = T[Br] = T[zr] = T[qr] = T[Jr] = T[Qr] = T[Wr] = T[Xr] = true;
|
|
12048
|
-
T[Or] = T[$r] = T[
|
|
12067
|
+
T[Or] = T[$r] = T[Hr] = T[Er] = T[Nr] = T[Ir] = T[xr] = T[kr] = T[Fr] = T[Vr] = T[Rr] = T[Mr] = T[Dr] = T[Ur] = T[Lr] = false;
|
|
12049
12068
|
function Yr(t) {
|
|
12050
12069
|
return k(t) && Ze(t.length) && !!T[M(t)];
|
|
12051
12070
|
}
|
|
@@ -12237,17 +12256,17 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12237
12256
|
}), r = e.cache;
|
|
12238
12257
|
return e;
|
|
12239
12258
|
}
|
|
12240
|
-
var
|
|
12259
|
+
var Ln = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Hn = /\\(\\)?/g, Nn = Un(function(t) {
|
|
12241
12260
|
var e = [];
|
|
12242
|
-
return t.charCodeAt(0) === 46 && e.push(""), t.replace(
|
|
12243
|
-
e.push(a ? s.replace(
|
|
12261
|
+
return t.charCodeAt(0) === 46 && e.push(""), t.replace(Ln, function(r, n, a, s) {
|
|
12262
|
+
e.push(a ? s.replace(Hn, "$1") : n || r);
|
|
12244
12263
|
}), e;
|
|
12245
12264
|
});
|
|
12246
12265
|
function Kn(t) {
|
|
12247
12266
|
return t == null ? "" : Qe(t);
|
|
12248
12267
|
}
|
|
12249
12268
|
function Gn(t, e) {
|
|
12250
|
-
return D(t) ? t : dn(t, e) ? [t] :
|
|
12269
|
+
return D(t) ? t : dn(t, e) ? [t] : Nn(Kn(t));
|
|
12251
12270
|
}
|
|
12252
12271
|
function Bn(t) {
|
|
12253
12272
|
if (typeof t == "string" || le(t))
|
|
@@ -12376,7 +12395,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12376
12395
|
var r = pe(t.buffer);
|
|
12377
12396
|
return new t.constructor(r, t.byteOffset, t.length);
|
|
12378
12397
|
}
|
|
12379
|
-
var _s = "[object Boolean]", As = "[object Date]", Ss = "[object Map]", Os = "[object Number]", $s = "[object RegExp]", Es = "[object Set]", Is = "[object String]", xs = "[object Symbol]", ks = "[object ArrayBuffer]", Fs = "[object DataView]", Vs = "[object Float32Array]", Rs = "[object Float64Array]", Ms = "[object Int8Array]", Ds = "[object Int16Array]", Us = "[object Int32Array]",
|
|
12398
|
+
var _s = "[object Boolean]", As = "[object Date]", Ss = "[object Map]", Os = "[object Number]", $s = "[object RegExp]", Es = "[object Set]", Is = "[object String]", xs = "[object Symbol]", ks = "[object ArrayBuffer]", Fs = "[object DataView]", Vs = "[object Float32Array]", Rs = "[object Float64Array]", Ms = "[object Int8Array]", Ds = "[object Int16Array]", Us = "[object Int32Array]", Ls = "[object Uint8Array]", Hs = "[object Uint8ClampedArray]", Ns = "[object Uint16Array]", Ks = "[object Uint32Array]";
|
|
12380
12399
|
function Gs(t, e, r) {
|
|
12381
12400
|
var n = t.constructor;
|
|
12382
12401
|
switch (e) {
|
|
@@ -12392,9 +12411,9 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12392
12411
|
case Ms:
|
|
12393
12412
|
case Ds:
|
|
12394
12413
|
case Us:
|
|
12414
|
+
case Ls:
|
|
12395
12415
|
case Hs:
|
|
12396
12416
|
case Ns:
|
|
12397
|
-
case Ls:
|
|
12398
12417
|
case Ks:
|
|
12399
12418
|
return js(t);
|
|
12400
12419
|
case Ss:
|
|
@@ -12460,7 +12479,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12460
12479
|
}), o;
|
|
12461
12480
|
}
|
|
12462
12481
|
var Co = 1, Po = 4;
|
|
12463
|
-
function
|
|
12482
|
+
function N(t) {
|
|
12464
12483
|
return J(t, Co | Po);
|
|
12465
12484
|
}
|
|
12466
12485
|
var jo = "__lodash_hash_undefined__";
|
|
@@ -12477,7 +12496,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12477
12496
|
}
|
|
12478
12497
|
W.prototype.add = W.prototype.push = _o;
|
|
12479
12498
|
W.prototype.has = Ao;
|
|
12480
|
-
function
|
|
12499
|
+
function Le(t, e) {
|
|
12481
12500
|
return t.has(e);
|
|
12482
12501
|
}
|
|
12483
12502
|
function So(t) {
|
|
@@ -12494,10 +12513,10 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12494
12513
|
e:
|
|
12495
12514
|
for (; ++y2 < a && u.length < i; ) {
|
|
12496
12515
|
var d = g2[y2], f = d;
|
|
12497
|
-
if (d = d !== 0 ? d : 0, !(m ?
|
|
12516
|
+
if (d = d !== 0 ? d : 0, !(m ? Le(m, f) : n(u, f))) {
|
|
12498
12517
|
for (o = s; --o; ) {
|
|
12499
12518
|
var l = c[o];
|
|
12500
|
-
if (!(l ?
|
|
12519
|
+
if (!(l ? Le(l, f) : n(t[o], f)))
|
|
12501
12520
|
continue e;
|
|
12502
12521
|
}
|
|
12503
12522
|
m && m.push(f), u.push(d);
|
|
@@ -12508,11 +12527,11 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12508
12527
|
function Eo(t) {
|
|
12509
12528
|
return So(t) ? t : [];
|
|
12510
12529
|
}
|
|
12511
|
-
var
|
|
12530
|
+
var He = mr(function(t) {
|
|
12512
12531
|
var e = Je(t, Eo);
|
|
12513
12532
|
return e.length && e[0] === t[0] ? $o(e) : [];
|
|
12514
12533
|
});
|
|
12515
|
-
class
|
|
12534
|
+
class Ne {
|
|
12516
12535
|
context = "";
|
|
12517
12536
|
total = 0;
|
|
12518
12537
|
totalItems = [];
|
|
@@ -12537,7 +12556,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12537
12556
|
return this.total = e.length, this.totalItems = [...e], this.remaining = e.length, this.remainingItems = new Set(e), this.skippedItems = r?.skipped ?? [], this.run = r?.run, this.getProgress();
|
|
12538
12557
|
}
|
|
12539
12558
|
update(e, r, n, a) {
|
|
12540
|
-
const s =
|
|
12559
|
+
const s = N(e);
|
|
12541
12560
|
return s.success = r, a && (s.status = a), r ? this.downloadedItems.add(s) : this.failedItems.add(s), this.currentItem = s, this.context = n, this.processed++, this.remaining--, this.progress = Math.round(this.processed * 100 / this.total), this.currentItem = s, this.processedItems.add(s), this.remainingItems.delete(e), this.getProgress();
|
|
12542
12561
|
}
|
|
12543
12562
|
getProgress() {
|
|
@@ -12627,7 +12646,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12627
12646
|
progressListeners = /* @__PURE__ */ new Set();
|
|
12628
12647
|
currentProcessOptions;
|
|
12629
12648
|
currentContext = "";
|
|
12630
|
-
progressHandler = new
|
|
12649
|
+
progressHandler = new Ne();
|
|
12631
12650
|
constructor() {
|
|
12632
12651
|
this.initDefaultVariables();
|
|
12633
12652
|
}
|
|
@@ -12751,7 +12770,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12751
12770
|
}
|
|
12752
12771
|
};
|
|
12753
12772
|
transformers = {
|
|
12754
|
-
get: (e) => this.registeredTransformers.filter((r) =>
|
|
12773
|
+
get: (e) => this.registeredTransformers.filter((r) => He(r.applyTo, e.appyTo).length > 0),
|
|
12755
12774
|
getAll: () => this.registeredTransformers,
|
|
12756
12775
|
set: (e) => {
|
|
12757
12776
|
this.transformers.remove(e.key), this.registeredTransformers.push(e);
|
|
@@ -12762,9 +12781,9 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12762
12781
|
}
|
|
12763
12782
|
};
|
|
12764
12783
|
config = {
|
|
12765
|
-
get: () =>
|
|
12784
|
+
get: () => N(this.currentConfig),
|
|
12766
12785
|
set: (e) => {
|
|
12767
|
-
this.currentConfig =
|
|
12786
|
+
this.currentConfig = N(e);
|
|
12768
12787
|
},
|
|
12769
12788
|
fetch: async (e) => this.fetchConfig(e)
|
|
12770
12789
|
};
|
|
@@ -12874,7 +12893,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12874
12893
|
resolveRunContext(e) {
|
|
12875
12894
|
if (!this.currentConfig)
|
|
12876
12895
|
throw new Error("There is no config present. Make sure to call loader.setConfig(..) or loader.fetchConfig(...)");
|
|
12877
|
-
const r =
|
|
12896
|
+
const r = N(e), n = N(this.currentConfig);
|
|
12878
12897
|
if (r?.applicationKey) {
|
|
12879
12898
|
const o = this.getAppPreset(n, r);
|
|
12880
12899
|
if (!o)
|
|
@@ -12956,8 +12975,20 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12956
12975
|
}
|
|
12957
12976
|
return a.map((s) => (s.value = ut$1(s.value, { ...r }), s));
|
|
12958
12977
|
}
|
|
12978
|
+
/**
|
|
12979
|
+
* A dcupl CDN host is any `*.dcupl.com` host with a `cdn` label:
|
|
12980
|
+
* `cdn.dcupl.com`, `cdn1.dcupl.com`, `dev-cdn.dcupl.com`, `cdn.dev.dcupl.com`.
|
|
12981
|
+
* Decided on the host name, not a substring, so `cdn.dcupl.com.example`
|
|
12982
|
+
* never gets an api key.
|
|
12983
|
+
*/
|
|
12959
12984
|
isDcuplCdn(e) {
|
|
12960
|
-
|
|
12985
|
+
let r;
|
|
12986
|
+
try {
|
|
12987
|
+
r = new URL(/^[a-z][a-z0-9+.-]*:\/\//i.test(e) ? e : `https://${e}`).hostname.toLowerCase();
|
|
12988
|
+
} catch {
|
|
12989
|
+
return false;
|
|
12990
|
+
}
|
|
12991
|
+
return r.endsWith(".dcupl.com") && r.split(".").some((n) => /^(dev-)?cdn\d*$/.test(n));
|
|
12961
12992
|
}
|
|
12962
12993
|
isValidCondition(e, r) {
|
|
12963
12994
|
return e.condition?.applyIfVariableHasValue ? typeof r[e.condition?.applyIfVariableHasValue] < "u" && r[e.condition?.applyIfVariableHasValue] !== "" : true;
|
|
@@ -13206,7 +13237,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
13206
13237
|
"rawFileTransformer",
|
|
13207
13238
|
o || []
|
|
13208
13239
|
), I2 = b.now();
|
|
13209
|
-
let
|
|
13240
|
+
let L2 = [], z2 = this.core.modelParser.unprocessedModelDescriptions.get(i.model);
|
|
13210
13241
|
if (!z2 && (n?.missingModelHandling?.autoGenerateProperties || i.options?.autoGenerateProperties)) {
|
|
13211
13242
|
const w2 = i.options?.autoGenerateProperties ?? n?.missingModelHandling?.autoGenerateProperties ?? true;
|
|
13212
13243
|
this.addModelOrView(i, {
|
|
@@ -13226,24 +13257,24 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
13226
13257
|
if (i.url.endsWith(".csv") || b$12?.includes("text/csv")) {
|
|
13227
13258
|
if (z2) {
|
|
13228
13259
|
const w2 = this.csvParser.getJsonFromCSVStringWithMetadata(_2, z2, i);
|
|
13229
|
-
|
|
13260
|
+
L2 = w2.data, fe2 = {
|
|
13230
13261
|
sourceColumns: w2.sourceColumns,
|
|
13231
13262
|
coercionFailureSamples: w2.coercionFailureSamples,
|
|
13232
13263
|
origin: i.url
|
|
13233
13264
|
};
|
|
13234
13265
|
}
|
|
13235
13266
|
} else
|
|
13236
|
-
|
|
13267
|
+
L2 = _2;
|
|
13237
13268
|
const ft2 = b.now(), ht2 = b.now();
|
|
13238
13269
|
try {
|
|
13239
|
-
|
|
13270
|
+
L2 = this.handleTransformerLogic(L2, i, "parsedFileTransformer", o || []);
|
|
13240
13271
|
} catch (w2) {
|
|
13241
13272
|
this.log.error("Transformer error", w2, { resource: i.url, model: i.model });
|
|
13242
13273
|
}
|
|
13243
13274
|
const gt2 = b.now(), he2 = {
|
|
13244
13275
|
placeholderUid: u,
|
|
13245
13276
|
model: i.model,
|
|
13246
|
-
data:
|
|
13277
|
+
data: L2,
|
|
13247
13278
|
type: i.options?.updateType || n.defaultDataContainerUpdateType,
|
|
13248
13279
|
keyProperty: i?.options?.keyProperty,
|
|
13249
13280
|
keyPropertySeparator: i?.options?.keyPropertySeparator,
|
|
@@ -13302,7 +13333,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
13302
13333
|
}
|
|
13303
13334
|
async fetchResources(e, r, n, a, s) {
|
|
13304
13335
|
const o = e.scheduled;
|
|
13305
|
-
this.progressHandler = new
|
|
13336
|
+
this.progressHandler = new Ne(), this.progressHandler.init(o, { skipped: e.skipped, run: e.run }), this.updateProgressListeners(this.progressHandler.getProgress());
|
|
13306
13337
|
try {
|
|
13307
13338
|
if (!this.core)
|
|
13308
13339
|
throw this.log.error("dcupl not connected. Did you add your loader to dcupl? -> dcupl.addRunner(loader)"), new Error();
|
|
@@ -13358,7 +13389,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
13358
13389
|
}
|
|
13359
13390
|
handleTransformerLogic(e, r, n, a) {
|
|
13360
13391
|
for (const s of a)
|
|
13361
|
-
s.type === n && s.transformer && (!s.applyTo.length && !r.tags?.length && (e = s.transformer(r, e)),
|
|
13392
|
+
s.type === n && s.transformer && (!s.applyTo.length && !r.tags?.length && (e = s.transformer(r, e)), He(s.applyTo, r.tags || []).length && (e = s.transformer(r, e)));
|
|
13362
13393
|
return e;
|
|
13363
13394
|
}
|
|
13364
13395
|
updateProgressListeners(e) {
|