@lowcodeunit/applications-flow-common 1.36.195-integration → 1.36.196-social-ui-performance-issues

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.
Files changed (58) hide show
  1. package/esm2020/lib/controls/build-pipeline-form/build-pipeline-form.component.mjs +4 -4
  2. package/esm2020/lib/controls/connected-source/connected-source.component.mjs +4 -4
  3. package/esm2020/lib/controls/devops-source-control-form/devops-source-control-form.component.mjs +4 -4
  4. package/esm2020/lib/controls/dfs-modifiers-form/dfs-modifiers-form.component.mjs +7 -4
  5. package/esm2020/lib/controls/edit-application-form/edit-application-form.component.mjs +4 -4
  6. package/esm2020/lib/controls/edit-project-form/edit-project-form.component.mjs +4 -4
  7. package/esm2020/lib/controls/emulated-devices-toggle/emulated-devices-toggle.component.mjs +4 -4
  8. package/esm2020/lib/controls/processor-details-form/processor-details-form.component.mjs +7 -4
  9. package/esm2020/lib/controls/security-toggle/security-toggle.component.mjs +4 -4
  10. package/esm2020/lib/controls/state-config-form/state-config-form.component.mjs +7 -4
  11. package/esm2020/lib/dialogs/build-pipeline-dialog/build-pipeline-dialog.component.mjs +5 -4
  12. package/esm2020/lib/dialogs/dfs-modifiers-dialog/dfs-modifiers-dialog.component.mjs +7 -4
  13. package/esm2020/lib/dialogs/edit-application-dialog/edit-application-dialog.component.mjs +1 -4
  14. package/esm2020/lib/dialogs/edit-project-dialog/edit-project-dialog.component.mjs +5 -4
  15. package/esm2020/lib/dialogs/feed-header-dialog/feed-header-dialog.component.mjs +7 -4
  16. package/esm2020/lib/dialogs/new-application-dialog/new-application-dialog.component.mjs +4 -4
  17. package/esm2020/lib/dialogs/processor-details-dialog/processor-details-dialog.component.mjs +9 -5
  18. package/esm2020/lib/dialogs/source-control-dialog/source-control-dialog.component.mjs +5 -4
  19. package/esm2020/lib/dialogs/state-config-dialog/state-config-dialog.component.mjs +9 -5
  20. package/esm2020/lib/elements/breadcrumb/breadcrumb.component.mjs +4 -4
  21. package/esm2020/lib/elements/feed-header/feed-header.component.mjs +5 -4
  22. package/esm2020/lib/elements/main-feed-card/main-feed-card.component.mjs +7 -4
  23. package/esm2020/lib/elements/project-info-card/project-info-card.component.mjs +4 -4
  24. package/esm2020/lib/elements/projects/projects.component.mjs +7 -4
  25. package/esm2020/lib/elements/slotted-card/slotted-card.component.mjs +5 -4
  26. package/esm2020/lib/services/eac.service.mjs +46 -45
  27. package/esm2020/lib/services/project.service.mjs +3 -2
  28. package/fesm2015/lowcodeunit-applications-flow-common.mjs +157 -123
  29. package/fesm2015/lowcodeunit-applications-flow-common.mjs.map +1 -1
  30. package/fesm2020/lowcodeunit-applications-flow-common.mjs +155 -123
  31. package/fesm2020/lowcodeunit-applications-flow-common.mjs.map +1 -1
  32. package/lib/controls/build-pipeline-form/build-pipeline-form.component.d.ts +1 -1
  33. package/lib/controls/connected-source/connected-source.component.d.ts +1 -1
  34. package/lib/controls/devops-source-control-form/devops-source-control-form.component.d.ts +1 -1
  35. package/lib/controls/dfs-modifiers-form/dfs-modifiers-form.component.d.ts +1 -1
  36. package/lib/controls/edit-application-form/edit-application-form.component.d.ts +1 -1
  37. package/lib/controls/edit-project-form/edit-project-form.component.d.ts +1 -1
  38. package/lib/controls/emulated-devices-toggle/emulated-devices-toggle.component.d.ts +1 -1
  39. package/lib/controls/processor-details-form/processor-details-form.component.d.ts +1 -1
  40. package/lib/controls/security-toggle/security-toggle.component.d.ts +1 -1
  41. package/lib/controls/state-config-form/state-config-form.component.d.ts +1 -1
  42. package/lib/dialogs/build-pipeline-dialog/build-pipeline-dialog.component.d.ts +1 -1
  43. package/lib/dialogs/dfs-modifiers-dialog/dfs-modifiers-dialog.component.d.ts +1 -1
  44. package/lib/dialogs/edit-application-dialog/edit-application-dialog.component.d.ts +1 -1
  45. package/lib/dialogs/edit-project-dialog/edit-project-dialog.component.d.ts +1 -1
  46. package/lib/dialogs/feed-header-dialog/feed-header-dialog.component.d.ts +1 -1
  47. package/lib/dialogs/new-application-dialog/new-application-dialog.component.d.ts +1 -1
  48. package/lib/dialogs/processor-details-dialog/processor-details-dialog.component.d.ts +1 -1
  49. package/lib/dialogs/source-control-dialog/source-control-dialog.component.d.ts +1 -1
  50. package/lib/dialogs/state-config-dialog/state-config-dialog.component.d.ts +1 -1
  51. package/lib/elements/breadcrumb/breadcrumb.component.d.ts +1 -1
  52. package/lib/elements/feed-header/feed-header.component.d.ts +1 -1
  53. package/lib/elements/main-feed-card/main-feed-card.component.d.ts +1 -1
  54. package/lib/elements/project-info-card/project-info-card.component.d.ts +1 -1
  55. package/lib/elements/projects/projects.component.d.ts +1 -1
  56. package/lib/elements/slotted-card/slotted-card.component.d.ts +1 -1
  57. package/lib/services/eac.service.d.ts +2 -2
  58. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Injectable, Component, Input, EventEmitter, Output, ViewChild, ViewContainerRef, Inject, NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
