@resolveio/client-lib-core 0.1.1 → 0.1.2

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.
@@ -6663,10 +6663,67 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImpor
6663
6663
  }]
6664
6664
  }] });
6665
6665
 
6666
+ class HomeComponent extends BaseComponent {
6667
+ constructor(_route, auth, _services, _http, _app) {
6668
+ super(_services);
6669
+ this._route = _route;
6670
+ this.auth = auth;
6671
+ this._services = _services;
6672
+ this._http = _http;
6673
+ this._app = _app;
6674
+ this.menuData = {
6675
+ title: 'Home',
6676
+ module: null,
6677
+ description: null,
6678
+ description_name: null,
6679
+ tabs: [
6680
+ { 'link': 'home', 'params': null, 'label': 'Home' }
6681
+ ]
6682
+ };
6683
+ this.selectedSolution = 'Asset';
6684
+ this.subscription$ = [];
6685
+ }
6686
+ ngOnInit() {
6687
+ this._services._app.setNavbarModuleData(this.menuData);
6688
+ if (!this._app.isLoggingOut.getValue()) {
6689
+ if (this._services._account.getUser()) {
6690
+ if (this._services._account.getUser().settings && this._services._account.getUser().settings.opening_route && this._services._account.getUser().settings.opening_route !== '/home') {
6691
+ this._services._router.navigateByUrl(this._services._account.getUser().settings.opening_route);
6692
+ }
6693
+ else if (this._services._router.url !== '/home') {
6694
+ this._services._router.navigateByUrl('/home');
6695
+ }
6696
+ }
6697
+ else {
6698
+ this.subscription$.push(this._services._account.user.subscribe(user => {
6699
+ if (user && user.settings && user.settings.opening_route && user.settings.opening_route !== '/home') {
6700
+ this._services._router.navigateByUrl(user.settings.opening_route);
6701
+ }
6702
+ else if (this._services._router.url !== '/home') {
6703
+ this._services._router.navigateByUrl('/home');
6704
+ }
6705
+ }, () => { }));
6706
+ }
6707
+ }
6708
+ }
6709
+ ngOnDestroy() {
6710
+ this.subscription$.forEach(sub => {
6711
+ sub.unsubscribe();
6712
+ });
6713
+ }
6714
+ }
6715
+ HomeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: HomeComponent, deps: [{ token: i1$3.ActivatedRoute }, { token: AuthService }, { token: ProviderService }, { token: i4.HttpClient }, { token: CoreService }], target: i0.ɵɵFactoryTarget.Component });
6716
+ HomeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: HomeComponent, selector: "ng-component", providers: [ProviderService], usesInheritance: true, ngImport: i0, template: "<div style=\"height: 100%\">\n <div class=\"row\" style=\"margin-left: 0px; margin-right: 0px; height: 100%;\">\n <div class=\"col-lg-12\" style=\"height: 100%\">\n <div class=\"jumbotron jumbotron-fluid\" style=\"height: 100%; padding-bottom: 0px;\">\n <div class=\"container text-center\" style=\"height: 100%\">\n <img src=\"/assets/images/ResolveIO.png\" class=\"img-fluid\" alt=\"Responsive image\" style=\"height: 100%; width: auto; max-width: 750px; max-height: 525px;\">\n <p style=\"font-size: 24px; font-style: italic\">The All-in-One Solution for Tracking Inventory, Ordering, POs, Management, and Much More!</p>\n </div>\n </div>\n </div>\n </div> \n</div>" });
6717
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: HomeComponent, decorators: [{
6718
+ type: Component,
6719
+ args: [{ providers: [ProviderService], template: "<div style=\"height: 100%\">\n <div class=\"row\" style=\"margin-left: 0px; margin-right: 0px; height: 100%;\">\n <div class=\"col-lg-12\" style=\"height: 100%\">\n <div class=\"jumbotron jumbotron-fluid\" style=\"height: 100%; padding-bottom: 0px;\">\n <div class=\"container text-center\" style=\"height: 100%\">\n <img src=\"/assets/images/ResolveIO.png\" class=\"img-fluid\" alt=\"Responsive image\" style=\"height: 100%; width: auto; max-width: 750px; max-height: 525px;\">\n <p style=\"font-size: 24px; font-style: italic\">The All-in-One Solution for Tracking Inventory, Ordering, POs, Management, and Much More!</p>\n </div>\n </div>\n </div>\n </div> \n</div>" }]
6720
+ }], ctorParameters: function () { return [{ type: i1$3.ActivatedRoute }, { type: AuthService }, { type: ProviderService }, { type: i4.HttpClient }, { type: CoreService }]; } });
6721
+
6666
6722
  class CoreModule {
6667
6723
  }
6668
6724
  CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6669
6725
  CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CoreModule, declarations: [CoreComponent,
6726
+ HomeComponent,
6670
6727
  LoggerComponent,
6671
6728
  NavbarMainComponent,
6672
6729
  NavbarModuleComponent,
@@ -6686,6 +6743,7 @@ CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13
6686
6743
  HttpClientModule,
6687
6744
  NgbModule, i1$1.ToastrModule, i1$2.NgxLocalStorageModule, UserSettingsModule,
6688
6745
  BrowserAnimationsModule], exports: [CoreComponent,
6746
+ HomeComponent,
6689
6747
  LoggerComponent,
6690
6748
  NavbarMainComponent,
6691
6749
  NavbarModuleComponent,
@@ -6738,6 +6796,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImpor
6738
6796
  ],
