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