@tsi-developpement/tsi-shared-ui 1.10.11 → 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.
@@ -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 PresentationDesignerBaseService | typeof GenericValidationStateService | typeof InputRegistryService | typeof DynamicFormService | typeof FormStateService)[];
6
+ export declare const appProviders: (typeof PresentationDesignerBaseService | typeof InputRegistryService | typeof FormStateService | typeof GenericValidationStateService | typeof DynamicFormService)[];
@@ -5,3 +5,4 @@ export * from './queryParamNames.const';
5
5
  export * from './themes';
6
6
  export * from './tsi-consts';
7
7
  export * from './app-providers';
8
+ export * from './upload-error-codes';
@@ -0,0 +1,8 @@
1
+ export interface FileUploadRejection {
2
+ errorCode: string;
3
+ fileName?: string | null;
4
+ allowedExtensions?: string[];
5
+ }
6
+ export declare const UploadErrorCodeTranslationKeys: Record<string, string>;
7
+ export declare const UploadErrorUnknownKey = "upload_error_unknown";
8
+ export declare const UploadAllowedExtensionsLabelKey = "upload_error_allowed_extensions_label";
@@ -1,13 +1,16 @@
1
1
  import { HttpErrorResponse } from '@angular/common/http';
2
2
  import { TsiMessageService } from './tsi-message.service';
3
+ import { LocalizePipe } from '../../pipes/localize.pipe';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class ErrorResponseManagerService {
5
6
  private _messageService;
6
- constructor(_messageService: TsiMessageService);
7
+ private localizePipe;
8
+ constructor(_messageService: TsiMessageService, localizePipe: LocalizePipe);
7
9
  showErrorMessage(response: HttpErrorResponse): void;
8
10
  showValidationErrorMessage(response: HttpErrorResponse): void;
9
11
  showErrorMessagesFromArrayString(errorMessages: string[]): void;
10
12
  showUserFriendlyErrorMessage(response: HttpErrorResponse): void;
13
+ private showFileUploadRejection;
11
14
  static ɵfac: i0.ɵɵFactoryDeclaration<ErrorResponseManagerService, never>;
12
15
  static ɵprov: i0.ɵɵInjectableDeclaration<ErrorResponseManagerService>;
13
16
  }
@@ -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.11",
3
+ "version": "1.10.13",
4
4
  "author": "TSI",
5
5
  "license": "MIT",
6
6
  "peerDependencies": {