ca-components 0.0.79 → 0.0.81
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/esm2022/lib/components/ca-todo/ca-todo.component.mjs +52 -153
- package/esm2022/lib/components/ca-todo/components/ca-todo-card.component.mjs +139 -0
- package/esm2022/lib/components/ca-todo/config/column.config.mjs +18 -0
- package/esm2022/lib/components/ca-todo/config/index.mjs +2 -0
- package/esm2022/lib/components/ca-todo/enums/column.enum.mjs +7 -0
- package/esm2022/lib/components/ca-todo/enums/index.mjs +2 -0
- package/esm2022/lib/components/ca-todo/models/image-config.model.mjs +2 -0
- package/esm2022/lib/components/ca-todo/models/index.mjs +3 -1
- package/esm2022/lib/components/ca-todo/models/todo-card-config.model.mjs +2 -0
- package/esm2022/lib/components/ca-todo/models/todo-config.model.mjs +1 -1
- package/esm2022/lib/components/ca-todo/utils/svg-routes/todo.routes.mjs +1 -1
- package/esm2022/lib/components/ca-upload-files/ca-upload-files.component.mjs +6 -3
- package/fesm2022/ca-components.mjs +1972 -1928
- package/fesm2022/ca-components.mjs.map +1 -1
- package/lib/components/ca-todo/ca-todo.component.d.ts +19 -57
- package/lib/components/ca-todo/components/ca-todo-card.component.d.ts +56 -0
- package/lib/components/ca-todo/config/column.config.d.ts +6 -0
- package/lib/components/ca-todo/config/index.d.ts +1 -0
- package/lib/components/ca-todo/enums/column.enum.d.ts +5 -0
- package/lib/components/ca-todo/enums/index.d.ts +1 -0
- package/lib/components/ca-todo/models/image-config.model.d.ts +8 -0
- package/lib/components/ca-todo/models/index.d.ts +2 -0
- package/lib/components/ca-todo/models/todo-card-config.model.d.ts +9 -0
- package/lib/components/ca-todo/models/todo-config.model.d.ts +21 -13
- package/lib/components/ca-upload-files/ca-upload-files.component.d.ts +2 -1
- package/package.json +1 -1
- package/esm2022/lib/components/ca-todo/services/file-service.mjs +0 -20
- package/esm2022/lib/components/ca-todo/services/index.mjs +0 -2
- package/lib/components/ca-todo/services/file-service.d.ts +0 -10
- package/lib/components/ca-todo/services/index.d.ts +0 -1
|
@@ -1,62 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { DropResult } from 'ngx-smooth-dnd';
|
|
2
3
|
import { ToDoConfig } from './models';
|
|
3
|
-
import { IItemList } from '../../models/dropdown.model';
|
|
4
|
-
import { ProgressExpiration } from '../ca-progress-expiration/models';
|
|
5
|
-
import { CommentConfig } from '../ca-comment/models';
|
|
6
|
-
import { FileOptionConfig, ReviewFileConfig, Slider } from '../ca-upload-files/models';
|
|
7
|
-
import { FilesCarouselConfig } from '../ca-upload-files/components/ca-upload-files-carousel/models';
|
|
8
|
-
import { FileConfig, FileEvent } from '../ca-upload-files/components/ca-upload-dropzone/models';
|
|
9
|
-
import { TodoSvgRoute } from './utils';
|
|
10
|
-
import { CaUploadFilesCarouselComponent } from '../ca-upload-files/components/ca-upload-files-carousel/ca-upload-files-carousel.component';
|
|
11
|
-
import { DropzoneConf } from '../ca-upload-files/components/ca-upload-dropzone/config';
|
|
12
|
-
import { FileService } from './services';
|
|
13
4
|
import * as i0 from "@angular/core";
|
|
14
|
-
export declare class CaTodoComponent
|
|
15
|
-
private
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
slider: Slider;
|
|
26
|
-
carouselConfig: FilesCarouselConfig;
|
|
27
|
-
review: ReviewFileConfig;
|
|
28
|
-
configFile: FileOptionConfig;
|
|
29
|
-
files: FileConfig[];
|
|
30
|
-
configDropzone: DropzoneConf;
|
|
31
|
-
onFileEvent: EventEmitter<FileEvent>;
|
|
32
|
-
private unsubscribe$;
|
|
33
|
-
svgTodo: typeof TodoSvgRoute;
|
|
34
|
-
isDropdownShown: boolean;
|
|
35
|
-
link: string;
|
|
36
|
-
isLinkVisible: boolean;
|
|
37
|
-
commentCounter: number;
|
|
38
|
-
documentCounter: number;
|
|
39
|
-
isCommentVisible: boolean;
|
|
40
|
-
isCommentsVisible: boolean;
|
|
41
|
-
isDocumentVisible: boolean;
|
|
42
|
-
isDropdownVisible: boolean;
|
|
43
|
-
isNewComment: boolean;
|
|
44
|
-
_files: FileConfig[];
|
|
45
|
-
_config: FileOptionConfig;
|
|
46
|
-
constructor(fileService: FileService, renderer: Renderer2);
|
|
5
|
+
export declare class CaTodoComponent {
|
|
6
|
+
private cdr;
|
|
7
|
+
todoConfig: ToDoConfig[];
|
|
8
|
+
inProgressConfig: ToDoConfig[];
|
|
9
|
+
completedConfig: ToDoConfig[];
|
|
10
|
+
columns: {
|
|
11
|
+
id: string;
|
|
12
|
+
title: string;
|
|
13
|
+
config: ToDoConfig[];
|
|
14
|
+
}[];
|
|
15
|
+
constructor(cdr: ChangeDetectorRef);
|
|
47
16
|
ngOnInit(): void;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
toggleDropdown(): void;
|
|
54
|
-
toggleNewComment(): void;
|
|
55
|
-
getCommentCounter(): void;
|
|
56
|
-
getDocumentCounter(): void;
|
|
57
|
-
saveAllFiles(): void;
|
|
58
|
-
downloadFile(url: string, filename: string): void;
|
|
59
|
-
identity(index: number): number;
|
|
17
|
+
initializeColumn(): void;
|
|
18
|
+
onDrop(dropResult: DropResult, targetColumnId: string): void;
|
|
19
|
+
getCardPayload(columnId: string): (index: number) => ToDoConfig | undefined;
|
|
20
|
+
updateTodoStates(): void;
|
|
21
|
+
trackById(index: number, item: ToDoConfig): number;
|
|
60
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaTodoComponent, never>;
|
|
61
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CaTodoComponent, "app-ca-todo", never, { "
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaTodoComponent, "app-ca-todo", never, { "todoConfig": { "alias": "todoConfig"; "required": false; }; "inProgressConfig": { "alias": "inProgressConfig"; "required": false; }; "completedConfig": { "alias": "completedConfig"; "required": false; }; }, {}, never, never, true, never>;
|
|
62
24
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { ToDoCardConfig } from '../models';
|
|
3
|
+
import { IItemList } from '../../../models/dropdown.model';
|
|
4
|
+
import { ProgressExpiration } from '../../ca-progress-expiration/models';
|
|
5
|
+
import { CommentConfig } from '../../ca-comment/models';
|
|
6
|
+
import { FileOptionConfig, ReviewFileConfig, Slider } from '../../ca-upload-files/models';
|
|
7
|
+
import { FilesCarouselConfig } from '../../ca-upload-files/components/ca-upload-files-carousel/models';
|
|
8
|
+
import { FileConfig, FileEvent } from '../../ca-upload-files/components/ca-upload-dropzone/models';
|
|
9
|
+
import { TodoSvgRoute } from '../utils';
|
|
10
|
+
import { CaUploadFilesCarouselComponent } from '../../ca-upload-files/components/ca-upload-files-carousel/ca-upload-files-carousel.component';
|
|
11
|
+
import { DropzoneConf } from '../../ca-upload-files/components/ca-upload-dropzone/config';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
export declare class CaTodoCardComponent {
|
|
14
|
+
modalCarousel: CaUploadFilesCarouselComponent;
|
|
15
|
+
config: ToDoCardConfig;
|
|
16
|
+
commentConfig: CommentConfig[];
|
|
17
|
+
newCommentConfig: CommentConfig[];
|
|
18
|
+
itemList: IItemList[];
|
|
19
|
+
configProgress: ProgressExpiration[];
|
|
20
|
+
isVisibleCropAndDrop: boolean;
|
|
21
|
+
hasCrop: boolean;
|
|
22
|
+
slider: Slider;
|
|
23
|
+
carouselConfig: FilesCarouselConfig;
|
|
24
|
+
review: ReviewFileConfig;
|
|
25
|
+
configFile: FileOptionConfig;
|
|
26
|
+
files: FileConfig[];
|
|
27
|
+
configDropzone: DropzoneConf;
|
|
28
|
+
onFileEvent: EventEmitter<FileEvent>;
|
|
29
|
+
svgTodo: typeof TodoSvgRoute;
|
|
30
|
+
isDropdownShown: boolean;
|
|
31
|
+
link: string;
|
|
32
|
+
isLinkVisible: boolean;
|
|
33
|
+
commentCounter: number;
|
|
34
|
+
documentCounter: number;
|
|
35
|
+
isCommentVisible: boolean;
|
|
36
|
+
isCommentsVisible: boolean;
|
|
37
|
+
isDocumentVisible: boolean;
|
|
38
|
+
isDropdownVisible: boolean;
|
|
39
|
+
isNewComment: boolean;
|
|
40
|
+
_files: FileConfig[];
|
|
41
|
+
_config: FileOptionConfig;
|
|
42
|
+
ngOnInit(): void;
|
|
43
|
+
onDropdownItemClick(item: IItemList): void;
|
|
44
|
+
addLink(): void;
|
|
45
|
+
toggleComments(): void;
|
|
46
|
+
toggleDocument(): void;
|
|
47
|
+
toggleDropdown(): void;
|
|
48
|
+
toggleNewComment(): void;
|
|
49
|
+
getCommentCounter(): void;
|
|
50
|
+
getDocumentCounter(): void;
|
|
51
|
+
identity(index: number): number;
|
|
52
|
+
onFilesChanged(test: any): void;
|
|
53
|
+
saveAllFiles(): void;
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CaTodoCardComponent, never>;
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaTodoCardComponent, "app-ca-todo-card", never, { "config": { "alias": "config"; "required": false; }; "commentConfig": { "alias": "commentConfig"; "required": false; }; "newCommentConfig": { "alias": "newCommentConfig"; "required": false; }; "itemList": { "alias": "itemList"; "required": false; }; "configProgress": { "alias": "configProgress"; "required": false; }; "isVisibleCropAndDrop": { "alias": "isVisibleCropAndDrop"; "required": false; }; "hasCrop": { "alias": "hasCrop"; "required": false; }; "slider": { "alias": "slider"; "required": false; }; "carouselConfig": { "alias": "carouselConfig"; "required": false; }; "review": { "alias": "review"; "required": false; }; "configFile": { "alias": "configFile"; "required": false; }; "files": { "alias": "files"; "required": false; }; "configDropzone": { "alias": "configDropzone"; "required": false; }; }, { "onFileEvent": "onFileEvent"; }, never, never, true, never>;
|
|
56
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './column.config';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './column.enum';
|
|
@@ -1,15 +1,23 @@
|
|
|
1
|
+
import { Slider } from './../../ca-upload-files/models/slider.model';
|
|
2
|
+
import { IItemList } from '../../../models/dropdown.model';
|
|
3
|
+
import { CommentConfig } from '../../ca-comment/models';
|
|
4
|
+
import { ProgressExpiration } from '../../ca-progress-expiration/models';
|
|
5
|
+
import { ToDoCardConfig } from './todo-card-config.model';
|
|
6
|
+
import { FilesCarouselConfig } from '../../ca-upload-files/components/ca-upload-files-carousel/models';
|
|
7
|
+
import { FileOptionConfig, ReviewFileConfig } from '../../ca-upload-files/models';
|
|
8
|
+
import { FileConfig } from '../../ca-upload-files/components/ca-upload-dropzone/models';
|
|
1
9
|
export interface ToDoConfig {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
id: number;
|
|
11
|
+
config?: ToDoCardConfig;
|
|
12
|
+
commentConfig?: CommentConfig[];
|
|
13
|
+
newCommentConfig?: CommentConfig[];
|
|
14
|
+
itemList?: IItemList[];
|
|
15
|
+
configProgress?: ProgressExpiration[];
|
|
16
|
+
isVisibleCropAndDrop?: boolean;
|
|
17
|
+
hasCrop?: boolean;
|
|
18
|
+
slider?: Slider;
|
|
19
|
+
carouselConfig?: FilesCarouselConfig;
|
|
20
|
+
review?: ReviewFileConfig;
|
|
21
|
+
configFile?: FileOptionConfig;
|
|
22
|
+
files?: FileConfig[];
|
|
15
23
|
}
|
|
@@ -22,6 +22,7 @@ export declare class CaUploadFilesComponent implements AfterViewInit {
|
|
|
22
22
|
carouselConfig: FilesCarouselConfig;
|
|
23
23
|
hasCrop: boolean;
|
|
24
24
|
isRoundCrop: boolean;
|
|
25
|
+
hasBlobUrl: boolean;
|
|
25
26
|
onlyOneTagFile: boolean;
|
|
26
27
|
dropzoneConf: DropzoneConf[];
|
|
27
28
|
dropzoneCustomWidth: string;
|
|
@@ -68,5 +69,5 @@ export declare class CaUploadFilesComponent implements AfterViewInit {
|
|
|
68
69
|
identity(index: number): number;
|
|
69
70
|
ngOnDestroy(): void;
|
|
70
71
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaUploadFilesComponent, never>;
|
|
71
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CaUploadFilesComponent, "app-ca-upload-files", never, { "files": { "alias": "files"; "required": false; }; "slider": { "alias": "slider"; "required": false; }; "carouselConfig": { "alias": "carouselConfig"; "required": false; }; "hasCrop": { "alias": "hasCrop"; "required": false; }; "isRoundCrop": { "alias": "isRoundCrop"; "required": false; }; "onlyOneTagFile": { "alias": "onlyOneTagFile"; "required": false; }; "dropzoneConf": { "alias": "dropzoneConf"; "required": false; }; "dropzoneCustomWidth": { "alias": "dropzoneCustomWidth"; "required": false; }; "isVisibleCropAndDrop": { "alias": "isVisibleCropAndDrop"; "required": false; }; "initialCropperPosition": { "alias": "initialCropperPosition"; "required": false; }; "containWithinAspectRatio": { "alias": "containWithinAspectRatio"; "required": false; }; "aspectRatio": { "alias": "aspectRatio"; "required": false; }; "review": { "alias": "review"; "required": false; }; "configFile": { "alias": "configFile"; "required": false; }; "size": { "alias": "size"; "required": false; }; "slideWidth": { "alias": "slideWidth"; "required": false; }; }, { "documentReviewInputEvent": "documentReviewInputEvent"; "onFileEvent": "onFileEvent"; "closeDropzone": "closeDropzone"; "fileAdded": "fileAdded"; }, never, never, true, never>;
|
|
72
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaUploadFilesComponent, "app-ca-upload-files", never, { "files": { "alias": "files"; "required": false; }; "slider": { "alias": "slider"; "required": false; }; "carouselConfig": { "alias": "carouselConfig"; "required": false; }; "hasCrop": { "alias": "hasCrop"; "required": false; }; "isRoundCrop": { "alias": "isRoundCrop"; "required": false; }; "hasBlobUrl": { "alias": "hasBlobUrl"; "required": false; }; "onlyOneTagFile": { "alias": "onlyOneTagFile"; "required": false; }; "dropzoneConf": { "alias": "dropzoneConf"; "required": false; }; "dropzoneCustomWidth": { "alias": "dropzoneCustomWidth"; "required": false; }; "isVisibleCropAndDrop": { "alias": "isVisibleCropAndDrop"; "required": false; }; "initialCropperPosition": { "alias": "initialCropperPosition"; "required": false; }; "containWithinAspectRatio": { "alias": "containWithinAspectRatio"; "required": false; }; "aspectRatio": { "alias": "aspectRatio"; "required": false; }; "review": { "alias": "review"; "required": false; }; "configFile": { "alias": "configFile"; "required": false; }; "size": { "alias": "size"; "required": false; }; "slideWidth": { "alias": "slideWidth"; "required": false; }; }, { "documentReviewInputEvent": "documentReviewInputEvent"; "onFileEvent": "onFileEvent"; "closeDropzone": "closeDropzone"; "fileAdded": "fileAdded"; }, never, never, true, never>;
|
|
72
73
|
}
|
package/package.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/common/http";
|
|
4
|
-
export class FileService {
|
|
5
|
-
constructor(http) {
|
|
6
|
-
this.http = http;
|
|
7
|
-
}
|
|
8
|
-
downloadFile(url) {
|
|
9
|
-
return this.http.get(url, { responseType: 'blob' });
|
|
10
|
-
}
|
|
11
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
12
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileService, providedIn: 'root' }); }
|
|
13
|
-
}
|
|
14
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileService, decorators: [{
|
|
15
|
-
type: Injectable,
|
|
16
|
-
args: [{
|
|
17
|
-
providedIn: 'root',
|
|
18
|
-
}]
|
|
19
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
|
|
20
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS1zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2EtY29tcG9uZW50cy9zcmMvbGliL2NvbXBvbmVudHMvY2EtdG9kby9zZXJ2aWNlcy9maWxlLXNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7O0FBTTNDLE1BQU0sT0FBTyxXQUFXO0lBRXRCLFlBQW9CLElBQWdCO1FBQWhCLFNBQUksR0FBSixJQUFJLENBQVk7SUFBRyxDQUFDO0lBRWpDLFlBQVksQ0FBQyxHQUFXO1FBQzdCLE9BQU8sSUFBSSxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsR0FBRyxFQUFFLEVBQUUsWUFBWSxFQUFFLE1BQU0sRUFBRSxDQUFDLENBQUM7SUFDdEQsQ0FBQzsrR0FOVSxXQUFXO21IQUFYLFdBQVcsY0FGVixNQUFNOzs0RkFFUCxXQUFXO2tCQUh2QixVQUFVO21CQUFDO29CQUNWLFVBQVUsRUFBRSxNQUFNO2lCQUNuQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEh0dHBDbGllbnQgfSBmcm9tICdAYW5ndWxhci9jb21tb24vaHR0cCc7XG5pbXBvcnQgeyBJbmplY3RhYmxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBPYnNlcnZhYmxlIH0gZnJvbSAncnhqcyc7XG5cbkBJbmplY3RhYmxlKHtcbiAgcHJvdmlkZWRJbjogJ3Jvb3QnLFxufSlcbmV4cG9ydCBjbGFzcyBGaWxlU2VydmljZSB7XG5cbiAgY29uc3RydWN0b3IocHJpdmF0ZSBodHRwOiBIdHRwQ2xpZW50KSB7fVxuXG4gIHB1YmxpYyBkb3dubG9hZEZpbGUodXJsOiBzdHJpbmcpOiBPYnNlcnZhYmxlPEJsb2I+IHtcbiAgICByZXR1cm4gdGhpcy5odHRwLmdldCh1cmwsIHsgcmVzcG9uc2VUeXBlOiAnYmxvYicgfSk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export * from './file-service';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jYS1jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9jYS10b2RvL3NlcnZpY2VzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsZ0JBQWdCLENBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2ZpbGUtc2VydmljZSciXX0=
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FileService {
|
|
5
|
-
private http;
|
|
6
|
-
constructor(http: HttpClient);
|
|
7
|
-
downloadFile(url: string): Observable<Blob>;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FileService, never>;
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FileService>;
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './file-service';
|