@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.
@@ -19854,26 +19854,44 @@ var TreeViewConfig = /*#__PURE__*/function () {
19854
19854
  return TreeViewConfig;
19855
19855
  }();
19856
19856
 
19857
- var TREE_VIEW;
19858
- (function (TREE_VIEW) {
19859
- TREE_VIEW["GET_PATH"] = "get_path";
19860
- TREE_VIEW["DESTROY"] = "destroy";
19861
- TREE_VIEW["OPEN_ALL"] = "open_all";
19862
- TREE_VIEW["CLOSE_ALL"] = "close_all";
19863
- TREE_VIEW["DESELECT_ALL"] = "deselect_all";
19864
- TREE_VIEW["GET_SELECTED"] = "get_selected";
19865
- TREE_VIEW["GET_NODE"] = "get_node";
19866
- TREE_VIEW["CREATE_NODE"] = "create_node";
19867
- TREE_VIEW["RENAME_NODE"] = "rename_node";
19868
- TREE_VIEW["REDRAW_NODE"] = "redraw_node";
19869
- TREE_VIEW["REFRESH_NODE"] = "refresh_node";
19870
- TREE_VIEW["REFRESH"] = "refresh";
19871
- TREE_VIEW["DELETE_NODE"] = "delete_node";
19872
- TREE_VIEW["SELECT_NODE"] = "select_node";
19873
- TREE_VIEW["OPEN_NODE"] = "open_node";
19874
- TREE_VIEW["EDIT"] = "edit";
19875
- TREE_VIEW["GET_PARENT"] = "get_parent";
19876
- })(TREE_VIEW || (TREE_VIEW = {}));
19857
+ var METHOD;
19858
+ (function (METHOD) {
19859
+ METHOD["GET_PATH"] = "get_path";
19860
+ METHOD["DESTROY"] = "destroy";
19861
+ METHOD["OPEN_ALL"] = "open_all";
19862
+ METHOD["CLOSE_ALL"] = "close_all";
19863
+ METHOD["DESELECT_ALL"] = "deselect_all";
19864
+ METHOD["GET_SELECTED"] = "get_selected";
19865
+ METHOD["GET_NODE"] = "get_node";
19866
+ METHOD["CREATE_NODE"] = "create_node";
19867
+ METHOD["RENAME_NODE"] = "rename_node";
19868
+ METHOD["REDRAW_NODE"] = "redraw_node";
19869
+ METHOD["REFRESH_NODE"] = "refresh_node";
19870
+ METHOD["REFRESH"] = "refresh";
19871
+ METHOD["DELETE_NODE"] = "delete_node";
19872
+ METHOD["SELECT_NODE"] = "select_node";
19873
+ METHOD["OPEN_NODE"] = "open_node";
19874
+ METHOD["EDIT"] = "edit";
19875
+ METHOD["GET_PARENT"] = "get_parent";
19876
+ })(METHOD || (METHOD = {}));
19877
+ var EVENT;
19878
+ (function (EVENT) {
19879
+ EVENT["CLOSE_NODE"] = "close_node.jstree";
19880
+ EVENT["SELECT_NODE"] = "select_node.jstree";
19881
+ EVENT["LOADED"] = "loaded.jstree";
19882
+ })(EVENT || (EVENT = {}));
19883
+ var NODE_TYPE;
19884
+ (function (NODE_TYPE) {
19885
+ NODE_TYPE["FOLDER"] = "folder";
19886
+ NODE_TYPE["FILE"] = "file";
19887
+ })(NODE_TYPE || (NODE_TYPE = {}));
19888
+
19889
+ var TreeViewConstants = {
19890
+ __proto__: null,
19891
+ get METHOD () { return METHOD; },
19892
+ get EVENT () { return EVENT; },
19893
+ get NODE_TYPE () { return NODE_TYPE; }
19894
+ };
19877
19895
 
