@oliasoft-open-source/react-ui-library 4.13.0-beta-11 → 4.13.0-beta-12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +97 -112
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -199,27 +199,21 @@ function _objectWithoutPropertiesLoose$5(r2, e2) {
|
|
|
199
199
|
}
|
|
200
200
|
return t;
|
|
201
201
|
}
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
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
|
-
|
|
218
|
-
}
|
|
219
|
-
return _extends$6.exports;
|
|
208
|
+
return n2;
|
|
209
|
+
}, _extends$4.apply(null, arguments);
|
|
220
210
|
}
|
|
221
|
-
|
|
222
|
-
|
|
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$
|
|
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$
|
|
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$
|
|
2245
|
-
_extends$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
3605
|
+
return createElement("svg", _extends$3({
|
|
3612
3606
|
ref: ref2
|
|
3613
3607
|
}, rest, {
|
|
3614
|
-
style: _extends$
|
|
3608
|
+
style: _extends$3({}, style2, {
|
|
3615
3609
|
transform: "translate" + (side.isHorizontal ? "Y" : "X") + "(-50%)"
|
|
3616
3610
|
}),
|
|
3617
3611
|
width: maxSize,
|
|
@@ -8257,8 +8251,8 @@ function _interopRequireWildcard$2(obj, nodeInterop) {
|
|
|
8257
8251
|
}
|
|
8258
8252
|
return newObj;
|
|
8259
8253
|
}
|
|
8260
|
-
function _extends$
|
|
8261
|
-
_extends$
|
|
8254
|
+
function _extends$2() {
|
|
8255
|
+
_extends$2 = Object.assign ? Object.assign.bind() : function(target) {
|
|
8262
8256
|
for (var i = 1; i < arguments.length; i++) {
|
|
8263
8257
|
var source = arguments[i];
|
|
8264
8258
|
for (var key2 in source) {
|
|
@@ -8269,7 +8263,7 @@ function _extends$3() {
|
|
|
8269
8263
|
}
|
|
8270
8264
|
return target;
|
|
8271
8265
|
};
|
|
8272
|
-
return _extends$
|
|
8266
|
+
return _extends$2.apply(this, arguments);
|
|
8273
8267
|
}
|
|
8274
8268
|
function _objectWithoutPropertiesLoose$3(source, excluded) {
|
|
8275
8269
|
if (source == null) return {};
|
|
@@ -8474,7 +8468,7 @@ var Resizable$1 = /* @__PURE__ */ function(_React$Component) {
|
|
|
8474
8468
|
children: [].concat(children.props.children, resizeHandles.map(function(handleAxis) {
|
|
8475
8469
|
var _this3$handleRefs$han;
|
|
8476
8470
|
var ref2 = (_this3$handleRefs$han = _this3.handleRefs[handleAxis]) != null ? _this3$handleRefs$han : _this3.handleRefs[handleAxis] = /* @__PURE__ */ React$2.createRef();
|
|
8477
|
-
return /* @__PURE__ */ React$2.createElement(_reactDraggable.DraggableCore, _extends$
|
|
8471
|
+
return /* @__PURE__ */ React$2.createElement(_reactDraggable.DraggableCore, _extends$2({}, draggableOpts, {
|
|
8478
8472
|
nodeRef: ref2,
|
|
8479
8473
|
key: "resizableHandle-" + handleAxis,
|
|
8480
8474
|
onStop: _this3.resizeHandler("onResizeStop", handleAxis),
|
|
@@ -8545,8 +8539,8 @@ function _interopRequireWildcard$1(obj, nodeInterop) {
|
|
|
8545
8539
|
}
|
|
8546
8540
|
return newObj;
|
|
8547
8541
|
}
|
|
8548
|
-
function _extends$
|
|
8549
|
-
_extends$
|
|
8542
|
+
function _extends$1() {
|
|
8543
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function(target) {
|
|
8550
8544
|
for (var i = 1; i < arguments.length; i++) {
|
|
8551
8545
|
var source = arguments[i];
|
|
8552
8546
|
for (var key2 in source) {
|
|
@@ -8557,7 +8551,7 @@ function _extends$2() {
|
|
|
8557
8551
|
}
|
|
8558
8552
|
return target;
|
|
8559
8553
|
};
|
|
8560
|
-
return _extends$
|
|
8554
|
+
return _extends$1.apply(this, arguments);
|
|
8561
8555
|
}
|
|
8562
8556
|
function ownKeys$1(object2, enumerableOnly) {
|
|
8563
8557
|
var keys2 = Object.keys(object2);
|
|
@@ -8688,7 +8682,7 @@ var ResizableBox = /* @__PURE__ */ function(_React$Component) {
|
|
|
8688
8682
|
resizeHandles,
|
|
8689
8683
|
transformScale,
|
|
8690
8684
|
width: this.state.width
|
|
8691
|
-
}, /* @__PURE__ */ React$1.createElement("div", _extends$
|
|
8685
|
+
}, /* @__PURE__ */ React$1.createElement("div", _extends$1({}, props, {
|
|
8692
8686
|
style: _objectSpread$5(_objectSpread$5({}, style2), {}, {
|
|
8693
8687
|
width: this.state.width + "px",
|
|
8694
8688
|
height: this.state.height + "px"
|
|
@@ -9481,15 +9475,6 @@ const InputGroupAddon = ({
|
|
|
9481
9475
|
})();
|
|
9482
9476
|
return /* @__PURE__ */ jsx("span", { className: cx$2(styles$u.addon, order2, small2 ? styles$u.small : ""), children });
|
|
9483
9477
|
};
|
|
9484
|
-
function _extends$1() {
|
|
9485
|
-
return _extends$1 = Object.assign ? Object.assign.bind() : function(n2) {
|
|
9486
|
-
for (var e2 = 1; e2 < arguments.length; e2++) {
|
|
9487
|
-
var t = arguments[e2];
|
|
9488
|
-
for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n2[r2] = t[r2]);
|
|
9489
|
-
}
|
|
9490
|
-
return n2;
|
|
9491
|
-
}, _extends$1.apply(null, arguments);
|
|
9492
|
-
}
|
|
9493
9478
|
function _typeof$2(o) {
|
|
9494
9479
|
"@babel/helpers - typeof";
|
|
9495
9480
|
return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
@@ -10751,7 +10736,7 @@ function connectAdvanced(selectorFactory, _ref) {
|
|
|
10751
10736
|
}
|
|
10752
10737
|
var wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || "Component";
|
|
10753
10738
|
var displayName = getDisplayName(wrappedComponentName);
|
|
10754
|
-
var selectorFactoryOptions = _extends$
|
|
10739
|
+
var selectorFactoryOptions = _extends$4({}, connectOptions, {
|
|
10755
10740
|
getDisplayName,
|
|
10756
10741
|
methodName,
|
|
10757
10742
|
renderCountProp,
|
|
@@ -10796,7 +10781,7 @@ function connectAdvanced(selectorFactory, _ref) {
|
|
|
10796
10781
|
if (didStoreComeFromProps) {
|
|
10797
10782
|
return contextValue;
|
|
10798
10783
|
}
|
|
10799
|
-
return _extends$
|
|
10784
|
+
return _extends$4({}, contextValue, {
|
|
10800
10785
|
subscription
|
|
10801
10786
|
});
|
|
10802
10787
|
}, [didStoreComeFromProps, contextValue, subscription]);
|
|
@@ -10817,7 +10802,7 @@ function connectAdvanced(selectorFactory, _ref) {
|
|
|
10817
10802
|
useIsomorphicLayoutEffectWithArgs(captureWrapperProps, [lastWrapperProps, lastChildProps, renderIsScheduled, wrapperProps, actualChildProps, childPropsFromStoreUpdate, notifyNestedSubs]);
|
|
10818
10803
|
useIsomorphicLayoutEffectWithArgs(subscribeUpdates, [shouldHandleStateChanges, store, subscription, childPropsSelector, lastWrapperProps, lastChildProps, renderIsScheduled, childPropsFromStoreUpdate, notifyNestedSubs, forceComponentUpdateDispatch], [store, subscription, childPropsSelector]);
|
|
10819
10804
|
var renderedWrappedComponent = useMemo$1(function() {
|
|
10820
|
-
return /* @__PURE__ */ React__default.createElement(WrappedComponent, _extends$
|
|
10805
|
+
return /* @__PURE__ */ React__default.createElement(WrappedComponent, _extends$4({}, actualChildProps, {
|
|
10821
10806
|
ref: reactReduxForwardedRef
|
|
10822
10807
|
}));
|
|
10823
10808
|
}, [reactReduxForwardedRef, WrappedComponent, actualChildProps]);
|
|
@@ -10836,7 +10821,7 @@ function connectAdvanced(selectorFactory, _ref) {
|
|
|
10836
10821
|
Connect.displayName = ConnectFunction.displayName = displayName;
|
|
10837
10822
|
if (forwardRef2) {
|
|
10838
10823
|
var forwarded = React__default.forwardRef(function forwardConnectRef(props, ref2) {
|
|
10839
|
-
return /* @__PURE__ */ React__default.createElement(Connect, _extends$
|
|
10824
|
+
return /* @__PURE__ */ React__default.createElement(Connect, _extends$4({}, props, {
|
|
10840
10825
|
reactReduxForwardedRef: ref2
|
|
10841
10826
|
}));
|
|
10842
10827
|
});
|
|
@@ -10969,7 +10954,7 @@ function whenMapStateToPropsIsMissing(mapStateToProps) {
|
|
|
10969
10954
|
}
|
|
10970
10955
|
const defaultMapStateToPropsFactories = [whenMapStateToPropsIsFunction, whenMapStateToPropsIsMissing];
|
|
10971
10956
|
function defaultMergeProps(stateProps, dispatchProps, ownProps) {
|
|
10972
|
-
return _extends$
|
|
10957
|
+
return _extends$4({}, ownProps, stateProps, dispatchProps);
|
|
10973
10958
|
}
|
|
10974
10959
|
function wrapMergePropsFunc(mergeProps) {
|
|
10975
10960
|
return function initMergePropsProxy(dispatch, _ref) {
|
|
@@ -11102,7 +11087,7 @@ function createConnect(_temp) {
|
|
|
11102
11087
|
var initMapStateToProps = match(mapStateToProps, mapStateToPropsFactories, "mapStateToProps");
|
|
11103
11088
|
var initMapDispatchToProps = match(mapDispatchToProps2, mapDispatchToPropsFactories, "mapDispatchToProps");
|
|
11104
11089
|
var initMergeProps = match(mergeProps, mergePropsFactories, "mergeProps");
|
|
11105
|
-
return connectHOC(selectorFactory, _extends$
|
|
11090
|
+
return connectHOC(selectorFactory, _extends$4({
|
|
11106
11091
|
// used in error messages
|
|
11107
11092
|
methodName: "connect",
|
|
11108
11093
|
// used to compute Connect's displayName from the wrapped component's displayName.
|
|
@@ -11401,7 +11386,7 @@ var error$1 = log.bind(null, "error");
|
|
|
11401
11386
|
function noop$1() {
|
|
11402
11387
|
}
|
|
11403
11388
|
function getOptions(shared2, fromBinding) {
|
|
11404
|
-
return _extends$
|
|
11389
|
+
return _extends$4({}, shared2, {}, fromBinding);
|
|
11405
11390
|
}
|
|
11406
11391
|
function bindEvents(el2, bindings, sharedOptions) {
|
|
11407
11392
|
var unbindings = bindings.map(function(binding) {
|
|
@@ -11647,7 +11632,7 @@ var scroll$2 = function scroll(target, frame2) {
|
|
|
11647
11632
|
var increase = function increase2(target, axis, withPlaceholder) {
|
|
11648
11633
|
if (withPlaceholder && withPlaceholder.increasedBy) {
|
|
11649
11634
|
var _extends22;
|
|
11650
|
-
return _extends$
|
|
11635
|
+
return _extends$4({}, target, (_extends22 = {}, _extends22[axis.end] = target[axis.end] + withPlaceholder.increasedBy[axis.line], _extends22));
|
|
11651
11636
|
}
|
|
11652
11637
|
return target;
|
|
11653
11638
|
};
|
|
@@ -11673,7 +11658,7 @@ var scrollDroppable = function(droppable2, newScroll) {
|
|
|
11673
11658
|
var scrollable = droppable2.frame;
|
|
11674
11659
|
var scrollDiff = subtract$1(newScroll, scrollable.scroll.initial);
|
|
11675
11660
|
var scrollDisplacement = negate(scrollDiff);
|
|
11676
|
-
var frame2 = _extends$
|
|
11661
|
+
var frame2 = _extends$4({}, scrollable, {
|
|
11677
11662
|
scroll: {
|
|
11678
11663
|
initial: scrollable.scroll.initial,
|
|
11679
11664
|
current: newScroll,
|
|
@@ -11690,7 +11675,7 @@ var scrollDroppable = function(droppable2, newScroll) {
|
|
|
11690
11675
|
axis: droppable2.axis,
|
|
11691
11676
|
frame: frame2
|
|
11692
11677
|
});
|
|
11693
|
-
var result = _extends$
|
|
11678
|
+
var result = _extends$4({}, droppable2, {
|
|
11694
11679
|
frame: frame2,
|
|
11695
11680
|
subject
|
|
11696
11681
|
});
|
|
@@ -11794,7 +11779,7 @@ var moveToNextCombine = function(_ref) {
|
|
|
11794
11779
|
droppableId: destination.descriptor.id
|
|
11795
11780
|
}
|
|
11796
11781
|
};
|
|
11797
|
-
return _extends$
|
|
11782
|
+
return _extends$4({}, previousImpact, {
|
|
11798
11783
|
at: at2
|
|
11799
11784
|
});
|
|
11800
11785
|
}
|
|
@@ -11929,17 +11914,17 @@ var isVisible = function isVisible2(_ref) {
|
|
|
11929
11914
|
return isVisibleInDroppable(displacedTarget, destination, isVisibleThroughFrameFn) && isVisibleInViewport(displacedTarget, viewport, isVisibleThroughFrameFn);
|
|
11930
11915
|
};
|
|
11931
11916
|
var isPartiallyVisible = function isPartiallyVisible2(args) {
|
|
11932
|
-
return isVisible(_extends$
|
|
11917
|
+
return isVisible(_extends$4({}, args, {
|
|
11933
11918
|
isVisibleThroughFrameFn: isPartiallyVisibleThroughFrame
|
|
11934
11919
|
}));
|
|
11935
11920
|
};
|
|
11936
11921
|
var isTotallyVisible = function isTotallyVisible2(args) {
|
|
11937
|
-
return isVisible(_extends$
|
|
11922
|
+
return isVisible(_extends$4({}, args, {
|
|
11938
11923
|
isVisibleThroughFrameFn: isTotallyVisibleThroughFrame
|
|
11939
11924
|
}));
|
|
11940
11925
|
};
|
|
11941
11926
|
var isTotallyVisibleOnAxis = function isTotallyVisibleOnAxis2(args) {
|
|
11942
|
-
return isVisible(_extends$
|
|
11927
|
+
return isVisible(_extends$4({}, args, {
|
|
11943
11928
|
isVisibleThroughFrameFn: isTotallyVisibleThroughFrameOnAxis(args.destination.axis)
|
|
11944
11929
|
}));
|
|
11945
11930
|
};
|
|
@@ -12349,7 +12334,7 @@ var speculativelyIncrease = function(_ref) {
|
|
|
12349
12334
|
}
|
|
12350
12335
|
invisible[id2] = true;
|
|
12351
12336
|
});
|
|
12352
|
-
var newImpact = _extends$
|
|
12337
|
+
var newImpact = _extends$4({}, impact, {
|
|
12353
12338
|
displaced: {
|
|
12354
12339
|
all: last.all,
|
|
12355
12340
|
invisible,
|
|
@@ -12570,8 +12555,8 @@ var getRequiredGrowthForPlaceholder = function getRequiredGrowthForPlaceholder2(
|
|
|
12570
12555
|
return patch(axis.line, needsToGrowBy);
|
|
12571
12556
|
};
|
|
12572
12557
|
var withMaxScroll = function withMaxScroll2(frame2, max) {
|
|
12573
|
-
return _extends$
|
|
12574
|
-
scroll: _extends$
|
|
12558
|
+
return _extends$4({}, frame2, {
|
|
12559
|
+
scroll: _extends$4({}, frame2.scroll, {
|
|
12575
12560
|
max
|
|
12576
12561
|
})
|
|
12577
12562
|
});
|
|
@@ -12594,7 +12579,7 @@ var addPlaceholder = function addPlaceholder2(droppable2, draggable2, draggables
|
|
|
12594
12579
|
axis: droppable2.axis,
|
|
12595
12580
|
frame: droppable2.frame
|
|
12596
12581
|
});
|
|
12597
|
-
return _extends$
|
|
12582
|
+
return _extends$4({}, droppable2, {
|
|
12598
12583
|
subject: _subject
|
|
12599
12584
|
});
|
|
12600
12585
|
}
|
|
@@ -12606,7 +12591,7 @@ var addPlaceholder = function addPlaceholder2(droppable2, draggable2, draggables
|
|
|
12606
12591
|
axis: droppable2.axis,
|
|
12607
12592
|
frame: newFrame
|
|
12608
12593
|
});
|
|
12609
|
-
return _extends$
|
|
12594
|
+
return _extends$4({}, droppable2, {
|
|
12610
12595
|
subject,
|
|
12611
12596
|
frame: newFrame
|
|
12612
12597
|
});
|
|
@@ -12622,7 +12607,7 @@ var removePlaceholder = function removePlaceholder2(droppable2) {
|
|
|
12622
12607
|
frame: null,
|
|
12623
12608
|
withPlaceholder: null
|
|
12624
12609
|
});
|
|
12625
|
-
return _extends$
|
|
12610
|
+
return _extends$4({}, droppable2, {
|
|
12626
12611
|
subject: _subject2
|
|
12627
12612
|
});
|
|
12628
12613
|
}
|
|
@@ -12635,7 +12620,7 @@ var removePlaceholder = function removePlaceholder2(droppable2) {
|
|
|
12635
12620
|
frame: newFrame,
|
|
12636
12621
|
withPlaceholder: null
|
|
12637
12622
|
});
|
|
12638
|
-
return _extends$
|
|
12623
|
+
return _extends$4({}, droppable2, {
|
|
12639
12624
|
subject,
|
|
12640
12625
|
frame: newFrame
|
|
12641
12626
|
});
|
|
@@ -13020,7 +13005,7 @@ var getDragImpact = function(_ref) {
|
|
|
13020
13005
|
};
|
|
13021
13006
|
var patchDroppableMap = function(droppables, updated) {
|
|
13022
13007
|
var _extends22;
|
|
13023
|
-
return _extends$
|
|
13008
|
+
return _extends$4({}, droppables, (_extends22 = {}, _extends22[updated.descriptor.id] = updated, _extends22));
|
|
13024
13009
|
};
|
|
13025
13010
|
var clearUnusedPlaceholder = function clearUnusedPlaceholder2(_ref) {
|
|
13026
13011
|
var previousImpact = _ref.previousImpact, impact = _ref.impact, droppables = _ref.droppables;
|
|
@@ -13081,7 +13066,7 @@ var update = function(_ref) {
|
|
|
13081
13066
|
page: page2
|
|
13082
13067
|
};
|
|
13083
13068
|
if (state.phase === "COLLECTING") {
|
|
13084
|
-
return _extends$
|
|
13069
|
+
return _extends$4({
|
|
13085
13070
|
phase: "COLLECTING"
|
|
13086
13071
|
}, state, {
|
|
13087
13072
|
dimensions,
|
|
@@ -13106,7 +13091,7 @@ var update = function(_ref) {
|
|
|
13106
13091
|
draggables: dimensions.draggables,
|
|
13107
13092
|
droppables: dimensions.droppables
|
|
13108
13093
|
});
|
|
13109
|
-
var result = _extends$
|
|
13094
|
+
var result = _extends$4({}, state, {
|
|
13110
13095
|
current,
|
|
13111
13096
|
dimensions: {
|
|
13112
13097
|
draggables: dimensions.draggables,
|
|
@@ -13136,7 +13121,7 @@ var recompute = function(_ref) {
|
|
|
13136
13121
|
forceShouldAnimate,
|
|
13137
13122
|
last
|
|
13138
13123
|
});
|
|
13139
|
-
return _extends$
|
|
13124
|
+
return _extends$4({}, impact, {
|
|
13140
13125
|
displaced
|
|
13141
13126
|
});
|
|
13142
13127
|
};
|
|
@@ -13255,8 +13240,8 @@ var offsetDraggable = function(_ref) {
|
|
|
13255
13240
|
var draggable2 = _ref.draggable, offset$1 = _ref.offset, initialWindowScroll = _ref.initialWindowScroll;
|
|
13256
13241
|
var client = offset(draggable2.client, offset$1);
|
|
13257
13242
|
var page2 = withScroll(client, initialWindowScroll);
|
|
13258
|
-
var moved = _extends$
|
|
13259
|
-
placeholder: _extends$
|
|
13243
|
+
var moved = _extends$4({}, draggable2, {
|
|
13244
|
+
placeholder: _extends$4({}, draggable2.placeholder, {
|
|
13260
13245
|
client
|
|
13261
13246
|
}),
|
|
13262
13247
|
client,
|
|
@@ -13294,13 +13279,13 @@ var publishWhileDraggingInVirtual = function(_ref) {
|
|
|
13294
13279
|
var scrolled = scrollDroppable(existing, update2.scroll);
|
|
13295
13280
|
return scrolled;
|
|
13296
13281
|
});
|
|
13297
|
-
var droppables = _extends$
|
|
13282
|
+
var droppables = _extends$4({}, state.dimensions.droppables, {}, toDroppableMap(withScrollChange));
|
|
13298
13283
|
var updatedAdditions = toDraggableMap(adjustAdditionsForScrollChanges({
|
|
13299
13284
|
additions: published.additions,
|
|
13300
13285
|
updatedDroppables: droppables,
|
|
13301
13286
|
viewport: state.viewport
|
|
13302
13287
|
}));
|
|
13303
|
-
var draggables = _extends$
|
|
13288
|
+
var draggables = _extends$4({}, state.dimensions.draggables, {}, updatedAdditions);
|
|
13304
13289
|
published.removals.forEach(function(id2) {
|
|
13305
13290
|
delete draggables[id2];
|
|
13306
13291
|
});
|
|
@@ -13329,7 +13314,7 @@ var publishWhileDraggingInVirtual = function(_ref) {
|
|
|
13329
13314
|
afterCritical
|
|
13330
13315
|
});
|
|
13331
13316
|
finish();
|
|
13332
|
-
var draggingState = _extends$
|
|
13317
|
+
var draggingState = _extends$4({
|
|
13333
13318
|
phase: "DRAGGING"
|
|
13334
13319
|
}, state, {
|
|
13335
13320
|
phase: "DRAGGING",
|
|
@@ -13342,7 +13327,7 @@ var publishWhileDraggingInVirtual = function(_ref) {
|
|
|
13342
13327
|
if (state.phase === "COLLECTING") {
|
|
13343
13328
|
return draggingState;
|
|
13344
13329
|
}
|
|
13345
|
-
var dropPending3 = _extends$
|
|
13330
|
+
var dropPending3 = _extends$4({
|
|
13346
13331
|
phase: "DROP_PENDING"
|
|
13347
13332
|
}, draggingState, {
|
|
13348
13333
|
phase: "DROP_PENDING",
|
|
@@ -13369,7 +13354,7 @@ var postDroppableChange = function postDroppableChange2(state, updated, isEnable
|
|
|
13369
13354
|
};
|
|
13370
13355
|
function removeScrollJumpRequest(state) {
|
|
13371
13356
|
if (state.isDragging && state.movementMode === "SNAP") {
|
|
13372
|
-
return _extends$
|
|
13357
|
+
return _extends$4({
|
|
13373
13358
|
phase: "DRAGGING"
|
|
13374
13359
|
}, state, {
|
|
13375
13360
|
scrollJumpRequest: null
|
|
@@ -13387,7 +13372,7 @@ var reducer$2 = function(state, action2) {
|
|
|
13387
13372
|
state = idle;
|
|
13388
13373
|
}
|
|
13389
13374
|
if (action2.type === "FLUSH") {
|
|
13390
|
-
return _extends$
|
|
13375
|
+
return _extends$4({}, idle, {
|
|
13391
13376
|
shouldFlush: true
|
|
13392
13377
|
});
|
|
13393
13378
|
}
|
|
@@ -13441,7 +13426,7 @@ var reducer$2 = function(state, action2) {
|
|
|
13441
13426
|
return state;
|
|
13442
13427
|
}
|
|
13443
13428
|
!(state.phase === "DRAGGING") ? process.env.NODE_ENV !== "production" ? invariant$3(false, "Collection cannot start from phase " + state.phase) : invariant$3() : void 0;
|
|
13444
|
-
var _result = _extends$
|
|
13429
|
+
var _result = _extends$4({
|
|
13445
13430
|
phase: "COLLECTING"
|
|
13446
13431
|
}, state, {
|
|
13447
13432
|
phase: "COLLECTING"
|
|
@@ -13495,7 +13480,7 @@ var reducer$2 = function(state, action2) {
|
|
|
13495
13480
|
var _target = state.dimensions.droppables[_id];
|
|
13496
13481
|
!_target ? process.env.NODE_ENV !== "production" ? invariant$3(false, "Cannot find Droppable[id: " + _id + "] to toggle its enabled state") : invariant$3() : void 0;
|
|
13497
13482
|
!(_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;
|
|
13498
|
-
var updated = _extends$
|
|
13483
|
+
var updated = _extends$4({}, _target, {
|
|
13499
13484
|
isEnabled
|
|
13500
13485
|
});
|
|
13501
13486
|
return postDroppableChange(state, updated, true);
|
|
@@ -13509,7 +13494,7 @@ var reducer$2 = function(state, action2) {
|
|
|
13509
13494
|
var _target2 = state.dimensions.droppables[_id2];
|
|
13510
13495
|
!_target2 ? process.env.NODE_ENV !== "production" ? invariant$3(false, "Cannot find Droppable[id: " + _id2 + "] to toggle its isCombineEnabled state") : invariant$3() : void 0;
|
|
13511
13496
|
!(_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;
|
|
13512
|
-
var _updated2 = _extends$
|
|
13497
|
+
var _updated2 = _extends$4({}, _target2, {
|
|
13513
13498
|
isCombineEnabled
|
|
13514
13499
|
});
|
|
13515
13500
|
return postDroppableChange(state, _updated2, true);
|
|
@@ -13544,12 +13529,12 @@ var reducer$2 = function(state, action2) {
|
|
|
13544
13529
|
if (isEqual$2(maxScroll, state.viewport.scroll.max)) {
|
|
13545
13530
|
return state;
|
|
13546
13531
|
}
|
|
13547
|
-
var withMaxScroll3 = _extends$
|
|
13548
|
-
scroll: _extends$
|
|
13532
|
+
var withMaxScroll3 = _extends$4({}, state.viewport, {
|
|
13533
|
+
scroll: _extends$4({}, state.viewport.scroll, {
|
|
13549
13534
|
max: maxScroll
|
|
13550
13535
|
})
|
|
13551
13536
|
});
|
|
13552
|
-
return _extends$
|
|
13537
|
+
return _extends$4({
|
|
13553
13538
|
phase: "DRAGGING"
|
|
13554
13539
|
}, state, {
|
|
13555
13540
|
viewport: withMaxScroll3
|
|
@@ -13577,7 +13562,7 @@ var reducer$2 = function(state, action2) {
|
|
|
13577
13562
|
if (action2.type === "DROP_PENDING") {
|
|
13578
13563
|
var reason = action2.payload.reason;
|
|
13579
13564
|
!(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;
|
|
13580
|
-
var newState = _extends$
|
|
13565
|
+
var newState = _extends$4({
|
|
13581
13566
|
phase: "DROP_PENDING"
|
|
13582
13567
|
}, state, {
|
|
13583
13568
|
phase: "DROP_PENDING",
|
|
@@ -13925,7 +13910,7 @@ var getDropImpact = function(_ref) {
|
|
|
13925
13910
|
didDropInsideDroppable: true
|
|
13926
13911
|
};
|
|
13927
13912
|
}
|
|
13928
|
-
var withoutMovement = _extends$
|
|
13913
|
+
var withoutMovement = _extends$4({}, lastImpact, {
|
|
13929
13914
|
displaced: emptyGroups
|
|
13930
13915
|
});
|
|
13931
13916
|
return {
|
|
@@ -14262,7 +14247,7 @@ var getPublisher = function(getResponders, announce) {
|
|
|
14262
14247
|
if (!hasCriticalChanged && !hasLocationChanged && !hasGroupingChanged) {
|
|
14263
14248
|
return;
|
|
14264
14249
|
}
|
|
14265
|
-
var data = _extends$
|
|
14250
|
+
var data = _extends$4({}, getDragStart(critical, dragging.mode), {
|
|
14266
14251
|
combine: combine2,
|
|
14267
14252
|
destination: location
|
|
14268
14253
|
});
|
|
@@ -14287,7 +14272,7 @@ var getPublisher = function(getResponders, announce) {
|
|
|
14287
14272
|
if (!dragging) {
|
|
14288
14273
|
return;
|
|
14289
14274
|
}
|
|
14290
|
-
var result = _extends$
|
|
14275
|
+
var result = _extends$4({}, getDragStart(dragging.lastCritical, dragging.mode), {
|
|
14291
14276
|
combine: null,
|
|
14292
14277
|
destination: null,
|
|
14293
14278
|
reason: "CANCEL"
|
|
@@ -15707,7 +15692,7 @@ function useAnnouncer(contextId) {
|
|
|
15707
15692
|
el2.id = id2;
|
|
15708
15693
|
el2.setAttribute("aria-live", "assertive");
|
|
15709
15694
|
el2.setAttribute("aria-atomic", "true");
|
|
15710
|
-
_extends$
|
|
15695
|
+
_extends$4(el2.style, visuallyHidden);
|
|
15711
15696
|
getBodyElement().appendChild(el2);
|
|
15712
15697
|
return function cleanup() {
|
|
15713
15698
|
setTimeout(function remove2() {
|
|
@@ -16754,7 +16739,7 @@ function tryStart(_ref3) {
|
|
|
16754
16739
|
reason
|
|
16755
16740
|
}));
|
|
16756
16741
|
}
|
|
16757
|
-
return _extends$
|
|
16742
|
+
return _extends$4({
|
|
16758
16743
|
isActive: function isActive() {
|
|
16759
16744
|
return _isActive({
|
|
16760
16745
|
expected: "DRAGGING",
|
|
@@ -16793,7 +16778,7 @@ function tryStart(_ref3) {
|
|
|
16793
16778
|
move: move$1
|
|
16794
16779
|
}
|
|
16795
16780
|
});
|
|
16796
|
-
return _extends$
|
|
16781
|
+
return _extends$4({}, api, {
|
|
16797
16782
|
move: move$1
|
|
16798
16783
|
});
|
|
16799
16784
|
}
|
|
@@ -16968,7 +16953,7 @@ function App(props) {
|
|
|
16968
16953
|
return createDimensionMarshal(registry, marshalCallbacks);
|
|
16969
16954
|
}, [registry, marshalCallbacks]);
|
|
16970
16955
|
var autoScroller = useMemo(function() {
|
|
16971
|
-
return createAutoScroller(_extends$
|
|
16956
|
+
return createAutoScroller(_extends$4({
|
|
16972
16957
|
scrollWindow,
|
|
16973
16958
|
scrollDroppable: dimensionMarshal.scrollDroppable
|
|
16974
16959
|
}, bindActionCreators$1({
|
|
@@ -18102,7 +18087,7 @@ function PublicDraggable(props) {
|
|
|
18102
18087
|
var isEnabled = typeof props.isDragDisabled === "boolean" ? !props.isDragDisabled : true;
|
|
18103
18088
|
var canDragInteractiveElements = Boolean(props.disableInteractiveElementBlocking);
|
|
18104
18089
|
var shouldRespectForcePress = Boolean(props.shouldRespectForcePress);
|
|
18105
|
-
return React__default.createElement(PrivateDraggable, _extends$
|
|
18090
|
+
return React__default.createElement(PrivateDraggable, _extends$4({}, props, {
|
|
18106
18091
|
isClone: false,
|
|
18107
18092
|
isEnabled,
|
|
18108
18093
|
canDragInteractiveElements,
|
|
@@ -18221,7 +18206,7 @@ var makeMapStateToProps$1 = function makeMapStateToProps3() {
|
|
|
18221
18206
|
},
|
|
18222
18207
|
useClone: null
|
|
18223
18208
|
};
|
|
18224
|
-
var idleWithoutAnimation = _extends$
|
|
18209
|
+
var idleWithoutAnimation = _extends$4({}, idleWithAnimation, {
|
|
18225
18210
|
shouldAnimatePlaceholder: false
|
|
18226
18211
|
});
|
|
18227
18212
|
var getDraggableRubric = memoizeOne(function(descriptor) {
|
|
@@ -20300,7 +20285,7 @@ function createListComponent(_ref) {
|
|
|
20300
20285
|
className,
|
|
20301
20286
|
onScroll,
|
|
20302
20287
|
ref: this._outerRefSetter,
|
|
20303
|
-
style: _extends$
|
|
20288
|
+
style: _extends$4({
|
|
20304
20289
|
position: "relative",
|
|
20305
20290
|
height: height2,
|
|
20306
20291
|
width: width2,
|
|
@@ -52362,6 +52347,7 @@ var interopRequireDefault = { exports: {} };
|
|
|
52362
52347
|
module.exports = _interopRequireDefault2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
52363
52348
|
})(interopRequireDefault);
|
|
52364
52349
|
var interopRequireDefaultExports = interopRequireDefault.exports;
|
|
52350
|
+
const require$$2 = /* @__PURE__ */ getAugmentedNamespace(_extends$5);
|
|
52365
52351
|
const richTextToolbar = "_richTextToolbar_1gbkk_1";
|
|
52366
52352
|
const richTextToolbarContainer = "_richTextToolbarContainer_1gbkk_5";
|
|
52367
52353
|
const styles$g = {
|
|
@@ -53633,7 +53619,7 @@ var Handle$2 = /* @__PURE__ */ React$4.forwardRef(function(props, ref2) {
|
|
|
53633
53619
|
}
|
|
53634
53620
|
};
|
|
53635
53621
|
var positionStyle = getDirectionStyle(direction, value, min, max);
|
|
53636
|
-
var handleNode = /* @__PURE__ */ React$4.createElement("div", _extends$
|
|
53622
|
+
var handleNode = /* @__PURE__ */ React$4.createElement("div", _extends$4({
|
|
53637
53623
|
ref: ref2,
|
|
53638
53624
|
className: cx$2(handlePrefixCls, (_classNames = {}, _defineProperty$7(_classNames, "".concat(handlePrefixCls, "-").concat(valueIndex + 1), range2), _defineProperty$7(_classNames, "".concat(handlePrefixCls, "-dragging"), dragging), _classNames)),
|
|
53639
53625
|
style: _objectSpread2$1(_objectSpread2$1({}, positionStyle), style2),
|
|
@@ -53677,7 +53663,7 @@ var Handles = /* @__PURE__ */ React$4.forwardRef(function(props, ref2) {
|
|
|
53677
53663
|
};
|
|
53678
53664
|
});
|
|
53679
53665
|
return /* @__PURE__ */ React$4.createElement(React$4.Fragment, null, values2.map(function(value, index2) {
|
|
53680
|
-
return /* @__PURE__ */ React$4.createElement(Handle$2, _extends$
|
|
53666
|
+
return /* @__PURE__ */ React$4.createElement(Handle$2, _extends$4({
|
|
53681
53667
|
ref: function ref3(node2) {
|
|
53682
53668
|
if (!node2) {
|
|
53683
53669
|
delete handlesRef.current[index2];
|
|
@@ -55047,7 +55033,7 @@ Object.defineProperty(Handle$1, "__esModule", {
|
|
|
55047
55033
|
value: true
|
|
55048
55034
|
});
|
|
55049
55035
|
var default_1 = Handle$1.default = void 0;
|
|
55050
|
-
var _extends2 = _interopRequireDefault(
|
|
55036
|
+
var _extends2 = _interopRequireDefault(require$$2);
|
|
55051
55037
|
var _objectSpread2 = _interopRequireDefault(requireObjectSpread2());
|
|
55052
55038
|
var _defineProperty2 = _interopRequireDefault(requireDefineProperty());
|
|
55053
55039
|
var _objectWithoutProperties2 = _interopRequireDefault(requireObjectWithoutProperties());
|
|
@@ -70206,7 +70192,6 @@ const convertUnit = ({
|
|
|
70206
70192
|
exactPrecision = false
|
|
70207
70193
|
}) => {
|
|
70208
70194
|
var _a2;
|
|
70209
|
-
console.log("convertUnit", inputValue);
|
|
70210
70195
|
const value = isValueWithUnit(inputValue) ? getValue$1(inputValue) : inputValue;
|
|
70211
70196
|
const isInfinity = [Infinity, -Infinity].includes(Number(value));
|
|
70212
70197
|
if (doNotConvertValue) {
|
|
@@ -70246,7 +70231,6 @@ const safeConvertValue = ({
|
|
|
70246
70231
|
defaultFromUnit,
|
|
70247
70232
|
doNotConvertValue
|
|
70248
70233
|
}) => {
|
|
70249
|
-
console.log("safeConvertValue", value);
|
|
70250
70234
|
const rawValue = getValue$1(value);
|
|
70251
70235
|
const isInvalidInput = isWrongValue(rawValue);
|
|
70252
70236
|
const availableUnits = ALT_UNITS[unitkey];
|
|
@@ -70312,7 +70296,7 @@ const PredefinedOptionsMenu = ({
|
|
|
70312
70296
|
setPredefinedOptionsMenuState,
|
|
70313
70297
|
testId
|
|
70314
70298
|
}) => {
|
|
70315
|
-
|
|
70299
|
+
extractValue(displayLayer == null ? void 0 : displayLayer.value);
|
|
70316
70300
|
const [foundPredefinedMenuOption, setFoundPredefinedMenuOption] = useState(void 0);
|
|
70317
70301
|
const convertPredefinedOptions = ({
|
|
70318
70302
|
value,
|
|
@@ -70320,7 +70304,6 @@ const PredefinedOptionsMenu = ({
|
|
|
70320
70304
|
}) => {
|
|
70321
70305
|
if (!value || !rootUnitKey) return value;
|
|
70322
70306
|
if (!isValueWithUnit(value)) return value;
|
|
70323
|
-
console.log("convertPredefinedOptions", value, optionUnitKey);
|
|
70324
70307
|
const selectedUnitKey = optionUnitKey || rootUnitKey;
|
|
70325
70308
|
const preferredOptionUnit = getPreferredUnit(selectedUnitKey, unitTemplate);
|
|
70326
70309
|
const { value: resultValue } = safeConvertValue({
|
|
@@ -70381,7 +70364,7 @@ const PredefinedOptionsMenu = ({
|
|
|
70381
70364
|
setPredefinedOptionsMenuState(PredefinedOptionsMenuState.CUSTOM);
|
|
70382
70365
|
setFoundPredefinedMenuOption(void 0);
|
|
70383
70366
|
}
|
|
70384
|
-
}, [
|
|
70367
|
+
}, [predefinedOptions]);
|
|
70385
70368
|
console.log(
|
|
70386
70369
|
"createPredefinedOption",
|
|
70387
70370
|
predefinedOptions.map(createPredefinedOption)
|
|
@@ -70464,6 +70447,8 @@ const UnitInput = ({
|
|
|
70464
70447
|
const context2 = useUnitContext();
|
|
70465
70448
|
const runAfterUpdate = useRunAfterUpdate();
|
|
70466
70449
|
const [predefinedOptionsMenuState, setPredefinedOptionsMenuState] = useState(PredefinedOptionsMenuState.CUSTOM);
|
|
70450
|
+
console.log("PRED_OPT>>>", predefinedOptions);
|
|
70451
|
+
console.log("INIT_PRED_OPT>>>", initialPredefinedOption);
|
|
70467
70452
|
if (typeof value === "number") {
|
|
70468
70453
|
value = `${value}`;
|
|
70469
70454
|
}
|