@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.
@@ -19872,10 +19872,13 @@ var TREE_VIEW;
19872
19872
  TREE_VIEW["CREATE_NODE"] = "create_node";
19873
19873
  TREE_VIEW["RENAME_NODE"] = "rename_node";
19874
19874
  TREE_VIEW["REDRAW_NODE"] = "redraw_node";
19875
+ TREE_VIEW["REFRESH_NODE"] = "refresh_node";
19876
+ TREE_VIEW["REFRESH"] = "refresh";
19875
19877
  TREE_VIEW["DELETE_NODE"] = "delete_node";
19876
19878
  TREE_VIEW["SELECT_NODE"] = "select_node";
19877
19879
  TREE_VIEW["OPEN_NODE"] = "open_node";
19878
19880
  TREE_VIEW["EDIT"] = "edit";
19881
+ TREE_VIEW["GET_PARENT"] = "get_parent";
19879
19882
  })(TREE_VIEW || (TREE_VIEW = {}));
19880
19883
 
19881
19884
  var JsTreeViewContextImpl = /*#__PURE__*/function () {
@@ -19940,6 +19943,12 @@ var JsTreeViewContextImpl = /*#__PURE__*/function () {
19940
19943
  }
19941
19944
  this.jsTree.jstree(TREE_VIEW.REDRAW_NODE, node, deep);
19942
19945
  };
19946
+ _proto.refreshNode = function refreshNode(node) {
19947
+ this.jsTree.jstree(TREE_VIEW.REFRESH_NODE, node);
19948
+ };
19949
+ _proto.refresh = function refresh() {
19950
+ this.jsTree.jstree(TREE_VIEW.REFRESH);
19951
+ };
19943
19952
  _proto.deleteNode = function deleteNode(node) {
19944
19953
  this.jsTree.jstree(TREE_VIEW.DELETE_NODE, node);
19945
19954
  };
@@ -19954,6 +19963,9 @@ var JsTreeViewContextImpl = /*#__PURE__*/function () {
19954
19963
  var selected = this.getSelected();
19955
19964
  this.jsTree.jstree(TREE_VIEW.EDIT, selected);
19956
19965
  };
19966
+ _proto.getParent = function getParent(node) {
19967
+ return this.jsTree.jstree(TREE_VIEW.GET_PARENT, node);
19968
+ };
19957
19969
  return JsTreeViewContextImpl;
19958
19970
  }();
19959
19971
 
@@ -26391,6 +26403,10 @@ var TABLE_VIEW_CONTROLLER;
26391
26403
  (function (TABLE_VIEW_CONTROLLER) {
26392
26404
  TABLE_VIEW_CONTROLLER["REQUEST"] = "TableViewRequest";
26393
26405
  })(TABLE_VIEW_CONTROLLER || (TABLE_VIEW_CONTROLLER = {}));
26406
+ var TABLE_VIEW_CACHE;
26407
+ (function (TABLE_VIEW_CACHE) {
26408
+ TABLE_VIEW_CACHE[TABLE_VIEW_CACHE["DEFAULT"] = 2] = "DEFAULT";
26409
+ })(TABLE_VIEW_CACHE || (TABLE_VIEW_CACHE = {}));
26394
26410
 
26395
26411
  function _defineProperties(target, props) {
26396
26412
  for (var i = 0; i < props.length; i++) {
@@ -26425,6 +26441,13 @@ function _toPropertyKey(arg) {
26425
26441
  }
26426
26442
 
26427
26443
  var w$2 = window;
26444
+ if (!w$2.tableViewList) {
26445
+ w$2.tableViewList = new Map();
26446
+ }
26447
+ var tableViewList = w$2.tableViewList;
26448
+ function getTableViewById(id) {
26449
+ return tableViewList.get(id);
26450
+ }
26428
26451
  var TreeGridTableViewContextImpl = /*#__PURE__*/function () {
26429
26452
  function TreeGridTableViewContextImpl(grid) {
26430
26453
  this.suggestValue = '';
@@ -26551,6 +26574,9 @@ var TreeGridTableViewContextImpl = /*#__PURE__*/function () {
26551
26574
  _proto.endEdit = function endEdit(success) {
26552
26575
  return this.grid.EndEdit(success ? 1 : 0);
26553
26576
  };
26577
+ _proto.expandRow = function expandRow(row) {
26578
+ this.grid.Expand(row);
26579
+ };
26554
26580
  _createClass(TreeGridTableViewContextImpl, [{
26555
26581
  key: "columnList",
26556
26582
  get: function get() {
@@ -26609,10 +26635,6 @@ var w$3 = window;
26609
26635
  if (!w$3.tableViewList) {
26610
26636
  w$3.tableViewList = new Map();
26611
26637
  }
26612
- var tableViewList = w$3.tableViewList;
26613
- function getTableViewById(id) {
26614
- return tableViewList.get(id);
26615
- }
26616
26638
  var TreeGrid = function TreeGrid(props) {
26617
26639
  var disposeTableViewById = function disposeTableViewById(gridId) {
26618
26640
  if (gridId && w$3.Grids) {
@@ -26694,7 +26716,9 @@ var TreeGrid = function TreeGrid(props) {
26694
26716
  Text: {
26695
26717
  Url: props.textUrl || TABLE_VIEW_URL.TREEGRID_TEXT
26696
26718
  },
26697
- Debug: props.debug || ''
26719
+ Debug: props.debug || '',
26720
+ Cache: props.cache || TABLE_VIEW_CACHE.DEFAULT,
26721
+ CacheVersion: props.cacheVersion
26698
26722
  }, "vitro-table-view" + props.id);
26699
26723
  } else {
26700
26724
  w$3.TreeGrid({
@@ -26711,7 +26735,9 @@ var TreeGrid = function TreeGrid(props) {
26711
26735
  Text: {
26712
26736
  Url: props.textUrl || TABLE_VIEW_URL.TREEGRID_TEXT
26713
26737
  },
26714
- Debug: props.debug || ''
26738
+ Debug: props.debug || '',
26739
+ Cache: props.cache || TABLE_VIEW_CACHE.DEFAULT,
26740
+ CacheVersion: props.cacheVersion
26715
26741
  }, "vitro-table-view" + props.id);
26716
26742
  }
26717
26743
  return function () {