@elite.framework/ng.core 1.0.32 → 1.0.33
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.
|
@@ -28,7 +28,6 @@ import * as i4$1 from 'primeng/menu';
|
|
|
28
28
|
import { SafeHtmlPipe, MenuModule, Menu } from 'primeng/menu';
|
|
29
29
|
import * as i4 from 'primeng/fileupload';
|
|
30
30
|
import { FileUploadModule } from 'primeng/fileupload';
|
|
31
|
-
import { ENVIRONMENT as ENVIRONMENT$1, AttachmentDto as AttachmentDto$1 } from '@framework/ng.core';
|
|
32
31
|
import * as i2$1 from '@angular/router';
|
|
33
32
|
import { RouterModule } from '@angular/router';
|
|
34
33
|
import * as i1$4 from 'primeng/colorpicker';
|
|
@@ -1322,13 +1321,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImpor
|
|
|
1322
1321
|
}]
|
|
1323
1322
|
}] });
|
|
1324
1323
|
|
|
1324
|
+
class AttachmentDto {
|
|
1325
|
+
id;
|
|
1326
|
+
binaryObjectId;
|
|
1327
|
+
description;
|
|
1328
|
+
mimeType;
|
|
1329
|
+
fileName;
|
|
1330
|
+
base64;
|
|
1331
|
+
caption;
|
|
1332
|
+
link;
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1325
1335
|
class AttachmentTypeComponent extends FieldType {
|
|
1326
1336
|
messageService;
|
|
1327
1337
|
defaultAcceptTypes = '.pdf,application/pdf,image/*,.txt,text/plain,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel';
|
|
1328
1338
|
maxFileSize = 1 * 1024 * 1024; // 1 MB
|
|
1329
1339
|
url = '';
|
|
1330
1340
|
tenantId = 0;
|
|
1331
|
-
env = inject(ENVIRONMENT
|
|
1341
|
+
env = inject(ENVIRONMENT);
|
|
1332
1342
|
constructor(messageService) {
|
|
1333
1343
|
super();
|
|
1334
1344
|
this.messageService = messageService;
|
|
@@ -1390,7 +1400,7 @@ class AttachmentTypeComponent extends FieldType {
|
|
|
1390
1400
|
continue;
|
|
1391
1401
|
}
|
|
1392
1402
|
const base64 = await this.fileToBase64(file);
|
|
1393
|
-
const attachment = new AttachmentDto
|
|
1403
|
+
const attachment = new AttachmentDto();
|
|
1394
1404
|
attachment.fileName = file.name;
|
|
1395
1405
|
attachment.mimeType = file.type;
|
|
1396
1406
|
attachment.base64 = base64;
|
|
@@ -6536,17 +6546,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImpor
|
|
|
6536
6546
|
args: ['appRtlLang']
|
|
6537
6547
|
}] } });
|
|
6538
6548
|
|
|
6539
|
-
class AttachmentDto {
|
|
6540
|
-
id;
|
|
6541
|
-
binaryObjectId;
|
|
6542
|
-
description;
|
|
6543
|
-
mimeType;
|
|
6544
|
-
fileName;
|
|
6545
|
-
base64;
|
|
6546
|
-
caption;
|
|
6547
|
-
link;
|
|
6548
|
-
}
|
|
6549
|
-
|
|
6550
6549
|
class ListResultDto {
|
|
6551
6550
|
items;
|
|
6552
6551
|
constructor(initialValues = {}) {
|