@trudb/tru-common-lib 0.0.854 → 0.0.856
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/esm2022/lib/services/tru-cloud-file-manager.mjs +131 -0
- package/esm2022/lib/services/tru-context-filters.mjs +1 -1
- package/esm2022/lib/services/tru-util.mjs +23 -1
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/trudb-tru-common-lib.mjs +149 -1
- package/fesm2022/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/services/tru-cloud-file-manager.d.ts +17 -0
- package/lib/services/tru-util.d.ts +7 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TruUser } from "./tru-user";
|
|
2
|
+
import { TruUtil } from "./tru-util";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TruCloudFileManager {
|
|
5
|
+
private util;
|
|
6
|
+
private user;
|
|
7
|
+
private reader;
|
|
8
|
+
private file;
|
|
9
|
+
private sliceSize;
|
|
10
|
+
constructor(util: TruUtil, user: TruUser);
|
|
11
|
+
private getFileLength;
|
|
12
|
+
private uploadFile;
|
|
13
|
+
upload: (tableName: string, propertyName: string, fileData: File, temp: any, updateProgress: (progress: number) => {}, done: (response: any | undefined) => {}) => void;
|
|
14
|
+
download: (blobId: string, temp: any, filename: string, updateProgress: (progress: number) => {}, done: () => {}) => void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruCloudFileManager, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TruCloudFileManager>;
|
|
17
|
+
}
|
|
@@ -9,6 +9,13 @@ export declare class TruUtil {
|
|
|
9
9
|
isDate: (date: Date) => boolean;
|
|
10
10
|
isValidDate: (value: string) => boolean;
|
|
11
11
|
rulesEval: (styles: object | null) => object;
|
|
12
|
+
/**
|
|
13
|
+
* Serializes an object as URL parameters. The object should be a base type or have
|
|
14
|
+
* properties that are each base types. Does not support a property with structure.
|
|
15
|
+
* @param {Object} data
|
|
16
|
+
* @returns {String}
|
|
17
|
+
*/
|
|
18
|
+
formatAsUrlParameters: (data: any) => string;
|
|
12
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<TruUtil, never>;
|
|
13
20
|
static ɵprov: i0.ɵɵInjectableDeclaration<TruUtil>;
|
|
14
21
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -106,6 +106,7 @@ export * from './lib/interfaces/tru-value';
|
|
|
106
106
|
export * from './lib/services/tru-app-environment';
|
|
107
107
|
export * from './lib/services/tru-breeze-context-factory';
|
|
108
108
|
export * from './lib/services/tru-breeze-metadata-provider';
|
|
109
|
+
export * from './lib/services/tru-cloud-file-manager';
|
|
109
110
|
export * from './lib/services/tru-component-lookup';
|
|
110
111
|
export * from './lib/services/tru-connection-hub';
|
|
111
112
|
export * from './lib/services/tru-context-filters';
|