arco-support-request 0.0.55 → 0.0.58
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/arco-support-request.metadata.json +1 -1
- package/bundles/arco-support-request.umd.js +312 -43
- package/bundles/arco-support-request.umd.js.map +1 -1
- package/bundles/arco-support-request.umd.min.js +1 -1
- package/bundles/arco-support-request.umd.min.js.map +1 -1
- package/esm2015/lib/core/handlebar-helper-register.js +182 -0
- package/esm2015/lib/entity-type-setup/dynamic/entity-dynamic-field/entity-dynamic-field.component.js +36 -13
- package/esm2015/lib/entity-type-setup/dynamic/entity-dynamic-view/entity-dynamic-view.component.js +21 -24
- package/esm2015/lib/entity-type-setup/service/entity-type-setup.service.js +46 -1
- package/esm2015/lib/templates/interface_enum/common-Interface.js +1 -1
- package/fesm2015/arco-support-request.js +283 -36
- package/fesm2015/arco-support-request.js.map +1 -1
- package/lib/core/handlebar-helper-register.d.ts +1 -0
- package/lib/entity-type-setup/dynamic/entity-dynamic-view/entity-dynamic-view.component.d.ts +2 -1
- package/lib/entity-type-setup/service/entity-type-setup.service.d.ts +1 -0
- package/lib/templates/interface_enum/common-Interface.d.ts +2 -0
- package/package.json +1 -1
- package/lib/ticket/_ticket-services/ticket-api.service.d.ts +0 -81
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbW9uLUludGVyZmFjZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FyY28tc3VwcG9ydC1yZXF1ZXN0L3NyYy9saWIvdGVtcGxhdGVzL2ludGVyZmFjZV9lbnVtL2NvbW1vbi1JbnRlcmZhY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7XHJcbiAgRV9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FsIHtcclxuICBOYW1lOiBzdHJpbmc7XHJcbiAgVHlwZT86IHN0cmluZztcclxuICBWYWx1ZTogc3RyaW5nO1xyXG4gIElzTnVsbGFibGU/OmJvb2xlYW47XHJcbiAgSXNDcml0ZXJpYUZpZWxkPzpib29sZWFuO1xyXG59XHJcbiJdfQ==
|
|
@@ -8,7 +8,8 @@ import Swal from 'sweetalert2';
|
|
|
8
8
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
9
9
|
import { NgSelectModule } from '@ng-select/ng-select';
|
|
10
10
|
import { AngularEditorModule } from '@kolkov/angular-editor';
|
|
11
|
-
import
|
|
11
|
+
import * as handlebars from 'handlebars';
|
|
12
|
+
import { compile } from 'handlebars';
|
|
12
13
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
13
14
|
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
14
15
|
import { MatNativeDateModule } from '@angular/material/core';
|
|
@@ -2491,6 +2492,7 @@ class EntityTypeSetupService {
|
|
|
2491
2492
|
let params = this.setparameter(restData.QueryStrings, FormValues, SearchText, isHavecriteria);
|
|
2492
2493
|
let parameter = this.getArraycolumn(params);
|
|
2493
2494
|
let _url = restData.URL + parameter;
|
|
2495
|
+
// searchCriteria = this.setCriteriaField(restData.QueryStrings,FormValues,searchCriteria)
|
|
2494
2496
|
switch (restData.Method) {
|
|
2495
2497
|
case 'GET': {
|
|
2496
2498
|
return this.http.get(_url, {
|
|
@@ -2523,6 +2525,7 @@ class EntityTypeSetupService {
|
|
|
2523
2525
|
Name: element.Name,
|
|
2524
2526
|
Value: FormValues[element.Value],
|
|
2525
2527
|
};
|
|
2528
|
+
// if(!element.IsCriteriaField)
|
|
2526
2529
|
params.push(temp);
|
|
2527
2530
|
}
|
|
2528
2531
|
else if (element.Type == 'SearchValue') {
|
|
@@ -2565,6 +2568,49 @@ class EntityTypeSetupService {
|
|
|
2565
2568
|
const url = EntityTypeSetUp.getAllEntityTypeSetup();
|
|
2566
2569
|
return this.http.get(url);
|
|
2567
2570
|
}
|
|
2571
|
+
setCriteriaField(parameters, FormValues, searchCriteria) {
|
|
2572
|
+
let criteria = null;
|
|
2573
|
+
parameters.forEach((element) => {
|
|
2574
|
+
if (element.IsCriteriaField && element.Type != 'SearchValue') {
|
|
2575
|
+
debugger;
|
|
2576
|
+
if (searchCriteria && searchCriteria.Where) {
|
|
2577
|
+
let filterobj = {
|
|
2578
|
+
Field: element.Name,
|
|
2579
|
+
Operator: 'Contains',
|
|
2580
|
+
TableAlias: '',
|
|
2581
|
+
Value: FormValues[element.Value],
|
|
2582
|
+
};
|
|
2583
|
+
if (filterobj.Value)
|
|
2584
|
+
searchCriteria.Where.push(filterobj);
|
|
2585
|
+
criteria = searchCriteria;
|
|
2586
|
+
}
|
|
2587
|
+
else {
|
|
2588
|
+
if (!searchCriteria) {
|
|
2589
|
+
let SortingField = { field: null, direction: null };
|
|
2590
|
+
searchCriteria = {
|
|
2591
|
+
Pagging: {
|
|
2592
|
+
PageNo: 1,
|
|
2593
|
+
PageSize: 100,
|
|
2594
|
+
},
|
|
2595
|
+
Where: [],
|
|
2596
|
+
SortOrder: SortingField,
|
|
2597
|
+
};
|
|
2598
|
+
}
|
|
2599
|
+
searchCriteria.Where = [];
|
|
2600
|
+
let filterobj = {
|
|
2601
|
+
Field: element.Name,
|
|
2602
|
+
Operator: 'Contains',
|
|
2603
|
+
TableAlias: '',
|
|
2604
|
+
Value: FormValues[element.Value],
|
|
2605
|
+
};
|
|
2606
|
+
if (filterobj.Value)
|
|
2607
|
+
searchCriteria.Where.push(filterobj);
|
|
2608
|
+
criteria = searchCriteria;
|
|
2609
|
+
}
|
|
2610
|
+
}
|
|
2611
|
+
});
|
|
2612
|
+
return criteria;
|
|
2613
|
+
}
|
|
2568
2614
|
// ------------------ Favorites --------------
|
|
2569
2615
|
favoriteAndRecent() {
|
|
2570
2616
|
const url = Favorites.favoriteandrecent();
|
|
@@ -6234,6 +6280,188 @@ function isNotNullNotUndefined(value) {
|
|
|
6234
6280
|
return true;
|
|
6235
6281
|
}
|
|
6236
6282
|
|
|
6283
|
+
function registerHandlebarHelperMethods(handlebars) {
|
|
6284
|
+
handlebars.registerHelper('isNotNullAndNotUndefined', function (value) {
|
|
6285
|
+
if (value == null || value == undefined)
|
|
6286
|
+
return false;
|
|
6287
|
+
else
|
|
6288
|
+
return true;
|
|
6289
|
+
});
|
|
6290
|
+
handlebars.registerHelper('MoneyPipe', function (value, prefix = '$', count = 2) {
|
|
6291
|
+
if (isNaN(parseFloat(value))) {
|
|
6292
|
+
return null;
|
|
6293
|
+
}
|
|
6294
|
+
else
|
|
6295
|
+
return `${prefix}${parseFloat(value).toFixed(count)}`; // $2312.00
|
|
6296
|
+
});
|
|
6297
|
+
handlebars.registerHelper('BoolPile', function (value) {
|
|
6298
|
+
return value == true ? "YES" : "NO";
|
|
6299
|
+
});
|
|
6300
|
+
handlebars.registerHelper('NillPipe', function (value, cond) {
|
|
6301
|
+
if (value) {
|
|
6302
|
+
return value;
|
|
6303
|
+
}
|
|
6304
|
+
else {
|
|
6305
|
+
if (cond == "0") {
|
|
6306
|
+
return "0";
|
|
6307
|
+
}
|
|
6308
|
+
else
|
|
6309
|
+
return "NIL";
|
|
6310
|
+
}
|
|
6311
|
+
});
|
|
6312
|
+
/* #region Date */
|
|
6313
|
+
handlebars.registerHelper('TodayDatePipe', function (formate) {
|
|
6314
|
+
let date = new Date();
|
|
6315
|
+
switch (formate) {
|
|
6316
|
+
case "DATE":
|
|
6317
|
+
return new Date(date).toLocaleDateString(); // "11/3/2020"
|
|
6318
|
+
case "DATE_TIME":
|
|
6319
|
+
return new Date(date).toLocaleString(); // "11/3/2020, 11:09:23 AM"
|
|
6320
|
+
case "DATE_TIME_FULL":
|
|
6321
|
+
return new Date(date).toString(); // "Tue Nov 03 2020 11:09:10 GMT+0530 (India Standard Time)"
|
|
6322
|
+
case "TIME":
|
|
6323
|
+
return new Date(date).toLocaleTimeString(); // "11:15:39 AM"
|
|
6324
|
+
case "TIME_FULL":
|
|
6325
|
+
return new Date(date).toTimeString(); // "11:15:26 GMT+0530 (India Standard Time)"
|
|
6326
|
+
default:
|
|
6327
|
+
return new Date(date).toLocaleDateString(); // "11/3/2020"
|
|
6328
|
+
}
|
|
6329
|
+
});
|
|
6330
|
+
handlebars.registerHelper('DatePipe', function (date, formate) {
|
|
6331
|
+
if (date) {
|
|
6332
|
+
switch (formate) {
|
|
6333
|
+
case "DATE":
|
|
6334
|
+
return new Date(date).toLocaleDateString(); // "11/3/2020"
|
|
6335
|
+
case "DATE_TIME":
|
|
6336
|
+
return new Date(date).toLocaleString(); // "11/3/2020, 11:09:23 AM"
|
|
6337
|
+
case "DATE_TIME_FULL":
|
|
6338
|
+
return new Date(date).toString(); // "Tue Nov 03 2020 11:09:10 GMT+0530 (India Standard Time)"
|
|
6339
|
+
case "TIME":
|
|
6340
|
+
return new Date(date).toLocaleTimeString(); // "11:15:39 AM"
|
|
6341
|
+
case "TIME_FULL":
|
|
6342
|
+
return new Date(date).toTimeString(); // "11:15:26 GMT+0530 (India Standard Time)"
|
|
6343
|
+
default:
|
|
6344
|
+
return new Date(date).toLocaleDateString(); // "11/3/2020"
|
|
6345
|
+
}
|
|
6346
|
+
}
|
|
6347
|
+
else {
|
|
6348
|
+
return date;
|
|
6349
|
+
}
|
|
6350
|
+
});
|
|
6351
|
+
handlebars.registerHelper('AddtionalDatePipe', function (curdate, day, formate) {
|
|
6352
|
+
if (curdate && day) {
|
|
6353
|
+
var date = new Date(curdate);
|
|
6354
|
+
date.setDate(date.getDate() + parseInt(day));
|
|
6355
|
+
if (formate) {
|
|
6356
|
+
switch (formate) {
|
|
6357
|
+
case "DATE":
|
|
6358
|
+
return new Date(date).toLocaleDateString(); // "11/3/2020"
|
|
6359
|
+
case "DATE_TIME":
|
|
6360
|
+
return new Date(date).toLocaleString(); // "11/3/2020, 11:09:23 AM"
|
|
6361
|
+
case "DATE_TIME_FULL":
|
|
6362
|
+
return new Date(date).toString(); // "Tue Nov 03 2020 11:09:10 GMT+0530 (India Standard Time)"
|
|
6363
|
+
case "TIME":
|
|
6364
|
+
return new Date(date).toLocaleTimeString(); // "11:15:39 AM"
|
|
6365
|
+
case "TIME_FULL":
|
|
6366
|
+
return new Date(date).toTimeString(); // "11:15:26 GMT+0530 (India Standard Time)"
|
|
6367
|
+
default:
|
|
6368
|
+
return new Date(date).toLocaleDateString(); // "11/3/2020"
|
|
6369
|
+
}
|
|
6370
|
+
}
|
|
6371
|
+
else {
|
|
6372
|
+
return date;
|
|
6373
|
+
}
|
|
6374
|
+
}
|
|
6375
|
+
else {
|
|
6376
|
+
return date;
|
|
6377
|
+
}
|
|
6378
|
+
});
|
|
6379
|
+
handlebars.registerHelper('SubDatePipe', function (curdate, day, formate) {
|
|
6380
|
+
if (curdate && day) {
|
|
6381
|
+
var date = new Date(curdate);
|
|
6382
|
+
date.setDate(date.getDate() - parseInt(day));
|
|
6383
|
+
if (formate) {
|
|
6384
|
+
switch (formate) {
|
|
6385
|
+
case "DATE":
|
|
6386
|
+
return new Date(date).toLocaleDateString(); // "11/3/2020"
|
|
6387
|
+
case "DATE_TIME":
|
|
6388
|
+
return new Date(date).toLocaleString(); // "11/3/2020, 11:09:23 AM"
|
|
6389
|
+
case "DATE_TIME_FULL":
|
|
6390
|
+
return new Date(date).toString(); // "Tue Nov 03 2020 11:09:10 GMT+0530 (India Standard Time)"
|
|
6391
|
+
case "TIME":
|
|
6392
|
+
return new Date(date).toLocaleTimeString(); // "11:15:39 AM"
|
|
6393
|
+
case "TIME_FULL":
|
|
6394
|
+
return new Date(date).toTimeString(); // "11:15:26 GMT+0530 (India Standard Time)"
|
|
6395
|
+
default:
|
|
6396
|
+
return new Date(date).toLocaleDateString(); // "11/3/2020"
|
|
6397
|
+
}
|
|
6398
|
+
}
|
|
6399
|
+
else {
|
|
6400
|
+
return date;
|
|
6401
|
+
}
|
|
6402
|
+
}
|
|
6403
|
+
else {
|
|
6404
|
+
return date;
|
|
6405
|
+
}
|
|
6406
|
+
});
|
|
6407
|
+
/* #endregion */
|
|
6408
|
+
/* #region Arithmetic */
|
|
6409
|
+
handlebars.registerHelper('Addition', function (value, value2) {
|
|
6410
|
+
let val = value + value2;
|
|
6411
|
+
return val;
|
|
6412
|
+
});
|
|
6413
|
+
handlebars.registerHelper('Subtraction', function (value, value2) {
|
|
6414
|
+
let val = value - value2;
|
|
6415
|
+
return val;
|
|
6416
|
+
});
|
|
6417
|
+
handlebars.registerHelper('Multiplication', function (value, value2) {
|
|
6418
|
+
if (isNaN(value) && isNaN(value2)) {
|
|
6419
|
+
let val = value * value2;
|
|
6420
|
+
return val;
|
|
6421
|
+
}
|
|
6422
|
+
else {
|
|
6423
|
+
return "";
|
|
6424
|
+
}
|
|
6425
|
+
});
|
|
6426
|
+
handlebars.registerHelper('Division', function (value, value2) {
|
|
6427
|
+
if (isNaN(value) && isNaN(value2)) {
|
|
6428
|
+
let val = value / value2;
|
|
6429
|
+
return val;
|
|
6430
|
+
}
|
|
6431
|
+
else {
|
|
6432
|
+
return "";
|
|
6433
|
+
}
|
|
6434
|
+
});
|
|
6435
|
+
handlebars.registerHelper('Remainder', function (value, value2) {
|
|
6436
|
+
if (isNaN(value) && isNaN(value2)) {
|
|
6437
|
+
let val = value % value2;
|
|
6438
|
+
return val;
|
|
6439
|
+
}
|
|
6440
|
+
else {
|
|
6441
|
+
return "";
|
|
6442
|
+
}
|
|
6443
|
+
});
|
|
6444
|
+
handlebars.registerHelper('lengthGreaterThen0', function (value) {
|
|
6445
|
+
if (value && Array.isArray(value) && value.length > 0)
|
|
6446
|
+
return true;
|
|
6447
|
+
else
|
|
6448
|
+
return false;
|
|
6449
|
+
});
|
|
6450
|
+
handlebars.registerHelper('isNullOrUndefined', function (value) {
|
|
6451
|
+
if (value == null || value == undefined)
|
|
6452
|
+
return true;
|
|
6453
|
+
else
|
|
6454
|
+
return false;
|
|
6455
|
+
});
|
|
6456
|
+
handlebars.registerHelper('isEqual', function (value, value2) {
|
|
6457
|
+
return value == value2 ? true : false;
|
|
6458
|
+
});
|
|
6459
|
+
/* #endregion */
|
|
6460
|
+
handlebars.registerHelper('SetFieldByLang', function (Lang, value, value2) {
|
|
6461
|
+
return Lang == "Ar" ? value2 : value;
|
|
6462
|
+
});
|
|
6463
|
+
}
|
|
6464
|
+
|
|
6237
6465
|
class EntityDynamicViewComponent {
|
|
6238
6466
|
constructor(entityTypeSetup, router, fb, route, globalService) {
|
|
6239
6467
|
this.entityTypeSetup = entityTypeSetup;
|
|
@@ -6267,7 +6495,8 @@ class EntityDynamicViewComponent {
|
|
|
6267
6495
|
this.translatePipe = new TranslatePipe(this.globalService);
|
|
6268
6496
|
}
|
|
6269
6497
|
ngOnInit() {
|
|
6270
|
-
|
|
6498
|
+
this._handlebars = handlebars;
|
|
6499
|
+
registerHandlebarHelperMethods(this._handlebars);
|
|
6271
6500
|
this.getEntityForm();
|
|
6272
6501
|
}
|
|
6273
6502
|
closePopup() {
|
|
@@ -7015,26 +7244,25 @@ EntityDynamicViewComponent.propDecorators = {
|
|
|
7015
7244
|
PageGroupValues: [{ type: Input }],
|
|
7016
7245
|
ParameterData: [{ type: Input }]
|
|
7017
7246
|
};
|
|
7018
|
-
function registerHandlebarHelperMethodsNew() {
|
|
7019
|
-
debugger;
|
|
7247
|
+
function registerHandlebarHelperMethodsNew(handlebarObj) {
|
|
7020
7248
|
console.log("registerHandlebarHelperMethodsNew");
|
|
7021
|
-
registerHelper('isNotNullAndNotUndefined', function (value) {
|
|
7249
|
+
handlebarObj.registerHelper('isNotNullAndNotUndefined', function (value) {
|
|
7022
7250
|
if (value == null || value == undefined)
|
|
7023
7251
|
return false;
|
|
7024
7252
|
else
|
|
7025
7253
|
return true;
|
|
7026
7254
|
});
|
|
7027
|
-
registerHelper('MoneyPipe', function (value, prefix = '$', count = 2) {
|
|
7255
|
+
handlebarObj.registerHelper('MoneyPipe', function (value, prefix = '$', count = 2) {
|
|
7028
7256
|
if (isNaN(parseFloat(value))) {
|
|
7029
7257
|
return null;
|
|
7030
7258
|
}
|
|
7031
7259
|
else
|
|
7032
7260
|
return `${prefix}${parseFloat(value).toFixed(count)}`; // $2312.00
|
|
7033
7261
|
});
|
|
7034
|
-
registerHelper('BoolPile', function (value) {
|
|
7262
|
+
handlebarObj.registerHelper('BoolPile', function (value) {
|
|
7035
7263
|
return value == true ? "YES" : "NO";
|
|
7036
7264
|
});
|
|
7037
|
-
registerHelper('NillPipe', function (value, cond) {
|
|
7265
|
+
handlebarObj.registerHelper('NillPipe', function (value, cond) {
|
|
7038
7266
|
if (value) {
|
|
7039
7267
|
return value;
|
|
7040
7268
|
}
|
|
@@ -7047,7 +7275,7 @@ function registerHandlebarHelperMethodsNew() {
|
|
|
7047
7275
|
}
|
|
7048
7276
|
});
|
|
7049
7277
|
/* #region Date */
|
|
7050
|
-
registerHelper('TodayDatePipe', function (formate) {
|
|
7278
|
+
handlebarObj.registerHelper('TodayDatePipe', function (formate) {
|
|
7051
7279
|
let date = new Date();
|
|
7052
7280
|
console.log('TodayDatePipe', date);
|
|
7053
7281
|
switch (formate) {
|
|
@@ -7065,8 +7293,7 @@ function registerHandlebarHelperMethodsNew() {
|
|
|
7065
7293
|
return new Date(date).toLocaleDateString(); // "11/3/2020"
|
|
7066
7294
|
}
|
|
7067
7295
|
});
|
|
7068
|
-
registerHelper('AddtionalDatePipe', function (curdate, day, formate) {
|
|
7069
|
-
debugger;
|
|
7296
|
+
handlebarObj.registerHelper('AddtionalDatePipe', function (curdate, day, formate) {
|
|
7070
7297
|
if (curdate && day) {
|
|
7071
7298
|
var date = new Date(curdate);
|
|
7072
7299
|
date.setDate(date.getDate() + parseInt(day));
|
|
@@ -7094,7 +7321,7 @@ function registerHandlebarHelperMethodsNew() {
|
|
|
7094
7321
|
return date;
|
|
7095
7322
|
}
|
|
7096
7323
|
});
|
|
7097
|
-
registerHelper('SubDatePipe', function (curdate, day, formate) {
|
|
7324
|
+
handlebarObj.registerHelper('SubDatePipe', function (curdate, day, formate) {
|
|
7098
7325
|
if (curdate && day) {
|
|
7099
7326
|
var date = new Date(curdate);
|
|
7100
7327
|
date.setDate(date.getDate() - parseInt(day));
|
|
@@ -7124,16 +7351,15 @@ function registerHandlebarHelperMethodsNew() {
|
|
|
7124
7351
|
});
|
|
7125
7352
|
/* #endregion */
|
|
7126
7353
|
/* #region Arithmetic */
|
|
7127
|
-
registerHelper('Addition', function (value, value2) {
|
|
7128
|
-
debugger;
|
|
7354
|
+
handlebarObj.registerHelper('Addition', function (value, value2) {
|
|
7129
7355
|
let val = value + value2;
|
|
7130
7356
|
return val;
|
|
7131
7357
|
});
|
|
7132
|
-
registerHelper('Subtraction', function (value, value2) {
|
|
7358
|
+
handlebarObj.registerHelper('Subtraction', function (value, value2) {
|
|
7133
7359
|
let val = value - value2;
|
|
7134
7360
|
return val;
|
|
7135
7361
|
});
|
|
7136
|
-
registerHelper('Multiplication', function (value, value2) {
|
|
7362
|
+
handlebarObj.registerHelper('Multiplication', function (value, value2) {
|
|
7137
7363
|
if (isNaN(value) && isNaN(value2)) {
|
|
7138
7364
|
let val = value * value2;
|
|
7139
7365
|
return val;
|
|
@@ -7142,7 +7368,7 @@ function registerHandlebarHelperMethodsNew() {
|
|
|
7142
7368
|
return "";
|
|
7143
7369
|
}
|
|
7144
7370
|
});
|
|
7145
|
-
registerHelper('Division', function (value, value2) {
|
|
7371
|
+
handlebarObj.registerHelper('Division', function (value, value2) {
|
|
7146
7372
|
if (isNaN(value) && isNaN(value2)) {
|
|
7147
7373
|
let val = value / value2;
|
|
7148
7374
|
return val;
|
|
@@ -7151,7 +7377,7 @@ function registerHandlebarHelperMethodsNew() {
|
|
|
7151
7377
|
return "";
|
|
7152
7378
|
}
|
|
7153
7379
|
});
|
|
7154
|
-
registerHelper('Remainder', function (value, value2) {
|
|
7380
|
+
handlebarObj.registerHelper('Remainder', function (value, value2) {
|
|
7155
7381
|
if (isNaN(value) && isNaN(value2)) {
|
|
7156
7382
|
let val = value % value2;
|
|
7157
7383
|
return val;
|
|
@@ -7160,25 +7386,23 @@ function registerHandlebarHelperMethodsNew() {
|
|
|
7160
7386
|
return "";
|
|
7161
7387
|
}
|
|
7162
7388
|
});
|
|
7163
|
-
registerHelper('lengthGreaterThen0', function (value) {
|
|
7389
|
+
handlebarObj.registerHelper('lengthGreaterThen0', function (value) {
|
|
7164
7390
|
if (value && Array.isArray(value) && value.length > 0)
|
|
7165
7391
|
return true;
|
|
7166
7392
|
else
|
|
7167
7393
|
return false;
|
|
7168
7394
|
});
|
|
7169
|
-
registerHelper('isNullOrUndefined', function (value) {
|
|
7395
|
+
handlebarObj.registerHelper('isNullOrUndefined', function (value) {
|
|
7170
7396
|
if (value == null || value == undefined)
|
|
7171
7397
|
return true;
|
|
7172
7398
|
else
|
|
7173
7399
|
return false;
|
|
7174
7400
|
});
|
|
7175
|
-
registerHelper('isEqual', function (value, value2) {
|
|
7176
|
-
debugger;
|
|
7401
|
+
handlebarObj.registerHelper('isEqual', function (value, value2) {
|
|
7177
7402
|
return value == value2 ? true : false;
|
|
7178
7403
|
});
|
|
7179
7404
|
/* #endregion */
|
|
7180
|
-
registerHelper('SetFieldByLang', function (Lang, value, value2) {
|
|
7181
|
-
debugger;
|
|
7405
|
+
handlebarObj.registerHelper('SetFieldByLang', function (Lang, value, value2) {
|
|
7182
7406
|
return Lang == "Ar" ? value2 : value;
|
|
7183
7407
|
});
|
|
7184
7408
|
}
|
|
@@ -7347,11 +7571,16 @@ class EntityDynamicFieldComponent {
|
|
|
7347
7571
|
if (jsonItem.isDynamic && jsonItem.api && jsonItem.api.url) {
|
|
7348
7572
|
const url = jsonItem.api.url;
|
|
7349
7573
|
this.entityTypeSetup.getDyamicUrl(url).subscribe((ress) => {
|
|
7574
|
+
var _a;
|
|
7350
7575
|
let res = ress;
|
|
7351
|
-
if (ress.entities)
|
|
7576
|
+
if (ress && (ress === null || ress === void 0 ? void 0 : ress.entities))
|
|
7352
7577
|
res = ress.entities;
|
|
7353
|
-
if (ress.Data)
|
|
7578
|
+
if (ress && (ress === null || ress === void 0 ? void 0 : ress.Data))
|
|
7354
7579
|
res = ress.Data;
|
|
7580
|
+
if (ress && (ress === null || ress === void 0 ? void 0 : ress.templates))
|
|
7581
|
+
res = ress.templates;
|
|
7582
|
+
if (ress && (ress === null || ress === void 0 ? void 0 : ress.Data) && ((_a = ress === null || ress === void 0 ? void 0 : ress.Data) === null || _a === void 0 ? void 0 : _a.Data))
|
|
7583
|
+
res = ress.Data.Data;
|
|
7355
7584
|
if (res && Array.isArray(res) && res.length > 0) {
|
|
7356
7585
|
obx.next(res.map((x) => Object.assign({
|
|
7357
7586
|
Id: x[jsonItem.api.valueField],
|
|
@@ -7497,7 +7726,7 @@ class EntityDynamicFieldComponent {
|
|
|
7497
7726
|
/* #endregion */
|
|
7498
7727
|
restData.QueryStrings.forEach((query) => {
|
|
7499
7728
|
if (query.Type == 'FieldValue') {
|
|
7500
|
-
if (!_formvalue[query.Value]) {
|
|
7729
|
+
if (!_formvalue[query.Value] && query.IsNullable != true) {
|
|
7501
7730
|
// Swal.fire('please fill ' + query.Value, 'warning');
|
|
7502
7731
|
Swal.fire({
|
|
7503
7732
|
title: this.translatePipe.transform('please fill ' + query.Value),
|
|
@@ -7512,13 +7741,16 @@ class EntityDynamicFieldComponent {
|
|
|
7512
7741
|
}
|
|
7513
7742
|
this.entityTypeSetup.dynamicAPi(jsonItem.rest, _formvalue, searchCriteria, SearchText, restData.Havecriteria)
|
|
7514
7743
|
.subscribe((ress) => {
|
|
7744
|
+
var _a;
|
|
7515
7745
|
let res = ress;
|
|
7516
|
-
if (ress.entities)
|
|
7746
|
+
if (ress && (ress === null || ress === void 0 ? void 0 : ress.entities))
|
|
7517
7747
|
res = ress.entities;
|
|
7518
|
-
if (ress.Data)
|
|
7748
|
+
if (ress && (ress === null || ress === void 0 ? void 0 : ress.Data))
|
|
7519
7749
|
res = ress.Data;
|
|
7520
|
-
if (ress.templates)
|
|
7750
|
+
if (ress && (ress === null || ress === void 0 ? void 0 : ress.templates))
|
|
7521
7751
|
res = ress.templates;
|
|
7752
|
+
if (ress && (ress === null || ress === void 0 ? void 0 : ress.Data) && ((_a = ress === null || ress === void 0 ? void 0 : ress.Data) === null || _a === void 0 ? void 0 : _a.Data))
|
|
7753
|
+
res = ress.Data.Data;
|
|
7522
7754
|
if (RequestorField) {
|
|
7523
7755
|
let _Sitem = res.filter((x) => x[restData.valueField] == this.RequestorFieldValue);
|
|
7524
7756
|
this.fieldsList.map((x) => {
|
|
@@ -7543,11 +7775,16 @@ class EntityDynamicFieldComponent {
|
|
|
7543
7775
|
else if (jsonItem.isDynamic && jsonItem.api && jsonItem.api.url) {
|
|
7544
7776
|
const url = jsonItem.api.url;
|
|
7545
7777
|
this.entityTypeSetup.getDyamicUrl(url).subscribe((ress) => {
|
|
7778
|
+
var _a;
|
|
7546
7779
|
let res = ress;
|
|
7547
|
-
if (ress.entities)
|
|
7780
|
+
if (ress && (ress === null || ress === void 0 ? void 0 : ress.entities))
|
|
7548
7781
|
res = ress.entities;
|
|
7549
|
-
if (ress.Data)
|
|
7782
|
+
if (ress && (ress === null || ress === void 0 ? void 0 : ress.Data))
|
|
7550
7783
|
res = ress.Data;
|
|
7784
|
+
if (ress && (ress === null || ress === void 0 ? void 0 : ress.templates))
|
|
7785
|
+
res = ress.templates;
|
|
7786
|
+
if (ress && (ress === null || ress === void 0 ? void 0 : ress.Data) && ((_a = ress === null || ress === void 0 ? void 0 : ress.Data) === null || _a === void 0 ? void 0 : _a.Data))
|
|
7787
|
+
res = ress.Data.Data;
|
|
7551
7788
|
if (res && Array.isArray(res) && res.length > 0) {
|
|
7552
7789
|
obx.next(res.map((x) => Object.assign({
|
|
7553
7790
|
Id: x[jsonItem.api.valueField],
|
|
@@ -7808,11 +8045,16 @@ class EntityDynamicFieldComponent {
|
|
|
7808
8045
|
this.entityTypeSetup
|
|
7809
8046
|
.dynamicAPi(jsonItem.rest, _formvalue)
|
|
7810
8047
|
.subscribe((ress) => {
|
|
8048
|
+
var _a;
|
|
7811
8049
|
let res = ress;
|
|
7812
|
-
if (ress.entities)
|
|
8050
|
+
if (ress && (ress === null || ress === void 0 ? void 0 : ress.entities))
|
|
7813
8051
|
res = ress.entities;
|
|
7814
|
-
if (ress.Data)
|
|
8052
|
+
if (ress && (ress === null || ress === void 0 ? void 0 : ress.Data))
|
|
7815
8053
|
res = ress.Data;
|
|
8054
|
+
if (ress && (ress === null || ress === void 0 ? void 0 : ress.templates))
|
|
8055
|
+
res = ress.templates;
|
|
8056
|
+
if (ress && (ress === null || ress === void 0 ? void 0 : ress.Data) && ((_a = ress === null || ress === void 0 ? void 0 : ress.Data) === null || _a === void 0 ? void 0 : _a.Data))
|
|
8057
|
+
res = ress.Data.Data;
|
|
7816
8058
|
if (res && Array.isArray(res) && res.length > 0) {
|
|
7817
8059
|
obx.next(res.map((x) => Object.assign({
|
|
7818
8060
|
Id: x[jsonItem.rest.valueField],
|
|
@@ -7833,11 +8075,16 @@ class EntityDynamicFieldComponent {
|
|
|
7833
8075
|
else if (jsonItem.isDynamic && jsonItem.api && jsonItem.api.url) {
|
|
7834
8076
|
const url = jsonItem.api.url;
|
|
7835
8077
|
this.entityTypeSetup.getDyamicUrl(url).subscribe((ress) => {
|
|
8078
|
+
var _a;
|
|
7836
8079
|
let res = ress;
|
|
7837
|
-
if (ress.entities)
|
|
8080
|
+
if (ress && (ress === null || ress === void 0 ? void 0 : ress.entities))
|
|
7838
8081
|
res = ress.entities;
|
|
7839
|
-
if (ress.Data)
|
|
8082
|
+
if (ress && (ress === null || ress === void 0 ? void 0 : ress.Data))
|
|
7840
8083
|
res = ress.Data;
|
|
8084
|
+
if (ress && (ress === null || ress === void 0 ? void 0 : ress.templates))
|
|
8085
|
+
res = ress.templates;
|
|
8086
|
+
if (ress && (ress === null || ress === void 0 ? void 0 : ress.Data) && ((_a = ress === null || ress === void 0 ? void 0 : ress.Data) === null || _a === void 0 ? void 0 : _a.Data))
|
|
8087
|
+
res = ress.Data.Data;
|
|
7841
8088
|
if (res && Array.isArray(res) && res.length > 0) {
|
|
7842
8089
|
obx.next(res.map((x) => Object.assign({
|
|
7843
8090
|
Id: x[jsonItem.api.valueField],
|