ados-rcm 1.1.504 → 1.1.507
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/AModule/AComponents/AEditor/modules/ImageCompressor.d.ts +32 -0
- package/dist/AModule/AComponents/AInput/AInput.d.ts +6 -0
- package/dist/AModule/AComponents/ATable/ATable.d.ts +18 -12
- package/dist/AModule/AUtils/strF.d.ts +1 -0
- package/dist/index.cjs.js +139 -135
- package/dist/index.es.js +16587 -16874
- package/package.json +2 -3
@@ -0,0 +1,32 @@
|
|
1
|
+
import { default as Quill } from 'quill';
|
2
|
+
export type OptionsObject = {
|
3
|
+
debug?: boolean;
|
4
|
+
handleOnPaste?: boolean | ((event: ClipboardEvent) => boolean);
|
5
|
+
ignoreImageTypes?: string[];
|
6
|
+
imageType?: string;
|
7
|
+
insertIntoEditor?: (base64URL: string, imageBlob: Blob, editor: Quill) => void;
|
8
|
+
keepImageTypes?: string[];
|
9
|
+
maxHeight?: number;
|
10
|
+
maxWidth?: number;
|
11
|
+
quality?: number;
|
12
|
+
suppressErrorLogging?: boolean;
|
13
|
+
validation?: boolean;
|
14
|
+
};
|
15
|
+
declare class ImageCompressor {
|
16
|
+
private quill;
|
17
|
+
private range?;
|
18
|
+
private options;
|
19
|
+
private imageDrop;
|
20
|
+
private fileHolder;
|
21
|
+
private Logger;
|
22
|
+
static b64toBlob(dataURI: string): Blob;
|
23
|
+
constructor(quill: Quill, options: OptionsObject);
|
24
|
+
destroy(): void;
|
25
|
+
selectLocalImage(onFileChanged?: () => void): void;
|
26
|
+
fileChanged(externallyProvidedFiles?: File[]): Promise<void>;
|
27
|
+
downscaleImageFromUrl(dataUrl: string): Promise<string>;
|
28
|
+
insertToEditor(url: string, blob: Blob): void;
|
29
|
+
logFileSize(dataUrl: string): void;
|
30
|
+
}
|
31
|
+
export type { OptionsObject as ImageCompressorOptions };
|
32
|
+
export default ImageCompressor;
|
@@ -29,6 +29,12 @@ export interface IAInputProps extends IABaseProps, IAWrapProps {
|
|
29
29
|
* Description : decides whether the input is focused or not
|
30
30
|
*/
|
31
31
|
autoFocus?: boolean;
|
32
|
+
/**
|
33
|
+
* dataList? : string[] | readonly string[]
|
34
|
+
*
|
35
|
+
* Description : dataList of AInput
|
36
|
+
*/
|
37
|
+
dataList?: string[] | readonly string[];
|
32
38
|
/**
|
33
39
|
* inputProps? : React.InputHTMLAttributes<HTMLInputElement>
|
34
40
|
*
|
@@ -34,10 +34,10 @@ export interface IATableTDProps<T extends IItem> extends IATableTHProps<T>, IATa
|
|
34
34
|
}
|
35
35
|
export interface IATableDef<T extends IItem> {
|
36
36
|
/**
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
37
|
+
* align? : TCanCallback<IATableTHProps<T>, React.CSSProperties['justifyContent']>
|
38
|
+
*
|
39
|
+
* Description : align of the column. type of justifyContent
|
40
|
+
*/
|
41
41
|
align?: TCanCallback<IATableTHProps<T>, React.CSSProperties['justifyContent']>;
|
42
42
|
/**
|
43
43
|
* asText? : TCanCallback<IATableTDProps<T>, string | number>
|
@@ -52,10 +52,10 @@ export interface IATableDef<T extends IItem> {
|
|
52
52
|
*/
|
53
53
|
colSpan?: TCanCallback<IATableTHProps<T>, number>;
|
54
54
|
/**
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
55
|
+
* content? : TCanCallback<IATableTDProps<T>, React.ReactNode>
|
56
|
+
*
|
57
|
+
* Description : content of the td
|
58
|
+
*/
|
59
59
|
content?: TCanCallback<IATableTDProps<T>, React.ReactNode>;
|
60
60
|
/**
|
61
61
|
* hAlign? : TCanCallback<IATableTHProps<T>, React.CSSProperties['justifyContent']>
|
@@ -115,10 +115,10 @@ export interface IATableDef<T extends IItem> {
|
|
115
115
|
*/
|
116
116
|
style?: TCanCallback<IATableTDProps<T>, React.CSSProperties>;
|
117
117
|
/**
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
118
|
+
* width? : number = 80
|
119
|
+
*
|
120
|
+
* Description : width of the column
|
121
|
+
*/
|
122
122
|
width?: number;
|
123
123
|
}
|
124
124
|
export type TATableDefs<T extends IItem> = {
|
@@ -329,6 +329,12 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
|
|
329
329
|
* Description : decides whether the input is focused or not
|
330
330
|
*/
|
331
331
|
autoFocus?: boolean;
|
332
|
+
/**
|
333
|
+
* dataList? : string[] | readonly string[]
|
334
|
+
*
|
335
|
+
* Description : dataList of the String filter
|
336
|
+
*/
|
337
|
+
dataList?: string[] | readonly string[];
|
332
338
|
/**
|
333
339
|
* filterKey? : keyof K = [key of this filter]
|
334
340
|
*
|