@lowcodeunit/applications-flow-common 1.33.103-lets-get-social-ish → 1.33.107-lets-get-social-ish
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/lowcodeunit-applications-flow-common.umd.js +330 -185
- package/bundles/lowcodeunit-applications-flow-common.umd.js.map +1 -1
- package/bundles/lowcodeunit-applications-flow-common.umd.min.js +1 -1
- package/bundles/lowcodeunit-applications-flow-common.umd.min.js.map +1 -1
- package/esm2015/lib/applications-flow.module.js +8 -4
- package/esm2015/lib/controls/build-pipeline-form/build-pipeline-form.component.js +10 -21
- package/esm2015/lib/controls/devops-source-control-form/devops-source-control-form.component.js +82 -84
- package/esm2015/lib/controls/edit-application-form/edit-application-form.component.js +60 -0
- package/esm2015/lib/controls/processor-details-form/processor-details-form.component.js +36 -8
- package/esm2015/lib/controls/security-toggle/security-toggle.component.js +11 -4
- package/esm2015/lib/controls/source-control-form/source-control-form.component.js +5 -4
- package/esm2015/lib/dialogs/source-control-dialog/source-control-dialog.component.js +2 -2
- package/esm2015/lib/services/eac.service.js +3 -2
- package/esm2015/lowcodeunit-applications-flow-common.js +2 -1
- package/fesm2015/lowcodeunit-applications-flow-common.js +204 -118
- package/fesm2015/lowcodeunit-applications-flow-common.js.map +1 -1
- package/lib/applications-flow.module.d.ts.map +1 -1
- package/lib/controls/build-pipeline-form/build-pipeline-form.component.d.ts.map +1 -1
- package/lib/controls/devops-source-control-form/devops-source-control-form.component.d.ts +14 -8
- package/lib/controls/devops-source-control-form/devops-source-control-form.component.d.ts.map +1 -1
- package/lib/controls/edit-application-form/edit-application-form.component.d.ts +17 -0
- package/lib/controls/edit-application-form/edit-application-form.component.d.ts.map +1 -0
- package/lib/controls/processor-details-form/processor-details-form.component.d.ts +12 -4
- package/lib/controls/processor-details-form/processor-details-form.component.d.ts.map +1 -1
- package/lib/controls/security-toggle/security-toggle.component.d.ts +3 -1
- package/lib/controls/security-toggle/security-toggle.component.d.ts.map +1 -1
- package/lib/controls/source-control-form/source-control-form.component.d.ts +2 -3
- package/lib/controls/source-control-form/source-control-form.component.d.ts.map +1 -1
- package/lib/dialogs/source-control-dialog/source-control-dialog.component.d.ts +1 -0
- package/lib/dialogs/source-control-dialog/source-control-dialog.component.d.ts.map +1 -1
- package/lowcodeunit-applications-flow-common.d.ts +1 -0
- package/lowcodeunit-applications-flow-common.d.ts.map +1 -1
- package/lowcodeunit-applications-flow-common.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -1210,14 +1210,14 @@
|
|
|
1210
1210
|
});
|
|
1211
1211
|
EaCService.prototype.DeleteApplication = function (appLookup, appName) {
|
|
1212
1212
|
return __awaiter(this, void 0, void 0, function () {
|
|
1213
|
-
return __generator(this, function (
|
|
1214
|
-
switch (
|
|
1213
|
+
return __generator(this, function (_c) {
|
|
1214
|
+
switch (_c.label) {
|
|
1215
1215
|
case 0:
|
|
1216
1216
|
if (!confirm("Are you sure you want to delete application '" + appName + "'?")) return [3 /*break*/, 2];
|
|
1217
1217
|
return [4 /*yield*/, this.projectService.DeleteApplication(this.State, appLookup)];
|
|
1218
1218
|
case 1:
|
|
1219
|
-
|
|
1220
|
-
|
|
1219
|
+
_c.sent();
|
|
1220
|
+
_c.label = 2;
|
|
1221
1221
|
case 2: return [2 /*return*/];
|
|
1222
1222
|
}
|
|
1223
1223
|
});
|
|
@@ -1225,14 +1225,14 @@
|
|
|
1225
1225
|
};
|
|
1226
1226
|
EaCService.prototype.DeleteDevOpsAction = function (doaLookup) {
|
|
1227
1227
|
return __awaiter(this, void 0, void 0, function () {
|
|
1228
|
-
return __generator(this, function (
|
|
1229
|
-
switch (
|
|
1228
|
+
return __generator(this, function (_c) {
|
|
1229
|
+
switch (_c.label) {
|
|
1230
1230
|
case 0:
|
|
1231
1231
|
if (!confirm("Are you sure you want to delete DevOps action '" + doaLookup + "'?")) return [3 /*break*/, 2];
|
|
1232
1232
|
return [4 /*yield*/, this.projectService.DeleteDevOpsAction(this.State, doaLookup)];
|
|
1233
1233
|
case 1:
|
|
1234
|
-
|
|
1235
|
-
|
|
1234
|
+
_c.sent();
|
|
1235
|
+
_c.label = 2;
|
|
1236
1236
|
case 2: return [2 /*return*/];
|
|
1237
1237
|
}
|
|
1238
1238
|
});
|
|
@@ -1240,14 +1240,14 @@
|
|
|
1240
1240
|
};
|
|
1241
1241
|
EaCService.prototype.DeleteProject = function (projectLookup) {
|
|
1242
1242
|
return __awaiter(this, void 0, void 0, function () {
|
|
1243
|
-
return __generator(this, function (
|
|
1244
|
-
switch (
|
|
1243
|
+
return __generator(this, function (_c) {
|
|
1244
|
+
switch (_c.label) {
|
|
1245
1245
|
case 0:
|
|
1246
1246
|
if (!confirm("Are you sure you want to delete Project '" + projectLookup + "'?")) return [3 /*break*/, 2];
|
|
1247
1247
|
return [4 /*yield*/, this.projectService.DeleteProject(this.State, projectLookup)];
|
|
1248
1248
|
case 1:
|
|
1249
|
-
|
|
1250
|
-
|
|
1249
|
+
_c.sent();
|
|
1250
|
+
_c.label = 2;
|
|
1251
1251
|
case 2: return [2 /*return*/];
|
|
1252
1252
|
}
|
|
1253
1253
|
});
|
|
@@ -1255,14 +1255,14 @@
|
|
|
1255
1255
|
};
|
|
1256
1256
|
EaCService.prototype.DeleteSourceControl = function (scLookup) {
|
|
1257
1257
|
return __awaiter(this, void 0, void 0, function () {
|
|
1258
|
-
return __generator(this, function (
|
|
1259
|
-
switch (
|
|
1258
|
+
return __generator(this, function (_c) {
|
|
1259
|
+
switch (_c.label) {
|
|
1260
1260
|
case 0:
|
|
1261
1261
|
if (!confirm("Are you sure you want to delete Source Control '" + scLookup + "'?")) return [3 /*break*/, 2];
|
|
1262
1262
|
return [4 /*yield*/, this.projectService.DeleteSourceControl(this.State, scLookup)];
|
|
1263
1263
|
case 1:
|
|
1264
|
-
|
|
1265
|
-
|
|
1264
|
+
_c.sent();
|
|
1265
|
+
_c.label = 2;
|
|
1266
1266
|
case 2: return [2 /*return*/];
|
|
1267
1267
|
}
|
|
1268
1268
|
});
|
|
@@ -1273,11 +1273,11 @@
|
|
|
1273
1273
|
// });
|
|
1274
1274
|
EaCService.prototype.EnsureUserEnterprise = function () {
|
|
1275
1275
|
return __awaiter(this, void 0, void 0, function () {
|
|
1276
|
-
return __generator(this, function (
|
|
1277
|
-
switch (
|
|
1276
|
+
return __generator(this, function (_c) {
|
|
1277
|
+
switch (_c.label) {
|
|
1278
1278
|
case 0: return [4 /*yield*/, this.projectService.EnsureUserEnterprise(this.State)];
|
|
1279
1279
|
case 1:
|
|
1280
|
-
|
|
1280
|
+
_c.sent();
|
|
1281
1281
|
return [2 /*return*/];
|
|
1282
1282
|
}
|
|
1283
1283
|
});
|
|
@@ -1285,11 +1285,11 @@
|
|
|
1285
1285
|
};
|
|
1286
1286
|
EaCService.prototype.GetActiveEnterprise = function () {
|
|
1287
1287
|
return __awaiter(this, void 0, void 0, function () {
|
|
1288
|
-
return __generator(this, function (
|
|
1289
|
-
switch (
|
|
1288
|
+
return __generator(this, function (_c) {
|
|
1289
|
+
switch (_c.label) {
|
|
1290
1290
|
case 0: return [4 /*yield*/, this.projectService.GetActiveEnterprise(this.State)];
|
|
1291
1291
|
case 1:
|
|
1292
|
-
|
|
1292
|
+
_c.sent();
|
|
1293
1293
|
return [2 /*return*/];
|
|
1294
1294
|
}
|
|
1295
1295
|
});
|
|
@@ -1304,11 +1304,11 @@
|
|
|
1304
1304
|
});
|
|
1305
1305
|
EaCService.prototype.HasValidConnection = function () {
|
|
1306
1306
|
return __awaiter(this, void 0, void 0, function () {
|
|
1307
|
-
return __generator(this, function (
|
|
1308
|
-
switch (
|
|
1307
|
+
return __generator(this, function (_c) {
|
|
1308
|
+
switch (_c.label) {
|
|
1309
1309
|
case 0: return [4 /*yield*/, this.projectService.HasValidConnection(this.State)];
|
|
1310
1310
|
case 1:
|
|
1311
|
-
|
|
1311
|
+
_c.sent();
|
|
1312
1312
|
return [2 /*return*/];
|
|
1313
1313
|
}
|
|
1314
1314
|
});
|
|
@@ -1316,11 +1316,11 @@
|
|
|
1316
1316
|
};
|
|
1317
1317
|
EaCService.prototype.ListEnterprises = function () {
|
|
1318
1318
|
return __awaiter(this, void 0, void 0, function () {
|
|
1319
|
-
return __generator(this, function (
|
|
1320
|
-
switch (
|
|
1319
|
+
return __generator(this, function (_c) {
|
|
1320
|
+
switch (_c.label) {
|
|
1321
1321
|
case 0: return [4 /*yield*/, this.projectService.ListEnterprises(this.State)];
|
|
1322
1322
|
case 1:
|
|
1323
|
-
|
|
1323
|
+
_c.sent();
|
|
1324
1324
|
return [2 /*return*/];
|
|
1325
1325
|
}
|
|
1326
1326
|
});
|
|
@@ -1328,11 +1328,11 @@
|
|
|
1328
1328
|
};
|
|
1329
1329
|
EaCService.prototype.LoadEnterpriseAsCode = function () {
|
|
1330
1330
|
return __awaiter(this, void 0, void 0, function () {
|
|
1331
|
-
return __generator(this, function (
|
|
1332
|
-
switch (
|
|
1331
|
+
return __generator(this, function (_c) {
|
|
1332
|
+
switch (_c.label) {
|
|
1333
1333
|
case 0: return [4 /*yield*/, this.projectService.LoadEnterpriseAsCode(this.State)];
|
|
1334
1334
|
case 1:
|
|
1335
|
-
|
|
1335
|
+
_c.sent();
|
|
1336
1336
|
return [2 /*return*/];
|
|
1337
1337
|
}
|
|
1338
1338
|
});
|
|
@@ -1340,11 +1340,11 @@
|
|
|
1340
1340
|
};
|
|
1341
1341
|
EaCService.prototype.SaveApplicationAsCode = function (req) {
|
|
1342
1342
|
return __awaiter(this, void 0, void 0, function () {
|
|
1343
|
-
return __generator(this, function (
|
|
1344
|
-
switch (
|
|
1343
|
+
return __generator(this, function (_c) {
|
|
1344
|
+
switch (_c.label) {
|
|
1345
1345
|
case 0: return [4 /*yield*/, this.handleSaveApplication(req)];
|
|
1346
1346
|
case 1:
|
|
1347
|
-
|
|
1347
|
+
_c.sent();
|
|
1348
1348
|
return [2 /*return*/];
|
|
1349
1349
|
}
|
|
1350
1350
|
});
|
|
@@ -1352,11 +1352,11 @@
|
|
|
1352
1352
|
};
|
|
1353
1353
|
EaCService.prototype.SaveDFSModifier = function (req) {
|
|
1354
1354
|
return __awaiter(this, void 0, void 0, function () {
|
|
1355
|
-
return __generator(this, function (
|
|
1356
|
-
switch (
|
|
1355
|
+
return __generator(this, function (_c) {
|
|
1356
|
+
switch (_c.label) {
|
|
1357
1357
|
case 0: return [4 /*yield*/, this.handleSaveDFSModifier(req)];
|
|
1358
1358
|
case 1:
|
|
1359
|
-
|
|
1359
|
+
_c.sent();
|
|
1360
1360
|
return [2 /*return*/];
|
|
1361
1361
|
}
|
|
1362
1362
|
});
|
|
@@ -1364,11 +1364,11 @@
|
|
|
1364
1364
|
};
|
|
1365
1365
|
EaCService.prototype.SaveEnterpriseAsCode = function (eac) {
|
|
1366
1366
|
return __awaiter(this, void 0, void 0, function () {
|
|
1367
|
-
return __generator(this, function (
|
|
1368
|
-
switch (
|
|
1367
|
+
return __generator(this, function (_c) {
|
|
1368
|
+
switch (_c.label) {
|
|
1369
1369
|
case 0: return [4 /*yield*/, this.projectService.SaveEnterpriseAsCode(this.State, eac)];
|
|
1370
1370
|
case 1:
|
|
1371
|
-
|
|
1371
|
+
_c.sent();
|
|
1372
1372
|
return [2 /*return*/];
|
|
1373
1373
|
}
|
|
1374
1374
|
});
|
|
@@ -1376,11 +1376,11 @@
|
|
|
1376
1376
|
};
|
|
1377
1377
|
EaCService.prototype.SaveEnvironmentAsCode = function (req) {
|
|
1378
1378
|
return __awaiter(this, void 0, void 0, function () {
|
|
1379
|
-
return __generator(this, function (
|
|
1380
|
-
switch (
|
|
1379
|
+
return __generator(this, function (_c) {
|
|
1380
|
+
switch (_c.label) {
|
|
1381
1381
|
case 0: return [4 /*yield*/, this.handleSaveEnvironment(req)];
|
|
1382
1382
|
case 1:
|
|
1383
|
-
|
|
1383
|
+
_c.sent();
|
|
1384
1384
|
return [2 /*return*/];
|
|
1385
1385
|
}
|
|
1386
1386
|
});
|
|
@@ -1388,11 +1388,11 @@
|
|
|
1388
1388
|
};
|
|
1389
1389
|
EaCService.prototype.SaveProjectAsCode = function (req) {
|
|
1390
1390
|
return __awaiter(this, void 0, void 0, function () {
|
|
1391
|
-
return __generator(this, function (
|
|
1392
|
-
switch (
|
|
1391
|
+
return __generator(this, function (_c) {
|
|
1392
|
+
switch (_c.label) {
|
|
1393
1393
|
case 0: return [4 /*yield*/, this.handleSaveProject(req.ProjectLookup, req.Project)];
|
|
1394
1394
|
case 1:
|
|
1395
|
-
|
|
1395
|
+
_c.sent();
|
|
1396
1396
|
return [2 /*return*/];
|
|
1397
1397
|
}
|
|
1398
1398
|
});
|
|
@@ -1400,7 +1400,7 @@
|
|
|
1400
1400
|
};
|
|
1401
1401
|
EaCService.prototype.SetActiveEnterprise = function (eventValue) {
|
|
1402
1402
|
return __awaiter(this, void 0, void 0, function () {
|
|
1403
|
-
return __generator(this, function (
|
|
1403
|
+
return __generator(this, function (_c) {
|
|
1404
1404
|
this.projectService.SetActiveEnterprise(this.State, eventValue);
|
|
1405
1405
|
return [2 /*return*/];
|
|
1406
1406
|
});
|
|
@@ -1408,7 +1408,7 @@
|
|
|
1408
1408
|
};
|
|
1409
1409
|
EaCService.prototype.SetCreatingProject = function (creatingProject) {
|
|
1410
1410
|
return __awaiter(this, void 0, void 0, function () {
|
|
1411
|
-
return __generator(this, function (
|
|
1411
|
+
return __generator(this, function (_c) {
|
|
1412
1412
|
this.projectService.SetCreatingProject(creatingProject);
|
|
1413
1413
|
return [2 /*return*/];
|
|
1414
1414
|
});
|
|
@@ -1416,11 +1416,11 @@
|
|
|
1416
1416
|
};
|
|
1417
1417
|
EaCService.prototype.SetEditProjectSettings = function (projectLookup) {
|
|
1418
1418
|
return __awaiter(this, void 0, void 0, function () {
|
|
1419
|
-
return __generator(this, function (
|
|
1420
|
-
switch (
|
|
1419
|
+
return __generator(this, function (_c) {
|
|
1420
|
+
switch (_c.label) {
|
|
1421
1421
|
case 0: return [4 /*yield*/, this.projectService.SetEditProjectSettings(this.State, projectLookup)];
|
|
1422
1422
|
case 1:
|
|
1423
|
-
|
|
1423
|
+
_c.sent();
|
|
1424
1424
|
return [2 /*return*/];
|
|
1425
1425
|
}
|
|
1426
1426
|
});
|
|
@@ -1428,14 +1428,14 @@
|
|
|
1428
1428
|
};
|
|
1429
1429
|
EaCService.prototype.UnpackLowCodeUnit = function (req) {
|
|
1430
1430
|
return __awaiter(this, void 0, void 0, function () {
|
|
1431
|
-
return __generator(this, function (
|
|
1432
|
-
switch (
|
|
1431
|
+
return __generator(this, function (_c) {
|
|
1432
|
+
switch (_c.label) {
|
|
1433
1433
|
case 0:
|
|
1434
1434
|
if (!confirm("Are you sure you want to unpack application '" + req.ApplicationName + "' with version '" + req.Version + "'?")) return [3 /*break*/, 2];
|
|
1435
1435
|
return [4 /*yield*/, this.projectService.UnpackLowCodeUnit(this.State, req)];
|
|
1436
1436
|
case 1:
|
|
1437
|
-
|
|
1438
|
-
|
|
1437
|
+
_c.sent();
|
|
1438
|
+
_c.label = 2;
|
|
1439
1439
|
case 2: return [2 /*return*/];
|
|
1440
1440
|
}
|
|
1441
1441
|
});
|
|
@@ -1446,8 +1446,8 @@
|
|
|
1446
1446
|
var _a;
|
|
1447
1447
|
return __awaiter(this, void 0, void 0, function () {
|
|
1448
1448
|
var saveEaC, existingProj;
|
|
1449
|
-
return __generator(this, function (
|
|
1450
|
-
switch (
|
|
1449
|
+
return __generator(this, function (_c) {
|
|
1450
|
+
switch (_c.label) {
|
|
1451
1451
|
case 0:
|
|
1452
1452
|
saveEaC = {
|
|
1453
1453
|
EnterpriseLookup: this.State.EaC.EnterpriseLookup,
|
|
@@ -1467,7 +1467,7 @@
|
|
|
1467
1467
|
}
|
|
1468
1468
|
return [4 /*yield*/, this.projectService.SaveEnterpriseAsCode(this.State, saveEaC)];
|
|
1469
1469
|
case 1:
|
|
1470
|
-
|
|
1470
|
+
_c.sent();
|
|
1471
1471
|
return [2 /*return*/];
|
|
1472
1472
|
}
|
|
1473
1473
|
});
|
|
@@ -1476,8 +1476,8 @@
|
|
|
1476
1476
|
EaCService.prototype.handleSaveDFSModifier = function (req) {
|
|
1477
1477
|
return __awaiter(this, void 0, void 0, function () {
|
|
1478
1478
|
var saveEaC;
|
|
1479
|
-
return __generator(this, function (
|
|
1480
|
-
switch (
|
|
1479
|
+
return __generator(this, function (_c) {
|
|
1480
|
+
switch (_c.label) {
|
|
1481
1481
|
case 0:
|
|
1482
1482
|
saveEaC = {
|
|
1483
1483
|
EnterpriseLookup: this.State.EaC.EnterpriseLookup,
|
|
@@ -1494,20 +1494,21 @@
|
|
|
1494
1494
|
}
|
|
1495
1495
|
return [4 /*yield*/, this.projectService.SaveEnterpriseAsCode(this.State, saveEaC)];
|
|
1496
1496
|
case 1:
|
|
1497
|
-
|
|
1497
|
+
_c.sent();
|
|
1498
1498
|
return [2 /*return*/];
|
|
1499
1499
|
}
|
|
1500
1500
|
});
|
|
1501
1501
|
});
|
|
1502
1502
|
};
|
|
1503
1503
|
EaCService.prototype.handleSaveEnvironment = function (req) {
|
|
1504
|
+
var _a, _b;
|
|
1504
1505
|
return __awaiter(this, void 0, void 0, function () {
|
|
1505
1506
|
var saveEaC;
|
|
1506
|
-
return __generator(this, function (
|
|
1507
|
-
switch (
|
|
1507
|
+
return __generator(this, function (_c) {
|
|
1508
|
+
switch (_c.label) {
|
|
1508
1509
|
case 0:
|
|
1509
1510
|
saveEaC = {
|
|
1510
|
-
EnterpriseLookup: this.State.EaC.EnterpriseLookup,
|
|
1511
|
+
EnterpriseLookup: (_b = (_a = this.State) === null || _a === void 0 ? void 0 : _a.EaC) === null || _b === void 0 ? void 0 : _b.EnterpriseLookup,
|
|
1511
1512
|
DataTokens: {},
|
|
1512
1513
|
Environments: {},
|
|
1513
1514
|
};
|
|
@@ -1519,7 +1520,7 @@
|
|
|
1519
1520
|
}
|
|
1520
1521
|
return [4 /*yield*/, this.projectService.SaveEnterpriseAsCode(this.State, saveEaC)];
|
|
1521
1522
|
case 1:
|
|
1522
|
-
|
|
1523
|
+
_c.sent();
|
|
1523
1524
|
return [2 /*return*/];
|
|
1524
1525
|
}
|
|
1525
1526
|
});
|
|
@@ -1530,8 +1531,8 @@
|
|
|
1530
1531
|
return __awaiter(this, void 0, void 0, function () {
|
|
1531
1532
|
var projHosts, saveEaC;
|
|
1532
1533
|
var _this = this;
|
|
1533
|
-
return __generator(this, function (
|
|
1534
|
-
switch (
|
|
1534
|
+
return __generator(this, function (_c) {
|
|
1535
|
+
switch (_c.label) {
|
|
1535
1536
|
case 0:
|
|
1536
1537
|
projHosts = {};
|
|
1537
1538
|
(_a = project === null || project === void 0 ? void 0 : project.Hosts) === null || _a === void 0 ? void 0 : _a.forEach(function (host) {
|
|
@@ -1547,7 +1548,7 @@
|
|
|
1547
1548
|
saveEaC.Projects[projectLookup] = project;
|
|
1548
1549
|
return [4 /*yield*/, this.projectService.SaveEnterpriseAsCode(this.State, saveEaC)];
|
|
1549
1550
|
case 1:
|
|
1550
|
-
|
|
1551
|
+
_c.sent();
|
|
1551
1552
|
this.SetEditProjectSettings(projectLookup);
|
|
1552
1553
|
return [2 /*return*/];
|
|
1553
1554
|
}
|
|
@@ -5047,6 +5048,7 @@
|
|
|
5047
5048
|
var SecurityToggleComponent = /** @class */ (function () {
|
|
5048
5049
|
function SecurityToggleComponent(formBldr) {
|
|
5049
5050
|
this.formBldr = formBldr;
|
|
5051
|
+
this.SaveFormEvent = new i0.EventEmitter;
|
|
5050
5052
|
}
|
|
5051
5053
|
Object.defineProperty(SecurityToggleComponent.prototype, "IsPrivateFormControl", {
|
|
5052
5054
|
get: function () {
|
|
@@ -5056,12 +5058,21 @@
|
|
|
5056
5058
|
enumerable: false,
|
|
5057
5059
|
configurable: true
|
|
5058
5060
|
});
|
|
5061
|
+
Object.defineProperty(SecurityToggleComponent.prototype, "IsTriggerSignInFormControl", {
|
|
5062
|
+
get: function () {
|
|
5063
|
+
var _a;
|
|
5064
|
+
return (_a = this.SecurityFormGroup) === null || _a === void 0 ? void 0 : _a.controls.isTriggerSignIn;
|
|
5065
|
+
},
|
|
5066
|
+
enumerable: false,
|
|
5067
|
+
configurable: true
|
|
5068
|
+
});
|
|
5059
5069
|
SecurityToggleComponent.prototype.ngOnInit = function () {
|
|
5060
5070
|
this.setupSecurityFormGroup();
|
|
5061
5071
|
};
|
|
5062
5072
|
SecurityToggleComponent.prototype.SecuritySubmit = function () {
|
|
5063
5073
|
//save the security settings
|
|
5064
|
-
console.log("submitting values: ", this.SecurityFormGroup.value);
|
|
5074
|
+
console.log("submitting security values: ", this.SecurityFormGroup.value);
|
|
5075
|
+
this.SaveFormEvent.emit(this.SecurityFormGroup.value);
|
|
5065
5076
|
};
|
|
5066
5077
|
SecurityToggleComponent.prototype.setupSecurityFormGroup = function () {
|
|
5067
5078
|
var _a, _b;
|
|
@@ -5087,7 +5098,8 @@
|
|
|
5087
5098
|
{ type: forms.FormBuilder }
|
|
5088
5099
|
]; };
|
|
5089
5100
|
SecurityToggleComponent.propDecorators = {
|
|
5090
|
-
EditingApplication: [{ type: i0.Input, args: ['editing-application',] }]
|
|
5101
|
+
EditingApplication: [{ type: i0.Input, args: ['editing-application',] }],
|
|
5102
|
+
SaveFormEvent: [{ type: i0.Output, args: ['save-form-event',] }]
|
|
5091
5103
|
};
|
|
5092
5104
|
|
|
5093
5105
|
var ProcessorDetailsFormComponent = /** @class */ (function () {
|
|
@@ -5095,7 +5107,16 @@
|
|
|
5095
5107
|
this.formBldr = formBldr;
|
|
5096
5108
|
this.eacSvc = eacSvc;
|
|
5097
5109
|
this.redirectTooltip = '';
|
|
5110
|
+
this.SaveFormEvent = new i0.EventEmitter;
|
|
5098
5111
|
}
|
|
5112
|
+
Object.defineProperty(ProcessorDetailsFormComponent.prototype, "APIRootFormControl", {
|
|
5113
|
+
get: function () {
|
|
5114
|
+
var _a;
|
|
5115
|
+
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.apiRoot;
|
|
5116
|
+
},
|
|
5117
|
+
enumerable: false,
|
|
5118
|
+
configurable: true
|
|
5119
|
+
});
|
|
5099
5120
|
Object.defineProperty(ProcessorDetailsFormComponent.prototype, "BuildFormControl", {
|
|
5100
5121
|
get: function () {
|
|
5101
5122
|
var _a;
|
|
@@ -5112,6 +5133,14 @@
|
|
|
5112
5133
|
enumerable: false,
|
|
5113
5134
|
configurable: true
|
|
5114
5135
|
});
|
|
5136
|
+
Object.defineProperty(ProcessorDetailsFormComponent.prototype, "ClientSecretFormControl", {
|
|
5137
|
+
get: function () {
|
|
5138
|
+
var _a;
|
|
5139
|
+
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.clientSecret;
|
|
5140
|
+
},
|
|
5141
|
+
enumerable: false,
|
|
5142
|
+
configurable: true
|
|
5143
|
+
});
|
|
5115
5144
|
Object.defineProperty(ProcessorDetailsFormComponent.prototype, "DefaultFileFormControl", {
|
|
5116
5145
|
get: function () {
|
|
5117
5146
|
var _a;
|
|
@@ -5139,10 +5168,34 @@
|
|
|
5139
5168
|
enumerable: false,
|
|
5140
5169
|
configurable: true
|
|
5141
5170
|
});
|
|
5142
|
-
Object.defineProperty(ProcessorDetailsFormComponent.prototype, "
|
|
5171
|
+
Object.defineProperty(ProcessorDetailsFormComponent.prototype, "MethodsFormControl", {
|
|
5143
5172
|
get: function () {
|
|
5144
5173
|
var _a;
|
|
5145
|
-
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.
|
|
5174
|
+
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.methods;
|
|
5175
|
+
},
|
|
5176
|
+
enumerable: false,
|
|
5177
|
+
configurable: true
|
|
5178
|
+
});
|
|
5179
|
+
Object.defineProperty(ProcessorDetailsFormComponent.prototype, "PackageFormControl", {
|
|
5180
|
+
get: function () {
|
|
5181
|
+
var _a;
|
|
5182
|
+
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.package;
|
|
5183
|
+
},
|
|
5184
|
+
enumerable: false,
|
|
5185
|
+
configurable: true
|
|
5186
|
+
});
|
|
5187
|
+
Object.defineProperty(ProcessorDetailsFormComponent.prototype, "PermanentFormControl", {
|
|
5188
|
+
get: function () {
|
|
5189
|
+
var _a;
|
|
5190
|
+
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.permanent;
|
|
5191
|
+
},
|
|
5192
|
+
enumerable: false,
|
|
5193
|
+
configurable: true
|
|
5194
|
+
});
|
|
5195
|
+
Object.defineProperty(ProcessorDetailsFormComponent.prototype, "PreserveMethodFormControl", {
|
|
5196
|
+
get: function () {
|
|
5197
|
+
var _a;
|
|
5198
|
+
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.preserveMethod;
|
|
5146
5199
|
},
|
|
5147
5200
|
enumerable: false,
|
|
5148
5201
|
configurable: true
|
|
@@ -5179,18 +5232,26 @@
|
|
|
5179
5232
|
enumerable: false,
|
|
5180
5233
|
configurable: true
|
|
5181
5234
|
});
|
|
5182
|
-
Object.defineProperty(ProcessorDetailsFormComponent.prototype, "
|
|
5235
|
+
Object.defineProperty(ProcessorDetailsFormComponent.prototype, "TokenLookupFormControl", {
|
|
5183
5236
|
get: function () {
|
|
5184
5237
|
var _a;
|
|
5185
|
-
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.
|
|
5238
|
+
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.tokenLookup;
|
|
5186
5239
|
},
|
|
5187
5240
|
enumerable: false,
|
|
5188
5241
|
configurable: true
|
|
5189
5242
|
});
|
|
5190
|
-
Object.defineProperty(ProcessorDetailsFormComponent.prototype, "
|
|
5243
|
+
Object.defineProperty(ProcessorDetailsFormComponent.prototype, "VersionFormControl", {
|
|
5191
5244
|
get: function () {
|
|
5192
5245
|
var _a;
|
|
5193
|
-
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.
|
|
5246
|
+
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.version;
|
|
5247
|
+
},
|
|
5248
|
+
enumerable: false,
|
|
5249
|
+
configurable: true
|
|
5250
|
+
});
|
|
5251
|
+
Object.defineProperty(ProcessorDetailsFormComponent.prototype, "ZipFileFormControl", {
|
|
5252
|
+
get: function () {
|
|
5253
|
+
var _a;
|
|
5254
|
+
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.zipFile;
|
|
5194
5255
|
},
|
|
5195
5256
|
enumerable: false,
|
|
5196
5257
|
configurable: true
|
|
@@ -5228,6 +5289,7 @@
|
|
|
5228
5289
|
};
|
|
5229
5290
|
ProcessorDetailsFormComponent.prototype.SubmitProcessorDetails = function () {
|
|
5230
5291
|
console.log("submitting proc details: ", this.ProcessorDetailsFormGroup.value);
|
|
5292
|
+
this.SaveFormEvent.emit(this.ProcessorDetailsFormGroup.value);
|
|
5231
5293
|
};
|
|
5232
5294
|
ProcessorDetailsFormComponent.prototype.ProcessorTypeChanged = function (event) {
|
|
5233
5295
|
this.ProcessorType = event.value;
|
|
@@ -5411,12 +5473,15 @@
|
|
|
5411
5473
|
ProcessorDetailsFormComponent.propDecorators = {
|
|
5412
5474
|
EditingApplication: [{ type: i0.Input, args: ['editing-application',] }],
|
|
5413
5475
|
EditingApplicationLookup: [{ type: i0.Input, args: ['editing-application-lookup',] }],
|
|
5476
|
+
ProjectLookup: [{ type: i0.Input, args: ['project-lookup',] }],
|
|
5477
|
+
SaveFormEvent: [{ type: i0.Output, args: ['save-form-event',] }],
|
|
5414
5478
|
SourceControlFormControls: [{ type: i0.ViewChild, args: [SourceControlFormControlsComponent,] }]
|
|
5415
5479
|
};
|
|
5416
5480
|
|
|
5417
5481
|
var SourceControlFormComponent = /** @class */ (function () {
|
|
5418
5482
|
function SourceControlFormComponent(formBldr) {
|
|
5419
5483
|
this.formBldr = formBldr;
|
|
5484
|
+
this.SaveFormEvent = new i0.EventEmitter;
|
|
5420
5485
|
}
|
|
5421
5486
|
Object.defineProperty(SourceControlFormComponent.prototype, "HasBuildFormControl", {
|
|
5422
5487
|
get: function () {
|
|
@@ -5457,6 +5522,7 @@
|
|
|
5457
5522
|
};
|
|
5458
5523
|
SourceControlFormComponent.prototype.SubmitSourceControl = function () {
|
|
5459
5524
|
console.log("submitting source control: ", this.SourceControlFormGroup.value);
|
|
5525
|
+
this.SaveFormEvent.emit(this.SourceControlFormGroup.value);
|
|
5460
5526
|
};
|
|
5461
5527
|
//HELPER
|
|
5462
5528
|
SourceControlFormComponent.prototype.setupSourceControlForm = function () {
|
|
@@ -5485,7 +5551,7 @@
|
|
|
5485
5551
|
SourceControlFormComponent.propDecorators = {
|
|
5486
5552
|
EditingApplication: [{ type: i0.Input, args: ['editing-application',] }],
|
|
5487
5553
|
Environment: [{ type: i0.Input, args: ['environment',] }],
|
|
5488
|
-
|
|
5554
|
+
SaveFormEvent: [{ type: i0.Output, args: ['save-form-event',] }]
|
|
5489
5555
|
};
|
|
5490
5556
|
|
|
5491
5557
|
var BuildPipelineFormComponent = /** @class */ (function () {
|
|
@@ -5503,10 +5569,10 @@
|
|
|
5503
5569
|
// @Input('repository')
|
|
5504
5570
|
// public Repository: string;
|
|
5505
5571
|
get: function () {
|
|
5506
|
-
var _a, _b
|
|
5507
|
-
console.log("ARTIFACT: ",
|
|
5508
|
-
return ((
|
|
5509
|
-
? ((
|
|
5572
|
+
var _a, _b;
|
|
5573
|
+
// console.log("ARTIFACT: ", this.Environment?.Artifacts[this.ArtifactLookup]);
|
|
5574
|
+
return ((_a = this.Environment) === null || _a === void 0 ? void 0 : _a.Artifacts) && this.ArtifactLookup
|
|
5575
|
+
? ((_b = this.Environment) === null || _b === void 0 ? void 0 : _b.Artifacts[this.ArtifactLookup]) || {}
|
|
5510
5576
|
: {};
|
|
5511
5577
|
},
|
|
5512
5578
|
enumerable: false,
|
|
@@ -5627,6 +5693,7 @@
|
|
|
5627
5693
|
};
|
|
5628
5694
|
BuildPipelineFormComponent.prototype.SubmitBuildPipeline = function () {
|
|
5629
5695
|
console.log("submitting build pipeline: ", this.BuildPipelineFormGroup.value);
|
|
5696
|
+
this.SaveEnvironment();
|
|
5630
5697
|
};
|
|
5631
5698
|
BuildPipelineFormComponent.prototype.SaveEnvironment = function () {
|
|
5632
5699
|
var _a;
|
|
@@ -5671,22 +5738,10 @@
|
|
|
5671
5738
|
var doa = Object.assign(Object.assign({}, this.DevOpsAction), { Name: this.DevOpsActionNameFormControl.value });
|
|
5672
5739
|
saveEnvReq.Environment.DevOpsActions[devOpsActionLookup] = doa;
|
|
5673
5740
|
}
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
// };
|
|
5679
|
-
// source = {
|
|
5680
|
-
// ...source,
|
|
5681
|
-
// Type: 'GitHub',
|
|
5682
|
-
// Name: this.EditingSourceControlLookup,
|
|
5683
|
-
// DevOpsActionTriggerLookups: [devOpsActionLookup],
|
|
5684
|
-
// Organization:
|
|
5685
|
-
// this.SourceControlFormControls.OrganizationFormControl.value,
|
|
5686
|
-
// Repository: this.SourceControlFormControls.RepositoryFormControl.value,
|
|
5687
|
-
// };
|
|
5688
|
-
// const scLookup = `github://${source.Organization}/${source.Repository}`;
|
|
5689
|
-
// saveEnvReq.Environment.Sources[scLookup] = source;
|
|
5741
|
+
var source = Object.assign(Object.assign({}, this.EditingSourceControl), { Branches: this.EditingSourceControl.SelectedBranches, MainBranch: this.EditingSourceControl.MainBranchFormControl.value });
|
|
5742
|
+
source = Object.assign(Object.assign({}, source), { Type: 'GitHub', Name: this.EditingSourceControlLookup, DevOpsActionTriggerLookups: [devOpsActionLookup], Organization: this.EditingSourceControl.OrganizationFormControl.value, Repository: this.EditingSourceControl.RepositoryFormControl.value });
|
|
5743
|
+
var scLookup = "github://" + source.Organization + "/" + source.Repository;
|
|
5744
|
+
saveEnvReq.Environment.Sources[scLookup] = source;
|
|
5690
5745
|
this.eacSvc.SaveEnvironmentAsCode(saveEnvReq);
|
|
5691
5746
|
};
|
|
5692
5747
|
// Helpers
|
|
@@ -5785,8 +5840,35 @@
|
|
|
5785
5840
|
this.UseBranches = true;
|
|
5786
5841
|
this.UseBuildPath = false;
|
|
5787
5842
|
}
|
|
5788
|
-
Object.defineProperty(DevopsSourceControlFormComponent.prototype, "
|
|
5843
|
+
Object.defineProperty(DevopsSourceControlFormComponent.prototype, "ArtifactLookups", {
|
|
5789
5844
|
// Properties
|
|
5845
|
+
get: function () {
|
|
5846
|
+
var _a;
|
|
5847
|
+
return (_a = this.DevOpsAction) === null || _a === void 0 ? void 0 : _a.ArtifactLookups;
|
|
5848
|
+
},
|
|
5849
|
+
enumerable: false,
|
|
5850
|
+
configurable: true
|
|
5851
|
+
});
|
|
5852
|
+
Object.defineProperty(DevopsSourceControlFormComponent.prototype, "ArtifactLookup", {
|
|
5853
|
+
get: function () {
|
|
5854
|
+
var _a, _b;
|
|
5855
|
+
var artLookup = ((_a = this.DevOpsAction) === null || _a === void 0 ? void 0 : _a.ArtifactLookups) ? (_b = this.DevOpsAction) === null || _b === void 0 ? void 0 : _b.ArtifactLookups[0] : null;
|
|
5856
|
+
return artLookup;
|
|
5857
|
+
},
|
|
5858
|
+
enumerable: false,
|
|
5859
|
+
configurable: true
|
|
5860
|
+
});
|
|
5861
|
+
Object.defineProperty(DevopsSourceControlFormComponent.prototype, "Artifact", {
|
|
5862
|
+
get: function () {
|
|
5863
|
+
var _a, _b;
|
|
5864
|
+
return ((_a = this.Environment) === null || _a === void 0 ? void 0 : _a.Artifacts) && this.ArtifactLookup
|
|
5865
|
+
? ((_b = this.Environment) === null || _b === void 0 ? void 0 : _b.Artifacts[this.ArtifactLookup]) || {}
|
|
5866
|
+
: {};
|
|
5867
|
+
},
|
|
5868
|
+
enumerable: false,
|
|
5869
|
+
configurable: true
|
|
5870
|
+
});
|
|
5871
|
+
Object.defineProperty(DevopsSourceControlFormComponent.prototype, "BranchesFormControl", {
|
|
5790
5872
|
get: function () {
|
|
5791
5873
|
return this.DevOpsSourceControlFormGroup.get(this.SourceControlRoot + 'branches');
|
|
5792
5874
|
},
|
|
@@ -5802,11 +5884,21 @@
|
|
|
5802
5884
|
});
|
|
5803
5885
|
Object.defineProperty(DevopsSourceControlFormComponent.prototype, "DevOpsActionLookups", {
|
|
5804
5886
|
get: function () {
|
|
5887
|
+
// console.log(this.DevOpsActions);
|
|
5805
5888
|
return Object.keys(this.DevOpsActions || {});
|
|
5806
5889
|
},
|
|
5807
5890
|
enumerable: false,
|
|
5808
5891
|
configurable: true
|
|
5809
5892
|
});
|
|
5893
|
+
Object.defineProperty(DevopsSourceControlFormComponent.prototype, "DevOpsAction", {
|
|
5894
|
+
get: function () {
|
|
5895
|
+
return this.Environment.DevOpsActions && this.DevOpsActionLookup
|
|
5896
|
+
? this.Environment.DevOpsActions[this.DevOpsActionLookup] || {}
|
|
5897
|
+
: {};
|
|
5898
|
+
},
|
|
5899
|
+
enumerable: false,
|
|
5900
|
+
configurable: true
|
|
5901
|
+
});
|
|
5810
5902
|
Object.defineProperty(DevopsSourceControlFormComponent.prototype, "DevOpsActionLookup", {
|
|
5811
5903
|
get: function () {
|
|
5812
5904
|
var _a, _b, _c;
|
|
@@ -5975,90 +6067,67 @@
|
|
|
5975
6067
|
};
|
|
5976
6068
|
DevopsSourceControlFormComponent.prototype.SubmitSourceControl = function () {
|
|
5977
6069
|
console.log("source control submitted: ", this.DevOpsSourceControlFormGroup.value);
|
|
6070
|
+
this.SaveSourceControl();
|
|
6071
|
+
};
|
|
6072
|
+
DevopsSourceControlFormComponent.prototype.SaveSourceControl = function () {
|
|
6073
|
+
var saveEnvReq = {
|
|
6074
|
+
Environment: Object.assign(Object.assign({}, this.Environment), { Artifacts: this.Environment.Artifacts || {}, DevOpsActions: this.Environment.DevOpsActions || {}, Secrets: this.Environment.Secrets || {}, Sources: this.Environment.Sources || {} }),
|
|
6075
|
+
EnvironmentLookup: this.EnvironmentLookup,
|
|
6076
|
+
EnterpriseDataTokens: {},
|
|
6077
|
+
};
|
|
6078
|
+
var artifactLookup;
|
|
6079
|
+
// let artifact: EaCArtifact = {
|
|
6080
|
+
// ...this.Artifact,
|
|
6081
|
+
// ...this.HostingDetailsFormControls
|
|
6082
|
+
// .SelectedHostingOptionInputControlValues,
|
|
6083
|
+
// };
|
|
6084
|
+
var artifact = this.Artifact;
|
|
6085
|
+
if (!this.ArtifactLookup) {
|
|
6086
|
+
artifactLookup = i2.Guid.CreateRaw();
|
|
6087
|
+
artifact = Object.assign(Object.assign({}, artifact), {
|
|
6088
|
+
// Type: this.HostingDetailsFormControls.SelectedHostingOption
|
|
6089
|
+
// .ArtifactType,
|
|
6090
|
+
// Name: this.HostingDetailsFormControls.SelectedHostingOption.Name,
|
|
6091
|
+
NPMRegistry: 'https://registry.npmjs.org/'
|
|
6092
|
+
});
|
|
6093
|
+
}
|
|
6094
|
+
else {
|
|
6095
|
+
artifactLookup = this.ArtifactLookup;
|
|
6096
|
+
}
|
|
6097
|
+
saveEnvReq.Environment.Artifacts[artifactLookup] = artifact;
|
|
6098
|
+
var devOpsActionLookup;
|
|
6099
|
+
if (!this.DevOpsActionLookup) {
|
|
6100
|
+
devOpsActionLookup = i2.Guid.CreateRaw();
|
|
6101
|
+
var doa = Object.assign(Object.assign({}, this.DevOpsAction), { ArtifactLookups: [artifactLookup] });
|
|
6102
|
+
// if (this.HostingDetailsFormControls.NPMTokenFormControl?.value) {
|
|
6103
|
+
// const secretLookup = 'npm-access-token';
|
|
6104
|
+
// doa.SecretLookups = [secretLookup];
|
|
6105
|
+
// saveEnvReq.Environment.Secrets[secretLookup] = {
|
|
6106
|
+
// Name: 'NPM Access Token',
|
|
6107
|
+
// DataTokenLookup: secretLookup,
|
|
6108
|
+
// KnownAs: 'NPM_TOKEN',
|
|
6109
|
+
// };
|
|
6110
|
+
// saveEnvReq.EnterpriseDataTokens[secretLookup] = {
|
|
6111
|
+
// Name: saveEnvReq.Environment.Secrets[secretLookup].Name,
|
|
6112
|
+
// Description: saveEnvReq.Environment.Secrets[secretLookup].Name,
|
|
6113
|
+
// Value: this.NPMTokenFormControl.value,
|
|
6114
|
+
// };
|
|
6115
|
+
// }
|
|
6116
|
+
// saveEnvReq.Environment.DevOpsActions[devOpsActionLookup] = doa;
|
|
6117
|
+
saveEnvReq.Environment.DevOpsActions[devOpsActionLookup] = this.DevOpsAction;
|
|
6118
|
+
}
|
|
6119
|
+
else {
|
|
6120
|
+
devOpsActionLookup = this.DevOpsActionLookupFormControl.value;
|
|
6121
|
+
var doa = Object.assign({}, this.DevOpsAction);
|
|
6122
|
+
// saveEnvReq.Environment.DevOpsActions[devOpsActionLookup] = doa;
|
|
6123
|
+
saveEnvReq.Environment.DevOpsActions[devOpsActionLookup] = this.DevOpsAction;
|
|
6124
|
+
}
|
|
6125
|
+
var source = Object.assign(Object.assign({}, this.EditingSourceControl), { Branches: this.SelectedBranches, MainBranch: this.MainBranchFormControl.value });
|
|
6126
|
+
source = Object.assign(Object.assign({}, source), { Type: 'GitHub', Name: this.EditingSourceControlLookup, DevOpsActionTriggerLookups: [devOpsActionLookup], Organization: this.OrganizationFormControl.value, Repository: this.RepositoryFormControl.value });
|
|
6127
|
+
var scLookup = "github://" + source.Organization + "/" + source.Repository;
|
|
6128
|
+
saveEnvReq.Environment.Sources[scLookup] = source;
|
|
6129
|
+
this.eacSvc.SaveEnvironmentAsCode(saveEnvReq);
|
|
5978
6130
|
};
|
|
5979
|
-
// public SaveSourceControl(): void {
|
|
5980
|
-
// const saveEnvReq: SaveEnvironmentAsCodeEventRequest = {
|
|
5981
|
-
// Environment: {
|
|
5982
|
-
// ...this.Environment,
|
|
5983
|
-
// Artifacts: this.Environment.Artifacts || {},
|
|
5984
|
-
// DevOpsActions: this.Environment.DevOpsActions || {},
|
|
5985
|
-
// Secrets: this.Environment.Secrets || {},
|
|
5986
|
-
// Sources: this.Environment.Sources || {},
|
|
5987
|
-
// },
|
|
5988
|
-
// EnvironmentLookup: this.EnvironmentLookup,
|
|
5989
|
-
// EnterpriseDataTokens: {},
|
|
5990
|
-
// };
|
|
5991
|
-
// let artifactLookup: string;
|
|
5992
|
-
// let artifact: EaCArtifact = {
|
|
5993
|
-
// ...this.Artifact,
|
|
5994
|
-
// ...this.HostingDetailsFormControls
|
|
5995
|
-
// .SelectedHostingOptionInputControlValues,
|
|
5996
|
-
// };
|
|
5997
|
-
// // if (!this.ArtifactLookup) {
|
|
5998
|
-
// // artifactLookup = Guid.CreateRaw();
|
|
5999
|
-
// // artifact = {
|
|
6000
|
-
// // ...artifact,
|
|
6001
|
-
// // Type: this.HostingDetailsFormControls.SelectedHostingOption
|
|
6002
|
-
// // .ArtifactType,
|
|
6003
|
-
// // Name: this.HostingDetailsFormControls.SelectedHostingOption.Name,
|
|
6004
|
-
// // NPMRegistry: 'https://registry.npmjs.org/',
|
|
6005
|
-
// // };
|
|
6006
|
-
// // } else {
|
|
6007
|
-
// // artifactLookup = this.ArtifactLookup;
|
|
6008
|
-
// // }
|
|
6009
|
-
// saveEnvReq.Environment.Artifacts[artifactLookup] = artifact;
|
|
6010
|
-
// let devOpsActionLookup: string;
|
|
6011
|
-
// if (!this.DevOpsActionLookup) {
|
|
6012
|
-
// devOpsActionLookup = Guid.CreateRaw();
|
|
6013
|
-
// // const doa: EaCDevOpsAction = {
|
|
6014
|
-
// // ...this.DevOpsAction,
|
|
6015
|
-
// // ArtifactLookups: [artifactLookup],
|
|
6016
|
-
// // Name: this.HostingDetailsFormControls.DevOpsActionNameFormControl.value,
|
|
6017
|
-
// // Path: this.HostingDetailsFormControls.SelectedHostingOption.Path,
|
|
6018
|
-
// // Templates:
|
|
6019
|
-
// // this.HostingDetailsFormControls.SelectedHostingOption.Templates,
|
|
6020
|
-
// // };
|
|
6021
|
-
// if (this.HostingDetailsFormControls.NPMTokenFormControl?.value) {
|
|
6022
|
-
// const secretLookup = 'npm-access-token';
|
|
6023
|
-
// doa.SecretLookups = [secretLookup];
|
|
6024
|
-
// saveEnvReq.Environment.Secrets[secretLookup] = {
|
|
6025
|
-
// Name: 'NPM Access Token',
|
|
6026
|
-
// DataTokenLookup: secretLookup,
|
|
6027
|
-
// KnownAs: 'NPM_TOKEN',
|
|
6028
|
-
// };
|
|
6029
|
-
// saveEnvReq.EnterpriseDataTokens[secretLookup] = {
|
|
6030
|
-
// Name: saveEnvReq.Environment.Secrets[secretLookup].Name,
|
|
6031
|
-
// Description: saveEnvReq.Environment.Secrets[secretLookup].Name,
|
|
6032
|
-
// Value: this.NPMTokenFormControl.value,
|
|
6033
|
-
// };
|
|
6034
|
-
// }
|
|
6035
|
-
// saveEnvReq.Environment.DevOpsActions[devOpsActionLookup] = doa;
|
|
6036
|
-
// } else {
|
|
6037
|
-
// devOpsActionLookup = this.DevOpsActionLookupFormControl.value;
|
|
6038
|
-
// const doa: EaCDevOpsAction = {
|
|
6039
|
-
// ...this.DevOpsAction,
|
|
6040
|
-
// Name: this.HostingDetailsFormControls.DevOpsActionNameFormControl.value,
|
|
6041
|
-
// };
|
|
6042
|
-
// saveEnvReq.Environment.DevOpsActions[devOpsActionLookup] = doa;
|
|
6043
|
-
// }
|
|
6044
|
-
// let source: EaCSourceControl = {
|
|
6045
|
-
// ...this.EditingSourceControl,
|
|
6046
|
-
// Branches: this.SelectedBranches,
|
|
6047
|
-
// MainBranch: this.MainBranchFormControl.value,
|
|
6048
|
-
// };
|
|
6049
|
-
// source = {
|
|
6050
|
-
// ...source,
|
|
6051
|
-
// Type: 'GitHub',
|
|
6052
|
-
// Name: this.EditingSourceControlLookup,
|
|
6053
|
-
// DevOpsActionTriggerLookups: [devOpsActionLookup],
|
|
6054
|
-
// Organization:
|
|
6055
|
-
// this.OrganizationFormControl.value,
|
|
6056
|
-
// Repository: this.RepositoryFormControl.value,
|
|
6057
|
-
// };
|
|
6058
|
-
// const scLookup = `github://${source.Organization}/${source.Repository}`;
|
|
6059
|
-
// saveEnvReq.Environment.Sources[scLookup] = source;
|
|
6060
|
-
// this.eacSvc.SaveEnvironmentAsCode(saveEnvReq);
|
|
6061
|
-
// }
|
|
6062
6131
|
// Helpers
|
|
6063
6132
|
DevopsSourceControlFormComponent.prototype.addBranchOption = function (value) {
|
|
6064
6133
|
value = (value || '').trim();
|
|
@@ -6224,6 +6293,7 @@
|
|
|
6224
6293
|
DevopsSourceControlFormComponent.propDecorators = {
|
|
6225
6294
|
EditingSourceControlLookup: [{ type: i0.Input, args: ['editing-source-control-lookup',] }],
|
|
6226
6295
|
Environment: [{ type: i0.Input, args: ['environment',] }],
|
|
6296
|
+
EnvironmentLookup: [{ type: i0.Input, args: ['environment-lookup',] }],
|
|
6227
6297
|
BranchesInput: [{ type: i0.ViewChild, args: ['branches',] }]
|
|
6228
6298
|
};
|
|
6229
6299
|
|
|
@@ -6239,7 +6309,7 @@
|
|
|
6239
6309
|
SourceControlDialogComponent.decorators = [
|
|
6240
6310
|
{ type: i0.Component, args: [{
|
|
6241
6311
|
selector: 'lcu-source-control-dialog',
|
|
6242
|
-
template: "\n<div fxLayoutAlign=\"center center\">\n <lcu-devops-source-control-form\n [environment]=\"data.environment\"\n [editing-source-control-lookup]=\"data.scLookup\">\n </lcu-devops-source-control-form>\n</div>",
|
|
6312
|
+
template: "\n<div fxLayoutAlign=\"center center\">\n <lcu-devops-source-control-form\n [environment]=\"data.environment\"\n [environment-lookup]=\"data.environmentLookup\"\n [editing-source-control-lookup]=\"data.scLookup\">\n </lcu-devops-source-control-form>\n</div>",
|
|
6243
6313
|
styles: [""]
|
|
6244
6314
|
},] }
|
|
6245
6315
|
];
|
|
@@ -6269,6 +6339,77 @@
|
|
|
6269
6339
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
|
|
6270
6340
|
]; };
|
|
6271
6341
|
|
|
6342
|
+
var EditApplicationFormComponent = /** @class */ (function () {
|
|
6343
|
+
function EditApplicationFormComponent(formBldr) {
|
|
6344
|
+
this.formBldr = formBldr;
|
|
6345
|
+
this.SaveFormEvent = new i0.EventEmitter;
|
|
6346
|
+
}
|
|
6347
|
+
Object.defineProperty(EditApplicationFormComponent.prototype, "DescriptionFormControl", {
|
|
6348
|
+
get: function () {
|
|
6349
|
+
var _a;
|
|
6350
|
+
return (_a = this.ApplicationFormGroup) === null || _a === void 0 ? void 0 : _a.controls.description;
|
|
6351
|
+
},
|
|
6352
|
+
enumerable: false,
|
|
6353
|
+
configurable: true
|
|
6354
|
+
});
|
|
6355
|
+
Object.defineProperty(EditApplicationFormComponent.prototype, "NameFormControl", {
|
|
6356
|
+
get: function () {
|
|
6357
|
+
var _a;
|
|
6358
|
+
return (_a = this.ApplicationFormGroup) === null || _a === void 0 ? void 0 : _a.controls.name;
|
|
6359
|
+
},
|
|
6360
|
+
enumerable: false,
|
|
6361
|
+
configurable: true
|
|
6362
|
+
});
|
|
6363
|
+
Object.defineProperty(EditApplicationFormComponent.prototype, "RouteFormControl", {
|
|
6364
|
+
get: function () {
|
|
6365
|
+
var _a;
|
|
6366
|
+
return (_a = this.ApplicationFormGroup) === null || _a === void 0 ? void 0 : _a.controls.route;
|
|
6367
|
+
},
|
|
6368
|
+
enumerable: false,
|
|
6369
|
+
configurable: true
|
|
6370
|
+
});
|
|
6371
|
+
EditApplicationFormComponent.prototype.ngOnInit = function () {
|
|
6372
|
+
this.setupApplicationForm();
|
|
6373
|
+
};
|
|
6374
|
+
EditApplicationFormComponent.prototype.SubmitApplicationControl = function () {
|
|
6375
|
+
console.log("application form: ", this.ApplicationFormGroup.value);
|
|
6376
|
+
this.SaveFormEvent.emit(this.ApplicationFormGroup.value);
|
|
6377
|
+
};
|
|
6378
|
+
//HELPERS
|
|
6379
|
+
EditApplicationFormComponent.prototype.setupApplicationForm = function () {
|
|
6380
|
+
var _a, _b, _c;
|
|
6381
|
+
if (this.EditingApplication != null) {
|
|
6382
|
+
this.ApplicationFormGroup = this.formBldr.group({
|
|
6383
|
+
name: [(_a = this.EditingApplication.Application) === null || _a === void 0 ? void 0 : _a.Name, forms.Validators.required],
|
|
6384
|
+
description: [
|
|
6385
|
+
(_b = this.EditingApplication.Application) === null || _b === void 0 ? void 0 : _b.Description,
|
|
6386
|
+
forms.Validators.required,
|
|
6387
|
+
],
|
|
6388
|
+
route: [
|
|
6389
|
+
((_c = this.EditingApplication.LookupConfig) === null || _c === void 0 ? void 0 : _c.PathRegex.replace('.*', '')) ||
|
|
6390
|
+
'/',
|
|
6391
|
+
forms.Validators.required,
|
|
6392
|
+
],
|
|
6393
|
+
});
|
|
6394
|
+
}
|
|
6395
|
+
};
|
|
6396
|
+
return EditApplicationFormComponent;
|
|
6397
|
+
}());
|
|
6398
|
+
EditApplicationFormComponent.decorators = [
|
|
6399
|
+
{ type: i0.Component, args: [{
|
|
6400
|
+
selector: 'lcu-edit-application-form',
|
|
6401
|
+
template: "<form class=\"form-card\" [formGroup]=\"ApplicationFormGroup\" (ngSubmit)=\"SubmitApplicationControl()\" >\n <mat-card class=\"spread flow-card\">\n <mat-card-header>\n <mat-card-title>\n <ng-container *ngIf=\"EditingApplication?.Application\">\n Edit Application:\n {{ EditingApplication.Application?.Name }}\n </ng-container>\n\n <ng-container *ngIf=\"!EditingApplication?.Application\">\n Create an Application\n </ng-container>\n </mat-card-title>\n </mat-card-header>\n\n <mat-card-content>\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Name\"\n formControlName=\"name\"\n required\n />\n </mat-form-field>\n\n <mat-form-field class=\"mat-full-width\">\n <textarea\n matInput\n placeholder=\"Description\"\n formControlName=\"description\"\n rows=\"3\"\n required\n ></textarea>\n </mat-form-field>\n\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Route\"\n formControlName=\"route\"\n required\n />\n </mat-form-field>\n </mat-card-content>\n <mat-card-actions fxLayoutAlign=\"center center\">\n\n <button \n mat-raised-button \n type=\"submit\" \n fxFlex=\"100%\" \n color=\"primary\" \n [disabled]=\"!ApplicationFormGroup.valid || !ApplicationFormGroup.dirty\">\n <mat-icon>save</mat-icon>\n Save\n </button>\n \n </mat-card-actions>\n </mat-card>\n</form>\n",
|
|
6402
|
+
styles: [""]
|
|
6403
|
+
},] }
|
|
6404
|
+
];
|
|
6405
|
+
EditApplicationFormComponent.ctorParameters = function () { return [
|
|
6406
|
+
{ type: forms.FormBuilder }
|
|
6407
|
+
]; };
|
|
6408
|
+
EditApplicationFormComponent.propDecorators = {
|
|
6409
|
+
EditingApplication: [{ type: i0.Input, args: ['editing-application',] }],
|
|
6410
|
+
SaveFormEvent: [{ type: i0.Output, args: ['save-form-event',] }]
|
|
6411
|
+
};
|
|
6412
|
+
|
|
6272
6413
|
var ApplicationsFlowModule = /** @class */ (function () {
|
|
6273
6414
|
function ApplicationsFlowModule() {
|
|
6274
6415
|
}
|
|
@@ -6328,7 +6469,8 @@
|
|
|
6328
6469
|
BuildPipelineFormComponent,
|
|
6329
6470
|
DevopsSourceControlFormComponent,
|
|
6330
6471
|
SourceControlDialogComponent,
|
|
6331
|
-
BuildPipelineDialogComponent
|
|
6472
|
+
BuildPipelineDialogComponent,
|
|
6473
|
+
EditApplicationFormComponent
|
|
6332
6474
|
],
|
|
6333
6475
|
imports: [
|
|
6334
6476
|
i2.FathymSharedModule,
|
|
@@ -6380,7 +6522,8 @@
|
|
|
6380
6522
|
BuildPipelineFormComponent,
|
|
6381
6523
|
DevopsSourceControlFormComponent,
|
|
6382
6524
|
SourceControlDialogComponent,
|
|
6383
|
-
BuildPipelineDialogComponent
|
|
6525
|
+
BuildPipelineDialogComponent,
|
|
6526
|
+
EditApplicationFormComponent
|
|
6384
6527
|
],
|
|
6385
6528
|
entryComponents: [
|
|
6386
6529
|
ApplicationsFlowProjectsElementComponent,
|
|
@@ -6419,7 +6562,8 @@
|
|
|
6419
6562
|
BuildPipelineFormComponent,
|
|
6420
6563
|
DevopsSourceControlFormComponent,
|
|
6421
6564
|
SourceControlDialogComponent,
|
|
6422
|
-
BuildPipelineDialogComponent
|
|
6565
|
+
BuildPipelineDialogComponent,
|
|
6566
|
+
EditApplicationFormComponent
|
|
6423
6567
|
],
|
|
6424
6568
|
},] }
|
|
6425
6569
|
];
|
|
@@ -6515,6 +6659,7 @@
|
|
|
6515
6659
|
exports.ɵbc = DevopsSourceControlFormComponent;
|
|
6516
6660
|
exports.ɵbd = SourceControlDialogComponent;
|
|
6517
6661
|
exports.ɵbe = BuildPipelineDialogComponent;
|
|
6662
|
+
exports.ɵbf = EditApplicationFormComponent;
|
|
6518
6663
|
exports.ɵc = ProjectTabsComponent;
|
|
6519
6664
|
exports.ɵd = GeneralComponent;
|
|
6520
6665
|
exports.ɵe = DomainsComponent;
|