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';
@@ -1330,1214 +1330,1186 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
1330
1330
 
1331
1331
  const APP_ENVIRONMENT = new InjectionToken('APP_ENVIRONMENT');
1332
1332
 
1333
- class ExceptionConfigsService extends AppHttpService {
1333
+ class ApplicationContentService extends AppHttpService {
1334
1334
  constructor(httpClient, environment) {
1335
1335
  super(httpClient);
1336
1336
  this.httpClient = httpClient;
1337
1337
  this.environment = environment;
1338
+ this.kpiFilter = new BehaviorSubject([]);
1339
+ this.userkpiFilter$ = this.kpiFilter.asObservable();
1340
+ this.datasets = new BehaviorSubject([]);
1341
+ this.updateDatssets$ = this.datasets.asObservable();
1338
1342
  }
1339
- saveFileSequenceAnalyzerGroup(body) {
1343
+ getFilterForKpi(pins) {
1344
+ this.kpiFilter.next(pins);
1345
+ }
1346
+ getCurrentKpiFilterValue() {
1347
+ return this.kpiFilter.getValue();
1348
+ }
1349
+ setCurrentDatasetValue(data) {
1350
+ return this.datasets.next(data);
1351
+ }
1352
+ getDataSet() {
1353
+ const apiUrl = '/assets/api-data/data-set.json';
1354
+ return this.http.get(apiUrl, { withCredentials: true }).pipe(map((response) => {
1355
+ return response;
1356
+ }), catchError(this.handleError));
1357
+ }
1358
+ getComponentDataConfigSet() {
1359
+ const apiUrl = '/assets/api-data/component_config.json';
1360
+ return this.http.get(apiUrl, { withCredentials: true }).pipe(map((response) => {
1361
+ return response;
1362
+ }), catchError(this.handleError));
1363
+ }
1364
+ listColumnEnrichmentFunctions() {
1365
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi/listColumnEnrichmentFunctions';
1340
1366
  return this.http
1341
- .post(this.environment.appUrl + this.environment.apiVersion + '/settings/operations/saveFileSequenceAnalyzerGroup', JSON.stringify(body), this.options)
1367
+ .post(apiUrl, this.options)
1342
1368
  .pipe(map((response) => {
1343
1369
  return response;
1344
1370
  }), catchError(this.handleError));
1345
1371
  }
1346
- editFileSequenceAnalyzerGroup(body) {
1372
+ validateAggregatePaginatedQuery(transformedObject) {
1373
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi/validateAggregatePaginatedQuery';
1347
1374
  return this.http
1348
- .post(this.environment.appUrl + this.environment.apiVersion + '/settings/operations/editFileSequenceAnalyzerGroup', JSON.stringify(body), this.options)
1375
+ .post(apiUrl, JSON.stringify(transformedObject), this.options)
1349
1376
  .pipe(map((response) => {
1350
1377
  return response;
1351
1378
  }), catchError(this.handleError));
1352
1379
  }
1353
- getCdrBrowserOperations() {
1380
+ getKpiBrowserConfigById(id) {
1381
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getKpiBrowserConfigById?id=' + id;
1354
1382
  return this.http
1355
- .get(this.environment.appUrl + this.environment.apiVersion + '/search/getCdrBrowserOperations', { withCredentials: true })
1383
+ .get(apiUrl, { withCredentials: true })
1356
1384
  .pipe(map((response) => {
1357
1385
  return response;
1358
1386
  }), catchError(this.handleError));
1359
1387
  }
1360
- getAppSqlFunctionList() {
1361
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/app-setting/getAppSqlFunctionList';
1388
+ getData(body, requestID) {
1389
+ return this.http
1390
+ .post(this.environment.appUrl + this.environment.apiVersion + requestID, JSON.stringify(body), this.options)
1391
+ .pipe(map((response) => {
1392
+ return response;
1393
+ }), catchError(this.handleError));
1394
+ }
1395
+ getSimpleApiPostRequest(requestApi, body) {
1396
+ return this.http
1397
+ .post(this.environment.appUrl + this.environment.apiVersion + requestApi, JSON.stringify(body), this.options)
1398
+ .pipe(map((response) => {
1399
+ return response;
1400
+ }), catchError(this.handleError));
1401
+ }
1402
+ getSimpleApiGetRequest(requestApi) {
1403
+ return this.http
1404
+ .get(this.environment.appUrl + this.environment.apiVersion + requestApi, { withCredentials: true })
1405
+ .pipe(map((response) => {
1406
+ return response;
1407
+ }), catchError(this.handleError));
1408
+ }
1409
+ getJsonDatasetPayload(requestApi) {
1410
+ return this.http
1411
+ .get(this.environment.appUrl + this.environment.apiVersion + requestApi, { withCredentials: true })
1412
+ .pipe(map((response) => {
1413
+ return response;
1414
+ }), catchError(this.handleError));
1415
+ }
1416
+ genericSqlQueryResponse(requestApi, body) {
1417
+ return this.http
1418
+ .post(this.environment.appUrl + this.environment.apiVersion + requestApi, JSON.stringify(body), this.options)
1419
+ .pipe(map((response) => {
1420
+ return response;
1421
+ }), catchError(this.handleError));
1422
+ }
1423
+ createAppDataset(body) {
1424
+ return this.http
1425
+ .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/createAppDataset', JSON.stringify(body), this.options)
1426
+ .pipe(map((response) => {
1427
+ return response;
1428
+ }), catchError(this.handleError));
1429
+ }
1430
+ updateAppDatasetConfig(body) {
1431
+ return this.http
1432
+ .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/updateAppDatasetConfig', JSON.stringify(body), this.options)
1433
+ .pipe(map((response) => {
1434
+ return response;
1435
+ }), catchError(this.handleError));
1436
+ }
1437
+ deleteAppDatasetConfig(datasetId) {
1438
+ return this.http
1439
+ .delete(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/deleteAppDatasetConfig/' + datasetId, this.options)
1440
+ .pipe(map((response) => {
1441
+ return response;
1442
+ }), catchError(this.handleError));
1443
+ }
1444
+ getAppDatasetConfigs() {
1445
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppDatasetConfigs';
1362
1446
  return this.http
1363
1447
  .get(apiUrl, { withCredentials: true })
1364
1448
  .pipe(map((response) => {
1365
1449
  return response;
1366
1450
  }), catchError(this.handleError));
1367
1451
  }
1368
- listFileSequenceAnalyzerGroups() {
1369
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/settings/operations/listFileSequenceAnalyzerGroups';
1452
+ getAppDatasetConfig(datasetId) {
1453
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppDatasetConfig?datasetId=' + datasetId;
1370
1454
  return this.http
1371
1455
  .get(apiUrl, { withCredentials: true })
1372
1456
  .pipe(map((response) => {
1373
1457
  return response;
1374
1458
  }), catchError(this.handleError));
1375
1459
  }
1376
- deleteFileSequenceAnalyzerGroup(configid) {
1460
+ createAppViewConfig(body) {
1377
1461
  return this.http
1378
- .delete(this.environment.appUrl + this.environment.apiVersion + "/settings/operations/deleteFileSequenceAnalyzerGroup/" + configid, { withCredentials: true })
1462
+ .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/createAppViewConfig', JSON.stringify(body), this.options)
1379
1463
  .pipe(map((response) => {
1380
1464
  return response;
1381
1465
  }), catchError(this.handleError));
1382
1466
  }
1383
- activateFileSequenceAnalyzerGroup(configid) {
1467
+ updateAppViewConfig(body) {
1384
1468
  return this.http
1385
- .get(this.environment.appUrl + this.environment.apiVersion + "/settings/operations/activateFileSequenceAnalyzerGroup?configId=" + configid, { withCredentials: true })
1469
+ .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/updateAppViewConfig', JSON.stringify(body), this.options)
1386
1470
  .pipe(map((response) => {
1387
1471
  return response;
1388
1472
  }), catchError(this.handleError));
1389
1473
  }
1390
- deactivateFileSequenceAnalyzerGroup(configid) {
1474
+ getAppViewConfigs() {
1475
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppViewConfigs';
1391
1476
  return this.http
1392
- .get(this.environment.appUrl + this.environment.apiVersion + "/settings/operations/deactivateFileSequenceAnalyzerGroup?configId=" + configid, { withCredentials: true })
1477
+ .get(apiUrl, { withCredentials: true })
1393
1478
  .pipe(map((response) => {
1394
1479
  return response;
1395
1480
  }), catchError(this.handleError));
1396
1481
  }
1397
- updateFileSequenceAnalyzerJobs() {
1482
+ getAppViewConfig(viewId) {
1483
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppViewConfig?viewId=' + viewId;
1398
1484
  return this.http
1399
- .get(this.environment.appUrl + this.environment.apiVersion + "/settings/operations/updateFileSequenceAnalyzerJobs", { withCredentials: true })
1485
+ .get(apiUrl, { withCredentials: true })
1400
1486
  .pipe(map((response) => {
1401
1487
  return response;
1402
1488
  }), catchError(this.handleError));
1403
1489
  }
1404
- getAppDatasource() {
1490
+ deleteAppViewConfig(datasetId) {
1405
1491
  return this.http
1406
- .get(this.environment.appUrl + this.environment.apiVersion + '/operations/getAppDatasource')
1492
+ .delete(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/deleteAppViewConfig/' + datasetId, this.options)
1407
1493
  .pipe(map((response) => {
1408
1494
  return response;
1409
1495
  }), catchError(this.handleError));
1410
1496
  }
1411
- }
1412
- 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 });
1413
- ExceptionConfigsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ExceptionConfigsService, providedIn: "root" });
1414
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ExceptionConfigsService, decorators: [{
1415
- type: Injectable,
1416
- args: [{
1417
- providedIn: "root"
1418
- }]
1419
- }], ctorParameters: function () {
1420
- return [{ type: i1$1.HttpClient }, { type: undefined, decorators: [{
1421
- type: Inject,
1422
- args: [APP_ENVIRONMENT]
1423
- }] }];
1424
- } });
1425
-
1426
- class LoadingComponent$1 {
1427
- constructor() {
1428
- this.showLoadingModal = true;
1497
+ createAppFilterConfig(body) {
1498
+ return this.http
1499
+ .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/createAppFilterConfig', JSON.stringify(body), this.options)
1500
+ .pipe(map((response) => {
1501
+ return response;
1502
+ }), catchError(this.handleError));
1429
1503
  }
1430
- ngOnInit() {
1504
+ editAppFilterConfig(body) {
1505
+ return this.http
1506
+ .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/editAppFilterConfig', JSON.stringify(body), this.options)
1507
+ .pipe(map((response) => {
1508
+ return response;
1509
+ }), catchError(this.handleError));
1431
1510
  }
1432
- }
1433
- LoadingComponent$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LoadingComponent$1, deps: [], target: i0.ɵɵFactoryTarget.Component });
1434
- 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"] });
1435
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LoadingComponent$1, decorators: [{
1436
- type: Component,
1437
- 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"] }]
1438
- }], ctorParameters: function () { return []; } });
1439
-
1440
- class ExceptionOperationComponent {
1441
- constructor(commonService, service, toastr) {
1442
- this.commonService = commonService;
1443
- this.service = service;
1444
- this.toastr = toastr;
1445
- this.contentType = "create";
1446
- this.exceptionMainObject = {
1447
- configId: "",
1448
- configName: "",
1449
- datasource: "",
1450
- active: false,
1451
- analyzerType: "",
1452
- dbConfig: "",
1453
- tableName: "",
1454
- dataSelectionType: "",
1455
- fileNameAttributeName: "",
1456
- filterList: [{
1457
- "columnName": "",
1458
- "dataType": "",
1459
- "operator": "",
1460
- "windowFunctionName": "",
1461
- "value": "",
1462
- "dateFormat": "",
1463
- }],
1464
- patternList: [
1465
- {
1466
- "regex": "",
1467
- "sample": "?_??_?",
1468
- "fileAttributes": [],
1469
- "analyzerKeys": [],
1470
- "sequenceKey": "",
1471
- "dynamicArgs": {}
1472
- }
1473
- ]
1474
- };
1475
- this.analyzer_type = [{ key: "numeric_sequence", name: "Numeric Sequence" }, { key: "date_sequence", name: "Date Sequence" }];
1476
- this.isLoader = true;
1511
+ getAppFilterConfigs() {
1512
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppFilterConfigs';
1513
+ return this.http
1514
+ .get(apiUrl, { withCredentials: true })
1515
+ .pipe(map((response) => {
1516
+ return response;
1517
+ }), catchError(this.handleError));
1477
1518
  }
1478
- ngOnInit() {
1479
- this.getExceptionDataCongigs();
1480
- this.service.getAppSqlFunctionList().subscribe(data => {
1481
- this.functionNameContainer = data;
1482
- });
1483
- this.service.getCdrBrowserOperations().subscribe(data => {
1484
- this.operator_list = data;
1485
- });
1486
- this.service.getAppDatasource().subscribe(data => {
1487
- this.datasourcelist = (data['datasource']) ? data['datasource'] : data;
1488
- });
1519
+ deleteAppFilterConfig(filterId) {
1520
+ return this.http
1521
+ .delete(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/deleteAppFilterConfig/' + filterId, this.options)
1522
+ .pipe(map((response) => {
1523
+ return response;
1524
+ }), catchError(this.handleError));
1489
1525
  }
1490
- getExceptionDataCongigs() {
1491
- return new Promise((resolve) => {
1492
- this.service.listFileSequenceAnalyzerGroups().subscribe((data) => {
1493
- this.allExceptionConfigDataSource = data;
1494
- this.isLoader = false;
1495
- resolve();
1496
- });
1497
- });
1526
+ getMapData(body, requestID) {
1527
+ const apiUrl = '/assets/api-data/mapjson.json';
1528
+ return this.http
1529
+ .get(apiUrl, { withCredentials: true })
1530
+ .pipe(map((response) => {
1531
+ return response;
1532
+ }), catchError(this.handleError));
1498
1533
  }
1499
- editExceptionConfigConfig(data) {
1500
- this.contentType = "edit";
1501
- this.isExceptionConfigCreation = true;
1502
- this.exceptionMainObject = data;
1534
+ getDashBoardJson() {
1535
+ const apiUrl = '/assets/api-data/dashboard_lebara.json';
1536
+ return this.http.get(apiUrl, { withCredentials: true }).pipe(map((response) => {
1537
+ return response;
1538
+ }), catchError(this.handleError));
1503
1539
  }
1504
- createExceptionConfig() {
1505
- this.isExceptionConfigCreation = true;
1506
- this.exceptionMainObject = {
1507
- configId: "",
1508
- configName: "",
1509
- datasource: "",
1510
- active: true,
1511
- analyzerType: "",
1512
- dbConfig: "",
1513
- tableName: "",
1514
- dataSelectionType: "",
1515
- fileNameAttributeName: "",
1516
- filterList: [{
1517
- "columnName": "",
1518
- "dataType": "",
1519
- "operator": "",
1520
- "windowFunctionName": "",
1521
- "dateFormat": "",
1522
- "value": ""
1523
- }],
1524
- patternList: [
1525
- {
1526
- "regex": "",
1527
- "sample": "",
1528
- "fileAttributes": [],
1529
- "analyzerKeys": [],
1530
- "sequenceKey": "",
1531
- "dynamicArgs": {}
1532
- }
1533
- ]
1534
- };
1540
+ getAppPageConfigs() {
1541
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppPageConfigs';
1542
+ return this.http
1543
+ .get(apiUrl, { withCredentials: true })
1544
+ .pipe(map((response) => {
1545
+ return response;
1546
+ }), catchError(this.handleError));
1535
1547
  }
1536
- getCancleExceptionCreation() {
1537
- this.isExceptionConfigCreation = false;
1538
- this.exceptionMainObject = {
1539
- configId: "",
1540
- configName: "",
1541
- datasource: "",
1542
- active: true,
1543
- analyzerType: "",
1544
- dbConfig: "",
1545
- tableName: "",
1546
- dataSelectionType: "",
1547
- fileNameAttributeName: "",
1548
- filterList: [{
1549
- "columnName": "",
1550
- "dataType": "",
1551
- "operator": "",
1552
- "windowFunctionName": "",
1553
- "value": "",
1554
- "dateFormat": ""
1555
- }],
1556
- patternList: [
1557
- {
1558
- "regex": "",
1559
- "sample": "",
1560
- "fileAttributes": [],
1561
- "analyzerKeys": [],
1562
- "sequenceKey": "",
1563
- "dynamicArgs": {}
1564
- }
1565
- ]
1566
- };
1548
+ createAppPageConfig(body) {
1549
+ return this.http
1550
+ .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/createAppPageConfig', JSON.stringify(body), this.options)
1551
+ .pipe(map((response) => {
1552
+ return response;
1553
+ }), catchError(this.handleError));
1567
1554
  }
1568
- getDataConfig(e) {
1555
+ editAppPageConfig(body) {
1556
+ return this.http
1557
+ .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/editAppPageConfig', JSON.stringify(body), this.options)
1558
+ .pipe(map((response) => {
1559
+ return response;
1560
+ }), catchError(this.handleError));
1569
1561
  }
1570
- getProcessForConfig() {
1571
- this.exceptionMainObject.filterList.push({
1572
- "columnName": "",
1573
- "dataType": "",
1574
- "operator": "",
1575
- "windowFunctionName": "",
1576
- "dateFormat": "",
1577
- "value": ""
1578
- });
1562
+ deleteAppPageConfig(pageId) {
1563
+ return this.http
1564
+ .delete(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/deleteAppPageConfig/' + pageId, this.options)
1565
+ .pipe(map((response) => {
1566
+ return response;
1567
+ }), catchError(this.handleError));
1579
1568
  }
1580
- deleteColume(i) {
1581
- this.exceptionMainObject.filterList.splice(i, 1);
1569
+ createAppWidgetConfig(body) {
1570
+ return this.http
1571
+ .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/createAppWidgetConfig', JSON.stringify(body), this.options)
1572
+ .pipe(map((response) => {
1573
+ return response;
1574
+ }), catchError(this.handleError));
1582
1575
  }
1583
- deleteDynamicArguments(item, key, index) {
1584
- delete this.exceptionMainObject.patternList[index]['dynamicArgs'][key];
1576
+ editAppWidgetConfig(body) {
1577
+ return this.http
1578
+ .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/editAppWidgetConfig', JSON.stringify(body), this.options)
1579
+ .pipe(map((response) => {
1580
+ return response;
1581
+ }), catchError(this.handleError));
1585
1582
  }
1586
- addDynamicArgument(index) {
1587
- let newKey = '';
1588
- let newValue = '';
1589
- this.exceptionMainObject.patternList[index]['dynamicArgs'][newKey] = newValue;
1583
+ getAppPageDetailConfig(pageId) {
1584
+ return this.http
1585
+ .get(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppPageDetailConfig?pageConfigId=' + pageId, this.options)
1586
+ .pipe(map((response) => {
1587
+ return response;
1588
+ }), catchError(this.handleError));
1590
1589
  }
1591
- moveItemForColumns(index, direction) {
1592
- if (index < 0 || index >= this.exceptionMainObject.filterList.length)
1593
- return;
1594
- const newPosition = direction === 'up' ? index - 1 : index + 1;
1595
- if (newPosition < 0 || newPosition >= this.exceptionMainObject.filterList.length)
1596
- return;
1597
- const itemToMove = this.exceptionMainObject.filterList[index];
1598
- this.exceptionMainObject.filterList.splice(index, 1);
1599
- this.exceptionMainObject.filterList.splice(newPosition, 0, itemToMove);
1590
+ deleteAppWidgetConfig(filterId) {
1591
+ return this.http
1592
+ .delete(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/deleteAppWidgetConfig/' + filterId, this.options)
1593
+ .pipe(map((response) => {
1594
+ return response;
1595
+ }), catchError(this.handleError));
1600
1596
  }
1601
- getAddPatternsConfig() {
1602
- this.exceptionMainObject.patternList.push({
1603
- "regex": "",
1604
- "sample": "",
1605
- "sequenceKey": "",
1606
- "fileAttributes": [],
1607
- "analyzerKeys": [],
1608
- "dynamicArgs": {}
1609
- });
1597
+ getAppFilterConfig(filterId) {
1598
+ return this.http
1599
+ .get(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppFilterConfig?filterId=' + filterId, this.options)
1600
+ .pipe(map((response) => {
1601
+ return response;
1602
+ }), catchError(this.handleError));
1610
1603
  }
1611
- moveItemForpatterns(index, direction) {
1612
- if (index < 0 || index >= this.exceptionMainObject.patternList.length)
1613
- return;
1614
- const newPosition = direction === 'up' ? index - 1 : index + 1;
1615
- if (newPosition < 0 || newPosition >= this.exceptionMainObject.patternList.length)
1616
- return;
1617
- const itemToMove = this.exceptionMainObject.patternList[index];
1618
- this.exceptionMainObject.patternList.splice(index, 1);
1619
- this.exceptionMainObject.patternList.splice(newPosition, 0, itemToMove);
1604
+ getKPIReferenceEndPoints() {
1605
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getKPIReferenceEndPoints';
1606
+ return this.http
1607
+ .get(apiUrl, { withCredentials: true })
1608
+ .pipe(map((response) => {
1609
+ return response;
1610
+ }), catchError(this.handleError));
1620
1611
  }
1621
- deletePatternsColume(i) {
1622
- this.exceptionMainObject.patternList.splice(i, 1);
1612
+ loadKpiBrowser() {
1613
+ return this.http
1614
+ .get(this.environment.appUrl + this.environment.apiVersion + '/kpi/loadKpiBrowser', { withCredentials: true })
1615
+ .pipe(map((response) => {
1616
+ return response;
1617
+ }), catchError(this.handleError));
1623
1618
  }
1624
- onCustomFileAttributesAdd(args) {
1625
- const newValue = args.text;
1626
- args.customItem = newValue;
1627
- const isItemInDataSource = this.exceptionMainObject.patternList['fileAttributes'].some((item) => item === newValue);
1628
- if (!isItemInDataSource) {
1629
- this.exceptionMainObject.patternList['fileAttributes'].unshift(newValue);
1630
- }
1619
+ getlistKpiBrowser() {
1620
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/listKpiBrowser';
1621
+ return this.http
1622
+ .get(apiUrl, { withCredentials: true })
1623
+ .pipe(map((response) => {
1624
+ return response;
1625
+ }), catchError(this.handleError));
1631
1626
  }
1632
- onCustomAnalizerKeyAdd(args) {
1633
- const newValue = args.text;
1634
- args.customItem = newValue;
1635
- const isItemInDataSource = this.exceptionMainObject.patternList['analyzerKeys'].some((item) => item === newValue);
1636
- if (!isItemInDataSource) {
1637
- this.exceptionMainObject.patternList['analyzerKeys'].unshift(newValue);
1638
- }
1627
+ getBookmarkedResource() {
1628
+ return this.http
1629
+ .get(this.environment.appUrl + this.environment.apiVersion + '/kpi/getBookmarkedResource', { withCredentials: true })
1630
+ .pipe(map((response) => {
1631
+ return response;
1632
+ }), catchError(this.handleError));
1639
1633
  }
1640
- updateExceptionConfig() {
1641
- this.loadingModal = true;
1642
- this.service.editFileSequenceAnalyzerGroup(this.exceptionMainObject).subscribe({
1643
- next: (data) => {
1644
- this.isExceptionConfigCreation = false;
1645
- this.loadingModal = false;
1646
- this.isLoader = true;
1647
- this.getExceptionDataCongigs();
1648
- }, error: (err) => {
1649
- this.loadingModal = false;
1650
- this.isLoader = false;
1651
- this.toastr.error('Unexpected Server Exception. Please contact System Admin.', 'Create Exception Config');
1652
- }
1653
- });
1654
- console.log(this.exceptionMainObject);
1634
+ bookmarkResource(body) {
1635
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi/bookmarkResource';
1636
+ return this.http
1637
+ .post(apiUrl, JSON.stringify(body), this.options)
1638
+ .pipe(map((response) => {
1639
+ return response;
1640
+ }), catchError(this.handleError));
1655
1641
  }
1656
- saveExceptionConfig() {
1657
- for (const element of this.exceptionMainObject.patternList) {
1658
- if (!element.fileAttributes.includes(element.sequenceKey)) {
1659
- this.toastr.error('Sequence Key not valid');
1660
- return;
1661
- }
1662
- const allMatch = element.analyzerKeys.every(item => element.fileAttributes.includes(item));
1663
- const allKeysMatch = Object.keys(element.dynamicArgs).every(key => element.fileAttributes.includes(key));
1664
- if (!allMatch) {
1665
- this.toastr.error('Analyzer Keys not valid');
1666
- return;
1667
- }
1668
- if (!allKeysMatch) {
1669
- this.toastr.error('Filler not valid');
1670
- return;
1671
- }
1672
- const updatedObj = Object.fromEntries(Object.entries(element.dynamicArgs).map(([key, value]) => [`default_${key}_filter`, value]));
1673
- element.dynamicArgs = updatedObj;
1674
- }
1675
- this.loadingModal = true;
1676
- this.service.saveFileSequenceAnalyzerGroup(this.exceptionMainObject).subscribe({
1677
- next: (data) => {
1678
- this.isExceptionConfigCreation = false;
1679
- this.loadingModal = false;
1680
- this.isLoader = true;
1681
- this.getExceptionDataCongigs();
1682
- }, error: (err) => {
1683
- this.loadingModal = false;
1684
- this.isLoader = false;
1685
- this.toastr.error('Unexpected Server Exception. Please contact System Admin.', 'Create Exception Config');
1686
- }
1687
- });
1642
+ configureKpiBrowserConfig(body) {
1643
+ return this.http
1644
+ .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/configureKpiBrowserConfig', JSON.stringify(body), this.options)
1645
+ .pipe(map((response) => {
1646
+ return response;
1647
+ }), catchError(this.handleError));
1688
1648
  }
1689
- deleteExceptionConfig(data) {
1690
- let result = confirm("<i>Are You Sure?</i>", "Delete Config");
1691
- result.then((dialogResult) => {
1692
- if (dialogResult) {
1693
- this.loadingModal = true;
1694
- this.service.deleteFileSequenceAnalyzerGroup(data.configId).subscribe({
1695
- next: (data) => {
1696
- var _a;
1697
- const currentPageIndex = (_a = this.dataGrid) === null || _a === void 0 ? void 0 : _a.instance.pageIndex();
1698
- this.getExceptionDataCongigs().then(() => {
1699
- if (currentPageIndex !== undefined) {
1700
- this.dataGrid.instance.pageIndex(currentPageIndex);
1701
- }
1702
- this.isLoader = false;
1703
- this.toastr.success(data.response);
1704
- });
1705
- }, error: (err) => {
1706
- this.loadingModal = false;
1707
- this.toastr.error('Unexpected Server Exception. Please contact System Admin.', 'CDR Config Delete');
1708
- }
1709
- });
1710
- }
1711
- });
1649
+ getCreateKpi(body) {
1650
+ return this.http
1651
+ .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/createKpi', JSON.stringify(body), this.options)
1652
+ .pipe(map((response) => {
1653
+ return response;
1654
+ }), catchError(this.handleError));
1712
1655
  }
1713
- activatedException(data) {
1714
- let result = confirm("<i>Are You Sure?</i>", "Activate Config");
1715
- result.then((dialogResult) => {
1716
- if (dialogResult) {
1717
- this.service.activateFileSequenceAnalyzerGroup(data.configId).subscribe({
1718
- next: (data) => {
1719
- var _a;
1720
- const currentPageIndex = (_a = this.dataGrid) === null || _a === void 0 ? void 0 : _a.instance.pageIndex();
1721
- this.getExceptionDataCongigs().then(() => {
1722
- if (currentPageIndex !== undefined) {
1723
- this.dataGrid.instance.pageIndex(currentPageIndex);
1724
- }
1725
- this.isLoader = false;
1726
- this.toastr.success(data.response);
1727
- });
1728
- }, error: (err) => {
1729
- console.log(err);
1730
- this.loadingModal = false;
1731
- this.toastr.error('Unexpected Server Exception. Please contact System Admin.', 'Exception Config');
1732
- }
1733
- });
1734
- }
1656
+ uploadDatasetJsonPayload(formData) {
1657
+ const headers = new HttpHeaders({
1658
+ 'enctype': 'multipart/form-data',
1735
1659
  });
1660
+ const options = { headers: headers, withCredentials: true };
1661
+ return this.http
1662
+ .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/uploadDatasetJsonPayload', formData, options)
1663
+ .pipe(map((response) => {
1664
+ return response;
1665
+ }), catchError(this.handleError));
1736
1666
  }
1737
- deActivatedException(data) {
1738
- let result = confirm("<i>Are You Sure?</i>", "Deactivate Config");
1739
- result.then((dialogResult) => {
1740
- if (dialogResult) {
1741
- this.service.deactivateFileSequenceAnalyzerGroup(data.configId).subscribe({
1742
- next: (data) => {
1743
- var _a;
1744
- const currentPageIndex = (_a = this.dataGrid) === null || _a === void 0 ? void 0 : _a.instance.pageIndex();
1745
- this.getExceptionDataCongigs().then(() => {
1746
- if (currentPageIndex !== undefined) {
1747
- this.dataGrid.instance.pageIndex(currentPageIndex);
1748
- }
1749
- this.isLoader = false;
1750
- this.toastr.success(data.response);
1751
- });
1752
- }, error: (err) => {
1753
- console.log(err);
1754
- this.loadingModal = false;
1755
- this.toastr.error('Unexpected Server Exception. Please contact System Admin.', 'Exception Config');
1756
- }
1757
- });
1758
- }
1759
- });
1667
+ getKpiData() {
1668
+ return this.http
1669
+ .get(`${this.environment.basePath}assets/api-data/policy.json`, { withCredentials: true })
1670
+ .pipe(map((response) => {
1671
+ return response;
1672
+ }), catchError(this.handleError));
1760
1673
  }
1761
- updateFileSequenceAnalyzerJobs() {
1762
- this.loadingModal = true;
1763
- this.service.updateFileSequenceAnalyzerJobs().subscribe({
1764
- next: (data) => {
1765
- this.loadingModal = false;
1766
- this.toastr.success("File Sequence Analyzer Jobs Updated");
1767
- }, error: err => {
1768
- this.loadingModal = false;
1769
- this.toastr.error('Unexpected Server Exception. Please contact System Admin.', 'Exception Config');
1770
- }
1771
- });
1674
+ getGroupDetails() {
1675
+ return this.http
1676
+ .get(this.environment.appUrl + this.environment.apiVersion + '/jobs/getGroupDetails', { withCredentials: true })
1677
+ .pipe(map((response) => {
1678
+ return response;
1679
+ }), catchError(this.handleError));
1772
1680
  }
1773
- }
1774
- 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 });
1775
- 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" }] });
1776
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ExceptionOperationComponent, decorators: [{
1777
- type: Component,
1778
- 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>" }]
1779
- }], ctorParameters: function () { return [{ type: CommonService }, { type: ExceptionConfigsService }, { type: i3.ToastrService }]; }, propDecorators: { dataGrid: [{
1780
- type: ViewChild,
1781
- args: ['gridContainer', { static: false }]
1782
- }] } });
1783
-
1784
- class LoadingModule$1 {
1785
- }
1786
- LoadingModule$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LoadingModule$1, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1787
- LoadingModule$1.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: LoadingModule$1, declarations: [LoadingComponent$1], imports: [RouterModule,
1788
- CommonModule,
1789
- FormsModule], exports: [LoadingComponent$1] });
1790
- LoadingModule$1.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LoadingModule$1, imports: [RouterModule,
1791
- CommonModule,
1792
- FormsModule] });
1793
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LoadingModule$1, decorators: [{
1794
- type: NgModule,
1795
- args: [{
1796
- imports: [
1797
- RouterModule,
1798
- CommonModule,
1799
- FormsModule,
1800
- ],
1801
- declarations: [LoadingComponent$1],
1802
- exports: [LoadingComponent$1]
1803
- }]
1804
- }] });
1805
-
1806
- const routes = [
1807
- {
1808
- path: '',
1809
- loadChildren: () => Promise.resolve().then(function () { return applicationController_module; }).then((m) => m.PackageApplicationControllerModule),
1810
- },
1811
- ];
1812
- class GammaAppControllerModule {
1813
- }
1814
- GammaAppControllerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: GammaAppControllerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1815
- GammaAppControllerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: GammaAppControllerModule, declarations: [GammaAppControllerComponent,
1816
- ExceptionOperationComponent], imports: [IconsModule, i4.RouterModule, CommonModule,
1817
- DevExtremeModule,
1818
- DxButtonModule,
1819
- DxCheckBoxModule,
1820
- DxNumberBoxModule,
1821
- DxDataGridModule,
1822
- DxDropDownBoxModule,
1823
- DxTreeViewModule,
1824
- DxScrollViewModule,
1825
- DxFormModule,
1826
- DxAccordionModule,
1827
- FormsModule,
1828
- DxTagBoxModule,
1829
- ReactiveFormsModule,
1830
- MatIconModule,
1831
- DxHtmlEditorModule,
1832
- DxBulletModule,
1833
- DxChartModule,
1834
- DxDateBoxModule,
1835
- DxLoadPanelModule,
1836
- DxLookupModule,
1837
- DxPivotGridModule,
1838
- DxTemplateModule,
1839
- DxTextAreaModule,
1840
- DxValidationSummaryModule,
1841
- DxValidatorModule,
1842
- DxCalendarModule,
1843
- DxTooltipModule,
1844
- DxContextMenuModule,
1845
- DxLoadIndicatorModule,
1846
- DxPieChartModule,
1847
- MatTooltipModule,
1848
- DxPopupModule, DxSelectBoxModule, DxTextBoxModule, DxTreeViewModule,
1849
- MatButtonModule,
1850
- MatDividerModule,
1851
- MatMenuModule,
1852
- MatIconModule,
1853
- LoadingModule$1], exports: [RouterModule,
1854
- GammaAppControllerComponent,
1855
- IconsModule,
1856
- ExceptionOperationComponent] });
1857
- GammaAppControllerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: GammaAppControllerModule, imports: [IconsModule,
1858
- RouterModule.forChild(routes),
1859
- CommonModule,
1860
- DevExtremeModule,
1861
- DxButtonModule,
1862
- DxCheckBoxModule,
1863
- DxNumberBoxModule,
1864
- DxDataGridModule,
1865
- DxDropDownBoxModule,
1866
- DxTreeViewModule,
1867
- DxScrollViewModule,
1868
- DxFormModule,
1869
- DxAccordionModule,
1870
- FormsModule,
1871
- DxTagBoxModule,
1872
- ReactiveFormsModule,
1873
- MatIconModule,
1874
- DxHtmlEditorModule,
1875
- DxBulletModule,
1876
- DxChartModule,
1877
- DxDateBoxModule,
1878
- DxLoadPanelModule,
1879
- DxLookupModule,
1880
- DxPivotGridModule,
1881
- DxTemplateModule,
1882
- DxTextAreaModule,
1883
- DxValidationSummaryModule,
1884
- DxValidatorModule,
1885
- DxCalendarModule,
1886
- DxTooltipModule,
1887
- DxContextMenuModule,
1888
- DxLoadIndicatorModule,
1889
- DxPieChartModule,
1890
- MatTooltipModule,
1891
- DxPopupModule, DxSelectBoxModule, DxTextBoxModule, DxTreeViewModule,
1892
- MatButtonModule,
1893
- MatDividerModule,
1894
- MatMenuModule,
1895
- MatIconModule,
1896
- LoadingModule$1, RouterModule,
1897
- IconsModule] });
1898
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: GammaAppControllerModule, decorators: [{
1899
- type: NgModule,
1900
- args: [{
1901
- declarations: [
1902
- GammaAppControllerComponent,
1903
- ExceptionOperationComponent
1904
- ],
1905
- imports: [
1906
- IconsModule,
1907
- RouterModule.forChild(routes),
1908
- CommonModule,
1909
- DevExtremeModule,
1910
- DxButtonModule,
1911
- DxCheckBoxModule,
1912
- DxNumberBoxModule,
1913
- DxDataGridModule,
1914
- DxDropDownBoxModule,
1915
- DxTreeViewModule,
1916
- DxScrollViewModule,
1917
- DxFormModule,
1918
- DxAccordionModule,
1919
- FormsModule,
1920
- DxTagBoxModule,
1921
- ReactiveFormsModule,
1922
- MatIconModule,
1923
- DxHtmlEditorModule,
1924
- DxBulletModule,
1925
- DxChartModule,
1926
- DxDateBoxModule,
1927
- DxLoadPanelModule,
1928
- DxLookupModule,
1929
- DxPivotGridModule,
1930
- DxTemplateModule,
1931
- DxTextAreaModule,
1932
- DxValidationSummaryModule,
1933
- DxValidatorModule,
1934
- DxCalendarModule,
1935
- DxTooltipModule,
1936
- DxContextMenuModule,
1937
- DxLoadIndicatorModule,
1938
- DxPieChartModule,
1939
- MatTooltipModule,
1940
- DxPopupModule, DxSelectBoxModule, DxTextBoxModule, DxTreeViewModule,
1941
- MatButtonModule,
1942
- MatDividerModule,
1943
- MatMenuModule,
1944
- MatIconModule,
1945
- LoadingModule$1
1946
- ],
1947
- exports: [
1948
- RouterModule,
1949
- GammaAppControllerComponent,
1950
- IconsModule,
1951
- ExceptionOperationComponent
1952
- ]
1953
- }]
1954
- }] });
1955
-
1956
- class ApplicationContentService extends AppHttpService {
1957
- constructor(httpClient, environment) {
1958
- super(httpClient);
1959
- this.httpClient = httpClient;
1960
- this.environment = environment;
1961
- this.kpiFilter = new BehaviorSubject([]);
1962
- this.userkpiFilter$ = this.kpiFilter.asObservable();
1963
- this.datasets = new BehaviorSubject([]);
1964
- this.updateDatssets$ = this.datasets.asObservable();
1965
- }
1966
- getFilterForKpi(pins) {
1967
- this.kpiFilter.next(pins);
1968
- }
1969
- getCurrentKpiFilterValue() {
1970
- return this.kpiFilter.getValue();
1971
- }
1972
- setCurrentDatasetValue(data) {
1973
- return this.datasets.next(data);
1974
- }
1975
- getDataSet() {
1976
- const apiUrl = '/assets/api-data/data-set.json';
1977
- return this.http.get(apiUrl, { withCredentials: true }).pipe(map((response) => {
1978
- return response;
1979
- }), catchError(this.handleError));
1980
- }
1981
- getComponentDataConfigSet() {
1982
- const apiUrl = '/assets/api-data/component_config.json';
1983
- return this.http.get(apiUrl, { withCredentials: true }).pipe(map((response) => {
1984
- return response;
1985
- }), catchError(this.handleError));
1681
+ loadtableName() {
1682
+ const appUrl = this.environment.appUrl + this.environment.apiVersion + '/search/getSearchDatasourceDetails';
1683
+ return this.http.get(appUrl);
1986
1684
  }
1987
- listColumnEnrichmentFunctions() {
1988
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi/listColumnEnrichmentFunctions';
1685
+ getSearchResultForDatasource(body) {
1989
1686
  return this.http
1990
- .post(apiUrl, this.options)
1687
+ .post(this.environment.appUrl + this.environment.apiVersion + '/search/getSearchResultForDatasource', JSON.stringify(body), this.options)
1991
1688
  .pipe(map((response) => {
1992
1689
  return response;
1993
1690
  }), catchError(this.handleError));
1994
1691
  }
1995
- validateAggregatePaginatedQuery(transformedObject) {
1996
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi/validateAggregatePaginatedQuery';
1692
+ ajaxSelfPrevActivityLogs() {
1997
1693
  return this.http
1998
- .post(apiUrl, JSON.stringify(transformedObject), this.options)
1694
+ .get(this.environment.appUrl + this.environment.apiVersion + '/search/getUserCdrBrowserActivityLogs?activityCount=50')
1999
1695
  .pipe(map((response) => {
2000
1696
  return response;
2001
1697
  }), catchError(this.handleError));
2002
1698
  }
2003
- getKpiBrowserConfigById(id) {
2004
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getKpiBrowserConfigById?id=' + id;
1699
+ getCdrBrowserActivityLogs(startDate, endDate) {
2005
1700
  return this.http
2006
- .get(apiUrl, { withCredentials: true })
1701
+ .get(this.environment.appUrl + this.environment.apiVersion + '/search/getCdrBrowserActivityLogs?startDate=' + startDate + '&endDate=' + endDate)
2007
1702
  .pipe(map((response) => {
2008
1703
  return response;
2009
1704
  }), catchError(this.handleError));
2010
1705
  }
2011
- getData(body, requestID) {
1706
+ getAvailableTables() {
2012
1707
  return this.http
2013
- .post(this.environment.appUrl + this.environment.apiVersion + requestID, JSON.stringify(body), this.options)
1708
+ .get(this.environment.appUrl + this.environment.apiVersion + '/search/getAvailableTables', { withCredentials: true })
2014
1709
  .pipe(map((response) => {
2015
1710
  return response;
2016
1711
  }), catchError(this.handleError));
2017
1712
  }
2018
- getSimpleApiPostRequest(requestApi, body) {
1713
+ getTableMetadata(tableName) {
2019
1714
  return this.http
2020
- .post(this.environment.appUrl + this.environment.apiVersion + requestApi, JSON.stringify(body), this.options)
1715
+ .get(this.environment.appUrl + this.environment.apiVersion + '/search/getTableMetadata?tableName=' + tableName, { withCredentials: true })
2021
1716
  .pipe(map((response) => {
2022
1717
  return response;
2023
1718
  }), catchError(this.handleError));
2024
1719
  }
2025
- getSimpleApiGetRequest(requestApi) {
1720
+ getCdrBrowserOperations() {
2026
1721
  return this.http
2027
- .get(this.environment.appUrl + this.environment.apiVersion + requestApi, { withCredentials: true })
1722
+ .get(this.environment.appUrl + this.environment.apiVersion + '/search/getCdrBrowserOperations', { withCredentials: true })
2028
1723
  .pipe(map((response) => {
2029
1724
  return response;
2030
1725
  }), catchError(this.handleError));
2031
1726
  }
2032
- getJsonDatasetPayload(requestApi) {
1727
+ getSearchDatasourceDetails() {
2033
1728
  return this.http
2034
- .get(this.environment.appUrl + this.environment.apiVersion + requestApi, { withCredentials: true })
1729
+ .get(this.environment.appUrl + this.environment.apiVersion + '/search/getSearchDatasourceDetails', { withCredentials: true })
2035
1730
  .pipe(map((response) => {
2036
1731
  return response;
2037
1732
  }), catchError(this.handleError));
2038
1733
  }
2039
- genericSqlQueryResponse(requestApi, body) {
1734
+ saveDatasourceConfig(body) {
2040
1735
  return this.http
2041
- .post(this.environment.appUrl + this.environment.apiVersion + requestApi, JSON.stringify(body), this.options)
1736
+ .post(this.environment.appUrl + this.environment.apiVersion + '/search/saveDatasourceConfig', JSON.stringify(body), this.options)
2042
1737
  .pipe(map((response) => {
2043
1738
  return response;
2044
1739
  }), catchError(this.handleError));
2045
1740
  }
2046
- createAppDataset(body) {
1741
+ editDatasourceConfig(body) {
2047
1742
  return this.http
2048
- .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/createAppDataset', JSON.stringify(body), this.options)
1743
+ .post(this.environment.appUrl + this.environment.apiVersion + '/search/editDatasourceConfig', JSON.stringify(body), this.options)
2049
1744
  .pipe(map((response) => {
2050
1745
  return response;
2051
1746
  }), catchError(this.handleError));
2052
1747
  }
2053
- updateAppDatasetConfig(body) {
1748
+ deleteDatasourceConfig(tableName) {
2054
1749
  return this.http
2055
- .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/updateAppDatasetConfig', JSON.stringify(body), this.options)
1750
+ .delete(this.environment.appUrl + this.environment.apiVersion + '/search/deleteDatasourceConfig/' + tableName, this.options)
2056
1751
  .pipe(map((response) => {
2057
1752
  return response;
2058
1753
  }), catchError(this.handleError));
2059
1754
  }
2060
- deleteAppDatasetConfig(datasetId) {
2061
- return this.http
2062
- .delete(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/deleteAppDatasetConfig/' + datasetId, this.options)
1755
+ getKpiConfigaration() {
1756
+ return (this.http
1757
+ .get(this.environment.gatewayUrl + this.environment.appName + 'assets/api-data/kpi-config.json', {
1758
+ withCredentials: true,
1759
+ })
2063
1760
  .pipe(map((response) => {
2064
1761
  return response;
2065
- }), catchError(this.handleError));
1762
+ }), catchError(this.handleError)));
2066
1763
  }
2067
- getAppDatasetConfigs() {
2068
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppDatasetConfigs';
2069
- return this.http
2070
- .get(apiUrl, { withCredentials: true })
2071
- .pipe(map((response) => {
1764
+ getlistKpiBrowserTwo() {
1765
+ const apiUrl = this.environment.gatewayUrl + this.environment.appName + '/assets/api-data/dashboard.json';
1766
+ return this.http.get(apiUrl, { withCredentials: true }).pipe(map((response) => {
2072
1767
  return response;
2073
1768
  }), catchError(this.handleError));
2074
1769
  }
2075
- getAppDatasetConfig(datasetId) {
2076
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppDatasetConfig?datasetId=' + datasetId;
1770
+ getfilterData() {
2077
1771
  return this.http
2078
- .get(apiUrl, { withCredentials: true })
1772
+ .get("/assets/api-data/filter-direction.json")
2079
1773
  .pipe(map((response) => {
2080
1774
  return response;
2081
1775
  }), catchError(this.handleError));
2082
1776
  }
2083
- createAppViewConfig(body) {
1777
+ genericDetailDataResponse(body) {
2084
1778
  return this.http
2085
- .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/createAppViewConfig', JSON.stringify(body), this.options)
1779
+ .post(this.environment.appUrl + this.environment.apiVersion + '/kpi/genericDetailDataResponse', JSON.stringify(body), this.options)
2086
1780
  .pipe(map((response) => {
2087
1781
  return response;
2088
1782
  }), catchError(this.handleError));
2089
1783
  }
2090
- updateAppViewConfig(body) {
1784
+ getUniqueData(api) {
2091
1785
  return this.http
2092
- .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/updateAppViewConfig', JSON.stringify(body), this.options)
1786
+ .get(this.environment.appUrl + this.environment.apiVersion + api, { withCredentials: true })
2093
1787
  .pipe(map((response) => {
2094
1788
  return response;
2095
1789
  }), catchError(this.handleError));
2096
1790
  }
2097
- getAppViewConfigs() {
2098
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppViewConfigs';
1791
+ getFilterDataByDrillDown(apiName) {
1792
+ const apiUrl = this.environment.appUrl + apiName;
2099
1793
  return this.http
2100
1794
  .get(apiUrl, { withCredentials: true })
2101
1795
  .pipe(map((response) => {
2102
1796
  return response;
2103
1797
  }), catchError(this.handleError));
2104
1798
  }
2105
- getAppViewConfig(viewId) {
2106
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppViewConfig?viewId=' + viewId;
1799
+ getDataByAPI(requestID, body) {
2107
1800
  return this.http
2108
- .get(apiUrl, { withCredentials: true })
1801
+ .post(this.environment.appUrl + this.environment.apiVersion + requestID, JSON.stringify(body), this.options)
2109
1802
  .pipe(map((response) => {
2110
1803
  return response;
2111
1804
  }), catchError(this.handleError));
2112
1805
  }
2113
- deleteAppViewConfig(datasetId) {
1806
+ getCdrData(api, url) {
2114
1807
  return this.http
2115
- .delete(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/deleteAppViewConfig/' + datasetId, this.options)
1808
+ .get(this.environment.appUrl + this.environment.apiVersion + api + '?' + url)
2116
1809
  .pipe(map((response) => {
2117
1810
  return response;
2118
1811
  }), catchError(this.handleError));
2119
1812
  }
2120
- createAppFilterConfig(body) {
1813
+ getSrvTypeDataSource() {
1814
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi/srv-params';
2121
1815
  return this.http
2122
- .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/createAppFilterConfig', JSON.stringify(body), this.options)
1816
+ .get(apiUrl, { withCredentials: true })
2123
1817
  .pipe(map((response) => {
2124
1818
  return response;
2125
1819
  }), catchError(this.handleError));
2126
1820
  }
2127
- editAppFilterConfig(body) {
1821
+ pagintedActivityLogs(parms, api) {
1822
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + api;
2128
1823
  return this.http
2129
- .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/editAppFilterConfig', JSON.stringify(body), this.options)
1824
+ .post(apiUrl, JSON.stringify(parms), this.options)
2130
1825
  .pipe(map((response) => {
2131
1826
  return response;
2132
1827
  }), catchError(this.handleError));
2133
1828
  }
2134
- getAppFilterConfigs() {
2135
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppFilterConfigs';
1829
+ getApiData() {
1830
+ const apiUrl = '/assets/api-data/api-service.json';
2136
1831
  return this.http
2137
1832
  .get(apiUrl, { withCredentials: true })
2138
1833
  .pipe(map((response) => {
2139
1834
  return response;
2140
1835
  }), catchError(this.handleError));
2141
1836
  }
2142
- deleteAppFilterConfig(filterId) {
1837
+ configureAppMenuConfig(manueConfig) {
1838
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/configureAppMenuConfig';
2143
1839
  return this.http
2144
- .delete(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/deleteAppFilterConfig/' + filterId, this.options)
1840
+ .post(apiUrl, JSON.stringify(manueConfig), this.options)
2145
1841
  .pipe(map((response) => {
2146
1842
  return response;
2147
1843
  }), catchError(this.handleError));
2148
1844
  }
2149
- getMapData(body, requestID) {
2150
- const apiUrl = '/assets/api-data/mapjson.json';
1845
+ getListOfParentAppMenu() {
1846
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getListOfParentAppMenu';
2151
1847
  return this.http
2152
1848
  .get(apiUrl, { withCredentials: true })
2153
1849
  .pipe(map((response) => {
2154
1850
  return response;
2155
1851
  }), catchError(this.handleError));
2156
1852
  }
2157
- getDashBoardJson() {
2158
- const apiUrl = '/assets/api-data/dashboard_lebara.json';
2159
- return this.http.get(apiUrl, { withCredentials: true }).pipe(map((response) => {
2160
- return response;
2161
- }), catchError(this.handleError));
2162
- }
2163
- getAppPageConfigs() {
2164
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppPageConfigs';
1853
+ getAppAppMenuConfigById(manuid) {
1854
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppAppMenuConfigById?menuId=' + manuid;
2165
1855
  return this.http
2166
1856
  .get(apiUrl, { withCredentials: true })
2167
1857
  .pipe(map((response) => {
2168
1858
  return response;
2169
1859
  }), catchError(this.handleError));
2170
1860
  }
2171
- createAppPageConfig(body) {
1861
+ updateAppMenuConfig(manueConfig) {
1862
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/updateAppMenuConfig';
2172
1863
  return this.http
2173
- .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/createAppPageConfig', JSON.stringify(body), this.options)
1864
+ .post(apiUrl, JSON.stringify(manueConfig), this.options)
2174
1865
  .pipe(map((response) => {
2175
1866
  return response;
2176
1867
  }), catchError(this.handleError));
2177
1868
  }
2178
- editAppPageConfig(body) {
1869
+ deleteAppMenuConfig(menuId) {
2179
1870
  return this.http
2180
- .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/editAppPageConfig', JSON.stringify(body), this.options)
1871
+ .delete(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/deleteAppMenuConfig/' + menuId, this.options)
2181
1872
  .pipe(map((response) => {
2182
1873
  return response;
2183
1874
  }), catchError(this.handleError));
2184
1875
  }
2185
- deleteAppPageConfig(pageId) {
1876
+ listMetricConfigs() {
1877
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/settings/metrics/listMetricConfigs';
2186
1878
  return this.http
2187
- .delete(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/deleteAppPageConfig/' + pageId, this.options)
1879
+ .get(apiUrl, { withCredentials: true })
2188
1880
  .pipe(map((response) => {
2189
1881
  return response;
2190
1882
  }), catchError(this.handleError));
2191
1883
  }
2192
- createAppWidgetConfig(body) {
1884
+ deleteMetricConfig(metricId) {
2193
1885
  return this.http
2194
- .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/createAppWidgetConfig', JSON.stringify(body), this.options)
1886
+ .delete(this.environment.appUrl + this.environment.apiVersion + '/settings/metrics/deleteMetricConfig/' + metricId, this.options)
2195
1887
  .pipe(map((response) => {
2196
1888
  return response;
2197
1889
  }), catchError(this.handleError));
2198
1890
  }
2199
- editAppWidgetConfig(body) {
1891
+ saveOnlineMetricConfig(metricConfig) {
1892
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/settings/metrics/saveOnlineMetricConfig';
2200
1893
  return this.http
2201
- .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/editAppWidgetConfig', JSON.stringify(body), this.options)
1894
+ .post(apiUrl, JSON.stringify(metricConfig), this.options)
2202
1895
  .pipe(map((response) => {
2203
1896
  return response;
2204
1897
  }), catchError(this.handleError));
2205
1898
  }
2206
- getAppPageDetailConfig(pageId) {
1899
+ editOfflineMetricConfig(metricConfig) {
1900
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/settings/metrics/editOfflineMetricConfig';
2207
1901
  return this.http
2208
- .get(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppPageDetailConfig?pageConfigId=' + pageId, this.options)
1902
+ .post(apiUrl, JSON.stringify(metricConfig), this.options)
2209
1903
  .pipe(map((response) => {
2210
1904
  return response;
2211
1905
  }), catchError(this.handleError));
2212
1906
  }
2213
- deleteAppWidgetConfig(filterId) {
1907
+ saveFileSequenceAnalyzerGroup(body) {
2214
1908
  return this.http
2215
- .delete(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/deleteAppWidgetConfig/' + filterId, this.options)
1909
+ .post(this.environment.appUrl + this.environment.apiVersion + '/settings/operations/saveFileSequenceAnalyzerGroup', JSON.stringify(body), this.options)
2216
1910
  .pipe(map((response) => {
2217
1911
  return response;
2218
1912
  }), catchError(this.handleError));
2219
1913
  }
2220
- getAppFilterConfig(filterId) {
1914
+ editFileSequenceAnalyzerGroup(body) {
2221
1915
  return this.http
2222
- .get(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppFilterConfig?filterId=' + filterId, this.options)
1916
+ .post(this.environment.appUrl + this.environment.apiVersion + '/settings/operations/editFileSequenceAnalyzerGroup', JSON.stringify(body), this.options)
2223
1917
  .pipe(map((response) => {
2224
1918
  return response;
2225
1919
  }), catchError(this.handleError));
2226
1920
  }
2227
- getKPIReferenceEndPoints() {
2228
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getKPIReferenceEndPoints';
1921
+ getAppSqlFunctionList() {
1922
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/app-setting/getAppSqlFunctionList';
2229
1923
  return this.http
2230
1924
  .get(apiUrl, { withCredentials: true })
2231
1925
  .pipe(map((response) => {
2232
1926
  return response;
2233
1927
  }), catchError(this.handleError));
2234
1928
  }
2235
- loadKpiBrowser() {
1929
+ listFileSequenceAnalyzerGroups() {
1930
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/settings/operations/listFileSequenceAnalyzerGroups';
2236
1931
  return this.http
2237
- .get(this.environment.appUrl + this.environment.apiVersion + '/kpi/loadKpiBrowser', { withCredentials: true })
1932
+ .get(apiUrl, { withCredentials: true })
2238
1933
  .pipe(map((response) => {
2239
1934
  return response;
2240
1935
  }), catchError(this.handleError));
2241
1936
  }
2242
- getlistKpiBrowser() {
2243
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/listKpiBrowser';
1937
+ deleteFileSequenceAnalyzerGroup(configid) {
2244
1938
  return this.http
2245
- .get(apiUrl, { withCredentials: true })
1939
+ .delete(this.environment.appUrl + this.environment.apiVersion + "/settings/operations/deleteFileSequenceAnalyzerGroup/" + configid, { withCredentials: true })
2246
1940
  .pipe(map((response) => {
2247
1941
  return response;
2248
1942
  }), catchError(this.handleError));
2249
1943
  }
2250
- getBookmarkedResource() {
1944
+ activateFileSequenceAnalyzerGroup(configid) {
2251
1945
  return this.http
2252
- .get(this.environment.appUrl + this.environment.apiVersion + '/kpi/getBookmarkedResource', { withCredentials: true })
1946
+ .get(this.environment.appUrl + this.environment.apiVersion + "/settings/operations/activateFileSequenceAnalyzerGroup?configId=" + configid, { withCredentials: true })
2253
1947
  .pipe(map((response) => {
2254
1948
  return response;
2255
1949
  }), catchError(this.handleError));
2256
1950
  }
2257
- bookmarkResource(body) {
2258
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi/bookmarkResource';
1951
+ deactivateFileSequenceAnalyzerGroup(configid) {
2259
1952
  return this.http
2260
- .post(apiUrl, JSON.stringify(body), this.options)
1953
+ .get(this.environment.appUrl + this.environment.apiVersion + "/settings/operations/deactivateFileSequenceAnalyzerGroup?configId=" + configid, { withCredentials: true })
2261
1954
  .pipe(map((response) => {
2262
1955
  return response;
2263
1956
  }), catchError(this.handleError));
2264
1957
  }
2265
- configureKpiBrowserConfig(body) {
1958
+ updateFileSequenceAnalyzerJobs() {
2266
1959
  return this.http
2267
- .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/configureKpiBrowserConfig', JSON.stringify(body), this.options)
1960
+ .get(this.environment.appUrl + this.environment.apiVersion + "/settings/operations/updateFileSequenceAnalyzerJobs", { withCredentials: true })
2268
1961
  .pipe(map((response) => {
2269
1962
  return response;
2270
1963
  }), catchError(this.handleError));
2271
1964
  }
2272
- getCreateKpi(body) {
1965
+ getAppDatasource() {
2273
1966
  return this.http
2274
- .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/createKpi', JSON.stringify(body), this.options)
1967
+ .get(this.environment.appUrl + this.environment.apiVersion + '/operations/getAppDatasource')
2275
1968
  .pipe(map((response) => {
2276
1969
  return response;
2277
1970
  }), catchError(this.handleError));
2278
1971
  }
2279
- uploadDatasetJsonPayload(formData) {
2280
- const headers = new HttpHeaders({
2281
- 'enctype': 'multipart/form-data',
2282
- });
2283
- const options = { headers: headers, withCredentials: true };
2284
- return this.http
2285
- .post(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/uploadDatasetJsonPayload', formData, options)
2286
- .pipe(map((response) => {
2287
- return response;
2288
- }), catchError(this.handleError));
1972
+ }
1973
+ 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 });
1974
+ ApplicationContentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ApplicationContentService });
1975
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ApplicationContentService, decorators: [{
1976
+ type: Injectable
1977
+ }], ctorParameters: function () {
1978
+ return [{ type: i1$1.HttpClient }, { type: undefined, decorators: [{
1979
+ type: Inject,
1980
+ args: [APP_ENVIRONMENT]
1981
+ }] }];
1982
+ } });
1983
+
1984
+ class LoadingComponent$1 {
1985
+ constructor() {
1986
+ this.showLoadingModal = true;
2289
1987
  }
2290
- getKpiData() {
2291
- return this.http
2292
- .get(`${this.environment.basePath}assets/api-data/policy.json`, { withCredentials: true })
2293
- .pipe(map((response) => {
2294
- return response;
2295
- }), catchError(this.handleError));
1988
+ ngOnInit() {
2296
1989
  }
2297
- getGroupDetails() {
2298
- return this.http
2299
- .get(this.environment.appUrl + this.environment.apiVersion + '/jobs/getGroupDetails', { withCredentials: true })
2300
- .pipe(map((response) => {
2301
- return response;
2302
- }), catchError(this.handleError));
1990
+ }
1991
+ LoadingComponent$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LoadingComponent$1, deps: [], target: i0.ɵɵFactoryTarget.Component });
1992
+ 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"] });
1993
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LoadingComponent$1, decorators: [{
1994
+ type: Component,
1995
+ 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"] }]
1996
+ }], ctorParameters: function () { return []; } });
1997
+
1998
+ class ExceptionOperationComponent {
1999
+ constructor(commonService, service, toastr) {
2000
+ this.commonService = commonService;
2001
+ this.service = service;
2002
+ this.toastr = toastr;
2003
+ this.contentType = "create";
2004
+ this.exceptionMainObject = {
2005
+ configId: "",
2006
+ configName: "",
2007
+ datasource: "",
2008
+ active: false,
2009
+ analyzerType: "",
2010
+ dbConfig: "",
2011
+ tableName: "",
2012
+ dataSelectionType: "",
2013
+ fileNameAttributeName: "",
2014
+ filterList: [{
2015
+ "columnName": "",
2016
+ "dataType": "",
2017
+ "operator": "",
2018
+ "windowFunctionName": "",
2019
+ "value": "",
2020
+ "dateFormat": "",
2021
+ }],
2022
+ patternList: [
2023
+ {
2024
+ "regex": "",
2025
+ "sample": "?_??_?",
2026
+ "fileAttributes": [],
2027
+ "analyzerKeys": [],
2028
+ "sequenceKey": "",
2029
+ "dynamicArgs": {}
2030
+ }
2031
+ ]
2032
+ };
2033
+ this.analyzer_type = [{ key: "numeric_sequence", name: "Numeric Sequence" }, { key: "date_sequence", name: "Date Sequence" }];
2034
+ this.isLoader = true;
2303
2035
  }
2304
- loadtableName() {
2305
- const appUrl = this.environment.appUrl + this.environment.apiVersion + '/search/getSearchDatasourceDetails';
2306
- return this.http.get(appUrl);
2036
+ ngOnInit() {
2037
+ this.getExceptionDataCongigs();
2038
+ this.service.getAppSqlFunctionList().subscribe(data => {
2039
+ this.functionNameContainer = data;
2040
+ });
2041
+ this.service.getCdrBrowserOperations().subscribe(data => {
2042
+ this.operator_list = data;
2043
+ });
2044
+ this.service.getAppDatasource().subscribe(data => {
2045
+ this.datasourcelist = (data['datasource']) ? data['datasource'] : data;
2046
+ });
2307
2047
  }
2308
- getSearchResultForDatasource(body) {
2309
- return this.http
2310
- .post(this.environment.appUrl + this.environment.apiVersion + '/search/getSearchResultForDatasource', JSON.stringify(body), this.options)
2311
- .pipe(map((response) => {
2312
- return response;
2313
- }), catchError(this.handleError));
2048
+ getExceptionDataCongigs() {
2049
+ return new Promise((resolve) => {
2050
+ this.service.listFileSequenceAnalyzerGroups().subscribe((data) => {
2051
+ this.allExceptionConfigDataSource = data;
2052
+ this.isLoader = false;
2053
+ resolve();
2054
+ });
2055
+ });
2314
2056
  }
2315
- ajaxSelfPrevActivityLogs() {
2316
- return this.http
2317
- .get(this.environment.appUrl + this.environment.apiVersion + '/search/getUserCdrBrowserActivityLogs?activityCount=50')
2318
- .pipe(map((response) => {
2319
- return response;
2320
- }), catchError(this.handleError));
2057
+ editExceptionConfigConfig(data) {
2058
+ this.contentType = "edit";
2059
+ this.isExceptionConfigCreation = true;
2060
+ this.exceptionMainObject = data;
2321
2061
  }
2322
- getCdrBrowserActivityLogs(startDate, endDate) {
2323
- return this.http
2324
- .get(this.environment.appUrl + this.environment.apiVersion + '/search/getCdrBrowserActivityLogs?startDate=' + startDate + '&endDate=' + endDate)
2325
- .pipe(map((response) => {
2326
- return response;
2327
- }), catchError(this.handleError));
2062
+ createExceptionConfig() {
2063
+ this.isExceptionConfigCreation = true;
2064
+ this.exceptionMainObject = {
2065
+ configId: "",
2066
+ configName: "",
2067
+ datasource: "",
2068
+ active: true,
2069
+ analyzerType: "",
2070
+ dbConfig: "",
2071
+ tableName: "",
2072
+ dataSelectionType: "",
2073
+ fileNameAttributeName: "",
2074
+ filterList: [{
2075
+ "columnName": "",
2076
+ "dataType": "",
2077
+ "operator": "",
2078
+ "windowFunctionName": "",
2079
+ "dateFormat": "",
2080
+ "value": ""
2081
+ }],
2082
+ patternList: [
2083
+ {
2084
+ "regex": "",
2085
+ "sample": "",
2086
+ "fileAttributes": [],
2087
+ "analyzerKeys": [],
2088
+ "sequenceKey": "",
2089
+ "dynamicArgs": {}
2090
+ }
2091
+ ]
2092
+ };
2328
2093
  }
2329
- getAvailableTables() {
2330
- return this.http
2331
- .get(this.environment.appUrl + this.environment.apiVersion + '/search/getAvailableTables', { withCredentials: true })
2332
- .pipe(map((response) => {
2333
- return response;
2334
- }), catchError(this.handleError));
2094
+ getCancleExceptionCreation() {
2095
+ this.isExceptionConfigCreation = false;
2096
+ this.exceptionMainObject = {
2097
+ configId: "",
2098
+ configName: "",
2099
+ datasource: "",
2100
+ active: true,
2101
+ analyzerType: "",
2102
+ dbConfig: "",
2103
+ tableName: "",
2104
+ dataSelectionType: "",
2105
+ fileNameAttributeName: "",
2106
+ filterList: [{
2107
+ "columnName": "",
2108
+ "dataType": "",
2109
+ "operator": "",
2110
+ "windowFunctionName": "",
2111
+ "value": "",
2112
+ "dateFormat": ""
2113
+ }],
2114
+ patternList: [
2115
+ {
2116
+ "regex": "",
2117
+ "sample": "",
2118
+ "fileAttributes": [],
2119
+ "analyzerKeys": [],
2120
+ "sequenceKey": "",
2121
+ "dynamicArgs": {}
2122
+ }
2123
+ ]
2124
+ };
2335
2125
  }
2336
- getTableMetadata(tableName) {
2337
- return this.http
2338
- .get(this.environment.appUrl + this.environment.apiVersion + '/search/getTableMetadata?tableName=' + tableName, { withCredentials: true })
2339
- .pipe(map((response) => {
2340
- return response;
2341
- }), catchError(this.handleError));
2126
+ getDataConfig(e) {
2342
2127
  }
2343
- getCdrBrowserOperations() {
2344
- return this.http
2345
- .get(this.environment.appUrl + this.environment.apiVersion + '/search/getCdrBrowserOperations', { withCredentials: true })
2346
- .pipe(map((response) => {
2347
- return response;
2348
- }), catchError(this.handleError));
2128
+ getProcessForConfig() {
2129
+ this.exceptionMainObject.filterList.push({
2130
+ "columnName": "",
2131
+ "dataType": "",
2132
+ "operator": "",
2133
+ "windowFunctionName": "",
2134
+ "dateFormat": "",
2135
+ "value": ""
2136
+ });
2349
2137
  }
2350
- getSearchDatasourceDetails() {
2351
- return this.http
2352
- .get(this.environment.appUrl + this.environment.apiVersion + '/search/getSearchDatasourceDetails', { withCredentials: true })
2353
- .pipe(map((response) => {
2354
- return response;
2355
- }), catchError(this.handleError));
2138
+ deleteColume(i) {
2139
+ this.exceptionMainObject.filterList.splice(i, 1);
2356
2140
  }
2357
- saveDatasourceConfig(body) {
2358
- return this.http
2359
- .post(this.environment.appUrl + this.environment.apiVersion + '/search/saveDatasourceConfig', JSON.stringify(body), this.options)
2360
- .pipe(map((response) => {
2361
- return response;
2362
- }), catchError(this.handleError));
2141
+ deleteDynamicArguments(item, key, index) {
2142
+ delete this.exceptionMainObject.patternList[index]['dynamicArgs'][key];
2363
2143
  }
2364
- editDatasourceConfig(body) {
2365
- return this.http
2366
- .post(this.environment.appUrl + this.environment.apiVersion + '/search/editDatasourceConfig', JSON.stringify(body), this.options)
2367
- .pipe(map((response) => {
2368
- return response;
2369
- }), catchError(this.handleError));
2144
+ addDynamicArgument(index) {
2145
+ let newKey = '';
2146
+ let newValue = '';
2147
+ this.exceptionMainObject.patternList[index]['dynamicArgs'][newKey] = newValue;
2370
2148
  }
2371
- deleteDatasourceConfig(tableName) {
2372
- return this.http
2373
- .delete(this.environment.appUrl + this.environment.apiVersion + '/search/deleteDatasourceConfig/' + tableName, this.options)
2374
- .pipe(map((response) => {
2375
- return response;
2376
- }), catchError(this.handleError));
2149
+ moveItemForColumns(index, direction) {
2150
+ if (index < 0 || index >= this.exceptionMainObject.filterList.length)
2151
+ return;
2152
+ const newPosition = direction === 'up' ? index - 1 : index + 1;
2153
+ if (newPosition < 0 || newPosition >= this.exceptionMainObject.filterList.length)
2154
+ return;
2155
+ const itemToMove = this.exceptionMainObject.filterList[index];
2156
+ this.exceptionMainObject.filterList.splice(index, 1);
2157
+ this.exceptionMainObject.filterList.splice(newPosition, 0, itemToMove);
2377
2158
  }
2378
- getKpiConfigaration() {
2379
- return (this.http
2380
- .get(this.environment.gatewayUrl + this.environment.appName + 'assets/api-data/kpi-config.json', {
2381
- withCredentials: true,
2382
- })
2383
- .pipe(map((response) => {
2384
- return response;
2385
- }), catchError(this.handleError)));
2386
- }
2387
- getlistKpiBrowserTwo() {
2388
- const apiUrl = this.environment.gatewayUrl + this.environment.appName + '/assets/api-data/dashboard.json';
2389
- return this.http.get(apiUrl, { withCredentials: true }).pipe(map((response) => {
2390
- return response;
2391
- }), catchError(this.handleError));
2392
- }
2393
- getfilterData() {
2394
- return this.http
2395
- .get("/assets/api-data/filter-direction.json")
2396
- .pipe(map((response) => {
2397
- return response;
2398
- }), catchError(this.handleError));
2399
- }
2400
- genericDetailDataResponse(body) {
2401
- return this.http
2402
- .post(this.environment.appUrl + this.environment.apiVersion + '/kpi/genericDetailDataResponse', JSON.stringify(body), this.options)
2403
- .pipe(map((response) => {
2404
- return response;
2405
- }), catchError(this.handleError));
2406
- }
2407
- getUniqueData(api) {
2408
- return this.http
2409
- .get(this.environment.appUrl + this.environment.apiVersion + api, { withCredentials: true })
2410
- .pipe(map((response) => {
2411
- return response;
2412
- }), catchError(this.handleError));
2413
- }
2414
- getFilterDataByDrillDown(apiName) {
2415
- const apiUrl = this.environment.appUrl + apiName;
2416
- return this.http
2417
- .get(apiUrl, { withCredentials: true })
2418
- .pipe(map((response) => {
2419
- return response;
2420
- }), catchError(this.handleError));
2421
- }
2422
- getDataByAPI(requestID, body) {
2423
- return this.http
2424
- .post(this.environment.appUrl + this.environment.apiVersion + requestID, JSON.stringify(body), this.options)
2425
- .pipe(map((response) => {
2426
- return response;
2427
- }), catchError(this.handleError));
2428
- }
2429
- getCdrData(api, url) {
2430
- return this.http
2431
- .get(this.environment.appUrl + this.environment.apiVersion + api + '?' + url)
2432
- .pipe(map((response) => {
2433
- return response;
2434
- }), catchError(this.handleError));
2435
- }
2436
- getSrvTypeDataSource() {
2437
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi/srv-params';
2438
- return this.http
2439
- .get(apiUrl, { withCredentials: true })
2440
- .pipe(map((response) => {
2441
- return response;
2442
- }), catchError(this.handleError));
2443
- }
2444
- pagintedActivityLogs(parms, api) {
2445
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + api;
2446
- return this.http
2447
- .post(apiUrl, JSON.stringify(parms), this.options)
2448
- .pipe(map((response) => {
2449
- return response;
2450
- }), catchError(this.handleError));
2159
+ getAddPatternsConfig() {
2160
+ this.exceptionMainObject.patternList.push({
2161
+ "regex": "",
2162
+ "sample": "",
2163
+ "sequenceKey": "",
2164
+ "fileAttributes": [],
2165
+ "analyzerKeys": [],
2166
+ "dynamicArgs": {}
2167
+ });
2451
2168
  }
2452
- getApiData() {
2453
- const apiUrl = '/assets/api-data/api-service.json';
2454
- return this.http
2455
- .get(apiUrl, { withCredentials: true })
2456
- .pipe(map((response) => {
2457
- return response;
2458
- }), catchError(this.handleError));
2169
+ moveItemForpatterns(index, direction) {
2170
+ if (index < 0 || index >= this.exceptionMainObject.patternList.length)
2171
+ return;
2172
+ const newPosition = direction === 'up' ? index - 1 : index + 1;
2173
+ if (newPosition < 0 || newPosition >= this.exceptionMainObject.patternList.length)
2174
+ return;
2175
+ const itemToMove = this.exceptionMainObject.patternList[index];
2176
+ this.exceptionMainObject.patternList.splice(index, 1);
2177
+ this.exceptionMainObject.patternList.splice(newPosition, 0, itemToMove);
2459
2178
  }
2460
- configureAppMenuConfig(manueConfig) {
2461
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/configureAppMenuConfig';
2462
- return this.http
2463
- .post(apiUrl, JSON.stringify(manueConfig), this.options)
2464
- .pipe(map((response) => {
2465
- return response;
2466
- }), catchError(this.handleError));
2179
+ deletePatternsColume(i) {
2180
+ this.exceptionMainObject.patternList.splice(i, 1);
2467
2181
  }
2468
- getListOfParentAppMenu() {
2469
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getListOfParentAppMenu';
2470
- return this.http
2471
- .get(apiUrl, { withCredentials: true })
2472
- .pipe(map((response) => {
2473
- return response;
2474
- }), catchError(this.handleError));
2182
+ onCustomFileAttributesAdd(args) {
2183
+ const newValue = args.text;
2184
+ args.customItem = newValue;
2185
+ const isItemInDataSource = this.exceptionMainObject.patternList['fileAttributes'].some((item) => item === newValue);
2186
+ if (!isItemInDataSource) {
2187
+ this.exceptionMainObject.patternList['fileAttributes'].unshift(newValue);
2188
+ }
2475
2189
  }
2476
- getAppAppMenuConfigById(manuid) {
2477
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppAppMenuConfigById?menuId=' + manuid;
2478
- return this.http
2479
- .get(apiUrl, { withCredentials: true })
2480
- .pipe(map((response) => {
2481
- return response;
2482
- }), catchError(this.handleError));
2190
+ onCustomAnalizerKeyAdd(args) {
2191
+ const newValue = args.text;
2192
+ args.customItem = newValue;
2193
+ const isItemInDataSource = this.exceptionMainObject.patternList['analyzerKeys'].some((item) => item === newValue);
2194
+ if (!isItemInDataSource) {
2195
+ this.exceptionMainObject.patternList['analyzerKeys'].unshift(newValue);
2196
+ }
2483
2197
  }
2484
- updateAppMenuConfig(manueConfig) {
2485
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/updateAppMenuConfig';
2486
- return this.http
2487
- .post(apiUrl, JSON.stringify(manueConfig), this.options)
2488
- .pipe(map((response) => {
2489
- return response;
2490
- }), catchError(this.handleError));
2198
+ updateExceptionConfig() {
2199
+ this.loadingModal = true;
2200
+ this.service.editFileSequenceAnalyzerGroup(this.exceptionMainObject).subscribe({
2201
+ next: (data) => {
2202
+ this.isExceptionConfigCreation = false;
2203
+ this.loadingModal = false;
2204
+ this.isLoader = true;
2205
+ this.getExceptionDataCongigs();
2206
+ }, error: (err) => {
2207
+ this.loadingModal = false;
2208
+ this.isLoader = false;
2209
+ this.toastr.error('Unexpected Server Exception. Please contact System Admin.', 'Create Exception Config');
2210
+ }
2211
+ });
2212
+ console.log(this.exceptionMainObject);
2491
2213
  }
2492
- deleteAppMenuConfig(menuId) {
2493
- return this.http
2494
- .delete(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/deleteAppMenuConfig/' + menuId, this.options)
2495
- .pipe(map((response) => {
2496
- return response;
2497
- }), catchError(this.handleError));
2214
+ saveExceptionConfig() {
2215
+ for (const element of this.exceptionMainObject.patternList) {
2216
+ if (!element.fileAttributes.includes(element.sequenceKey)) {
2217
+ this.toastr.error('Sequence Key not valid');
2218
+ return;
2219
+ }
2220
+ const allMatch = element.analyzerKeys.every(item => element.fileAttributes.includes(item));
2221
+ const allKeysMatch = Object.keys(element.dynamicArgs).every(key => element.fileAttributes.includes(key));
2222
+ if (!allMatch) {
2223
+ this.toastr.error('Analyzer Keys not valid');
2224
+ return;
2225
+ }
2226
+ if (!allKeysMatch) {
2227
+ this.toastr.error('Filler not valid');
2228
+ return;
2229
+ }
2230
+ const updatedObj = Object.fromEntries(Object.entries(element.dynamicArgs).map(([key, value]) => [`default_${key}_filter`, value]));
2231
+ element.dynamicArgs = updatedObj;
2232
+ }
2233
+ this.loadingModal = true;
2234
+ this.service.saveFileSequenceAnalyzerGroup(this.exceptionMainObject).subscribe({
2235
+ next: (data) => {
2236
+ this.isExceptionConfigCreation = false;
2237
+ this.loadingModal = false;
2238
+ this.isLoader = true;
2239
+ this.getExceptionDataCongigs();
2240
+ }, error: (err) => {
2241
+ this.loadingModal = false;
2242
+ this.isLoader = false;
2243
+ this.toastr.error('Unexpected Server Exception. Please contact System Admin.', 'Create Exception Config');
2244
+ }
2245
+ });
2498
2246
  }
2499
- listMetricConfigs() {
2500
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/settings/metrics/listMetricConfigs';
2501
- return this.http
2502
- .get(apiUrl, { withCredentials: true })
2503
- .pipe(map((response) => {
2504
- return response;
2505
- }), catchError(this.handleError));
2247
+ deleteExceptionConfig(data) {
2248
+ let result = confirm("<i>Are You Sure?</i>", "Delete Config");
2249
+ result.then((dialogResult) => {
2250
+ if (dialogResult) {
2251
+ this.loadingModal = true;
2252
+ this.service.deleteFileSequenceAnalyzerGroup(data.configId).subscribe({
2253
+ next: (data) => {
2254
+ var _a;
2255
+ const currentPageIndex = (_a = this.dataGrid) === null || _a === void 0 ? void 0 : _a.instance.pageIndex();
2256
+ this.getExceptionDataCongigs().then(() => {
2257
+ if (currentPageIndex !== undefined) {
2258
+ this.dataGrid.instance.pageIndex(currentPageIndex);
2259
+ }
2260
+ this.isLoader = false;
2261
+ this.toastr.success(data.response);
2262
+ });
2263
+ }, error: (err) => {
2264
+ this.loadingModal = false;
2265
+ this.toastr.error('Unexpected Server Exception. Please contact System Admin.', 'CDR Config Delete');
2266
+ }
2267
+ });
2268
+ }
2269
+ });
2506
2270
  }
2507
- deleteMetricConfig(metricId) {
2508
- return this.http
2509
- .delete(this.environment.appUrl + this.environment.apiVersion + '/settings/metrics/deleteMetricConfig/' + metricId, this.options)
2510
- .pipe(map((response) => {
2511
- return response;
2512
- }), catchError(this.handleError));
2271
+ activatedException(data) {
2272
+ let result = confirm("<i>Are You Sure?</i>", "Activate Config");
2273
+ result.then((dialogResult) => {
2274
+ if (dialogResult) {
2275
+ this.service.activateFileSequenceAnalyzerGroup(data.configId).subscribe({
2276
+ next: (data) => {
2277
+ var _a;
2278
+ const currentPageIndex = (_a = this.dataGrid) === null || _a === void 0 ? void 0 : _a.instance.pageIndex();
2279
+ this.getExceptionDataCongigs().then(() => {
2280
+ if (currentPageIndex !== undefined) {
2281
+ this.dataGrid.instance.pageIndex(currentPageIndex);
2282
+ }
2283
+ this.isLoader = false;
2284
+ this.toastr.success(data.response);
2285
+ });
2286
+ }, error: (err) => {
2287
+ console.log(err);
2288
+ this.loadingModal = false;
2289
+ this.toastr.error('Unexpected Server Exception. Please contact System Admin.', 'Exception Config');
2290
+ }
2291
+ });
2292
+ }
2293
+ });
2513
2294
  }
2514
- saveOnlineMetricConfig(metricConfig) {
2515
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/settings/metrics/saveOnlineMetricConfig';
2516
- return this.http
2517
- .post(apiUrl, JSON.stringify(metricConfig), this.options)
2518
- .pipe(map((response) => {
2519
- return response;
2520
- }), catchError(this.handleError));
2295
+ deActivatedException(data) {
2296
+ let result = confirm("<i>Are You Sure?</i>", "Deactivate Config");
2297
+ result.then((dialogResult) => {
2298
+ if (dialogResult) {
2299
+ this.service.deactivateFileSequenceAnalyzerGroup(data.configId).subscribe({
2300
+ next: (data) => {
2301
+ var _a;
2302
+ const currentPageIndex = (_a = this.dataGrid) === null || _a === void 0 ? void 0 : _a.instance.pageIndex();
2303
+ this.getExceptionDataCongigs().then(() => {
2304
+ if (currentPageIndex !== undefined) {
2305
+ this.dataGrid.instance.pageIndex(currentPageIndex);
2306
+ }
2307
+ this.isLoader = false;
2308
+ this.toastr.success(data.response);
2309
+ });
2310
+ }, error: (err) => {
2311
+ console.log(err);
2312
+ this.loadingModal = false;
2313
+ this.toastr.error('Unexpected Server Exception. Please contact System Admin.', 'Exception Config');
2314
+ }
2315
+ });
2316
+ }
2317
+ });
2521
2318
  }
2522
- editOfflineMetricConfig(metricConfig) {
2523
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/settings/metrics/editOfflineMetricConfig';
2524
- return this.http
2525
- .post(apiUrl, JSON.stringify(metricConfig), this.options)
2526
- .pipe(map((response) => {
2527
- return response;
2528
- }), catchError(this.handleError));
2319
+ updateFileSequenceAnalyzerJobs() {
2320
+ this.loadingModal = true;
2321
+ this.service.updateFileSequenceAnalyzerJobs().subscribe({
2322
+ next: (data) => {
2323
+ this.loadingModal = false;
2324
+ this.toastr.success("File Sequence Analyzer Jobs Updated");
2325
+ }, error: err => {
2326
+ this.loadingModal = false;
2327
+ this.toastr.error('Unexpected Server Exception. Please contact System Admin.', 'Exception Config');
2328
+ }
2329
+ });
2529
2330
  }
2530
2331
  }
2531
- 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 });
2532
- ApplicationContentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ApplicationContentService });
2533
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ApplicationContentService, decorators: [{
2534
- type: Injectable
2535
- }], ctorParameters: function () {
2536
- return [{ type: i1$1.HttpClient }, { type: undefined, decorators: [{
2537
- type: Inject,
2538
- args: [APP_ENVIRONMENT]
2539
- }] }];
2540
- } });
2332
+ 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 });
2333
+ 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" }] });
2334
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ExceptionOperationComponent, decorators: [{
2335
+ type: Component,
2336
+ 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>" }]
2337
+ }], ctorParameters: function () { return [{ type: CommonService }, { type: ApplicationContentService }, { type: i3.ToastrService }]; }, propDecorators: { dataGrid: [{
2338
+ type: ViewChild,
2339
+ args: ['gridContainer', { static: false }]
2340
+ }] } });
2341
+
2342
+ class LoadingModule$1 {
2343
+ }
2344
+ LoadingModule$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LoadingModule$1, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2345
+ LoadingModule$1.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: LoadingModule$1, declarations: [LoadingComponent$1], imports: [RouterModule,
2346
+ CommonModule,
2347
+ FormsModule], exports: [LoadingComponent$1] });
2348
+ LoadingModule$1.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LoadingModule$1, imports: [RouterModule,
2349
+ CommonModule,
2350
+ FormsModule] });
2351
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LoadingModule$1, decorators: [{
2352
+ type: NgModule,
2353
+ args: [{
2354
+ imports: [
2355
+ RouterModule,
2356
+ CommonModule,
2357
+ FormsModule,
2358
+ ],
2359
+ declarations: [LoadingComponent$1],
2360
+ exports: [LoadingComponent$1]
2361
+ }]
2362
+ }] });
2363
+
2364
+ const routes = [
2365
+ {
2366
+ path: '',
2367
+ loadChildren: () => Promise.resolve().then(function () { return applicationController_module; }).then((m) => m.PackageApplicationControllerModule),
2368
+ },
2369
+ ];
2370
+ class GammaAppControllerModule {
2371
+ }
2372
+ GammaAppControllerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: GammaAppControllerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2373
+ GammaAppControllerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: GammaAppControllerModule, declarations: [GammaAppControllerComponent,
2374
+ ExceptionOperationComponent], imports: [IconsModule, i4.RouterModule, CommonModule,
2375
+ DevExtremeModule,
2376
+ DxButtonModule,
2377
+ DxCheckBoxModule,
2378
+ DxNumberBoxModule,
2379
+ DxDataGridModule,
2380
+ DxDropDownBoxModule,
2381
+ DxTreeViewModule,
2382
+ DxScrollViewModule,
2383
+ DxFormModule,
2384
+ DxAccordionModule,
2385
+ FormsModule,
2386
+ DxTagBoxModule,
2387
+ ReactiveFormsModule,
2388
+ MatIconModule,
2389
+ DxHtmlEditorModule,
2390
+ DxBulletModule,
2391
+ DxChartModule,
2392
+ DxDateBoxModule,
2393
+ DxLoadPanelModule,
2394
+ DxLookupModule,
2395
+ DxPivotGridModule,
2396
+ DxTemplateModule,
2397
+ DxTextAreaModule,
2398
+ DxValidationSummaryModule,
2399
+ DxValidatorModule,
2400
+ DxCalendarModule,
2401
+ DxTooltipModule,
2402
+ DxContextMenuModule,
2403
+ DxLoadIndicatorModule,
2404
+ DxPieChartModule,
2405
+ MatTooltipModule,
2406
+ DxPopupModule, DxSelectBoxModule, DxTextBoxModule, DxTreeViewModule,
2407
+ MatButtonModule,
2408
+ MatDividerModule,
2409
+ MatMenuModule,
2410
+ MatIconModule,
2411
+ LoadingModule$1], exports: [RouterModule,
2412
+ GammaAppControllerComponent,
2413
+ IconsModule,
2414
+ ExceptionOperationComponent] });
2415
+ GammaAppControllerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: GammaAppControllerModule, imports: [IconsModule,
2416
+ RouterModule.forChild(routes),
2417
+ CommonModule,
2418
+ DevExtremeModule,
2419
+ DxButtonModule,
2420
+ DxCheckBoxModule,
2421
+ DxNumberBoxModule,
2422
+ DxDataGridModule,
2423
+ DxDropDownBoxModule,
2424
+ DxTreeViewModule,
2425
+ DxScrollViewModule,
2426
+ DxFormModule,
2427
+ DxAccordionModule,
2428
+ FormsModule,
2429
+ DxTagBoxModule,
2430
+ ReactiveFormsModule,
2431
+ MatIconModule,
2432
+ DxHtmlEditorModule,
2433
+ DxBulletModule,
2434
+ DxChartModule,
2435
+ DxDateBoxModule,
2436
+ DxLoadPanelModule,
2437
+ DxLookupModule,
2438
+ DxPivotGridModule,
2439
+ DxTemplateModule,
2440
+ DxTextAreaModule,
2441
+ DxValidationSummaryModule,
2442
+ DxValidatorModule,
2443
+ DxCalendarModule,
2444
+ DxTooltipModule,
2445
+ DxContextMenuModule,
2446
+ DxLoadIndicatorModule,
2447
+ DxPieChartModule,
2448
+ MatTooltipModule,
2449
+ DxPopupModule, DxSelectBoxModule, DxTextBoxModule, DxTreeViewModule,
2450
+ MatButtonModule,
2451
+ MatDividerModule,
2452
+ MatMenuModule,
2453
+ MatIconModule,
2454
+ LoadingModule$1, RouterModule,
2455
+ IconsModule] });
2456
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: GammaAppControllerModule, decorators: [{
2457
+ type: NgModule,
2458
+ args: [{
2459
+ declarations: [
2460
+ GammaAppControllerComponent,
2461
+ ExceptionOperationComponent
2462
+ ],
2463
+ imports: [
2464
+ IconsModule,
2465
+ RouterModule.forChild(routes),
2466
+ CommonModule,
2467
+ DevExtremeModule,
2468
+ DxButtonModule,
2469
+ DxCheckBoxModule,
2470
+ DxNumberBoxModule,
2471
+ DxDataGridModule,
2472
+ DxDropDownBoxModule,
2473
+ DxTreeViewModule,
2474
+ DxScrollViewModule,
2475
+ DxFormModule,
2476
+ DxAccordionModule,
2477
+ FormsModule,
2478
+ DxTagBoxModule,
2479
+ ReactiveFormsModule,
2480
+ MatIconModule,
2481
+ DxHtmlEditorModule,
2482
+ DxBulletModule,
2483
+ DxChartModule,
2484
+ DxDateBoxModule,
2485
+ DxLoadPanelModule,
2486
+ DxLookupModule,
2487
+ DxPivotGridModule,
2488
+ DxTemplateModule,
2489
+ DxTextAreaModule,
2490
+ DxValidationSummaryModule,
2491
+ DxValidatorModule,
2492
+ DxCalendarModule,
2493
+ DxTooltipModule,
2494
+ DxContextMenuModule,
2495
+ DxLoadIndicatorModule,
2496
+ DxPieChartModule,
2497
+ MatTooltipModule,
2498
+ DxPopupModule, DxSelectBoxModule, DxTextBoxModule, DxTreeViewModule,
2499
+ MatButtonModule,
2500
+ MatDividerModule,
2501
+ MatMenuModule,
2502
+ MatIconModule,
2503
+ LoadingModule$1
2504
+ ],
2505
+ exports: [
2506
+ RouterModule,
2507
+ GammaAppControllerComponent,
2508
+ IconsModule,
2509
+ ExceptionOperationComponent
2510
+ ]
2511
+ }]
2512
+ }] });
2541
2513
 
2542
2514
  class LoaderComponent {
2543
2515
  constructor() { }