cat-documents-ng 0.3.33 → 0.3.34
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/fesm2022/cat-documents-ng.mjs +51 -98
- package/fesm2022/cat-documents-ng.mjs.map +1 -1
- package/lib/document/components/document-history/document-history.component.d.ts +4 -0
- package/lib/document/components/document-list/document-list.component.d.ts +10 -0
- package/lib/document/document.module.d.ts +15 -16
- package/package.json +1 -1
- package/public-api.d.ts +0 -1
- package/lib/document/directives/external-link.directive.d.ts +0 -19
|
@@ -58,6 +58,10 @@ export declare class DocumentHistoryComponent {
|
|
|
58
58
|
* Process history data to add computed properties
|
|
59
59
|
*/
|
|
60
60
|
get processedHistoryData(): ProcessedDocumentHistorySection[];
|
|
61
|
+
/**
|
|
62
|
+
* Download document using the service
|
|
63
|
+
*/
|
|
64
|
+
downloadDocument(documentUrl: string, docName?: string): void;
|
|
61
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentHistoryComponent, never>;
|
|
62
66
|
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentHistoryComponent, "document-history", never, { "historyData": { "alias": "historyData"; "required": false; }; "showHistory": { "alias": "showHistory"; "required": false; }; }, {}, never, never, false, never>;
|
|
63
67
|
}
|
|
@@ -259,6 +259,16 @@ export declare class DocumentListComponent implements OnInit, OnDestroy, OnChang
|
|
|
259
259
|
* Resets the document list to the top when menu item is deselected
|
|
260
260
|
*/
|
|
261
261
|
private resetToTop;
|
|
262
|
+
/**
|
|
263
|
+
* Handles changes in document list due to filtering
|
|
264
|
+
* Checks if the selected menu item's section is still visible and deselects if not
|
|
265
|
+
*/
|
|
266
|
+
private handleDocumentListFilteringChange;
|
|
267
|
+
/**
|
|
268
|
+
* Checks if the currently selected menu item's section is visible in the filtered document list
|
|
269
|
+
* @returns True if the section is visible, false otherwise
|
|
270
|
+
*/
|
|
271
|
+
private isSelectedMenuItemSectionVisible;
|
|
262
272
|
onDocumentNameChange(event: Event): void;
|
|
263
273
|
handleSaveClick(): void;
|
|
264
274
|
/**
|
|
@@ -30,21 +30,20 @@ import * as i28 from "primeng/radiobutton";
|
|
|
30
30
|
import * as i29 from "primeng/timeline";
|
|
31
31
|
import * as i30 from "primeng/inputtextarea";
|
|
32
32
|
import * as i31 from "@angular/forms";
|
|
33
|
-
import * as i32 from "
|
|
34
|
-
import * as i33 from "
|
|
35
|
-
import * as i34 from "
|
|
36
|
-
import * as i35 from "primeng/
|
|
37
|
-
import * as i36 from "primeng/
|
|
38
|
-
import * as i37 from "primeng/
|
|
39
|
-
import * as i38 from "primeng/
|
|
40
|
-
import * as i39 from "primeng/
|
|
41
|
-
import * as i40 from "primeng/
|
|
42
|
-
import * as i41 from "
|
|
43
|
-
import * as i42 from "
|
|
44
|
-
import * as i43 from "primeng/
|
|
45
|
-
import * as i44 from "primeng/
|
|
46
|
-
import * as i45 from "primeng/
|
|
47
|
-
import * as i46 from "primeng/message";
|
|
33
|
+
import * as i32 from "ng2-pdf-viewer";
|
|
34
|
+
import * as i33 from "ngx-doc-viewer";
|
|
35
|
+
import * as i34 from "primeng/dialog";
|
|
36
|
+
import * as i35 from "primeng/dropdown";
|
|
37
|
+
import * as i36 from "primeng/inputtext";
|
|
38
|
+
import * as i37 from "primeng/menu";
|
|
39
|
+
import * as i38 from "primeng/panelmenu";
|
|
40
|
+
import * as i39 from "primeng/card";
|
|
41
|
+
import * as i40 from "primeng/table";
|
|
42
|
+
import * as i41 from "../../Shared/shared.module";
|
|
43
|
+
import * as i42 from "primeng/toast";
|
|
44
|
+
import * as i43 from "primeng/tooltip";
|
|
45
|
+
import * as i44 from "primeng/messages";
|
|
46
|
+
import * as i45 from "primeng/message";
|
|
48
47
|
/**
|
|
49
48
|
* @module DocumentModule
|
|
50
49
|
*
|
|
@@ -54,6 +53,6 @@ import * as i46 from "primeng/message";
|
|
|
54
53
|
*/
|
|
55
54
|
export declare class DocumentModule {
|
|
56
55
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentModule, never>;
|
|
57
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DocumentModule, [typeof i1.DocumentContainerComponent, typeof i2.FolderContainerComponent, typeof i3.FolderBlockComponent, typeof i4.DocumentListComponent, typeof i5.DocumentListItemComponent, typeof i6.DocumentUploadComponent, typeof i7.DocumentViewerComponent, typeof i8.DocumentHistoryComponent, typeof i9.DocumentContentViewerComponent, typeof i10.DocumentDirective, typeof i11.LinkedDocumentComponent, typeof i12.DocumentsMenuComponent, typeof i13.UserListComponent, typeof i14.DocumentStatusComponent, typeof i15.DocumentActionsComponent, typeof i16.DocumentSearchComponent, typeof i17.SidebarComponent], [typeof i18.CommonModule, typeof i19.AccordionModule, typeof i20.HttpClientModule, typeof i21.ButtonModule, typeof i22.SidebarModule, typeof i23.FileUploadModule, typeof i24.ProgressBarModule, typeof i25.BadgeModule, typeof i26.ListboxModule, typeof i27.CheckboxModule, typeof i28.RadioButtonModule, typeof i29.TimelineModule, typeof i30.InputTextareaModule, typeof i31.FormsModule, typeof i32.
|
|
56
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DocumentModule, [typeof i1.DocumentContainerComponent, typeof i2.FolderContainerComponent, typeof i3.FolderBlockComponent, typeof i4.DocumentListComponent, typeof i5.DocumentListItemComponent, typeof i6.DocumentUploadComponent, typeof i7.DocumentViewerComponent, typeof i8.DocumentHistoryComponent, typeof i9.DocumentContentViewerComponent, typeof i10.DocumentDirective, typeof i11.LinkedDocumentComponent, typeof i12.DocumentsMenuComponent, typeof i13.UserListComponent, typeof i14.DocumentStatusComponent, typeof i15.DocumentActionsComponent, typeof i16.DocumentSearchComponent, typeof i17.SidebarComponent], [typeof i18.CommonModule, typeof i19.AccordionModule, typeof i20.HttpClientModule, typeof i21.ButtonModule, typeof i22.SidebarModule, typeof i23.FileUploadModule, typeof i24.ProgressBarModule, typeof i25.BadgeModule, typeof i26.ListboxModule, typeof i27.CheckboxModule, typeof i28.RadioButtonModule, typeof i29.TimelineModule, typeof i30.InputTextareaModule, typeof i31.FormsModule, typeof i32.PdfViewerModule, typeof i33.NgxDocViewerModule, typeof i34.DialogModule, typeof i35.DropdownModule, typeof i36.InputTextModule, typeof i37.MenuModule, typeof i38.PanelMenuModule, typeof i39.CardModule, typeof i40.TableModule, typeof i41.SharedModule, typeof i30.InputTextareaModule, typeof i42.ToastModule, typeof i43.TooltipModule, typeof i44.MessagesModule, typeof i45.MessageModule], [typeof i1.DocumentContainerComponent, typeof i7.DocumentViewerComponent, typeof i9.DocumentContentViewerComponent, typeof i15.DocumentActionsComponent, typeof i4.DocumentListComponent, typeof i10.DocumentDirective, typeof i16.DocumentSearchComponent, typeof i17.SidebarComponent]>;
|
|
58
57
|
static ɵinj: i0.ɵɵInjectorDeclaration<DocumentModule>;
|
|
59
58
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ export * from './lib/document/models/uploaded-file-response.model';
|
|
|
12
12
|
export * from './lib/document/services/document-table-builder.service';
|
|
13
13
|
export * from './lib/document/services/document-content-type.service';
|
|
14
14
|
export * from './lib/document/directives/document.directive';
|
|
15
|
-
export * from './lib/document/directives/external-link.directive';
|
|
16
15
|
export * from './lib/document/directives/permission.directive';
|
|
17
16
|
export * from './Shared/components/confirmation-dialog/confirmation-dialog.component';
|
|
18
17
|
export * from './Shared/components/table-primary/table-primary.component';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Directive to handle external links and ensure they work regardless of Angular Router configuration.
|
|
5
|
-
* This bypasses any router interception and ensures the link opens as expected.
|
|
6
|
-
*/
|
|
7
|
-
export declare class ExternalLinkDirective {
|
|
8
|
-
private el;
|
|
9
|
-
private renderer;
|
|
10
|
-
externalLink: string;
|
|
11
|
-
target: string;
|
|
12
|
-
download?: string;
|
|
13
|
-
constructor(el: ElementRef, renderer: Renderer2);
|
|
14
|
-
onClick(event: Event): void;
|
|
15
|
-
private handleDownload;
|
|
16
|
-
private openInNewTab;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ExternalLinkDirective, never>;
|
|
18
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ExternalLinkDirective, "[externalLink]", never, { "externalLink": { "alias": "externalLink"; "required": false; }; "target": { "alias": "target"; "required": false; }; "download": { "alias": "download"; "required": false; }; }, {}, never, never, true, never>;
|
|
19
|
-
}
|