@tsi-developpement/tsi-shared-ui 1.7.38 → 1.7.39
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/esm2022/lib/end-points/endpoints.mjs +5 -1
- package/esm2022/lib/models/entity-info/entity-info.mjs +9 -1
- package/esm2022/lib/services/configuration/entity-configuration.service.mjs +7 -1
- package/esm2022/lib/tsi-components/create-or-edit-entity-informations/create-or-edit-entity-informations.component.mjs +126 -31
- package/fesm2022/tsi-developpement-tsi-shared-ui.mjs +126 -18
- package/fesm2022/tsi-developpement-tsi-shared-ui.mjs.map +1 -1
- package/lib/end-points/endpoints.d.ts +4 -0
- package/lib/models/entity-info/entity-info.d.ts +6 -0
- package/lib/services/configuration/entity-configuration.service.d.ts +4 -5
- package/lib/tsi-components/create-or-edit-entity-informations/create-or-edit-entity-informations.component.d.ts +23 -5
- package/lib/tsi-components/manage-reporting/add-report-popup/add-report-popup.component.d.ts +2 -0
- package/package.json +1 -1
|
@@ -91,6 +91,8 @@ export declare const AdministrationSegments: {
|
|
|
91
91
|
getWorkflowEtatFormByClassName: string;
|
|
92
92
|
entityInfoController: string;
|
|
93
93
|
sqlColumns: string;
|
|
94
|
+
entityColumns: string;
|
|
95
|
+
projectFilesColumns: string;
|
|
94
96
|
getWorkflowConditionPassageOperatorEnum: string;
|
|
95
97
|
getByCodeModule: string;
|
|
96
98
|
getDescriminatorClassValues: string;
|
|
@@ -205,6 +207,8 @@ export declare const AdministrationEndpoints: {
|
|
|
205
207
|
deleteEntityInformations: (className: string) => string;
|
|
206
208
|
getClasswByNom: () => string;
|
|
207
209
|
getEntityColumns: (businessClassName: string) => string;
|
|
210
|
+
getEntitycolumnsFromModels: (businessClassName: string) => string;
|
|
211
|
+
getColumnsFromProjectDatabase: (businessClassName: string) => string;
|
|
208
212
|
getSqlColumns: (businessClassName: string) => string;
|
|
209
213
|
getWorkflowConditionPassageOperatorEnum: () => string;
|
|
210
214
|
getConnectedUsers: () => string;
|
|
@@ -35,3 +35,9 @@ export declare class UpdateEntityInfoWithRelationsRequest {
|
|
|
35
35
|
relations: EntityRelation[];
|
|
36
36
|
constructor(className: string, entity: EntityInfo, relations: EntityRelation[]);
|
|
37
37
|
}
|
|
38
|
+
export declare class EntityColumnDetailResponse {
|
|
39
|
+
name: string;
|
|
40
|
+
type: string;
|
|
41
|
+
isNullable: boolean;
|
|
42
|
+
maxLength: number | null;
|
|
43
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { EntityInfo, EntityInfoWithRelations, UpdateEntityInfoWithRelationsRequest } from '../../models';
|
|
3
|
+
import { EntityColumnDetailResponse, EntityInfo, EntityInfoWithRelations, UpdateEntityInfoWithRelationsRequest } from '../../models';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class EntityConfigurationService {
|
|
6
6
|
private httpClient;
|
|
@@ -21,10 +21,9 @@ export declare class EntityConfigurationService {
|
|
|
21
21
|
key: string;
|
|
22
22
|
value: string;
|
|
23
23
|
}[]>;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}[]>;
|
|
24
|
+
getEntitycolumnsFromModels(businessClassName: string): Observable<EntityColumnDetailResponse[]>;
|
|
25
|
+
getSqlColumns(businessClassName: string): Observable<EntityColumnDetailResponse[]>;
|
|
26
|
+
getColumnsFromProjectDatabase(businessClassName: string): Observable<EntityColumnDetailResponse[]>;
|
|
28
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<EntityConfigurationService, never>;
|
|
29
28
|
static ɵprov: i0.ɵɵInjectableDeclaration<EntityConfigurationService>;
|
|
30
29
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { KeyValue } from '@angular/common';
|
|
2
2
|
import { DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
3
3
|
import { GridColumn } from '../../interfaces';
|
|
4
|
-
import { EntityInfoWithRelations } from '../../models';
|
|
4
|
+
import { EntityColumnDetailResponse, EntityInfoWithRelations } from '../../models';
|
|
5
5
|
import { EndpointInfos } from '../../models/application/configuration/endpoint-infos';
|
|
6
6
|
import { ApiExplorerService, EntityConfigurationService, ErrorResponseManagerService, TsiConfirmationService, TsiNotificationService } from '../../services';
|
|
7
7
|
import { TsiFormComponentBaseComponent } from '../../tsi-base/components/tsi-form-base/tsi-form-base.component';
|
|
@@ -19,10 +19,15 @@ export declare class CreateOrEditEntityInformationsComponent extends TsiFormComp
|
|
|
19
19
|
endpointInfos: EndpointInfos[];
|
|
20
20
|
componentsOptions: KeyValue<string, string>[];
|
|
21
21
|
uid?: string;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
modelColumnsData: EntityColumnDetailResponse[];
|
|
23
|
+
dbColumnsData: EntityColumnDetailResponse[];
|
|
24
|
+
sqlColumnsData: EntityColumnDetailResponse[];
|
|
25
|
+
propertiesSearchText: string;
|
|
26
|
+
propertiesFirst: number;
|
|
27
|
+
propertiesPageSize: number;
|
|
28
|
+
modelComparisonMap: Map<string, Record<string, string>>;
|
|
29
|
+
dbComparisonMap: Map<string, Record<string, string>>;
|
|
30
|
+
sqlComparisonMap: Map<string, Record<string, string>>;
|
|
26
31
|
propertiesGridColumns: Array<GridColumn>;
|
|
27
32
|
permissionsGridColumns: Array<GridColumn>;
|
|
28
33
|
entitiesRelationsColumns: Array<GridColumn>;
|
|
@@ -33,6 +38,19 @@ export declare class CreateOrEditEntityInformationsComponent extends TsiFormComp
|
|
|
33
38
|
save(): void;
|
|
34
39
|
getPropertiesData(): void;
|
|
35
40
|
onAddRelation(): void;
|
|
41
|
+
private filterColumns;
|
|
42
|
+
get filteredModelColumns(): EntityColumnDetailResponse[];
|
|
43
|
+
get filteredDbColumns(): EntityColumnDetailResponse[];
|
|
44
|
+
get filteredSqlColumns(): EntityColumnDetailResponse[];
|
|
45
|
+
get propertiesTotalRecords(): number;
|
|
46
|
+
get pagedModelColumns(): EntityColumnDetailResponse[];
|
|
47
|
+
get pagedDbColumns(): EntityColumnDetailResponse[];
|
|
48
|
+
get pagedSqlColumns(): EntityColumnDetailResponse[];
|
|
49
|
+
onPropertiesPageChange(event: any): void;
|
|
50
|
+
onPropertiesSearch(): void;
|
|
51
|
+
computeComparisons(): void;
|
|
52
|
+
private computeSourceComparison;
|
|
53
|
+
getComparisonClass(source: 'model' | 'db' | 'sql', row: EntityColumnDetailResponse, field: string): string;
|
|
36
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<CreateOrEditEntityInformationsComponent, never>;
|
|
37
55
|
static ɵcmp: i0.ɵɵComponentDeclaration<CreateOrEditEntityInformationsComponent, "app-create-or-edit-entity-informations", never, {}, {}, never, never, false, never>;
|
|
38
56
|
}
|
package/lib/tsi-components/manage-reporting/add-report-popup/add-report-popup.component.d.ts
CHANGED
|
@@ -109,6 +109,8 @@ export declare class AddReportPopupComponent extends TsiFormComponentBaseCompone
|
|
|
109
109
|
deleteEntityInformations: (className: string) => string;
|
|
110
110
|
getClasswByNom: () => string;
|
|
111
111
|
getEntityColumns: (businessClassName: string) => string;
|
|
112
|
+
getEntitycolumnsFromModels: (businessClassName: string) => string;
|
|
113
|
+
getColumnsFromProjectDatabase: (businessClassName: string) => string;
|
|
112
114
|
getSqlColumns: (businessClassName: string) => string;
|
|
113
115
|
getWorkflowConditionPassageOperatorEnum: () => string;
|
|
114
116
|
getConnectedUsers: () => string;
|