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.
Files changed (72) hide show
  1. package/esm2022/lib/components/ca-input/input-test/input-test.component.mjs +4 -3
  2. package/esm2022/lib/components/ca-input-address-dropdown/ca-input-address-dropdown.component.mjs +2 -2
  3. package/esm2022/lib/components/ca-input-dropdown/ca-input-dropdown.component.mjs +59 -45
  4. package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-default-template/ca-input-dropdown-default-template.component.mjs +23 -8
  5. package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-details-template/ca-input-dropdown-details-template.component.mjs +22 -7
  6. package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-dispatch/ca-input-dropdown-dispatch.component.mjs +23 -8
  7. package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-double-text-template/ca-input-dropdown-double-text-template.component.mjs +22 -7
  8. package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-fuel-franchise/ca-input-dropdown-fuel-franchise.component.mjs +22 -7
  9. package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-groups/ca-input-dropdown-groups.component.mjs +22 -7
  10. package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-labels/ca-input-dropdown-labels.component.mjs +22 -7
  11. package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-broker/ca-input-dropdown-load-broker.component.mjs +23 -8
  12. package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-broker-contact/ca-input-dropdown-load-broker-contact.component.mjs +22 -7
  13. package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-broker-shipper/ca-input-dropdown-load-broker-shipper.component.mjs +22 -7
  14. package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-dispatcher/ca-input-dropdown-load-dispatcher.component.mjs +22 -7
  15. package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-dispatches-ttd/ca-input-dropdown-load-dispatches-ttd.component.mjs +22 -7
  16. package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-multiselect/ca-input-dropdown-multiselect.component.mjs +22 -7
  17. package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-payroll-trucks/ca-input-dropdown-payroll-trucks.component.mjs +22 -7
  18. package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-svg-template/ca-input-dropdown-svg-template.component.mjs +22 -7
  19. package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-svgtext-dispatch-template/ca-input-dropdown-svgtext-dispatch-template.component.mjs +22 -7
  20. package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-svgtext-template/ca-input-dropdown-svgtext-template.component.mjs +22 -7
  21. package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-text-counter/ca-input-dropdown-text-counter.component.mjs +23 -8
  22. package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-triple-text-template/ca-input-dropdown-triple-text-template.component.mjs +22 -7
  23. package/esm2022/lib/components/ca-todo/ca-todo.component.mjs +27 -29
  24. package/esm2022/lib/components/ca-todo/components/ca-todo-card.component.mjs +8 -23
  25. package/esm2022/lib/components/ca-todo/config/column.config.mjs +5 -5
  26. package/esm2022/lib/components/ca-todo/models/index.mjs +2 -1
  27. package/esm2022/lib/components/ca-todo/models/to-do-column.model.mjs +2 -0
  28. package/esm2022/lib/components/ca-todo/models/todo-config.model.mjs +1 -1
  29. package/esm2022/lib/components/ca-upload-files/ca-upload-files.component.mjs +76 -117
  30. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/ca-upload-dropzone.component.mjs +3 -3
  31. package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/models/index.mjs +1 -1
  32. package/esm2022/lib/components/ca-upload-files/enums/index.mjs +1 -1
  33. package/esm2022/lib/components/ca-upload-files/models/file-option-config.model.mjs +1 -1
  34. package/esm2022/lib/components/ca-upload-files/models/index.mjs +2 -1
  35. package/esm2022/lib/components/ca-upload-files/models/upload-files-config.model.mjs +2 -0
  36. package/esm2022/lib/pipes/highlight-search.pipe.mjs +1 -7
  37. package/esm2022/public-api.mjs +3 -1
  38. package/fesm2022/ca-components.mjs +555 -321
  39. package/fesm2022/ca-components.mjs.map +1 -1
  40. package/lib/components/ca-filters/ca-filter.component.d.ts +2 -2
  41. package/lib/components/ca-input-dropdown/ca-input-dropdown.component.d.ts +4 -3
  42. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-default-template/ca-input-dropdown-default-template.component.d.ts +6 -3
  43. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-details-template/ca-input-dropdown-details-template.component.d.ts +6 -3
  44. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-dispatch/ca-input-dropdown-dispatch.component.d.ts +6 -3
  45. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-double-text-template/ca-input-dropdown-double-text-template.component.d.ts +6 -3
  46. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-fuel-franchise/ca-input-dropdown-fuel-franchise.component.d.ts +6 -3
  47. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-groups/ca-input-dropdown-groups.component.d.ts +6 -3
  48. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-labels/ca-input-dropdown-labels.component.d.ts +6 -3
  49. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-broker/ca-input-dropdown-load-broker.component.d.ts +6 -3
  50. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-broker-contact/ca-input-dropdown-load-broker-contact.component.d.ts +6 -3
  51. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-broker-shipper/ca-input-dropdown-load-broker-shipper.component.d.ts +6 -3
  52. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-dispatcher/ca-input-dropdown-load-dispatcher.component.d.ts +6 -3
  53. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-dispatches-ttd/ca-input-dropdown-load-dispatches-ttd.component.d.ts +6 -3
  54. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-multiselect/ca-input-dropdown-multiselect.component.d.ts +6 -3
  55. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-payroll-trucks/ca-input-dropdown-payroll-trucks.component.d.ts +6 -3
  56. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-svg-template/ca-input-dropdown-svg-template.component.d.ts +6 -3
  57. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-svgtext-dispatch-template/ca-input-dropdown-svgtext-dispatch-template.component.d.ts +6 -3
  58. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-svgtext-template/ca-input-dropdown-svgtext-template.component.d.ts +6 -3
  59. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-text-counter/ca-input-dropdown-text-counter.component.d.ts +6 -3
  60. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-triple-text-template/ca-input-dropdown-triple-text-template.component.d.ts +6 -3
  61. package/lib/components/ca-todo/ca-todo.component.d.ts +8 -12
  62. package/lib/components/ca-todo/components/ca-todo-card.component.d.ts +3 -12
  63. package/lib/components/ca-todo/config/column.config.d.ts +2 -6
  64. package/lib/components/ca-todo/models/index.d.ts +1 -0
  65. package/lib/components/ca-todo/models/to-do-column.model.d.ts +6 -0
  66. package/lib/components/ca-todo/models/todo-config.model.d.ts +2 -11
  67. package/lib/components/ca-upload-files/ca-upload-files.component.d.ts +9 -29
  68. package/lib/components/ca-upload-files/models/file-option-config.model.d.ts +1 -1
  69. package/lib/components/ca-upload-files/models/index.d.ts +1 -0
  70. package/lib/components/ca-upload-files/models/upload-files-config.model.d.ts +27 -0
  71. package/package.json +1 -1
  72. package/public-api.d.ts +2 -0
