@vitrosoftware/common-ui-ts 1.0.3 → 1.0.5
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/white/controls/breadcrumbs/breadcrumbs.css +2 -2
- package/css/white/controls/top-level-menu/top-level-menu.css +8 -2
- package/css/white/controls/tree-view/tree-view.css +13 -1
- package/css/white/third-party/treegrid.css +5 -1
- package/dist/controls/TableView/TableView.d.ts +2 -0
- package/dist/controls/TableView/TableViewConstants.d.ts +3 -0
- package/dist/controls/TableView/TableViewContext.d.ts +1 -0
- package/dist/controls/TableView/TreeGrid.d.ts +0 -3
- package/dist/controls/TableView/TreeGridTableViewContextImpl.d.ts +3 -0
- package/dist/controls/TreeView/JsTreeViewContextImpl.d.ts +3 -0
- package/dist/controls/TreeView/TreeViewConstants.d.ts +4 -1
- package/dist/controls/TreeView/TreeViewContext.d.ts +3 -0
- package/dist/index.css +23 -5
- package/dist/index.js +32 -6
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +32 -6
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
- package/dist/controls/TableView/constants.d.ts +0 -14
- package/dist/controls/TelerikUploader/constants.d.ts +0 -5
- package/dist/controls/TreeView/constants.d.ts +0 -16
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
margin: 0;
|
|
6
6
|
margin-right: auto;
|
|
7
7
|
border-left: 1px solid #BDBDBD;
|
|
8
|
-
font-size:
|
|
8
|
+
font-size: 10pt;
|
|
9
9
|
font-family: 'GraphikRegular';
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.vitro-top-level-menu > li {
|
|
18
|
-
margin: 0
|
|
18
|
+
margin: 0 16px;
|
|
19
19
|
white-space: nowrap;
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -86,4 +86,10 @@
|
|
|
86
86
|
background-repeat: no-repeat;
|
|
87
87
|
/* menu.svg URL-encoder for SVG */
|
|
88
88
|
background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 16 16' style='enable-background:new 0 0 16 16;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23BDBDBD;%7D%0A%3C/style%3E%3Cg%3E%3Ccircle class='st0' cx='1.8' cy='1.8' r='1.8'/%3E%3Ccircle class='st0' cx='8.2' cy='7.8' r='1.8'/%3E%3Ccircle class='st0' cx='1.8' cy='7.8' r='1.8'/%3E%3Ccircle class='st0' cx='1.8' cy='14.2' r='1.8'/%3E%3Ccircle class='st0' cx='8.2' cy='14.2' r='1.8'/%3E%3Ccircle class='st0' cx='8.2' cy='1.8' r='1.8'/%3E%3Ccircle class='st0' cx='14.2' cy='1.8' r='1.8'/%3E%3Ccircle class='st0' cx='14.2' cy='7.8' r='1.8'/%3E%3Ccircle class='st0' cx='14.2' cy='14.2' r='1.8'/%3E%3C/g%3E%3C/svg%3E%0A");
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@media (max-width: 500px) {
|
|
92
|
+
.vitro-top-level-menu > li {
|
|
93
|
+
margin: 0 12px;
|
|
94
|
+
}
|
|
89
95
|
}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
:global(#TreeView) {
|
|
2
|
-
|
|
2
|
+
height: 100%;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
+
.vitro-tree-view {
|
|
6
|
+
height: 100%;
|
|
7
|
+
padding: 20px 24px;
|
|
8
|
+
overflow-y: auto;
|
|
9
|
+
overflow-x: hidden;
|
|
10
|
+
}
|
|
11
|
+
|
|
5
12
|
.vitro-tree-view :global(.jstree-anchor) {
|
|
6
13
|
line-height: 28px;
|
|
7
14
|
height: 28px;
|
|
@@ -21,6 +28,11 @@
|
|
|
21
28
|
box-shadow: none;
|
|
22
29
|
}
|
|
23
30
|
|
|
31
|
+
.vitro-tree-view :global(.jstree-node):has(:global(.jstree-clicked.focus)) :global(.jstree-wholerow-clicked) {
|
|
32
|
+
background: #0097ff29;
|
|
33
|
+
border: 1px solid #0097ff;
|
|
34
|
+
}
|
|
35
|
+
|
|
24
36
|
.vitro-tree-view :global(.jstree-wholerow-clicked.jstree-wholerow-hovered) {
|
|
25
37
|
background: #E0E0E0;
|
|
26
38
|
box-shadow: none;
|
|
@@ -31,6 +31,10 @@
|
|
|
31
31
|
|
|
32
32
|
.TWDataRow td {
|
|
33
33
|
padding: 1px 3px 0px 3px !important;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.TWFillRow {
|
|
37
|
+
background: #fff !important;
|
|
34
38
|
}
|
|
35
39
|
|
|
36
40
|
.TWNoRight.TWHeaderText, .TWNoRight .TWHeaderText {
|
|
@@ -401,7 +405,7 @@
|
|
|
401
405
|
}
|
|
402
406
|
|
|
403
407
|
.TWFocusRowBackground {
|
|
404
|
-
background: #
|
|
408
|
+
background: #0097ff !important;
|
|
405
409
|
}
|
|
406
410
|
|
|
407
411
|
.HideCol0IsFavorite.TWCellHeader {
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TableViewProps } from './TableView';
|
|
3
|
-
import { TableViewContext } from './TableViewContext';
|
|
4
|
-
export declare const tableViewList: Map<string, TableViewContext>;
|
|
5
|
-
export declare function getTableViewById(id: string): TableViewContext | undefined;
|
|
6
3
|
export declare const TreeGrid: (props: TableViewProps) => JSX.Element;
|
|
7
4
|
declare global {
|
|
8
5
|
namespace JSX {
|
|
@@ -2,6 +2,8 @@ import { TableViewContext } from './TableViewContext';
|
|
|
2
2
|
import { TableViewRow } from './TableViewRow';
|
|
3
3
|
import { TableViewCol } from './TableViewCol';
|
|
4
4
|
import { TableViewEventHandler } from './TableViewEventHandler';
|
|
5
|
+
export declare const tableViewList: Map<string, TableViewContext>;
|
|
6
|
+
export declare function getTableViewById(id: string): TableViewContext | undefined;
|
|
5
7
|
export declare class TreeGridTableViewContextImpl implements TableViewContext {
|
|
6
8
|
private grid;
|
|
7
9
|
readonly id: string;
|
|
@@ -54,4 +56,5 @@ export declare class TreeGridTableViewContextImpl implements TableViewContext {
|
|
|
54
56
|
getFirst(row?: TableViewRow, type?: number): TableViewRow;
|
|
55
57
|
setEventHandler(eventHandler: TableViewEventHandler): void;
|
|
56
58
|
endEdit(success: boolean): any;
|
|
59
|
+
expandRow(row: TableViewRow): void;
|
|
57
60
|
}
|
|
@@ -18,8 +18,11 @@ export declare class JsTreeViewContextImpl implements TreeViewContext {
|
|
|
18
18
|
createNewNode(parent: any, node: any): void;
|
|
19
19
|
renameNode(node: any, newName: string): void;
|
|
20
20
|
redrawNode(node: any, deep?: boolean): void;
|
|
21
|
+
refreshNode(node: any): void;
|
|
22
|
+
refresh(): void;
|
|
21
23
|
deleteNode(node: any): void;
|
|
22
24
|
selectNode(node: any): void;
|
|
23
25
|
openNode(node: any): void;
|
|
24
26
|
editNode(): void;
|
|
27
|
+
getParent(node: any): any;
|
|
25
28
|
}
|
|
@@ -9,8 +9,11 @@ export declare enum TREE_VIEW {
|
|
|
9
9
|
CREATE_NODE = "create_node",
|
|
10
10
|
RENAME_NODE = "rename_node",
|
|
11
11
|
REDRAW_NODE = "redraw_node",
|
|
12
|
+
REFRESH_NODE = "refresh_node",
|
|
13
|
+
REFRESH = "refresh",
|
|
12
14
|
DELETE_NODE = "delete_node",
|
|
13
15
|
SELECT_NODE = "select_node",
|
|
14
16
|
OPEN_NODE = "open_node",
|
|
15
|
-
EDIT = "edit"
|
|
17
|
+
EDIT = "edit",
|
|
18
|
+
GET_PARENT = "get_parent"
|
|
16
19
|
}
|
|
@@ -18,5 +18,8 @@ export interface TreeViewContext {
|
|
|
18
18
|
editNode(): void;
|
|
19
19
|
createNewNode(parent: any, node: any): void;
|
|
20
20
|
redrawNode(node: any, deep?: boolean): void;
|
|
21
|
+
refreshNode(node: any): void;
|
|
22
|
+
refresh(): void;
|
|
21
23
|
renameNode(node: any, newName: string): void;
|
|
24
|
+
getParent(node: any): string;
|
|
22
25
|
}
|
package/dist/index.css
CHANGED
|
@@ -175,9 +175,9 @@
|
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
@media (max-width:
|
|
178
|
+
@media (max-width: 500px) {
|
|
179
179
|
._breadcrumbs_vitro-breadcrumbs_1H9SaWn {
|
|
180
|
-
margin-left:
|
|
180
|
+
margin-left: 26px;
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
margin: 0;
|
|
189
189
|
margin-right: auto;
|
|
190
190
|
border-left: 1px solid #BDBDBD;
|
|
191
|
-
font-size:
|
|
191
|
+
font-size: 10pt;
|
|
192
192
|
font-family: 'GraphikRegular';
|
|
193
193
|
}
|
|
194
194
|
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
._top-level-menu_vitro-top-level-menu_38-ZEUx > li {
|
|
201
|
-
margin: 0
|
|
201
|
+
margin: 0 16px;
|
|
202
202
|
white-space: nowrap;
|
|
203
203
|
}
|
|
204
204
|
|
|
@@ -269,12 +269,25 @@
|
|
|
269
269
|
background-repeat: no-repeat;
|
|
270
270
|
/* menu.svg URL-encoder for SVG */
|
|
271
271
|
background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 16 16' style='enable-background:new 0 0 16 16;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23BDBDBD;%7D%0A%3C/style%3E%3Cg%3E%3Ccircle class='st0' cx='1.8' cy='1.8' r='1.8'/%3E%3Ccircle class='st0' cx='8.2' cy='7.8' r='1.8'/%3E%3Ccircle class='st0' cx='1.8' cy='7.8' r='1.8'/%3E%3Ccircle class='st0' cx='1.8' cy='14.2' r='1.8'/%3E%3Ccircle class='st0' cx='8.2' cy='14.2' r='1.8'/%3E%3Ccircle class='st0' cx='8.2' cy='1.8' r='1.8'/%3E%3Ccircle class='st0' cx='14.2' cy='1.8' r='1.8'/%3E%3Ccircle class='st0' cx='14.2' cy='7.8' r='1.8'/%3E%3Ccircle class='st0' cx='14.2' cy='14.2' r='1.8'/%3E%3C/g%3E%3C/svg%3E%0A");
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
@media (max-width: 500px) {
|
|
275
|
+
._top-level-menu_vitro-top-level-menu_38-ZEUx > li {
|
|
276
|
+
margin: 0 12px;
|
|
277
|
+
}
|
|
272
278
|
}
|
|
273
279
|
|
|
274
280
|
#TreeView {
|
|
275
|
-
|
|
281
|
+
height: 100%;
|
|
276
282
|
}
|
|
277
283
|
|
|
284
|
+
._tree-view_vitro-tree-view_3R9kjAJ {
|
|
285
|
+
height: 100%;
|
|
286
|
+
padding: 20px 24px;
|
|
287
|
+
overflow-y: auto;
|
|
288
|
+
overflow-x: hidden;
|
|
289
|
+
}
|
|
290
|
+
|
|
278
291
|
._tree-view_vitro-tree-view_3R9kjAJ .jstree-anchor {
|
|
279
292
|
line-height: 28px;
|
|
280
293
|
height: 28px;
|
|
@@ -294,6 +307,11 @@
|
|
|
294
307
|
box-shadow: none;
|
|
295
308
|
}
|
|
296
309
|
|
|
310
|
+
._tree-view_vitro-tree-view_3R9kjAJ .jstree-node:has(.jstree-clicked.focus) .jstree-wholerow-clicked {
|
|
311
|
+
background: #0097ff29;
|
|
312
|
+
border: 1px solid #0097ff;
|
|
313
|
+
}
|
|
314
|
+
|
|
297
315
|
._tree-view_vitro-tree-view_3R9kjAJ .jstree-wholerow-clicked.jstree-wholerow-hovered {
|
|
298
316
|
background: #E0E0E0;
|
|
299
317
|
box-shadow: none;
|
package/dist/index.js
CHANGED
|
@@ -19871,10 +19871,13 @@ var TREE_VIEW;
|
|
|
19871
19871
|
TREE_VIEW["CREATE_NODE"] = "create_node";
|
|
19872
19872
|
TREE_VIEW["RENAME_NODE"] = "rename_node";
|
|
19873
19873
|
TREE_VIEW["REDRAW_NODE"] = "redraw_node";
|
|
19874
|
+
TREE_VIEW["REFRESH_NODE"] = "refresh_node";
|
|
19875
|
+
TREE_VIEW["REFRESH"] = "refresh";
|
|
19874
19876
|
TREE_VIEW["DELETE_NODE"] = "delete_node";
|
|
19875
19877
|
TREE_VIEW["SELECT_NODE"] = "select_node";
|
|
19876
19878
|
TREE_VIEW["OPEN_NODE"] = "open_node";
|
|
19877
19879
|
TREE_VIEW["EDIT"] = "edit";
|
|
19880
|
+
TREE_VIEW["GET_PARENT"] = "get_parent";
|
|
19878
19881
|
})(TREE_VIEW || (TREE_VIEW = {}));
|
|
19879
19882
|
|
|
19880
19883
|
var JsTreeViewContextImpl = /*#__PURE__*/function () {
|
|
@@ -19939,6 +19942,12 @@ var JsTreeViewContextImpl = /*#__PURE__*/function () {
|
|
|
19939
19942
|
}
|
|
19940
19943
|
this.jsTree.jstree(TREE_VIEW.REDRAW_NODE, node, deep);
|
|
19941
19944
|
};
|
|
19945
|
+
_proto.refreshNode = function refreshNode(node) {
|
|
19946
|
+
this.jsTree.jstree(TREE_VIEW.REFRESH_NODE, node);
|
|
19947
|
+
};
|
|
19948
|
+
_proto.refresh = function refresh() {
|
|
19949
|
+
this.jsTree.jstree(TREE_VIEW.REFRESH);
|
|
19950
|
+
};
|
|
19942
19951
|
_proto.deleteNode = function deleteNode(node) {
|
|
19943
19952
|
this.jsTree.jstree(TREE_VIEW.DELETE_NODE, node);
|
|
19944
19953
|
};
|
|
@@ -19953,6 +19962,9 @@ var JsTreeViewContextImpl = /*#__PURE__*/function () {
|
|
|
19953
19962
|
var selected = this.getSelected();
|
|
19954
19963
|
this.jsTree.jstree(TREE_VIEW.EDIT, selected);
|
|
19955
19964
|
};
|
|
19965
|
+
_proto.getParent = function getParent(node) {
|
|
19966
|
+
return this.jsTree.jstree(TREE_VIEW.GET_PARENT, node);
|
|
19967
|
+
};
|
|
19956
19968
|
return JsTreeViewContextImpl;
|
|
19957
19969
|
}();
|
|
19958
19970
|
|
|
@@ -26387,6 +26399,10 @@ var TABLE_VIEW_CONTROLLER;
|
|
|
26387
26399
|
(function (TABLE_VIEW_CONTROLLER) {
|
|
26388
26400
|
TABLE_VIEW_CONTROLLER["REQUEST"] = "TableViewRequest";
|
|
26389
26401
|
})(TABLE_VIEW_CONTROLLER || (TABLE_VIEW_CONTROLLER = {}));
|
|
26402
|
+
var TABLE_VIEW_CACHE;
|
|
26403
|
+
(function (TABLE_VIEW_CACHE) {
|
|
26404
|
+
TABLE_VIEW_CACHE[TABLE_VIEW_CACHE["DEFAULT"] = 2] = "DEFAULT";
|
|
26405
|
+
})(TABLE_VIEW_CACHE || (TABLE_VIEW_CACHE = {}));
|
|
26390
26406
|
|
|
26391
26407
|
function _defineProperties(target, props) {
|
|
26392
26408
|
for (var i = 0; i < props.length; i++) {
|
|
@@ -26421,6 +26437,13 @@ function _toPropertyKey(arg) {
|
|
|
26421
26437
|
}
|
|
26422
26438
|
|
|
26423
26439
|
var w$2 = window;
|
|
26440
|
+
if (!w$2.tableViewList) {
|
|
26441
|
+
w$2.tableViewList = new Map();
|
|
26442
|
+
}
|
|
26443
|
+
var tableViewList = w$2.tableViewList;
|
|
26444
|
+
function getTableViewById(id) {
|
|
26445
|
+
return tableViewList.get(id);
|
|
26446
|
+
}
|
|
26424
26447
|
var TreeGridTableViewContextImpl = /*#__PURE__*/function () {
|
|
26425
26448
|
function TreeGridTableViewContextImpl(grid) {
|
|
26426
26449
|
this.suggestValue = '';
|
|
@@ -26547,6 +26570,9 @@ var TreeGridTableViewContextImpl = /*#__PURE__*/function () {
|
|
|
26547
26570
|
_proto.endEdit = function endEdit(success) {
|
|
26548
26571
|
return this.grid.EndEdit(success ? 1 : 0);
|
|
26549
26572
|
};
|
|
26573
|
+
_proto.expandRow = function expandRow(row) {
|
|
26574
|
+
this.grid.Expand(row);
|
|
26575
|
+
};
|
|
26550
26576
|
_createClass(TreeGridTableViewContextImpl, [{
|
|
26551
26577
|
key: "columnList",
|
|
26552
26578
|
get: function get() {
|
|
@@ -26605,10 +26631,6 @@ var w$3 = window;
|
|
|
26605
26631
|
if (!w$3.tableViewList) {
|
|
26606
26632
|
w$3.tableViewList = new Map();
|
|
26607
26633
|
}
|
|
26608
|
-
var tableViewList = w$3.tableViewList;
|
|
26609
|
-
function getTableViewById(id) {
|
|
26610
|
-
return tableViewList.get(id);
|
|
26611
|
-
}
|
|
26612
26634
|
var TreeGrid = function TreeGrid(props) {
|
|
26613
26635
|
var disposeTableViewById = function disposeTableViewById(gridId) {
|
|
26614
26636
|
if (gridId && w$3.Grids) {
|
|
@@ -26690,7 +26712,9 @@ var TreeGrid = function TreeGrid(props) {
|
|
|
26690
26712
|
Text: {
|
|
26691
26713
|
Url: props.textUrl || TABLE_VIEW_URL.TREEGRID_TEXT
|
|
26692
26714
|
},
|
|
26693
|
-
Debug: props.debug || ''
|
|
26715
|
+
Debug: props.debug || '',
|
|
26716
|
+
Cache: props.cache || TABLE_VIEW_CACHE.DEFAULT,
|
|
26717
|
+
CacheVersion: props.cacheVersion
|
|
26694
26718
|
}, "vitro-table-view" + props.id);
|
|
26695
26719
|
} else {
|
|
26696
26720
|
w$3.TreeGrid({
|
|
@@ -26707,7 +26731,9 @@ var TreeGrid = function TreeGrid(props) {
|
|
|
26707
26731
|
Text: {
|
|
26708
26732
|
Url: props.textUrl || TABLE_VIEW_URL.TREEGRID_TEXT
|
|
26709
26733
|
},
|
|
26710
|
-
Debug: props.debug || ''
|
|
26734
|
+
Debug: props.debug || '',
|
|
26735
|
+
Cache: props.cache || TABLE_VIEW_CACHE.DEFAULT,
|
|
26736
|
+
CacheVersion: props.cacheVersion
|
|
26711
26737
|
}, "vitro-table-view" + props.id);
|
|
26712
26738
|
}
|
|
26713
26739
|
return function () {
|