gamma-app-controller 1.1.20 → 1.1.21

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.
@@ -8,7 +8,7 @@ import * as i1 from '@angular/platform-browser';
8
8
  import * as i2 from '@angular/material/icon';
9
9
  import { MatIconModule } from '@angular/material/icon';
10
10
  import { confirm } from 'devextreme/ui/dialog';
11
- import { throwError, map, catchError, BehaviorSubject } from 'rxjs';
11
+ import { throwError, BehaviorSubject, map, catchError } from 'rxjs';
12
12
  import moment$1 from 'moment';
13
13
  import * as i1$1 from '@angular/common/http';
14
14
  import { HttpHeaders } from '@angular/common/http';
@@ -1327,1207 +1327,1181 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
1327
1327
 
1328
1328
  const APP_ENVIRONMENT = new InjectionToken('APP_ENVIRONMENT');
1329
1329
 
1330
- class ExceptionConfigsService extends AppHttpService {
1330
+ class ApplicationContentService extends AppHttpService {
1331
1331
  constructor(httpClient, environment) {
1332
1332
  super(httpClient);
1333
1333
  this.httpClient = httpClient;
1334
1334
  this.environment = environment;
1335
+ this.kpiFilter = new BehaviorSubject([]);
1336
+ this.userkpiFilter$ = this.kpiFilter.asObservable();
1337
+ this.datasets = new BehaviorSubject([]);
1338
+ this.updateDatssets$ = this.datasets.asObservable();
1335
1339
  }
1336
- saveFileSequenceAnalyzerGroup(body) {
1340
+ getFilterForKpi(pins) {
1341
+ this.kpiFilter.next(pins);
1342
+ }
1343
+ getCurrentKpiFilterValue() {
1344
+ return this.kpiFilter.getValue();
1345
+ }
1346
+ setCurrentDatasetValue(data) {
1347
+ return this.datasets.next(data);
1348
+ }
1349
+ getDataSet() {
1350
+ const apiUrl = '/assets/api-data/data-set.json';
1351
+ return this.http.get(apiUrl, { withCredentials: true }).pipe(map((response) => {
1352
+ return response;
1353
+ }), catchError(this.handleError));
1354
+ }
1355
+ getComponentDataConfigSet() {
1356
+ const apiUrl = '/assets/api-data/component_config.json';
1357
+ return this.http.get(apiUrl, { withCredentials: true }).pipe(map((response) => {
1358
+ return response;
1359
+ }), catchError(this.handleError));
1360
+ }
1361
+ listColumnEnrichmentFunctions() {
1362
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi/listColumnEnrichmentFunctions';
1337
1363
  return this.http
1338
- .post(this.environment.appUrl + this.environment.apiVersion + '/settings/operations/saveFileSequenceAnalyzerGroup', JSON.stringify(body), this.options)
1364
+ .post(apiUrl, this.options)
1339
1365
  .pipe(map((response) => {
1340
1366
  return response;
1341
1367
  }), catchError(this.handleError));
1342
1368
  }
1343
- editFileSequenceAnalyzerGroup(body) {
1369
+ validateAggregatePaginatedQuery(transformedObject) {
1370
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi/validateAggregatePaginatedQuery';
1344
1371
  return this.http
1345
- .post(this.environment.appUrl + this.environment.apiVersion + '/settings/operations/editFileSequenceAnalyzerGroup', JSON.stringify(body), this.options)
1372
+ .post(apiUrl, JSON.stringify(transformedObject), this.options)
1346
1373
  .pipe(map((response) => {
1347
1374
  return response;
1348
1375
  }), catchError(this.handleError));
1349
1376
  }
1350
- getCdrBrowserOperations() {
1377
+ getKpiBrowserConfigById(id) {
1378
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getKpiBrowserConfigById?id=' + id;
1351
1379
  return this.http
1352
- .get(this.environment.appUrl + this.environment.apiVersion + '/search/getCdrBrowserOperations', { withCredentials: true })
1380
+ .get(apiUrl, { withCredentials: true })
1353
1381
  .pipe(map((response) => {
1354
1382
  return response;
1355
1383
  }), catchError(this.handleError));
1356
1384
  }
1357
- getAppSqlFunctionList() {
1358
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/app-setting/getAppSqlFunctionList';
1385
+ getData(body, requestID) {
1386
+ return this.http
1387
+ .post(this.environment.appUrl + this.environment.apiVersion + requestID, JSON.stringify(body), this.options)
1388
+ .pipe(map((response) => {
1389
+ return response;
1390
+ }), catchError(this.handleError));
1391
+ }
1392
+ getSimpleApiPostRequest(requestApi, body) {
1393
+ return this.http
1394
+ .post(this.environment.appUrl + this.environment.apiVersion + requestApi, JSON.stringify(body), this.options)
1395
+ .pipe(map((response) => {
1396
+ return response;
1397
+ }), catchError(this.handleError));
1398
+ }
1399
+ getSimpleApiGetRequest(requestApi) {
1400
+ return this.http
1401
+ .get(this.environment.appUrl + this.environment.apiVersion + requestApi, { withCredentials: true })
1402
+ .pipe(map((response) => {
1403
+ return response;
1404
+ }), catchError(this.handleError));
1405
+ }
1406
+ getJsonDatasetPayload(requestApi) {
1407
+ return this.http
1408
+ .get(this.environment.appUrl + this.environment.apiVersion + requestApi, { withCredentials: true })
1409
+ .pipe(map((response) => {
1410
+ return response;
1411
+ }), catchError(this.handleError));
1412
+ }
1413
+ genericSqlQueryResponse(requestApi, body) {
1414
+ return this.http
1415
+ .post(this.environment.appUrl + this.environment.apiVersion + requestApi, JSON.stringify(body), this.options)
1416
+ .pipe(map((response) => {
1417
+ return response;
1418
+ }), catchError(this.handleError));
1419
+ }
1420
+ createAppDataset(body) {
1421
+ return this.http
1422
+ .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/createAppDataset', JSON.stringify(body), this.options)
1423
+ .pipe(map((response) => {
1424
+ return response;
1425
+ }), catchError(this.handleError));
1426
+ }
1427
+ updateAppDatasetConfig(body) {
1428
+ return this.http
1429
+ .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/updateAppDatasetConfig', JSON.stringify(body), this.options)
1430
+ .pipe(map((response) => {
1431
+ return response;
1432
+ }), catchError(this.handleError));
1433
+ }
1434
+ deleteAppDatasetConfig(datasetId) {
1435
+ return this.http
1436
+ .delete(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/deleteAppDatasetConfig/' + datasetId, this.options)
1437
+ .pipe(map((response) => {
1438
+ return response;
1439
+ }), catchError(this.handleError));
1440
+ }
1441
+ getAppDatasetConfigs() {
1442
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppDatasetConfigs';
1359
1443
  return this.http
1360
1444
  .get(apiUrl, { withCredentials: true })
1361
1445
  .pipe(map((response) => {
1362
1446
  return response;
1363
1447
  }), catchError(this.handleError));
1364
1448
  }
1365
- listFileSequenceAnalyzerGroups() {
1366
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/settings/operations/listFileSequenceAnalyzerGroups';
1449
+ getAppDatasetConfig(datasetId) {
1450
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppDatasetConfig?datasetId=' + datasetId;
1367
1451
  return this.http
1368
1452
  .get(apiUrl, { withCredentials: true })
1369
1453
  .pipe(map((response) => {
1370
1454
  return response;
1371
1455
  }), catchError(this.handleError));
1372
1456
  }
1373
- deleteFileSequenceAnalyzerGroup(configid) {
1457
+ createAppViewConfig(body) {
1374
1458
  return this.http
1375
- .delete(this.environment.appUrl + this.environment.apiVersion + "/settings/operations/deleteFileSequenceAnalyzerGroup/" + configid, { withCredentials: true })
1459
+ .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/createAppViewConfig', JSON.stringify(body), this.options)
1376
1460
  .pipe(map((response) => {
1377
1461
  return response;
1378
1462
  }), catchError(this.handleError));
1379
1463
  }
1380
- activateFileSequenceAnalyzerGroup(configid) {
1464
+ updateAppViewConfig(body) {
1381
1465
  return this.http
1382
- .get(this.environment.appUrl + this.environment.apiVersion + "/settings/operations/activateFileSequenceAnalyzerGroup?configId=" + configid, { withCredentials: true })
1466
+ .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/updateAppViewConfig', JSON.stringify(body), this.options)
1383
1467
  .pipe(map((response) => {
1384
1468
  return response;
1385
1469
  }), catchError(this.handleError));
1386
1470
  }
1387
- deactivateFileSequenceAnalyzerGroup(configid) {
1471
+ getAppViewConfigs() {
1472
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppViewConfigs';
1388
1473
  return this.http
1389
- .get(this.environment.appUrl + this.environment.apiVersion + "/settings/operations/deactivateFileSequenceAnalyzerGroup?configId=" + configid, { withCredentials: true })
1474
+ .get(apiUrl, { withCredentials: true })
1390
1475
  .pipe(map((response) => {
1391
1476
  return response;
1392
1477
  }), catchError(this.handleError));
1393
1478
  }
1394
- updateFileSequenceAnalyzerJobs() {
1479
+ getAppViewConfig(viewId) {
1480
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppViewConfig?viewId=' + viewId;
1395
1481
  return this.http
1396
- .get(this.environment.appUrl + this.environment.apiVersion + "/settings/operations/updateFileSequenceAnalyzerJobs", { withCredentials: true })
1482
+ .get(apiUrl, { withCredentials: true })
1397
1483
  .pipe(map((response) => {
1398
1484
  return response;
1399
1485
  }), catchError(this.handleError));
1400
1486
  }
1401
- getAppDatasource() {
1487
+ deleteAppViewConfig(datasetId) {
1402
1488
  return this.http
1403
- .get(this.environment.appUrl + this.environment.apiVersion + '/operations/getAppDatasource')
1489
+ .delete(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/deleteAppViewConfig/' + datasetId, this.options)
1404
1490
  .pipe(map((response) => {
1405
1491
  return response;
1406
1492
  }), catchError(this.handleError));
1407
1493
  }
1408
- }
1409
- ExceptionConfigsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ExceptionConfigsService, deps: [{ token: i1$1.HttpClient }, { token: APP_ENVIRONMENT }], target: i0.ɵɵFactoryTarget.Injectable });
1410
- ExceptionConfigsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ExceptionConfigsService, providedIn: "root" });
1411
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ExceptionConfigsService, decorators: [{
1412
- type: Injectable,
1413
- args: [{
1414
- providedIn: "root"
1415
- }]
1416
- }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: undefined, decorators: [{
1417
- type: Inject,
1418
- args: [APP_ENVIRONMENT]
1419
- }] }]; } });
1420
-
1421
- class LoadingComponent$1 {
1422
- constructor() {
1423
- this.showLoadingModal = true;
1494
+ createAppFilterConfig(body) {
1495
+ return this.http
1496
+ .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/createAppFilterConfig', JSON.stringify(body), this.options)
1497
+ .pipe(map((response) => {
1498
+ return response;
1499
+ }), catchError(this.handleError));
1424
1500
  }
1425
- ngOnInit() {
1501
+ editAppFilterConfig(body) {
1502
+ return this.http
1503
+ .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/editAppFilterConfig', JSON.stringify(body), this.options)
1504
+ .pipe(map((response) => {
1505
+ return response;
1506
+ }), catchError(this.handleError));
1426
1507
  }
1427
- }
1428
- LoadingComponent$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LoadingComponent$1, deps: [], target: i0.ɵɵFactoryTarget.Component });
1429
- LoadingComponent$1.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: LoadingComponent$1, selector: "app-loading", ngImport: i0, template: "<!-- <div class=\"modal\" id=\"loading-modal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\" style=\"display: none;\">\n <div class=\"modal-dialog\" role=\"document\" style=\"max-width: 600px;margin: 8.75rem auto;\">\n <div class=\"modal-content\">\n <div class=\"modal-body\" style=\"padding: 20px;\">\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">&times;</span>\n </button> Loading. Please Wait...\n <div class=\"progress\" style=\"height: 25px\">\n <div class=\"progress-bar progress-bar-striped progress-bar-animated bg-info\" role=\"progressbar\" style=\"width: 100%\" aria-valuenow=\"50\" aria-valuemin=\"0\" aria-valuemax=\"100\"></div>\n </div>\n </div>\n </div>\n </div>\n</div> -->\n<!-- <div class=\"loader-background \">\n <div class=\"loader\"></div>\n</div> -->\n<div class=\"popup\">\n <div class=\"popup__content\">\n <div class=\"loader\"></div>\n </div>\n</div>", styles: [".popup{height:100%;width:100%;position:fixed;top:0;left:0;background-color:#33333386;z-index:999}.popup__content{display:grid;place-items:center;position:relative;height:30rem;width:75%;top:50%;left:50%;transform:translate(-50%,-50%)}.loader{border:16px solid #f3f3f3;border-top:16px solid #ccc;border-radius:100%;width:120px;height:120px;animation:spin 2s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] });
1430
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LoadingComponent$1, decorators: [{
1431
- type: Component,
1432
- args: [{ selector: 'app-loading', template: "<!-- <div class=\"modal\" id=\"loading-modal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\" style=\"display: none;\">\n <div class=\"modal-dialog\" role=\"document\" style=\"max-width: 600px;margin: 8.75rem auto;\">\n <div class=\"modal-content\">\n <div class=\"modal-body\" style=\"padding: 20px;\">\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">&times;</span>\n </button> Loading. Please Wait...\n <div class=\"progress\" style=\"height: 25px\">\n <div class=\"progress-bar progress-bar-striped progress-bar-animated bg-info\" role=\"progressbar\" style=\"width: 100%\" aria-valuenow=\"50\" aria-valuemin=\"0\" aria-valuemax=\"100\"></div>\n </div>\n </div>\n </div>\n </div>\n</div> -->\n<!-- <div class=\"loader-background \">\n <div class=\"loader\"></div>\n</div> -->\n<div class=\"popup\">\n <div class=\"popup__content\">\n <div class=\"loader\"></div>\n </div>\n</div>", styles: [".popup{height:100%;width:100%;position:fixed;top:0;left:0;background-color:#33333386;z-index:999}.popup__content{display:grid;place-items:center;position:relative;height:30rem;width:75%;top:50%;left:50%;transform:translate(-50%,-50%)}.loader{border:16px solid #f3f3f3;border-top:16px solid #ccc;border-radius:100%;width:120px;height:120px;animation:spin 2s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] }]
1433
- }], ctorParameters: function () { return []; } });
1434
-
1435
- class ExceptionOperationComponent {
1436
- constructor(commonService, service, toastr) {
1437
- this.commonService = commonService;
1438
- this.service = service;
1439
- this.toastr = toastr;
1440
- this.contentType = "create";
1441
- this.exceptionMainObject = {
1442
- configId: "",
1443
- configName: "",
1444
- datasource: "",
1445
- active: false,
1446
- analyzerType: "",
1447
- dbConfig: "",
1448
- tableName: "",
1449
- dataSelectionType: "",
1450
- fileNameAttributeName: "",
1451
- filterList: [{
1452
- "columnName": "",
1453
- "dataType": "",
1454
- "operator": "",
1455
- "windowFunctionName": "",
1456
- "value": "",
1457
- "dateFormat": "",
1458
- }],
1459
- patternList: [
1460
- {
1461
- "regex": "",
1462
- "sample": "?_??_?",
1463
- "fileAttributes": [],
1464
- "analyzerKeys": [],
1465
- "sequenceKey": "",
1466
- "dynamicArgs": {}
1467
- }
1468
- ]
1469
- };
1470
- this.analyzer_type = [{ key: "numeric_sequence", name: "Numeric Sequence" }, { key: "date_sequence", name: "Date Sequence" }];
1471
- this.isLoader = true;
1508
+ getAppFilterConfigs() {
1509
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppFilterConfigs';
1510
+ return this.http
1511
+ .get(apiUrl, { withCredentials: true })
1512
+ .pipe(map((response) => {
1513
+ return response;
1514
+ }), catchError(this.handleError));
1472
1515
  }
1473
- ngOnInit() {
1474
- this.getExceptionDataCongigs();
1475
- this.service.getAppSqlFunctionList().subscribe(data => {
1476
- this.functionNameContainer = data;
1477
- });
1478
- this.service.getCdrBrowserOperations().subscribe(data => {
1479
- this.operator_list = data;
1480
- });
1481
- this.service.getAppDatasource().subscribe(data => {
1482
- this.datasourcelist = (data['datasource']) ? data['datasource'] : data;
1483
- });
1516
+ deleteAppFilterConfig(filterId) {
1517
+ return this.http
1518
+ .delete(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/deleteAppFilterConfig/' + filterId, this.options)
1519
+ .pipe(map((response) => {
1520
+ return response;
1521
+ }), catchError(this.handleError));
1484
1522
  }
1485
- getExceptionDataCongigs() {
1486
- return new Promise((resolve) => {
1487
- this.service.listFileSequenceAnalyzerGroups().subscribe((data) => {
1488
- this.allExceptionConfigDataSource = data;
1489
- this.isLoader = false;
1490
- resolve();
1491
- });
1492
- });
1523
+ getMapData(body, requestID) {
1524
+ const apiUrl = '/assets/api-data/mapjson.json';
1525
+ return this.http
1526
+ .get(apiUrl, { withCredentials: true })
1527
+ .pipe(map((response) => {
1528
+ return response;
1529
+ }), catchError(this.handleError));
1493
1530
  }
1494
- editExceptionConfigConfig(data) {
1495
- this.contentType = "edit";
1496
- this.isExceptionConfigCreation = true;
1497
- this.exceptionMainObject = data;
1531
+ getDashBoardJson() {
1532
+ const apiUrl = '/assets/api-data/dashboard_lebara.json';
1533
+ return this.http.get(apiUrl, { withCredentials: true }).pipe(map((response) => {
1534
+ return response;
1535
+ }), catchError(this.handleError));
1498
1536
  }
1499
- createExceptionConfig() {
1500
- this.isExceptionConfigCreation = true;
1501
- this.exceptionMainObject = {
1502
- configId: "",
1503
- configName: "",
1504
- datasource: "",
1505
- active: true,
1506
- analyzerType: "",
1507
- dbConfig: "",
1508
- tableName: "",
1509
- dataSelectionType: "",
1510
- fileNameAttributeName: "",
1511
- filterList: [{
1512
- "columnName": "",
1513
- "dataType": "",
1514
- "operator": "",
1515
- "windowFunctionName": "",
1516
- "dateFormat": "",
1517
- "value": ""
1518
- }],
1519
- patternList: [
1520
- {
1521
- "regex": "",
1522
- "sample": "",
1523
- "fileAttributes": [],
1524
- "analyzerKeys": [],
1525
- "sequenceKey": "",
1526
- "dynamicArgs": {}
1527
- }
1528
- ]
1529
- };
1537
+ getAppPageConfigs() {
1538
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppPageConfigs';
1539
+ return this.http
1540
+ .get(apiUrl, { withCredentials: true })
1541
+ .pipe(map((response) => {
1542
+ return response;
1543
+ }), catchError(this.handleError));
1530
1544
  }
1531
- getCancleExceptionCreation() {
1532
- this.isExceptionConfigCreation = false;
1533
- this.exceptionMainObject = {
1534
- configId: "",
1535
- configName: "",
1536
- datasource: "",
1537
- active: true,
1538
- analyzerType: "",
1539
- dbConfig: "",
1540
- tableName: "",
1541
- dataSelectionType: "",
1542
- fileNameAttributeName: "",
1543
- filterList: [{
1544
- "columnName": "",
1545
- "dataType": "",
1546
- "operator": "",
1547
- "windowFunctionName": "",
1548
- "value": "",
1549
- "dateFormat": ""
1550
- }],
1551
- patternList: [
1552
- {
1553
- "regex": "",
1554
- "sample": "",
1555
- "fileAttributes": [],
1556
- "analyzerKeys": [],
1557
- "sequenceKey": "",
1558
- "dynamicArgs": {}
1559
- }
1560
- ]
1561
- };
1545
+ createAppPageConfig(body) {
1546
+ return this.http
1547
+ .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/createAppPageConfig', JSON.stringify(body), this.options)
1548
+ .pipe(map((response) => {
1549
+ return response;
1550
+ }), catchError(this.handleError));
1562
1551
  }
1563
- getDataConfig(e) {
1552
+ editAppPageConfig(body) {
1553
+ return this.http
1554
+ .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/editAppPageConfig', JSON.stringify(body), this.options)
1555
+ .pipe(map((response) => {
1556
+ return response;
1557
+ }), catchError(this.handleError));
1564
1558
  }
1565
- getProcessForConfig() {
1566
- this.exceptionMainObject.filterList.push({
1567
- "columnName": "",
1568
- "dataType": "",
1569
- "operator": "",
1570
- "windowFunctionName": "",
1571
- "dateFormat": "",
1572
- "value": ""
1573
- });
1559
+ deleteAppPageConfig(pageId) {
1560
+ return this.http
1561
+ .delete(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/deleteAppPageConfig/' + pageId, this.options)
1562
+ .pipe(map((response) => {
1563
+ return response;
1564
+ }), catchError(this.handleError));
1574
1565
  }
1575
- deleteColume(i) {
1576
- this.exceptionMainObject.filterList.splice(i, 1);
1566
+ createAppWidgetConfig(body) {
1567
+ return this.http
1568
+ .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/createAppWidgetConfig', JSON.stringify(body), this.options)
1569
+ .pipe(map((response) => {
1570
+ return response;
1571
+ }), catchError(this.handleError));
1577
1572
  }
1578
- deleteDynamicArguments(item, key, index) {
1579
- delete this.exceptionMainObject.patternList[index]['dynamicArgs'][key];
1573
+ editAppWidgetConfig(body) {
1574
+ return this.http
1575
+ .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/editAppWidgetConfig', JSON.stringify(body), this.options)
1576
+ .pipe(map((response) => {
1577
+ return response;
1578
+ }), catchError(this.handleError));
1580
1579
  }
1581
- addDynamicArgument(index) {
1582
- let newKey = '';
1583
- let newValue = '';
1584
- this.exceptionMainObject.patternList[index]['dynamicArgs'][newKey] = newValue;
1580
+ getAppPageDetailConfig(pageId) {
1581
+ return this.http
1582
+ .get(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppPageDetailConfig?pageConfigId=' + pageId, this.options)
1583
+ .pipe(map((response) => {
1584
+ return response;
1585
+ }), catchError(this.handleError));
1585
1586
  }
1586
- moveItemForColumns(index, direction) {
1587
- if (index < 0 || index >= this.exceptionMainObject.filterList.length)
1588
- return;
1589
- const newPosition = direction === 'up' ? index - 1 : index + 1;
1590
- if (newPosition < 0 || newPosition >= this.exceptionMainObject.filterList.length)
1591
- return;
1592
- const itemToMove = this.exceptionMainObject.filterList[index];
1593
- this.exceptionMainObject.filterList.splice(index, 1);
1594
- this.exceptionMainObject.filterList.splice(newPosition, 0, itemToMove);
1587
+ deleteAppWidgetConfig(filterId) {
1588
+ return this.http
1589
+ .delete(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/deleteAppWidgetConfig/' + filterId, this.options)
1590
+ .pipe(map((response) => {
1591
+ return response;
1592
+ }), catchError(this.handleError));
1595
1593
  }
1596
- getAddPatternsConfig() {
1597
- this.exceptionMainObject.patternList.push({
1598
- "regex": "",
1599
- "sample": "",
1600
- "sequenceKey": "",
1601
- "fileAttributes": [],
1602
- "analyzerKeys": [],
1603
- "dynamicArgs": {}
1604
- });
1594
+ getAppFilterConfig(filterId) {
1595
+ return this.http
1596
+ .get(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppFilterConfig?filterId=' + filterId, this.options)
1597
+ .pipe(map((response) => {
1598
+ return response;
1599
+ }), catchError(this.handleError));
1605
1600
  }
1606
- moveItemForpatterns(index, direction) {
1607
- if (index < 0 || index >= this.exceptionMainObject.patternList.length)
1608
- return;
1609
- const newPosition = direction === 'up' ? index - 1 : index + 1;
1610
- if (newPosition < 0 || newPosition >= this.exceptionMainObject.patternList.length)
1611
- return;
1612
- const itemToMove = this.exceptionMainObject.patternList[index];
1613
- this.exceptionMainObject.patternList.splice(index, 1);
1614
- this.exceptionMainObject.patternList.splice(newPosition, 0, itemToMove);
1601
+ getKPIReferenceEndPoints() {
1602
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getKPIReferenceEndPoints';
1603
+ return this.http
1604
+ .get(apiUrl, { withCredentials: true })
1605
+ .pipe(map((response) => {
1606
+ return response;
1607
+ }), catchError(this.handleError));
1615
1608
  }
1616
- deletePatternsColume(i) {
1617
- this.exceptionMainObject.patternList.splice(i, 1);
1609
+ loadKpiBrowser() {
1610
+ return this.http
1611
+ .get(this.environment.appUrl + this.environment.apiVersion + '/kpi/loadKpiBrowser', { withCredentials: true })
1612
+ .pipe(map((response) => {
1613
+ return response;
1614
+ }), catchError(this.handleError));
1618
1615
  }
1619
- onCustomFileAttributesAdd(args) {
1620
- const newValue = args.text;
1621
- args.customItem = newValue;
1622
- const isItemInDataSource = this.exceptionMainObject.patternList['fileAttributes'].some((item) => item === newValue);
1623
- if (!isItemInDataSource) {
1624
- this.exceptionMainObject.patternList['fileAttributes'].unshift(newValue);
1625
- }
1616
+ getlistKpiBrowser() {
1617
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/listKpiBrowser';
1618
+ return this.http
1619
+ .get(apiUrl, { withCredentials: true })
1620
+ .pipe(map((response) => {
1621
+ return response;
1622
+ }), catchError(this.handleError));
1626
1623
  }
1627
- onCustomAnalizerKeyAdd(args) {
1628
- const newValue = args.text;
1629
- args.customItem = newValue;
1630
- const isItemInDataSource = this.exceptionMainObject.patternList['analyzerKeys'].some((item) => item === newValue);
1631
- if (!isItemInDataSource) {
1632
- this.exceptionMainObject.patternList['analyzerKeys'].unshift(newValue);
1633
- }
1624
+ getBookmarkedResource() {
1625
+ return this.http
1626
+ .get(this.environment.appUrl + this.environment.apiVersion + '/kpi/getBookmarkedResource', { withCredentials: true })
1627
+ .pipe(map((response) => {
1628
+ return response;
1629
+ }), catchError(this.handleError));
1634
1630
  }
1635
- updateExceptionConfig() {
1636
- this.loadingModal = true;
1637
- this.service.editFileSequenceAnalyzerGroup(this.exceptionMainObject).subscribe({
1638
- next: (data) => {
1639
- this.isExceptionConfigCreation = false;
1640
- this.loadingModal = false;
1641
- this.isLoader = true;
1642
- this.getExceptionDataCongigs();
1643
- }, error: (err) => {
1644
- this.loadingModal = false;
1645
- this.isLoader = false;
1646
- this.toastr.error('Unexpected Server Exception. Please contact System Admin.', 'Create Exception Config');
1647
- }
1648
- });
1649
- console.log(this.exceptionMainObject);
1631
+ bookmarkResource(body) {
1632
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi/bookmarkResource';
1633
+ return this.http
1634
+ .post(apiUrl, JSON.stringify(body), this.options)
1635
+ .pipe(map((response) => {
1636
+ return response;
1637
+ }), catchError(this.handleError));
1650
1638
  }
1651
- saveExceptionConfig() {
1652
- for (const element of this.exceptionMainObject.patternList) {
1653
- if (!element.fileAttributes.includes(element.sequenceKey)) {
1654
- this.toastr.error('Sequence Key not valid');
1655
- return;
1656
- }
1657
- const allMatch = element.analyzerKeys.every(item => element.fileAttributes.includes(item));
1658
- const allKeysMatch = Object.keys(element.dynamicArgs).every(key => element.fileAttributes.includes(key));
1659
- if (!allMatch) {
1660
- this.toastr.error('Analyzer Keys not valid');
1661
- return;
1662
- }
1663
- if (!allKeysMatch) {
1664
- this.toastr.error('Filler not valid');
1665
- return;
1666
- }
1667
- const updatedObj = Object.fromEntries(Object.entries(element.dynamicArgs).map(([key, value]) => [`default_${key}_filter`, value]));
1668
- element.dynamicArgs = updatedObj;
1669
- }
1670
- this.loadingModal = true;
1671
- this.service.saveFileSequenceAnalyzerGroup(this.exceptionMainObject).subscribe({
1672
- next: (data) => {
1673
- this.isExceptionConfigCreation = false;
1674
- this.loadingModal = false;
1675
- this.isLoader = true;
1676
- this.getExceptionDataCongigs();
1677
- }, error: (err) => {
1678
- this.loadingModal = false;
1679
- this.isLoader = false;
1680
- this.toastr.error('Unexpected Server Exception. Please contact System Admin.', 'Create Exception Config');
1681
- }
1682
- });
1639
+ configureKpiBrowserConfig(body) {
1640
+ return this.http
1641
+ .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/configureKpiBrowserConfig', JSON.stringify(body), this.options)
1642
+ .pipe(map((response) => {
1643
+ return response;
1644
+ }), catchError(this.handleError));
1683
1645
  }
1684
- deleteExceptionConfig(data) {
1685
- let result = confirm("<i>Are You Sure?</i>", "Delete Config");
1686
- result.then((dialogResult) => {
1687
- if (dialogResult) {
1688
- this.loadingModal = true;
1689
- this.service.deleteFileSequenceAnalyzerGroup(data.configId).subscribe({
1690
- next: (data) => {
1691
- const currentPageIndex = this.dataGrid?.instance.pageIndex();
1692
- this.getExceptionDataCongigs().then(() => {
1693
- if (currentPageIndex !== undefined) {
1694
- this.dataGrid.instance.pageIndex(currentPageIndex);
1695
- }
1696
- this.isLoader = false;
1697
- this.toastr.success(data.response);
1698
- });
1699
- }, error: (err) => {
1700
- this.loadingModal = false;
1701
- this.toastr.error('Unexpected Server Exception. Please contact System Admin.', 'CDR Config Delete');
1702
- }
1703
- });
1704
- }
1705
- });
1646
+ getCreateKpi(body) {
1647
+ return this.http
1648
+ .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/createKpi', JSON.stringify(body), this.options)
1649
+ .pipe(map((response) => {
1650
+ return response;
1651
+ }), catchError(this.handleError));
1706
1652
  }
1707
- activatedException(data) {
1708
- let result = confirm("<i>Are You Sure?</i>", "Activate Config");
1709
- result.then((dialogResult) => {
1710
- if (dialogResult) {
1711
- this.service.activateFileSequenceAnalyzerGroup(data.configId).subscribe({
1712
- next: (data) => {
1713
- const currentPageIndex = this.dataGrid?.instance.pageIndex();
1714
- this.getExceptionDataCongigs().then(() => {
1715
- if (currentPageIndex !== undefined) {
1716
- this.dataGrid.instance.pageIndex(currentPageIndex);
1717
- }
1718
- this.isLoader = false;
1719
- this.toastr.success(data.response);
1720
- });
1721
- }, error: (err) => {
1722
- console.log(err);
1723
- this.loadingModal = false;
1724
- this.toastr.error('Unexpected Server Exception. Please contact System Admin.', 'Exception Config');
1725
- }
1726
- });
1727
- }
1653
+ uploadDatasetJsonPayload(formData) {
1654
+ const headers = new HttpHeaders({
1655
+ 'enctype': 'multipart/form-data',
1728
1656
  });
1657
+ const options = { headers: headers, withCredentials: true };
1658
+ return this.http
1659
+ .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/uploadDatasetJsonPayload', formData, options)
1660
+ .pipe(map((response) => {
1661
+ return response;
1662
+ }), catchError(this.handleError));
1729
1663
  }
1730
- deActivatedException(data) {
1731
- let result = confirm("<i>Are You Sure?</i>", "Deactivate Config");
1732
- result.then((dialogResult) => {
1733
- if (dialogResult) {
1734
- this.service.deactivateFileSequenceAnalyzerGroup(data.configId).subscribe({
1735
- next: (data) => {
1736
- const currentPageIndex = this.dataGrid?.instance.pageIndex();
1737
- this.getExceptionDataCongigs().then(() => {
1738
- if (currentPageIndex !== undefined) {
1739
- this.dataGrid.instance.pageIndex(currentPageIndex);
1740
- }
1741
- this.isLoader = false;
1742
- this.toastr.success(data.response);
1743
- });
1744
- }, error: (err) => {
1745
- console.log(err);
1746
- this.loadingModal = false;
1747
- this.toastr.error('Unexpected Server Exception. Please contact System Admin.', 'Exception Config');
1748
- }
1749
- });
1750
- }
1751
- });
1664
+ getKpiData() {
1665
+ return this.http
1666
+ .get(`${this.environment.basePath}assets/api-data/policy.json`, { withCredentials: true })
1667
+ .pipe(map((response) => {
1668
+ return response;
1669
+ }), catchError(this.handleError));
1752
1670
  }
1753
- updateFileSequenceAnalyzerJobs() {
1754
- this.loadingModal = true;
1755
- this.service.updateFileSequenceAnalyzerJobs().subscribe({
1756
- next: (data) => {
1757
- this.loadingModal = false;
1758
- this.toastr.success("File Sequence Analyzer Jobs Updated");
1759
- }, error: err => {
1760
- this.loadingModal = false;
1761
- this.toastr.error('Unexpected Server Exception. Please contact System Admin.', 'Exception Config');
1762
- }
1763
- });
1671
+ getGroupDetails() {
1672
+ return this.http
1673
+ .get(this.environment.appUrl + this.environment.apiVersion + '/jobs/getGroupDetails', { withCredentials: true })
1674
+ .pipe(map((response) => {
1675
+ return response;
1676
+ }), catchError(this.handleError));
1764
1677
  }
1765
- }
1766
- ExceptionOperationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ExceptionOperationComponent, deps: [{ token: CommonService }, { token: ExceptionConfigsService }, { token: i3.ToastrService }], target: i0.ɵɵFactoryTarget.Component });
1767
- ExceptionOperationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: ExceptionOperationComponent, selector: "app-exception-operation", viewQueries: [{ propertyName: "dataGrid", first: true, predicate: ["gridContainer"], descendants: true }], ngImport: i0, template: "<app-loading *ngIf=\"loadingModal\"></app-loading>\n<div class=\"flex flex-col flex-auto w-full\">\n <div class=\"flex flex-col\">\n <div class=\"flex justify-between border-b dark:bg-transparent\">\n <div class=\"flex flex-col ml-1\">\n <div class=\"flex items-center float-start\">\n <div class=\"flex items-center overflow-hidden\">\n <mat-icon class=\"icon-size-2\" [svgIcon]=\"'heroicons_solid:template'\"></mat-icon>\n </div>\n <h2\n class=\"text-2xl md:text-2xl py-3 font-extrabold items-center ml-2 tracking-tight leading-5 truncate capitalize\">\n Exception Configuration\n </h2>\n </div>\n <div class=\"\">\n </div>\n </div>\n <div class=\"flex justify-between items-center border-l-2 p-0 m-0\">\n\n\n <div class=\"w-1 h-full border-l-2\"></div>\n <div class=\"mx-2\">\n\n <div class=\"flex items-center p-1\">\n\n <div class=\"mx-2\">\n <button class=\"{{commonService.btn_primary_md}} cursor-pointer\"\n (click)=\"createExceptionConfig()\">Create Config\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n </div>\n\n <div class=\"m-2\">\n <div class=\"m-3 p-4 bg-white border border-gray-200 rounded-lg shadow-md dark:bg-gray-800 dark:border-gray-700\">\n <h6 class=\"mb-2 font-bold text-lg tracking-tight text-gray-900 dark:text-white border-b pb-3\"><i\n class=\"fa fa-table mr-2\"></i> File Sequence Analyzer configs | \n <button class=\"{{commonService.btn_success_md}}\" (click)=\"updateFileSequenceAnalyzerJobs()\">Update</button>\n </h6>\n <!-- <app-loader *ngIf=\"isLoader\"></app-loader> -->\n <dx-data-grid [columnAutoWidth]=\"true\" [dataSource]=\"allExceptionConfigDataSource\" [selectedRowKeys]=\"[]\"\n [showBorders]=\"true\" [showRowLines]=\"true\" id=\"gridContainer\" [hoverStateEnabled]=\"true\"\n *ngIf=\"!isLoader\">\n\n <dxo-search-panel [highlightCaseSensitive]=\"true\" [visible]=\"true\">\n </dxo-search-panel>\n <dxo-export [enabled]=\"true\" fileName=\"alert_data_by_status\"></dxo-export>\n <dxo-paging [pageSize]=\"10\"></dxo-paging>\n <dxo-pager [showInfo]=\"true\" [showPageSizeSelector]=\"true\" [allowedPageSizes]=\"[10,20,50,100]\">\n </dxo-pager>\n <dxi-column dataField=\"configName\"></dxi-column>\n <dxi-column dataField=\"datasource\"></dxi-column>\n <dxi-column dataField=\"dbConfig\"></dxi-column>\n <dxi-column dataField=\"analyzerType\"></dxi-column>\n <dxi-column dataField=\"fileNameAttributeName\"></dxi-column>\n <dxi-column dataField=\"dataSelectionType\"></dxi-column>\n <dxi-column caption=\"Status\" dataField=\"active\" cellTemplate=\"cellTemplate1\"></dxi-column>\n\n <dxi-column dataField=\"action\" cellTemplate=\"cellTemplate\" [fixed]=\"true\"\n fixedPosition=\"right\"></dxi-column>\n <div *dxTemplate=\"let data of 'cellTemplate'\">\n <button class=\"{{commonService.btnPrimaryBlue}}\" (click)=\"editExceptionConfigConfig(data.data)\">\n Edit\n </button>\n <!-- <button class=\"{{commonService.btnPrimaryBlue}}\" *ngIf=\"data.data.active == false\"\n (click)=\"editExceptionConfigConfig(data.data)\">\n Edit\n </button> -->\n\n <button class=\"{{commonService.btn_danger_md}}\" (click)=\"deleteExceptionConfig(data.data)\">\n Delete\n </button>\n </div>\n <div *dxTemplate=\"let data of 'cellTemplate1'\">\n <button type=\"button\" *ngIf=\"data.data.active == true\" class=\"{{commonService.btnSuccessGreen}}\"\n (click)=\"deActivatedException(data.data)\">Active</button>\n\n <button type=\"button\" *ngIf=\"data.data.active == false\" class=\"{{commonService.btnWarningYellow}}\"\n (click)=\"activatedException(data.data)\">Inactive</button>\n\n\n </div>\n\n </dx-data-grid>\n\n </div>\n </div>\n <ng-container *ngIf=\"isExceptionConfigCreation\">\n <div class=\"m-2\">\n <div\n class=\"m-3 p-4 bg-white border border-gray-200 rounded-lg shadow-md dark:bg-gray-800 dark:border-gray-700\">\n <h6\n class=\"mb-2 text-lg tracking-tight text-gray-900 dark:text-white border-b pb-3 flex items-center capitalize\">\n {{contentType}} Exception Configurations\n\n <div class=\"ml-auto\">\n <button class=\"{{commonService.btnOthersPurple}}\" (click)=\"getCancleExceptionCreation()\">\n Back\n </button>\n </div>\n </h6>\n\n <!-- (onValueChanged)=\"valueChangeForDatabaseName($event)\" -->\n <div class=\"flex\">\n <div class=\"w-full border-r\">\n <div class=\"m-2\">\n <div class=\"flex flex-row mb-2\">\n <div class=\"mx-2 w-1/3\">\n <div class=\"text-md mb-2\">Config Name</div>\n <dx-text-box [(ngModel)]=\"exceptionMainObject.configName\"\n [readOnly]=\"contentType == 'view'\"></dx-text-box>\n </div>\n <div class=\"mx-2 w-1/3\">\n <div class=\"text-md mb-2\">Datasource</div>\n <dx-select-box [items]=\"datasourcelist\" [(ngModel)]=\"exceptionMainObject.datasource\"\n [readOnly]=\"contentType == 'view'\"></dx-select-box>\n </div>\n <div class=\"mx-2 w-1/3\">\n <div class=\"text-md mb-2\">Analyzer Type</div>\n <dx-select-box [items]=\"analyzer_type\" valueExpr=\"key\" displayExpr=\"name\"\n [(ngModel)]=\"exceptionMainObject.analyzerType\"\n [readOnly]=\"contentType == 'view'\"></dx-select-box>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"flex flex-col\">\n <div class=\"w-full border-b my-4\">\n <div class=\"m-2\">\n <div class=\"pt-2\">\n <div class=\"flex flex-row p-2\">\n <div class=\"px-2 mb-2 w-1/2\">\n <div class=\"text-md mb-2\"> Db Config</div>\n <dx-select-box [items]=\"['mongo','impala','postgres','mysql','bigquery']\"\n (onValueChanged)=\"getDataConfig($event)\"\n [(ngModel)]=\"exceptionMainObject.dbConfig\"\n [readOnly]=\"contentType == 'view'\"></dx-select-box>\n </div>\n <div class=\"px-2 mb-2 w-1/2\">\n <div class=\"text-md mb-2\"> Table Name</div>\n <dx-text-box [(ngModel)]=\"exceptionMainObject.tableName\"\n [readOnly]=\"contentType == 'view'\"></dx-text-box>\n </div>\n <div class=\"px-2 mb-2 w-1/2\">\n <div class=\"text-md mb-2\"> Data Selection Type</div>\n <dx-select-box [items]=\"['select','distinct']\"\n [(ngModel)]=\"exceptionMainObject.dataSelectionType\"\n [readOnly]=\"contentType == 'view'\"></dx-select-box>\n </div>\n <div class=\"px-2 mb-2 w-1/2\">\n <div class=\"text-md mb-2\"> File Column Name</div>\n <dx-text-box [(ngModel)]=\"exceptionMainObject.fileNameAttributeName\"\n [readOnly]=\"contentType == 'view'\"></dx-text-box>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"w-full border-b my-4\">\n <div class=\"m-2\">\n <div class=\"flex flex-col flex-auto min-w-0 my-2\">\n <div class=\"py-2 border-b border-b\">\n <div class=\"flex flex-row px-2\">\n <div class=\"w-1/2 px-2\">\n <div class=\"text-2xl font-extrabold\">Filter List</div>\n </div>\n <div class=\"w-1/2 px-2\">\n <div class=\"flex justify-end\">\n <button class=\"{{commonService.btn_primary_md}}\"\n (click)=\"getProcessForConfig()\">\n Add Filter\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class=\"pt-2\">\n <div class=\"flex flex-row my-2\"\n *ngFor=\"let items of exceptionMainObject.filterList;let i = index;\">\n <div class=\"w-full px-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Column Name</p>\n <dx-text-box [(ngModel)]=\"items.columnName\"\n [readOnly]=\"contentType == 'view'\">\n </dx-text-box>\n </div>\n </div>\n <div class=\"w-full px-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Operator</p>\n <dx-select-box [items]=\"operator_list\" valueExpr=\"value\"\n displayExpr=\"name\" [(ngModel)]=\"items.operator\"\n [searchEnabled]=\"true\">\n </dx-select-box>\n </div>\n </div>\n <div class=\"w-full px-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Datatype</p>\n <dx-select-box\n [items]=\"['date','string','timestamp','int', 'double', 'boolean']\"\n [(ngModel)]=\"items.dataType\"\n [readOnly]=\"contentType == 'view'\"></dx-select-box>\n </div>\n </div>\n\n <div class=\"w-full px-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Select Function</p>\n <dx-select-box [items]=\"functionNameContainer\"\n [(ngModel)]=\"items.windowFunctionName\" [searchEnabled]=\"true\"\n [readOnly]=\"contentType == 'view'\"></dx-select-box>\n </div>\n </div>\n <div class=\"w-full px-2\"\n *ngIf=\"items.dataType == 'date' || items.dataType == 'timestamp'\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Date Format</p>\n <dx-text-box [(ngModel)]=\"items.dateFormat\"\n [readOnly]=\"contentType == 'view'\"></dx-text-box>\n </div>\n </div>\n <div class=\"w-full px-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Default Value</p>\n <dx-text-box [(ngModel)]=\"items.value\"\n [readOnly]=\"contentType == 'view'\"></dx-text-box>\n </div>\n </div>\n <div class=\"w-full px-2\">\n <div class=\"mx-2\">\n <div class=\"flex flex-row\">\n <button *ngIf=\"i !== 0\"\n class=\"{{commonService.btn_light_sm}} cursor-pointer mx-1 mt-6\"\n (click)=\"moveItemForColumns(i, 'up')\">\n <i class=\"fa fa-arrow-up\" aria-hidden=\"true\"></i>\n </button>\n\n <button *ngIf=\"i !== exceptionMainObject.filterList.length - 1\"\n class=\"{{commonService.btn_light_sm}} cursor-pointer mx-1 mt-6\"\n (click)=\"moveItemForColumns(i, 'down')\">\n <i class=\"fa fa-arrow-down\" aria-hidden=\"true\"></i>\n </button>\n\n <button\n class=\"{{commonService.btn_danger_sm}} cursor-pointer mx-1 mt-6\"\n (click)=\"deleteColume(i)\"><i class=\"fa fa-trash-o\"\n aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n </div>\n\n\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"w-full border-b my-4\">\n <div class=\"m-2\">\n <div class=\"flex flex-col flex-auto min-w-0 my-2\">\n <div class=\"py-2 border-b border-b\">\n <div class=\"flex flex-row px-2\">\n <div class=\"w-1/2 px-2\">\n <div class=\"text-2xl font-extrabold\">Pattern List</div>\n </div>\n <div class=\"w-1/2 px-2\">\n <div class=\"flex justify-end\">\n <button class=\"{{commonService.btn_primary_md}}\"\n (click)=\"getAddPatternsConfig()\">\n Add Pattern\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class=\"pt-2\">\n <ng-container *ngFor=\"let items of exceptionMainObject.patternList;let i = index;\">\n <div class=\"flex flex-wrap my-2\">\n <div class=\"w-1/2 px-2 my-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Regex</p>\n <dx-text-box [(ngModel)]=\"items.regex\"\n [readOnly]=\"contentType == 'view'\">\n </dx-text-box>\n </div>\n </div>\n <div class=\"w-1/2 px-2 my-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">File Attributes</p>\n <dx-tag-box [multiline]=\"true\" [showSelectionControls]=\"true\"\n [acceptCustomValue]=\"true\"\n (onCustomItemCreating)=\"onCustomFileAttributesAdd($event)\"\n [(ngModel)]=\"items.fileAttributes\" [searchEnabled]=\"true\">\n </dx-tag-box>\n </div>\n </div>\n\n <div class=\"w-1/3 px-2 my-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">SequenceKey</p>\n <dx-text-box [(ngModel)]=\"items.sequenceKey\"\n [readOnly]=\"contentType == 'view'\">\n </dx-text-box>\n </div>\n </div>\n\n <div class=\"w-1/3 px-2 my-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Analyzer Keys</p>\n <dx-tag-box [multiline]=\"true\" [showSelectionControls]=\"true\"\n [acceptCustomValue]=\"true\"\n (onCustomItemCreating)=\"onCustomAnalizerKeyAdd($event)\"\n [(ngModel)]=\"items.analyzerKeys\" [searchEnabled]=\"true\">\n </dx-tag-box>\n </div>\n </div>\n <div class=\"w-1/6 px-2 my-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Sample</p>\n <dx-text-box [(ngModel)]=\"items.sample\"\n [readOnly]=\"contentType == 'view'\">\n </dx-text-box>\n </div>\n </div>\n <div class=\"w-1/6 px-2 my-2\">\n <div class=\"mx-2\">\n <div class=\"flex flex-row\">\n <button *ngIf=\"i !== 0\"\n class=\"{{commonService.btn_light_sm}} cursor-pointer mx-1 mt-6\"\n (click)=\"moveItemForpatterns(i, 'up')\">\n <i class=\"fa fa-arrow-up\" aria-hidden=\"true\"></i>\n </button>\n\n <button *ngIf=\"i !== exceptionMainObject.filterList.length - 1\"\n class=\"{{commonService.btn_light_sm}} cursor-pointer mx-1 mt-6\"\n (click)=\"moveItemForpatterns(i, 'down')\">\n <i class=\"fa fa-arrow-down\" aria-hidden=\"true\"></i>\n </button>\n\n <button\n class=\"{{commonService.btn_danger_sm}} cursor-pointer mx-1 mt-6\"\n (click)=\"deletePatternsColume(i)\"><i class=\"fa fa-trash-o\"\n aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class=\"text-xl mb-2\">Dynamic Arguments |\n <button class=\"{{commonService.btn_primary_sm}}\"\n (click)=\"addDynamicArgument(i)\">Add Arguments</button>\n </div>\n <div class=\"m-5\">\n\n <div class=\"flex flex-wrap\">\n <ng-container *ngFor=\"let item of items.dynamicArgs | keyvalue\">\n <div class=\"w-1/2 p-2\">\n <div class=\"flex flex-row\">\n <div class=\"m-1\">\n <div class=\"text-md\"> Argument Key</div>\n <dx-text-box [(ngModel)]=\"item.key\"></dx-text-box>\n </div>\n <div class=\"m-1\">\n <div class=\"text-md\"> Argument Value</div>\n <dx-text-box\n [(ngModel)]=\"items.dynamicArgs[item.key]\"></dx-text-box>\n </div>\n <div class=\"m-1\">\n <button\n class=\"{{commonService.btn_danger_sm}} cursor-pointer mx-1 mt-6\"\n (click)=\"deleteDynamicArguments(item,item.key,i)\"><i\n class=\"fa fa-trash-o\"\n aria-hidden=\"true\"></i></button>\n </div>\n </div>\n </div>\n </ng-container>\n\n </div>\n </div>\n\n\n\n </ng-container>\n\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"flex w-full justify-end mt-5 border-t\" *ngIf=\"contentType !== 'view'\">\n\n <button class=\"{{commonService.btn_success_md}} cursor-pointer mx-1 my-2\"\n (click)=\"saveExceptionConfig()\" *ngIf=\"contentType == 'create'\">\n Create Exception Config\n </button>\n <button class=\"{{commonService.btn_success_md}} cursor-pointer mx-1 my-2\"\n (click)=\"updateExceptionConfig()\" *ngIf=\"contentType == 'edit'\">\n Update Exception Config\n </button>\n </div>\n </div>\n </div>\n </ng-container>\n</div>", styles: [""], dependencies: [{ kind: "directive", type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5.DxTemplateDirective, selector: "[dxTemplate]", inputs: ["dxTemplateOf"] }, { kind: "component", type: i6.DxoExportComponent, selector: "dxo-export", inputs: ["backgroundColor", "enabled", "fileName", "formats", "margin", "printingEnabled", "proxyUrl", "svgToCanvas", "allowExportSelectedData", "customizeExcelCell", "excelFilterEnabled", "excelWrapTextEnabled", "ignoreExcelErrors", "texts"] }, { kind: "component", type: i9.DxDataGridComponent, selector: "dx-data-grid", inputs: ["accessKey", "activeStateEnabled", "allowColumnReordering", "allowColumnResizing", "autoNavigateToFocusedRow", "cacheEnabled", "cellHintEnabled", "columnAutoWidth", "columnChooser", "columnFixing", "columnHidingEnabled", "columnMinWidth", "columnResizingMode", "columns", "columnWidth", "customizeColumns", "customizeExportData", "dataRowTemplate", "dataSource", "dateSerializationFormat", "disabled", "editing", "elementAttr", "errorRowEnabled", "export", "filterBuilder", "filterBuilderPopup", "filterPanel", "filterRow", "filterSyncEnabled", "filterValue", "focusedColumnIndex", "focusedRowEnabled", "focusedRowIndex", "focusedRowKey", "focusStateEnabled", "grouping", "groupPanel", "headerFilter", "height", "highlightChanges", "hint", "hoverStateEnabled", "keyboardNavigation", "keyExpr", "loadPanel", "masterDetail", "noDataText", "pager", "paging", "remoteOperations", "renderAsync", "repaintChangesOnly", "rowAlternationEnabled", "rowDragging", "rowTemplate", "rtlEnabled", "scrolling", "searchPanel", "selectedRowKeys", "selection", "selectionFilter", "showBorders", "showColumnHeaders", "showColumnLines", "showRowLines", "sortByGroupSummaryInfo", "sorting", "stateStoring", "summary", "syncLookupFilterValues", "tabIndex", "toolbar", "twoWayBindingEnabled", "visible", "width", "wordWrapEnabled"], outputs: ["onAdaptiveDetailRowPreparing", "onCellClick", "onCellDblClick", "onCellHoverChanged", "onCellPrepared", "onContentReady", "onContextMenuPreparing", "onDataErrorOccurred", "onDisposing", "onEditCanceled", "onEditCanceling", "onEditingStart", "onEditorPrepared", "onEditorPreparing", "onExported", "onExporting", "onFileSaving", "onFocusedCellChanged", "onFocusedCellChanging", "onFocusedRowChanged", "onFocusedRowChanging", "onInitialized", "onInitNewRow", "onKeyDown", "onOptionChanged", "onRowClick", "onRowCollapsed", "onRowCollapsing", "onRowDblClick", "onRowExpanded", "onRowExpanding", "onRowInserted", "onRowInserting", "onRowPrepared", "onRowRemoved", "onRowRemoving", "onRowUpdated", "onRowUpdating", "onRowValidating", "onSaved", "onSaving", "onSelectionChanged", "onToolbarPreparing", "accessKeyChange", "activeStateEnabledChange", "allowColumnReorderingChange", "allowColumnResizingChange", "autoNavigateToFocusedRowChange", "cacheEnabledChange", "cellHintEnabledChange", "columnAutoWidthChange", "columnChooserChange", "columnFixingChange", "columnHidingEnabledChange", "columnMinWidthChange", "columnResizingModeChange", "columnsChange", "columnWidthChange", "customizeColumnsChange", "customizeExportDataChange", "dataRowTemplateChange", "dataSourceChange", "dateSerializationFormatChange", "disabledChange", "editingChange", "elementAttrChange", "errorRowEnabledChange", "exportChange", "filterBuilderChange", "filterBuilderPopupChange", "filterPanelChange", "filterRowChange", "filterSyncEnabledChange", "filterValueChange", "focusedColumnIndexChange", "focusedRowEnabledChange", "focusedRowIndexChange", "focusedRowKeyChange", "focusStateEnabledChange", "groupingChange", "groupPanelChange", "headerFilterChange", "heightChange", "highlightChangesChange", "hintChange", "hoverStateEnabledChange", "keyboardNavigationChange", "keyExprChange", "loadPanelChange", "masterDetailChange", "noDataTextChange", "pagerChange", "pagingChange", "remoteOperationsChange", "renderAsyncChange", "repaintChangesOnlyChange", "rowAlternationEnabledChange", "rowDraggingChange", "rowTemplateChange", "rtlEnabledChange", "scrollingChange", "searchPanelChange", "selectedRowKeysChange", "selectionChange", "selectionFilterChange", "showBordersChange", "showColumnHeadersChange", "showColumnLinesChange", "showRowLinesChange", "sortByGroupSummaryInfoChange", "sortingChange", "stateStoringChange", "summaryChange", "syncLookupFilterValuesChange", "tabIndexChange", "toolbarChange", "twoWayBindingEnabledChange", "visibleChange", "widthChange", "wordWrapEnabledChange"] }, { kind: "component", type: i6.DxiColumnComponent, selector: "dxi-column", inputs: ["alignment", "allowEditing", "allowExporting", "allowFiltering", "allowFixing", "allowGrouping", "allowHeaderFiltering", "allowHiding", "allowReordering", "allowResizing", "allowSearch", "allowSorting", "autoExpandGroup", "buttons", "calculateCellValue", "calculateDisplayValue", "calculateFilterExpression", "calculateGroupValue", "calculateSortValue", "caption", "cellTemplate", "columns", "cssClass", "customizeText", "dataField", "dataType", "editCellTemplate", "editorOptions", "encodeHtml", "falseText", "filterOperations", "filterType", "filterValue", "filterValues", "fixed", "fixedPosition", "format", "formItem", "groupCellTemplate", "groupIndex", "headerCellTemplate", "headerFilter", "hidingPriority", "isBand", "lookup", "minWidth", "name", "ownerBand", "renderAsync", "selectedFilterOperation", "setCellValue", "showEditorAlways", "showInColumnChooser", "showWhenGrouped", "sortIndex", "sortingMethod", "sortOrder", "trueText", "type", "validationRules", "visible", "visibleIndex", "width"], outputs: ["filterValueChange", "filterValuesChange", "groupIndexChange", "selectedFilterOperationChange", "sortIndexChange", "sortOrderChange", "visibleChange", "visibleIndexChange"] }, { kind: "component", type: i6.DxoPagerComponent, selector: "dxo-pager", inputs: ["allowedPageSizes", "displayMode", "infoText", "showInfo", "showNavigationButtons", "showPageSizeSelector", "visible"] }, { kind: "component", type: i6.DxoPagingComponent, selector: "dxo-paging", inputs: ["enabled", "pageIndex", "pageSize"], outputs: ["pageIndexChange", "pageSizeChange"] }, { kind: "component", type: i6.DxoSearchPanelComponent, selector: "dxo-search-panel", inputs: ["highlightCaseSensitive", "highlightSearchText", "placeholder", "searchVisibleColumnsOnly", "text", "visible", "width"], outputs: ["textChange"] }, { kind: "component", type: i6$1.DxSelectBoxComponent, selector: "dx-select-box", inputs: ["acceptCustomValue", "accessKey", "activeStateEnabled", "buttons", "dataSource", "deferRendering", "disabled", "displayExpr", "displayValue", "dropDownButtonTemplate", "dropDownOptions", "elementAttr", "fieldTemplate", "focusStateEnabled", "grouped", "groupTemplate", "height", "hint", "hoverStateEnabled", "inputAttr", "isValid", "items", "itemTemplate", "label", "labelMode", "maxLength", "minSearchLength", "name", "noDataText", "opened", "openOnFieldClick", "placeholder", "readOnly", "rtlEnabled", "searchEnabled", "searchExpr", "searchMode", "searchTimeout", "selectedItem", "showClearButton", "showDataBeforeSearch", "showDropDownButton", "showSelectionControls", "spellcheck", "stylingMode", "tabIndex", "text", "useItemTextAsTitle", "validationError", "validationErrors", "validationMessageMode", "validationStatus", "value", "valueChangeEvent", "valueExpr", "visible", "width", "wrapItemText"], outputs: ["onChange", "onClosed", "onContentReady", "onCopy", "onCustomItemCreating", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onItemClick", "onKeyDown", "onKeyUp", "onOpened", "onOptionChanged", "onPaste", "onSelectionChanged", "onValueChanged", "acceptCustomValueChange", "accessKeyChange", "activeStateEnabledChange", "buttonsChange", "dataSourceChange", "deferRenderingChange", "disabledChange", "displayExprChange", "displayValueChange", "dropDownButtonTemplateChange", "dropDownOptionsChange", "elementAttrChange", "fieldTemplateChange", "focusStateEnabledChange", "groupedChange", "groupTemplateChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isValidChange", "itemsChange", "itemTemplateChange", "labelChange", "labelModeChange", "maxLengthChange", "minSearchLengthChange", "nameChange", "noDataTextChange", "openedChange", "openOnFieldClickChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "searchEnabledChange", "searchExprChange", "searchModeChange", "searchTimeoutChange", "selectedItemChange", "showClearButtonChange", "showDataBeforeSearchChange", "showDropDownButtonChange", "showSelectionControlsChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "useItemTextAsTitleChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "valueExprChange", "visibleChange", "widthChange", "wrapItemTextChange", "onBlur"] }, { kind: "component", type: i8.DxTagBoxComponent, selector: "dx-tag-box", inputs: ["acceptCustomValue", "accessKey", "activeStateEnabled", "applyValueMode", "buttons", "dataSource", "deferRendering", "disabled", "displayExpr", "dropDownButtonTemplate", "dropDownOptions", "elementAttr", "fieldTemplate", "focusStateEnabled", "grouped", "groupTemplate", "height", "hideSelectedItems", "hint", "hoverStateEnabled", "inputAttr", "isValid", "items", "itemTemplate", "label", "labelMode", "maxDisplayedTags", "maxFilterQueryLength", "maxLength", "minSearchLength", "multiline", "name", "noDataText", "opened", "openOnFieldClick", "placeholder", "readOnly", "rtlEnabled", "searchEnabled", "searchExpr", "searchMode", "searchTimeout", "selectAllMode", "selectAllText", "selectedItems", "showClearButton", "showDataBeforeSearch", "showDropDownButton", "showMultiTagOnly", "showSelectionControls", "stylingMode", "tabIndex", "tagTemplate", "text", "useItemTextAsTitle", "validationError", "validationErrors", "validationMessageMode", "validationStatus", "value", "valueExpr", "visible", "width", "wrapItemText"], outputs: ["onChange", "onClosed", "onContentReady", "onCustomItemCreating", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onItemClick", "onKeyDown", "onKeyUp", "onMultiTagPreparing", "onOpened", "onOptionChanged", "onSelectAllValueChanged", "onSelectionChanged", "onValueChanged", "acceptCustomValueChange", "accessKeyChange", "activeStateEnabledChange", "applyValueModeChange", "buttonsChange", "dataSourceChange", "deferRenderingChange", "disabledChange", "displayExprChange", "dropDownButtonTemplateChange", "dropDownOptionsChange", "elementAttrChange", "fieldTemplateChange", "focusStateEnabledChange", "groupedChange", "groupTemplateChange", "heightChange", "hideSelectedItemsChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isValidChange", "itemsChange", "itemTemplateChange", "labelChange", "labelModeChange", "maxDisplayedTagsChange", "maxFilterQueryLengthChange", "maxLengthChange", "minSearchLengthChange", "multilineChange", "nameChange", "noDataTextChange", "openedChange", "openOnFieldClickChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "searchEnabledChange", "searchExprChange", "searchModeChange", "searchTimeoutChange", "selectAllModeChange", "selectAllTextChange", "selectedItemsChange", "showClearButtonChange", "showDataBeforeSearchChange", "showDropDownButtonChange", "showMultiTagOnlyChange", "showSelectionControlsChange", "stylingModeChange", "tabIndexChange", "tagTemplateChange", "textChange", "useItemTextAsTitleChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationStatusChange", "valueChange", "valueExprChange", "visibleChange", "widthChange", "wrapItemTextChange", "onBlur"] }, { kind: "component", type: i7.DxTextBoxComponent, selector: "dx-text-box", inputs: ["accessKey", "activeStateEnabled", "buttons", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "inputAttr", "isValid", "label", "labelMode", "mask", "maskChar", "maskInvalidMessage", "maskRules", "maxLength", "mode", "name", "placeholder", "readOnly", "rtlEnabled", "showClearButton", "showMaskMode", "spellcheck", "stylingMode", "tabIndex", "text", "useMaskedValue", "validationError", "validationErrors", "validationMessageMode", "validationStatus", "value", "valueChangeEvent", "visible", "width"], outputs: ["onChange", "onContentReady", "onCopy", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onKeyDown", "onKeyUp", "onOptionChanged", "onPaste", "onValueChanged", "accessKeyChange", "activeStateEnabledChange", "buttonsChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isValidChange", "labelChange", "labelModeChange", "maskChange", "maskCharChange", "maskInvalidMessageChange", "maskRulesChange", "maxLengthChange", "modeChange", "nameChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "showClearButtonChange", "showMaskModeChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "useMaskedValueChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "directive", type: i8$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i8$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: LoadingComponent$1, selector: "app-loading" }, { kind: "pipe", type: i4$1.KeyValuePipe, name: "keyvalue" }] });
1768
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ExceptionOperationComponent, decorators: [{
1769
- type: Component,
1770
- args: [{ selector: 'app-exception-operation', template: "<app-loading *ngIf=\"loadingModal\"></app-loading>\n<div class=\"flex flex-col flex-auto w-full\">\n <div class=\"flex flex-col\">\n <div class=\"flex justify-between border-b dark:bg-transparent\">\n <div class=\"flex flex-col ml-1\">\n <div class=\"flex items-center float-start\">\n <div class=\"flex items-center overflow-hidden\">\n <mat-icon class=\"icon-size-2\" [svgIcon]=\"'heroicons_solid:template'\"></mat-icon>\n </div>\n <h2\n class=\"text-2xl md:text-2xl py-3 font-extrabold items-center ml-2 tracking-tight leading-5 truncate capitalize\">\n Exception Configuration\n </h2>\n </div>\n <div class=\"\">\n </div>\n </div>\n <div class=\"flex justify-between items-center border-l-2 p-0 m-0\">\n\n\n <div class=\"w-1 h-full border-l-2\"></div>\n <div class=\"mx-2\">\n\n <div class=\"flex items-center p-1\">\n\n <div class=\"mx-2\">\n <button class=\"{{commonService.btn_primary_md}} cursor-pointer\"\n (click)=\"createExceptionConfig()\">Create Config\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n </div>\n\n <div class=\"m-2\">\n <div class=\"m-3 p-4 bg-white border border-gray-200 rounded-lg shadow-md dark:bg-gray-800 dark:border-gray-700\">\n <h6 class=\"mb-2 font-bold text-lg tracking-tight text-gray-900 dark:text-white border-b pb-3\"><i\n class=\"fa fa-table mr-2\"></i> File Sequence Analyzer configs | \n <button class=\"{{commonService.btn_success_md}}\" (click)=\"updateFileSequenceAnalyzerJobs()\">Update</button>\n </h6>\n <!-- <app-loader *ngIf=\"isLoader\"></app-loader> -->\n <dx-data-grid [columnAutoWidth]=\"true\" [dataSource]=\"allExceptionConfigDataSource\" [selectedRowKeys]=\"[]\"\n [showBorders]=\"true\" [showRowLines]=\"true\" id=\"gridContainer\" [hoverStateEnabled]=\"true\"\n *ngIf=\"!isLoader\">\n\n <dxo-search-panel [highlightCaseSensitive]=\"true\" [visible]=\"true\">\n </dxo-search-panel>\n <dxo-export [enabled]=\"true\" fileName=\"alert_data_by_status\"></dxo-export>\n <dxo-paging [pageSize]=\"10\"></dxo-paging>\n <dxo-pager [showInfo]=\"true\" [showPageSizeSelector]=\"true\" [allowedPageSizes]=\"[10,20,50,100]\">\n </dxo-pager>\n <dxi-column dataField=\"configName\"></dxi-column>\n <dxi-column dataField=\"datasource\"></dxi-column>\n <dxi-column dataField=\"dbConfig\"></dxi-column>\n <dxi-column dataField=\"analyzerType\"></dxi-column>\n <dxi-column dataField=\"fileNameAttributeName\"></dxi-column>\n <dxi-column dataField=\"dataSelectionType\"></dxi-column>\n <dxi-column caption=\"Status\" dataField=\"active\" cellTemplate=\"cellTemplate1\"></dxi-column>\n\n <dxi-column dataField=\"action\" cellTemplate=\"cellTemplate\" [fixed]=\"true\"\n fixedPosition=\"right\"></dxi-column>\n <div *dxTemplate=\"let data of 'cellTemplate'\">\n <button class=\"{{commonService.btnPrimaryBlue}}\" (click)=\"editExceptionConfigConfig(data.data)\">\n Edit\n </button>\n <!-- <button class=\"{{commonService.btnPrimaryBlue}}\" *ngIf=\"data.data.active == false\"\n (click)=\"editExceptionConfigConfig(data.data)\">\n Edit\n </button> -->\n\n <button class=\"{{commonService.btn_danger_md}}\" (click)=\"deleteExceptionConfig(data.data)\">\n Delete\n </button>\n </div>\n <div *dxTemplate=\"let data of 'cellTemplate1'\">\n <button type=\"button\" *ngIf=\"data.data.active == true\" class=\"{{commonService.btnSuccessGreen}}\"\n (click)=\"deActivatedException(data.data)\">Active</button>\n\n <button type=\"button\" *ngIf=\"data.data.active == false\" class=\"{{commonService.btnWarningYellow}}\"\n (click)=\"activatedException(data.data)\">Inactive</button>\n\n\n </div>\n\n </dx-data-grid>\n\n </div>\n </div>\n <ng-container *ngIf=\"isExceptionConfigCreation\">\n <div class=\"m-2\">\n <div\n class=\"m-3 p-4 bg-white border border-gray-200 rounded-lg shadow-md dark:bg-gray-800 dark:border-gray-700\">\n <h6\n class=\"mb-2 text-lg tracking-tight text-gray-900 dark:text-white border-b pb-3 flex items-center capitalize\">\n {{contentType}} Exception Configurations\n\n <div class=\"ml-auto\">\n <button class=\"{{commonService.btnOthersPurple}}\" (click)=\"getCancleExceptionCreation()\">\n Back\n </button>\n </div>\n </h6>\n\n <!-- (onValueChanged)=\"valueChangeForDatabaseName($event)\" -->\n <div class=\"flex\">\n <div class=\"w-full border-r\">\n <div class=\"m-2\">\n <div class=\"flex flex-row mb-2\">\n <div class=\"mx-2 w-1/3\">\n <div class=\"text-md mb-2\">Config Name</div>\n <dx-text-box [(ngModel)]=\"exceptionMainObject.configName\"\n [readOnly]=\"contentType == 'view'\"></dx-text-box>\n </div>\n <div class=\"mx-2 w-1/3\">\n <div class=\"text-md mb-2\">Datasource</div>\n <dx-select-box [items]=\"datasourcelist\" [(ngModel)]=\"exceptionMainObject.datasource\"\n [readOnly]=\"contentType == 'view'\"></dx-select-box>\n </div>\n <div class=\"mx-2 w-1/3\">\n <div class=\"text-md mb-2\">Analyzer Type</div>\n <dx-select-box [items]=\"analyzer_type\" valueExpr=\"key\" displayExpr=\"name\"\n [(ngModel)]=\"exceptionMainObject.analyzerType\"\n [readOnly]=\"contentType == 'view'\"></dx-select-box>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"flex flex-col\">\n <div class=\"w-full border-b my-4\">\n <div class=\"m-2\">\n <div class=\"pt-2\">\n <div class=\"flex flex-row p-2\">\n <div class=\"px-2 mb-2 w-1/2\">\n <div class=\"text-md mb-2\"> Db Config</div>\n <dx-select-box [items]=\"['mongo','impala','postgres','mysql','bigquery']\"\n (onValueChanged)=\"getDataConfig($event)\"\n [(ngModel)]=\"exceptionMainObject.dbConfig\"\n [readOnly]=\"contentType == 'view'\"></dx-select-box>\n </div>\n <div class=\"px-2 mb-2 w-1/2\">\n <div class=\"text-md mb-2\"> Table Name</div>\n <dx-text-box [(ngModel)]=\"exceptionMainObject.tableName\"\n [readOnly]=\"contentType == 'view'\"></dx-text-box>\n </div>\n <div class=\"px-2 mb-2 w-1/2\">\n <div class=\"text-md mb-2\"> Data Selection Type</div>\n <dx-select-box [items]=\"['select','distinct']\"\n [(ngModel)]=\"exceptionMainObject.dataSelectionType\"\n [readOnly]=\"contentType == 'view'\"></dx-select-box>\n </div>\n <div class=\"px-2 mb-2 w-1/2\">\n <div class=\"text-md mb-2\"> File Column Name</div>\n <dx-text-box [(ngModel)]=\"exceptionMainObject.fileNameAttributeName\"\n [readOnly]=\"contentType == 'view'\"></dx-text-box>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"w-full border-b my-4\">\n <div class=\"m-2\">\n <div class=\"flex flex-col flex-auto min-w-0 my-2\">\n <div class=\"py-2 border-b border-b\">\n <div class=\"flex flex-row px-2\">\n <div class=\"w-1/2 px-2\">\n <div class=\"text-2xl font-extrabold\">Filter List</div>\n </div>\n <div class=\"w-1/2 px-2\">\n <div class=\"flex justify-end\">\n <button class=\"{{commonService.btn_primary_md}}\"\n (click)=\"getProcessForConfig()\">\n Add Filter\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class=\"pt-2\">\n <div class=\"flex flex-row my-2\"\n *ngFor=\"let items of exceptionMainObject.filterList;let i = index;\">\n <div class=\"w-full px-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Column Name</p>\n <dx-text-box [(ngModel)]=\"items.columnName\"\n [readOnly]=\"contentType == 'view'\">\n </dx-text-box>\n </div>\n </div>\n <div class=\"w-full px-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Operator</p>\n <dx-select-box [items]=\"operator_list\" valueExpr=\"value\"\n displayExpr=\"name\" [(ngModel)]=\"items.operator\"\n [searchEnabled]=\"true\">\n </dx-select-box>\n </div>\n </div>\n <div class=\"w-full px-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Datatype</p>\n <dx-select-box\n [items]=\"['date','string','timestamp','int', 'double', 'boolean']\"\n [(ngModel)]=\"items.dataType\"\n [readOnly]=\"contentType == 'view'\"></dx-select-box>\n </div>\n </div>\n\n <div class=\"w-full px-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Select Function</p>\n <dx-select-box [items]=\"functionNameContainer\"\n [(ngModel)]=\"items.windowFunctionName\" [searchEnabled]=\"true\"\n [readOnly]=\"contentType == 'view'\"></dx-select-box>\n </div>\n </div>\n <div class=\"w-full px-2\"\n *ngIf=\"items.dataType == 'date' || items.dataType == 'timestamp'\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Date Format</p>\n <dx-text-box [(ngModel)]=\"items.dateFormat\"\n [readOnly]=\"contentType == 'view'\"></dx-text-box>\n </div>\n </div>\n <div class=\"w-full px-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Default Value</p>\n <dx-text-box [(ngModel)]=\"items.value\"\n [readOnly]=\"contentType == 'view'\"></dx-text-box>\n </div>\n </div>\n <div class=\"w-full px-2\">\n <div class=\"mx-2\">\n <div class=\"flex flex-row\">\n <button *ngIf=\"i !== 0\"\n class=\"{{commonService.btn_light_sm}} cursor-pointer mx-1 mt-6\"\n (click)=\"moveItemForColumns(i, 'up')\">\n <i class=\"fa fa-arrow-up\" aria-hidden=\"true\"></i>\n </button>\n\n <button *ngIf=\"i !== exceptionMainObject.filterList.length - 1\"\n class=\"{{commonService.btn_light_sm}} cursor-pointer mx-1 mt-6\"\n (click)=\"moveItemForColumns(i, 'down')\">\n <i class=\"fa fa-arrow-down\" aria-hidden=\"true\"></i>\n </button>\n\n <button\n class=\"{{commonService.btn_danger_sm}} cursor-pointer mx-1 mt-6\"\n (click)=\"deleteColume(i)\"><i class=\"fa fa-trash-o\"\n aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n </div>\n\n\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"w-full border-b my-4\">\n <div class=\"m-2\">\n <div class=\"flex flex-col flex-auto min-w-0 my-2\">\n <div class=\"py-2 border-b border-b\">\n <div class=\"flex flex-row px-2\">\n <div class=\"w-1/2 px-2\">\n <div class=\"text-2xl font-extrabold\">Pattern List</div>\n </div>\n <div class=\"w-1/2 px-2\">\n <div class=\"flex justify-end\">\n <button class=\"{{commonService.btn_primary_md}}\"\n (click)=\"getAddPatternsConfig()\">\n Add Pattern\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class=\"pt-2\">\n <ng-container *ngFor=\"let items of exceptionMainObject.patternList;let i = index;\">\n <div class=\"flex flex-wrap my-2\">\n <div class=\"w-1/2 px-2 my-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Regex</p>\n <dx-text-box [(ngModel)]=\"items.regex\"\n [readOnly]=\"contentType == 'view'\">\n </dx-text-box>\n </div>\n </div>\n <div class=\"w-1/2 px-2 my-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">File Attributes</p>\n <dx-tag-box [multiline]=\"true\" [showSelectionControls]=\"true\"\n [acceptCustomValue]=\"true\"\n (onCustomItemCreating)=\"onCustomFileAttributesAdd($event)\"\n [(ngModel)]=\"items.fileAttributes\" [searchEnabled]=\"true\">\n </dx-tag-box>\n </div>\n </div>\n\n <div class=\"w-1/3 px-2 my-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">SequenceKey</p>\n <dx-text-box [(ngModel)]=\"items.sequenceKey\"\n [readOnly]=\"contentType == 'view'\">\n </dx-text-box>\n </div>\n </div>\n\n <div class=\"w-1/3 px-2 my-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Analyzer Keys</p>\n <dx-tag-box [multiline]=\"true\" [showSelectionControls]=\"true\"\n [acceptCustomValue]=\"true\"\n (onCustomItemCreating)=\"onCustomAnalizerKeyAdd($event)\"\n [(ngModel)]=\"items.analyzerKeys\" [searchEnabled]=\"true\">\n </dx-tag-box>\n </div>\n </div>\n <div class=\"w-1/6 px-2 my-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Sample</p>\n <dx-text-box [(ngModel)]=\"items.sample\"\n [readOnly]=\"contentType == 'view'\">\n </dx-text-box>\n </div>\n </div>\n <div class=\"w-1/6 px-2 my-2\">\n <div class=\"mx-2\">\n <div class=\"flex flex-row\">\n <button *ngIf=\"i !== 0\"\n class=\"{{commonService.btn_light_sm}} cursor-pointer mx-1 mt-6\"\n (click)=\"moveItemForpatterns(i, 'up')\">\n <i class=\"fa fa-arrow-up\" aria-hidden=\"true\"></i>\n </button>\n\n <button *ngIf=\"i !== exceptionMainObject.filterList.length - 1\"\n class=\"{{commonService.btn_light_sm}} cursor-pointer mx-1 mt-6\"\n (click)=\"moveItemForpatterns(i, 'down')\">\n <i class=\"fa fa-arrow-down\" aria-hidden=\"true\"></i>\n </button>\n\n <button\n class=\"{{commonService.btn_danger_sm}} cursor-pointer mx-1 mt-6\"\n (click)=\"deletePatternsColume(i)\"><i class=\"fa fa-trash-o\"\n aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class=\"text-xl mb-2\">Dynamic Arguments |\n <button class=\"{{commonService.btn_primary_sm}}\"\n (click)=\"addDynamicArgument(i)\">Add Arguments</button>\n </div>\n <div class=\"m-5\">\n\n <div class=\"flex flex-wrap\">\n <ng-container *ngFor=\"let item of items.dynamicArgs | keyvalue\">\n <div class=\"w-1/2 p-2\">\n <div class=\"flex flex-row\">\n <div class=\"m-1\">\n <div class=\"text-md\"> Argument Key</div>\n <dx-text-box [(ngModel)]=\"item.key\"></dx-text-box>\n </div>\n <div class=\"m-1\">\n <div class=\"text-md\"> Argument Value</div>\n <dx-text-box\n [(ngModel)]=\"items.dynamicArgs[item.key]\"></dx-text-box>\n </div>\n <div class=\"m-1\">\n <button\n class=\"{{commonService.btn_danger_sm}} cursor-pointer mx-1 mt-6\"\n (click)=\"deleteDynamicArguments(item,item.key,i)\"><i\n class=\"fa fa-trash-o\"\n aria-hidden=\"true\"></i></button>\n </div>\n </div>\n </div>\n </ng-container>\n\n </div>\n </div>\n\n\n\n </ng-container>\n\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"flex w-full justify-end mt-5 border-t\" *ngIf=\"contentType !== 'view'\">\n\n <button class=\"{{commonService.btn_success_md}} cursor-pointer mx-1 my-2\"\n (click)=\"saveExceptionConfig()\" *ngIf=\"contentType == 'create'\">\n Create Exception Config\n </button>\n <button class=\"{{commonService.btn_success_md}} cursor-pointer mx-1 my-2\"\n (click)=\"updateExceptionConfig()\" *ngIf=\"contentType == 'edit'\">\n Update Exception Config\n </button>\n </div>\n </div>\n </div>\n </ng-container>\n</div>" }]
1771
- }], ctorParameters: function () { return [{ type: CommonService }, { type: ExceptionConfigsService }, { type: i3.ToastrService }]; }, propDecorators: { dataGrid: [{
1772
- type: ViewChild,
1773
- args: ['gridContainer', { static: false }]
1774
- }] } });
1775
-
1776
- class LoadingModule$1 {
1777
- }
1778
- LoadingModule$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LoadingModule$1, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1779
- LoadingModule$1.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: LoadingModule$1, declarations: [LoadingComponent$1], imports: [RouterModule,
1780
- CommonModule,
1781
- FormsModule], exports: [LoadingComponent$1] });
1782
- LoadingModule$1.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LoadingModule$1, imports: [RouterModule,
1783
- CommonModule,
1784
- FormsModule] });
1785
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LoadingModule$1, decorators: [{
1786
- type: NgModule,
1787
- args: [{
1788
- imports: [
1789
- RouterModule,
1790
- CommonModule,
1791
- FormsModule,
1792
- ],
1793
- declarations: [LoadingComponent$1],
1794
- exports: [LoadingComponent$1]
1795
- }]
1796
- }] });
1797
-
1798
- const routes = [
1799
- {
1800
- path: '',
1801
- loadChildren: () => Promise.resolve().then(function () { return applicationController_module; }).then((m) => m.PackageApplicationControllerModule),
1802
- },
1803
- ];
1804
- class GammaAppControllerModule {
1805
- }
1806
- GammaAppControllerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: GammaAppControllerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1807
- GammaAppControllerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: GammaAppControllerModule, declarations: [GammaAppControllerComponent,
1808
- ExceptionOperationComponent], imports: [IconsModule, i4.RouterModule, CommonModule,
1809
- DevExtremeModule,
1810
- DxButtonModule,
1811
- DxCheckBoxModule,
1812
- DxNumberBoxModule,
1813
- DxDataGridModule,
1814
- DxDropDownBoxModule,
1815
- DxTreeViewModule,
1816
- DxScrollViewModule,
1817
- DxFormModule,
1818
- DxAccordionModule,
1819
- FormsModule,
1820
- DxTagBoxModule,
1821
- ReactiveFormsModule,
1822
- MatIconModule,
1823
- DxHtmlEditorModule,
1824
- DxBulletModule,
1825
- DxChartModule,
1826
- DxDateBoxModule,
1827
- DxLoadPanelModule,
1828
- DxLookupModule,
1829
- DxPivotGridModule,
1830
- DxTemplateModule,
1831
- DxTextAreaModule,
1832
- DxValidationSummaryModule,
1833
- DxValidatorModule,
1834
- DxCalendarModule,
1835
- DxTooltipModule,
1836
- DxContextMenuModule,
1837
- DxLoadIndicatorModule,
1838
- DxPieChartModule,
1839
- MatTooltipModule,
1840
- DxPopupModule, DxSelectBoxModule, DxTextBoxModule, DxTreeViewModule,
1841
- MatButtonModule,
1842
- MatDividerModule,
1843
- MatMenuModule,
1844
- MatIconModule,
1845
- LoadingModule$1], exports: [RouterModule,
1846
- GammaAppControllerComponent,
1847
- IconsModule,
1848
- ExceptionOperationComponent] });
1849
- GammaAppControllerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: GammaAppControllerModule, imports: [IconsModule,
1850
- RouterModule.forChild(routes),
1851
- CommonModule,
1852
- DevExtremeModule,
1853
- DxButtonModule,
1854
- DxCheckBoxModule,
1855
- DxNumberBoxModule,
1856
- DxDataGridModule,
1857
- DxDropDownBoxModule,
1858
- DxTreeViewModule,
1859
- DxScrollViewModule,
1860
- DxFormModule,
1861
- DxAccordionModule,
1862
- FormsModule,
1863
- DxTagBoxModule,
1864
- ReactiveFormsModule,
1865
- MatIconModule,
1866
- DxHtmlEditorModule,
1867
- DxBulletModule,
1868
- DxChartModule,
1869
- DxDateBoxModule,
1870
- DxLoadPanelModule,
1871
- DxLookupModule,
1872
- DxPivotGridModule,
1873
- DxTemplateModule,
1874
- DxTextAreaModule,
1875
- DxValidationSummaryModule,
1876
- DxValidatorModule,
1877
- DxCalendarModule,
1878
- DxTooltipModule,
1879
- DxContextMenuModule,
1880
- DxLoadIndicatorModule,
1881
- DxPieChartModule,
1882
- MatTooltipModule,
1883
- DxPopupModule, DxSelectBoxModule, DxTextBoxModule, DxTreeViewModule,
1884
- MatButtonModule,
1885
- MatDividerModule,
1886
- MatMenuModule,
1887
- MatIconModule,
1888
- LoadingModule$1, RouterModule,
1889
- IconsModule] });
1890
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: GammaAppControllerModule, decorators: [{
1891
- type: NgModule,
1892
- args: [{
1893
- declarations: [
1894
- GammaAppControllerComponent,
1895
- ExceptionOperationComponent
1896
- ],
1897
- imports: [
1898
- IconsModule,
1899
- RouterModule.forChild(routes),
1900
- CommonModule,
1901
- DevExtremeModule,
1902
- DxButtonModule,
1903
- DxCheckBoxModule,
1904
- DxNumberBoxModule,
1905
- DxDataGridModule,
1906
- DxDropDownBoxModule,
1907
- DxTreeViewModule,
1908
- DxScrollViewModule,
1909
- DxFormModule,
1910
- DxAccordionModule,
1911
- FormsModule,
1912
- DxTagBoxModule,
1913
- ReactiveFormsModule,
1914
- MatIconModule,
1915
- DxHtmlEditorModule,
1916
- DxBulletModule,
1917
- DxChartModule,
1918
- DxDateBoxModule,
1919
- DxLoadPanelModule,
1920
- DxLookupModule,
1921
- DxPivotGridModule,
1922
- DxTemplateModule,
1923
- DxTextAreaModule,
1924
- DxValidationSummaryModule,
1925
- DxValidatorModule,
1926
- DxCalendarModule,
1927
- DxTooltipModule,
1928
- DxContextMenuModule,
1929
- DxLoadIndicatorModule,
1930
- DxPieChartModule,
1931
- MatTooltipModule,
1932
- DxPopupModule, DxSelectBoxModule, DxTextBoxModule, DxTreeViewModule,
1933
- MatButtonModule,
1934
- MatDividerModule,
1935
- MatMenuModule,
1936
- MatIconModule,
1937
- LoadingModule$1
1938
- ],
1939
- exports: [
1940
- RouterModule,
1941
- GammaAppControllerComponent,
1942
- IconsModule,
1943
- ExceptionOperationComponent
1944
- ]
1945
- }]
1946
- }] });
1947
-
1948
- class ApplicationContentService extends AppHttpService {
1949
- constructor(httpClient, environment) {
1950
- super(httpClient);
1951
- this.httpClient = httpClient;
1952
- this.environment = environment;
1953
- this.kpiFilter = new BehaviorSubject([]);
1954
- this.userkpiFilter$ = this.kpiFilter.asObservable();
1955
- this.datasets = new BehaviorSubject([]);
1956
- this.updateDatssets$ = this.datasets.asObservable();
1957
- }
1958
- getFilterForKpi(pins) {
1959
- this.kpiFilter.next(pins);
1960
- }
1961
- getCurrentKpiFilterValue() {
1962
- return this.kpiFilter.getValue();
1963
- }
1964
- setCurrentDatasetValue(data) {
1965
- return this.datasets.next(data);
1966
- }
1967
- getDataSet() {
1968
- const apiUrl = '/assets/api-data/data-set.json';
1969
- return this.http.get(apiUrl, { withCredentials: true }).pipe(map((response) => {
1970
- return response;
1971
- }), catchError(this.handleError));
1972
- }
1973
- getComponentDataConfigSet() {
1974
- const apiUrl = '/assets/api-data/component_config.json';
1975
- return this.http.get(apiUrl, { withCredentials: true }).pipe(map((response) => {
1976
- return response;
1977
- }), catchError(this.handleError));
1678
+ loadtableName() {
1679
+ const appUrl = this.environment.appUrl + this.environment.apiVersion + '/search/getSearchDatasourceDetails';
1680
+ return this.http.get(appUrl);
1978
1681
  }
1979
- listColumnEnrichmentFunctions() {
1980
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi/listColumnEnrichmentFunctions';
1682
+ getSearchResultForDatasource(body) {
1981
1683
  return this.http
1982
- .post(apiUrl, this.options)
1684
+ .post(this.environment.appUrl + this.environment.apiVersion + '/search/getSearchResultForDatasource', JSON.stringify(body), this.options)
1983
1685
  .pipe(map((response) => {
1984
1686
  return response;
1985
1687
  }), catchError(this.handleError));
1986
1688
  }
1987
- validateAggregatePaginatedQuery(transformedObject) {
1988
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi/validateAggregatePaginatedQuery';
1689
+ ajaxSelfPrevActivityLogs() {
1989
1690
  return this.http
1990
- .post(apiUrl, JSON.stringify(transformedObject), this.options)
1691
+ .get(this.environment.appUrl + this.environment.apiVersion + '/search/getUserCdrBrowserActivityLogs?activityCount=50')
1991
1692
  .pipe(map((response) => {
1992
1693
  return response;
1993
1694
  }), catchError(this.handleError));
1994
1695
  }
1995
- getKpiBrowserConfigById(id) {
1996
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getKpiBrowserConfigById?id=' + id;
1696
+ getCdrBrowserActivityLogs(startDate, endDate) {
1997
1697
  return this.http
1998
- .get(apiUrl, { withCredentials: true })
1698
+ .get(this.environment.appUrl + this.environment.apiVersion + '/search/getCdrBrowserActivityLogs?startDate=' + startDate + '&endDate=' + endDate)
1999
1699
  .pipe(map((response) => {
2000
1700
  return response;
2001
1701
  }), catchError(this.handleError));
2002
1702
  }
2003
- getData(body, requestID) {
1703
+ getAvailableTables() {
2004
1704
  return this.http
2005
- .post(this.environment.appUrl + this.environment.apiVersion + requestID, JSON.stringify(body), this.options)
1705
+ .get(this.environment.appUrl + this.environment.apiVersion + '/search/getAvailableTables', { withCredentials: true })
2006
1706
  .pipe(map((response) => {
2007
1707
  return response;
2008
1708
  }), catchError(this.handleError));
2009
1709
  }
2010
- getSimpleApiPostRequest(requestApi, body) {
1710
+ getTableMetadata(tableName) {
2011
1711
  return this.http
2012
- .post(this.environment.appUrl + this.environment.apiVersion + requestApi, JSON.stringify(body), this.options)
1712
+ .get(this.environment.appUrl + this.environment.apiVersion + '/search/getTableMetadata?tableName=' + tableName, { withCredentials: true })
2013
1713
  .pipe(map((response) => {
2014
1714
  return response;
2015
1715
  }), catchError(this.handleError));
2016
1716
  }
2017
- getSimpleApiGetRequest(requestApi) {
1717
+ getCdrBrowserOperations() {
2018
1718
  return this.http
2019
- .get(this.environment.appUrl + this.environment.apiVersion + requestApi, { withCredentials: true })
1719
+ .get(this.environment.appUrl + this.environment.apiVersion + '/search/getCdrBrowserOperations', { withCredentials: true })
2020
1720
  .pipe(map((response) => {
2021
1721
  return response;
2022
1722
  }), catchError(this.handleError));
2023
1723
  }
2024
- getJsonDatasetPayload(requestApi) {
1724
+ getSearchDatasourceDetails() {
2025
1725
  return this.http
2026
- .get(this.environment.appUrl + this.environment.apiVersion + requestApi, { withCredentials: true })
1726
+ .get(this.environment.appUrl + this.environment.apiVersion + '/search/getSearchDatasourceDetails', { withCredentials: true })
2027
1727
  .pipe(map((response) => {
2028
1728
  return response;
2029
1729
  }), catchError(this.handleError));
2030
1730
  }
2031
- genericSqlQueryResponse(requestApi, body) {
1731
+ saveDatasourceConfig(body) {
2032
1732
  return this.http
2033
- .post(this.environment.appUrl + this.environment.apiVersion + requestApi, JSON.stringify(body), this.options)
1733
+ .post(this.environment.appUrl + this.environment.apiVersion + '/search/saveDatasourceConfig', JSON.stringify(body), this.options)
2034
1734
  .pipe(map((response) => {
2035
1735
  return response;
2036
1736
  }), catchError(this.handleError));
2037
1737
  }
2038
- createAppDataset(body) {
1738
+ editDatasourceConfig(body) {
2039
1739
  return this.http
2040
- .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/createAppDataset', JSON.stringify(body), this.options)
1740
+ .post(this.environment.appUrl + this.environment.apiVersion + '/search/editDatasourceConfig', JSON.stringify(body), this.options)
2041
1741
  .pipe(map((response) => {
2042
1742
  return response;
2043
1743
  }), catchError(this.handleError));
2044
1744
  }
2045
- updateAppDatasetConfig(body) {
1745
+ deleteDatasourceConfig(tableName) {
2046
1746
  return this.http
2047
- .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/updateAppDatasetConfig', JSON.stringify(body), this.options)
1747
+ .delete(this.environment.appUrl + this.environment.apiVersion + '/search/deleteDatasourceConfig/' + tableName, this.options)
2048
1748
  .pipe(map((response) => {
2049
1749
  return response;
2050
1750
  }), catchError(this.handleError));
2051
1751
  }
2052
- deleteAppDatasetConfig(datasetId) {
2053
- return this.http
2054
- .delete(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/deleteAppDatasetConfig/' + datasetId, this.options)
1752
+ getKpiConfigaration() {
1753
+ return (this.http
1754
+ .get(this.environment.gatewayUrl + this.environment.appName + 'assets/api-data/kpi-config.json', {
1755
+ withCredentials: true,
1756
+ })
2055
1757
  .pipe(map((response) => {
2056
1758
  return response;
2057
- }), catchError(this.handleError));
1759
+ }), catchError(this.handleError)));
2058
1760
  }
2059
- getAppDatasetConfigs() {
2060
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppDatasetConfigs';
2061
- return this.http
2062
- .get(apiUrl, { withCredentials: true })
2063
- .pipe(map((response) => {
1761
+ getlistKpiBrowserTwo() {
1762
+ const apiUrl = this.environment.gatewayUrl + this.environment.appName + '/assets/api-data/dashboard.json';
1763
+ return this.http.get(apiUrl, { withCredentials: true }).pipe(map((response) => {
2064
1764
  return response;
2065
1765
  }), catchError(this.handleError));
2066
1766
  }
2067
- getAppDatasetConfig(datasetId) {
2068
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppDatasetConfig?datasetId=' + datasetId;
1767
+ getfilterData() {
2069
1768
  return this.http
2070
- .get(apiUrl, { withCredentials: true })
1769
+ .get("/assets/api-data/filter-direction.json")
2071
1770
  .pipe(map((response) => {
2072
1771
  return response;
2073
1772
  }), catchError(this.handleError));
2074
1773
  }
2075
- createAppViewConfig(body) {
1774
+ genericDetailDataResponse(body) {
2076
1775
  return this.http
2077
- .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/createAppViewConfig', JSON.stringify(body), this.options)
1776
+ .post(this.environment.appUrl + this.environment.apiVersion + '/kpi/genericDetailDataResponse', JSON.stringify(body), this.options)
2078
1777
  .pipe(map((response) => {
2079
1778
  return response;
2080
1779
  }), catchError(this.handleError));
2081
1780
  }
2082
- updateAppViewConfig(body) {
1781
+ getUniqueData(api) {
2083
1782
  return this.http
2084
- .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/updateAppViewConfig', JSON.stringify(body), this.options)
1783
+ .get(this.environment.appUrl + this.environment.apiVersion + api, { withCredentials: true })
2085
1784
  .pipe(map((response) => {
2086
1785
  return response;
2087
1786
  }), catchError(this.handleError));
2088
1787
  }
2089
- getAppViewConfigs() {
2090
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppViewConfigs';
1788
+ getFilterDataByDrillDown(apiName) {
1789
+ const apiUrl = this.environment.appUrl + apiName;
2091
1790
  return this.http
2092
1791
  .get(apiUrl, { withCredentials: true })
2093
1792
  .pipe(map((response) => {
2094
1793
  return response;
2095
1794
  }), catchError(this.handleError));
2096
1795
  }
2097
- getAppViewConfig(viewId) {
2098
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppViewConfig?viewId=' + viewId;
1796
+ getDataByAPI(requestID, body) {
2099
1797
  return this.http
2100
- .get(apiUrl, { withCredentials: true })
1798
+ .post(this.environment.appUrl + this.environment.apiVersion + requestID, JSON.stringify(body), this.options)
2101
1799
  .pipe(map((response) => {
2102
1800
  return response;
2103
1801
  }), catchError(this.handleError));
2104
1802
  }
2105
- deleteAppViewConfig(datasetId) {
1803
+ getCdrData(api, url) {
2106
1804
  return this.http
2107
- .delete(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/deleteAppViewConfig/' + datasetId, this.options)
1805
+ .get(this.environment.appUrl + this.environment.apiVersion + api + '?' + url)
2108
1806
  .pipe(map((response) => {
2109
1807
  return response;
2110
1808
  }), catchError(this.handleError));
2111
1809
  }
2112
- createAppFilterConfig(body) {
1810
+ getSrvTypeDataSource() {
1811
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi/srv-params';
2113
1812
  return this.http
2114
- .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/createAppFilterConfig', JSON.stringify(body), this.options)
1813
+ .get(apiUrl, { withCredentials: true })
2115
1814
  .pipe(map((response) => {
2116
1815
  return response;
2117
1816
  }), catchError(this.handleError));
2118
1817
  }
2119
- editAppFilterConfig(body) {
1818
+ pagintedActivityLogs(parms, api) {
1819
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + api;
2120
1820
  return this.http
2121
- .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/editAppFilterConfig', JSON.stringify(body), this.options)
1821
+ .post(apiUrl, JSON.stringify(parms), this.options)
2122
1822
  .pipe(map((response) => {
2123
1823
  return response;
2124
1824
  }), catchError(this.handleError));
2125
1825
  }
2126
- getAppFilterConfigs() {
2127
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppFilterConfigs';
1826
+ getApiData() {
1827
+ const apiUrl = '/assets/api-data/api-service.json';
2128
1828
  return this.http
2129
1829
  .get(apiUrl, { withCredentials: true })
2130
1830
  .pipe(map((response) => {
2131
1831
  return response;
2132
1832
  }), catchError(this.handleError));
2133
1833
  }
2134
- deleteAppFilterConfig(filterId) {
1834
+ configureAppMenuConfig(manueConfig) {
1835
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/configureAppMenuConfig';
2135
1836
  return this.http
2136
- .delete(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/deleteAppFilterConfig/' + filterId, this.options)
1837
+ .post(apiUrl, JSON.stringify(manueConfig), this.options)
2137
1838
  .pipe(map((response) => {
2138
1839
  return response;
2139
1840
  }), catchError(this.handleError));
2140
1841
  }
2141
- getMapData(body, requestID) {
2142
- const apiUrl = '/assets/api-data/mapjson.json';
1842
+ getListOfParentAppMenu() {
1843
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getListOfParentAppMenu';
2143
1844
  return this.http
2144
1845
  .get(apiUrl, { withCredentials: true })
2145
1846
  .pipe(map((response) => {
2146
1847
  return response;
2147
1848
  }), catchError(this.handleError));
2148
1849
  }
2149
- getDashBoardJson() {
2150
- const apiUrl = '/assets/api-data/dashboard_lebara.json';
2151
- return this.http.get(apiUrl, { withCredentials: true }).pipe(map((response) => {
2152
- return response;
2153
- }), catchError(this.handleError));
2154
- }
2155
- getAppPageConfigs() {
2156
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppPageConfigs';
1850
+ getAppAppMenuConfigById(manuid) {
1851
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppAppMenuConfigById?menuId=' + manuid;
2157
1852
  return this.http
2158
1853
  .get(apiUrl, { withCredentials: true })
2159
1854
  .pipe(map((response) => {
2160
1855
  return response;
2161
1856
  }), catchError(this.handleError));
2162
1857
  }
2163
- createAppPageConfig(body) {
1858
+ updateAppMenuConfig(manueConfig) {
1859
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/updateAppMenuConfig';
2164
1860
  return this.http
2165
- .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/createAppPageConfig', JSON.stringify(body), this.options)
1861
+ .post(apiUrl, JSON.stringify(manueConfig), this.options)
2166
1862
  .pipe(map((response) => {
2167
1863
  return response;
2168
1864
  }), catchError(this.handleError));
2169
1865
  }
2170
- editAppPageConfig(body) {
1866
+ deleteAppMenuConfig(menuId) {
2171
1867
  return this.http
2172
- .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/editAppPageConfig', JSON.stringify(body), this.options)
1868
+ .delete(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/deleteAppMenuConfig/' + menuId, this.options)
2173
1869
  .pipe(map((response) => {
2174
1870
  return response;
2175
1871
  }), catchError(this.handleError));
2176
1872
  }
2177
- deleteAppPageConfig(pageId) {
1873
+ listMetricConfigs() {
1874
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/settings/metrics/listMetricConfigs';
2178
1875
  return this.http
2179
- .delete(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/deleteAppPageConfig/' + pageId, this.options)
1876
+ .get(apiUrl, { withCredentials: true })
2180
1877
  .pipe(map((response) => {
2181
1878
  return response;
2182
1879
  }), catchError(this.handleError));
2183
1880
  }
2184
- createAppWidgetConfig(body) {
1881
+ deleteMetricConfig(metricId) {
2185
1882
  return this.http
2186
- .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/createAppWidgetConfig', JSON.stringify(body), this.options)
1883
+ .delete(this.environment.appUrl + this.environment.apiVersion + '/settings/metrics/deleteMetricConfig/' + metricId, this.options)
2187
1884
  .pipe(map((response) => {
2188
1885
  return response;
2189
1886
  }), catchError(this.handleError));
2190
1887
  }
2191
- editAppWidgetConfig(body) {
1888
+ saveOnlineMetricConfig(metricConfig) {
1889
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/settings/metrics/saveOnlineMetricConfig';
2192
1890
  return this.http
2193
- .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/editAppWidgetConfig', JSON.stringify(body), this.options)
1891
+ .post(apiUrl, JSON.stringify(metricConfig), this.options)
2194
1892
  .pipe(map((response) => {
2195
1893
  return response;
2196
1894
  }), catchError(this.handleError));
2197
1895
  }
2198
- getAppPageDetailConfig(pageId) {
1896
+ editOfflineMetricConfig(metricConfig) {
1897
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/settings/metrics/editOfflineMetricConfig';
2199
1898
  return this.http
2200
- .get(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppPageDetailConfig?pageConfigId=' + pageId, this.options)
1899
+ .post(apiUrl, JSON.stringify(metricConfig), this.options)
2201
1900
  .pipe(map((response) => {
2202
1901
  return response;
2203
1902
  }), catchError(this.handleError));
2204
1903
  }
2205
- deleteAppWidgetConfig(filterId) {
1904
+ saveFileSequenceAnalyzerGroup(body) {
2206
1905
  return this.http
2207
- .delete(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/deleteAppWidgetConfig/' + filterId, this.options)
1906
+ .post(this.environment.appUrl + this.environment.apiVersion + '/settings/operations/saveFileSequenceAnalyzerGroup', JSON.stringify(body), this.options)
2208
1907
  .pipe(map((response) => {
2209
1908
  return response;
2210
1909
  }), catchError(this.handleError));
2211
1910
  }
2212
- getAppFilterConfig(filterId) {
1911
+ editFileSequenceAnalyzerGroup(body) {
2213
1912
  return this.http
2214
- .get(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppFilterConfig?filterId=' + filterId, this.options)
1913
+ .post(this.environment.appUrl + this.environment.apiVersion + '/settings/operations/editFileSequenceAnalyzerGroup', JSON.stringify(body), this.options)
2215
1914
  .pipe(map((response) => {
2216
1915
  return response;
2217
1916
  }), catchError(this.handleError));
2218
1917
  }
2219
- getKPIReferenceEndPoints() {
2220
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getKPIReferenceEndPoints';
1918
+ getAppSqlFunctionList() {
1919
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/app-setting/getAppSqlFunctionList';
2221
1920
  return this.http
2222
1921
  .get(apiUrl, { withCredentials: true })
2223
1922
  .pipe(map((response) => {
2224
1923
  return response;
2225
1924
  }), catchError(this.handleError));
2226
1925
  }
2227
- loadKpiBrowser() {
2228
- return this.http
2229
- .get(this.environment.appUrl + this.environment.apiVersion + '/kpi/loadKpiBrowser', { withCredentials: true })
2230
- .pipe(map((response) => {
2231
- return response;
2232
- }), catchError(this.handleError));
2233
- }
2234
- getlistKpiBrowser() {
2235
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/listKpiBrowser';
1926
+ listFileSequenceAnalyzerGroups() {
1927
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/settings/operations/listFileSequenceAnalyzerGroups';
2236
1928
  return this.http
2237
1929
  .get(apiUrl, { withCredentials: true })
2238
1930
  .pipe(map((response) => {
2239
1931
  return response;
2240
1932
  }), catchError(this.handleError));
2241
1933
  }
2242
- getBookmarkedResource() {
1934
+ deleteFileSequenceAnalyzerGroup(configid) {
2243
1935
  return this.http
2244
- .get(this.environment.appUrl + this.environment.apiVersion + '/kpi/getBookmarkedResource', { withCredentials: true })
1936
+ .delete(this.environment.appUrl + this.environment.apiVersion + "/settings/operations/deleteFileSequenceAnalyzerGroup/" + configid, { withCredentials: true })
2245
1937
  .pipe(map((response) => {
2246
1938
  return response;
2247
1939
  }), catchError(this.handleError));
2248
1940
  }
2249
- bookmarkResource(body) {
2250
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi/bookmarkResource';
1941
+ activateFileSequenceAnalyzerGroup(configid) {
2251
1942
  return this.http
2252
- .post(apiUrl, JSON.stringify(body), this.options)
1943
+ .get(this.environment.appUrl + this.environment.apiVersion + "/settings/operations/activateFileSequenceAnalyzerGroup?configId=" + configid, { withCredentials: true })
2253
1944
  .pipe(map((response) => {
2254
1945
  return response;
2255
1946
  }), catchError(this.handleError));
2256
1947
  }
2257
- configureKpiBrowserConfig(body) {
1948
+ deactivateFileSequenceAnalyzerGroup(configid) {
2258
1949
  return this.http
2259
- .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/configureKpiBrowserConfig', JSON.stringify(body), this.options)
1950
+ .get(this.environment.appUrl + this.environment.apiVersion + "/settings/operations/deactivateFileSequenceAnalyzerGroup?configId=" + configid, { withCredentials: true })
2260
1951
  .pipe(map((response) => {
2261
1952
  return response;
2262
1953
  }), catchError(this.handleError));
2263
1954
  }
2264
- getCreateKpi(body) {
1955
+ updateFileSequenceAnalyzerJobs() {
2265
1956
  return this.http
2266
- .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/createKpi', JSON.stringify(body), this.options)
1957
+ .get(this.environment.appUrl + this.environment.apiVersion + "/settings/operations/updateFileSequenceAnalyzerJobs", { withCredentials: true })
2267
1958
  .pipe(map((response) => {
2268
1959
  return response;
2269
1960
  }), catchError(this.handleError));
2270
1961
  }
2271
- uploadDatasetJsonPayload(formData) {
2272
- const headers = new HttpHeaders({
2273
- 'enctype': 'multipart/form-data',
2274
- });
2275
- const options = { headers: headers, withCredentials: true };
1962
+ getAppDatasource() {
2276
1963
  return this.http
2277
- .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/uploadDatasetJsonPayload', formData, options)
1964
+ .get(this.environment.appUrl + this.environment.apiVersion + '/operations/getAppDatasource')
2278
1965
  .pipe(map((response) => {
2279
1966
  return response;
2280
1967
  }), catchError(this.handleError));
2281
1968
  }
2282
- getKpiData() {
2283
- return this.http
2284
- .get(`${this.environment.basePath}assets/api-data/policy.json`, { withCredentials: true })
2285
- .pipe(map((response) => {
2286
- return response;
2287
- }), catchError(this.handleError));
1969
+ }
1970
+ ApplicationContentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ApplicationContentService, deps: [{ token: i1$1.HttpClient }, { token: APP_ENVIRONMENT }], target: i0.ɵɵFactoryTarget.Injectable });
1971
+ ApplicationContentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ApplicationContentService });
1972
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ApplicationContentService, decorators: [{
1973
+ type: Injectable
1974
+ }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: undefined, decorators: [{
1975
+ type: Inject,
1976
+ args: [APP_ENVIRONMENT]
1977
+ }] }]; } });
1978
+
1979
+ class LoadingComponent$1 {
1980
+ constructor() {
1981
+ this.showLoadingModal = true;
2288
1982
  }
2289
- getGroupDetails() {
2290
- return this.http
2291
- .get(this.environment.appUrl + this.environment.apiVersion + '/jobs/getGroupDetails', { withCredentials: true })
2292
- .pipe(map((response) => {
2293
- return response;
2294
- }), catchError(this.handleError));
1983
+ ngOnInit() {
2295
1984
  }
2296
- loadtableName() {
2297
- const appUrl = this.environment.appUrl + this.environment.apiVersion + '/search/getSearchDatasourceDetails';
2298
- return this.http.get(appUrl);
1985
+ }
1986
+ LoadingComponent$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LoadingComponent$1, deps: [], target: i0.ɵɵFactoryTarget.Component });
1987
+ LoadingComponent$1.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: LoadingComponent$1, selector: "app-loading", ngImport: i0, template: "<!-- <div class=\"modal\" id=\"loading-modal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\" style=\"display: none;\">\n <div class=\"modal-dialog\" role=\"document\" style=\"max-width: 600px;margin: 8.75rem auto;\">\n <div class=\"modal-content\">\n <div class=\"modal-body\" style=\"padding: 20px;\">\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">&times;</span>\n </button> Loading. Please Wait...\n <div class=\"progress\" style=\"height: 25px\">\n <div class=\"progress-bar progress-bar-striped progress-bar-animated bg-info\" role=\"progressbar\" style=\"width: 100%\" aria-valuenow=\"50\" aria-valuemin=\"0\" aria-valuemax=\"100\"></div>\n </div>\n </div>\n </div>\n </div>\n</div> -->\n<!-- <div class=\"loader-background \">\n <div class=\"loader\"></div>\n</div> -->\n<div class=\"popup\">\n <div class=\"popup__content\">\n <div class=\"loader\"></div>\n </div>\n</div>", styles: [".popup{height:100%;width:100%;position:fixed;top:0;left:0;background-color:#33333386;z-index:999}.popup__content{display:grid;place-items:center;position:relative;height:30rem;width:75%;top:50%;left:50%;transform:translate(-50%,-50%)}.loader{border:16px solid #f3f3f3;border-top:16px solid #ccc;border-radius:100%;width:120px;height:120px;animation:spin 2s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] });
1988
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LoadingComponent$1, decorators: [{
1989
+ type: Component,
1990
+ args: [{ selector: 'app-loading', template: "<!-- <div class=\"modal\" id=\"loading-modal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\" style=\"display: none;\">\n <div class=\"modal-dialog\" role=\"document\" style=\"max-width: 600px;margin: 8.75rem auto;\">\n <div class=\"modal-content\">\n <div class=\"modal-body\" style=\"padding: 20px;\">\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">&times;</span>\n </button> Loading. Please Wait...\n <div class=\"progress\" style=\"height: 25px\">\n <div class=\"progress-bar progress-bar-striped progress-bar-animated bg-info\" role=\"progressbar\" style=\"width: 100%\" aria-valuenow=\"50\" aria-valuemin=\"0\" aria-valuemax=\"100\"></div>\n </div>\n </div>\n </div>\n </div>\n</div> -->\n<!-- <div class=\"loader-background \">\n <div class=\"loader\"></div>\n</div> -->\n<div class=\"popup\">\n <div class=\"popup__content\">\n <div class=\"loader\"></div>\n </div>\n</div>", styles: [".popup{height:100%;width:100%;position:fixed;top:0;left:0;background-color:#33333386;z-index:999}.popup__content{display:grid;place-items:center;position:relative;height:30rem;width:75%;top:50%;left:50%;transform:translate(-50%,-50%)}.loader{border:16px solid #f3f3f3;border-top:16px solid #ccc;border-radius:100%;width:120px;height:120px;animation:spin 2s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] }]
1991
+ }], ctorParameters: function () { return []; } });
1992
+
1993
+ class ExceptionOperationComponent {
1994
+ constructor(commonService, service, toastr) {
1995
+ this.commonService = commonService;
1996
+ this.service = service;
1997
+ this.toastr = toastr;
1998
+ this.contentType = "create";
1999
+ this.exceptionMainObject = {
2000
+ configId: "",
2001
+ configName: "",
2002
+ datasource: "",
2003
+ active: false,
2004
+ analyzerType: "",
2005
+ dbConfig: "",
2006
+ tableName: "",
2007
+ dataSelectionType: "",
2008
+ fileNameAttributeName: "",
2009
+ filterList: [{
2010
+ "columnName": "",
2011
+ "dataType": "",
2012
+ "operator": "",
2013
+ "windowFunctionName": "",
2014
+ "value": "",
2015
+ "dateFormat": "",
2016
+ }],
2017
+ patternList: [
2018
+ {
2019
+ "regex": "",
2020
+ "sample": "?_??_?",
2021
+ "fileAttributes": [],
2022
+ "analyzerKeys": [],
2023
+ "sequenceKey": "",
2024
+ "dynamicArgs": {}
2025
+ }
2026
+ ]
2027
+ };
2028
+ this.analyzer_type = [{ key: "numeric_sequence", name: "Numeric Sequence" }, { key: "date_sequence", name: "Date Sequence" }];
2029
+ this.isLoader = true;
2299
2030
  }
2300
- getSearchResultForDatasource(body) {
2301
- return this.http
2302
- .post(this.environment.appUrl + this.environment.apiVersion + '/search/getSearchResultForDatasource', JSON.stringify(body), this.options)
2303
- .pipe(map((response) => {
2304
- return response;
2305
- }), catchError(this.handleError));
2031
+ ngOnInit() {
2032
+ this.getExceptionDataCongigs();
2033
+ this.service.getAppSqlFunctionList().subscribe(data => {
2034
+ this.functionNameContainer = data;
2035
+ });
2036
+ this.service.getCdrBrowserOperations().subscribe(data => {
2037
+ this.operator_list = data;
2038
+ });
2039
+ this.service.getAppDatasource().subscribe(data => {
2040
+ this.datasourcelist = (data['datasource']) ? data['datasource'] : data;
2041
+ });
2306
2042
  }
2307
- ajaxSelfPrevActivityLogs() {
2308
- return this.http
2309
- .get(this.environment.appUrl + this.environment.apiVersion + '/search/getUserCdrBrowserActivityLogs?activityCount=50')
2310
- .pipe(map((response) => {
2311
- return response;
2312
- }), catchError(this.handleError));
2043
+ getExceptionDataCongigs() {
2044
+ return new Promise((resolve) => {
2045
+ this.service.listFileSequenceAnalyzerGroups().subscribe((data) => {
2046
+ this.allExceptionConfigDataSource = data;
2047
+ this.isLoader = false;
2048
+ resolve();
2049
+ });
2050
+ });
2313
2051
  }
2314
- getCdrBrowserActivityLogs(startDate, endDate) {
2315
- return this.http
2316
- .get(this.environment.appUrl + this.environment.apiVersion + '/search/getCdrBrowserActivityLogs?startDate=' + startDate + '&endDate=' + endDate)
2317
- .pipe(map((response) => {
2318
- return response;
2319
- }), catchError(this.handleError));
2052
+ editExceptionConfigConfig(data) {
2053
+ this.contentType = "edit";
2054
+ this.isExceptionConfigCreation = true;
2055
+ this.exceptionMainObject = data;
2320
2056
  }
2321
- getAvailableTables() {
2322
- return this.http
2323
- .get(this.environment.appUrl + this.environment.apiVersion + '/search/getAvailableTables', { withCredentials: true })
2324
- .pipe(map((response) => {
2325
- return response;
2326
- }), catchError(this.handleError));
2057
+ createExceptionConfig() {
2058
+ this.isExceptionConfigCreation = true;
2059
+ this.exceptionMainObject = {
2060
+ configId: "",
2061
+ configName: "",
2062
+ datasource: "",
2063
+ active: true,
2064
+ analyzerType: "",
2065
+ dbConfig: "",
2066
+ tableName: "",
2067
+ dataSelectionType: "",
2068
+ fileNameAttributeName: "",
2069
+ filterList: [{
2070
+ "columnName": "",
2071
+ "dataType": "",
2072
+ "operator": "",
2073
+ "windowFunctionName": "",
2074
+ "dateFormat": "",
2075
+ "value": ""
2076
+ }],
2077
+ patternList: [
2078
+ {
2079
+ "regex": "",
2080
+ "sample": "",
2081
+ "fileAttributes": [],
2082
+ "analyzerKeys": [],
2083
+ "sequenceKey": "",
2084
+ "dynamicArgs": {}
2085
+ }
2086
+ ]
2087
+ };
2327
2088
  }
2328
- getTableMetadata(tableName) {
2329
- return this.http
2330
- .get(this.environment.appUrl + this.environment.apiVersion + '/search/getTableMetadata?tableName=' + tableName, { withCredentials: true })
2331
- .pipe(map((response) => {
2332
- return response;
2333
- }), catchError(this.handleError));
2089
+ getCancleExceptionCreation() {
2090
+ this.isExceptionConfigCreation = false;
2091
+ this.exceptionMainObject = {
2092
+ configId: "",
2093
+ configName: "",
2094
+ datasource: "",
2095
+ active: true,
2096
+ analyzerType: "",
2097
+ dbConfig: "",
2098
+ tableName: "",
2099
+ dataSelectionType: "",
2100
+ fileNameAttributeName: "",
2101
+ filterList: [{
2102
+ "columnName": "",
2103
+ "dataType": "",
2104
+ "operator": "",
2105
+ "windowFunctionName": "",
2106
+ "value": "",
2107
+ "dateFormat": ""
2108
+ }],
2109
+ patternList: [
2110
+ {
2111
+ "regex": "",
2112
+ "sample": "",
2113
+ "fileAttributes": [],
2114
+ "analyzerKeys": [],
2115
+ "sequenceKey": "",
2116
+ "dynamicArgs": {}
2117
+ }
2118
+ ]
2119
+ };
2334
2120
  }
2335
- getCdrBrowserOperations() {
2336
- return this.http
2337
- .get(this.environment.appUrl + this.environment.apiVersion + '/search/getCdrBrowserOperations', { withCredentials: true })
2338
- .pipe(map((response) => {
2339
- return response;
2340
- }), catchError(this.handleError));
2121
+ getDataConfig(e) {
2341
2122
  }
2342
- getSearchDatasourceDetails() {
2343
- return this.http
2344
- .get(this.environment.appUrl + this.environment.apiVersion + '/search/getSearchDatasourceDetails', { withCredentials: true })
2345
- .pipe(map((response) => {
2346
- return response;
2347
- }), catchError(this.handleError));
2123
+ getProcessForConfig() {
2124
+ this.exceptionMainObject.filterList.push({
2125
+ "columnName": "",
2126
+ "dataType": "",
2127
+ "operator": "",
2128
+ "windowFunctionName": "",
2129
+ "dateFormat": "",
2130
+ "value": ""
2131
+ });
2348
2132
  }
2349
- saveDatasourceConfig(body) {
2350
- return this.http
2351
- .post(this.environment.appUrl + this.environment.apiVersion + '/search/saveDatasourceConfig', JSON.stringify(body), this.options)
2352
- .pipe(map((response) => {
2353
- return response;
2354
- }), catchError(this.handleError));
2133
+ deleteColume(i) {
2134
+ this.exceptionMainObject.filterList.splice(i, 1);
2355
2135
  }
2356
- editDatasourceConfig(body) {
2357
- return this.http
2358
- .post(this.environment.appUrl + this.environment.apiVersion + '/search/editDatasourceConfig', JSON.stringify(body), this.options)
2359
- .pipe(map((response) => {
2360
- return response;
2361
- }), catchError(this.handleError));
2136
+ deleteDynamicArguments(item, key, index) {
2137
+ delete this.exceptionMainObject.patternList[index]['dynamicArgs'][key];
2362
2138
  }
2363
- deleteDatasourceConfig(tableName) {
2364
- return this.http
2365
- .delete(this.environment.appUrl + this.environment.apiVersion + '/search/deleteDatasourceConfig/' + tableName, this.options)
2366
- .pipe(map((response) => {
2367
- return response;
2368
- }), catchError(this.handleError));
2139
+ addDynamicArgument(index) {
2140
+ let newKey = '';
2141
+ let newValue = '';
2142
+ this.exceptionMainObject.patternList[index]['dynamicArgs'][newKey] = newValue;
2369
2143
  }
2370
- getKpiConfigaration() {
2371
- return (this.http
2372
- .get(this.environment.gatewayUrl + this.environment.appName + 'assets/api-data/kpi-config.json', {
2373
- withCredentials: true,
2374
- })
2375
- .pipe(map((response) => {
2376
- return response;
2377
- }), catchError(this.handleError)));
2144
+ moveItemForColumns(index, direction) {
2145
+ if (index < 0 || index >= this.exceptionMainObject.filterList.length)
2146
+ return;
2147
+ const newPosition = direction === 'up' ? index - 1 : index + 1;
2148
+ if (newPosition < 0 || newPosition >= this.exceptionMainObject.filterList.length)
2149
+ return;
2150
+ const itemToMove = this.exceptionMainObject.filterList[index];
2151
+ this.exceptionMainObject.filterList.splice(index, 1);
2152
+ this.exceptionMainObject.filterList.splice(newPosition, 0, itemToMove);
2378
2153
  }
2379
- getlistKpiBrowserTwo() {
2380
- const apiUrl = this.environment.gatewayUrl + this.environment.appName + '/assets/api-data/dashboard.json';
2381
- return this.http.get(apiUrl, { withCredentials: true }).pipe(map((response) => {
2382
- return response;
2383
- }), catchError(this.handleError));
2384
- }
2385
- getfilterData() {
2386
- return this.http
2387
- .get("/assets/api-data/filter-direction.json")
2388
- .pipe(map((response) => {
2389
- return response;
2390
- }), catchError(this.handleError));
2391
- }
2392
- genericDetailDataResponse(body) {
2393
- return this.http
2394
- .post(this.environment.appUrl + this.environment.apiVersion + '/kpi/genericDetailDataResponse', JSON.stringify(body), this.options)
2395
- .pipe(map((response) => {
2396
- return response;
2397
- }), catchError(this.handleError));
2398
- }
2399
- getUniqueData(api) {
2400
- return this.http
2401
- .get(this.environment.appUrl + this.environment.apiVersion + api, { withCredentials: true })
2402
- .pipe(map((response) => {
2403
- return response;
2404
- }), catchError(this.handleError));
2405
- }
2406
- getFilterDataByDrillDown(apiName) {
2407
- const apiUrl = this.environment.appUrl + apiName;
2408
- return this.http
2409
- .get(apiUrl, { withCredentials: true })
2410
- .pipe(map((response) => {
2411
- return response;
2412
- }), catchError(this.handleError));
2413
- }
2414
- getDataByAPI(requestID, body) {
2415
- return this.http
2416
- .post(this.environment.appUrl + this.environment.apiVersion + requestID, JSON.stringify(body), this.options)
2417
- .pipe(map((response) => {
2418
- return response;
2419
- }), catchError(this.handleError));
2420
- }
2421
- getCdrData(api, url) {
2422
- return this.http
2423
- .get(this.environment.appUrl + this.environment.apiVersion + api + '?' + url)
2424
- .pipe(map((response) => {
2425
- return response;
2426
- }), catchError(this.handleError));
2427
- }
2428
- getSrvTypeDataSource() {
2429
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi/srv-params';
2430
- return this.http
2431
- .get(apiUrl, { withCredentials: true })
2432
- .pipe(map((response) => {
2433
- return response;
2434
- }), catchError(this.handleError));
2435
- }
2436
- pagintedActivityLogs(parms, api) {
2437
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + api;
2438
- return this.http
2439
- .post(apiUrl, JSON.stringify(parms), this.options)
2440
- .pipe(map((response) => {
2441
- return response;
2442
- }), catchError(this.handleError));
2154
+ getAddPatternsConfig() {
2155
+ this.exceptionMainObject.patternList.push({
2156
+ "regex": "",
2157
+ "sample": "",
2158
+ "sequenceKey": "",
2159
+ "fileAttributes": [],
2160
+ "analyzerKeys": [],
2161
+ "dynamicArgs": {}
2162
+ });
2443
2163
  }
2444
- getApiData() {
2445
- const apiUrl = '/assets/api-data/api-service.json';
2446
- return this.http
2447
- .get(apiUrl, { withCredentials: true })
2448
- .pipe(map((response) => {
2449
- return response;
2450
- }), catchError(this.handleError));
2164
+ moveItemForpatterns(index, direction) {
2165
+ if (index < 0 || index >= this.exceptionMainObject.patternList.length)
2166
+ return;
2167
+ const newPosition = direction === 'up' ? index - 1 : index + 1;
2168
+ if (newPosition < 0 || newPosition >= this.exceptionMainObject.patternList.length)
2169
+ return;
2170
+ const itemToMove = this.exceptionMainObject.patternList[index];
2171
+ this.exceptionMainObject.patternList.splice(index, 1);
2172
+ this.exceptionMainObject.patternList.splice(newPosition, 0, itemToMove);
2451
2173
  }
2452
- configureAppMenuConfig(manueConfig) {
2453
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/configureAppMenuConfig';
2454
- return this.http
2455
- .post(apiUrl, JSON.stringify(manueConfig), this.options)
2456
- .pipe(map((response) => {
2457
- return response;
2458
- }), catchError(this.handleError));
2174
+ deletePatternsColume(i) {
2175
+ this.exceptionMainObject.patternList.splice(i, 1);
2459
2176
  }
2460
- getListOfParentAppMenu() {
2461
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getListOfParentAppMenu';
2462
- return this.http
2463
- .get(apiUrl, { withCredentials: true })
2464
- .pipe(map((response) => {
2465
- return response;
2466
- }), catchError(this.handleError));
2177
+ onCustomFileAttributesAdd(args) {
2178
+ const newValue = args.text;
2179
+ args.customItem = newValue;
2180
+ const isItemInDataSource = this.exceptionMainObject.patternList['fileAttributes'].some((item) => item === newValue);
2181
+ if (!isItemInDataSource) {
2182
+ this.exceptionMainObject.patternList['fileAttributes'].unshift(newValue);
2183
+ }
2467
2184
  }
2468
- getAppAppMenuConfigById(manuid) {
2469
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppAppMenuConfigById?menuId=' + manuid;
2470
- return this.http
2471
- .get(apiUrl, { withCredentials: true })
2472
- .pipe(map((response) => {
2473
- return response;
2474
- }), catchError(this.handleError));
2185
+ onCustomAnalizerKeyAdd(args) {
2186
+ const newValue = args.text;
2187
+ args.customItem = newValue;
2188
+ const isItemInDataSource = this.exceptionMainObject.patternList['analyzerKeys'].some((item) => item === newValue);
2189
+ if (!isItemInDataSource) {
2190
+ this.exceptionMainObject.patternList['analyzerKeys'].unshift(newValue);
2191
+ }
2475
2192
  }
2476
- updateAppMenuConfig(manueConfig) {
2477
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/updateAppMenuConfig';
2478
- return this.http
2479
- .post(apiUrl, JSON.stringify(manueConfig), this.options)
2480
- .pipe(map((response) => {
2481
- return response;
2482
- }), catchError(this.handleError));
2193
+ updateExceptionConfig() {
2194
+ this.loadingModal = true;
2195
+ this.service.editFileSequenceAnalyzerGroup(this.exceptionMainObject).subscribe({
2196
+ next: (data) => {
2197
+ this.isExceptionConfigCreation = false;
2198
+ this.loadingModal = false;
2199
+ this.isLoader = true;
2200
+ this.getExceptionDataCongigs();
2201
+ }, error: (err) => {
2202
+ this.loadingModal = false;
2203
+ this.isLoader = false;
2204
+ this.toastr.error('Unexpected Server Exception. Please contact System Admin.', 'Create Exception Config');
2205
+ }
2206
+ });
2207
+ console.log(this.exceptionMainObject);
2483
2208
  }
2484
- deleteAppMenuConfig(menuId) {
2485
- return this.http
2486
- .delete(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/deleteAppMenuConfig/' + menuId, this.options)
2487
- .pipe(map((response) => {
2488
- return response;
2489
- }), catchError(this.handleError));
2209
+ saveExceptionConfig() {
2210
+ for (const element of this.exceptionMainObject.patternList) {
2211
+ if (!element.fileAttributes.includes(element.sequenceKey)) {
2212
+ this.toastr.error('Sequence Key not valid');
2213
+ return;
2214
+ }
2215
+ const allMatch = element.analyzerKeys.every(item => element.fileAttributes.includes(item));
2216
+ const allKeysMatch = Object.keys(element.dynamicArgs).every(key => element.fileAttributes.includes(key));
2217
+ if (!allMatch) {
2218
+ this.toastr.error('Analyzer Keys not valid');
2219
+ return;
2220
+ }
2221
+ if (!allKeysMatch) {
2222
+ this.toastr.error('Filler not valid');
2223
+ return;
2224
+ }
2225
+ const updatedObj = Object.fromEntries(Object.entries(element.dynamicArgs).map(([key, value]) => [`default_${key}_filter`, value]));
2226
+ element.dynamicArgs = updatedObj;
2227
+ }
2228
+ this.loadingModal = true;
2229
+ this.service.saveFileSequenceAnalyzerGroup(this.exceptionMainObject).subscribe({
2230
+ next: (data) => {
2231
+ this.isExceptionConfigCreation = false;
2232
+ this.loadingModal = false;
2233
+ this.isLoader = true;
2234
+ this.getExceptionDataCongigs();
2235
+ }, error: (err) => {
2236
+ this.loadingModal = false;
2237
+ this.isLoader = false;
2238
+ this.toastr.error('Unexpected Server Exception. Please contact System Admin.', 'Create Exception Config');
2239
+ }
2240
+ });
2490
2241
  }
2491
- listMetricConfigs() {
2492
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/settings/metrics/listMetricConfigs';
2493
- return this.http
2494
- .get(apiUrl, { withCredentials: true })
2495
- .pipe(map((response) => {
2496
- return response;
2497
- }), catchError(this.handleError));
2242
+ deleteExceptionConfig(data) {
2243
+ let result = confirm("<i>Are You Sure?</i>", "Delete Config");
2244
+ result.then((dialogResult) => {
2245
+ if (dialogResult) {
2246
+ this.loadingModal = true;
2247
+ this.service.deleteFileSequenceAnalyzerGroup(data.configId).subscribe({
2248
+ next: (data) => {
2249
+ const currentPageIndex = this.dataGrid?.instance.pageIndex();
2250
+ this.getExceptionDataCongigs().then(() => {
2251
+ if (currentPageIndex !== undefined) {
2252
+ this.dataGrid.instance.pageIndex(currentPageIndex);
2253
+ }
2254
+ this.isLoader = false;
2255
+ this.toastr.success(data.response);
2256
+ });
2257
+ }, error: (err) => {
2258
+ this.loadingModal = false;
2259
+ this.toastr.error('Unexpected Server Exception. Please contact System Admin.', 'CDR Config Delete');
2260
+ }
2261
+ });
2262
+ }
2263
+ });
2498
2264
  }
2499
- deleteMetricConfig(metricId) {
2500
- return this.http
2501
- .delete(this.environment.appUrl + this.environment.apiVersion + '/settings/metrics/deleteMetricConfig/' + metricId, this.options)
2502
- .pipe(map((response) => {
2503
- return response;
2504
- }), catchError(this.handleError));
2265
+ activatedException(data) {
2266
+ let result = confirm("<i>Are You Sure?</i>", "Activate Config");
2267
+ result.then((dialogResult) => {
2268
+ if (dialogResult) {
2269
+ this.service.activateFileSequenceAnalyzerGroup(data.configId).subscribe({
2270
+ next: (data) => {
2271
+ const currentPageIndex = this.dataGrid?.instance.pageIndex();
2272
+ this.getExceptionDataCongigs().then(() => {
2273
+ if (currentPageIndex !== undefined) {
2274
+ this.dataGrid.instance.pageIndex(currentPageIndex);
2275
+ }
2276
+ this.isLoader = false;
2277
+ this.toastr.success(data.response);
2278
+ });
2279
+ }, error: (err) => {
2280
+ console.log(err);
2281
+ this.loadingModal = false;
2282
+ this.toastr.error('Unexpected Server Exception. Please contact System Admin.', 'Exception Config');
2283
+ }
2284
+ });
2285
+ }
2286
+ });
2505
2287
  }
2506
- saveOnlineMetricConfig(metricConfig) {
2507
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/settings/metrics/saveOnlineMetricConfig';
2508
- return this.http
2509
- .post(apiUrl, JSON.stringify(metricConfig), this.options)
2510
- .pipe(map((response) => {
2511
- return response;
2512
- }), catchError(this.handleError));
2288
+ deActivatedException(data) {
2289
+ let result = confirm("<i>Are You Sure?</i>", "Deactivate Config");
2290
+ result.then((dialogResult) => {
2291
+ if (dialogResult) {
2292
+ this.service.deactivateFileSequenceAnalyzerGroup(data.configId).subscribe({
2293
+ next: (data) => {
2294
+ const currentPageIndex = this.dataGrid?.instance.pageIndex();
2295
+ this.getExceptionDataCongigs().then(() => {
2296
+ if (currentPageIndex !== undefined) {
2297
+ this.dataGrid.instance.pageIndex(currentPageIndex);
2298
+ }
2299
+ this.isLoader = false;
2300
+ this.toastr.success(data.response);
2301
+ });
2302
+ }, error: (err) => {
2303
+ console.log(err);
2304
+ this.loadingModal = false;
2305
+ this.toastr.error('Unexpected Server Exception. Please contact System Admin.', 'Exception Config');
2306
+ }
2307
+ });
2308
+ }
2309
+ });
2513
2310
  }
2514
- editOfflineMetricConfig(metricConfig) {
2515
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/settings/metrics/editOfflineMetricConfig';
2516
- return this.http
2517
- .post(apiUrl, JSON.stringify(metricConfig), this.options)
2518
- .pipe(map((response) => {
2519
- return response;
2520
- }), catchError(this.handleError));
2311
+ updateFileSequenceAnalyzerJobs() {
2312
+ this.loadingModal = true;
2313
+ this.service.updateFileSequenceAnalyzerJobs().subscribe({
2314
+ next: (data) => {
2315
+ this.loadingModal = false;
2316
+ this.toastr.success("File Sequence Analyzer Jobs Updated");
2317
+ }, error: err => {
2318
+ this.loadingModal = false;
2319
+ this.toastr.error('Unexpected Server Exception. Please contact System Admin.', 'Exception Config');
2320
+ }
2321
+ });
2521
2322
  }
2522
2323
  }
2523
- ApplicationContentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ApplicationContentService, deps: [{ token: i1$1.HttpClient }, { token: APP_ENVIRONMENT }], target: i0.ɵɵFactoryTarget.Injectable });
2524
- ApplicationContentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ApplicationContentService });
2525
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ApplicationContentService, decorators: [{
2526
- type: Injectable
2527
- }], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: undefined, decorators: [{
2528
- type: Inject,
2529
- args: [APP_ENVIRONMENT]
2530
- }] }]; } });
2324
+ ExceptionOperationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ExceptionOperationComponent, deps: [{ token: CommonService }, { token: ApplicationContentService }, { token: i3.ToastrService }], target: i0.ɵɵFactoryTarget.Component });
2325
+ ExceptionOperationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: ExceptionOperationComponent, selector: "app-exception-operation", viewQueries: [{ propertyName: "dataGrid", first: true, predicate: ["gridContainer"], descendants: true }], ngImport: i0, template: "<app-loading *ngIf=\"loadingModal\"></app-loading>\n<div class=\"flex flex-col flex-auto w-full\">\n <div class=\"flex flex-col\">\n <div class=\"flex justify-between border-b dark:bg-transparent\">\n <div class=\"flex flex-col ml-1\">\n <div class=\"flex items-center float-start\">\n <div class=\"flex items-center overflow-hidden\">\n <mat-icon class=\"icon-size-2\" [svgIcon]=\"'heroicons_solid:template'\"></mat-icon>\n </div>\n <h2\n class=\"text-2xl md:text-2xl py-3 font-extrabold items-center ml-2 tracking-tight leading-5 truncate capitalize\">\n Exception Configuration\n </h2>\n </div>\n <div class=\"\">\n </div>\n </div>\n <div class=\"flex justify-between items-center border-l-2 p-0 m-0\">\n\n\n <div class=\"w-1 h-full border-l-2\"></div>\n <div class=\"mx-2\">\n\n <div class=\"flex items-center p-1\">\n\n <div class=\"mx-2\">\n <button class=\"{{commonService.btn_primary_md}} cursor-pointer\"\n (click)=\"createExceptionConfig()\">Create Config\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n </div>\n\n <div class=\"m-2\">\n <div class=\"m-3 p-4 bg-white border border-gray-200 rounded-lg shadow-md dark:bg-gray-800 dark:border-gray-700\">\n <h6 class=\"mb-2 font-bold text-lg tracking-tight text-gray-900 dark:text-white border-b pb-3\"><i\n class=\"fa fa-table mr-2\"></i> File Sequence Analyzer configs | \n <button class=\"{{commonService.btn_success_md}}\" (click)=\"updateFileSequenceAnalyzerJobs()\">Update</button>\n </h6>\n <!-- <app-loader *ngIf=\"isLoader\"></app-loader> -->\n <dx-data-grid [columnAutoWidth]=\"true\" [dataSource]=\"allExceptionConfigDataSource\" [selectedRowKeys]=\"[]\"\n [showBorders]=\"true\" [showRowLines]=\"true\" id=\"gridContainer\" [hoverStateEnabled]=\"true\"\n *ngIf=\"!isLoader\">\n\n <dxo-search-panel [highlightCaseSensitive]=\"true\" [visible]=\"true\">\n </dxo-search-panel>\n <dxo-export [enabled]=\"true\" fileName=\"alert_data_by_status\"></dxo-export>\n <dxo-paging [pageSize]=\"10\"></dxo-paging>\n <dxo-pager [showInfo]=\"true\" [showPageSizeSelector]=\"true\" [allowedPageSizes]=\"[10,20,50,100]\">\n </dxo-pager>\n <dxi-column dataField=\"configName\"></dxi-column>\n <dxi-column dataField=\"datasource\"></dxi-column>\n <dxi-column dataField=\"dbConfig\"></dxi-column>\n <dxi-column dataField=\"analyzerType\"></dxi-column>\n <dxi-column dataField=\"fileNameAttributeName\"></dxi-column>\n <dxi-column dataField=\"dataSelectionType\"></dxi-column>\n <dxi-column caption=\"Status\" dataField=\"active\" cellTemplate=\"cellTemplate1\"></dxi-column>\n\n <dxi-column dataField=\"action\" cellTemplate=\"cellTemplate\" [fixed]=\"true\"\n fixedPosition=\"right\"></dxi-column>\n <div *dxTemplate=\"let data of 'cellTemplate'\">\n <button class=\"{{commonService.btnPrimaryBlue}}\" (click)=\"editExceptionConfigConfig(data.data)\">\n Edit\n </button>\n <!-- <button class=\"{{commonService.btnPrimaryBlue}}\" *ngIf=\"data.data.active == false\"\n (click)=\"editExceptionConfigConfig(data.data)\">\n Edit\n </button> -->\n\n <button class=\"{{commonService.btn_danger_md}}\" (click)=\"deleteExceptionConfig(data.data)\">\n Delete\n </button>\n </div>\n <div *dxTemplate=\"let data of 'cellTemplate1'\">\n <button type=\"button\" *ngIf=\"data.data.active == true\" class=\"{{commonService.btnSuccessGreen}}\"\n (click)=\"deActivatedException(data.data)\">Active</button>\n\n <button type=\"button\" *ngIf=\"data.data.active == false\" class=\"{{commonService.btnWarningYellow}}\"\n (click)=\"activatedException(data.data)\">Inactive</button>\n\n\n </div>\n\n </dx-data-grid>\n\n </div>\n </div>\n <ng-container *ngIf=\"isExceptionConfigCreation\">\n <div class=\"m-2\">\n <div\n class=\"m-3 p-4 bg-white border border-gray-200 rounded-lg shadow-md dark:bg-gray-800 dark:border-gray-700\">\n <h6\n class=\"mb-2 text-lg tracking-tight text-gray-900 dark:text-white border-b pb-3 flex items-center capitalize\">\n {{contentType}} Exception Configurations\n\n <div class=\"ml-auto\">\n <button class=\"{{commonService.btnOthersPurple}}\" (click)=\"getCancleExceptionCreation()\">\n Back\n </button>\n </div>\n </h6>\n\n <!-- (onValueChanged)=\"valueChangeForDatabaseName($event)\" -->\n <div class=\"flex\">\n <div class=\"w-full border-r\">\n <div class=\"m-2\">\n <div class=\"flex flex-row mb-2\">\n <div class=\"mx-2 w-1/3\">\n <div class=\"text-md mb-2\">Config Name</div>\n <dx-text-box [(ngModel)]=\"exceptionMainObject.configName\"\n [readOnly]=\"contentType == 'view'\"></dx-text-box>\n </div>\n <div class=\"mx-2 w-1/3\">\n <div class=\"text-md mb-2\">Datasource</div>\n <dx-select-box [items]=\"datasourcelist\" [(ngModel)]=\"exceptionMainObject.datasource\"\n [readOnly]=\"contentType == 'view'\"></dx-select-box>\n </div>\n <div class=\"mx-2 w-1/3\">\n <div class=\"text-md mb-2\">Analyzer Type</div>\n <dx-select-box [items]=\"analyzer_type\" valueExpr=\"key\" displayExpr=\"name\"\n [(ngModel)]=\"exceptionMainObject.analyzerType\"\n [readOnly]=\"contentType == 'view'\"></dx-select-box>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"flex flex-col\">\n <div class=\"w-full border-b my-4\">\n <div class=\"m-2\">\n <div class=\"pt-2\">\n <div class=\"flex flex-row p-2\">\n <div class=\"px-2 mb-2 w-1/2\">\n <div class=\"text-md mb-2\"> Db Config</div>\n <dx-select-box [items]=\"['mongo','impala','postgres','mysql','bigquery']\"\n (onValueChanged)=\"getDataConfig($event)\"\n [(ngModel)]=\"exceptionMainObject.dbConfig\"\n [readOnly]=\"contentType == 'view'\"></dx-select-box>\n </div>\n <div class=\"px-2 mb-2 w-1/2\">\n <div class=\"text-md mb-2\"> Table Name</div>\n <dx-text-box [(ngModel)]=\"exceptionMainObject.tableName\"\n [readOnly]=\"contentType == 'view'\"></dx-text-box>\n </div>\n <div class=\"px-2 mb-2 w-1/2\">\n <div class=\"text-md mb-2\"> Data Selection Type</div>\n <dx-select-box [items]=\"['select','distinct']\"\n [(ngModel)]=\"exceptionMainObject.dataSelectionType\"\n [readOnly]=\"contentType == 'view'\"></dx-select-box>\n </div>\n <div class=\"px-2 mb-2 w-1/2\">\n <div class=\"text-md mb-2\"> File Column Name</div>\n <dx-text-box [(ngModel)]=\"exceptionMainObject.fileNameAttributeName\"\n [readOnly]=\"contentType == 'view'\"></dx-text-box>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"w-full border-b my-4\">\n <div class=\"m-2\">\n <div class=\"flex flex-col flex-auto min-w-0 my-2\">\n <div class=\"py-2 border-b border-b\">\n <div class=\"flex flex-row px-2\">\n <div class=\"w-1/2 px-2\">\n <div class=\"text-2xl font-extrabold\">Filter List</div>\n </div>\n <div class=\"w-1/2 px-2\">\n <div class=\"flex justify-end\">\n <button class=\"{{commonService.btn_primary_md}}\"\n (click)=\"getProcessForConfig()\">\n Add Filter\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class=\"pt-2\">\n <div class=\"flex flex-row my-2\"\n *ngFor=\"let items of exceptionMainObject.filterList;let i = index;\">\n <div class=\"w-full px-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Column Name</p>\n <dx-text-box [(ngModel)]=\"items.columnName\"\n [readOnly]=\"contentType == 'view'\">\n </dx-text-box>\n </div>\n </div>\n <div class=\"w-full px-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Operator</p>\n <dx-select-box [items]=\"operator_list\" valueExpr=\"value\"\n displayExpr=\"name\" [(ngModel)]=\"items.operator\"\n [searchEnabled]=\"true\">\n </dx-select-box>\n </div>\n </div>\n <div class=\"w-full px-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Datatype</p>\n <dx-select-box\n [items]=\"['date','string','timestamp','int', 'double', 'boolean']\"\n [(ngModel)]=\"items.dataType\"\n [readOnly]=\"contentType == 'view'\"></dx-select-box>\n </div>\n </div>\n\n <div class=\"w-full px-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Select Function</p>\n <dx-select-box [items]=\"functionNameContainer\"\n [(ngModel)]=\"items.windowFunctionName\" [searchEnabled]=\"true\"\n [readOnly]=\"contentType == 'view'\"></dx-select-box>\n </div>\n </div>\n <div class=\"w-full px-2\"\n *ngIf=\"items.dataType == 'date' || items.dataType == 'timestamp'\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Date Format</p>\n <dx-text-box [(ngModel)]=\"items.dateFormat\"\n [readOnly]=\"contentType == 'view'\"></dx-text-box>\n </div>\n </div>\n <div class=\"w-full px-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Default Value</p>\n <dx-text-box [(ngModel)]=\"items.value\"\n [readOnly]=\"contentType == 'view'\"></dx-text-box>\n </div>\n </div>\n <div class=\"w-full px-2\">\n <div class=\"mx-2\">\n <div class=\"flex flex-row\">\n <button *ngIf=\"i !== 0\"\n class=\"{{commonService.btn_light_sm}} cursor-pointer mx-1 mt-6\"\n (click)=\"moveItemForColumns(i, 'up')\">\n <i class=\"fa fa-arrow-up\" aria-hidden=\"true\"></i>\n </button>\n\n <button *ngIf=\"i !== exceptionMainObject.filterList.length - 1\"\n class=\"{{commonService.btn_light_sm}} cursor-pointer mx-1 mt-6\"\n (click)=\"moveItemForColumns(i, 'down')\">\n <i class=\"fa fa-arrow-down\" aria-hidden=\"true\"></i>\n </button>\n\n <button\n class=\"{{commonService.btn_danger_sm}} cursor-pointer mx-1 mt-6\"\n (click)=\"deleteColume(i)\"><i class=\"fa fa-trash-o\"\n aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n </div>\n\n\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"w-full border-b my-4\">\n <div class=\"m-2\">\n <div class=\"flex flex-col flex-auto min-w-0 my-2\">\n <div class=\"py-2 border-b border-b\">\n <div class=\"flex flex-row px-2\">\n <div class=\"w-1/2 px-2\">\n <div class=\"text-2xl font-extrabold\">Pattern List</div>\n </div>\n <div class=\"w-1/2 px-2\">\n <div class=\"flex justify-end\">\n <button class=\"{{commonService.btn_primary_md}}\"\n (click)=\"getAddPatternsConfig()\">\n Add Pattern\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class=\"pt-2\">\n <ng-container *ngFor=\"let items of exceptionMainObject.patternList;let i = index;\">\n <div class=\"flex flex-wrap my-2\">\n <div class=\"w-1/2 px-2 my-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Regex</p>\n <dx-text-box [(ngModel)]=\"items.regex\"\n [readOnly]=\"contentType == 'view'\">\n </dx-text-box>\n </div>\n </div>\n <div class=\"w-1/2 px-2 my-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">File Attributes</p>\n <dx-tag-box [multiline]=\"true\" [showSelectionControls]=\"true\"\n [acceptCustomValue]=\"true\"\n (onCustomItemCreating)=\"onCustomFileAttributesAdd($event)\"\n [(ngModel)]=\"items.fileAttributes\" [searchEnabled]=\"true\">\n </dx-tag-box>\n </div>\n </div>\n\n <div class=\"w-1/3 px-2 my-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">SequenceKey</p>\n <dx-text-box [(ngModel)]=\"items.sequenceKey\"\n [readOnly]=\"contentType == 'view'\">\n </dx-text-box>\n </div>\n </div>\n\n <div class=\"w-1/3 px-2 my-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Analyzer Keys</p>\n <dx-tag-box [multiline]=\"true\" [showSelectionControls]=\"true\"\n [acceptCustomValue]=\"true\"\n (onCustomItemCreating)=\"onCustomAnalizerKeyAdd($event)\"\n [(ngModel)]=\"items.analyzerKeys\" [searchEnabled]=\"true\">\n </dx-tag-box>\n </div>\n </div>\n <div class=\"w-1/6 px-2 my-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Sample</p>\n <dx-text-box [(ngModel)]=\"items.sample\"\n [readOnly]=\"contentType == 'view'\">\n </dx-text-box>\n </div>\n </div>\n <div class=\"w-1/6 px-2 my-2\">\n <div class=\"mx-2\">\n <div class=\"flex flex-row\">\n <button *ngIf=\"i !== 0\"\n class=\"{{commonService.btn_light_sm}} cursor-pointer mx-1 mt-6\"\n (click)=\"moveItemForpatterns(i, 'up')\">\n <i class=\"fa fa-arrow-up\" aria-hidden=\"true\"></i>\n </button>\n\n <button *ngIf=\"i !== exceptionMainObject.filterList.length - 1\"\n class=\"{{commonService.btn_light_sm}} cursor-pointer mx-1 mt-6\"\n (click)=\"moveItemForpatterns(i, 'down')\">\n <i class=\"fa fa-arrow-down\" aria-hidden=\"true\"></i>\n </button>\n\n <button\n class=\"{{commonService.btn_danger_sm}} cursor-pointer mx-1 mt-6\"\n (click)=\"deletePatternsColume(i)\"><i class=\"fa fa-trash-o\"\n aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class=\"text-xl mb-2\">Dynamic Arguments |\n <button class=\"{{commonService.btn_primary_sm}}\"\n (click)=\"addDynamicArgument(i)\">Add Arguments</button>\n </div>\n <div class=\"m-5\">\n\n <div class=\"flex flex-wrap\">\n <ng-container *ngFor=\"let item of items.dynamicArgs | keyvalue\">\n <div class=\"w-1/2 p-2\">\n <div class=\"flex flex-row\">\n <div class=\"m-1\">\n <div class=\"text-md\"> Argument Key</div>\n <dx-text-box [(ngModel)]=\"item.key\"></dx-text-box>\n </div>\n <div class=\"m-1\">\n <div class=\"text-md\"> Argument Value</div>\n <dx-text-box\n [(ngModel)]=\"items.dynamicArgs[item.key]\"></dx-text-box>\n </div>\n <div class=\"m-1\">\n <button\n class=\"{{commonService.btn_danger_sm}} cursor-pointer mx-1 mt-6\"\n (click)=\"deleteDynamicArguments(item,item.key,i)\"><i\n class=\"fa fa-trash-o\"\n aria-hidden=\"true\"></i></button>\n </div>\n </div>\n </div>\n </ng-container>\n\n </div>\n </div>\n\n\n\n </ng-container>\n\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"flex w-full justify-end mt-5 border-t\" *ngIf=\"contentType !== 'view'\">\n\n <button class=\"{{commonService.btn_success_md}} cursor-pointer mx-1 my-2\"\n (click)=\"saveExceptionConfig()\" *ngIf=\"contentType == 'create'\">\n Create Exception Config\n </button>\n <button class=\"{{commonService.btn_success_md}} cursor-pointer mx-1 my-2\"\n (click)=\"updateExceptionConfig()\" *ngIf=\"contentType == 'edit'\">\n Update Exception Config\n </button>\n </div>\n </div>\n </div>\n </ng-container>\n</div>", styles: [""], dependencies: [{ kind: "directive", type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5.DxTemplateDirective, selector: "[dxTemplate]", inputs: ["dxTemplateOf"] }, { kind: "component", type: i6.DxoExportComponent, selector: "dxo-export", inputs: ["backgroundColor", "enabled", "fileName", "formats", "margin", "printingEnabled", "proxyUrl", "svgToCanvas", "allowExportSelectedData", "customizeExcelCell", "excelFilterEnabled", "excelWrapTextEnabled", "ignoreExcelErrors", "texts"] }, { kind: "component", type: i9.DxDataGridComponent, selector: "dx-data-grid", inputs: ["accessKey", "activeStateEnabled", "allowColumnReordering", "allowColumnResizing", "autoNavigateToFocusedRow", "cacheEnabled", "cellHintEnabled", "columnAutoWidth", "columnChooser", "columnFixing", "columnHidingEnabled", "columnMinWidth", "columnResizingMode", "columns", "columnWidth", "customizeColumns", "customizeExportData", "dataRowTemplate", "dataSource", "dateSerializationFormat", "disabled", "editing", "elementAttr", "errorRowEnabled", "export", "filterBuilder", "filterBuilderPopup", "filterPanel", "filterRow", "filterSyncEnabled", "filterValue", "focusedColumnIndex", "focusedRowEnabled", "focusedRowIndex", "focusedRowKey", "focusStateEnabled", "grouping", "groupPanel", "headerFilter", "height", "highlightChanges", "hint", "hoverStateEnabled", "keyboardNavigation", "keyExpr", "loadPanel", "masterDetail", "noDataText", "pager", "paging", "remoteOperations", "renderAsync", "repaintChangesOnly", "rowAlternationEnabled", "rowDragging", "rowTemplate", "rtlEnabled", "scrolling", "searchPanel", "selectedRowKeys", "selection", "selectionFilter", "showBorders", "showColumnHeaders", "showColumnLines", "showRowLines", "sortByGroupSummaryInfo", "sorting", "stateStoring", "summary", "syncLookupFilterValues", "tabIndex", "toolbar", "twoWayBindingEnabled", "visible", "width", "wordWrapEnabled"], outputs: ["onAdaptiveDetailRowPreparing", "onCellClick", "onCellDblClick", "onCellHoverChanged", "onCellPrepared", "onContentReady", "onContextMenuPreparing", "onDataErrorOccurred", "onDisposing", "onEditCanceled", "onEditCanceling", "onEditingStart", "onEditorPrepared", "onEditorPreparing", "onExported", "onExporting", "onFileSaving", "onFocusedCellChanged", "onFocusedCellChanging", "onFocusedRowChanged", "onFocusedRowChanging", "onInitialized", "onInitNewRow", "onKeyDown", "onOptionChanged", "onRowClick", "onRowCollapsed", "onRowCollapsing", "onRowDblClick", "onRowExpanded", "onRowExpanding", "onRowInserted", "onRowInserting", "onRowPrepared", "onRowRemoved", "onRowRemoving", "onRowUpdated", "onRowUpdating", "onRowValidating", "onSaved", "onSaving", "onSelectionChanged", "onToolbarPreparing", "accessKeyChange", "activeStateEnabledChange", "allowColumnReorderingChange", "allowColumnResizingChange", "autoNavigateToFocusedRowChange", "cacheEnabledChange", "cellHintEnabledChange", "columnAutoWidthChange", "columnChooserChange", "columnFixingChange", "columnHidingEnabledChange", "columnMinWidthChange", "columnResizingModeChange", "columnsChange", "columnWidthChange", "customizeColumnsChange", "customizeExportDataChange", "dataRowTemplateChange", "dataSourceChange", "dateSerializationFormatChange", "disabledChange", "editingChange", "elementAttrChange", "errorRowEnabledChange", "exportChange", "filterBuilderChange", "filterBuilderPopupChange", "filterPanelChange", "filterRowChange", "filterSyncEnabledChange", "filterValueChange", "focusedColumnIndexChange", "focusedRowEnabledChange", "focusedRowIndexChange", "focusedRowKeyChange", "focusStateEnabledChange", "groupingChange", "groupPanelChange", "headerFilterChange", "heightChange", "highlightChangesChange", "hintChange", "hoverStateEnabledChange", "keyboardNavigationChange", "keyExprChange", "loadPanelChange", "masterDetailChange", "noDataTextChange", "pagerChange", "pagingChange", "remoteOperationsChange", "renderAsyncChange", "repaintChangesOnlyChange", "rowAlternationEnabledChange", "rowDraggingChange", "rowTemplateChange", "rtlEnabledChange", "scrollingChange", "searchPanelChange", "selectedRowKeysChange", "selectionChange", "selectionFilterChange", "showBordersChange", "showColumnHeadersChange", "showColumnLinesChange", "showRowLinesChange", "sortByGroupSummaryInfoChange", "sortingChange", "stateStoringChange", "summaryChange", "syncLookupFilterValuesChange", "tabIndexChange", "toolbarChange", "twoWayBindingEnabledChange", "visibleChange", "widthChange", "wordWrapEnabledChange"] }, { kind: "component", type: i6.DxiColumnComponent, selector: "dxi-column", inputs: ["alignment", "allowEditing", "allowExporting", "allowFiltering", "allowFixing", "allowGrouping", "allowHeaderFiltering", "allowHiding", "allowReordering", "allowResizing", "allowSearch", "allowSorting", "autoExpandGroup", "buttons", "calculateCellValue", "calculateDisplayValue", "calculateFilterExpression", "calculateGroupValue", "calculateSortValue", "caption", "cellTemplate", "columns", "cssClass", "customizeText", "dataField", "dataType", "editCellTemplate", "editorOptions", "encodeHtml", "falseText", "filterOperations", "filterType", "filterValue", "filterValues", "fixed", "fixedPosition", "format", "formItem", "groupCellTemplate", "groupIndex", "headerCellTemplate", "headerFilter", "hidingPriority", "isBand", "lookup", "minWidth", "name", "ownerBand", "renderAsync", "selectedFilterOperation", "setCellValue", "showEditorAlways", "showInColumnChooser", "showWhenGrouped", "sortIndex", "sortingMethod", "sortOrder", "trueText", "type", "validationRules", "visible", "visibleIndex", "width"], outputs: ["filterValueChange", "filterValuesChange", "groupIndexChange", "selectedFilterOperationChange", "sortIndexChange", "sortOrderChange", "visibleChange", "visibleIndexChange"] }, { kind: "component", type: i6.DxoPagerComponent, selector: "dxo-pager", inputs: ["allowedPageSizes", "displayMode", "infoText", "showInfo", "showNavigationButtons", "showPageSizeSelector", "visible"] }, { kind: "component", type: i6.DxoPagingComponent, selector: "dxo-paging", inputs: ["enabled", "pageIndex", "pageSize"], outputs: ["pageIndexChange", "pageSizeChange"] }, { kind: "component", type: i6.DxoSearchPanelComponent, selector: "dxo-search-panel", inputs: ["highlightCaseSensitive", "highlightSearchText", "placeholder", "searchVisibleColumnsOnly", "text", "visible", "width"], outputs: ["textChange"] }, { kind: "component", type: i6$1.DxSelectBoxComponent, selector: "dx-select-box", inputs: ["acceptCustomValue", "accessKey", "activeStateEnabled", "buttons", "dataSource", "deferRendering", "disabled", "displayExpr", "displayValue", "dropDownButtonTemplate", "dropDownOptions", "elementAttr", "fieldTemplate", "focusStateEnabled", "grouped", "groupTemplate", "height", "hint", "hoverStateEnabled", "inputAttr", "isValid", "items", "itemTemplate", "label", "labelMode", "maxLength", "minSearchLength", "name", "noDataText", "opened", "openOnFieldClick", "placeholder", "readOnly", "rtlEnabled", "searchEnabled", "searchExpr", "searchMode", "searchTimeout", "selectedItem", "showClearButton", "showDataBeforeSearch", "showDropDownButton", "showSelectionControls", "spellcheck", "stylingMode", "tabIndex", "text", "useItemTextAsTitle", "validationError", "validationErrors", "validationMessageMode", "validationStatus", "value", "valueChangeEvent", "valueExpr", "visible", "width", "wrapItemText"], outputs: ["onChange", "onClosed", "onContentReady", "onCopy", "onCustomItemCreating", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onItemClick", "onKeyDown", "onKeyUp", "onOpened", "onOptionChanged", "onPaste", "onSelectionChanged", "onValueChanged", "acceptCustomValueChange", "accessKeyChange", "activeStateEnabledChange", "buttonsChange", "dataSourceChange", "deferRenderingChange", "disabledChange", "displayExprChange", "displayValueChange", "dropDownButtonTemplateChange", "dropDownOptionsChange", "elementAttrChange", "fieldTemplateChange", "focusStateEnabledChange", "groupedChange", "groupTemplateChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isValidChange", "itemsChange", "itemTemplateChange", "labelChange", "labelModeChange", "maxLengthChange", "minSearchLengthChange", "nameChange", "noDataTextChange", "openedChange", "openOnFieldClickChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "searchEnabledChange", "searchExprChange", "searchModeChange", "searchTimeoutChange", "selectedItemChange", "showClearButtonChange", "showDataBeforeSearchChange", "showDropDownButtonChange", "showSelectionControlsChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "useItemTextAsTitleChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "valueExprChange", "visibleChange", "widthChange", "wrapItemTextChange", "onBlur"] }, { kind: "component", type: i8.DxTagBoxComponent, selector: "dx-tag-box", inputs: ["acceptCustomValue", "accessKey", "activeStateEnabled", "applyValueMode", "buttons", "dataSource", "deferRendering", "disabled", "displayExpr", "dropDownButtonTemplate", "dropDownOptions", "elementAttr", "fieldTemplate", "focusStateEnabled", "grouped", "groupTemplate", "height", "hideSelectedItems", "hint", "hoverStateEnabled", "inputAttr", "isValid", "items", "itemTemplate", "label", "labelMode", "maxDisplayedTags", "maxFilterQueryLength", "maxLength", "minSearchLength", "multiline", "name", "noDataText", "opened", "openOnFieldClick", "placeholder", "readOnly", "rtlEnabled", "searchEnabled", "searchExpr", "searchMode", "searchTimeout", "selectAllMode", "selectAllText", "selectedItems", "showClearButton", "showDataBeforeSearch", "showDropDownButton", "showMultiTagOnly", "showSelectionControls", "stylingMode", "tabIndex", "tagTemplate", "text", "useItemTextAsTitle", "validationError", "validationErrors", "validationMessageMode", "validationStatus", "value", "valueExpr", "visible", "width", "wrapItemText"], outputs: ["onChange", "onClosed", "onContentReady", "onCustomItemCreating", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onItemClick", "onKeyDown", "onKeyUp", "onMultiTagPreparing", "onOpened", "onOptionChanged", "onSelectAllValueChanged", "onSelectionChanged", "onValueChanged", "acceptCustomValueChange", "accessKeyChange", "activeStateEnabledChange", "applyValueModeChange", "buttonsChange", "dataSourceChange", "deferRenderingChange", "disabledChange", "displayExprChange", "dropDownButtonTemplateChange", "dropDownOptionsChange", "elementAttrChange", "fieldTemplateChange", "focusStateEnabledChange", "groupedChange", "groupTemplateChange", "heightChange", "hideSelectedItemsChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isValidChange", "itemsChange", "itemTemplateChange", "labelChange", "labelModeChange", "maxDisplayedTagsChange", "maxFilterQueryLengthChange", "maxLengthChange", "minSearchLengthChange", "multilineChange", "nameChange", "noDataTextChange", "openedChange", "openOnFieldClickChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "searchEnabledChange", "searchExprChange", "searchModeChange", "searchTimeoutChange", "selectAllModeChange", "selectAllTextChange", "selectedItemsChange", "showClearButtonChange", "showDataBeforeSearchChange", "showDropDownButtonChange", "showMultiTagOnlyChange", "showSelectionControlsChange", "stylingModeChange", "tabIndexChange", "tagTemplateChange", "textChange", "useItemTextAsTitleChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationStatusChange", "valueChange", "valueExprChange", "visibleChange", "widthChange", "wrapItemTextChange", "onBlur"] }, { kind: "component", type: i7.DxTextBoxComponent, selector: "dx-text-box", inputs: ["accessKey", "activeStateEnabled", "buttons", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "inputAttr", "isValid", "label", "labelMode", "mask", "maskChar", "maskInvalidMessage", "maskRules", "maxLength", "mode", "name", "placeholder", "readOnly", "rtlEnabled", "showClearButton", "showMaskMode", "spellcheck", "stylingMode", "tabIndex", "text", "useMaskedValue", "validationError", "validationErrors", "validationMessageMode", "validationStatus", "value", "valueChangeEvent", "visible", "width"], outputs: ["onChange", "onContentReady", "onCopy", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onKeyDown", "onKeyUp", "onOptionChanged", "onPaste", "onValueChanged", "accessKeyChange", "activeStateEnabledChange", "buttonsChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isValidChange", "labelChange", "labelModeChange", "maskChange", "maskCharChange", "maskInvalidMessageChange", "maskRulesChange", "maxLengthChange", "modeChange", "nameChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "showClearButtonChange", "showMaskModeChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "useMaskedValueChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "directive", type: i8$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i8$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: LoadingComponent$1, selector: "app-loading" }, { kind: "pipe", type: i4$1.KeyValuePipe, name: "keyvalue" }] });
2326
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ExceptionOperationComponent, decorators: [{
2327
+ type: Component,
2328
+ args: [{ selector: 'app-exception-operation', template: "<app-loading *ngIf=\"loadingModal\"></app-loading>\n<div class=\"flex flex-col flex-auto w-full\">\n <div class=\"flex flex-col\">\n <div class=\"flex justify-between border-b dark:bg-transparent\">\n <div class=\"flex flex-col ml-1\">\n <div class=\"flex items-center float-start\">\n <div class=\"flex items-center overflow-hidden\">\n <mat-icon class=\"icon-size-2\" [svgIcon]=\"'heroicons_solid:template'\"></mat-icon>\n </div>\n <h2\n class=\"text-2xl md:text-2xl py-3 font-extrabold items-center ml-2 tracking-tight leading-5 truncate capitalize\">\n Exception Configuration\n </h2>\n </div>\n <div class=\"\">\n </div>\n </div>\n <div class=\"flex justify-between items-center border-l-2 p-0 m-0\">\n\n\n <div class=\"w-1 h-full border-l-2\"></div>\n <div class=\"mx-2\">\n\n <div class=\"flex items-center p-1\">\n\n <div class=\"mx-2\">\n <button class=\"{{commonService.btn_primary_md}} cursor-pointer\"\n (click)=\"createExceptionConfig()\">Create Config\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n </div>\n\n <div class=\"m-2\">\n <div class=\"m-3 p-4 bg-white border border-gray-200 rounded-lg shadow-md dark:bg-gray-800 dark:border-gray-700\">\n <h6 class=\"mb-2 font-bold text-lg tracking-tight text-gray-900 dark:text-white border-b pb-3\"><i\n class=\"fa fa-table mr-2\"></i> File Sequence Analyzer configs | \n <button class=\"{{commonService.btn_success_md}}\" (click)=\"updateFileSequenceAnalyzerJobs()\">Update</button>\n </h6>\n <!-- <app-loader *ngIf=\"isLoader\"></app-loader> -->\n <dx-data-grid [columnAutoWidth]=\"true\" [dataSource]=\"allExceptionConfigDataSource\" [selectedRowKeys]=\"[]\"\n [showBorders]=\"true\" [showRowLines]=\"true\" id=\"gridContainer\" [hoverStateEnabled]=\"true\"\n *ngIf=\"!isLoader\">\n\n <dxo-search-panel [highlightCaseSensitive]=\"true\" [visible]=\"true\">\n </dxo-search-panel>\n <dxo-export [enabled]=\"true\" fileName=\"alert_data_by_status\"></dxo-export>\n <dxo-paging [pageSize]=\"10\"></dxo-paging>\n <dxo-pager [showInfo]=\"true\" [showPageSizeSelector]=\"true\" [allowedPageSizes]=\"[10,20,50,100]\">\n </dxo-pager>\n <dxi-column dataField=\"configName\"></dxi-column>\n <dxi-column dataField=\"datasource\"></dxi-column>\n <dxi-column dataField=\"dbConfig\"></dxi-column>\n <dxi-column dataField=\"analyzerType\"></dxi-column>\n <dxi-column dataField=\"fileNameAttributeName\"></dxi-column>\n <dxi-column dataField=\"dataSelectionType\"></dxi-column>\n <dxi-column caption=\"Status\" dataField=\"active\" cellTemplate=\"cellTemplate1\"></dxi-column>\n\n <dxi-column dataField=\"action\" cellTemplate=\"cellTemplate\" [fixed]=\"true\"\n fixedPosition=\"right\"></dxi-column>\n <div *dxTemplate=\"let data of 'cellTemplate'\">\n <button class=\"{{commonService.btnPrimaryBlue}}\" (click)=\"editExceptionConfigConfig(data.data)\">\n Edit\n </button>\n <!-- <button class=\"{{commonService.btnPrimaryBlue}}\" *ngIf=\"data.data.active == false\"\n (click)=\"editExceptionConfigConfig(data.data)\">\n Edit\n </button> -->\n\n <button class=\"{{commonService.btn_danger_md}}\" (click)=\"deleteExceptionConfig(data.data)\">\n Delete\n </button>\n </div>\n <div *dxTemplate=\"let data of 'cellTemplate1'\">\n <button type=\"button\" *ngIf=\"data.data.active == true\" class=\"{{commonService.btnSuccessGreen}}\"\n (click)=\"deActivatedException(data.data)\">Active</button>\n\n <button type=\"button\" *ngIf=\"data.data.active == false\" class=\"{{commonService.btnWarningYellow}}\"\n (click)=\"activatedException(data.data)\">Inactive</button>\n\n\n </div>\n\n </dx-data-grid>\n\n </div>\n </div>\n <ng-container *ngIf=\"isExceptionConfigCreation\">\n <div class=\"m-2\">\n <div\n class=\"m-3 p-4 bg-white border border-gray-200 rounded-lg shadow-md dark:bg-gray-800 dark:border-gray-700\">\n <h6\n class=\"mb-2 text-lg tracking-tight text-gray-900 dark:text-white border-b pb-3 flex items-center capitalize\">\n {{contentType}} Exception Configurations\n\n <div class=\"ml-auto\">\n <button class=\"{{commonService.btnOthersPurple}}\" (click)=\"getCancleExceptionCreation()\">\n Back\n </button>\n </div>\n </h6>\n\n <!-- (onValueChanged)=\"valueChangeForDatabaseName($event)\" -->\n <div class=\"flex\">\n <div class=\"w-full border-r\">\n <div class=\"m-2\">\n <div class=\"flex flex-row mb-2\">\n <div class=\"mx-2 w-1/3\">\n <div class=\"text-md mb-2\">Config Name</div>\n <dx-text-box [(ngModel)]=\"exceptionMainObject.configName\"\n [readOnly]=\"contentType == 'view'\"></dx-text-box>\n </div>\n <div class=\"mx-2 w-1/3\">\n <div class=\"text-md mb-2\">Datasource</div>\n <dx-select-box [items]=\"datasourcelist\" [(ngModel)]=\"exceptionMainObject.datasource\"\n [readOnly]=\"contentType == 'view'\"></dx-select-box>\n </div>\n <div class=\"mx-2 w-1/3\">\n <div class=\"text-md mb-2\">Analyzer Type</div>\n <dx-select-box [items]=\"analyzer_type\" valueExpr=\"key\" displayExpr=\"name\"\n [(ngModel)]=\"exceptionMainObject.analyzerType\"\n [readOnly]=\"contentType == 'view'\"></dx-select-box>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"flex flex-col\">\n <div class=\"w-full border-b my-4\">\n <div class=\"m-2\">\n <div class=\"pt-2\">\n <div class=\"flex flex-row p-2\">\n <div class=\"px-2 mb-2 w-1/2\">\n <div class=\"text-md mb-2\"> Db Config</div>\n <dx-select-box [items]=\"['mongo','impala','postgres','mysql','bigquery']\"\n (onValueChanged)=\"getDataConfig($event)\"\n [(ngModel)]=\"exceptionMainObject.dbConfig\"\n [readOnly]=\"contentType == 'view'\"></dx-select-box>\n </div>\n <div class=\"px-2 mb-2 w-1/2\">\n <div class=\"text-md mb-2\"> Table Name</div>\n <dx-text-box [(ngModel)]=\"exceptionMainObject.tableName\"\n [readOnly]=\"contentType == 'view'\"></dx-text-box>\n </div>\n <div class=\"px-2 mb-2 w-1/2\">\n <div class=\"text-md mb-2\"> Data Selection Type</div>\n <dx-select-box [items]=\"['select','distinct']\"\n [(ngModel)]=\"exceptionMainObject.dataSelectionType\"\n [readOnly]=\"contentType == 'view'\"></dx-select-box>\n </div>\n <div class=\"px-2 mb-2 w-1/2\">\n <div class=\"text-md mb-2\"> File Column Name</div>\n <dx-text-box [(ngModel)]=\"exceptionMainObject.fileNameAttributeName\"\n [readOnly]=\"contentType == 'view'\"></dx-text-box>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"w-full border-b my-4\">\n <div class=\"m-2\">\n <div class=\"flex flex-col flex-auto min-w-0 my-2\">\n <div class=\"py-2 border-b border-b\">\n <div class=\"flex flex-row px-2\">\n <div class=\"w-1/2 px-2\">\n <div class=\"text-2xl font-extrabold\">Filter List</div>\n </div>\n <div class=\"w-1/2 px-2\">\n <div class=\"flex justify-end\">\n <button class=\"{{commonService.btn_primary_md}}\"\n (click)=\"getProcessForConfig()\">\n Add Filter\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class=\"pt-2\">\n <div class=\"flex flex-row my-2\"\n *ngFor=\"let items of exceptionMainObject.filterList;let i = index;\">\n <div class=\"w-full px-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Column Name</p>\n <dx-text-box [(ngModel)]=\"items.columnName\"\n [readOnly]=\"contentType == 'view'\">\n </dx-text-box>\n </div>\n </div>\n <div class=\"w-full px-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Operator</p>\n <dx-select-box [items]=\"operator_list\" valueExpr=\"value\"\n displayExpr=\"name\" [(ngModel)]=\"items.operator\"\n [searchEnabled]=\"true\">\n </dx-select-box>\n </div>\n </div>\n <div class=\"w-full px-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Datatype</p>\n <dx-select-box\n [items]=\"['date','string','timestamp','int', 'double', 'boolean']\"\n [(ngModel)]=\"items.dataType\"\n [readOnly]=\"contentType == 'view'\"></dx-select-box>\n </div>\n </div>\n\n <div class=\"w-full px-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Select Function</p>\n <dx-select-box [items]=\"functionNameContainer\"\n [(ngModel)]=\"items.windowFunctionName\" [searchEnabled]=\"true\"\n [readOnly]=\"contentType == 'view'\"></dx-select-box>\n </div>\n </div>\n <div class=\"w-full px-2\"\n *ngIf=\"items.dataType == 'date' || items.dataType == 'timestamp'\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Date Format</p>\n <dx-text-box [(ngModel)]=\"items.dateFormat\"\n [readOnly]=\"contentType == 'view'\"></dx-text-box>\n </div>\n </div>\n <div class=\"w-full px-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Default Value</p>\n <dx-text-box [(ngModel)]=\"items.value\"\n [readOnly]=\"contentType == 'view'\"></dx-text-box>\n </div>\n </div>\n <div class=\"w-full px-2\">\n <div class=\"mx-2\">\n <div class=\"flex flex-row\">\n <button *ngIf=\"i !== 0\"\n class=\"{{commonService.btn_light_sm}} cursor-pointer mx-1 mt-6\"\n (click)=\"moveItemForColumns(i, 'up')\">\n <i class=\"fa fa-arrow-up\" aria-hidden=\"true\"></i>\n </button>\n\n <button *ngIf=\"i !== exceptionMainObject.filterList.length - 1\"\n class=\"{{commonService.btn_light_sm}} cursor-pointer mx-1 mt-6\"\n (click)=\"moveItemForColumns(i, 'down')\">\n <i class=\"fa fa-arrow-down\" aria-hidden=\"true\"></i>\n </button>\n\n <button\n class=\"{{commonService.btn_danger_sm}} cursor-pointer mx-1 mt-6\"\n (click)=\"deleteColume(i)\"><i class=\"fa fa-trash-o\"\n aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n </div>\n\n\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"w-full border-b my-4\">\n <div class=\"m-2\">\n <div class=\"flex flex-col flex-auto min-w-0 my-2\">\n <div class=\"py-2 border-b border-b\">\n <div class=\"flex flex-row px-2\">\n <div class=\"w-1/2 px-2\">\n <div class=\"text-2xl font-extrabold\">Pattern List</div>\n </div>\n <div class=\"w-1/2 px-2\">\n <div class=\"flex justify-end\">\n <button class=\"{{commonService.btn_primary_md}}\"\n (click)=\"getAddPatternsConfig()\">\n Add Pattern\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class=\"pt-2\">\n <ng-container *ngFor=\"let items of exceptionMainObject.patternList;let i = index;\">\n <div class=\"flex flex-wrap my-2\">\n <div class=\"w-1/2 px-2 my-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Regex</p>\n <dx-text-box [(ngModel)]=\"items.regex\"\n [readOnly]=\"contentType == 'view'\">\n </dx-text-box>\n </div>\n </div>\n <div class=\"w-1/2 px-2 my-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">File Attributes</p>\n <dx-tag-box [multiline]=\"true\" [showSelectionControls]=\"true\"\n [acceptCustomValue]=\"true\"\n (onCustomItemCreating)=\"onCustomFileAttributesAdd($event)\"\n [(ngModel)]=\"items.fileAttributes\" [searchEnabled]=\"true\">\n </dx-tag-box>\n </div>\n </div>\n\n <div class=\"w-1/3 px-2 my-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">SequenceKey</p>\n <dx-text-box [(ngModel)]=\"items.sequenceKey\"\n [readOnly]=\"contentType == 'view'\">\n </dx-text-box>\n </div>\n </div>\n\n <div class=\"w-1/3 px-2 my-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Analyzer Keys</p>\n <dx-tag-box [multiline]=\"true\" [showSelectionControls]=\"true\"\n [acceptCustomValue]=\"true\"\n (onCustomItemCreating)=\"onCustomAnalizerKeyAdd($event)\"\n [(ngModel)]=\"items.analyzerKeys\" [searchEnabled]=\"true\">\n </dx-tag-box>\n </div>\n </div>\n <div class=\"w-1/6 px-2 my-2\">\n <div class=\"dx-field\">\n <p class=\"mb-1\">Sample</p>\n <dx-text-box [(ngModel)]=\"items.sample\"\n [readOnly]=\"contentType == 'view'\">\n </dx-text-box>\n </div>\n </div>\n <div class=\"w-1/6 px-2 my-2\">\n <div class=\"mx-2\">\n <div class=\"flex flex-row\">\n <button *ngIf=\"i !== 0\"\n class=\"{{commonService.btn_light_sm}} cursor-pointer mx-1 mt-6\"\n (click)=\"moveItemForpatterns(i, 'up')\">\n <i class=\"fa fa-arrow-up\" aria-hidden=\"true\"></i>\n </button>\n\n <button *ngIf=\"i !== exceptionMainObject.filterList.length - 1\"\n class=\"{{commonService.btn_light_sm}} cursor-pointer mx-1 mt-6\"\n (click)=\"moveItemForpatterns(i, 'down')\">\n <i class=\"fa fa-arrow-down\" aria-hidden=\"true\"></i>\n </button>\n\n <button\n class=\"{{commonService.btn_danger_sm}} cursor-pointer mx-1 mt-6\"\n (click)=\"deletePatternsColume(i)\"><i class=\"fa fa-trash-o\"\n aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class=\"text-xl mb-2\">Dynamic Arguments |\n <button class=\"{{commonService.btn_primary_sm}}\"\n (click)=\"addDynamicArgument(i)\">Add Arguments</button>\n </div>\n <div class=\"m-5\">\n\n <div class=\"flex flex-wrap\">\n <ng-container *ngFor=\"let item of items.dynamicArgs | keyvalue\">\n <div class=\"w-1/2 p-2\">\n <div class=\"flex flex-row\">\n <div class=\"m-1\">\n <div class=\"text-md\"> Argument Key</div>\n <dx-text-box [(ngModel)]=\"item.key\"></dx-text-box>\n </div>\n <div class=\"m-1\">\n <div class=\"text-md\"> Argument Value</div>\n <dx-text-box\n [(ngModel)]=\"items.dynamicArgs[item.key]\"></dx-text-box>\n </div>\n <div class=\"m-1\">\n <button\n class=\"{{commonService.btn_danger_sm}} cursor-pointer mx-1 mt-6\"\n (click)=\"deleteDynamicArguments(item,item.key,i)\"><i\n class=\"fa fa-trash-o\"\n aria-hidden=\"true\"></i></button>\n </div>\n </div>\n </div>\n </ng-container>\n\n </div>\n </div>\n\n\n\n </ng-container>\n\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"flex w-full justify-end mt-5 border-t\" *ngIf=\"contentType !== 'view'\">\n\n <button class=\"{{commonService.btn_success_md}} cursor-pointer mx-1 my-2\"\n (click)=\"saveExceptionConfig()\" *ngIf=\"contentType == 'create'\">\n Create Exception Config\n </button>\n <button class=\"{{commonService.btn_success_md}} cursor-pointer mx-1 my-2\"\n (click)=\"updateExceptionConfig()\" *ngIf=\"contentType == 'edit'\">\n Update Exception Config\n </button>\n </div>\n </div>\n </div>\n </ng-container>\n</div>" }]
2329
+ }], ctorParameters: function () { return [{ type: CommonService }, { type: ApplicationContentService }, { type: i3.ToastrService }]; }, propDecorators: { dataGrid: [{
2330
+ type: ViewChild,
2331
+ args: ['gridContainer', { static: false }]
2332
+ }] } });
2333
+
2334
+ class LoadingModule$1 {
2335
+ }
2336
+ LoadingModule$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LoadingModule$1, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2337
+ LoadingModule$1.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: LoadingModule$1, declarations: [LoadingComponent$1], imports: [RouterModule,
2338
+ CommonModule,
2339
+ FormsModule], exports: [LoadingComponent$1] });
2340
+ LoadingModule$1.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LoadingModule$1, imports: [RouterModule,
2341
+ CommonModule,
2342
+ FormsModule] });
2343
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LoadingModule$1, decorators: [{
2344
+ type: NgModule,
2345
+ args: [{
2346
+ imports: [
2347
+ RouterModule,
2348
+ CommonModule,
2349
+ FormsModule,
2350
+ ],
2351
+ declarations: [LoadingComponent$1],
2352
+ exports: [LoadingComponent$1]
2353
+ }]
2354
+ }] });
2355
+
2356
+ const routes = [
2357
+ {
2358
+ path: '',
2359
+ loadChildren: () => Promise.resolve().then(function () { return applicationController_module; }).then((m) => m.PackageApplicationControllerModule),
2360
+ },
2361
+ ];
2362
+ class GammaAppControllerModule {
2363
+ }
2364
+ GammaAppControllerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: GammaAppControllerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2365
+ GammaAppControllerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: GammaAppControllerModule, declarations: [GammaAppControllerComponent,
2366
+ ExceptionOperationComponent], imports: [IconsModule, i4.RouterModule, CommonModule,
2367
+ DevExtremeModule,
2368
+ DxButtonModule,
2369
+ DxCheckBoxModule,
2370
+ DxNumberBoxModule,
2371
+ DxDataGridModule,
2372
+ DxDropDownBoxModule,
2373
+ DxTreeViewModule,
2374
+ DxScrollViewModule,
2375
+ DxFormModule,
2376
+ DxAccordionModule,
2377
+ FormsModule,
2378
+ DxTagBoxModule,
2379
+ ReactiveFormsModule,
2380
+ MatIconModule,
2381
+ DxHtmlEditorModule,
2382
+ DxBulletModule,
2383
+ DxChartModule,
2384
+ DxDateBoxModule,
2385
+ DxLoadPanelModule,
2386
+ DxLookupModule,
2387
+ DxPivotGridModule,
2388
+ DxTemplateModule,
2389
+ DxTextAreaModule,
2390
+ DxValidationSummaryModule,
2391
+ DxValidatorModule,
2392
+ DxCalendarModule,
2393
+ DxTooltipModule,
2394
+ DxContextMenuModule,
2395
+ DxLoadIndicatorModule,
2396
+ DxPieChartModule,
2397
+ MatTooltipModule,
2398
+ DxPopupModule, DxSelectBoxModule, DxTextBoxModule, DxTreeViewModule,
2399
+ MatButtonModule,
2400
+ MatDividerModule,
2401
+ MatMenuModule,
2402
+ MatIconModule,
2403
+ LoadingModule$1], exports: [RouterModule,
2404
+ GammaAppControllerComponent,
2405
+ IconsModule,
2406
+ ExceptionOperationComponent] });
2407
+ GammaAppControllerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: GammaAppControllerModule, imports: [IconsModule,
2408
+ RouterModule.forChild(routes),
2409
+ CommonModule,
2410
+ DevExtremeModule,
2411
+ DxButtonModule,
2412
+ DxCheckBoxModule,
2413
+ DxNumberBoxModule,
2414
+ DxDataGridModule,
2415
+ DxDropDownBoxModule,
2416
+ DxTreeViewModule,
2417
+ DxScrollViewModule,
2418
+ DxFormModule,
2419
+ DxAccordionModule,
2420
+ FormsModule,
2421
+ DxTagBoxModule,
2422
+ ReactiveFormsModule,
2423
+ MatIconModule,
2424
+ DxHtmlEditorModule,
2425
+ DxBulletModule,
2426
+ DxChartModule,
2427
+ DxDateBoxModule,
2428
+ DxLoadPanelModule,
2429
+ DxLookupModule,
2430
+ DxPivotGridModule,
2431
+ DxTemplateModule,
2432
+ DxTextAreaModule,
2433
+ DxValidationSummaryModule,
2434
+ DxValidatorModule,
2435
+ DxCalendarModule,
2436
+ DxTooltipModule,
2437
+ DxContextMenuModule,
2438
+ DxLoadIndicatorModule,
2439
+ DxPieChartModule,
2440
+ MatTooltipModule,
2441
+ DxPopupModule, DxSelectBoxModule, DxTextBoxModule, DxTreeViewModule,
2442
+ MatButtonModule,
2443
+ MatDividerModule,
2444
+ MatMenuModule,
2445
+ MatIconModule,
2446
+ LoadingModule$1, RouterModule,
2447
+ IconsModule] });
2448
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: GammaAppControllerModule, decorators: [{
2449
+ type: NgModule,
2450
+ args: [{
2451
+ declarations: [
2452
+ GammaAppControllerComponent,
2453
+ ExceptionOperationComponent
2454
+ ],
2455
+ imports: [
2456
+ IconsModule,
2457
+ RouterModule.forChild(routes),
2458
+ CommonModule,
2459
+ DevExtremeModule,
2460
+ DxButtonModule,
2461
+ DxCheckBoxModule,
2462
+ DxNumberBoxModule,
2463
+ DxDataGridModule,
2464
+ DxDropDownBoxModule,
2465
+ DxTreeViewModule,
2466
+ DxScrollViewModule,
2467
+ DxFormModule,
2468
+ DxAccordionModule,
2469
+ FormsModule,
2470
+ DxTagBoxModule,
2471
+ ReactiveFormsModule,
2472
+ MatIconModule,
2473
+ DxHtmlEditorModule,
2474
+ DxBulletModule,
2475
+ DxChartModule,
2476
+ DxDateBoxModule,
2477
+ DxLoadPanelModule,
2478
+ DxLookupModule,
2479
+ DxPivotGridModule,
2480
+ DxTemplateModule,
2481
+ DxTextAreaModule,
2482
+ DxValidationSummaryModule,
2483
+ DxValidatorModule,
2484
+ DxCalendarModule,
2485
+ DxTooltipModule,
2486
+ DxContextMenuModule,
2487
+ DxLoadIndicatorModule,
2488
+ DxPieChartModule,
2489
+ MatTooltipModule,
2490
+ DxPopupModule, DxSelectBoxModule, DxTextBoxModule, DxTreeViewModule,
2491
+ MatButtonModule,
2492
+ MatDividerModule,
2493
+ MatMenuModule,
2494
+ MatIconModule,
2495
+ LoadingModule$1
2496
+ ],
2497
+ exports: [
2498
+ RouterModule,
2499
+ GammaAppControllerComponent,
2500
+ IconsModule,
2501
+ ExceptionOperationComponent
2502
+ ]
2503
+ }]
2504
+ }] });
2531
2505
 
2532
2506
  class LoaderComponent {
2533
2507
  constructor() { }