@vitrosoftware/common-ui-ts 1.0.3 → 1.0.4

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.
@@ -171,8 +171,8 @@
171
171
  }
172
172
  }
173
173
 
174
- @media (max-width: 414px) {
174
+ @media (max-width: 500px) {
175
175
  .vitro-breadcrumbs {
176
- margin-left: 20px;
176
+ margin-left: 26px;
177
177
  }
178
178
  }
@@ -5,7 +5,7 @@
5
5
  margin: 0;
6
6
  margin-right: auto;
7
7
  border-left: 1px solid #BDBDBD;
8
- font-size: 14px;
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 17px;
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
- padding: 20px 24px;
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: #e0e0e0;
408
+ background: #0097ff !important;
405
409
  }
406
410
 
407
411
  .HideCol0IsFavorite.TWCellHeader {
@@ -48,4 +48,5 @@ export interface TableViewContext {
48
48
  setRowCanExpand(row: TableViewRow, canExpand: boolean): void;
49
49
  getFirst(row?: TableViewRow, type?: number): TableViewRow;
50
50
  endEdit(editResult: boolean): any;
51
+ expandRow(row: TableViewRow): void;
51
52
  }
@@ -54,4 +54,5 @@ export declare class TreeGridTableViewContextImpl implements TableViewContext {
54
54
  getFirst(row?: TableViewRow, type?: number): TableViewRow;
55
55
  setEventHandler(eventHandler: TableViewEventHandler): void;
56
56
  endEdit(success: boolean): any;
57
+ expandRow(row: TableViewRow): void;
57
58
  }
@@ -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: 414px) {
178
+ @media (max-width: 500px) {
179
179
  ._breadcrumbs_vitro-breadcrumbs_1H9SaWn {
180
- margin-left: 20px;
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: 14px;
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 17px;
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
- padding: 20px 24px;
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
 
@@ -26547,6 +26559,9 @@ var TreeGridTableViewContextImpl = /*#__PURE__*/function () {
26547
26559
  _proto.endEdit = function endEdit(success) {
26548
26560
  return this.grid.EndEdit(success ? 1 : 0);
26549
26561
  };
26562
+ _proto.expandRow = function expandRow(row) {
26563
+ this.grid.Expand(row);
26564
+ };
26550
26565
  _createClass(TreeGridTableViewContextImpl, [{
26551
26566
  key: "columnList",
26552
26567
  get: function get() {