@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 * as i1 from '@angular/common/http';
5
5
  import { HttpClient } from '@angular/common/http';
6
6
  import * as i2 from '@lcu/common';
@@ -457,9 +457,10 @@ class ProjectService {
457
457
  }
458
458
  HasValidConnection(state, forceEnsureUser = false) {
459
459
  return new Promise(async (resolve, reject) => {
460
+ console.log('State has valid conn: ', state);
460
461
  state.Loading = true;
461
462
  this.appsFlowSvc.HasValidConnection().subscribe(async (response) => {
462
- state.GitHub.HasConnection = response.Status.Code === 0;
463
+ state.GitHub.HasConnection = response?.Status?.Code === 0;
463
464
  if (state.GitHub.HasConnection || forceEnsureUser) {
464
465
  }
465
466
  else {
@@ -848,7 +849,7 @@ class EaCService {
848
849
  constructor(projectService, http) {
849
850
  this.projectService = projectService;
850
851
  this.http = http;
851
- this.State = new ApplicationsFlowState();
852
+ this.State = new BehaviorSubject(new ApplicationsFlowState());
852
853
  }
853
854
  // Properties
854
855
  get EditingProjectLookup() {
@@ -864,98 +865,98 @@ class EaCService {
864
865
  async DeleteApplication(appLookup, appName) {
865
866
  if (confirm(`Are you sure you want to delete application '${appName}'?`)) {
866
867
  const eac = {
867
- EnterpriseLookup: this.State.EaC.EnterpriseLookup,
868
+ EnterpriseLookup: this.State?.value?.EaC?.EnterpriseLookup,
868
869
  Applications: {},
869
870
  };
870
871
  eac.Applications[appLookup] = {
871
872
  Application: {},
872
873
  };
873
- return await this.projectService.EnterpriseAsCodeRemovals(this.State, eac);
874
+ return await this.projectService.EnterpriseAsCodeRemovals(this.State.value, eac);
874
875
  }
875
876
  }
876
877
  async DeleteDevOpsAction(doaLookup, doaName) {
877
878
  if (confirm(`Are you sure you want to delete Build Pipeline '${doaName}'?`)) {
878
879
  const eac = {
879
- EnterpriseLookup: this.State.EaC.EnterpriseLookup,
880
+ EnterpriseLookup: this.State.value.EaC.EnterpriseLookup,
880
881
  Environments: {},
881
882
  };
882
- eac.Environments[this.State.EaC.Enterprise.PrimaryEnvironment] = {
883
+ eac.Environments[this.State.value.EaC.Enterprise.PrimaryEnvironment] = {
883
884
  DevOpsActions: {},
884
885
  };
885
- eac.Environments[this.State.EaC.Enterprise.PrimaryEnvironment].DevOpsActions[doaLookup] = {};
886
- return await this.projectService.EnterpriseAsCodeRemovals(this.State, eac);
886
+ eac.Environments[this.State.value.EaC.Enterprise.PrimaryEnvironment].DevOpsActions[doaLookup] = {};
887
+ return await this.projectService.EnterpriseAsCodeRemovals(this.State.value, eac);
887
888
  }
888
889
  }
889
890
  async DeleteModifier(modifierLookup, modifierName) {
890
891
  if (confirm(`Are you sure you want to delete Modifier '${modifierName}'?`)) {
891
892
  const eac = {
892
- EnterpriseLookup: this.State.EaC.EnterpriseLookup,
893
+ EnterpriseLookup: this.State.value.EaC.EnterpriseLookup,
893
894
  Modifiers: {},
894
895
  };
895
896
  eac.Modifiers[modifierLookup] = {};
896
- return await this.projectService.EnterpriseAsCodeRemovals(this.State, eac);
897
+ return await this.projectService.EnterpriseAsCodeRemovals(this.State.value, eac);
897
898
  }
898
899
  }
899
900
  async DeleteProject(projectLookup, projectName) {
900
901
  if (confirm(`Are you sure you want to delete Project '${projectName}'?`)) {
901
902
  const eac = {
902
- EnterpriseLookup: this.State.EaC.EnterpriseLookup,
903
+ EnterpriseLookup: this.State.value.EaC.EnterpriseLookup,
903
904
  Projects: {},
904
905
  };
905
906
  eac.Projects[projectLookup] = {
906
907
  Project: {},
907
908
  };
908
- return await this.projectService.EnterpriseAsCodeRemovals(this.State, eac);
909
+ return await this.projectService.EnterpriseAsCodeRemovals(this.State.value, eac);
909
910
  }
910
911
  }
911
912
  async DeleteSourceControl(srcLookup, srcName) {
912
913
  if (confirm(`Are you sure you want to delete Source Control '${srcName}'?`)) {
913
914
  const eac = {
914
- EnterpriseLookup: this.State.EaC.EnterpriseLookup,
915
+ EnterpriseLookup: this.State.value.EaC.EnterpriseLookup,
915
916
  Environments: {},
916
917
  };
917
- eac.Environments[this.State.EaC.Enterprise.PrimaryEnvironment] = {
918
+ eac.Environments[this.State.value.EaC.Enterprise.PrimaryEnvironment] = {
918
919
  Sources: {},
919
920
  };
920
- eac.Environments[this.State.EaC.Enterprise.PrimaryEnvironment].Sources[srcLookup] = {};
921
- return await this.projectService.EnterpriseAsCodeRemovals(this.State, eac);
921
+ eac.Environments[this.State.value.EaC.Enterprise.PrimaryEnvironment].Sources[srcLookup] = {};
922
+ return await this.projectService.EnterpriseAsCodeRemovals(this.State.value, eac);
922
923
  }
923
924
  }
924
925
  // this.appsFlowEventsSvc.EnsureUserEnterpriseEvent.subscribe(async () => {
925
926
  // await this.projectService.EnsureUserEnterprise(this.State);
926
927
  // });
927
928
  async EnsureUserEnterprise() {
928
- await this.projectService.EnsureUserEnterprise(this.State);
929
+ await this.projectService.EnsureUserEnterprise(this.State.value);
929
930
  }
930
931
  async EnterpriseAsCodeRemovals(eac) {
931
- return this.projectService.EnterpriseAsCodeRemovals(this.State, eac);
932
+ return this.projectService.EnterpriseAsCodeRemovals(this.State.value, eac);
932
933
  }
933
934
  async GetActiveEnterprise() {
934
- await this.projectService.GetActiveEnterprise(this.State);
935
+ await this.projectService.GetActiveEnterprise(this.State.value);
935
936
  }
936
937
  async LoadUserFeed(page, pageSize, forCheck = false) {
937
- await this.projectService.LoadUserFeed(page, pageSize, forCheck, this.State);
938
+ await this.projectService.LoadUserFeed(page, pageSize, forCheck, this.State.value);
938
939
  }
939
940
  GenerateRoutedApplications(applications) {
940
- return this.projectService.GenerateRoutedApplications(applications, this.State);
941
+ return this.projectService.GenerateRoutedApplications(applications, this.State.value);
941
942
  }
942
943
  async HasValidConnection() {
943
- await this.projectService.HasValidConnection(this.State);
944
+ await this.projectService.HasValidConnection(this.State.value);
944
945
  }
945
946
  async ListEnterprises() {
946
- await this.projectService.ListEnterprises(this.State);
947
+ await this.projectService.ListEnterprises(this.State.value);
947
948
  }
948
949
  async LoadEnterpriseAsCode() {
949
- await this.projectService.LoadEnterpriseAsCode(this.State);
950
+ await this.projectService.LoadEnterpriseAsCode(this.State.value);
950
951
  }
951
952
  ReloadFeed() {
952
- if (this.State.FeedCheck) {
953
- this.State.Feed = this.State.FeedCheck.Items;
954
- this.State.FeedActions = this.State.FeedCheck.Actions;
955
- this.State.FeedSourceControlLookups =
956
- this.State.FeedCheck.SourceControlLookups;
953
+ if (this.State.value.FeedCheck) {
954
+ this.State.value.Feed = this.State.value.FeedCheck.Items;
955
+ this.State.value.FeedActions = this.State.value.FeedCheck.Actions;
956
+ this.State.value.FeedSourceControlLookups =
957
+ this.State.value.FeedCheck.SourceControlLookups;
957
958
  }
958
- this.State.FeedCheck = null;
959
+ this.State.value.FeedCheck = null;
959
960
  }
960
961
  async SaveApplicationAsCode(req) {
961
962
  return await this.handleSaveApplication(req);
@@ -964,7 +965,7 @@ class EaCService {
964
965
  await this.handleSaveDFSModifier(req);
965
966
  }
966
967
  async SaveEnterpriseAsCode(eac) {
967
- return await this.projectService.SaveEnterpriseAsCode(this.State, eac);
968
+ return await this.projectService.SaveEnterpriseAsCode(this.State.value, eac);
968
969
  }
969
970
  async SaveEnvironmentAsCode(req) {
970
971
  return await this.handleSaveEnvironment(req);
@@ -973,26 +974,26 @@ class EaCService {
973
974
  return await this.handleSaveProject(req.ProjectLookup, req.Project);
974
975
  }
975
976
  async SetActiveEnterprise(entLookup) {
976
- this.projectService.SetActiveEnterprise(this.State, entLookup);
977
+ this.projectService.SetActiveEnterprise(this.State.value, entLookup);
977
978
  }
978
979
  async SetCreatingProject(creatingProject) {
979
980
  this.projectService.SetCreatingProject(creatingProject);
980
981
  }
981
982
  async SetEditProjectSettings(projectLookup) {
982
- await this.projectService.SetEditProjectSettings(this.State, projectLookup);
983
+ await this.projectService.SetEditProjectSettings(this.State.value, projectLookup);
983
984
  }
984
985
  async SubmitFeedEntry(entry) {
985
- return await this.projectService.SubmitFeedEntry(this.State, entry);
986
+ return await this.projectService.SubmitFeedEntry(this.State.value, entry);
986
987
  }
987
988
  async UnpackLowCodeUnit(req) {
988
989
  if (confirm(`Are you sure you want to unpack application '${req.ApplicationName}' with version '${req.Version}'?`)) {
989
- await this.projectService.UnpackLowCodeUnit(this.State, req);
990
+ await this.projectService.UnpackLowCodeUnit(this.State.value, req);
990
991
  }
991
992
  }
992
993
  // Helpers
993
994
  async handleSaveApplication(req) {
994
995
  const saveEaC = {
995
- EnterpriseLookup: this.State.EaC.EnterpriseLookup,
996
+ EnterpriseLookup: this.State.value.EaC.EnterpriseLookup,
996
997
  Applications: {},
997
998
  Projects: {},
998
999
  };
@@ -1007,11 +1008,11 @@ class EaCService {
1007
1008
  if (req.Application) {
1008
1009
  saveEaC.Applications[req.ApplicationLookup] = req.Application;
1009
1010
  }
1010
- return await this.projectService.SaveEnterpriseAsCode(this.State, saveEaC);
1011
+ return await this.projectService.SaveEnterpriseAsCode(this.State.value, saveEaC);
1011
1012
  }
1012
1013
  async handleSaveDFSModifier(req) {
1013
1014
  const saveEaC = {
1014
- EnterpriseLookup: this.State.EaC.EnterpriseLookup,
1015
+ EnterpriseLookup: this.State.value.EaC.EnterpriseLookup,
1015
1016
  Modifiers: {},
1016
1017
  Projects: {},
1017
1018
  Applications: {},
@@ -1033,11 +1034,11 @@ class EaCService {
1033
1034
  ModifierLookups: req.ModifierLookups,
1034
1035
  };
1035
1036
  }
1036
- await this.projectService.SaveEnterpriseAsCode(this.State, saveEaC);
1037
+ await this.projectService.SaveEnterpriseAsCode(this.State.value, saveEaC);
1037
1038
  }
1038
1039
  async handleSaveEnvironment(req) {
1039
1040
  const saveEaC = {
1040
- EnterpriseLookup: this.State?.EaC?.EnterpriseLookup,
1041
+ EnterpriseLookup: this.State?.value.EaC?.EnterpriseLookup,
1041
1042
  DataTokens: {},
1042
1043
  Environments: {},
1043
1044
  };
@@ -1047,17 +1048,17 @@ class EaCService {
1047
1048
  if (req.EnterpriseDataTokens) {
1048
1049
  saveEaC.DataTokens = req.EnterpriseDataTokens;
1049
1050
  }
1050
- return await this.projectService.SaveEnterpriseAsCode(this.State, saveEaC);
1051
+ return await this.projectService.SaveEnterpriseAsCode(this.State.value, saveEaC);
1051
1052
  }
1052
1053
  async handleSaveProject(projectLookup, project) {
1053
1054
  const projHosts = {};
1054
1055
  project?.Hosts?.forEach((host) => {
1055
- projHosts[host] = this.State.EaC.Hosts[host];
1056
+ projHosts[host] = this.State.value.EaC.Hosts[host];
1056
1057
  });
1057
1058
  const saveEaC = {
1058
- EnterpriseLookup: this.State.EaC.EnterpriseLookup,
1059
+ EnterpriseLookup: this.State.value.EaC.EnterpriseLookup,
1059
1060
  Enterprise: {
1060
- ...this.State.EaC.Enterprise,
1061
+ ...this.State.value.EaC.Enterprise,
1061
1062
  PrimaryHost: project.Hosts[0],
1062
1063
  },
1063
1064
  Hosts: projHosts,
@@ -1065,7 +1066,7 @@ class EaCService {
1065
1066
  Projects: {},
1066
1067
  };
1067
1068
  saveEaC.Projects[projectLookup] = project;
1068
- let status = await this.projectService.SaveEnterpriseAsCode(this.State, saveEaC);
1069
+ let status = await this.projectService.SaveEnterpriseAsCode(this.State.value, saveEaC);
1069
1070
  this.SetEditProjectSettings(projectLookup);
1070
1071
  return status;
1071
1072
  }
@@ -3011,6 +3012,9 @@ class ApplicationsFlowProjectsContext extends LCUElementContext {
3011
3012
  }
3012
3013
  const SELECTOR_APPLICATIONS_FLOW_PROJECTS_ELEMENT = 'applications-flow-projects-element';
3013
3014
  class ApplicationsFlowProjectsElementComponent extends LcuElementComponent {
3015
+ // public get State(): ApplicationsFlowState {
3016
+ // return this.eacSvc.State;
3017
+ // }
3014
3018
  // Constructors
3015
3019
  constructor(injector, appsFlowSvc, eacSvc) {
3016
3020
  super(injector);
@@ -3041,13 +3045,13 @@ class ApplicationsFlowProjectsElementComponent extends LcuElementComponent {
3041
3045
  get ProjectLookups() {
3042
3046
  return Object.keys(this.State?.EaC?.Projects || {});
3043
3047
  }
3044
- get State() {
3045
- return this.eacSvc.State;
3046
- }
3047
3048
  // Life Cycle
3048
3049
  ngOnDestroy() { }
3049
3050
  ngOnInit() {
3050
3051
  super.ngOnInit();
3052
+ this.eacSvc.State.subscribe((state) => {
3053
+ this.State = state;
3054
+ });
3051
3055
  this.handleStateChange().then((eac) => { });
3052
3056
  // this.setupProjectMonitor();
3053
3057
  }
@@ -3678,10 +3682,11 @@ class SlottedCardComponent {
3678
3682
  this.MainIcon = 'add';
3679
3683
  this.ShowMainIcon = true;
3680
3684
  }
3681
- get State() {
3682
- return this.eacSvc.State;
3685
+ ngOnInit() {
3686
+ this.eacSvc.State.subscribe((state) => {
3687
+ this.State = state;
3688
+ });
3683
3689
  }
3684
- ngOnInit() { }
3685
3690
  MainActionClickEvent() {
3686
3691
  this.MainActionClicked.emit({});
3687
3692
  }
@@ -3728,13 +3733,13 @@ class ProjectInfoCardComponent {
3728
3733
  this.RightClickEvent = new EventEmitter();
3729
3734
  this.SkeletonEffect = 'wave';
3730
3735
  }
3731
- get State() {
3732
- return this.eacSvc.State;
3733
- }
3734
3736
  ngOnInit() {
3735
3737
  // console.log("loading = ", this.Loading)
3736
3738
  // console.log("is shareable: ", this.IsShareable);
3737
3739
  // console.log("is editable: ", this.IsEditable);
3740
+ this.eacSvc.State.subscribe((state) => {
3741
+ this.State = state;
3742
+ });
3738
3743
  }
3739
3744
  LeftIconClicked() {
3740
3745
  this.LeftClickEvent.emit({});
@@ -3915,15 +3920,15 @@ class DevopsSourceControlFormComponent {
3915
3920
  get RepositoryFormControl() {
3916
3921
  return this.DevOpsSourceControlFormGroup.get(this.SourceControlRoot + 'repository');
3917
3922
  }
3918
- get State() {
3919
- return this.eacSvc.State;
3920
- }
3921
3923
  // Life Cycle
3922
3924
  ngAfterViewInit() { }
3923
3925
  ngOnDestroy() {
3924
3926
  this.destroyFormControls();
3925
3927
  }
3926
3928
  ngOnInit() {
3929
+ this.eacSvc.State.subscribe((state) => {
3930
+ this.State = state;
3931
+ });
3927
3932
  console.log('source control lookup', this.EditingSourceControlLookup);
3928
3933
  if (this.EditingSourceControlLookup === null) {
3929
3934
  this.CreateNewSourceControl();
@@ -4224,10 +4229,11 @@ class SourceControlDialogComponent {
4224
4229
  get HasConnection() {
4225
4230
  return this.State.GitHub.HasConnection;
4226
4231
  }
4227
- get State() {
4228
- return this.eacSvc.State;
4232
+ ngOnInit() {
4233
+ this.eacSvc.State.subscribe((state) => {
4234
+ this.State = state;
4235
+ });
4229
4236
  }
4230
- ngOnInit() { }
4231
4237
  CloseDialog() {
4232
4238
  this.dialogRef.close();
4233
4239
  }
@@ -4366,6 +4372,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImpor
4366
4372
  }] } });
4367
4373
 
4368
4374
  class MainFeedCardComponent {
4375
+ // public get State(): ApplicationsFlowState {
4376
+ // return this.eacSvc.State;
4377
+ // }
4369
4378
  constructor(eacSvc, dialog, sanitizer, formBuilder) {
4370
4379
  this.eacSvc = eacSvc;
4371
4380
  this.dialog = dialog;
@@ -4416,9 +4425,6 @@ class MainFeedCardComponent {
4416
4425
  return 'gray';
4417
4426
  }
4418
4427
  }
4419
- get State() {
4420
- return this.eacSvc.State;
4421
- }
4422
4428
  // Life Cycle
4423
4429
  ngOnDestroy() {
4424
4430
  if (this.checkTimeout) {
@@ -4426,6 +4432,9 @@ class MainFeedCardComponent {
4426
4432
  }
4427
4433
  }
4428
4434
  ngOnInit() {
4435
+ this.eacSvc.State.subscribe((state) => {
4436
+ this.State = state;
4437
+ });
4429
4438
  this.handleRefresh();
4430
4439
  this.SanitizeVideos();
4431
4440
  }
@@ -4601,10 +4610,10 @@ class SecurityToggleComponent {
4601
4610
  get IsTriggerSignInFormControl() {
4602
4611
  return this.SecurityFormGroup?.controls.isTriggerSignIn;
4603
4612
  }
4604
- get State() {
4605
- return this.eacSvc.State;
4606
- }
4607
4613
  ngOnInit() {
4614
+ this.eacSvc.State.subscribe((state) => {
4615
+ this.State = state;
4616
+ });
4608
4617
  this.setupSecurityFormGroup();
4609
4618
  }
4610
4619
  SecuritySubmit() {
@@ -4698,9 +4707,9 @@ class ProcessorDetailsFormComponent {
4698
4707
  get SecurityFormControl() {
4699
4708
  return this.ProcessorDetailsFormGroup?.controls.security;
4700
4709
  }
4701
- get State() {
4702
- return this.eacSvc.State;
4703
- }
4710
+ // public get State(): ApplicationsFlowState {
4711
+ // return this.eacSvc.State;
4712
+ // }
4704
4713
  get SourceControls() {
4705
4714
  return this.Environment?.Sources || {};
4706
4715
  }
@@ -4731,6 +4740,9 @@ class ProcessorDetailsFormComponent {
4731
4740
  return this.ProcessorDetailsFormGroup?.controls.zipFile;
4732
4741
  }
4733
4742
  ngOnInit() {
4743
+ this.eacSvc.State.subscribe((state) => {
4744
+ this.State = state;
4745
+ });
4734
4746
  if (!this.EditingApplication) {
4735
4747
  this.CreateNewApplication();
4736
4748
  }
@@ -5160,10 +5172,10 @@ class BuildPipelineFormComponent {
5160
5172
  get SourceControls() {
5161
5173
  return this.Environment.Sources || {};
5162
5174
  }
5163
- get State() {
5164
- return this.eacSvc.State;
5165
- }
5166
5175
  ngOnInit() {
5176
+ this.eacSvc.State.subscribe((state) => {
5177
+ this.State = state;
5178
+ });
5167
5179
  // console.log('BuildPipeline = ', this.BuildPipeline)
5168
5180
  // this.BuildPipelineFormGroup = this.formBuilder.group({});
5169
5181
  // if (this.BuildPipelineFormGroup != null) {
@@ -5357,10 +5369,11 @@ class BuildPipelineDialogComponent {
5357
5369
  get HasConnection() {
5358
5370
  return this.State.GitHub.HasConnection;
5359
5371
  }
5360
- get State() {
5361
- return this.eacSvc.State;
5372
+ ngOnInit() {
5373
+ this.eacSvc.State.subscribe((state) => {
5374
+ this.State = state;
5375
+ });
5362
5376
  }
5363
- ngOnInit() { }
5364
5377
  CloseDialog() {
5365
5378
  this.dialogRef.close();
5366
5379
  }
@@ -5416,10 +5429,10 @@ class EditApplicationFormComponent {
5416
5429
  get RouteFormControl() {
5417
5430
  return this.ApplicationFormGroup?.controls.route;
5418
5431
  }
5419
- get State() {
5420
- return this.eacSvc.State;
5421
- }
5422
5432
  ngOnInit() {
5433
+ this.eacSvc.State.subscribe((state) => {
5434
+ this.State = state;
5435
+ });
5423
5436
  this.setupApplicationForm();
5424
5437
  }
5425
5438
  SubmitApplicationControl() {
@@ -5589,10 +5602,10 @@ class BreadcrumbComponent {
5589
5602
  get SelectedProject() {
5590
5603
  return this.State?.EaC?.Projects[this.ProjectLookup] || {};
5591
5604
  }
5592
- get State() {
5593
- return this.eacSvc.State;
5594
- }
5595
5605
  ngOnInit() {
5606
+ this.eacSvc.State.subscribe((state) => {
5607
+ this.State = state;
5608
+ });
5596
5609
  this.handleStateChange().then((eac) => { });
5597
5610
  // console.log("state: ", this.State)
5598
5611
  // console.log('selected enterprise: ', this.Enterprise);
@@ -5656,9 +5669,6 @@ class EditApplicationDialogComponent {
5656
5669
  get ApplicationFormGroup() {
5657
5670
  return this.EditApplicationControl?.ApplicationFormGroup;
5658
5671
  }
5659
- get State() {
5660
- return this.eacSvc.State;
5661
- }
5662
5672
  ngOnInit() { }
5663
5673
  CloseDialog() {
5664
5674
  this.dialogRef.close();
@@ -5709,10 +5719,10 @@ class NewApplicationDialogComponent {
5709
5719
  get SourceControlLookups() {
5710
5720
  return Object.keys(this.Environment.Sources || {});
5711
5721
  }
5712
- get State() {
5713
- return this.eacSvc.State;
5714
- }
5715
5722
  ngOnInit() {
5723
+ this.eacSvc.State.subscribe((state) => {
5724
+ this.State = state;
5725
+ });
5716
5726
  this.SetupApplication(Guid.CreateRaw());
5717
5727
  }
5718
5728
  CloseDialog() {
@@ -5899,13 +5909,17 @@ class ProcessorDetailsDialogComponent {
5899
5909
  get SourceControlLookups() {
5900
5910
  return Object.keys(this.Environment?.Sources || {});
5901
5911
  }
5902
- get State() {
5903
- return this.eacSvc.State;
5904
- }
5912
+ // public get State(): ApplicationsFlowState {
5913
+ // return this.eacSvc.State;
5914
+ // }
5905
5915
  get ProcessorDetailsFormGroup() {
5906
5916
  return this.ProcessorDetailsFormControls?.ProcessorDetailsFormGroup;
5907
5917
  }
5908
- ngOnInit() { }
5918
+ ngOnInit() {
5919
+ this.eacSvc.State.subscribe((state) => {
5920
+ this.State = state;
5921
+ });
5922
+ }
5909
5923
  CloseDialog() {
5910
5924
  this.dialogRef.close();
5911
5925
  }
@@ -5980,10 +5994,10 @@ class EmulatedDevicesToggleComponent {
5980
5994
  get IsTriggerSignInFormControl() {
5981
5995
  return this.EmulatedDevicesFormGroup?.controls.isTriggerSignIn;
5982
5996
  }
5983
- get State() {
5984
- return this.eacSvc.State;
5985
- }
5986
5997
  ngOnInit() {
5998
+ this.eacSvc.State.subscribe((state) => {
5999
+ this.State = state;
6000
+ });
5987
6001
  this.setupEmulatedDevicesFormGroup();
5988
6002
  }
5989
6003
  EmulatedDevicesSubmit() {
@@ -6183,13 +6197,16 @@ class FeedHeaderDialogComponent {
6183
6197
  get SubtitleFormControl() {
6184
6198
  return this.FeedHeaderFormGroup.controls.subtitle;
6185
6199
  }
6186
- get State() {
6187
- return this.eacSvc.State;
6188
- }
6200
+ // public get State(): ApplicationsFlowState {
6201
+ // return this.eacSvc.State;
6202
+ // }
6189
6203
  get TitleFormControl() {
6190
6204
  return this.FeedHeaderFormGroup?.controls.title;
6191
6205
  }
6192
6206
  ngOnInit() {
6207
+ this.eacSvc.State.subscribe((state) => {
6208
+ this.State = state;
6209
+ });
6193
6210
  this.setupFeedHeaderForm();
6194
6211
  }
6195
6212
  CloseDialog() {
@@ -6412,10 +6429,11 @@ class FeedHeaderComponent {
6412
6429
  get HasGHConnection() {
6413
6430
  return this.State?.GitHub?.HasConnection;
6414
6431
  }
6415
- get State() {
6416
- return this.eacSvc.State;
6432
+ ngOnInit() {
6433
+ this.eacSvc.State.subscribe((state) => {
6434
+ this.State = state;
6435
+ });
6417
6436
  }
6418
- ngOnInit() { }
6419
6437
  ngAfterViewInit() {
6420
6438
  this.addSelectBtn();
6421
6439
  }
@@ -6608,14 +6626,17 @@ class DFSModifiersFormComponent {
6608
6626
  get StateDataTokenFormControl() {
6609
6627
  return this.ModifierFormGroup?.controls.stateDataToken;
6610
6628
  }
6611
- get State() {
6612
- return this.eacSvc.State;
6613
- }
6629
+ // public get State(): ApplicationsFlowState {
6630
+ // return this.eacSvc.State;
6631
+ // }
6614
6632
  get TypeFormControl() {
6615
6633
  return this.ModifierFormGroup?.controls.type;
6616
6634
  }
6617
6635
  // Life Cycle
6618
6636
  ngOnInit() {
6637
+ this.eacSvc.State.subscribe((state) => {
6638
+ this.State = state;
6639
+ });
6619
6640
  if (this.Level === 'enterprise' && !this.EditingModifierLookup) {
6620
6641
  this.CreateNewModifier();
6621
6642
  }
@@ -6824,9 +6845,9 @@ class DFSModifiersDialogComponent {
6824
6845
  this.snackBar = snackBar;
6825
6846
  this.ModifierDialogForm = this.formbldr.group({});
6826
6847
  }
6827
- get State() {
6828
- return this.eacSvc.State;
6829
- }
6848
+ // public get State(): ApplicationsFlowState {
6849
+ // return this.eacSvc.State;
6850
+ // }
6830
6851
  get ProjectLookups() {
6831
6852
  return Object.keys(this.State?.EaC?.Projects || {});
6832
6853
  }
@@ -6837,6 +6858,9 @@ class DFSModifiersDialogComponent {
6837
6858
  return this.DFSModifersFormControls?.ModifierSelectFormGroup;
6838
6859
  }
6839
6860
  ngOnInit() {
6861
+ this.eacSvc.State.subscribe((state) => {
6862
+ this.State = state;
6863
+ });
6840
6864
  this.determineLevel();
6841
6865
  }
6842
6866
  CloseDialog() {
@@ -6942,9 +6966,9 @@ class StateConfigFormComponent {
6942
6966
  get Application() {
6943
6967
  return this.State?.EaC?.Applications[this.AppLookup];
6944
6968
  }
6945
- get State() {
6946
- return this.eacSvc.State;
6947
- }
6969
+ // public get State(): ApplicationsFlowState {
6970
+ // return this.eacSvc.State;
6971
+ // }
6948
6972
  get StateConfigNameFormControl() {
6949
6973
  return this.StateConfigForm?.controls.name;
6950
6974
  }
@@ -6955,6 +6979,9 @@ class StateConfigFormComponent {
6955
6979
  return this.StateConfigForm?.controls.value;
6956
6980
  }
6957
6981
  ngOnInit() {
6982
+ this.eacSvc.State.subscribe((state) => {
6983
+ this.State = state;
6984
+ });
6958
6985
  this.buildForm();
6959
6986
  }
6960
6987
  SaveStateConfig() {
@@ -7009,13 +7036,17 @@ class StateConfigDialogComponent {
7009
7036
  get Application() {
7010
7037
  return this.State?.EaC?.Applications[this.data.appLookup];
7011
7038
  }
7012
- get State() {
7013
- return this.eacSvc.State;
7014
- }
7039
+ // public get State(): ApplicationsFlowState {
7040
+ // return this.eacSvc.State;
7041
+ // }
7015
7042
  get StateConfigFormControl() {
7016
7043
  return this.StateConfigForm?.StateConfigForm;
7017
7044
  }
7018
- ngOnInit() { }
7045
+ ngOnInit() {
7046
+ this.eacSvc.State.subscribe((state) => {
7047
+ this.State = state;
7048
+ });
7049
+ }
7019
7050
  CloseDialog() {
7020
7051
  this.dialogRef.close();
7021
7052
  }
@@ -7062,10 +7093,10 @@ class EditProjectFormComponent {
7062
7093
  get NameFormControl() {
7063
7094
  return this.ProjectFormGroup.controls.name;
7064
7095
  }
7065
- get State() {
7066
- return this.eacSvc.State;
7067
- }
7068
7096
  ngOnInit() {
7097
+ this.eacSvc.State.subscribe((state) => {
7098
+ this.State = state;
7099
+ });
7069
7100
  this.setupProjectForm();
7070
7101
  }
7071
7102
  SaveProject() {
@@ -7125,10 +7156,11 @@ class EditProjectDialogComponent {
7125
7156
  get ProjectFormGroup() {
7126
7157
  return this.EditProjectControl?.ProjectFormGroup;
7127
7158
  }
7128
- get State() {
7129
- return this.eacSvc.State;
7159
+ ngOnInit() {
7160
+ this.eacSvc.State.subscribe((state) => {
7161
+ this.State = state;
7162
+ });
7130
7163
  }
7131
- ngOnInit() { }
7132
7164
  CloseDialog() {
7133
7165
  this.dialogRef.close();
7134
7166
  }
@@ -7204,10 +7236,10 @@ class ConnectedSourceComponent {
7204
7236
  get SourceFormControl() {
7205
7237
  return this.SourceFormGroup?.controls.source;
7206
7238
  }
7207
- get State() {
7208
- return this.eacSvc.State;
7209
- }
7210
7239
  ngOnInit() {
7240
+ this.eacSvc.State.subscribe((state) => {
7241
+ this.State = state;
7242
+ });
7211
7243
  this.setupSourceFormGroup();
7212
7244
  }
7213
7245
  SourceSubmit() {