@lowcodeunit/applications-flow-common 1.36.196-social-ui-performance-issues → 1.36.199-social-ui-cards-rework

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