ngx-material-entity 15.1.4 → 15.1.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-material-entity",
3
- "version": "15.1.4",
3
+ "version": "15.1.5",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "angular",
@@ -17,7 +17,8 @@
17
17
  "@angular/material": "15",
18
18
  "lodash": "4",
19
19
  "reflect-metadata": "^0.1.13",
20
- "jszip": "^3.10.1"
20
+ "jszip": "^3.10.1",
21
+ "js2xmlparser": "^5.0.0"
21
22
  },
22
23
  "dependencies": {
23
24
  "tslib": "^2.4.0"
package/public-api.d.ts CHANGED
@@ -20,6 +20,7 @@ export * from './components/table/edit-dialog/edit-entity-dialog.module';
20
20
  export * from './components/table/table-data';
21
21
  export * from './components/table/table.component';
22
22
  export * from './components/table/table.module';
23
+ export * from './components/table/default.actions';
23
24
  export * from './decorators/array/array-decorator.data';
24
25
  export * from './decorators/array/array.decorator';
25
26
  export * from './decorators/base/decorator-types.enum';
@@ -58,6 +58,13 @@ export declare abstract class EntityService<EntityType extends BaseEntityType<En
58
58
  * @returns A Promise of the created entity.
59
59
  */
60
60
  create(entity: EntityType): Promise<EntityType>;
61
+ /**
62
+ * Imports everything from the provided json file.
63
+ *
64
+ * @param file - The json file to import from.
65
+ * @returns All entities that have been imported.
66
+ */
67
+ import(file: File): Promise<EntityType[]>;
61
68
  /**
62
69
  * Creates the entity with form data when the entity contains files in contrast to creating it with a normal json body.
63
70
  * All file values are stored inside their respective property key and their name.
@@ -38,6 +38,13 @@ export declare abstract class FileUtilities {
38
38
  * @param fileData - The file data. Needs to contain a blob.
39
39
  */
40
40
  static downloadSingleFile(fileData: FileDataWithFile): void;
41
+ /**
42
+ * Downloads a blob.
43
+ *
44
+ * @param blob - The blob to download.
45
+ * @param name - The name of the downloaded file.
46
+ */
47
+ static downLoadBlob(blob: Blob, name?: string): void;
41
48
  /**
42
49
  * Downloads multiple files as a zip with the given name.
43
50
  *