@wavemaker/angular-codegen 11.5.0-next.24741 → 11.5.0-next.24745
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.
- angular-codegen/angular-app/angular.json +2 -2
- angular-codegen/angular-app/package.json +2 -2
- angular-codegen/dependencies/pipe-provider.cjs.js +78 -22
- angular-codegen/dependencies/transpilation-mobile.cjs.js +39 -11
- angular-codegen/dependencies/transpilation-web.cjs.js +39 -11
- angular-codegen/package.json +1 -1
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@metrichor/jmespath": "^0.3.1",
|
|
48
48
|
"@wavemaker.com/nvd3": "1.0.0",
|
|
49
49
|
"@wavemaker/focus-trap": "^1.0.0",
|
|
50
|
-
"@wavemaker/variables": "11.5.0-next.
|
|
50
|
+
"@wavemaker/variables": "11.5.0-next.24745",
|
|
51
51
|
"@ztree/ztree_v3": "^3.5.48",
|
|
52
52
|
"angular-imask": "6.3.0",
|
|
53
53
|
"angular2-websocket": "0.9.7",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"tslib": "2.4.1",
|
|
73
73
|
"x2js": "^3.4.4",
|
|
74
74
|
"zone.js": "~0.11.4",
|
|
75
|
-
"@wavemaker/app-ng-runtime": "11.5.0-next.
|
|
75
|
+
"@wavemaker/app-ng-runtime": "11.5.0-next.24745"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@ampproject/rollup-plugin-closure-compiler": "^0.27.0",
|
|
@@ -95390,30 +95390,58 @@ const setListClass$1 = (scope) => {
|
|
|
95390
95390
|
}
|
|
95391
95391
|
};
|
|
95392
95392
|
const findParent$1 = (lView, viewParentApp) => {
|
|
95393
|
-
|
|
95394
|
-
|
|
95393
|
+
// console.log("---*************--lView--*************---", lView);
|
|
95394
|
+
// console.log("---*************--viewParentApp--*************---", viewParentApp);
|
|
95395
|
+
let parentObj = findViewParent$1(lView, { 'parent': {}, 'root': {} });
|
|
95396
|
+
// console.log("---*************--parentObj--*************---", parentObj);
|
|
95397
|
+
let finalParent = {};
|
|
95398
|
+
if (parentObj['parent'] === null || parentObj['root'] === null) {
|
|
95399
|
+
parentObj['root'] = viewParentApp;
|
|
95400
|
+
parentObj['parent'] = {};
|
|
95401
|
+
}
|
|
95402
|
+
let mergFunc = function (objValue, srcValue, key) {
|
|
95403
|
+
const protectedKeys = ['viewParent'];
|
|
95404
|
+
if (protectedKeys.includes(key)) {
|
|
95405
|
+
return objValue;
|
|
95406
|
+
}
|
|
95407
|
+
return srcValue;
|
|
95408
|
+
};
|
|
95409
|
+
if (_.isEmpty(parentObj['parent'])) {
|
|
95410
|
+
finalParent = _.mergeWith(parentObj.root, parentObj.parent, mergFunc);
|
|
95411
|
+
}
|
|
95412
|
+
else {
|
|
95413
|
+
finalParent = _.mergeWith(parentObj.parent, parentObj.root, mergFunc);
|
|
95414
|
+
}
|
|
95415
|
+
// console.log("---*************--finalParent--*************---", finalParent);
|
|
95416
|
+
return finalParent;
|
|
95395
95417
|
};
|
|
95396
|
-
const findViewParent$1 = (lView) => {
|
|
95418
|
+
const findViewParent$1 = (lView, parentObj) => {
|
|
95397
95419
|
if (lView[3] === null) {
|
|
95398
|
-
|
|
95420
|
+
parentObj['root'] = lView[8];
|
|
95421
|
+
return parentObj;
|
|
95399
95422
|
}
|
|
95400
95423
|
let parentlView = lView[3];
|
|
95401
|
-
if (typeof lView[1] === "boolean") {
|
|
95402
|
-
return findViewParent$1(parentlView);
|
|
95424
|
+
if (typeof lView[1] === "boolean") { // this is lContainer, not lView if this is boolean
|
|
95425
|
+
return findViewParent$1(parentlView, parentObj);
|
|
95403
95426
|
}
|
|
95404
95427
|
let componentType = lView[1]["type"];
|
|
95405
95428
|
if (componentType === 0 || componentType === 1) {
|
|
95406
95429
|
let p = lView[8];
|
|
95407
95430
|
// ts-ignore
|
|
95408
|
-
if (p.hasOwnProperty("
|
|
95409
|
-
|
|
95431
|
+
if (p.hasOwnProperty("isDynamicComponent") || p.hasOwnProperty("isPageComponent")) {
|
|
95432
|
+
parentObj['root'] = p;
|
|
95433
|
+
return parentObj;
|
|
95410
95434
|
}
|
|
95411
95435
|
else {
|
|
95412
|
-
|
|
95436
|
+
if (_.isEmpty(parentObj['parent'])) {
|
|
95437
|
+
parentObj['parent'] = p;
|
|
95438
|
+
// console.log(".......parentObj........", parentObj)
|
|
95439
|
+
}
|
|
95440
|
+
return findViewParent$1(parentlView, parentObj);
|
|
95413
95441
|
}
|
|
95414
95442
|
}
|
|
95415
|
-
else {
|
|
95416
|
-
return findViewParent$1(parentlView);
|
|
95443
|
+
else { // when componentType == 2, then fetch parent again
|
|
95444
|
+
return findViewParent$1(parentlView, parentObj);
|
|
95417
95445
|
}
|
|
95418
95446
|
};
|
|
95419
95447
|
|
|
@@ -122191,30 +122219,58 @@ const setListClass = (scope) => {
|
|
|
122191
122219
|
}
|
|
122192
122220
|
};
|
|
122193
122221
|
const findParent = (lView, viewParentApp) => {
|
|
122194
|
-
|
|
122195
|
-
|
|
122222
|
+
// console.log("---*************--lView--*************---", lView);
|
|
122223
|
+
// console.log("---*************--viewParentApp--*************---", viewParentApp);
|
|
122224
|
+
let parentObj = findViewParent(lView, { 'parent': {}, 'root': {} });
|
|
122225
|
+
// console.log("---*************--parentObj--*************---", parentObj);
|
|
122226
|
+
let finalParent = {};
|
|
122227
|
+
if (parentObj['parent'] === null || parentObj['root'] === null) {
|
|
122228
|
+
parentObj['root'] = viewParentApp;
|
|
122229
|
+
parentObj['parent'] = {};
|
|
122230
|
+
}
|
|
122231
|
+
let mergFunc = function (objValue, srcValue, key) {
|
|
122232
|
+
const protectedKeys = ['viewParent'];
|
|
122233
|
+
if (protectedKeys.includes(key)) {
|
|
122234
|
+
return objValue;
|
|
122235
|
+
}
|
|
122236
|
+
return srcValue;
|
|
122237
|
+
};
|
|
122238
|
+
if (_.isEmpty(parentObj['parent'])) {
|
|
122239
|
+
finalParent = _.mergeWith(parentObj.root, parentObj.parent, mergFunc);
|
|
122240
|
+
}
|
|
122241
|
+
else {
|
|
122242
|
+
finalParent = _.mergeWith(parentObj.parent, parentObj.root, mergFunc);
|
|
122243
|
+
}
|
|
122244
|
+
// console.log("---*************--finalParent--*************---", finalParent);
|
|
122245
|
+
return finalParent;
|
|
122196
122246
|
};
|
|
122197
|
-
const findViewParent = (lView) => {
|
|
122247
|
+
const findViewParent = (lView, parentObj) => {
|
|
122198
122248
|
if (lView[3] === null) {
|
|
122199
|
-
|
|
122249
|
+
parentObj['root'] = lView[8];
|
|
122250
|
+
return parentObj;
|
|
122200
122251
|
}
|
|
122201
122252
|
let parentlView = lView[3];
|
|
122202
|
-
if (typeof lView[1] === "boolean") {
|
|
122203
|
-
return findViewParent(parentlView);
|
|
122253
|
+
if (typeof lView[1] === "boolean") { // this is lContainer, not lView if this is boolean
|
|
122254
|
+
return findViewParent(parentlView, parentObj);
|
|
122204
122255
|
}
|
|
122205
122256
|
let componentType = lView[1]["type"];
|
|
122206
122257
|
if (componentType === 0 || componentType === 1) {
|
|
122207
122258
|
let p = lView[8];
|
|
122208
122259
|
// ts-ignore
|
|
122209
|
-
if (p.hasOwnProperty("
|
|
122210
|
-
|
|
122260
|
+
if (p.hasOwnProperty("isDynamicComponent") || p.hasOwnProperty("isPageComponent")) {
|
|
122261
|
+
parentObj['root'] = p;
|
|
122262
|
+
return parentObj;
|
|
122211
122263
|
}
|
|
122212
122264
|
else {
|
|
122213
|
-
|
|
122265
|
+
if (_.isEmpty(parentObj['parent'])) {
|
|
122266
|
+
parentObj['parent'] = p;
|
|
122267
|
+
// console.log(".......parentObj........", parentObj)
|
|
122268
|
+
}
|
|
122269
|
+
return findViewParent(parentlView, parentObj);
|
|
122214
122270
|
}
|
|
122215
122271
|
}
|
|
122216
|
-
else {
|
|
122217
|
-
return findViewParent(parentlView);
|
|
122272
|
+
else { // when componentType == 2, then fetch parent again
|
|
122273
|
+
return findViewParent(parentlView, parentObj);
|
|
122218
122274
|
}
|
|
122219
122275
|
};
|
|
122220
122276
|
|
|
@@ -59016,30 +59016,58 @@ const setListClass = (scope) => {
|
|
|
59016
59016
|
}
|
|
59017
59017
|
};
|
|
59018
59018
|
const findParent = (lView, viewParentApp) => {
|
|
59019
|
-
|
|
59020
|
-
|
|
59019
|
+
// console.log("---*************--lView--*************---", lView);
|
|
59020
|
+
// console.log("---*************--viewParentApp--*************---", viewParentApp);
|
|
59021
|
+
let parentObj = findViewParent(lView, { 'parent': {}, 'root': {} });
|
|
59022
|
+
// console.log("---*************--parentObj--*************---", parentObj);
|
|
59023
|
+
let finalParent = {};
|
|
59024
|
+
if (parentObj['parent'] === null || parentObj['root'] === null) {
|
|
59025
|
+
parentObj['root'] = viewParentApp;
|
|
59026
|
+
parentObj['parent'] = {};
|
|
59027
|
+
}
|
|
59028
|
+
let mergFunc = function (objValue, srcValue, key) {
|
|
59029
|
+
const protectedKeys = ['viewParent'];
|
|
59030
|
+
if (protectedKeys.includes(key)) {
|
|
59031
|
+
return objValue;
|
|
59032
|
+
}
|
|
59033
|
+
return srcValue;
|
|
59034
|
+
};
|
|
59035
|
+
if (_.isEmpty(parentObj['parent'])) {
|
|
59036
|
+
finalParent = _.mergeWith(parentObj.root, parentObj.parent, mergFunc);
|
|
59037
|
+
}
|
|
59038
|
+
else {
|
|
59039
|
+
finalParent = _.mergeWith(parentObj.parent, parentObj.root, mergFunc);
|
|
59040
|
+
}
|
|
59041
|
+
// console.log("---*************--finalParent--*************---", finalParent);
|
|
59042
|
+
return finalParent;
|
|
59021
59043
|
};
|
|
59022
|
-
const findViewParent = (lView) => {
|
|
59044
|
+
const findViewParent = (lView, parentObj) => {
|
|
59023
59045
|
if (lView[3] === null) {
|
|
59024
|
-
|
|
59046
|
+
parentObj['root'] = lView[8];
|
|
59047
|
+
return parentObj;
|
|
59025
59048
|
}
|
|
59026
59049
|
let parentlView = lView[3];
|
|
59027
|
-
if (typeof lView[1] === "boolean") {
|
|
59028
|
-
return findViewParent(parentlView);
|
|
59050
|
+
if (typeof lView[1] === "boolean") { // this is lContainer, not lView if this is boolean
|
|
59051
|
+
return findViewParent(parentlView, parentObj);
|
|
59029
59052
|
}
|
|
59030
59053
|
let componentType = lView[1]["type"];
|
|
59031
59054
|
if (componentType === 0 || componentType === 1) {
|
|
59032
59055
|
let p = lView[8];
|
|
59033
59056
|
// ts-ignore
|
|
59034
|
-
if (p.hasOwnProperty("
|
|
59035
|
-
|
|
59057
|
+
if (p.hasOwnProperty("isDynamicComponent") || p.hasOwnProperty("isPageComponent")) {
|
|
59058
|
+
parentObj['root'] = p;
|
|
59059
|
+
return parentObj;
|
|
59036
59060
|
}
|
|
59037
59061
|
else {
|
|
59038
|
-
|
|
59062
|
+
if (_.isEmpty(parentObj['parent'])) {
|
|
59063
|
+
parentObj['parent'] = p;
|
|
59064
|
+
// console.log(".......parentObj........", parentObj)
|
|
59065
|
+
}
|
|
59066
|
+
return findViewParent(parentlView, parentObj);
|
|
59039
59067
|
}
|
|
59040
59068
|
}
|
|
59041
|
-
else {
|
|
59042
|
-
return findViewParent(parentlView);
|
|
59069
|
+
else { // when componentType == 2, then fetch parent again
|
|
59070
|
+
return findViewParent(parentlView, parentObj);
|
|
59043
59071
|
}
|
|
59044
59072
|
};
|
|
59045
59073
|
|
|
@@ -59016,30 +59016,58 @@ const setListClass = (scope) => {
|
|
|
59016
59016
|
}
|
|
59017
59017
|
};
|
|
59018
59018
|
const findParent = (lView, viewParentApp) => {
|
|
59019
|
-
|
|
59020
|
-
|
|
59019
|
+
// console.log("---*************--lView--*************---", lView);
|
|
59020
|
+
// console.log("---*************--viewParentApp--*************---", viewParentApp);
|
|
59021
|
+
let parentObj = findViewParent(lView, { 'parent': {}, 'root': {} });
|
|
59022
|
+
// console.log("---*************--parentObj--*************---", parentObj);
|
|
59023
|
+
let finalParent = {};
|
|
59024
|
+
if (parentObj['parent'] === null || parentObj['root'] === null) {
|
|
59025
|
+
parentObj['root'] = viewParentApp;
|
|
59026
|
+
parentObj['parent'] = {};
|
|
59027
|
+
}
|
|
59028
|
+
let mergFunc = function (objValue, srcValue, key) {
|
|
59029
|
+
const protectedKeys = ['viewParent'];
|
|
59030
|
+
if (protectedKeys.includes(key)) {
|
|
59031
|
+
return objValue;
|
|
59032
|
+
}
|
|
59033
|
+
return srcValue;
|
|
59034
|
+
};
|
|
59035
|
+
if (_.isEmpty(parentObj['parent'])) {
|
|
59036
|
+
finalParent = _.mergeWith(parentObj.root, parentObj.parent, mergFunc);
|
|
59037
|
+
}
|
|
59038
|
+
else {
|
|
59039
|
+
finalParent = _.mergeWith(parentObj.parent, parentObj.root, mergFunc);
|
|
59040
|
+
}
|
|
59041
|
+
// console.log("---*************--finalParent--*************---", finalParent);
|
|
59042
|
+
return finalParent;
|
|
59021
59043
|
};
|
|
59022
|
-
const findViewParent = (lView) => {
|
|
59044
|
+
const findViewParent = (lView, parentObj) => {
|
|
59023
59045
|
if (lView[3] === null) {
|
|
59024
|
-
|
|
59046
|
+
parentObj['root'] = lView[8];
|
|
59047
|
+
return parentObj;
|
|
59025
59048
|
}
|
|
59026
59049
|
let parentlView = lView[3];
|
|
59027
|
-
if (typeof lView[1] === "boolean") {
|
|
59028
|
-
return findViewParent(parentlView);
|
|
59050
|
+
if (typeof lView[1] === "boolean") { // this is lContainer, not lView if this is boolean
|
|
59051
|
+
return findViewParent(parentlView, parentObj);
|
|
59029
59052
|
}
|
|
59030
59053
|
let componentType = lView[1]["type"];
|
|
59031
59054
|
if (componentType === 0 || componentType === 1) {
|
|
59032
59055
|
let p = lView[8];
|
|
59033
59056
|
// ts-ignore
|
|
59034
|
-
if (p.hasOwnProperty("
|
|
59035
|
-
|
|
59057
|
+
if (p.hasOwnProperty("isDynamicComponent") || p.hasOwnProperty("isPageComponent")) {
|
|
59058
|
+
parentObj['root'] = p;
|
|
59059
|
+
return parentObj;
|
|
59036
59060
|
}
|
|
59037
59061
|
else {
|
|
59038
|
-
|
|
59062
|
+
if (_.isEmpty(parentObj['parent'])) {
|
|
59063
|
+
parentObj['parent'] = p;
|
|
59064
|
+
// console.log(".......parentObj........", parentObj)
|
|
59065
|
+
}
|
|
59066
|
+
return findViewParent(parentlView, parentObj);
|
|
59039
59067
|
}
|
|
59040
59068
|
}
|
|
59041
|
-
else {
|
|
59042
|
-
return findViewParent(parentlView);
|
|
59069
|
+
else { // when componentType == 2, then fetch parent again
|
|
59070
|
+
return findViewParent(parentlView, parentObj);
|
|
59043
59071
|
}
|
|
59044
59072
|
};
|
|
59045
59073
|
|