@vitrosoftware/common-ui-ts 1.0.7 → 1.0.8

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
  }();
@@ -20021,6 +20039,14 @@ var TABLE_VIEW_CACHE;
20021
20039
  TABLE_VIEW_CACHE[TABLE_VIEW_CACHE["DEFAULT"] = 2] = "DEFAULT";
20022
20040
  })(TABLE_VIEW_CACHE || (TABLE_VIEW_CACHE = {}));
20023
20041
 
20042
+ var TableViewConstants = {
20043
+ __proto__: null,
20044
+ get TABLE_VIEW_EVENTS () { return TABLE_VIEW_EVENTS; },
20045
+ get TABLE_VIEW_URL () { return TABLE_VIEW_URL; },
20046
+ get TABLE_VIEW_CONTROLLER () { return TABLE_VIEW_CONTROLLER; },
20047
+ get TABLE_VIEW_CACHE () { return TABLE_VIEW_CACHE; }
20048
+ };
20049
+
20024
20050
  function _defineProperties(target, props) {
20025
20051
  for (var i = 0; i < props.length; i++) {
20026
20052
  var descriptor = props[i];
@@ -53850,13 +53876,6 @@ var isDOM = typeof document !== 'undefined';
53850
53876
 
53851
53877
  var useIsomorphicEffect = isDOM || isReactNative ? React.useLayoutEffect : React.useEffect;
53852
53878
 
53853
- const defaultProps = {
53854
- in: false,
53855
- timeout: 300,
53856
- mountOnEnter: false,
53857
- unmountOnExit: false,
53858
- appear: false
53859
- };
53860
53879
  const fadeStyles = {
53861
53880
  [ENTERING]: 'show',
53862
53881
  [ENTERED]: 'show'
@@ -53865,11 +53884,20 @@ const Fade = /*#__PURE__*/React.forwardRef(({
53865
53884
  className,
53866
53885
  children,
53867
53886
  transitionClasses = {},
53868
- ...props
53887
+ onEnter,
53888
+ ...rest
53869
53889
  }, ref) => {
53890
+ const props = {
53891
+ in: false,
53892
+ timeout: 300,
53893
+ mountOnEnter: false,
53894
+ unmountOnExit: false,
53895
+ appear: false,
53896
+ ...rest
53897
+ };
53870
53898
  const handleEnter = React.useCallback((node, isAppearing) => {
53871
- props.onEnter == null ? void 0 : props.onEnter(node, isAppearing);
53872
- }, [props]);
53899
+ onEnter == null ? void 0 : onEnter(node, isAppearing);
53900
+ }, [onEnter]);
53873
53901
  return /*#__PURE__*/jsxRuntime.jsx(TransitionWrapper, {
53874
53902
  ref: ref,
53875
53903
  addEndListener: transitionEndListener,
@@ -53882,7 +53910,6 @@ const Fade = /*#__PURE__*/React.forwardRef(({
53882
53910
  })
53883
53911
  });
53884
53912
  });
53885
- Fade.defaultProps = defaultProps;
53886
53913
  Fade.displayName = 'Fade';
53887
53914
 
53888
53915
  var rHyphen = /-(.)/g;
@@ -53905,14 +53932,17 @@ function createWithBsPrefix(prefix, {
53905
53932
  as: Tag = Component || 'div',
53906
53933
  ...props
53907
53934
  }, ref) => {
53935
+ const componentProps = {
53936
+ ...defaultProps,
53937
+ ...props
53938
+ };
53908
53939
  const resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
53909
53940
  return /*#__PURE__*/jsxRuntime.jsx(Tag, {
53910
53941
  ref: ref,
53911
53942
  className: classnames(className, resolvedPrefix),
53912
- ...props
53943
+ ...componentProps
53913
53944
  });
53914
53945
  });
53915
- BsComponent.defaultProps = defaultProps;
53916
53946
  BsComponent.displayName = displayName;
53917
53947
  return BsComponent;
53918
53948
  }
