zek 17.3.67 → 17.3.69
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/modules/date-ago/date-ago.pipe.mjs +2 -2
- package/esm2022/lib/modules/file-input/file-input.mjs +80 -0
- package/esm2022/lib/modules/file-input/index.mjs +2 -0
- package/esm2022/lib/modules/index.mjs +3 -3
- package/esm2022/lib/modules/numeric/numeric.directive.mjs +2 -2
- package/esm2022/lib/modules/utc-to-local/utc-to-local.pipe.mjs +2 -3
- package/esm2022/lib/services/file.service.mjs +23 -0
- package/esm2022/lib/services/index.mjs +2 -1
- package/esm2022/lib/utils/array-helper.mjs +28 -1
- package/esm2022/lib/utils/date-helper.mjs +1 -4
- package/fesm2022/zek.mjs +146 -35
- package/fesm2022/zek.mjs.map +1 -1
- package/lib/modules/file-input/file-input.d.ts +22 -0
- package/lib/modules/file-input/index.d.ts +1 -0
- package/lib/modules/index.d.ts +2 -1
- package/lib/services/file.service.d.ts +11 -0
- package/lib/services/index.d.ts +1 -0
- package/lib/utils/array-helper.d.ts +12 -0
- package/lib/utils/date-helper.d.ts +0 -1
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { CoreUiComponent } from '../../components/core-ui.component';
|
|
3
|
+
import { BooleanInput } from '../../components/types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ZekFileInput extends CoreUiComponent {
|
|
6
|
+
readonly onUpload: EventEmitter<any[]>;
|
|
7
|
+
private readonly fileService;
|
|
8
|
+
private _uniqueId;
|
|
9
|
+
/** The unique ID for the tag. */
|
|
10
|
+
id: string;
|
|
11
|
+
get inputId(): string;
|
|
12
|
+
private _accept;
|
|
13
|
+
get accept(): string;
|
|
14
|
+
set accept(v: string | null | undefined);
|
|
15
|
+
private _multiple;
|
|
16
|
+
get multiple(): boolean;
|
|
17
|
+
set multiple(v: BooleanInput);
|
|
18
|
+
clickInput(): void;
|
|
19
|
+
onFileInputChange(event: any): Promise<void>;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ZekFileInput, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ZekFileInput, "zek-file-input", never, { "id": { "alias": "id"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; }, { "onUpload": "onUpload"; }, never, never, true, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './file-input';
|
package/lib/modules/index.d.ts
CHANGED
|
@@ -2,13 +2,14 @@ export * from './age';
|
|
|
2
2
|
export * from './alert';
|
|
3
3
|
export * from './autocomplete';
|
|
4
4
|
export * from './bb';
|
|
5
|
+
export * from './callback';
|
|
5
6
|
export * from './card';
|
|
6
7
|
export * from './countdown';
|
|
7
|
-
export * from './callback';
|
|
8
8
|
export * from './date-ago';
|
|
9
9
|
export * from './datepicker';
|
|
10
10
|
export * from './edit-toolbar';
|
|
11
11
|
export * from './file';
|
|
12
|
+
export * from './file-input';
|
|
12
13
|
export * from './file-viewer';
|
|
13
14
|
export * from './google-login-button';
|
|
14
15
|
export * from './grid-toolbar';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CrudService } from './crud.service';
|
|
2
|
+
import { WebApiClient } from './web.api';
|
|
3
|
+
import { HttpErrorHandler } from './http-error-handler.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FileService extends CrudService {
|
|
6
|
+
constructor(api: WebApiClient, httpErrorHandler: HttpErrorHandler);
|
|
7
|
+
download(id: any, hash: any): import("rxjs").Observable<Blob | null>;
|
|
8
|
+
presignedUrl(id: any, hash: any): import("rxjs").Observable<any>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FileService>;
|
|
11
|
+
}
|
package/lib/services/index.d.ts
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import { KeyPair, KeyPairEx, Tree } from "../models";
|
|
2
2
|
export declare class ArrayHelper {
|
|
3
3
|
static insert(array: any[], index: number, item: any): void;
|
|
4
|
+
/**
|
|
5
|
+
* Remove item from array
|
|
6
|
+
* @param array
|
|
7
|
+
* @param item item to remove
|
|
8
|
+
*/
|
|
9
|
+
static remove(array: any[], item: any): void;
|
|
10
|
+
/**
|
|
11
|
+
* Remove all items from array
|
|
12
|
+
* @param array
|
|
13
|
+
* @param item item to remove
|
|
14
|
+
*/
|
|
15
|
+
static removeAll(array: any[], item: any): void;
|
|
4
16
|
static move(array: any[], fromIndex: number, toIndex: number): any[];
|
|
5
17
|
static contains(value: any[], v: any): boolean;
|
|
6
18
|
static isArray(value: any): boolean;
|