@tsi-developpement/tsi-shared-ui 1.10.12 → 1.10.13

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.
@@ -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 DynamicDialogRef | typeof DynamicDialogConfig | typeof JwtHelperService | typeof TabView | 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
  })[];
@@ -93,6 +93,7 @@ export declare class TsiGenericCrudComponent implements OnInit, AfterContentChec
93
93
  showImportFromOutlookButton: boolean;
94
94
  showKanbanView: boolean;
95
95
  showKanbanViewOfWorkFlowEtat: boolean;
96
+ private _workflowEtatKanbanCheck;
96
97
  groupBy: string | undefined;
97
98
  showSearchField: boolean;
98
99
  searchFields: SearchField[] | undefined;
@@ -1,13 +1,15 @@
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 { EntityConfigurationService } from '../../services/configuration/entity-configuration.service';
8
8
  import { TsiNotificationService } from '../../services/notification/tsi-notification.service';
9
9
  import { AppBaseComponent } from '../../tsi-base/components/app-base/app-base.component';
10
10
  import { WorkflowConfigurationService } from '../../services/workflow/workflow-configuration.service';
11
+ import { IPage, ISummaryForProprety } from '../../interfaces/pagination/pagination-base';
12
+ import { DisplayTypes } from '../../enums/display-types';
11
13
  import * as i0 from "@angular/core";
12
14
  /**
13
15
  * TsiKanbanWorkflowEtatComponent
@@ -24,20 +26,25 @@ export declare class TsiKanbanWorkflowEtatComponent extends AppBaseComponent imp
24
26
  cardBusinessClass: any;
25
27
  header: any;
26
28
  id: any;
27
- page$: BehaviorSubject<any>;
29
+ page$: BehaviorSubject<IPage<any> | null>;
28
30
  descriminatorValue?: string;
31
+ summaryColumns: GridColumn[];
32
+ readonly displayTypes: typeof DisplayTypes;
29
33
  private _page;
30
- set page(value: any);
31
- get page(): any;
34
+ set page(value: IPage<any>);
35
+ get page(): IPage<any> | undefined;
32
36
  cards: TsiCard[];
33
- cardMapByWorkflowEtat: Map<string, TsiCard[]>;
37
+ cardMapByWorkflowEtat: Map<string | null, TsiCard[]>;
38
+ countByWorkflowEtat: Map<string | null, number>;
39
+ summaryByWorkflowEtat: Map<string | null, ISummaryForProprety[]>;
40
+ private _isGrouped;
34
41
  draggedCard: TsiCard | null;
35
42
  first: number;
36
43
  rows: number;
37
44
  totalCount: number;
38
45
  isLoading: boolean;
39
46
  workFlowEtatNomLabels: {
40
- key: string;
47
+ key: string | null;
41
48
  localized: string;
42
49
  }[];
43
50
  constructor(cdr: ChangeDetectorRef, _workflowConfigurationService: WorkflowConfigurationService, _entityConfig: EntityConfigurationService, _localize: LocalizePipe, _notificationService: TsiNotificationService);
@@ -46,20 +53,28 @@ export declare class TsiKanbanWorkflowEtatComponent extends AppBaseComponent imp
46
53
  dragEnd(): void;
47
54
  allowDrop(event: DragEvent): void;
48
55
  trackByWorkflowEtat(index: number, status: {
49
- key: string;
56
+ key: string | null;
50
57
  localized: string;
51
- }): string;
58
+ }): string | null;
52
59
  trackByCard(index: number, card: TsiCard): string | undefined;
53
- drop(event: DragEvent, newKey: string): void;
60
+ drop(event: DragEvent, newKey: string | null): void;
54
61
  onPageChange(event: PaginatorState): void;
55
62
  getWorkflowEtatClass(card: TsiCard): string;
56
- getLocalizedWorkflowEtat(key: string | undefined): string;
63
+ getLocalizedWorkflowEtat(key: string | null | undefined): string;
64
+ getColumnCount(key: string | null): number;
65
+ get hasColumnSummaries(): boolean;
66
+ get displayedWorkFlowEtatLabels(): {
67
+ key: string | null;
68
+ localized: string;
69
+ }[];
70
+ getColumnSummaryValue(key: string | null, field: string): number | undefined;
57
71
  private handlePageChange;
72
+ private handleGroupedPage;
58
73
  private getEntityInfo;
59
74
  private getColKeys;
60
75
  private mapItemsToCards;
61
76
  private updateCardMap;
62
77
  private getWorkflowEtat;
63
78
  static ɵfac: i0.ɵɵFactoryDeclaration<TsiKanbanWorkflowEtatComponent, never>;
64
- 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; }; "page": { "alias": "page"; "required": false; }; }, { "buttonClicked": "buttonClicked"; "callSearch": "callSearch"; }, never, never, false, never>;
79
+ 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; }; "page": { "alias": "page"; "required": false; }; }, { "buttonClicked": "buttonClicked"; "callSearch": "callSearch"; }, never, never, false, never>;
65
80
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsi-developpement/tsi-shared-ui",
3
- "version": "1.10.12",
3
+ "version": "1.10.13",
4
4
  "author": "TSI",
5
5
  "license": "MIT",
6
6
  "peerDependencies": {