@enigmatry/entry-components 20.3.1-preview.1 → 21.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/fesm2022/enigmatry-entry-components-button.mjs +14 -11
- package/fesm2022/enigmatry-entry-components-button.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-common.mjs +31 -31
- package/fesm2022/enigmatry-entry-components-common.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-date-time-picker.mjs +20 -20
- package/fesm2022/enigmatry-entry-components-date-time-picker.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-dialog.mjs +21 -21
- package/fesm2022/enigmatry-entry-components-dialog.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-file-input.mjs +11 -12
- package/fesm2022/enigmatry-entry-components-file-input.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-permissions.mjs +10 -10
- package/fesm2022/enigmatry-entry-components-permissions.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-search-filter.mjs +33 -33
- package/fesm2022/enigmatry-entry-components-search-filter.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-spinner.mjs +22 -13
- package/fesm2022/enigmatry-entry-components-spinner.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-table.mjs +224 -322
- package/fesm2022/enigmatry-entry-components-table.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-validation.mjs +31 -24
- package/fesm2022/enigmatry-entry-components-validation.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components.mjs +4 -4
- package/fesm2022/enigmatry-entry-components.mjs.map +1 -1
- package/package.json +25 -24
- package/styles/modules/components/toggle/_generator.scss +1 -1
- package/styles/partials/core/components/forms/_general.scss +1 -0
- package/table/README.md +57 -44
- package/{button/index.d.ts → types/enigmatry-entry-components-button.d.ts} +1 -1
- package/types/enigmatry-entry-components-table.d.ts +256 -0
- package/table/index.d.ts +0 -260
- /package/{common/index.d.ts → types/enigmatry-entry-components-common.d.ts} +0 -0
- /package/{date-time-picker/index.d.ts → types/enigmatry-entry-components-date-time-picker.d.ts} +0 -0
- /package/{dialog/index.d.ts → types/enigmatry-entry-components-dialog.d.ts} +0 -0
- /package/{file-input/index.d.ts → types/enigmatry-entry-components-file-input.d.ts} +0 -0
- /package/{permissions/index.d.ts → types/enigmatry-entry-components-permissions.d.ts} +0 -0
- /package/{search-filter/index.d.ts → types/enigmatry-entry-components-search-filter.d.ts} +0 -0
- /package/{spinner/index.d.ts → types/enigmatry-entry-components-spinner.d.ts} +0 -0
- /package/{validation/index.d.ts → types/enigmatry-entry-components-validation.d.ts} +0 -0
- /package/{index.d.ts → types/enigmatry-entry-components.d.ts} +0 -0
package/table/index.d.ts
DELETED
|
@@ -1,260 +0,0 @@
|
|
|
1
|
-
import * as _angular_material_paginator from '@angular/material/paginator';
|
|
2
|
-
import { PageEvent } from '@angular/material/paginator';
|
|
3
|
-
export { PageEvent } from '@angular/material/paginator';
|
|
4
|
-
import * as i8 from '@angular/material/sort';
|
|
5
|
-
import { Sort, SortDirection } from '@angular/material/sort';
|
|
6
|
-
export { SortDirection, Sort as SortEvent } from '@angular/material/sort';
|
|
7
|
-
import * as i0 from '@angular/core';
|
|
8
|
-
import { InjectionToken, Provider, TemplateRef, OnChanges, EventEmitter, SimpleChanges, OnInit } from '@angular/core';
|
|
9
|
-
import { Params } from '@angular/router';
|
|
10
|
-
import { SelectionModel } from '@angular/cdk/collections';
|
|
11
|
-
import * as i7 from '@angular/material/table';
|
|
12
|
-
import { MatTableDataSource } from '@angular/material/table';
|
|
13
|
-
import * as i12 from '@angular/material/menu';
|
|
14
|
-
import { MatMenuPanel } from '@angular/material/menu';
|
|
15
|
-
import * as i5 from '@angular/common';
|
|
16
|
-
import * as i6 from '@angular/forms';
|
|
17
|
-
import * as i10 from '@angular/material/checkbox';
|
|
18
|
-
import * as i11 from '@angular/material/icon';
|
|
19
|
-
import * as i13 from '@angular/material/radio';
|
|
20
|
-
import * as i14 from '@angular/material/button';
|
|
21
|
-
|
|
22
|
-
interface PagedData<T> {
|
|
23
|
-
items?: T[];
|
|
24
|
-
pageSize?: number;
|
|
25
|
-
pageNumber?: number;
|
|
26
|
-
totalCount?: number;
|
|
27
|
-
totalPages?: number;
|
|
28
|
-
hasPreviousPage?: boolean;
|
|
29
|
-
hasNextPage?: boolean;
|
|
30
|
-
}
|
|
31
|
-
interface OnSort {
|
|
32
|
-
sortChange(sort: Sort): void;
|
|
33
|
-
}
|
|
34
|
-
interface OnPage {
|
|
35
|
-
pageChange(page: PageEvent): void;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
declare class EntryTableConfig {
|
|
39
|
-
/** Show paginator, default is true */
|
|
40
|
-
showPaginator: boolean;
|
|
41
|
-
/** Show first and last pagination buttons, default is false */
|
|
42
|
-
showFirstLastButtons: boolean;
|
|
43
|
-
/** Page size, default 20 */
|
|
44
|
-
pageSize: number;
|
|
45
|
-
/** Page size options, default [20, 50, 100] */
|
|
46
|
-
pageSizeOptions: number[];
|
|
47
|
-
/** Hide page size options, default is false */
|
|
48
|
-
hidePageSize: boolean;
|
|
49
|
-
/** Hide pagination, default is false */
|
|
50
|
-
noResultsText: string;
|
|
51
|
-
/** Row focus visible, default is false */
|
|
52
|
-
rowFocusVisible: boolean;
|
|
53
|
-
constructor(config?: Partial<EntryTableConfig>);
|
|
54
|
-
}
|
|
55
|
-
/** Entry table config injection token
|
|
56
|
-
* Defaults:
|
|
57
|
-
* - showPaginator: true
|
|
58
|
-
* - showFirstLastButtons: false
|
|
59
|
-
* - pageSize: 20
|
|
60
|
-
* - pageSizeOptions: [20, 50, 100]
|
|
61
|
-
* - hidePageSize: false
|
|
62
|
-
* - noResultsText: 'No results found'
|
|
63
|
-
* - rowFocusVisible: false
|
|
64
|
-
*/
|
|
65
|
-
declare const ENTRY_TABLE_CONFIG: InjectionToken<EntryTableConfig>;
|
|
66
|
-
/** Provide entry table config */
|
|
67
|
-
declare const provideEntryTableConfig: (config: Partial<EntryTableConfig>) => Provider;
|
|
68
|
-
/** Default percentage multiplier injection token */
|
|
69
|
-
declare const DEFAULT_PERCENTAGE_MULTIPLIER: InjectionToken<number>;
|
|
70
|
-
|
|
71
|
-
declare const defaultPageSize = 20;
|
|
72
|
-
declare const defaultPageNumber = 1;
|
|
73
|
-
declare class PagedQuery implements OnPage, OnSort {
|
|
74
|
-
pageNumber: number;
|
|
75
|
-
pageSize: number;
|
|
76
|
-
sortBy?: string;
|
|
77
|
-
sortDirection?: SortDirection;
|
|
78
|
-
sortChange(sort: Sort): void;
|
|
79
|
-
pageChange(page: PageEvent): void;
|
|
80
|
-
applyRouteChanges(queryParams: Params): void;
|
|
81
|
-
getRouteQueryParams(): Params;
|
|
82
|
-
getValueIfNotEmpty: <T>(value: T) => T | undefined;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
interface CellTemplate {
|
|
86
|
-
[key: string]: TemplateRef<any>;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
interface ColumnSortProp {
|
|
90
|
-
id?: string;
|
|
91
|
-
start?: 'asc' | 'desc';
|
|
92
|
-
disableClear?: boolean;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
declare type ColumnType = 'boolean' | 'number' | 'currency' | 'percent' | 'date' | 'link';
|
|
96
|
-
|
|
97
|
-
interface ColumnTypeParameter {
|
|
98
|
-
name?: string;
|
|
99
|
-
currencyCode?: string;
|
|
100
|
-
display?: string | boolean;
|
|
101
|
-
digitsInfo?: string;
|
|
102
|
-
format?: string;
|
|
103
|
-
locale?: string;
|
|
104
|
-
timezone?: string;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
interface ColumnDef {
|
|
108
|
-
field: string;
|
|
109
|
-
header?: string;
|
|
110
|
-
hide?: boolean;
|
|
111
|
-
pinned?: 'left' | 'right';
|
|
112
|
-
width?: string;
|
|
113
|
-
sortable?: boolean | string;
|
|
114
|
-
sortProp?: ColumnSortProp;
|
|
115
|
-
type?: ColumnType;
|
|
116
|
-
typeParameter?: ColumnTypeParameter;
|
|
117
|
-
cellTemplate?: TemplateRef<any> | null;
|
|
118
|
-
class?: string;
|
|
119
|
-
customProperties?: {
|
|
120
|
-
[key: string]: any;
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
interface ContextMenuItem {
|
|
125
|
-
id: string;
|
|
126
|
-
name: string;
|
|
127
|
-
icon?: string;
|
|
128
|
-
disabled?: boolean;
|
|
129
|
-
items?: ContextMenuItem[];
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
interface RowClassFormatter {
|
|
133
|
-
[className: string]: (rowData: any) => boolean;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
interface RowContextMenuFormatter {
|
|
137
|
-
items: (rowData: any) => ContextMenuItem[];
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
interface RowSelectionFormatter {
|
|
141
|
-
disabled?: (rowData: any) => boolean;
|
|
142
|
-
hideCheckbox?: (rowData: any) => boolean;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
declare class EntryTableComponent<T> implements OnChanges {
|
|
146
|
-
className: string;
|
|
147
|
-
private readonly _config;
|
|
148
|
-
private readonly _elementRef;
|
|
149
|
-
private readonly _changeDetectorRef;
|
|
150
|
-
dataSource: MatTableDataSource<T, _angular_material_paginator.MatPaginator>;
|
|
151
|
-
displayedColumns: string[];
|
|
152
|
-
columns: ColumnDef[];
|
|
153
|
-
private _data;
|
|
154
|
-
private _page;
|
|
155
|
-
data: T[] | PagedData<T> | null | undefined;
|
|
156
|
-
total: number;
|
|
157
|
-
loading: boolean;
|
|
158
|
-
showPaginator: boolean;
|
|
159
|
-
pageDisabled: boolean;
|
|
160
|
-
showFirstLastButtons: boolean;
|
|
161
|
-
pageIndex: number;
|
|
162
|
-
pageSize: number;
|
|
163
|
-
pageSizeOptions: number[];
|
|
164
|
-
hidePageSize: boolean;
|
|
165
|
-
paginationTemplate: TemplateRef<any>;
|
|
166
|
-
pageChange: EventEmitter<PageEvent>;
|
|
167
|
-
sortActive: string;
|
|
168
|
-
sortDirection: SortDirection;
|
|
169
|
-
sortDisableClear: boolean;
|
|
170
|
-
sortDisabled: boolean;
|
|
171
|
-
sortStart: 'asc' | 'desc';
|
|
172
|
-
sortChange: EventEmitter<Sort>;
|
|
173
|
-
rowHover: boolean;
|
|
174
|
-
rowStriped: boolean;
|
|
175
|
-
rowFocusVisible: boolean;
|
|
176
|
-
rowClick: EventEmitter<T>;
|
|
177
|
-
multiSelectable: boolean;
|
|
178
|
-
rowSelection: SelectionModel<T>;
|
|
179
|
-
rowSelected: T[];
|
|
180
|
-
rowSelectable: boolean;
|
|
181
|
-
showSelectAllCheckbox: boolean;
|
|
182
|
-
rowSelectionFormatter: RowSelectionFormatter;
|
|
183
|
-
rowClassFormatter: RowClassFormatter;
|
|
184
|
-
rowSelectionChange: EventEmitter<T[]>;
|
|
185
|
-
showContextMenu: boolean;
|
|
186
|
-
contextMenuItems: ContextMenuItem[];
|
|
187
|
-
contextMenuTemplate: TemplateRef<any> | null;
|
|
188
|
-
rowContextMenuFormatter: RowContextMenuFormatter;
|
|
189
|
-
contextMenuItemSelected: EventEmitter<{
|
|
190
|
-
itemId: string;
|
|
191
|
-
rowData: T;
|
|
192
|
-
}>;
|
|
193
|
-
noResultText: string;
|
|
194
|
-
noResultTemplate: TemplateRef<any> | null;
|
|
195
|
-
readonly selectionColumn = "selection-column";
|
|
196
|
-
readonly contextMenuColumn = "context-menu-column";
|
|
197
|
-
get hasNoResult(): boolean;
|
|
198
|
-
headerTemplate: TemplateRef<unknown> | CellTemplate | Record<string, TemplateRef<unknown>>;
|
|
199
|
-
cellTemplate: TemplateRef<unknown> | CellTemplate | Record<string, TemplateRef<unknown>>;
|
|
200
|
-
readonly toTemplateIndex: (template: TemplateRef<unknown> | CellTemplate | Record<string, TemplateRef<unknown>>, key: string) => TemplateRef<unknown>;
|
|
201
|
-
detectChanges(): void;
|
|
202
|
-
isTemplateRef: (obj: any) => obj is TemplateRef<any>;
|
|
203
|
-
getRowClassList(rowData: T, index: number): Record<string, unknown>;
|
|
204
|
-
getColumnClassList(colDef: ColumnDef): string;
|
|
205
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
206
|
-
getIndex: (index: number, dataIndex: number) => number;
|
|
207
|
-
private readonly initializeVariables;
|
|
208
|
-
isAllSelected(): boolean;
|
|
209
|
-
toggleSelectAllCheckbox(): void;
|
|
210
|
-
toggleRowSelection(row: any): void;
|
|
211
|
-
handlePage(e: PageEvent): void;
|
|
212
|
-
scrollToTop(): void;
|
|
213
|
-
get shouldShowPaginator(): boolean;
|
|
214
|
-
convertToKebabCase: (value: string) => string;
|
|
215
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EntryTableComponent<any>, never>;
|
|
216
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EntryTableComponent<any>, "entry-table", never, { "displayedColumns": { "alias": "displayedColumns"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "total": { "alias": "total"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "showPaginator": { "alias": "showPaginator"; "required": false; }; "pageDisabled": { "alias": "pageDisabled"; "required": false; }; "showFirstLastButtons": { "alias": "showFirstLastButtons"; "required": false; }; "pageIndex": { "alias": "pageIndex"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "hidePageSize": { "alias": "hidePageSize"; "required": false; }; "paginationTemplate": { "alias": "paginationTemplate"; "required": false; }; "sortActive": { "alias": "sortActive"; "required": false; }; "sortDirection": { "alias": "sortDirection"; "required": false; }; "sortDisableClear": { "alias": "sortDisableClear"; "required": false; }; "sortDisabled": { "alias": "sortDisabled"; "required": false; }; "sortStart": { "alias": "sortStart"; "required": false; }; "rowHover": { "alias": "rowHover"; "required": false; }; "rowStriped": { "alias": "rowStriped"; "required": false; }; "rowFocusVisible": { "alias": "rowFocusVisible"; "required": false; }; "multiSelectable": { "alias": "multiSelectable"; "required": false; }; "rowSelected": { "alias": "rowSelected"; "required": false; }; "rowSelectable": { "alias": "rowSelectable"; "required": false; }; "showSelectAllCheckbox": { "alias": "showSelectAllCheckbox"; "required": false; }; "rowSelectionFormatter": { "alias": "rowSelectionFormatter"; "required": false; }; "rowClassFormatter": { "alias": "rowClassFormatter"; "required": false; }; "showContextMenu": { "alias": "showContextMenu"; "required": false; }; "contextMenuItems": { "alias": "contextMenuItems"; "required": false; }; "contextMenuTemplate": { "alias": "contextMenuTemplate"; "required": false; }; "rowContextMenuFormatter": { "alias": "rowContextMenuFormatter"; "required": false; }; "noResultText": { "alias": "noResultText"; "required": false; }; "noResultTemplate": { "alias": "noResultTemplate"; "required": false; }; "headerTemplate": { "alias": "headerTemplate"; "required": false; }; "cellTemplate": { "alias": "cellTemplate"; "required": false; }; }, { "pageChange": "pageChange"; "sortChange": "sortChange"; "rowClick": "rowClick"; "rowSelectionChange": "rowSelectionChange"; "contextMenuItemSelected": "contextMenuItemSelected"; }, never, never, false, never>;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
declare class EntryCellComponent<T> {
|
|
220
|
-
rowData: T;
|
|
221
|
-
colDef: ColumnDef;
|
|
222
|
-
get value(): any;
|
|
223
|
-
getCellValue: (rowData: T, colDef: ColumnDef) => T;
|
|
224
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EntryCellComponent<any>, never>;
|
|
225
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EntryCellComponent<any>, "entry-cell", never, { "rowData": { "alias": "rowData"; "required": false; }; "colDef": { "alias": "colDef"; "required": false; }; }, {}, never, never, false, never>;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
declare class EntryCellContextMenuComponent implements OnInit {
|
|
229
|
-
items: ContextMenuItem[];
|
|
230
|
-
rowMenuFormatter: RowContextMenuFormatter;
|
|
231
|
-
rowData: any;
|
|
232
|
-
triggerIcon: string;
|
|
233
|
-
isSubMenu: boolean;
|
|
234
|
-
selected: EventEmitter<string>;
|
|
235
|
-
menu: MatMenuPanel;
|
|
236
|
-
menuItems: ContextMenuItem[];
|
|
237
|
-
ngOnInit(): void;
|
|
238
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EntryCellContextMenuComponent, never>;
|
|
239
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EntryCellContextMenuComponent, "entry-cell-context-menu", never, { "items": { "alias": "items"; "required": false; }; "rowMenuFormatter": { "alias": "rowMenuFormatter"; "required": false; }; "rowData": { "alias": "rowData"; "required": false; }; "triggerIcon": { "alias": "triggerIcon"; "required": false; }; "isSubMenu": { "alias": "isSubMenu"; "required": false; }; }, { "selected": "selected"; }, never, never, false, never>;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
declare class EntryCellFormattedValueComponent {
|
|
243
|
-
value: string | undefined;
|
|
244
|
-
type: string;
|
|
245
|
-
typeParameter: ColumnTypeParameter & {
|
|
246
|
-
multiplier?: number;
|
|
247
|
-
} | undefined;
|
|
248
|
-
readonly defaultPercentageMultiplier: number;
|
|
249
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EntryCellFormattedValueComponent, never>;
|
|
250
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EntryCellFormattedValueComponent, "entry-cell-formatted-value", never, { "value": { "alias": "value"; "required": false; }; "type": { "alias": "type"; "required": false; }; "typeParameter": { "alias": "typeParameter"; "required": false; }; }, {}, never, never, false, never>;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
declare class EntryTableModule {
|
|
254
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EntryTableModule, never>;
|
|
255
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<EntryTableModule, [typeof EntryTableComponent, typeof EntryCellComponent, typeof EntryCellContextMenuComponent, typeof EntryCellFormattedValueComponent], [typeof i5.CommonModule, typeof i6.FormsModule, typeof i7.MatTableModule, typeof i8.MatSortModule, typeof _angular_material_paginator.MatPaginatorModule, typeof i10.MatCheckboxModule, typeof i11.MatIconModule, typeof i12.MatMenuModule, typeof i13.MatRadioModule, typeof i5.CommonModule, typeof i14.MatButtonModule], [typeof EntryTableComponent, typeof EntryCellComponent, typeof EntryCellContextMenuComponent, typeof EntryCellFormattedValueComponent]>;
|
|
256
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<EntryTableModule>;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
export { DEFAULT_PERCENTAGE_MULTIPLIER, ENTRY_TABLE_CONFIG, EntryCellComponent, EntryCellContextMenuComponent, EntryCellFormattedValueComponent, EntryTableComponent, EntryTableConfig, EntryTableModule, PagedQuery, defaultPageNumber, defaultPageSize, provideEntryTableConfig };
|
|
260
|
-
export type { CellTemplate, ColumnDef, ColumnSortProp, ColumnType, ColumnTypeParameter, ContextMenuItem, OnPage, OnSort, PagedData, RowClassFormatter, RowContextMenuFormatter, RowSelectionFormatter };
|
|
File without changes
|
/package/{date-time-picker/index.d.ts → types/enigmatry-entry-components-date-time-picker.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|