@oliasoft-open-source/react-ui-library 4.8.0 → 4.9.0-beta-1

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.
Files changed (76) hide show
  1. package/dist/assets/{index-CvGLlWUJ.js → index-CnfDrmnZ.js} +55 -43
  2. package/dist/index.d.ts +9 -4
  3. package/dist/index.html +1 -1
  4. package/dist/index.js +180 -179
  5. package/dist/index.js.map +1 -1
  6. package/dist/storybook/assets/{Color-KGDBMAHA-BLtMCq8G.js → Color-KGDBMAHA-nHvSq78M.js} +1 -1
  7. package/dist/storybook/assets/{DocsRenderer-PKQXORMH-Cq_uPi34.js → DocsRenderer-PKQXORMH-C1krXrOf.js} +1 -1
  8. package/dist/storybook/assets/{accordion.stories-CNjaOE6j.js → accordion.stories-kLk1OtZZ.js} +2 -2
  9. package/dist/storybook/assets/{afe.stories-Be4Zi8Qk.js → afe.stories-DFQsvqIV.js} +2 -2
  10. package/dist/storybook/assets/{buttons-and-links-CGf2fkq-.js → buttons-and-links-DC-E4soa.js} +2 -2
  11. package/dist/storybook/assets/{casing-loads.stories-9Iu4v1Y5.js → casing-loads.stories-B2lND_PU.js} +2 -2
  12. package/dist/storybook/assets/{cell.stories-OWJtpzu1.js → cell.stories-BVDrv2SU.js} +2 -2
  13. package/dist/storybook/assets/{chunk-HLWAVYOI-DQmzN82L.js → chunk-HLWAVYOI-DX3eyNf5.js} +1 -1
  14. package/dist/storybook/assets/{color-CUmK6HaC.js → color-BgW0SkoL.js} +2 -2
  15. package/dist/storybook/assets/footer.stories-BVXSVjq1.js +3 -0
  16. package/dist/storybook/assets/form.stories-BrUnmw7R.js +49 -0
  17. package/dist/storybook/assets/{formation.stories-BwshNr5I.js → formation.stories-DmecxRaM.js} +2 -2
  18. package/dist/storybook/assets/iframe-DHWiHrZY.js +2 -0
  19. package/dist/storybook/assets/index-B7q2KU2k.js +1 -0
  20. package/dist/storybook/assets/{index-DLsIgQne.js → index-BRAKCNI8.js} +87 -87
  21. package/dist/storybook/assets/{index-DaLCDjg_.js → index-C0x1JmaP.js} +1 -1
  22. package/dist/storybook/assets/{input-group.stories-Bqx8op1f.js → input-group.stories-CElwRt3p.js} +2 -2
  23. package/dist/storybook/assets/{input-validation-CRDfoI4h.js → input-validation-CD_0XD31.js} +2 -2
  24. package/dist/storybook/assets/{inputs-D3qEs1Q4.js → inputs-DmKjdzn7.js} +2 -2
  25. package/dist/storybook/assets/{layout-forms-CDGrrwBl.js → layout-forms-BxdMnma9.js} +4 -4
  26. package/dist/storybook/assets/{layout-general-D9kS22a0.js → layout-general-DTuKIl0f.js} +1 -1
  27. package/dist/storybook/assets/{modal.stories-BcqAhYEy.js → modal.stories-LhoWfDE6.js} +2 -2
  28. package/dist/storybook/assets/number-input-DBZIl9dz.js +16 -0
  29. package/dist/storybook/assets/number-input.stories-BRQWeYF6.js +166 -0
  30. package/dist/storybook/assets/{padding-and-spacing-Cr5c7WxM.js → padding-and-spacing-pWMUN6u_.js} +1 -1
  31. package/dist/storybook/assets/{pagination-D6pYWeQM.js → pagination-CLt-kUlx.js} +1 -1
  32. package/dist/storybook/assets/{pagination.stories-ItfGvzb-.js → pagination.stories-CTRM0Xou.js} +2 -2
  33. package/dist/storybook/assets/popover.stories-CGm0M5fv.js +10 -0
  34. package/dist/storybook/assets/{preview-B_VD4s7b.js → preview-BCA8OXOK.js} +2 -2
  35. package/dist/storybook/assets/{preview-t_Zs3gQw.js → preview-Ddw3AHiS.js} +2 -2
  36. package/dist/storybook/assets/{projects.stories-Co_WnKSx.js → projects.stories-BQswWVCx.js} +2 -2
  37. package/dist/storybook/assets/{radio-button-C4ljBRED.js → radio-button-DmDuw4DA.js} +1 -1
  38. package/dist/storybook/assets/{radio-button.stories-BzyW2CtK.js → radio-button.stories-5gvV0LD0.js} +2 -2
  39. package/dist/storybook/assets/{reservoirs.stories-FQuUA3DK.js → reservoirs.stories-B12tIrmZ.js} +2 -2
  40. package/dist/storybook/assets/{rich-text-input.stories-CmFzKTb-.js → rich-text-input.stories-hAHCnDHk.js} +44 -44
  41. package/dist/storybook/assets/{row.stories-xvzQuDF0.js → row.stories-BO2s7oph.js} +2 -2
  42. package/dist/storybook/assets/{select-V2ZNp3Pv.js → select-DnRuRG_N.js} +2 -2
  43. package/dist/storybook/assets/select.input-D0UkAPd9.js +1 -0
  44. package/dist/storybook/assets/{select.stories-CV9h5z0E.js → select.stories-B9w9ONzj.js} +2 -2
  45. package/dist/storybook/assets/{site.stories-ZGohyW6Z.js → site.stories-umpPYjkq.js} +2 -2
  46. package/dist/storybook/assets/{smart-upload-modal.stories-BKNxg_3y.js → smart-upload-modal.stories-Dn7dIsu1.js} +1 -1
  47. package/dist/storybook/assets/{table-D9JJ68Tx.js → table-CB6btQu9.js} +1 -1
  48. package/dist/storybook/assets/{table.stories-f-cNU-ed.js → table.stories-CvHvaYMC.js} +2 -2
  49. package/dist/storybook/assets/{tabs-BoToLVEP.js → tabs-C3NG6m9W.js} +1 -1
  50. package/dist/storybook/assets/tabs.stories-dsXjRHJy.js +30 -0
  51. package/dist/storybook/assets/{title.stories-5TyZBiBD.js → title.stories-DYXG2_x-.js} +2 -2
  52. package/dist/storybook/assets/unit-input-5P4Cogho.css +1 -0
  53. package/dist/storybook/assets/unit-input.stories-DRP-nDdh.js +380 -0
  54. package/dist/storybook/assets/unit-table.stories-DiER-CMn.js +152 -0
  55. package/dist/storybook/iframe.html +1 -1
  56. package/dist/storybook/index.json +1 -1
  57. package/dist/storybook/project.json +1 -1
  58. package/dist/storybook/sb-addons/interactions-2/manager-bundle.js +52 -52
  59. package/dist/storybook/sb-manager/globals-runtime.js +7164 -7166
  60. package/dist/storybook/sb-manager/runtime.js +1110 -1111
  61. package/dist/storybook/sb-preview/runtime.js +1485 -1483
  62. package/package.json +3 -3
  63. package/dist/404.html +0 -1
  64. package/dist/storybook/assets/footer.stories-CCaqnn-t.js +0 -3
  65. package/dist/storybook/assets/form.stories-CX1WxUVL.js +0 -49
  66. package/dist/storybook/assets/helpers-JJxzGegQ.js +0 -1
  67. package/dist/storybook/assets/iframe-aT7NCuic.js +0 -2
  68. package/dist/storybook/assets/index-CDuLcH5d.js +0 -1
  69. package/dist/storybook/assets/number-input-Ct8VwJX0.js +0 -16
  70. package/dist/storybook/assets/number-input.stories-lRKm6_tZ.js +0 -110
  71. package/dist/storybook/assets/popover.stories-B4sQDryP.js +0 -10
  72. package/dist/storybook/assets/select.input-CJed_LLR.js +0 -1
  73. package/dist/storybook/assets/tabs.stories-B52iEaHf.js +0 -30
  74. package/dist/storybook/assets/unit-input-CoFS2qhN.css +0 -1
  75. package/dist/storybook/assets/unit-input.stories-tjEyowge.js +0 -318
  76. package/dist/storybook/assets/unit-table.stories-BDYxeHSM.js +0 -152
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ import * as PropTypes from "prop-types";
16
16
  import PropTypes__default from "prop-types";
