fui-material 0.2.98 → 1.0.0-beta
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/dist/cjs/index.js +10 -8
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/function-elements/fExportTableToExcel/dop-function/export-excel/core.d.ts +126 -0
- package/dist/cjs/types/function-elements/fExportTableToExcel/dop-function/export-excel/tszip.min.d.ts +66 -0
- package/dist/cjs/types/function-elements/fExportTableToExcel/dop-function/jsxToHtml.d.ts +1 -1
- package/dist/cjs/types/function-elements/fNotification/fNotification.d.ts +10 -0
- package/dist/cjs/types/function-elements/fNotification/fNotification.stories.d.ts +6 -0
- package/dist/cjs/types/function-elements/fNotification/index.d.ts +1 -0
- package/dist/cjs/types/function-elements/index.d.ts +1 -0
- package/dist/esm/index.js +10 -8
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/function-elements/fExportTableToExcel/dop-function/export-excel/core.d.ts +126 -0
- package/dist/esm/types/function-elements/fExportTableToExcel/dop-function/export-excel/tszip.min.d.ts +66 -0
- package/dist/esm/types/function-elements/fExportTableToExcel/dop-function/jsxToHtml.d.ts +1 -1
- package/dist/esm/types/function-elements/fNotification/fNotification.d.ts +10 -0
- package/dist/esm/types/function-elements/fNotification/fNotification.stories.d.ts +6 -0
- package/dist/esm/types/function-elements/fNotification/index.d.ts +1 -0
- package/dist/esm/types/function-elements/index.d.ts +1 -0
- package/dist/index.d.ts +10 -1
- package/package.json +1 -1
package/dist/cjs/types/function-elements/fExportTableToExcel/dop-function/export-excel/core.d.ts
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
export declare class XLSXUni {
|
|
2
|
+
sheet: Sheet;
|
|
3
|
+
workBook: WorkBook;
|
|
4
|
+
cell: Cell;
|
|
5
|
+
style: XLSXStyle;
|
|
6
|
+
merge: SheetMerge;
|
|
7
|
+
constructor();
|
|
8
|
+
ngOnInit(author: any): void;
|
|
9
|
+
getWorkBook(author?: string): WorkBook;
|
|
10
|
+
getSheet(name: any): Sheet;
|
|
11
|
+
getCell(data?: null, style?: null): Cell;
|
|
12
|
+
getStyle(number?: number, numFmtId?: number): XLSXStyle;
|
|
13
|
+
getMerge(firstCol: any, firstRow: any, lastCol: any, lastRow: any): SheetMerge;
|
|
14
|
+
save(name?: string): RenderXLXS;
|
|
15
|
+
static exportDOMToXLSX(dom: any, name?: string): XLSXUni;
|
|
16
|
+
static createStyleTable(): XLSXStyle[];
|
|
17
|
+
static createStyleNumberTable(): XLSXStyle[];
|
|
18
|
+
}
|
|
19
|
+
declare class XLSXStyle {
|
|
20
|
+
font: {
|
|
21
|
+
sz: number;
|
|
22
|
+
color: string;
|
|
23
|
+
name: string;
|
|
24
|
+
tags: never[];
|
|
25
|
+
};
|
|
26
|
+
border: {
|
|
27
|
+
left: never[];
|
|
28
|
+
right: never[];
|
|
29
|
+
top: never[];
|
|
30
|
+
bottom: never[];
|
|
31
|
+
diagonal: never[];
|
|
32
|
+
};
|
|
33
|
+
fill: {
|
|
34
|
+
patternType: string;
|
|
35
|
+
};
|
|
36
|
+
alignment: {
|
|
37
|
+
horizontal: null;
|
|
38
|
+
vertical: null;
|
|
39
|
+
wrapText: null;
|
|
40
|
+
};
|
|
41
|
+
number: Number;
|
|
42
|
+
numFmtId: Number;
|
|
43
|
+
constructor(number?: number, numFmtId?: number);
|
|
44
|
+
getXMLFont(): string;
|
|
45
|
+
getXMLBorder(): string;
|
|
46
|
+
getXMLFill(): void;
|
|
47
|
+
getNumber(): Number;
|
|
48
|
+
isTrueAlignment(): boolean;
|
|
49
|
+
addTag(tag: any): void;
|
|
50
|
+
getHashFont(): number;
|
|
51
|
+
getHashBorder(): number;
|
|
52
|
+
getHashFill(): number;
|
|
53
|
+
getHash(): number;
|
|
54
|
+
}
|
|
55
|
+
declare class WorkBook {
|
|
56
|
+
sheet: Array<Sheet>;
|
|
57
|
+
nameSheet: Array<String>;
|
|
58
|
+
styleList: Array<XLSXStyle>;
|
|
59
|
+
nextStyle: number;
|
|
60
|
+
author: string;
|
|
61
|
+
constructor(author?: string);
|
|
62
|
+
createSheet(name: any): number;
|
|
63
|
+
getIndexSheet(name: any): any;
|
|
64
|
+
getNameSheet(): String[];
|
|
65
|
+
getSheet(): Sheet[];
|
|
66
|
+
addRow(indexSheet: any, row?: null): number;
|
|
67
|
+
addCell(indexSheet: any, indexRow: any, data: any, style?: null): void;
|
|
68
|
+
getStyleList(): XLSXStyle[];
|
|
69
|
+
getAuthor(): string;
|
|
70
|
+
addStyle(style: any): any;
|
|
71
|
+
}
|
|
72
|
+
declare class Sheet {
|
|
73
|
+
rows: {};
|
|
74
|
+
lastRow: number;
|
|
75
|
+
maxCol: number;
|
|
76
|
+
merges: never[];
|
|
77
|
+
autoFilter: never[];
|
|
78
|
+
name: string;
|
|
79
|
+
customWidth: Array<number>;
|
|
80
|
+
constructor(name: any);
|
|
81
|
+
getName(): string;
|
|
82
|
+
getRows(): {};
|
|
83
|
+
getMerges(): never[];
|
|
84
|
+
getMaxCol(): number;
|
|
85
|
+
getMaxRow(): number;
|
|
86
|
+
addRow(row?: null): number;
|
|
87
|
+
addCell(indexRow: any, data: any, style?: null): void;
|
|
88
|
+
addMerges(firstCol: any, firstRow: any, lastCol: any, lastRow: any): void;
|
|
89
|
+
setCustomWidth(i: any, k: any): void;
|
|
90
|
+
}
|
|
91
|
+
declare class Cell {
|
|
92
|
+
data: null;
|
|
93
|
+
style: null;
|
|
94
|
+
constructor(data?: null, style?: null);
|
|
95
|
+
isNumber(): boolean;
|
|
96
|
+
haveWhitespace(): boolean;
|
|
97
|
+
isNull(): boolean;
|
|
98
|
+
getStyleNum(): any;
|
|
99
|
+
getData(): null;
|
|
100
|
+
setData(data: any): void;
|
|
101
|
+
setStyle(style: any): void;
|
|
102
|
+
}
|
|
103
|
+
declare class SheetMerge {
|
|
104
|
+
data: Array<number>;
|
|
105
|
+
constructor(firstCol: any, firstRow: any, lastCol: any, lastRow: any);
|
|
106
|
+
getFirst(): number[];
|
|
107
|
+
getLast(): number[];
|
|
108
|
+
getMerge(): string;
|
|
109
|
+
}
|
|
110
|
+
declare class RenderXLXS {
|
|
111
|
+
sharedString: Array<string>;
|
|
112
|
+
styleHash: Array<number>;
|
|
113
|
+
createXMLApp(nameSheet: any): string;
|
|
114
|
+
createXMLCore(creator: any): string;
|
|
115
|
+
createXMLShell(sheet: Sheet, styleList: Array<XLSXStyle>): string;
|
|
116
|
+
createXMLSharedStrings(): string;
|
|
117
|
+
createXMLWorkBook(nameSheet: any): string;
|
|
118
|
+
createXMLContentTypes(countSheet: any): string;
|
|
119
|
+
createXMLRelsWorkBook(countSheet: any): string;
|
|
120
|
+
returnRelsMain(): string;
|
|
121
|
+
createStyle(styleList: Array<XLSXStyle>): string;
|
|
122
|
+
returnThemeOne(): string;
|
|
123
|
+
download(data: any, name: any): void;
|
|
124
|
+
constructor(workbook: any, name?: string);
|
|
125
|
+
}
|
|
126
|
+
export {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export declare class TSZip {
|
|
2
|
+
files: Array<ZipObject>;
|
|
3
|
+
root: string;
|
|
4
|
+
signature: {
|
|
5
|
+
LOCAL_FILE_HEADER: string;
|
|
6
|
+
CENTRAL_FILE_HEADER: string;
|
|
7
|
+
CENTRAL_DIRECTORY_END: string;
|
|
8
|
+
ZIP64_CENTRAL_DIRECTORY_LOCATOR: string;
|
|
9
|
+
ZIP64_CENTRAL_DIRECTORY_END: string;
|
|
10
|
+
DATA_DESCRIPTOR: string;
|
|
11
|
+
};
|
|
12
|
+
compressions: TSZipStore;
|
|
13
|
+
options: {
|
|
14
|
+
base64: boolean;
|
|
15
|
+
binary: boolean;
|
|
16
|
+
dir: boolean;
|
|
17
|
+
date: null;
|
|
18
|
+
};
|
|
19
|
+
defaults: {
|
|
20
|
+
base64: boolean;
|
|
21
|
+
binary: boolean;
|
|
22
|
+
dir: boolean;
|
|
23
|
+
date: null;
|
|
24
|
+
};
|
|
25
|
+
constructor(data?: any, options?: any);
|
|
26
|
+
static decToHex(dec: any, bytes: any): string;
|
|
27
|
+
extend(o0: any, o1?: any): {};
|
|
28
|
+
prepareFileAttrs(o: any): any;
|
|
29
|
+
fileAdd(name: any, data: any, o: any): ZipObject;
|
|
30
|
+
parentFolder(path: any): any;
|
|
31
|
+
folderAdd(name: any): ZipObject;
|
|
32
|
+
prepareLocalHeaderData(file: any, utfEncodedFileName: any, compressionType: any): {
|
|
33
|
+
header: string;
|
|
34
|
+
compressedData: any;
|
|
35
|
+
};
|
|
36
|
+
load(stream: any, options: any): void;
|
|
37
|
+
filter(search: Function): ZipObject[];
|
|
38
|
+
file(name: any, data?: null, o?: null): this | ZipObject | ZipObject[];
|
|
39
|
+
folder(arg?: any): true | ZipObject[];
|
|
40
|
+
remove(name?: string): false | this;
|
|
41
|
+
generate(options?: any): string | Blob | ArrayBuffer;
|
|
42
|
+
static crc32(str: any, crc?: number): number;
|
|
43
|
+
static utf8encode(str: any): string;
|
|
44
|
+
static utf8decode(utftext: any): string;
|
|
45
|
+
}
|
|
46
|
+
declare class ZipObject {
|
|
47
|
+
name: string;
|
|
48
|
+
data: string;
|
|
49
|
+
options: {
|
|
50
|
+
base64: boolean;
|
|
51
|
+
binary: boolean;
|
|
52
|
+
dir: boolean;
|
|
53
|
+
date: null;
|
|
54
|
+
};
|
|
55
|
+
constructor(name: any, data: any, options: any);
|
|
56
|
+
asText(): string;
|
|
57
|
+
asBinary(): string;
|
|
58
|
+
asUint8Array(): Uint8Array;
|
|
59
|
+
asArrayBuffer(): ArrayBuffer;
|
|
60
|
+
}
|
|
61
|
+
declare class TSZipStore {
|
|
62
|
+
magic: string;
|
|
63
|
+
compress(content: any): any;
|
|
64
|
+
uncompress(content: any): any;
|
|
65
|
+
}
|
|
66
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare function jsxToHtml(element: JSX.Element): Promise<
|
|
2
|
+
export declare function jsxToHtml(element: JSX.Element): Promise<HTMLDivElement | null>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import './fNotification.css';
|
|
2
|
+
export interface IfNotification {
|
|
3
|
+
title?: string;
|
|
4
|
+
body: string;
|
|
5
|
+
variant: 'info' | 'error' | 'success' | 'warning';
|
|
6
|
+
timeSecClose?: number;
|
|
7
|
+
buttonClose?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const fNotification: ({ title, body, variant, timeSecClose, buttonClose }: IfNotification) => void;
|
|
10
|
+
export default fNotification;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { StoryFn } from '@storybook/react';
|
|
2
|
+
import 'bootstrap/dist/css/bootstrap.css';
|
|
3
|
+
import { IfNotification } from "./fNotification";
|
|
4
|
+
declare const _default: Meta<({ title, body, variant, timeSecClose, buttonClose }: IfNotification) => void>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Default: StoryFn<IfNotification>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./fNotification";
|
|
@@ -2,3 +2,4 @@ export { default as fAlert } from "./fAlert";
|
|
|
2
2
|
export { default as fConfirm } from "./fConfirm";
|
|
3
3
|
export { default as fPrompt } from "./fPrompt";
|
|
4
4
|
export { default as fExportTableToExcel } from "./fExportTableToExcel";
|
|
5
|
+
export { default as fNotification } from "./fNotification";
|