@tsi-developpement/tsi-shared-ui 1.8.37 → 1.8.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/consts/business-class-names.mjs +3 -1
- package/esm2022/lib/end-points/endpoints.mjs +7 -2
- package/esm2022/lib/models/actionErp/actionErp.mjs +7 -1
- package/esm2022/lib/models/actionErp/nature-action.mjs +6 -0
- package/esm2022/lib/models/tsi-card/tsi-card.mjs +1 -1
- package/esm2022/lib/services/actionErp/nature-action-service.service.mjs +23 -0
- package/esm2022/lib/tsi-components/manage-import-export/manage-import-export.component.mjs +9 -1
- package/esm2022/lib/tsi-components/output-components/tsi-generic-grid/tsi-generic-grid.component.mjs +18 -3
- package/esm2022/lib/tsi-components/output-components/tsi-view-grid/tsi-view-grid.component.mjs +1 -1
- package/esm2022/lib/tsi-components/tsi-action-erp-create-or-edit/tsi-action-erp-create-or-edit.component.mjs +182 -25
- package/esm2022/lib/tsi-components/tsi-calender/context-menu/context-menu.component.mjs +16 -4
- package/esm2022/lib/tsi-components/tsi-calender/tsi-calender.component.mjs +30 -3
- package/esm2022/lib/tsi-components/tsi-card/tsi-card.component.mjs +50 -23
- package/esm2022/lib/tsi-components/tsi-card-list/tsi-card-list.component.mjs +14 -4
- package/esm2022/lib/tsi-components/tsi-generic-crud/tsi-generic-crud.component.mjs +17 -5
- package/esm2022/lib/tsi-components/tsi-kanban/tsi-kanban.component.mjs +48 -22
- package/fesm2022/tsi-developpement-tsi-shared-ui.mjs +395 -84
- package/fesm2022/tsi-developpement-tsi-shared-ui.mjs.map +1 -1
- package/lib/consts/business-class-names.d.ts +2 -0
- package/lib/end-points/endpoints.d.ts +5 -0
- package/lib/models/actionErp/actionErp.d.ts +10 -0
- package/lib/models/actionErp/nature-action.d.ts +12 -0
- package/lib/models/tsi-card/tsi-card.d.ts +1 -0
- package/lib/providers/shared-ui-tsi.provider.d.ts +1 -1
- package/lib/services/actionErp/nature-action-service.service.d.ts +12 -0
- package/lib/tsi-components/manage-reporting/add-report-popup/add-report-popup.component.d.ts +3 -0
- package/lib/tsi-components/output-components/tsi-generic-grid/tsi-generic-grid.component.d.ts +6 -1
- package/lib/tsi-components/tsi-action-erp-create-or-edit/tsi-action-erp-create-or-edit.component.d.ts +19 -4
- package/lib/tsi-components/tsi-calender/context-menu/context-menu.component.d.ts +5 -1
- package/lib/tsi-components/tsi-calender/tsi-calender.component.d.ts +6 -1
- package/lib/tsi-components/tsi-card/tsi-card.component.d.ts +15 -5
- package/lib/tsi-components/tsi-card-list/tsi-card-list.component.d.ts +5 -1
- package/lib/tsi-components/tsi-kanban/tsi-kanban.component.d.ts +14 -6
- package/package.json +1 -1
|
@@ -137,6 +137,8 @@ export declare const AdministrationSegments: {
|
|
|
137
137
|
allResultatActionCRMEnum: string;
|
|
138
138
|
data: string;
|
|
139
139
|
single: string;
|
|
140
|
+
GetNatureActionSuivanteByOrdre: string;
|
|
141
|
+
natureAction: string;
|
|
140
142
|
};
|
|
141
143
|
export declare const AdministrationEndpoints: {
|
|
142
144
|
getAllEntityStatus: (classeName: string | undefined) => string;
|
|
@@ -250,4 +252,7 @@ export declare const AdministrationEndpoints: {
|
|
|
250
252
|
allPrioriteActionCRMEnum: () => string;
|
|
251
253
|
getEntityData: (businessClass: string) => string;
|
|
252
254
|
getEntityDataById: (businessClass: string) => string;
|
|
255
|
+
GetNatureActionSuivanteByOrdre: (id?: string) => string;
|
|
256
|
+
getAllNatureActionMinimal: () => string;
|
|
257
|
+
getNatureActionMinimal: () => string;
|
|
253
258
|
};
|
|
@@ -14,7 +14,11 @@ export declare class ActionERP {
|
|
|
14
14
|
dateHeureFinRealisee?: Date;
|
|
15
15
|
utilisateurDemandeur: string | undefined;
|
|
16
16
|
utilisateurAssigne: string | undefined;
|
|
17
|
+
natureAction: string | undefined;
|
|
18
|
+
actionPrecedente: string | undefined;
|
|
17
19
|
actionERPDetails: ActionERPDetail[];
|
|
20
|
+
actionERPUtilisateurs: ActionERPUtilisateur[];
|
|
21
|
+
codeActionPrecedente: number | undefined;
|
|
18
22
|
}
|
|
19
23
|
export declare class ActionERPDetail {
|
|
20
24
|
uid?: string;
|
|
@@ -22,6 +26,12 @@ export declare class ActionERPDetail {
|
|
|
22
26
|
occurence?: string;
|
|
23
27
|
classe?: string;
|
|
24
28
|
}
|
|
29
|
+
export declare class ActionERPUtilisateur {
|
|
30
|
+
uid?: string;
|
|
31
|
+
actionERP: string | undefined;
|
|
32
|
+
utilisateur: string | undefined;
|
|
33
|
+
obligatoire: boolean;
|
|
34
|
+
}
|
|
25
35
|
export declare enum StatutActionCRMEnum {
|
|
26
36
|
EnAttente = "En Attente",
|
|
27
37
|
Realisee = "Realis\u00E9e",
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class NatureAction {
|
|
2
|
+
uid: string | undefined;
|
|
3
|
+
code: string | undefined;
|
|
4
|
+
libelle: string | undefined;
|
|
5
|
+
observation: string | undefined;
|
|
6
|
+
type: string | undefined;
|
|
7
|
+
ordre: number | undefined;
|
|
8
|
+
natureDocument: string | undefined;
|
|
9
|
+
realisateur: string | undefined;
|
|
10
|
+
couleur: string | undefined;
|
|
11
|
+
constructor();
|
|
12
|
+
}
|
|
@@ -2,7 +2,7 @@ import { DynamicDialogConfig, DynamicDialogRef } from "primeng/dynamicdialog";
|
|
|
2
2
|
import { TabView } from "primeng/tabview";
|
|
3
3
|
import { JwtHelperService } from "@auth0/angular-jwt";
|
|
4
4
|
import { ConfirmationService, MessageService } from "primeng/api";
|
|
5
|
-
export declare const SharedUiTsiProviders: (typeof
|
|
5
|
+
export declare const SharedUiTsiProviders: (typeof TabView | typeof DynamicDialogRef | typeof DynamicDialogConfig | typeof JwtHelperService | typeof MessageService | typeof ConfirmationService | {
|
|
6
6
|
provide: import("@angular/core").InjectionToken<unknown>;
|
|
7
7
|
useValue: import("@angular/core").InjectionToken<unknown>;
|
|
8
8
|
})[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { CrudBaseService } from '../base/crud-base.service';
|
|
3
|
+
import { NatureAction } from '../../models/actionErp/nature-action';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class NatureActionService extends CrudBaseService<NatureAction, NatureAction, NatureAction, NatureAction> {
|
|
7
|
+
protected httpClient: HttpClient;
|
|
8
|
+
constructor(httpClient: HttpClient);
|
|
9
|
+
GetNatureActionSuivanteByOrdre(uid?: string): Observable<NatureAction>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NatureActionService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NatureActionService>;
|
|
12
|
+
}
|
package/lib/tsi-components/manage-reporting/add-report-popup/add-report-popup.component.d.ts
CHANGED
|
@@ -144,6 +144,9 @@ export declare class AddReportPopupComponent extends TsiFormComponentBaseCompone
|
|
|
144
144
|
allPrioriteActionCRMEnum: () => string;
|
|
145
145
|
getEntityData: (businessClass: string) => string;
|
|
146
146
|
getEntityDataById: (businessClass: string) => string;
|
|
147
|
+
GetNatureActionSuivanteByOrdre: (id?: string | undefined) => string;
|
|
148
|
+
getAllNatureActionMinimal: () => string;
|
|
149
|
+
getNatureActionMinimal: () => string;
|
|
147
150
|
};
|
|
148
151
|
reportBusinessClass?: string;
|
|
149
152
|
customReportingMode?: boolean;
|
package/lib/tsi-components/output-components/tsi-generic-grid/tsi-generic-grid.component.d.ts
CHANGED
|
@@ -41,6 +41,11 @@ export declare class TsiGenericGridComponent implements OnInit, AfterViewInit {
|
|
|
41
41
|
readonly overflowColumnField = "overflow-column-field";
|
|
42
42
|
cudComponent: any;
|
|
43
43
|
modalSize: any;
|
|
44
|
+
showInfoButton: boolean;
|
|
45
|
+
showDownloadButton: boolean;
|
|
46
|
+
showUploadButton: boolean;
|
|
47
|
+
showNoteButton: boolean;
|
|
48
|
+
showActionButton: boolean;
|
|
44
49
|
onSave: EventEmitter<any>;
|
|
45
50
|
filterMatchMode: typeof FilterMatchMode;
|
|
46
51
|
tooltipPosition: typeof TooltipPosition;
|
|
@@ -291,5 +296,5 @@ export declare class TsiGenericGridComponent implements OnInit, AfterViewInit {
|
|
|
291
296
|
getEventDateCalendar(): EventSchema;
|
|
292
297
|
handlePageChange(): void;
|
|
293
298
|
static ɵfac: i0.ɵɵFactoryDeclaration<TsiGenericGridComponent, never>;
|
|
294
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TsiGenericGridComponent, "Tsi-Generic-Grid", never, { "cudComponent": { "alias": "cudComponent"; "required": false; }; "modalSize": { "alias": "modalSize"; "required": false; }; "formName": { "alias": "formName"; "required": false; }; "id": { "alias": "id"; "required": false; }; "pagedRequest": { "alias": "pagedRequest"; "required": false; }; "configuration": { "alias": "configuration"; "required": false; }; "page": { "alias": "page"; "required": false; }; "key": { "alias": "key"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "isSearchButtonDisabled": { "alias": "isSearchButtonDisabled"; "required": false; }; "filteredColumns": { "alias": "filteredColumns"; "required": false; }; "gridData": { "alias": "gridData"; "required": false; }; "isTableLoading": { "alias": "isTableLoading"; "required": false; }; "parent": { "alias": "parent"; "required": false; }; "showSearchBox": { "alias": "showSearchBox"; "required": false; }; "showActionColumn": { "alias": "showActionColumn"; "required": false; }; "showHeaderFilters": { "alias": "showHeaderFilters"; "required": false; }; "showFilterButton": { "alias": "showFilterButton"; "required": false; }; "isGridDataPagedInApi": { "alias": "isGridDataPagedInApi"; "required": false; }; "header": { "alias": "header"; "required": false; }; "ShowFilterColumns": { "alias": "ShowFilterColumns"; "required": false; }; "showImportExportButton": { "alias": "showImportExportButton"; "required": false; }; "crudService": { "alias": "crudService"; "required": false; }; "searchFields": { "alias": "searchFields"; "required": false; }; "sortMode": { "alias": "sortMode"; "required": false; }; "filtersHtmlTemplate": { "alias": "filtersHtmlTemplate"; "required": false; }; "presentationSettings": { "alias": "presentationSettings"; "required": false; }; "selectKeyOnly": { "alias": "selectKeyOnly"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; "searchOnInit": { "alias": "searchOnInit"; "required": false; }; "showGlobalSearch": { "alias": "showGlobalSearch"; "required": false; }; "showExportButton": { "alias": "showExportButton"; "required": false; }; "showSearchField": { "alias": "showSearchField"; "required": false; }; "showCalenderView": { "alias": "showCalenderView"; "required": false; }; "calenderSchema": { "alias": "calenderSchema"; "required": false; }; "showCardView": { "alias": "showCardView"; "required": false; }; "showKanbanView": { "alias": "showKanbanView"; "required": false; }; "showKanbanViewOfWorkFlowEtat": { "alias": "showKanbanViewOfWorkFlowEtat"; "required": false; }; "page$": { "alias": "page$"; "required": false; }; "checkedByField": { "alias": "checkedByField"; "required": false; }; "selectAll": { "alias": "selectAll"; "required": false; }; "targetBusinessClass": { "alias": "targetBusinessClass"; "required": false; }; "descriminatorValue": { "alias": "descriminatorValue"; "required": false; }; "businessClass": { "alias": "businessClass"; "required": false; }; "entityInfo": { "alias": "entityInfo"; "required": false; }; }, { "onSave": "onSave"; "editRow": "editRow"; "deleteRow": "deleteRow"; "load": "load"; "buttonColumnClicked": "buttonColumnClicked"; "filtersHtmlTemplateChange": "filtersHtmlTemplateChange"; "selectedItemsChange": "selectedItemsChange"; "searchFieldsValueChanged": "searchFieldsValueChanged"; "calendarEventClick": "calendarEventClick"; "statusFilterChanged": "statusFilterChanged"; }, never, never, false, never>;
|
|
299
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TsiGenericGridComponent, "Tsi-Generic-Grid", never, { "cudComponent": { "alias": "cudComponent"; "required": false; }; "modalSize": { "alias": "modalSize"; "required": false; }; "showInfoButton": { "alias": "showInfoButton"; "required": false; }; "showDownloadButton": { "alias": "showDownloadButton"; "required": false; }; "showUploadButton": { "alias": "showUploadButton"; "required": false; }; "showNoteButton": { "alias": "showNoteButton"; "required": false; }; "showActionButton": { "alias": "showActionButton"; "required": false; }; "formName": { "alias": "formName"; "required": false; }; "id": { "alias": "id"; "required": false; }; "pagedRequest": { "alias": "pagedRequest"; "required": false; }; "configuration": { "alias": "configuration"; "required": false; }; "page": { "alias": "page"; "required": false; }; "key": { "alias": "key"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "isSearchButtonDisabled": { "alias": "isSearchButtonDisabled"; "required": false; }; "filteredColumns": { "alias": "filteredColumns"; "required": false; }; "gridData": { "alias": "gridData"; "required": false; }; "isTableLoading": { "alias": "isTableLoading"; "required": false; }; "parent": { "alias": "parent"; "required": false; }; "showSearchBox": { "alias": "showSearchBox"; "required": false; }; "showActionColumn": { "alias": "showActionColumn"; "required": false; }; "showHeaderFilters": { "alias": "showHeaderFilters"; "required": false; }; "showFilterButton": { "alias": "showFilterButton"; "required": false; }; "isGridDataPagedInApi": { "alias": "isGridDataPagedInApi"; "required": false; }; "header": { "alias": "header"; "required": false; }; "ShowFilterColumns": { "alias": "ShowFilterColumns"; "required": false; }; "showImportExportButton": { "alias": "showImportExportButton"; "required": false; }; "crudService": { "alias": "crudService"; "required": false; }; "searchFields": { "alias": "searchFields"; "required": false; }; "sortMode": { "alias": "sortMode"; "required": false; }; "filtersHtmlTemplate": { "alias": "filtersHtmlTemplate"; "required": false; }; "presentationSettings": { "alias": "presentationSettings"; "required": false; }; "selectKeyOnly": { "alias": "selectKeyOnly"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; "searchOnInit": { "alias": "searchOnInit"; "required": false; }; "showGlobalSearch": { "alias": "showGlobalSearch"; "required": false; }; "showExportButton": { "alias": "showExportButton"; "required": false; }; "showSearchField": { "alias": "showSearchField"; "required": false; }; "showCalenderView": { "alias": "showCalenderView"; "required": false; }; "calenderSchema": { "alias": "calenderSchema"; "required": false; }; "showCardView": { "alias": "showCardView"; "required": false; }; "showKanbanView": { "alias": "showKanbanView"; "required": false; }; "showKanbanViewOfWorkFlowEtat": { "alias": "showKanbanViewOfWorkFlowEtat"; "required": false; }; "page$": { "alias": "page$"; "required": false; }; "checkedByField": { "alias": "checkedByField"; "required": false; }; "selectAll": { "alias": "selectAll"; "required": false; }; "targetBusinessClass": { "alias": "targetBusinessClass"; "required": false; }; "descriminatorValue": { "alias": "descriminatorValue"; "required": false; }; "businessClass": { "alias": "businessClass"; "required": false; }; "entityInfo": { "alias": "entityInfo"; "required": false; }; }, { "onSave": "onSave"; "editRow": "editRow"; "deleteRow": "deleteRow"; "load": "load"; "buttonColumnClicked": "buttonColumnClicked"; "filtersHtmlTemplateChange": "filtersHtmlTemplateChange"; "selectedItemsChange": "selectedItemsChange"; "searchFieldsValueChanged": "searchFieldsValueChanged"; "calendarEventClick": "calendarEventClick"; "statusFilterChanged": "statusFilterChanged"; }, never, never, false, never>;
|
|
295
300
|
}
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { TsiFormComponentBaseComponent } from '../../tsi-base';
|
|
3
3
|
import { ActionERP, occurenceInfos } from '../../models/actionErp/actionErp';
|
|
4
|
-
import { ActionErpService, ErrorResponseManagerService, TsiNotificationService, TsiConfirmationService, EntityConfigurationService,
|
|
4
|
+
import { ActionErpService, ErrorResponseManagerService, TsiNotificationService, TsiConfirmationService, EntityConfigurationService, IdentityManagerService } from '../../services';
|
|
5
5
|
import { GridColumn } from '../../interfaces';
|
|
6
|
-
import { DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
6
|
+
import { DialogService, DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
7
|
+
import { BusinessClassNames } from '../../consts/business-class-names';
|
|
7
8
|
import { LocalizePipe } from '../../pipes';
|
|
9
|
+
import { NatureActionService } from '../../services/actionErp/nature-action-service.service';
|
|
8
10
|
import * as i0 from "@angular/core";
|
|
9
11
|
export declare class TsiActionErpCreateOrEditComponent extends TsiFormComponentBaseComponent implements OnInit {
|
|
10
12
|
_actionservice: ActionErpService;
|
|
13
|
+
_natureActionservice: NatureActionService;
|
|
11
14
|
private _errorResponseManagerService;
|
|
12
15
|
private _notificationService;
|
|
13
16
|
private _confirmationService;
|
|
14
17
|
entityConfigurationService: EntityConfigurationService;
|
|
15
|
-
private
|
|
18
|
+
private _dialogService;
|
|
16
19
|
private _identityManagerService;
|
|
17
20
|
private _localize;
|
|
18
21
|
config: DynamicDialogConfig;
|
|
@@ -130,9 +133,13 @@ export declare class TsiActionErpCreateOrEditComponent extends TsiFormComponentB
|
|
|
130
133
|
allPrioriteActionCRMEnum: () => string;
|
|
131
134
|
getEntityData: (businessClass: string) => string;
|
|
132
135
|
getEntityDataById: (businessClass: string) => string;
|
|
136
|
+
GetNatureActionSuivanteByOrdre: (id?: string | undefined) => string;
|
|
137
|
+
getAllNatureActionMinimal: () => string;
|
|
138
|
+
getNatureActionMinimal: () => string;
|
|
133
139
|
};
|
|
134
140
|
businnessClassName: string;
|
|
135
141
|
occurenceInfos: occurenceInfos | null;
|
|
142
|
+
classename: any;
|
|
136
143
|
modeRef: {
|
|
137
144
|
edit: string;
|
|
138
145
|
create: string;
|
|
@@ -141,13 +148,21 @@ export declare class TsiActionErpCreateOrEditComponent extends TsiFormComponentB
|
|
|
141
148
|
consult: string;
|
|
142
149
|
duplicate: string;
|
|
143
150
|
};
|
|
144
|
-
|
|
151
|
+
businessClassNames: typeof BusinessClassNames;
|
|
152
|
+
actionPrecedenteCode: number | undefined;
|
|
153
|
+
constructor(_actionservice: ActionErpService, _natureActionservice: NatureActionService, _errorResponseManagerService: ErrorResponseManagerService, _notificationService: TsiNotificationService, _confirmationService: TsiConfirmationService, entityConfigurationService: EntityConfigurationService, _dialogService: DialogService, _identityManagerService: IdentityManagerService, _localize: LocalizePipe, config: DynamicDialogConfig, ref?: DynamicDialogRef<any> | undefined);
|
|
145
154
|
ngOnInit(): void;
|
|
146
155
|
actiondetailcolom: Array<GridColumn>;
|
|
156
|
+
participantColumns: Array<GridColumn>;
|
|
147
157
|
getOccurenceListUrl(row: any): string;
|
|
148
158
|
getOccurenceUrl(row: any): string;
|
|
149
159
|
save(): void;
|
|
150
160
|
consultElement(item: any): void;
|
|
161
|
+
createElement(classe: string): void;
|
|
162
|
+
onClasseSelected(selected: any): void;
|
|
163
|
+
openActionERPPopUp(): Promise<void>;
|
|
164
|
+
onNatureActionChange(natureActionId: string): void;
|
|
165
|
+
openActionPrecedentePopup(): void;
|
|
151
166
|
static ɵfac: i0.ɵɵFactoryDeclaration<TsiActionErpCreateOrEditComponent, never>;
|
|
152
167
|
static ɵcmp: i0.ɵɵComponentDeclaration<TsiActionErpCreateOrEditComponent, "lib-tsi-action-erp-create-or-edit", never, {}, {}, never, never, false, never>;
|
|
153
168
|
}
|
|
@@ -3,6 +3,10 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class ContextMenuComponent {
|
|
4
4
|
actionSelected: EventEmitter<any>;
|
|
5
5
|
menu: ElementRef | undefined;
|
|
6
|
+
showInfoButton: boolean;
|
|
7
|
+
showUploadButton: boolean;
|
|
8
|
+
showNoteButton: boolean;
|
|
9
|
+
showActionButton: boolean;
|
|
6
10
|
isVisible: boolean;
|
|
7
11
|
menuPosition: {
|
|
8
12
|
x: string;
|
|
@@ -21,5 +25,5 @@ export declare class ContextMenuComponent {
|
|
|
21
25
|
onMenuClick(action: string): void;
|
|
22
26
|
private onDocumentClick;
|
|
23
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<ContextMenuComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ContextMenuComponent, "app-context-menu", never, {}, { "actionSelected": "actionSelected"; }, never, never, false, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContextMenuComponent, "app-context-menu", never, { "showInfoButton": { "alias": "showInfoButton"; "required": false; }; "showUploadButton": { "alias": "showUploadButton"; "required": false; }; "showNoteButton": { "alias": "showNoteButton"; "required": false; }; "showActionButton": { "alias": "showActionButton"; "required": false; }; }, { "actionSelected": "actionSelected"; }, never, never, false, never>;
|
|
25
29
|
}
|
|
@@ -23,6 +23,11 @@ export declare class TsiCalenderComponent implements OnInit, AfterViewInit {
|
|
|
23
23
|
crudService?: CrudBaseService<any, any, any, any>;
|
|
24
24
|
schema: EventSchema | undefined;
|
|
25
25
|
set eventsData(value: any[]);
|
|
26
|
+
showInfoButton: boolean;
|
|
27
|
+
showDownloadButton: boolean;
|
|
28
|
+
showUploadButton: boolean;
|
|
29
|
+
showNoteButton: boolean;
|
|
30
|
+
showActionButton: boolean;
|
|
26
31
|
eventClick: EventEmitter<any>;
|
|
27
32
|
dateRangeChange: EventEmitter<any>;
|
|
28
33
|
displayModeOptions: any[];
|
|
@@ -46,5 +51,5 @@ export declare class TsiCalenderComponent implements OnInit, AfterViewInit {
|
|
|
46
51
|
onDisplayModeChange(event: any): void;
|
|
47
52
|
getCurrentDates(): void;
|
|
48
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<TsiCalenderComponent, never>;
|
|
49
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TsiCalenderComponent, "tsi-calender", never, { "crudService": { "alias": "crudService"; "required": false; }; "schema": { "alias": "schema"; "required": false; }; "eventsData": { "alias": "eventsData"; "required": false; }; }, { "eventClick": "eventClick"; "dateRangeChange": "dateRangeChange"; }, never, never, false, never>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TsiCalenderComponent, "tsi-calender", never, { "crudService": { "alias": "crudService"; "required": false; }; "schema": { "alias": "schema"; "required": false; }; "eventsData": { "alias": "eventsData"; "required": false; }; "showInfoButton": { "alias": "showInfoButton"; "required": false; }; "showDownloadButton": { "alias": "showDownloadButton"; "required": false; }; "showUploadButton": { "alias": "showUploadButton"; "required": false; }; "showNoteButton": { "alias": "showNoteButton"; "required": false; }; "showActionButton": { "alias": "showActionButton"; "required": false; }; }, { "eventClick": "eventClick"; "dateRangeChange": "dateRangeChange"; }, never, never, false, never>;
|
|
50
55
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
3
3
|
import { ButtonClickResult } from '../../interfaces/grid/grid-configuration';
|
|
4
|
+
import { GridColumn } from '../../interfaces';
|
|
5
|
+
import { MenuItem } from 'primeng/api';
|
|
6
|
+
import { Menu } from 'primeng/menu';
|
|
4
7
|
import * as i0 from "@angular/core";
|
|
5
8
|
export declare class TsiCardComponent implements OnInit {
|
|
6
9
|
id?: number;
|
|
@@ -11,16 +14,23 @@ export declare class TsiCardComponent implements OnInit {
|
|
|
11
14
|
uid?: string;
|
|
12
15
|
formName?: string;
|
|
13
16
|
statut?: string;
|
|
17
|
+
overflowActionsMenu: MenuItem[];
|
|
18
|
+
hasOverflowActions: boolean;
|
|
19
|
+
overflowActionColumns: GridColumn[];
|
|
20
|
+
currentActionRow: any;
|
|
21
|
+
item: any;
|
|
22
|
+
selectKeyOnly: boolean;
|
|
23
|
+
key: string;
|
|
14
24
|
buttonClicked: EventEmitter<ButtonClickResult>;
|
|
15
25
|
_dialogRef?: DynamicDialogRef;
|
|
16
26
|
constructor();
|
|
17
27
|
ngOnInit(): void;
|
|
18
|
-
consult(uid?: string): void;
|
|
19
28
|
edit(uid?: string): void;
|
|
20
|
-
delete(uid?: string): void;
|
|
21
|
-
upload(uid?: string): void;
|
|
22
|
-
info(uid?: string): void;
|
|
23
29
|
private openModalComponent;
|
|
30
|
+
getOverflowMenuModel(): MenuItem[];
|
|
31
|
+
overflowColumnClicked(menu: Menu, event: Event, row: any): void;
|
|
32
|
+
onOverflowActionClicked(row: any, menuItem: MenuItem): void;
|
|
33
|
+
handleButtonClicked(item: any, field: string): void;
|
|
24
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<TsiCardComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TsiCardComponent, "Tsi-card", never, { "id": { "alias": "id"; "required": false; }; "headerTitle": { "alias": "headerTitle"; "required": false; }; "subHeaderTitle": { "alias": "subHeaderTitle"; "required": false; }; "description": { "alias": "description"; "required": false; }; "imgUrl": { "alias": "imgUrl"; "required": false; }; "uid": { "alias": "uid"; "required": false; }; "formName": { "alias": "formName"; "required": false; }; "statut": { "alias": "statut"; "required": false; }; }, { "buttonClicked": "buttonClicked"; }, never, never, false, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TsiCardComponent, "Tsi-card", never, { "id": { "alias": "id"; "required": false; }; "headerTitle": { "alias": "headerTitle"; "required": false; }; "subHeaderTitle": { "alias": "subHeaderTitle"; "required": false; }; "description": { "alias": "description"; "required": false; }; "imgUrl": { "alias": "imgUrl"; "required": false; }; "uid": { "alias": "uid"; "required": false; }; "formName": { "alias": "formName"; "required": false; }; "statut": { "alias": "statut"; "required": false; }; "overflowActionsMenu": { "alias": "overflowActionsMenu"; "required": false; }; "item": { "alias": "item"; "required": false; }; "selectKeyOnly": { "alias": "selectKeyOnly"; "required": false; }; "key": { "alias": "key"; "required": false; }; }, { "buttonClicked": "buttonClicked"; }, never, never, false, never>;
|
|
26
36
|
}
|
|
@@ -4,6 +4,7 @@ import { BehaviorSubject } from 'rxjs';
|
|
|
4
4
|
import { ButtonClickResult } from '../../interfaces';
|
|
5
5
|
import { TsiCard } from '../../models';
|
|
6
6
|
import { AppBaseComponent } from '../../tsi-base/components/app-base/app-base.component';
|
|
7
|
+
import { MenuItem } from 'primeng/api';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class TsiCardListComponent extends AppBaseComponent implements OnInit, OnChanges {
|
|
9
10
|
private cdr;
|
|
@@ -22,6 +23,9 @@ export declare class TsiCardListComponent extends AppBaseComponent implements On
|
|
|
22
23
|
rows: number;
|
|
23
24
|
totalCount: number;
|
|
24
25
|
isLoading: boolean;
|
|
26
|
+
overflowActionsMenu: MenuItem[];
|
|
27
|
+
selectKeyOnly: boolean;
|
|
28
|
+
key: string;
|
|
25
29
|
constructor(cdr: ChangeDetectorRef);
|
|
26
30
|
ngOnChanges(changes: SimpleChanges): Promise<void>;
|
|
27
31
|
ngOnInit(): Promise<void>;
|
|
@@ -31,5 +35,5 @@ export declare class TsiCardListComponent extends AppBaseComponent implements On
|
|
|
31
35
|
private getColKeys;
|
|
32
36
|
private handlePageChange;
|
|
33
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<TsiCardListComponent, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TsiCardListComponent, "Tsi-card-list", never, { "cardBusinessClass": { "alias": "cardBusinessClass"; "required": false; }; "header": { "alias": "header"; "required": false; }; "id": { "alias": "id"; "required": false; }; "page": { "alias": "page"; "required": false; }; "page$": { "alias": "page$"; "required": false; }; }, { "buttonClicked": "buttonClicked"; "callSearch": "callSearch"; }, never, never, false, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TsiCardListComponent, "Tsi-card-list", never, { "cardBusinessClass": { "alias": "cardBusinessClass"; "required": false; }; "header": { "alias": "header"; "required": false; }; "id": { "alias": "id"; "required": false; }; "page": { "alias": "page"; "required": false; }; "page$": { "alias": "page$"; "required": false; }; "overflowActionsMenu": { "alias": "overflowActionsMenu"; "required": false; }; "selectKeyOnly": { "alias": "selectKeyOnly"; "required": false; }; "key": { "alias": "key"; "required": false; }; }, { "buttonClicked": "buttonClicked"; "callSearch": "callSearch"; }, never, never, false, never>;
|
|
35
39
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { PaginatorState } from 'primeng/paginator';
|
|
3
3
|
import { BehaviorSubject } from 'rxjs';
|
|
4
|
-
import { ButtonClickResult } from '../../interfaces';
|
|
4
|
+
import { ButtonClickResult, GridColumn } from '../../interfaces';
|
|
5
5
|
import { TsiCard } from '../../models';
|
|
6
6
|
import { LocalizePipe } from '../../pipes/localize.pipe';
|
|
7
7
|
import { CrudBaseService } from '../../services/base/crud-base.service';
|
|
@@ -9,6 +9,8 @@ import { EntityConfigurationService } from '../../services/configuration/entity-
|
|
|
9
9
|
import { TsiNotificationService } from '../../services/notification/tsi-notification.service';
|
|
10
10
|
import { EntityStatusService } from '../../services/status/entityStatus.service';
|
|
11
11
|
import { AppBaseComponent } from '../../tsi-base/components/app-base/app-base.component';
|
|
12
|
+
import { MenuItem } from 'primeng/api';
|
|
13
|
+
import { Menu } from 'primeng/menu';
|
|
12
14
|
import * as i0 from "@angular/core";
|
|
13
15
|
/**
|
|
14
16
|
* TsiKanbanComponent
|
|
@@ -27,6 +29,12 @@ export declare class TsiKanbanComponent extends AppBaseComponent implements OnIn
|
|
|
27
29
|
id: any;
|
|
28
30
|
page$: BehaviorSubject<any>;
|
|
29
31
|
crudService?: CrudBaseService<any, any, any, any>;
|
|
32
|
+
overflowActionsMenu: MenuItem[];
|
|
33
|
+
hasOverflowActions: boolean;
|
|
34
|
+
overflowActionColumns: GridColumn[];
|
|
35
|
+
currentActionRow: any;
|
|
36
|
+
selectKeyOnly: boolean;
|
|
37
|
+
key: string;
|
|
30
38
|
private _page;
|
|
31
39
|
set page(value: any);
|
|
32
40
|
get page(): any;
|
|
@@ -63,12 +71,12 @@ export declare class TsiKanbanComponent extends AppBaseComponent implements OnIn
|
|
|
63
71
|
private mapItemsToCards;
|
|
64
72
|
private updateCardMap;
|
|
65
73
|
private getBusinessClassStatus;
|
|
74
|
+
getOverflowMenuModel(): MenuItem[];
|
|
75
|
+
overflowColumnClicked(menu: Menu, event: Event, row: any): void;
|
|
76
|
+
onOverflowActionClicked(card: TsiCard, menuItem: MenuItem): void;
|
|
77
|
+
handleButtonClicked(item: any, field: string): void;
|
|
66
78
|
edit(uid?: string): void;
|
|
67
|
-
consult(uid?: string): void;
|
|
68
|
-
upload(uid?: string): void;
|
|
69
|
-
info(uid?: string): void;
|
|
70
|
-
delete(uid?: string): void;
|
|
71
79
|
private openModalComponent;
|
|
72
80
|
static ɵfac: i0.ɵɵFactoryDeclaration<TsiKanbanComponent, never>;
|
|
73
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TsiKanbanComponent, "Tsi-kanban", never, { "cardBusinessClass": { "alias": "cardBusinessClass"; "required": false; }; "header": { "alias": "header"; "required": false; }; "id": { "alias": "id"; "required": false; }; "page$": { "alias": "page$"; "required": false; }; "crudService": { "alias": "crudService"; "required": false; }; "page": { "alias": "page"; "required": false; }; }, { "buttonClicked": "buttonClicked"; "callSearch": "callSearch"; }, never, never, false, never>;
|
|
81
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TsiKanbanComponent, "Tsi-kanban", never, { "cardBusinessClass": { "alias": "cardBusinessClass"; "required": false; }; "header": { "alias": "header"; "required": false; }; "id": { "alias": "id"; "required": false; }; "page$": { "alias": "page$"; "required": false; }; "crudService": { "alias": "crudService"; "required": false; }; "overflowActionsMenu": { "alias": "overflowActionsMenu"; "required": false; }; "selectKeyOnly": { "alias": "selectKeyOnly"; "required": false; }; "key": { "alias": "key"; "required": false; }; "page": { "alias": "page"; "required": false; }; }, { "buttonClicked": "buttonClicked"; "callSearch": "callSearch"; }, never, never, false, never>;
|
|
74
82
|
}
|