@one-grid-core/angular 0.1.0-beta.5
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 +168 -0
- package/esm2022/lib/components/one-grid/one-grid.component.mjs +388 -0
- package/esm2022/lib/components/one-grid-body/one-grid-body.component.mjs +570 -0
- package/esm2022/lib/components/one-grid-cell-currency/one-grid-cell-currency.component.mjs +90 -0
- package/esm2022/lib/components/one-grid-cell-group-renderer/one-grid-cell-group-renderer.component.mjs +31 -0
- package/esm2022/lib/components/one-grid-cell-option-menu/one-grid-cell-option-menu.component.mjs +67 -0
- package/esm2022/lib/components/one-grid-checkbox/one-grid-checkbox.component.mjs +47 -0
- package/esm2022/lib/components/one-grid-checkbox-header/one-grid-checkbox-header.component.mjs +62 -0
- package/esm2022/lib/components/one-grid-header/one-grid-header.component.mjs +140 -0
- package/esm2022/lib/components/one-grid-pagination/one-grid-pagination.component.mjs +76 -0
- package/esm2022/lib/components/one-grid-row-action/one-grid-row-action.component.mjs +193 -0
- package/esm2022/lib/components/one-grid-status/one-grid-status.component.mjs +35 -0
- package/esm2022/lib/core/directives/one-cell-input-validator.directive.mjs +71 -0
- package/esm2022/lib/core/directives/one-cell-renderer-component.directive.mjs +77 -0
- package/esm2022/lib/core/directives/one-cell-text-expand.directive.mjs +82 -0
- package/esm2022/lib/core/instants/one-grid-api.class.mjs +591 -0
- package/esm2022/lib/core/instants/one-row-node.class.mjs +90 -0
- package/esm2022/lib/core/models/constants/one-pagination.constant.mjs +2 -0
- package/esm2022/lib/core/models/one-column-def-types.model.mjs +2 -0
- package/esm2022/lib/core/models/one-event-types.model.mjs +2 -0
- package/esm2022/lib/core/models/one-filter.model.mjs +2 -0
- package/esm2022/lib/core/models/one-grid-types.model.mjs +2 -0
- package/esm2022/lib/core/models/one-master-detail.model.mjs +2 -0
- package/esm2022/lib/core/models/one-pagination-types.model.mjs +2 -0
- package/esm2022/lib/core/models/one-row.model.mjs +13 -0
- package/esm2022/lib/core/models/one-tree-data.model.mjs +2 -0
- package/esm2022/lib/core/models/one-validation.model.mjs +2 -0
- package/esm2022/lib/core/pipes/cell-action-button-enable.pipe.mjs +21 -0
- package/esm2022/lib/core/pipes/cell-action-button-visible.pipe.mjs +17 -0
- package/esm2022/lib/core/pipes/cell-disable-resolver.pipe.mjs +26 -0
- package/esm2022/lib/core/pipes/cell-editable.pipe.mjs +30 -0
- package/esm2022/lib/core/pipes/cell-field-value-empty.pipe.mjs +21 -0
- package/esm2022/lib/core/pipes/cell-field-value.pipe.mjs +25 -0
- package/esm2022/lib/core/pipes/cell-field.pipe.mjs +20 -0
- package/esm2022/lib/core/pipes/cell-invalid.pipe.mjs +21 -0
- package/esm2022/lib/core/pipes/cell-key.pipe.mjs +21 -0
- package/esm2022/lib/core/pipes/cell-level-padding.pipe.mjs +18 -0
- package/esm2022/lib/core/pipes/cell-number-value.pipe.mjs +19 -0
- package/esm2022/lib/core/pipes/cell-selected.pipe.mjs +20 -0
- package/esm2022/lib/core/pipes/cell-state-group-renderer.pipe.mjs +21 -0
- package/esm2022/lib/core/pipes/cell-state-renderer.pipe.mjs +24 -0
- package/esm2022/lib/core/pipes/cell-value-getter.pipe.mjs +23 -0
- package/esm2022/lib/core/pipes/column-sort-state.pipe.mjs +19 -0
- package/esm2022/lib/core/pipes/header-checkbox-checked.pipe.mjs +17 -0
- package/esm2022/lib/core/pipes/header-checkbox-disabled.pipe.mjs +17 -0
- package/esm2022/lib/core/pipes/header-checkbox-indeterminate.pipe.mjs +17 -0
- package/esm2022/lib/core/services/og-column.service.mjs +81 -0
- package/esm2022/lib/core/services/one-grid-cell.service.mjs +88 -0
- package/esm2022/lib/core/services/one-grid-event.service.mjs +42 -0
- package/esm2022/lib/core/services/one-grid-expansion.service.mjs +40 -0
- package/esm2022/lib/core/services/one-grid-row.service.mjs +29 -0
- package/esm2022/lib/core/services/one-grid-selection.service.mjs +54 -0
- package/esm2022/lib/core/services/one-grid-tree-data.service.mjs +59 -0
- package/esm2022/lib/helpers/one-cell.helper.mjs +42 -0
- package/esm2022/lib/helpers/one-column-def.helper.mjs +28 -0
- package/esm2022/lib/helpers/one-filter.helper.mjs +52 -0
- package/esm2022/lib/helpers/one-validation.helper.mjs +95 -0
- package/esm2022/lib/index.mjs +19 -0
- package/esm2022/lib/one-grid.module.mjs +142 -0
- package/esm2022/one-grid-core-angular.mjs +5 -0
- package/esm2022/public-api.mjs +5 -0
- package/fesm2022/one-grid-core-angular.mjs +3573 -0
- package/fesm2022/one-grid-core-angular.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/one-grid/one-grid.component.d.ts +139 -0
- package/lib/components/one-grid-body/one-grid-body.component.d.ts +176 -0
- package/lib/components/one-grid-cell-currency/one-grid-cell-currency.component.d.ts +27 -0
- package/lib/components/one-grid-cell-group-renderer/one-grid-cell-group-renderer.component.d.ts +16 -0
- package/lib/components/one-grid-cell-option-menu/one-grid-cell-option-menu.component.d.ts +21 -0
- package/lib/components/one-grid-checkbox/one-grid-checkbox.component.d.ts +19 -0
- package/lib/components/one-grid-checkbox-header/one-grid-checkbox-header.component.d.ts +24 -0
- package/lib/components/one-grid-header/one-grid-header.component.d.ts +41 -0
- package/lib/components/one-grid-pagination/one-grid-pagination.component.d.ts +21 -0
- package/lib/components/one-grid-row-action/one-grid-row-action.component.d.ts +59 -0
- package/lib/components/one-grid-status/one-grid-status.component.d.ts +15 -0
- package/lib/core/directives/one-cell-input-validator.directive.d.ts +15 -0
- package/lib/core/directives/one-cell-renderer-component.directive.d.ts +20 -0
- package/lib/core/directives/one-cell-text-expand.directive.d.ts +21 -0
- package/lib/core/instants/one-grid-api.class.d.ts +161 -0
- package/lib/core/instants/one-row-node.class.d.ts +49 -0
- package/lib/core/models/constants/one-pagination.constant.d.ts +1 -0
- package/lib/core/models/one-column-def-types.model.d.ts +139 -0
- package/lib/core/models/one-event-types.model.d.ts +78 -0
- package/lib/core/models/one-filter.model.d.ts +15 -0
- package/lib/core/models/one-grid-types.model.d.ts +48 -0
- package/lib/core/models/one-master-detail.model.d.ts +18 -0
- package/lib/core/models/one-pagination-types.model.d.ts +9 -0
- package/lib/core/models/one-row.model.d.ts +38 -0
- package/lib/core/models/one-tree-data.model.d.ts +9 -0
- package/lib/core/models/one-validation.model.d.ts +9 -0
- package/lib/core/pipes/cell-action-button-enable.pipe.d.ts +8 -0
- package/lib/core/pipes/cell-action-button-visible.pipe.d.ts +9 -0
- package/lib/core/pipes/cell-disable-resolver.pipe.d.ts +9 -0
- package/lib/core/pipes/cell-editable.pipe.d.ts +9 -0
- package/lib/core/pipes/cell-field-value-empty.pipe.d.ts +7 -0
- package/lib/core/pipes/cell-field-value.pipe.d.ts +7 -0
- package/lib/core/pipes/cell-field.pipe.d.ts +7 -0
- package/lib/core/pipes/cell-invalid.pipe.d.ts +9 -0
- package/lib/core/pipes/cell-key.pipe.d.ts +7 -0
- package/lib/core/pipes/cell-level-padding.pipe.d.ts +7 -0
- package/lib/core/pipes/cell-number-value.pipe.d.ts +7 -0
- package/lib/core/pipes/cell-selected.pipe.d.ts +7 -0
- package/lib/core/pipes/cell-state-group-renderer.pipe.d.ts +9 -0
- package/lib/core/pipes/cell-state-renderer.pipe.d.ts +8 -0
- package/lib/core/pipes/cell-value-getter.pipe.d.ts +9 -0
- package/lib/core/pipes/column-sort-state.pipe.d.ts +8 -0
- package/lib/core/pipes/header-checkbox-checked.pipe.d.ts +9 -0
- package/lib/core/pipes/header-checkbox-disabled.pipe.d.ts +9 -0
- package/lib/core/pipes/header-checkbox-indeterminate.pipe.d.ts +9 -0
- package/lib/core/services/og-column.service.d.ts +22 -0
- package/lib/core/services/one-grid-cell.service.d.ts +29 -0
- package/lib/core/services/one-grid-event.service.d.ts +17 -0
- package/lib/core/services/one-grid-expansion.service.d.ts +13 -0
- package/lib/core/services/one-grid-row.service.d.ts +15 -0
- package/lib/core/services/one-grid-selection.service.d.ts +17 -0
- package/lib/core/services/one-grid-tree-data.service.d.ts +10 -0
- package/lib/helpers/one-cell.helper.d.ts +26 -0
- package/lib/helpers/one-column-def.helper.d.ts +17 -0
- package/lib/helpers/one-filter.helper.d.ts +20 -0
- package/lib/helpers/one-validation.helper.d.ts +21 -0
- package/lib/index.d.ts +18 -0
- package/lib/one-grid.module.d.ts +45 -0
- package/package.json +48 -0
- package/public-api.d.ts +1 -0
- package/scss/_one-grid.scss +999 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, Type } from '@angular/core';
|
|
2
|
+
import { OneColumnDef, OneGroupColumnDef } from '../../core/models/one-column-def-types.model';
|
|
3
|
+
import { OneGridApi } from '../../core/instants/one-grid-api.class';
|
|
4
|
+
import { OneRowNode } from '../../core/instants/one-row-node.class';
|
|
5
|
+
import { OneGridReadyEvent, OneGridRowActionEvent, OneGridType } from '../../core/models/one-grid-types.model';
|
|
6
|
+
import { OneGridEventService } from '../../core/services/one-grid-event.service';
|
|
7
|
+
import { OnePaginationParams } from '../../core/models/one-pagination-types.model';
|
|
8
|
+
import { CellOptionMenuSelectedEvent, ExpansionChangedEvent, RowSelectionMode, SelectionChangedEvent } from '../../core/models/one-event-types.model';
|
|
9
|
+
import { Subject } from 'rxjs';
|
|
10
|
+
import { OneDetailCellRendererParams } from '../../core/models/one-master-detail.model';
|
|
11
|
+
import { OneCellRendererComponent } from '../../core/models/one-tree-data.model';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
export declare class OneGridComponent<T> implements OnInit, OnChanges, AfterViewInit, OnDestroy {
|
|
14
|
+
protected api: OneGridApi;
|
|
15
|
+
protected eventService: OneGridEventService;
|
|
16
|
+
private elementRef;
|
|
17
|
+
/**
|
|
18
|
+
* Get General Data from Parent
|
|
19
|
+
*/
|
|
20
|
+
ogRef: ElementRef;
|
|
21
|
+
rowNumber: boolean;
|
|
22
|
+
allowedEdit: boolean;
|
|
23
|
+
submitted: boolean;
|
|
24
|
+
context: any;
|
|
25
|
+
rowData: T[];
|
|
26
|
+
rowSelection: RowSelectionMode;
|
|
27
|
+
enableGroupColumnDefs: boolean;
|
|
28
|
+
groupColumnDefs: OneGroupColumnDef[];
|
|
29
|
+
defaultColumnDef: OneColumnDef<T>;
|
|
30
|
+
columnDefs: OneColumnDef<T>[];
|
|
31
|
+
protected gridCopy$: Subject<ClipboardEvent>;
|
|
32
|
+
/**
|
|
33
|
+
* Master Detail Feature
|
|
34
|
+
*/
|
|
35
|
+
gridType: OneGridType;
|
|
36
|
+
masterDetail: boolean;
|
|
37
|
+
masterNode: OneRowNode;
|
|
38
|
+
detailCellRendererParams: OneDetailCellRendererParams;
|
|
39
|
+
detailRendererComponent: Type<OneCellRendererComponent>;
|
|
40
|
+
/**
|
|
41
|
+
* Tree Data Feature
|
|
42
|
+
*/
|
|
43
|
+
treeData: boolean;
|
|
44
|
+
treeDataChildrenField: string;
|
|
45
|
+
autoGroupColumnDef: OneColumnDef;
|
|
46
|
+
groupDefaultExpanded: number;
|
|
47
|
+
/**
|
|
48
|
+
* Bind Row Action Events & Data to Parent
|
|
49
|
+
*/
|
|
50
|
+
onGridReady: EventEmitter<OneGridReadyEvent<T>>;
|
|
51
|
+
onRowGotoDetail: EventEmitter<OneGridRowActionEvent<T>>;
|
|
52
|
+
onRowAddNew: EventEmitter<OneGridRowActionEvent<T>>;
|
|
53
|
+
onRowView: EventEmitter<OneGridRowActionEvent<T>>;
|
|
54
|
+
onRowLocation: EventEmitter<OneGridRowActionEvent<T>>;
|
|
55
|
+
onRowDocument: EventEmitter<OneGridRowActionEvent<T>>;
|
|
56
|
+
onRowCopy: EventEmitter<OneGridRowActionEvent<T>>;
|
|
57
|
+
onRowDelete: EventEmitter<OneGridRowActionEvent<T>>;
|
|
58
|
+
onRowGotoList: EventEmitter<OneGridRowActionEvent<T>>;
|
|
59
|
+
onRowEdit: EventEmitter<OneGridRowActionEvent<T>>;
|
|
60
|
+
onRowPrint: EventEmitter<OneGridRowActionEvent<T>>;
|
|
61
|
+
onRowHistory: EventEmitter<OneGridRowActionEvent<T>>;
|
|
62
|
+
onRowOption: EventEmitter<OneGridRowActionEvent<T>>;
|
|
63
|
+
onRowLanguage: EventEmitter<OneGridRowActionEvent<T>>;
|
|
64
|
+
onRowSelection: EventEmitter<OneGridRowActionEvent<T>>;
|
|
65
|
+
onShiftDoubleClick: EventEmitter<OneGridRowActionEvent<T>>;
|
|
66
|
+
rowCountChanged: EventEmitter<number>;
|
|
67
|
+
selectionChanged: EventEmitter<SelectionChangedEvent<T>>;
|
|
68
|
+
expansionChanged: EventEmitter<ExpansionChangedEvent<T>>;
|
|
69
|
+
cellOptionSelect: EventEmitter<CellOptionMenuSelectedEvent<any>>;
|
|
70
|
+
onRowCellOption: EventEmitter<OneGridRowActionEvent<T>>;
|
|
71
|
+
/**
|
|
72
|
+
* Bind One Grid Pagination Feature
|
|
73
|
+
*/
|
|
74
|
+
pagination: boolean;
|
|
75
|
+
paginate: OnePaginationParams;
|
|
76
|
+
goToFirst: EventEmitter<any>;
|
|
77
|
+
goToPrevious: EventEmitter<any>;
|
|
78
|
+
goToNext: EventEmitter<any>;
|
|
79
|
+
goToLast: EventEmitter<any>;
|
|
80
|
+
pageSizeChange: EventEmitter<number>;
|
|
81
|
+
/**
|
|
82
|
+
* One Grid Properties
|
|
83
|
+
*/
|
|
84
|
+
protected bodyScrollLeft: number;
|
|
85
|
+
private _oneRowNumberColumnDef;
|
|
86
|
+
private subscriptions;
|
|
87
|
+
constructor(api: OneGridApi, eventService: OneGridEventService, elementRef: ElementRef);
|
|
88
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
89
|
+
ngOnInit(): void;
|
|
90
|
+
ngAfterViewInit(): void;
|
|
91
|
+
/**
|
|
92
|
+
* Handle Body Scroll Event
|
|
93
|
+
*/
|
|
94
|
+
onBodyScroll(scrollLeft: number): void;
|
|
95
|
+
/**
|
|
96
|
+
* Handle Ready Event of a nested Master Detail Grid
|
|
97
|
+
*/
|
|
98
|
+
onDetailGridReady(params: OneGridReadyEvent): void;
|
|
99
|
+
/**
|
|
100
|
+
* Passing copy event to grid body
|
|
101
|
+
*/
|
|
102
|
+
onGridCopy(event: ClipboardEvent): void;
|
|
103
|
+
/**
|
|
104
|
+
* Bind Row Action Events to Parent Component
|
|
105
|
+
*/
|
|
106
|
+
invokeRowActionGotoDetail(event: OneGridRowActionEvent<T>): void;
|
|
107
|
+
invokeRowActionAddNew(event: OneGridRowActionEvent<T>): void;
|
|
108
|
+
invokeRowActionView(event: OneGridRowActionEvent<T>): void;
|
|
109
|
+
invokeRowActionLocation(event: OneGridRowActionEvent<T>): void;
|
|
110
|
+
invokeRowActionDocument(event: OneGridRowActionEvent<T>): void;
|
|
111
|
+
invokeRowActionCopy(event: OneGridRowActionEvent<T>): void;
|
|
112
|
+
invokeRowActionDelete(event: OneGridRowActionEvent<T>): void;
|
|
113
|
+
invokeRowActionGotoList(event: OneGridRowActionEvent<T>): void;
|
|
114
|
+
invokeRowActionEdit(event: OneGridRowActionEvent<T>): void;
|
|
115
|
+
invokeRowActionPrint(event: OneGridRowActionEvent<T>): void;
|
|
116
|
+
invokeRowActionHistory(event: OneGridRowActionEvent<T>): void;
|
|
117
|
+
invokeRowActionOption(event: OneGridRowActionEvent<T>): void;
|
|
118
|
+
invokeRowActionLanguage(event: OneGridRowActionEvent<T>): void;
|
|
119
|
+
invokeRowActionCellOption(event: OneGridRowActionEvent<T>): void;
|
|
120
|
+
invokeRowActionSelection(event: OneGridRowActionEvent<T>): void;
|
|
121
|
+
invokeShiftDoubleClick(event: OneGridRowActionEvent<T>): void;
|
|
122
|
+
invokeRowCountChanged(length: number): void;
|
|
123
|
+
cellOptionMenuSelected(event: CellOptionMenuSelectedEvent): void;
|
|
124
|
+
/**
|
|
125
|
+
* Bing Pagination Events to Parent Component
|
|
126
|
+
*/
|
|
127
|
+
invokeGoToFirst(): void;
|
|
128
|
+
invokeGoToPrevious(): void;
|
|
129
|
+
invokeGoToNext(): void;
|
|
130
|
+
invokeGoToLast(): void;
|
|
131
|
+
invokePageSizeChange(pageSize: number): void;
|
|
132
|
+
invokeExpansionChangedClick(event: ExpansionChangedEvent<T>): void;
|
|
133
|
+
/**
|
|
134
|
+
* Handle Unsubscribe All Event Listenders
|
|
135
|
+
*/
|
|
136
|
+
ngOnDestroy(): void;
|
|
137
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OneGridComponent<any>, never>;
|
|
138
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OneGridComponent<any>, "one-grid", never, { "rowNumber": { "alias": "rowNumber"; "required": false; }; "allowedEdit": { "alias": "allowedEdit"; "required": false; }; "submitted": { "alias": "submitted"; "required": false; }; "context": { "alias": "context"; "required": false; }; "rowData": { "alias": "rowData"; "required": false; }; "rowSelection": { "alias": "rowSelection"; "required": false; }; "enableGroupColumnDefs": { "alias": "enableGroupColumnDefs"; "required": false; }; "groupColumnDefs": { "alias": "groupColumnDefs"; "required": false; }; "defaultColumnDef": { "alias": "defaultColumnDef"; "required": false; }; "columnDefs": { "alias": "columnDefs"; "required": false; }; "gridType": { "alias": "gridType"; "required": false; }; "masterDetail": { "alias": "masterDetail"; "required": false; }; "masterNode": { "alias": "masterNode"; "required": false; }; "detailCellRendererParams": { "alias": "detailCellRendererParams"; "required": false; }; "detailRendererComponent": { "alias": "detailRendererComponent"; "required": false; }; "treeData": { "alias": "treeData"; "required": false; }; "treeDataChildrenField": { "alias": "treeDataChildrenField"; "required": false; }; "autoGroupColumnDef": { "alias": "autoGroupColumnDef"; "required": false; }; "groupDefaultExpanded": { "alias": "groupDefaultExpanded"; "required": false; }; "pagination": { "alias": "pagination"; "required": false; }; "paginate": { "alias": "paginate"; "required": false; }; }, { "onGridReady": "onGridReady"; "onRowGotoDetail": "onRowGotoDetail"; "onRowAddNew": "onRowAddNew"; "onRowView": "onRowView"; "onRowLocation": "onRowLocation"; "onRowDocument": "onRowDocument"; "onRowCopy": "onRowCopy"; "onRowDelete": "onRowDelete"; "onRowGotoList": "onRowGotoList"; "onRowEdit": "onRowEdit"; "onRowPrint": "onRowPrint"; "onRowHistory": "onRowHistory"; "onRowOption": "onRowOption"; "onRowLanguage": "onRowLanguage"; "onRowSelection": "onRowSelection"; "onShiftDoubleClick": "onShiftDoubleClick"; "rowCountChanged": "rowCountChanged"; "selectionChanged": "selectionChanged"; "expansionChanged": "expansionChanged"; "cellOptionSelect": "cellOptionSelect"; "onRowCellOption": "onRowCellOption"; "goToFirst": "goToFirst"; "goToPrevious": "goToPrevious"; "goToNext": "goToNext"; "goToLast": "goToLast"; "pageSizeChange": "pageSizeChange"; }, never, never, false, never>;
|
|
139
|
+
}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, TemplateRef, Type } from '@angular/core';
|
|
2
|
+
import { OneCellRendererParams, OneColumnDef } from '../../core/models/one-column-def-types.model';
|
|
3
|
+
import { OneCellRendererComponent } from '../../core/models/one-tree-data.model';
|
|
4
|
+
import { OneRowNode } from '../../core/instants/one-row-node.class';
|
|
5
|
+
import { OneGridApi } from '../../core/instants/one-grid-api.class';
|
|
6
|
+
import { Subject } from 'rxjs';
|
|
7
|
+
import { OneGridGetRowIdParams, OneGridReadyEvent, OneGridRowActionEvent, OneGridType } from '../../core/models/one-grid-types.model';
|
|
8
|
+
import { OneGridEventService } from '../../core/services/one-grid-event.service';
|
|
9
|
+
import { CellOptionMenuSelectedEvent, ExpansionChangedEvent } from '../../core/models/one-event-types.model';
|
|
10
|
+
import { OneDetailCellRendererParams } from '../../core/models/one-master-detail.model';
|
|
11
|
+
import { OneGridCellService } from '../../core/services/one-grid-cell.service';
|
|
12
|
+
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
13
|
+
import { OgColumnService } from '../../core/services/og-column.service';
|
|
14
|
+
import * as i0 from "@angular/core";
|
|
15
|
+
export declare class OneGridBodyComponent<T> implements OnInit, OnDestroy {
|
|
16
|
+
protected colService: OgColumnService;
|
|
17
|
+
protected cellService: OneGridCellService;
|
|
18
|
+
private eventService;
|
|
19
|
+
private cdr;
|
|
20
|
+
/**
|
|
21
|
+
* Core Properties
|
|
22
|
+
*/
|
|
23
|
+
bodyRef: ElementRef;
|
|
24
|
+
rowData: T[];
|
|
25
|
+
rowNumber: boolean;
|
|
26
|
+
api: OneGridApi<T>;
|
|
27
|
+
pagination: boolean;
|
|
28
|
+
allowedEdit: boolean;
|
|
29
|
+
enableGroupColumnDefs: boolean;
|
|
30
|
+
submitted: boolean;
|
|
31
|
+
context: any;
|
|
32
|
+
getRowId: (params: OneGridGetRowIdParams<T>) => string;
|
|
33
|
+
gridCopy$: Subject<ClipboardEvent>;
|
|
34
|
+
viewport: CdkVirtualScrollViewport;
|
|
35
|
+
protected columnDefs: OneColumnDef<T>[];
|
|
36
|
+
protected cellRenderer: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Master Detail Properties
|
|
39
|
+
*/
|
|
40
|
+
gridType: OneGridType;
|
|
41
|
+
masterDetail: boolean;
|
|
42
|
+
masterNode: OneRowNode<T>;
|
|
43
|
+
detailRowMaxHeight: number;
|
|
44
|
+
detailCellRendererParams: OneDetailCellRendererParams;
|
|
45
|
+
detailGridTemplate: TemplateRef<unknown>;
|
|
46
|
+
detailRendererComponent: Type<OneCellRendererComponent>;
|
|
47
|
+
/**
|
|
48
|
+
* Tree Data Properties
|
|
49
|
+
*/
|
|
50
|
+
treeData: boolean;
|
|
51
|
+
treeDataChildrenField: string;
|
|
52
|
+
autoGroupColumnDef: OneColumnDef<T>;
|
|
53
|
+
groupDefaultExpanded: number;
|
|
54
|
+
/**
|
|
55
|
+
* Passing Row Action Events to Parent
|
|
56
|
+
*/
|
|
57
|
+
onRowGotoDetail: EventEmitter<OneGridRowActionEvent<T>>;
|
|
58
|
+
onRowAddNew: EventEmitter<OneGridRowActionEvent<T>>;
|
|
59
|
+
onRowView: EventEmitter<OneGridRowActionEvent<T>>;
|
|
60
|
+
onRowCopy: EventEmitter<OneGridRowActionEvent<T>>;
|
|
61
|
+
onRowLocation: EventEmitter<OneGridRowActionEvent<T>>;
|
|
62
|
+
onRowDocument: EventEmitter<OneGridRowActionEvent<T>>;
|
|
63
|
+
onRowDelete: EventEmitter<OneGridRowActionEvent<T>>;
|
|
64
|
+
onRowGotoList: EventEmitter<OneGridRowActionEvent<T>>;
|
|
65
|
+
onRowEdit: EventEmitter<OneGridRowActionEvent<T>>;
|
|
66
|
+
onRowPrint: EventEmitter<OneGridRowActionEvent<T>>;
|
|
67
|
+
onRowHistory: EventEmitter<OneGridRowActionEvent<T>>;
|
|
68
|
+
onRowOption: EventEmitter<OneGridRowActionEvent<T>>;
|
|
69
|
+
onRowLanguage: EventEmitter<OneGridRowActionEvent<T>>;
|
|
70
|
+
onRowCellOption: EventEmitter<OneGridRowActionEvent<T>>;
|
|
71
|
+
onRowSelection: EventEmitter<OneGridRowActionEvent<T>>;
|
|
72
|
+
onShiftDoubleClick: EventEmitter<OneGridRowActionEvent<T>>;
|
|
73
|
+
rowCountChanged: EventEmitter<number>;
|
|
74
|
+
expansionChanged: EventEmitter<ExpansionChangedEvent<T>>;
|
|
75
|
+
bodyScroll: EventEmitter<number>;
|
|
76
|
+
cellOptionSelect: EventEmitter<any>;
|
|
77
|
+
/**
|
|
78
|
+
* Selection Range Variables
|
|
79
|
+
*/
|
|
80
|
+
protected rowWidth: number;
|
|
81
|
+
protected nodes: OneRowNode<T>[];
|
|
82
|
+
protected selectedCells: Set<string>;
|
|
83
|
+
private isMouseDown;
|
|
84
|
+
private startCell;
|
|
85
|
+
private lastScrollLeft;
|
|
86
|
+
private cellEditablePipe;
|
|
87
|
+
private subscriptions;
|
|
88
|
+
protected cellRendererParams: OneCellRendererParams;
|
|
89
|
+
/**
|
|
90
|
+
* Virtual Scroll Properties
|
|
91
|
+
*/
|
|
92
|
+
protected itemSize: number;
|
|
93
|
+
protected minBufferPx: number;
|
|
94
|
+
protected maxBufferPx: number;
|
|
95
|
+
constructor(colService: OgColumnService, cellService: OneGridCellService, eventService: OneGridEventService, cdr: ChangeDetectorRef);
|
|
96
|
+
ngOnInit(): void;
|
|
97
|
+
onGridReady(params: OneGridReadyEvent): void;
|
|
98
|
+
onBodyScroll(event: Event): void;
|
|
99
|
+
/**
|
|
100
|
+
* Track Rendering Row Node By Row ID
|
|
101
|
+
*/
|
|
102
|
+
trackByRowId(index: number, node: OneRowNode<T>): string;
|
|
103
|
+
/**
|
|
104
|
+
* Cell Selection Range Feature
|
|
105
|
+
*/
|
|
106
|
+
startSelection(rowId: string, field: string): void;
|
|
107
|
+
extendSelection(rowId: string, field: string): void;
|
|
108
|
+
endSelection(): void;
|
|
109
|
+
/**
|
|
110
|
+
* Clear Cells Selected
|
|
111
|
+
*/
|
|
112
|
+
onDocumentClick(event: MouseEvent): void;
|
|
113
|
+
/**
|
|
114
|
+
* Selection Range Event Hold Mouse Click
|
|
115
|
+
*/
|
|
116
|
+
onGlobalMouseUp(): void;
|
|
117
|
+
/**
|
|
118
|
+
* Listen Copy Clipboard Event
|
|
119
|
+
*/
|
|
120
|
+
onGridCopy(event: ClipboardEvent): void;
|
|
121
|
+
copyToClipboard(value: string): void;
|
|
122
|
+
/**
|
|
123
|
+
* Build Copy Cell Text to Clipboard
|
|
124
|
+
*/
|
|
125
|
+
private buildClipboardText;
|
|
126
|
+
/**
|
|
127
|
+
* Binding Events Row Action to Parent
|
|
128
|
+
*/
|
|
129
|
+
invokeRowActionGotoDetail(event: OneGridRowActionEvent<T>): void;
|
|
130
|
+
invokeRowActionAddNew(event: OneGridRowActionEvent<T>): void;
|
|
131
|
+
invokeRowActionView(event: OneGridRowActionEvent<T>): void;
|
|
132
|
+
invokeRowActionLocation(event: OneGridRowActionEvent<T>): void;
|
|
133
|
+
invokeRowActionDocument(event: OneGridRowActionEvent<T>): void;
|
|
134
|
+
invokeRowActionCopy(event: OneGridRowActionEvent<T>): void;
|
|
135
|
+
invokeRowActionDelete(event: OneGridRowActionEvent<T>): void;
|
|
136
|
+
invokeRowActionGotoList(event: OneGridRowActionEvent<T>): void;
|
|
137
|
+
invokeRowActionEdit(event: OneGridRowActionEvent<T>): void;
|
|
138
|
+
invokeRowActionPrint(event: OneGridRowActionEvent<T>): void;
|
|
139
|
+
invokeRowActionHistory(event: OneGridRowActionEvent<T>): void;
|
|
140
|
+
invokeRowActionOption(event: OneGridRowActionEvent<T>): void;
|
|
141
|
+
invokeRowActionLanguage(event: OneGridRowActionEvent<T>): void;
|
|
142
|
+
invokeRowActionCellOption(event: OneGridRowActionEvent<T>): void;
|
|
143
|
+
invokeRowActionSelection(event: OneGridRowActionEvent<T>): void;
|
|
144
|
+
invokeExpansionChangedClick(event: ExpansionChangedEvent): void;
|
|
145
|
+
cellOptionMenuSelected(event: CellOptionMenuSelectedEvent): void;
|
|
146
|
+
/**
|
|
147
|
+
* Special Events
|
|
148
|
+
*/
|
|
149
|
+
private invokeShiftDoubleClick;
|
|
150
|
+
/**
|
|
151
|
+
* Cell Edit Feature
|
|
152
|
+
*/
|
|
153
|
+
startEdit(event: MouseEvent, node: OneRowNode<T>, column: OneColumnDef<T>): void;
|
|
154
|
+
/**
|
|
155
|
+
* Save Cell Edit Mode
|
|
156
|
+
*/
|
|
157
|
+
stopEdit(node: OneRowNode<T>, column: OneColumnDef<T>, event: any): void;
|
|
158
|
+
/**
|
|
159
|
+
* Cancel Cell Edit Mode
|
|
160
|
+
*/
|
|
161
|
+
cancelEdit(node: OneRowNode<T>, column: OneColumnDef<T>): void;
|
|
162
|
+
/**
|
|
163
|
+
* Set Cell Value
|
|
164
|
+
*/
|
|
165
|
+
setCellValueByRowId(rowId: string, column: OneColumnDef, value: any): void;
|
|
166
|
+
/**
|
|
167
|
+
* Virtual Scroll Properties
|
|
168
|
+
*/
|
|
169
|
+
setVirtualScroll(items?: number): void;
|
|
170
|
+
/**
|
|
171
|
+
* Unsubscribe All Subscriptions
|
|
172
|
+
*/
|
|
173
|
+
ngOnDestroy(): void;
|
|
174
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OneGridBodyComponent<any>, never>;
|
|
175
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OneGridBodyComponent<any>, "one-grid-body", never, { "rowData": { "alias": "rowData"; "required": true; }; "rowNumber": { "alias": "rowNumber"; "required": false; }; "api": { "alias": "api"; "required": false; }; "pagination": { "alias": "pagination"; "required": false; }; "allowedEdit": { "alias": "allowedEdit"; "required": false; }; "enableGroupColumnDefs": { "alias": "enableGroupColumnDefs"; "required": false; }; "submitted": { "alias": "submitted"; "required": false; }; "context": { "alias": "context"; "required": false; }; "getRowId": { "alias": "getRowId"; "required": false; }; "gridCopy$": { "alias": "gridCopy$"; "required": true; }; "gridType": { "alias": "gridType"; "required": false; }; "masterDetail": { "alias": "masterDetail"; "required": false; }; "masterNode": { "alias": "masterNode"; "required": false; }; "detailRowMaxHeight": { "alias": "detailRowMaxHeight"; "required": false; }; "detailCellRendererParams": { "alias": "detailCellRendererParams"; "required": false; }; "detailGridTemplate": { "alias": "detailGridTemplate"; "required": false; }; "detailRendererComponent": { "alias": "detailRendererComponent"; "required": false; }; "treeData": { "alias": "treeData"; "required": false; }; "treeDataChildrenField": { "alias": "treeDataChildrenField"; "required": false; }; "autoGroupColumnDef": { "alias": "autoGroupColumnDef"; "required": false; }; "groupDefaultExpanded": { "alias": "groupDefaultExpanded"; "required": false; }; }, { "onRowGotoDetail": "onRowGotoDetail"; "onRowAddNew": "onRowAddNew"; "onRowView": "onRowView"; "onRowCopy": "onRowCopy"; "onRowLocation": "onRowLocation"; "onRowDocument": "onRowDocument"; "onRowDelete": "onRowDelete"; "onRowGotoList": "onRowGotoList"; "onRowEdit": "onRowEdit"; "onRowPrint": "onRowPrint"; "onRowHistory": "onRowHistory"; "onRowOption": "onRowOption"; "onRowLanguage": "onRowLanguage"; "onRowCellOption": "onRowCellOption"; "onRowSelection": "onRowSelection"; "onShiftDoubleClick": "onShiftDoubleClick"; "rowCountChanged": "rowCountChanged"; "expansionChanged": "expansionChanged"; "bodyScroll": "bodyScroll"; "cellOptionSelect": "cellOptionSelect"; }, never, never, false, never>;
|
|
176
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { OneCellRendererParams, OneColumnDef } from '../../core/models/one-column-def-types.model';
|
|
2
|
+
import { OneGridCellService } from '../../core/services/one-grid-cell.service';
|
|
3
|
+
import { OneGridEventService } from '../../core/services/one-grid-event.service';
|
|
4
|
+
import { OneRowNode } from '../../core/instants/one-row-node.class';
|
|
5
|
+
import { getCellField } from '../../helpers/one-cell.helper';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class OneGridCellCurrencyComponent {
|
|
8
|
+
private cellService;
|
|
9
|
+
private eventService;
|
|
10
|
+
value: string;
|
|
11
|
+
result: any;
|
|
12
|
+
params: OneCellRendererParams;
|
|
13
|
+
allowedEdit: boolean;
|
|
14
|
+
getCellField: typeof getCellField;
|
|
15
|
+
private unsubscribe?;
|
|
16
|
+
private cellEditablePipe;
|
|
17
|
+
constructor(cellService: OneGridCellService, eventService: OneGridEventService);
|
|
18
|
+
oneInit(params: OneCellRendererParams): void;
|
|
19
|
+
refresh(params: OneCellRendererParams): boolean;
|
|
20
|
+
get isEditable(): boolean;
|
|
21
|
+
startEdit(node: OneRowNode<any>, column: OneColumnDef<any>): void;
|
|
22
|
+
stopEdit(node: OneRowNode<any>, column: OneColumnDef<any>, event: any): void;
|
|
23
|
+
cancelEdit(node: OneRowNode<any>, column: OneColumnDef<any>): void;
|
|
24
|
+
ngOnDestroy(): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OneGridCellCurrencyComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OneGridCellCurrencyComponent, "app-one-grid-cell-currency", never, { "allowedEdit": { "alias": "allowedEdit"; "required": false; }; }, {}, never, never, false, never>;
|
|
27
|
+
}
|
package/lib/components/one-grid-cell-group-renderer/one-grid-cell-group-renderer.component.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EventEmitter, Type } from '@angular/core';
|
|
2
|
+
import { OneRowNode } from '../../core/instants/one-row-node.class';
|
|
3
|
+
import { ExpansionChangedEvent } from '../../core/models/one-event-types.model';
|
|
4
|
+
import { OneDetailCellRendererParams } from '../../core/models/one-master-detail.model';
|
|
5
|
+
import { OneCellRendererComponent } from '../../core/models/one-tree-data.model';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class OneGridCellGroupRendererComponent<T> {
|
|
8
|
+
node: OneRowNode<T>;
|
|
9
|
+
masterDetail: boolean;
|
|
10
|
+
detailCellRendererParams: OneDetailCellRendererParams;
|
|
11
|
+
detailRendererComponent: Type<OneCellRendererComponent>;
|
|
12
|
+
expansionChanged: EventEmitter<ExpansionChangedEvent<T>>;
|
|
13
|
+
invokeChangedClick(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OneGridCellGroupRendererComponent<any>, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OneGridCellGroupRendererComponent<any>, "one-grid-cell-group-renderer", never, { "node": { "alias": "node"; "required": false; }; "masterDetail": { "alias": "masterDetail"; "required": false; }; "detailCellRendererParams": { "alias": "detailCellRendererParams"; "required": false; }; "detailRendererComponent": { "alias": "detailRendererComponent"; "required": false; }; }, { "expansionChanged": "expansionChanged"; }, never, never, false, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { OneRowNode } from '../../core/instants/one-row-node.class';
|
|
3
|
+
import { OneColumnDef } from '../../core/models/one-column-def-types.model';
|
|
4
|
+
import { CellOptionMenuSelectedEvent, OneCellOptionMenu } from '../../core/models/one-event-types.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class OneGridCellOptionMenuComponent {
|
|
7
|
+
private elementRef;
|
|
8
|
+
column: OneColumnDef;
|
|
9
|
+
node: OneRowNode;
|
|
10
|
+
options: OneCellOptionMenu[];
|
|
11
|
+
cellOptionMenuSelect: EventEmitter<CellOptionMenuSelectedEvent<any>>;
|
|
12
|
+
cellOptionMenuClose: EventEmitter<void>;
|
|
13
|
+
constructor(elementRef: ElementRef);
|
|
14
|
+
onDocumentClick(event: MouseEvent): void;
|
|
15
|
+
onEscape(): void;
|
|
16
|
+
onScroll(): void;
|
|
17
|
+
onOptionSelected(option: any): void;
|
|
18
|
+
private close;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OneGridCellOptionMenuComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OneGridCellOptionMenuComponent, "one-grid-cell-option-menu", never, { "column": { "alias": "column"; "required": false; }; "node": { "alias": "node"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, { "cellOptionMenuSelect": "cellOptionMenuSelect"; "cellOptionMenuClose": "cellOptionMenuClose"; }, never, never, false, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { OneRowNode } from '../../core/instants/one-row-node.class';
|
|
3
|
+
import { OneGridSelectionService } from '../../core/services/one-grid-selection.service';
|
|
4
|
+
import { OneGridEventService } from '../../core/services/one-grid-event.service';
|
|
5
|
+
import { OneGridApi } from '../../core/instants/one-grid-api.class';
|
|
6
|
+
import { OneGridRowActionEvent } from '../../core/models/one-grid-types.model';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class OneGridCheckboxComponent<T> {
|
|
9
|
+
private selectionService;
|
|
10
|
+
private eventService;
|
|
11
|
+
node: OneRowNode<T>;
|
|
12
|
+
allowedEdit: boolean;
|
|
13
|
+
api: OneGridApi<T>;
|
|
14
|
+
onRowSelection: EventEmitter<OneGridRowActionEvent<T>>;
|
|
15
|
+
constructor(selectionService: OneGridSelectionService, eventService: OneGridEventService);
|
|
16
|
+
onToggleSelection(event: any): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OneGridCheckboxComponent<any>, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OneGridCheckboxComponent<any>, "one-grid-checkbox", never, { "node": { "alias": "node"; "required": false; }; "allowedEdit": { "alias": "allowedEdit"; "required": false; }; "api": { "alias": "api"; "required": false; }; }, { "onRowSelection": "onRowSelection"; }, never, never, false, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { OneGridSelectionService } from '../../core/services/one-grid-selection.service';
|
|
3
|
+
import { OneRowNode } from '../../core/instants/one-row-node.class';
|
|
4
|
+
import { OneGridApi } from '../../core/instants/one-grid-api.class';
|
|
5
|
+
import { OneGridEventService } from '../../core/services/one-grid-event.service';
|
|
6
|
+
import { OneCheckboxState, RowSelectionMode } from '../../core/models/one-event-types.model';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class OneGridCheckboxHeaderComponent<T> implements OnInit {
|
|
9
|
+
private eventService;
|
|
10
|
+
private selectionService;
|
|
11
|
+
api: OneGridApi<T>;
|
|
12
|
+
allowedEdit: boolean;
|
|
13
|
+
state: OneCheckboxState;
|
|
14
|
+
rowNodes: OneRowNode<T>[];
|
|
15
|
+
selectionMode: RowSelectionMode;
|
|
16
|
+
constructor(eventService: OneGridEventService, selectionService: OneGridSelectionService);
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
/**
|
|
19
|
+
* Toggle Selection Action
|
|
20
|
+
*/
|
|
21
|
+
toggleSelectionAll(event: any): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OneGridCheckboxHeaderComponent<any>, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OneGridCheckboxHeaderComponent<any>, "one-grid-checkbox-header", never, { "api": { "alias": "api"; "required": false; }; "allowedEdit": { "alias": "allowedEdit"; "required": false; }; }, {}, never, never, false, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { OneColumnDef, OneGroupColumnDef } from '../../core/models/one-column-def-types.model';
|
|
3
|
+
import { OneGridApi } from '../../core/instants/one-grid-api.class';
|
|
4
|
+
import { OneGridEventService } from '../../core/services/one-grid-event.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class OneGridHeaderComponent<T> implements OnInit, OnDestroy {
|
|
7
|
+
private eventService;
|
|
8
|
+
private cdr;
|
|
9
|
+
scrollLeft: number;
|
|
10
|
+
allowedEdit: boolean;
|
|
11
|
+
enableGroupColumnDefs: boolean;
|
|
12
|
+
api: OneGridApi<T>;
|
|
13
|
+
protected groupColumnDefs: OneGroupColumnDef[];
|
|
14
|
+
protected columnDefs: OneColumnDef<T>[];
|
|
15
|
+
private sortModel;
|
|
16
|
+
private destroy$;
|
|
17
|
+
private subscriptions;
|
|
18
|
+
private draggedIndex;
|
|
19
|
+
private resizing;
|
|
20
|
+
private resizeColumnIndex;
|
|
21
|
+
private startX;
|
|
22
|
+
private startWidth;
|
|
23
|
+
constructor(eventService: OneGridEventService, cdr: ChangeDetectorRef);
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
onHeaderMenuOptionClick(columnDef: OneColumnDef<T>): void;
|
|
26
|
+
onHeaderMenuSortClick(colId: keyof T): void;
|
|
27
|
+
private cycleSort;
|
|
28
|
+
onResizeStart(event: MouseEvent, columnIndex: number): void;
|
|
29
|
+
private onResizeMove;
|
|
30
|
+
private onResizeEnd;
|
|
31
|
+
onDragColumnStart(event: DragEvent, index: number): void;
|
|
32
|
+
onDragColumnOver(event: DragEvent, targetIndex: number): void;
|
|
33
|
+
onDragColumnEnd(event: DragEvent): void;
|
|
34
|
+
onDropColumn(event: DragEvent): void;
|
|
35
|
+
/**
|
|
36
|
+
* Clear All Subscriptions
|
|
37
|
+
*/
|
|
38
|
+
ngOnDestroy(): void;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OneGridHeaderComponent<any>, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OneGridHeaderComponent<any>, "one-grid-header", never, { "scrollLeft": { "alias": "scrollLeft"; "required": false; }; "allowedEdit": { "alias": "allowedEdit"; "required": false; }; "enableGroupColumnDefs": { "alias": "enableGroupColumnDefs"; "required": false; }; "api": { "alias": "api"; "required": false; }; }, {}, never, never, false, never>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AfterViewInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import { OnePaginationParams } from '../../core/models/one-pagination-types.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class OneGridPaginationComponent implements AfterViewInit {
|
|
5
|
+
paginate: OnePaginationParams;
|
|
6
|
+
goToFirst: EventEmitter<any>;
|
|
7
|
+
goToPrevious: EventEmitter<any>;
|
|
8
|
+
goToNext: EventEmitter<any>;
|
|
9
|
+
goToLast: EventEmitter<any>;
|
|
10
|
+
pageSizeChange: EventEmitter<any>;
|
|
11
|
+
pageSize: number;
|
|
12
|
+
pageSizeOptions: number[];
|
|
13
|
+
ngAfterViewInit(): void;
|
|
14
|
+
goToFirstPage(): void;
|
|
15
|
+
goToPreviousPage(): void;
|
|
16
|
+
goToNextPage(): void;
|
|
17
|
+
goToLastPage(): void;
|
|
18
|
+
onPageSizeChange(event: Event): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OneGridPaginationComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OneGridPaginationComponent, "one-grid-pagination", never, { "paginate": { "alias": "paginate"; "required": false; }; }, { "goToFirst": "goToFirst"; "goToPrevious": "goToPrevious"; "goToNext": "goToNext"; "goToLast": "goToLast"; "pageSizeChange": "pageSizeChange"; }, never, never, false, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { OneRowNode } from '../../core/instants/one-row-node.class';
|
|
3
|
+
import { OneGridRowActionEvent, OneGridType } from '../../core/models/one-grid-types.model';
|
|
4
|
+
import { OneCellRendererParams, OneColumnDef } from '../../core/models/one-column-def-types.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class OneGridRowActionComponent<T> implements OnInit {
|
|
7
|
+
/**
|
|
8
|
+
* Get Node & Cell Renderer From Parent Component
|
|
9
|
+
*/
|
|
10
|
+
column: OneColumnDef<T>;
|
|
11
|
+
node: OneRowNode<T>;
|
|
12
|
+
allowedEdit: boolean;
|
|
13
|
+
masterDetail: boolean;
|
|
14
|
+
masterNode: OneRowNode<T>;
|
|
15
|
+
cellRendererParams: OneCellRendererParams<T>;
|
|
16
|
+
gridType: OneGridType;
|
|
17
|
+
context: any;
|
|
18
|
+
/**
|
|
19
|
+
* Bind Event to Parent Component
|
|
20
|
+
*/
|
|
21
|
+
onRowGotoDetail: EventEmitter<OneGridRowActionEvent<T>>;
|
|
22
|
+
onRowAddNew: EventEmitter<OneGridRowActionEvent<T>>;
|
|
23
|
+
onRowView: EventEmitter<OneGridRowActionEvent<T>>;
|
|
24
|
+
onRowLocation: EventEmitter<OneGridRowActionEvent<T>>;
|
|
25
|
+
onRowDocument: EventEmitter<OneGridRowActionEvent<T>>;
|
|
26
|
+
onRowCopy: EventEmitter<OneGridRowActionEvent<T>>;
|
|
27
|
+
onRowDelete: EventEmitter<OneGridRowActionEvent<T>>;
|
|
28
|
+
onRowGotoList: EventEmitter<OneGridRowActionEvent<T>>;
|
|
29
|
+
onRowEdit: EventEmitter<OneGridRowActionEvent<T>>;
|
|
30
|
+
onRowPrint: EventEmitter<OneGridRowActionEvent<T>>;
|
|
31
|
+
onRowHistory: EventEmitter<OneGridRowActionEvent<T>>;
|
|
32
|
+
onRowOption: EventEmitter<OneGridRowActionEvent<T>>;
|
|
33
|
+
onRowLanguage: EventEmitter<OneGridRowActionEvent<T>>;
|
|
34
|
+
onRowCellOption: EventEmitter<OneGridRowActionEvent<T>>;
|
|
35
|
+
protected detailActiveExcludeLevels: Set<number>;
|
|
36
|
+
protected gotoDetailExcludeLevels: Set<number>;
|
|
37
|
+
protected addNewExcludeLevels: Set<number>;
|
|
38
|
+
ngOnInit(): void;
|
|
39
|
+
/**
|
|
40
|
+
* Trigger Invoke Click Event
|
|
41
|
+
*/
|
|
42
|
+
invokeRowToggleDetailActiveExpand(node: OneRowNode): void;
|
|
43
|
+
invokeRowActionGotoDetail(node: OneRowNode<T>, column: OneColumnDef<T>): void;
|
|
44
|
+
invokeRowActionAddNew(node: OneRowNode<T>, column: OneColumnDef<T>): void;
|
|
45
|
+
invokeRowActionView(node: OneRowNode<T>, column: OneColumnDef<T>): void;
|
|
46
|
+
invokeRowActionLocation(node: OneRowNode<T>, column: OneColumnDef<T>): void;
|
|
47
|
+
invokeRowActionDocument(node: OneRowNode<T>, column: OneColumnDef<T>): void;
|
|
48
|
+
invokeRowActionCopy(node: OneRowNode<T>, column: OneColumnDef<T>): void;
|
|
49
|
+
invokeRowActionDelete(node: OneRowNode<T>, column: OneColumnDef<T>): void;
|
|
50
|
+
invokeRowActionGotoList(node: OneRowNode<T>, column: OneColumnDef<T>): void;
|
|
51
|
+
invokeRowActionEdit(node: OneRowNode<T>, column: OneColumnDef<T>): void;
|
|
52
|
+
invokeRowActionPrint(node: OneRowNode<T>, column: OneColumnDef<T>): void;
|
|
53
|
+
invokeRowActionHistory(node: OneRowNode<T>, column: OneColumnDef<T>): void;
|
|
54
|
+
invokeRowActionOption(node: OneRowNode<T>, column: OneColumnDef<T>): void;
|
|
55
|
+
invokeRowActionLanguage(node: OneRowNode<T>, column: OneColumnDef<T>): void;
|
|
56
|
+
invokeRowActionCellOption(node: OneRowNode<T>, column: OneColumnDef<T>): void;
|
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OneGridRowActionComponent<any>, never>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OneGridRowActionComponent<any>, "one-grid-row-action", never, { "column": { "alias": "column"; "required": true; }; "node": { "alias": "node"; "required": true; }; "allowedEdit": { "alias": "allowedEdit"; "required": true; }; "masterDetail": { "alias": "masterDetail"; "required": false; }; "masterNode": { "alias": "masterNode"; "required": false; }; "cellRendererParams": { "alias": "cellRendererParams"; "required": false; }; "gridType": { "alias": "gridType"; "required": false; }; "context": { "alias": "context"; "required": false; }; }, { "onRowGotoDetail": "onRowGotoDetail"; "onRowAddNew": "onRowAddNew"; "onRowView": "onRowView"; "onRowLocation": "onRowLocation"; "onRowDocument": "onRowDocument"; "onRowCopy": "onRowCopy"; "onRowDelete": "onRowDelete"; "onRowGotoList": "onRowGotoList"; "onRowEdit": "onRowEdit"; "onRowPrint": "onRowPrint"; "onRowHistory": "onRowHistory"; "onRowOption": "onRowOption"; "onRowLanguage": "onRowLanguage"; "onRowCellOption": "onRowCellOption"; }, never, never, false, never>;
|
|
59
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OneCellRendererComponent } from '../../core/models/one-tree-data.model';
|
|
2
|
+
import { OneCellRendererParams } from '../../core/models/one-column-def-types.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class OneGridStatusComponent implements OneCellRendererComponent {
|
|
5
|
+
protected params: OneCellRendererParams;
|
|
6
|
+
protected value: string;
|
|
7
|
+
protected label: number;
|
|
8
|
+
protected type: 'enableStatus' | 'activeStatus' | 'operationActiveStatus' | null;
|
|
9
|
+
oneInit(params: OneCellRendererParams): void;
|
|
10
|
+
refresh(params: OneCellRendererParams): boolean;
|
|
11
|
+
private getType;
|
|
12
|
+
private getLabel;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OneGridStatusComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OneGridStatusComponent, "one-grid-status", never, {}, {}, never, never, false, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { OneCellValidationType } from '../models/one-column-def-types.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class OneCellInputValidatorDirective {
|
|
5
|
+
private el;
|
|
6
|
+
validationType?: OneCellValidationType;
|
|
7
|
+
regex?: string;
|
|
8
|
+
private readonly MAX_CODE_LENGTH;
|
|
9
|
+
private readonly KHMER_CHARACTER_RANGE;
|
|
10
|
+
constructor(el: ElementRef<HTMLInputElement>);
|
|
11
|
+
onKeyPress(event: KeyboardEvent): void;
|
|
12
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OneCellInputValidatorDirective, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<OneCellInputValidatorDirective, "[oneCellInputValidator]", never, { "validationType": { "alias": "validationType"; "required": false; }; "regex": { "alias": "regex"; "required": false; }; }, {}, never, never, false, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { OnChanges, OnDestroy, OnInit, SimpleChanges, Type, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { OneCellRendererParams } from '../models/one-column-def-types.model';
|
|
3
|
+
import { OneCellRendererComponent } from '../models/one-tree-data.model';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class OneCellRendererComponentDirective implements OnInit, OnChanges, OnDestroy {
|
|
6
|
+
private vcr;
|
|
7
|
+
cellRendererComponent: Type<OneCellRendererComponent>;
|
|
8
|
+
params: OneCellRendererParams;
|
|
9
|
+
private compRef?;
|
|
10
|
+
private initialized;
|
|
11
|
+
constructor(vcr: ViewContainerRef);
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
14
|
+
private createOrUpdateComponent;
|
|
15
|
+
private updateComponentInputs;
|
|
16
|
+
private destroyComponent;
|
|
17
|
+
ngOnDestroy(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OneCellRendererComponentDirective, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<OneCellRendererComponentDirective, "[oneCellRendererComponent]", never, { "cellRendererComponent": { "alias": "cellRendererComponent"; "required": true; }; "params": { "alias": "params"; "required": true; }; }, {}, never, never, false, never>;
|
|
20
|
+
}
|