mmhglobal-dynamicform 2.12.3 → 2.13.0
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.
- package/README.md +12 -0
- package/esm2020/lib/services/main.service.mjs +77 -73
- package/esm2020/lib/services/zcomponent.debug.service.mjs +43 -13
- package/esm2020/lib/uipage/uipage.component.mjs +2 -2
- package/esm2020/lib/zgrid/zgrid.binding.directive.mjs +525 -275
- package/esm2020/lib/zgrid/zgrid.component.mjs +144 -268
- package/esm2020/lib/zgrid/zgrid.service.mjs +109 -0
- package/esm2020/lib/zselectmultiple/zselectmultiple.component.mjs +42 -10
- package/esm2020/lib/ztree/ztree.component.mjs +57 -13
- package/fesm2015/mmhglobal-dynamicform.mjs +4710 -4367
- package/fesm2015/mmhglobal-dynamicform.mjs.map +1 -1
- package/fesm2020/mmhglobal-dynamicform.mjs +4752 -4416
- package/fesm2020/mmhglobal-dynamicform.mjs.map +1 -1
- package/lib/services/main.service.d.ts +5 -4
- package/lib/services/zcomponent.debug.service.d.ts +3 -2
- package/lib/zgrid/zgrid.binding.directive.d.ts +114 -20
- package/lib/zgrid/zgrid.component.d.ts +16 -21
- package/lib/zgrid/zgrid.service.d.ts +33 -0
- package/lib/zselectmultiple/zselectmultiple.component.d.ts +14 -2
- package/lib/ztree/ztree.component.d.ts +7 -2
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ import { DialogRef, DialogService, DialogSettings } from '@progress/kendo-angula
|
|
|
8
8
|
/********** Component & Service **********/
|
|
9
9
|
import { ZComponentDebugService } from './zcomponent.debug.service';
|
|
10
10
|
import { ModalService, ModalResponse } from 'mmhglobal-zmodal';
|
|
11
|
-
import { AlertService, CacheService, FieldService, ResourceApiService, TranslationService, WebApiService, StorageSessionService, OAuth2Service, SignalrService, ComponentErrorHandlerService, ZComponentOutputEvent,
|
|
11
|
+
import { AlertService, ModalPageParams, CacheService, FieldService, ResourceApiService, TranslationService, WebApiService, StorageSessionService, OAuth2Service, SignalrService, ComponentErrorHandlerService, ZComponentOutputEvent, ZCoreService, ZField, ZGroup, ToastService, AuthService } from 'mmhglobal-zcore';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
13
|
export declare class MainService {
|
|
14
14
|
private router;
|
|
@@ -29,8 +29,8 @@ export declare class MainService {
|
|
|
29
29
|
private signalrService;
|
|
30
30
|
private dialogService;
|
|
31
31
|
private oauth2Service;
|
|
32
|
-
private sharepointService;
|
|
33
32
|
private toastService;
|
|
33
|
+
private authService;
|
|
34
34
|
private group;
|
|
35
35
|
private oauthEnvironmentUrl;
|
|
36
36
|
private environment;
|
|
@@ -44,7 +44,7 @@ export declare class MainService {
|
|
|
44
44
|
private NAVIGATED_RELOAD_GRID_STORAGE_KEY;
|
|
45
45
|
private CLONE_NEW_MODEL_CACHE_KEY;
|
|
46
46
|
private readonly secretKey;
|
|
47
|
-
constructor(router: Router, activatedRoute: ActivatedRoute, modalCtrl: ModalController, navController: NavController, alertService: AlertService, cacheService: CacheService, fieldService: FieldService, resourceApiService: ResourceApiService, componentErrorHandlerService: ComponentErrorHandlerService, webApiService: WebApiService, zcoreService: ZCoreService, modalService: ModalService, storageService: StorageSessionService, debugService: ZComponentDebugService, translationService: TranslationService, signalrService: SignalrService, dialogService: DialogService, oauth2Service: OAuth2Service,
|
|
47
|
+
constructor(router: Router, activatedRoute: ActivatedRoute, modalCtrl: ModalController, navController: NavController, alertService: AlertService, cacheService: CacheService, fieldService: FieldService, resourceApiService: ResourceApiService, componentErrorHandlerService: ComponentErrorHandlerService, webApiService: WebApiService, zcoreService: ZCoreService, modalService: ModalService, storageService: StorageSessionService, debugService: ZComponentDebugService, translationService: TranslationService, signalrService: SignalrService, dialogService: DialogService, oauth2Service: OAuth2Service, toastService: ToastService, authService: AuthService);
|
|
48
48
|
getListFieldName: (fieldName: string) => Observable<string>;
|
|
49
49
|
clearFormListFields: () => void;
|
|
50
50
|
dialogOpen(options: DialogSettings): DialogRef;
|
|
@@ -109,7 +109,7 @@ export declare class MainService {
|
|
|
109
109
|
private afterDeleteModel;
|
|
110
110
|
afterCloneNewModel(group: ZGroup, zmodel: any): Observable<any>;
|
|
111
111
|
afterPageInitialise(group: ZGroup): Observable<any>;
|
|
112
|
-
showzModal(
|
|
112
|
+
showzModal(modalPageParams: ModalPageParams): Observable<ModalResponse>;
|
|
113
113
|
cookieStorePost(name: string, value: any): Observable<any>;
|
|
114
114
|
cookieStoreGet(name: string, accessToken: string): Observable<any>;
|
|
115
115
|
cookieStoreDeleteMultiple(name: string): Observable<any>;
|
|
@@ -118,6 +118,7 @@ export declare class MainService {
|
|
|
118
118
|
joinProjectSignalR(projectCode?: string): void;
|
|
119
119
|
handleSignalRModificationAlert(formId: string): void;
|
|
120
120
|
private alertFormModified;
|
|
121
|
+
private reloadDataAndWorkflowButton;
|
|
121
122
|
loadContainerView(elementContainer: any, containerPage: any, data: ZField, group?: ZGroup): Promise<void>;
|
|
122
123
|
scrollToEmbbedComponentPage(milliSeconds?: number): Promise<void>;
|
|
123
124
|
scrollToTopOfPage(milliSeconds?: number): Promise<void>;
|
|
@@ -2,8 +2,8 @@ import { Router } from '@angular/router';
|
|
|
2
2
|
/********** Plugin **********/
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
/********** Component & Service **********/
|
|
5
|
-
import { AlertService, AuthService, ComponentErrorHandlerService, FieldService, ResourceApiService, SignalrService, ToastService, WebApiService, ZComponentOutputEvent, ZField, ZGroup } from "mmhglobal-zcore";
|
|
6
|
-
import { ModalService } from 'mmhglobal-zmodal';
|
|
5
|
+
import { AlertService, AuthService, ComponentErrorHandlerService, FieldService, ModalPageParams, ResourceApiService, SignalrService, ToastService, WebApiService, ZComponentOutputEvent, ZField, ZGroup } from "mmhglobal-zcore";
|
|
6
|
+
import { ModalResponse, ModalService } from 'mmhglobal-zmodal';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class ZComponentDebugService {
|
|
9
9
|
private router;
|
|
@@ -57,6 +57,7 @@ export declare class ZComponentDebugService {
|
|
|
57
57
|
private gridWorkflowButtonOnItemClick;
|
|
58
58
|
handleSuccess(res: Response | any, successMsg: string): Response;
|
|
59
59
|
handleError(res: any): Observable<any>;
|
|
60
|
+
showzModal(modalPageParams: ModalPageParams): Observable<ModalResponse>;
|
|
60
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<ZComponentDebugService, never>;
|
|
61
62
|
static ɵprov: i0.ɵɵInjectableDeclaration<ZComponentDebugService>;
|
|
62
63
|
}
|
|
@@ -2,70 +2,164 @@
|
|
|
2
2
|
import { OnInit, OnDestroy } from "@angular/core";
|
|
3
3
|
/********** Ionic **********/
|
|
4
4
|
/********** Plugin **********/
|
|
5
|
-
import { Router } from "@angular/router";
|
|
6
5
|
import { Observable, Subject } from "rxjs";
|
|
7
6
|
import { DataBindingDirective, DataStateChangeEvent, PageChangeEvent } from "@progress/kendo-angular-grid";
|
|
8
|
-
import { SortDescriptor
|
|
7
|
+
import { SortDescriptor } from "@progress/kendo-data-query";
|
|
9
8
|
/********** Component & Service **********/
|
|
10
|
-
import {
|
|
9
|
+
import { ZGridService } from "./zgrid.service";
|
|
10
|
+
import { ZField, ZGridPostApiParams, WebApiService, ZGroup, ToastService, OfflineDatabaseService, SignalrService, ZGridSettings } from "mmhglobal-zcore";
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export declare class ZGridBindingDirective extends DataBindingDirective implements OnInit, OnDestroy {
|
|
13
13
|
private webapiService;
|
|
14
14
|
private toastService;
|
|
15
|
-
private
|
|
16
|
-
private
|
|
17
|
-
private
|
|
18
|
-
private
|
|
19
|
-
private cacheService;
|
|
20
|
-
private serviceSubscription;
|
|
15
|
+
private offlineDatabaseService;
|
|
16
|
+
private signalrService;
|
|
17
|
+
private gridService;
|
|
18
|
+
private changeEvent;
|
|
21
19
|
zgridbinding: {
|
|
22
20
|
data: ZField;
|
|
23
21
|
group: ZGroup;
|
|
24
22
|
params: ZGridPostApiParams;
|
|
25
23
|
gridSubject: Subject<any>;
|
|
24
|
+
gridSetting: ZGridSettings;
|
|
26
25
|
};
|
|
27
|
-
state: State;
|
|
28
|
-
gridColumns: any[];
|
|
29
|
-
usableColumns: any[];
|
|
30
26
|
resourceURL: any;
|
|
31
27
|
paginationApiPostUrl: any;
|
|
32
28
|
dataSource: any;
|
|
29
|
+
get gridSetting(): ZGridSettings;
|
|
30
|
+
set gridSetting(value: ZGridSettings);
|
|
33
31
|
get field(): ZField;
|
|
34
32
|
get grp(): ZGroup;
|
|
35
33
|
get gridSubject(): Subject<any>;
|
|
36
34
|
get params(): ZGridPostApiParams;
|
|
37
35
|
get getData(): any[] | import("@progress/kendo-angular-grid").GridDataResult;
|
|
38
|
-
constructor(grid: any,
|
|
36
|
+
constructor(grid: any, // Injecting GridComponent provides access to the scope and context of the GridComponent.
|
|
37
|
+
webapiService: WebApiService, toastService: ToastService, offlineDatabaseService: OfflineDatabaseService, signalrService: SignalrService, gridService: ZGridService);
|
|
39
38
|
ngOnInit(): void;
|
|
39
|
+
ngAfterViewInit(): void;
|
|
40
|
+
ngOnDestroy(): void;
|
|
41
|
+
setResourceUrl(resourceUrl: string): void;
|
|
40
42
|
private setFilterParamsByParentRefId;
|
|
41
43
|
private getFieldReferenceId;
|
|
42
|
-
ngOnDestroy(): void;
|
|
43
44
|
generateGridColumns(): void;
|
|
44
45
|
setSkipLoadResourceURLData(settingValue: boolean): void;
|
|
46
|
+
/**
|
|
47
|
+
* Update the title of a column in the grid setting based on its value.
|
|
48
|
+
*
|
|
49
|
+
* @param {string} colValue - The value of the column to update.
|
|
50
|
+
* @param {string} colName - The new title for the column.
|
|
51
|
+
* @returns {void}
|
|
52
|
+
*/
|
|
45
53
|
setColumnName(colValue: string, colName: string): void;
|
|
46
|
-
|
|
54
|
+
/**
|
|
55
|
+
* Set the visibility of a column in the grid based on its value.
|
|
56
|
+
*
|
|
57
|
+
* @param {string} colValue - The value of the column to set visibility for.
|
|
58
|
+
* @param {boolean} isVisible - Whether the column should be visible (true) or hidden (false).
|
|
59
|
+
* @returns {void}
|
|
60
|
+
*/
|
|
61
|
+
setColumnVisible(colValue: string, isVisible: boolean): void;
|
|
62
|
+
/**
|
|
63
|
+
* Generate filter parameters for columns and set them in the 'params' object.
|
|
64
|
+
*
|
|
65
|
+
* @returns {void}
|
|
66
|
+
*/
|
|
47
67
|
private getFilterParamsColumns;
|
|
68
|
+
/**
|
|
69
|
+
* Update the 'params.filters' property based on the 'field.Filters' property.
|
|
70
|
+
*
|
|
71
|
+
* @returns {void}
|
|
72
|
+
*/
|
|
48
73
|
private getFilter;
|
|
74
|
+
/**
|
|
75
|
+
* Set the filter parameters in the 'params.filterParams' property based on 'field['FilterParams']'. filterParams === used for the input in the column filter at the UI.
|
|
76
|
+
*
|
|
77
|
+
* @returns {void}
|
|
78
|
+
*/
|
|
49
79
|
private getFilterParams;
|
|
80
|
+
/**
|
|
81
|
+
* Set the sorting order in the 'params.sortOrder' property based on 'field.SortOrder'.
|
|
82
|
+
*
|
|
83
|
+
* @returns {void}
|
|
84
|
+
*/
|
|
50
85
|
private getSorting;
|
|
86
|
+
/**
|
|
87
|
+
* Set the grant type in the 'params.grantType' property based on 'field.GrantType'.
|
|
88
|
+
*
|
|
89
|
+
* @returns {void}
|
|
90
|
+
*/
|
|
51
91
|
private getGrantType;
|
|
92
|
+
/**
|
|
93
|
+
* Set the 'hidden' property for columns in 'gridSetting' based on 'columnConfigs'.
|
|
94
|
+
*
|
|
95
|
+
* @param {ZGridColumnConfigs[]} columnConfigs - The column configuration settings.
|
|
96
|
+
* @returns {void}
|
|
97
|
+
*/
|
|
52
98
|
private setHiddenColumn;
|
|
53
|
-
|
|
99
|
+
/**
|
|
100
|
+
* Retrieve data for data binding.
|
|
101
|
+
*
|
|
102
|
+
* @param {boolean} skipUseCache - Whether to skip using cache for data retrieval.
|
|
103
|
+
* @returns {Promise<void>}
|
|
104
|
+
*/
|
|
105
|
+
getDataBinding(skipUseCache?: boolean): Promise<void>;
|
|
106
|
+
/**
|
|
107
|
+
* Retrieve grid data.
|
|
108
|
+
*
|
|
109
|
+
* @returns {void}
|
|
110
|
+
*/
|
|
111
|
+
private getGridData;
|
|
54
112
|
private handleGetDataBindingComplete;
|
|
55
|
-
private
|
|
113
|
+
private resetChangeEventFlag;
|
|
114
|
+
private cacheGridData;
|
|
115
|
+
private subscribeCacheDataChanges;
|
|
116
|
+
handleReceivedMessage(group: ZGroup, result: any, eventName: string): Promise<void>;
|
|
56
117
|
private afterDataBinded;
|
|
57
118
|
clearData(): void;
|
|
119
|
+
/**
|
|
120
|
+
* Handle column aggregation for the given data.
|
|
121
|
+
*
|
|
122
|
+
* @param {any[]} data - The data to aggregate.
|
|
123
|
+
* @returns {void}
|
|
124
|
+
*/
|
|
58
125
|
private aggregateHandling;
|
|
126
|
+
/**
|
|
127
|
+
* Reset aggregate values for columns with aggregate types.
|
|
128
|
+
*
|
|
129
|
+
* @returns {void}
|
|
130
|
+
*/
|
|
59
131
|
private aggregateResetValue;
|
|
132
|
+
/**
|
|
133
|
+
* Handle page change event.
|
|
134
|
+
*
|
|
135
|
+
* @param {PageChangeEvent} event - The page change event.
|
|
136
|
+
* @returns {void}
|
|
137
|
+
*/
|
|
60
138
|
pageChange(event: PageChangeEvent): void;
|
|
139
|
+
/**
|
|
140
|
+
* Handle sort change event.
|
|
141
|
+
*
|
|
142
|
+
* @param {SortDescriptor[]} sort - The sort descriptor array.
|
|
143
|
+
* @returns {void}
|
|
144
|
+
*/
|
|
61
145
|
sortChange(sort: SortDescriptor[]): void;
|
|
146
|
+
/**
|
|
147
|
+
* Handle filter change event.
|
|
148
|
+
*
|
|
149
|
+
* @param {any} event - The filter change event.
|
|
150
|
+
* @returns {void}
|
|
151
|
+
*/
|
|
62
152
|
filterChange(event: any): void;
|
|
63
153
|
dataStateChange(state: DataStateChangeEvent): void;
|
|
154
|
+
/**
|
|
155
|
+
* Map filter operator to its corresponding value.
|
|
156
|
+
*
|
|
157
|
+
* @param {string} operator - The filter operator.
|
|
158
|
+
* @returns {string} - The mapped filter operator value.
|
|
159
|
+
*/
|
|
64
160
|
private mapFilterOperator;
|
|
65
|
-
private
|
|
161
|
+
private getPageNo;
|
|
66
162
|
beforeGridGetData(group: ZGroup, me: any): Observable<any>;
|
|
67
|
-
private getGridSessionFilter;
|
|
68
|
-
private setGridSessionFilter;
|
|
69
163
|
setColumns(columns: any[]): void;
|
|
70
164
|
static ɵfac: i0.ɵɵFactoryDeclaration<ZGridBindingDirective, never>;
|
|
71
165
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ZGridBindingDirective, "[zgridbinding]", never, { "zgridbinding": "zgridbinding"; }, {}, never>;
|
|
@@ -9,14 +9,15 @@ import { ExcelExportData } from '@progress/kendo-angular-excel-export';
|
|
|
9
9
|
import { GridItem, SelectableSettings } from '@progress/kendo-angular-grid';
|
|
10
10
|
import { SortDescriptor, State } from "@progress/kendo-data-query";
|
|
11
11
|
import { TooltipDirective } from '@progress/kendo-angular-tooltip';
|
|
12
|
-
import { GridDataResult, DataStateChangeEvent, PageChangeEvent, CellClickEvent, RowArgs
|
|
12
|
+
import { GridDataResult, DataStateChangeEvent, PageChangeEvent, CellClickEvent, RowArgs } from "@progress/kendo-angular-grid";
|
|
13
13
|
/********** Component & Service **********/
|
|
14
14
|
import { DataListingFieldBase } from "../components/datalistingfieldbase.component";
|
|
15
15
|
import { ZComponentService } from "../services/zcomponent.service";
|
|
16
16
|
import { MainService } from "../services/main.service";
|
|
17
|
-
import { ZGridBindingDirective } from "./zgrid.binding.directive";
|
|
18
17
|
import { ElementContainerDirective } from "../directives/elementcontainer.directive";
|
|
19
|
-
import {
|
|
18
|
+
import { ZGridBindingDirective } from "./zgrid.binding.directive";
|
|
19
|
+
import { WebApiService, ToastService, ZField, ZGroup, ZComponent, ZComponentOutputEvent, ZCoreService, StorageSessionService, FontAweSomeService, ZGridPostApiParams, ZGridSettings, ZGridCustomColumn, OfflineDatabaseService } from 'mmhglobal-zcore';
|
|
20
|
+
import { ZGridService } from "./zgrid.service";
|
|
20
21
|
import * as i0 from "@angular/core";
|
|
21
22
|
export interface ZGrid {
|
|
22
23
|
params: ZGridPostApiParams;
|
|
@@ -41,15 +42,14 @@ export declare class ZgridComponent extends DataListingFieldBase implements ZCom
|
|
|
41
42
|
private activatedRoute;
|
|
42
43
|
private router;
|
|
43
44
|
private formBuilder;
|
|
44
|
-
private authService;
|
|
45
45
|
private webApiService;
|
|
46
|
-
private zGridStatePersistingService;
|
|
47
46
|
private toastService;
|
|
48
47
|
private zcoreService;
|
|
49
48
|
private storageService;
|
|
50
49
|
private mainService;
|
|
51
|
-
private cacheService;
|
|
52
50
|
private cdr;
|
|
51
|
+
private gridService;
|
|
52
|
+
private offlineDatabaseService;
|
|
53
53
|
tooltipDir: TooltipDirective;
|
|
54
54
|
elementContainer: ElementContainerDirective;
|
|
55
55
|
zgrid: any;
|
|
@@ -69,11 +69,11 @@ export declare class ZgridComponent extends DataListingFieldBase implements ZCom
|
|
|
69
69
|
isInlineEditInputFieldLoading: boolean;
|
|
70
70
|
private tempInlineEditedFormGroups;
|
|
71
71
|
private isColumnHeaderTranslated;
|
|
72
|
-
|
|
72
|
+
showRestoreGridSettingButton: boolean;
|
|
73
73
|
params: ZGridPostApiParams;
|
|
74
74
|
gridSubject: Subject<any>;
|
|
75
75
|
columns: any[];
|
|
76
|
-
|
|
76
|
+
generateHiddenColumnsField: any[];
|
|
77
77
|
editableColumns: any[];
|
|
78
78
|
subscription: Subscription;
|
|
79
79
|
pageSizes: boolean | any[];
|
|
@@ -81,14 +81,12 @@ export declare class ZgridComponent extends DataListingFieldBase implements ZCom
|
|
|
81
81
|
gridDefaultStateExist: boolean;
|
|
82
82
|
isNew: boolean;
|
|
83
83
|
private editedRowIndex;
|
|
84
|
-
|
|
84
|
+
gridSetting: ZGridSettings;
|
|
85
|
+
constructor(componentService: ZComponentService, fontAweSomeService: FontAweSomeService, activatedRoute: ActivatedRoute, router: Router, formBuilder: FormBuilder, webApiService: WebApiService, toastService: ToastService, zcoreService: ZCoreService, storageService: StorageSessionService, mainService: MainService, cdr: ChangeDetectorRef, gridService: ZGridService, offlineDatabaseService: OfflineDatabaseService);
|
|
85
86
|
ngOnInit(): void;
|
|
86
87
|
ngAfterViewInit(): void;
|
|
87
88
|
ngAfterViewChecked(): void;
|
|
88
89
|
ngOnDestroy(): void;
|
|
89
|
-
get state(): State;
|
|
90
|
-
set state(state: State);
|
|
91
|
-
private stateExist;
|
|
92
90
|
dataStateChange(state: DataStateChangeEvent): void;
|
|
93
91
|
filterable(value: any): boolean;
|
|
94
92
|
sortable(value: any): boolean;
|
|
@@ -122,16 +120,14 @@ export declare class ZgridComponent extends DataListingFieldBase implements ZCom
|
|
|
122
120
|
setHeaderText(columnName: string, newHeaderTitle: string): void;
|
|
123
121
|
trackBy(index: number, item: GridItem): any;
|
|
124
122
|
private isUseLocalData;
|
|
125
|
-
gridCallback(group: ZGroup): void;
|
|
126
123
|
private setupGridComponentAttributes;
|
|
127
124
|
private setupSubscriptionForGridSubject;
|
|
128
|
-
private setupGridState;
|
|
129
|
-
private setupGridButtons;
|
|
130
|
-
private setDateColForFiltering;
|
|
131
|
-
setGridSessionKey(group: ZGroup): void;
|
|
132
125
|
saveGridSettings(): void;
|
|
133
126
|
restoreGridSettings(): void;
|
|
134
|
-
|
|
127
|
+
gridCallback(group: ZGroup): void;
|
|
128
|
+
private setupGridButtons;
|
|
129
|
+
private setDateColForFiltering;
|
|
130
|
+
private showHideRestoreGridSettingButton;
|
|
135
131
|
gridCustomAddCommand(group: ZGroup): Observable<any>;
|
|
136
132
|
gridCustomResetCommand(group: ZGroup): Observable<any>;
|
|
137
133
|
gridCustomRemoveCommand(dataItem: any, rowIndex: any): Observable<any>;
|
|
@@ -144,14 +140,11 @@ export declare class ZgridComponent extends DataListingFieldBase implements ZCom
|
|
|
144
140
|
private hasInlineEditColumn;
|
|
145
141
|
getCellStyleForInlineEdit(columnField: ZField, dataItem: any, rowIndex: number): any;
|
|
146
142
|
beforeGridGetData(group: ZGroup, me: any): Observable<any>;
|
|
147
|
-
getGridSessionFilter(group: ZGroup, me: any): Promise<any>;
|
|
148
|
-
setGridSessionFilter(group: ZGroup, me: any): any;
|
|
149
143
|
adjustWidthUponResize(): void;
|
|
150
144
|
filterChange(event: any): void;
|
|
151
145
|
pageChange(event: PageChangeEvent): void;
|
|
152
146
|
sortChange(sort: SortDescriptor[]): void;
|
|
153
147
|
inCellCheckBoxOnChange(event: any, rowIndex: any, column: any): void;
|
|
154
|
-
columnsOrderChanged(event: ColumnReorderEvent): void;
|
|
155
148
|
addHandler({ sender }: {
|
|
156
149
|
sender: any;
|
|
157
150
|
}): void;
|
|
@@ -183,6 +176,8 @@ export declare class ZgridComponent extends DataListingFieldBase implements ZCom
|
|
|
183
176
|
advancedSearch(): void;
|
|
184
177
|
private mapFilterOperatorByFieldType;
|
|
185
178
|
set setGridTitle(newTitle: string);
|
|
179
|
+
set setGridState(state: State);
|
|
180
|
+
setGridToFirstPage(): void;
|
|
186
181
|
static ɵfac: i0.ɵɵFactoryDeclaration<ZgridComponent, never>;
|
|
187
182
|
static ɵcmp: i0.ɵɵComponentDeclaration<ZgridComponent, "app-zgrid", never, {}, {}, never, never>;
|
|
188
183
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/********** Ionic **********/
|
|
2
|
+
/********** Plugin **********/
|
|
3
|
+
import { State } from "@progress/kendo-data-query";
|
|
4
|
+
/********** Component & Service **********/
|
|
5
|
+
import { ZField, OfflineDatabaseService, offlineDatabaseSetting } from 'mmhglobal-zcore';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare enum GridSettingType {
|
|
8
|
+
OriginalSetting = "OriginalSetting",
|
|
9
|
+
SavedSetting = "SavedSetting",
|
|
10
|
+
CachedDataSetting = "CachedDataSetting"
|
|
11
|
+
}
|
|
12
|
+
export declare enum GridStateLogicType {
|
|
13
|
+
SettingAndDataCache = "SettingAndDataCache",
|
|
14
|
+
SettingOnly = "SettingOnly",
|
|
15
|
+
DataCacheOnly = "DataCache"
|
|
16
|
+
}
|
|
17
|
+
export declare class ZGridService {
|
|
18
|
+
private offlineDatabaseService;
|
|
19
|
+
private gridState;
|
|
20
|
+
private gridDefaultState;
|
|
21
|
+
constructor(offlineDatabaseService: OfflineDatabaseService);
|
|
22
|
+
/**
|
|
23
|
+
* Configure grid settings based on the provided ZField object.
|
|
24
|
+
* @param field The ZField object containing configuration information.
|
|
25
|
+
* @returns The configured grid state.
|
|
26
|
+
*/
|
|
27
|
+
setupGridSetting(field: ZField): State;
|
|
28
|
+
generateCacheInfo(gridField: ZField, offlineDatabaseKey?: string): offlineDatabaseSetting;
|
|
29
|
+
getGridStateCacheStorageKey(gridStateType: GridSettingType, field: ZField): string;
|
|
30
|
+
getGridStateLogic(field: ZField): GridStateLogicType;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ZGridService, never>;
|
|
32
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ZGridService>;
|
|
33
|
+
}
|
|
@@ -4,7 +4,6 @@ import { OnInit, OnDestroy } from "@angular/core";
|
|
|
4
4
|
import { IonicSelectableComponent } from "ionic-selectable";
|
|
5
5
|
/********** Plugin **********/
|
|
6
6
|
import { Observable } from "rxjs";
|
|
7
|
-
import { FilterExpandSettings } from "@progress/kendo-angular-treeview";
|
|
8
7
|
import { ComboBoxComponent, DropDownFilterSettings, DropDownListComponent, MultiSelectComponent, MultiSelectTreeComponent } from "@progress/kendo-angular-dropdowns";
|
|
9
8
|
/********** Component & Service **********/
|
|
10
9
|
import { InputFieldBase } from "../components/inputfieldbase.component";
|
|
@@ -23,6 +22,7 @@ export declare class ZselectmultipleComponent extends InputFieldBase implements
|
|
|
23
22
|
multiselecttree: MultiSelectTreeComponent;
|
|
24
23
|
selectComponent: IonicSelectableComponent;
|
|
25
24
|
componentType: InternalComponentType_DropDown;
|
|
25
|
+
private allDataItems;
|
|
26
26
|
iconList: ClickableIcons[];
|
|
27
27
|
items: Array<any>;
|
|
28
28
|
modelzData: Array<any>;
|
|
@@ -40,6 +40,15 @@ export declare class ZselectmultipleComponent extends InputFieldBase implements
|
|
|
40
40
|
parsedItemsData: any[];
|
|
41
41
|
dataInfo: {};
|
|
42
42
|
private debounceSub;
|
|
43
|
+
expandedKeys: any;
|
|
44
|
+
componentSettings: {
|
|
45
|
+
kendoMultiSelectTreeSummaryTag: number;
|
|
46
|
+
popupSettings: any;
|
|
47
|
+
expandOnFilter: {
|
|
48
|
+
expandMatches: boolean;
|
|
49
|
+
expandedOnClear: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
43
52
|
filterSettings: DropDownFilterSettings;
|
|
44
53
|
constructor(componentService: ZComponentService, resourceApiService: ResourceApiService, webApiService: WebApiService, cacheService: CacheService, fieldService: FieldService);
|
|
45
54
|
virtual: any;
|
|
@@ -75,7 +84,6 @@ export declare class ZselectmultipleComponent extends InputFieldBase implements
|
|
|
75
84
|
value: any;
|
|
76
85
|
}): void;
|
|
77
86
|
private handleInfiniteScrollOnChange;
|
|
78
|
-
get filterExpandSettings(): FilterExpandSettings;
|
|
79
87
|
hasChildren: (dataitem: any) => boolean;
|
|
80
88
|
handleMultiSelectTreeFilter(value: string): void;
|
|
81
89
|
onMultiSelectTreeSearch(items: any[], searchedText: string): any[];
|
|
@@ -83,6 +91,10 @@ export declare class ZselectmultipleComponent extends InputFieldBase implements
|
|
|
83
91
|
setSelectOption(value: any): void;
|
|
84
92
|
focus(): boolean;
|
|
85
93
|
private setComponentToUse;
|
|
94
|
+
getDataItems(): Array<any>;
|
|
95
|
+
private setupDataItems;
|
|
96
|
+
private populateDataWithoutHierarchy;
|
|
97
|
+
setDefaultExpandable(): void;
|
|
86
98
|
static ɵfac: i0.ɵɵFactoryDeclaration<ZselectmultipleComponent, never>;
|
|
87
99
|
static ɵcmp: i0.ɵɵComponentDeclaration<ZselectmultipleComponent, "app-zselectmultiple", never, {}, {}, never, never>;
|
|
88
100
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { OnInit, ElementRef, AfterViewInit } from "@angular/core";
|
|
3
3
|
/********** Ionic **********/
|
|
4
4
|
/********** Plugin **********/
|
|
5
|
-
import { TreeItemDropEvent, TreeItemDragEvent, SelectableSettings } from "@progress/kendo-angular-treeview";
|
|
5
|
+
import { TreeItemDropEvent, TreeItemDragEvent, SelectableSettings, CheckableSettings } from "@progress/kendo-angular-treeview";
|
|
6
6
|
/********** Component & Service **********/
|
|
7
7
|
import { DataListingFieldBase } from "../components/datalistingfieldbase.component";
|
|
8
8
|
import { ZComponentService } from "../services/zcomponent.service";
|
|
@@ -19,6 +19,7 @@ export declare class ZtreeComponent extends DataListingFieldBase implements ZCom
|
|
|
19
19
|
};
|
|
20
20
|
itemIndex: any[];
|
|
21
21
|
selectedKeys: any[];
|
|
22
|
+
checkedKeys: any[];
|
|
22
23
|
selection: SelectableSettings;
|
|
23
24
|
nodes: any[];
|
|
24
25
|
private allNodesWitoutHierachy;
|
|
@@ -26,7 +27,7 @@ export declare class ZtreeComponent extends DataListingFieldBase implements ZCom
|
|
|
26
27
|
constructor(componentService: ZComponentService);
|
|
27
28
|
ngOnInit(): void;
|
|
28
29
|
ngAfterViewInit(): void;
|
|
29
|
-
private
|
|
30
|
+
private populateAllNodesWitoutHierachy;
|
|
30
31
|
getItems(): any[];
|
|
31
32
|
isExpanded: (dataItem: any, index: string) => boolean;
|
|
32
33
|
expandNode: (field: string, value: string, setAsSelected: boolean) => void;
|
|
@@ -58,6 +59,10 @@ export declare class ZtreeComponent extends DataListingFieldBase implements ZCom
|
|
|
58
59
|
getSelectedValues(): Array<any>;
|
|
59
60
|
setSelectedValues(data: any): void;
|
|
60
61
|
private initSetSelectedValues;
|
|
62
|
+
get checkableSettings(): CheckableSettings;
|
|
63
|
+
getCheckedValues(): Array<any>;
|
|
64
|
+
setCheckedValues(data: any): void;
|
|
65
|
+
private initSetCheckedValues;
|
|
61
66
|
static ɵfac: i0.ɵɵFactoryDeclaration<ZtreeComponent, never>;
|
|
62
67
|
static ɵcmp: i0.ɵɵComponentDeclaration<ZtreeComponent, "app-ztree", never, {}, {}, never, never>;
|
|
63
68
|
}
|