17
17
  import ReactDOM, { createPortal, unstable_batchedUpdates, render } from "react-dom";
18
18
  import { noop as noop$3, set, get as get$2, isString as isString$3, isNumber as isNumber$1, isBoolean as isBoolean$2, isFunction as isFunction$3, isEmpty, isArray as isArray$1, toNumber, debounce as debounce$2, isObject as isObject$5, isEqual as isEqual$4 } from "lodash";
19
- import { roundToFixed, validateNumber, cleanNumStr, unitFromQuantity, isValueWithUnit, withUnit, convertSamePrecision, getValue as getValue$1, getUnit, KNOWN_UNITS, split as split$1, label as label$b, altUnitsList, getUnitsForQuantity, convertAndGetValue, isScientificStringNum, roundToPrecision, roundByMagnitudeToFixed } from "@oliasoft-open-source/units";
19
+ import { isScientificStringNum, roundToPrecision, roundToFixed, toString as toString$1, validateNumber, stripLeadingZeros, cleanNumStr, unitFromQuantity, isValueWithUnit, withUnit, convertSamePrecision, getValue as getValue$1, getUnit, KNOWN_UNITS, split as split$1, label as label$b, altUnitsList, convertAndGetValue, getUnitsForQuantity, roundByMagnitudeToFixed } from "@oliasoft-open-source/units";
20
20
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
21
21
  function getDefaultExportFromCjs(x2) {
22
22
  return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
@@ -199,27 +199,21 @@ function _objectWithoutPropertiesLoose$5(r2, e2) {
199
199
  }
200
200
  return t;
201
201
  }
202
- var _extends$6 = { exports: {} };
203
- var hasRequired_extends;
204
- function require_extends() {
205
- if (hasRequired_extends) return _extends$6.exports;
206
- hasRequired_extends = 1;
207
- (function(module) {
208
- function _extends3() {
209
- return module.exports = _extends3 = Object.assign ? Object.assign.bind() : function(n2) {
210
- for (var e2 = 1; e2 < arguments.length; e2++) {
211
- var t = arguments[e2];
212
- for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n2[r2] = t[r2]);
213
- }
214
- return n2;
215
- }, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends3.apply(null, arguments);
202
+ function _extends$4() {
203
+ return _extends$4 = Object.assign ? Object.assign.bind() : function(n2) {
204
+ for (var e2 = 1; e2 < arguments.length; e2++) {
205
+ var t = arguments[e2];
206
+ for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n2[r2] = t[r2]);
216
207
  }
217
- module.exports = _extends3, module.exports.__esModule = true, module.exports["default"] = module.exports;
218
- })(_extends$6);
219
- return _extends$6.exports;
208
+ return n2;
209
+ }, _extends$4.apply(null, arguments);
220
210
  }
