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.
Files changed (90) hide show
  1. package/README.md +19 -15
  2. package/Shared/constant/SHARED.d.ts +150 -0
  3. package/{projects/cat-document-lib/src/Shared/constant/URLS.ts → Shared/constant/URLS.d.ts} +29 -31
  4. package/Shared/services/app-config.service.d.ts +51 -0
  5. package/{projects/cat-document-lib/src/Shared/services/global-error.handler.ts → Shared/services/global-error.handler.d.ts} +27 -29
  6. package/fesm2022/cat-documents-ng.mjs +1411 -0
  7. package/fesm2022/cat-documents-ng.mjs.map +1 -0
  8. package/index.d.ts +5 -0
  9. package/lib/document/components/document-container/document-container.component.d.ts +44 -0
  10. package/lib/document/components/document-list/document-list.component.d.ts +47 -0
  11. package/lib/document/components/document-list-item/document-list-item.component.d.ts +28 -0
  12. package/lib/document/components/document-upload/document-upload.component.d.ts +113 -0
  13. package/lib/document/components/document-viewer/document-viewer.component.d.ts +113 -0
  14. 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
  15. package/lib/document/components/folder-container/folder-container.component.d.ts +28 -0
  16. package/lib/document/document.module.d.ts +35 -0
  17. package/lib/document/models/document.model.d.ts +33 -0
  18. package/{projects/cat-document-lib/src/lib/document/models/folder.model.ts → lib/document/models/folder.model.d.ts} +29 -35
  19. package/lib/document/services/file-format.service.d.ts +23 -0
  20. package/{projects/cat-document-lib/src/lib/document/state/document.service.ts → lib/document/state/document.service.d.ts} +64 -95
  21. package/{projects/cat-document-lib/src/lib/document/state/document.state.ts → lib/document/state/document.state.d.ts} +30 -39
  22. package/lib/document/state/document.store.d.ts +20 -0
  23. package/package.json +25 -66
  24. package/{projects/cat-document-lib/src/public-api.ts → public-api.d.ts} +3 -8
  25. package/src/assets/config/api.config.json +4 -0
  26. package/.github/PULL_REQUEST_TEMPLATE.md +0 -32
  27. package/.github/workflows/pr-validation.yml +0 -87
  28. package/.husky/pre-commit +0 -4
  29. package/angular.json +0 -119
  30. package/eslint.config.cjs +0 -148
  31. package/projects/cat-document-lib/README.md +0 -63
  32. package/projects/cat-document-lib/jest.config.mjs +0 -18
  33. package/projects/cat-document-lib/ng-package.json +0 -11
  34. package/projects/cat-document-lib/package-lock.json +0 -599
  35. package/projects/cat-document-lib/package.json +0 -19
  36. package/projects/cat-document-lib/setup-jest.ts +0 -10
  37. package/projects/cat-document-lib/src/Shared/constant/SHARED.ts +0 -232
  38. package/projects/cat-document-lib/src/Shared/services/app-config.service.spec.ts +0 -16
  39. package/projects/cat-document-lib/src/Shared/services/app-config.service.ts +0 -73
  40. package/projects/cat-document-lib/src/lib/document/components/document-container/document-container.component.html +0 -6
  41. package/projects/cat-document-lib/src/lib/document/components/document-container/document-container.component.scss +0 -0
  42. package/projects/cat-document-lib/src/lib/document/components/document-container/document-container.component.spec.ts +0 -0
  43. package/projects/cat-document-lib/src/lib/document/components/document-container/document-container.component.ts +0 -82
  44. package/projects/cat-document-lib/src/lib/document/components/document-list/document-list.component.html +0 -35
  45. package/projects/cat-document-lib/src/lib/document/components/document-list/document-list.component.scss +0 -12
  46. package/projects/cat-document-lib/src/lib/document/components/document-list/document-list.component.spec.ts +0 -0
  47. package/projects/cat-document-lib/src/lib/document/components/document-list/document-list.component.ts +0 -73
  48. package/projects/cat-document-lib/src/lib/document/components/document-list-item/document-list-item.component.html +0 -33
  49. package/projects/cat-document-lib/src/lib/document/components/document-list-item/document-list-item.component.scss +0 -22
  50. package/projects/cat-document-lib/src/lib/document/components/document-list-item/document-list-item.component.spec.ts +0 -23
  51. package/projects/cat-document-lib/src/lib/document/components/document-list-item/document-list-item.component.ts +0 -40
  52. package/projects/cat-document-lib/src/lib/document/components/document-upload/document-upload.component.html +0 -56
  53. package/projects/cat-document-lib/src/lib/document/components/document-upload/document-upload.component.scss +0 -26
  54. package/projects/cat-document-lib/src/lib/document/components/document-upload/document-upload.component.spec.ts +0 -24
  55. package/projects/cat-document-lib/src/lib/document/components/document-upload/document-upload.component.ts +0 -184
  56. package/projects/cat-document-lib/src/lib/document/components/document-viewer/document-viewer.component.html +0 -244
  57. package/projects/cat-document-lib/src/lib/document/components/document-viewer/document-viewer.component.scss +0 -36
  58. package/projects/cat-document-lib/src/lib/document/components/document-viewer/document-viewer.component.spec.ts +0 -21
  59. package/projects/cat-document-lib/src/lib/document/components/document-viewer/document-viewer.component.ts +0 -125
  60. package/projects/cat-document-lib/src/lib/document/components/folder-block/folder-block.component.html +0 -46
  61. package/projects/cat-document-lib/src/lib/document/components/folder-block/folder-block.component.scss +0 -0
  62. package/projects/cat-document-lib/src/lib/document/components/folder-block/folder-block.component.spec.ts +0 -0
  63. package/projects/cat-document-lib/src/lib/document/components/folder-container/folder-container.component.html +0 -2
  64. package/projects/cat-document-lib/src/lib/document/components/folder-container/folder-container.component.scss +0 -0
  65. package/projects/cat-document-lib/src/lib/document/components/folder-container/folder-container.component.spec.ts +0 -0
  66. package/projects/cat-document-lib/src/lib/document/components/folder-container/folder-container.component.ts +0 -29
  67. package/projects/cat-document-lib/src/lib/document/document.module.ts +0 -191
  68. package/projects/cat-document-lib/src/lib/document/models/document.model.ts +0 -39
  69. package/projects/cat-document-lib/src/lib/document/services/file-format.service.spec.ts +0 -16
  70. package/projects/cat-document-lib/src/lib/document/services/file-format.service.ts +0 -41
  71. package/projects/cat-document-lib/src/lib/document/state/document.query.ts +0 -23
  72. package/projects/cat-document-lib/src/lib/document/state/document.store.ts +0 -23
  73. package/projects/cat-document-lib/tsconfig.lib.json +0 -15
  74. package/projects/cat-document-lib/tsconfig.lib.prod.json +0 -11
  75. package/projects/cat-document-lib/tsconfig.spec.json +0 -15
  76. package/public/favicon.ico +0 -0
  77. package/src/app/app.component.html +0 -1
  78. package/src/app/app.component.scss +0 -0
  79. package/src/app/app.component.spec.ts +0 -29
  80. package/src/app/app.component.ts +0 -15
  81. package/src/app/app.module.ts +0 -60
  82. package/src/app/app.routing.module.ts +0 -19
  83. package/src/index.html +0 -13
  84. package/src/main.ts +0 -5
  85. package/src/styles.scss +0 -39
  86. package/tsconfig.app.json +0 -15
  87. package/tsconfig.json +0 -32
  88. /package/{projects/cat-document-lib/src → src}/assets/images/FolderImg.png +0 -0
  89. /package/{projects/cat-document-lib/src → src}/assets/images/Frame.png +0 -0
  90. /package/{projects/cat-document-lib/src → src}/assets/images/document.png +0 -0
@@ -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
@@ -1,5 +0,0 @@
1
- import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
2
- import { AppModule } from './app/app.module';
3
-
4
- platformBrowserDynamic().bootstrapModule(AppModule)
5
- .catch(err => console.error(err));
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
- }