cax-design-system 2.7.1 → 2.7.2

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.
@@ -7715,6 +7715,7 @@ cax-inputmask.cax-inputmask-clearable .cax-inputmask-clear-icon {
7715
7715
  }
7716
7716
  .cax-paginator .cax-paginator-page-input .cax-inputtext {
7717
7717
  max-width: 3rem;
7718
+ height: 40px !important;
7718
7719
  }
7719
7720
  .cax-paginator .cax-paginator-current {
7720
7721
  background-color: transparent;
@@ -9147,6 +9148,7 @@ cax-inputmask.cax-inputmask-clearable .cax-inputmask-clear-icon {
9147
9148
  }
9148
9149
  .cax-paginator .cax-paginator-page-input .cax-inputtext {
9149
9150
  max-width: 3rem;
9151
+ height: 40px !important;
9150
9152
  }
9151
9153
  .cax-paginator .cax-paginator-current {
9152
9154
  background-color: transparent;
@@ -10399,10 +10401,6 @@ cax-dropdown.ng-dirty.ng-invalid > .cax-dropdown {
10399
10401
  padding-bottom: 1rem;
10400
10402
  }
10401
10403
 
10402
- .cax-timeline-event-content:hover {
10403
- background: var(--neutral-75);
10404
- }
10405
-
10406
10404
  .cax-timeline.cax-timeline-vertical .cax-timeline-event-connector {
10407
10405
  width: 1px;
10408
10406
  }
@@ -11583,19 +11581,35 @@ cax-selectbutton.ng-dirty.ng-invalid > .cax-selectbutton > .cax-button {
11583
11581
  }
11584
11582
  }
11585
11583
 
11584
+ .cax-chips-label {
11585
+ margin-bottom: 8px;
11586
+ font-weight: 500;
11587
+ color: var(--neutral-900);
11588
+ line-height: 20px;
11589
+ }
11590
+
11586
11591
  .cax-chips-size-sm .cax-chips-container {
11587
11592
  min-height: 32px;
11588
11593
  padding: 0px 8px;
11594
+ .cax-chips-label {
11595
+ font-size: 14px;
11596
+ }
11589
11597
  }
11590
11598
 
11591
11599
  .cax-chips-size-md .cax-chips-container {
11592
11600
  min-height: 40px;
11593
11601
  padding: 0px 8px;
11602
+ .cax-chips-label {
11603
+ font-size: 14px;
11604
+ }
11594
11605
  }
11595
11606
 
11596
11607
  .cax-chips-size-lg .cax-chips-container {
11597
11608
  min-height: 48px;
11598
11609
  padding: 0px 8px;
11610
+ .cax-chips-label {
11611
+ font-size: 16px !important;
11612
+ }
11599
11613
  }
11600
11614
 
11601
11615
  .cax-chips-list {
@@ -12385,15 +12399,17 @@ div.cax-cascadeselect-panel {
12385
12399
  .cax-files {
12386
12400
  color: var(--neutral-900);
12387
12401
  }
12388
- .cax-upload-menu {
12402
+ .cax-upload-menu{
12389
12403
  border: 1px solid var(--neutral-200);
12390
- &:has(.cax-upload-status.uploading),
12391
- &:has(.cax-upload-status.complete) {
12392
- border: 1px solid var(--primary-500);
12393
- }
12394
- &:has(.cax-error-upload) {
12395
- border: 1px solid var(--error-600);
12396
- }
12404
+ }
12405
+ .cax-upload-menu:has(.cax-upload-status.uploading){
12406
+ border: 1px solid var(--primary-500);
12407
+ }
12408
+ .cax-upload-menu:has(.cax-upload-status.complete){
12409
+ border: 1px solid var(--primary-500);
12410
+ }
12411
+ .cax-upload-menu:has(.cax-error-upload){
12412
+ border: 1px solid var(--error-600);
12397
12413
  }
12398
12414
  .cax-error-upload {
12399
12415
  color: var(--error-600);
@@ -1,6 +1,7 @@
1
1
  @layer cax {
2
2
  .cax-chips {
3
3
  display: inline-flex;
4
+ flex-direction: column;
4
5
  }
5
6
 
6
7
  .cax-chips-multiple-container {
@@ -6,7 +6,6 @@
6
6
  }
7
7
 
8
8
  .cax-upload-menu {
9
- width: 569px;
10
9
  border-radius: 12px;
11
10
  padding-top: 24px;
12
11
  padding-left: 56px;
@@ -101,7 +100,6 @@
101
100
  flex-direction: column;
102
101
  gap: 10px;
103
102
  margin-top: 1rem;
104
- width: 569px;
105
103
  }
106
104
 
107
105
  .cax-file-preview {
@@ -1,4 +1,4 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export type UploadFileStatus = 'queued' | 'uploading' | 'complete' | 'canceled' | 'error';
4
4
  export type UploadFile = {
@@ -7,7 +7,7 @@ export type UploadFile = {
7
7
  progress?: number;
8
8
  errorMessage?: string;
9
9
  };
10
- export declare class UploadComponent {
10
+ export declare class UploadComponent implements OnInit {
11
11
  invalid: boolean;
12
12
  style: {
13
13
  [klass: string]: any;
@@ -17,6 +17,8 @@ export declare class UploadComponent {
17
17
  uploadString: string;
18
18
  errorText: string;
19
19
  allowMultiple: boolean;
20
+ componentId: string;
21
+ allowedFileTypes: string[];
20
22
  fileSelected: EventEmitter<File>;
21
23
  filesQueued: EventEmitter<File[]>;
22
24
  uploadStarted: EventEmitter<File>;
@@ -33,11 +35,16 @@ export declare class UploadComponent {
33
35
  uploadedFiles: UploadFile[];
34
36
  uploadStatus: 'idle' | 'uploading' | 'complete';
35
37
  isProcessingQueue: boolean;
38
+ uniqueId: string;
39
+ get acceptFileTypes(): string;
36
40
  private get activeFilesCount();
41
+ ngOnInit(): void;
37
42
  onDragOver(event: DragEvent): void;
38
43
  onDragLeave(event: DragEvent): void;
39
44
  onDrop(event: DragEvent): void;
40
45
  handleFileInput(event: any): void;
46
+ private validateFile;
47
+ private getFileExtension;
41
48
  private queueFile;
42
49
  private updateUploadStatus;
43
50
  private processQueue;
@@ -49,7 +56,6 @@ export declare class UploadComponent {
49
56
  cancelAllUploads(): void;
50
57
  removeFile(index: number): void;
51
58
  removeAllFiles(): void;
52
- retryUpload(index: number): void;
53
59
  get hasUploading(): boolean;
54
60
  get hasQueuedOrUploading(): boolean;
55
61
  get hasErrors(): boolean;
@@ -57,5 +63,5 @@ export declare class UploadComponent {
57
63
  get uploadingProgressText(): string;
58
64
  get overallProgress(): number;
59
65
  static ɵfac: i0.ɵɵFactoryDeclaration<UploadComponent, never>;
60
- static ɵcmp: i0.ɵɵComponentDeclaration<UploadComponent, "cax-upload", never, { "invalid": { "alias": "invalid"; "required": false; }; "style": { "alias": "style"; "required": false; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; }; "inputFiles": { "alias": "inputFiles"; "required": false; }; "uploadString": { "alias": "uploadString"; "required": false; }; "errorText": { "alias": "errorText"; "required": false; }; "allowMultiple": { "alias": "allowMultiple"; "required": false; }; }, { "fileSelected": "fileSelected"; "filesQueued": "filesQueued"; "uploadStarted": "uploadStarted"; "uploadCompleted": "uploadCompleted"; "uploadCanceled": "uploadCanceled"; "uploadError": "uploadError"; "fileRemoved": "fileRemoved"; "allFilesRemoved": "allFilesRemoved"; "uploadStatusChange": "uploadStatusChange"; }, never, never, false, never>;
66
+ static ɵcmp: i0.ɵɵComponentDeclaration<UploadComponent, "cax-upload", never, { "invalid": { "alias": "invalid"; "required": false; }; "style": { "alias": "style"; "required": false; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; }; "inputFiles": { "alias": "inputFiles"; "required": false; }; "uploadString": { "alias": "uploadString"; "required": false; }; "errorText": { "alias": "errorText"; "required": false; }; "allowMultiple": { "alias": "allowMultiple"; "required": false; }; "componentId": { "alias": "componentId"; "required": false; }; "allowedFileTypes": { "alias": "allowedFileTypes"; "required": false; }; }, { "fileSelected": "fileSelected"; "filesQueued": "filesQueued"; "uploadStarted": "uploadStarted"; "uploadCompleted": "uploadCompleted"; "uploadCanceled": "uploadCanceled"; "uploadError": "uploadError"; "fileRemoved": "fileRemoved"; "allFilesRemoved": "allFilesRemoved"; "uploadStatusChange": "uploadStatusChange"; }, never, never, false, never>;
61
67
  }