221
- var _extendsExports = require_extends();
222
- const _extends$5 = /* @__PURE__ */ getDefaultExportFromCjs(_extendsExports);
211
+ const _extends$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
212
+ __proto__: null,
213
+ get default() {
214
+ return _extends$4;
215
+ }
216
+ }, Symbol.toStringTag, { value: "Module" }));
223
217
  function _setPrototypeOf$3(t, e2) {
224
218
  return _setPrototypeOf$3 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e3) {
225
219
  return t2.__proto__ = e3, t2;
@@ -798,7 +792,7 @@ var ReactSVG = /* @__PURE__ */ function(_React$Component) {
798
792
  };
799
793
  _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
800
794
  var _this3 = this;
801
- if (shallowDiffers(_extends$5({}, prevProps), this.props)) {
795
+ if (shallowDiffers(_extends$4({}, prevProps), this.props)) {
802
796
  this.setState(function() {
803
797
  return _this3.initialState;
804
798
  }, function() {
@@ -826,7 +820,7 @@ var ReactSVG = /* @__PURE__ */ function(_React$Component) {
826
820
  _this$props2.useRequestCache;
827
821
  var wrapper2 = _this$props2.wrapper, rest = _objectWithoutPropertiesLoose$5(_this$props2, _excluded$b);
828
822
  var Wrapper2 = wrapper2;
829
- return /* @__PURE__ */ React$4.createElement(Wrapper2, _extends$5({}, rest, {
823
+ return /* @__PURE__ */ React$4.createElement(Wrapper2, _extends$4({}, rest, {
830
824
  ref: this.refCallback
831
825
  }, wrapper2 === "svg" ? {
832
826
  xmlns: svgNamespace,
@@ -2241,8 +2235,8 @@ function _createClass(Constructor, protoProps, staticProps) {
2241
2235
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
2242
2236
  return Constructor;
2243
2237
  }
2244
- function _extends$4() {
2245
- _extends$4 = Object.assign || function(target) {
2238
+ function _extends$3() {
2239
+ _extends$3 = Object.assign || function(target) {
2246
2240
  for (var i = 1; i < arguments.length; i++) {
2247
2241
  var source = arguments[i];
2248
2242
  for (var key2 in source) {
@@ -2253,7 +2247,7 @@ function _extends$4() {
2253
2247
  }
2254
2248
  return target;
2255
2249
  };
2256
- return _extends$4.apply(this, arguments);
2250
+ return _extends$3.apply(this, arguments);
2257
2251
  }
2258
2252
  function _inheritsLoose$2(subClass, superClass) {
2259
2253
  subClass.prototype = Object.create(superClass.prototype);
@@ -2577,7 +2571,7 @@ function useTrackElements(_ref) {
2577
2571
  var layerRef = useTrackRef(useCallback$1(function(layer2) {
2578
2572
  var _get3 = get4(), previousLayer = _get3.layer;
2579
2573
  set2(function(state) {
2580
- return _extends$4({}, state, {
2574
+ return _extends$3({}, state, {
2581
2575
  layer: layer2
2582
2576
  });
2583
2577
  });
@@ -2600,7 +2594,7 @@ function useTrackElements(_ref) {
2600
2594
  var scrollContainers = getScrollContainers(trigger2);
2601
2595
  var _get4 = get4(), previousTrigger = _get4.trigger;
2602
2596
  set2(function(state) {
2603
- return _extends$4({}, state, {
2597
+ return _extends$3({}, state, {
2604
2598
  trigger: trigger2,
2605
2599
  scrollContainers
2606
2600
  });
@@ -2613,7 +2607,7 @@ function useTrackElements(_ref) {
2613
2607
  return;
2614
2608
  }
2615
2609
  set2(function(state) {
2616
- return _extends$4({}, state, {
2610
+ return _extends$3({}, state, {
2617
2611
  scrollContainers: getScrollContainers(triggerOptionParent)
2618
2612
  });
2619
2613
  });
@@ -2780,7 +2774,7 @@ var BoundSide = {
2780
2774
  left: /* @__PURE__ */ createSide("left"),
2781
2775
  right: /* @__PURE__ */ createSide("right")
2782
2776
  };
2783
- var Side = /* @__PURE__ */ _extends$4({}, BoundSide, {
2777
+ var Side = /* @__PURE__ */ _extends$3({}, BoundSide, {
2784
2778
  center: /* @__PURE__ */ createSide("center")
2785
2779
  });
2786
2780
  var SIDES = ["top", "left", "bottom", "right"];
@@ -2876,7 +2870,7 @@ var Bounds = /* @__PURE__ */ function() {
2876
2870
  var _environment$getCompu = environment2.getComputedStyle(element), width2 = _environment$getCompu.width, height2 = _environment$getCompu.height, boxSizing = _environment$getCompu.boxSizing, borderLeft = _environment$getCompu.borderLeft, borderRight = _environment$getCompu.borderRight, borderTop = _environment$getCompu.borderTop, borderBottom = _environment$getCompu.borderBottom, paddingLeft = _environment$getCompu.paddingLeft, paddingRight = _environment$getCompu.paddingRight, paddingTop = _environment$getCompu.paddingTop, paddingBottom = _environment$getCompu.paddingBottom;
2877
2871
  var boxWidth = boxSizing === "border-box" ? getPixelValue(width2) : sumOfPropertyValues(width2, borderLeft, borderRight, paddingLeft, paddingRight);
2878
2872
  var boxHeight = boxSizing === "border-box" ? getPixelValue(height2) : sumOfPropertyValues(height2, borderTop, borderBottom, paddingTop, paddingBottom);
2879
- bounds = new Bounds2(_extends$4({}, bounds, {
2873
+ bounds = new Bounds2(_extends$3({}, bounds, {
2880
2874
  width: boxWidth,
2881
2875
  height: boxHeight
2882
2876
  }));
@@ -2923,7 +2917,7 @@ var Bounds = /* @__PURE__ */ function() {
2923
2917
  };
2924
2918
  _proto.merge = function merge(partialBoundsOrMergeFn) {
2925
2919
  var current = this.toObject();
2926
- return new Bounds2(_extends$4({}, current, typeof partialBoundsOrMergeFn === "function" ? partialBoundsOrMergeFn(current) : partialBoundsOrMergeFn));
2920
+ return new Bounds2(_extends$3({}, current, typeof partialBoundsOrMergeFn === "function" ? partialBoundsOrMergeFn(current) : partialBoundsOrMergeFn));
2927
2921
  };
2928
2922
  _proto.substract = function substract(bounds) {
2929
2923
  var result = this.toObject();
@@ -2990,7 +2984,7 @@ var Placement = /* @__PURE__ */ function() {
2990
2984
  typeof layerDimensions === "function" ? layerDimensions(this.primary.prop) : layerDimensions
2991
2985
  );
2992
2986
  this.subjectsBounds = subjectBounds.merge({
2993
- layer: _extends$4({}, subjectBounds.layer, dimensions)
2987
+ layer: _extends$3({}, subjectBounds.layer, dimensions)
2994
2988
  });
2995
2989
  };
2996
2990
  _proto.getLayerBounds = function getLayerBounds(secondaryOffset) {
@@ -3165,7 +3159,7 @@ function getArrowStyle(subjectsBounds, placement, arrowOffset) {
3165
3159
  var primarySide = placement.primary.prop;
3166
3160
  var secondarySide = placement.primary.oppositeCssProp;
3167
3161
  var secondaryValue = triggerIsBigger ? layer2[sizeProperty] / 2 + negativeOffset : trigger2[secondarySide] + trigger2[sizeProperty] / 2 - layer2[secondarySide];
3168
- return _extends$4({}, STYLE_BASE, (_extends22 = {}, _extends22[primarySide] = "100%", _extends22[secondarySide] = limit(secondaryValue, min, max), _extends22));
3162
+ return _extends$3({}, STYLE_BASE, (_extends22 = {}, _extends22[primarySide] = "100%", _extends22[secondarySide] = limit(secondaryValue, min, max), _extends22));
3169
3163
  }
3170
3164
  var Placements = /* @__PURE__ */ function() {
3171
3165
  function Placements2(placements, config2, subjectsBounds) {
@@ -3294,11 +3288,11 @@ var Placements = /* @__PURE__ */ function() {
3294
3288
  var arrow2 = getArrowStyle(this.subjectsBounds.merge({
3295
3289
  layer: layerBounds
3296
3290
  }), placement, this.config.arrowOffset);
3297
- var layer2 = this.config.overflowContainer ? _extends$4({}, layerStyleBase, {
3291
+ var layer2 = this.config.overflowContainer ? _extends$3({}, layerStyleBase, {
3298
3292
  position: "fixed",
3299
3293
  top: layerBounds.top,
3300
3294
  left: layerBounds.left
3301
- }) : _extends$4({}, layerStyleBase, {
3295
+ }) : _extends$3({}, layerStyleBase, {
3302
3296
  position: "absolute",
3303
3297
  top: layerBounds.top - this.subjectsBounds.parent.top + scrollOffsets.top - borderOffsets.top,
3304
3298
  left: layerBounds.left - this.subjectsBounds.parent.left + scrollOffsets.left - borderOffsets.left
@@ -3373,7 +3367,7 @@ var SubjectsBounds = /* @__PURE__ */ function() {
3373
3367
  };
3374
3368
  var _proto = SubjectsBounds2.prototype;
3375
3369
  _proto.merge = function merge(subjectsBounds) {
3376
- return new SubjectsBounds2(_extends$4({}, this, subjectsBounds), this.overflowContainer);
3370
+ return new SubjectsBounds2(_extends$3({}, this, subjectsBounds), this.overflowContainer);
3377
3371
  };
3378
3372
  _proto.offsetsToScrollContainers = function offsetsToScrollContainers(subject, allContainers) {
3379
3373
  if (allContainers === void 0) {
@@ -3608,10 +3602,10 @@ var Arrow = /* @__PURE__ */ forwardRef(function Arrow2(_ref2, ref2) {
3608
3602
  var sizeA = size2;
3609
3603
  var sizeB = getWidthBasedOnAngle(angle, size2) * 2;
3610
3604
  var maxSize = Math.max(sizeA, sizeB);
3611
- return createElement("svg", _extends$4({
3605
+ return createElement("svg", _extends$3({
3612
3606
  ref: ref2
3613
3607
  }, rest, {
3614
- style: _extends$4({}, style2, {
3608
+ style: _extends$3({}, style2, {
3615
3609
  transform: "translate" + (side.isHorizontal ? "Y" : "X") + "(-50%)"
3616
3610
  }),
3617
3611
  width: maxSize,
@@ -8261,8 +8255,8 @@ function _interopRequireWildcard$2(obj, nodeInterop) {
8261
8255
  }
8262
8256
  return newObj;
8263
8257
  }
8264
- function _extends$3() {
8265
- _extends$3 = Object.assign ? Object.assign.bind() : function(target) {
8258
+ function _extends$2() {
8259
+ _extends$2 = Object.assign ? Object.assign.bind() : function(target) {
8266
8260
  for (var i = 1; i < arguments.length; i++) {
8267
8261
  var source = arguments[i];
8268
8262
  for (var key2 in source) {
@@ -8273,7 +8267,7 @@ function _extends$3() {
8273
8267
  }
8274
8268
  return target;
8275
8269
  };
8276
- return _extends$3.apply(this, arguments);
8270
+ return _extends$2.apply(this, arguments);
8277
8271
  }
8278
8272
  function _objectWithoutPropertiesLoose$3(source, excluded) {
8279
8273
  if (source == null) return {};
@@ -8478,7 +8472,7 @@ var Resizable$1 = /* @__PURE__ */ function(_React$Component) {
8478
8472
  children: [].concat(children.props.children, resizeHandles.map(function(handleAxis) {
8479
8473
  var _this3$handleRefs$han;
8480
8474
  var ref2 = (_this3$handleRefs$han = _this3.handleRefs[handleAxis]) != null ? _this3$handleRefs$han : _this3.handleRefs[handleAxis] = /* @__PURE__ */ React$2.createRef();
8481
- return /* @__PURE__ */ React$2.createElement(_reactDraggable.DraggableCore, _extends$3({}, draggableOpts, {
8475
+ return /* @__PURE__ */ React$2.createElement(_reactDraggable.DraggableCore, _extends$2({}, draggableOpts, {
8482
8476
  nodeRef: ref2,
8483
8477
  key: "resizableHandle-" + handleAxis,
8484
8478
  onStop: _this3.resizeHandler("onResizeStop", handleAxis),
@@ -8549,8 +8543,8 @@ function _interopRequireWildcard$1(obj, nodeInterop) {
8549
8543
  }
8550
8544
  return newObj;
8551
8545
  }
8552
- function _extends$2() {
8553
- _extends$2 = Object.assign ? Object.assign.bind() : function(target) {
8546
+ function _extends$1() {
8547
+ _extends$1 = Object.assign ? Object.assign.bind() : function(target) {
8554
8548
  for (var i = 1; i < arguments.length; i++) {
8555
8549
  var source = arguments[i];
8556
8550
  for (var key2 in source) {
@@ -8561,7 +8555,7 @@ function _extends$2() {
8561
8555
  }
8562
8556
  return target;
8563
8557
  };
8564
- return _extends$2.apply(this, arguments);
8558
+ return _extends$1.apply(this, arguments);
8565
8559
  }
8566
8560
  function ownKeys$1(object2, enumerableOnly) {
8567
8561
  var keys2 = Object.keys(object2);
@@ -8692,7 +8686,7 @@ var ResizableBox = /* @__PURE__ */ function(_React$Component) {
8692
8686
  resizeHandles,
8693
8687
  transformScale,
8694
8688
  width: this.state.width
8695
- }, /* @__PURE__ */ React$1.createElement("div", _extends$2({}, props, {
8689
+ }, /* @__PURE__ */ React$1.createElement("div", _extends$1({}, props, {
8696
8690
  style: _objectSpread$5(_objectSpread$5({}, style2), {}, {
8697
8691
  width: this.state.width + "px",
8698
8692
  height: this.state.height + "px"
@@ -9488,15 +9482,6 @@ const InputGroupAddon = ({
9488
9482
  })();
9489
9483
  return /* @__PURE__ */ jsx("span", { className: cx$2(styles$u.addon, order2, small2 ? styles$u.small : ""), children });
9490
9484
  };
9491
- function _extends$1() {
9492
- return _extends$1 = Object.assign ? Object.assign.bind() : function(n2) {
9493
- for (var e2 = 1; e2 < arguments.length; e2++) {
9494
- var t = arguments[e2];
9495
- for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n2[r2] = t[r2]);
9496
- }
9497
- return n2;
9498
- }, _extends$1.apply(null, arguments);
9499
- }
9500
9485
  function _typeof$2(o) {
9501
9486
  "@babel/helpers - typeof";
9502
9487
  return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
@@ -10758,7 +10743,7 @@ function connectAdvanced(selectorFactory, _ref) {
10758
10743
  }
10759
10744
  var wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || "Component";
10760
10745
  var displayName = getDisplayName(wrappedComponentName);
10761
- var selectorFactoryOptions = _extends$1({}, connectOptions, {
10746
+ var selectorFactoryOptions = _extends$4({}, connectOptions, {
10762
10747
  getDisplayName,
10763
10748
  methodName,
10764
10749
  renderCountProp,
@@ -10803,7 +10788,7 @@ function connectAdvanced(selectorFactory, _ref) {
10803
10788
  if (didStoreComeFromProps) {
10804
10789
  return contextValue;
10805
10790
  }
10806
- return _extends$1({}, contextValue, {
10791
+ return _extends$4({}, contextValue, {
10807
10792
  subscription
10808
10793
  });
10809
10794
  }, [didStoreComeFromProps, contextValue, subscription]);
@@ -10824,7 +10809,7 @@ function connectAdvanced(selectorFactory, _ref) {
10824
10809
  useIsomorphicLayoutEffectWithArgs(captureWrapperProps, [lastWrapperProps, lastChildProps, renderIsScheduled, wrapperProps, actualChildProps, childPropsFromStoreUpdate, notifyNestedSubs]);
10825
10810
  useIsomorphicLayoutEffectWithArgs(subscribeUpdates, [shouldHandleStateChanges, store, subscription, childPropsSelector, lastWrapperProps, lastChildProps, renderIsScheduled, childPropsFromStoreUpdate, notifyNestedSubs, forceComponentUpdateDispatch], [store, subscription, childPropsSelector]);
10826
10811
  var renderedWrappedComponent = useMemo$1(function() {
10827
- return /* @__PURE__ */ React__default.createElement(WrappedComponent, _extends$1({}, actualChildProps, {
10812
+ return /* @__PURE__ */ React__default.createElement(WrappedComponent, _extends$4({}, actualChildProps, {
10828
10813
  ref: reactReduxForwardedRef
10829
10814
  }));
10830
10815
  }, [reactReduxForwardedRef, WrappedComponent, actualChildProps]);
@@ -10843,7 +10828,7 @@ function connectAdvanced(selectorFactory, _ref) {
10843
10828
  Connect.displayName = ConnectFunction.displayName = displayName;
10844
10829
  if (forwardRef2) {
10845
10830
  var forwarded = React__default.forwardRef(function forwardConnectRef(props, ref2) {
10846
- return /* @__PURE__ */ React__default.createElement(Connect, _extends$1({}, props, {
10831
+ return /* @__PURE__ */ React__default.createElement(Connect, _extends$4({}, props, {
10847
10832
  reactReduxForwardedRef: ref2
10848
10833
  }));
10849
10834
  });
@@ -10976,7 +10961,7 @@ function whenMapStateToPropsIsMissing(mapStateToProps) {
10976
10961
  }
10977
10962
  const defaultMapStateToPropsFactories = [whenMapStateToPropsIsFunction, whenMapStateToPropsIsMissing];
10978
10963
  function defaultMergeProps(stateProps, dispatchProps, ownProps) {
10979
- return _extends$1({}, ownProps, stateProps, dispatchProps);
10964
+ return _extends$4({}, ownProps, stateProps, dispatchProps);
10980
10965
  }
10981
10966
  function wrapMergePropsFunc(mergeProps) {
10982
10967
  return function initMergePropsProxy(dispatch, _ref) {
@@ -11109,7 +11094,7 @@ function createConnect(_temp) {
11109
11094
  var initMapStateToProps = match(mapStateToProps, mapStateToPropsFactories, "mapStateToProps");
11110
11095
  var initMapDispatchToProps = match(mapDispatchToProps2, mapDispatchToPropsFactories, "mapDispatchToProps");
11111
11096
  var initMergeProps = match(mergeProps, mergePropsFactories, "mergeProps");
11112
- return connectHOC(selectorFactory, _extends$1({
11097
+ return connectHOC(selectorFactory, _extends$4({
11113
11098
  // used in error messages
11114
11099
  methodName: "connect",
11115
11100
  // used to compute Connect's displayName from the wrapped component's displayName.
@@ -11408,7 +11393,7 @@ var error$9 = log.bind(null, "error");
11408
11393
  function noop$1() {
11409
11394
  }
11410
11395
  function getOptions(shared2, fromBinding) {
11411
- return _extends$1({}, shared2, {}, fromBinding);
11396
+ return _extends$4({}, shared2, {}, fromBinding);
11412
11397
  }
11413
11398
  function bindEvents(el2, bindings, sharedOptions) {
11414
11399
  var unbindings = bindings.map(function(binding) {
@@ -11654,7 +11639,7 @@ var scroll$2 = function scroll(target, frame2) {
11654
11639
  var increase = function increase2(target, axis, withPlaceholder) {
11655
11640
  if (withPlaceholder && withPlaceholder.increasedBy) {
11656
11641
  var _extends22;
11657
- return _extends$1({}, target, (_extends22 = {}, _extends22[axis.end] = target[axis.end] + withPlaceholder.increasedBy[axis.line], _extends22));
11642
+ return _extends$4({}, target, (_extends22 = {}, _extends22[axis.end] = target[axis.end] + withPlaceholder.increasedBy[axis.line], _extends22));
11658
11643
  }
11659
11644
  return target;
11660
11645
  };
@@ -11680,7 +11665,7 @@ var scrollDroppable = function(droppable2, newScroll) {
11680
11665
  var scrollable = droppable2.frame;
11681
11666
  var scrollDiff = subtract$1(newScroll, scrollable.scroll.initial);
11682
11667
  var scrollDisplacement = negate(scrollDiff);
11683
- var frame2 = _extends$1({}, scrollable, {
11668
+ var frame2 = _extends$4({}, scrollable, {
11684
11669
  scroll: {
11685
11670
  initial: scrollable.scroll.initial,
11686
11671
  current: newScroll,
@@ -11697,7 +11682,7 @@ var scrollDroppable = function(droppable2, newScroll) {
11697
11682
  axis: droppable2.axis,
11698
11683
  frame: frame2
11699
11684
  });
11700
- var result = _extends$1({}, droppable2, {
11685
+ var result = _extends$4({}, droppable2, {
11701
11686
  frame: frame2,
11702
11687
  subject
11703
11688
  });
@@ -11801,7 +11786,7 @@ var moveToNextCombine = function(_ref) {
11801
11786
  droppableId: destination.descriptor.id
11802
11787
  }
11803
11788
  };
11804
- return _extends$1({}, previousImpact, {
11789
+ return _extends$4({}, previousImpact, {
11805
11790
  at: at2
11806
11791
  });
11807
11792
  }
@@ -11936,17 +11921,17 @@ var isVisible = function isVisible2(_ref) {
11936
11921
  return isVisibleInDroppable(displacedTarget, destination, isVisibleThroughFrameFn) && isVisibleInViewport(displacedTarget, viewport, isVisibleThroughFrameFn);
11937
11922
  };
11938
11923
  var isPartiallyVisible = function isPartiallyVisible2(args) {
11939
- return isVisible(_extends$1({}, args, {
11924
+ return isVisible(_extends$4({}, args, {
11940
11925
  isVisibleThroughFrameFn: isPartiallyVisibleThroughFrame
11941
11926
  }));
11942
11927
  };
11943
11928
  var isTotallyVisible = function isTotallyVisible2(args) {
11944
- return isVisible(_extends$1({}, args, {
11929
+ return isVisible(_extends$4({}, args, {
11945
11930
  isVisibleThroughFrameFn: isTotallyVisibleThroughFrame
11946
11931
  }));
11947
11932
  };
11948
11933
  var isTotallyVisibleOnAxis = function isTotallyVisibleOnAxis2(args) {
11949
- return isVisible(_extends$1({}, args, {
11934
+ return isVisible(_extends$4({}, args, {
11950
11935
  isVisibleThroughFrameFn: isTotallyVisibleThroughFrameOnAxis(args.destination.axis)
11951
11936
  }));
11952
11937
  };
@@ -12356,7 +12341,7 @@ var speculativelyIncrease = function(_ref) {
12356
12341
  }
12357
12342
  invisible[id2] = true;
12358
12343
  });
12359
- var newImpact = _extends$1({}, impact, {
12344
+ var newImpact = _extends$4({}, impact, {
12360
12345
  displaced: {
12361
12346
  all: last.all,
12362
12347
  invisible,
@@ -12577,8 +12562,8 @@ var getRequiredGrowthForPlaceholder = function getRequiredGrowthForPlaceholder2(
12577
12562
  return patch(axis.line, needsToGrowBy);
12578
12563
  };
12579
12564
  var withMaxScroll = function withMaxScroll2(frame2, max) {
12580
- return _extends$1({}, frame2, {
12581
- scroll: _extends$1({}, frame2.scroll, {
12565
+ return _extends$4({}, frame2, {
12566
+ scroll: _extends$4({}, frame2.scroll, {
12582
12567
  max
12583
12568
  })
12584
12569
  });
@@ -12601,7 +12586,7 @@ var addPlaceholder = function addPlaceholder2(droppable2, draggable2, draggables
12601
12586
  axis: droppable2.axis,
12602
12587
  frame: droppable2.frame
12603
12588
  });
12604
- return _extends$1({}, droppable2, {
12589
+ return _extends$4({}, droppable2, {
12605
12590
  subject: _subject
12606
12591
  });
12607
12592
  }
@@ -12613,7 +12598,7 @@ var addPlaceholder = function addPlaceholder2(droppable2, draggable2, draggables
12613
12598
  axis: droppable2.axis,
12614
12599
  frame: newFrame
12615
12600
  });
12616
- return _extends$1({}, droppable2, {
12601
+ return _extends$4({}, droppable2, {
12617
12602
  subject,
12618
12603
  frame: newFrame
12619
12604
  });
@@ -12629,7 +12614,7 @@ var removePlaceholder = function removePlaceholder2(droppable2) {
12629
12614
  frame: null,
12630
12615
  withPlaceholder: null
12631
12616
  });
12632
- return _extends$1({}, droppable2, {
12617
+ return _extends$4({}, droppable2, {
12633
12618
  subject: _subject2
12634
12619
  });
12635
12620
  }
@@ -12642,7 +12627,7 @@ var removePlaceholder = function removePlaceholder2(droppable2) {
12642
12627
  frame: newFrame,
12643
12628
  withPlaceholder: null
12644
12629
  });
12645
- return _extends$1({}, droppable2, {
12630
+ return _extends$4({}, droppable2, {
12646
12631
  subject,
12647
12632
  frame: newFrame
12648
12633
  });
@@ -13027,7 +13012,7 @@ var getDragImpact = function(_ref) {
13027
13012
  };
13028
13013
  var patchDroppableMap = function(droppables, updated) {
13029
13014
  var _extends22;
13030
- return _extends$1({}, droppables, (_extends22 = {}, _extends22[updated.descriptor.id] = updated, _extends22));
13015
+ return _extends$4({}, droppables, (_extends22 = {}, _extends22[updated.descriptor.id] = updated, _extends22));
13031
13016
  };
13032
13017
  var clearUnusedPlaceholder = function clearUnusedPlaceholder2(_ref) {
13033
13018
  var previousImpact = _ref.previousImpact, impact = _ref.impact, droppables = _ref.droppables;
@@ -13088,7 +13073,7 @@ var update = function(_ref) {
13088
13073
  page: page2
13089
13074
  };
13090
13075
  if (state.phase === "COLLECTING") {
13091
- return _extends$1({
13076
+ return _extends$4({
13092
13077
  phase: "COLLECTING"
13093
13078
  }, state, {
13094
13079
  dimensions,
@@ -13113,7 +13098,7 @@ var update = function(_ref) {
13113
13098
  draggables: dimensions.draggables,
13114
13099
  droppables: dimensions.droppables
13115
13100
  });
13116
- var result = _extends$1({}, state, {
13101
+ var result = _extends$4({}, state, {
13117
13102
  current,
13118
13103
  dimensions: {
13119
13104
  draggables: dimensions.draggables,
@@ -13143,7 +13128,7 @@ var recompute = function(_ref) {
13143
13128
  forceShouldAnimate,
13144
13129
  last
13145
13130
  });
13146
- return _extends$1({}, impact, {
13131
+ return _extends$4({}, impact, {
13147
13132
  displaced
13148
13133
  });
13149
13134
  };
@@ -13262,8 +13247,8 @@ var offsetDraggable = function(_ref) {
13262
13247
  var draggable2 = _ref.draggable, offset$1 = _ref.offset, initialWindowScroll = _ref.initialWindowScroll;
13263
13248
  var client = offset(draggable2.client, offset$1);
13264
13249
  var page2 = withScroll(client, initialWindowScroll);
13265
- var moved = _extends$1({}, draggable2, {
13266
- placeholder: _extends$1({}, draggable2.placeholder, {
13250
+ var moved = _extends$4({}, draggable2, {
13251
+ placeholder: _extends$4({}, draggable2.placeholder, {
13267
13252
  client
13268
13253
  }),
13269
13254
  client,
@@ -13301,13 +13286,13 @@ var publishWhileDraggingInVirtual = function(_ref) {
13301
13286
  var scrolled = scrollDroppable(existing, update2.scroll);
13302
13287
  return scrolled;
13303
13288
  });
13304
- var droppables = _extends$1({}, state.dimensions.droppables, {}, toDroppableMap(withScrollChange));
13289
+ var droppables = _extends$4({}, state.dimensions.droppables, {}, toDroppableMap(withScrollChange));
13305
13290
  var updatedAdditions = toDraggableMap(adjustAdditionsForScrollChanges({
13306
13291
  additions: published.additions,
13307
13292
  updatedDroppables: droppables,
13308
13293
  viewport: state.viewport
13309
13294
  }));
13310
- var draggables = _extends$1({}, state.dimensions.draggables, {}, updatedAdditions);
13295
+ var draggables = _extends$4({}, state.dimensions.draggables, {}, updatedAdditions);
13311
13296
  published.removals.forEach(function(id2) {
13312
13297
  delete draggables[id2];
13313
13298
  });
@@ -13336,7 +13321,7 @@ var publishWhileDraggingInVirtual = function(_ref) {
13336
13321
  afterCritical
13337
13322
  });
13338
13323
  finish();
13339
- var draggingState = _extends$1({
13324
+ var draggingState = _extends$4({
13340
13325
  phase: "DRAGGING"
13341
13326
  }, state, {
13342
13327
  phase: "DRAGGING",
@@ -13349,7 +13334,7 @@ var publishWhileDraggingInVirtual = function(_ref) {
13349
13334
  if (state.phase === "COLLECTING") {
13350
13335
  return draggingState;
13351
13336
  }
13352
- var dropPending3 = _extends$1({
13337
+ var dropPending3 = _extends$4({
13353
13338
  phase: "DROP_PENDING"
13354
13339
  }, draggingState, {
13355
13340
  phase: "DROP_PENDING",
@@ -13376,7 +13361,7 @@ var postDroppableChange = function postDroppableChange2(state, updated, isEnable
13376
13361
  };
13377
13362
  function removeScrollJumpRequest(state) {
13378
13363
  if (state.isDragging && state.movementMode === "SNAP") {
13379
- return _extends$1({
13364
+ return _extends$4({
13380
13365
  phase: "DRAGGING"
13381
13366
  }, state, {
13382
13367
  scrollJumpRequest: null
@@ -13394,7 +13379,7 @@ var reducer$2 = function(state, action2) {
13394
13379
  state = idle;
13395
13380
  }
13396
13381
  if (action2.type === "FLUSH") {
13397
- return _extends$1({}, idle, {
13382
+ return _extends$4({}, idle, {
13398
13383
  shouldFlush: true
13399
13384
  });
13400
13385
  }
@@ -13448,7 +13433,7 @@ var reducer$2 = function(state, action2) {
13448
13433
  return state;
13449
13434
  }
13450
13435
  !(state.phase === "DRAGGING") ? process.env.NODE_ENV !== "production" ? invariant$3(false, "Collection cannot start from phase " + state.phase) : invariant$3() : void 0;
13451
- var _result = _extends$1({
13436
+ var _result = _extends$4({
13452
13437
  phase: "COLLECTING"
13453
13438
  }, state, {
13454
13439
  phase: "COLLECTING"
@@ -13502,7 +13487,7 @@ var reducer$2 = function(state, action2) {
13502
13487
  var _target = state.dimensions.droppables[_id];
13503
13488
  !_target ? process.env.NODE_ENV !== "production" ? invariant$3(false, "Cannot find Droppable[id: " + _id + "] to toggle its enabled state") : invariant$3() : void 0;
13504
13489
  !(_target.isEnabled !== isEnabled) ? process.env.NODE_ENV !== "production" ? invariant$3(false, "Trying to set droppable isEnabled to " + String(isEnabled) + "\n but it is already " + String(_target.isEnabled)) : invariant$3() : void 0;
13505
- var updated = _extends$1({}, _target, {
13490
+ var updated = _extends$4({}, _target, {
13506
13491
  isEnabled
13507
13492
  });
13508
13493
  return postDroppableChange(state, updated, true);
@@ -13516,7 +13501,7 @@ var reducer$2 = function(state, action2) {
13516
13501
  var _target2 = state.dimensions.droppables[_id2];
13517
13502
  !_target2 ? process.env.NODE_ENV !== "production" ? invariant$3(false, "Cannot find Droppable[id: " + _id2 + "] to toggle its isCombineEnabled state") : invariant$3() : void 0;
13518
13503
  !(_target2.isCombineEnabled !== isCombineEnabled) ? process.env.NODE_ENV !== "production" ? invariant$3(false, "Trying to set droppable isCombineEnabled to " + String(isCombineEnabled) + "\n but it is already " + String(_target2.isCombineEnabled)) : invariant$3() : void 0;
13519
- var _updated2 = _extends$1({}, _target2, {
13504
+ var _updated2 = _extends$4({}, _target2, {
13520
13505
  isCombineEnabled
13521
13506
  });
13522
13507
  return postDroppableChange(state, _updated2, true);
@@ -13551,12 +13536,12 @@ var reducer$2 = function(state, action2) {
13551
13536
  if (isEqual$2(maxScroll, state.viewport.scroll.max)) {
13552
13537
  return state;
13553
13538
  }
13554
- var withMaxScroll3 = _extends$1({}, state.viewport, {
13555
- scroll: _extends$1({}, state.viewport.scroll, {
13539
+ var withMaxScroll3 = _extends$4({}, state.viewport, {
13540
+ scroll: _extends$4({}, state.viewport.scroll, {
13556
13541
  max: maxScroll
13557
13542
  })
13558
13543
  });
13559
- return _extends$1({
13544
+ return _extends$4({
13560
13545
  phase: "DRAGGING"
13561
13546
  }, state, {
13562
13547
  viewport: withMaxScroll3
@@ -13584,7 +13569,7 @@ var reducer$2 = function(state, action2) {
13584
13569
  if (action2.type === "DROP_PENDING") {
13585
13570
  var reason = action2.payload.reason;
13586
13571
  !(state.phase === "COLLECTING") ? process.env.NODE_ENV !== "production" ? invariant$3(false, "Can only move into the DROP_PENDING phase from the COLLECTING phase") : invariant$3() : void 0;
13587
- var newState = _extends$1({
13572
+ var newState = _extends$4({
13588
13573
  phase: "DROP_PENDING"
13589
13574
  }, state, {
13590
13575
  phase: "DROP_PENDING",
@@ -13932,7 +13917,7 @@ var getDropImpact = function(_ref) {
13932
13917
  didDropInsideDroppable: true
13933
13918
  };
13934
13919
  }
13935
- var withoutMovement = _extends$1({}, lastImpact, {
13920
+ var withoutMovement = _extends$4({}, lastImpact, {
13936
13921
  displaced: emptyGroups
13937
13922
  });
13938
13923
  return {
@@ -14269,7 +14254,7 @@ var getPublisher = function(getResponders, announce) {
14269
14254
  if (!hasCriticalChanged && !hasLocationChanged && !hasGroupingChanged) {
14270
14255
  return;
14271
14256
  }
14272
- var data = _extends$1({}, getDragStart(critical, dragging.mode), {
14257
+ var data = _extends$4({}, getDragStart(critical, dragging.mode), {
14273
14258
  combine: combine2,
14274
14259
  destination: location
14275
14260
  });
@@ -14294,7 +14279,7 @@ var getPublisher = function(getResponders, announce) {
14294
14279
  if (!dragging) {
14295
14280
  return;
14296
14281
  }
14297
- var result = _extends$1({}, getDragStart(dragging.lastCritical, dragging.mode), {
14282
+ var result = _extends$4({}, getDragStart(dragging.lastCritical, dragging.mode), {
14298
14283
  combine: null,
14299
14284
  destination: null,
14300
14285
  reason: "CANCEL"
@@ -15714,7 +15699,7 @@ function useAnnouncer(contextId) {
15714
15699
  el2.id = id2;
15715
15700
  el2.setAttribute("aria-live", "assertive");
15716
15701
  el2.setAttribute("aria-atomic", "true");
15717
- _extends$1(el2.style, visuallyHidden);
15702
+ _extends$4(el2.style, visuallyHidden);
15718
15703
  getBodyElement().appendChild(el2);
15719
15704
  return function cleanup() {
15720
15705
  setTimeout(function remove2() {
@@ -16761,7 +16746,7 @@ function tryStart(_ref3) {
16761
16746
  reason
16762
16747
  }));
16763
16748
  }
16764
- return _extends$1({
16749
+ return _extends$4({
16765
16750
  isActive: function isActive() {
16766
16751
  return _isActive({
16767
16752
  expected: "DRAGGING",
@@ -16800,7 +16785,7 @@ function tryStart(_ref3) {
16800
16785
  move: move$1
16801
16786
  }
16802
16787
  });
16803
- return _extends$1({}, api, {
16788
+ return _extends$4({}, api, {
16804
16789
  move: move$1
16805
16790
  });
16806
16791
  }
@@ -16975,7 +16960,7 @@ function App(props) {
16975
16960
  return createDimensionMarshal(registry, marshalCallbacks);
16976
16961
  }, [registry, marshalCallbacks]);
16977
16962
  var autoScroller = useMemo(function() {
16978
- return createAutoScroller(_extends$1({
16963
+ return createAutoScroller(_extends$4({
16979
16964
  scrollWindow,
16980
16965
  scrollDroppable: dimensionMarshal.scrollDroppable
16981
16966
  }, bindActionCreators$1({
@@ -18109,7 +18094,7 @@ function PublicDraggable(props) {
18109
18094
  var isEnabled = typeof props.isDragDisabled === "boolean" ? !props.isDragDisabled : true;
18110
18095
  var canDragInteractiveElements = Boolean(props.disableInteractiveElementBlocking);
18111
18096
  var shouldRespectForcePress = Boolean(props.shouldRespectForcePress);
18112
- return React__default.createElement(PrivateDraggable, _extends$1({}, props, {
18097
+ return React__default.createElement(PrivateDraggable, _extends$4({}, props, {
18113
18098
  isClone: false,
18114
18099
  isEnabled,
18115
18100
  canDragInteractiveElements,
@@ -18228,7 +18213,7 @@ var makeMapStateToProps$1 = function makeMapStateToProps3() {
18228
18213
  },
18229
18214
  useClone: null
18230
18215
  };
18231
- var idleWithoutAnimation = _extends$1({}, idleWithAnimation, {
18216
+ var idleWithoutAnimation = _extends$4({}, idleWithAnimation, {
18232
18217
  shouldAnimatePlaceholder: false
18233
18218
  });
18234
18219
  var getDraggableRubric = memoizeOne(function(descriptor) {
@@ -20314,7 +20299,7 @@ function createListComponent(_ref) {
20314
20299
  className,
20315
20300
  onScroll,
20316
20301
  ref: this._outerRefSetter,
20317
- style: _extends$1({
20302
+ style: _extends$4({
20318
20303
  position: "relative",
20319
20304
  height: height2,
20320
20305
  width: width2,
@@ -52436,6 +52421,7 @@ var interopRequireDefault = { exports: {} };
52436
52421
  module.exports = _interopRequireDefault2, module.exports.__esModule = true, module.exports["default"] = module.exports;
52437
52422
  })(interopRequireDefault);
52438
52423
  var interopRequireDefaultExports = interopRequireDefault.exports;
52424
+ const require$$2 = /* @__PURE__ */ getAugmentedNamespace(_extends$5);
52439
52425
  const richTextToolbar = "_richTextToolbar_1gbkk_1";
52440
52426
  const richTextToolbarContainer = "_richTextToolbarContainer_1gbkk_5";
52441
52427
  const styles$g = {
@@ -53715,7 +53701,7 @@ var Handle$2 = /* @__PURE__ */ React$4.forwardRef(function(props, ref2) {
53715
53701
  }
53716
53702
  };
53717
53703
  var positionStyle = getDirectionStyle(direction, value, min, max);
53718
- var handleNode = /* @__PURE__ */ React$4.createElement("div", _extends$1({
53704
+ var handleNode = /* @__PURE__ */ React$4.createElement("div", _extends$4({
53719
53705
  ref: ref2,
53720
53706
  className: cx$2(handlePrefixCls, (_classNames = {}, _defineProperty$7(_classNames, "".concat(handlePrefixCls, "-").concat(valueIndex + 1), range2), _defineProperty$7(_classNames, "".concat(handlePrefixCls, "-dragging"), dragging), _classNames)),
53721
53707
  style: _objectSpread2$1(_objectSpread2$1({}, positionStyle), style2),
@@ -53759,7 +53745,7 @@ var Handles = /* @__PURE__ */ React$4.forwardRef(function(props, ref2) {
53759
53745
  };
53760
53746
  });
53761
53747
  return /* @__PURE__ */ React$4.createElement(React$4.Fragment, null, values2.map(function(value, index2) {
53762
- return /* @__PURE__ */ React$4.createElement(Handle$2, _extends$1({
53748
+ return /* @__PURE__ */ React$4.createElement(Handle$2, _extends$4({
53763
53749
  ref: function ref3(node2) {
53764
53750
  if (!node2) {
53765
53751
  delete handlesRef.current[index2];
@@ -55129,7 +55115,7 @@ Object.defineProperty(Handle$1, "__esModule", {
55129
55115
  value: true
55130
55116
  });
55131
55117
  var default_1 = Handle$1.default = void 0;
55132
- var _extends2 = _interopRequireDefault(require_extends());
55118
+ var _extends2 = _interopRequireDefault(require$$2);
55133
55119
  var _objectSpread2 = _interopRequireDefault(requireObjectSpread2());
55134
55120
  var _defineProperty2 = _interopRequireDefault(requireDefineProperty());
55135
55121
  var _objectWithoutProperties2 = _interopRequireDefault(requireObjectWithoutProperties());
@@ -55710,6 +55696,12 @@ const InputCell = ({
55710
55696
  }
55711
55697
  );
55712
55698
  };
55699
+ const COSMETIC_ROUNDING_DEFAULT_PRECISION = 14;
55700
+ const roundNumberCosmetic = (value) => {
55701
+ const isScientific = isScientificStringNum(value);
55702
+ return !isScientific ? roundToPrecision(value, COSMETIC_ROUNDING_DEFAULT_PRECISION) : value;
55703
+ };
55704
+ const safeToString = (value) => String(toString$1(value));
55713
55705
  const getStringName$1 = (name2) => {
55714
55706
  if (!name2) return "";
55715
55707
  if (typeof name2 === "string") {
@@ -55743,68 +55735,65 @@ const NumberInput = ({
55743
55735
  allowEmpty = false,
55744
55736
  isInTable: isInTable2,
55745
55737
  groupOrder,
55738
+ enableCosmeticRounding = true,
55746
55739
  enableDisplayRounding = false,
55747
55740
  roundDisplayValue,
55748
55741
  disableInternalErrorValidationMessages = false
55749
55742
  }) => {
55750
55743
  const inputRef = useRef(null);
55751
- const [displayValue, setDisplayValue] = useState(value);
55752
- const [validationError, setValidationError] = useState(null);
55744
+ const [displayValue, setDisplayValue] = useState(safeToString(value));
55753
55745
  const [focus2, setFocus] = useState(false);
55746
+ const [pristine, setPristine] = useState(true);
55754
55747
  const stringName = getStringName$1(name2);
55755
55748
  const validateInputValue = (value2) => {
55756
- let validation = validateNumber(value2);
55749
+ const validation = validateNumber(value2);
55757
55750
  if (allowEmpty && value2 === "" || validation.valid) {
55758
55751
  return { ...validation, valid: true, errors: void 0 };
55759
55752
  } else {
55760
55753
  return validation;
55761
55754
  }
55762
55755
  };
55756
+ const { valid, errors: errors2 } = validateInputValue(displayValue);
55757
+ const firstError = errors2 && errors2.length && !disableInternalErrorValidationMessages ? errors2[0] : null;
55763
55758
  useEffect(() => {
55764
- const { valid, errors: errors2 } = validateInputValue(value);
55765
- setDisplayValue(value);
55766
- if (valid) {
55767
- setValidationError(null);
55768
- validationCallback(stringName, null);
55769
- } else {
55770
- const firstError = errors2 && errors2.length ? errors2[0] : null;
55771
- setValidationError(firstError);
55759
+ setDisplayValue(safeToString(value));
55760
+ setPristine(true);
55761
+ }, [value, enableCosmeticRounding, enableDisplayRounding]);
55762
+ useEffect(() => {
55763
+ if (!focus2 && !valid) {
55772
55764
  validationCallback(stringName, firstError);
55765
+ } else {
55766
+ validationCallback(stringName, null);
55773
55767
  }
55774
- }, [value, error2]);
55775
- const onSetValue = (evt) => {
55776
- const input2 = evt.target;
55777
- const { value: value2 } = input2;
55778
- const inputValue = cleanNumStr(
55779
- value2.replaceAll(" ", "").replaceAll("|", "")
55780
- );
55781
- const { valid, errors: errors2 } = validateInputValue(inputValue);
55782
- if (valid) {
55783
- const newEvent = {
55768
+ }, [focus2, valid, error2]);
55769
+ const onChangeValue = (evt) => {
55770
+ if (valid && !pristine) {
55771
+ const event = {
55784
55772
  ...evt,
55785
55773
  target: {
55786
55774
  ...evt.target,
55787
- value: inputValue,
55775
+ value: stripLeadingZeros(safeToString(displayValue)),
55788
55776
  name: stringName
55789
55777
  }
55790
55778
  };
55791
- onChange(newEvent);
55792
- setDisplayValue(inputValue);
55793
- setValidationError(null);
55794
- validationCallback(stringName, null);
55795
- } else {
55796
- setDisplayValue(inputValue);
55797
- const firstError = errors2 && errors2.length ? errors2[0] : null;
55798
- setValidationError(firstError);
55799
- validationCallback(stringName, firstError);
55779
+ onChange(event);
55800
55780
  }
55801
55781
  };
55782
+ const onSetValue = (evt) => {
55783
+ const input2 = evt.target;
55784
+ const { value: value2 } = input2;
55785
+ const inputValue = cleanNumStr(
55786
+ value2.replaceAll(" ", "").replaceAll("|", "")
55787
+ );
55788
+ setDisplayValue(inputValue);
55789
+ setPristine(false);
55790
+ };
55802
55791
  useEffect(() => {
55803
55792
  if (inputRef && (inputRef == null ? void 0 : inputRef.current) && enableDisplayRounding && focus2) {
55804
55793
  const textInput = inputRef.current;
55805
55794
  if (textInput) {
55806
55795
  setTimeout(() => {
55807
- const { length: length2 } = String(displayValue);
55796
+ const { length: length2 } = safeToString(displayValue);
55808
55797
  textInput.setSelectionRange(length2, length2);
55809
55798
  }, 0);
55810
55799
  }
@@ -55816,33 +55805,48 @@ const NumberInput = ({
55816
55805
  };
55817
55806
  const onInputBlur = (evt) => {
55818
55807
  setFocus(false);
55808
+ onChangeValue(evt);
55819
55809
  onBlur(evt);
55820
55810
  };
55821
- const roundedDisplayValue = !focus2 && enableDisplayRounding ? roundDisplayValue ? roundDisplayValue(displayValue) : roundToFixed(displayValue, 2) : displayValue;
55811
+ const shouldDisplayRound = enableDisplayRounding && !focus2 && valid;
55812
+ const valueWithDisplayRounding = shouldDisplayRound ? roundDisplayValue ? safeToString(roundDisplayValue(displayValue)) : roundToFixed(displayValue, 2) : displayValue;
55813
+ const displayValueEndsWithZero = !!(valueWithDisplayRounding == null ? void 0 : valueWithDisplayRounding.endsWith("0"));
55814
+ const shouldCosmeticallyRound = enableCosmeticRounding && // only when prop is enabled
55815
+ valueWithDisplayRounding && // not when empty typed value
55816
+ !displayValueEndsWithZero && // not when intentionally trying to type trailing zeros as interim values (OW-17109)
55817
+ valid;
55818
+ const valueWithCosmeticRounding = shouldCosmeticallyRound ? roundNumberCosmetic(valueWithDisplayRounding) : valueWithDisplayRounding;
55822
55819
  return /* @__PURE__ */ jsx(
55823
- Input$1,
55820
+ KeyboardEventHandler,
55824
55821
  {
55825
- type: "text",
55826
- name: stringName,
55827
- testId,
55828
- disabled: disabled2,
55829
- placeholder: placeholder3,
55830
- value: roundedDisplayValue,
55831
- onChange: onSetValue,
55832
- onFocus: onInputFocus,
55833
- onBlur: onInputBlur,
55834
- error: error2 || validationError,
55835
- warning: warning2,
55836
- right: !left2,
55837
- small: small2,
55838
- width: width2,
55839
- isInTable: isInTable2,
55840
- groupOrder,
55841
- tabIndex,
55842
- tooltip: tooltip2,
55843
- ref: inputRef
55844
- },
55845
- stringName
55822
+ handleKeys: [EventKey.ENTER],
55823
+ onKeyEvent: (_key, evt) => onChangeValue(evt),
55824
+ children: /* @__PURE__ */ jsx(
55825
+ Input$1,
55826
+ {
55827
+ type: "text",
55828
+ name: stringName,
55829
+ testId,
55830
+ disabled: disabled2,
55831
+ placeholder: placeholder3,
55832
+ value: valueWithCosmeticRounding,
55833
+ onChange: onSetValue,
55834
+ onFocus: onInputFocus,
55835
+ onBlur: onInputBlur,
55836
+ error: !focus2 && (firstError || error2),
55837
+ warning: warning2,
55838
+ right: !left2,
55839
+ small: small2,
55840
+ width: width2,
55841
+ isInTable: isInTable2,
55842
+ groupOrder,
55843
+ tabIndex,
55844
+ tooltip: tooltip2,
55845
+ ref: inputRef
55846
+ },
55847
+ stringName
55848
+ )
55849
+ }
55846
55850
  );
55847
55851
  };
55848
55852
  const NumberInputCell = ({ cell: cell2, testId }) => {
@@ -55868,6 +55872,7 @@ const NumberInputCell = ({ cell: cell2, testId }) => {
55868
55872
  tooltip: cell2.tooltip,
55869
55873
  validationCallback: cell2.validationCallback,
55870
55874
  allowEmpty: cell2.allowEmpty,
55875
+ enableCosmeticRounding: cell2.enableCosmeticRounding,
55871
55876
  enableDisplayRounding: cell2.enableDisplayRounding,
55872
55877
  roundDisplayValue: cell2.roundDisplayValue
55873
55878
  }
@@ -70297,7 +70302,10 @@ const UnitInput = ({
70297
70302
  validationCallback = () => ({ name: "", error: null }),
70298
70303
  disabledValidation = false,
70299
70304
  allowEmpty = false,
70300
- autoValue
70305
+ autoValue,
70306
+ convertBackToStorageUnit = false,
70307
+ enableCosmeticRounding = true,
70308
+ enableDisplayRounding = false
70301
70309
  }) => {
70302
70310
  const context2 = useUnitContext();
70303
70311
  const runAfterUpdate = useRunAfterUpdate();
@@ -70362,9 +70370,10 @@ const UnitInput = ({
70362
70370
  const input2 = evt.target;
70363
70371
  const { value: inputValue, selectionStart: currentCursorPosition } = input2;
70364
70372
  const newValue = withUnit(inputValue, (displayLayer == null ? void 0 : displayLayer.unit) || "");
70373
+ const returnValue = convertBackToStorageUnit ? withUnit(convertAndGetValue(newValue, propUnit), propUnit) : newValue;
70365
70374
  onChange({
70366
70375
  target: {
70367
- value: newValue,
70376
+ value: returnValue,
70368
70377
  name: stringName2
70369
70378
  }
70370
70379
  });
@@ -70525,6 +70534,8 @@ const UnitInput = ({
70525
70534
  left: left2,
70526
70535
  allowEmpty,
70527
70536
  validationCallback: (_name, error22) => validationCallback(stringName, error22),
70537
+ enableCosmeticRounding,
70538
+ enableDisplayRounding,
70528
70539
  groupOrder: predefinedOptions ? "middle" : "first",
70529
70540
  disableInternalErrorValidationMessages
70530
70541
  },
@@ -70544,7 +70555,7 @@ const UnitInput = ({
70544
70555
  sections: alternativeUnits.map(([value2, altUnit, label2]) => {
70545
70556
  const displayUnit = label2 || altUnit || "";
70546
70557
  const safeValue = !isNaN(Number(value2)) ? value2 : "";
70547
- const displayValue = safeValue;
70558
+ const displayValue = enableCosmeticRounding ? roundNumberCosmetic(safeValue) : safeValue;
70548
70559
  return {
70549
70560
  type: "Option",
70550
70561
  label: displayValue,
@@ -70615,22 +70626,12 @@ const convertVisibleRows = ({
70615
70626
  const storageUnit = storageUnits[unitKey];
70616
70627
  const unitChanged = selectedUnit !== storageUnit;
70617
70628
  const convertedValue = unitChanged ? convertAndGetValue(value, selectedUnit, storageUnit) : cell2.value;
70618
- const isScientific = isScientificStringNum(value);
70619
- const displayValue = enableCosmeticRounding && (unitChanged || !isScientific) ? (
70620
- /*
70621
- Optionally do Excel-style "cosmetic rounding" of display values (only if enableCosmeticRounding prop on)
70622
- This means rounding to slightly less precision than the underlying floating-point number type, to
70623
- resolve floating-point "rounding noise" associated with storing values in one unit but converting
70624
- and displaying them in another unit. This solution was evaluated by Tools Team in relation to
70625
- tickets OW-10614 and OW-15745.
70626
- */
70627
- roundToPrecision(convertedValue, 14)
70628
- ) : convertedValue;
70629
- const formattedDisplayValue = formatDisplayValue ? formatDisplayValue(displayValue) : displayValue;
70629
+ const formattedDisplayValue = formatDisplayValue ? formatDisplayValue(convertedValue) : convertedValue;
70630
70630
  return {
70631
70631
  ...cell2,
70632
70632
  value: formattedDisplayValue,
70633
- enableCosmeticRounding,
70633
+ enableCosmeticRounding: enableCosmeticRounding && unitChanged,
70634
+ //todo: why did we need to check unitChanged here? (original rationale)
70634
70635
  enableDisplayRounding,
70635
70636
  roundDisplayValue,
70636
70637
  onChange: (evt) => {