gamma-app-controller 1.1.29 → 1.2.1

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 (38) hide show
  1. package/esm2020/lib/application-controller/application-dataset-component/create-dataset/create-dataset.component.mjs +1 -5
  2. package/esm2020/lib/application-controller/application-dataset-component/dataset-query-bulder/dataset-query-bulder.component.mjs +1 -8
  3. package/esm2020/lib/application-controller/page-controller/page-config/page-config.component.mjs +1 -2
  4. package/esm2020/lib/application-controller/page-controller/page-config-multi-layout/page-config-multi-layout.component.mjs +1 -2
  5. package/esm2020/lib/application-controller/tokenStorage.servce.mjs +36 -0
  6. package/esm2020/lib/gamma-app-controller.module.mjs +2 -2
  7. package/esm2020/lib/shared/advanced-component/app-advance-header/app-header.component.mjs +20 -18
  8. package/esm2020/lib/shared/advanced-component/gamma-advance-operator-table/gamma-advance-operator-table.component.mjs +1 -2
  9. package/esm2020/lib/template-module/bookmarked-template/bookmarked-template.component.mjs +10 -9
  10. package/esm2020/lib/template-module/defaulLandingComponent/landing-component.component.mjs +10 -9
  11. package/esm2020/lib/template-module/kpiWithMultiLayout/dynamin-modal-multi.component.mjs +1 -2
  12. package/esm2020/lib/template-module/kpiWithMultiLayout/kpi-with-multilayout.component.mjs +17 -16
  13. package/esm2020/lib/template-module/kpiWithMultiLayout/kpiWithMultiayout.module.mjs +4 -4
  14. package/esm2020/lib/template-module/kpiWithMultiLayout/multi-layout-dataset-call.service.mjs +364 -0
  15. package/esm2020/lib/template-module/kpiWithSingleLayout/application-chat-api-call.service.mjs +38 -0
  16. package/esm2020/lib/template-module/kpiWithSingleLayout/dynamin-modal.component.mjs +1 -2
  17. package/esm2020/lib/template-module/kpiWithSingleLayout/kpi-with-dataset.component.mjs +85 -30
  18. package/esm2020/lib/template-module/kpiWithSingleLayout/kpiWithSingleLayout.module.mjs +5 -4
  19. package/esm2020/lib/template-module/kpiWithSingleLayout/single-layout-dataset-call.service.mjs +366 -0
  20. package/esm2020/public-api.mjs +5 -3
  21. package/fesm2015/gamma-app-controller.mjs +300 -193
  22. package/fesm2015/gamma-app-controller.mjs.map +1 -1
  23. package/fesm2020/gamma-app-controller.mjs +292 -189
  24. package/fesm2020/gamma-app-controller.mjs.map +1 -1
  25. package/lib/application-controller/application-dataset-component/dataset-query-bulder/dataset-query-bulder.component.d.ts +0 -1
  26. package/lib/application-controller/tokenStorage.servce.d.ts +12 -0
  27. package/lib/shared/advanced-component/app-advance-header/app-header.component.d.ts +3 -1
  28. package/lib/template-module/bookmarked-template/bookmarked-template.component.d.ts +3 -1
  29. package/lib/template-module/defaulLandingComponent/landing-component.component.d.ts +3 -1
  30. package/lib/template-module/kpiWithMultiLayout/kpi-with-multilayout.component.d.ts +4 -2
  31. package/lib/template-module/{kpiWithSingleLayout → kpiWithMultiLayout}/multi-layout-dataset-call.service.d.ts +1 -1
  32. package/lib/template-module/kpiWithSingleLayout/application-chat-api-call.service.d.ts +18 -0
  33. package/lib/template-module/kpiWithSingleLayout/kpi-with-dataset.component.d.ts +16 -2
  34. package/lib/template-module/{kpiWithMultiLayout → kpiWithSingleLayout}/single-layout-dataset-call.service.d.ts +4 -2
  35. package/package.json +1 -1
  36. package/public-api.d.ts +4 -2
  37. package/esm2020/lib/template-module/kpiWithMultiLayout/single-layout-dataset-call.service.mjs +0 -364
  38. package/esm2020/lib/template-module/kpiWithSingleLayout/multi-layout-dataset-call.service.mjs +0 -364
