ca-components 1.0.97 → 1.0.99
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-input/input-test/input-test.component.mjs +4 -3
- package/esm2022/lib/components/ca-input-address-dropdown/ca-input-address-dropdown.component.mjs +2 -2
- package/esm2022/lib/components/ca-input-dropdown/ca-input-dropdown.component.mjs +59 -45
- package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-default-template/ca-input-dropdown-default-template.component.mjs +23 -8
- package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-details-template/ca-input-dropdown-details-template.component.mjs +22 -7
- package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-dispatch/ca-input-dropdown-dispatch.component.mjs +23 -8
- package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-double-text-template/ca-input-dropdown-double-text-template.component.mjs +22 -7
- package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-fuel-franchise/ca-input-dropdown-fuel-franchise.component.mjs +22 -7
- package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-groups/ca-input-dropdown-groups.component.mjs +22 -7
- package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-labels/ca-input-dropdown-labels.component.mjs +22 -7
- package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-broker/ca-input-dropdown-load-broker.component.mjs +23 -8
- package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-broker-contact/ca-input-dropdown-load-broker-contact.component.mjs +22 -7
- package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-broker-shipper/ca-input-dropdown-load-broker-shipper.component.mjs +22 -7
- package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-dispatcher/ca-input-dropdown-load-dispatcher.component.mjs +22 -7
- package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-dispatches-ttd/ca-input-dropdown-load-dispatches-ttd.component.mjs +22 -7
- package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-multiselect/ca-input-dropdown-multiselect.component.mjs +22 -7
- package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-payroll-trucks/ca-input-dropdown-payroll-trucks.component.mjs +22 -7
- package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-svg-template/ca-input-dropdown-svg-template.component.mjs +22 -7
- package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-svgtext-dispatch-template/ca-input-dropdown-svgtext-dispatch-template.component.mjs +22 -7
- package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-svgtext-template/ca-input-dropdown-svgtext-template.component.mjs +22 -7
- package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-text-counter/ca-input-dropdown-text-counter.component.mjs +23 -8
- package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-triple-text-template/ca-input-dropdown-triple-text-template.component.mjs +22 -7
- package/esm2022/lib/components/ca-todo/ca-todo.component.mjs +27 -29
- package/esm2022/lib/components/ca-todo/components/ca-todo-card.component.mjs +8 -23
- package/esm2022/lib/components/ca-todo/config/column.config.mjs +5 -5
- package/esm2022/lib/components/ca-todo/models/index.mjs +2 -1
- package/esm2022/lib/components/ca-todo/models/to-do-column.model.mjs +2 -0
- package/esm2022/lib/components/ca-todo/models/todo-config.model.mjs +1 -1
- package/esm2022/lib/components/ca-upload-files/ca-upload-files.component.mjs +76 -117
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/ca-upload-dropzone.component.mjs +3 -3
- package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/models/index.mjs +1 -1
- package/esm2022/lib/components/ca-upload-files/enums/index.mjs +1 -1
- package/esm2022/lib/components/ca-upload-files/models/file-option-config.model.mjs +1 -1
- package/esm2022/lib/components/ca-upload-files/models/index.mjs +2 -1
- package/esm2022/lib/components/ca-upload-files/models/upload-files-config.model.mjs +2 -0
- package/esm2022/lib/pipes/highlight-search.pipe.mjs +1 -7
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/ca-components.mjs +555 -321
- package/fesm2022/ca-components.mjs.map +1 -1
- package/lib/components/ca-filters/ca-filter.component.d.ts +2 -2
- package/lib/components/ca-input-dropdown/ca-input-dropdown.component.d.ts +4 -3
- package/lib/components/ca-input-dropdown/components/ca-input-dropdown-default-template/ca-input-dropdown-default-template.component.d.ts +6 -3
- package/lib/components/ca-input-dropdown/components/ca-input-dropdown-details-template/ca-input-dropdown-details-template.component.d.ts +6 -3
- package/lib/components/ca-input-dropdown/components/ca-input-dropdown-dispatch/ca-input-dropdown-dispatch.component.d.ts +6 -3
- package/lib/components/ca-input-dropdown/components/ca-input-dropdown-double-text-template/ca-input-dropdown-double-text-template.component.d.ts +6 -3
- package/lib/components/ca-input-dropdown/components/ca-input-dropdown-fuel-franchise/ca-input-dropdown-fuel-franchise.component.d.ts +6 -3
- package/lib/components/ca-input-dropdown/components/ca-input-dropdown-groups/ca-input-dropdown-groups.component.d.ts +6 -3
- package/lib/components/ca-input-dropdown/components/ca-input-dropdown-labels/ca-input-dropdown-labels.component.d.ts +6 -3
- package/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-broker/ca-input-dropdown-load-broker.component.d.ts +6 -3
- package/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-broker-contact/ca-input-dropdown-load-broker-contact.component.d.ts +6 -3
- package/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-broker-shipper/ca-input-dropdown-load-broker-shipper.component.d.ts +6 -3
- package/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-dispatcher/ca-input-dropdown-load-dispatcher.component.d.ts +6 -3
- package/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-dispatches-ttd/ca-input-dropdown-load-dispatches-ttd.component.d.ts +6 -3
- package/lib/components/ca-input-dropdown/components/ca-input-dropdown-multiselect/ca-input-dropdown-multiselect.component.d.ts +6 -3
- package/lib/components/ca-input-dropdown/components/ca-input-dropdown-payroll-trucks/ca-input-dropdown-payroll-trucks.component.d.ts +6 -3
- package/lib/components/ca-input-dropdown/components/ca-input-dropdown-svg-template/ca-input-dropdown-svg-template.component.d.ts +6 -3
- package/lib/components/ca-input-dropdown/components/ca-input-dropdown-svgtext-dispatch-template/ca-input-dropdown-svgtext-dispatch-template.component.d.ts +6 -3
- package/lib/components/ca-input-dropdown/components/ca-input-dropdown-svgtext-template/ca-input-dropdown-svgtext-template.component.d.ts +6 -3
- package/lib/components/ca-input-dropdown/components/ca-input-dropdown-text-counter/ca-input-dropdown-text-counter.component.d.ts +6 -3
- package/lib/components/ca-input-dropdown/components/ca-input-dropdown-triple-text-template/ca-input-dropdown-triple-text-template.component.d.ts +6 -3
- package/lib/components/ca-todo/ca-todo.component.d.ts +8 -12
- package/lib/components/ca-todo/components/ca-todo-card.component.d.ts +3 -12
- package/lib/components/ca-todo/config/column.config.d.ts +2 -6
- package/lib/components/ca-todo/models/index.d.ts +1 -0
- package/lib/components/ca-todo/models/to-do-column.model.d.ts +6 -0
- package/lib/components/ca-todo/models/todo-config.model.d.ts +2 -11
- package/lib/components/ca-upload-files/ca-upload-files.component.d.ts +9 -29
- package/lib/components/ca-upload-files/models/file-option-config.model.d.ts +1 -1
- package/lib/components/ca-upload-files/models/index.d.ts +1 -0
- package/lib/components/ca-upload-files/models/upload-files-config.model.d.ts +27 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -1,21 +1,12 @@
|
|
|
1
|
-
import { Slider } from './../../ca-upload-files/models/slider.model';
|
|
2
1
|
import { CommentConfig } from '../../ca-comment/models';
|
|
3
2
|
import { ProgressExpiration } from '../../ca-progress-expiration/models';
|
|
4
3
|
import { ToDoCardConfig } from './todo-card-config.model';
|
|
5
|
-
import {
|
|
6
|
-
import { FileOptionConfig, ReviewFileConfig } from '../../ca-upload-files/models';
|
|
7
|
-
import { FileConfig } from '../../ca-upload-files/components/ca-upload-dropzone/models';
|
|
4
|
+
import { IUploadFilesConfig } from '../../ca-upload-files/models';
|
|
8
5
|
export interface ToDoConfig {
|
|
9
6
|
id: number;
|
|
10
7
|
config: ToDoCardConfig;
|
|
11
8
|
commentConfig: CommentConfig[];
|
|
12
9
|
newCommentConfig: CommentConfig[];
|
|
13
10
|
configProgress?: ProgressExpiration[];
|
|
14
|
-
|
|
15
|
-
hasCrop: boolean;
|
|
16
|
-
slider: Slider;
|
|
17
|
-
carouselConfig: FilesCarouselConfig;
|
|
18
|
-
review: ReviewFileConfig;
|
|
19
|
-
configFile: FileOptionConfig;
|
|
20
|
-
files: FileConfig[];
|
|
11
|
+
uploadFilesConfig: IUploadFilesConfig;
|
|
21
12
|
}
|
|
@@ -1,51 +1,32 @@
|
|
|
1
1
|
import { AfterViewInit, EventEmitter, QueryList } from '@angular/core';
|
|
2
2
|
import { HttpClient } from '@angular/common/http';
|
|
3
|
-
import { CropperPosition } from 'ngx-image-cropper';
|
|
4
3
|
import { CaUploadFileComponent } from './components/ca-upload-file/ca-upload-file.component';
|
|
5
4
|
import { CaUploadFilesCarouselComponent } from './components/ca-upload-files-carousel/ca-upload-files-carousel.component';
|
|
6
|
-
import { DocumentReviewInputEvent,
|
|
5
|
+
import { DocumentReviewInputEvent, IUploadFilesConfig, ReviewFileConfig } from './models';
|
|
7
6
|
import { FileConfig, FileEvent } from './components/ca-upload-dropzone/models';
|
|
8
7
|
import { FilesCarouselConfig } from './components/ca-upload-files-carousel/models';
|
|
9
8
|
import { CaUploadFileService } from './services';
|
|
10
|
-
import { DropzoneConf } from './components/ca-upload-dropzone/config';
|
|
11
9
|
import * as i0 from "@angular/core";
|
|
12
10
|
export declare class CaUploadFilesComponent implements AfterViewInit {
|
|
13
11
|
private uploadFileService;
|
|
14
12
|
private http;
|
|
15
13
|
modalCarousel: CaUploadFilesCarouselComponent;
|
|
16
14
|
uploadedFiles: QueryList<CaUploadFileComponent>;
|
|
15
|
+
set uploadFilesConfig(value: IUploadFilesConfig);
|
|
17
16
|
documentReviewInputEvent: EventEmitter<DocumentReviewInputEvent>;
|
|
18
17
|
onFileEvent: EventEmitter<FileEvent>;
|
|
19
18
|
closeDropzone: EventEmitter<{}>;
|
|
20
|
-
slider: Slider;
|
|
21
|
-
carouselConfig: FilesCarouselConfig;
|
|
22
|
-
hasCrop: boolean;
|
|
23
|
-
isRoundCrop: boolean;
|
|
24
|
-
hasBlobUrl: boolean;
|
|
25
|
-
onlyOneTagFile: boolean;
|
|
26
|
-
dropzoneConf: DropzoneConf[];
|
|
27
|
-
dropzoneCustomWidth: string;
|
|
28
|
-
isVisibleCropAndDrop: boolean;
|
|
29
|
-
initialCropperPosition: CropperPosition;
|
|
30
|
-
containWithinAspectRatio: boolean;
|
|
31
|
-
aspectRatio: number[];
|
|
32
|
-
review: ReviewFileConfig;
|
|
33
|
-
configFile: FileOptionConfig;
|
|
34
|
-
size: string;
|
|
35
|
-
slideWidth: number;
|
|
36
19
|
fileAdded: EventEmitter<File>;
|
|
37
|
-
_config: FileOptionConfig;
|
|
38
20
|
currentSlide: number;
|
|
39
21
|
isDropzoneShown: boolean;
|
|
22
|
+
private _config;
|
|
40
23
|
private destroy$;
|
|
41
|
-
|
|
42
|
-
set files(data: FileConfig[]);
|
|
43
|
-
get files(): FileConfig[];
|
|
44
|
-
constructor(uploadFileService: CaUploadFileService, http: HttpClient);
|
|
45
|
-
ngAfterViewInit(): void;
|
|
46
|
-
private subscribeToUploadedFiles;
|
|
24
|
+
get config(): IUploadFilesConfig;
|
|
47
25
|
get carouselFileConfig(): FilesCarouselConfig;
|
|
48
26
|
get reviewFileConfig(): ReviewFileConfig;
|
|
27
|
+
constructor(uploadFileService: CaUploadFileService, http: HttpClient);
|
|
28
|
+
ngAfterViewInit(): void;
|
|
29
|
+
ngOnDestroy(): void;
|
|
49
30
|
/**
|
|
50
31
|
*
|
|
51
32
|
* @param data - returned data from file action (one or multiple)
|
|
@@ -67,8 +48,7 @@ export declare class CaUploadFilesComponent implements AfterViewInit {
|
|
|
67
48
|
dropZoneClose(): void;
|
|
68
49
|
fileHover(file: FileConfig): void;
|
|
69
50
|
hoverArrow(mod: boolean): void;
|
|
70
|
-
|
|
71
|
-
ngOnDestroy(): void;
|
|
51
|
+
private subscribeToUploadedFiles;
|
|
72
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaUploadFilesComponent, never>;
|
|
73
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CaUploadFilesComponent, "app-ca-upload-files", never, { "
|
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaUploadFilesComponent, "app-ca-upload-files", never, { "uploadFilesConfig": { "alias": "uploadFilesConfig"; "required": false; }; }, { "documentReviewInputEvent": "documentReviewInputEvent"; "onFileEvent": "onFileEvent"; "closeDropzone": "closeDropzone"; "fileAdded": "fileAdded"; }, never, never, true, never>;
|
|
74
54
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CropperPosition } from 'ngx-image-cropper';
|
|
2
|
+
import { DropzoneConf } from '../components/ca-upload-dropzone/config';
|
|
3
|
+
import { FilesSizeEnum } from '../enums';
|
|
4
|
+
import { FilesCarouselConfig } from '../components/ca-upload-files-carousel/models';
|
|
5
|
+
import { Slider } from './slider.model';
|
|
6
|
+
import { FileOptionConfig } from './file-option-config.model';
|
|
7
|
+
import { ReviewFileConfig } from './review-file-config.model';
|
|
8
|
+
import { FileConfig } from '../components/ca-upload-dropzone/models';
|
|
9
|
+
export interface IUploadFilesConfig {
|
|
10
|
+
files: FileConfig[];
|
|
11
|
+
slider: Slider;
|
|
12
|
+
carouselConfig: FilesCarouselConfig;
|
|
13
|
+
hasCrop: boolean;
|
|
14
|
+
isRoundCrop: boolean;
|
|
15
|
+
hasBlobUrl: boolean;
|
|
16
|
+
onlyOneTagFile?: boolean;
|
|
17
|
+
dropzoneConf: DropzoneConf[];
|
|
18
|
+
dropzoneCustomWidth: string;
|
|
19
|
+
isVisibleCropAndDrop: boolean;
|
|
20
|
+
initialCropperPosition: CropperPosition;
|
|
21
|
+
containWithinAspectRatio: boolean;
|
|
22
|
+
aspectRatio: number[];
|
|
23
|
+
review: ReviewFileConfig;
|
|
24
|
+
fileOptionsConfig: FileOptionConfig;
|
|
25
|
+
size: FilesSizeEnum;
|
|
26
|
+
slideWidth: number;
|
|
27
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -26,6 +26,8 @@ export * from './lib/components/ca-map/models/map.model';
|
|
|
26
26
|
export * from './lib/components/ca-main-table/ca-main-table.component';
|
|
27
27
|
export * from './lib/components/ca-main-table/models/main-table.model';
|
|
28
28
|
export * from './lib/components/ca-upload-files/ca-upload-files.component';
|
|
29
|
+
export * from './lib/components/ca-upload-files/enums';
|
|
30
|
+
export * from './lib/components/ca-upload-files/models';
|
|
29
31
|
export * from './lib/components/ca-activity-log-list/ca-activity-log-list.component';
|
|
30
32
|
export * from './lib/components/ca-right-side-panel/components/ca-right-side-panel-menu/ca-right-side-panel-menu.component';
|
|
31
33
|
export * from './lib/components/ca-right-side-panel/components/ca-right-side-panel-top-bar/ca-right-side-panel-top-bar.component';
|