@memberjunction/ng-user-view-grid 0.9.111 → 0.9.131
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/dist/lib/ng-user-view-grid.component.d.ts +121 -113
- package/dist/lib/ng-user-view-grid.component.js +1071 -1000
- package/dist/lib/ng-user-view-grid.module.d.ts +20 -16
- package/dist/lib/ng-user-view-grid.module.js +82 -60
- package/dist/public-api.d.ts +2 -2
- package/dist/public-api.js +5 -5
- package/package.json +19 -13
|
@@ -1,113 +1,121 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, OnInit, AfterViewInit } from '@angular/core';
|
|
2
|
-
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
-
import { Router } from '@angular/router';
|
|
4
|
-
import { BaseEntity, RunViewParams, EntityFieldInfo, EntityInfo, PrimaryKeyValue } from '@memberjunction/core';
|
|
5
|
-
import { ViewColumnInfo, UserViewEntityExtended } from '@memberjunction/core-entities';
|
|
6
|
-
import { CellClickEvent, GridDataResult, PageChangeEvent, GridComponent, CellCloseEvent, ColumnReorderEvent, ColumnResizeArgs, SelectionEvent, SelectableSettings } from "@progress/kendo-angular-grid";
|
|
7
|
-
import { ExcelExportComponent } from '@progress/kendo-angular-excel-export';
|
|
8
|
-
import { CompareRecordsComponent } from '@memberjunction/ng-compare-records';
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
1
|
+
import { ElementRef, EventEmitter, OnInit, AfterViewInit, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
+
import { Router } from '@angular/router';
|
|
4
|
+
import { BaseEntity, RunViewParams, EntityFieldInfo, EntityInfo, PrimaryKeyValue } from '@memberjunction/core';
|
|
5
|
+
import { ViewColumnInfo, UserViewEntityExtended } from '@memberjunction/core-entities';
|
|
6
|
+
import { CellClickEvent, GridDataResult, PageChangeEvent, GridComponent, CellCloseEvent, ColumnReorderEvent, ColumnResizeArgs, SelectionEvent, SelectableSettings } from "@progress/kendo-angular-grid";
|
|
7
|
+
import { ExcelExportComponent } from '@progress/kendo-angular-excel-export';
|
|
8
|
+
import { CompareRecordsComponent } from '@memberjunction/ng-compare-records';
|
|
9
|
+
import { kendoSVGIcon } from '@memberjunction/ng-shared';
|
|
10
|
+
import { TextAreaComponent } from '@progress/kendo-angular-inputs';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export type GridRowClickedEvent = {
|
|
13
|
+
entityId: number;
|
|
14
|
+
entityName: string;
|
|
15
|
+
primaryKeyValues: PrimaryKeyValue[];
|
|
16
|
+
};
|
|
17
|
+
export type GridRowEditedEvent = {
|
|
18
|
+
record: BaseEntity;
|
|
19
|
+
row: number;
|
|
20
|
+
saved: boolean;
|
|
21
|
+
};
|
|
22
|
+
export type GridPendingRecordItem = {
|
|
23
|
+
record: BaseEntity;
|
|
24
|
+
row: number;
|
|
25
|
+
dataItem: any;
|
|
26
|
+
};
|
|
27
|
+
export declare class UserViewGridComponent implements OnInit, AfterViewInit {
|
|
28
|
+
private formBuilder;
|
|
29
|
+
private router;
|
|
30
|
+
title: string;
|
|
31
|
+
Params: RunViewParams | undefined;
|
|
32
|
+
BottomMargin: number;
|
|
33
|
+
InEditMode: boolean;
|
|
34
|
+
EditMode: "None" | "Save" | "Queue";
|
|
35
|
+
AutoNavigate: boolean;
|
|
36
|
+
rowClicked: EventEmitter<GridRowClickedEvent>;
|
|
37
|
+
rowEdited: EventEmitter<GridRowEditedEvent>;
|
|
38
|
+
kendoGridElement: GridComponent | null;
|
|
39
|
+
kendoGridElementRef: ElementRef | null;
|
|
40
|
+
kendoExcelExport: ExcelExportComponent | null;
|
|
41
|
+
recordCompareComponent: CompareRecordsComponent | null;
|
|
42
|
+
analysisQuestion: TextAreaComponent | null;
|
|
43
|
+
analysisResults: ElementRef | null;
|
|
44
|
+
container: ViewContainerRef;
|
|
45
|
+
private _pendingRecords;
|
|
46
|
+
viewData: [];
|
|
47
|
+
totalRowCount: number;
|
|
48
|
+
formattedData: {
|
|
49
|
+
[key: string]: any;
|
|
50
|
+
}[];
|
|
51
|
+
viewColumns: ViewColumnInfo[];
|
|
52
|
+
visibleColumns: ViewColumnInfo[];
|
|
53
|
+
sortSettings: any[];
|
|
54
|
+
entityRecord: BaseEntity | null;
|
|
55
|
+
skip: number;
|
|
56
|
+
pageSize: number;
|
|
57
|
+
isLoading: boolean;
|
|
58
|
+
gridView: GridDataResult;
|
|
59
|
+
gridHeight: number;
|
|
60
|
+
_viewEntity: UserViewEntityExtended | undefined;
|
|
61
|
+
_entityInfo: EntityInfo | undefined;
|
|
62
|
+
private _newGridState;
|
|
63
|
+
private editModeEnded;
|
|
64
|
+
recordsToCompare: any[];
|
|
65
|
+
compareMode: boolean;
|
|
66
|
+
mergeMode: boolean;
|
|
67
|
+
selectableSettings: SelectableSettings;
|
|
68
|
+
selectedKeys: any[];
|
|
69
|
+
isCompareDialogOpened: boolean;
|
|
70
|
+
isConfirmDialogOpen: boolean;
|
|
71
|
+
showRefreshButton: boolean;
|
|
72
|
+
viewExecutionTime: number;
|
|
73
|
+
get PendingRecords(): GridPendingRecordItem[];
|
|
74
|
+
get ViewID(): number;
|
|
75
|
+
protected StartEditMode(): void;
|
|
76
|
+
protected EndEditMode(): void;
|
|
77
|
+
EditingComplete(): Promise<boolean>;
|
|
78
|
+
IsDynamicView(): boolean;
|
|
79
|
+
pageChange(event: PageChangeEvent): void;
|
|
80
|
+
private virtualLoadData;
|
|
81
|
+
constructor(formBuilder: FormBuilder, router: Router);
|
|
82
|
+
private _saveTimeout;
|
|
83
|
+
private SaveView;
|
|
84
|
+
private _viewDirty;
|
|
85
|
+
innerSaveView(): Promise<void>;
|
|
86
|
+
protected CreateSimpleNotification(message: string, style: "none" | "success" | "error" | "warning" | "info", duration: number): void;
|
|
87
|
+
columnReorder(args: ColumnReorderEvent): Promise<void>;
|
|
88
|
+
columnResize(args: ColumnResizeArgs[]): Promise<void>;
|
|
89
|
+
sortChanged(sort: any): Promise<void>;
|
|
90
|
+
cellClickHandler(args: CellClickEvent): Promise<void>;
|
|
91
|
+
GeneratePrimaryKeyValueString(pkVals: PrimaryKeyValue[]): string;
|
|
92
|
+
createFormGroup(dataItem: any): FormGroup;
|
|
93
|
+
getEditor(ef: EntityFieldInfo): "boolean" | "text" | "numeric" | "date";
|
|
94
|
+
cellCloseHandler(args: CellCloseEvent): Promise<void>;
|
|
95
|
+
RevertPendingChanges(): void;
|
|
96
|
+
ngOnInit(): void;
|
|
97
|
+
ngAfterViewInit(): void;
|
|
98
|
+
private _deferLoadCount;
|
|
99
|
+
private _allowLoad;
|
|
100
|
+
get AllowLoad(): boolean;
|
|
101
|
+
set AllowLoad(value: boolean);
|
|
102
|
+
RefreshFromSavedParams(): Promise<void>;
|
|
103
|
+
Refresh(params: RunViewParams): Promise<void>;
|
|
104
|
+
GetColumnTitle(col: ViewColumnInfo): string;
|
|
105
|
+
GetColumnCellStyle(col: ViewColumnInfo): {
|
|
106
|
+
'text-align': string;
|
|
107
|
+
'vertical-align': string;
|
|
108
|
+
};
|
|
109
|
+
selectionChange(args: SelectionEvent): void;
|
|
110
|
+
enableMergeOrCompare(cancel: boolean | undefined, type: 'merge' | 'compare'): void;
|
|
111
|
+
closeConfirmMergeDialog(event: 'cancel' | 'yes' | 'no'): Promise<void>;
|
|
112
|
+
closeCompareDialog(event: 'close' | 'cancel' | 'merge'): Promise<void>;
|
|
113
|
+
exportColumns: ViewColumnInfo[];
|
|
114
|
+
exportData: any[];
|
|
115
|
+
doExcelExport(): Promise<void>;
|
|
116
|
+
protected getExportData(): Promise<any[]>;
|
|
117
|
+
kendoSVGIcon: typeof kendoSVGIcon;
|
|
118
|
+
selectTabHandler(): void;
|
|
119
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserViewGridComponent, never>;
|
|
120
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserViewGridComponent, "mj-user-view-grid", never, { "Params": { "alias": "Params"; "required": false; }; "BottomMargin": { "alias": "BottomMargin"; "required": false; }; "InEditMode": { "alias": "InEditMode"; "required": false; }; "EditMode": { "alias": "EditMode"; "required": false; }; "AutoNavigate": { "alias": "AutoNavigate"; "required": false; }; "AllowLoad": { "alias": "AllowLoad"; "required": false; }; }, { "rowClicked": "rowClicked"; "rowEdited": "rowEdited"; }, never, never, false, never>;
|
|
121
|
+
}
|