@@ -1,3 +1,4 @@
1
1
  export * from './todo-card-config.model';
2
2
  export * from './todo-config.model';
3
3
  export * from './image-config.model';
4
+ export * from './to-do-column.model';
@@ -0,0 +1,6 @@
1
+ import { ToDoConfig } from './todo-config.model';
2
+ export interface IToDoColumn {
3
+ id: string;
4
+ title: string;
5
+ toDoConfigs: ToDoConfig[];
6
+ }
@@ -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 { FilesCarouselConfig } from '../../ca-upload-files/components/ca-upload-files-carousel/models';
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
- isVisibleCropAndDrop: boolean;
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, FileOptionConfig, ReviewFileConfig, Slider } from './models';
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
- _files: FileConfig[];
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
- identity(index: number): number;
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, { "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; }; "files": { "alias": "files"; "required": false; }; }, { "documentReviewInputEvent": "documentReviewInputEvent"; "onFileEvent": "onFileEvent"; "closeDropzone": "closeDropzone"; "fileAdded": "fileAdded"; }, never, never, true, 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
  }
@@ -1,4 +1,4 @@
1
- import { FileConfig } from "../components/ca-upload-dropzone/models";
1
+ import { FileConfig } from '../components/ca-upload-dropzone/models';
2
2
  export interface FileOptionConfig {
3
3
  id: number;
4
4
  customClassName?: string;
@@ -2,3 +2,4 @@ export * from './file-option-config.model';
2
2
  export * from './review-file-config.model';
3
3
  export * from './document-review.model';
4
4
  export * from './slider.model';
5
+ export * from './upload-files-config.model';
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ca-components",
3
- "version": "1.0.97",
3
+ "version": "1.0.99",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.13",
6
6
  "@angular/core": "^18.2.13",
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';