@dcupl/bundle 2.0.0-beta.6 → 2.0.0-beta.7
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 +131 -131
- package/dist/dcupl.bundle.js.map +1 -1
- package/dist/dcupl.bundle.min.js +6 -6
- package/dist/dcupl.bundle.min.js.map +1 -1
- package/package.json +4 -4
package/dist/dcupl.bundle.js
CHANGED
|
@@ -540,12 +540,12 @@
|
|
|
540
540
|
function N$2(r) {
|
|
541
541
|
return r == null ? r === void 0 ? br$1 : mr$1 : ke$1 && ke$1 in Object(r) ? hr$1(r) : yr$1(r);
|
|
542
542
|
}
|
|
543
|
-
function T$
|
|
543
|
+
function T$3(r) {
|
|
544
544
|
return r != null && typeof r == "object";
|
|
545
545
|
}
|
|
546
546
|
var vr$1 = "[object Symbol]";
|
|
547
547
|
function P$1(r) {
|
|
548
|
-
return typeof r == "symbol" || T$
|
|
548
|
+
return typeof r == "symbol" || T$3(r) && N$2(r) == vr$1;
|
|
549
549
|
}
|
|
550
550
|
function z$2(r, e) {
|
|
551
551
|
for (var t = -1, n = r == null ? 0 : r.length, s = Array(n); ++t < n; )
|
|
@@ -650,11 +650,11 @@
|
|
|
650
650
|
function Ur$1(r, e) {
|
|
651
651
|
return r?.[e];
|
|
652
652
|
}
|
|
653
|
-
function q$
|
|
653
|
+
function q$4(r, e) {
|
|
654
654
|
var t = Ur$1(r, e);
|
|
655
655
|
return Br$1(t) ? t : void 0;
|
|
656
656
|
}
|
|
657
|
-
var we$2 = q$
|
|
657
|
+
var we$2 = q$4(O$1, "WeakMap"), We$3 = Object.create, Hr$1 = /* @__PURE__ */ (function() {
|
|
658
658
|
function r() {
|
|
659
659
|
}
|
|
660
660
|
return function(e) {
|
|
@@ -700,7 +700,7 @@
|
|
|
700
700
|
}
|
|
701
701
|
var oe$2 = (function() {
|
|
702
702
|
try {
|
|
703
|
-
var r = q$
|
|
703
|
+
var r = q$4(Object, "defineProperty");
|
|
704
704
|
return r({}, "", {}), r;
|
|
705
705
|
} catch {
|
|
706
706
|
}
|
|
@@ -793,12 +793,12 @@
|
|
|
793
793
|
}
|
|
794
794
|
var vn$1 = "[object Arguments]";
|
|
795
795
|
function Ze$2(r) {
|
|
796
|
-
return T$
|
|
796
|
+
return T$3(r) && N$2(r) == vn$1;
|
|
797
797
|
}
|
|
798
798
|
var It$1 = Object.prototype, wn$1 = It$1.hasOwnProperty, An$1 = It$1.propertyIsEnumerable, Qe$2 = Ze$2(/* @__PURE__ */ (function() {
|
|
799
799
|
return arguments;
|
|
800
800
|
})()) ? Ze$2 : function(r) {
|
|
801
|
-
return T$
|
|
801
|
+
return T$3(r) && wn$1.call(r, "callee") && !An$1.call(r, "callee");
|
|
802
802
|
};
|
|
803
803
|
function xn$1() {
|
|
804
804
|
return false;
|
|
@@ -807,7 +807,7 @@
|
|
|
807
807
|
y[Fn$1] = y[Ln$1] = y[kn$1] = y[Gn$1] = y[zn$1] = y[Bn$1] = y[Un$1] = y[Hn$1] = y[Wn$1] = true;
|
|
808
808
|
y[On$1] = y[$n$1] = y[Pn$1] = y[_n$1] = y[Rn$1] = y[Cn$1] = y[Mn$1] = y[Dn$1] = y[In$1] = y[En$1] = y[Qn$1] = y[Nn$1] = y[jn$1] = y[qn$1] = y[Kn$1] = false;
|
|
809
809
|
function Jn$1(r) {
|
|
810
|
-
return T$
|
|
810
|
+
return T$3(r) && Ee$2(r.length) && !!y[N$2(r)];
|
|
811
811
|
}
|
|
812
812
|
function V$1(r) {
|
|
813
813
|
return function(e) {
|
|
@@ -855,7 +855,7 @@
|
|
|
855
855
|
var t = typeof r;
|
|
856
856
|
return t == "number" || t == "symbol" || t == "boolean" || r == null || P$1(r) ? true : ss$1.test(r) || !ns$1.test(r) || e != null && r in Object(e);
|
|
857
857
|
}
|
|
858
|
-
var U$3 = q$
|
|
858
|
+
var U$3 = q$4(Object, "create");
|
|
859
859
|
function is$1() {
|
|
860
860
|
this.__data__ = U$3 ? U$3(null) : {}, this.size = 0;
|
|
861
861
|
}
|
|
@@ -934,7 +934,7 @@
|
|
|
934
934
|
$.prototype.get = ws$1;
|
|
935
935
|
$.prototype.has = As$1;
|
|
936
936
|
$.prototype.set = xs$1;
|
|
937
|
-
var H$2 = q$
|
|
937
|
+
var H$2 = q$4(O$1, "Map");
|
|
938
938
|
function Ss$1() {
|
|
939
939
|
this.size = 0, this.__data__ = {
|
|
940
940
|
hash: new Q$3(),
|
|
@@ -1073,15 +1073,15 @@
|
|
|
1073
1073
|
}
|
|
1074
1074
|
return t.set(r, e), this.size = t.size, this;
|
|
1075
1075
|
}
|
|
1076
|
-
function S$
|
|
1076
|
+
function S$1(r) {
|
|
1077
1077
|
var e = this.__data__ = new $(r);
|
|
1078
1078
|
this.size = e.size;
|
|
1079
1079
|
}
|
|
1080
|
-
S$
|
|
1081
|
-
S$
|
|
1082
|
-
S$
|
|
1083
|
-
S$
|
|
1084
|
-
S$
|
|
1080
|
+
S$1.prototype.clear = Hs$1;
|
|
1081
|
+
S$1.prototype.delete = Ws$1;
|
|
1082
|
+
S$1.prototype.get = Js$1;
|
|
1083
|
+
S$1.prototype.has = Zs$1;
|
|
1084
|
+
S$1.prototype.set = Xs$1;
|
|
1085
1085
|
var Ft$1 = typeof exports == "object" && exports && !exports.nodeType && exports, tt$2 = Ft$1 && typeof module == "object" && module && !module.nodeType && module, Ys$1 = tt$2 && tt$2.exports === Ft$1, rt$2 = Ys$1 ? O$1.Buffer : void 0, nt$3 = rt$2 ? rt$2.allocUnsafe : void 0;
|
|
1086
1086
|
function ei(r, e) {
|
|
1087
1087
|
if (e)
|
|
@@ -1111,7 +1111,7 @@
|
|
|
1111
1111
|
function Ae$2(r) {
|
|
1112
1112
|
return oi(r, le$1, ii);
|
|
1113
1113
|
}
|
|
1114
|
-
var xe$2 = q$
|
|
1114
|
+
var xe$2 = q$4(O$1, "DataView"), Se$2 = q$4(O$1, "Promise"), Te$2 = q$4(O$1, "Set"), it$1 = "[object Map]", ai = "[object Object]", ot$1 = "[object Promise]", at$1 = "[object Set]", ut = "[object WeakMap]", ct$1 = "[object DataView]", ui = j$2(xe$2), ci = j$2(H$2), fi = j$2(Se$2), li = j$2(Te$2), di = j$2(we$2), w = N$2;
|
|
1115
1115
|
(xe$2 && w(new xe$2(new ArrayBuffer(1))) != ct$1 || H$2 && w(new H$2()) != it$1 || Se$2 && w(Se$2.resolve()) != ot$1 || Te$2 && w(new Te$2()) != at$1 || we$2 && w(new we$2()) != ut) && (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)
|
|
@@ -1195,11 +1195,11 @@
|
|
|
1195
1195
|
}
|
|
1196
1196
|
var ki = "[object Map]";
|
|
1197
1197
|
function Gi(r) {
|
|
1198
|
-
return T$
|
|
1198
|
+
return T$3(r) && w(r) == ki;
|
|
1199
1199
|
}
|
|
1200
1200
|
var dt$2 = R && R.isMap, zi = dt$2 ? V$1(dt$2) : Gi, Bi = "[object Set]";
|
|
1201
1201
|
function Ui(r) {
|
|
1202
|
-
return T$
|
|
1202
|
+
return T$3(r) && w(r) == Bi;
|
|
1203
1203
|
}
|
|
1204
1204
|
var ht$1 = R && R.isSet, Hi = ht$1 ? V$1(ht$1) : Ui, Wi = 1, Lt$1 = "[object Arguments]", Ji = "[object Array]", Zi = "[object Boolean]", Vi = "[object Date]", Xi = "[object Error]", kt$1 = "[object Function]", Yi = "[object GeneratorFunction]", eo$1 = "[object Map]", to$1 = "[object Number]", Gt$1 = "[object Object]", ro$1 = "[object RegExp]", no$1 = "[object Set]", so$1 = "[object String]", io$1 = "[object Symbol]", oo$1 = "[object WeakMap]", ao$1 = "[object ArrayBuffer]", uo = "[object DataView]", co$1 = "[object Float32Array]", fo = "[object Float64Array]", lo$1 = "[object Int8Array]", ho$1 = "[object Int16Array]", po = "[object Int32Array]", go = "[object Uint8Array]", yo = "[object Uint8ClampedArray]", mo = "[object Uint16Array]", bo = "[object Uint32Array]", g = {};
|
|
1205
1205
|
g[Lt$1] = g[Ji] = g[ao$1] = g[uo] = g[Zi] = g[Vi] = g[co$1] = g[fo] = g[lo$1] = g[ho$1] = g[po] = g[eo$1] = g[to$1] = g[Gt$1] = g[ro$1] = g[no$1] = g[so$1] = g[io$1] = g[go] = g[yo] = g[mo] = g[bo] = true;
|
|
@@ -1225,7 +1225,7 @@
|
|
|
1225
1225
|
o = Fi(r, c, a);
|
|
1226
1226
|
}
|
|
1227
1227
|
}
|
|
1228
|
-
i || (i = new S$
|
|
1228
|
+
i || (i = new S$1());
|
|
1229
1229
|
var l = i.get(r);
|
|
1230
1230
|
if (l)
|
|
1231
1231
|
return l;
|
|
@@ -1391,18 +1391,18 @@
|
|
|
1391
1391
|
o = true, f = false;
|
|
1392
1392
|
}
|
|
1393
1393
|
if (d && !f)
|
|
1394
|
-
return i || (i = new S$
|
|
1394
|
+
return i || (i = new S$1()), o || Nt$1(r) ? Bt$1(r, e, t, n, s, i) : ko(r, e, u, t, n, s, i);
|
|
1395
1395
|
if (!(t & Ho)) {
|
|
1396
1396
|
var h2 = f && mt$1.call(r, "__wrapped__"), p2 = l && mt$1.call(e, "__wrapped__");
|
|
1397
1397
|
if (h2 || p2) {
|
|
1398
1398
|
var m = h2 ? r.value() : r, C2 = p2 ? e.value() : e;
|
|
1399
|
-
return i || (i = new S$
|
|
1399
|
+
return i || (i = new S$1()), s(m, C2, t, n, i);
|
|
1400
1400
|
}
|
|
1401
1401
|
}
|
|
1402
|
-
return d ? (i || (i = new S$
|
|
1402
|
+
return d ? (i || (i = new S$1()), Uo(r, e, t, n, s, i)) : false;
|
|
1403
1403
|
}
|
|
1404
1404
|
function X$3(r, e, t, n, s) {
|
|
1405
|
-
return r === e ? true : r == null || e == null || !T$
|
|
1405
|
+
return r === e ? true : r == null || e == null || !T$3(r) && !T$3(e) ? r !== r && e !== e : Jo(r, e, t, n, X$3, s);
|
|
1406
1406
|
}
|
|
1407
1407
|
var Zo = 1, Vo = 2;
|
|
1408
1408
|
function Ut$1(r, e, t, n) {
|
|
@@ -1421,7 +1421,7 @@
|
|
|
1421
1421
|
if (u === void 0 && !(a in r))
|
|
1422
1422
|
return false;
|
|
1423
1423
|
} else {
|
|
1424
|
-
var f = new S$
|
|
1424
|
+
var f = new S$1(), l;
|
|
1425
1425
|
if (!(l === void 0 ? X$3(c, u, Zo | Vo, n, f) : l))
|
|
1426
1426
|
return false;
|
|
1427
1427
|
}
|
|
@@ -1515,7 +1515,7 @@
|
|
|
1515
1515
|
}
|
|
1516
1516
|
var Vt$1 = fa(ca);
|
|
1517
1517
|
function be$2(r) {
|
|
1518
|
-
return T$
|
|
1518
|
+
return T$3(r) && F$2(r);
|
|
1519
1519
|
}
|
|
1520
1520
|
var la = 200;
|
|
1521
1521
|
function da(r, e, t, n) {
|
|
@@ -1596,7 +1596,7 @@
|
|
|
1596
1596
|
}
|
|
1597
1597
|
var Aa = "[object String]";
|
|
1598
1598
|
function xa(r) {
|
|
1599
|
-
return typeof r == "string" || !v$1(r) && T$
|
|
1599
|
+
return typeof r == "string" || !v$1(r) && T$3(r) && N$2(r) == Aa;
|
|
1600
1600
|
}
|
|
1601
1601
|
function vt$1(r, e) {
|
|
1602
1602
|
return X$3(r, e);
|
|
@@ -1679,7 +1679,7 @@
|
|
|
1679
1679
|
function Ba(r, e, t) {
|
|
1680
1680
|
return r = qe$2(r), t = t == null ? 0 : Rt$1(De$2(t), 0, r.length), e = ce$1(e), r.slice(t, t + e.length) == e;
|
|
1681
1681
|
}
|
|
1682
|
-
function Re$
|
|
1682
|
+
function Re$1(r) {
|
|
1683
1683
|
const e = Ce$2(r);
|
|
1684
1684
|
return Ua(e);
|
|
1685
1685
|
}
|
|
@@ -1794,7 +1794,7 @@
|
|
|
1794
1794
|
getKey(e, t) {
|
|
1795
1795
|
if (!t)
|
|
1796
1796
|
return e;
|
|
1797
|
-
const n = Re$
|
|
1797
|
+
const n = Re$1(t);
|
|
1798
1798
|
return e + "_" + n;
|
|
1799
1799
|
}
|
|
1800
1800
|
}
|
|
@@ -2601,7 +2601,7 @@
|
|
|
2601
2601
|
}
|
|
2602
2602
|
}
|
|
2603
2603
|
getCacheName(e, t) {
|
|
2604
|
-
const n = Re$
|
|
2604
|
+
const n = Re$1(t);
|
|
2605
2605
|
return e + "_" + n;
|
|
2606
2606
|
}
|
|
2607
2607
|
/**
|
|
@@ -3087,13 +3087,13 @@
|
|
|
3087
3087
|
}
|
|
3088
3088
|
}
|
|
3089
3089
|
const x$2 = new su();
|
|
3090
|
-
function L$
|
|
3090
|
+
function L$3(r, e) {
|
|
3091
3091
|
if (e.includes("[*]")) {
|
|
3092
3092
|
const i = e.indexOf("[*]"), o = e.substring(0, i), a = e.substring(i + 3), u = o ? W$3(r, o) : r;
|
|
3093
3093
|
if (!Array.isArray(u)) return [];
|
|
3094
3094
|
const c = [];
|
|
3095
3095
|
for (const f of u)
|
|
3096
|
-
!a || a === "" ? f !== void 0 && c.push(f) : a.startsWith(".") && c.push(...L$
|
|
3096
|
+
!a || a === "" ? f !== void 0 && c.push(f) : a.startsWith(".") && c.push(...L$3(f, a.slice(1)));
|
|
3097
3097
|
return c;
|
|
3098
3098
|
}
|
|
3099
3099
|
const t = e.split(".");
|
|
@@ -3154,7 +3154,7 @@
|
|
|
3154
3154
|
for (const s of e.values())
|
|
3155
3155
|
if (s)
|
|
3156
3156
|
if (t)
|
|
3157
|
-
n += L$
|
|
3157
|
+
n += L$3(s, r).filter((i) => i != null).length;
|
|
3158
3158
|
else {
|
|
3159
3159
|
const i = s[r];
|
|
3160
3160
|
if (i == null) continue;
|
|
@@ -3168,7 +3168,7 @@
|
|
|
3168
3168
|
if (!i) continue;
|
|
3169
3169
|
let o;
|
|
3170
3170
|
if (s)
|
|
3171
|
-
o = L$
|
|
3171
|
+
o = L$3(i, r);
|
|
3172
3172
|
else {
|
|
3173
3173
|
const a = i[r];
|
|
3174
3174
|
a === void 0 ? o = [] : Array.isArray(a) ? o = a.filter((u) => u !== void 0) : o = [a];
|
|
@@ -3194,7 +3194,7 @@
|
|
|
3194
3194
|
}, s = x$2.parse(r.attribute).isDeepQuery;
|
|
3195
3195
|
for (const i of e.values()) {
|
|
3196
3196
|
let o;
|
|
3197
|
-
s ? o = L$
|
|
3197
|
+
s ? o = L$3(i, r.attribute) : o = [i[r.attribute]];
|
|
3198
3198
|
let a = false;
|
|
3199
3199
|
for (const u of o)
|
|
3200
3200
|
for (const c of t)
|
|
@@ -3209,7 +3209,7 @@
|
|
|
3209
3209
|
if (!i) continue;
|
|
3210
3210
|
let o;
|
|
3211
3211
|
if (s)
|
|
3212
|
-
o = L$
|
|
3212
|
+
o = L$3(i, r);
|
|
3213
3213
|
else {
|
|
3214
3214
|
const a = i[r];
|
|
3215
3215
|
a === void 0 ? o = [] : Array.isArray(a) ? o = a : o = [a];
|
|
@@ -3238,7 +3238,7 @@
|
|
|
3238
3238
|
}
|
|
3239
3239
|
return n;
|
|
3240
3240
|
};
|
|
3241
|
-
let G$
|
|
3241
|
+
let G$2 = class G extends Error {
|
|
3242
3242
|
query;
|
|
3243
3243
|
constructor(e, t) {
|
|
3244
3244
|
const n = `Query Error: ${e} in ${JSON.stringify(t, null, 2)}`;
|
|
@@ -3422,12 +3422,12 @@
|
|
|
3422
3422
|
validateQuery(e) {
|
|
3423
3423
|
const t = [];
|
|
3424
3424
|
if (this.isQuery(e))
|
|
3425
|
-
return e.attribute || t.push(new G$
|
|
3425
|
+
return e.attribute || t.push(new G$2("Missing attribute", e)), e.operator || t.push(new G$2("Missing operator", e)), typeof e.value > "u" && t.push(new G$2("Missing value", e)), e.operator === "find" && Array.isArray(e.value) && t.push(new G$2("find operator cannot have array value", e)), t.length > 0 ? { valid: false, errors: t } : { valid: true };
|
|
3426
3426
|
if (this.isQueryGroup(e)) {
|
|
3427
3427
|
const n = e.queries.map((s) => this.validateQuery(s)).filter((s) => !s.valid).map((s) => s.errors).flat();
|
|
3428
3428
|
return n.length > 0 ? { valid: false, errors: n } : { valid: true };
|
|
3429
3429
|
}
|
|
3430
|
-
return t.push(new G$
|
|
3430
|
+
return t.push(new G$2("Invalid query definition", e)), { valid: false, errors: t };
|
|
3431
3431
|
}
|
|
3432
3432
|
/**
|
|
3433
3433
|
* Get all attribute names used in the query.
|
|
@@ -4080,14 +4080,14 @@
|
|
|
4080
4080
|
const a = x$2.parse(e).isDeepQuery;
|
|
4081
4081
|
for (const u of t.values()) {
|
|
4082
4082
|
let c;
|
|
4083
|
-
a ? (c = L$
|
|
4083
|
+
a ? (c = L$3(u, e), c.length === 0 && (c = [void 0])) : c = [u[e]], this.fillInverseIndex(s, u.key, c), this.fillDataMap(s, c);
|
|
4084
4084
|
}
|
|
4085
4085
|
i = this.getIndex(s) || /* @__PURE__ */ new Map();
|
|
4086
4086
|
}
|
|
4087
4087
|
return i;
|
|
4088
4088
|
}
|
|
4089
4089
|
getIndexName(e, t) {
|
|
4090
|
-
return t ? e + "_" + Re$
|
|
4090
|
+
return t ? e + "_" + Re$1(t) : e;
|
|
4091
4091
|
}
|
|
4092
4092
|
// ========== PARTIAL UPDATE METHODS ==========
|
|
4093
4093
|
/**
|
|
@@ -4694,7 +4694,7 @@
|
|
|
4694
4694
|
const e = /* @__PURE__ */ new Set();
|
|
4695
4695
|
return r.replace(/\$\{(.*?)\}/g, (t, n) => (e.add(n.trim()), "")), { variables: Array.from(e).map((t) => ({ name: t })) };
|
|
4696
4696
|
};
|
|
4697
|
-
var T$
|
|
4697
|
+
var T$2 = gn$1(function(A2, e) {
|
|
4698
4698
|
return be$2(A2) ? da(A2, qs$1(e, 1, be$2)) : [];
|
|
4699
4699
|
});
|
|
4700
4700
|
let U$2 = class U {
|
|
@@ -5097,7 +5097,7 @@
|
|
|
5097
5097
|
}
|
|
5098
5098
|
d.forEach((h2) => {
|
|
5099
5099
|
let y2;
|
|
5100
|
-
g2 ? (y2 = L$
|
|
5100
|
+
g2 ? (y2 = L$3(h2, e), y2.length === 0 && (y2 = [void 0])) : y2 = [h2[e]], this.indicesController.fillInverseIndex(e, h2.key, y2), this.indicesController.fillDataMap(e, y2);
|
|
5101
5101
|
}), n = this.indicesController.getIndex(e), o = this.indicesController.getData(e);
|
|
5102
5102
|
}
|
|
5103
5103
|
const f = ju(
|
|
@@ -5200,7 +5200,7 @@
|
|
|
5200
5200
|
return this.filterItems.has(e) && (t?.skipProcessing || this.updateFilterItem(e, t)), this.filterItems.get(e);
|
|
5201
5201
|
}
|
|
5202
5202
|
};
|
|
5203
|
-
let L$
|
|
5203
|
+
let L$2 = class L {
|
|
5204
5204
|
constructor(e, t) {
|
|
5205
5205
|
this.modelParser = e, this.scriptController = t;
|
|
5206
5206
|
}
|
|
@@ -5297,7 +5297,7 @@
|
|
|
5297
5297
|
}
|
|
5298
5298
|
isValidSortProjection(e) {
|
|
5299
5299
|
const t = ["ASC", "DESC"];
|
|
5300
|
-
return !(!e || !Array.isArray(e.attributes) || e.attributes.length === 0 || !Array.isArray(e.order) || e.attributes.length !== e.order.length || T$
|
|
5300
|
+
return !(!e || !Array.isArray(e.attributes) || e.attributes.length === 0 || !Array.isArray(e.order) || e.attributes.length !== e.order.length || T$2(e.order, t).length > 0);
|
|
5301
5301
|
}
|
|
5302
5302
|
getProjectedData(e, t, r) {
|
|
5303
5303
|
let i = { key: r.key };
|
|
@@ -5344,7 +5344,7 @@
|
|
|
5344
5344
|
};
|
|
5345
5345
|
let p$3 = class p {
|
|
5346
5346
|
constructor(e, t, r) {
|
|
5347
|
-
this.dcuplApi = e, this.cdRef = t, this.indicesController = r, this.itemService = new L$
|
|
5347
|
+
this.dcuplApi = e, this.cdRef = t, this.indicesController = r, this.itemService = new L$2(
|
|
5348
5348
|
this.dcuplApi.modelParser,
|
|
5349
5349
|
this.dcuplApi.scriptController
|
|
5350
5350
|
), this.filter = new U$2(
|
|
@@ -6020,7 +6020,7 @@
|
|
|
6020
6020
|
connectMessageResult: true
|
|
6021
6021
|
})
|
|
6022
6022
|
], p$3.prototype, "_getPivot");
|
|
6023
|
-
let G$
|
|
6023
|
+
let G$1 = class G extends p$3 {
|
|
6024
6024
|
constructor(e, t, r) {
|
|
6025
6025
|
super(e, t, r), this.dcuplApi = e, this.cdRef = t, this.indicesController = r;
|
|
6026
6026
|
}
|
|
@@ -6032,13 +6032,13 @@
|
|
|
6032
6032
|
this.model = e, this.filter.update(e, t, r);
|
|
6033
6033
|
}
|
|
6034
6034
|
};
|
|
6035
|
-
function
|
|
6035
|
+
function be$1(l, e) {
|
|
6036
6036
|
var t = -1, s = l.length;
|
|
6037
6037
|
for (e || (e = Array(s)); ++t < s; )
|
|
6038
6038
|
e[t] = l[t];
|
|
6039
6039
|
return e;
|
|
6040
6040
|
}
|
|
6041
|
-
function
|
|
6041
|
+
function Pe$1(l, e, t, s) {
|
|
6042
6042
|
var r = !t;
|
|
6043
6043
|
t || (t = {});
|
|
6044
6044
|
for (var i = -1, n = e.length; ++i < n; ) {
|
|
@@ -6047,109 +6047,109 @@
|
|
|
6047
6047
|
}
|
|
6048
6048
|
return t;
|
|
6049
6049
|
}
|
|
6050
|
-
function
|
|
6050
|
+
function Ae$1(l, e, t) {
|
|
6051
6051
|
if (!E$3(t))
|
|
6052
6052
|
return false;
|
|
6053
6053
|
var s = typeof e;
|
|
6054
6054
|
return (s == "number" ? F$2(t) && Mt$1(e, t.length) : s == "string" && e in t) ? Ie$2(t[e], l) : false;
|
|
6055
6055
|
}
|
|
6056
|
-
function
|
|
6056
|
+
function De$1(l) {
|
|
6057
6057
|
return gn$1(function(e, t) {
|
|
6058
6058
|
var s = -1, r = t.length, i = r > 1 ? t[r - 1] : void 0, n = r > 2 ? t[2] : void 0;
|
|
6059
|
-
for (i = l.length > 3 && typeof i == "function" ? (r--, i) : void 0, n &&
|
|
6059
|
+
for (i = l.length > 3 && typeof i == "function" ? (r--, i) : void 0, n && Ae$1(t[0], t[1], n) && (i = r < 3 ? void 0 : i, r = 1), e = Object(e); ++s < r; ) {
|
|
6060
6060
|
var o = t[s];
|
|
6061
6061
|
o && l(e, o, s, i);
|
|
6062
6062
|
}
|
|
6063
6063
|
return e;
|
|
6064
6064
|
});
|
|
6065
6065
|
}
|
|
6066
|
-
function
|
|
6066
|
+
function Ce$1(l) {
|
|
6067
6067
|
var e = [];
|
|
6068
6068
|
if (l != null)
|
|
6069
6069
|
for (var t in Object(l))
|
|
6070
6070
|
e.push(t);
|
|
6071
6071
|
return e;
|
|
6072
6072
|
}
|
|
6073
|
-
var
|
|
6074
|
-
function
|
|
6073
|
+
var Ee$1 = Object.prototype, Me$1 = Ee$1.hasOwnProperty;
|
|
6074
|
+
function Se$1(l) {
|
|
6075
6075
|
if (!E$3(l))
|
|
6076
|
-
return
|
|
6076
|
+
return Ce$1(l);
|
|
6077
6077
|
var e = Dt$1(l), t = [];
|
|
6078
6078
|
for (var s in l)
|
|
6079
|
-
s == "constructor" && (e || !
|
|
6079
|
+
s == "constructor" && (e || !Me$1.call(l, s)) || t.push(s);
|
|
6080
6080
|
return t;
|
|
6081
6081
|
}
|
|
6082
6082
|
function U$1(l) {
|
|
6083
|
-
return F$2(l) ? Yn$1(l, true) :
|
|
6083
|
+
return F$2(l) ? Yn$1(l, true) : Se$1(l);
|
|
6084
6084
|
}
|
|
6085
|
-
var
|
|
6086
|
-
function
|
|
6087
|
-
if (!T$
|
|
6085
|
+
var Ie$1 = "[object Object]", Te$1 = Function.prototype, xe$1 = Object.prototype, W$2 = Te$1.toString, Ge$1 = xe$1.hasOwnProperty, Ke$1 = W$2.call(Object);
|
|
6086
|
+
function _e$1(l) {
|
|
6087
|
+
if (!T$3(l) || N$2(l) != Ie$1)
|
|
6088
6088
|
return false;
|
|
6089
6089
|
var e = Ks$1(l);
|
|
6090
6090
|
if (e === null)
|
|
6091
6091
|
return true;
|
|
6092
|
-
var t =
|
|
6093
|
-
return typeof t == "function" && t instanceof t && W$2.call(t) ==
|
|
6092
|
+
var t = Ge$1.call(e, "constructor") && e.constructor;
|
|
6093
|
+
return typeof t == "function" && t instanceof t && W$2.call(t) == Ke$1;
|
|
6094
6094
|
}
|
|
6095
|
-
function
|
|
6095
|
+
function we$1(l, e, t, s) {
|
|
6096
6096
|
for (var r = -1, i = l == null ? 0 : l.length; ++r < i; ) {
|
|
6097
6097
|
var n = l[r];
|
|
6098
6098
|
e(s, n, t(n), l);
|
|
6099
6099
|
}
|
|
6100
6100
|
return s;
|
|
6101
6101
|
}
|
|
6102
|
-
function
|
|
6102
|
+
function Fe$1(l, e, t, s) {
|
|
6103
6103
|
return Vt$1(l, function(r, i, n) {
|
|
6104
6104
|
e(s, r, t(r), n);
|
|
6105
6105
|
}), s;
|
|
6106
6106
|
}
|
|
6107
|
-
function
|
|
6107
|
+
function $e$1(l, e) {
|
|
6108
6108
|
return function(t, s) {
|
|
6109
|
-
var r = v$1(t) ?
|
|
6109
|
+
var r = v$1(t) ? we$1 : Fe$1, i = {};
|
|
6110
6110
|
return r(t, l, Y$3(s), i);
|
|
6111
6111
|
};
|
|
6112
6112
|
}
|
|
6113
|
-
function
|
|
6113
|
+
function T$1(l, e, t) {
|
|
6114
6114
|
(t !== void 0 && !Ie$2(l[e], t) || t === void 0 && !(e in l)) && fn$1(l, e, t);
|
|
6115
6115
|
}
|
|
6116
|
-
function
|
|
6116
|
+
function x$1(l, e) {
|
|
6117
6117
|
if (!(e === "constructor" && typeof l[e] == "function") && e != "__proto__")
|
|
6118
6118
|
return l[e];
|
|
6119
6119
|
}
|
|
6120
|
-
function $
|
|
6121
|
-
return
|
|
6120
|
+
function qe$1(l) {
|
|
6121
|
+
return Pe$1(l, U$1(l));
|
|
6122
6122
|
}
|
|
6123
|
-
function
|
|
6124
|
-
var o =
|
|
6123
|
+
function Oe$1(l, e, t, s, r, i, n) {
|
|
6124
|
+
var o = x$1(l, t), a = x$1(e, t), d = n.get(a);
|
|
6125
6125
|
if (d) {
|
|
6126
|
-
|
|
6126
|
+
T$1(l, t, d);
|
|
6127
6127
|
return;
|
|
6128
6128
|
}
|
|
6129
6129
|
var c = i ? i(o, a, t + "", l, e, n) : void 0, u = c === void 0;
|
|
6130
6130
|
if (u) {
|
|
6131
6131
|
var f = v$1(a), y2 = !f && ae(a), h2 = !f && !y2 && Nt$1(a);
|
|
6132
|
-
c = a, f || y2 || h2 ? v$1(o) ? c = o : be$2(o) ? c =
|
|
6132
|
+
c = a, f || y2 || h2 ? v$1(o) ? c = o : be$2(o) ? c = be$1(o) : y2 ? (u = false, c = ei(a, true)) : h2 ? (u = false, c = wi(a, true)) : c = [] : _e$1(a) || Qe$2(a) ? (c = o, Qe$2(o) ? c = qe$1(o) : (!E$3(o) || _t$1(o)) && (c = Li(a))) : u = false;
|
|
6133
6133
|
}
|
|
6134
|
-
u && (n.set(a, c), r(c, a, s, i, n), n.delete(a)),
|
|
6134
|
+
u && (n.set(a, c), r(c, a, s, i, n), n.delete(a)), T$1(l, t, c);
|
|
6135
6135
|
}
|
|
6136
6136
|
function Q$2(l, e, t, s, r) {
|
|
6137
6137
|
l !== e && ua(e, function(i, n) {
|
|
6138
|
-
if (r || (r = new S$
|
|
6139
|
-
|
|
6138
|
+
if (r || (r = new S$1()), E$3(i))
|
|
6139
|
+
Oe$1(l, e, n, t, Q$2, s, r);
|
|
6140
6140
|
else {
|
|
6141
|
-
var o = s ? s(
|
|
6142
|
-
o === void 0 && (o = i),
|
|
6141
|
+
var o = s ? s(x$1(l, n), i, n + "", l, e, r) : void 0;
|
|
6142
|
+
o === void 0 && (o = i), T$1(l, n, o);
|
|
6143
6143
|
}
|
|
6144
6144
|
}, U$1);
|
|
6145
6145
|
}
|
|
6146
|
-
var
|
|
6147
|
-
|
|
6148
|
-
}),
|
|
6149
|
-
function
|
|
6150
|
-
return l === true || l === false || T$
|
|
6146
|
+
var Ve$1 = Object.prototype, Be$1 = Ve$1.hasOwnProperty, Ne$1 = $e$1(function(l, e, t) {
|
|
6147
|
+
Be$1.call(l, t) ? l[t].push(e) : fn$1(l, t, [e]);
|
|
6148
|
+
}), Ue = "[object Boolean]";
|
|
6149
|
+
function We$2(l) {
|
|
6150
|
+
return l === true || l === false || T$3(l) && N$2(l) == Ue;
|
|
6151
6151
|
}
|
|
6152
|
-
var P =
|
|
6152
|
+
var P = De$1(function(l, e, t) {
|
|
6153
6153
|
Q$2(l, e, t);
|
|
6154
6154
|
});
|
|
6155
6155
|
const p$2 = (l, e, t) => ({
|
|
@@ -6159,7 +6159,7 @@
|
|
|
6159
6159
|
errorType: "InvalidModelDefinition",
|
|
6160
6160
|
attribute: e,
|
|
6161
6161
|
description: t
|
|
6162
|
-
}),
|
|
6162
|
+
}), Qe$1 = (l) => {
|
|
6163
6163
|
const e = [
|
|
6164
6164
|
"any",
|
|
6165
6165
|
"Array<date>",
|
|
@@ -6185,7 +6185,7 @@
|
|
|
6185
6185
|
}
|
|
6186
6186
|
if ("expression" in l && typeof l.expression != "string")
|
|
6187
6187
|
return p$2("Invalid Property", l.key, "Expression is invalid");
|
|
6188
|
-
},
|
|
6188
|
+
}, ze$1 = (l) => {
|
|
6189
6189
|
const e = ["multiValued", "singleValued"];
|
|
6190
6190
|
if (!l.key)
|
|
6191
6191
|
return p$2("Invalid Reference", l.key, "Reference key is missing");
|
|
@@ -6207,7 +6207,7 @@
|
|
|
6207
6207
|
}
|
|
6208
6208
|
if ("groupBy" in l && !l.groupBy.reference)
|
|
6209
6209
|
return p$2("Invalid Reference", l.key, "Grouped Reference reference is missing");
|
|
6210
|
-
},
|
|
6210
|
+
}, Le$2 = (l) => {
|
|
6211
6211
|
if (typeof l.key != "string" || l.key.length === 0)
|
|
6212
6212
|
throw new Error("Invalid Model: key must be a non-empty string");
|
|
6213
6213
|
if (typeof l.keyProperty < "u") {
|
|
@@ -6237,7 +6237,7 @@
|
|
|
6237
6237
|
if (l.references && !Array.isArray(l.references))
|
|
6238
6238
|
throw new Error("Invalid Model: references must be an array");
|
|
6239
6239
|
return true;
|
|
6240
|
-
},
|
|
6240
|
+
}, je$1 = (l, e) => {
|
|
6241
6241
|
const t = [];
|
|
6242
6242
|
return l.references.forEach((s) => {
|
|
6243
6243
|
e.has(s.model) || t.push({
|
|
@@ -6248,11 +6248,11 @@
|
|
|
6248
6248
|
attribute: s.key,
|
|
6249
6249
|
model: l.key,
|
|
6250
6250
|
description: `Referenced model ${s.model} does not exist`
|
|
6251
|
-
}), "derive" in s && t.push(...
|
|
6251
|
+
}), "derive" in s && t.push(...He$1(s, l, e)), "resolve" in s && t.push(...Je$1(s, l, e)), "groupBy" in s && t.push(...Ye$1(s, l));
|
|
6252
6252
|
}), l.properties.forEach((s) => {
|
|
6253
|
-
"derive" in s && t.push(...
|
|
6253
|
+
"derive" in s && t.push(...Xe$1(s, l, e)), "expression" in s && t.push(...Ze$1(s, l));
|
|
6254
6254
|
}), t;
|
|
6255
|
-
},
|
|
6255
|
+
}, He$1 = (l, e, t) => {
|
|
6256
6256
|
const s = [], r = e.references.get(l.derive.localReference);
|
|
6257
6257
|
if (!r)
|
|
6258
6258
|
return s.push({
|
|
@@ -6274,7 +6274,7 @@
|
|
|
6274
6274
|
model: e.key,
|
|
6275
6275
|
description: `Remote Reference ${l.derive.remoteReference} does not exist in model ${i.key}`
|
|
6276
6276
|
})), s;
|
|
6277
|
-
},
|
|
6277
|
+
}, Je$1 = (l, e, t) => {
|
|
6278
6278
|
const s = [], r = t.get(l.resolve.model);
|
|
6279
6279
|
return r ? (r.references.get(l.resolve.reference) || s.push({
|
|
6280
6280
|
title: "Missing Reference",
|
|
@@ -6293,7 +6293,7 @@
|
|
|
6293
6293
|
model: e.key,
|
|
6294
6294
|
description: `Referenced model ${l.model} does not exist`
|
|
6295
6295
|
}), s);
|
|
6296
|
-
},
|
|
6296
|
+
}, Ye$1 = (l, e) => {
|
|
6297
6297
|
const t = [];
|
|
6298
6298
|
return e.references.get(l.groupBy.reference) || t.push({
|
|
6299
6299
|
title: "Missing Reference",
|
|
@@ -6304,7 +6304,7 @@
|
|
|
6304
6304
|
model: e.key,
|
|
6305
6305
|
description: `Resolved Reference ${l.groupBy.reference} does not exist in model ${e.key}`
|
|
6306
6306
|
}), t;
|
|
6307
|
-
},
|
|
6307
|
+
}, Xe$1 = (l, e, t) => {
|
|
6308
6308
|
const s = [], r = e.references.get(l.derive.localReference);
|
|
6309
6309
|
if (!r)
|
|
6310
6310
|
return s.push({
|
|
@@ -6331,7 +6331,7 @@
|
|
|
6331
6331
|
});
|
|
6332
6332
|
}
|
|
6333
6333
|
return s;
|
|
6334
|
-
},
|
|
6334
|
+
}, Ze$1 = (l, e) => {
|
|
6335
6335
|
const t = [];
|
|
6336
6336
|
return Fu(l.expression).variables.forEach((r) => {
|
|
6337
6337
|
r.name === "key" || r.name.endsWith(".key") || !e.properties.get(r.name) && !e.references.get(r.name) && t.push({
|
|
@@ -6345,26 +6345,26 @@
|
|
|
6345
6345
|
});
|
|
6346
6346
|
}), t;
|
|
6347
6347
|
}, k$2 = "::";
|
|
6348
|
-
function
|
|
6348
|
+
function et$1(l) {
|
|
6349
6349
|
return typeof l == "string" ? [l] : Array.isArray(l) ? l : [];
|
|
6350
6350
|
}
|
|
6351
6351
|
function z(l, e, t = k$2) {
|
|
6352
6352
|
return typeof e == "string" ? String(l[e]) : e.length === 1 ? String(l[e[0]]) : e.map((s) => String(l[s])).join(t);
|
|
6353
6353
|
}
|
|
6354
|
-
function
|
|
6354
|
+
function tt$1(l, e = k$2) {
|
|
6355
6355
|
if (l !== void 0)
|
|
6356
6356
|
return typeof l == "string" ? l : l.join(e);
|
|
6357
6357
|
}
|
|
6358
|
-
const
|
|
6358
|
+
const rt$1 = {
|
|
6359
6359
|
REF_VALUE: "_dcupl_ref_"
|
|
6360
|
-
},
|
|
6360
|
+
}, L$1 = {
|
|
6361
6361
|
required: true,
|
|
6362
6362
|
forceStrictDataType: false,
|
|
6363
6363
|
nullable: false,
|
|
6364
6364
|
validatorHandling: "loose"
|
|
6365
|
-
},
|
|
6365
|
+
}, q$3 = {
|
|
6366
6366
|
enabled: true,
|
|
6367
|
-
attributes:
|
|
6367
|
+
attributes: L$1
|
|
6368
6368
|
};
|
|
6369
6369
|
let st$1 = class st {
|
|
6370
6370
|
constructor(e) {
|
|
@@ -6385,7 +6385,7 @@
|
|
|
6385
6385
|
keyPropertySeparator;
|
|
6386
6386
|
valueMappings = [];
|
|
6387
6387
|
meta;
|
|
6388
|
-
qualityConfig =
|
|
6388
|
+
qualityConfig = q$3;
|
|
6389
6389
|
indicesController = new hu();
|
|
6390
6390
|
cdRef;
|
|
6391
6391
|
// #120 Performance optimization: Reverse index for grouped references
|
|
@@ -6393,19 +6393,19 @@
|
|
|
6393
6393
|
// Enables O(1) lookup instead of O(n·v²) nested loops
|
|
6394
6394
|
groupedRefReverseIndex = /* @__PURE__ */ new Map();
|
|
6395
6395
|
init(e) {
|
|
6396
|
-
this.key = e.key, this.initialDefinition = e, e.quality && (this.qualityConfig = P({},
|
|
6396
|
+
this.key = e.key, this.initialDefinition = e, e.quality && (this.qualityConfig = P({}, q$3, e.quality));
|
|
6397
6397
|
}
|
|
6398
6398
|
applyPropertiesAndReferences(e) {
|
|
6399
6399
|
e.properties?.map((t) => {
|
|
6400
|
-
const s =
|
|
6400
|
+
const s = Qe$1(t);
|
|
6401
6401
|
s ? (s.model = this.key, this.setError(s)) : (this.setAttributeQualityConfig(t), this.properties.set(t.key, t));
|
|
6402
6402
|
}), e.references?.map((t) => {
|
|
6403
|
-
const s =
|
|
6403
|
+
const s = ze$1(t);
|
|
6404
6404
|
s ? (s.model = this.key, this.setError(s)) : (t.validity = t.validity || "loose", this.setAttributeQualityConfig(t), this.references.set(t.key, t));
|
|
6405
6405
|
}), 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;
|
|
6406
6406
|
}
|
|
6407
6407
|
setAttributeQualityConfig(e) {
|
|
6408
|
-
const t = this.qualityConfig.attributes, s = P({},
|
|
6408
|
+
const t = this.qualityConfig.attributes, s = P({}, L$1, t, e.quality);
|
|
6409
6409
|
this.attributeQualityConfigs.set(e.key, s);
|
|
6410
6410
|
}
|
|
6411
6411
|
getModelDefinition() {
|
|
@@ -6430,7 +6430,7 @@
|
|
|
6430
6430
|
if (r.key === "key")
|
|
6431
6431
|
return;
|
|
6432
6432
|
const i = e.keyProperty ?? this.keyProperty;
|
|
6433
|
-
|
|
6433
|
+
et$1(i).some((o) => o && o !== "key" && o === r.key) && (r.type = "string"), r.filter = true, this.properties.set(r.key, r);
|
|
6434
6434
|
}
|
|
6435
6435
|
});
|
|
6436
6436
|
}
|
|
@@ -6694,15 +6694,15 @@
|
|
|
6694
6694
|
}
|
|
6695
6695
|
processJSONProperty(e, t, s) {
|
|
6696
6696
|
if (this.attributeQualityConfigs.get(e.key)?.forceStrictDataType) {
|
|
6697
|
-
if (!T$
|
|
6697
|
+
if (!T$3(t)) {
|
|
6698
6698
|
this.setError(this.getWrongDataTypeError(e, t, s));
|
|
6699
6699
|
return;
|
|
6700
6700
|
}
|
|
6701
6701
|
return t;
|
|
6702
6702
|
}
|
|
6703
|
-
if (T$
|
|
6703
|
+
if (T$3(t))
|
|
6704
6704
|
return t;
|
|
6705
|
-
if (!T$
|
|
6705
|
+
if (!T$3(t) && typeof t == "string")
|
|
6706
6706
|
try {
|
|
6707
6707
|
return JSON.parse(t);
|
|
6708
6708
|
} catch {
|
|
@@ -6712,7 +6712,7 @@
|
|
|
6712
6712
|
}
|
|
6713
6713
|
processBooleanProperty(e, t, s) {
|
|
6714
6714
|
if (this.attributeQualityConfigs.get(e.key)?.forceStrictDataType) {
|
|
6715
|
-
if (!
|
|
6715
|
+
if (!We$2(t)) {
|
|
6716
6716
|
this.setError(this.getWrongDataTypeError(e, t, s));
|
|
6717
6717
|
return;
|
|
6718
6718
|
}
|
|
@@ -6837,7 +6837,7 @@
|
|
|
6837
6837
|
key: String(n.key)
|
|
6838
6838
|
};
|
|
6839
6839
|
else if (e.type === "set") {
|
|
6840
|
-
const d = e.keyProperty ?? this.keyProperty, c = e.keyPropertySeparator ?? this.keyPropertySeparator ?? k$2, u =
|
|
6840
|
+
const d = e.keyProperty ?? this.keyProperty, c = e.keyPropertySeparator ?? this.keyPropertySeparator ?? k$2, u = tt$1(d, c), f = String(n.key);
|
|
6841
6841
|
this.setError({
|
|
6842
6842
|
title: "Non Unique Key",
|
|
6843
6843
|
type: "model",
|
|
@@ -7343,7 +7343,7 @@
|
|
|
7343
7343
|
return this.data.get(e);
|
|
7344
7344
|
}
|
|
7345
7345
|
setRefValue(e, t) {
|
|
7346
|
-
this.modelParser.initOptions.referenceMetadata?.enabled && Object.defineProperty(e,
|
|
7346
|
+
this.modelParser.initOptions.referenceMetadata?.enabled && Object.defineProperty(e, rt$1.REF_VALUE, {
|
|
7347
7347
|
value: t,
|
|
7348
7348
|
enumerable: true,
|
|
7349
7349
|
writable: false,
|
|
@@ -7813,7 +7813,7 @@
|
|
|
7813
7813
|
function ot(l) {
|
|
7814
7814
|
return "query" in l;
|
|
7815
7815
|
}
|
|
7816
|
-
function
|
|
7816
|
+
function M$1(l) {
|
|
7817
7817
|
return "resolve" in l;
|
|
7818
7818
|
}
|
|
7819
7819
|
function at(l) {
|
|
@@ -7865,7 +7865,7 @@
|
|
|
7865
7865
|
}
|
|
7866
7866
|
validateModels() {
|
|
7867
7867
|
this.models.forEach((e) => {
|
|
7868
|
-
e.qualityConfig.enabled === true &&
|
|
7868
|
+
e.qualityConfig.enabled === true && je$1(e, this.models).forEach((s) => {
|
|
7869
7869
|
this.setError(s, e);
|
|
7870
7870
|
});
|
|
7871
7871
|
});
|
|
@@ -7920,7 +7920,7 @@ Models cannot have circular references as this leads to unpredictable behavior d
|
|
|
7920
7920
|
}), e.references.forEach((s, r) => {
|
|
7921
7921
|
if (ot(s))
|
|
7922
7922
|
this.processQueryReference(t, r, s.query);
|
|
7923
|
-
else if (
|
|
7923
|
+
else if (M$1(s))
|
|
7924
7924
|
this.processResolvedReference(t, r, s.resolve);
|
|
7925
7925
|
else if (at(s))
|
|
7926
7926
|
this.processDerivedReference(t, r, s.derive);
|
|
@@ -7998,15 +7998,15 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
7998
7998
|
for (let h2 = 0; h2 < a.length - 1; h2++) {
|
|
7999
7999
|
const R2 = a[h2], m = f.references.get(R2);
|
|
8000
8000
|
if (m) {
|
|
8001
|
-
const
|
|
8002
|
-
if (
|
|
8003
|
-
const
|
|
8001
|
+
const K2 = this.models.get(m.model);
|
|
8002
|
+
if (K2 && (f = K2, y2 = m.model, h2 === a.length - 2)) {
|
|
8003
|
+
const j2 = a[a.length - 1], H2 = {
|
|
8004
8004
|
modelKey: y2,
|
|
8005
|
-
attributeKey:
|
|
8005
|
+
attributeKey: j2,
|
|
8006
8006
|
type: "property",
|
|
8007
8007
|
processingStep: 1
|
|
8008
8008
|
};
|
|
8009
|
-
this.attributeDependencyGraph.addAttributeDependency(r,
|
|
8009
|
+
this.attributeDependencyGraph.addAttributeDependency(r, H2);
|
|
8010
8010
|
}
|
|
8011
8011
|
}
|
|
8012
8012
|
}
|
|
@@ -8259,7 +8259,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8259
8259
|
addModel(e) {
|
|
8260
8260
|
if (e?.quality?.enabled !== false)
|
|
8261
8261
|
try {
|
|
8262
|
-
|
|
8262
|
+
Le$2(e);
|
|
8263
8263
|
} catch (t) {
|
|
8264
8264
|
this.qualityController.enabled && this.qualityController.setError({
|
|
8265
8265
|
title: "Invalid Model Definition",
|
|
@@ -8318,7 +8318,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8318
8318
|
this.qualityController.enabled && t.qualityConfig.enabled === true && this.qualityController.setError(e);
|
|
8319
8319
|
}
|
|
8320
8320
|
getMergedContainers(e) {
|
|
8321
|
-
const s = this.handleAlternativeKey(e).filter((n) => !n.placeholderUid), r = [], i =
|
|
8321
|
+
const s = this.handleAlternativeKey(e).filter((n) => !n.placeholderUid), r = [], i = Ne$1(s, "model");
|
|
8322
8322
|
for (const n in i) {
|
|
8323
8323
|
const o = i[n];
|
|
8324
8324
|
if (o.length > 1) {
|
|
@@ -8496,11 +8496,11 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8496
8496
|
if (c)
|
|
8497
8497
|
for (const u of c) {
|
|
8498
8498
|
const f = d.references.get(u);
|
|
8499
|
-
if (f &&
|
|
8499
|
+
if (f && M$1(f)) {
|
|
8500
8500
|
const y2 = f.resolve.model, h2 = f.resolve.reference, R2 = this.models.get(y2);
|
|
8501
8501
|
if (R2) {
|
|
8502
8502
|
const m = R2.references.get(h2);
|
|
8503
|
-
m &&
|
|
8503
|
+
m && M$1(m) && t.get(a).add(y2);
|
|
8504
8504
|
}
|
|
8505
8505
|
}
|
|
8506
8506
|
}
|
|
@@ -8746,7 +8746,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8746
8746
|
if (!t)
|
|
8747
8747
|
throw new Error(`Model with key ${e.modelKey} not found`);
|
|
8748
8748
|
const r = this.getListItemKeys(e), s = this.getRelevantData(t, r), o = this.initIndicesController(r, t, s);
|
|
8749
|
-
this.catalog ? this.catalog.filter.update(t, s, o) : (this.catalog = new G$
|
|
8749
|
+
this.catalog ? this.catalog.filter.update(t, s, o) : (this.catalog = new G$1(this.dcuplApi, this.cdRef, o), this.catalog.init(this.modelKey, t, s));
|
|
8750
8750
|
}
|
|
8751
8751
|
initIndicesController(e, t, r) {
|
|
8752
8752
|
let s;
|
|
@@ -9031,7 +9031,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
9031
9031
|
}
|
|
9032
9032
|
const i = this.getModelErrors(s).filter(
|
|
9033
9033
|
(a) => a.errorType === "WrongDataType" && a.errorGroup === "PropertyDataError" && a.title === "Wrong Data Type" && a.itemKey != null
|
|
9034
|
-
), n =
|
|
9034
|
+
), n = Ne$1(i, "attribute");
|
|
9035
9035
|
for (const a in n) {
|
|
9036
9036
|
const l = n[a];
|
|
9037
9037
|
if (!l?.length)
|
|
@@ -9304,7 +9304,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
9304
9304
|
}
|
|
9305
9305
|
}
|
|
9306
9306
|
calculateSizesForModels() {
|
|
9307
|
-
const t = this.dcupl.analyticsController.getByType("resource").filter((o) => o.value?.type === "data"), r =
|
|
9307
|
+
const t = this.dcupl.analyticsController.getByType("resource").filter((o) => o.value?.type === "data"), r = Ne$1(t, (o) => o.value?.model);
|
|
9308
9308
|
return Object.keys(r).map((o) => {
|
|
9309
9309
|
const i = r[o]?.reduce((a, l) => {
|
|
9310
9310
|
const u = l.value.encodedBodySize;
|
|
@@ -9585,7 +9585,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
9585
9585
|
qualityController = new X$2(this.scriptController);
|
|
9586
9586
|
log = Wa.child({ prefix: "Dcupl" });
|
|
9587
9587
|
modelParser = new E$2(this.cdRef, this.qualityController, this);
|
|
9588
|
-
globalItemService = new L$
|
|
9588
|
+
globalItemService = new L$2(this.modelParser, this.scriptController);
|
|
9589
9589
|
cacheCtrl = new Du(false);
|
|
9590
9590
|
queryManager = new Ku(
|
|
9591
9591
|
this.scriptController,
|