@vitrosoftware/common-ui-ts 1.0.7 → 1.0.9

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.
@@ -19854,26 +19854,44 @@ var TreeViewConfig = /*#__PURE__*/function () {
19854
19854
  return TreeViewConfig;
19855
19855
  }();
19856
19856
 
19857
- var TREE_VIEW;
19858
- (function (TREE_VIEW) {
19859
- TREE_VIEW["GET_PATH"] = "get_path";
19860
- TREE_VIEW["DESTROY"] = "destroy";
19861
- TREE_VIEW["OPEN_ALL"] = "open_all";
19862
- TREE_VIEW["CLOSE_ALL"] = "close_all";
19863
- TREE_VIEW["DESELECT_ALL"] = "deselect_all";
19864
- TREE_VIEW["GET_SELECTED"] = "get_selected";
19865
- TREE_VIEW["GET_NODE"] = "get_node";
19866
- TREE_VIEW["CREATE_NODE"] = "create_node";
19867
- TREE_VIEW["RENAME_NODE"] = "rename_node";
19868
- TREE_VIEW["REDRAW_NODE"] = "redraw_node";
19869
- TREE_VIEW["REFRESH_NODE"] = "refresh_node";
19870
- TREE_VIEW["REFRESH"] = "refresh";
19871
- TREE_VIEW["DELETE_NODE"] = "delete_node";
19872
- TREE_VIEW["SELECT_NODE"] = "select_node";
19873
- TREE_VIEW["OPEN_NODE"] = "open_node";
19874
- TREE_VIEW["EDIT"] = "edit";
19875
- TREE_VIEW["GET_PARENT"] = "get_parent";
19876
- })(TREE_VIEW || (TREE_VIEW = {}));
19857
+ var METHOD;
19858
+ (function (METHOD) {
19859
+ METHOD["GET_PATH"] = "get_path";
19860
+ METHOD["DESTROY"] = "destroy";
19861
+ METHOD["OPEN_ALL"] = "open_all";
19862
+ METHOD["CLOSE_ALL"] = "close_all";
19863
+ METHOD["DESELECT_ALL"] = "deselect_all";
19864
+ METHOD["GET_SELECTED"] = "get_selected";
19865
+ METHOD["GET_NODE"] = "get_node";
19866
+ METHOD["CREATE_NODE"] = "create_node";
19867
+ METHOD["RENAME_NODE"] = "rename_node";
19868
+ METHOD["REDRAW_NODE"] = "redraw_node";
19869
+ METHOD["REFRESH_NODE"] = "refresh_node";
19870
+ METHOD["REFRESH"] = "refresh";
19871
+ METHOD["DELETE_NODE"] = "delete_node";
19872
+ METHOD["SELECT_NODE"] = "select_node";
19873
+ METHOD["OPEN_NODE"] = "open_node";
19874
+ METHOD["EDIT"] = "edit";
19875
+ METHOD["GET_PARENT"] = "get_parent";
19876
+ })(METHOD || (METHOD = {}));
19877
+ var EVENT;
19878
+ (function (EVENT) {
19879
+ EVENT["CLOSE_NODE"] = "close_node.jstree";
19880
+ EVENT["SELECT_NODE"] = "select_node.jstree";
19881
+ EVENT["LOADED"] = "loaded.jstree";
19882
+ })(EVENT || (EVENT = {}));
19883
+ var NODE_TYPE;
19884
+ (function (NODE_TYPE) {
19885
+ NODE_TYPE["FOLDER"] = "folder";
19886
+ NODE_TYPE["FILE"] = "file";
19887
+ })(NODE_TYPE || (NODE_TYPE = {}));
19888
+
19889
+ var TreeViewConstants = {
19890
+ __proto__: null,
19891
+ get METHOD () { return METHOD; },
19892
+ get EVENT () { return EVENT; },
19893
+ get NODE_TYPE () { return NODE_TYPE; }
19894
+ };
19877
19895
 
