@tsi-developpement/tsi-shared-ui 1.11.13 → 1.11.14

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.
@@ -3,4 +3,4 @@ import { FormStateService } from "../services/form/form-state.service";
3
3
  import { PresentationDesignerBaseService } from "../services/presentation-setting/presentation-designer-base.service";
4
4
  import { GenericValidationStateService } from "../services/validation/generic-validation-state.service";
5
5
  import { InputRegistryService } from "../services/validation/input-registry.service";
6
- export declare const appProviders: (typeof GenericValidationStateService | typeof PresentationDesignerBaseService | typeof InputRegistryService | typeof DynamicFormService | typeof FormStateService)[];
6
+ export declare const appProviders: (typeof PresentationDesignerBaseService | typeof GenericValidationStateService | typeof InputRegistryService | typeof DynamicFormService | typeof FormStateService)[];
@@ -117,6 +117,7 @@ export declare const AdministrationSegments: {
117
117
  getStatusColorDetailsByBusinessClassName: string;
118
118
  getNombreFichierJointById: string;
119
119
  getWorkflowEtatByClassNameAndDescriminator: string;
120
+ getWorkflowEtatSuivantsByClassNameAndDescriminator: string;
120
121
  getWorkflowByClasseAndDescriminator: string;
121
122
  formulaire: string;
122
123
  formulaireData: string;
@@ -130,6 +131,7 @@ export declare const AdministrationSegments: {
130
131
  getParametreApplicationParamBase: string;
131
132
  getAllWorkflowEtatSuivantByWorkflowEtatId: string;
132
133
  updateWorkflowEtatFromKanbanView: string;
134
+ updateMultipleWorkflowEtatFromKanbanView: string;
133
135
  mailing: string;
134
136
  sendMailMessage: string;
135
137
  actionCRM: string;
@@ -242,11 +244,13 @@ export declare const AdministrationEndpoints: {
242
244
  getAllTypeFichierMinimalByClasse: (classe: string) => string;
243
245
  getTypeFichierMinimal: () => string;
244
246
  getWorkflowEtatByClassNameAndDescriminator: (className: string, descriminatorValue?: string, filterByUserRights?: boolean) => string;
247
+ getWorkflowEtatSuivantsByClassNameAndDescriminator: (className: string, descriminatorValue?: string) => string;
245
248
  getWorkflowByClasseAndDescriminator: (classe: string, descriminatorValue?: string) => string;
246
249
  getcolonnesPersonnalisee: (businessClass: string, occurence?: string) => string;
247
250
  createOrUpdateFormulaireData: () => string;
248
251
  getAllWorkflowEtatSuivantByWorkflowEtatId: (id?: string) => string;
249
252
  updateWorkflowEtatFromKanbanView: () => string;
253
+ updateMultipleWorkflowEtatFromKanbanView: () => string;
250
254
  sendMailMessage: () => string;
251
255
  getFormulaireDataColumnsDefinition: (id: string) => string;
252
256
  getEntityFormulairesColumnsDefinition: (businessClass: string) => string;
@@ -57,3 +57,23 @@ export declare class WorkflowEtatKanbanRequest {
57
57
  workFlowEtatSuivant: string | undefined;
58
58
  workFlowEtat: string | undefined;
59
59
  }
60
+ export declare class WorkflowEtatKanbanMultipleRequest {
61
+ businessClass: string | undefined;
62
+ workFlowEtat: string | undefined;
63
+ uidObjets: string[];
64
+ discriminatorClassName: string | undefined;
65
+ discriminatorPropertyName: string | undefined;
66
+ discriminatorValue: string | undefined;
67
+ workFlowEtatSuivant: string | undefined;
68
+ }
69
+ export interface WorkflowEtatKanbanMoveFailure {
70
+ uidObjet: string;
71
+ errorMessage: string;
72
+ }
73
+ export interface WorkflowEtatKanbanMultipleResponse {
74
+ total: number;
75
+ succeededCount: number;
76
+ failedCount: number;
77
+ succeeded: string[];
78
+ failed: WorkflowEtatKanbanMoveFailure[];
79
+ }
@@ -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 TabView | typeof JwtHelperService | typeof DynamicDialogRef | typeof DynamicDialogConfig | typeof MessageService | typeof ConfirmationService | {
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
  })[];
@@ -1,6 +1,6 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
- import { PresentationSetting, workflowEtatDetailledResponse, EntityInfo, GetWorkflowInstanceInformationRequest, workflowInstanceInformationResponse, WorkflowEtatForm, updateEntityWorkflowInformation, KeyValuePair, WorkflowEtatSuivantResponse, WorkflowEtatKanbanRequest, updateEntityWorkflowInstanceResponse, WorkflowResponse } from '../../models';
3
+ import { PresentationSetting, workflowEtatDetailledResponse, EntityInfo, GetWorkflowInstanceInformationRequest, workflowInstanceInformationResponse, WorkflowEtatForm, updateEntityWorkflowInformation, KeyValuePair, WorkflowEtatSuivantResponse, WorkflowEtatKanbanRequest, WorkflowEtatKanbanMultipleRequest, WorkflowEtatKanbanMultipleResponse, updateEntityWorkflowInstanceResponse, WorkflowResponse } from '../../models';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class WorkflowConfigurationService {
6
6
  private _httpClient;
@@ -26,11 +26,13 @@ export declare class WorkflowConfigurationService {
26
26
  getCurrentEntityWorklfowInstanceInformation(request: GetWorkflowInstanceInformationRequest): Observable<workflowInstanceInformationResponse>;
27
27
  getEntityWorklfowInstanceInformation(businessClass?: string, uidObject?: string, discriminatorValue?: string): Promise<workflowInstanceInformationResponse | undefined>;
28
28
  getWorkflowEtatByClassNameAndDescriminator(className: string, descriminatorValue?: string, filterByUserRights?: boolean): Observable<KeyValuePair<string, string>[]>;
29
+ getWorkflowEtatSuivantsByClassNameAndDescriminator(className: string, descriminatorValue?: string): Observable<Record<string, string[]>>;
29
30
  getWorkflowByClasseAndDescriminator(classe: string, descriminatorValue?: string): Observable<WorkflowResponse | null>;
30
31
  updateEntityWorkflowInformation(request: updateEntityWorkflowInformation): Observable<updateEntityWorkflowInstanceResponse>;
31
32
  mapWorkflowEtatFormToPresentationSetting(workflowEtatForms: WorkflowEtatForm[]): PresentationSetting;
32
33
  getAllWorkflowEtatSuivantByWorkflowEtatId(workflowEtatUid: string | undefined): Observable<WorkflowEtatSuivantResponse[]>;
33
34
  updateWorkflowEtatFromKanbanView(request: WorkflowEtatKanbanRequest): Observable<Object>;
35
+ updateMultipleWorkflowEtatFromKanbanView(request: WorkflowEtatKanbanMultipleRequest): Observable<WorkflowEtatKanbanMultipleResponse>;
34
36
  static ɵfac: i0.ɵɵFactoryDeclaration<WorkflowConfigurationService, never>;
35
37
  static ɵprov: i0.ɵɵInjectableDeclaration<WorkflowConfigurationService>;
36
38
  }
@@ -133,11 +133,13 @@ export declare class AddReportPopupComponent extends TsiFormComponentBaseCompone
133
133
  getAllTypeFichierMinimalByClasse: (classe: string) => string;
134
134
  getTypeFichierMinimal: () => string;
135
135
  getWorkflowEtatByClassNameAndDescriminator: (className: string, descriminatorValue?: string | undefined, filterByUserRights?: boolean | undefined) => string;
136
+ getWorkflowEtatSuivantsByClassNameAndDescriminator: (className: string, descriminatorValue?: string | undefined) => string;
136
137
  getWorkflowByClasseAndDescriminator: (classe: string, descriminatorValue?: string | undefined) => string;
137
138
  getcolonnesPersonnalisee: (businessClass: string, occurence?: string | undefined) => string;
138
139
  createOrUpdateFormulaireData: () => string;
139
140
  getAllWorkflowEtatSuivantByWorkflowEtatId: (id?: string | undefined) => string;
140
141
  updateWorkflowEtatFromKanbanView: () => string;
142
+ updateMultipleWorkflowEtatFromKanbanView: () => string;
141
143
  sendMailMessage: () => string;
142
144
  getFormulaireDataColumnsDefinition: (id: string) => string;
143
145
  getEntityFormulairesColumnsDefinition: (businessClass: string) => string;
@@ -121,11 +121,13 @@ export declare class TsiActionErpCreateOrEditComponent extends TsiFormComponentB
121
121
  getAllTypeFichierMinimalByClasse: (classe: string) => string;
122
122
  getTypeFichierMinimal: () => string;
123
123
  getWorkflowEtatByClassNameAndDescriminator: (className: string, descriminatorValue?: string | undefined, filterByUserRights?: boolean | undefined) => string;
124
+ getWorkflowEtatSuivantsByClassNameAndDescriminator: (className: string, descriminatorValue?: string | undefined) => string;
124
125
  getWorkflowByClasseAndDescriminator: (classe: string, descriminatorValue?: string | undefined) => string;
125
126
  getcolonnesPersonnalisee: (businessClass: string, occurence?: string | undefined) => string;
126
127
  createOrUpdateFormulaireData: () => string;
127
128
  getAllWorkflowEtatSuivantByWorkflowEtatId: (id?: string | undefined) => string;
128
129
  updateWorkflowEtatFromKanbanView: () => string;
130
+ updateMultipleWorkflowEtatFromKanbanView: () => string;
129
131
  sendMailMessage: () => string;
130
132
  getFormulaireDataColumnsDefinition: (id: string) => string;
131
133
  getEntityFormulairesColumnsDefinition: (businessClass: string) => string;
@@ -1,4 +1,4 @@
1
- import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, ElementRef, EventEmitter, OnInit } from '@angular/core';
2
2
  import { PaginatorState } from 'primeng/paginator';
3
3
  import { BehaviorSubject } from 'rxjs';
4
4
  import { ButtonClickResult, GridColumn } from '../../interfaces';
@@ -6,6 +6,8 @@ import { TsiCard } from '../../models';
6
6
  import { LocalizePipe } from '../../pipes/localize.pipe';
7
7
  import { EntityConfigurationService } from '../../services/configuration/entity-configuration.service';
8
8
  import { TsiNotificationService } from '../../services/notification/tsi-notification.service';
9
+ import { TsiConfirmationService } from '../../services/notification/tsi-confirmation.service';
10
+ import { TsiMessageService } from '../../services/notification/tsi-message.service';
9
11
  import { AppBaseComponent } from '../../tsi-base/components/app-base/app-base.component';
10
12
  import { WorkflowConfigurationService } from '../../services/workflow/workflow-configuration.service';
11
13
  import { IPage, ISummaryForProprety } from '../../interfaces/pagination/pagination-base';
@@ -23,13 +25,19 @@ export declare class TsiKanbanWorkflowEtatComponent extends AppBaseComponent imp
23
25
  private _entityConfig;
24
26
  private _localize;
25
27
  private _notificationService;
28
+ private _confirmationService;
29
+ private _messageService;
26
30
  buttonClicked: EventEmitter<ButtonClickResult>;
27
31
  callSearch: EventEmitter<any>;
28
- cardBusinessClass: any;
32
+ private _cardBusinessClass;
33
+ set cardBusinessClass(value: any);
34
+ get cardBusinessClass(): any;
29
35
  header: any;
30
36
  id: any;
31
37
  page$: BehaviorSubject<IPage<any> | null>;
32
- descriminatorValue?: string;
38
+ private _descriminatorValue?;
39
+ set descriminatorValue(value: string | undefined);
40
+ get descriminatorValue(): string | undefined;
33
41
  summaryColumns: GridColumn[];
34
42
  overflowActionsMenu: MenuItem[];
35
43
  selectKeyOnly: boolean;
@@ -49,13 +57,18 @@ export declare class TsiKanbanWorkflowEtatComponent extends AppBaseComponent imp
49
57
  rows: number;
50
58
  totalCount: number;
51
59
  isLoading: boolean;
60
+ selectedCardUids: Set<string>;
61
+ selectionColumnKey: string | null;
62
+ allowedTargetsByWorkflowEtat: Map<string, Set<string>> | null;
63
+ isBulkDragging: boolean;
64
+ bulkDragPreview?: ElementRef<HTMLElement>;
52
65
  workFlowEtatNomLabels: {
53
66
  key: string | null;
54
67
  localized: string;
55
68
  }[];
56
- constructor(cdr: ChangeDetectorRef, _workflowConfigurationService: WorkflowConfigurationService, _entityConfig: EntityConfigurationService, _localize: LocalizePipe, _notificationService: TsiNotificationService);
69
+ constructor(cdr: ChangeDetectorRef, _workflowConfigurationService: WorkflowConfigurationService, _entityConfig: EntityConfigurationService, _localize: LocalizePipe, _notificationService: TsiNotificationService, _confirmationService: TsiConfirmationService, _messageService: TsiMessageService);
57
70
  ngOnInit(): Promise<void>;
58
- dragStart(_: DragEvent, card: TsiCard): void;
71
+ dragStart(event: DragEvent, card: TsiCard): void;
59
72
  dragEnd(): void;
60
73
  allowDrop(event: DragEvent): void;
61
74
  trackByWorkflowEtat(index: number, status: {
@@ -65,6 +78,14 @@ export declare class TsiKanbanWorkflowEtatComponent extends AppBaseComponent imp
65
78
  trackByCard(index: number, card: TsiCard): string | undefined;
66
79
  drop(event: DragEvent, newKey: string | null): void;
67
80
  onPageChange(event: PaginatorState): void;
81
+ get selectedCount(): number;
82
+ get selectedCardsPreview(): TsiCard[];
83
+ isCardSelected(card: TsiCard): boolean;
84
+ toggleCardSelection(columnKey: string, card: TsiCard): void;
85
+ isColumnPageFullySelected(columnKey: string): boolean;
86
+ toggleSelectAllColumnPage(columnKey: string): void;
87
+ clearSelection(): void;
88
+ isAllowedDropTarget(columnKey: string | null): boolean;
68
89
  getWorkflowEtatClass(card: TsiCard): string;
69
90
  getLocalizedWorkflowEtat(key: string | null | undefined): string;
70
91
  getColumnCount(key: string | null): number;
@@ -81,11 +102,20 @@ export declare class TsiKanbanWorkflowEtatComponent extends AppBaseComponent imp
81
102
  private openModalComponent;
82
103
  private handlePageChange;
83
104
  private handleGroupedPage;
105
+ private startSelection;
106
+ private removeFromSelection;
107
+ private dropSelection;
108
+ private executeBulkMove;
109
+ private showBulkMoveFailures;
84
110
  private getEntityInfo;
111
+ private get hasDiscriminator();
112
+ private loadEntityInfoAndWorkflowEtats;
113
+ private loadWorkflowEtatsAndSuivants;
85
114
  private getColKeys;
86
115
  private mapItemsToCards;
87
116
  private updateCardMap;
88
117
  private getWorkflowEtat;
118
+ private getWorkflowEtatSuivants;
89
119
  static ɵfac: i0.ɵɵFactoryDeclaration<TsiKanbanWorkflowEtatComponent, never>;
90
120
  static ɵcmp: i0.ɵɵComponentDeclaration<TsiKanbanWorkflowEtatComponent, "Tsi-kanban-workflow-etat", never, { "cardBusinessClass": { "alias": "cardBusinessClass"; "required": false; }; "header": { "alias": "header"; "required": false; }; "id": { "alias": "id"; "required": false; }; "page$": { "alias": "page$"; "required": false; }; "descriminatorValue": { "alias": "descriminatorValue"; "required": false; }; "summaryColumns": { "alias": "summaryColumns"; "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>;
91
121
  }
@@ -127,11 +127,13 @@ export declare class TsiUploadFicheComponent extends TsiFormComponentBaseCompone
127
127
  getAllTypeFichierMinimalByClasse: (classe: string) => string;
128
128
  getTypeFichierMinimal: () => string;
129
129
  getWorkflowEtatByClassNameAndDescriminator: (className: string, descriminatorValue?: string | undefined, filterByUserRights?: boolean | undefined) => string;
130
+ getWorkflowEtatSuivantsByClassNameAndDescriminator: (className: string, descriminatorValue?: string | undefined) => string;
130
131
  getWorkflowByClasseAndDescriminator: (classe: string, descriminatorValue?: string | undefined) => string;
131
132
  getcolonnesPersonnalisee: (businessClass: string, occurence?: string | undefined) => string;
132
133
  createOrUpdateFormulaireData: () => string;
133
134
  getAllWorkflowEtatSuivantByWorkflowEtatId: (id?: string | undefined) => string;
134
135
  updateWorkflowEtatFromKanbanView: () => string;
136
+ updateMultipleWorkflowEtatFromKanbanView: () => string;
135
137
  sendMailMessage: () => string;
136
138
  getFormulaireDataColumnsDefinition: (id: string) => string;
137
139
  getEntityFormulairesColumnsDefinition: (businessClass: string) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsi-developpement/tsi-shared-ui",
3
- "version": "1.11.13",
3
+ "version": "1.11.14",
4
4
  "author": "TSI",
5
5
  "license": "MIT",
6
6
  "peerDependencies": {