@tedi-design-system/angular 6.2.0-rc.18 → 6.2.0-rc.19
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.service.d.ts","sourceRoot":"","sources":["../../../../../community/components/form/file-dropzone/file.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,MAAM,EAAU,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;;AAEtD,qBACa,WAAW;IACtB,IAAI,wBAAgD;IAEpD,SAAS,CAAC,MAAM,yDAA8B;IAE9C,IAAI,KAAK,IAAI,MAAM,CAAC,YAAY,EAAE,CAAC,CAElC;IAEY,QAAQ,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAkC7D,cAAc,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,GAAG,YAAY,EAAE;IAgBxD,WAAW,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;YAQhD,iBAAiB;IA2B/B,OAAO,CAAC,SAAS;yCA9FN,WAAW;6CAAX,WAAW;
|
|
1
|
+
{"version":3,"file":"file.service.d.ts","sourceRoot":"","sources":["../../../../../community/components/form/file-dropzone/file.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,MAAM,EAAU,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;;AAEtD,qBACa,WAAW;IACtB,IAAI,wBAAgD;IAEpD,SAAS,CAAC,MAAM,yDAA8B;IAE9C,IAAI,KAAK,IAAI,MAAM,CAAC,YAAY,EAAE,CAAC,CAElC;IAEY,QAAQ,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAkC7D,cAAc,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,GAAG,YAAY,EAAE;IAgBxD,WAAW,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;YAQhD,iBAAiB;IA2B/B,OAAO,CAAC,SAAS;yCA9FN,WAAW;6CAAX,WAAW;CAqGvB"}
|
|
@@ -2385,18 +2385,16 @@ class FileService {
|
|
|
2385
2385
|
counter++;
|
|
2386
2386
|
}
|
|
2387
2387
|
fileNames.add(newName.toLowerCase());
|
|
2388
|
-
renamedFiles.push(
|
|
2388
|
+
renamedFiles.push(this._copyFile(file.file, newName));
|
|
2389
2389
|
}
|
|
2390
2390
|
return renamedFiles;
|
|
2391
2391
|
}
|
|
2392
2392
|
_copyFile(original, newName) {
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
lastModified: original.lastModified,
|
|
2397
|
-
});
|
|
2398
|
-
return new FileDropzone(file);
|
|
2393
|
+
const file = new File([original], newName ?? original.name, {
|
|
2394
|
+
type: original.type,
|
|
2395
|
+
lastModified: original.lastModified,
|
|
2399
2396
|
});
|
|
2397
|
+
return new FileDropzone(file);
|
|
2400
2398
|
}
|
|
2401
2399
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FileService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2402
2400
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FileService });
|