19878
19896
  var JsTreeViewContextImpl = /*#__PURE__*/function () {
19879
19897
  function JsTreeViewContextImpl(jsTree) {
@@ -19894,8 +19912,8 @@ var JsTreeViewContextImpl = /*#__PURE__*/function () {
19894
19912
  tree.settings.contextmenu.items = func;
19895
19913
  };
19896
19914
  _proto.getFullPath = function getFullPath(node) {
19897
- var namePath = this.jsTree.jstree(TREE_VIEW.GET_PATH, node);
19898
- var idPath = this.jsTree.jstree(TREE_VIEW.GET_PATH, node, null, true);
19915
+ var namePath = this.jsTree.jstree(METHOD.GET_PATH, node);
19916
+ var idPath = this.jsTree.jstree(METHOD.GET_PATH, node, null, true);
19899
19917
  var path = [];
19900
19918
  for (var i = 0; i < namePath.length; i++) {
19901
19919
  path.push({
@@ -19907,58 +19925,58 @@ var JsTreeViewContextImpl = /*#__PURE__*/function () {
19907
19925
  };
19908
19926
  _proto.dispose = function dispose() {
19909
19927
  if (this.jsTree) {
19910
- this.jsTree.jstree(TREE_VIEW.DESTROY);
19928
+ this.jsTree.jstree(METHOD.DESTROY);
19911
19929
  }
19912
19930
  };
19913
19931
  _proto.openAll = function openAll() {
19914
- this.jsTree.jstree(TREE_VIEW.OPEN_ALL);
19932
+ this.jsTree.jstree(METHOD.OPEN_ALL);
19915
19933
  };
19916
19934
  _proto.closeAll = function closeAll(node) {
19917
- this.jsTree.jstree(TREE_VIEW.CLOSE_ALL, node);
19935
+ this.jsTree.jstree(METHOD.CLOSE_ALL, node);
19918
19936
  };
19919
19937
  _proto.deselectAll = function deselectAll() {
19920
- this.jsTree.jstree(TREE_VIEW.DESELECT_ALL);
19938
+ this.jsTree.jstree(METHOD.DESELECT_ALL);
19921
19939
  };
19922
19940
  _proto.getSelected = function getSelected() {
19923
- return this.jsTree.jstree(TREE_VIEW.GET_SELECTED);
19941
+ return this.jsTree.jstree(METHOD.GET_SELECTED);
19924
19942
  };
19925
19943
  _proto.getNode = function getNode(nodeId) {
19926
- return this.jsTree.jstree(TREE_VIEW.GET_NODE, nodeId);
19944
+ return this.jsTree.jstree(METHOD.GET_NODE, nodeId);
19927
19945
  };
19928
19946
  _proto.createNewNode = function createNewNode(parent, node) {
19929
- this.jsTree.jstree(TREE_VIEW.CREATE_NODE, parent, node);
19947
+ this.jsTree.jstree(METHOD.CREATE_NODE, parent, node);
19930
19948
  };
19931
19949
  _proto.renameNode = function renameNode(node, newName) {
19932
- this.jsTree.jstree(TREE_VIEW.RENAME_NODE, node, newName);
19950
+ this.jsTree.jstree(METHOD.RENAME_NODE, node, newName);
19933
19951
  };
19934
19952
  _proto.redrawNode = function redrawNode(node, deep) {
19935
19953
  if (deep === void 0) {
19936
19954
  deep = false;
19937
19955
  }
19938
- this.jsTree.jstree(TREE_VIEW.REDRAW_NODE, node, deep);
19956
+ this.jsTree.jstree(METHOD.REDRAW_NODE, node, deep);
19939
19957
  };
19940
19958
  _proto.refreshNode = function refreshNode(node) {
19941
- this.jsTree.jstree(TREE_VIEW.REFRESH_NODE, node);
19959
+ this.jsTree.jstree(METHOD.REFRESH_NODE, node);
19942
19960
  };
19943
19961
  _proto.refresh = function refresh() {
19944
- this.jsTree.jstree(TREE_VIEW.REFRESH);
19962
+ this.jsTree.jstree(METHOD.REFRESH);
19945
19963
  };
19946
19964
  _proto.deleteNode = function deleteNode(node) {
19947
- this.jsTree.jstree(TREE_VIEW.DELETE_NODE, node);
19965
+ this.jsTree.jstree(METHOD.DELETE_NODE, node);
19948
19966
  };
19949
19967
  _proto.selectNode = function selectNode(node) {
19950
19968
  this.deselectAll();
19951
- this.jsTree.jstree(TREE_VIEW.SELECT_NODE, node);
19969
+ this.jsTree.jstree(METHOD.SELECT_NODE, node);
19952
19970
  };
19953
19971
  _proto.openNode = function openNode(node) {
19954
- this.jsTree.jstree(TREE_VIEW.OPEN_NODE, node);
19972
+ this.jsTree.jstree(METHOD.OPEN_NODE, node);
19955
19973
  };
19956
19974
  _proto.editNode = function editNode() {
19957
19975
  var selected = this.getSelected();
19958
- this.jsTree.jstree(TREE_VIEW.EDIT, selected);
19976
+ this.jsTree.jstree(METHOD.EDIT, selected);
19959
19977
  };
19960
19978
  _proto.getParent = function getParent(node) {
19961
- return this.jsTree.jstree(TREE_VIEW.GET_PARENT, node);
19979
+ return this.jsTree.jstree(METHOD.GET_PARENT, node);
19962
19980
  };
19963
19981
  return JsTreeViewContextImpl;
19964
19982
  }();
@@ -19996,28 +20014,6 @@ var TreeView = function TreeView(props) {
19996
20014
  }));
19997
20015
  };
19998
20016
 
19999
- var TABLE_VIEW_EVENTS;
20000
- (function (TABLE_VIEW_EVENTS) {
20001
- TABLE_VIEW_EVENTS["ON_SELECT"] = "OnSelect";
20002
- TABLE_VIEW_EVENTS["ON_DATA_SEND"] = "OnDataSend";
20003
- TABLE_VIEW_EVENTS["ON_LOADED"] = "OnLoaded";
20004
- })(TABLE_VIEW_EVENTS || (TABLE_VIEW_EVENTS = {}));
20005
- var TABLE_VIEW_URL;
20006
- (function (TABLE_VIEW_URL) {
20007
- TABLE_VIEW_URL["LAYOUT"] = "Layout";
20008
- TABLE_VIEW_URL["DATA"] = "Data";
20009
- TABLE_VIEW_URL["PAGE"] = "Page";
20010
- TABLE_VIEW_URL["TREEGRID_TEXT"] = "treegrid/Text_ru-RU.xml";
20011
- })(TABLE_VIEW_URL || (TABLE_VIEW_URL = {}));
20012
- var TABLE_VIEW_CONTROLLER;
20013
- (function (TABLE_VIEW_CONTROLLER) {
20014
- TABLE_VIEW_CONTROLLER["REQUEST"] = "TableViewRequest";
20015
- })(TABLE_VIEW_CONTROLLER || (TABLE_VIEW_CONTROLLER = {}));
20016
- var TABLE_VIEW_CACHE;
20017
- (function (TABLE_VIEW_CACHE) {
20018
- TABLE_VIEW_CACHE[TABLE_VIEW_CACHE["DEFAULT"] = 2] = "DEFAULT";
20019
- })(TABLE_VIEW_CACHE || (TABLE_VIEW_CACHE = {}));
20020
-
20021
20017
  function _defineProperties(target, props) {
20022
20018
  for (var i = 0; i < props.length; i++) {
20023
20019
  var descriptor = props[i];
@@ -20272,6 +20268,171 @@ var TreeGridTableViewContextImpl = /*#__PURE__*/function () {
20272
20268
  return TreeGridTableViewContextImpl;
20273
20269
  }();
20274
20270
 
20271
+ var EVENT$1;
20272
+ (function (EVENT) {
20273
+ EVENT["ON_SELECT"] = "OnSelect";
20274
+ EVENT["ON_DATA_SEND"] = "OnDataSend";
20275
+ EVENT["ON_LOADED"] = "OnLoaded";
20276
+ EVENT["ON_CLICK"] = "OnClick";
20277
+ EVENT["ON_BLUR"] = "OnBlur";
20278
+ EVENT["ON_DBL_CLICK"] = "OnDblClick";
20279
+ EVENT["ON_CONTEXT_MENU"] = "OnContextMenu";
20280
+ EVENT["ON_DEL"] = "OnDel";
20281
+ EVENT["ON_AFTER_VALUE_CHANGED"] = "OnAfterValueChanged";
20282
+ EVENT["ON_CAN_DROP"] = "OnCanDrop";
20283
+ EVENT["ON_CAN_EDIT"] = "OnCanEdit";
20284
+ EVENT["ON_CUSTOM_END_EDIT"] = "OnCustomEndEdit";
20285
+ EVENT["ON_CUSTOM_START_EDIT"] = "OnCustomStartEdit";
20286
+ EVENT["ON_ENDED_DRAG"] = "OnEndedDrag";
20287
+ EVENT["ON_FILTER_OPERATOR"] = "OnFilterOperator";
20288
+ EVENT["ON_FILTER"] = "OnFilter";
20289
+ EVENT["ON_GANTT_CHANGED"] = "OnGanttChanged";
20290
+ EVENT["ON_GET_CLASS"] = "OnGetClass";
20291
+ EVENT["ON_GET_DEFAULTS"] = "OnGetDefaults";
20292
+ EVENT["ON_GET_HTML_VALUE"] = "OnGetHtmlValue";
20293
+ EVENT["ON_GET_INPUT_VALUE"] = "OnGetInputValue";
20294
+ EVENT["ON_GET_MENU"] = "OnGetMenu";
20295
+ EVENT["ON_READY"] = "OnReady";
20296
+ EVENT["ON_RENDER_PAGE_FINISH"] = "OnRenderPageFinish";
20297
+ EVENT["ON_RENDER_START"] = "OnRenderStart";
20298
+ EVENT["ON_ROW_UNDELETE"] = "OnRowUndelete";
20299
+ EVENT["ON_SET_INPUT_VALUE"] = "OnSetInputValue";
20300
+ EVENT["ON_SORT"] = "OnSort";
20301
+ EVENT["ON_START_DRAG"] = "OnStartDrag";
20302
+ EVENT["ON_SUGGEST"] = "OnSuggest";
20303
+ EVENT["ON_VALUE_CHANGED"] = "OnValueChanged";
20304
+ })(EVENT$1 || (EVENT$1 = {}));
20305
+ var URL;
20306
+ (function (URL) {
20307
+ URL["LAYOUT"] = "Layout";
20308
+ URL["DATA"] = "Data";
20309
+ URL["PAGE"] = "Page";
20310
+ URL["TREEGRID_TEXT"] = "treegrid/Text_ru-RU.xml";
20311
+ })(URL || (URL = {}));
20312
+ var CONTROLLER;
20313
+ (function (CONTROLLER) {
20314
+ CONTROLLER["REQUEST"] = "TableViewRequest";
20315
+ })(CONTROLLER || (CONTROLLER = {}));
20316
+ var CACHE;
20317
+ (function (CACHE) {
20318
+ CACHE[CACHE["DEFAULT"] = 2] = "DEFAULT";
20319
+ })(CACHE || (CACHE = {}));
20320
+ var COLUMN;
20321
+ (function (COLUMN) {
20322
+ COLUMN["GANTT"] = "gantt";
20323
+ COLUMN["GANTT_CLASS"] = "GanttGanttClass";
20324
+ COLUMN["GANTT_ICONS"] = "GanttGanttIcons";
20325
+ })(COLUMN || (COLUMN = {}));
20326
+ var ROW_TYPE;
20327
+ (function (ROW_TYPE) {
20328
+ ROW_TYPE["HEADER"] = "Header";
20329
+ ROW_TYPE["DATA"] = "Data";
20330
+ ROW_TYPE["FILTER"] = "Filter";
20331
+ })(ROW_TYPE || (ROW_TYPE = {}));
20332
+ var CELL_TYPE;
20333
+ (function (CELL_TYPE) {
20334
+ CELL_TYPE["DATE"] = "Date";
20335
+ CELL_TYPE["TEXT"] = "Text";
20336
+ CELL_TYPE["LINES"] = "Lines";
20337
+ CELL_TYPE["PASS"] = "Pass";
20338
+ CELL_TYPE["INT"] = "Int";
20339
+ CELL_TYPE["FLOAT"] = "Float";
20340
+ CELL_TYPE["ENUM"] = "Enum";
20341
+ CELL_TYPE["RADIO"] = "Radio";
20342
+ CELL_TYPE["SELECT"] = "Select";
20343
+ CELL_TYPE["HTML"] = "Html";
20344
+ CELL_TYPE["ICON"] = "Icon";
20345
+ CELL_TYPE["LIST"] = "List";
20346
+ })(CELL_TYPE || (CELL_TYPE = {}));
20347
+ var ATTRIBUTE;
20348
+ (function (ATTRIBUTE) {
20349
+ ATTRIBUTE["BUTTON"] = "Button";
20350
+ ATTRIBUTE["ON_CLICK_SIDE_BUTTON"] = "OnClickSideButton";
20351
+ ATTRIBUTE["ICON"] = "Icon";
20352
+ ATTRIBUTE["ICON_ALIGN"] = "IconAlign";
20353
+ ATTRIBUTE["DEFAULT_FILTER"] = "DefaultFilter";
20354
+ ATTRIBUTE["MENU_ITEMS"] = "MenuItems";
20355
+ ATTRIBUTE["RANGE"] = "Range";
20356
+ ATTRIBUTE["FULL_VALUE"] = "FullValue";
20357
+ ATTRIBUTE["ORIG_NAME"] = "Orig";
20358
+ ATTRIBUTE["ALIGN"] = "Align";
20359
+ ATTRIBUTE["TIP"] = "Tip";
20360
+ })(ATTRIBUTE || (ATTRIBUTE = {}));
20361
+ var DRAG_ITEM_TYPE;
20362
+ (function (DRAG_ITEM_TYPE) {
20363
+ DRAG_ITEM_TYPE[DRAG_ITEM_TYPE["CANNOT_DROP"] = 0] = "CANNOT_DROP";
20364
+ DRAG_ITEM_TYPE[DRAG_ITEM_TYPE["ABOVE_TOROW"] = 1] = "ABOVE_TOROW";
20365
+ DRAG_ITEM_TYPE[DRAG_ITEM_TYPE["TO_THE_END_OF_CHILDREN"] = 2] = "TO_THE_END_OF_CHILDREN";
20366
+ DRAG_ITEM_TYPE[DRAG_ITEM_TYPE["BELOW_TOROW"] = 3] = "BELOW_TOROW";
20367
+ })(DRAG_ITEM_TYPE || (DRAG_ITEM_TYPE = {}));
20368
+ var FILTER_TYPE;
20369
+ (function (FILTER_TYPE) {
20370
+ FILTER_TYPE[FILTER_TYPE["NONE"] = 0] = "NONE";
20371
+ FILTER_TYPE[FILTER_TYPE["EQUAL"] = 1] = "EQUAL";
20372
+ FILTER_TYPE[FILTER_TYPE["NOT_EQUAL"] = 2] = "NOT_EQUAL";
20373
+ FILTER_TYPE[FILTER_TYPE["LESS_THAN"] = 3] = "LESS_THAN";
20374
+ FILTER_TYPE[FILTER_TYPE["LESS_THAN_OR_EQUAL"] = 4] = "LESS_THAN_OR_EQUAL";
20375
+ FILTER_TYPE[FILTER_TYPE["GREATER_THAN"] = 5] = "GREATER_THAN";
20376
+ FILTER_TYPE[FILTER_TYPE["GREATER_THAN_OR_EQUAL"] = 6] = "GREATER_THAN_OR_EQUAL";
20377
+ FILTER_TYPE[FILTER_TYPE["BEGINS_WITH"] = 7] = "BEGINS_WITH";
20378
+ FILTER_TYPE[FILTER_TYPE["DOES_NOT_BEGIN_WITH"] = 8] = "DOES_NOT_BEGIN_WITH";
20379
+ FILTER_TYPE[FILTER_TYPE["ENDS_WITH"] = 9] = "ENDS_WITH";
20380
+ FILTER_TYPE[FILTER_TYPE["DOES_NOT_END_WITH"] = 10] = "DOES_NOT_END_WITH";
20381
+ FILTER_TYPE[FILTER_TYPE["CONTAINS"] = 11] = "CONTAINS";
20382
+ FILTER_TYPE[FILTER_TYPE["DOES_NOT_CONTAIN"] = 12] = "DOES_NOT_CONTAIN";
20383
+ })(FILTER_TYPE || (FILTER_TYPE = {}));
20384
+ var REFRESH_MODE;
20385
+ (function (REFRESH_MODE) {
20386
+ REFRESH_MODE["ROW"] = "row";
20387
+ REFRESH_MODE["PAGE"] = "page";
20388
+ REFRESH_MODE["NONE"] = "none";
20389
+ })(REFRESH_MODE || (REFRESH_MODE = {}));
20390
+ var DEFAULT;
20391
+ (function (DEFAULT) {
20392
+ DEFAULT[DEFAULT["SUGGEST_DELAY"] = 200] = "SUGGEST_DELAY";
20393
+ DEFAULT[DEFAULT["PAGE_LENGTH"] = 50] = "PAGE_LENGTH";
20394
+ DEFAULT["PAGE"] = "2";
20395
+ DEFAULT["DEFAULTS"] = "Defaults";
20396
+ DEFAULT["TIP"] = "*Value*";
20397
+ })(DEFAULT || (DEFAULT = {}));
20398
+ var ALIGN;
20399
+ (function (ALIGN) {
20400
+ ALIGN["CENTER"] = "Center";
20401
+ ALIGN["RIGHT"] = "Right";
20402
+ })(ALIGN || (ALIGN = {}));
20403
+ var ROW_ID;
20404
+ (function (ROW_ID) {
20405
+ ROW_ID["TOTAL"] = "totalRow";
20406
+ })(ROW_ID || (ROW_ID = {}));
20407
+ var NUMBER_FORMAT;
20408
+ (function (NUMBER_FORMAT) {
20409
+ NUMBER_FORMAT["GENERAL"] = "g";
20410
+ NUMBER_FORMAT["FIXED"] = "f";
20411
+ NUMBER_FORMAT["CURRENCY"] = "c";
20412
+ NUMBER_FORMAT["PERCENT"] = "p";
20413
+ NUMBER_FORMAT["ROUNDED"] = "r";
20414
+ NUMBER_FORMAT["SCIENTIFIC"] = "e";
20415
+ })(NUMBER_FORMAT || (NUMBER_FORMAT = {}));
20416
+
20417
+ var TableViewConstants = {
20418
+ __proto__: null,
20419
+ get EVENT () { return EVENT$1; },
20420
+ get URL () { return URL; },
20421
+ get CONTROLLER () { return CONTROLLER; },
20422
+ get CACHE () { return CACHE; },
20423
+ get COLUMN () { return COLUMN; },
20424
+ get ROW_TYPE () { return ROW_TYPE; },
20425
+ get CELL_TYPE () { return CELL_TYPE; },
20426
+ get ATTRIBUTE () { return ATTRIBUTE; },
20427
+ get DRAG_ITEM_TYPE () { return DRAG_ITEM_TYPE; },
20428
+ get FILTER_TYPE () { return FILTER_TYPE; },
20429
+ get REFRESH_MODE () { return REFRESH_MODE; },
20430
+ get DEFAULT () { return DEFAULT; },
20431
+ get ALIGN () { return ALIGN; },
20432
+ get ROW_ID () { return ROW_ID; },
20433
+ get NUMBER_FORMAT () { return NUMBER_FORMAT; }
20434
+ };
20435
+
20275
20436
  var styles$3 = {"vitro-table-view":"_table-view_vitro-table-view_2O0cRRX"};
20276
20437
 
20277
20438
  var w$1 = window;
@@ -20317,7 +20478,7 @@ var TreeGrid = function TreeGrid(props) {
20317
20478
  }
20318
20479
  if (props.onSelect) {
20319
20480
  var onSelectEventHandler = {
20320
- id: TABLE_VIEW_EVENTS.ON_SELECT,
20481
+ id: EVENT$1.ON_SELECT,
20321
20482
  process: props.onSelect
20322
20483
  };
20323
20484
  grid.setEventHandler(onSelectEventHandler);
@@ -20326,7 +20487,7 @@ var TreeGrid = function TreeGrid(props) {
20326
20487
  props.onInit(grid, next);
20327
20488
  }
20328
20489
  var onDateSendEventHandler = {
20329
- id: TABLE_VIEW_EVENTS.ON_DATA_SEND,
20490
+ id: EVENT$1.ON_DATA_SEND,
20330
20491
  process: onDataSendHandler
20331
20492
  };
20332
20493
  grid.setEventHandler(onDateSendEventHandler);
@@ -20338,13 +20499,13 @@ var TreeGrid = function TreeGrid(props) {
20338
20499
  if (props.createGridUrl) {
20339
20500
  return props.createGridUrl(dataKey);
20340
20501
  } else {
20341
- var controller = props.controller || TABLE_VIEW_CONTROLLER.REQUEST;
20502
+ var controller = props.controller || CONTROLLER.REQUEST;
20342
20503
  return '/api/' + controller + '/' + dataKey + '/' + props.listCode;
20343
20504
  }
20344
20505
  };
20345
20506
  useEffect(function () {
20346
20507
  disposeTableViewById(props.id);
20347
- w$1.TGSetEvent(TABLE_VIEW_EVENTS.ON_LOADED, props.id, function (grid, next) {
20508
+ w$1.TGSetEvent(EVENT$1.ON_LOADED, props.id, function (grid, next) {
20348
20509
  return onGridLoaded(grid, next);
20349
20510
  });
20350
20511
  if (props.layout || props.data) {
@@ -20357,29 +20518,29 @@ var TreeGrid = function TreeGrid(props) {
20357
20518
  Data: props.data
20358
20519
  },
20359
20520
  Text: {
20360
- Url: props.textUrl || TABLE_VIEW_URL.TREEGRID_TEXT
20521
+ Url: props.textUrl || URL.TREEGRID_TEXT
20361
20522
  },
20362
20523
  Debug: props.debug || '',
20363
- Cache: props.cache || TABLE_VIEW_CACHE.DEFAULT,
20524
+ Cache: props.cache || CACHE.DEFAULT,
20364
20525
  CacheVersion: props.cacheVersion
20365
20526
  }, "vitro-table-view" + props.id);
20366
20527
  } else {
20367
20528
  w$1.TreeGrid({
20368
20529
  id: props.id,
20369
20530
  Layout: {
20370
- Url: createGridUrl(TABLE_VIEW_URL.LAYOUT)
20531
+ Url: createGridUrl(URL.LAYOUT)
20371
20532
  },
20372
20533
  Data: {
20373
- Url: createGridUrl(TABLE_VIEW_URL.DATA)
20534
+ Url: createGridUrl(URL.DATA)
20374
20535
  },
20375
20536
  Page: {
20376
- Url: createGridUrl(TABLE_VIEW_URL.PAGE)
20537
+ Url: createGridUrl(URL.PAGE)
20377
20538
  },
20378
20539
  Text: {
20379
- Url: props.textUrl || TABLE_VIEW_URL.TREEGRID_TEXT
20540
+ Url: props.textUrl || URL.TREEGRID_TEXT
20380
20541
  },
20381
20542
  Debug: props.debug || '',
20382
- Cache: props.cache || TABLE_VIEW_CACHE.DEFAULT,
20543
+ Cache: props.cache || CACHE.DEFAULT,
20383
20544
  CacheVersion: props.cacheVersion
20384
20545
  }, "vitro-table-view" + props.id);
20385
20546
  }
@@ -53847,13 +54008,6 @@ var isDOM = typeof document !== 'undefined';
53847
54008
 
53848
54009
  var useIsomorphicEffect = isDOM || isReactNative ? useLayoutEffect : useEffect;
53849
54010
 
53850
- const defaultProps = {
53851
- in: false,
53852
- timeout: 300,
53853
- mountOnEnter: false,
53854
- unmountOnExit: false,
53855
- appear: false
53856
- };
53857
54011
  const fadeStyles = {
53858
54012
  [ENTERING]: 'show',
53859
54013
  [ENTERED]: 'show'
@@ -53862,11 +54016,20 @@ const Fade = /*#__PURE__*/forwardRef(({
53862
54016
  className,
53863
54017
  children,
53864
54018
  transitionClasses = {},
53865
- ...props
54019
+ onEnter,
54020
+ ...rest
53866
54021
  }, ref) => {
54022
+ const props = {
54023
+ in: false,
54024
+ timeout: 300,
54025
+ mountOnEnter: false,
54026
+ unmountOnExit: false,
54027
+ appear: false,
54028
+ ...rest
54029
+ };
53867
54030
  const handleEnter = useCallback((node, isAppearing) => {
53868
- props.onEnter == null ? void 0 : props.onEnter(node, isAppearing);
53869
- }, [props]);
54031
+ onEnter == null ? void 0 : onEnter(node, isAppearing);
54032
+ }, [onEnter]);
53870
54033
  return /*#__PURE__*/jsx(TransitionWrapper, {
53871
54034
  ref: ref,
53872
54035
  addEndListener: transitionEndListener,
@@ -53879,7 +54042,6 @@ const Fade = /*#__PURE__*/forwardRef(({
53879
54042
  })
53880
54043
  });
53881
54044
  });
53882
- Fade.defaultProps = defaultProps;
53883
54045
  Fade.displayName = 'Fade';
53884
54046
 
53885
54047
  var rHyphen = /-(.)/g;
@@ -53902,14 +54064,17 @@ function createWithBsPrefix(prefix, {
53902
54064
  as: Tag = Component || 'div',
53903
54065
  ...props
53904
54066
  }, ref) => {
54067
+ const componentProps = {
54068
+ ...defaultProps,
54069
+ ...props
54070
+ };
53905
54071
  const resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
53906
54072
  return /*#__PURE__*/jsx(Tag, {
53907
54073
  ref: ref,
53908
54074
  className: classnames(className, resolvedPrefix),
53909
- ...props
54075
+ ...componentProps
53910
54076
  });
53911
54077
  });
53912
- BsComponent.defaultProps = defaultProps;
53913
54078
  BsComponent.displayName = displayName;
53914
54079
  return BsComponent;
53915
54080
  }
@@ -54184,7 +54349,7 @@ var round = Math.round;
54184
54349
  function getUAString() {
54185
54350
  var uaData = navigator.userAgentData;
54186
54351
 
54187
- if (uaData != null && uaData.brands) {
54352
+ if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {
54188
54353
  return uaData.brands.map(function (item) {
54189
54354
  return item.brand + "/" + item.version;
54190
54355
  }).join(' ');
@@ -54516,10 +54681,9 @@ var unsetSides = {
54516
54681
  // Zooming can change the DPR, but it seems to report a value that will
54517
54682
  // cleanly divide the values into the appropriate subpixels.
54518
54683
 
54519
- function roundOffsetsByDPR(_ref) {
54684
+ function roundOffsetsByDPR(_ref, win) {
54520
54685
  var x = _ref.x,
54521
54686
  y = _ref.y;
54522
- var win = window;
54523
54687
  var dpr = win.devicePixelRatio || 1;
54524
54688
  return {
54525
54689
  x: round(x * dpr) / dpr || 0,
@@ -54602,7 +54766,7 @@ function mapToStyles(_ref2) {
54602
54766
  var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
54603
54767
  x: x,
54604
54768
  y: y
54605
- }) : {
54769
+ }, getWindow(popper)) : {
54606
54770
  x: x,
54607
54771
  y: y
54608
54772
  };
@@ -55994,21 +56158,22 @@ function popperGenerator(generatorOptions) {
55994
56158
  };
55995
56159
  }
55996
56160
 
56161
+ // For the common JS build we will turn this file into a bundle with no imports.
55997
56162
  // This is b/c the Popper lib is all esm files, and would break in a common js only environment
55998
-
55999
56163
  const createPopper = popperGenerator({
56000
56164
  defaultModifiers: [hide$1, popperOffsets$1, computeStyles$1, eventListeners, offset$1, flip$1, preventOverflow$1, arrow$1]
56001
56165
  });
56002
56166
 
56003
56167
  const _excluded = ["enabled", "placement", "strategy", "modifiers"];
56004
-
56005
56168
  function _objectWithoutPropertiesLoose$2(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
56006
56169
  const disabledApplyStylesModifier = {
56007
56170
  name: 'applyStyles',
56008
56171
  enabled: false,
56009
56172
  phase: 'afterWrite',
56010
56173
  fn: () => undefined
56011
- }; // until docjs supports type exports...
56174
+ };
56175
+
56176
+ // until docjs supports type exports...
56012
56177
 
56013
56178
  const ariaDescribedByModifier = {
56014
56179
  name: 'ariaDescribedBy',
@@ -56021,7 +56186,6 @@ const ariaDescribedByModifier = {
56021
56186
  reference,
56022
56187
  popper
56023
56188
  } = state.elements;
56024
-
56025
56189
  if ('removeAttribute' in reference) {
56026
56190
  const ids = (reference.getAttribute('aria-describedby') || '').split(',').filter(id => id.trim() !== popper.id);
56027
56191
  if (!ids.length) reference.removeAttribute('aria-describedby');else reference.setAttribute('aria-describedby', ids.join(','));
@@ -56031,20 +56195,16 @@ const ariaDescribedByModifier = {
56031
56195
  state
56032
56196
  }) => {
56033
56197
  var _popper$getAttribute;
56034
-
56035
56198
  const {
56036
56199
  popper,
56037
56200
  reference
56038
56201
  } = state.elements;
56039
56202
  const role = (_popper$getAttribute = popper.getAttribute('role')) == null ? void 0 : _popper$getAttribute.toLowerCase();
56040
-
56041
56203
  if (popper.id && role === 'tooltip' && 'setAttribute' in reference) {
56042
56204
  const ids = reference.getAttribute('aria-describedby');
56043
-
56044
56205
  if (ids && ids.split(',').indexOf(popper.id) !== -1) {
56045
56206
  return;
56046
56207
  }
56047
-
56048
56208
  reference.setAttribute('aria-describedby', ids ? `${ids},${popper.id}` : popper.id);
56049
56209
  }
56050
56210
  }
@@ -56065,26 +56225,22 @@ const EMPTY_MODIFIERS = [];
56065
56225
  *
56066
56226
  * @returns {UsePopperState} The popper state
56067
56227
  */
56068
-
56069
56228
  function usePopper(referenceElement, popperElement, _ref = {}) {
56070
56229
  let {
56071
- enabled = true,
56072
- placement = 'bottom',
56073
- strategy = 'absolute',
56074
- modifiers = EMPTY_MODIFIERS
56075
- } = _ref,
56076
- config = _objectWithoutPropertiesLoose$2(_ref, _excluded);
56077
-
56230
+ enabled = true,
56231
+ placement = 'bottom',
56232
+ strategy = 'absolute',
56233
+ modifiers = EMPTY_MODIFIERS
56234
+ } = _ref,
56235
+ config = _objectWithoutPropertiesLoose$2(_ref, _excluded);
56078
56236
  const prevModifiers = useRef(modifiers);
56079
56237
  const popperInstanceRef = useRef();
56080
56238
  const update = useCallback(() => {
56081
56239
  var _popperInstanceRef$cu;
56082
-
56083
56240
  (_popperInstanceRef$cu = popperInstanceRef.current) == null ? void 0 : _popperInstanceRef$cu.update();
56084
56241
  }, []);
56085
56242
  const forceUpdate = useCallback(() => {
56086
56243
  var _popperInstanceRef$cu2;
56087
-
56088
56244
  (_popperInstanceRef$cu2 = popperInstanceRef.current) == null ? void 0 : _popperInstanceRef$cu2.forceUpdate();
56089
56245
  }, []);
56090
56246
  const [popperState, setState] = useSafeState(useState({
@@ -56125,7 +56281,6 @@ function usePopper(referenceElement, popperElement, _ref = {}) {
56125
56281
  if (!dequal(prevModifiers.current, modifiers)) {
56126
56282
  prevModifiers.current = modifiers;
56127
56283
  }
56128
-
56129
56284
  return prevModifiers.current;
56130
56285
  }, [modifiers]);
56131
56286
  useEffect(() => {
@@ -56140,7 +56295,6 @@ function usePopper(referenceElement, popperElement, _ref = {}) {
56140
56295
  if (!enabled || referenceElement == null || popperElement == null) {
56141
56296
  return undefined;
56142
56297
  }
56143
-
56144
56298
  popperInstanceRef.current = createPopper(referenceElement, popperElement, Object.assign({}, config, {
56145
56299
  placement,
56146
56300
  strategy,
@@ -56157,7 +56311,8 @@ function usePopper(referenceElement, popperElement, _ref = {}) {
56157
56311
  }
56158
56312
  }));
56159
56313
  }
56160
- }; // This is only run once to _create_ the popper
56314
+ };
56315
+ // This is only run once to _create_ the popper
56161
56316
  // eslint-disable-next-line react-hooks/exhaustive-deps
56162
56317
  }, [enabled, referenceElement, popperElement]);
56163
56318
  return popperState;
@@ -56240,21 +56395,19 @@ if (__DEV__) {
56240
56395
  var warning_1 = warning;
56241
56396
 
56242
56397
  const noop$1 = () => {};
56243
-
56244
56398
  function isLeftClickEvent(event) {
56245
56399
  return event.button === 0;
56246
56400
  }
56247
-
56248
56401
  function isModifiedEvent(event) {
56249
56402
  return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
56250
56403
  }
56251
-
56252
56404
  const getRefTarget = ref => ref && ('current' in ref ? ref.current : ref);
56253
56405
  const InitialTriggerEvents = {
56254
56406
  click: 'mousedown',
56255
56407
  mouseup: 'mousedown',
56256
56408
  pointerup: 'pointerdown'
56257
56409
  };
56410
+
56258
56411
  /**
56259
56412
  * The `useClickOutside` hook registers your callback on the document that fires
56260
56413
  * when a pointer event is registered outside of the provided ref or element.
@@ -56265,7 +56418,6 @@ const InitialTriggerEvents = {
56265
56418
  * @param {boolean=} options.disabled
56266
56419
  * @param {string=} options.clickTrigger The DOM event name (click, mousedown, etc) to attach listeners on
56267
56420
  */
56268
-
56269
56421
  function useClickOutside(ref, onClickOutside = noop$1, {
56270
56422
  disabled,
56271
56423
  clickTrigger = 'click'
@@ -56280,7 +56432,6 @@ function useClickOutside(ref, onClickOutside = noop$1, {
56280
56432
  }, [ref]);
56281
56433
  const handleInitialMouse = useEventCallback(e => {
56282
56434
  const currentTarget = getRefTarget(ref);
56283
-
56284
56435
  if (currentTarget && contains$1(currentTarget, e.target)) {
56285
56436
  waitingForTrigger.current = true;
56286
56437
  }
@@ -56292,19 +56443,19 @@ function useClickOutside(ref, onClickOutside = noop$1, {
56292
56443
  });
56293
56444
  useEffect(() => {
56294
56445
  if (disabled || ref == null) return undefined;
56295
- const doc = ownerDocument(getRefTarget(ref)); // Store the current event to avoid triggering handlers immediately
56296
- // https://github.com/facebook/react/issues/20074
56446
+ const doc = ownerDocument(getRefTarget(ref));
56297
56447
 
56448
+ // Store the current event to avoid triggering handlers immediately
56449
+ // https://github.com/facebook/react/issues/20074
56298
56450
  let currentEvent = (doc.defaultView || window).event;
56299
56451
  let removeInitialTriggerListener = null;
56300
-
56301
56452
  if (InitialTriggerEvents[clickTrigger]) {
56302
56453
  removeInitialTriggerListener = listen(doc, InitialTriggerEvents[clickTrigger], handleInitialMouse, true);
56303
- } // Use capture for this listener so it fires before React's listener, to
56454
+ }
56455
+
56456
+ // Use capture for this listener so it fires before React's listener, to
56304
56457
  // avoid false positives in the contains() check below if the target DOM
56305
56458
  // element is removed in the React mouse callback.
56306
-
56307
-
56308
56459
  const removeMouseCaptureListener = listen(doc, clickTrigger, handleMouseCapture, true);
56309
56460
  const removeMouseListener = listen(doc, clickTrigger, e => {
56310
56461
  // skip if this event is the same as the one running when we added the handlers
@@ -56312,15 +56463,12 @@ function useClickOutside(ref, onClickOutside = noop$1, {
56312
56463
  currentEvent = undefined;
56313
56464
  return;
56314
56465
  }
56315
-
56316
56466
  handleMouse(e);
56317
56467
  });
56318
56468
  let mobileSafariHackListeners = [];
56319
-
56320
56469
  if ('ontouchstart' in doc.documentElement) {
56321
56470
  mobileSafariHackListeners = [].slice.call(doc.body.children).map(el => listen(el, 'mousemove', noop$1));
56322
56471
  }
56323
-
56324
56472
  return () => {
56325
56473
  removeInitialTriggerListener == null ? void 0 : removeInitialTriggerListener();
56326
56474
  removeMouseCaptureListener();
@@ -56332,12 +56480,11 @@ function useClickOutside(ref, onClickOutside = noop$1, {
56332
56480
 
56333
56481
  function toModifierMap(modifiers) {
56334
56482
  const result = {};
56335
-
56336
56483
  if (!Array.isArray(modifiers)) {
56337
56484
  return modifiers || result;
56338
- } // eslint-disable-next-line no-unused-expressions
56339
-
56485
+ }
56340
56486
 
56487
+ // eslint-disable-next-line no-unused-expressions
56341
56488
  modifiers == null ? void 0 : modifiers.forEach(m => {
56342
56489
  result[m.name] = m;
56343
56490
  });
@@ -56362,7 +56509,6 @@ function mergeOptionsWithPopperConfig({
56362
56509
  popperConfig = {}
56363
56510
  }) {
56364
56511
  var _modifiers$eventListe, _modifiers$preventOve, _modifiers$preventOve2, _modifiers$offset, _modifiers$arrow;
56365
-
56366
56512
  const modifiers = toModifierMap(popperConfig.modifiers);
56367
56513
  return Object.assign({}, popperConfig, {
56368
56514
  placement,
@@ -56397,13 +56543,13 @@ function mergeOptionsWithPopperConfig({
56397
56543
  }
56398
56544
 
56399
56545
  const Context = /*#__PURE__*/createContext(canUseDOM ? window : undefined);
56546
+
56400
56547
  /**
56401
56548
  * The document "window" placed in React context. Helpful for determining
56402
56549
  * SSR context, or when rendering into an iframe.
56403
56550
  *
56404
56551
  * @returns the current window
56405
56552
  */
56406
-
56407
56553
  function useWindow() {
56408
56554
  return useContext(Context);
56409
56555
  }
@@ -56419,12 +56565,10 @@ const resolveContainerRef = (ref, document) => {
56419
56565
  function useWaitForDOMRef(ref, onResolved) {
56420
56566
  const window = useWindow();
56421
56567
  const [resolvedRef, setRef] = useState(() => resolveContainerRef(ref, window == null ? void 0 : window.document));
56422
-
56423
56568
  if (!resolvedRef) {
56424
56569
  const earlyRef = resolveContainerRef(ref);
56425
56570
  if (earlyRef) setRef(earlyRef);
56426
56571
  }
56427
-
56428
56572
  useEffect(() => {
56429
56573
  if (onResolved && resolvedRef) {
56430
56574
  onResolved(resolvedRef);
@@ -56432,7 +56576,6 @@ function useWaitForDOMRef(ref, onResolved) {
56432
56576
  }, [onResolved, resolvedRef]);
56433
56577
  useEffect(() => {
56434
56578
  const nextRef = resolveContainerRef(ref);
56435
-
56436
56579
  if (nextRef !== resolvedRef) {
56437
56580
  setRef(nextRef);
56438
56581
  }
@@ -56440,6 +56583,125 @@ function useWaitForDOMRef(ref, onResolved) {
56440
56583
  return resolvedRef;
56441
56584
  }
56442
56585
 
56586
+ function NoopTransition({
56587
+ children,
56588
+ in: inProp,
56589
+ onExited,
56590
+ mountOnEnter,
56591
+ unmountOnExit
56592
+ }) {
56593
+ const ref = useRef(null);
56594
+ const hasEnteredRef = useRef(inProp);
56595
+ const handleExited = useEventCallback(onExited);
56596
+ useEffect(() => {
56597
+ if (inProp) hasEnteredRef.current = true;else {
56598
+ handleExited(ref.current);
56599
+ }
56600
+ }, [inProp, handleExited]);
56601
+ const combinedRef = useMergedRefs(ref, children.ref);
56602
+ const child = /*#__PURE__*/cloneElement(children, {
56603
+ ref: combinedRef
56604
+ });
56605
+ if (inProp) return child;
56606
+ if (unmountOnExit) {
56607
+ return null;
56608
+ }
56609
+ if (!hasEnteredRef.current && mountOnEnter) {
56610
+ return null;
56611
+ }
56612
+ return child;
56613
+ }
56614
+
56615
+ function useTransition({
56616
+ in: inProp,
56617
+ onTransition
56618
+ }) {
56619
+ const ref = useRef(null);
56620
+ const isInitialRef = useRef(true);
56621
+ const handleTransition = useEventCallback(onTransition);
56622
+ useIsomorphicEffect(() => {
56623
+ if (!ref.current) {
56624
+ return undefined;
56625
+ }
56626
+ let stale = false;
56627
+ handleTransition({
56628
+ in: inProp,
56629
+ element: ref.current,
56630
+ initial: isInitialRef.current,
56631
+ isStale: () => stale
56632
+ });
56633
+ return () => {
56634
+ stale = true;
56635
+ };
56636
+ }, [inProp, handleTransition]);
56637
+ useIsomorphicEffect(() => {
56638
+ isInitialRef.current = false;
56639
+ // this is for strict mode
56640
+ return () => {
56641
+ isInitialRef.current = true;
56642
+ };
56643
+ }, []);
56644
+ return ref;
56645
+ }
56646
+ /**
56647
+ * Adapts an imperative transition function to a subset of the RTG `<Transition>` component API.
56648
+ *
56649
+ * ImperativeTransition does not support mounting options or `appear` at the moment, meaning
56650
+ * that it always acts like: `mountOnEnter={true} unmountOnExit={true} appear={true}`
56651
+ */
56652
+ function ImperativeTransition({
56653
+ children,
56654
+ in: inProp,
56655
+ onExited,
56656
+ onEntered,
56657
+ transition
56658
+ }) {
56659
+ const [exited, setExited] = useState(!inProp);
56660
+
56661
+ // TODO: I think this needs to be in an effect
56662
+ if (inProp && exited) {
56663
+ setExited(false);
56664
+ }
56665
+ const ref = useTransition({
56666
+ in: !!inProp,
56667
+ onTransition: options => {
56668
+ const onFinish = () => {
56669
+ if (options.isStale()) return;
56670
+ if (options.in) {
56671
+ onEntered == null ? void 0 : onEntered(options.element, options.initial);
56672
+ } else {
56673
+ setExited(true);
56674
+ onExited == null ? void 0 : onExited(options.element);
56675
+ }
56676
+ };
56677
+ Promise.resolve(transition(options)).then(onFinish, error => {
56678
+ if (!options.in) setExited(true);
56679
+ throw error;
56680
+ });
56681
+ }
56682
+ });
56683
+ const combinedRef = useMergedRefs(ref, children.ref);
56684
+ return exited && !inProp ? null : /*#__PURE__*/cloneElement(children, {
56685
+ ref: combinedRef
56686
+ });
56687
+ }
56688
+ function renderTransition(Component, runTransition, props) {
56689
+ if (Component) {
56690
+ return /*#__PURE__*/jsx(Component, Object.assign({}, props));
56691
+ }
56692
+ if (runTransition) {
56693
+ return /*#__PURE__*/jsx(ImperativeTransition, Object.assign({}, props, {
56694
+ transition: runTransition
56695
+ }));
56696
+ }
56697
+ return /*#__PURE__*/jsx(NoopTransition, Object.assign({}, props));
56698
+ }
56699
+
56700
+ /* eslint-disable import/prefer-default-export */
56701
+ function isEscKey(e) {
56702
+ return e.code === 'Escape' || e.keyCode === 27;
56703
+ }
56704
+
56443
56705
  /**
56444
56706
  * Checks if a given element has a CSS class.
56445
56707
  *
@@ -56451,10 +56713,7 @@ function hasClass(element, className) {
56451
56713
  return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
56452
56714
  }
56453
56715
 
56454
- const escapeKeyCode = 27;
56455
-
56456
56716
  const noop$2 = () => {};
56457
-
56458
56717
  /**
56459
56718
  * The `useRootClose` hook registers your callback on the document
56460
56719
  * when rendered. Powers the `<Overlay/>` component. This is used achieve modal
@@ -56477,15 +56736,16 @@ function useRootClose(ref, onRootClose, {
56477
56736
  clickTrigger
56478
56737
  });
56479
56738
  const handleKeyUp = useEventCallback(e => {
56480
- if (e.keyCode === escapeKeyCode) {
56739
+ if (isEscKey(e)) {
56481
56740
  onClose(e);
56482
56741
  }
56483
56742
  });
56484
56743
  useEffect(() => {
56485
56744
  if (disabled || ref == null) return undefined;
56486
- const doc = ownerDocument(getRefTarget(ref)); // Store the current event to avoid triggering handlers immediately
56487
- // https://github.com/facebook/react/issues/20074
56745
+ const doc = ownerDocument(getRefTarget(ref));
56488
56746
 
56747
+ // Store the current event to avoid triggering handlers immediately
56748
+ // https://github.com/facebook/react/issues/20074
56489
56749
  let currentEvent = (doc.defaultView || window).event;
56490
56750
  const removeKeyupListener = listen(doc, 'keyup', e => {
56491
56751
  // skip if this event is the same as the one running when we added the handlers
@@ -56493,7 +56753,6 @@ function useRootClose(ref, onRootClose, {
56493
56753
  currentEvent = undefined;
56494
56754
  return;
56495
56755
  }
56496
-
56497
56756
  handleKeyUp(e);
56498
56757
  });
56499
56758
  return () => {
@@ -56513,7 +56772,8 @@ const Overlay = /*#__PURE__*/forwardRef((props, outerRef) => {
56513
56772
  placement,
56514
56773
  containerPadding,
56515
56774
  popperConfig = {},
56516
- transition: Transition
56775
+ transition: Transition,
56776
+ runTransition
56517
56777
  } = props;
56518
56778
  const [rootElement, attachRef] = useCallbackRef();
56519
56779
  const [arrowElement, attachArrowRef] = useCallbackRef();
@@ -56531,32 +56791,34 @@ const Overlay = /*#__PURE__*/forwardRef((props, outerRef) => {
56531
56791
  popperConfig
56532
56792
  }));
56533
56793
 
56534
- if (props.show) {
56535
- if (exited) setExited(false);
56536
- } else if (!props.transition && !exited) {
56537
- setExited(true);
56794
+ // TODO: I think this needs to be in an effect
56795
+ if (props.show && exited) {
56796
+ setExited(false);
56538
56797
  }
56539
-
56540
56798
  const handleHidden = (...args) => {
56541
56799
  setExited(true);
56542
-
56543
56800
  if (props.onExited) {
56544
56801
  props.onExited(...args);
56545
56802
  }
56546
- }; // Don't un-render the overlay while it's transitioning out.
56547
-
56803
+ };
56548
56804
 
56549
- const mountOverlay = props.show || Transition && !exited;
56805
+ // Don't un-render the overlay while it's transitioning out.
56806
+ const mountOverlay = props.show || !exited;
56550
56807
  useRootClose(rootElement, props.onHide, {
56551
56808
  disabled: !props.rootClose || props.rootCloseDisabled,
56552
56809
  clickTrigger: props.rootCloseEvent
56553
56810
  });
56554
-
56555
56811
  if (!mountOverlay) {
56556
56812
  // Don't bother showing anything if we don't have to.
56557
56813
  return null;
56558
56814
  }
56559
-
56815
+ const {
56816
+ onExit,
56817
+ onExiting,
56818
+ onEnter,
56819
+ onEntering,
56820
+ onEntered
56821
+ } = props;
56560
56822
  let child = props.children(Object.assign({}, popper.attributes.popper, {
56561
56823
  style: popper.styles.popper,
56562
56824
  ref: mergedRef
@@ -56569,28 +56831,19 @@ const Overlay = /*#__PURE__*/forwardRef((props, outerRef) => {
56569
56831
  ref: attachArrowRef
56570
56832
  })
56571
56833
  });
56572
-
56573
- if (Transition) {
56574
- const {
56575
- onExit,
56576
- onExiting,
56577
- onEnter,
56578
- onEntering,
56579
- onEntered
56580
- } = props;
56581
- child = /*#__PURE__*/jsx(Transition, {
56582
- in: props.show,
56583
- appear: true,
56584
- onExit: onExit,
56585
- onExiting: onExiting,
56586
- onExited: handleHidden,
56587
- onEnter: onEnter,
56588
- onEntering: onEntering,
56589
- onEntered: onEntered,
56590
- children: child
56591
- });
56592
- }
56593
-
56834
+ child = renderTransition(Transition, runTransition, {
56835
+ in: !!props.show,
56836
+ appear: true,
56837
+ mountOnEnter: true,
56838
+ unmountOnExit: true,
56839
+ children: child,
56840
+ onExit,
56841
+ onExiting,
56842
+ onExited: handleHidden,
56843
+ onEnter,
56844
+ onEntering,
56845
+ onEntered
56846
+ });
56594
56847
  return container ? /*#__PURE__*/reactDom.createPortal(child, container) : null;
56595
56848
  });
56596
56849
  Overlay.displayName = 'Overlay';
@@ -56611,29 +56864,44 @@ function getOverlayDirection(placement, isRTL) {
56611
56864
  return bsDirection;
56612
56865
  }
56613
56866
 
56614
- const defaultProps$1 = {
56615
- placement: 'right'
56616
- };
56867
+ function getInitialPopperStyles(position = 'absolute') {
56868
+ return {
56869
+ position,
56870
+ top: '0',
56871
+ left: '0',
56872
+ opacity: '0',
56873
+ pointerEvents: 'none'
56874
+ };
56875
+ }
56876
+
56617
56877
  const Popover = /*#__PURE__*/forwardRef(({
56618
56878
  bsPrefix,
56619
- placement,
56879
+ placement = 'right',
56620
56880
  className,
56621
56881
  style,
56622
56882
  children,
56623
56883
  body,
56624
56884
  arrowProps,
56625
- popper: _,
56626
- show: _1,
56885
+ hasDoneInitialMeasure,
56886
+ popper,
56887
+ show,
56627
56888
  ...props
56628
56889
  }, ref) => {
56629
56890
  const decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
56630
56891
  const isRTL = useIsRTL();
56631
56892
  const [primaryPlacement] = (placement == null ? void 0 : placement.split('-')) || [];
56632
56893
  const bsDirection = getOverlayDirection(primaryPlacement, isRTL);
56894
+ let computedStyle = style;
56895
+ if (show && !hasDoneInitialMeasure) {
56896
+ computedStyle = {
56897
+ ...style,
56898
+ ...getInitialPopperStyles(popper == null ? void 0 : popper.strategy)
56899
+ };
56900
+ }
56633
56901
  return /*#__PURE__*/jsxs("div", {
56634
56902
  ref: ref,
56635
56903
  role: "tooltip",
56636
- style: style,
56904
+ style: computedStyle,
56637
56905
  "x-placement": primaryPlacement,
56638
56906
  className: classnames(className, decoratedBsPrefix, primaryPlacement && `bs-popover-${bsDirection}`),
56639
56907
  ...props,
@@ -56645,7 +56913,6 @@ const Popover = /*#__PURE__*/forwardRef(({
56645
56913
  }) : children]
56646
56914
  });
56647
56915
  });
56648
- Popover.defaultProps = defaultProps$1;
56649
56916
  var Popover$1 = Object.assign(Popover, {
56650
56917
  Header: PopoverHeader,
56651
56918
  Body: PopoverBody,
@@ -56673,12 +56940,6 @@ function useOverlayOffset(customOffset) {
56673
56940
  return [overlayRef, [offset]];
56674
56941
  }
56675
56942
 
56676
- const defaultProps$2 = {
56677
- transition: Fade,
56678
- rootClose: false,
56679
- show: false,
56680
- placement: 'top'
56681
- };
56682
56943
  function wrapRefs(props, arrowProps) {
56683
56944
  const {
56684
56945
  ref
@@ -56691,12 +56952,15 @@ function wrapRefs(props, arrowProps) {
56691
56952
  }
56692
56953
  const Overlay$1 = /*#__PURE__*/forwardRef(({
56693
56954
  children: overlay,
56694
- transition,
56955
+ transition = Fade,
56695
56956
  popperConfig = {},
56957
+ rootClose = false,
56958
+ placement = 'top',
56959
+ show: outerShow = false,
56696
56960
  ...outerProps
56697
56961
  }, outerRef) => {
56698
56962
  const popperRef = useRef({});
56699
- const [firstRenderedState, setFirstRenderedState] = useCallbackRef();
56963
+ const [firstRenderedState, setFirstRenderedState] = useState(null);
56700
56964
  const [ref, modifiers] = useOverlayOffset(outerProps.offset);
56701
56965
  const mergedRef = useMergedRefs(outerRef, ref);
56702
56966
  const actualTransition = transition === true ? Fade : transition || undefined;
@@ -56709,6 +56973,11 @@ const Overlay$1 = /*#__PURE__*/forwardRef(({
56709
56973
  popperRef.current.scheduleUpdate == null ? void 0 : popperRef.current.scheduleUpdate();
56710
56974
  }
56711
56975
  }, [firstRenderedState]);
56976
+ useEffect(() => {
56977
+ if (!outerShow) {
56978
+ setFirstRenderedState(null);
56979
+ }
56980
+ }, [outerShow]);
56712
56981
  return /*#__PURE__*/jsx(Overlay, {
56713
56982
  ...outerProps,
56714
56983
  ref: mergedRef,
@@ -56718,6 +56987,9 @@ const Overlay$1 = /*#__PURE__*/forwardRef(({
56718
56987
  onFirstUpdate: handleFirstUpdate
56719
56988
  },
56720
56989
  transition: actualTransition,
56990
+ rootClose: rootClose,
56991
+ placement: placement,
56992
+ show: outerShow,
56721
56993
  children: (overlayProps, {
56722
56994
  arrowProps,
56723
56995
  popper: popperObj,
@@ -56731,8 +57003,10 @@ const Overlay$1 = /*#__PURE__*/forwardRef(({
56731
57003
  state: popperObj == null ? void 0 : popperObj.state,
56732
57004
  scheduleUpdate: popperObj == null ? void 0 : popperObj.update,
56733
57005
  placement: updatedPlacement,
56734
- outOfBoundaries: (popperObj == null ? void 0 : (_popperObj$state = popperObj.state) == null ? void 0 : (_popperObj$state$modi = _popperObj$state.modifiersData.hide) == null ? void 0 : _popperObj$state$modi.isReferenceHidden) || false
57006
+ outOfBoundaries: (popperObj == null ? void 0 : (_popperObj$state = popperObj.state) == null ? void 0 : (_popperObj$state$modi = _popperObj$state.modifiersData.hide) == null ? void 0 : _popperObj$state$modi.isReferenceHidden) || false,
57007
+ strategy: popperConfig.strategy
56735
57008
  });
57009
+ const hasDoneInitialMeasure = !!firstRenderedState;
56736
57010
  if (typeof overlay === 'function') return overlay({
56737
57011
  ...overlayProps,
56738
57012
  placement: updatedPlacement,
@@ -56741,13 +57015,15 @@ const Overlay$1 = /*#__PURE__*/forwardRef(({
56741
57015
  className: 'show'
56742
57016
  }),
56743
57017
  popper,
56744
- arrowProps
57018
+ arrowProps,
57019
+ hasDoneInitialMeasure
56745
57020
  });
56746
57021
  return /*#__PURE__*/cloneElement(overlay, {
56747
57022
  ...overlayProps,
56748
57023
  placement: updatedPlacement,
56749
57024
  arrowProps,
56750
57025
  popper,
57026
+ hasDoneInitialMeasure,
56751
57027
  className: classnames(overlay.props.className, !transition && show && 'show'),
56752
57028
  style: {
56753
57029
  ...overlay.props.style,
@@ -56758,7 +57034,6 @@ const Overlay$1 = /*#__PURE__*/forwardRef(({
56758
57034
  });
56759
57035
  });
56760
57036
  Overlay$1.displayName = 'Overlay';
56761
- Overlay$1.defaultProps = defaultProps$2;
56762
57037
 
56763
57038
  function normalizeDelay(delay) {
56764
57039
  return delay && typeof delay === 'object' ? delay : {
@@ -56781,12 +57056,8 @@ handler, args, relatedNative) {
56781
57056
  handler(...args);
56782
57057
  }
56783
57058
  }
56784
- const defaultProps$3 = {
56785
- defaultShow: false,
56786
- trigger: ['hover', 'focus']
56787
- };
56788
57059
  function OverlayTrigger({
56789
- trigger,
57060
+ trigger = ['hover', 'focus'],
56790
57061
  overlay,
56791
57062
  children,
56792
57063
  popperConfig = {},
@@ -56881,7 +57152,6 @@ function OverlayTrigger({
56881
57152
  })]
56882
57153
  });
56883
57154
  }
56884
- OverlayTrigger.defaultProps = defaultProps$3;
56885
57155
 
56886
57156
  var styles$5 = {"vitro-action-handler":"_action-handler_vitro-action-handler_1_HNxCd","vitro-icon-before":"_action-handler_vitro-icon-before_3vTdV08","vitro-icon-progress":"_action-handler_vitro-icon-progress_28liEuB","vitro-icon-success":"_action-handler_vitro-icon-success_1jnQDIv","vitro-icon-error":"_action-handler_vitro-icon-error_3OPWhCB","vitro-button-close":"_action-handler_vitro-button-close_33qzSIU","vitro-flex":"_action-handler_vitro-flex_3Pyc7fz"};
56887
57157
 
@@ -56898,33 +57168,42 @@ var UpdatingPopover = React__default.forwardRef(function (_ref, ref) {
56898
57168
  }, props), children));
56899
57169
  });
56900
57170
 
56901
- var ACTION_HANDLER_LOCALE;
56902
- (function (ACTION_HANDLER_LOCALE) {
56903
- ACTION_HANDLER_LOCALE["CONF_SINGLE"] = "app.common.msg.action.conf.single";
56904
- ACTION_HANDLER_LOCALE["CONF_MULTI"] = "app.common.msg.action.conf.multi";
56905
- ACTION_HANDLER_LOCALE["SUCCESS_SINGLE"] = "app.common.msg.action.success.single";
56906
- ACTION_HANDLER_LOCALE["SUCCESS_MULTI"] = "app.common.msg.action.success.multi";
56907
- ACTION_HANDLER_LOCALE["ERROR_SINGLE"] = "app.common.msg.action.error.single";
56908
- ACTION_HANDLER_LOCALE["ERROR_MULTI"] = "app.common.msg.action.error.multi";
56909
- ACTION_HANDLER_LOCALE["PROGRESS_SINGLE"] = "app.common.msg.action.progress.single";
56910
- ACTION_HANDLER_LOCALE["PROGRESS_MULTI"] = "app.common.msg.action.progress.multi";
56911
- ACTION_HANDLER_LOCALE["YES"] = "app.common.action.yes";
56912
- ACTION_HANDLER_LOCALE["NO"] = "app.common.action.no";
56913
- })(ACTION_HANDLER_LOCALE || (ACTION_HANDLER_LOCALE = {}));
57171
+ var LOCALE;
57172
+ (function (LOCALE) {
57173
+ LOCALE["CONF_SINGLE"] = "app.common.msg.action.conf.single";
57174
+ LOCALE["CONF_MULTI"] = "app.common.msg.action.conf.multi";
57175
+ LOCALE["SUCCESS_SINGLE"] = "app.common.msg.action.success.single";
57176
+ LOCALE["SUCCESS_MULTI"] = "app.common.msg.action.success.multi";
57177
+ LOCALE["ERROR_SINGLE"] = "app.common.msg.action.error.single";
57178
+ LOCALE["ERROR_MULTI"] = "app.common.msg.action.error.multi";
57179
+ LOCALE["PROGRESS_SINGLE"] = "app.common.msg.action.progress.single";
57180
+ LOCALE["PROGRESS_MULTI"] = "app.common.msg.action.progress.multi";
57181
+ LOCALE["YES"] = "app.common.action.yes";
57182
+ LOCALE["NO"] = "app.common.action.no";
57183
+ })(LOCALE || (LOCALE = {}));
56914
57184
  var PLACEMENT;
56915
57185
  (function (PLACEMENT) {
56916
57186
  PLACEMENT["TOP"] = "top";
57187
+ PLACEMENT["BOTTOM"] = "bottom";
56917
57188
  })(PLACEMENT || (PLACEMENT = {}));
56918
- var SYMBOL;
56919
- (function (SYMBOL) {
56920
- SYMBOL["QUESTION_MARK"] = "?";
56921
- SYMBOL["EMPTY_STRING"] = "";
56922
- })(SYMBOL || (SYMBOL = {}));
57189
+ var CTRL;
57190
+ (function (CTRL) {
57191
+ CTRL["QUESTION"] = "?";
57192
+ CTRL["EMPTY"] = "";
57193
+ })(CTRL || (CTRL = {}));
56923
57194
  var TRIGGER;
56924
57195
  (function (TRIGGER) {
56925
57196
  TRIGGER["CLICK"] = "click";
56926
57197
  })(TRIGGER || (TRIGGER = {}));
56927
57198
 
57199
+ var ActionHandlerConstants = {
57200
+ __proto__: null,
57201
+ get LOCALE () { return LOCALE; },
57202
+ get PLACEMENT () { return PLACEMENT; },
57203
+ get CTRL () { return CTRL; },
57204
+ get TRIGGER () { return TRIGGER; }
57205
+ };
57206
+
56928
57207
  var SERVICE = function SERVICE() {};
56929
57208
  SERVICE.LOCALE = 'LocaleService';
56930
57209
 
@@ -56934,7 +57213,7 @@ var actionMap = {
56934
57213
  after: 2
56935
57214
  };
56936
57215
  var ActionHandler = function ActionHandler(props) {
56937
- var _useState = useState(SYMBOL.EMPTY_STRING),
57216
+ var _useState = useState(CTRL.EMPTY),
56938
57217
  text = _useState[0],
56939
57218
  setText = _useState[1];
56940
57219
  var _useState2 = useState(true),
@@ -56983,17 +57262,17 @@ var ActionHandler = function ActionHandler(props) {
56983
57262
  confText = props.confirmText(itemCount);
56984
57263
  } else {
56985
57264
  if (itemCount === 1) {
56986
- confText = localeService.create(ACTION_HANDLER_LOCALE.CONF_SINGLE, {
57265
+ confText = localeService.create(LOCALE.CONF_SINGLE, {
56987
57266
  actionCode: props.actionCode
56988
57267
  });
56989
57268
  } else {
56990
- confText = localeService.create(ACTION_HANDLER_LOCALE.CONF_MULTI, {
57269
+ confText = localeService.create(LOCALE.CONF_MULTI, {
56991
57270
  actionCode: props.actionCode,
56992
57271
  itemCount: itemCount
56993
57272
  });
56994
57273
  }
56995
57274
  }
56996
- setText(confText + SYMBOL.QUESTION_MARK);
57275
+ setText(confText + CTRL.QUESTION);
56997
57276
  }
56998
57277
  setCurrentAction(actionMap.before);
56999
57278
  };
@@ -57031,12 +57310,12 @@ var ActionHandler = function ActionHandler(props) {
57031
57310
  }
57032
57311
  }
57033
57312
  if (itemCount === 1) {
57034
- var key = success ? ACTION_HANDLER_LOCALE.SUCCESS_SINGLE : ACTION_HANDLER_LOCALE.ERROR_SINGLE;
57313
+ var key = success ? LOCALE.SUCCESS_SINGLE : LOCALE.ERROR_SINGLE;
57035
57314
  setText(localeService.create(key, {
57036
57315
  actionCode: props.actionCode
57037
57316
  }));
57038
57317
  } else {
57039
- var _key = success ? ACTION_HANDLER_LOCALE.SUCCESS_MULTI : ACTION_HANDLER_LOCALE.ERROR_MULTI;
57318
+ var _key = success ? LOCALE.SUCCESS_MULTI : LOCALE.ERROR_MULTI;
57040
57319
  setText(localeService.create(_key, {
57041
57320
  actionCode: props.actionCode,
57042
57321
  itemCount: itemCount
@@ -57049,11 +57328,11 @@ var ActionHandler = function ActionHandler(props) {
57049
57328
  setText(props.progressText(itemCount));
57050
57329
  } else {
57051
57330
  if (itemCount === 1) {
57052
- setText(localeService.create(ACTION_HANDLER_LOCALE.PROGRESS_SINGLE, {
57331
+ setText(localeService.create(LOCALE.PROGRESS_SINGLE, {
57053
57332
  actionCode: props.actionCode
57054
57333
  }));
57055
57334
  } else {
57056
- setText(localeService.create(ACTION_HANDLER_LOCALE.PROGRESS_MULTI, {
57335
+ setText(localeService.create(LOCALE.PROGRESS_MULTI, {
57057
57336
  idx: 1,
57058
57337
  actionCode: props.actionCode,
57059
57338
  itemCount: itemCount
@@ -57071,13 +57350,13 @@ var ActionHandler = function ActionHandler(props) {
57071
57350
  return itemList.reduce(function (p, item, i) {
57072
57351
  return p.then(function (res) {
57073
57352
  if (itemCount > 1) {
57074
- setText(localeService.create(ACTION_HANDLER_LOCALE.PROGRESS_MULTI, {
57353
+ setText(localeService.create(LOCALE.PROGRESS_MULTI, {
57075
57354
  idx: i + 1,
57076
57355
  itemCount: itemCount,
57077
57356
  actionCode: props.actionCode
57078
57357
  }));
57079
57358
  } else {
57080
- setText(localeService.create(ACTION_HANDLER_LOCALE.PROGRESS_SINGLE, {
57359
+ setText(localeService.create(LOCALE.PROGRESS_SINGLE, {
57081
57360
  actionCode: props.actionCode
57082
57361
  }));
57083
57362
  }
@@ -57133,11 +57412,11 @@ var ActionHandler = function ActionHandler(props) {
57133
57412
  className: icon
57134
57413
  }), text), showButtonGroup && React__default.createElement(ButtonGroup, null, React__default.createElement(Button, {
57135
57414
  onClick: onStart,
57136
- text: localeService.create(ACTION_HANDLER_LOCALE.YES) || props.labelYes,
57415
+ text: localeService.create(LOCALE.YES) || props.labelYes,
57137
57416
  disabled: currentAction !== actionMap.before
57138
57417
  }), React__default.createElement(Button, {
57139
57418
  onClick: cancel,
57140
- text: localeService.create(ACTION_HANDLER_LOCALE.NO) || props.labelNo,
57419
+ text: localeService.create(LOCALE.NO) || props.labelNo,
57141
57420
  className: styles$5["vitro-button-close"]
57142
57421
  })))
57143
57422
  }, React__default.createElement("div", null, props.children)), props.target && !props.children && React__default.createElement(Overlay$1, {
@@ -57154,14 +57433,14 @@ var ActionHandler = function ActionHandler(props) {
57154
57433
  className: icon
57155
57434
  }), text), showButtonGroup && React__default.createElement(ButtonGroup, null, React__default.createElement(Button, {
57156
57435
  onClick: onStart,
57157
- text: localeService.create(ACTION_HANDLER_LOCALE.YES) || props.labelYes,
57436
+ text: localeService.create(LOCALE.YES) || props.labelYes,
57158
57437
  disabled: currentAction !== actionMap.before
57159
57438
  }), React__default.createElement(Button, {
57160
57439
  onClick: cancel,
57161
- text: localeService.create(ACTION_HANDLER_LOCALE.NO) || props.labelNo,
57440
+ text: localeService.create(LOCALE.NO) || props.labelNo,
57162
57441
  className: styles$5["vitro-button-close"]
57163
57442
  })))));
57164
57443
  };
57165
57444
 
57166
- export { ActionHandler, Breadcrumbs, ComponentLoader, ComponentLoaderContextImpl, MicroFrontend, TableView, TelerikUploader, TelerikUploaderContextImpl, TopLevelMenu, TreeView };
57445
+ export { ActionHandlerConstants as ACTION_HANDLER, ActionHandler, Breadcrumbs, ComponentLoader, ComponentLoaderContextImpl, MicroFrontend, TableViewConstants as TABLE_VIEW, TreeViewConstants as TREE_VIEW, TableView, TelerikUploader, TelerikUploaderContextImpl, TopLevelMenu, TreeView };
57167
57446
  //# sourceMappingURL=index.modern.js.map