cat-documents-ng 0.0.4 → 0.0.5
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/jest.config.mjs +18 -0
- package/ng-package.json +11 -0
- package/package.json +5 -11
- package/setup-jest.ts +10 -0
- package/src/assets/config/app.config.json +4 -0
- package/src/lib/document/components/document-container/document-container.component.html +6 -0
- package/src/lib/document/components/document-container/document-container.component.scss +0 -0
- package/src/lib/document/components/document-container/document-container.component.spec.ts +0 -0
- package/src/lib/document/components/document-container/document-container.component.ts +82 -0
- package/src/lib/document/components/document-list/document-list.component.html +35 -0
- package/src/lib/document/components/document-list/document-list.component.scss +12 -0
- package/src/lib/document/components/document-list/document-list.component.spec.ts +0 -0
- package/src/lib/document/components/document-list/document-list.component.ts +73 -0
- package/src/lib/document/components/document-list-item/document-list-item.component.html +33 -0
- package/src/lib/document/components/document-list-item/document-list-item.component.scss +22 -0
- package/src/lib/document/components/document-list-item/document-list-item.component.spec.ts +23 -0
- package/src/lib/document/components/document-list-item/document-list-item.component.ts +40 -0
- package/src/lib/document/components/document-upload/document-upload.component.html +56 -0
- package/src/lib/document/components/document-upload/document-upload.component.scss +26 -0
- package/src/lib/document/components/document-upload/document-upload.component.spec.ts +24 -0
- package/src/lib/document/components/document-upload/document-upload.component.ts +184 -0
- package/src/lib/document/components/document-viewer/document-viewer.component.html +244 -0
- package/src/lib/document/components/document-viewer/document-viewer.component.scss +36 -0
- package/src/lib/document/components/document-viewer/document-viewer.component.spec.ts +21 -0
- package/src/lib/document/components/document-viewer/document-viewer.component.ts +125 -0
- package/src/lib/document/components/folder-block/folder-block.component.html +46 -0
- package/src/lib/document/components/folder-block/folder-block.component.scss +0 -0
- package/src/lib/document/components/folder-block/folder-block.component.spec.ts +0 -0
- package/{lib/document/components/folder-block/folder-block.component.d.ts → src/lib/document/components/folder-block/folder-block.component.ts} +26 -12
- package/src/lib/document/components/folder-container/folder-container.component.html +2 -0
- package/src/lib/document/components/folder-container/folder-container.component.scss +0 -0
- package/src/lib/document/components/folder-container/folder-container.component.spec.ts +0 -0
- package/src/lib/document/components/folder-container/folder-container.component.ts +29 -0
- package/src/lib/document/document.module.ts +191 -0
- package/src/lib/document/models/document.model.ts +39 -0
- package/{lib/document/models/folder.model.d.ts → src/lib/document/models/folder.model.ts} +10 -4
- package/src/lib/document/services/file-format.service.spec.ts +16 -0
- package/src/lib/document/services/file-format.service.ts +41 -0
- package/src/lib/document/state/document.query.ts +23 -0
- package/{lib/document/state/document.service.d.ts → src/lib/document/state/document.service.ts} +46 -15
- package/{lib/document/state/document.state.d.ts → src/lib/document/state/document.state.ts} +19 -10
- package/src/lib/document/state/document.store.ts +23 -0
- package/{public-api.d.ts → src/public-api.ts} +6 -1
- package/src/shared/constant/SHARED.ts +232 -0
- package/{Shared/constant/URLS.d.ts → src/shared/constant/URLS.ts} +6 -4
- package/src/shared/services/app-config.service.spec.ts +16 -0
- package/src/shared/services/app-config.service.ts +73 -0
- package/{Shared/services/global-error.handler.d.ts → src/shared/services/global-error.handler.ts} +11 -9
- package/tsconfig.lib.json +15 -0
- package/tsconfig.lib.prod.json +11 -0
- package/tsconfig.spec.json +15 -0
- package/Shared/constant/SHARED.d.ts +0 -150
- package/Shared/services/app-config.service.d.ts +0 -51
- package/fesm2022/cat-documents-ng.mjs +0 -1411
- package/fesm2022/cat-documents-ng.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/document/components/document-container/document-container.component.d.ts +0 -44
- package/lib/document/components/document-list/document-list.component.d.ts +0 -47
- package/lib/document/components/document-list-item/document-list-item.component.d.ts +0 -28
- package/lib/document/components/document-upload/document-upload.component.d.ts +0 -113
- package/lib/document/components/document-viewer/document-viewer.component.d.ts +0 -113
- package/lib/document/components/folder-container/folder-container.component.d.ts +0 -28
- package/lib/document/document.module.d.ts +0 -35
- package/lib/document/models/document.model.d.ts +0 -33
- package/lib/document/services/file-format.service.d.ts +0 -23
- package/lib/document/state/document.store.d.ts +0 -20
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./components/document-container/document-container.component";
|
|
3
|
-
import * as i2 from "./components/folder-container/folder-container.component";
|
|
4
|
-
import * as i3 from "./components/folder-block/folder-block.component";
|
|
5
|
-
import * as i4 from "./components/document-list/document-list.component";
|
|
6
|
-
import * as i5 from "./components/document-list-item/document-list-item.component";
|
|
7
|
-
import * as i6 from "./components/document-upload/document-upload.component";
|
|
8
|
-
import * as i7 from "./components/document-viewer/document-viewer.component";
|
|
9
|
-
import * as i8 from "@angular/common";
|
|
10
|
-
import * as i9 from "primeng/accordion";
|
|
11
|
-
import * as i10 from "@angular/common/http";
|
|
12
|
-
import * as i11 from "primeng/button";
|
|
13
|
-
import * as i12 from "primeng/sidebar";
|
|
14
|
-
import * as i13 from "primeng/fileupload";
|
|
15
|
-
import * as i14 from "primeng/progressbar";
|
|
16
|
-
import * as i15 from "primeng/badge";
|
|
17
|
-
import * as i16 from "primeng/listbox";
|
|
18
|
-
import * as i17 from "primeng/checkbox";
|
|
19
|
-
import * as i18 from "primeng/timeline";
|
|
20
|
-
import * as i19 from "primeng/inputtextarea";
|
|
21
|
-
import * as i20 from "@angular/forms";
|
|
22
|
-
import * as i21 from "ng2-pdf-viewer";
|
|
23
|
-
import * as i22 from "primeng/dialog";
|
|
24
|
-
/**
|
|
25
|
-
* @module DocumentModule
|
|
26
|
-
*
|
|
27
|
-
* The `DocumentModule` handles the organization and display of document and folder components
|
|
28
|
-
* in the application. This module is designed to support features like folder containers,
|
|
29
|
-
* document lists, and individual document items.
|
|
30
|
-
*/
|
|
31
|
-
export declare class DocumentModule {
|
|
32
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentModule, never>;
|
|
33
|
-
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.CommonModule, typeof i9.AccordionModule, typeof i10.HttpClientModule, typeof i11.ButtonModule, typeof i12.SidebarModule, typeof i13.FileUploadModule, typeof i14.ProgressBarModule, typeof i15.BadgeModule, typeof i16.ListboxModule, typeof i17.CheckboxModule, typeof i18.TimelineModule, typeof i19.InputTextareaModule, typeof i20.FormsModule, typeof i21.PdfViewerModule, typeof i22.DialogModule], [typeof i1.DocumentContainerComponent, typeof i7.DocumentViewerComponent]>;
|
|
34
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DocumentModule>;
|
|
35
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents a document model.
|
|
3
|
-
*
|
|
4
|
-
* This class contains the structure for document-related data, including file name,
|
|
5
|
-
* status, and document URL.
|
|
6
|
-
*/
|
|
7
|
-
export declare class DocumentModel {
|
|
8
|
-
/**
|
|
9
|
-
* The unique identifier for the document.
|
|
10
|
-
* @type {number}
|
|
11
|
-
*/
|
|
12
|
-
_id: number;
|
|
13
|
-
/**
|
|
14
|
-
* The name of the document file.
|
|
15
|
-
* @type {?string}
|
|
16
|
-
*/
|
|
17
|
-
fileName?: string;
|
|
18
|
-
/**
|
|
19
|
-
* The current status of the document.
|
|
20
|
-
* @type {?string}
|
|
21
|
-
*/
|
|
22
|
-
status?: string;
|
|
23
|
-
/**
|
|
24
|
-
* The URL where the document is hosted or stored.
|
|
25
|
-
* @type {?string}
|
|
26
|
-
*/
|
|
27
|
-
documentUrl?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Date of document get uploaded
|
|
30
|
-
* @type {?Date}
|
|
31
|
-
*/
|
|
32
|
-
createdAt?: Date;
|
|
33
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { PrimeNGConfig } from 'primeng/api';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Description placeholder
|
|
5
|
-
* @class FileFormatService
|
|
6
|
-
* @typedef {FileFormatService}
|
|
7
|
-
*/
|
|
8
|
-
export declare class FileFormatService {
|
|
9
|
-
/**
|
|
10
|
-
* Creates an instance of FileFormatService.
|
|
11
|
-
* @constructor
|
|
12
|
-
*/
|
|
13
|
-
constructor();
|
|
14
|
-
/**
|
|
15
|
-
* Description placeholder
|
|
16
|
-
* @param {number} bytes
|
|
17
|
-
* @param {PrimeNGConfig} config
|
|
18
|
-
* @returns {string}
|
|
19
|
-
*/
|
|
20
|
-
formatFileSize(bytes: number, config: PrimeNGConfig): string;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FileFormatService, never>;
|
|
22
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FileFormatService>;
|
|
23
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { EntityStore } from '@datorama/akita';
|
|
2
|
-
import { DocumentState } from './document.state';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Store that manages the state of documents in the application.
|
|
6
|
-
*
|
|
7
|
-
* The `DocumentStore` class extends Akita's `EntityStore` to manage the entity state for documents.
|
|
8
|
-
* It uses the `createInitialState` function to initialize the store with default values and
|
|
9
|
-
* is configured with the name `'documents'`.
|
|
10
|
-
*
|
|
11
|
-
* @extends EntityStore<DocumentState>
|
|
12
|
-
*/
|
|
13
|
-
export declare class DocumentStore extends EntityStore<DocumentState> {
|
|
14
|
-
/**
|
|
15
|
-
* Creates an instance of `DocumentStore` with the initial state of the documents.
|
|
16
|
-
*/
|
|
17
|
-
constructor();
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentStore, never>;
|
|
19
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DocumentStore>;
|
|
20
|
-
}
|