iszolea-ui 1.2.21 → 1.2.23
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/css/index.css +1 -1
- package/dist/css/index.legacy.css +1 -1
- package/dist/css/theme.classic.css +1 -1
- package/dist/css/theme.dark.css +1 -1
- package/dist/js/index.development.js +458 -5
- package/dist/js/index.js +28 -9
- package/dist/types/Reports/Pages/CDM/ControlConfigurator.d.ts +31 -2
- package/dist/types/Reports/Pages/CDM/ControlDisplay.d.ts +13 -0
- package/dist/types/Utils/Image.d.ts +1 -0
- package/dist/types/Utils/Index.d.ts +1 -0
- package/dist/types/Widgets/DocumentManager/Index.d.ts +28 -0
- package/dist/types/Widgets/ImageGallery/Index.d.ts +20 -0
- package/dist/types/Widgets/ImageManager/Index.d.ts +30 -0
- package/dist/types/index.d.ts +6 -0
- package/package.json +1 -1
|
@@ -3,7 +3,9 @@ export declare const enum DisplayType {
|
|
|
3
3
|
PredefinedValues = 2,
|
|
4
4
|
RabbitAction = 3,
|
|
5
5
|
Link = 4,
|
|
6
|
-
Money = 5
|
|
6
|
+
Money = 5,
|
|
7
|
+
PDF = 6,
|
|
8
|
+
Image = 7
|
|
7
9
|
}
|
|
8
10
|
export interface IIconsColumnEditorItem {
|
|
9
11
|
value: string;
|
|
@@ -22,9 +24,16 @@ export interface ILinkEditorData {
|
|
|
22
24
|
text: string;
|
|
23
25
|
openNewTab: boolean;
|
|
24
26
|
}
|
|
27
|
+
export interface IDocumentEditorData {
|
|
28
|
+
multiple: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface IImageEditorData {
|
|
31
|
+
multiple: boolean;
|
|
32
|
+
showPreview: boolean;
|
|
33
|
+
}
|
|
25
34
|
export interface IMoneyEditorData {
|
|
26
35
|
}
|
|
27
|
-
export declare type IDisplayTypeSettings = IDisplayIconsTypeSettings | IDisplayIPredefinedValuesTypeSettings | IDisplayIRabbitActionTypeSettings | IDisplayILinkTypeSettings | IDisplayIMoneyTypeSettings;
|
|
36
|
+
export declare type IDisplayTypeSettings = IDisplayIconsTypeSettings | IDisplayIPredefinedValuesTypeSettings | IDisplayIRabbitActionTypeSettings | IDisplayILinkTypeSettings | IDisplayIMoneyTypeSettings | IDisplayIDocumentTypeSettings | IDisplayIImageTypeSettings;
|
|
28
37
|
export interface IDisplayIconsTypeSettings {
|
|
29
38
|
type: DisplayType.Icons;
|
|
30
39
|
data: IIconsColumnEditorItem[];
|
|
@@ -45,6 +54,14 @@ export interface IDisplayIMoneyTypeSettings {
|
|
|
45
54
|
type: DisplayType.Money;
|
|
46
55
|
data: IMoneyEditorData;
|
|
47
56
|
}
|
|
57
|
+
export interface IDisplayIDocumentTypeSettings {
|
|
58
|
+
type: DisplayType.PDF;
|
|
59
|
+
data: IDocumentEditorData;
|
|
60
|
+
}
|
|
61
|
+
export interface IDisplayIImageTypeSettings {
|
|
62
|
+
type: DisplayType.Image;
|
|
63
|
+
data: IImageEditorData;
|
|
64
|
+
}
|
|
48
65
|
export interface IControlConfiguratorOptions {
|
|
49
66
|
$container: JQuery;
|
|
50
67
|
isStandalonePage: boolean;
|
|
@@ -57,6 +74,18 @@ export interface IControlConfiguratorOptions {
|
|
|
57
74
|
isDataReadonly?: boolean;
|
|
58
75
|
disableGlobalSearch?: boolean;
|
|
59
76
|
}
|
|
77
|
+
export declare const enum DocumentType {
|
|
78
|
+
Image = 1,
|
|
79
|
+
PDF = 2
|
|
80
|
+
}
|
|
81
|
+
export interface IPDFTypeItem {
|
|
82
|
+
Id: string;
|
|
83
|
+
Name: string;
|
|
84
|
+
Url: string;
|
|
85
|
+
}
|
|
86
|
+
export interface IImageTypeItem extends IPDFTypeItem {
|
|
87
|
+
PreviewUrl: string;
|
|
88
|
+
}
|
|
60
89
|
export declare class ControlConfigurator {
|
|
61
90
|
readonly $container: JQuery;
|
|
62
91
|
private readonly isStandalonePage;
|
|
@@ -13,6 +13,8 @@ export interface IControlDisplayOptions {
|
|
|
13
13
|
controlLogsUrl: string;
|
|
14
14
|
loadDataUrl: string;
|
|
15
15
|
updateDataUrl: string;
|
|
16
|
+
uploadDocumentUrl: string;
|
|
17
|
+
downloadDocumentUrl: string;
|
|
16
18
|
gridFiltersManagerOptions: IGridFiltersManagerOptions;
|
|
17
19
|
gridViewsManagerOptions: IGridViewsManagerOptions;
|
|
18
20
|
gridDisplaysManagerOptions: IGridDisplaysManagerOptions;
|
|
@@ -41,8 +43,19 @@ export declare class ControlDisplay {
|
|
|
41
43
|
private gridFiltersToolbarComponent;
|
|
42
44
|
private gridDisplaysToolbarComponent;
|
|
43
45
|
private multipleEditingDataGridPlugin;
|
|
46
|
+
private readonly imageManager;
|
|
47
|
+
private readonly documentManager;
|
|
48
|
+
private readonly imageGallery;
|
|
49
|
+
private readonly uploadDocumentUrl;
|
|
50
|
+
private readonly downloadDocumentUrl;
|
|
51
|
+
private activeDocumentCellInfo;
|
|
52
|
+
private readonly loadPanel;
|
|
44
53
|
constructor(options: IControlDisplayOptions);
|
|
54
|
+
private showLoader;
|
|
55
|
+
private hideLoader;
|
|
45
56
|
render(): void;
|
|
57
|
+
private uploadAndUpdateDocuments;
|
|
58
|
+
private deleteDocumentHandler;
|
|
46
59
|
private hasPermisson;
|
|
47
60
|
private buildTree;
|
|
48
61
|
private renderDisplayType;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const imageToBase64: (image: File) => Promise<string>;
|
|
@@ -2,3 +2,4 @@ export { DevExpressEventArgs } from './DevExpressEventArgs';
|
|
|
2
2
|
export { EventEmitter } from './EventEmitter';
|
|
3
3
|
export { getGeneralUserFriendlyErrorMessage } from './GeneralUserFriendlyErrorMessage';
|
|
4
4
|
export { createGridExportFunction } from './GridExport';
|
|
5
|
+
export { imageToBase64 } from './Image';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { EventEmitter } from '../../Utils/EventEmitter';
|
|
2
|
+
import { IPDFTypeItem } from '../../Reports/Pages/CDM/ControlConfigurator';
|
|
3
|
+
export interface IDocumentManagerSettings {
|
|
4
|
+
width?: number | string;
|
|
5
|
+
height?: number | string;
|
|
6
|
+
}
|
|
7
|
+
export default class DocumentManager extends EventEmitter {
|
|
8
|
+
private readonly ON_UPLOADED;
|
|
9
|
+
private readonly ON_DELETED;
|
|
10
|
+
private readonly ON_DOWNLOAD;
|
|
11
|
+
private readonly settings;
|
|
12
|
+
private $content;
|
|
13
|
+
private dialog;
|
|
14
|
+
private items;
|
|
15
|
+
private list;
|
|
16
|
+
private uploader;
|
|
17
|
+
constructor(settings?: IDocumentManagerSettings);
|
|
18
|
+
private initMarkup;
|
|
19
|
+
private initUploader;
|
|
20
|
+
private initList;
|
|
21
|
+
open(documents?: Array<IPDFTypeItem>, readonly?: boolean): void;
|
|
22
|
+
close(): void;
|
|
23
|
+
set documents(items: Array<IPDFTypeItem>);
|
|
24
|
+
get documents(): Array<IPDFTypeItem>;
|
|
25
|
+
onUploaded(cb: (documents: Array<File>) => void): void;
|
|
26
|
+
onDeleted(cb: (id: string) => void): void;
|
|
27
|
+
onDownload(cb: (id: string) => void): void;
|
|
28
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EventEmitter } from '../../Utils/EventEmitter';
|
|
2
|
+
import { IImageTypeItem } from '../../Reports/Pages/CDM/ControlConfigurator';
|
|
3
|
+
export interface IImageGallerySettings {
|
|
4
|
+
width?: number | string;
|
|
5
|
+
height?: number | string;
|
|
6
|
+
}
|
|
7
|
+
export default class ImageGallery extends EventEmitter {
|
|
8
|
+
private readonly settings;
|
|
9
|
+
private $content;
|
|
10
|
+
private dialog;
|
|
11
|
+
private items;
|
|
12
|
+
private gallery;
|
|
13
|
+
constructor(settings?: IImageGallerySettings);
|
|
14
|
+
private initMarkup;
|
|
15
|
+
private initGallery;
|
|
16
|
+
open(images?: Array<IImageTypeItem>): void;
|
|
17
|
+
close(): void;
|
|
18
|
+
set images(items: Array<IImageTypeItem>);
|
|
19
|
+
get images(): Array<IImageTypeItem>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { EventEmitter } from '../../Utils/EventEmitter';
|
|
2
|
+
import { IImageTypeItem } from '../../Reports/Pages/CDM/ControlConfigurator';
|
|
3
|
+
export interface IImageManagerSettings {
|
|
4
|
+
width?: number | string;
|
|
5
|
+
height?: number | string;
|
|
6
|
+
}
|
|
7
|
+
export default class ImageManager extends EventEmitter {
|
|
8
|
+
private readonly ON_UPLOADED;
|
|
9
|
+
private readonly ON_DELETED;
|
|
10
|
+
private readonly settings;
|
|
11
|
+
private $content;
|
|
12
|
+
private dialog;
|
|
13
|
+
private items;
|
|
14
|
+
private list;
|
|
15
|
+
private uploader;
|
|
16
|
+
private gallery;
|
|
17
|
+
constructor(settings?: IImageManagerSettings);
|
|
18
|
+
private initMarkup;
|
|
19
|
+
private initUploader;
|
|
20
|
+
private initList;
|
|
21
|
+
private initGallery;
|
|
22
|
+
open(images?: Array<IImageTypeItem>, readonly?: boolean): void;
|
|
23
|
+
close(): void;
|
|
24
|
+
set images(items: Array<IImageTypeItem>);
|
|
25
|
+
get images(): Array<IImageTypeItem>;
|
|
26
|
+
set selectedIndex(number: number);
|
|
27
|
+
get selectedIndex(): number;
|
|
28
|
+
onUploaded(cb: (images: Array<File>) => void): void;
|
|
29
|
+
onDeleted(cb: (id: string) => void): void;
|
|
30
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -18,6 +18,9 @@ import fullScreen from './Widgets/FullScreen';
|
|
|
18
18
|
import defaultToolbar from './Widgets/DefaultToolbar';
|
|
19
19
|
import defaultGridObsolete from './Widgets/Grid/DefaultGridObsolete';
|
|
20
20
|
import defaultTreeList from './Widgets/Grid/DefaultTreeList';
|
|
21
|
+
import ImageManager from './Widgets/ImageManager/Index';
|
|
22
|
+
import DocumentManager from './Widgets/DocumentManager/Index';
|
|
23
|
+
import ImageGallery from './Widgets/ImageGallery/Index';
|
|
21
24
|
import defaultGrid from './Widgets/Grid/DefaultGrid';
|
|
22
25
|
import * as imageCropDialog from './Widgets/ImageCropDialog';
|
|
23
26
|
import { AccountSettingsPage } from './Pages/AccountSettings';
|
|
@@ -74,6 +77,9 @@ declare const IszoleaUI: {
|
|
|
74
77
|
defaultToolbar: typeof defaultToolbar;
|
|
75
78
|
backgroundImageViewer: typeof backgroundImageViewer;
|
|
76
79
|
imageCropDialog: typeof imageCropDialog;
|
|
80
|
+
ImageManager: typeof ImageManager;
|
|
81
|
+
DocumentManager: typeof DocumentManager;
|
|
82
|
+
ImageGallery: typeof ImageGallery;
|
|
77
83
|
};
|
|
78
84
|
pages: {
|
|
79
85
|
AccountSettingsPage: typeof AccountSettingsPage;
|