@enigmatry/entry-components 19.0.1-preview.1 → 20.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/button/index.d.ts +54 -3
- package/common/index.d.ts +243 -3
- package/date-time-picker/index.d.ts +100 -3
- package/dialog/index.d.ts +197 -3
- package/fesm2022/enigmatry-entry-components-button.mjs +19 -30
- package/fesm2022/enigmatry-entry-components-button.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-common.mjs +129 -133
- package/fesm2022/enigmatry-entry-components-common.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-date-time-picker.mjs +53 -50
- package/fesm2022/enigmatry-entry-components-date-time-picker.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-dialog.mjs +53 -78
- package/fesm2022/enigmatry-entry-components-dialog.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-file-input.mjs +55 -51
- package/fesm2022/enigmatry-entry-components-file-input.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-permissions.mjs +28 -23
- package/fesm2022/enigmatry-entry-components-permissions.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-search-filter.mjs +83 -97
- package/fesm2022/enigmatry-entry-components-search-filter.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-spinner.mjs +21 -21
- package/fesm2022/enigmatry-entry-components-spinner.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-table.mjs +77 -86
- package/fesm2022/enigmatry-entry-components-table.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components-validation.mjs +43 -47
- package/fesm2022/enigmatry-entry-components-validation.mjs.map +1 -1
- package/fesm2022/enigmatry-entry-components.mjs +6 -6
- package/fesm2022/enigmatry-entry-components.mjs.map +1 -1
- package/file-input/index.d.ts +87 -5
- package/index.d.ts +37 -3
- package/package.json +10 -8
- package/permissions/index.d.ts +40 -5
- package/search-filter/index.d.ts +225 -3
- package/spinner/index.d.ts +34 -5
- package/styles/modules/components/toggle/_generator.scss +3 -2
- package/styles/modules/vendors/angular-material/_generator.scss +1 -0
- package/styles/modules/vendors/angular-material/_typography-generator.scss +2 -0
- package/table/README.md +6 -3
- package/table/index.d.ts +260 -4
- package/validation/index.d.ts +123 -3
- package/button/entry-button-config.d.ts +0 -30
- package/button/entry-button.directive.d.ts +0 -18
- package/button/entry-button.module.d.ts +0 -9
- package/button/public-api.d.ts +0 -3
- package/common/common.module.d.ts +0 -14
- package/common/constants.d.ts +0 -2
- package/common/date-time/entry-date-time-adapter.d.ts +0 -41
- package/common/date-time/entry-date-time-formats.d.ts +0 -25
- package/common/date-time/entry-time-adapter.d.ts +0 -9
- package/common/date-time/index.d.ts +0 -4
- package/common/date-time/native-time-adapter.d.ts +0 -13
- package/common/directives/auto-disable-button.directive.d.ts +0 -26
- package/common/directives/index.d.ts +0 -4
- package/common/directives/ng-control-accessor.directive.d.ts +0 -12
- package/common/directives/noop-control-value-accessor.d.ts +0 -10
- package/common/directives/scroll-to-invalid-control.directive.d.ts +0 -18
- package/common/event-plugins/abstract.plugin.d.ts +0 -40
- package/common/event-plugins/debounce.plugin.d.ts +0 -15
- package/common/event-plugins/index.d.ts +0 -2
- package/common/event-plugins/throttle.plugin.d.ts +0 -15
- package/common/interceptors/accept-language.interceptor.d.ts +0 -16
- package/common/interceptors/index.d.ts +0 -1
- package/common/public-api.d.ts +0 -6
- package/common/utils/index.d.ts +0 -1
- package/common/utils/provide-config.d.ts +0 -3
- package/date-time-picker/date-time-picker-config.model.d.ts +0 -20
- package/date-time-picker/date-time-picker.component.d.ts +0 -38
- package/date-time-picker/date-time-picker.module.d.ts +0 -17
- package/date-time-picker/public-api.d.ts +0 -3
- package/date-time-picker/time-picker.component.d.ts +0 -26
- package/dialog/dialogs/alert/entry-alert-dialog-data.interface.d.ts +0 -18
- package/dialog/dialogs/alert/entry-alert-dialog.component.d.ts +0 -13
- package/dialog/dialogs/confirm/entry-confirm-dialog-data.interface.d.ts +0 -8
- package/dialog/dialogs/confirm/entry-confirm-dialog.component.d.ts +0 -13
- package/dialog/dialogs/entry-dialog.component.d.ts +0 -43
- package/dialog/dialogs/error/entry-error-dialog-data.interface.d.ts +0 -9
- package/dialog/dialogs/error/entry-error-dialog.component.d.ts +0 -15
- package/dialog/entry-dialog-buttons-alignment.type.d.ts +0 -2
- package/dialog/entry-dialog-config.model.d.ts +0 -33
- package/dialog/entry-dialog.module.d.ts +0 -15
- package/dialog/entry-dialog.service.d.ts +0 -55
- package/dialog/public-api.d.ts +0 -11
- package/file-input/entry-file-input.component.d.ts +0 -74
- package/file-input/entry-file-input.module.d.ts +0 -12
- package/file-input/public-api.d.ts +0 -2
- package/modules/entry-components.module.d.ts +0 -28
- package/permissions/permission-type.d.ts +0 -3
- package/permissions/permission.directive.d.ts +0 -11
- package/permissions/permission.guard.d.ts +0 -2
- package/permissions/permission.module.d.ts +0 -9
- package/permissions/permission.pipe.d.ts +0 -11
- package/permissions/permission.service.d.ts +0 -4
- package/permissions/public-api.d.ts +0 -5
- package/public-api.d.ts +0 -10
- package/search-filter/autocomplete/autocomplete-search-filter.component.d.ts +0 -22
- package/search-filter/autocomplete/autocomplete-search-filter.model.d.ts +0 -19
- package/search-filter/control-type.d.ts +0 -7
- package/search-filter/date/date-search-filter.component.d.ts +0 -10
- package/search-filter/date/date-search-filter.model.d.ts +0 -8
- package/search-filter/date-time/date-time-search-filter.component.d.ts +0 -10
- package/search-filter/date-time/date-time-search-filter.model.d.ts +0 -8
- package/search-filter/entry-search-filter.component.d.ts +0 -38
- package/search-filter/entry-search-filter.module.d.ts +0 -22
- package/search-filter/public-api.d.ts +0 -11
- package/search-filter/search-filter-base.model.d.ts +0 -26
- package/search-filter/search-filter-config.model.d.ts +0 -16
- package/search-filter/search-filter-params.type.d.ts +0 -7
- package/search-filter/select/select-search-filter.component.d.ts +0 -14
- package/search-filter/select/select-search-filter.model.d.ts +0 -21
- package/search-filter/select-option.model.d.ts +0 -12
- package/search-filter/text/text-search-filter.component.d.ts +0 -10
- package/search-filter/text/text-search-filter.model.d.ts +0 -8
- package/spinner/entry-spinner/spinner.component.d.ts +0 -24
- package/spinner/public-api.d.ts +0 -2
- package/spinner/spinner-overlay-container.d.ts +0 -17
- package/spinner/spinner.module.d.ts +0 -10
- package/table/components/entry-cell/entry-cell.component.d.ts +0 -10
- package/table/components/entry-cell-context-menu/entry-cell-context-menu.component.d.ts +0 -18
- package/table/components/entry-cell-formatted-value/entry-cell-formatted-value.component.d.ts +0 -10
- package/table/components/entry-table/entry-table.component.d.ts +0 -82
- package/table/components/index.d.ts +0 -4
- package/table/entry-table.module.d.ts +0 -20
- package/table/interfaces/cell-template.d.ts +0 -4
- package/table/interfaces/column-def.d.ts +0 -20
- package/table/interfaces/column-sort-prop.d.ts +0 -5
- package/table/interfaces/column-type-parameter.d.ts +0 -9
- package/table/interfaces/column-type.d.ts +0 -1
- package/table/interfaces/context-menu-item.d.ts +0 -7
- package/table/interfaces/entry-table-config.d.ts +0 -33
- package/table/interfaces/index.d.ts +0 -12
- package/table/interfaces/paged-query.d.ts +0 -15
- package/table/interfaces/pagination.d.ts +0 -19
- package/table/interfaces/row-class-formatter.d.ts +0 -3
- package/table/interfaces/row-context-menu-formatter.d.ts +0 -4
- package/table/interfaces/row-selection-formatter.d.ts +0 -4
- package/table/public-api.d.ts +0 -3
- package/validation/entry-display-control-validation.directive.d.ts +0 -27
- package/validation/entry-form-errors.component.d.ts +0 -18
- package/validation/entry-validation-config.model.d.ts +0 -48
- package/validation/entry-validation.d.ts +0 -15
- package/validation/entry-validation.module.d.ts +0 -11
- package/validation/public-api.d.ts +0 -6
- package/validation/validation-problem-details.interface.d.ts +0 -9
package/table/index.d.ts
CHANGED
|
@@ -1,5 +1,261 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import * as i9 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 * as _angular_material_paginator_d_DuJ_oYgT from '@angular/material/paginator.d-DuJ-oYgT';
|
|
11
|
+
import { SelectionModel } from '@angular/cdk/collections';
|
|
12
|
+
import * as i7 from '@angular/material/table';
|
|
13
|
+
import { MatTableDataSource } from '@angular/material/table';
|
|
14
|
+
import * as i12 from '@angular/material/menu';
|
|
15
|
+
import { MatMenuPanel } from '@angular/material/menu';
|
|
16
|
+
import * as i5 from '@angular/common';
|
|
17
|
+
import * as i6 from '@angular/forms';
|
|
18
|
+
import * as i10 from '@angular/material/checkbox';
|
|
19
|
+
import * as i11 from '@angular/material/icon';
|
|
20
|
+
import * as i13 from '@angular/material/radio';
|
|
21
|
+
import * as i14 from '@angular/material/button';
|
|
22
|
+
|
|
23
|
+
interface PagedData<T> {
|
|
24
|
+
items?: T[];
|
|
25
|
+
pageSize?: number;
|
|
26
|
+
pageNumber?: number;
|
|
27
|
+
totalCount?: number;
|
|
28
|
+
totalPages?: number;
|
|
29
|
+
hasPreviousPage?: boolean;
|
|
30
|
+
hasNextPage?: boolean;
|
|
31
|
+
}
|
|
32
|
+
interface OnSort {
|
|
33
|
+
sortChange(sort: Sort): void;
|
|
34
|
+
}
|
|
35
|
+
interface OnPage {
|
|
36
|
+
pageChange(page: PageEvent): void;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
declare class EntryTableConfig {
|
|
40
|
+
/** Show paginator, default is true */
|
|
41
|
+
showPaginator: boolean;
|
|
42
|
+
/** Show first and last pagination buttons, default is false */
|
|
43
|
+
showFirstLastButtons: boolean;
|
|
44
|
+
/** Page size, default 20 */
|
|
45
|
+
pageSize: number;
|
|
46
|
+
/** Page size options, default [20, 50, 100] */
|
|
47
|
+
pageSizeOptions: number[];
|
|
48
|
+
/** Hide page size options, default is false */
|
|
49
|
+
hidePageSize: boolean;
|
|
50
|
+
/** Hide pagination, default is false */
|
|
51
|
+
noResultsText: string;
|
|
52
|
+
/** Row focus visible, default is false */
|
|
53
|
+
rowFocusVisible: boolean;
|
|
54
|
+
constructor(config?: Partial<EntryTableConfig>);
|
|
55
|
+
}
|
|
56
|
+
/** Entry table config injection token
|
|
57
|
+
* Defaults:
|
|
58
|
+
* - showPaginator: true
|
|
59
|
+
* - showFirstLastButtons: false
|
|
60
|
+
* - pageSize: 20
|
|
61
|
+
* - pageSizeOptions: [20, 50, 100]
|
|
62
|
+
* - hidePageSize: false
|
|
63
|
+
* - noResultsText: 'No results found'
|
|
64
|
+
* - rowFocusVisible: false
|
|
3
65
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
66
|
+
declare const ENTRY_TABLE_CONFIG: InjectionToken<EntryTableConfig>;
|
|
67
|
+
/** Provide entry table config */
|
|
68
|
+
declare const provideEntryTableConfig: (config: Partial<EntryTableConfig>) => Provider;
|
|
69
|
+
/** Default percentage multiplier injection token */
|
|
70
|
+
declare const DEFAULT_PERCENTAGE_MULTIPLIER: InjectionToken<number>;
|
|
71
|
+
|
|
72
|
+
declare const defaultPageSize = 20;
|
|
73
|
+
declare const defaultPageNumber = 1;
|
|
74
|
+
declare class PagedQuery implements OnPage, OnSort {
|
|
75
|
+
pageNumber: number;
|
|
76
|
+
pageSize: number;
|
|
77
|
+
sortBy?: string;
|
|
78
|
+
sortDirection?: SortDirection;
|
|
79
|
+
sortChange(sort: Sort): void;
|
|
80
|
+
pageChange(page: PageEvent): void;
|
|
81
|
+
applyRouteChanges(queryParams: Params): void;
|
|
82
|
+
getRouteQueryParams(): Params;
|
|
83
|
+
getValueIfNotEmpty: <T>(value: T) => T | undefined;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
interface CellTemplate {
|
|
87
|
+
[key: string]: TemplateRef<any>;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
interface ColumnSortProp {
|
|
91
|
+
id?: string;
|
|
92
|
+
start?: 'asc' | 'desc';
|
|
93
|
+
disableClear?: boolean;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
declare type ColumnType = 'boolean' | 'number' | 'currency' | 'percent' | 'date' | 'link';
|
|
97
|
+
|
|
98
|
+
interface ColumnTypeParameter {
|
|
99
|
+
name?: string;
|
|
100
|
+
currencyCode?: string;
|
|
101
|
+
display?: string | boolean;
|
|
102
|
+
digitsInfo?: string;
|
|
103
|
+
format?: string;
|
|
104
|
+
locale?: string;
|
|
105
|
+
timezone?: string;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
interface ColumnDef {
|
|
109
|
+
field: string;
|
|
110
|
+
header?: string;
|
|
111
|
+
hide?: boolean;
|
|
112
|
+
pinned?: 'left' | 'right';
|
|
113
|
+
width?: string;
|
|
114
|
+
sortable?: boolean | string;
|
|
115
|
+
sortProp?: ColumnSortProp;
|
|
116
|
+
type?: ColumnType;
|
|
117
|
+
typeParameter?: ColumnTypeParameter;
|
|
118
|
+
cellTemplate?: TemplateRef<any> | null;
|
|
119
|
+
class?: string;
|
|
120
|
+
customProperties?: {
|
|
121
|
+
[key: string]: any;
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
interface ContextMenuItem {
|
|
126
|
+
id: string;
|
|
127
|
+
name: string;
|
|
128
|
+
icon?: string;
|
|
129
|
+
disabled?: boolean;
|
|
130
|
+
items?: ContextMenuItem[];
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
interface RowClassFormatter {
|
|
134
|
+
[className: string]: (rowData: any) => boolean;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
interface RowContextMenuFormatter {
|
|
138
|
+
items: (rowData: any) => ContextMenuItem[];
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
interface RowSelectionFormatter {
|
|
142
|
+
disabled?: (rowData: any) => boolean;
|
|
143
|
+
hideCheckbox?: (rowData: any) => boolean;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
declare class EntryTableComponent<T> implements OnChanges {
|
|
147
|
+
className: string;
|
|
148
|
+
private readonly _config;
|
|
149
|
+
private readonly _elementRef;
|
|
150
|
+
private readonly _changeDetectorRef;
|
|
151
|
+
dataSource: MatTableDataSource<T, _angular_material_paginator_d_DuJ_oYgT.M>;
|
|
152
|
+
displayedColumns: string[];
|
|
153
|
+
columns: ColumnDef[];
|
|
154
|
+
private _data;
|
|
155
|
+
private _page;
|
|
156
|
+
data: T[] | PagedData<T> | null | undefined;
|
|
157
|
+
total: number;
|
|
158
|
+
loading: boolean;
|
|
159
|
+
showPaginator: boolean;
|
|
160
|
+
pageDisabled: boolean;
|
|
161
|
+
showFirstLastButtons: boolean;
|
|
162
|
+
pageIndex: number;
|
|
163
|
+
pageSize: number;
|
|
164
|
+
pageSizeOptions: number[];
|
|
165
|
+
hidePageSize: boolean;
|
|
166
|
+
paginationTemplate: TemplateRef<any>;
|
|
167
|
+
pageChange: EventEmitter<PageEvent>;
|
|
168
|
+
sortActive: string;
|
|
169
|
+
sortDirection: SortDirection;
|
|
170
|
+
sortDisableClear: boolean;
|
|
171
|
+
sortDisabled: boolean;
|
|
172
|
+
sortStart: 'asc' | 'desc';
|
|
173
|
+
sortChange: EventEmitter<Sort>;
|
|
174
|
+
rowHover: boolean;
|
|
175
|
+
rowStriped: boolean;
|
|
176
|
+
rowFocusVisible: boolean;
|
|
177
|
+
rowClick: EventEmitter<T>;
|
|
178
|
+
multiSelectable: boolean;
|
|
179
|
+
rowSelection: SelectionModel<T>;
|
|
180
|
+
rowSelected: T[];
|
|
181
|
+
rowSelectable: boolean;
|
|
182
|
+
showSelectAllCheckbox: boolean;
|
|
183
|
+
rowSelectionFormatter: RowSelectionFormatter;
|
|
184
|
+
rowClassFormatter: RowClassFormatter;
|
|
185
|
+
rowSelectionChange: EventEmitter<T[]>;
|
|
186
|
+
showContextMenu: boolean;
|
|
187
|
+
contextMenuItems: ContextMenuItem[];
|
|
188
|
+
contextMenuTemplate: TemplateRef<any> | null;
|
|
189
|
+
rowContextMenuFormatter: RowContextMenuFormatter;
|
|
190
|
+
contextMenuItemSelected: EventEmitter<{
|
|
191
|
+
itemId: string;
|
|
192
|
+
rowData: T;
|
|
193
|
+
}>;
|
|
194
|
+
noResultText: string;
|
|
195
|
+
noResultTemplate: TemplateRef<any> | null;
|
|
196
|
+
readonly selectionColumn = "selection-column";
|
|
197
|
+
readonly contextMenuColumn = "context-menu-column";
|
|
198
|
+
get hasNoResult(): boolean;
|
|
199
|
+
headerTemplate: TemplateRef<unknown> | CellTemplate | Record<string, TemplateRef<unknown>>;
|
|
200
|
+
cellTemplate: TemplateRef<unknown> | CellTemplate | Record<string, TemplateRef<unknown>>;
|
|
201
|
+
readonly toTemplateIndex: (template: TemplateRef<unknown> | CellTemplate | Record<string, TemplateRef<unknown>>, key: string) => TemplateRef<unknown>;
|
|
202
|
+
detectChanges(): void;
|
|
203
|
+
isTemplateRef: (obj: any) => obj is TemplateRef<any>;
|
|
204
|
+
getRowClassList(rowData: T, index: number): Record<string, unknown>;
|
|
205
|
+
getColumnClassList(colDef: ColumnDef): string;
|
|
206
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
207
|
+
getIndex: (index: number, dataIndex: number) => number;
|
|
208
|
+
private readonly initializeVariables;
|
|
209
|
+
isAllSelected(): boolean;
|
|
210
|
+
toggleSelectAllCheckbox(): void;
|
|
211
|
+
toggleRowSelection(row: any): void;
|
|
212
|
+
handlePage(e: PageEvent): void;
|
|
213
|
+
scrollToTop(): void;
|
|
214
|
+
get shouldShowPaginator(): boolean;
|
|
215
|
+
convertToKebabCase: (value: string) => string;
|
|
216
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EntryTableComponent<any>, never>;
|
|
217
|
+
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>;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
declare class EntryCellComponent<T> {
|
|
221
|
+
rowData: T;
|
|
222
|
+
colDef: ColumnDef;
|
|
223
|
+
get value(): any;
|
|
224
|
+
getCellValue: (rowData: T, colDef: ColumnDef) => T;
|
|
225
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EntryCellComponent<any>, never>;
|
|
226
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EntryCellComponent<any>, "entry-cell", never, { "rowData": { "alias": "rowData"; "required": false; }; "colDef": { "alias": "colDef"; "required": false; }; }, {}, never, never, false, never>;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
declare class EntryCellContextMenuComponent implements OnInit {
|
|
230
|
+
items: ContextMenuItem[];
|
|
231
|
+
rowMenuFormatter: RowContextMenuFormatter;
|
|
232
|
+
rowData: any;
|
|
233
|
+
triggerIcon: string;
|
|
234
|
+
isSubMenu: boolean;
|
|
235
|
+
selected: EventEmitter<string>;
|
|
236
|
+
menu: MatMenuPanel;
|
|
237
|
+
menuItems: ContextMenuItem[];
|
|
238
|
+
ngOnInit(): void;
|
|
239
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EntryCellContextMenuComponent, never>;
|
|
240
|
+
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>;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
declare class EntryCellFormattedValueComponent {
|
|
244
|
+
value: string | undefined;
|
|
245
|
+
type: string;
|
|
246
|
+
typeParameter: ColumnTypeParameter & {
|
|
247
|
+
multiplier?: number;
|
|
248
|
+
} | undefined;
|
|
249
|
+
readonly defaultPercentageMultiplier: number;
|
|
250
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EntryCellFormattedValueComponent, never>;
|
|
251
|
+
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>;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
declare class EntryTableModule {
|
|
255
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EntryTableModule, never>;
|
|
256
|
+
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 i9.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]>;
|
|
257
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<EntryTableModule>;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export { DEFAULT_PERCENTAGE_MULTIPLIER, ENTRY_TABLE_CONFIG, EntryCellComponent, EntryCellContextMenuComponent, EntryCellFormattedValueComponent, EntryTableComponent, EntryTableConfig, EntryTableModule, PagedQuery, defaultPageNumber, defaultPageSize, provideEntryTableConfig };
|
|
261
|
+
export type { CellTemplate, ColumnDef, ColumnSortProp, ColumnType, ColumnTypeParameter, ContextMenuItem, OnPage, OnSort, PagedData, RowClassFormatter, RowContextMenuFormatter, RowSelectionFormatter };
|
package/validation/index.d.ts
CHANGED
|
@@ -1,5 +1,125 @@
|
|
|
1
|
+
import * as i4 from '@angular/forms';
|
|
2
|
+
import { UntypedFormGroup, AbstractControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { OnInit, OnDestroy, Provider } from '@angular/core';
|
|
5
|
+
import * as i3 from '@angular/common';
|
|
6
|
+
import * as i5 from '@angular/material/input';
|
|
7
|
+
|
|
1
8
|
/**
|
|
2
|
-
*
|
|
9
|
+
* A component used to display generic (form level) server side validation messages.
|
|
10
|
+
* The messages are displayed as a list, each message in a new row.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```html
|
|
14
|
+
* <entry-form-errors [form]="myForm">
|
|
15
|
+
* </entry-form-errors>
|
|
16
|
+
* ```
|
|
3
17
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
18
|
+
declare class EntryFormErrorsComponent {
|
|
19
|
+
/** A form group for which the validation errors are being displayed. */
|
|
20
|
+
form: UntypedFormGroup;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EntryFormErrorsComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EntryFormErrorsComponent, "entry-form-errors", never, { "form": { "alias": "form"; "required": false; }; }, {}, never, never, false, never>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* A directive that displays configured validation messages or server side validations for given form control.
|
|
27
|
+
* The messages are separated with coma(,) and displayed as _innerHTML_ value of host component.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```html
|
|
31
|
+
* <div entryDisplayControlValidation [control]="myForm.controls.firstName">
|
|
32
|
+
* </div
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
declare class EntryDisplayControlValidationDirective implements OnInit, OnDestroy {
|
|
36
|
+
/** Form control for which the validation messages are displayed for. */
|
|
37
|
+
control: AbstractControl;
|
|
38
|
+
private _controlSubscription;
|
|
39
|
+
private readonly _config;
|
|
40
|
+
private readonly _element;
|
|
41
|
+
ngOnInit(): void;
|
|
42
|
+
ngOnDestroy(): void;
|
|
43
|
+
private extractValidationMessages;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EntryDisplayControlValidationDirective, never>;
|
|
45
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<EntryDisplayControlValidationDirective, "[entryDisplayControlValidation]", never, { "control": { "alias": "control"; "required": false; }; }, {}, never, never, false, never>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
declare class EntryValidationModule {
|
|
49
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EntryValidationModule, never>;
|
|
50
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EntryValidationModule, [typeof EntryFormErrorsComponent, typeof EntryDisplayControlValidationDirective], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i4.ReactiveFormsModule, typeof i5.MatInputModule], [typeof EntryFormErrorsComponent, typeof EntryDisplayControlValidationDirective]>;
|
|
51
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<EntryValidationModule>;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Defines the api used as a container for server side validation errors.
|
|
56
|
+
*/
|
|
57
|
+
interface IValidationProblemDetails {
|
|
58
|
+
[key: string]: any;
|
|
59
|
+
errors?: {
|
|
60
|
+
[key: string]: string[];
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/** A key used to map server side validation errors on form level */
|
|
65
|
+
declare const FORM_ERROR_KEY = "general";
|
|
66
|
+
/** A key used to map server side validation errors on form field level */
|
|
67
|
+
declare const FORM_FIELD_ERROR_KEY = "fromServer";
|
|
68
|
+
/**
|
|
69
|
+
* Applies validation errors received from server side to the form.
|
|
70
|
+
* The errors are applied to multiple levels: form, form group, form array, and form field.
|
|
71
|
+
*
|
|
72
|
+
* @param error Server side validation errors response.
|
|
73
|
+
* @param form Form to apply validation errors to.
|
|
74
|
+
*/
|
|
75
|
+
declare const setServerSideValidationErrors: (error: IValidationProblemDetails, form: UntypedFormGroup) => void;
|
|
76
|
+
|
|
77
|
+
/** Used to configure mapping between validation keys and messages */
|
|
78
|
+
interface IEntryValidationMessage {
|
|
79
|
+
/** Validation key (e.g. '_required_', '_minlength_', '_email_', etc.) */
|
|
80
|
+
name: string;
|
|
81
|
+
/**
|
|
82
|
+
* Validation message. Can be static string or expression returning string
|
|
83
|
+
* (when messages need to be resolved dynamically: parametrization, localization, etc.).
|
|
84
|
+
*/
|
|
85
|
+
message: string | ((control: AbstractControl) => string);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Used to provide default configurations on module level.
|
|
89
|
+
*/
|
|
90
|
+
declare class EntryValidationConfig {
|
|
91
|
+
/**
|
|
92
|
+
* Validation key to message configuration on module level. Used to configure client side validation messages
|
|
93
|
+
* for standard validators (_required_, _minLength_, _email_, etc.).
|
|
94
|
+
*
|
|
95
|
+
* **NOTE:** If using _Formly_ package to render forms, this configuration should not be used.
|
|
96
|
+
* Instead, use `FormlyModule` to configure validation messages.
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* ```ts
|
|
100
|
+
* new EntryValidationConfig() {
|
|
101
|
+
* validationMessages: [
|
|
102
|
+
* { name: 'required': message: 'This field is mandatory' },
|
|
103
|
+
* { name: 'minlength', message: (control: AbstractControl) => `Minimal length is ${control.errors.minlength.requiredLength}`}
|
|
104
|
+
* ]
|
|
105
|
+
* }
|
|
106
|
+
* ```
|
|
107
|
+
*/
|
|
108
|
+
validationMessages: IEntryValidationMessage[];
|
|
109
|
+
constructor(config?: Partial<EntryValidationConfig>);
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Entry validation injection token of EntryValidationConfig type containing validation default configurations.
|
|
113
|
+
* Can be updated with custom configuration.
|
|
114
|
+
*
|
|
115
|
+
* Defaults:
|
|
116
|
+
* - validationMessages: []
|
|
117
|
+
*/
|
|
118
|
+
declare const ENTRY_VALIDATION_CONFIG: i0.InjectionToken<EntryValidationConfig>;
|
|
119
|
+
/**
|
|
120
|
+
* Can be used to provide entry validation configuration.
|
|
121
|
+
*/
|
|
122
|
+
declare const provideEntryValidationConfig: (config: Partial<EntryValidationConfig>) => Provider;
|
|
123
|
+
|
|
124
|
+
export { ENTRY_VALIDATION_CONFIG, EntryDisplayControlValidationDirective, EntryFormErrorsComponent, EntryValidationConfig, EntryValidationModule, FORM_ERROR_KEY, FORM_FIELD_ERROR_KEY, provideEntryValidationConfig, setServerSideValidationErrors };
|
|
125
|
+
export type { IEntryValidationMessage, IValidationProblemDetails };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Provider } from '@angular/core';
|
|
2
|
-
import { ThemePalette } from '@angular/material/core';
|
|
3
|
-
/** Possible mat button variants */
|
|
4
|
-
export declare type MatButtonVariants = 'basic' | 'flat' | 'raised' | 'stroked';
|
|
5
|
-
export interface MatButtonConfig {
|
|
6
|
-
type: MatButtonVariants;
|
|
7
|
-
color?: ThemePalette;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Used to provide button configuration on module or application level.
|
|
11
|
-
*/
|
|
12
|
-
export declare class EntryButtonConfig {
|
|
13
|
-
/** Submit button configuration */
|
|
14
|
-
submit: MatButtonConfig;
|
|
15
|
-
/** Cancel button configuration */
|
|
16
|
-
cancel: MatButtonConfig;
|
|
17
|
-
constructor(config?: Partial<EntryButtonConfig>);
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Entry button config injection token.
|
|
21
|
-
*
|
|
22
|
-
* Defaults:
|
|
23
|
-
* - submit: type: 'flat', color: 'primary'
|
|
24
|
-
* - cancel: type: 'basic', color: 'accent'
|
|
25
|
-
*/
|
|
26
|
-
export declare const ENTRY_BUTTON_CONFIG: import("@angular/core").InjectionToken<EntryButtonConfig>;
|
|
27
|
-
/**
|
|
28
|
-
* Can be used to provide custom button configuration.
|
|
29
|
-
*/
|
|
30
|
-
export declare function provideEntryButtonConfig(config: Partial<EntryButtonConfig>): Provider;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ElementRef, OnInit } from '@angular/core';
|
|
2
|
-
import { MatButton, MatAnchor } from '@angular/material/button';
|
|
3
|
-
import { EntryButtonConfig } from './entry-button-config';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class EntryButtonDirective implements OnInit {
|
|
6
|
-
private _elementRef;
|
|
7
|
-
private _config;
|
|
8
|
-
private _matButton?;
|
|
9
|
-
private _matAnchor?;
|
|
10
|
-
matClasses: {
|
|
11
|
-
[key: string]: string[];
|
|
12
|
-
};
|
|
13
|
-
constructor(_elementRef: ElementRef<HTMLElement>, _config: EntryButtonConfig, _matButton?: MatButton, _matAnchor?: MatAnchor);
|
|
14
|
-
ngOnInit(): void;
|
|
15
|
-
private getEntryType;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EntryButtonDirective, [null, null, { optional: true; }, { optional: true; }]>;
|
|
17
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<EntryButtonDirective, "[mat-button][entry-submit-button],[mat-button][entry-cancel-button]", never, {}, {}, never, never, false, never>;
|
|
18
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./entry-button.directive";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "@angular/material/button";
|
|
5
|
-
export declare class EntryButtonModule {
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EntryButtonModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<EntryButtonModule, [typeof i1.EntryButtonDirective], [typeof i2.CommonModule, typeof i3.MatButtonModule], [typeof i1.EntryButtonDirective]>;
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<EntryButtonModule>;
|
|
9
|
-
}
|
package/button/public-api.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders, Provider } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/common";
|
|
4
|
-
import * as i2 from "./directives/auto-disable-button.directive";
|
|
5
|
-
import * as i3 from "./directives/scroll-to-invalid-control.directive";
|
|
6
|
-
import * as i4 from "./directives/noop-control-value-accessor";
|
|
7
|
-
import * as i5 from "./directives/ng-control-accessor.directive";
|
|
8
|
-
export declare const NG_EVENT_PLUGINS: Provider[];
|
|
9
|
-
export declare class EntryCommonModule {
|
|
10
|
-
static forRoot(): ModuleWithProviders<EntryCommonModule>;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EntryCommonModule, never>;
|
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<EntryCommonModule, never, [typeof i1.CommonModule, typeof i2.AutoDisableButtonDirective, typeof i3.ScrollToInvalidControlDirective, typeof i4.NoopControlValueAccessorDirective, typeof i5.NgControlAccessorDirective], [typeof i2.AutoDisableButtonDirective, typeof i3.ScrollToInvalidControlDirective, typeof i4.NoopControlValueAccessorDirective, typeof i5.NgControlAccessorDirective]>;
|
|
13
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<EntryCommonModule>;
|
|
14
|
-
}
|
package/common/constants.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { DateAdapter } from '@angular/material/core';
|
|
2
|
-
import { EntryTimeAdapter } from './entry-time-adapter';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Extends DateAdapter with time support. Used by EntryDateTimePicker component.
|
|
6
|
-
*/
|
|
7
|
-
export declare class EntryDateTimeAdapter<D, L> extends DateAdapter<D, L> implements EntryTimeAdapter<D> {
|
|
8
|
-
private readonly dateAdapter;
|
|
9
|
-
private readonly timeAdapter;
|
|
10
|
-
constructor(matDateLocale: L, dateAdapter: DateAdapter<D, L>, timeAdapter: EntryTimeAdapter<D>);
|
|
11
|
-
getYear(date: D): number;
|
|
12
|
-
getMonth(date: D): number;
|
|
13
|
-
getDate(date: D): number;
|
|
14
|
-
getDayOfWeek(date: D): number;
|
|
15
|
-
getMonthNames(style: 'long' | 'short' | 'narrow'): string[];
|
|
16
|
-
getDateNames(): string[];
|
|
17
|
-
getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[];
|
|
18
|
-
getYearName(date: D): string;
|
|
19
|
-
getFirstDayOfWeek(): number;
|
|
20
|
-
getNumDaysInMonth(date: D): number;
|
|
21
|
-
clone(date: D): D;
|
|
22
|
-
createDate(year: number, month: number, date: number): D;
|
|
23
|
-
today(): D;
|
|
24
|
-
parse(value: any, parseFormat: any): D;
|
|
25
|
-
format(date: D, displayFormat: any): string;
|
|
26
|
-
addCalendarYears(date: D, years: number): D;
|
|
27
|
-
addCalendarMonths(date: D, months: number): D;
|
|
28
|
-
addCalendarDays(date: D, days: number): D;
|
|
29
|
-
toIso8601(date: D): string;
|
|
30
|
-
isDateInstance(obj: any): boolean;
|
|
31
|
-
isValid(date: D): boolean;
|
|
32
|
-
invalid(): D;
|
|
33
|
-
getHours(date: D): number;
|
|
34
|
-
getMinutes(date: D): number;
|
|
35
|
-
getSeconds(date: D): number;
|
|
36
|
-
setTime(date: D, hours: number, minutes: number, seconds: number): D;
|
|
37
|
-
is12HoursClock(displayFormat: any): boolean;
|
|
38
|
-
compareDate(first: D, second: D): number;
|
|
39
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EntryDateTimeAdapter<any, any>, [{ optional: true; }, { skipSelf: true; }, null]>;
|
|
40
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<EntryDateTimeAdapter<any, any>>;
|
|
41
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { MatDateFormats } from '@angular/material/core';
|
|
3
|
-
export type EntryDateTimeFormats = MatDateFormats;
|
|
4
|
-
export declare const defaultDateTimeFormats: {
|
|
5
|
-
parse: {
|
|
6
|
-
dateInput: string[];
|
|
7
|
-
};
|
|
8
|
-
display: {
|
|
9
|
-
dateInput: string;
|
|
10
|
-
monthYearLabel: {
|
|
11
|
-
year: string;
|
|
12
|
-
month: string;
|
|
13
|
-
};
|
|
14
|
-
dateA11yLabel: {
|
|
15
|
-
year: string;
|
|
16
|
-
month: string;
|
|
17
|
-
day: string;
|
|
18
|
-
};
|
|
19
|
-
monthYearA11yLabel: {
|
|
20
|
-
year: string;
|
|
21
|
-
month: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
export declare const ENTRY_MAT_DATE_TIME_FORMATS: InjectionToken<MatDateFormats>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare abstract class EntryTimeAdapter<D> {
|
|
3
|
-
abstract getHours(date: D): number;
|
|
4
|
-
abstract getMinutes(date: D): number;
|
|
5
|
-
abstract getSeconds(date: D): number;
|
|
6
|
-
abstract setTime(date: D, hours: number, minutes: number, seconds: number): D;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EntryTimeAdapter<any>, never>;
|
|
8
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<EntryTimeAdapter<any>>;
|
|
9
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Provider } from "@angular/core";
|
|
2
|
-
import { EntryTimeAdapter } from "./entry-time-adapter";
|
|
3
|
-
import { EntryDateTimeFormats } from "./entry-date-time-formats";
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class EntryNativeTimeAdapter extends EntryTimeAdapter<Date> {
|
|
6
|
-
getHours(date: Date): number;
|
|
7
|
-
getMinutes(date: Date): number;
|
|
8
|
-
getSeconds(date: Date): number;
|
|
9
|
-
setTime(date: Date, hours: number, minutes: number, seconds: number): Date;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EntryNativeTimeAdapter, never>;
|
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<EntryNativeTimeAdapter>;
|
|
12
|
-
}
|
|
13
|
-
export declare function provideEntryNativeTimeAdapter(dateTimeFormats?: EntryDateTimeFormats): Provider[];
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { NumberInput } from '@angular/cdk/coercion';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Auto disable button after click or submit with entry-auto-disable directive.
|
|
6
|
-
* Directive is applied to 'button[entry-auto-disable]:not([disabled])'
|
|
7
|
-
* Default auto disable interval is 2000ms (2sec)
|
|
8
|
-
*
|
|
9
|
-
* Usage
|
|
10
|
-
* <button mat-button entry-submit-button entry-auto-disable type="submit">Submit</button>
|
|
11
|
-
* or with auto disabled interval in milliseconds
|
|
12
|
-
* <button mat-button entry-submit-button entry-auto-disable="5000" type="submit">Submit</button>
|
|
13
|
-
*/
|
|
14
|
-
export declare class AutoDisableButtonDirective implements OnInit, OnDestroy {
|
|
15
|
-
private elementRef;
|
|
16
|
-
private _destroy$;
|
|
17
|
-
private _disableIntervalInMs;
|
|
18
|
-
constructor(elementRef: ElementRef<HTMLButtonElement>);
|
|
19
|
-
get disableIntervalInMs(): NumberInput;
|
|
20
|
-
set disableIntervalInMs(value: NumberInput);
|
|
21
|
-
ngOnInit(): void;
|
|
22
|
-
ngOnDestroy(): void;
|
|
23
|
-
private disableButton;
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AutoDisableButtonDirective, never>;
|
|
25
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AutoDisableButtonDirective, "button[entry-auto-disable]:not([disabled])", never, { "disableIntervalInMs": { "alias": "entry-auto-disable"; "required": false; }; }, {}, never, never, true, never>;
|
|
26
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { AutoDisableButtonDirective } from './auto-disable-button.directive';
|
|
2
|
-
export { ScrollToInvalidControlDirective } from './scroll-to-invalid-control.directive';
|
|
3
|
-
export { NoopControlValueAccessorDirective } from './noop-control-value-accessor';
|
|
4
|
-
export { NgControlAccessorDirective } from './ng-control-accessor.directive';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from "@angular/core";
|
|
2
|
-
import { NgControl, UntypedFormControl } from "@angular/forms";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class NgControlAccessorDirective implements OnDestroy, OnInit {
|
|
5
|
-
control: UntypedFormControl;
|
|
6
|
-
ngControl: NgControl;
|
|
7
|
-
private destroy$;
|
|
8
|
-
ngOnInit(): void;
|
|
9
|
-
ngOnDestroy(): void;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgControlAccessorDirective, never>;
|
|
11
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgControlAccessorDirective, never, never, {}, {}, never, never, true, never>;
|
|
12
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ControlValueAccessor } from "@angular/forms";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class NoopControlValueAccessorDirective implements ControlValueAccessor {
|
|
4
|
-
writeValue(_obj: any): void;
|
|
5
|
-
registerOnChange(_fn: any): void;
|
|
6
|
-
registerOnTouched(_fn: any): void;
|
|
7
|
-
setDisabledState?(_isDisabled: boolean): void;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NoopControlValueAccessorDirective, never>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NoopControlValueAccessorDirective, never, never, {}, {}, never, never, true, never>;
|
|
10
|
-
}
|