@es.framework/ng.ui.core 2.0.62 → 2.0.64
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/fesm2022/es.framework-ng.ui.core-checkbox.mjs +72 -58
- package/fesm2022/es.framework-ng.ui.core-checkbox.mjs.map +1 -1
- package/fesm2022/es.framework-ng.ui.core-form-button.mjs +38 -27
- package/fesm2022/es.framework-ng.ui.core-form-button.mjs.map +1 -1
- package/fesm2022/es.framework-ng.ui.core-formly-ui-all.mjs +14 -1
- package/fesm2022/es.framework-ng.ui.core-formly-ui-all.mjs.map +1 -1
- package/fesm2022/es.framework-ng.ui.core-generic-crud-report.mjs +22 -0
- package/fesm2022/es.framework-ng.ui.core-generic-crud-report.mjs.map +1 -0
- package/fesm2022/es.framework-ng.ui.core-generic-crud-table.mjs +1 -1
- package/fesm2022/es.framework-ng.ui.core-generic-crud-table.mjs.map +1 -1
- package/fesm2022/es.framework-ng.ui.core-generic-listbox.mjs +291 -0
- package/fesm2022/es.framework-ng.ui.core-generic-listbox.mjs.map +1 -0
- package/fesm2022/es.framework-ng.ui.core-generic-view.mjs +108 -131
- package/fesm2022/es.framework-ng.ui.core-generic-view.mjs.map +1 -1
- package/fesm2022/es.framework-ng.ui.core-input.mjs +2 -0
- package/fesm2022/es.framework-ng.ui.core-input.mjs.map +1 -1
- package/fesm2022/es.framework-ng.ui.core-repeat.mjs +62 -50
- package/fesm2022/es.framework-ng.ui.core-repeat.mjs.map +1 -1
- package/generic-crud-report/README.md +3 -0
- package/generic-listbox/README.md +3 -0
- package/package.json +9 -1
- package/types/es.framework-ng.ui.core-checkbox.d.ts +1 -0
- package/types/es.framework-ng.ui.core-form-button.d.ts +11 -3
- package/types/es.framework-ng.ui.core-formly-ui-all.d.ts +2 -1
- package/types/es.framework-ng.ui.core-generic-crud-report.d.ts +10 -0
- package/types/es.framework-ng.ui.core-generic-listbox.d.ts +72 -0
- package/types/es.framework-ng.ui.core-generic-view.d.ts +17 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@es.framework/ng.ui.core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.64",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^20.1.0",
|
|
6
6
|
"@angular/core": "^20.1.0"
|
|
@@ -132,6 +132,10 @@
|
|
|
132
132
|
"types": "./types/es.framework-ng.ui.core-generic-card.d.ts",
|
|
133
133
|
"default": "./fesm2022/es.framework-ng.ui.core-generic-card.mjs"
|
|
134
134
|
},
|
|
135
|
+
"./generic-crud-report": {
|
|
136
|
+
"types": "./types/es.framework-ng.ui.core-generic-crud-report.d.ts",
|
|
137
|
+
"default": "./fesm2022/es.framework-ng.ui.core-generic-crud-report.mjs"
|
|
138
|
+
},
|
|
135
139
|
"./generic-crud-table": {
|
|
136
140
|
"types": "./types/es.framework-ng.ui.core-generic-crud-table.d.ts",
|
|
137
141
|
"default": "./fesm2022/es.framework-ng.ui.core-generic-crud-table.mjs"
|
|
@@ -148,6 +152,10 @@
|
|
|
148
152
|
"types": "./types/es.framework-ng.ui.core-generic-formly-fields.d.ts",
|
|
149
153
|
"default": "./fesm2022/es.framework-ng.ui.core-generic-formly-fields.mjs"
|
|
150
154
|
},
|
|
155
|
+
"./generic-listbox": {
|
|
156
|
+
"types": "./types/es.framework-ng.ui.core-generic-listbox.d.ts",
|
|
157
|
+
"default": "./fesm2022/es.framework-ng.ui.core-generic-listbox.mjs"
|
|
158
|
+
},
|
|
151
159
|
"./generic-loadingspinner": {
|
|
152
160
|
"types": "./types/es.framework-ng.ui.core-generic-loadingspinner.d.ts",
|
|
153
161
|
"default": "./fesm2022/es.framework-ng.ui.core-generic-loadingspinner.mjs"
|
|
@@ -25,6 +25,7 @@ declare class FormlyFieldCheckbox extends FieldType<FieldTypeConfig<FormlyFieldP
|
|
|
25
25
|
hideLabel: boolean;
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
+
isRtl(): boolean;
|
|
28
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldCheckbox, never>;
|
|
29
30
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldCheckbox, "formly-field-primeng-checkbox", never, {}, {}, never, never, true, never>;
|
|
30
31
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import * as i1 from '@angular/common';
|
|
3
|
-
import { FieldType } from '@ngx-formly/core';
|
|
3
|
+
import { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
|
|
4
4
|
|
|
5
5
|
declare class FormButtonModule {
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormButtonModule, never>;
|
|
@@ -8,8 +8,16 @@ declare class FormButtonModule {
|
|
|
8
8
|
static ɵinj: i0.ɵɵInjectorDeclaration<FormButtonModule>;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
interface ButtonProps {
|
|
12
|
+
buttonLabel?: string;
|
|
13
|
+
icon?: string;
|
|
14
|
+
severity?: 'secondary' | 'primary' | 'success' | 'info' | 'help' | 'danger' | 'contrast';
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
tooltip?: string;
|
|
17
|
+
click?: (field: FormlyFieldConfig) => void;
|
|
18
|
+
}
|
|
19
|
+
declare class FormlyFieldButton extends FieldType<FieldTypeConfig<ButtonProps>> {
|
|
20
|
+
handleClick(event: Event): void;
|
|
13
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldButton, never>;
|
|
14
22
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldButton, "formly-field-button", never, {}, {}, never, never, true, never>;
|
|
15
23
|
}
|
|
@@ -36,5 +36,6 @@ declare function withFormlyFieldButton(): ConfigOption;
|
|
|
36
36
|
declare function withFormlyFieldAvatarImage(): ConfigOption;
|
|
37
37
|
declare function withFormlyPrimeIconPicker(): ConfigOption;
|
|
38
38
|
declare function withFormlyWrappers(): ConfigOption;
|
|
39
|
+
declare function withFormlyFieldGenericListbox(): ConfigOption;
|
|
39
40
|
|
|
40
|
-
export { FormlyUiAllModule, globalGenericSelectorExtension, provideAllFormlyFields, withFormlyFieldAttachment, withFormlyFieldAvatarImage, withFormlyFieldAvatarLabelButton, withFormlyFieldButton, withFormlyFieldButtonSelection, withFormlyFieldClickableLabelType, withFormlyFieldColorPicker, withFormlyFieldColorTag, withFormlyFieldCustomSwitch, withFormlyFieldFormlyButton, withFormlyFieldFormlySplit, withFormlyFieldGenericSelector, withFormlyFieldIconPicker, withFormlyFieldInputWithIcon, withFormlyFieldLabelType, withFormlyFieldOptionTag, withFormlyFieldRepeat, withFormlyFieldRichTextEditor, withFormlyFieldSwitch, withFormlyFieldTabs, withFormlyFieldTag, withFormlyFieldTemplate, withFormlyFieldUsernameWithDomain, withFormlyPrimeIconPicker, withFormlyQueryBuilder, withFormlyWrappers };
|
|
41
|
+
export { FormlyUiAllModule, globalGenericSelectorExtension, provideAllFormlyFields, withFormlyFieldAttachment, withFormlyFieldAvatarImage, withFormlyFieldAvatarLabelButton, withFormlyFieldButton, withFormlyFieldButtonSelection, withFormlyFieldClickableLabelType, withFormlyFieldColorPicker, withFormlyFieldColorTag, withFormlyFieldCustomSwitch, withFormlyFieldFormlyButton, withFormlyFieldFormlySplit, withFormlyFieldGenericListbox, withFormlyFieldGenericSelector, withFormlyFieldIconPicker, withFormlyFieldInputWithIcon, withFormlyFieldLabelType, withFormlyFieldOptionTag, withFormlyFieldRepeat, withFormlyFieldRichTextEditor, withFormlyFieldSwitch, withFormlyFieldTabs, withFormlyFieldTag, withFormlyFieldTemplate, withFormlyFieldUsernameWithDomain, withFormlyPrimeIconPicker, withFormlyQueryBuilder, withFormlyWrappers };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import * as i1 from '@angular/common';
|
|
3
|
+
|
|
4
|
+
declare class GenericCrudReportModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenericCrudReportModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GenericCrudReportModule, never, [typeof i1.CommonModule], never>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<GenericCrudReportModule>;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { GenericCrudReportModule };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnInit, OnDestroy, ChangeDetectorRef } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { SafeHtml } from '@angular/platform-browser';
|
|
6
|
+
import { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
|
|
7
|
+
import { FormlyFieldProps } from '@ngx-formly/primeng/form-field';
|
|
8
|
+
import { QueryParameters, BaseService } from '@es.framework/ng.core/services';
|
|
9
|
+
import { GenericDialogComponent } from '@es.framework/ng.ui.core/generic-dialog';
|
|
10
|
+
|
|
11
|
+
declare class GenericListboxModule {
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenericListboxModule, never>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GenericListboxModule, never, [typeof i1.CommonModule], never>;
|
|
14
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<GenericListboxModule>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
interface GenericListboxProps extends FormlyFieldProps {
|
|
18
|
+
moduleName: string;
|
|
19
|
+
serviceName: string;
|
|
20
|
+
listEndpoint?: string | ((model: any) => string);
|
|
21
|
+
labelField?: string;
|
|
22
|
+
labelFieldEn?: string;
|
|
23
|
+
valueField?: string;
|
|
24
|
+
useMultiLang?: boolean;
|
|
25
|
+
multiple?: boolean;
|
|
26
|
+
offline?: boolean;
|
|
27
|
+
offlineItems?: any[];
|
|
28
|
+
offlineItems$?: Observable<any[]>;
|
|
29
|
+
onSelect?: (field: FormlyFieldConfig, event?: any) => void;
|
|
30
|
+
offlineDataFn?: (query?: string) => any[];
|
|
31
|
+
query?: Record<string, any> | QueryParameters;
|
|
32
|
+
fixedFilters?: Record<string, any>;
|
|
33
|
+
canAdd?: boolean;
|
|
34
|
+
formFields?: FormlyFieldConfig[];
|
|
35
|
+
afterSave?: (field: FormlyFieldConfig, event?: any) => void;
|
|
36
|
+
formatter?: (row: any, value?: any) => string;
|
|
37
|
+
listHeight?: string;
|
|
38
|
+
filters?: boolean;
|
|
39
|
+
idField?: string;
|
|
40
|
+
}
|
|
41
|
+
declare class GenericListboxTypeComponent extends FieldType<FieldTypeConfig<GenericListboxProps>> implements OnInit, OnDestroy {
|
|
42
|
+
private svc;
|
|
43
|
+
private cdr;
|
|
44
|
+
dialog: GenericDialogComponent;
|
|
45
|
+
options_: any[];
|
|
46
|
+
selectedItem: any;
|
|
47
|
+
loading: boolean;
|
|
48
|
+
private _offlineList;
|
|
49
|
+
private translateService;
|
|
50
|
+
private sanitizer;
|
|
51
|
+
api: BaseService | any;
|
|
52
|
+
private valueChangeSubscription;
|
|
53
|
+
constructor(svc: BaseService, cdr: ChangeDetectorRef);
|
|
54
|
+
get optionLabel(): string;
|
|
55
|
+
ngOnInit(): void;
|
|
56
|
+
onFilterSearch(event: any): void;
|
|
57
|
+
onSelectionChange(val: any): void;
|
|
58
|
+
private syncSelectionWithControl;
|
|
59
|
+
search(event: {
|
|
60
|
+
query: string;
|
|
61
|
+
}): void;
|
|
62
|
+
getFixedFilters(query?: string): any;
|
|
63
|
+
getFormattedLabel(item: any): SafeHtml;
|
|
64
|
+
getEmptyMessage(): string;
|
|
65
|
+
onAddNewClick(): void;
|
|
66
|
+
afterSave(event: any): void;
|
|
67
|
+
ngOnDestroy(): void;
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenericListboxTypeComponent, never>;
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GenericListboxTypeComponent, "formly-generic-listbox", never, {}, {}, never, never, true, never>;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export { GenericListboxModule, GenericListboxTypeComponent };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { TemplateRef, OnInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import { TemplateRef, OnInit, EventEmitter, ChangeDetectorRef } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { Location } from '@angular/common';
|
|
5
5
|
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
@@ -7,6 +7,7 @@ import { UntypedFormGroup, FormGroup } from '@angular/forms';
|
|
|
7
7
|
import { MenuItem } from 'primeng/api';
|
|
8
8
|
import { BaseService } from '@es.framework/ng.core/services';
|
|
9
9
|
import { ActionDef, ButtonConfig } from '@es.framework/ng.core/models';
|
|
10
|
+
import { DynamicDialogRef, DynamicDialogConfig } from 'primeng/dynamicdialog';
|
|
10
11
|
import { GenericDialogComponent } from '@es.framework/ng.ui.core/generic-dialog';
|
|
11
12
|
|
|
12
13
|
interface DetailTab {
|
|
@@ -17,8 +18,12 @@ interface DetailTab {
|
|
|
17
18
|
content?: TemplateRef<any>;
|
|
18
19
|
}
|
|
19
20
|
declare class GenericViewComponent implements OnInit {
|
|
21
|
+
private cdr;
|
|
22
|
+
ref: DynamicDialogRef;
|
|
23
|
+
config: DynamicDialogConfig;
|
|
20
24
|
private route;
|
|
21
25
|
private router;
|
|
26
|
+
private schemaService;
|
|
22
27
|
form: UntypedFormGroup;
|
|
23
28
|
title: string;
|
|
24
29
|
actions: ActionDef<any>[];
|
|
@@ -33,6 +38,10 @@ declare class GenericViewComponent implements OnInit {
|
|
|
33
38
|
moduleName: string;
|
|
34
39
|
idField: string;
|
|
35
40
|
standaloneMode: boolean;
|
|
41
|
+
useRouteParams: boolean;
|
|
42
|
+
query?: string;
|
|
43
|
+
currentId: string | number;
|
|
44
|
+
useTabs: boolean;
|
|
36
45
|
isViewMode: boolean;
|
|
37
46
|
isCreateMode: boolean;
|
|
38
47
|
isEditMode: boolean;
|
|
@@ -51,22 +60,24 @@ declare class GenericViewComponent implements OnInit {
|
|
|
51
60
|
inlineForm: GenericDialogComponent;
|
|
52
61
|
tabs_: DetailTab[];
|
|
53
62
|
model_: any;
|
|
54
|
-
currentId: string | number;
|
|
55
63
|
list: any[];
|
|
56
64
|
totalRecords: number;
|
|
57
65
|
loading: boolean;
|
|
66
|
+
showToolbar: boolean;
|
|
58
67
|
pageSize: number;
|
|
59
68
|
pageIndex: number;
|
|
60
69
|
sort: string;
|
|
61
70
|
currentFilters: any;
|
|
62
71
|
pageFilters: any;
|
|
63
72
|
searchGlobal: string;
|
|
73
|
+
private dialogService;
|
|
64
74
|
private swalService;
|
|
65
75
|
_location: Location;
|
|
66
76
|
ngOnInit(): void;
|
|
77
|
+
constructor(cdr: ChangeDetectorRef, ref: DynamicDialogRef, config: DynamicDialogConfig);
|
|
78
|
+
init(): void;
|
|
67
79
|
refresh(): void;
|
|
68
|
-
|
|
69
|
-
getViewFields(fields?: FormlyFieldConfig[]): FormlyFieldConfig[];
|
|
80
|
+
initTabs(): void;
|
|
70
81
|
private cellForms;
|
|
71
82
|
getForm(rowIndex: number): FormGroup;
|
|
72
83
|
handleCreateEditAction(btn: ButtonConfig): Promise<void>;
|
|
@@ -83,8 +94,8 @@ declare class GenericViewComponent implements OnInit {
|
|
|
83
94
|
loadList(): void;
|
|
84
95
|
next(): void;
|
|
85
96
|
previous(): void;
|
|
86
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GenericViewComponent,
|
|
87
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GenericViewComponent, "app-detail-view", never, { "title": { "alias": "title"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "createEditActions": { "alias": "createEditActions"; "required": false; }; "tabs": { "alias": "tabs"; "required": false; }; "viewMode": { "alias": "viewMode"; "required": false; }; "breadcrumb": { "alias": "breadcrumb"; "required": false; }; "service": { "alias": "service"; "required": false; }; "formFields": { "alias": "formFields"; "required": false; }; "apiName": { "alias": "apiName"; "required": false; }; "moduleName": { "alias": "moduleName"; "required": false; }; "idField": { "alias": "idField"; "required": false; }; "standaloneMode": { "alias": "standaloneMode"; "required": false; }; "isViewMode": { "alias": "isViewMode"; "required": false; }; "isCreateMode": { "alias": "isCreateMode"; "required": false; }; "isEditMode": { "alias": "isEditMode"; "required": false; }; "model": { "alias": "model"; "required": false; }; "displayMode": { "alias": "displayMode"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "action": "action"; "afterDelete": "afterDelete"; }, never, never, true, never>;
|
|
97
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenericViewComponent, [null, { optional: true; }, { optional: true; }]>;
|
|
98
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GenericViewComponent, "app-detail-view", never, { "title": { "alias": "title"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "createEditActions": { "alias": "createEditActions"; "required": false; }; "tabs": { "alias": "tabs"; "required": false; }; "viewMode": { "alias": "viewMode"; "required": false; }; "breadcrumb": { "alias": "breadcrumb"; "required": false; }; "service": { "alias": "service"; "required": false; }; "formFields": { "alias": "formFields"; "required": false; }; "apiName": { "alias": "apiName"; "required": false; }; "moduleName": { "alias": "moduleName"; "required": false; }; "idField": { "alias": "idField"; "required": false; }; "standaloneMode": { "alias": "standaloneMode"; "required": false; }; "useRouteParams": { "alias": "useRouteParams"; "required": false; }; "query": { "alias": "query"; "required": false; }; "currentId": { "alias": "currentId"; "required": false; }; "useTabs": { "alias": "useTabs"; "required": false; }; "isViewMode": { "alias": "isViewMode"; "required": false; }; "isCreateMode": { "alias": "isCreateMode"; "required": false; }; "isEditMode": { "alias": "isEditMode"; "required": false; }; "model": { "alias": "model"; "required": false; }; "displayMode": { "alias": "displayMode"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "showToolbar": { "alias": "showToolbar"; "required": false; }; }, { "action": "action"; "afterDelete": "afterDelete"; }, never, never, true, never>;
|
|
88
99
|
}
|
|
89
100
|
|
|
90
101
|
declare class GenericViewModule {
|