cat-documents-ng 0.0.11 → 0.0.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.
- package/README.md +19 -15
- package/Shared/constant/SHARED.d.ts +150 -0
- package/{projects/cat-document-lib/src/Shared/constant/URLS.ts → Shared/constant/URLS.d.ts} +29 -31
- package/Shared/services/app-config.service.d.ts +51 -0
- package/{projects/cat-document-lib/src/Shared/services/global-error.handler.ts → Shared/services/global-error.handler.d.ts} +27 -29
- package/fesm2022/cat-documents-ng.mjs +1411 -0
- package/fesm2022/cat-documents-ng.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/document/components/document-container/document-container.component.d.ts +44 -0
- package/lib/document/components/document-list/document-list.component.d.ts +47 -0
- package/lib/document/components/document-list-item/document-list-item.component.d.ts +28 -0
- package/lib/document/components/document-upload/document-upload.component.d.ts +113 -0
- package/lib/document/components/document-viewer/document-viewer.component.d.ts +113 -0
- package/{projects/cat-document-lib/src/lib/document/components/folder-block/folder-block.component.ts → lib/document/components/folder-block/folder-block.component.d.ts} +37 -51
- package/lib/document/components/folder-container/folder-container.component.d.ts +28 -0
- package/lib/document/document.module.d.ts +35 -0
- package/lib/document/models/document.model.d.ts +33 -0
- package/{projects/cat-document-lib/src/lib/document/models/folder.model.ts → lib/document/models/folder.model.d.ts} +29 -35
- package/lib/document/services/file-format.service.d.ts +23 -0
- package/{projects/cat-document-lib/src/lib/document/state/document.service.ts → lib/document/state/document.service.d.ts} +64 -95
- package/{projects/cat-document-lib/src/lib/document/state/document.state.ts → lib/document/state/document.state.d.ts} +30 -39
- package/lib/document/state/document.store.d.ts +20 -0
- package/package.json +25 -66
- package/{projects/cat-document-lib/src/public-api.ts → public-api.d.ts} +3 -8
- package/src/assets/config/api.config.json +4 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -32
- package/.github/workflows/pr-validation.yml +0 -87
- package/.husky/pre-commit +0 -4
- package/angular.json +0 -119
- package/eslint.config.cjs +0 -148
- package/projects/cat-document-lib/README.md +0 -63
- package/projects/cat-document-lib/jest.config.mjs +0 -18
- package/projects/cat-document-lib/ng-package.json +0 -11
- package/projects/cat-document-lib/package-lock.json +0 -599
- package/projects/cat-document-lib/package.json +0 -19
- package/projects/cat-document-lib/setup-jest.ts +0 -10
- package/projects/cat-document-lib/src/Shared/constant/SHARED.ts +0 -232
- package/projects/cat-document-lib/src/Shared/services/app-config.service.spec.ts +0 -16
- package/projects/cat-document-lib/src/Shared/services/app-config.service.ts +0 -73
- package/projects/cat-document-lib/src/lib/document/components/document-container/document-container.component.html +0 -6
- package/projects/cat-document-lib/src/lib/document/components/document-container/document-container.component.scss +0 -0
- package/projects/cat-document-lib/src/lib/document/components/document-container/document-container.component.spec.ts +0 -0
- package/projects/cat-document-lib/src/lib/document/components/document-container/document-container.component.ts +0 -82
- package/projects/cat-document-lib/src/lib/document/components/document-list/document-list.component.html +0 -35
- package/projects/cat-document-lib/src/lib/document/components/document-list/document-list.component.scss +0 -12
- package/projects/cat-document-lib/src/lib/document/components/document-list/document-list.component.spec.ts +0 -0
- package/projects/cat-document-lib/src/lib/document/components/document-list/document-list.component.ts +0 -73
- package/projects/cat-document-lib/src/lib/document/components/document-list-item/document-list-item.component.html +0 -33
- package/projects/cat-document-lib/src/lib/document/components/document-list-item/document-list-item.component.scss +0 -22
- package/projects/cat-document-lib/src/lib/document/components/document-list-item/document-list-item.component.spec.ts +0 -23
- package/projects/cat-document-lib/src/lib/document/components/document-list-item/document-list-item.component.ts +0 -40
- package/projects/cat-document-lib/src/lib/document/components/document-upload/document-upload.component.html +0 -56
- package/projects/cat-document-lib/src/lib/document/components/document-upload/document-upload.component.scss +0 -26
- package/projects/cat-document-lib/src/lib/document/components/document-upload/document-upload.component.spec.ts +0 -24
- package/projects/cat-document-lib/src/lib/document/components/document-upload/document-upload.component.ts +0 -184
- package/projects/cat-document-lib/src/lib/document/components/document-viewer/document-viewer.component.html +0 -244
- package/projects/cat-document-lib/src/lib/document/components/document-viewer/document-viewer.component.scss +0 -36
- package/projects/cat-document-lib/src/lib/document/components/document-viewer/document-viewer.component.spec.ts +0 -21
- package/projects/cat-document-lib/src/lib/document/components/document-viewer/document-viewer.component.ts +0 -125
- package/projects/cat-document-lib/src/lib/document/components/folder-block/folder-block.component.html +0 -46
- package/projects/cat-document-lib/src/lib/document/components/folder-block/folder-block.component.scss +0 -0
- package/projects/cat-document-lib/src/lib/document/components/folder-block/folder-block.component.spec.ts +0 -0
- package/projects/cat-document-lib/src/lib/document/components/folder-container/folder-container.component.html +0 -2
- package/projects/cat-document-lib/src/lib/document/components/folder-container/folder-container.component.scss +0 -0
- package/projects/cat-document-lib/src/lib/document/components/folder-container/folder-container.component.spec.ts +0 -0
- package/projects/cat-document-lib/src/lib/document/components/folder-container/folder-container.component.ts +0 -29
- package/projects/cat-document-lib/src/lib/document/document.module.ts +0 -191
- package/projects/cat-document-lib/src/lib/document/models/document.model.ts +0 -39
- package/projects/cat-document-lib/src/lib/document/services/file-format.service.spec.ts +0 -16
- package/projects/cat-document-lib/src/lib/document/services/file-format.service.ts +0 -41
- package/projects/cat-document-lib/src/lib/document/state/document.query.ts +0 -23
- package/projects/cat-document-lib/src/lib/document/state/document.store.ts +0 -23
- package/projects/cat-document-lib/tsconfig.lib.json +0 -15
- package/projects/cat-document-lib/tsconfig.lib.prod.json +0 -11
- package/projects/cat-document-lib/tsconfig.spec.json +0 -15
- package/public/favicon.ico +0 -0
- package/src/app/app.component.html +0 -1
- package/src/app/app.component.scss +0 -0
- package/src/app/app.component.spec.ts +0 -29
- package/src/app/app.component.ts +0 -15
- package/src/app/app.module.ts +0 -60
- package/src/app/app.routing.module.ts +0 -19
- package/src/index.html +0 -13
- package/src/main.ts +0 -5
- package/src/styles.scss +0 -39
- package/tsconfig.app.json +0 -15
- package/tsconfig.json +0 -32
- /package/{projects/cat-document-lib/src → src}/assets/images/FolderImg.png +0 -0
- /package/{projects/cat-document-lib/src → src}/assets/images/Frame.png +0 -0
- /package/{projects/cat-document-lib/src → src}/assets/images/document.png +0 -0
package/src/app/app.module.ts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { APP_INITIALIZER, NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { AppRoutingModule } from './app.routing.module';
|
|
4
|
-
import { AppComponent } from './app.component';
|
|
5
|
-
import { BrowserModule } from '@angular/platform-browser';
|
|
6
|
-
import { DocumentModule } from '../../projects/cat-document-lib/src/public-api';
|
|
7
|
-
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
8
|
-
import { AppConfigService } from '../../projects/cat-document-lib/src/Shared/services/app-config.service';
|
|
9
|
-
import { GlobalErrorHandler } from '../../projects/cat-document-lib/src/Shared/services/global-error.handler';
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* The root module of the Angular application.
|
|
13
|
-
*
|
|
14
|
-
* The `AppModule` is the starting point of the application, declaring the main application component,
|
|
15
|
-
* importing necessary Angular modules, and bootstrapping the root component.
|
|
16
|
-
*/
|
|
17
|
-
@NgModule({
|
|
18
|
-
declarations: [
|
|
19
|
-
/**
|
|
20
|
-
* Declares the main application component.
|
|
21
|
-
*/
|
|
22
|
-
AppComponent
|
|
23
|
-
],
|
|
24
|
-
imports: [
|
|
25
|
-
/**
|
|
26
|
-
* Provides Angular's commonly needed directives and pipes.
|
|
27
|
-
*/
|
|
28
|
-
CommonModule,
|
|
29
|
-
/**
|
|
30
|
-
* Handles routing configuration for the application.
|
|
31
|
-
*/
|
|
32
|
-
AppRoutingModule,
|
|
33
|
-
/**
|
|
34
|
-
* Provides essential Angular services for browser-based applications.
|
|
35
|
-
*/
|
|
36
|
-
BrowserModule,
|
|
37
|
-
/**
|
|
38
|
-
* Imports the custom DocumentModule, which contains document-related features.
|
|
39
|
-
*/
|
|
40
|
-
DocumentModule,
|
|
41
|
-
/**
|
|
42
|
-
* Enables animations for Angular components in the application.
|
|
43
|
-
*/
|
|
44
|
-
BrowserAnimationsModule
|
|
45
|
-
],
|
|
46
|
-
bootstrap: [
|
|
47
|
-
/**
|
|
48
|
-
* Specifies the root component to bootstrap the application.
|
|
49
|
-
*/
|
|
50
|
-
AppComponent
|
|
51
|
-
],
|
|
52
|
-
providers: [
|
|
53
|
-
/**
|
|
54
|
-
* Registers the global error handler for the application.
|
|
55
|
-
*/
|
|
56
|
-
|
|
57
|
-
]
|
|
58
|
-
|
|
59
|
-
})
|
|
60
|
-
export class AppModule {}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { RouterModule, Routes } from '@angular/router';
|
|
3
|
-
import { AppComponent } from './app.component';
|
|
4
|
-
|
|
5
|
-
const routes: Routes = [
|
|
6
|
-
{
|
|
7
|
-
path : "",
|
|
8
|
-
component : AppComponent
|
|
9
|
-
}
|
|
10
|
-
];
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
@NgModule({
|
|
16
|
-
imports: [RouterModule.forChild(routes)],
|
|
17
|
-
exports: [RouterModule]
|
|
18
|
-
})
|
|
19
|
-
export class AppRoutingModule { }
|
package/src/index.html
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<title>CatDocumentsNg</title>
|
|
6
|
-
<base href="/">
|
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
8
|
-
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
|
9
|
-
</head>
|
|
10
|
-
<body>
|
|
11
|
-
<app-root></app-root>
|
|
12
|
-
</body>
|
|
13
|
-
</html>
|
package/src/main.ts
DELETED
package/src/styles.scss
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/* You can add global styles to this file, and also import other style files */
|
|
2
|
-
@import "../node_modules/primeng/resources/themes/saga-blue/theme.css";
|
|
3
|
-
@import "../node_modules/primeng/resources/primeng.min.css";
|
|
4
|
-
@import "../node_modules/primeflex/primeflex.min.css";
|
|
5
|
-
@import "../node_modules/primeicons/primeicons.css";
|
|
6
|
-
|
|
7
|
-
.card {
|
|
8
|
-
border-radius: 8px;
|
|
9
|
-
background-color: rgba(76, 98, 146, 0.03);
|
|
10
|
-
padding: 16px;
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
margin-bottom: 16px;
|
|
13
|
-
|
|
14
|
-
.card-header {
|
|
15
|
-
font-weight: 500;
|
|
16
|
-
display: flex;
|
|
17
|
-
align-items: center;
|
|
18
|
-
justify-content: space-between;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.card-subtitle {
|
|
22
|
-
color: #676b89;
|
|
23
|
-
font-size: 0.857rem;
|
|
24
|
-
font-weight: 500;
|
|
25
|
-
margin: -1rem 0 1rem 0;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.p-toast {
|
|
30
|
-
&.p-toast-top-right,
|
|
31
|
-
&.p-toast-top-left,
|
|
32
|
-
&.p-toast-top-center {
|
|
33
|
-
top: 70px;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.ng-hidden {
|
|
38
|
-
display: none !important;
|
|
39
|
-
}
|
package/tsconfig.app.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
|
2
|
-
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
|
3
|
-
{
|
|
4
|
-
"extends": "./tsconfig.json",
|
|
5
|
-
"compilerOptions": {
|
|
6
|
-
"outDir": "./out-tsc/app",
|
|
7
|
-
"types": []
|
|
8
|
-
},
|
|
9
|
-
"files": [
|
|
10
|
-
"src/main.ts"
|
|
11
|
-
],
|
|
12
|
-
"include": [
|
|
13
|
-
"src/**/*.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
|
2
|
-
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
|
3
|
-
{
|
|
4
|
-
"compileOnSave": false,
|
|
5
|
-
"compilerOptions": {
|
|
6
|
-
"paths": {
|
|
7
|
-
"cat-document-lib": [
|
|
8
|
-
"./dist/cat-document-lib"
|
|
9
|
-
]
|
|
10
|
-
},
|
|
11
|
-
"outDir": "./dist/out-tsc",
|
|
12
|
-
"strict": true,
|
|
13
|
-
"noImplicitOverride": true,
|
|
14
|
-
"noPropertyAccessFromIndexSignature": true,
|
|
15
|
-
"noImplicitReturns": true,
|
|
16
|
-
"noFallthroughCasesInSwitch": true,
|
|
17
|
-
"skipLibCheck": true,
|
|
18
|
-
"isolatedModules": true,
|
|
19
|
-
"esModuleInterop": true,
|
|
20
|
-
"experimentalDecorators": true,
|
|
21
|
-
"moduleResolution": "bundler",
|
|
22
|
-
"importHelpers": true,
|
|
23
|
-
"target": "ES2022",
|
|
24
|
-
"module": "ES2022"
|
|
25
|
-
},
|
|
26
|
-
"angularCompilerOptions": {
|
|
27
|
-
"enableI18nLegacyMessageIdFormat": false,
|
|
28
|
-
"strictInjectionParameters": true,
|
|
29
|
-
"strictInputAccessModifiers": true,
|
|
30
|
-
"strictTemplates": true
|
|
31
|
-
}
|
|
32
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|