@@ -35,7 +35,6 @@ export declare class DatasetQueryBulderComponent implements OnInit {
35
35
  deleteReconColume(i: any): void;
36
36
  saveReconsColume(): void;
37
37
  saveColumnsAndMasures(): void;
38
- saveDataToStore(): void;
39
38
  transformColumnsForMesurs(inputColumns: any): any[];
40
39
  addFilter(): void;
41
40
  deleteFilter(i: any): void;
@@ -0,0 +1,12 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class AppLocalStorage {
3
+ private environment;
4
+ constructor(environment: any);
5
+ save(type: any, token: any): void;
6
+ get(type: any): string;
7
+ delete(type: any): string;
8
+ destroy(): void;
9
+ getAppVariableName(attributeName: string): string;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppLocalStorage, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<AppLocalStorage>;
12
+ }
@@ -1,11 +1,13 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { ActivatedRoute, Router } from '@angular/router';
3
3
  import { CommonService } from '../../../application-controller/common';
4
+ import { AppLocalStorage } from '../../../application-controller/tokenStorage.servce';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class AppAdvanceHeaderComponent implements OnInit {
6
7
  private activatedRoute;
7
8
  private route;
8
9
  private commonService;
10
+ private storage;
9
11
  pageTitle: string;
10
12
  bread_crumbs_container: any;
11
13
  isEditButton: boolean;
@@ -37,7 +39,7 @@ export declare class AppAdvanceHeaderComponent implements OnInit {
37
39
  getFilterPageConfig: EventEmitter<any>;
38
40
  getOperatorName: EventEmitter<any>;
39
41
  getContextFilterData: EventEmitter<any>;
40
- constructor(activatedRoute: ActivatedRoute, route: Router, commonService: CommonService);
42
+ constructor(activatedRoute: ActivatedRoute, route: Router, commonService: CommonService, storage: AppLocalStorage);
41
43
  filterItemsForFilter: any;
42
44
  operatorLogo: string;
43
45
  set filterItems(value: any);
@@ -11,6 +11,7 @@ import { AdvanceWidgetHeaderFilterComponent } from '../../shared/advanced-compon
11
11
  import { BookmarkedApplicationDatssetsCall } from './bookmarked-dataset-call.service';
12
12
  import { ToastrService } from 'ngx-toastr';
13
13
  import { BookmarkedService } from './bookmarked-layout.service';
14
+ import { AppLocalStorage } from '../../application-controller/tokenStorage.servce';
14
15
  import * as i0 from "@angular/core";
15
16
  export declare class BookmarkedTemplateComponent implements OnInit {
16
17
  commonService: CommonService;
@@ -21,6 +22,7 @@ export declare class BookmarkedTemplateComponent implements OnInit {
21
22
  private toastr;
22
23
  private router;
23
24
  private datasetService;
25
+ private storage;
24
26
  dashbord_container: any;
25
27
  selected_width: any;
26
28
  widget_width: string[];
@@ -78,7 +80,7 @@ export declare class BookmarkedTemplateComponent implements OnInit {
78
80
  globalDefaultFilter: any;
79
81
  pageId: any;
80
82
  kpi_breadcrumbs_container: any;
81
- constructor(commonService: CommonService, activatedRoute: ActivatedRoute, viewContainerRef: ViewContainerRef, componentFactoryResolver: ComponentFactoryResolver, service: BookmarkedService, toastr: ToastrService, router: Router, datasetService: BookmarkedApplicationDatssetsCall);
83
+ constructor(commonService: CommonService, activatedRoute: ActivatedRoute, viewContainerRef: ViewContainerRef, componentFactoryResolver: ComponentFactoryResolver, service: BookmarkedService, toastr: ToastrService, router: Router, datasetService: BookmarkedApplicationDatssetsCall, storage: AppLocalStorage);
82
84
  ngOnInit(): void;
83
85
  getFiltersForTemplate(filter: any): Promise<void>;
84
86
  getPadeDataSource(context: any): Promise<void>;
@@ -11,6 +11,7 @@ import { AdvanceWidgetHeaderFilterComponent } from '../../shared/advanced-compon
11
11
  import { ToastrService } from 'ngx-toastr';
12
12
  import { LandingComponentService } from './landing-component.service';
13
13
  import { LandingApplicationDatssetsCall } from './landing-dataset-call.service';
14
+ import { AppLocalStorage } from '../../application-controller/tokenStorage.servce';
14
15
  import * as i0 from "@angular/core";
15
16
  export declare class LandingComponentComponent implements OnInit {
16
17
  commonService: CommonService;
@@ -21,6 +22,7 @@ export declare class LandingComponentComponent implements OnInit {
21
22
  private toastr;
22
23
  private router;
23
24
  private datasetService;
25
+ private storage;
24
26
  dashbord_container: any;
25
27
  selected_width: any;
26
28
  widget_width: string[];
@@ -78,7 +80,7 @@ export declare class LandingComponentComponent implements OnInit {
78
80
  globalDefaultFilter: any;
79
81
  pageId: any;
80
82
  kpi_breadcrumbs_container: any;
81
- constructor(commonService: CommonService, activatedRoute: ActivatedRoute, viewContainerRef: ViewContainerRef, componentFactoryResolver: ComponentFactoryResolver, service: LandingComponentService, toastr: ToastrService, router: Router, datasetService: LandingApplicationDatssetsCall);
83
+ constructor(commonService: CommonService, activatedRoute: ActivatedRoute, viewContainerRef: ViewContainerRef, componentFactoryResolver: ComponentFactoryResolver, service: LandingComponentService, toastr: ToastrService, router: Router, datasetService: LandingApplicationDatssetsCall, storage: AppLocalStorage);
82
84
  ngOnInit(): void;
83
85
  getFiltersForTemplate(filter: any): Promise<void>;
84
86
  getPadeDataSource(context: any): Promise<void>;
@@ -11,8 +11,9 @@ import { GammaAdvanceOperatorTableComponent } from '../../shared/advanced-compon
11
11
  import { AdvanceWidgetHeaderFilterComponent } from '../../shared/advanced-component/advance-widget-header-filter/advance-widget-header-filter.component';
12
12
  import { GammaGeoChartComponent } from '../../shared/advanced-component/gamma-geo-chart/gamma-geo-chart.component';
13
13
  import { GammaHeatChartComponent } from '../../shared/advanced-component/gamma-heatmap/gamma-heatmap.component';
14
- import { SingleLayoutApplicationDatssetsCall } from './single-layout-dataset-call.service';
15
14
  import { KpiWithMultiLayoutService } from './kpi-multi-layout.service';
15
+ import { MultilayoutApplicationDatssetsCall } from './multi-layout-dataset-call.service';
16
+ import { AppLocalStorage } from '../../application-controller/tokenStorage.servce';
16
17
  import * as i0 from "@angular/core";
17
18
  export declare class KpiWithMultilayoutSetTestComponent implements OnInit {
18
19
  commonService: CommonService;
@@ -23,6 +24,7 @@ export declare class KpiWithMultilayoutSetTestComponent implements OnInit {
23
24
  private toastr;
24
25
  private router;
25
26
  private datasetService;
27
+ private storage;
26
28
  dashbord_container: any;
27
29
  selected_width: any;
28
30
  widget_width: string[];
@@ -83,7 +85,7 @@ export declare class KpiWithMultilayoutSetTestComponent implements OnInit {
83
85
  pageId: any;
84
86
  kpi_breadcrumbs_container: any;
85
87
  operatorName: any;
86
- constructor(commonService: CommonService, activatedRoute: ActivatedRoute, viewContainerRef: ViewContainerRef, componentFactoryResolver: ComponentFactoryResolver, service: KpiWithMultiLayoutService, toastr: ToastrService, router: Router, datasetService: SingleLayoutApplicationDatssetsCall);
88
+ constructor(commonService: CommonService, activatedRoute: ActivatedRoute, viewContainerRef: ViewContainerRef, componentFactoryResolver: ComponentFactoryResolver, service: KpiWithMultiLayoutService, toastr: ToastrService, router: Router, datasetService: MultilayoutApplicationDatssetsCall, storage: AppLocalStorage);
87
89
  ngOnInit(): void;
88
90
  getFiltersForTemplate(filter: any): Promise<void>;
89
91
  getPadeDataSource(context: any): Promise<void>;
@@ -1,5 +1,5 @@
1
1
  import { ToastrService } from 'ngx-toastr';
2
- import { KpiWithSingleLayoutService } from './kpi-single-layout.service';
2
+ import { KpiWithSingleLayoutService } from '../kpiWithSingleLayout/kpi-single-layout.service';
3
3
  import { kpicommonService } from '../../application-controller/kpi-service';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class MultilayoutApplicationDatssetsCall {
@@ -0,0 +1,18 @@
1
+ import { ToastrService } from 'ngx-toastr';
2
+ import { ActivatedRoute } from '@angular/router';
3
+ import { KpiWithSingleLayoutService } from './kpi-single-layout.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ApplicationChatApiCallService {
6
+ private service;
7
+ private toastr;
8
+ private activatedRoute;
9
+ private environment;
10
+ uniqueDataSetObject: {};
11
+ private viewId;
12
+ viewId$: import("rxjs").Observable<any>;
13
+ constructor(service: KpiWithSingleLayoutService, toastr: ToastrService, activatedRoute: ActivatedRoute, environment: any);
14
+ getViewId(params: any): void;
15
+ getDataForChatAi(pageId: any, contentView: any, appliedFilters: any): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<ApplicationChatApiCallService, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<ApplicationChatApiCallService>;
18
+ }
@@ -11,8 +11,10 @@ import { GammaAdvanceOperatorTableComponent } from '../../shared/advanced-compon
11
11
  import { AdvanceWidgetHeaderFilterComponent } from '../../shared/advanced-component/advance-widget-header-filter/advance-widget-header-filter.component';
12
12
  import { GammaGeoChartComponent } from '../../shared/advanced-component/gamma-geo-chart/gamma-geo-chart.component';
13
13
  import { GammaHeatChartComponent } from '../../shared/advanced-component/gamma-heatmap/gamma-heatmap.component';
14
- import { MultilayoutApplicationDatssetsCall } from './multi-layout-dataset-call.service';
15
14
  import { KpiWithSingleLayoutService } from './kpi-single-layout.service';
15
+ import { SingleLayoutApplicationDatssetsCall } from './single-layout-dataset-call.service';
16
+ import { ApplicationChatApiCallService } from './application-chat-api-call.service';
17
+ import { AppLocalStorage } from '../../application-controller/tokenStorage.servce';
16
18
  import * as i0 from "@angular/core";
17
19
  export declare class KpiWithDataSetTestComponent implements OnInit {
18
20
  commonService: CommonService;
@@ -23,6 +25,8 @@ export declare class KpiWithDataSetTestComponent implements OnInit {
23
25
  private toastr;
24
26
  private router;
25
27
  private datasetService;
28
+ private chatApiService;
29
+ private storage;
26
30
  dashbord_container: any;
27
31
  selected_width: any;
28
32
  widget_width: string[];
@@ -85,9 +89,17 @@ export declare class KpiWithDataSetTestComponent implements OnInit {
85
89
  kpi_breadcrumbs_container: any;
86
90
  operatorName: any;
87
91
  defaultViewIds: any;
92
+ defaultViewIdsOnPageRefresh: any;
88
93
  isPopupView: boolean;
89
94
  modalConfigs: any;
90
- constructor(commonService: CommonService, activatedRoute: ActivatedRoute, viewContainerRef: ViewContainerRef, componentFactoryResolver: ComponentFactoryResolver, service: KpiWithSingleLayoutService, toastr: ToastrService, router: Router, datasetService: MultilayoutApplicationDatssetsCall);
95
+ defaultMatchedFilters: {
96
+ operationFilter: {
97
+ startDate: string;
98
+ endDate: string;
99
+ };
100
+ };
101
+ isDefaultFilterParams: boolean;
102
+ constructor(commonService: CommonService, activatedRoute: ActivatedRoute, viewContainerRef: ViewContainerRef, componentFactoryResolver: ComponentFactoryResolver, service: KpiWithSingleLayoutService, toastr: ToastrService, router: Router, datasetService: SingleLayoutApplicationDatssetsCall, chatApiService: ApplicationChatApiCallService, storage: AppLocalStorage);
91
103
  ngOnInit(): void;
92
104
  getFiltersForTemplate(filter: any): Promise<void>;
93
105
  getPadeDataSource(context: any): Promise<void>;
@@ -105,6 +117,7 @@ export declare class KpiWithDataSetTestComponent implements OnInit {
105
117
  getViewByRowCLickForHourlyChart(event: any, node: any): void;
106
118
  getModalViewByRowCLick(event: any, view: any): Promise<void>;
107
119
  getViewByRowCLick(event: any, view: any): Promise<void>;
120
+ getFiltersForQueryParams(operators: any, filters: any): void;
108
121
  scrollToBottom(container: HTMLElement): void;
109
122
  findWidgetById(configs: any[], id: string): any | undefined;
110
123
  updateOperatorData(key_name: string[], value_data: any): any;
@@ -117,6 +130,7 @@ export declare class KpiWithDataSetTestComponent implements OnInit {
117
130
  loadDataByOperator(opName: any): Promise<void>;
118
131
  getContextFilterData(value: any): Promise<void>;
119
132
  parseInput(input: any): any;
133
+ getDrilldownDisplayByUrlParams(all_views: any): void;
120
134
  static ɵfac: i0.ɵɵFactoryDeclaration<KpiWithDataSetTestComponent, never>;
121
135
  static ɵcmp: i0.ɵɵComponentDeclaration<KpiWithDataSetTestComponent, "app-kpi-with-dataset", never, {}, {}, never, never, false>;
122
136
  }
@@ -1,14 +1,16 @@
1
1
  import { ToastrService } from 'ngx-toastr';
2
2
  import { kpicommonService } from '../../application-controller/kpi-service';
3
- import { KpiWithMultiLayoutService } from './kpi-multi-layout.service';
3
+ import { KpiWithMultiLayoutService } from '../kpiWithMultiLayout/kpi-multi-layout.service';
4
+ import { Router } from '@angular/router';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class SingleLayoutApplicationDatssetsCall {
6
7
  private service;
7
8
  private kpiService;
8
9
  private toastr;
10
+ private router;
9
11
  private environment;
10
12
  uniqueDataSetObject: {};
11
- constructor(service: KpiWithMultiLayoutService, kpiService: kpicommonService, toastr: ToastrService, environment: any);
13
+ constructor(service: KpiWithMultiLayoutService, kpiService: kpicommonService, toastr: ToastrService, router: Router, environment: any);
12
14
  getDataFromDataSet(dataset: any, datasetId: any, filters: any): Promise<void>;
13
15
  getDataSetForMongo(dataset: any, datasetId: any): Promise<void>;
14
16
  getDatasetForImpala(dataset: any, datasetId: any, filters: any): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gamma-app-controller",
3
- "version": "1.1.29",
3
+ "version": "1.2.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.0.0",
6
6
  "@angular/core": "^14.0.0",
package/public-api.d.ts CHANGED
@@ -45,6 +45,7 @@ export * from './lib/application-controller/kpi-service';
45
45
  export * from './lib/application-controller/app.http.service';
46
46
  export * from './lib/gamma-app-controller.service';
47
47
  export * from './lib/application-controller/application-content.service';
48
+ export * from './lib/application-controller/tokenStorage.servce';
48
49
  export * from './lib/shared/safeHtmlPipe';
49
50
  export * from './lib/application-controller/application-dataset-component/create-dataset-sql/sqlFormatter';
50
51
  export * from './lib/shared/advanced-component/gamma-table-with-percentage/contentSafeHtml';
@@ -74,12 +75,13 @@ export * from './lib/template-module/kpiWithSingleLayout/kpiWithSingleLayout.mod
74
75
  export * from './lib/template-module/kpiWithSingleLayout/kpi-with-dataset.component';
75
76
  export * from './lib/template-module/kpiWithSingleLayout/dynamin-modal.component';
76
77
  export * from './lib/template-module/kpiWithSingleLayout/kpi-single-layout.service';
77
- export * from './lib/template-module/kpiWithSingleLayout/kpi-single-layout.service';
78
+ export * from './lib/template-module/kpiWithSingleLayout/application-chat-api-call.service';
79
+ export * from './lib/template-module/kpiWithSingleLayout/single-layout-dataset-call.service';
78
80
  export * from './lib/template-module/kpiWithMultiLayout/dynamin-modal-multi.component';
79
81
  export * from './lib/template-module/kpiWithMultiLayout/kpi-with-multilayout.component';
80
82
  export * from './lib/template-module/kpiWithMultiLayout/kpiWithMultiayout.module';
81
83
  export * from './lib/template-module/kpiWithMultiLayout/kpi-multi-layout.service';
82
- export * from './lib/template-module/kpiWithMultiLayout/single-layout-dataset-call.service';
84
+ export * from './lib/template-module/kpiWithMultiLayout/multi-layout-dataset-call.service';
83
85
  export * from './lib/template-module/defaulLandingComponent/landing-component.component';
84
86
  export * from './lib/template-module/defaulLandingComponent/defaultLandingComponent.module';
85
87
  export * from './lib/template-module/defaulLandingComponent/landing-component.service';