@@ -54187,7 +54217,7 @@ var round = Math.round;
54187
54217
  function getUAString() {
54188
54218
  var uaData = navigator.userAgentData;
54189
54219
 
54190
- if (uaData != null && uaData.brands) {
54220
+ if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {
54191
54221
  return uaData.brands.map(function (item) {
54192
54222
  return item.brand + "/" + item.version;
54193
54223
  }).join(' ');
@@ -54519,10 +54549,9 @@ var unsetSides = {
54519
54549
  // Zooming can change the DPR, but it seems to report a value that will
54520
54550
  // cleanly divide the values into the appropriate subpixels.
54521
54551
 
54522
- function roundOffsetsByDPR(_ref) {
54552
+ function roundOffsetsByDPR(_ref, win) {
54523
54553
  var x = _ref.x,
54524
54554
  y = _ref.y;
54525
- var win = window;
54526
54555
  var dpr = win.devicePixelRatio || 1;
54527
54556
  return {
54528
54557
  x: round(x * dpr) / dpr || 0,
@@ -54605,7 +54634,7 @@ function mapToStyles(_ref2) {
54605
54634
  var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
54606
54635
  x: x,
54607
54636
  y: y
54608
- }) : {
54637
+ }, getWindow(popper)) : {
54609
54638
  x: x,
54610
54639
  y: y
54611
54640
  };
@@ -55997,21 +56026,22 @@ function popperGenerator(generatorOptions) {
55997
56026
  };
55998
56027
  }
55999
56028
 
56029
+ // For the common JS build we will turn this file into a bundle with no imports.
56000
56030
  // This is b/c the Popper lib is all esm files, and would break in a common js only environment
56001
-
56002
56031
  const createPopper = popperGenerator({
56003
56032
  defaultModifiers: [hide$1, popperOffsets$1, computeStyles$1, eventListeners, offset$1, flip$1, preventOverflow$1, arrow$1]
56004
56033
  });
56005
56034
 
56006
56035
  const _excluded = ["enabled", "placement", "strategy", "modifiers"];
56007
-
56008
56036
  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
56037
  const disabledApplyStylesModifier = {
56010
56038
  name: 'applyStyles',
56011
56039
  enabled: false,
56012
56040
  phase: 'afterWrite',
56013
56041
  fn: () => undefined
56014
- }; // until docjs supports type exports...
56042
+ };
56043
+
56044
+ // until docjs supports type exports...
56015
56045
 
56016
56046
  const ariaDescribedByModifier = {
56017
56047
  name: 'ariaDescribedBy',
@@ -56024,7 +56054,6 @@ const ariaDescribedByModifier = {
56024
56054
  reference,
56025
56055
  popper
56026
56056
  } = state.elements;
56027
-
56028
56057
  if ('removeAttribute' in reference) {
56029
56058
  const ids = (reference.getAttribute('aria-describedby') || '').split(',').filter(id => id.trim() !== popper.id);
56030
56059
  if (!ids.length) reference.removeAttribute('aria-describedby');else reference.setAttribute('aria-describedby', ids.join(','));
@@ -56034,20 +56063,16 @@ const ariaDescribedByModifier = {
56034
56063
  state
56035
56064
  }) => {
56036
56065
  var _popper$getAttribute;
56037
-
56038
56066
  const {
56039
56067
  popper,
56040
56068
  reference
56041
56069
  } = state.elements;
56042
56070
  const role = (_popper$getAttribute = popper.getAttribute('role')) == null ? void 0 : _popper$getAttribute.toLowerCase();
56043
-
56044
56071
  if (popper.id && role === 'tooltip' && 'setAttribute' in reference) {
56045
56072
  const ids = reference.getAttribute('aria-describedby');
56046
-
56047
56073
  if (ids && ids.split(',').indexOf(popper.id) !== -1) {
56048
56074
  return;
56049
56075
  }
56050
-
56051
56076
  reference.setAttribute('aria-describedby', ids ? `${ids},${popper.id}` : popper.id);
56052
56077
  }
56053
56078
  }
@@ -56068,26 +56093,22 @@ const EMPTY_MODIFIERS = [];
56068
56093
  *
56069
56094
  * @returns {UsePopperState} The popper state
56070
56095
  */
56071
-
56072
56096
  function usePopper(referenceElement, popperElement, _ref = {}) {
56073
56097
  let {
56074
- enabled = true,
56075
- placement = 'bottom',
56076
- strategy = 'absolute',
56077
- modifiers = EMPTY_MODIFIERS
56078
- } = _ref,
56079
- config = _objectWithoutPropertiesLoose$2(_ref, _excluded);
56080
-
56098
+ enabled = true,
56099
+ placement = 'bottom',
56100
+ strategy = 'absolute',
56101
+ modifiers = EMPTY_MODIFIERS
56102
+ } = _ref,
56103
+ config = _objectWithoutPropertiesLoose$2(_ref, _excluded);
56081
56104
  const prevModifiers = React.useRef(modifiers);
56082
56105
  const popperInstanceRef = React.useRef();
56083
56106
  const update = React.useCallback(() => {
56084
56107
  var _popperInstanceRef$cu;
56085
-
56086
56108
  (_popperInstanceRef$cu = popperInstanceRef.current) == null ? void 0 : _popperInstanceRef$cu.update();
56087
56109
  }, []);
56088
56110
  const forceUpdate = React.useCallback(() => {
56089
56111
  var _popperInstanceRef$cu2;
56090
-
56091
56112
  (_popperInstanceRef$cu2 = popperInstanceRef.current) == null ? void 0 : _popperInstanceRef$cu2.forceUpdate();
56092
56113
  }, []);
56093
56114
  const [popperState, setState] = useSafeState(React.useState({
@@ -56128,7 +56149,6 @@ function usePopper(referenceElement, popperElement, _ref = {}) {
56128
56149
  if (!dequal(prevModifiers.current, modifiers)) {
56129
56150
  prevModifiers.current = modifiers;
56130
56151
  }
56131
-
56132
56152
  return prevModifiers.current;
56133
56153
  }, [modifiers]);
56134
56154
  React.useEffect(() => {
@@ -56143,7 +56163,6 @@ function usePopper(referenceElement, popperElement, _ref = {}) {
56143
56163
  if (!enabled || referenceElement == null || popperElement == null) {
56144
56164
  return undefined;
56145
56165
  }
56146
-
56147
56166
  popperInstanceRef.current = createPopper(referenceElement, popperElement, Object.assign({}, config, {
56148
56167
  placement,
56149
56168
  strategy,
@@ -56160,7 +56179,8 @@ function usePopper(referenceElement, popperElement, _ref = {}) {
56160
56179
  }
56161
56180
  }));
56162
56181
  }
56163
- }; // This is only run once to _create_ the popper
56182
+ };
56183
+ // This is only run once to _create_ the popper
56164
56184
  // eslint-disable-next-line react-hooks/exhaustive-deps
56165
56185
  }, [enabled, referenceElement, popperElement]);
56166
56186
  return popperState;
@@ -56243,21 +56263,19 @@ if (__DEV__) {
56243
56263
  var warning_1 = warning;
56244
56264
 
56245
56265
  const noop$1 = () => {};
56246
-
56247
56266
  function isLeftClickEvent(event) {
56248
56267
  return event.button === 0;
56249
56268
  }
56250
-
56251
56269
  function isModifiedEvent(event) {
56252
56270
  return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
56253
56271
  }
56254
-
56255
56272
  const getRefTarget = ref => ref && ('current' in ref ? ref.current : ref);
56256
56273
  const InitialTriggerEvents = {
56257
56274
  click: 'mousedown',
56258
56275
  mouseup: 'mousedown',
56259
56276
  pointerup: 'pointerdown'
56260
56277
  };
56278
+
56261
56279
  /**
56262
56280
  * The `useClickOutside` hook registers your callback on the document that fires
56263
56281
  * when a pointer event is registered outside of the provided ref or element.
@@ -56268,7 +56286,6 @@ const InitialTriggerEvents = {
56268
56286
  * @param {boolean=} options.disabled
56269
56287
  * @param {string=} options.clickTrigger The DOM event name (click, mousedown, etc) to attach listeners on
56270
56288
  */
56271
-
56272
56289
  function useClickOutside(ref, onClickOutside = noop$1, {
56273
56290
  disabled,
56274
56291
  clickTrigger = 'click'
@@ -56283,7 +56300,6 @@ function useClickOutside(ref, onClickOutside = noop$1, {
56283
56300
  }, [ref]);
56284
56301
  const handleInitialMouse = useEventCallback(e => {
56285
56302
  const currentTarget = getRefTarget(ref);
56286
-
56287
56303
  if (currentTarget && contains$1(currentTarget, e.target)) {
56288
56304
  waitingForTrigger.current = true;
56289
56305
  }
@@ -56295,19 +56311,19 @@ function useClickOutside(ref, onClickOutside = noop$1, {
56295
56311
  });
56296
56312
  React.useEffect(() => {
56297
56313
  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
56314
+ const doc = ownerDocument(getRefTarget(ref));
56300
56315
 
56316
+ // Store the current event to avoid triggering handlers immediately
56317
+ // https://github.com/facebook/react/issues/20074
56301
56318
  let currentEvent = (doc.defaultView || window).event;
56302
56319
  let removeInitialTriggerListener = null;
56303
-
56304
56320
  if (InitialTriggerEvents[clickTrigger]) {
56305
56321
  removeInitialTriggerListener = listen(doc, InitialTriggerEvents[clickTrigger], handleInitialMouse, true);
56306
- } // Use capture for this listener so it fires before React's listener, to
56322
+ }
56323
+
56324
+ // Use capture for this listener so it fires before React's listener, to
56307
56325
  // avoid false positives in the contains() check below if the target DOM
56308
56326
  // element is removed in the React mouse callback.
56309
-
56310
-
56311
56327
  const removeMouseCaptureListener = listen(doc, clickTrigger, handleMouseCapture, true);
56312
56328
  const removeMouseListener = listen(doc, clickTrigger, e => {
56313
56329
  // skip if this event is the same as the one running when we added the handlers
@@ -56315,15 +56331,12 @@ function useClickOutside(ref, onClickOutside = noop$1, {
56315
56331
  currentEvent = undefined;
56316
56332
  return;
56317
56333
  }
56318
-
56319
56334
  handleMouse(e);
56320
56335
  });
56321
56336
  let mobileSafariHackListeners = [];
56322
-
56323
56337
  if ('ontouchstart' in doc.documentElement) {
56324
56338
  mobileSafariHackListeners = [].slice.call(doc.body.children).map(el => listen(el, 'mousemove', noop$1));
56325
56339
  }
56326
-
56327
56340
  return () => {
56328
56341
  removeInitialTriggerListener == null ? void 0 : removeInitialTriggerListener();
56329
56342
  removeMouseCaptureListener();
@@ -56335,12 +56348,11 @@ function useClickOutside(ref, onClickOutside = noop$1, {
56335
56348
 
56336
56349
  function toModifierMap(modifiers) {
56337
56350
  const result = {};
56338
-
56339
56351
  if (!Array.isArray(modifiers)) {
56340
56352
  return modifiers || result;
56341
- } // eslint-disable-next-line no-unused-expressions
56342
-
56353
+ }
56343
56354
 
56355
+ // eslint-disable-next-line no-unused-expressions
56344
56356
  modifiers == null ? void 0 : modifiers.forEach(m => {
56345
56357
  result[m.name] = m;
56346
56358
  });
@@ -56365,7 +56377,6 @@ function mergeOptionsWithPopperConfig({
56365
56377
  popperConfig = {}
56366
56378
  }) {
56367
56379
  var _modifiers$eventListe, _modifiers$preventOve, _modifiers$preventOve2, _modifiers$offset, _modifiers$arrow;
56368
-
56369
56380
  const modifiers = toModifierMap(popperConfig.modifiers);
56370
56381
  return Object.assign({}, popperConfig, {
56371
56382
  placement,
@@ -56400,13 +56411,13 @@ function mergeOptionsWithPopperConfig({
56400
56411
  }
56401
56412
 
56402
56413
  const Context = /*#__PURE__*/React.createContext(canUseDOM ? window : undefined);
56414
+
56403
56415
  /**
56404
56416
  * The document "window" placed in React context. Helpful for determining
56405
56417
  * SSR context, or when rendering into an iframe.
56406
56418
  *
56407
56419
  * @returns the current window
56408
56420
  */
56409
-
56410
56421
  function useWindow() {
56411
56422
  return React.useContext(Context);
56412
56423
  }
@@ -56422,12 +56433,10 @@ const resolveContainerRef = (ref, document) => {
56422
56433
  function useWaitForDOMRef(ref, onResolved) {
56423
56434
  const window = useWindow();
56424
56435
  const [resolvedRef, setRef] = React.useState(() => resolveContainerRef(ref, window == null ? void 0 : window.document));
56425
-
56426
56436
  if (!resolvedRef) {
56427
56437
  const earlyRef = resolveContainerRef(ref);
56428
56438
  if (earlyRef) setRef(earlyRef);
56429
56439
  }
56430
-
56431
56440
  React.useEffect(() => {
56432
56441
  if (onResolved && resolvedRef) {
56433
56442
  onResolved(resolvedRef);
@@ -56435,7 +56444,6 @@ function useWaitForDOMRef(ref, onResolved) {
56435
56444
  }, [onResolved, resolvedRef]);
56436
56445
  React.useEffect(() => {
56437
56446
  const nextRef = resolveContainerRef(ref);
56438
-
56439
56447
  if (nextRef !== resolvedRef) {
56440
56448
  setRef(nextRef);
56441
56449
  }
@@ -56443,6 +56451,125 @@ function useWaitForDOMRef(ref, onResolved) {
56443
56451
  return resolvedRef;
56444
56452
  }
56445
56453
 
56454
+ function NoopTransition({
56455
+ children,
56456
+ in: inProp,
56457
+ onExited,
56458
+ mountOnEnter,
56459
+ unmountOnExit
56460
+ }) {
56461
+ const ref = React.useRef(null);
56462
+ const hasEnteredRef = React.useRef(inProp);
56463
+ const handleExited = useEventCallback(onExited);
56464
+ React.useEffect(() => {
56465
+ if (inProp) hasEnteredRef.current = true;else {
56466
+ handleExited(ref.current);
56467
+ }
56468
+ }, [inProp, handleExited]);
56469
+ const combinedRef = useMergedRefs(ref, children.ref);
56470
+ const child = /*#__PURE__*/React.cloneElement(children, {
56471
+ ref: combinedRef
56472
+ });
56473
+ if (inProp) return child;
56474
+ if (unmountOnExit) {
56475
+ return null;
56476
+ }
56477
+ if (!hasEnteredRef.current && mountOnEnter) {
56478
+ return null;
56479
+ }
56480
+ return child;
56481
+ }
56482
+
56483
+ function useTransition({
56484
+ in: inProp,
56485
+ onTransition
56486
+ }) {
56487
+ const ref = React.useRef(null);
56488
+ const isInitialRef = React.useRef(true);
56489
+ const handleTransition = useEventCallback(onTransition);
56490
+ useIsomorphicEffect(() => {
56491
+ if (!ref.current) {
56492
+ return undefined;
56493
+ }
56494
+ let stale = false;
56495
+ handleTransition({
56496
+ in: inProp,
56497
+ element: ref.current,
56498
+ initial: isInitialRef.current,
56499
+ isStale: () => stale
56500
+ });
56501
+ return () => {
56502
+ stale = true;
56503
+ };
56504
+ }, [inProp, handleTransition]);
56505
+ useIsomorphicEffect(() => {
56506
+ isInitialRef.current = false;
56507
+ // this is for strict mode
56508
+ return () => {
56509
+ isInitialRef.current = true;
56510
+ };
56511
+ }, []);
56512
+ return ref;
56513
+ }
56514
+ /**
56515
+ * Adapts an imperative transition function to a subset of the RTG `<Transition>` component API.
56516
+ *
56517
+ * ImperativeTransition does not support mounting options or `appear` at the moment, meaning
56518
+ * that it always acts like: `mountOnEnter={true} unmountOnExit={true} appear={true}`
56519
+ */
56520
+ function ImperativeTransition({
56521
+ children,
56522
+ in: inProp,
56523
+ onExited,
56524
+ onEntered,
56525
+ transition
56526
+ }) {
56527
+ const [exited, setExited] = React.useState(!inProp);
56528
+
56529
+ // TODO: I think this needs to be in an effect
56530
+ if (inProp && exited) {
56531
+ setExited(false);
56532
+ }
56533
+ const ref = useTransition({
56534
+ in: !!inProp,
56535
+ onTransition: options => {
56536
+ const onFinish = () => {
56537
+ if (options.isStale()) return;
56538
+ if (options.in) {
56539
+ onEntered == null ? void 0 : onEntered(options.element, options.initial);
56540
+ } else {
56541
+ setExited(true);
56542
+ onExited == null ? void 0 : onExited(options.element);
56543
+ }
56544
+ };
56545
+ Promise.resolve(transition(options)).then(onFinish, error => {
56546
+ if (!options.in) setExited(true);
56547
+ throw error;
56548
+ });
56549
+ }
56550
+ });
56551
+ const combinedRef = useMergedRefs(ref, children.ref);
56552
+ return exited && !inProp ? null : /*#__PURE__*/React.cloneElement(children, {
56553
+ ref: combinedRef
56554
+ });
56555
+ }
56556
+ function renderTransition(Component, runTransition, props) {
56557
+ if (Component) {
56558
+ return /*#__PURE__*/jsxRuntime.jsx(Component, Object.assign({}, props));
56559
+ }
56560
+ if (runTransition) {
56561
+ return /*#__PURE__*/jsxRuntime.jsx(ImperativeTransition, Object.assign({}, props, {
56562
+ transition: runTransition
56563
+ }));
56564
+ }
56565
+ return /*#__PURE__*/jsxRuntime.jsx(NoopTransition, Object.assign({}, props));
56566
+ }
56567
+
56568
+ /* eslint-disable import/prefer-default-export */
56569
+ function isEscKey(e) {
56570
+ return e.code === 'Escape' || e.keyCode === 27;
56571
+ }
56572
+
56446
56573
  /**
56447
56574
  * Checks if a given element has a CSS class.
56448
56575
  *
@@ -56454,10 +56581,7 @@ function hasClass(element, className) {
56454
56581
  return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
56455
56582
  }
56456
56583
 
56457
- const escapeKeyCode = 27;
56458
-
56459
56584
  const noop$2 = () => {};
56460
-
56461
56585
  /**
56462
56586
  * The `useRootClose` hook registers your callback on the document
56463
56587
  * when rendered. Powers the `<Overlay/>` component. This is used achieve modal
@@ -56480,15 +56604,16 @@ function useRootClose(ref, onRootClose, {
56480
56604
  clickTrigger
56481
56605
  });
56482
56606
  const handleKeyUp = useEventCallback(e => {
56483
- if (e.keyCode === escapeKeyCode) {
56607
+ if (isEscKey(e)) {
56484
56608
  onClose(e);
56485
56609
  }
56486
56610
  });
56487
56611
  React.useEffect(() => {
56488
56612
  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
56613
+ const doc = ownerDocument(getRefTarget(ref));
56491
56614
 
56615
+ // Store the current event to avoid triggering handlers immediately
56616
+ // https://github.com/facebook/react/issues/20074
56492
56617
  let currentEvent = (doc.defaultView || window).event;
56493
56618
  const removeKeyupListener = listen(doc, 'keyup', e => {
56494
56619
  // skip if this event is the same as the one running when we added the handlers
@@ -56496,7 +56621,6 @@ function useRootClose(ref, onRootClose, {
56496
56621
  currentEvent = undefined;
56497
56622
  return;
56498
56623
  }
56499
-
56500
56624
  handleKeyUp(e);
56501
56625
  });
56502
56626
  return () => {
@@ -56516,7 +56640,8 @@ const Overlay = /*#__PURE__*/React.forwardRef((props, outerRef) => {
56516
56640
  placement,
56517
56641
  containerPadding,
56518
56642
  popperConfig = {},
56519
- transition: Transition
56643
+ transition: Transition,
56644
+ runTransition
56520
56645
  } = props;
56521
56646
  const [rootElement, attachRef] = useCallbackRef();
56522
56647
  const [arrowElement, attachArrowRef] = useCallbackRef();
@@ -56534,32 +56659,34 @@ const Overlay = /*#__PURE__*/React.forwardRef((props, outerRef) => {
56534
56659
  popperConfig
56535
56660
  }));
56536
56661
 
56537
- if (props.show) {
56538
- if (exited) setExited(false);
56539
- } else if (!props.transition && !exited) {
56540
- setExited(true);
56662
+ // TODO: I think this needs to be in an effect
56663
+ if (props.show && exited) {
56664
+ setExited(false);
56541
56665
  }
56542
-
56543
56666
  const handleHidden = (...args) => {
56544
56667
  setExited(true);
56545
-
56546
56668
  if (props.onExited) {
56547
56669
  props.onExited(...args);
56548
56670
  }
56549
- }; // Don't un-render the overlay while it's transitioning out.
56550
-
56671
+ };
56551
56672
 
56552
- const mountOverlay = props.show || Transition && !exited;
56673
+ // Don't un-render the overlay while it's transitioning out.
56674
+ const mountOverlay = props.show || !exited;
56553
56675
  useRootClose(rootElement, props.onHide, {
56554
56676
  disabled: !props.rootClose || props.rootCloseDisabled,
56555
56677
  clickTrigger: props.rootCloseEvent
56556
56678
  });
56557
-
56558
56679
  if (!mountOverlay) {
56559
56680
  // Don't bother showing anything if we don't have to.
56560
56681
  return null;
56561
56682
  }
56562
-
56683
+ const {
56684
+ onExit,
56685
+ onExiting,
56686
+ onEnter,
56687
+ onEntering,
56688
+ onEntered
56689
+ } = props;
56563
56690
  let child = props.children(Object.assign({}, popper.attributes.popper, {
56564
56691
  style: popper.styles.popper,
56565
56692
  ref: mergedRef
@@ -56572,28 +56699,19 @@ const Overlay = /*#__PURE__*/React.forwardRef((props, outerRef) => {
56572
56699
  ref: attachArrowRef
56573
56700
  })
56574
56701
  });
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
-
56702
+ child = renderTransition(Transition, runTransition, {
56703
+ in: !!props.show,
56704
+ appear: true,
56705
+ mountOnEnter: true,
56706
+ unmountOnExit: true,
56707
+ children: child,
56708
+ onExit,
56709
+ onExiting,
56710
+ onExited: handleHidden,
56711
+ onEnter,
56712
+ onEntering,
56713
+ onEntered
56714
+ });
56597
56715
  return container ? /*#__PURE__*/reactDom.createPortal(child, container) : null;
56598
56716
  });
56599
56717
  Overlay.displayName = 'Overlay';
@@ -56614,29 +56732,44 @@ function getOverlayDirection(placement, isRTL) {
56614
56732
  return bsDirection;
56615
56733
  }
56616
56734
 
56617
- const defaultProps$1 = {
56618
- placement: 'right'
56619
- };
56735
+ function getInitialPopperStyles(position = 'absolute') {
56736
+ return {
56737
+ position,
56738
+ top: '0',
56739
+ left: '0',
56740
+ opacity: '0',
56741
+ pointerEvents: 'none'
56742
+ };
56743
+ }
56744
+
56620
56745
  const Popover = /*#__PURE__*/React.forwardRef(({
56621
56746
  bsPrefix,
56622
- placement,
56747
+ placement = 'right',
56623
56748
  className,
56624
56749
  style,
56625
56750
  children,
56626
56751
  body,
56627
56752
  arrowProps,
56628
- popper: _,
56629
- show: _1,
56753
+ hasDoneInitialMeasure,
56754
+ popper,
56755
+ show,
56630
56756
  ...props
56631
56757
  }, ref) => {
56632
56758
  const decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
56633
56759
  const isRTL = useIsRTL();
56634
56760
  const [primaryPlacement] = (placement == null ? void 0 : placement.split('-')) || [];
56635
56761
  const bsDirection = getOverlayDirection(primaryPlacement, isRTL);
56762
+ let computedStyle = style;
56763
+ if (show && !hasDoneInitialMeasure) {
56764
+ computedStyle = {
56765
+ ...style,
56766
+ ...getInitialPopperStyles(popper == null ? void 0 : popper.strategy)
56767
+ };
56768
+ }
56636
56769
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
56637
56770
  ref: ref,
56638
56771
  role: "tooltip",
56639
- style: style,
56772
+ style: computedStyle,
56640
56773
  "x-placement": primaryPlacement,
56641
56774
  className: classnames(className, decoratedBsPrefix, primaryPlacement && `bs-popover-${bsDirection}`),
56642
56775
  ...props,
@@ -56648,7 +56781,6 @@ const Popover = /*#__PURE__*/React.forwardRef(({
56648
56781
  }) : children]
56649
56782
  });
56650
56783
  });
56651
- Popover.defaultProps = defaultProps$1;
56652
56784
  var Popover$1 = Object.assign(Popover, {
56653
56785
  Header: PopoverHeader,
56654
56786
  Body: PopoverBody,
@@ -56676,12 +56808,6 @@ function useOverlayOffset(customOffset) {
56676
56808
  return [overlayRef, [offset]];
56677
56809
  }
56678
56810
 
56679
- const defaultProps$2 = {
56680
- transition: Fade,
56681
- rootClose: false,
56682
- show: false,
56683
- placement: 'top'
56684
- };
56685
56811
  function wrapRefs(props, arrowProps) {
56686
56812
  const {
56687
56813
  ref
@@ -56694,12 +56820,15 @@ function wrapRefs(props, arrowProps) {
56694
56820
  }
56695
56821
  const Overlay$1 = /*#__PURE__*/React.forwardRef(({
56696
56822
  children: overlay,
56697
- transition,
56823
+ transition = Fade,
56698
56824
  popperConfig = {},
56825
+ rootClose = false,
56826
+ placement = 'top',
56827
+ show: outerShow = false,
56699
56828
  ...outerProps
56700
56829
  }, outerRef) => {
56701
56830
  const popperRef = React.useRef({});
56702
- const [firstRenderedState, setFirstRenderedState] = useCallbackRef();
56831
+ const [firstRenderedState, setFirstRenderedState] = React.useState(null);
56703
56832
  const [ref, modifiers] = useOverlayOffset(outerProps.offset);
56704
56833
  const mergedRef = useMergedRefs(outerRef, ref);
56705
56834
  const actualTransition = transition === true ? Fade : transition || undefined;
@@ -56712,6 +56841,11 @@ const Overlay$1 = /*#__PURE__*/React.forwardRef(({
56712
56841
  popperRef.current.scheduleUpdate == null ? void 0 : popperRef.current.scheduleUpdate();
56713
56842
  }
56714
56843
  }, [firstRenderedState]);
56844
+ React.useEffect(() => {
56845
+ if (!outerShow) {
56846
+ setFirstRenderedState(null);
56847
+ }
56848
+ }, [outerShow]);
56715
56849
  return /*#__PURE__*/jsxRuntime.jsx(Overlay, {
56716
56850
  ...outerProps,
56717
56851
  ref: mergedRef,
@@ -56721,6 +56855,9 @@ const Overlay$1 = /*#__PURE__*/React.forwardRef(({
56721
56855
  onFirstUpdate: handleFirstUpdate
56722
56856
  },
56723
56857
  transition: actualTransition,
56858
+ rootClose: rootClose,
56859
+ placement: placement,
56860
+ show: outerShow,
56724
56861
  children: (overlayProps, {
56725
56862
  arrowProps,
56726
56863
  popper: popperObj,
@@ -56734,8 +56871,10 @@ const Overlay$1 = /*#__PURE__*/React.forwardRef(({
56734
56871
  state: popperObj == null ? void 0 : popperObj.state,
56735
56872
  scheduleUpdate: popperObj == null ? void 0 : popperObj.update,
56736
56873
  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
56874
+ 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,
56875
+ strategy: popperConfig.strategy
56738
56876
  });
56877
+ const hasDoneInitialMeasure = !!firstRenderedState;
56739
56878
  if (typeof overlay === 'function') return overlay({
56740
56879
  ...overlayProps,
56741
56880
  placement: updatedPlacement,
@@ -56744,13 +56883,15 @@ const Overlay$1 = /*#__PURE__*/React.forwardRef(({
56744
56883
  className: 'show'
56745
56884
  }),
56746
56885
  popper,
56747
- arrowProps
56886
+ arrowProps,
56887
+ hasDoneInitialMeasure
56748
56888
  });
56749
56889
  return /*#__PURE__*/React.cloneElement(overlay, {
56750
56890
  ...overlayProps,
56751
56891
  placement: updatedPlacement,
56752
56892
  arrowProps,
56753
56893
  popper,
56894
+ hasDoneInitialMeasure,
56754
56895
  className: classnames(overlay.props.className, !transition && show && 'show'),
56755
56896
  style: {
56756
56897
  ...overlay.props.style,
@@ -56761,7 +56902,6 @@ const Overlay$1 = /*#__PURE__*/React.forwardRef(({
56761
56902
  });
56762
56903
  });
56763
56904
  Overlay$1.displayName = 'Overlay';
56764
- Overlay$1.defaultProps = defaultProps$2;
56765
56905
 
56766
56906
  function normalizeDelay(delay) {
56767
56907
  return delay && typeof delay === 'object' ? delay : {
@@ -56784,12 +56924,8 @@ handler, args, relatedNative) {
56784
56924
  handler(...args);
56785
56925
  }
56786
56926
  }
56787
- const defaultProps$3 = {
56788
- defaultShow: false,
56789
- trigger: ['hover', 'focus']
56790
- };
56791
56927
  function OverlayTrigger({
56792
- trigger,
56928
+ trigger = ['hover', 'focus'],
56793
56929
  overlay,
56794
56930
  children,
56795
56931
  popperConfig = {},
@@ -56884,7 +57020,6 @@ function OverlayTrigger({
56884
57020
  })]
56885
57021
  });
56886
57022
  }
56887
- OverlayTrigger.defaultProps = defaultProps$3;
56888
57023
 
56889
57024
  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
57025
 
@@ -56901,33 +57036,42 @@ var UpdatingPopover = React__default.forwardRef(function (_ref, ref) {
56901
57036
  }, props), children));
56902
57037
  });
56903
57038
 
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 = {}));
57039
+ var LOCALE;
57040
+ (function (LOCALE) {
57041
+ LOCALE["CONF_SINGLE"] = "app.common.msg.action.conf.single";
57042
+ LOCALE["CONF_MULTI"] = "app.common.msg.action.conf.multi";
57043
+ LOCALE["SUCCESS_SINGLE"] = "app.common.msg.action.success.single";
57044
+ LOCALE["SUCCESS_MULTI"] = "app.common.msg.action.success.multi";
57045
+ LOCALE["ERROR_SINGLE"] = "app.common.msg.action.error.single";
57046
+ LOCALE["ERROR_MULTI"] = "app.common.msg.action.error.multi";
57047
+ LOCALE["PROGRESS_SINGLE"] = "app.common.msg.action.progress.single";
57048
+ LOCALE["PROGRESS_MULTI"] = "app.common.msg.action.progress.multi";
57049
+ LOCALE["YES"] = "app.common.action.yes";
57050
+ LOCALE["NO"] = "app.common.action.no";
57051
+ })(LOCALE || (LOCALE = {}));
56917
57052
  var PLACEMENT;
56918
57053
  (function (PLACEMENT) {
56919
57054
  PLACEMENT["TOP"] = "top";
57055
+ PLACEMENT["BOTTOM"] = "bottom";
56920
57056
  })(PLACEMENT || (PLACEMENT = {}));
56921
- var SYMBOL;
56922
- (function (SYMBOL) {
56923
- SYMBOL["QUESTION_MARK"] = "?";
56924
- SYMBOL["EMPTY_STRING"] = "";
56925
- })(SYMBOL || (SYMBOL = {}));
57057
+ var CTRL;
57058
+ (function (CTRL) {
57059
+ CTRL["QUESTION"] = "?";
57060
+ CTRL["EMPTY"] = "";
57061
+ })(CTRL || (CTRL = {}));
56926
57062
  var TRIGGER;
56927
57063
  (function (TRIGGER) {
56928
57064
  TRIGGER["CLICK"] = "click";
56929
57065
  })(TRIGGER || (TRIGGER = {}));
56930
57066
 
57067
+ var ActionHandlerConstants = {
57068
+ __proto__: null,
57069
+ get LOCALE () { return LOCALE; },
57070
+ get PLACEMENT () { return PLACEMENT; },
57071
+ get CTRL () { return CTRL; },
57072
+ get TRIGGER () { return TRIGGER; }
57073
+ };
57074
+
56931
57075
  var SERVICE = function SERVICE() {};
56932
57076
  SERVICE.LOCALE = 'LocaleService';
56933
57077
 
@@ -56937,7 +57081,7 @@ var actionMap = {
56937
57081
  after: 2
56938
57082
  };
56939
57083
  var ActionHandler = function ActionHandler(props) {
56940
- var _useState = React.useState(SYMBOL.EMPTY_STRING),
57084
+ var _useState = React.useState(CTRL.EMPTY),
56941
57085
  text = _useState[0],
56942
57086
  setText = _useState[1];
56943
57087
  var _useState2 = React.useState(true),
@@ -56986,17 +57130,17 @@ var ActionHandler = function ActionHandler(props) {
56986
57130
  confText = props.confirmText(itemCount);
56987
57131
  } else {
56988
57132
  if (itemCount === 1) {
56989
- confText = localeService.create(ACTION_HANDLER_LOCALE.CONF_SINGLE, {
57133
+ confText = localeService.create(LOCALE.CONF_SINGLE, {
56990
57134
  actionCode: props.actionCode
56991
57135
  });
56992
57136
  } else {
56993
- confText = localeService.create(ACTION_HANDLER_LOCALE.CONF_MULTI, {
57137
+ confText = localeService.create(LOCALE.CONF_MULTI, {
56994
57138
  actionCode: props.actionCode,
56995
57139
  itemCount: itemCount
56996
57140
  });
56997
57141
  }
56998
57142
  }
56999
- setText(confText + SYMBOL.QUESTION_MARK);
57143
+ setText(confText + CTRL.QUESTION);
57000
57144
  }
57001
57145
  setCurrentAction(actionMap.before);
57002
57146
  };
@@ -57034,12 +57178,12 @@ var ActionHandler = function ActionHandler(props) {
57034
57178
  }
57035
57179
  }
57036
57180
  if (itemCount === 1) {
57037
- var key = success ? ACTION_HANDLER_LOCALE.SUCCESS_SINGLE : ACTION_HANDLER_LOCALE.ERROR_SINGLE;
57181
+ var key = success ? LOCALE.SUCCESS_SINGLE : LOCALE.ERROR_SINGLE;
57038
57182
  setText(localeService.create(key, {
57039
57183
  actionCode: props.actionCode
57040
57184
  }));
57041
57185
  } else {
57042
- var _key = success ? ACTION_HANDLER_LOCALE.SUCCESS_MULTI : ACTION_HANDLER_LOCALE.ERROR_MULTI;
57186
+ var _key = success ? LOCALE.SUCCESS_MULTI : LOCALE.ERROR_MULTI;
57043
57187
  setText(localeService.create(_key, {
57044
57188
  actionCode: props.actionCode,
57045
57189
  itemCount: itemCount
@@ -57052,11 +57196,11 @@ var ActionHandler = function ActionHandler(props) {
57052
57196
  setText(props.progressText(itemCount));
57053
57197
  } else {
57054
57198
  if (itemCount === 1) {
57055
- setText(localeService.create(ACTION_HANDLER_LOCALE.PROGRESS_SINGLE, {
57199
+ setText(localeService.create(LOCALE.PROGRESS_SINGLE, {
57056
57200
  actionCode: props.actionCode
57057
57201
  }));
57058
57202
  } else {
57059
- setText(localeService.create(ACTION_HANDLER_LOCALE.PROGRESS_MULTI, {
57203
+ setText(localeService.create(LOCALE.PROGRESS_MULTI, {
57060
57204
  idx: 1,
57061
57205
  actionCode: props.actionCode,
57062
57206
  itemCount: itemCount
@@ -57074,13 +57218,13 @@ var ActionHandler = function ActionHandler(props) {
57074
57218
  return itemList.reduce(function (p, item, i) {
57075
57219
  return p.then(function (res) {
57076
57220
  if (itemCount > 1) {
57077
- setText(localeService.create(ACTION_HANDLER_LOCALE.PROGRESS_MULTI, {
57221
+ setText(localeService.create(LOCALE.PROGRESS_MULTI, {
57078
57222
  idx: i + 1,
57079
57223
  itemCount: itemCount,
57080
57224
  actionCode: props.actionCode
57081
57225
  }));
57082
57226
  } else {
57083
- setText(localeService.create(ACTION_HANDLER_LOCALE.PROGRESS_SINGLE, {
57227
+ setText(localeService.create(LOCALE.PROGRESS_SINGLE, {
57084
57228
  actionCode: props.actionCode
57085
57229
  }));
57086
57230
  }
@@ -57136,11 +57280,11 @@ var ActionHandler = function ActionHandler(props) {
57136
57280
  className: icon
57137
57281
  }), text), showButtonGroup && React__default.createElement(commonUi.ButtonGroup, null, React__default.createElement(commonUi.Button, {
57138
57282
  onClick: onStart,
57139
- text: localeService.create(ACTION_HANDLER_LOCALE.YES) || props.labelYes,
57283
+ text: localeService.create(LOCALE.YES) || props.labelYes,
57140
57284
  disabled: currentAction !== actionMap.before
57141
57285
  }), React__default.createElement(commonUi.Button, {
57142
57286
  onClick: cancel,
57143
- text: localeService.create(ACTION_HANDLER_LOCALE.NO) || props.labelNo,
57287
+ text: localeService.create(LOCALE.NO) || props.labelNo,
57144
57288
  className: styles$5["vitro-button-close"]
57145
57289
  })))
57146
57290
  }, React__default.createElement("div", null, props.children)), props.target && !props.children && React__default.createElement(Overlay$1, {
@@ -57157,20 +57301,23 @@ var ActionHandler = function ActionHandler(props) {
57157
57301
  className: icon
57158
57302
  }), text), showButtonGroup && React__default.createElement(commonUi.ButtonGroup, null, React__default.createElement(commonUi.Button, {
57159
57303
  onClick: onStart,
57160
- text: localeService.create(ACTION_HANDLER_LOCALE.YES) || props.labelYes,
57304
+ text: localeService.create(LOCALE.YES) || props.labelYes,
57161
57305
  disabled: currentAction !== actionMap.before
57162
57306
  }), React__default.createElement(commonUi.Button, {
57163
57307
  onClick: cancel,
57164
- text: localeService.create(ACTION_HANDLER_LOCALE.NO) || props.labelNo,
57308
+ text: localeService.create(LOCALE.NO) || props.labelNo,
57165
57309
  className: styles$5["vitro-button-close"]
57166
57310
  })))));
57167
57311
  };
57168
57312
 
57313
+ exports.ACTION_HANDLER = ActionHandlerConstants;
57169
57314
  exports.ActionHandler = ActionHandler;
57170
57315
  exports.Breadcrumbs = Breadcrumbs;
57171
57316
  exports.ComponentLoader = ComponentLoader;
57172
57317
  exports.ComponentLoaderContextImpl = ComponentLoaderContextImpl;
57173
57318
  exports.MicroFrontend = MicroFrontend;
57319
+ exports.TABLE_VIEW = TableViewConstants;
57320
+ exports.TREE_VIEW = TreeViewConstants;
57174
57321
  exports.TableView = TableView;
57175
57322
  exports.TelerikUploader = TelerikUploader;
57176
57323
  exports.TelerikUploaderContextImpl = TelerikUploaderContextImpl;