monkey-style-guide-v2 0.0.75 → 0.0.77
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/fesm2022/monkey-style-guide-v2.mjs +187 -5
- package/fesm2022/monkey-style-guide-v2.mjs.map +1 -1
- package/lib/components/download-button/download-button.component.d.ts +28 -0
- package/lib/components/download-button/index.d.ts +6 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/interfaces/file-cache.d.ts +10 -0
- package/lib/interfaces/index.d.ts +1 -0
- package/lib/services/file-cache.service.d.ts +15 -0
- package/lib/services/index.d.ts +1 -0
- package/monkey-style-guide-v2-0.0.77.tgz +0 -0
- package/package.json +1 -1
- package/monkey-style-guide-v2-0.0.75.tgz +0 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { MonkeyButtonColor, MonkeyButtonType } from '../../interfaces/button';
|
|
3
|
+
import { MonkeySize } from '../../interfaces/sizes';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export type MonkeyDownloadButtonData = {
|
|
6
|
+
component: MonkeyDownloadButtonComponent;
|
|
7
|
+
};
|
|
8
|
+
export declare class MonkeyDownloadButtonComponent {
|
|
9
|
+
progress: number;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
color: MonkeyButtonColor;
|
|
12
|
+
size: MonkeySize;
|
|
13
|
+
type: MonkeyButtonType;
|
|
14
|
+
loading: boolean;
|
|
15
|
+
tabIndex: number;
|
|
16
|
+
onChange: EventEmitter<MonkeyDownloadButtonData>;
|
|
17
|
+
private readonly _fileCacheService;
|
|
18
|
+
protected _uid: string;
|
|
19
|
+
protected _id: string;
|
|
20
|
+
get id(): string;
|
|
21
|
+
set id(value: string);
|
|
22
|
+
get safeProgress(): number;
|
|
23
|
+
get hasProgress(): boolean;
|
|
24
|
+
constructor();
|
|
25
|
+
onDownload(): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyDownloadButtonComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MonkeyDownloadButtonComponent, "monkey-download-button", never, { "progress": { "alias": "progress"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, { "onChange": "onChange"; }, never, ["[first]", "*", "[last]"], true, never>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** ************************
|
|
2
|
+
* Copyright Monkey Exchange. All Rights Reserved
|
|
3
|
+
* This style guide was developed by Monkey Exchange Team
|
|
4
|
+
* MIT Licence
|
|
5
|
+
************************* */
|
|
6
|
+
export interface MonkeyEcxCachedFile {
|
|
7
|
+
filename: string;
|
|
8
|
+
blob: Blob;
|
|
9
|
+
timestamp: number;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MonkeyEcxCachedFile } from '../interfaces';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MonkeyEcxFileCacheService {
|
|
4
|
+
private cache;
|
|
5
|
+
private readonly EXPIRATION_MS;
|
|
6
|
+
private isExpired;
|
|
7
|
+
saveFile(filename: string, blob: Blob): void;
|
|
8
|
+
hasFile(filename: string): boolean;
|
|
9
|
+
getFile(filename: string): MonkeyEcxCachedFile | null;
|
|
10
|
+
download(filename: string): void;
|
|
11
|
+
deleteFile(filename: string): void;
|
|
12
|
+
clear(): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxFileCacheService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MonkeyEcxFileCacheService>;
|
|
15
|
+
}
|
package/lib/services/index.d.ts
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|