3
- import { Subject, Observable } from 'rxjs';
3
+ import { Subject, BehaviorSubject, Observable } from 'rxjs';
4
4
  import { __awaiter } from 'tslib';
5
5
  import * as i1 from '@angular/common/http';
6
6
  import { HttpClient } from '@angular/common/http';
@@ -461,9 +461,11 @@ class ProjectService {
461
461
  }
462
462
  HasValidConnection(state, forceEnsureUser = false) {
463
463
  return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
464
+ console.log('State has valid conn: ', state);
464
465
  state.Loading = true;
465
466
  this.appsFlowSvc.HasValidConnection().subscribe((response) => __awaiter(this, void 0, void 0, function* () {
466
- state.GitHub.HasConnection = response.Status.Code === 0;
467
+ var _a;
468
+ state.GitHub.HasConnection = ((_a = response === null || response === void 0 ? void 0 : response.Status) === null || _a === void 0 ? void 0 : _a.Code) === 0;
467
469
  if (state.GitHub.HasConnection || forceEnsureUser) {
468
470
  }
469
471
  else {
@@ -866,7 +868,7 @@ class EaCService {
866
868
  constructor(projectService, http) {
867
869
  this.projectService = projectService;
868
870
  this.http = http;
869
- this.State = new ApplicationsFlowState();
871
+ this.State = new BehaviorSubject(new ApplicationsFlowState());
870
872
  }
871
873
  // Properties
872
874
  get EditingProjectLookup() {
@@ -880,16 +882,17 @@ class EaCService {
880
882
  return this.http.get(feedItem.RefreshLink);
881
883
  }
882
884
  DeleteApplication(appLookup, appName) {
885
+ var _a, _b, _c;
883
886
  return __awaiter(this, void 0, void 0, function* () {
884
887
  if (confirm(`Are you sure you want to delete application '${appName}'?`)) {
885
888
  const eac = {
886
- EnterpriseLookup: this.State.EaC.EnterpriseLookup,
889
+ EnterpriseLookup: (_c = (_b = (_a = this.State) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.EaC) === null || _c === void 0 ? void 0 : _c.EnterpriseLookup,
887
890
  Applications: {},
888
891
  };
889
892
  eac.Applications[appLookup] = {
890
893
  Application: {},
891
894
  };
892
- return yield this.projectService.EnterpriseAsCodeRemovals(this.State, eac);
895
+ return yield this.projectService.EnterpriseAsCodeRemovals(this.State.value, eac);
893
896
  }
894
897
  });
895
898
  }
@@ -897,14 +900,14 @@ class EaCService {
897
900
  return __awaiter(this, void 0, void 0, function* () {
898
901
  if (confirm(`Are you sure you want to delete Build Pipeline '${doaName}'?`)) {
899
902
  const eac = {
900
- EnterpriseLookup: this.State.EaC.EnterpriseLookup,
903
+ EnterpriseLookup: this.State.value.EaC.EnterpriseLookup,
901
904
  Environments: {},
902
905
  };
903
- eac.Environments[this.State.EaC.Enterprise.PrimaryEnvironment] = {
906
+ eac.Environments[this.State.value.EaC.Enterprise.PrimaryEnvironment] = {
904
907
  DevOpsActions: {},
905
908
  };
906
- eac.Environments[this.State.EaC.Enterprise.PrimaryEnvironment].DevOpsActions[doaLookup] = {};
907
- return yield this.projectService.EnterpriseAsCodeRemovals(this.State, eac);
909
+ eac.Environments[this.State.value.EaC.Enterprise.PrimaryEnvironment].DevOpsActions[doaLookup] = {};
910
+ return yield this.projectService.EnterpriseAsCodeRemovals(this.State.value, eac);
908
911
  }
909
912
  });
910
913
  }
@@ -912,11 +915,11 @@ class EaCService {
912
915
  return __awaiter(this, void 0, void 0, function* () {
913
916
  if (confirm(`Are you sure you want to delete Modifier '${modifierName}'?`)) {
914
917
  const eac = {
915
- EnterpriseLookup: this.State.EaC.EnterpriseLookup,
918
+ EnterpriseLookup: this.State.value.EaC.EnterpriseLookup,
916
919
  Modifiers: {},
917
920
  };
918
921
  eac.Modifiers[modifierLookup] = {};
919
- return yield this.projectService.EnterpriseAsCodeRemovals(this.State, eac);
922
+ return yield this.projectService.EnterpriseAsCodeRemovals(this.State.value, eac);
920
923
  }
921
924
  });
922
925
  }
@@ -924,13 +927,13 @@ class EaCService {
924
927
  return __awaiter(this, void 0, void 0, function* () {
925
928
  if (confirm(`Are you sure you want to delete Project '${projectName}'?`)) {
926
929
  const eac = {
927
- EnterpriseLookup: this.State.EaC.EnterpriseLookup,
930
+ EnterpriseLookup: this.State.value.EaC.EnterpriseLookup,
928
931
  Projects: {},
929
932
  };
930
933
  eac.Projects[projectLookup] = {
931
934
  Project: {},
932
935
  };
933
- return yield this.projectService.EnterpriseAsCodeRemovals(this.State, eac);
936
+ return yield this.projectService.EnterpriseAsCodeRemovals(this.State.value, eac);
934
937
  }
935
938
  });
936
939
  }
@@ -938,14 +941,14 @@ class EaCService {
938
941
  return __awaiter(this, void 0, void 0, function* () {
939
942
  if (confirm(`Are you sure you want to delete Source Control '${srcName}'?`)) {
940
943
  const eac = {
941
- EnterpriseLookup: this.State.EaC.EnterpriseLookup,
944
+ EnterpriseLookup: this.State.value.EaC.EnterpriseLookup,
942
945
  Environments: {},
943
946
  };
944
- eac.Environments[this.State.EaC.Enterprise.PrimaryEnvironment] = {
947
+ eac.Environments[this.State.value.EaC.Enterprise.PrimaryEnvironment] = {
945
948
  Sources: {},
946
949
  };
947
- eac.Environments[this.State.EaC.Enterprise.PrimaryEnvironment].Sources[srcLookup] = {};
948
- return yield this.projectService.EnterpriseAsCodeRemovals(this.State, eac);
950
+ eac.Environments[this.State.value.EaC.Enterprise.PrimaryEnvironment].Sources[srcLookup] = {};
951
+ return yield this.projectService.EnterpriseAsCodeRemovals(this.State.value, eac);
949
952
  }
950
953
  });
951
954
  }
@@ -954,50 +957,50 @@ class EaCService {
954
957
  // });
955
958
  EnsureUserEnterprise() {
956
959
  return __awaiter(this, void 0, void 0, function* () {
957
- yield this.projectService.EnsureUserEnterprise(this.State);
960
+ yield this.projectService.EnsureUserEnterprise(this.State.value);
958
961
  });
959
962
  }
960
963
  EnterpriseAsCodeRemovals(eac) {
961
964
  return __awaiter(this, void 0, void 0, function* () {
962
- return this.projectService.EnterpriseAsCodeRemovals(this.State, eac);
965
+ return this.projectService.EnterpriseAsCodeRemovals(this.State.value, eac);
963
966
  });
964
967
  }
965
968
  GetActiveEnterprise() {
966
969
  return __awaiter(this, void 0, void 0, function* () {
967
- yield this.projectService.GetActiveEnterprise(this.State);
970
+ yield this.projectService.GetActiveEnterprise(this.State.value);
968
971
  });
969
972
  }
970
973
  LoadUserFeed(page, pageSize, forCheck = false) {
971
974
  return __awaiter(this, void 0, void 0, function* () {
972
- yield this.projectService.LoadUserFeed(page, pageSize, forCheck, this.State);
975
+ yield this.projectService.LoadUserFeed(page, pageSize, forCheck, this.State.value);
973
976
  });
974
977
  }
975
978
  GenerateRoutedApplications(applications) {
976
- return this.projectService.GenerateRoutedApplications(applications, this.State);
979
+ return this.projectService.GenerateRoutedApplications(applications, this.State.value);
977
980
  }
978
981
  HasValidConnection() {
979
982
  return __awaiter(this, void 0, void 0, function* () {
980
- yield this.projectService.HasValidConnection(this.State);
983
+ yield this.projectService.HasValidConnection(this.State.value);
981
984
  });
982
985
  }
983
986
  ListEnterprises() {
984
987
  return __awaiter(this, void 0, void 0, function* () {
985
- yield this.projectService.ListEnterprises(this.State);
988
+ yield this.projectService.ListEnterprises(this.State.value);
986
989
  });
987
990
  }
988
991
  LoadEnterpriseAsCode() {
989
992
  return __awaiter(this, void 0, void 0, function* () {
990
- yield this.projectService.LoadEnterpriseAsCode(this.State);
993
+ yield this.projectService.LoadEnterpriseAsCode(this.State.value);
991
994
  });
992
995
  }
993
996
  ReloadFeed() {
994
- if (this.State.FeedCheck) {
995
- this.State.Feed = this.State.FeedCheck.Items;
996
- this.State.FeedActions = this.State.FeedCheck.Actions;
997
- this.State.FeedSourceControlLookups =
998
- this.State.FeedCheck.SourceControlLookups;
997
+ if (this.State.value.FeedCheck) {
998
+ this.State.value.Feed = this.State.value.FeedCheck.Items;
999
+ this.State.value.FeedActions = this.State.value.FeedCheck.Actions;
1000
+ this.State.value.FeedSourceControlLookups =
1001
+ this.State.value.FeedCheck.SourceControlLookups;
999
1002
  }
1000
- this.State.FeedCheck = null;
1003
+ this.State.value.FeedCheck = null;
1001
1004
  }
1002
1005
  SaveApplicationAsCode(req) {
1003
1006
  return __awaiter(this, void 0, void 0, function* () {
@@ -1011,7 +1014,7 @@ class EaCService {
1011
1014
  }
1012
1015
  SaveEnterpriseAsCode(eac) {
1013
1016
  return __awaiter(this, void 0, void 0, function* () {
1014
- return yield this.projectService.SaveEnterpriseAsCode(this.State, eac);
1017
+ return yield this.projectService.SaveEnterpriseAsCode(this.State.value, eac);
1015
1018
  });
1016
1019
  }
1017
1020
  SaveEnvironmentAsCode(req) {
@@ -1026,7 +1029,7 @@ class EaCService {
1026
1029
  }
1027
1030
  SetActiveEnterprise(entLookup) {
1028
1031
  return __awaiter(this, void 0, void 0, function* () {
1029
- this.projectService.SetActiveEnterprise(this.State, entLookup);
1032
+ this.projectService.SetActiveEnterprise(this.State.value, entLookup);
1030
1033
  });
1031
1034
  }
1032
1035
  SetCreatingProject(creatingProject) {
@@ -1036,18 +1039,18 @@ class EaCService {
1036
1039
  }
1037
1040
  SetEditProjectSettings(projectLookup) {
1038
1041
  return __awaiter(this, void 0, void 0, function* () {
1039
- yield this.projectService.SetEditProjectSettings(this.State, projectLookup);
1042
+ yield this.projectService.SetEditProjectSettings(this.State.value, projectLookup);
1040
1043
  });
1041
1044
  }
1042
1045
  SubmitFeedEntry(entry) {
1043
1046
  return __awaiter(this, void 0, void 0, function* () {
1044
- return yield this.projectService.SubmitFeedEntry(this.State, entry);
1047
+ return yield this.projectService.SubmitFeedEntry(this.State.value, entry);
1045
1048
  });
1046
1049
  }
1047
1050
  UnpackLowCodeUnit(req) {
1048
1051
  return __awaiter(this, void 0, void 0, function* () {
1049
1052
  if (confirm(`Are you sure you want to unpack application '${req.ApplicationName}' with version '${req.Version}'?`)) {
1050
- yield this.projectService.UnpackLowCodeUnit(this.State, req);
1053
+ yield this.projectService.UnpackLowCodeUnit(this.State.value, req);
1051
1054
  }
1052
1055
  });
1053
1056
  }
@@ -1055,7 +1058,7 @@ class EaCService {
1055
1058
  handleSaveApplication(req) {
1056
1059
  return __awaiter(this, void 0, void 0, function* () {
1057
1060
  const saveEaC = {
1058
- EnterpriseLookup: this.State.EaC.EnterpriseLookup,
1061
+ EnterpriseLookup: this.State.value.EaC.EnterpriseLookup,
1059
1062
  Applications: {},
1060
1063
  Projects: {},
1061
1064
  };
@@ -1070,13 +1073,13 @@ class EaCService {
1070
1073
  if (req.Application) {
1071
1074
  saveEaC.Applications[req.ApplicationLookup] = req.Application;
1072
1075
  }
1073
- return yield this.projectService.SaveEnterpriseAsCode(this.State, saveEaC);
1076
+ return yield this.projectService.SaveEnterpriseAsCode(this.State.value, saveEaC);
1074
1077
  });
1075
1078
  }
1076
1079
  handleSaveDFSModifier(req) {
1077
1080
  return __awaiter(this, void 0, void 0, function* () {
1078
1081
  const saveEaC = {
1079
- EnterpriseLookup: this.State.EaC.EnterpriseLookup,
1082
+ EnterpriseLookup: this.State.value.EaC.EnterpriseLookup,
1080
1083
  Modifiers: {},
1081
1084
  Projects: {},
1082
1085
  Applications: {},
@@ -1098,14 +1101,14 @@ class EaCService {
1098
1101
  ModifierLookups: req.ModifierLookups,
1099
1102
  };
1100
1103
  }
1101
- yield this.projectService.SaveEnterpriseAsCode(this.State, saveEaC);
1104
+ yield this.projectService.SaveEnterpriseAsCode(this.State.value, saveEaC);
1102
1105
  });
1103
1106
  }
1104
1107
  handleSaveEnvironment(req) {
1105
1108
  var _a, _b;
1106
1109
  return __awaiter(this, void 0, void 0, function* () {
1107
1110
  const saveEaC = {
1108
- EnterpriseLookup: (_b = (_a = this.State) === null || _a === void 0 ? void 0 : _a.EaC) === null || _b === void 0 ? void 0 : _b.EnterpriseLookup,
1111
+ EnterpriseLookup: (_b = (_a = this.State) === null || _a === void 0 ? void 0 : _a.value.EaC) === null || _b === void 0 ? void 0 : _b.EnterpriseLookup,
1109
1112
  DataTokens: {},
1110
1113
  Environments: {},
1111
1114
  };
@@ -1115,7 +1118,7 @@ class EaCService {
1115
1118
  if (req.EnterpriseDataTokens) {
1116
1119
  saveEaC.DataTokens = req.EnterpriseDataTokens;
1117
1120
  }
1118
- return yield this.projectService.SaveEnterpriseAsCode(this.State, saveEaC);
1121
+ return yield this.projectService.SaveEnterpriseAsCode(this.State.value, saveEaC);
1119
1122
  });
1120
1123
  }
1121
1124
  handleSaveProject(projectLookup, project) {
@@ -1123,17 +1126,17 @@ class EaCService {
1123
1126
  return __awaiter(this, void 0, void 0, function* () {
1124
1127
  const projHosts = {};
1125
1128
  (_a = project === null || project === void 0 ? void 0 : project.Hosts) === null || _a === void 0 ? void 0 : _a.forEach((host) => {
1126
- projHosts[host] = this.State.EaC.Hosts[host];
1129
+ projHosts[host] = this.State.value.EaC.Hosts[host];
1127
1130
  });
1128
1131
  const saveEaC = {
1129
- EnterpriseLookup: this.State.EaC.EnterpriseLookup,
1130
- Enterprise: Object.assign(Object.assign({}, this.State.EaC.Enterprise), { PrimaryHost: project.Hosts[0] }),
1132
+ EnterpriseLookup: this.State.value.EaC.EnterpriseLookup,
1133
+ Enterprise: Object.assign(Object.assign({}, this.State.value.EaC.Enterprise), { PrimaryHost: project.Hosts[0] }),
1131
1134
  Hosts: projHosts,
1132
1135
  // Providers: this.State.EaC.Providers, // TODO: Remove after all providers ADB2C's have been upgraded
1133
1136
  Projects: {},
1134
1137
  };
1135
1138
  saveEaC.Projects[projectLookup] = project;
1136
- let status = yield this.projectService.SaveEnterpriseAsCode(this.State, saveEaC);
1139
+ let status = yield this.projectService.SaveEnterpriseAsCode(this.State.value, saveEaC);
1137
1140
  this.SetEditProjectSettings(projectLookup);
1138
1141
  return status;
1139
1142
  });
@@ -3111,6 +3114,9 @@ class ApplicationsFlowProjectsContext extends LCUElementContext {
3111
3114
  }
3112
3115
  const SELECTOR_APPLICATIONS_FLOW_PROJECTS_ELEMENT = 'applications-flow-projects-element';
3113
3116
  class ApplicationsFlowProjectsElementComponent extends LcuElementComponent {
3117
+ // public get State(): ApplicationsFlowState {
3118
+ // return this.eacSvc.State;
3119
+ // }
3114
3120
  // Constructors
3115
3121
  constructor(injector, appsFlowSvc, eacSvc) {
3116
3122
  super(injector);
@@ -3145,13 +3151,13 @@ class ApplicationsFlowProjectsElementComponent extends LcuElementComponent {
3145
3151
  var _a, _b;
3146
3152
  return Object.keys(((_b = (_a = this.State) === null || _a === void 0 ? void 0 : _a.EaC) === null || _b === void 0 ? void 0 : _b.Projects) || {});
3147
3153
  }
3148
- get State() {
3149
- return this.eacSvc.State;
3150
- }
3151
3154
  // Life Cycle
3152
3155
  ngOnDestroy() { }
3153
3156
  ngOnInit() {
3154
3157
  super.ngOnInit();
3158
+ this.eacSvc.State.subscribe((state) => {
3159
+ this.State = state;
3160
+ });
3155
3161
  this.handleStateChange().then((eac) => { });
3156
3162
  // this.setupProjectMonitor();
3157
3163
  }
@@ -3780,10 +3786,11 @@ class SlottedCardComponent {
3780
3786
  this.MainIcon = 'add';
3781
3787
  this.ShowMainIcon = true;
3782
3788
  }
3783
- get State() {
3784
- return this.eacSvc.State;
3789
+ ngOnInit() {
3790
+ this.eacSvc.State.subscribe((state) => {
3791
+ this.State = state;
3792
+ });
3785
3793
  }
3786
- ngOnInit() { }
3787
3794
  MainActionClickEvent() {
3788
3795
  this.MainActionClicked.emit({});
3789
3796
  }
@@ -3830,13 +3837,13 @@ class ProjectInfoCardComponent {
3830
3837
  this.RightClickEvent = new EventEmitter();
3831
3838
  this.SkeletonEffect = 'wave';
3832
3839
  }
3833
- get State() {
3834
- return this.eacSvc.State;
3835
- }
3836
3840
  ngOnInit() {
3837
3841
  // console.log("loading = ", this.Loading)
3838
3842
  // console.log("is shareable: ", this.IsShareable);
3839
3843
  // console.log("is editable: ", this.IsEditable);
3844
+ this.eacSvc.State.subscribe((state) => {
3845
+ this.State = state;
3846
+ });
3840
3847
  }
3841
3848
  LeftIconClicked() {
3842
3849
  this.LeftClickEvent.emit({});
@@ -4022,15 +4029,15 @@ class DevopsSourceControlFormComponent {
4022
4029
  get RepositoryFormControl() {
4023
4030
  return this.DevOpsSourceControlFormGroup.get(this.SourceControlRoot + 'repository');
4024
4031
  }
4025
- get State() {
4026
- return this.eacSvc.State;
4027
- }
4028
4032
  // Life Cycle
4029
4033
  ngAfterViewInit() { }
4030
4034
  ngOnDestroy() {
4031
4035
  this.destroyFormControls();
4032
4036
  }
4033
4037
  ngOnInit() {
4038
+ this.eacSvc.State.subscribe((state) => {
4039
+ this.State = state;
4040
+ });
4034
4041
  console.log('source control lookup', this.EditingSourceControlLookup);
4035
4042
  if (this.EditingSourceControlLookup === null) {
4036
4043
  this.CreateNewSourceControl();
@@ -4328,10 +4335,11 @@ class SourceControlDialogComponent {
4328
4335
  get HasConnection() {
4329
4336
  return this.State.GitHub.HasConnection;
4330
4337
  }
4331
- get State() {
4332
- return this.eacSvc.State;
4338
+ ngOnInit() {
4339
+ this.eacSvc.State.subscribe((state) => {
4340
+ this.State = state;
4341
+ });
4333
4342
  }
4334
- ngOnInit() { }
4335
4343
  CloseDialog() {
4336
4344
  this.dialogRef.close();
4337
4345
  }
@@ -4473,6 +4481,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImpor
4473
4481
  }] } });
4474
4482
 
4475
4483
  class MainFeedCardComponent {
4484
+ // public get State(): ApplicationsFlowState {
4485
+ // return this.eacSvc.State;
4486
+ // }
4476
4487
  constructor(eacSvc, dialog, sanitizer, formBuilder) {
4477
4488
  this.eacSvc = eacSvc;
4478
4489
  this.dialog = dialog;
@@ -4526,9 +4537,6 @@ class MainFeedCardComponent {
4526
4537
  return 'gray';
4527
4538
  }
4528
4539
  }
4529
- get State() {
4530
- return this.eacSvc.State;
4531
- }
4532
4540
  // Life Cycle
4533
4541
  ngOnDestroy() {
4534
4542
  if (this.checkTimeout) {
@@ -4536,6 +4544,9 @@ class MainFeedCardComponent {
4536
4544
  }
4537
4545
  }
4538
4546
  ngOnInit() {
4547
+ this.eacSvc.State.subscribe((state) => {
4548
+ this.State = state;
4549
+ });
4539
4550
  this.handleRefresh();
4540
4551
  this.SanitizeVideos();
4541
4552
  }
@@ -4715,10 +4726,10 @@ class SecurityToggleComponent {
4715
4726
  var _a;
4716
4727
  return (_a = this.SecurityFormGroup) === null || _a === void 0 ? void 0 : _a.controls.isTriggerSignIn;
4717
4728
  }
4718
- get State() {
4719
- return this.eacSvc.State;
4720
- }
4721
4729
  ngOnInit() {
4730
+ this.eacSvc.State.subscribe((state) => {
4731
+ this.State = state;
4732
+ });
4722
4733
  this.setupSecurityFormGroup();
4723
4734
  }
4724
4735
  SecuritySubmit() {
@@ -4831,9 +4842,9 @@ class ProcessorDetailsFormComponent {
4831
4842
  var _a;
4832
4843
  return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.security;
4833
4844
  }
4834
- get State() {
4835
- return this.eacSvc.State;
4836
- }
4845
+ // public get State(): ApplicationsFlowState {
4846
+ // return this.eacSvc.State;
4847
+ // }
4837
4848
  get SourceControls() {
4838
4849
  var _a;
4839
4850
  return ((_a = this.Environment) === null || _a === void 0 ? void 0 : _a.Sources) || {};
@@ -4870,6 +4881,9 @@ class ProcessorDetailsFormComponent {
4870
4881
  return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.zipFile;
4871
4882
  }
4872
4883
  ngOnInit() {
4884
+ this.eacSvc.State.subscribe((state) => {
4885
+ this.State = state;
4886
+ });
4873
4887
  if (!this.EditingApplication) {
4874
4888
  this.CreateNewApplication();
4875
4889
  }
@@ -5316,10 +5330,10 @@ class BuildPipelineFormComponent {
5316
5330
  get SourceControls() {
5317
5331
  return this.Environment.Sources || {};
5318
5332
  }
5319
- get State() {
5320
- return this.eacSvc.State;
5321
- }
5322
5333
  ngOnInit() {
5334
+ this.eacSvc.State.subscribe((state) => {
5335
+ this.State = state;
5336
+ });
5323
5337
  // console.log('BuildPipeline = ', this.BuildPipeline)
5324
5338
  // this.BuildPipelineFormGroup = this.formBuilder.group({});
5325
5339
  // if (this.BuildPipelineFormGroup != null) {
@@ -5495,10 +5509,11 @@ class BuildPipelineDialogComponent {
5495
5509
  get HasConnection() {
5496
5510
  return this.State.GitHub.HasConnection;
5497
5511
  }
5498
- get State() {
5499
- return this.eacSvc.State;
5512
+ ngOnInit() {
5513
+ this.eacSvc.State.subscribe((state) => {
5514
+ this.State = state;
5515
+ });
5500
5516
  }
5501
- ngOnInit() { }
5502
5517
  CloseDialog() {
5503
5518
  this.dialogRef.close();
5504
5519
  }
@@ -5559,10 +5574,10 @@ class EditApplicationFormComponent {
5559
5574
  var _a;
5560
5575
  return (_a = this.ApplicationFormGroup) === null || _a === void 0 ? void 0 : _a.controls.route;
5561
5576
  }
5562
- get State() {
5563
- return this.eacSvc.State;
5564
- }
5565
5577
  ngOnInit() {
5578
+ this.eacSvc.State.subscribe((state) => {
5579
+ this.State = state;
5580
+ });
5566
5581
  this.setupApplicationForm();
5567
5582
  }
5568
5583
  SubmitApplicationControl() {
@@ -5740,10 +5755,10 @@ class BreadcrumbComponent {
5740
5755
  var _a, _b;
5741
5756
  return ((_b = (_a = this.State) === null || _a === void 0 ? void 0 : _a.EaC) === null || _b === void 0 ? void 0 : _b.Projects[this.ProjectLookup]) || {};
5742
5757
  }
5743
- get State() {
5744
- return this.eacSvc.State;
5745
- }
5746
5758
  ngOnInit() {
5759
+ this.eacSvc.State.subscribe((state) => {
5760
+ this.State = state;
5761
+ });
5747
5762
  this.handleStateChange().then((eac) => { });
5748
5763
  // console.log("state: ", this.State)
5749
5764
  // console.log('selected enterprise: ', this.Enterprise);
@@ -5812,9 +5827,6 @@ class EditApplicationDialogComponent {
5812
5827
  var _a;
5813
5828
  return (_a = this.EditApplicationControl) === null || _a === void 0 ? void 0 : _a.ApplicationFormGroup;
5814
5829
  }
5815
- get State() {
5816
- return this.eacSvc.State;
5817
- }
5818
5830
  ngOnInit() { }
5819
5831
  CloseDialog() {
5820
5832
  this.dialogRef.close();
@@ -5869,10 +5881,10 @@ class NewApplicationDialogComponent {
5869
5881
  get SourceControlLookups() {
5870
5882
  return Object.keys(this.Environment.Sources || {});
5871
5883
  }
5872
- get State() {
5873
- return this.eacSvc.State;
5874
- }
5875
5884
  ngOnInit() {
5885
+ this.eacSvc.State.subscribe((state) => {
5886
+ this.State = state;
5887
+ });
5876
5888
  this.SetupApplication(Guid.CreateRaw());
5877
5889
  }
5878
5890
  CloseDialog() {
@@ -6064,14 +6076,18 @@ class ProcessorDetailsDialogComponent {
6064
6076
  var _a;
6065
6077
  return Object.keys(((_a = this.Environment) === null || _a === void 0 ? void 0 : _a.Sources) || {});
6066
6078
  }
6067
- get State() {
6068
- return this.eacSvc.State;
6069
- }
6079
+ // public get State(): ApplicationsFlowState {
6080
+ // return this.eacSvc.State;
6081
+ // }
6070
6082
  get ProcessorDetailsFormGroup() {
6071
6083
  var _a;
6072
6084
  return (_a = this.ProcessorDetailsFormControls) === null || _a === void 0 ? void 0 : _a.ProcessorDetailsFormGroup;
6073
6085
  }
6074
- ngOnInit() { }
6086
+ ngOnInit() {
6087
+ this.eacSvc.State.subscribe((state) => {
6088
+ this.State = state;
6089
+ });
6090
+ }
6075
6091
  CloseDialog() {
6076
6092
  this.dialogRef.close();
6077
6093
  }
@@ -6150,10 +6166,10 @@ class EmulatedDevicesToggleComponent {
6150
6166
  var _a;
6151
6167
  return (_a = this.EmulatedDevicesFormGroup) === null || _a === void 0 ? void 0 : _a.controls.isTriggerSignIn;
6152
6168
  }
6153
- get State() {
6154
- return this.eacSvc.State;
6155
- }
6156
6169
  ngOnInit() {
6170
+ this.eacSvc.State.subscribe((state) => {
6171
+ this.State = state;
6172
+ });
6157
6173
  this.setupEmulatedDevicesFormGroup();
6158
6174
  }
6159
6175
  EmulatedDevicesSubmit() {
@@ -6362,14 +6378,17 @@ class FeedHeaderDialogComponent {
6362
6378
  get SubtitleFormControl() {
6363
6379
  return this.FeedHeaderFormGroup.controls.subtitle;
6364
6380
  }
6365
- get State() {
6366
- return this.eacSvc.State;
6367
- }
6381
+ // public get State(): ApplicationsFlowState {
6382
+ // return this.eacSvc.State;
6383
+ // }
6368
6384
  get TitleFormControl() {
6369
6385
  var _a;
6370
6386
  return (_a = this.FeedHeaderFormGroup) === null || _a === void 0 ? void 0 : _a.controls.title;
6371
6387
  }
6372
6388
  ngOnInit() {
6389
+ this.eacSvc.State.subscribe((state) => {
6390
+ this.State = state;
6391
+ });
6373
6392
  this.setupFeedHeaderForm();
6374
6393
  }
6375
6394
  CloseDialog() {
@@ -6601,10 +6620,11 @@ class FeedHeaderComponent {
6601
6620
  var _a, _b;
6602
6621
  return (_b = (_a = this.State) === null || _a === void 0 ? void 0 : _a.GitHub) === null || _b === void 0 ? void 0 : _b.HasConnection;
6603
6622
  }
6604
- get State() {
6605
- return this.eacSvc.State;
6623
+ ngOnInit() {
6624
+ this.eacSvc.State.subscribe((state) => {
6625
+ this.State = state;
6626
+ });
6606
6627
  }
6607
- ngOnInit() { }
6608
6628
  ngAfterViewInit() {
6609
6629
  this.addSelectBtn();
6610
6630
  }
@@ -6810,15 +6830,18 @@ class DFSModifiersFormComponent {
6810
6830
  var _a;
6811
6831
  return (_a = this.ModifierFormGroup) === null || _a === void 0 ? void 0 : _a.controls.stateDataToken;
6812
6832
  }
6813
- get State() {
6814
- return this.eacSvc.State;
6815
- }
6833
+ // public get State(): ApplicationsFlowState {
6834
+ // return this.eacSvc.State;
6835
+ // }
6816
6836
  get TypeFormControl() {
6817
6837
  var _a;
6818
6838
  return (_a = this.ModifierFormGroup) === null || _a === void 0 ? void 0 : _a.controls.type;
6819
6839
  }
6820
6840
  // Life Cycle
6821
6841
  ngOnInit() {
6842
+ this.eacSvc.State.subscribe((state) => {
6843
+ this.State = state;
6844
+ });
6822
6845
  if (this.Level === 'enterprise' && !this.EditingModifierLookup) {
6823
6846
  this.CreateNewModifier();
6824
6847
  }
@@ -7008,9 +7031,9 @@ class DFSModifiersDialogComponent {
7008
7031
  this.snackBar = snackBar;
7009
7032
  this.ModifierDialogForm = this.formbldr.group({});
7010
7033
  }
7011
- get State() {
7012
- return this.eacSvc.State;
7013
- }
7034
+ // public get State(): ApplicationsFlowState {
7035
+ // return this.eacSvc.State;
7036
+ // }
7014
7037
  get ProjectLookups() {
7015
7038
  var _a, _b;
7016
7039
  return Object.keys(((_b = (_a = this.State) === null || _a === void 0 ? void 0 : _a.EaC) === null || _b === void 0 ? void 0 : _b.Projects) || {});
@@ -7024,6 +7047,9 @@ class DFSModifiersDialogComponent {
7024
7047
  return (_a = this.DFSModifersFormControls) === null || _a === void 0 ? void 0 : _a.ModifierSelectFormGroup;
7025
7048
  }
7026
7049
  ngOnInit() {
7050
+ this.eacSvc.State.subscribe((state) => {
7051
+ this.State = state;
7052
+ });
7027
7053
  this.determineLevel();
7028
7054
  }
7029
7055
  CloseDialog() {
@@ -7133,9 +7159,9 @@ class StateConfigFormComponent {
7133
7159
  var _a, _b;
7134
7160
  return (_b = (_a = this.State) === null || _a === void 0 ? void 0 : _a.EaC) === null || _b === void 0 ? void 0 : _b.Applications[this.AppLookup];
7135
7161
  }
7136
- get State() {
7137
- return this.eacSvc.State;
7138
- }
7162
+ // public get State(): ApplicationsFlowState {
7163
+ // return this.eacSvc.State;
7164
+ // }
7139
7165
  get StateConfigNameFormControl() {
7140
7166
  var _a;
7141
7167
  return (_a = this.StateConfigForm) === null || _a === void 0 ? void 0 : _a.controls.name;
@@ -7149,6 +7175,9 @@ class StateConfigFormComponent {
7149
7175
  return (_a = this.StateConfigForm) === null || _a === void 0 ? void 0 : _a.controls.value;
7150
7176
  }
7151
7177
  ngOnInit() {
7178
+ this.eacSvc.State.subscribe((state) => {
7179
+ this.State = state;
7180
+ });
7152
7181
  this.buildForm();
7153
7182
  }
7154
7183
  SaveStateConfig() {
@@ -7205,14 +7234,18 @@ class StateConfigDialogComponent {
7205
7234
  var _a, _b;
7206
7235
  return (_b = (_a = this.State) === null || _a === void 0 ? void 0 : _a.EaC) === null || _b === void 0 ? void 0 : _b.Applications[this.data.appLookup];
7207
7236
  }
7208
- get State() {
7209
- return this.eacSvc.State;
7210
- }
7237
+ // public get State(): ApplicationsFlowState {
7238
+ // return this.eacSvc.State;
7239
+ // }
7211
7240
  get StateConfigFormControl() {
7212
7241
  var _a;
7213
7242
  return (_a = this.StateConfigForm) === null || _a === void 0 ? void 0 : _a.StateConfigForm;
7214
7243
  }
7215
- ngOnInit() { }
7244
+ ngOnInit() {
7245
+ this.eacSvc.State.subscribe((state) => {
7246
+ this.State = state;
7247
+ });
7248
+ }
7216
7249
  CloseDialog() {
7217
7250
  this.dialogRef.close();
7218
7251
  }
@@ -7263,10 +7296,10 @@ class EditProjectFormComponent {
7263
7296
  get NameFormControl() {
7264
7297
  return this.ProjectFormGroup.controls.name;
7265
7298
  }
7266
- get State() {
7267
- return this.eacSvc.State;
7268
- }
7269
7299
  ngOnInit() {
7300
+ this.eacSvc.State.subscribe((state) => {
7301
+ this.State = state;
7302
+ });
7270
7303
  this.setupProjectForm();
7271
7304
  }
7272
7305
  SaveProject() {
@@ -7329,10 +7362,11 @@ class EditProjectDialogComponent {
7329
7362
  var _a;
7330
7363
  return (_a = this.EditProjectControl) === null || _a === void 0 ? void 0 : _a.ProjectFormGroup;
7331
7364
  }
7332
- get State() {
7333
- return this.eacSvc.State;
7365
+ ngOnInit() {
7366
+ this.eacSvc.State.subscribe((state) => {
7367
+ this.State = state;
7368
+ });
7334
7369
  }
7335
- ngOnInit() { }
7336
7370
  CloseDialog() {
7337
7371
  this.dialogRef.close();
7338
7372
  }
@@ -7414,10 +7448,10 @@ class ConnectedSourceComponent {
7414
7448
  var _a;
7415
7449
  return (_a = this.SourceFormGroup) === null || _a === void 0 ? void 0 : _a.controls.source;
7416
7450
  }
7417
- get State() {
7418
- return this.eacSvc.State;
7419
- }
7420
7451
  ngOnInit() {
7452
+ this.eacSvc.State.subscribe((state) => {
7453
+ this.State = state;
7454
+ });
7421
7455
  this.setupSourceFormGroup();
7422
7456
  }
7423
7457
  SourceSubmit() {