cmat 0.0.83 → 0.0.85
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/fesm2022/cmat-components-code-editor.mjs.map +1 -1
- package/fesm2022/cmat-components-custom-formly.mjs +1 -2
- package/fesm2022/cmat-components-custom-formly.mjs.map +1 -1
- package/fesm2022/cmat-components-date-range.mjs.map +1 -1
- package/fesm2022/cmat-components-date-time-display.mjs.map +1 -1
- package/fesm2022/cmat-components-drawer.mjs +0 -2
- package/fesm2022/cmat-components-drawer.mjs.map +1 -1
- package/fesm2022/cmat-components-empty-state.mjs.map +1 -1
- package/fesm2022/cmat-components-file-preview.mjs.map +1 -1
- package/fesm2022/cmat-components-filter-toolbar.mjs.map +1 -1
- package/fesm2022/cmat-components-form-actions.mjs.map +1 -1
- package/fesm2022/cmat-components-inline-loading.mjs.map +1 -1
- package/fesm2022/cmat-components-org-chart.mjs.map +1 -1
- package/fesm2022/cmat-components-page-header.mjs.map +1 -1
- package/fesm2022/cmat-components-password-strength.mjs.map +1 -1
- package/fesm2022/cmat-components-qrcode.mjs.map +1 -1
- package/fesm2022/cmat-components-rich-text-editor.mjs.map +1 -1
- package/fesm2022/cmat-components-select-search.mjs.map +1 -1
- package/fesm2022/cmat-components-select-table.mjs.map +1 -1
- package/fesm2022/cmat-components-select-tree.mjs.map +1 -1
- package/fesm2022/cmat-components-skeleton.mjs.map +1 -1
- package/fesm2022/cmat-components-status-tag.mjs.map +1 -1
- package/fesm2022/cmat-components-table-toolbar.mjs.map +1 -1
- package/fesm2022/cmat-components-upload.mjs +23 -10
- package/fesm2022/cmat-components-upload.mjs.map +1 -1
- package/fesm2022/cmat-directives-data-exporter.mjs.map +1 -1
- package/fesm2022/cmat-directives-digit-only.mjs.map +1 -1
- package/fesm2022/cmat-pipes-group-by.mjs.map +1 -1
- package/fesm2022/cmat-services-local-storage.mjs.map +1 -1
- package/fesm2022/cmat.mjs +24 -14
- package/fesm2022/cmat.mjs.map +1 -1
- package/package.json +16 -16
- package/types/cmat-components-date-range.d.ts +1 -0
- package/types/cmat-components-drawer.d.ts +0 -1
- package/types/cmat-components-upload.d.ts +48 -50
- package/types/cmat-directives-data-exporter.d.ts +1 -1
- package/types/cmat-pipes-group-by.d.ts +1 -0
- package/types/cmat-services-local-storage.d.ts +5 -1
- package/types/cmat.d.ts +40 -39
package/package.json
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cmat",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.85",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Yu Tao",
|
|
6
6
|
"email": "916426364@qq.com"
|
|
7
7
|
},
|
|
8
8
|
"license": "UNLICENSED",
|
|
9
9
|
"peerDependencies": {
|
|
10
|
-
"@angular/
|
|
11
|
-
"@angular/
|
|
12
|
-
"@angular/
|
|
13
|
-
"@angular/compiler": "^21.2.
|
|
14
|
-
"@angular/core": "^21.2.
|
|
15
|
-
"@angular/forms": "^21.2.
|
|
16
|
-
"@angular/material": "^21.2.
|
|
17
|
-
"@angular/platform-browser": "^21.2.
|
|
18
|
-
"@angular/platform-browser-dynamic": "^21.2.
|
|
19
|
-
"@angular/router": "^21.2.
|
|
10
|
+
"@angular/animations": "^21.2.9",
|
|
11
|
+
"@angular/cdk": "^21.2.7",
|
|
12
|
+
"@angular/common": "^21.2.9",
|
|
13
|
+
"@angular/compiler": "^21.2.9",
|
|
14
|
+
"@angular/core": "^21.2.9",
|
|
15
|
+
"@angular/forms": "^21.2.9",
|
|
16
|
+
"@angular/material": "^21.2.7",
|
|
17
|
+
"@angular/platform-browser": "^21.2.9",
|
|
18
|
+
"@angular/platform-browser-dynamic": "^21.2.9",
|
|
19
|
+
"@angular/router": "^21.2.9",
|
|
20
20
|
"@ngx-formly/core": "^7.1.0",
|
|
21
21
|
"@ngx-formly/material": "^7.1.0",
|
|
22
22
|
"@ngx-translate/core": "^17.0.0",
|
|
23
23
|
"@ngx-translate/http-loader": "^17.0.0",
|
|
24
|
-
"@tailwindcss/postcss": "^4.2.
|
|
24
|
+
"@tailwindcss/postcss": "^4.2.4",
|
|
25
25
|
"animate.css": "^4.1.1",
|
|
26
26
|
"crypto-js": "^4.2.0",
|
|
27
27
|
"dayjs": "^1.11.20",
|
|
28
28
|
"docx": "^9.6.1",
|
|
29
29
|
"highlight.js": "^11.11.1",
|
|
30
|
-
"ngx-quill": "^30.
|
|
30
|
+
"ngx-quill": "^30.1.2",
|
|
31
31
|
"qrcode": "^1.5.4",
|
|
32
32
|
"quill": "^2.0.3",
|
|
33
|
-
"@enzedonline/quill-blot-formatter2": "^3.1.
|
|
33
|
+
"@enzedonline/quill-blot-formatter2": "^3.1.1",
|
|
34
34
|
"quill-image-drop-and-paste": "^2.0.1",
|
|
35
35
|
"rxjs": "~7.8.2",
|
|
36
|
-
"vanilla-jsoneditor": "^3.
|
|
36
|
+
"vanilla-jsoneditor": "^3.12.0"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"tailwindcss": "^4.2.
|
|
39
|
+
"tailwindcss": "^4.2.4",
|
|
40
40
|
"tslib": "^2.3.0"
|
|
41
41
|
},
|
|
42
42
|
"sideEffects": false,
|
|
@@ -29,7 +29,6 @@ declare class CmatDrawerComponent implements OnChanges, OnInit, OnDestroy {
|
|
|
29
29
|
private _overlayClickDestroyFn;
|
|
30
30
|
private _overlayLeaveTimeoutId;
|
|
31
31
|
private _modeChangeTimeoutId;
|
|
32
|
-
private _destroyed;
|
|
33
32
|
get classList(): Record<string, boolean>;
|
|
34
33
|
get styleList(): Record<string, string>;
|
|
35
34
|
onMouseenter(): void;
|
|
@@ -1,11 +1,33 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { OnInit, EventEmitter, AfterViewInit, QueryList } from '@angular/core';
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnInit, EventEmitter, AfterViewInit, OnChanges, QueryList, SimpleChanges } from '@angular/core';
|
|
3
3
|
import { HttpResponse, HttpEvent } from '@angular/common/http';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
interface FileModel {
|
|
7
|
+
[propName: string]: unknown;
|
|
7
8
|
id?: string | null;
|
|
8
|
-
|
|
9
|
+
fileName: string;
|
|
10
|
+
filePath: string;
|
|
11
|
+
fileStatus?: 'Uploaded' | 'Processed';
|
|
12
|
+
length: number;
|
|
13
|
+
isPublic: boolean;
|
|
14
|
+
uploadUserId?: string;
|
|
15
|
+
uploadUserName?: string;
|
|
16
|
+
uploadDate: Date;
|
|
17
|
+
fileType: 'csv' | 'gif' | 'word' | 'excel' | 'jpg' | 'outlook' | 'pdf' | 'png' | 'ppt' | 'file' | 'text' | 'video' | 'zip';
|
|
18
|
+
fileCategory: string;
|
|
19
|
+
data?: Blob | File | FileModel;
|
|
20
|
+
}
|
|
21
|
+
interface FileCategoryModel {
|
|
22
|
+
name: string;
|
|
23
|
+
value: number;
|
|
24
|
+
}
|
|
25
|
+
interface FileListModel {
|
|
26
|
+
data: FileModel[];
|
|
27
|
+
dataCount: number;
|
|
28
|
+
category: FileCategoryModel[];
|
|
29
|
+
}
|
|
30
|
+
|
|
9
31
|
declare class CmatUploadComponent implements OnInit {
|
|
10
32
|
fileAlias: string;
|
|
11
33
|
filePath: string;
|
|
@@ -15,29 +37,27 @@ declare class CmatUploadComponent implements OnInit {
|
|
|
15
37
|
autoUpload: boolean;
|
|
16
38
|
id: string | null;
|
|
17
39
|
removeEvent: EventEmitter<CmatUploadComponent>;
|
|
18
|
-
uploadEvent: EventEmitter<
|
|
19
|
-
readonly progressPercentage:
|
|
20
|
-
readonly loaded:
|
|
21
|
-
readonly total:
|
|
22
|
-
readonly isUploading:
|
|
40
|
+
uploadEvent: EventEmitter<FileModel>;
|
|
41
|
+
readonly progressPercentage: _angular_core.WritableSignal<number>;
|
|
42
|
+
readonly loaded: _angular_core.WritableSignal<number>;
|
|
43
|
+
readonly total: _angular_core.WritableSignal<number>;
|
|
44
|
+
readonly isUploading: _angular_core.WritableSignal<boolean>;
|
|
23
45
|
private _fileService;
|
|
24
46
|
private readonly _destroyRef;
|
|
25
47
|
private _file;
|
|
26
|
-
get file():
|
|
27
|
-
set file(file:
|
|
48
|
+
get file(): FileModel;
|
|
49
|
+
set file(file: FileModel);
|
|
28
50
|
get fileType(): 'csv' | 'gif' | 'word' | 'excel' | 'jpg' | 'outlook' | 'pdf' | 'png' | 'ppt' | 'file' | 'text' | 'video' | 'zip';
|
|
51
|
+
get fileSize(): number;
|
|
29
52
|
ngOnInit(): void;
|
|
30
53
|
upload(): void;
|
|
31
54
|
download(): void;
|
|
32
55
|
remove(): void;
|
|
33
|
-
static ɵfac:
|
|
34
|
-
static ɵcmp:
|
|
56
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CmatUploadComponent, never>;
|
|
57
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CmatUploadComponent, "cmat-upload", ["cmatUpload"], { "fileAlias": { "alias": "fileAlias"; "required": false; }; "filePath": { "alias": "filePath"; "required": false; }; "fileCategory": { "alias": "fileCategory"; "required": false; }; "isPublic": { "alias": "isPublic"; "required": false; }; "editMode": { "alias": "editMode"; "required": false; }; "autoUpload": { "alias": "autoUpload"; "required": false; }; "id": { "alias": "id"; "required": false; }; "file": { "alias": "file"; "required": false; }; }, { "removeEvent": "removeEvent"; "uploadEvent": "uploadEvent"; }, never, never, true, never>;
|
|
35
58
|
}
|
|
36
59
|
|
|
37
|
-
|
|
38
|
-
id?: string | null;
|
|
39
|
-
};
|
|
40
|
-
declare class CmatUploadQueueComponent implements AfterViewInit {
|
|
60
|
+
declare class CmatUploadQueueComponent implements AfterViewInit, OnChanges {
|
|
41
61
|
fileUploads: QueryList<CmatUploadComponent>;
|
|
42
62
|
fileAlias: string;
|
|
43
63
|
filePath: string;
|
|
@@ -49,52 +69,30 @@ declare class CmatUploadQueueComponent implements AfterViewInit {
|
|
|
49
69
|
accept: string;
|
|
50
70
|
title: string;
|
|
51
71
|
editMode: boolean;
|
|
52
|
-
filesData:
|
|
72
|
+
filesData: FileModel[];
|
|
53
73
|
outputRemoveIdEvent: EventEmitter<string>;
|
|
54
74
|
outputUploadIdEvent: EventEmitter<string>;
|
|
55
|
-
outputFilesDataEvent: EventEmitter<
|
|
75
|
+
outputFilesDataEvent: EventEmitter<FileModel[]>;
|
|
56
76
|
id: string;
|
|
57
|
-
readonly isHandSet:
|
|
77
|
+
readonly isHandSet: _angular_core.WritableSignal<boolean>;
|
|
78
|
+
readonly fileDataSource: _angular_core.WritableSignal<FileModel[]>;
|
|
58
79
|
private _cmatMediaWatcherService;
|
|
59
80
|
private _elementRef;
|
|
60
81
|
private readonly _destroyRef;
|
|
61
82
|
constructor();
|
|
62
83
|
onDrop(event: DragEvent): void;
|
|
63
84
|
onDropOver(event: DragEvent): void;
|
|
85
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
64
86
|
ngAfterViewInit(): void;
|
|
65
|
-
add(file:
|
|
66
|
-
upload(event:
|
|
87
|
+
add(file: File): void;
|
|
88
|
+
upload(event: FileModel): void;
|
|
67
89
|
remove(event: CmatUploadComponent): void;
|
|
68
90
|
uploadAll(): void;
|
|
69
91
|
removeAll(): void;
|
|
70
92
|
choose(): void;
|
|
71
93
|
private isFileTypeAccepted;
|
|
72
|
-
static ɵfac:
|
|
73
|
-
static ɵcmp:
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
interface FileModel {
|
|
77
|
-
id?: string | null;
|
|
78
|
-
fileName: string;
|
|
79
|
-
filePath: string;
|
|
80
|
-
fileStatus?: 'Uploaded' | 'Processed';
|
|
81
|
-
length: number;
|
|
82
|
-
isPublic: boolean;
|
|
83
|
-
uploadUserId?: string;
|
|
84
|
-
uploadUserName?: string;
|
|
85
|
-
uploadDate: Date;
|
|
86
|
-
fileType: 'csv' | 'gif' | 'word' | 'excel' | 'jpg' | 'outlook' | 'pdf' | 'png' | 'ppt' | 'file' | 'text' | 'video' | 'zip';
|
|
87
|
-
fileCategory: string;
|
|
88
|
-
data?: unknown;
|
|
89
|
-
}
|
|
90
|
-
interface FileCategoryModel {
|
|
91
|
-
name: string;
|
|
92
|
-
value: number;
|
|
93
|
-
}
|
|
94
|
-
interface FileListModel {
|
|
95
|
-
data: FileModel[];
|
|
96
|
-
dataCount: number;
|
|
97
|
-
category: FileCategoryModel[];
|
|
94
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CmatUploadQueueComponent, never>;
|
|
95
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CmatUploadQueueComponent, "cmat-upload-queue", ["cmatUploadQueue"], { "fileAlias": { "alias": "fileAlias"; "required": false; }; "filePath": { "alias": "filePath"; "required": false; }; "fileCategory": { "alias": "fileCategory"; "required": false; }; "isPublic": { "alias": "isPublic"; "required": false; }; "required": { "alias": "required"; "required": false; }; "autoUpload": { "alias": "autoUpload"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "title": { "alias": "title"; "required": false; }; "editMode": { "alias": "editMode"; "required": false; }; "filesData": { "alias": "filesData"; "required": false; }; }, { "outputRemoveIdEvent": "outputRemoveIdEvent"; "outputUploadIdEvent": "outputUploadIdEvent"; "outputFilesDataEvent": "outputFilesDataEvent"; }, never, never, true, never>;
|
|
98
96
|
}
|
|
99
97
|
|
|
100
98
|
declare class CmatFilesUtilService {
|
|
@@ -110,8 +108,8 @@ declare class CmatFilesUtilService {
|
|
|
110
108
|
switchPublic(fileId: string, isPublic: boolean): Observable<Record<string, unknown>>;
|
|
111
109
|
deleteFile(fileId: string): Observable<Record<string, unknown>>;
|
|
112
110
|
getFileList(queryData: object, pageIndex?: number, pageSize?: number): Observable<FileListModel>;
|
|
113
|
-
static ɵfac:
|
|
114
|
-
static ɵprov:
|
|
111
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CmatFilesUtilService, never>;
|
|
112
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<CmatFilesUtilService>;
|
|
115
113
|
}
|
|
116
114
|
|
|
117
115
|
export { CmatFilesUtilService, CmatUploadComponent, CmatUploadQueueComponent };
|
|
@@ -42,4 +42,4 @@ declare class CmatDataExporterDirective implements OnChanges {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
export { CmatDataExporterDirective, ExportType };
|
|
45
|
-
export type { ExcelOptions, ExporterListInfo, Options, TxtOptions };
|
|
45
|
+
export type { DataExporterItem, ExcelOptions, ExporterListInfo, Options, TxtOptions };
|
|
@@ -4,6 +4,10 @@ interface StorageOptions {
|
|
|
4
4
|
encrypt?: boolean;
|
|
5
5
|
ttl?: number;
|
|
6
6
|
}
|
|
7
|
+
interface StorageEntry {
|
|
8
|
+
data: string;
|
|
9
|
+
expiry?: number;
|
|
10
|
+
}
|
|
7
11
|
declare class CmatLocalStorageService {
|
|
8
12
|
private _encryptionPrefix;
|
|
9
13
|
getItem(key: string, options?: StorageOptions): string | null;
|
|
@@ -16,4 +20,4 @@ declare class CmatLocalStorageService {
|
|
|
16
20
|
}
|
|
17
21
|
|
|
18
22
|
export { CmatLocalStorageService };
|
|
19
|
-
export type { StorageOptions };
|
|
23
|
+
export type { StorageEntry, StorageOptions };
|
package/types/cmat.d.ts
CHANGED
|
@@ -1485,7 +1485,6 @@ declare class CmatDrawerComponent implements OnChanges, OnInit, OnDestroy {
|
|
|
1485
1485
|
private _overlayClickDestroyFn;
|
|
1486
1486
|
private _overlayLeaveTimeoutId;
|
|
1487
1487
|
private _modeChangeTimeoutId;
|
|
1488
|
-
private _destroyed;
|
|
1489
1488
|
get classList(): Record<string, boolean>;
|
|
1490
1489
|
get styleList(): Record<string, string>;
|
|
1491
1490
|
onMouseenter(): void;
|
|
@@ -3884,9 +3883,31 @@ declare class CmatTreeTableComponent implements OnChanges {
|
|
|
3884
3883
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatTreeTableComponent, "cmat-treetable", ["cmatTreeTable"], { "data": { "alias": "data"; "required": false; }; "verticalSeparator": { "alias": "verticalSeparator"; "required": false; }; "initExpand": { "alias": "initExpand"; "required": false; }; "tableClass": { "alias": "tableClass"; "required": false; }; "showControlColumn": { "alias": "showControlColumn"; "required": false; }; }, { "nodeClicked": "nodeClicked"; }, ["customColumnTpl"], never, true, never>;
|
|
3885
3884
|
}
|
|
3886
3885
|
|
|
3887
|
-
|
|
3886
|
+
interface FileModel {
|
|
3887
|
+
[propName: string]: unknown;
|
|
3888
3888
|
id?: string | null;
|
|
3889
|
-
|
|
3889
|
+
fileName: string;
|
|
3890
|
+
filePath: string;
|
|
3891
|
+
fileStatus?: 'Uploaded' | 'Processed';
|
|
3892
|
+
length: number;
|
|
3893
|
+
isPublic: boolean;
|
|
3894
|
+
uploadUserId?: string;
|
|
3895
|
+
uploadUserName?: string;
|
|
3896
|
+
uploadDate: Date;
|
|
3897
|
+
fileType: 'csv' | 'gif' | 'word' | 'excel' | 'jpg' | 'outlook' | 'pdf' | 'png' | 'ppt' | 'file' | 'text' | 'video' | 'zip';
|
|
3898
|
+
fileCategory: string;
|
|
3899
|
+
data?: Blob | File | FileModel;
|
|
3900
|
+
}
|
|
3901
|
+
interface FileCategoryModel {
|
|
3902
|
+
name: string;
|
|
3903
|
+
value: number;
|
|
3904
|
+
}
|
|
3905
|
+
interface FileListModel {
|
|
3906
|
+
data: FileModel[];
|
|
3907
|
+
dataCount: number;
|
|
3908
|
+
category: FileCategoryModel[];
|
|
3909
|
+
}
|
|
3910
|
+
|
|
3890
3911
|
declare class CmatUploadComponent implements OnInit {
|
|
3891
3912
|
fileAlias: string;
|
|
3892
3913
|
filePath: string;
|
|
@@ -3896,7 +3917,7 @@ declare class CmatUploadComponent implements OnInit {
|
|
|
3896
3917
|
autoUpload: boolean;
|
|
3897
3918
|
id: string | null;
|
|
3898
3919
|
removeEvent: EventEmitter<CmatUploadComponent>;
|
|
3899
|
-
uploadEvent: EventEmitter<
|
|
3920
|
+
uploadEvent: EventEmitter<FileModel>;
|
|
3900
3921
|
readonly progressPercentage: i0.WritableSignal<number>;
|
|
3901
3922
|
readonly loaded: i0.WritableSignal<number>;
|
|
3902
3923
|
readonly total: i0.WritableSignal<number>;
|
|
@@ -3904,9 +3925,10 @@ declare class CmatUploadComponent implements OnInit {
|
|
|
3904
3925
|
private _fileService;
|
|
3905
3926
|
private readonly _destroyRef;
|
|
3906
3927
|
private _file;
|
|
3907
|
-
get file():
|
|
3908
|
-
set file(file:
|
|
3928
|
+
get file(): FileModel;
|
|
3929
|
+
set file(file: FileModel);
|
|
3909
3930
|
get fileType(): 'csv' | 'gif' | 'word' | 'excel' | 'jpg' | 'outlook' | 'pdf' | 'png' | 'ppt' | 'file' | 'text' | 'video' | 'zip';
|
|
3931
|
+
get fileSize(): number;
|
|
3910
3932
|
ngOnInit(): void;
|
|
3911
3933
|
upload(): void;
|
|
3912
3934
|
download(): void;
|
|
@@ -3915,10 +3937,7 @@ declare class CmatUploadComponent implements OnInit {
|
|
|
3915
3937
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatUploadComponent, "cmat-upload", ["cmatUpload"], { "fileAlias": { "alias": "fileAlias"; "required": false; }; "filePath": { "alias": "filePath"; "required": false; }; "fileCategory": { "alias": "fileCategory"; "required": false; }; "isPublic": { "alias": "isPublic"; "required": false; }; "editMode": { "alias": "editMode"; "required": false; }; "autoUpload": { "alias": "autoUpload"; "required": false; }; "id": { "alias": "id"; "required": false; }; "file": { "alias": "file"; "required": false; }; }, { "removeEvent": "removeEvent"; "uploadEvent": "uploadEvent"; }, never, never, true, never>;
|
|
3916
3938
|
}
|
|
3917
3939
|
|
|
3918
|
-
|
|
3919
|
-
id?: string | null;
|
|
3920
|
-
};
|
|
3921
|
-
declare class CmatUploadQueueComponent implements AfterViewInit {
|
|
3940
|
+
declare class CmatUploadQueueComponent implements AfterViewInit, OnChanges {
|
|
3922
3941
|
fileUploads: QueryList<CmatUploadComponent>;
|
|
3923
3942
|
fileAlias: string;
|
|
3924
3943
|
filePath: string;
|
|
@@ -3930,21 +3949,23 @@ declare class CmatUploadQueueComponent implements AfterViewInit {
|
|
|
3930
3949
|
accept: string;
|
|
3931
3950
|
title: string;
|
|
3932
3951
|
editMode: boolean;
|
|
3933
|
-
filesData:
|
|
3952
|
+
filesData: FileModel[];
|
|
3934
3953
|
outputRemoveIdEvent: EventEmitter<string>;
|
|
3935
3954
|
outputUploadIdEvent: EventEmitter<string>;
|
|
3936
|
-
outputFilesDataEvent: EventEmitter<
|
|
3955
|
+
outputFilesDataEvent: EventEmitter<FileModel[]>;
|
|
3937
3956
|
id: string;
|
|
3938
3957
|
readonly isHandSet: i0.WritableSignal<boolean>;
|
|
3958
|
+
readonly fileDataSource: i0.WritableSignal<FileModel[]>;
|
|
3939
3959
|
private _cmatMediaWatcherService;
|
|
3940
3960
|
private _elementRef;
|
|
3941
3961
|
private readonly _destroyRef;
|
|
3942
3962
|
constructor();
|
|
3943
3963
|
onDrop(event: DragEvent): void;
|
|
3944
3964
|
onDropOver(event: DragEvent): void;
|
|
3965
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
3945
3966
|
ngAfterViewInit(): void;
|
|
3946
|
-
add(file:
|
|
3947
|
-
upload(event:
|
|
3967
|
+
add(file: File): void;
|
|
3968
|
+
upload(event: FileModel): void;
|
|
3948
3969
|
remove(event: CmatUploadComponent): void;
|
|
3949
3970
|
uploadAll(): void;
|
|
3950
3971
|
removeAll(): void;
|
|
@@ -3954,30 +3975,6 @@ declare class CmatUploadQueueComponent implements AfterViewInit {
|
|
|
3954
3975
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatUploadQueueComponent, "cmat-upload-queue", ["cmatUploadQueue"], { "fileAlias": { "alias": "fileAlias"; "required": false; }; "filePath": { "alias": "filePath"; "required": false; }; "fileCategory": { "alias": "fileCategory"; "required": false; }; "isPublic": { "alias": "isPublic"; "required": false; }; "required": { "alias": "required"; "required": false; }; "autoUpload": { "alias": "autoUpload"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "title": { "alias": "title"; "required": false; }; "editMode": { "alias": "editMode"; "required": false; }; "filesData": { "alias": "filesData"; "required": false; }; }, { "outputRemoveIdEvent": "outputRemoveIdEvent"; "outputUploadIdEvent": "outputUploadIdEvent"; "outputFilesDataEvent": "outputFilesDataEvent"; }, never, never, true, never>;
|
|
3955
3976
|
}
|
|
3956
3977
|
|
|
3957
|
-
interface FileModel {
|
|
3958
|
-
id?: string | null;
|
|
3959
|
-
fileName: string;
|
|
3960
|
-
filePath: string;
|
|
3961
|
-
fileStatus?: 'Uploaded' | 'Processed';
|
|
3962
|
-
length: number;
|
|
3963
|
-
isPublic: boolean;
|
|
3964
|
-
uploadUserId?: string;
|
|
3965
|
-
uploadUserName?: string;
|
|
3966
|
-
uploadDate: Date;
|
|
3967
|
-
fileType: 'csv' | 'gif' | 'word' | 'excel' | 'jpg' | 'outlook' | 'pdf' | 'png' | 'ppt' | 'file' | 'text' | 'video' | 'zip';
|
|
3968
|
-
fileCategory: string;
|
|
3969
|
-
data?: unknown;
|
|
3970
|
-
}
|
|
3971
|
-
interface FileCategoryModel {
|
|
3972
|
-
name: string;
|
|
3973
|
-
value: number;
|
|
3974
|
-
}
|
|
3975
|
-
interface FileListModel {
|
|
3976
|
-
data: FileModel[];
|
|
3977
|
-
dataCount: number;
|
|
3978
|
-
category: FileCategoryModel[];
|
|
3979
|
-
}
|
|
3980
|
-
|
|
3981
3978
|
declare class CmatFilesUtilService {
|
|
3982
3979
|
private _http;
|
|
3983
3980
|
private _urlStateConfigService;
|
|
@@ -4547,6 +4544,10 @@ interface StorageOptions {
|
|
|
4547
4544
|
encrypt?: boolean;
|
|
4548
4545
|
ttl?: number;
|
|
4549
4546
|
}
|
|
4547
|
+
interface StorageEntry {
|
|
4548
|
+
data: string;
|
|
4549
|
+
expiry?: number;
|
|
4550
|
+
}
|
|
4550
4551
|
declare class CmatLocalStorageService {
|
|
4551
4552
|
private _encryptionPrefix;
|
|
4552
4553
|
getItem(key: string, options?: StorageOptions): string | null;
|
|
@@ -4692,4 +4693,4 @@ declare class CmatUtilsService {
|
|
|
4692
4693
|
}
|
|
4693
4694
|
|
|
4694
4695
|
export { AngularShape, AngularShapeView, CLOCK_INNER_RADIUS, CLOCK_OUTER_RADIUS, CLOCK_RADIUS, CLOCK_TICK_RADIUS, CMAT_APP_CONFIG, CMAT_CRYPTO_CONFIG, CMAT_DATETIMEPICKER_SCROLL_STRATEGY, CMAT_DATETIMEPICKER_SCROLL_STRATEGY_FACTORY, CMAT_DATETIMEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER, CMAT_DATETIMEPICKER_VALIDATORS, CMAT_DATETIMEPICKER_VALUE_ACCESSOR, CMAT_DATETIME_FORMATS, CMAT_DAYJS_DATETIME_FORMATS, CMAT_DAYJS_DATE_ADAPTER_OPTIONS, CMAT_DAYJS_DATE_ADAPTER_OPTIONS_FACTORY, CMAT_DAYJS_DATE_FORMATS, CMAT_MATERIAL_COLOR_PICKER_VALUE_ACCESSOR, CMAT_NATIVE_DATETIME_FORMATS, CNativeDatetimeAdapter, ChartNode, CmatAddonsWrapperComponent, CmatAlertDialog, CmatAlertMessage, CmatAlertService, CmatAnimationOnScrollDirective, CmatArrowCursorDirective, CmatAutofocusDirective, CmatBreadcrumbComponent, CmatBreadcrumbItemDirective, CmatBreadcrumbService, CmatButtonTypeComponent, CmatBytesPipe, CmatCardComponent, CmatCardWrapperComponent, CmatCarouselComponent, CmatCarouselFooterComponent, CmatCarouselHeaderComponent, CmatCarouselTemplateDirective, CmatCascadeBottomSheetComponent, CmatCascadeListComponent, CmatCascadeTypeComponent, CmatCheckListTypeComponent, CmatChipInputComponent, CmatChipsInputTypeComponent, CmatCodeEditorComponent, CmatColorPickerTypeComponent, CmatConfigService, CmatConfirmationService, CmatDataExporterDirective, CmatDataService, CmatDateFormatPipe, CmatDateRangeComponent, CmatDateRangeTypeComponent, CmatDateTimeDisplayComponent, CmatDatepickerTypeComponent, CmatDatetimepickerCalendarBodyComponent, CmatDatetimepickerCalendarCellComponent, CmatDatetimepickerCalendarComponent, CmatDatetimepickerClockComponent, CmatDatetimepickerComponent, CmatDatetimepickerContentComponent, CmatDatetimepickerFilterType, CmatDatetimepickerInputDirective, CmatDatetimepickerInputEvent, CmatDatetimepickerMonthViewComponent, CmatDatetimepickerToggleComponent, CmatDatetimepickerToggleIconDirective, CmatDatetimepickerYearViewComponent, CmatDebounceClickDirective, CmatDebounceKeyupDirective, CmatDialogType, CmatDigitOnlyDirective, CmatDrawerComponent, CmatDrawerService, CmatEmptyStateComponent, CmatEqualValidatorDirective, CmatExpansionWrapperComponent, CmatExportAsService, CmatFilePreviewComponent, CmatFilesUtilService, CmatFilterToolbarComponent, CmatFindByKeyPipe, CmatFormActionsComponent, CmatFormFieldWrapperComponent, CmatFullscreenComponent, CmatGroupByPipe, CmatHighlightComponent, CmatHighlightService, CmatHorizontalNavigationComponent, CmatImageComponent, CmatInlineLoadingComponent, CmatJsonEditorComponent, CmatKeysPipe, CmatKnobInputComponent, CmatKnobTypeComponent, CmatLoadingInterceptor, CmatLoadingService, CmatLocalStorageService, CmatMaskDirective, CmatMasonryComponent, CmatMaterialColorPickerComponent, CmatMediaWatcherService, CmatMessageSeverity, CmatMultiCheckboxTypeComponent, CmatNavigationItem, CmatNavigationService, CmatNumberTypeComponent, CmatOrgChartComponent, CmatOtpInputComponent, CmatPageHeaderComponent, CmatPaginatePipe, CmatPaginationComponent, CmatPaginationDirective, CmatPaginationService, CmatPanelWrapperComponent, CmatPassToggleVisibilityComponent, CmatPasswordStrengthComponent, CmatPasswordStrengthInfoComponent, CmatPlatformService, CmatPopoverComponent, CmatPopoverTargetDirective, CmatPopoverTriggerDirective, CmatProgressBarComponent, CmatQRCodeComponent, CmatQuillTypeComponent, CmatRadioTypeComponent, CmatRatingComponent, CmatRatingTypeComponent, CmatRepeatTypeComponent, CmatRichTextEditorComponent, CmatSeamlessAutoScrollDirective, CmatSecurePipe, CmatSelectSearchComponent, CmatSelectTableComponent, CmatSelectTableTypeComponent, CmatSelectTreeComponent, CmatSelectTreeFlatNode, CmatSelectTreeNode, CmatSelectTreeTypeComponent, CmatSelectTypeComponent, CmatSelectedColor, CmatSliderTypeComponent, CmatSpeedDialActionsComponent, CmatSpeedDialComponent, CmatSpeedDialTriggerComponent, CmatSplashScreenService, CmatStatusTagComponent, CmatStepperHorizontalTypeComponent, CmatStepperVerticalTypeComponent, CmatTabTypeComponent, CmatTableToolbarComponent, CmatTableTypeComponent, CmatTagsTypeComponent, CmatTextareaTypeComponent, CmatTimelineComponent, CmatTimelineItemComponent, CmatTimelineItemIconDirective, CmatTimelineItemLabelDirective, CmatTitleService, CmatToastComponent, CmatToastModalComponent, CmatToastService, CmatTransferFilterCondition, CmatTransferItemFlatNode, CmatTransferItemNode, CmatTransferPickerComponent, CmatTransferPickerFilterComponent, CmatTransferPickerSearchComponent, CmatTransferPickerService, CmatTransferPickerSourceComponent, CmatTransferPickerTargetComponent, CmatTranslationService, CmatTreeTableColumnDirective, CmatTreeTableComponent, CmatTreeTableNode, CmatUploadComponent, CmatUploadQueueComponent, CmatUploadTypeComponent, CmatUppercasePipe, CmatUrlStateConfigService, CmatUtilsService, CmatVerticalNavigationComponent, DatetimeAdapter, DayjsDateAdapter, DayjsDatetimeAdapter, ExportType, MAT_SELECTSEARCH_DEFAULT_OPTIONS, addonsExtension, configurableDefaultOptions, initializeCmatUtilsConfig, register, registerInfo };
|
|
4695
|
-
export type { AngularShapeConfig, AnimationMode, ApiResult, CMAT_TIMELINE_ORIENTATION, CMAT_TIMELINE_POSITION, CmatAMPM, CmatAppConfig, CmatAppConfigBase, CmatBreadcrumb, CmatBreadcrumbDefinition, CmatBreadcrumbFunction, CmatBreadcrumbObject, CmatCalendarView, CmatCardFace, CmatCarouselPageEvent, CmatCarouselResponsiveOptions, CmatCarouselTemplates, CmatCascadeOptionsInterface, CmatClockView, CmatConfirmationConfig, CmatCryptoConfig, CmatDatetimeFormats, CmatDatetimepickerMode, CmatDatetimepickerType, CmatDrawerMode, CmatDrawerPosition, CmatNavigationComponent, CmatPaginatePipeArgs, CmatPaginationInstance, CmatPipeState, CmatPopoverPosition, CmatPopoverPositionEnd, CmatPopoverPositionStart, CmatPopoverScrollStrategy, CmatPopoverTriggerEvent, CmatScheme, CmatScreens, CmatSelectTableColumn, CmatSelectTableDataSource, CmatSelectTableFilter, CmatSelectTableRow, CmatSourceOptions, CmatTheme, CmatThemeOption, CmatToastModel, CmatTransferFilterData, CmatTransferFilterItem, CmatVerticalNavigationAppearance, CmatVerticalNavigationMode, CmatVerticalNavigationPosition, Collection, ConfigurableDefaultOptions, Content, CustomFormFieldProps, DatetimepickerDropdownPositionX, DatetimepickerDropdownPositionY, DayJsDateAdapterOptions, Direction, ExcelOptions, ExportAsConfig, ExporterListInfo, FileCategoryModel, FileListModel, FileModel, FormlyMultiCheckboxFieldConfig, FormlyRadioFieldConfig, FormlySliderFieldConfig, GlobalConfigModel, GlobalPosition, GlobalTheme, GlobalType, INode, IUrlStateConfig, MatSelectSearchOptions, Options, Page, Position, PositionX, PositionY, StorageOptions, SupportedExtensions, Theme, ToastAPrefix, TxtOptions, Type };
|
|
4696
|
+
export type { AngularShapeConfig, AnimationMode, ApiResult, CMAT_TIMELINE_ORIENTATION, CMAT_TIMELINE_POSITION, CmatAMPM, CmatAppConfig, CmatAppConfigBase, CmatBreadcrumb, CmatBreadcrumbDefinition, CmatBreadcrumbFunction, CmatBreadcrumbObject, CmatCalendarView, CmatCardFace, CmatCarouselPageEvent, CmatCarouselResponsiveOptions, CmatCarouselTemplates, CmatCascadeOptionsInterface, CmatClockView, CmatConfirmationConfig, CmatCryptoConfig, CmatDatetimeFormats, CmatDatetimepickerMode, CmatDatetimepickerType, CmatDrawerMode, CmatDrawerPosition, CmatNavigationComponent, CmatPaginatePipeArgs, CmatPaginationInstance, CmatPipeState, CmatPopoverPosition, CmatPopoverPositionEnd, CmatPopoverPositionStart, CmatPopoverScrollStrategy, CmatPopoverTriggerEvent, CmatScheme, CmatScreens, CmatSelectTableColumn, CmatSelectTableDataSource, CmatSelectTableFilter, CmatSelectTableRow, CmatSourceOptions, CmatTheme, CmatThemeOption, CmatToastModel, CmatTransferFilterData, CmatTransferFilterItem, CmatVerticalNavigationAppearance, CmatVerticalNavigationMode, CmatVerticalNavigationPosition, Collection, ConfigurableDefaultOptions, Content, CustomFormFieldProps, DataExporterItem, DateRangeDisplayValue, DateRangeInputValue, DateRangeOutputValue, DatetimepickerDropdownPositionX, DatetimepickerDropdownPositionY, DayJsDateAdapterOptions, Direction, ExcelOptions, ExportAsConfig, ExporterListInfo, FileCategoryModel, FileListModel, FileModel, FormlyMultiCheckboxFieldConfig, FormlyRadioFieldConfig, FormlySliderFieldConfig, GlobalConfigModel, GlobalPosition, GlobalTheme, GlobalType, GroupByItem, GroupByResult, INode, IUrlStateConfig, MatSelectSearchOptions, Options, Page, Position, PositionX, PositionY, StorageEntry, StorageOptions, SupportedExtensions, Theme, ToastAPrefix, TxtOptions, Type };
|