6739
6797
  declarations: [
6740
6798
  CoreComponent,
6799
+ HomeComponent,
6741
6800
  LoggerComponent,
6742
6801
  NavbarMainComponent,
6743
6802
  NavbarModuleComponent,
@@ -6775,6 +6834,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImpor
6775
6834
  ],
6776
6835
  exports: [
6777
6836
  CoreComponent,
6837
+ HomeComponent,
6778
6838
  LoggerComponent,
6779
6839
  NavbarMainComponent,
6780
6840
  NavbarModuleComponent,
@@ -6787,62 +6847,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImpor
6787
6847
  }]
6788
6848
  }] });
6789
6849
 
6790
- class HomeComponent extends BaseComponent {
6791
- constructor(_route, auth, _services, _http, _app) {
6792
- super(_services);
6793
- this._route = _route;
6794
- this.auth = auth;
6795
- this._services = _services;
6796
- this._http = _http;
6797
- this._app = _app;
6798
- this.menuData = {
6799
- title: 'Home',
6800
- module: null,
6801
- description: null,
6802
- description_name: null,
6803
- tabs: [
6804
- { 'link': 'home', 'params': null, 'label': 'Home' }
6805
- ]
6806
- };
6807
- this.selectedSolution = 'Asset';
6808
- this.subscription$ = [];
6809
- }
6810
- ngOnInit() {
6811
- this._services._app.setNavbarModuleData(this.menuData);
6812
- if (!this._app.isLoggingOut.getValue()) {
6813
- if (this._services._account.getUser()) {
6814
- if (this._services._account.getUser().settings && this._services._account.getUser().settings.opening_route && this._services._account.getUser().settings.opening_route !== '/home') {
6815
- this._services._router.navigateByUrl(this._services._account.getUser().settings.opening_route);
6816
- }
6817
- else if (this._services._router.url !== '/home') {
6818
- this._services._router.navigateByUrl('/home');
6819
- }
6820
- }
6821
- else {
6822
- this.subscription$.push(this._services._account.user.subscribe(user => {
6823
- if (user && user.settings && user.settings.opening_route && user.settings.opening_route !== '/home') {
6824
- this._services._router.navigateByUrl(user.settings.opening_route);
6825
- }
6826
- else if (this._services._router.url !== '/home') {
6827
- this._services._router.navigateByUrl('/home');
6828
- }
6829
- }, () => { }));
6830
- }
6831
- }
6832
- }
6833
- ngOnDestroy() {
6834
- this.subscription$.forEach(sub => {
6835
- sub.unsubscribe();
6836
- });
6837
- }
6838
- }
6839
- HomeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: HomeComponent, deps: [{ token: i1$3.ActivatedRoute }, { token: AuthService }, { token: ProviderService }, { token: i4.HttpClient }, { token: CoreService }], target: i0.ɵɵFactoryTarget.Component });
6840
- HomeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: HomeComponent, selector: "ng-component", providers: [ProviderService], usesInheritance: true, ngImport: i0, template: "<div style=\"height: 100%\">\n <div class=\"row\" style=\"margin-left: 0px; margin-right: 0px; height: 100%;\">\n <div class=\"col-lg-12\" style=\"height: 100%\">\n <div class=\"jumbotron jumbotron-fluid\" style=\"height: 100%; padding-bottom: 0px;\">\n <div class=\"container text-center\" style=\"height: 100%\">\n <img src=\"/assets/images/ResolveIO.png\" class=\"img-fluid\" alt=\"Responsive image\" style=\"height: 100%; width: auto; max-width: 750px; max-height: 525px;\">\n <p style=\"font-size: 24px; font-style: italic\">The All-in-One Solution for Tracking Inventory, Ordering, POs, Management, and Much More!</p>\n </div>\n </div>\n </div>\n </div> \n</div>" });
6841
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: HomeComponent, decorators: [{
6842
- type: Component,
6843
- args: [{ providers: [ProviderService], template: "<div style=\"height: 100%\">\n <div class=\"row\" style=\"margin-left: 0px; margin-right: 0px; height: 100%;\">\n <div class=\"col-lg-12\" style=\"height: 100%\">\n <div class=\"jumbotron jumbotron-fluid\" style=\"height: 100%; padding-bottom: 0px;\">\n <div class=\"container text-center\" style=\"height: 100%\">\n <img src=\"/assets/images/ResolveIO.png\" class=\"img-fluid\" alt=\"Responsive image\" style=\"height: 100%; width: auto; max-width: 750px; max-height: 525px;\">\n <p style=\"font-size: 24px; font-style: italic\">The All-in-One Solution for Tracking Inventory, Ordering, POs, Management, and Much More!</p>\n </div>\n </div>\n </div>\n </div> \n</div>" }]
6844
- }], ctorParameters: function () { return [{ type: i1$3.ActivatedRoute }, { type: AuthService }, { type: ProviderService }, { type: i4.HttpClient }, { type: CoreService }]; } });
6845
-
6846
6850
  class SupportTicketService {
6847
6851
  constructor() {
6848
6852
  this.selectedSupportTicket = new BehaviorSubject('0');