19878
19896
  var JsTreeViewContextImpl = /*#__PURE__*/function () {
19879
19897
  function JsTreeViewContextImpl(jsTree) {
@@ -19894,8 +19912,8 @@ var JsTreeViewContextImpl = /*#__PURE__*/function () {
19894
19912
  tree.settings.contextmenu.items = func;
19895
19913
  };
19896
19914
  _proto.getFullPath = function getFullPath(node) {
19897
- var namePath = this.jsTree.jstree(TREE_VIEW.GET_PATH, node);
19898
- var idPath = this.jsTree.jstree(TREE_VIEW.GET_PATH, node, null, true);
19915
+ var namePath = this.jsTree.jstree(METHOD.GET_PATH, node);
19916
+ var idPath = this.jsTree.jstree(METHOD.GET_PATH, node, null, true);
19899
19917
  var path = [];
19900
19918
  for (var i = 0; i < namePath.length; i++) {
19901
19919
  path.push({
@@ -19907,58 +19925,58 @@ var JsTreeViewContextImpl = /*#__PURE__*/function () {
19907
19925
  };
19908
19926
  _proto.dispose = function dispose() {
19909
19927
  if (this.jsTree) {
19910
- this.jsTree.jstree(TREE_VIEW.DESTROY);
19928
+ this.jsTree.jstree(METHOD.DESTROY);
19911
19929
  }
19912
19930
  };
19913
19931
  _proto.openAll = function openAll() {
19914
- this.jsTree.jstree(TREE_VIEW.OPEN_ALL);
19932
+ this.jsTree.jstree(METHOD.OPEN_ALL);
19915
19933
  };
19916
19934
  _proto.closeAll = function closeAll(node) {
19917
- this.jsTree.jstree(TREE_VIEW.CLOSE_ALL, node);
19935
+ this.jsTree.jstree(METHOD.CLOSE_ALL, node);
19918
19936
  };
19919
19937
  _proto.deselectAll = function deselectAll() {
19920
- this.jsTree.jstree(TREE_VIEW.DESELECT_ALL);
19938
+ this.jsTree.jstree(METHOD.DESELECT_ALL);
19921
19939
  };
19922
19940
  _proto.getSelected = function getSelected() {
19923
- return this.jsTree.jstree(TREE_VIEW.GET_SELECTED);
19941
+ return this.jsTree.jstree(METHOD.GET_SELECTED);
19924
19942
  };
19925
19943
  _proto.getNode = function getNode(nodeId) {
19926
- return this.jsTree.jstree(TREE_VIEW.GET_NODE, nodeId);
19944
+ return this.jsTree.jstree(METHOD.GET_NODE, nodeId);
19927
19945
  };
19928
19946
  _proto.createNewNode = function createNewNode(parent, node) {
19929
- this.jsTree.jstree(TREE_VIEW.CREATE_NODE, parent, node);
19947
+ this.jsTree.jstree(METHOD.CREATE_NODE, parent, node);
19930
19948
  };
19931
19949
  _proto.renameNode = function renameNode(node, newName) {
19932
- this.jsTree.jstree(TREE_VIEW.RENAME_NODE, node, newName);
19950
+ this.jsTree.jstree(METHOD.RENAME_NODE, node, newName);
19933
19951
  };
19934
19952
  _proto.redrawNode = function redrawNode(node, deep) {
19935
19953
  if (deep === void 0) {
19936
19954
  deep = false;
19937
19955
  }
19938
- this.jsTree.jstree(TREE_VIEW.REDRAW_NODE, node, deep);
19956
+ this.jsTree.jstree(METHOD.REDRAW_NODE, node, deep);
19939
19957
  };
19940
19958
  _proto.refreshNode = function refreshNode(node) {
19941
- this.jsTree.jstree(TREE_VIEW.REFRESH_NODE, node);
19959
+ this.jsTree.jstree(METHOD.REFRESH_NODE, node);
19942
19960
  };
19943
19961
  _proto.refresh = function refresh() {
19944
- this.jsTree.jstree(TREE_VIEW.REFRESH);
19962
+ this.jsTree.jstree(METHOD.REFRESH);
19945
19963
  };
19946
19964
  _proto.deleteNode = function deleteNode(node) {
19947
- this.jsTree.jstree(TREE_VIEW.DELETE_NODE, node);
19965
+ this.jsTree.jstree(METHOD.DELETE_NODE, node);
19948
19966
  };
19949
19967
  _proto.selectNode = function selectNode(node) {
19950
19968
  this.deselectAll();
19951
- this.jsTree.jstree(TREE_VIEW.SELECT_NODE, node);
19969
+ this.jsTree.jstree(METHOD.SELECT_NODE, node);
19952
19970
  };
19953
19971
  _proto.openNode = function openNode(node) {
19954
- this.jsTree.jstree(TREE_VIEW.OPEN_NODE, node);
19972
+ this.jsTree.jstree(METHOD.OPEN_NODE, node);
19955
19973
  };
19956
19974
  _proto.editNode = function editNode() {
19957
19975
  var selected = this.getSelected();
19958
- this.jsTree.jstree(TREE_VIEW.EDIT, selected);
19976
+ this.jsTree.jstree(METHOD.EDIT, selected);
19959
19977
  };
19960
19978
  _proto.getParent = function getParent(node) {
19961
- return this.jsTree.jstree(TREE_VIEW.GET_PARENT, node);
19979
+ return this.jsTree.jstree(METHOD.GET_PARENT, node);
19962
19980
  };
19963
19981
  return JsTreeViewContextImpl;
19964
19982
  }();
@@ -20018,6 +20036,14 @@ var TABLE_VIEW_CACHE;
20018
20036
  TABLE_VIEW_CACHE[TABLE_VIEW_CACHE["DEFAULT"] = 2] = "DEFAULT";
20019
20037
  })(TABLE_VIEW_CACHE || (TABLE_VIEW_CACHE = {}));
20020
20038
 
20039
+ var TableViewConstants = {
20040
+ __proto__: null,
20041
+ get TABLE_VIEW_EVENTS () { return TABLE_VIEW_EVENTS; },
20042
+ get TABLE_VIEW_URL () { return TABLE_VIEW_URL; },
20043
+ get TABLE_VIEW_CONTROLLER () { return TABLE_VIEW_CONTROLLER; },
20044
+ get TABLE_VIEW_CACHE () { return TABLE_VIEW_CACHE; }
20045
+ };
20046
+
20021
20047
  function _defineProperties(target, props) {
20022
20048
  for (var i = 0; i < props.length; i++) {
20023
20049
  var descriptor = props[i];
@@ -53847,13 +53873,6 @@ var isDOM = typeof document !== 'undefined';
53847
53873
 
53848
53874
  var useIsomorphicEffect = isDOM || isReactNative ? useLayoutEffect : useEffect;
53849
53875
 
53850
- const defaultProps = {
53851
- in: false,
53852
- timeout: 300,
53853
- mountOnEnter: false,
53854
- unmountOnExit: false,
53855
- appear: false
53856
- };
53857
53876
  const fadeStyles = {
53858
53877
  [ENTERING]: 'show',
53859
53878
  [ENTERED]: 'show'
@@ -53862,11 +53881,20 @@ const Fade = /*#__PURE__*/forwardRef(({
53862
53881
  className,
53863
53882
  children,
53864
53883
  transitionClasses = {},
53865
- ...props
53884
+ onEnter,
53885
+ ...rest
53866
53886
  }, ref) => {
53887
+ const props = {
53888
+ in: false,
53889
+ timeout: 300,
53890
+ mountOnEnter: false,
53891
+ unmountOnExit: false,
53892
+ appear: false,
53893
+ ...rest
53894
+ };
53867
53895
  const handleEnter = useCallback((node, isAppearing) => {
53868
- props.onEnter == null ? void 0 : props.onEnter(node, isAppearing);
53869
- }, [props]);
53896
+ onEnter == null ? void 0 : onEnter(node, isAppearing);
53897
+ }, [onEnter]);
53870
53898
  return /*#__PURE__*/jsx(TransitionWrapper, {
53871
53899
  ref: ref,
53872
53900
  addEndListener: transitionEndListener,
@@ -53879,7 +53907,6 @@ const Fade = /*#__PURE__*/forwardRef(({
53879
53907
  })
53880
53908
  });
53881
53909
  });
53882
- Fade.defaultProps = defaultProps;
53883
53910
  Fade.displayName = 'Fade';
53884
53911
 
53885
53912
  var rHyphen = /-(.)/g;
@@ -53902,14 +53929,17 @@ function createWithBsPrefix(prefix, {
53902
53929
  as: Tag = Component || 'div',
53903
53930
  ...props
53904
53931
  }, ref) => {
53932
+ const componentProps = {
53933
+ ...defaultProps,
53934
+ ...props
53935
+ };
53905
53936
  const resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
53906
53937
  return /*#__PURE__*/jsx(Tag, {
53907
53938
  ref: ref,
53908
53939
  className: classnames(className, resolvedPrefix),
53909
- ...props
53940
+ ...componentProps
53910
53941
  });
53911
53942
  });
53912
- BsComponent.defaultProps = defaultProps;
53913
53943
  BsComponent.displayName = displayName;
53914
53944
  return BsComponent;
53915
53945
  }
@@ -54184,7 +54214,7 @@ var round = Math.round;
54184
54214
  function getUAString() {
54185
54215
  var uaData = navigator.userAgentData;
54186
54216
 
54187
- if (uaData != null && uaData.brands) {
54217
+ if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {
54188
54218
  return uaData.brands.map(function (item) {
54189
54219
  return item.brand + "/" + item.version;
54190
54220
  }).join(' ');
@@ -54516,10 +54546,9 @@ var unsetSides = {
54516
54546
  // Zooming can change the DPR, but it seems to report a value that will
54517
54547
  // cleanly divide the values into the appropriate subpixels.
54518
54548
 
54519
- function roundOffsetsByDPR(_ref) {
54549
+ function roundOffsetsByDPR(_ref, win) {
54520
54550
  var x = _ref.x,
54521
54551
  y = _ref.y;
54522
- var win = window;
54523
54552
  var dpr = win.devicePixelRatio || 1;
54524
54553
  return {
54525
54554
  x: round(x * dpr) / dpr || 0,
@@ -54602,7 +54631,7 @@ function mapToStyles(_ref2) {
54602
54631
  var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
54603
54632
  x: x,
54604
54633
  y: y
54605
- }) : {
54634
+ }, getWindow(popper)) : {
54606
54635
  x: x,
54607
54636
  y: y
54608
54637
  };
@@ -55994,21 +56023,22 @@ function popperGenerator(generatorOptions) {
55994
56023
  };
55995
56024
  }
55996
56025
 
56026
+ // For the common JS build we will turn this file into a bundle with no imports.
55997
56027
  // This is b/c the Popper lib is all esm files, and would break in a common js only environment
55998
-
55999
56028
  const createPopper = popperGenerator({
56000
56029
  defaultModifiers: [hide$1, popperOffsets$1, computeStyles$1, eventListeners, offset$1, flip$1, preventOverflow$1, arrow$1]
56001
56030
  });
56002
56031
 
56003
56032
  const _excluded = ["enabled", "placement", "strategy", "modifiers"];
56004
-
56005
56033
  function _objectWithoutPropertiesLoose$2(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
56006
56034
  const disabledApplyStylesModifier = {
56007
56035
  name: 'applyStyles',
56008
56036
  enabled: false,
56009
56037
  phase: 'afterWrite',
56010
56038
  fn: () => undefined
56011
- }; // until docjs supports type exports...
56039
+ };
56040
+
56041
+ // until docjs supports type exports...
56012
56042
 
56013
56043
  const ariaDescribedByModifier = {
56014
56044
  name: 'ariaDescribedBy',
@@ -56021,7 +56051,6 @@ const ariaDescribedByModifier = {
56021
56051
  reference,
56022
56052
  popper
56023
56053
  } = state.elements;
56024
-
56025
56054
  if ('removeAttribute' in reference) {
56026
56055
  const ids = (reference.getAttribute('aria-describedby') || '').split(',').filter(id => id.trim() !== popper.id);
56027
56056
  if (!ids.length) reference.removeAttribute('aria-describedby');else reference.setAttribute('aria-describedby', ids.join(','));
@@ -56031,20 +56060,16 @@ const ariaDescribedByModifier = {
56031
56060
  state
56032
56061
  }) => {
56033
56062
  var _popper$getAttribute;
56034
-
56035
56063
  const {
56036
56064
  popper,
56037
56065
  reference
56038
56066
  } = state.elements;
56039
56067
  const role = (_popper$getAttribute = popper.getAttribute('role')) == null ? void 0 : _popper$getAttribute.toLowerCase();
56040
-
56041
56068
  if (popper.id && role === 'tooltip' && 'setAttribute' in reference) {
56042
56069
  const ids = reference.getAttribute('aria-describedby');
56043
-
56044
56070
  if (ids && ids.split(',').indexOf(popper.id) !== -1) {
56045
56071
  return;
56046
56072
  }
56047
-
56048
56073
  reference.setAttribute('aria-describedby', ids ? `${ids},${popper.id}` : popper.id);
56049
56074
  }
56050
56075
  }
@@ -56065,26 +56090,22 @@ const EMPTY_MODIFIERS = [];
56065
56090
  *
56066
56091
  * @returns {UsePopperState} The popper state
56067
56092
  */
56068
-
56069
56093
  function usePopper(referenceElement, popperElement, _ref = {}) {
56070
56094
  let {
56071
- enabled = true,
56072
- placement = 'bottom',
56073
- strategy = 'absolute',
56074
- modifiers = EMPTY_MODIFIERS
56075
- } = _ref,
56076
- config = _objectWithoutPropertiesLoose$2(_ref, _excluded);
56077
-
56095
+ enabled = true,
56096
+ placement = 'bottom',
56097
+ strategy = 'absolute',
56098
+ modifiers = EMPTY_MODIFIERS
56099
+ } = _ref,
56100
+ config = _objectWithoutPropertiesLoose$2(_ref, _excluded);
56078
56101
  const prevModifiers = useRef(modifiers);
56079
56102
  const popperInstanceRef = useRef();
56080
56103
  const update = useCallback(() => {
56081
56104
  var _popperInstanceRef$cu;
56082
-
56083
56105
  (_popperInstanceRef$cu = popperInstanceRef.current) == null ? void 0 : _popperInstanceRef$cu.update();
56084
56106
  }, []);
56085
56107
  const forceUpdate = useCallback(() => {
56086
56108
  var _popperInstanceRef$cu2;
56087
-
56088
56109
  (_popperInstanceRef$cu2 = popperInstanceRef.current) == null ? void 0 : _popperInstanceRef$cu2.forceUpdate();
56089
56110
  }, []);
56090
56111
  const [popperState, setState] = useSafeState(useState({
@@ -56125,7 +56146,6 @@ function usePopper(referenceElement, popperElement, _ref = {}) {
56125
56146
  if (!dequal(prevModifiers.current, modifiers)) {
56126
56147
  prevModifiers.current = modifiers;
56127
56148
  }
56128
-
56129
56149
  return prevModifiers.current;
56130
56150
  }, [modifiers]);
56131
56151
  useEffect(() => {
@@ -56140,7 +56160,6 @@ function usePopper(referenceElement, popperElement, _ref = {}) {
56140
56160
  if (!enabled || referenceElement == null || popperElement == null) {
56141
56161
  return undefined;
56142
56162
  }
56143
-
56144
56163
  popperInstanceRef.current = createPopper(referenceElement, popperElement, Object.assign({}, config, {
56145
56164
  placement,
56146
56165
  strategy,
@@ -56157,7 +56176,8 @@ function usePopper(referenceElement, popperElement, _ref = {}) {
56157
56176
  }
56158
56177
  }));
56159
56178
  }
56160
- }; // This is only run once to _create_ the popper
56179
+ };
56180
+ // This is only run once to _create_ the popper
56161
56181
  // eslint-disable-next-line react-hooks/exhaustive-deps
56162
56182
  }, [enabled, referenceElement, popperElement]);
56163
56183
  return popperState;
@@ -56240,21 +56260,19 @@ if (__DEV__) {
56240
56260
  var warning_1 = warning;
56241
56261
 
56242
56262
  const noop$1 = () => {};
56243
-
56244
56263
  function isLeftClickEvent(event) {
56245
56264
  return event.button === 0;
56246
56265
  }
56247
-
56248
56266
  function isModifiedEvent(event) {
56249
56267
  return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
56250
56268
  }
56251
-
56252
56269
  const getRefTarget = ref => ref && ('current' in ref ? ref.current : ref);
56253
56270
  const InitialTriggerEvents = {
56254
56271
  click: 'mousedown',
56255
56272
  mouseup: 'mousedown',
56256
56273
  pointerup: 'pointerdown'
56257
56274
  };
56275
+
56258
56276
  /**
56259
56277
  * The `useClickOutside` hook registers your callback on the document that fires
56260
56278
  * when a pointer event is registered outside of the provided ref or element.
@@ -56265,7 +56283,6 @@ const InitialTriggerEvents = {
56265
56283
  * @param {boolean=} options.disabled
56266
56284
  * @param {string=} options.clickTrigger The DOM event name (click, mousedown, etc) to attach listeners on
56267
56285
  */
56268
-
56269
56286
  function useClickOutside(ref, onClickOutside = noop$1, {
56270
56287
  disabled,
56271
56288
  clickTrigger = 'click'
@@ -56280,7 +56297,6 @@ function useClickOutside(ref, onClickOutside = noop$1, {
56280
56297
  }, [ref]);
56281
56298
  const handleInitialMouse = useEventCallback(e => {
56282
56299
  const currentTarget = getRefTarget(ref);
56283
-
56284
56300
  if (currentTarget && contains$1(currentTarget, e.target)) {
56285
56301
  waitingForTrigger.current = true;
56286
56302
  }
@@ -56292,19 +56308,19 @@ function useClickOutside(ref, onClickOutside = noop$1, {
56292
56308
  });
56293
56309
  useEffect(() => {
56294
56310
  if (disabled || ref == null) return undefined;
56295
- const doc = ownerDocument(getRefTarget(ref)); // Store the current event to avoid triggering handlers immediately
56296
- // https://github.com/facebook/react/issues/20074
56311
+ const doc = ownerDocument(getRefTarget(ref));
56297
56312
 
56313
+ // Store the current event to avoid triggering handlers immediately
56314
+ // https://github.com/facebook/react/issues/20074
56298
56315
  let currentEvent = (doc.defaultView || window).event;
56299
56316
  let removeInitialTriggerListener = null;
56300
-
56301
56317
  if (InitialTriggerEvents[clickTrigger]) {
56302
56318
  removeInitialTriggerListener = listen(doc, InitialTriggerEvents[clickTrigger], handleInitialMouse, true);
56303
- } // Use capture for this listener so it fires before React's listener, to
56319
+ }
56320
+
56321
+ // Use capture for this listener so it fires before React's listener, to
56304
56322
  // avoid false positives in the contains() check below if the target DOM
56305
56323
  // element is removed in the React mouse callback.
56306
-
56307
-
56308
56324
  const removeMouseCaptureListener = listen(doc, clickTrigger, handleMouseCapture, true);
56309
56325
  const removeMouseListener = listen(doc, clickTrigger, e => {
56310
56326
  // skip if this event is the same as the one running when we added the handlers
@@ -56312,15 +56328,12 @@ function useClickOutside(ref, onClickOutside = noop$1, {
56312
56328
  currentEvent = undefined;
56313
56329
  return;
56314
56330
  }
56315
-
56316
56331
  handleMouse(e);
56317
56332
  });
56318
56333
  let mobileSafariHackListeners = [];
56319
-
56320
56334
  if ('ontouchstart' in doc.documentElement) {
56321
56335
  mobileSafariHackListeners = [].slice.call(doc.body.children).map(el => listen(el, 'mousemove', noop$1));
56322
56336
  }
56323
-
56324
56337
  return () => {
56325
56338
  removeInitialTriggerListener == null ? void 0 : removeInitialTriggerListener();
56326
56339
  removeMouseCaptureListener();
@@ -56332,12 +56345,11 @@ function useClickOutside(ref, onClickOutside = noop$1, {
56332
56345
 
56333
56346
  function toModifierMap(modifiers) {
56334
56347
  const result = {};
56335
-
56336
56348
  if (!Array.isArray(modifiers)) {
56337
56349
  return modifiers || result;
56338
- } // eslint-disable-next-line no-unused-expressions
56339
-
56350
+ }
56340
56351
 
56352
+ // eslint-disable-next-line no-unused-expressions
56341
56353
  modifiers == null ? void 0 : modifiers.forEach(m => {
56342
56354
  result[m.name] = m;
56343
56355
  });
@@ -56362,7 +56374,6 @@ function mergeOptionsWithPopperConfig({
56362
56374
  popperConfig = {}
56363
56375
  }) {
56364
56376
  var _modifiers$eventListe, _modifiers$preventOve, _modifiers$preventOve2, _modifiers$offset, _modifiers$arrow;
56365
-
56366
56377
  const modifiers = toModifierMap(popperConfig.modifiers);
56367
56378
  return Object.assign({}, popperConfig, {
56368
56379
  placement,
@@ -56397,13 +56408,13 @@ function mergeOptionsWithPopperConfig({
56397
56408
  }
56398
56409
 
56399
56410
  const Context = /*#__PURE__*/createContext(canUseDOM ? window : undefined);
56411
+
56400
56412
  /**
56401
56413
  * The document "window" placed in React context. Helpful for determining
56402
56414
  * SSR context, or when rendering into an iframe.
56403
56415
  *
56404
56416
  * @returns the current window
56405
56417
  */
56406
-
56407
56418
  function useWindow() {
56408
56419
  return useContext(Context);
56409
56420
  }
@@ -56419,12 +56430,10 @@ const resolveContainerRef = (ref, document) => {
56419
56430
  function useWaitForDOMRef(ref, onResolved) {
56420
56431
  const window = useWindow();
56421
56432
  const [resolvedRef, setRef] = useState(() => resolveContainerRef(ref, window == null ? void 0 : window.document));
56422
-
56423
56433
  if (!resolvedRef) {
56424
56434
  const earlyRef = resolveContainerRef(ref);
56425
56435
  if (earlyRef) setRef(earlyRef);
56426
56436
  }
56427
-
56428
56437
  useEffect(() => {
56429
56438
  if (onResolved && resolvedRef) {
56430
56439
  onResolved(resolvedRef);
@@ -56432,7 +56441,6 @@ function useWaitForDOMRef(ref, onResolved) {
56432
56441
  }, [onResolved, resolvedRef]);
56433
56442
  useEffect(() => {
56434
56443
  const nextRef = resolveContainerRef(ref);
56435
-
56436
56444
  if (nextRef !== resolvedRef) {
56437
56445
  setRef(nextRef);
56438
56446
  }
@@ -56440,6 +56448,125 @@ function useWaitForDOMRef(ref, onResolved) {
56440
56448
  return resolvedRef;
56441
56449
  }
56442
56450
 
56451
+ function NoopTransition({
56452
+ children,
56453
+ in: inProp,
56454
+ onExited,
56455
+ mountOnEnter,
56456
+ unmountOnExit
56457
+ }) {
56458
+ const ref = useRef(null);
56459
+ const hasEnteredRef = useRef(inProp);
56460
+ const handleExited = useEventCallback(onExited);
56461
+ useEffect(() => {
56462
+ if (inProp) hasEnteredRef.current = true;else {
56463
+ handleExited(ref.current);
56464
+ }
56465
+ }, [inProp, handleExited]);
56466
+ const combinedRef = useMergedRefs(ref, children.ref);
56467
+ const child = /*#__PURE__*/cloneElement(children, {
56468
+ ref: combinedRef
56469
+ });
56470
+ if (inProp) return child;
56471
+ if (unmountOnExit) {
56472
+ return null;
56473
+ }
56474
+ if (!hasEnteredRef.current && mountOnEnter) {
56475
+ return null;
56476
+ }
56477
+ return child;
56478
+ }
56479
+
56480
+ function useTransition({
56481
+ in: inProp,
56482
+ onTransition
56483
+ }) {
56484
+ const ref = useRef(null);
56485
+ const isInitialRef = useRef(true);
56486
+ const handleTransition = useEventCallback(onTransition);
56487
+ useIsomorphicEffect(() => {
56488
+ if (!ref.current) {
56489
+ return undefined;
56490
+ }
56491
+ let stale = false;
56492
+ handleTransition({
56493
+ in: inProp,
56494
+ element: ref.current,
56495
+ initial: isInitialRef.current,
56496
+ isStale: () => stale
56497
+ });
56498
+ return () => {
56499
+ stale = true;
56500
+ };
56501
+ }, [inProp, handleTransition]);
56502
+ useIsomorphicEffect(() => {
56503
+ isInitialRef.current = false;
56504
+ // this is for strict mode
56505
+ return () => {
56506
+ isInitialRef.current = true;
56507
+ };
56508
+ }, []);
56509
+ return ref;
56510
+ }
56511
+ /**
56512
+ * Adapts an imperative transition function to a subset of the RTG `<Transition>` component API.
56513
+ *
56514
+ * ImperativeTransition does not support mounting options or `appear` at the moment, meaning
56515
+ * that it always acts like: `mountOnEnter={true} unmountOnExit={true} appear={true}`
56516
+ */
56517
+ function ImperativeTransition({
56518
+ children,
56519
+ in: inProp,
56520
+ onExited,
56521
+ onEntered,
56522
+ transition
56523
+ }) {
56524
+ const [exited, setExited] = useState(!inProp);
56525
+
56526
+ // TODO: I think this needs to be in an effect
56527
+ if (inProp && exited) {
56528
+ setExited(false);
56529
+ }
56530
+ const ref = useTransition({
56531
+ in: !!inProp,
56532
+ onTransition: options => {
56533
+ const onFinish = () => {
56534
+ if (options.isStale()) return;
56535
+ if (options.in) {
56536
+ onEntered == null ? void 0 : onEntered(options.element, options.initial);
56537
+ } else {
56538
+ setExited(true);
56539
+ onExited == null ? void 0 : onExited(options.element);
56540
+ }
56541
+ };
56542
+ Promise.resolve(transition(options)).then(onFinish, error => {
56543
+ if (!options.in) setExited(true);
56544
+ throw error;
56545
+ });
56546
+ }
56547
+ });
56548
+ const combinedRef = useMergedRefs(ref, children.ref);
56549
+ return exited && !inProp ? null : /*#__PURE__*/cloneElement(children, {
56550
+ ref: combinedRef
56551
+ });
56552
+ }
56553
+ function renderTransition(Component, runTransition, props) {
56554
+ if (Component) {
56555
+ return /*#__PURE__*/jsx(Component, Object.assign({}, props));
56556
+ }
56557
+ if (runTransition) {
56558
+ return /*#__PURE__*/jsx(ImperativeTransition, Object.assign({}, props, {
56559
+ transition: runTransition
56560
+ }));
56561
+ }
56562
+ return /*#__PURE__*/jsx(NoopTransition, Object.assign({}, props));
56563
+ }
56564
+
56565
+ /* eslint-disable import/prefer-default-export */
56566
+ function isEscKey(e) {
56567
+ return e.code === 'Escape' || e.keyCode === 27;
56568
+ }
56569
+
56443
56570
  /**
56444
56571
  * Checks if a given element has a CSS class.
56445
56572
  *
@@ -56451,10 +56578,7 @@ function hasClass(element, className) {
56451
56578
  return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
56452
56579
  }
56453
56580
 
56454
- const escapeKeyCode = 27;
56455
-
56456
56581
  const noop$2 = () => {};
56457
-
56458
56582
  /**
56459
56583
  * The `useRootClose` hook registers your callback on the document
56460
56584
  * when rendered. Powers the `<Overlay/>` component. This is used achieve modal
@@ -56477,15 +56601,16 @@ function useRootClose(ref, onRootClose, {
56477
56601
  clickTrigger
56478
56602
  });
56479
56603
  const handleKeyUp = useEventCallback(e => {
56480
- if (e.keyCode === escapeKeyCode) {
56604
+ if (isEscKey(e)) {
56481
56605
  onClose(e);
56482
56606
  }
56483
56607
  });
56484
56608
  useEffect(() => {
56485
56609
  if (disabled || ref == null) return undefined;
56486
- const doc = ownerDocument(getRefTarget(ref)); // Store the current event to avoid triggering handlers immediately
56487
- // https://github.com/facebook/react/issues/20074
56610
+ const doc = ownerDocument(getRefTarget(ref));
56488
56611
 
56612
+ // Store the current event to avoid triggering handlers immediately
56613
+ // https://github.com/facebook/react/issues/20074
56489
56614
  let currentEvent = (doc.defaultView || window).event;
56490
56615
  const removeKeyupListener = listen(doc, 'keyup', e => {
56491
56616
  // skip if this event is the same as the one running when we added the handlers
@@ -56493,7 +56618,6 @@ function useRootClose(ref, onRootClose, {
56493
56618
  currentEvent = undefined;
56494
56619
  return;
56495
56620
  }
56496
-
56497
56621
  handleKeyUp(e);
56498
56622
  });
56499
56623
  return () => {
@@ -56513,7 +56637,8 @@ const Overlay = /*#__PURE__*/forwardRef((props, outerRef) => {
56513
56637
  placement,
56514
56638
  containerPadding,
56515
56639
  popperConfig = {},
56516
- transition: Transition
56640
+ transition: Transition,
56641
+ runTransition
56517
56642
  } = props;
56518
56643
  const [rootElement, attachRef] = useCallbackRef();
56519
56644
  const [arrowElement, attachArrowRef] = useCallbackRef();
@@ -56531,32 +56656,34 @@ const Overlay = /*#__PURE__*/forwardRef((props, outerRef) => {
56531
56656
  popperConfig
56532
56657
  }));
56533
56658
 
56534
- if (props.show) {
56535
- if (exited) setExited(false);
56536
- } else if (!props.transition && !exited) {
56537
- setExited(true);
56659
+ // TODO: I think this needs to be in an effect
56660
+ if (props.show && exited) {
56661
+ setExited(false);
56538
56662
  }
56539
-
56540
56663
  const handleHidden = (...args) => {
56541
56664
  setExited(true);
56542
-
56543
56665
  if (props.onExited) {
56544
56666
  props.onExited(...args);
56545
56667
  }
56546
- }; // Don't un-render the overlay while it's transitioning out.
56547
-
56668
+ };
56548
56669
 
56549
- const mountOverlay = props.show || Transition && !exited;
56670
+ // Don't un-render the overlay while it's transitioning out.
56671
+ const mountOverlay = props.show || !exited;
56550
56672
  useRootClose(rootElement, props.onHide, {
56551
56673
  disabled: !props.rootClose || props.rootCloseDisabled,
56552
56674
  clickTrigger: props.rootCloseEvent
56553
56675
  });
56554
-
56555
56676
  if (!mountOverlay) {
56556
56677
  // Don't bother showing anything if we don't have to.
56557
56678
  return null;
56558
56679
  }
56559
-
56680
+ const {
56681
+ onExit,
56682
+ onExiting,
56683
+ onEnter,
56684
+ onEntering,
56685
+ onEntered
56686
+ } = props;
56560
56687
  let child = props.children(Object.assign({}, popper.attributes.popper, {
56561
56688
  style: popper.styles.popper,
56562
56689
  ref: mergedRef
@@ -56569,28 +56696,19 @@ const Overlay = /*#__PURE__*/forwardRef((props, outerRef) => {
56569
56696
  ref: attachArrowRef
56570
56697
  })
56571
56698
  });
56572
-
56573
- if (Transition) {
56574
- const {
56575
- onExit,
56576
- onExiting,
56577
- onEnter,
56578
- onEntering,
56579
- onEntered
56580
- } = props;
56581
- child = /*#__PURE__*/jsx(Transition, {
56582
- in: props.show,
56583
- appear: true,
56584
- onExit: onExit,
56585
- onExiting: onExiting,
56586
- onExited: handleHidden,
56587
- onEnter: onEnter,
56588
- onEntering: onEntering,
56589
- onEntered: onEntered,
56590
- children: child
56591
- });
56592
- }
56593
-
56699
+ child = renderTransition(Transition, runTransition, {
56700
+ in: !!props.show,
56701
+ appear: true,
56702
+ mountOnEnter: true,
56703
+ unmountOnExit: true,
56704
+ children: child,
56705
+ onExit,
56706
+ onExiting,
56707
+ onExited: handleHidden,
56708
+ onEnter,
56709
+ onEntering,
56710
+ onEntered
56711
+ });
56594
56712
  return container ? /*#__PURE__*/reactDom.createPortal(child, container) : null;
56595
56713
  });
56596
56714
  Overlay.displayName = 'Overlay';
@@ -56611,29 +56729,44 @@ function getOverlayDirection(placement, isRTL) {
56611
56729
  return bsDirection;
56612
56730
  }
56613
56731
 
56614
- const defaultProps$1 = {
56615
- placement: 'right'
56616
- };
56732
+ function getInitialPopperStyles(position = 'absolute') {
56733
+ return {
56734
+ position,
56735
+ top: '0',
56736
+ left: '0',
56737
+ opacity: '0',
56738
+ pointerEvents: 'none'
56739
+ };
56740
+ }
56741
+
56617
56742
  const Popover = /*#__PURE__*/forwardRef(({
56618
56743
  bsPrefix,
56619
- placement,
56744
+ placement = 'right',
56620
56745
  className,
56621
56746
  style,
56622
56747
  children,
56623
56748
  body,
56624
56749
  arrowProps,
56625
- popper: _,
56626
- show: _1,
56750
+ hasDoneInitialMeasure,
56751
+ popper,
56752
+ show,
56627
56753
  ...props
56628
56754
  }, ref) => {
56629
56755
  const decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
56630
56756
  const isRTL = useIsRTL();
56631
56757
  const [primaryPlacement] = (placement == null ? void 0 : placement.split('-')) || [];
56632
56758
  const bsDirection = getOverlayDirection(primaryPlacement, isRTL);
56759
+ let computedStyle = style;
56760
+ if (show && !hasDoneInitialMeasure) {
56761
+ computedStyle = {
56762
+ ...style,
56763
+ ...getInitialPopperStyles(popper == null ? void 0 : popper.strategy)
56764
+ };
56765
+ }
56633
56766
  return /*#__PURE__*/jsxs("div", {
56634
56767
  ref: ref,
56635
56768
  role: "tooltip",
56636
- style: style,
56769
+ style: computedStyle,
56637
56770
  "x-placement": primaryPlacement,
56638
56771
  className: classnames(className, decoratedBsPrefix, primaryPlacement && `bs-popover-${bsDirection}`),
56639
56772
  ...props,
@@ -56645,7 +56778,6 @@ const Popover = /*#__PURE__*/forwardRef(({
56645
56778
  }) : children]
56646
56779
  });
56647
56780
  });
56648
- Popover.defaultProps = defaultProps$1;
56649
56781
  var Popover$1 = Object.assign(Popover, {
56650
56782
  Header: PopoverHeader,
56651
56783
  Body: PopoverBody,
@@ -56673,12 +56805,6 @@ function useOverlayOffset(customOffset) {
56673
56805
  return [overlayRef, [offset]];
56674
56806
  }
56675
56807
 
56676
- const defaultProps$2 = {
56677
- transition: Fade,
56678
- rootClose: false,
56679
- show: false,
56680
- placement: 'top'
56681
- };
56682
56808
  function wrapRefs(props, arrowProps) {
56683
56809
  const {
56684
56810
  ref
@@ -56691,12 +56817,15 @@ function wrapRefs(props, arrowProps) {
56691
56817
  }
56692
56818
  const Overlay$1 = /*#__PURE__*/forwardRef(({
56693
56819
  children: overlay,
56694
- transition,
56820
+ transition = Fade,
56695
56821
  popperConfig = {},
56822
+ rootClose = false,
56823
+ placement = 'top',
56824
+ show: outerShow = false,
56696
56825
  ...outerProps
56697
56826
  }, outerRef) => {
56698
56827
  const popperRef = useRef({});
56699
- const [firstRenderedState, setFirstRenderedState] = useCallbackRef();
56828
+ const [firstRenderedState, setFirstRenderedState] = useState(null);
56700
56829
  const [ref, modifiers] = useOverlayOffset(outerProps.offset);
56701
56830
  const mergedRef = useMergedRefs(outerRef, ref);
56702
56831
  const actualTransition = transition === true ? Fade : transition || undefined;
@@ -56709,6 +56838,11 @@ const Overlay$1 = /*#__PURE__*/forwardRef(({
56709
56838
  popperRef.current.scheduleUpdate == null ? void 0 : popperRef.current.scheduleUpdate();
56710
56839
  }
56711
56840
  }, [firstRenderedState]);
56841
+ useEffect(() => {
56842
+ if (!outerShow) {
56843
+ setFirstRenderedState(null);
56844
+ }
56845
+ }, [outerShow]);
56712
56846
  return /*#__PURE__*/jsx(Overlay, {
56713
56847
  ...outerProps,
56714
56848
  ref: mergedRef,
@@ -56718,6 +56852,9 @@ const Overlay$1 = /*#__PURE__*/forwardRef(({
56718
56852
  onFirstUpdate: handleFirstUpdate
56719
56853
  },
56720
56854
  transition: actualTransition,
56855
+ rootClose: rootClose,
56856
+ placement: placement,
56857
+ show: outerShow,
56721
56858
  children: (overlayProps, {
56722
56859
  arrowProps,
56723
56860
  popper: popperObj,
@@ -56731,8 +56868,10 @@ const Overlay$1 = /*#__PURE__*/forwardRef(({
56731
56868
  state: popperObj == null ? void 0 : popperObj.state,
56732
56869
  scheduleUpdate: popperObj == null ? void 0 : popperObj.update,
56733
56870
  placement: updatedPlacement,
56734
- outOfBoundaries: (popperObj == null ? void 0 : (_popperObj$state = popperObj.state) == null ? void 0 : (_popperObj$state$modi = _popperObj$state.modifiersData.hide) == null ? void 0 : _popperObj$state$modi.isReferenceHidden) || false
56871
+ 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,
56872
+ strategy: popperConfig.strategy
56735
56873
  });
56874
+ const hasDoneInitialMeasure = !!firstRenderedState;
56736
56875
  if (typeof overlay === 'function') return overlay({
56737
56876
  ...overlayProps,
56738
56877
  placement: updatedPlacement,
@@ -56741,13 +56880,15 @@ const Overlay$1 = /*#__PURE__*/forwardRef(({
56741
56880
  className: 'show'
56742
56881
  }),
56743
56882
  popper,
56744
- arrowProps
56883
+ arrowProps,
56884
+ hasDoneInitialMeasure
56745
56885
  });
56746
56886
  return /*#__PURE__*/cloneElement(overlay, {
56747
56887
  ...overlayProps,
56748
56888
  placement: updatedPlacement,
56749
56889
  arrowProps,
56750
56890
  popper,
56891
+ hasDoneInitialMeasure,
56751
56892
  className: classnames(overlay.props.className, !transition && show && 'show'),
56752
56893
  style: {
56753
56894
  ...overlay.props.style,
@@ -56758,7 +56899,6 @@ const Overlay$1 = /*#__PURE__*/forwardRef(({
56758
56899
  });
56759
56900
  });
56760
56901
  Overlay$1.displayName = 'Overlay';
56761
- Overlay$1.defaultProps = defaultProps$2;
56762
56902
 
56763
56903
  function normalizeDelay(delay) {
56764
56904
  return delay && typeof delay === 'object' ? delay : {
@@ -56781,12 +56921,8 @@ handler, args, relatedNative) {
56781
56921
  handler(...args);
56782
56922
  }
56783
56923
  }
56784
- const defaultProps$3 = {
56785
- defaultShow: false,
56786
- trigger: ['hover', 'focus']
56787
- };
56788
56924
  function OverlayTrigger({
56789
- trigger,
56925
+ trigger = ['hover', 'focus'],
56790
56926
  overlay,
56791
56927
  children,
56792
56928
  popperConfig = {},
@@ -56881,7 +57017,6 @@ function OverlayTrigger({
56881
57017
  })]
56882
57018
  });
56883
57019
  }
56884
- OverlayTrigger.defaultProps = defaultProps$3;
56885
57020
 
56886
57021
  var styles$5 = {"vitro-action-handler":"_action-handler_vitro-action-handler_1_HNxCd","vitro-icon-before":"_action-handler_vitro-icon-before_3vTdV08","vitro-icon-progress":"_action-handler_vitro-icon-progress_28liEuB","vitro-icon-success":"_action-handler_vitro-icon-success_1jnQDIv","vitro-icon-error":"_action-handler_vitro-icon-error_3OPWhCB","vitro-button-close":"_action-handler_vitro-button-close_33qzSIU","vitro-flex":"_action-handler_vitro-flex_3Pyc7fz"};
56887
57022
 
@@ -56898,33 +57033,42 @@ var UpdatingPopover = React__default.forwardRef(function (_ref, ref) {
56898
57033
  }, props), children));
56899
57034
  });
56900
57035
 
56901
- var ACTION_HANDLER_LOCALE;
56902
- (function (ACTION_HANDLER_LOCALE) {
56903
- ACTION_HANDLER_LOCALE["CONF_SINGLE"] = "app.common.msg.action.conf.single";
56904
- ACTION_HANDLER_LOCALE["CONF_MULTI"] = "app.common.msg.action.conf.multi";
56905
- ACTION_HANDLER_LOCALE["SUCCESS_SINGLE"] = "app.common.msg.action.success.single";
56906
- ACTION_HANDLER_LOCALE["SUCCESS_MULTI"] = "app.common.msg.action.success.multi";
56907
- ACTION_HANDLER_LOCALE["ERROR_SINGLE"] = "app.common.msg.action.error.single";
56908
- ACTION_HANDLER_LOCALE["ERROR_MULTI"] = "app.common.msg.action.error.multi";
56909
- ACTION_HANDLER_LOCALE["PROGRESS_SINGLE"] = "app.common.msg.action.progress.single";
56910
- ACTION_HANDLER_LOCALE["PROGRESS_MULTI"] = "app.common.msg.action.progress.multi";
56911
- ACTION_HANDLER_LOCALE["YES"] = "app.common.action.yes";
56912
- ACTION_HANDLER_LOCALE["NO"] = "app.common.action.no";
56913
- })(ACTION_HANDLER_LOCALE || (ACTION_HANDLER_LOCALE = {}));
57036
+ var LOCALE;
57037
+ (function (LOCALE) {
57038
+ LOCALE["CONF_SINGLE"] = "app.common.msg.action.conf.single";
57039
+ LOCALE["CONF_MULTI"] = "app.common.msg.action.conf.multi";
57040
+ LOCALE["SUCCESS_SINGLE"] = "app.common.msg.action.success.single";
57041
+ LOCALE["SUCCESS_MULTI"] = "app.common.msg.action.success.multi";
57042
+ LOCALE["ERROR_SINGLE"] = "app.common.msg.action.error.single";
57043
+ LOCALE["ERROR_MULTI"] = "app.common.msg.action.error.multi";
57044
+ LOCALE["PROGRESS_SINGLE"] = "app.common.msg.action.progress.single";
57045
+ LOCALE["PROGRESS_MULTI"] = "app.common.msg.action.progress.multi";
57046
+ LOCALE["YES"] = "app.common.action.yes";
57047
+ LOCALE["NO"] = "app.common.action.no";
57048
+ })(LOCALE || (LOCALE = {}));
56914
57049
  var PLACEMENT;
56915
57050
  (function (PLACEMENT) {
56916
57051
  PLACEMENT["TOP"] = "top";
57052
+ PLACEMENT["BOTTOM"] = "bottom";
56917
57053
  })(PLACEMENT || (PLACEMENT = {}));
56918
- var SYMBOL;
56919
- (function (SYMBOL) {
56920
- SYMBOL["QUESTION_MARK"] = "?";
56921
- SYMBOL["EMPTY_STRING"] = "";
56922
- })(SYMBOL || (SYMBOL = {}));
57054
+ var CTRL;
57055
+ (function (CTRL) {
57056
+ CTRL["QUESTION"] = "?";
57057
+ CTRL["EMPTY"] = "";
57058
+ })(CTRL || (CTRL = {}));
56923
57059
  var TRIGGER;
56924
57060
  (function (TRIGGER) {
56925
57061
  TRIGGER["CLICK"] = "click";
56926
57062
  })(TRIGGER || (TRIGGER = {}));
56927
57063
 
57064
+ var ActionHandlerConstants = {
57065
+ __proto__: null,
57066
+ get LOCALE () { return LOCALE; },
57067
+ get PLACEMENT () { return PLACEMENT; },
57068
+ get CTRL () { return CTRL; },
57069
+ get TRIGGER () { return TRIGGER; }
57070
+ };
57071
+
56928
57072
  var SERVICE = function SERVICE() {};
56929
57073
  SERVICE.LOCALE = 'LocaleService';
56930
57074
 
@@ -56934,7 +57078,7 @@ var actionMap = {
56934
57078
  after: 2
56935
57079
  };
56936
57080
  var ActionHandler = function ActionHandler(props) {
56937
- var _useState = useState(SYMBOL.EMPTY_STRING),
57081
+ var _useState = useState(CTRL.EMPTY),
56938
57082
  text = _useState[0],
56939
57083
  setText = _useState[1];
56940
57084
  var _useState2 = useState(true),
@@ -56983,17 +57127,17 @@ var ActionHandler = function ActionHandler(props) {
56983
57127
  confText = props.confirmText(itemCount);
56984
57128
  } else {
56985
57129
  if (itemCount === 1) {
56986
- confText = localeService.create(ACTION_HANDLER_LOCALE.CONF_SINGLE, {
57130
+ confText = localeService.create(LOCALE.CONF_SINGLE, {
56987
57131
  actionCode: props.actionCode
56988
57132
  });
56989
57133
  } else {
56990
- confText = localeService.create(ACTION_HANDLER_LOCALE.CONF_MULTI, {
57134
+ confText = localeService.create(LOCALE.CONF_MULTI, {
56991
57135
  actionCode: props.actionCode,
56992
57136
  itemCount: itemCount
56993
57137
  });
56994
57138
  }
56995
57139
  }
56996
- setText(confText + SYMBOL.QUESTION_MARK);
57140
+ setText(confText + CTRL.QUESTION);
56997
57141
  }
56998
57142
  setCurrentAction(actionMap.before);
56999
57143
  };
@@ -57031,12 +57175,12 @@ var ActionHandler = function ActionHandler(props) {
57031
57175
  }
57032
57176
  }
57033
57177
  if (itemCount === 1) {
57034
- var key = success ? ACTION_HANDLER_LOCALE.SUCCESS_SINGLE : ACTION_HANDLER_LOCALE.ERROR_SINGLE;
57178
+ var key = success ? LOCALE.SUCCESS_SINGLE : LOCALE.ERROR_SINGLE;
57035
57179
  setText(localeService.create(key, {
57036
57180
  actionCode: props.actionCode
57037
57181
  }));
57038
57182
  } else {
57039
- var _key = success ? ACTION_HANDLER_LOCALE.SUCCESS_MULTI : ACTION_HANDLER_LOCALE.ERROR_MULTI;
57183
+ var _key = success ? LOCALE.SUCCESS_MULTI : LOCALE.ERROR_MULTI;
57040
57184
  setText(localeService.create(_key, {
57041
57185
  actionCode: props.actionCode,
57042
57186
  itemCount: itemCount
@@ -57049,11 +57193,11 @@ var ActionHandler = function ActionHandler(props) {
57049
57193
  setText(props.progressText(itemCount));
57050
57194
  } else {
57051
57195
  if (itemCount === 1) {
57052
- setText(localeService.create(ACTION_HANDLER_LOCALE.PROGRESS_SINGLE, {
57196
+ setText(localeService.create(LOCALE.PROGRESS_SINGLE, {
57053
57197
  actionCode: props.actionCode
57054
57198
  }));
57055
57199
  } else {
57056
- setText(localeService.create(ACTION_HANDLER_LOCALE.PROGRESS_MULTI, {
57200
+ setText(localeService.create(LOCALE.PROGRESS_MULTI, {
57057
57201
  idx: 1,
57058
57202
  actionCode: props.actionCode,
57059
57203
  itemCount: itemCount
@@ -57071,13 +57215,13 @@ var ActionHandler = function ActionHandler(props) {
57071
57215
  return itemList.reduce(function (p, item, i) {
57072
57216
  return p.then(function (res) {
57073
57217
  if (itemCount > 1) {
57074
- setText(localeService.create(ACTION_HANDLER_LOCALE.PROGRESS_MULTI, {
57218
+ setText(localeService.create(LOCALE.PROGRESS_MULTI, {
57075
57219
  idx: i + 1,
57076
57220
  itemCount: itemCount,
57077
57221
  actionCode: props.actionCode
57078
57222
  }));
57079
57223
  } else {
57080
- setText(localeService.create(ACTION_HANDLER_LOCALE.PROGRESS_SINGLE, {
57224
+ setText(localeService.create(LOCALE.PROGRESS_SINGLE, {
57081
57225
  actionCode: props.actionCode
57082
57226
  }));
57083
57227
  }
@@ -57133,11 +57277,11 @@ var ActionHandler = function ActionHandler(props) {
57133
57277
  className: icon
57134
57278
  }), text), showButtonGroup && React__default.createElement(ButtonGroup, null, React__default.createElement(Button, {
57135
57279
  onClick: onStart,
57136
- text: localeService.create(ACTION_HANDLER_LOCALE.YES) || props.labelYes,
57280
+ text: localeService.create(LOCALE.YES) || props.labelYes,
57137
57281
  disabled: currentAction !== actionMap.before
57138
57282
  }), React__default.createElement(Button, {
57139
57283
  onClick: cancel,
57140
- text: localeService.create(ACTION_HANDLER_LOCALE.NO) || props.labelNo,
57284
+ text: localeService.create(LOCALE.NO) || props.labelNo,
57141
57285
  className: styles$5["vitro-button-close"]
57142
57286
  })))
57143
57287
  }, React__default.createElement("div", null, props.children)), props.target && !props.children && React__default.createElement(Overlay$1, {
@@ -57154,14 +57298,14 @@ var ActionHandler = function ActionHandler(props) {
57154
57298
  className: icon
57155
57299
  }), text), showButtonGroup && React__default.createElement(ButtonGroup, null, React__default.createElement(Button, {
57156
57300
  onClick: onStart,
57157
- text: localeService.create(ACTION_HANDLER_LOCALE.YES) || props.labelYes,
57301
+ text: localeService.create(LOCALE.YES) || props.labelYes,
57158
57302
  disabled: currentAction !== actionMap.before
57159
57303
  }), React__default.createElement(Button, {
57160
57304
  onClick: cancel,
57161
- text: localeService.create(ACTION_HANDLER_LOCALE.NO) || props.labelNo,
57305
+ text: localeService.create(LOCALE.NO) || props.labelNo,
57162
57306
  className: styles$5["vitro-button-close"]
57163
57307
  })))));
57164
57308
  };
57165
57309
 
57166
- export { ActionHandler, Breadcrumbs, ComponentLoader, ComponentLoaderContextImpl, MicroFrontend, TableView, TelerikUploader, TelerikUploaderContextImpl, TopLevelMenu, TreeView };
57310
+ export { ActionHandlerConstants as ACTION_HANDLER, ActionHandler, Breadcrumbs, ComponentLoader, ComponentLoaderContextImpl, MicroFrontend, TableViewConstants as TABLE_VIEW, TreeViewConstants as TREE_VIEW, TableView, TelerikUploader, TelerikUploaderContextImpl, TopLevelMenu, TreeView };
57167
57311
  //# sourceMappingURL=index.modern.js.map