@elite.framework/ng.core 1.0.1 → 1.0.3
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 +14 -54
- package/fesm2022/elite.framework-ng.core.mjs +2742 -1629
- package/fesm2022/elite.framework-ng.core.mjs.map +1 -1
- package/index.d.ts +249 -132
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import * as i5 from '@ngx-formly/core';
|
|
2
|
-
import { FieldType, FieldTypeConfig, FormlyFieldConfig, FormlyFormOptions, FieldArrayType, FieldWrapper, ConfigOption, FormlyFieldProps as FormlyFieldProps$2 } from '@ngx-formly/core';
|
|
3
|
-
import { MessageService, MenuItem, SortEvent } from 'primeng/api';
|
|
4
1
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { OnInit, OnChanges,
|
|
6
|
-
import * as i5$1 from '@ngx-translate/core';
|
|
7
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
2
|
+
import { EventEmitter, ChangeDetectorRef, OnInit, OnChanges, SimpleChanges, AfterViewInit, OnDestroy, Injector, ElementRef, Type, Renderer2, PipeTransform, InjectionToken, Provider } from '@angular/core';
|
|
8
3
|
import * as i2 from '@angular/forms';
|
|
9
4
|
import { FormGroup, UntypedFormGroup, UntypedFormControl } from '@angular/forms';
|
|
10
|
-
import
|
|
5
|
+
import * as i5 from '@ngx-formly/core';
|
|
6
|
+
import { FormlyFieldConfig, FieldType as FieldType$1, FieldTypeConfig, FormlyFormOptions, FieldArrayType, FieldWrapper, ConfigOption, FormlyFieldProps as FormlyFieldProps$2 } from '@ngx-formly/core';
|
|
11
7
|
import { Popover } from 'primeng/popover';
|
|
12
|
-
import { AutoComplete } from 'primeng/autocomplete';
|
|
13
8
|
import * as rxjs from 'rxjs';
|
|
14
9
|
import { Observable } from 'rxjs';
|
|
15
10
|
import { HttpParameterCodec, HttpParams, HttpHeaders, HttpClient, HttpRequest } from '@angular/common/http';
|
|
11
|
+
import { MessageService, MenuItem, SortEvent } from 'primeng/api';
|
|
12
|
+
import * as i5$1 from '@ngx-translate/core';
|
|
13
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
14
|
+
import { DynamicDialogRef, DynamicDialogConfig, DialogService } from 'primeng/dynamicdialog';
|
|
15
|
+
import { AutoComplete } from 'primeng/autocomplete';
|
|
16
16
|
import { PaginatorState } from 'primeng/paginator';
|
|
17
17
|
import { Table, TableLazyLoadEvent, TableRowSelectEvent } from 'primeng/table';
|
|
18
18
|
import { FormlyFieldProps as FormlyFieldProps$1 } from '@ngx-formly/primeng/form-field';
|
|
@@ -32,6 +32,222 @@ import * as express_serve_static_core from 'express-serve-static-core';
|
|
|
32
32
|
import { Request } from 'express';
|
|
33
33
|
import { SweetAlertResult, SweetAlertOptions, SweetAlertIcon } from 'sweetalert2';
|
|
34
34
|
|
|
35
|
+
type FieldType = 'string' | 'number' | 'boolean' | 'date' | 'datetime';
|
|
36
|
+
interface EntityField {
|
|
37
|
+
value: string;
|
|
38
|
+
label: string;
|
|
39
|
+
type: FieldType;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
interface ConditionGroup {
|
|
43
|
+
operator: 'and' | 'or';
|
|
44
|
+
conditions: Condition[];
|
|
45
|
+
}
|
|
46
|
+
interface Condition {
|
|
47
|
+
field: string;
|
|
48
|
+
operator: string;
|
|
49
|
+
value: any;
|
|
50
|
+
}
|
|
51
|
+
interface OrderBy {
|
|
52
|
+
field: string;
|
|
53
|
+
direction: 'asc' | 'desc';
|
|
54
|
+
}
|
|
55
|
+
interface GroupBy {
|
|
56
|
+
field: string;
|
|
57
|
+
}
|
|
58
|
+
interface QueryModel {
|
|
59
|
+
conditionGroups: ConditionGroup[];
|
|
60
|
+
orderBy: OrderBy[];
|
|
61
|
+
groupBy: GroupBy[];
|
|
62
|
+
top: number | null;
|
|
63
|
+
skip: number | null;
|
|
64
|
+
}
|
|
65
|
+
declare class ODataQueryBuilderComponent {
|
|
66
|
+
set entityFields(fields: EntityField[]);
|
|
67
|
+
get entityFields(): EntityField[];
|
|
68
|
+
private _entityFields;
|
|
69
|
+
queryChange: EventEmitter<string>;
|
|
70
|
+
form: FormGroup<{}>;
|
|
71
|
+
model: QueryModel;
|
|
72
|
+
fields: FormlyFieldConfig[];
|
|
73
|
+
constructor();
|
|
74
|
+
private updateFieldOptions;
|
|
75
|
+
buildQuery(): string;
|
|
76
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ODataQueryBuilderComponent, never>;
|
|
77
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ODataQueryBuilderComponent, "app-odata-query-builder", never, { "entityFields": { "alias": "entityFields"; "required": false; }; }, { "queryChange": "queryChange"; }, never, never, true, never>;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
interface Suggestion {
|
|
81
|
+
id?: number;
|
|
82
|
+
name?: string;
|
|
83
|
+
label: string;
|
|
84
|
+
value: string;
|
|
85
|
+
detail?: string;
|
|
86
|
+
documentation?: string;
|
|
87
|
+
kind?: string;
|
|
88
|
+
category?: string;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
interface PaginatedResult<T> {
|
|
92
|
+
items: T[];
|
|
93
|
+
totalCount: number;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
interface Root {
|
|
97
|
+
registerLocaleFn: (locale: string) => Promise<any>;
|
|
98
|
+
skipGetAppConfiguration?: boolean;
|
|
99
|
+
skipInitAuthService?: boolean;
|
|
100
|
+
sendNullsAsQueryParam?: boolean;
|
|
101
|
+
tenantKey?: string;
|
|
102
|
+
othersGroup?: string;
|
|
103
|
+
dynamicLayouts?: Map<string, string>;
|
|
104
|
+
disableProjectNameInTitle?: boolean;
|
|
105
|
+
}
|
|
106
|
+
declare class ListResultDto<T> {
|
|
107
|
+
items?: T[];
|
|
108
|
+
constructor(initialValues?: Partial<ListResultDto<T>>);
|
|
109
|
+
}
|
|
110
|
+
declare class PagedResultDto<T> extends ListResultDto<T> {
|
|
111
|
+
totalCount?: number;
|
|
112
|
+
constructor(initialValues?: Partial<PagedResultDto<T>>);
|
|
113
|
+
}
|
|
114
|
+
declare class GeneralResponse<T> {
|
|
115
|
+
success?: boolean;
|
|
116
|
+
result?: T;
|
|
117
|
+
targetUrl?: string;
|
|
118
|
+
error?: any;
|
|
119
|
+
unAuthorizedRequest?: boolean;
|
|
120
|
+
constructor();
|
|
121
|
+
}
|
|
122
|
+
declare function checkHasProp<T>(object: T, key: string | keyof T): key is keyof T;
|
|
123
|
+
|
|
124
|
+
declare namespace Rest {
|
|
125
|
+
type Config = Partial<{
|
|
126
|
+
apiName: string;
|
|
127
|
+
skipHandleError: boolean;
|
|
128
|
+
skipAddingHeader: boolean;
|
|
129
|
+
observe: Observe;
|
|
130
|
+
httpParamEncoder?: HttpParameterCodec;
|
|
131
|
+
}>;
|
|
132
|
+
const enum Observe {
|
|
133
|
+
Body = "body",
|
|
134
|
+
Events = "events",
|
|
135
|
+
Response = "response"
|
|
136
|
+
}
|
|
137
|
+
const enum ResponseType {
|
|
138
|
+
ArrayBuffer = "arraybuffer",
|
|
139
|
+
Blob = "blob",
|
|
140
|
+
JSON = "json",
|
|
141
|
+
Text = "text"
|
|
142
|
+
}
|
|
143
|
+
type Params = HttpParams | {
|
|
144
|
+
[param: string]: any;
|
|
145
|
+
};
|
|
146
|
+
interface Request<T> {
|
|
147
|
+
body?: T;
|
|
148
|
+
headers?: HttpHeaders | {
|
|
149
|
+
[header: string]: string | string[];
|
|
150
|
+
};
|
|
151
|
+
method: string;
|
|
152
|
+
params?: Params;
|
|
153
|
+
reportProgress?: boolean;
|
|
154
|
+
responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
|
|
155
|
+
url: string;
|
|
156
|
+
withCredentials?: boolean;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
declare class RestService {
|
|
161
|
+
protected options: Root;
|
|
162
|
+
protected http: HttpClient;
|
|
163
|
+
private environment;
|
|
164
|
+
constructor(options: Root, http: HttpClient);
|
|
165
|
+
protected getApiFromStore(apiName: string | undefined): string;
|
|
166
|
+
handleError(err: any): Observable<any>;
|
|
167
|
+
request<T, R>(request: HttpRequest<T> | Rest.Request<T>, config?: Rest.Config, api?: string): Observable<R>;
|
|
168
|
+
private getHttpClient;
|
|
169
|
+
private getParams;
|
|
170
|
+
private removeDuplicateSlashes;
|
|
171
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RestService, never>;
|
|
172
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RestService>;
|
|
173
|
+
}
|
|
174
|
+
declare function isUndefinedOrEmptyString(value: unknown): boolean;
|
|
175
|
+
|
|
176
|
+
declare class BaseService {
|
|
177
|
+
restService: RestService;
|
|
178
|
+
apiName: string;
|
|
179
|
+
moduleName: string;
|
|
180
|
+
constructor(restService: RestService);
|
|
181
|
+
get: (id: string) => rxjs.Observable<any>;
|
|
182
|
+
getList: (input: any, endpoint?: string) => rxjs.Observable<PaginatedResult<any>>;
|
|
183
|
+
create: (input: any) => rxjs.Observable<any>;
|
|
184
|
+
update: (id: string, input: any) => rxjs.Observable<any>;
|
|
185
|
+
delete: (id: string) => rxjs.Observable<void>;
|
|
186
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseService, never>;
|
|
187
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BaseService>;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
declare class ConditionExpressionBuilderType extends FieldType$1 {
|
|
191
|
+
private svc;
|
|
192
|
+
private cdr;
|
|
193
|
+
autoComp: any;
|
|
194
|
+
op: Popover;
|
|
195
|
+
tokens: {
|
|
196
|
+
label: string;
|
|
197
|
+
value: string;
|
|
198
|
+
}[];
|
|
199
|
+
selectedSuggestion: any;
|
|
200
|
+
customValue: string;
|
|
201
|
+
filteredSuggestions: Suggestion[];
|
|
202
|
+
displayDialog: boolean;
|
|
203
|
+
dialogSelectedRule: Suggestion | any;
|
|
204
|
+
pendingSuggestion: Suggestion | any;
|
|
205
|
+
filteredRuleSuggestions: Suggestion[];
|
|
206
|
+
suggestions: Suggestion[];
|
|
207
|
+
loading: boolean;
|
|
208
|
+
api: BaseService | any;
|
|
209
|
+
dialogMode: string;
|
|
210
|
+
displayMode: 'table' | 'full';
|
|
211
|
+
editDialogTitle: string;
|
|
212
|
+
displayEditDialog: boolean;
|
|
213
|
+
/**
|
|
214
|
+
*
|
|
215
|
+
*/
|
|
216
|
+
constructor(svc: BaseService, cdr: ChangeDetectorRef);
|
|
217
|
+
ngOnInit(): void;
|
|
218
|
+
openDialogForTableMode(): void;
|
|
219
|
+
parseParameterizedToken(value: string): {
|
|
220
|
+
base: string;
|
|
221
|
+
param: string;
|
|
222
|
+
} | null;
|
|
223
|
+
getLabelForValue(value: string): Promise<string>;
|
|
224
|
+
filterSuggestions(event: any): void;
|
|
225
|
+
search(event: {
|
|
226
|
+
query: string;
|
|
227
|
+
}): void;
|
|
228
|
+
onSuggestionRule(event: any): void;
|
|
229
|
+
onSuggestionSelected(event: any): Promise<void>;
|
|
230
|
+
confirmDialog(): Promise<void>;
|
|
231
|
+
cancelDialog(): void;
|
|
232
|
+
closeDialog(): void;
|
|
233
|
+
addCustomToken(): Promise<void>;
|
|
234
|
+
removeToken(index: number): void;
|
|
235
|
+
updateExpression(): void;
|
|
236
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConditionExpressionBuilderType, never>;
|
|
237
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConditionExpressionBuilderType, "condition-expression-builder", never, {}, {}, never, never, true, never>;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
declare class FormlyTemplateType extends FieldType$1 {
|
|
241
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyTemplateType, never>;
|
|
242
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyTemplateType, "formly-template", never, {}, {}, never, never, true, never>;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
declare class FormlyFieldButton extends FieldType$1 {
|
|
246
|
+
onClick($event: Event): void;
|
|
247
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldButton, never>;
|
|
248
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldButton, "formly-field-button", never, {}, {}, never, never, true, never>;
|
|
249
|
+
}
|
|
250
|
+
|
|
35
251
|
declare class AttachmentDto {
|
|
36
252
|
binaryObjectId?: string;
|
|
37
253
|
description?: string;
|
|
@@ -41,7 +257,7 @@ declare class AttachmentDto {
|
|
|
41
257
|
base64?: string;
|
|
42
258
|
}
|
|
43
259
|
|
|
44
|
-
declare class AttachmentTypeComponent extends FieldType {
|
|
260
|
+
declare class AttachmentTypeComponent extends FieldType$1 {
|
|
45
261
|
private messageService;
|
|
46
262
|
maxFileSize: number;
|
|
47
263
|
url: string;
|
|
@@ -68,7 +284,7 @@ declare class BreadcrumbComponent {
|
|
|
68
284
|
static ɵcmp: i0.ɵɵComponentDeclaration<BreadcrumbComponent, "app-breadcrumb", never, { "breadcrumb": { "alias": "breadcrumb"; "required": false; }; }, {}, never, never, true, never>;
|
|
69
285
|
}
|
|
70
286
|
|
|
71
|
-
declare class ColorPickerComponent extends FieldType<FieldTypeConfig> {
|
|
287
|
+
declare class ColorPickerComponent extends FieldType$1<FieldTypeConfig> {
|
|
72
288
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerComponent, never>;
|
|
73
289
|
static ɵcmp: i0.ɵɵComponentDeclaration<ColorPickerComponent, "formly-field-color-picker", never, {}, {}, never, never, true, never>;
|
|
74
290
|
}
|
|
@@ -123,7 +339,7 @@ declare class ColumnSettingsPopoverComponent<T extends {
|
|
|
123
339
|
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnSettingsPopoverComponent<any>, "lib-column-settings-popover", never, { "fixedColumns": { "alias": "fixedColumns"; "required": false; }; "toggleableColumns": { "alias": "toggleableColumns"; "required": false; }; "tableId": { "alias": "tableId"; "required": false; }; "selectedToggleableColumns": { "alias": "selectedToggleableColumns"; "required": false; }; }, { "selectedToggleableColumnsChange": "selectedToggleableColumnsChange"; }, never, never, true, never>;
|
|
124
340
|
}
|
|
125
341
|
|
|
126
|
-
declare class CustomSwitchFieldComponent extends FieldType<FieldTypeConfig> implements AfterViewInit {
|
|
342
|
+
declare class CustomSwitchFieldComponent extends FieldType$1<FieldTypeConfig> implements AfterViewInit {
|
|
127
343
|
updateModel(value: boolean): void;
|
|
128
344
|
ngAfterViewInit(): void;
|
|
129
345
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomSwitchFieldComponent, never>;
|
|
@@ -166,7 +382,7 @@ interface AvatarLabelProps {
|
|
|
166
382
|
disabled?: boolean;
|
|
167
383
|
showUsername?: boolean;
|
|
168
384
|
}
|
|
169
|
-
declare class FormlyAvatarLabelComponent extends FieldType {
|
|
385
|
+
declare class FormlyAvatarLabelComponent extends FieldType$1 {
|
|
170
386
|
get to(): AvatarLabelProps;
|
|
171
387
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyAvatarLabelComponent, never>;
|
|
172
388
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyAvatarLabelComponent, "formly-avatar-label", never, {}, {}, never, never, true, never>;
|
|
@@ -175,7 +391,7 @@ declare class FormlyAvatarLabelComponent extends FieldType {
|
|
|
175
391
|
interface TemplateOptions {
|
|
176
392
|
onExpand?: (field: any, model: any) => void;
|
|
177
393
|
}
|
|
178
|
-
declare class FormlyButtonComponent extends FieldType {
|
|
394
|
+
declare class FormlyButtonComponent extends FieldType$1 {
|
|
179
395
|
get to(): TemplateOptions;
|
|
180
396
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyButtonComponent, never>;
|
|
181
397
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyButtonComponent, "formly-button", never, {}, {}, never, never, true, never>;
|
|
@@ -190,7 +406,7 @@ interface SelectionButtonProps {
|
|
|
190
406
|
buttonIcon?: string;
|
|
191
407
|
onSelect?: (value: any) => void;
|
|
192
408
|
}
|
|
193
|
-
declare class FormlySelectionButtonComponent extends FieldType<FieldTypeConfig<SelectionButtonProps>> implements OnInit {
|
|
409
|
+
declare class FormlySelectionButtonComponent extends FieldType$1<FieldTypeConfig<SelectionButtonProps>> implements OnInit {
|
|
194
410
|
private translate;
|
|
195
411
|
popover: Popover;
|
|
196
412
|
constructor(translate: TranslateService);
|
|
@@ -208,12 +424,12 @@ interface SplitButtonProps {
|
|
|
208
424
|
items: MenuItem[];
|
|
209
425
|
onClick?: () => void;
|
|
210
426
|
}
|
|
211
|
-
declare class FormlySplitButtonComponent extends FieldType<FieldTypeConfig<SplitButtonProps>> {
|
|
427
|
+
declare class FormlySplitButtonComponent extends FieldType$1<FieldTypeConfig<SplitButtonProps>> {
|
|
212
428
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlySplitButtonComponent, never>;
|
|
213
429
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlySplitButtonComponent, "formly-split-button-type", never, {}, {}, never, never, true, never>;
|
|
214
430
|
}
|
|
215
431
|
|
|
216
|
-
declare class UsernameWithDomainComponent extends FieldType<FieldTypeConfig> {
|
|
432
|
+
declare class UsernameWithDomainComponent extends FieldType$1<FieldTypeConfig> {
|
|
217
433
|
readonly domain = "@ELITESOFTSYS.COM";
|
|
218
434
|
ngOnInit(): void;
|
|
219
435
|
onBlur(): void;
|
|
@@ -221,105 +437,6 @@ declare class UsernameWithDomainComponent extends FieldType<FieldTypeConfig> {
|
|
|
221
437
|
static ɵcmp: i0.ɵɵComponentDeclaration<UsernameWithDomainComponent, "lib-formly-username-with-domain", never, {}, {}, never, never, true, never>;
|
|
222
438
|
}
|
|
223
439
|
|
|
224
|
-
interface PaginatedResult<T> {
|
|
225
|
-
items: T[];
|
|
226
|
-
totalCount: number;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
interface Root {
|
|
230
|
-
registerLocaleFn: (locale: string) => Promise<any>;
|
|
231
|
-
skipGetAppConfiguration?: boolean;
|
|
232
|
-
skipInitAuthService?: boolean;
|
|
233
|
-
sendNullsAsQueryParam?: boolean;
|
|
234
|
-
tenantKey?: string;
|
|
235
|
-
othersGroup?: string;
|
|
236
|
-
dynamicLayouts?: Map<string, string>;
|
|
237
|
-
disableProjectNameInTitle?: boolean;
|
|
238
|
-
}
|
|
239
|
-
declare class ListResultDto<T> {
|
|
240
|
-
items?: T[];
|
|
241
|
-
constructor(initialValues?: Partial<ListResultDto<T>>);
|
|
242
|
-
}
|
|
243
|
-
declare class PagedResultDto<T> extends ListResultDto<T> {
|
|
244
|
-
totalCount?: number;
|
|
245
|
-
constructor(initialValues?: Partial<PagedResultDto<T>>);
|
|
246
|
-
}
|
|
247
|
-
declare class GeneralResponse<T> {
|
|
248
|
-
success?: boolean;
|
|
249
|
-
result?: T;
|
|
250
|
-
targetUrl?: string;
|
|
251
|
-
error?: any;
|
|
252
|
-
unAuthorizedRequest?: boolean;
|
|
253
|
-
constructor();
|
|
254
|
-
}
|
|
255
|
-
declare function checkHasProp<T>(object: T, key: string | keyof T): key is keyof T;
|
|
256
|
-
|
|
257
|
-
declare namespace Rest {
|
|
258
|
-
type Config = Partial<{
|
|
259
|
-
apiName: string;
|
|
260
|
-
skipHandleError: boolean;
|
|
261
|
-
skipAddingHeader: boolean;
|
|
262
|
-
observe: Observe;
|
|
263
|
-
httpParamEncoder?: HttpParameterCodec;
|
|
264
|
-
}>;
|
|
265
|
-
const enum Observe {
|
|
266
|
-
Body = "body",
|
|
267
|
-
Events = "events",
|
|
268
|
-
Response = "response"
|
|
269
|
-
}
|
|
270
|
-
const enum ResponseType {
|
|
271
|
-
ArrayBuffer = "arraybuffer",
|
|
272
|
-
Blob = "blob",
|
|
273
|
-
JSON = "json",
|
|
274
|
-
Text = "text"
|
|
275
|
-
}
|
|
276
|
-
type Params = HttpParams | {
|
|
277
|
-
[param: string]: any;
|
|
278
|
-
};
|
|
279
|
-
interface Request<T> {
|
|
280
|
-
body?: T;
|
|
281
|
-
headers?: HttpHeaders | {
|
|
282
|
-
[header: string]: string | string[];
|
|
283
|
-
};
|
|
284
|
-
method: string;
|
|
285
|
-
params?: Params;
|
|
286
|
-
reportProgress?: boolean;
|
|
287
|
-
responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
|
|
288
|
-
url: string;
|
|
289
|
-
withCredentials?: boolean;
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
declare class RestService {
|
|
294
|
-
protected options: Root;
|
|
295
|
-
protected http: HttpClient;
|
|
296
|
-
private environment;
|
|
297
|
-
constructor(options: Root, http: HttpClient);
|
|
298
|
-
protected getApiFromStore(apiName: string | undefined): string;
|
|
299
|
-
handleError(err: any): Observable<any>;
|
|
300
|
-
request<T, R>(request: HttpRequest<T> | Rest.Request<T>, config?: Rest.Config, api?: string): Observable<R>;
|
|
301
|
-
private getHttpClient;
|
|
302
|
-
private getParams;
|
|
303
|
-
private removeDuplicateSlashes;
|
|
304
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RestService, never>;
|
|
305
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<RestService>;
|
|
306
|
-
}
|
|
307
|
-
declare function isUndefinedOrEmptyString(value: unknown): boolean;
|
|
308
|
-
|
|
309
|
-
declare class BaseService {
|
|
310
|
-
restService: RestService;
|
|
311
|
-
apiName: string;
|
|
312
|
-
moduleName: string;
|
|
313
|
-
constructor(restService: RestService);
|
|
314
|
-
get: (id: string) => rxjs.Observable<any>;
|
|
315
|
-
getList: (input: any, endpoint?: string) => rxjs.Observable<PaginatedResult<any>>;
|
|
316
|
-
create: (input: any) => rxjs.Observable<any>;
|
|
317
|
-
update: (id: string, input: any) => rxjs.Observable<any>;
|
|
318
|
-
delete: (id: string) => rxjs.Observable<void>;
|
|
319
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BaseService, never>;
|
|
320
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<BaseService>;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
440
|
declare class GenericAutocompleteComponent implements OnInit {
|
|
324
441
|
private svc;
|
|
325
442
|
autoComp: AutoComplete;
|
|
@@ -742,7 +859,7 @@ interface GenericSelectorProps extends FormlyFieldProps$1 {
|
|
|
742
859
|
defaultValue?: any;
|
|
743
860
|
defaultItem?: any;
|
|
744
861
|
}
|
|
745
|
-
declare class GenericSelectorTypeComponent extends FieldType<FieldTypeConfig<GenericSelectorProps>> implements OnInit {
|
|
862
|
+
declare class GenericSelectorTypeComponent extends FieldType$1<FieldTypeConfig<GenericSelectorProps>> implements OnInit {
|
|
746
863
|
private svc;
|
|
747
864
|
private injector;
|
|
748
865
|
autoComp: AutoComplete;
|
|
@@ -772,7 +889,7 @@ declare class HeaderWrapper {
|
|
|
772
889
|
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderWrapper, "lib-header-wrapper", never, {}, {}, never, never, true, never>;
|
|
773
890
|
}
|
|
774
891
|
|
|
775
|
-
declare class IconPickerComponent extends FieldType {
|
|
892
|
+
declare class IconPickerComponent extends FieldType$1 {
|
|
776
893
|
dropdownOpen: boolean;
|
|
777
894
|
searchQuery: string;
|
|
778
895
|
page: number;
|
|
@@ -791,18 +908,18 @@ declare class IconPickerComponent extends FieldType {
|
|
|
791
908
|
static ɵcmp: i0.ɵɵComponentDeclaration<IconPickerComponent, "formly-field-icon-picker", never, {}, {}, never, never, true, never>;
|
|
792
909
|
}
|
|
793
910
|
|
|
794
|
-
declare class InputSwitchTypeComponent extends FieldType<FieldTypeConfig> {
|
|
911
|
+
declare class InputSwitchTypeComponent extends FieldType$1<FieldTypeConfig> {
|
|
795
912
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputSwitchTypeComponent, never>;
|
|
796
913
|
static ɵcmp: i0.ɵɵComponentDeclaration<InputSwitchTypeComponent, "formly-field-primeng-input-switch", never, {}, {}, never, never, true, never>;
|
|
797
914
|
}
|
|
798
915
|
|
|
799
|
-
declare class InputWithIconType extends FieldType {
|
|
916
|
+
declare class InputWithIconType extends FieldType$1 {
|
|
800
917
|
get type(): string;
|
|
801
918
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputWithIconType, never>;
|
|
802
919
|
static ɵcmp: i0.ɵɵComponentDeclaration<InputWithIconType, "formly-field-input-with-icon", never, {}, {}, never, never, true, never>;
|
|
803
920
|
}
|
|
804
921
|
|
|
805
|
-
declare class ClickableLabelTypeComponent extends FieldType {
|
|
922
|
+
declare class ClickableLabelTypeComponent extends FieldType$1 {
|
|
806
923
|
onCellLeave(col: any, row: any, event: MouseEvent): void;
|
|
807
924
|
onCellHover(col: any, row: any, event: MouseEvent): void;
|
|
808
925
|
handleCellClick(col: any, model: any, event: MouseEvent): void;
|
|
@@ -811,7 +928,7 @@ declare class ClickableLabelTypeComponent extends FieldType {
|
|
|
811
928
|
static ɵcmp: i0.ɵɵComponentDeclaration<ClickableLabelTypeComponent, "formly-clickable-label-type", never, {}, {}, never, never, true, never>;
|
|
812
929
|
}
|
|
813
930
|
|
|
814
|
-
declare class LabelTypeComponent extends FieldType {
|
|
931
|
+
declare class LabelTypeComponent extends FieldType$1 {
|
|
815
932
|
get displayValue(): any;
|
|
816
933
|
static ɵfac: i0.ɵɵFactoryDeclaration<LabelTypeComponent, never>;
|
|
817
934
|
static ɵcmp: i0.ɵɵComponentDeclaration<LabelTypeComponent, "formly-label-type", never, {}, {}, never, never, true, never>;
|
|
@@ -853,13 +970,13 @@ declare class SidebarToggles {
|
|
|
853
970
|
static ɵcmp: i0.ɵɵComponentDeclaration<SidebarToggles, "lib-sidebar-toggles", never, { "allOpen": { "alias": "allOpen"; "required": false; }; "contactOpen": { "alias": "contactOpen"; "required": false; }; "timelineOpen": { "alias": "timelineOpen"; "required": false; }; }, { "toggleAll": "toggleAll"; "toggleContact": "toggleContact"; "toggleTimeline": "toggleTimeline"; }, never, never, true, never>;
|
|
854
971
|
}
|
|
855
972
|
|
|
856
|
-
declare class TabsTypeComponent extends FieldType {
|
|
973
|
+
declare class TabsTypeComponent extends FieldType$1 {
|
|
857
974
|
isValid(field: FormlyFieldConfig): boolean;
|
|
858
975
|
static ɵfac: i0.ɵɵFactoryDeclaration<TabsTypeComponent, never>;
|
|
859
976
|
static ɵcmp: i0.ɵɵComponentDeclaration<TabsTypeComponent, "formly-tabs-type", never, {}, {}, never, never, true, never>;
|
|
860
977
|
}
|
|
861
978
|
|
|
862
|
-
declare class TagTypeComponent extends FieldType<FieldTypeConfig> {
|
|
979
|
+
declare class TagTypeComponent extends FieldType$1<FieldTypeConfig> {
|
|
863
980
|
getTooltip(): string;
|
|
864
981
|
getValue(): any;
|
|
865
982
|
getSeverity(): string;
|
|
@@ -868,21 +985,21 @@ declare class TagTypeComponent extends FieldType<FieldTypeConfig> {
|
|
|
868
985
|
static ɵcmp: i0.ɵɵComponentDeclaration<TagTypeComponent, "formly-tag-type", never, {}, {}, never, never, true, never>;
|
|
869
986
|
}
|
|
870
987
|
|
|
871
|
-
declare class OptionTagTypeComponent extends FieldType {
|
|
988
|
+
declare class OptionTagTypeComponent extends FieldType$1 {
|
|
872
989
|
get selectedOption(): any;
|
|
873
990
|
get textColor(): string;
|
|
874
991
|
static ɵfac: i0.ɵɵFactoryDeclaration<OptionTagTypeComponent, never>;
|
|
875
992
|
static ɵcmp: i0.ɵɵComponentDeclaration<OptionTagTypeComponent, "formly-option-tag-type", never, {}, {}, never, never, true, never>;
|
|
876
993
|
}
|
|
877
994
|
|
|
878
|
-
declare class ColorTagTypeComponent extends FieldType {
|
|
995
|
+
declare class ColorTagTypeComponent extends FieldType$1 {
|
|
879
996
|
get colorValue(): string;
|
|
880
997
|
get textColor(): string;
|
|
881
998
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColorTagTypeComponent, never>;
|
|
882
999
|
static ɵcmp: i0.ɵɵComponentDeclaration<ColorTagTypeComponent, "formly-color-tag-type", never, {}, {}, never, never, true, never>;
|
|
883
1000
|
}
|
|
884
1001
|
|
|
885
|
-
declare class RichTextEditorTypeComponent extends FieldType {
|
|
1002
|
+
declare class RichTextEditorTypeComponent extends FieldType$1 {
|
|
886
1003
|
static ɵfac: i0.ɵɵFactoryDeclaration<RichTextEditorTypeComponent, never>;
|
|
887
1004
|
static ɵcmp: i0.ɵɵComponentDeclaration<RichTextEditorTypeComponent, "formly-rich-text-editor-type", never, {}, {}, never, never, true, never>;
|
|
888
1005
|
}
|
|
@@ -944,7 +1061,7 @@ interface InputProps extends FormlyFieldProps {
|
|
|
944
1061
|
interface FormlyInputFieldConfig extends FormlyFieldConfig<InputProps> {
|
|
945
1062
|
type: 'input' | Type<FormlyFieldInput>;
|
|
946
1063
|
}
|
|
947
|
-
declare class FormlyFieldInput extends FieldType<FieldTypeConfig<InputProps>> implements AfterViewInit {
|
|
1064
|
+
declare class FormlyFieldInput extends FieldType$1<FieldTypeConfig<InputProps>> implements AfterViewInit {
|
|
948
1065
|
inputElement?: ElementRef<HTMLInputElement>;
|
|
949
1066
|
inputNumberElement?: any;
|
|
950
1067
|
ngAfterViewInit(): void;
|
|
@@ -958,7 +1075,7 @@ type RadioProps = FormlyFieldProps;
|
|
|
958
1075
|
interface FormlyRadioFieldConfig extends FormlyFieldConfig<RadioProps> {
|
|
959
1076
|
type: 'radio' | Type<FormlyFieldRadio>;
|
|
960
1077
|
}
|
|
961
|
-
declare class FormlyFieldRadio extends FieldType<FieldTypeConfig<RadioProps>> {
|
|
1078
|
+
declare class FormlyFieldRadio extends FieldType$1<FieldTypeConfig<RadioProps>> {
|
|
962
1079
|
get disabledControl(): UntypedFormControl;
|
|
963
1080
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldRadio, never>;
|
|
964
1081
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldRadio, "formly-field-primeng-radio", never, {}, {}, never, never, false, never>;
|
|
@@ -986,7 +1103,7 @@ interface SelectProps extends FormlyFieldProps, FormlyFieldSelectProps {
|
|
|
986
1103
|
interface FormlySelectFieldConfig extends FormlyFieldConfig<SelectProps> {
|
|
987
1104
|
type: 'select' | Type<FormlyFieldSelect>;
|
|
988
1105
|
}
|
|
989
|
-
declare class FormlyFieldSelect extends FieldType<FieldTypeConfig<SelectProps>> {
|
|
1106
|
+
declare class FormlyFieldSelect extends FieldType$1<FieldTypeConfig<SelectProps>> {
|
|
990
1107
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldSelect, never>;
|
|
991
1108
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldSelect, "formly-field-primeng-select", never, {}, {}, never, never, true, never>;
|
|
992
1109
|
}
|
|
@@ -1002,7 +1119,7 @@ declare class FormlyCheckboxModule {
|
|
|
1002
1119
|
interface FormlyCheckboxFieldConfig extends FormlyFieldConfig<FormlyFieldProps> {
|
|
1003
1120
|
type: 'checkbox' | Type<FormlyFieldCheckbox>;
|
|
1004
1121
|
}
|
|
1005
|
-
declare class FormlyFieldCheckbox extends FieldType<FieldTypeConfig<FormlyFieldProps>> {
|
|
1122
|
+
declare class FormlyFieldCheckbox extends FieldType$1<FieldTypeConfig<FormlyFieldProps>> {
|
|
1006
1123
|
defaultOptions: {
|
|
1007
1124
|
props: {
|
|
1008
1125
|
hideLabel: boolean;
|
|
@@ -1025,7 +1142,7 @@ interface TextAreaProps extends FormlyFieldProps {
|
|
|
1025
1142
|
interface FormlyTextAreaFieldConfig extends FormlyFieldConfig<TextAreaProps> {
|
|
1026
1143
|
type: 'textarea' | Type<FormlyFieldTextArea>;
|
|
1027
1144
|
}
|
|
1028
|
-
declare class FormlyFieldTextArea extends FieldType<FieldTypeConfig<TextAreaProps>> {
|
|
1145
|
+
declare class FormlyFieldTextArea extends FieldType$1<FieldTypeConfig<TextAreaProps>> {
|
|
1029
1146
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldTextArea, never>;
|
|
1030
1147
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldTextArea, "formly-field-primeng-textarea", never, {}, {}, never, never, true, never>;
|
|
1031
1148
|
}
|
|
@@ -1392,5 +1509,5 @@ declare class SwalService {
|
|
|
1392
1509
|
declare const CORE_OPTIONS: InjectionToken<Root>;
|
|
1393
1510
|
declare function coreOptionsFactory({ ...options }: Root): Root;
|
|
1394
1511
|
|
|
1395
|
-
export { AttachmentDto, AttachmentTypeComponent, AutofocusDirective, BaseCrud, BaseService, BreadcrumbComponent, CORE_OPTIONS, ClickableLabelTypeComponent, ColorPickerComponent, ColorTagTypeComponent, ColumnSettingsPopoverComponent, CustomSwitchFieldComponent, DEFAULT_CONTROL_CLASS, DeactivationReasonFormComponent, ENVIRONMENT, FormlyAvatarLabelComponent, FormlyButtonComponent, FormlyCheckboxModule, FormlyDatepickerModule, FormlyFieldCheckbox, FormlyFieldInput, FormlyFieldRadio, FormlyFieldSelect, FormlyFieldTextArea, FormlyFormFieldModule, FormlyInputModule, FormlyRadioModule, FormlySelectModule, FormlySelectionButtonComponent, FormlySplitButtonComponent, FormlyTextAreaModule, FormlyWrapperFormField, GeneralResponse, GenericAutocompleteComponent, GenericButton, GenericCard, GenericCrudDialog, GenericCrudTableComponent, GenericDrawerComponent, GenericErrormessage, GenericFormlyFields, GenericLoadingspinner, GenericSearch, GenericSelectorTypeComponent, GenericService, GenericTable, HeaderWrapper, IconPickerComponent, InputSwitchTypeComponent, InputWithIconType, LabelTypeComponent, LabelWrapperComponent, ListResultDto, OptionTagTypeComponent, PagedResultDto, PanelWrapperComponent, REQUEST, RepeatTypeComponent, Rest, RestService, RichTextEditorTypeComponent, RtlLang, SidebarCards, SidebarToggles, SsrCookieService, StatustextPipe, SwalService, TabsTypeComponent, TafqeetPipe, TagTypeComponent, TdWrapperComponent, TimeAgoWithFullDatePipe, TooltipWrapperComponent, UsernameWithDomainComponent, checkHasProp, checkboxField, coreOptionsFactory, isUndefinedOrEmptyString, numberField, provideEnvironmentConfig, provideFormly, selectField, textField, textField2, textareaField, withFormlyFieldCheckbox, withFormlyFieldDatepicker, withFormlyFieldInput, withFormlyFieldRadio, withFormlyFieldSelect, withFormlyFieldTextArea, withFormlyFormField };
|
|
1512
|
+
export { AttachmentDto, AttachmentTypeComponent, AutofocusDirective, BaseCrud, BaseService, BreadcrumbComponent, CORE_OPTIONS, ClickableLabelTypeComponent, ColorPickerComponent, ColorTagTypeComponent, ColumnSettingsPopoverComponent, ConditionExpressionBuilderType, CustomSwitchFieldComponent, DEFAULT_CONTROL_CLASS, DeactivationReasonFormComponent, ENVIRONMENT, FormlyAvatarLabelComponent, FormlyButtonComponent, FormlyCheckboxModule, FormlyDatepickerModule, FormlyFieldButton, FormlyFieldCheckbox, FormlyFieldInput, FormlyFieldRadio, FormlyFieldSelect, FormlyFieldTextArea, FormlyFormFieldModule, FormlyInputModule, FormlyRadioModule, FormlySelectModule, FormlySelectionButtonComponent, FormlySplitButtonComponent, FormlyTemplateType, FormlyTextAreaModule, FormlyWrapperFormField, GeneralResponse, GenericAutocompleteComponent, GenericButton, GenericCard, GenericCrudDialog, GenericCrudTableComponent, GenericDrawerComponent, GenericErrormessage, GenericFormlyFields, GenericLoadingspinner, GenericSearch, GenericSelectorTypeComponent, GenericService, GenericTable, HeaderWrapper, IconPickerComponent, InputSwitchTypeComponent, InputWithIconType, LabelTypeComponent, LabelWrapperComponent, ListResultDto, ODataQueryBuilderComponent, OptionTagTypeComponent, PagedResultDto, PanelWrapperComponent, REQUEST, RepeatTypeComponent, Rest, RestService, RichTextEditorTypeComponent, RtlLang, SidebarCards, SidebarToggles, SsrCookieService, StatustextPipe, SwalService, TabsTypeComponent, TafqeetPipe, TagTypeComponent, TdWrapperComponent, TimeAgoWithFullDatePipe, TooltipWrapperComponent, UsernameWithDomainComponent, checkHasProp, checkboxField, coreOptionsFactory, isUndefinedOrEmptyString, numberField, provideEnvironmentConfig, provideFormly, selectField, textField, textField2, textareaField, withFormlyFieldCheckbox, withFormlyFieldDatepicker, withFormlyFieldInput, withFormlyFieldRadio, withFormlyFieldSelect, withFormlyFieldTextArea, withFormlyFormField };
|
|
1396
1513
|
export type { ActionDef, ActionsMode, ButtonConfig, ColumnDef, CrudService, EnvironmentConfig, FilterDef, FilterType, FormlyCheckboxFieldConfig, FormlyFieldProps, FormlyInputFieldConfig, FormlyRadioFieldConfig, FormlySelectFieldConfig, FormlyTextAreaFieldConfig, PageChangePayload, PaginatedResult, Root, SelectFieldOptions, SelectOption, StatusOption };
|