@vitrosoftware/common-ui-ts 1.1.22 → 1.1.25
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/css/common.css +1 -0
- package/css/std/controls/alert/alert.css +15 -10
- package/css/std/controls/command-menu/command-menu-dropdown-button.css +7 -2
- package/css/std/controls/dialog/dialog-button-close.css +3 -5
- package/css/std/controls/dialog/dialog-button.css +4 -0
- package/css/std/controls/dialog/dialog-content.css +9 -21
- package/css/std/controls/dialog/dialog-footer.css +6 -5
- package/css/std/controls/dialog/dialog-header.css +27 -3
- package/css/std/controls/dialog/dialog.css +3 -8
- package/css/std/controls/lookup-picker/lookup-picker.css +1 -0
- package/css/std/controls/pdf-viewer/pdf-viewer.css +369 -139
- package/css/std/controls/tab-group/tab-group.css +4 -0
- package/css/std/controls/table-view/treegrid.css +5 -4
- package/css/std/controls/tree-view/tree-view.css +21 -2
- package/css/std/controls/uploader/uploader.css +4 -0
- package/dist/constants/Event.d.ts +2 -1
- package/dist/controls/Dialog/Dialog.d.ts +16 -6
- package/dist/controls/Dialog/DialogButton.d.ts +2 -3
- package/dist/controls/Dialog/DialogComponent.d.ts +0 -1
- package/dist/controls/Dialog/DialogContent.d.ts +1 -0
- package/dist/controls/Dialog/DialogFooter.d.ts +5 -5
- package/dist/controls/Dialog/DialogHeader.d.ts +2 -0
- package/dist/controls/TabGroup/TabGroup.d.ts +1 -0
- package/dist/controls/TabGroup/TabGroupComponent.d.ts +1 -0
- package/dist/controls/TelerikUploader/TelerikUploaderContextImpl.d.ts +1 -0
- package/dist/controls/TelerikUploader/TelerikUploaderSettings.d.ts +1 -0
- package/dist/controls/TreeView/JsTreeViewContextImpl.d.ts +7 -0
- package/dist/controls/TreeView/TreeView.d.ts +2 -0
- package/dist/controls/TreeView/TreeViewConfig.d.ts +12 -6
- package/dist/controls/TreeView/TreeViewConstants.d.ts +23 -1
- package/dist/controls/TreeView/TreeViewContext.d.ts +7 -0
- package/dist/index.css +134 -88
- package/dist/index.d.ts +2 -2
- package/dist/index.js +241 -101
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +241 -101
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
- package/src/controls/PdfViewer/js/pdf-viewer.js +213 -71
|
@@ -190,6 +190,11 @@
|
|
|
190
190
|
.TWMenuItemText {
|
|
191
191
|
line-height: 150%;
|
|
192
192
|
padding-left: 12px;
|
|
193
|
+
white-space: normal;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
div.TWMenuItemText {
|
|
197
|
+
margin-left: 32px;
|
|
193
198
|
}
|
|
194
199
|
|
|
195
200
|
.TWMenuItemIcon {
|
|
@@ -576,10 +581,6 @@
|
|
|
576
581
|
padding: 0 8px !important;
|
|
577
582
|
}
|
|
578
583
|
|
|
579
|
-
.TWMenuItemText {
|
|
580
|
-
white-space: normal;
|
|
581
|
-
}
|
|
582
|
-
|
|
583
584
|
.TWMenuItem.TWCfgMenuItem#TGMenu-0-style {
|
|
584
585
|
display: none;
|
|
585
586
|
}
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
:global(#TreeView) :global(.ps) {
|
|
7
|
-
padding-top: 8px;
|
|
8
7
|
padding-right: 12px;
|
|
9
8
|
}
|
|
10
9
|
|
|
@@ -63,6 +62,10 @@
|
|
|
63
62
|
margin-left: 0;
|
|
64
63
|
}
|
|
65
64
|
|
|
65
|
+
:global(.vitro-root-node > .jstree-anchor > .jstree-checkbox) {
|
|
66
|
+
display: none;
|
|
67
|
+
}
|
|
68
|
+
|
|
66
69
|
.vitro-tree-view :global(.vitro-root-node) > :global(.jstree-anchor) > :global(.jstree-icon.folder) {
|
|
67
70
|
/* root-folder.svg URL-encoder for SVG */
|
|
68
71
|
background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.6464 5.35355C10.7402 5.44732 10.8674 5.5 11 5.5H19C20.3807 5.5 21.5 6.61929 21.5 8V18C21.5 19.3807 20.3807 20.5 19 20.5H5C3.61929 20.5 2.5 19.3807 2.5 18V6C2.5 4.61929 3.61929 3.5 5 3.5H7.75736C8.4204 3.5 9.05629 3.76339 9.52513 4.23223L10.6464 5.35355Z' stroke='%23999B9D' stroke-linejoin='round'/%3E%3Cpath d='M8 16L12 10' stroke='%23999B9D' stroke-linecap='round'/%3E%3Cpath d='M12 16L16 16' stroke='%23999B9D' stroke-linecap='round'/%3E%3C/svg%3E%0A") !important;
|
|
@@ -92,6 +95,7 @@
|
|
|
92
95
|
height: 32px !important;
|
|
93
96
|
line-height: 32px !important;
|
|
94
97
|
background-position: center !important;
|
|
98
|
+
background-size: 100%;
|
|
95
99
|
margin-right: 4px;
|
|
96
100
|
}
|
|
97
101
|
|
|
@@ -107,4 +111,19 @@
|
|
|
107
111
|
background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.5 7L14.5 12L9.5 17' stroke='%238E98A3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
|
|
108
112
|
background-repeat: no-repeat;
|
|
109
113
|
background-position: center center !important;
|
|
110
|
-
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.vitro-tree-view :global(.jstree-checkbox) {
|
|
117
|
+
/* checkbox-big-empty.svg URL-encoder for SVG */
|
|
118
|
+
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='2.5' y='2.5' width='19' height='19' rx='2' stroke='%23C0CAD5'/%3E%3C/svg%3E%0A");
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.vitro-tree-view :global(.jstree-checked .jstree-checkbox) {
|
|
122
|
+
/* checkbox-big-active.svg URL-encoder for SVG */
|
|
123
|
+
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='2' y='2' width='20' height='20' rx='2.5' fill='%234292F7'/%3E%3Cpath d='M16.7062 8.50593C17.0826 8.86144 17.0996 9.45479 16.7441 9.83121L11.4316 15.4562C11.2577 15.6404 11.0166 15.7463 10.7634 15.7499C10.5101 15.7535 10.2662 15.6545 10.0871 15.4754L7.27459 12.6629C6.90847 12.2968 6.90847 11.7032 7.27459 11.3371C7.6407 10.971 8.2343 10.971 8.60041 11.3371L10.7308 13.4675L15.3809 8.54379C15.7364 8.16737 16.3298 8.15042 16.7062 8.50593Z' fill='white'/%3E%3C/svg%3E%0A");
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.vitro-tree-view :global(.jstree-checkbox.jstree-undetermined) {
|
|
127
|
+
/* checkbox-big-undetermined.svg URL-encoder for SVG */
|
|
128
|
+
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='7' y='7' width='10' height='10' rx='1' fill='%234292F7'/%3E%3Crect x='2.625' y='2.625' width='18.75' height='18.75' rx='1.875' stroke='%23C0CAD5' stroke-width='1.25'/%3E%3C/svg%3E%0A");
|
|
129
|
+
}
|
|
@@ -1,13 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DialogButtonProps } from './DialogButton';
|
|
3
|
+
export interface DialogProps {
|
|
3
4
|
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
imageUrl?: string;
|
|
7
|
+
buttonList?: DialogButtonProps[];
|
|
4
8
|
labelClose?: string;
|
|
5
|
-
labelAction?: string;
|
|
6
9
|
isDismissible?: boolean;
|
|
10
|
+
onClose?: (dialog: any) => any;
|
|
7
11
|
width?: number;
|
|
8
12
|
height?: number;
|
|
9
|
-
|
|
10
|
-
|
|
13
|
+
content?: {
|
|
14
|
+
component: React.FunctionComponent<any>;
|
|
15
|
+
props: {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
isHideFooter?: boolean;
|
|
20
|
+
dialog?: any;
|
|
21
|
+
children?: React.ReactNode;
|
|
11
22
|
}
|
|
12
23
|
export declare const Dialog: (props: DialogProps) => JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
interface DialogButtonProps {
|
|
2
|
+
export interface DialogButtonProps {
|
|
3
3
|
text: string;
|
|
4
|
-
onClick: () => any;
|
|
4
|
+
onClick: (dialog: any) => any;
|
|
5
5
|
isDisabled?: boolean;
|
|
6
6
|
className?: string;
|
|
7
7
|
}
|
|
8
8
|
export declare const DialogButton: (props: DialogButtonProps) => JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DialogButtonProps } from './DialogButton';
|
|
2
3
|
interface DialogFooterProps {
|
|
4
|
+
buttonList?: DialogButtonProps[];
|
|
3
5
|
labelClose?: string;
|
|
4
|
-
|
|
5
|
-
onActionClick?: () => any;
|
|
6
|
-
onClose?: () => any;
|
|
6
|
+
onClose?: (dialog: any) => any;
|
|
7
7
|
isDismissible?: boolean;
|
|
8
|
-
|
|
8
|
+
dialog?: any;
|
|
9
9
|
}
|
|
10
10
|
export declare const DialogFooter: (props: DialogFooterProps) => JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -31,6 +31,7 @@ export declare class TelerikUploaderContextImpl implements TelerikUploaderContex
|
|
|
31
31
|
private getProgressInfo;
|
|
32
32
|
addFile(): void;
|
|
33
33
|
setAthorizationToken(token: string): void;
|
|
34
|
+
private setFileImage;
|
|
34
35
|
private setProgressBar;
|
|
35
36
|
private setFileProgress;
|
|
36
37
|
private initOnDrop;
|
|
@@ -25,4 +25,11 @@ export declare class JsTreeViewContextImpl implements TreeViewContext {
|
|
|
25
25
|
openNode(node: any, callback?: any, durationMs?: number): void;
|
|
26
26
|
editNode(): void;
|
|
27
27
|
getParent(node: any): any;
|
|
28
|
+
getChecked(full: boolean): any[];
|
|
29
|
+
getUndetermined(full: boolean): any[];
|
|
30
|
+
getCheckedChildList(id: string): string[];
|
|
31
|
+
getTopChecked(full: boolean): any[];
|
|
32
|
+
getBottomChecked(full: boolean): any[];
|
|
33
|
+
isChecked(node: any): boolean;
|
|
34
|
+
isUndetermined(node: any): boolean;
|
|
28
35
|
}
|
|
@@ -5,6 +5,8 @@ interface TreeViewProps {
|
|
|
5
5
|
id: string;
|
|
6
6
|
getData: (obj: any, cb: any) => any;
|
|
7
7
|
onInit: (jsTreeView: TreeViewContext) => any;
|
|
8
|
+
isCheckboxSelect?: boolean;
|
|
9
|
+
isSaveCheckboxState?: boolean;
|
|
8
10
|
}
|
|
9
11
|
export declare const TreeView: (props: TreeViewProps) => JSX.Element;
|
|
10
12
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { PLUGIN, CASCADE, NODE_TYPE } from './TreeViewConstants';
|
|
1
2
|
export declare class TreeViewConfig {
|
|
2
|
-
static getConfig(): {
|
|
3
|
+
static getConfig(id: string, checkboxSelect?: boolean, saveChecked?: boolean): {
|
|
3
4
|
core: {
|
|
4
5
|
check_callback: boolean;
|
|
5
6
|
themes: {
|
|
@@ -8,20 +9,25 @@ export declare class TreeViewConfig {
|
|
|
8
9
|
multiple: boolean;
|
|
9
10
|
data: (obj: any, cb: any) => any;
|
|
10
11
|
};
|
|
11
|
-
plugins:
|
|
12
|
+
plugins: PLUGIN[];
|
|
12
13
|
types: {
|
|
13
14
|
folder: {
|
|
14
|
-
icon:
|
|
15
|
-
new_node: string;
|
|
15
|
+
icon: NODE_TYPE;
|
|
16
16
|
};
|
|
17
17
|
file: {
|
|
18
|
-
icon:
|
|
18
|
+
icon: NODE_TYPE;
|
|
19
19
|
valid_children: string[];
|
|
20
|
-
new_node: string;
|
|
21
20
|
};
|
|
22
21
|
};
|
|
22
|
+
state: {
|
|
23
|
+
key: string;
|
|
24
|
+
filter: (state: any) => any;
|
|
25
|
+
};
|
|
23
26
|
checkbox: {
|
|
27
|
+
visible: boolean;
|
|
24
28
|
three_state: boolean;
|
|
29
|
+
tie_selection: boolean;
|
|
30
|
+
cascade: CASCADE;
|
|
25
31
|
};
|
|
26
32
|
contextmenu: () => never[];
|
|
27
33
|
};
|
|
@@ -15,7 +15,14 @@ export declare enum METHOD {
|
|
|
15
15
|
SELECT_NODE = "select_node",
|
|
16
16
|
OPEN_NODE = "open_node",
|
|
17
17
|
EDIT = "edit",
|
|
18
|
-
GET_PARENT = "get_parent"
|
|
18
|
+
GET_PARENT = "get_parent",
|
|
19
|
+
GET_CHECKED = "get_checked",
|
|
20
|
+
GET_UNDETERMINED = "get_undetermined",
|
|
21
|
+
GET_CHECKED_DESCENDANTS = "get_checked_descendants",
|
|
22
|
+
GET_TOP_CHECKED = "get_top_checked",
|
|
23
|
+
GET_BOTTOM_CHECKED = "get_bottom_checked",
|
|
24
|
+
IS_CHECKED = "is_checked",
|
|
25
|
+
IS_UNDETERMINED = "is_undetermined"
|
|
19
26
|
}
|
|
20
27
|
export declare enum EVENT {
|
|
21
28
|
CLOSE_NODE = "close_node.jstree",
|
|
@@ -27,3 +34,18 @@ export declare enum NODE_TYPE {
|
|
|
27
34
|
FOLDER = "folder",
|
|
28
35
|
FILE = "file"
|
|
29
36
|
}
|
|
37
|
+
export declare enum PLUGIN {
|
|
38
|
+
STATE = "state",
|
|
39
|
+
CHECKBOX = "checkbox",
|
|
40
|
+
SEARCH = "search",
|
|
41
|
+
UNIQUE = "unique",
|
|
42
|
+
TYPES = "types",
|
|
43
|
+
WHOLEROW = "wholerow",
|
|
44
|
+
THEMES = "themes",
|
|
45
|
+
SORT = "sort"
|
|
46
|
+
}
|
|
47
|
+
export declare enum CASCADE {
|
|
48
|
+
UP = "up",
|
|
49
|
+
DOWN = "down",
|
|
50
|
+
UNDETERMINED = "undetermined"
|
|
51
|
+
}
|
|
@@ -22,4 +22,11 @@ export interface TreeViewContext {
|
|
|
22
22
|
refresh(): void;
|
|
23
23
|
renameNode(node: any, newName: string): void;
|
|
24
24
|
getParent(node: any): string;
|
|
25
|
+
getChecked(full: boolean): any[];
|
|
26
|
+
getUndetermined(full: boolean): any[];
|
|
27
|
+
getCheckedChildList(id: string): string[];
|
|
28
|
+
getTopChecked(full: boolean): any[];
|
|
29
|
+
getBottomChecked(full: boolean): any[];
|
|
30
|
+
isChecked(node: any): boolean;
|
|
31
|
+
isUndetermined(node: any): boolean;
|
|
25
32
|
}
|