ngx-easy-table-plus 15.7.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/LICENSE +20 -0
- package/README.md +37 -0
- package/esm2022/lib/components/base/base.component.mjs +541 -0
- package/esm2022/lib/components/base/base.module.mjs +46 -0
- package/esm2022/lib/components/header/header.component.mjs +24 -0
- package/esm2022/lib/components/pagination/pagination.component.mjs +68 -0
- package/esm2022/lib/components/thead/thead.component.mjs +147 -0
- package/esm2022/lib/index.mjs +7 -0
- package/esm2022/lib/model/api.mjs +24 -0
- package/esm2022/lib/model/columns.mjs +2 -0
- package/esm2022/lib/model/config.mjs +12 -0
- package/esm2022/lib/model/event.enum.mjs +24 -0
- package/esm2022/lib/model/pagination.mjs +2 -0
- package/esm2022/lib/pipes/global-search-pipe.mjs +30 -0
- package/esm2022/lib/pipes/render-pipe.mjs +18 -0
- package/esm2022/lib/pipes/search-pipe.mjs +51 -0
- package/esm2022/lib/pipes/sort.pipe.mjs +64 -0
- package/esm2022/lib/services/config-service.mjs +51 -0
- package/esm2022/lib/services/filters.service.mjs +16 -0
- package/esm2022/lib/services/group-rows.service.mjs +19 -0
- package/esm2022/lib/services/style.service.mjs +46 -0
- package/esm2022/lib/table.module.mjs +19 -0
- package/esm2022/ngx-easy-table-plus.mjs +5 -0
- package/esm2022/public_api.mjs +9 -0
- package/fesm2022/ngx-easy-table-plus.mjs +1142 -0
- package/fesm2022/ngx-easy-table-plus.mjs.map +1 -0
- package/index.d.ts +6 -0
- package/lib/components/base/base.component.d.ts +112 -0
- package/lib/components/base/base.component.d.ts.map +1 -0
- package/lib/components/base/base.module.d.ts +19 -0
- package/lib/components/base/base.module.d.ts.map +1 -0
- package/lib/components/header/header.component.d.ts +15 -0
- package/lib/components/header/header.component.d.ts.map +1 -0
- package/lib/components/pagination/pagination.component.d.ts +32 -0
- package/lib/components/pagination/pagination.component.d.ts.map +1 -0
- package/lib/components/thead/thead.component.d.ts +52 -0
- package/lib/components/thead/thead.component.d.ts.map +1 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/model/api.d.ts +117 -0
- package/lib/model/api.d.ts.map +1 -0
- package/lib/model/columns.d.ts +19 -0
- package/lib/model/columns.d.ts.map +1 -0
- package/lib/model/config.d.ts +53 -0
- package/lib/model/config.d.ts.map +1 -0
- package/lib/model/event.enum.d.ts +21 -0
- package/lib/model/event.enum.d.ts.map +1 -0
- package/lib/model/pagination.d.ts +6 -0
- package/lib/model/pagination.d.ts.map +1 -0
- package/lib/pipes/global-search-pipe.d.ts +9 -0
- package/lib/pipes/global-search-pipe.d.ts.map +1 -0
- package/lib/pipes/render-pipe.d.ts +8 -0
- package/lib/pipes/render-pipe.d.ts.map +1 -0
- package/lib/pipes/search-pipe.d.ts +15 -0
- package/lib/pipes/search-pipe.d.ts.map +1 -0
- package/lib/pipes/sort.pipe.d.ts +17 -0
- package/lib/pipes/sort.pipe.d.ts.map +1 -0
- package/lib/services/config-service.d.ts +9 -0
- package/lib/services/config-service.d.ts.map +1 -0
- package/lib/services/filters.service.d.ts +7 -0
- package/lib/services/filters.service.d.ts.map +1 -0
- package/lib/services/group-rows.service.d.ts +7 -0
- package/lib/services/group-rows.service.d.ts.map +1 -0
- package/lib/services/style.service.d.ts +12 -0
- package/lib/services/style.service.d.ts.map +1 -0
- package/lib/table.module.d.ts +10 -0
- package/lib/table.module.d.ts.map +1 -0
- package/ngx-easy-table-plus.d.ts.map +1 -0
- package/package.json +44 -0
- package/public_api.d.ts +9 -0
- package/public_api.d.ts.map +1 -0
- package/style.css +514 -0
- package/style.css.map +1 -0
- package/style.scss +616 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
export declare enum API {
|
|
2
|
+
rowContextMenuClicked = "rowContextMenuClicked",
|
|
3
|
+
setInputValue = "setInputValue",
|
|
4
|
+
toggleRowIndex = "toggleRowIndex",
|
|
5
|
+
toggleCheckbox = "toggleCheckbox",
|
|
6
|
+
onGlobalSearch = "onGlobalSearch",
|
|
7
|
+
setPaginationCurrentPage = "setPaginationCurrentPage",
|
|
8
|
+
getPaginationCurrentPage = "getPaginationCurrentPage",
|
|
9
|
+
getPaginationTotalItems = "getPaginationTotalItems",
|
|
10
|
+
getNumberOfRowsPerPage = "getNumberOfRowsPerPage",
|
|
11
|
+
getPaginationLastPage = "getPaginationLastPage",
|
|
12
|
+
setPaginationRange = "setPaginationRange",
|
|
13
|
+
setPaginationPreviousLabel = "setPaginationPreviousLabel",
|
|
14
|
+
setPaginationNextLabel = "setPaginationNextLabel",
|
|
15
|
+
setPaginationDisplayLimit = "setPaginationDisplayLimit",
|
|
16
|
+
setTableClass = "setTableClass",
|
|
17
|
+
setRowClass = "setRowClass",
|
|
18
|
+
setCellClass = "setCellClass",
|
|
19
|
+
setRowStyle = "setRowStyle",
|
|
20
|
+
setCellStyle = "setCellStyle",
|
|
21
|
+
sortBy = "sortBy"
|
|
22
|
+
}
|
|
23
|
+
export interface RowClass {
|
|
24
|
+
row: number;
|
|
25
|
+
className: string;
|
|
26
|
+
}
|
|
27
|
+
export interface CellClass {
|
|
28
|
+
row: number;
|
|
29
|
+
cell: number | string;
|
|
30
|
+
className: string;
|
|
31
|
+
}
|
|
32
|
+
export interface RowStyle {
|
|
33
|
+
row: number;
|
|
34
|
+
attr: string;
|
|
35
|
+
value: string;
|
|
36
|
+
}
|
|
37
|
+
export interface CellStyle {
|
|
38
|
+
row: number;
|
|
39
|
+
cell: number;
|
|
40
|
+
attr: string;
|
|
41
|
+
value: string;
|
|
42
|
+
}
|
|
43
|
+
export type ApiType = {
|
|
44
|
+
type: API.rowContextMenuClicked;
|
|
45
|
+
} | {
|
|
46
|
+
type: API.setInputValue;
|
|
47
|
+
value: Array<{
|
|
48
|
+
key: string;
|
|
49
|
+
value: string;
|
|
50
|
+
}>;
|
|
51
|
+
} | {
|
|
52
|
+
type: API.toggleRowIndex;
|
|
53
|
+
value: number;
|
|
54
|
+
} | {
|
|
55
|
+
type: API.toggleCheckbox;
|
|
56
|
+
value: number;
|
|
57
|
+
} | {
|
|
58
|
+
type: API.onGlobalSearch;
|
|
59
|
+
value: string;
|
|
60
|
+
} | {
|
|
61
|
+
type: API.setPaginationCurrentPage;
|
|
62
|
+
value: number;
|
|
63
|
+
} | {
|
|
64
|
+
type: API.getPaginationCurrentPage;
|
|
65
|
+
} | {
|
|
66
|
+
type: API.getPaginationTotalItems;
|
|
67
|
+
} | {
|
|
68
|
+
type: API.getPaginationLastPage;
|
|
69
|
+
} | {
|
|
70
|
+
type: API.getNumberOfRowsPerPage;
|
|
71
|
+
} | {
|
|
72
|
+
type: API.setPaginationRange;
|
|
73
|
+
value: number[];
|
|
74
|
+
} | {
|
|
75
|
+
type: API.setPaginationPreviousLabel;
|
|
76
|
+
value: string;
|
|
77
|
+
} | {
|
|
78
|
+
type: API.setPaginationNextLabel;
|
|
79
|
+
value: string;
|
|
80
|
+
} | {
|
|
81
|
+
type: API.setPaginationDisplayLimit;
|
|
82
|
+
value: number;
|
|
83
|
+
} | {
|
|
84
|
+
type: API.setTableClass;
|
|
85
|
+
value: string | null;
|
|
86
|
+
} | {
|
|
87
|
+
type: API.setRowClass;
|
|
88
|
+
value: RowClass | RowClass[];
|
|
89
|
+
} | {
|
|
90
|
+
type: API.setCellClass;
|
|
91
|
+
value: CellClass | CellClass[];
|
|
92
|
+
} | {
|
|
93
|
+
type: API.setRowStyle;
|
|
94
|
+
value: RowStyle | RowStyle[];
|
|
95
|
+
} | {
|
|
96
|
+
type: API.setCellStyle;
|
|
97
|
+
value: CellStyle | CellStyle[];
|
|
98
|
+
} | {
|
|
99
|
+
type: API.sortBy;
|
|
100
|
+
value: {
|
|
101
|
+
column: string;
|
|
102
|
+
order: 'asc' | 'desc';
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
export interface APIDefinition {
|
|
106
|
+
apiEvent<B extends ApiType>(event: B): IAPIDefinition<B>;
|
|
107
|
+
}
|
|
108
|
+
export type IAPIDefinition<B> = B extends {
|
|
109
|
+
type: API.getPaginationCurrentPage;
|
|
110
|
+
} | {
|
|
111
|
+
type: API.getPaginationTotalItems;
|
|
112
|
+
} | {
|
|
113
|
+
type: API.getPaginationLastPage;
|
|
114
|
+
} | {
|
|
115
|
+
type: API.getNumberOfRowsPerPage;
|
|
116
|
+
} ? number : void;
|
|
117
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../projects/ngx-easy-table/src/lib/model/api.ts"],"names":[],"mappings":"AAAA,oBAAY,GAAG;IACb,qBAAqB,0BAA0B;IAC/C,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;IACjC,cAAc,mBAAmB;IACjC,cAAc,mBAAmB;IACjC,wBAAwB,6BAA6B;IACrD,wBAAwB,6BAA6B;IACrD,uBAAuB,4BAA4B;IACnD,sBAAsB,2BAA2B;IACjD,qBAAqB,0BAA0B;IAC/C,kBAAkB,uBAAuB;IACzC,0BAA0B,+BAA+B;IACzD,sBAAsB,2BAA2B;IACjD,yBAAyB,8BAA8B;IACvD,aAAa,kBAAkB;IAC/B,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;IAC7B,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;CACnB;AACD,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;CACnB;AACD,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AACD,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,IA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
|
+
title: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
width?: string;
|
|
7
|
+
cellTemplate?: TemplateRef<any>;
|
|
8
|
+
orderEnabled?: boolean;
|
|
9
|
+
orderEventOnly?: boolean;
|
|
10
|
+
searchEnabled?: boolean;
|
|
11
|
+
orderBy?: string;
|
|
12
|
+
cssClass?: {
|
|
13
|
+
name: string;
|
|
14
|
+
includeHeader: boolean;
|
|
15
|
+
};
|
|
16
|
+
pinned?: boolean;
|
|
17
|
+
headerActionTemplate?: TemplateRef<any>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=columns.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"columns.d.ts","sourceRoot":"","sources":["../../../../projects/ngx-easy-table/src/lib/model/columns.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;IAChC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,OAAO,CAAA;KAAE,CAAC;IACpD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,oBAAoB,CAAC,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;CACzC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export interface Config {
|
|
2
|
+
searchEnabled: boolean;
|
|
3
|
+
headerEnabled: boolean;
|
|
4
|
+
orderEnabled: boolean;
|
|
5
|
+
orderEventOnly?: boolean;
|
|
6
|
+
paginationEnabled: boolean;
|
|
7
|
+
clickEvent: boolean;
|
|
8
|
+
selectRow: boolean;
|
|
9
|
+
selectCol: boolean;
|
|
10
|
+
selectCell: boolean;
|
|
11
|
+
rows: number;
|
|
12
|
+
additionalActions: boolean;
|
|
13
|
+
serverPagination: boolean;
|
|
14
|
+
isLoading: boolean;
|
|
15
|
+
detailsTemplate: boolean;
|
|
16
|
+
groupRows: boolean;
|
|
17
|
+
paginationRangeEnabled: boolean;
|
|
18
|
+
collapseAllRows: boolean;
|
|
19
|
+
checkboxes: boolean;
|
|
20
|
+
radio?: boolean;
|
|
21
|
+
resizeColumn: boolean;
|
|
22
|
+
fixedColumnWidth: boolean;
|
|
23
|
+
horizontalScroll: boolean;
|
|
24
|
+
logger: boolean;
|
|
25
|
+
showDetailsArrow?: boolean;
|
|
26
|
+
showContextMenu?: boolean;
|
|
27
|
+
persistState?: boolean;
|
|
28
|
+
paginationMaxSize?: number;
|
|
29
|
+
threeWaySort?: boolean;
|
|
30
|
+
columnReorder?: boolean;
|
|
31
|
+
rowReorder?: boolean;
|
|
32
|
+
reorderDelay?: number;
|
|
33
|
+
infiniteScroll?: boolean;
|
|
34
|
+
infiniteScrollThrottleTime?: number;
|
|
35
|
+
onDragOver?: boolean;
|
|
36
|
+
tableLayout: {
|
|
37
|
+
style: STYLE | string | null;
|
|
38
|
+
theme: THEME | string | null;
|
|
39
|
+
borderless: boolean | null;
|
|
40
|
+
hover: boolean | null;
|
|
41
|
+
striped: boolean | null;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export declare enum STYLE {
|
|
45
|
+
TINY = "tiny",
|
|
46
|
+
BIG = "big",
|
|
47
|
+
NORMAL = "normal"
|
|
48
|
+
}
|
|
49
|
+
export declare enum THEME {
|
|
50
|
+
LIGHT = "light",
|
|
51
|
+
DARK = "dark"
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=config.d.ts.map
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AAM,CAAC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE;QACX,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,IAAI,CAAC;QAC7B,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,IAAI,CAAC;QAC7B,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;QAC3B,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;QACtB,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;KACzB,CAAC;CACH;AAED,oBAAY,KAAK;IACf,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,MAAM,WAAW;CAClB;AAED,oBAAY,KAAK;IACf,KAAK,UAAU;IACf,IAAI,SAAS;CACd"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare enum Event {
|
|
2
|
+
onPagination = "onPagination",
|
|
3
|
+
onOrder = "onOrder",
|
|
4
|
+
onGlobalSearch = "onGlobalSearch",
|
|
5
|
+
onSearch = "onSearch",
|
|
6
|
+
onClick = "onClick",
|
|
7
|
+
onDoubleClick = "onDoubleClick",
|
|
8
|
+
onCheckboxSelect = "onCheckboxSelect",
|
|
9
|
+
onRadioSelect = "onRadioSelect",
|
|
10
|
+
onCheckboxToggle = "onCheckboxToggle",
|
|
11
|
+
onSelectAll = "onSelectAll",
|
|
12
|
+
onInfiniteScrollEnd = "onInfiniteScrollEnd",
|
|
13
|
+
onColumnResizeMouseDown = "onColumnResizeMouseDown",
|
|
14
|
+
onColumnResizeMouseUp = "onColumnResizeMouseUp",
|
|
15
|
+
onRowDrop = "onRowDrop",
|
|
16
|
+
onReorderStart = "onReorderStart",
|
|
17
|
+
onRowCollapsedShow = "onRowCollapsedShow",
|
|
18
|
+
onRowCollapsedHide = "onRowCollapsedHide",
|
|
19
|
+
onRowContextMenu = "onRowContextMenu"
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=event.enum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event.enum.d.ts","sourceRoot":"","sources":["../../../../projects/ngx-easy-table/src/lib/model/event.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,KAAK;IACf,YAAY,iBAAiB;IAC7B,OAAO,YAAY;IACnB,cAAc,mBAAmB;IACjC,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,aAAa,kBAAkB;IAC/B,gBAAgB,qBAAqB;IACrC,aAAa,kBAAkB;IAC/B,gBAAgB,qBAAqB;IACrC,WAAW,gBAAgB;IAC3B,mBAAmB,wBAAwB;IAC3C,uBAAuB,4BAA4B;IACnD,qBAAqB,0BAA0B;IAE/C,SAAS,cAAc;IAEvB,cAAc,mBAAmB;IACjC,kBAAkB,uBAAuB;IACzC,kBAAkB,uBAAuB;IACzC,gBAAgB,qBAAqB;CACtC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../../projects/ngx-easy-table/src/lib/model/pagination.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class GlobalSearchPipe implements PipeTransform {
|
|
5
|
+
transform(array: any[], filter: string, filteredCountSubject: Subject<number>): any;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GlobalSearchPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<GlobalSearchPipe, "global", false>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=global-search-pipe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"global-search-pipe.d.ts","sourceRoot":"","sources":["../../../../projects/ngx-easy-table/src/lib/pipes/global-search-pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;;AAE/B,qBAGa,gBAAiB,YAAW,aAAa;IACpD,SAAS,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,oBAAoB,EAAE,OAAO,CAAC,MAAM,CAAC,GAAG,GAAG;yCADxE,gBAAgB;uCAAhB,gBAAgB;CAqB5B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class RenderPipe implements PipeTransform {
|
|
4
|
+
transform(row: any, key: string): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RenderPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<RenderPipe, "render", false>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=render-pipe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render-pipe.d.ts","sourceRoot":"","sources":["../../../../projects/ngx-easy-table/src/lib/pipes/render-pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAE,MAAM,eAAe,CAAC;;AAGpD,qBAGa,UAAW,YAAW,aAAa;IAC9C,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM;yCAD7B,UAAU;uCAAV,UAAU;CAMtB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { Config } from '..';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SearchPipe implements PipeTransform {
|
|
6
|
+
private filters;
|
|
7
|
+
transform(array: any[], filter: Array<{
|
|
8
|
+
value: string;
|
|
9
|
+
key: string;
|
|
10
|
+
}>, filteredCountSubject: Subject<number>, config?: Config): any;
|
|
11
|
+
private filterGroup;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SearchPipe, never>;
|
|
13
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SearchPipe, "search", false>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=search-pipe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-pipe.d.ts","sourceRoot":"","sources":["../../../../projects/ngx-easy-table/src/lib/pipes/search-pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;;AAE/B,qBAGa,UAAW,YAAW,aAAa;IAC9C,OAAO,CAAC,OAAO,CAAiC;IAEhD,SAAS,CACP,KAAK,EAAE,GAAG,EAAE,EACZ,MAAM,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC,EAC7C,oBAAoB,EAAE,OAAO,CAAC,MAAM,CAAC,EACrC,MAAM,CAAC,EAAE,MAAM,GACd,GAAG;IAsBN,OAAO,CAAC,WAAW;yCA9BR,UAAU;uCAAV,UAAU;CA4CtB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { Config } from '..';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SortPipe implements PipeTransform {
|
|
5
|
+
private defaultArray;
|
|
6
|
+
private static isNaN;
|
|
7
|
+
private static compare;
|
|
8
|
+
transform(array: any[], filter: {
|
|
9
|
+
order: string;
|
|
10
|
+
key: string;
|
|
11
|
+
}, config?: Config): any[];
|
|
12
|
+
private sortAsc;
|
|
13
|
+
private sortDesc;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SortPipe, never>;
|
|
15
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SortPipe, "sort", false>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=sort.pipe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sort.pipe.d.ts","sourceRoot":"","sources":["../../../../projects/ngx-easy-table/src/lib/pipes/sort.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;;AAE5B,qBAGa,QAAS,YAAW,aAAa;IAC5C,OAAO,CAAC,YAAY,CAAa;IAEjC,OAAO,CAAC,MAAM,CAAC,KAAK;IAIpB,OAAO,CAAC,MAAM,CAAC,OAAO;IAmBtB,SAAS,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,GAAG,EAAE;IAgBvF,OAAO,CAAC,OAAO;IAOf,OAAO,CAAC,QAAQ;yCAjDL,QAAQ;uCAAR,QAAQ;CAuDpB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Config } from '../model/config';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare const DefaultConfig: Config;
|
|
4
|
+
export declare class DefaultConfigService {
|
|
5
|
+
static config: Config;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DefaultConfigService, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DefaultConfigService>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=config-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-service.d.ts","sourceRoot":"","sources":["../../../../projects/ngx-easy-table/src/lib/services/config-service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAgB,MAAM,iBAAiB,CAAC;;AAGvD,eAAO,MAAM,aAAa,EAAE,MAqC3B,CAAC;AAEF,qBACa,oBAAoB;IAC/B,OAAc,MAAM,EAAE,MAAM,CAAiB;yCADlC,oBAAoB;6CAApB,oBAAoB;CAEhC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FiltersService {
|
|
3
|
+
static getPath(p: string[], o: any): any;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FiltersService, never>;
|
|
5
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FiltersService>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=filters.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filters.service.d.ts","sourceRoot":"","sources":["../../../../projects/ngx-easy-table/src/lib/services/filters.service.ts"],"names":[],"mappings":";AAEA,qBACa,cAAc;IACzB,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,GAAG,GAAG,GAAG;yCAD7B,cAAc;6CAAd,cAAc;CAO1B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class GroupRowsService {
|
|
3
|
+
static doGroupRows<T>(data: T[], groupRowsBy: string): any[];
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GroupRowsService, never>;
|
|
5
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GroupRowsService>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=group-rows.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group-rows.service.d.ts","sourceRoot":"","sources":["../../../../projects/ngx-easy-table/src/lib/services/group-rows.service.ts"],"names":[],"mappings":";AAIA,qBACa,gBAAgB;WACb,WAAW,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,WAAW,EAAE,MAAM,GAAG,GAAG,EAAE;yCADxD,gBAAgB;6CAAhB,gBAAgB;CAY5B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CellClass, CellStyle, RowClass, RowStyle } from '..';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class StyleService {
|
|
4
|
+
setRowClass(val: RowClass): void;
|
|
5
|
+
setCellClass(val: CellClass): void;
|
|
6
|
+
setRowStyle(val: RowStyle): void;
|
|
7
|
+
setCellStyle(val: CellStyle): void;
|
|
8
|
+
pinnedWidth(pinned: boolean | undefined, column: number): string | undefined;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StyleService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StyleService>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=style.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style.service.d.ts","sourceRoot":"","sources":["../../../../projects/ngx-easy-table/src/lib/services/style.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,IAAI,CAAC;;AAG9D,qBACa,YAAY;IAChB,WAAW,CAAC,GAAG,EAAE,QAAQ,GAAG,IAAI;IAQhC,YAAY,CAAC,GAAG,EAAE,SAAS,GAAG,IAAI;IAQlC,WAAW,CAAC,GAAG,EAAE,QAAQ,GAAG,IAAI;IAShC,YAAY,CAAC,GAAG,EAAE,SAAS,GAAG,IAAI;IASlC,WAAW,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;yCAnCxE,YAAY;6CAAZ,YAAY;CAwCxB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "./components/base/base.module";
|
|
4
|
+
import * as i3 from "./components/base/base.component";
|
|
5
|
+
export declare class TableModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TableModule, never, [typeof i1.CommonModule, typeof i2.BaseModule], [typeof i3.BaseComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TableModule>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=table.module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.module.d.ts","sourceRoot":"","sources":["../../../projects/ngx-easy-table/src/lib/table.module.ts"],"names":[],"mappings":";;;;AAMA,qBAKa,WAAW;yCAAX,WAAW;0CAAX,WAAW;0CAAX,WAAW;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-easy-table-plus.d.ts","sourceRoot":"","sources":["../../projects/ngx-easy-table/src/ngx-easy-table-plus.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,cAAc,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ngx-easy-table-plus",
|
|
3
|
+
"version": "15.7.0",
|
|
4
|
+
"description": "Angular easy table",
|
|
5
|
+
"typings": "index.d.ts",
|
|
6
|
+
"repository": "https://github.com/vincent-cholet/ngx-easy-table-plus.git",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"peerDependencies": {
|
|
9
|
+
"@angular/cdk": ">=16.0.0",
|
|
10
|
+
"@angular/common": ">=16.0.0",
|
|
11
|
+
"@angular/core": ">=16.0.0",
|
|
12
|
+
"ngx-pagination": "^6.0.3"
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"ngx-pagination": "^6.0.3",
|
|
16
|
+
"tslib": "^2.0.0"
|
|
17
|
+
},
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/vincent-cholet/ngx-easy-table-plus/issues"
|
|
20
|
+
},
|
|
21
|
+
"homepage": "https://github.com/vincent-cholet/ngx-easy-table-plus",
|
|
22
|
+
"main": "main.js",
|
|
23
|
+
"keywords": [
|
|
24
|
+
"angular",
|
|
25
|
+
"table",
|
|
26
|
+
"angular table",
|
|
27
|
+
"angular-table",
|
|
28
|
+
"ngx-easy-table"
|
|
29
|
+
],
|
|
30
|
+
"author": "Sebastian Superczynski <s.superczynski@gmail.com>",
|
|
31
|
+
"module": "fesm2022/ngx-easy-table-plus.mjs",
|
|
32
|
+
"exports": {
|
|
33
|
+
"./package.json": {
|
|
34
|
+
"default": "./package.json"
|
|
35
|
+
},
|
|
36
|
+
".": {
|
|
37
|
+
"types": "./index.d.ts",
|
|
38
|
+
"esm2022": "./esm2022/ngx-easy-table-plus.mjs",
|
|
39
|
+
"esm": "./esm2022/ngx-easy-table-plus.mjs",
|
|
40
|
+
"default": "./fesm2022/ngx-easy-table-plus.mjs"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"sideEffects": false
|
|
44
|
+
}
|
package/public_api.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './lib/table.module';
|
|
2
|
+
export * from './lib/model/config';
|
|
3
|
+
export * from './lib/model/columns';
|
|
4
|
+
export * from './lib/model/event.enum';
|
|
5
|
+
export * from './lib/model/pagination';
|
|
6
|
+
export * from './lib/model/api';
|
|
7
|
+
export { DefaultConfig } from './lib/services/config-service';
|
|
8
|
+
export * from './lib/components/base/base.component';
|
|
9
|
+
//# sourceMappingURL=public_api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public_api.d.ts","sourceRoot":"","sources":["../../projects/ngx-easy-table/src/public_api.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,cAAc,sCAAsC,CAAC"}
|