@colijnit/sharedcomponents 261.20.2 → 262.1.1

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/index.d.ts CHANGED
@@ -1152,6 +1152,7 @@ declare class SendMethodPrinterComponent implements OnInit {
1152
1152
  layouts: ReportLayoutSelectionPrint[];
1153
1153
  isPrinterLayoutsEnabled: boolean;
1154
1154
  isAdditionalDocEnabled: boolean;
1155
+ hideSignatureBtn: boolean;
1155
1156
  additionalFileContents: any;
1156
1157
  additionalFileName: string;
1157
1158
  layoutCode: LayoutCode;
@@ -1172,7 +1173,7 @@ declare class SendMethodPrinterComponent implements OnInit {
1172
1173
  updatePrinter(request: ReportingDocumentBaseRequest): void;
1173
1174
  handleCopiesAmountChange(amount: number): void;
1174
1175
  static ɵfac: i0.ɵɵFactoryDeclaration<SendMethodPrinterComponent, never>;
1175
- static ɵcmp: i0.ɵɵComponentDeclaration<SendMethodPrinterComponent, "co-send-method-printer", never, { "printerList": { "alias": "printerList"; "required": false; }; "layouts": { "alias": "layouts"; "required": false; }; "isPrinterLayoutsEnabled": { "alias": "isPrinterLayoutsEnabled"; "required": false; }; "isAdditionalDocEnabled": { "alias": "isAdditionalDocEnabled"; "required": false; }; "additionalFileContents": { "alias": "additionalFileContents"; "required": false; }; "additionalFileName": { "alias": "additionalFileName"; "required": false; }; "layoutCode": { "alias": "layoutCode"; "required": false; }; }, { "additionalFileChangeEvent": "additionalFileChangeEvent"; "useLocalPrint": "useLocalPrint"; "copiesAmountChange": "copiesAmountChange"; }, never, never, false, never>;
1176
+ static ɵcmp: i0.ɵɵComponentDeclaration<SendMethodPrinterComponent, "co-send-method-printer", never, { "printerList": { "alias": "printerList"; "required": false; }; "layouts": { "alias": "layouts"; "required": false; }; "isPrinterLayoutsEnabled": { "alias": "isPrinterLayoutsEnabled"; "required": false; }; "isAdditionalDocEnabled": { "alias": "isAdditionalDocEnabled"; "required": false; }; "hideSignatureBtn": { "alias": "hideSignatureBtn"; "required": false; }; "additionalFileContents": { "alias": "additionalFileContents"; "required": false; }; "additionalFileName": { "alias": "additionalFileName"; "required": false; }; "layoutCode": { "alias": "layoutCode"; "required": false; }; }, { "additionalFileChangeEvent": "additionalFileChangeEvent"; "useLocalPrint": "useLocalPrint"; "copiesAmountChange": "copiesAmountChange"; }, never, never, false, never>;
1176
1177
  }
1177
1178
 
1178
1179
  declare class EmailAddressViewmodel {
@@ -1233,6 +1234,7 @@ declare class SendMethodDialogComponent implements OnInit, OnDestroy {
1233
1234
  visibleMethods: SendMethodType[] | string[];
1234
1235
  isDocSignEnabled: boolean;
1235
1236
  docSign: boolean;
1237
+ hideSignatureBtn: boolean;
1236
1238
  isPrinterLayoutsEnabled: boolean;
1237
1239
  isAdditionalDocEnabled: boolean;
1238
1240
  additionalFileName: string;
@@ -1288,7 +1290,7 @@ declare class SendMethodDialogComponent implements OnInit, OnDestroy {
1288
1290
  private _selectDefaultSendMethod;
1289
1291
  private _prepareVisibleMethods;
1290
1292
  static ɵfac: i0.ɵɵFactoryDeclaration<SendMethodDialogComponent, never>;
1291
- static ɵcmp: i0.ɵɵComponentDeclaration<SendMethodDialogComponent, "co-send-method-dialog", never, { "printerList": { "alias": "printerList"; "required": false; }; "reportingDocumentPrintRequest": { "alias": "reportingDocumentPrintRequest"; "required": false; }; "reportingDocumentEmailRequest": { "alias": "reportingDocumentEmailRequest"; "required": false; }; "reportingDocumentPdfRequest": { "alias": "reportingDocumentPdfRequest"; "required": false; }; "reportingDocumentCombinedRequest": { "alias": "reportingDocumentCombinedRequest"; "required": false; }; "emailLayouts": { "alias": "emailLayouts"; "required": false; }; "printLayouts": { "alias": "printLayouts"; "required": false; }; "headerTitle": { "alias": "headerTitle"; "required": false; }; "emailAddresses": { "alias": "emailAddresses"; "required": false; }; "defaultSendMethod": { "alias": "defaultSendMethod"; "required": false; }; "visibleMethods": { "alias": "visibleMethods"; "required": false; }; "isDocSignEnabled": { "alias": "isDocSignEnabled"; "required": false; }; "docSign": { "alias": "docSign"; "required": false; }; "isPrinterLayoutsEnabled": { "alias": "isPrinterLayoutsEnabled"; "required": false; }; "isAdditionalDocEnabled": { "alias": "isAdditionalDocEnabled"; "required": false; }; "additionalFileName": { "alias": "additionalFileName"; "required": false; }; "additionalFileContents": { "alias": "additionalFileContents"; "required": false; }; "pdfDoc": { "alias": "pdfDoc"; "required": false; }; "disablePdfPreview": { "alias": "disablePdfPreview"; "required": false; }; "emailUnsignedPossible": { "alias": "emailUnsignedPossible"; "required": false; }; "showPDFPreview": { "alias": "showPDFPreview"; "required": false; }; "showAdditionalChecks": { "alias": "showAdditionalChecks"; "required": false; }; "showLocalPrint": { "alias": "showLocalPrint"; "required": false; }; "layoutCode": { "alias": "layoutCode"; "required": false; }; }, { "reportingDocumentPrintRequestChange": "reportingDocumentPrintRequestChange"; "reportingDocumentEmailRequestChange": "reportingDocumentEmailRequestChange"; "reportingDocumentPdfRequestChange": "reportingDocumentPdfRequestChange"; "reportingDocumentCombinedRequestChange": "reportingDocumentCombinedRequestChange"; "startSignatureClicked": "startSignatureClicked"; "closeClick": "closeClick"; "okClick": "okClick"; "additionalFileChangeEvent": "additionalFileChangeEvent"; "showFilePreview": "showFilePreview"; "loadDefaultPrinterName": "loadDefaultPrinterName"; }, never, ["[extra-content]"], false, never>;
1293
+ static ɵcmp: i0.ɵɵComponentDeclaration<SendMethodDialogComponent, "co-send-method-dialog", never, { "printerList": { "alias": "printerList"; "required": false; }; "reportingDocumentPrintRequest": { "alias": "reportingDocumentPrintRequest"; "required": false; }; "reportingDocumentEmailRequest": { "alias": "reportingDocumentEmailRequest"; "required": false; }; "reportingDocumentPdfRequest": { "alias": "reportingDocumentPdfRequest"; "required": false; }; "reportingDocumentCombinedRequest": { "alias": "reportingDocumentCombinedRequest"; "required": false; }; "emailLayouts": { "alias": "emailLayouts"; "required": false; }; "printLayouts": { "alias": "printLayouts"; "required": false; }; "headerTitle": { "alias": "headerTitle"; "required": false; }; "emailAddresses": { "alias": "emailAddresses"; "required": false; }; "defaultSendMethod": { "alias": "defaultSendMethod"; "required": false; }; "visibleMethods": { "alias": "visibleMethods"; "required": false; }; "isDocSignEnabled": { "alias": "isDocSignEnabled"; "required": false; }; "docSign": { "alias": "docSign"; "required": false; }; "hideSignatureBtn": { "alias": "hideSignatureBtn"; "required": false; }; "isPrinterLayoutsEnabled": { "alias": "isPrinterLayoutsEnabled"; "required": false; }; "isAdditionalDocEnabled": { "alias": "isAdditionalDocEnabled"; "required": false; }; "additionalFileName": { "alias": "additionalFileName"; "required": false; }; "additionalFileContents": { "alias": "additionalFileContents"; "required": false; }; "pdfDoc": { "alias": "pdfDoc"; "required": false; }; "disablePdfPreview": { "alias": "disablePdfPreview"; "required": false; }; "emailUnsignedPossible": { "alias": "emailUnsignedPossible"; "required": false; }; "showPDFPreview": { "alias": "showPDFPreview"; "required": false; }; "showAdditionalChecks": { "alias": "showAdditionalChecks"; "required": false; }; "showLocalPrint": { "alias": "showLocalPrint"; "required": false; }; "layoutCode": { "alias": "layoutCode"; "required": false; }; }, { "reportingDocumentPrintRequestChange": "reportingDocumentPrintRequestChange"; "reportingDocumentEmailRequestChange": "reportingDocumentEmailRequestChange"; "reportingDocumentPdfRequestChange": "reportingDocumentPdfRequestChange"; "reportingDocumentCombinedRequestChange": "reportingDocumentCombinedRequestChange"; "startSignatureClicked": "startSignatureClicked"; "closeClick": "closeClick"; "okClick": "okClick"; "additionalFileChangeEvent": "additionalFileChangeEvent"; "showFilePreview": "showFilePreview"; "loadDefaultPrinterName": "loadDefaultPrinterName"; }, never, ["[extra-content]"], false, never>;
1292
1294
  }
1293
1295
 
1294
1296
  declare class LayoutSelectionComponent implements OnInit {
@@ -2504,14 +2506,15 @@ declare abstract class BaseFileUploadComponent implements ScreenConfigAdapterCom
2504
2506
  documentChangeEvent: EventEmitter<CoDocument>;
2505
2507
  popupOpenedStateChange: EventEmitter<boolean>;
2506
2508
  hidden: boolean;
2507
- onDrop(event: DragEvent): void;
2508
- onDragEnd(event: DragEvent): void;
2509
- onDragOver(event: DragEvent): void;
2510
- onDragEnter(event: DragEvent): void;
2511
- onDragLeave(event: DragEvent): void;
2512
2509
  documentUnderEdit: CoDocument;
2513
2510
  acceptedUploadFormats: string;
2511
+ uploadFeedbackMessage: string;
2512
+ uploadFeedbackVisible: boolean;
2513
+ showResizeDialog: boolean;
2514
+ resizeDialogMessage: string;
2515
+ resizeDialogCanSave: boolean;
2514
2516
  protected _maxUploadFileSize: number;
2517
+ protected readonly _resizeTargetBytes: number;
2515
2518
  private _dragEnterTarget;
2516
2519
  private _documentKey;
2517
2520
  private _dropZone;
@@ -2519,22 +2522,46 @@ declare abstract class BaseFileUploadComponent implements ScreenConfigAdapterCom
2519
2522
  private _docChangeSub;
2520
2523
  private _popupCloseSub;
2521
2524
  private _readonly;
2525
+ private _uploadFeedbackTimeout;
2526
+ private _pendingResizeResolver;
2522
2527
  constructor(_dictionaryService: SharedComponentsDictionaryService, _container: ViewContainerRef, _factory: ComponentFactoryResolver);
2523
2528
  ngOnDestroy(): void;
2529
+ onDrop(event: DragEvent): Promise<void>;
2530
+ onDragEnd(event: DragEvent): void;
2531
+ onDragOver(event: DragEvent): void;
2532
+ onDragEnter(event: DragEvent): void;
2533
+ onDragLeave(event: DragEvent): void;
2524
2534
  private _showDropzone;
2525
2535
  private _clearDropzone;
2526
2536
  handleDelete(file: CoDocument): Promise<boolean>;
2527
2537
  private _delete;
2528
2538
  handleSortingChange(docs: CoDocument[]): void;
2529
2539
  handleFileChange(event: any): Promise<void>;
2540
+ filesPicked(files: FileList): Promise<void>;
2541
+ private _processIncomingFiles;
2542
+ protected _prepareFilesForUpload(files: File[]): Promise<File[]>;
2530
2543
  handleEditDocumentClick(docToEdit: CoDocument): Promise<void>;
2531
2544
  openPopup(): Promise<void>;
2532
2545
  openPopupToAddDocumentByUrl(): void;
2533
2546
  private _createDocumentToAddByUrl;
2534
2547
  private _createAndFillPopupInstance;
2535
2548
  protected convertFilesIntoCoDocuments(files: FileList): Promise<CoDocument[]>;
2536
- filesPicked(files: FileList): Promise<void>;
2549
+ protected convertFileArrayIntoCoDocuments(files: File[]): Promise<CoDocument[]>;
2537
2550
  handleAcceptedFileTypesLoaded(value: FileType$1): void;
2551
+ protected showUploadFeedback(message: string): void;
2552
+ protected clearUploadFeedback(): void;
2553
+ protected getTooLargeMessage(file: File): string;
2554
+ protected getUnsupportedExtensionMessage(file: File, allowedExtensions?: string[]): string | null;
2555
+ protected getMaxUploadSizeInMb(): string;
2556
+ protected askResizeForImage(file: File): Promise<boolean>;
2557
+ handleResizeDialogSave(): void;
2558
+ handleResizeDialogClose(): void;
2559
+ private closeResizeDialog;
2560
+ protected resizeImageToUploadLimit(file: File): Promise<File>;
2561
+ protected resizeImage(file: File, maxWidth: number, maxHeight: number, quality: number): Promise<File>;
2562
+ protected readFileAsDataUrl(file: File): Promise<string>;
2563
+ protected loadImage(src: string): Promise<HTMLImageElement>;
2564
+ protected getResizedFileName(originalName: string, mimeType: string): string;
2538
2565
  private _getFileAsDocument;
2539
2566
  private _setInternalParamObj;
2540
2567
  private _lockDocument;
@@ -2547,6 +2574,7 @@ declare abstract class BaseFileUploadComponent implements ScreenConfigAdapterCom
2547
2574
  declare class FilesUploadComponent extends BaseFileUploadComponent implements OnDestroy {
2548
2575
  protected _container: ViewContainerRef;
2549
2576
  protected _factory: ComponentFactoryResolver;
2577
+ iconCacheService: IconCacheService;
2550
2578
  icon: typeof Icon;
2551
2579
  set dropzone(value: boolean);
2552
2580
  slideoutTemplate: TemplateRef<any>;
@@ -2567,7 +2595,7 @@ declare class FilesUploadComponent extends BaseFileUploadComponent implements On
2567
2595
  mouseOverAdd: boolean;
2568
2596
  slideoutShown: boolean;
2569
2597
  isDropzone: boolean;
2570
- constructor(dictionaryService: SharedComponentsDictionaryService, _container: ViewContainerRef, _factory: ComponentFactoryResolver);
2598
+ constructor(dictionaryService: SharedComponentsDictionaryService, _container: ViewContainerRef, _factory: ComponentFactoryResolver, iconCacheService: IconCacheService);
2571
2599
  ngOnDestroy(): void;
2572
2600
  openFileBrowser(): Promise<void>;
2573
2601
  handleAddClick(): void;
@@ -2885,7 +2913,7 @@ declare class AppFileDropzoneModule {
2885
2913
 
2886
2914
  declare class FilesUploadModule {
2887
2915
  static ɵfac: i0.ɵɵFactoryDeclaration<FilesUploadModule, never>;
2888
- static ɵmod: i0.ɵɵNgModuleDeclaration<FilesUploadModule, [typeof FilesUploadComponent], [typeof i3.CoDialogModule, typeof i3.FormModule, typeof i3.InputTextModule, typeof i3.ScreenConfigurationModule, typeof i3.ButtonModule, typeof SharedComponentsTranslationModule, typeof i3.IconModule, typeof ImageDisplayModule, typeof i2.CommonModule, typeof i3.InputCheckboxModule, typeof FileUploadModule, typeof FileUploadPopupModule, typeof AppFileDropzoneModule, typeof i3.DragDropModule], [typeof FilesUploadComponent]>;
2916
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FilesUploadModule, [typeof FilesUploadComponent], [typeof i3.CoDialogModule, typeof i3.FormModule, typeof i3.InputTextModule, typeof i3.ScreenConfigurationModule, typeof i3.ButtonModule, typeof SharedComponentsTranslationModule, typeof i3.IconModule, typeof ImageDisplayModule, typeof i2.CommonModule, typeof i3.InputCheckboxModule, typeof FileUploadModule, typeof FileUploadPopupModule, typeof AppFileDropzoneModule, typeof i3.DragDropModule, typeof SimpleTagsFormModule, typeof SimpleTagsRecentModule], [typeof FilesUploadComponent]>;
2889
2917
  static ɵinj: i0.ɵɵInjectorDeclaration<FilesUploadModule>;
2890
2918
  }
2891
2919
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/sharedcomponents",
3
- "version": "261.20.2",
3
+ "version": "262.1.1",
4
4
  "private": false,
5
5
  "dependencies": {
6
6
  "chart.js": "4.3.0",
@@ -10,12 +10,12 @@
10
10
  "peerDependencies": {
11
11
  "@angular/common": "^20.3.16",
12
12
  "@angular/core": "^20.3.16",
13
- "@colijnit/articleapi": ">=261.1.0",
14
- "@colijnit/mainapi": ">=261.1.0",
15
- "@colijnit/corecomponents_v12": ">=261.20.0",
16
- "@colijnit/ioneconnector": ">=261.1.0",
13
+ "@colijnit/articleapi": ">=262.1.0",
14
+ "@colijnit/mainapi": ">=262.1.1",
15
+ "@colijnit/corecomponents_v12": ">=262.1.0",
16
+ "@colijnit/ioneconnector": ">=262.1.0",
17
17
  "@colijnit/sharedapi": ">=1.0.20",
18
- "@colijnit/relationapi": ">=261.1.0",
18
+ "@colijnit/relationapi": ">=262.1.0",
19
19
  "html-to-image": "^1.11.11",
20
20
  "jspdf": "^4.0.0",
21
21
  "jspdf-autotable": "5.0.7",