@oliasoft-open-source/react-ui-library 4.19.6-beta-3 → 4.19.6-beta-5
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 +46 -59
- 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$8);
|
|
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(function(layer2) {
|
|
2578
2572
|
var _get3 = get3(), 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 = get3(), 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, config, 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, ref) {
|
|
|
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
|
|
3613
3607
|
}, rest, {
|
|
3614
|
-
style: _extends$
|
|
3608
|
+
style: _extends$3({}, style, {
|
|
3615
3609
|
transform: "translate" + (side.isHorizontal ? "Y" : "X") + "(-50%)"
|
|
3616
3610
|
}),
|
|
3617
3611
|
width: maxSize,
|
|
@@ -8283,8 +8277,8 @@ function _interopRequireWildcard$2(obj, nodeInterop) {
|
|
|
8283
8277
|
}
|
|
8284
8278
|
return newObj;
|
|
8285
8279
|
}
|
|
8286
|
-
function _extends$
|
|
8287
|
-
_extends$
|
|
8280
|
+
function _extends$2() {
|
|
8281
|
+
_extends$2 = Object.assign ? Object.assign.bind() : function(target) {
|
|
8288
8282
|
for (var i = 1; i < arguments.length; i++) {
|
|
8289
8283
|
var source = arguments[i];
|
|
8290
8284
|
for (var key2 in source) {
|
|
@@ -8295,7 +8289,7 @@ function _extends$3() {
|
|
|
8295
8289
|
}
|
|
8296
8290
|
return target;
|
|
8297
8291
|
};
|
|
8298
|
-
return _extends$
|
|
8292
|
+
return _extends$2.apply(this, arguments);
|
|
8299
8293
|
}
|
|
8300
8294
|
function _objectWithoutPropertiesLoose$3(source, excluded) {
|
|
8301
8295
|
if (source == null) return {};
|
|
@@ -8500,7 +8494,7 @@ var Resizable$1 = /* @__PURE__ */ function(_React$Component) {
|
|
|
8500
8494
|
children: [].concat(children.props.children, resizeHandles.map(function(handleAxis) {
|
|
8501
8495
|
var _this3$handleRefs$han;
|
|
8502
8496
|
var ref = (_this3$handleRefs$han = _this3.handleRefs[handleAxis]) != null ? _this3$handleRefs$han : _this3.handleRefs[handleAxis] = /* @__PURE__ */ React$2.createRef();
|
|
8503
|
-
return /* @__PURE__ */ React$2.createElement(_reactDraggable.DraggableCore, _extends$
|
|
8497
|
+
return /* @__PURE__ */ React$2.createElement(_reactDraggable.DraggableCore, _extends$2({}, draggableOpts, {
|
|
8504
8498
|
nodeRef: ref,
|
|
8505
8499
|
key: "resizableHandle-" + handleAxis,
|
|
8506
8500
|
onStop: _this3.resizeHandler("onResizeStop", handleAxis),
|
|
@@ -8571,8 +8565,8 @@ function _interopRequireWildcard$1(obj, nodeInterop) {
|
|
|
8571
8565
|
}
|
|
8572
8566
|
return newObj;
|
|
8573
8567
|
}
|
|
8574
|
-
function _extends$
|
|
8575
|
-
_extends$
|
|
8568
|
+
function _extends$1() {
|
|
8569
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function(target) {
|
|
8576
8570
|
for (var i = 1; i < arguments.length; i++) {
|
|
8577
8571
|
var source = arguments[i];
|
|
8578
8572
|
for (var key2 in source) {
|
|
@@ -8583,7 +8577,7 @@ function _extends$2() {
|
|
|
8583
8577
|
}
|
|
8584
8578
|
return target;
|
|
8585
8579
|
};
|
|
8586
|
-
return _extends$
|
|
8580
|
+
return _extends$1.apply(this, arguments);
|
|
8587
8581
|
}
|
|
8588
8582
|
function ownKeys$1(object2, enumerableOnly) {
|
|
8589
8583
|
var keys2 = Object.keys(object2);
|
|
@@ -8714,7 +8708,7 @@ var ResizableBox = /* @__PURE__ */ function(_React$Component) {
|
|
|
8714
8708
|
resizeHandles,
|
|
8715
8709
|
transformScale,
|
|
8716
8710
|
width: this.state.width
|
|
8717
|
-
}, /* @__PURE__ */ React$1.createElement("div", _extends$
|
|
8711
|
+
}, /* @__PURE__ */ React$1.createElement("div", _extends$1({}, props, {
|
|
8718
8712
|
style: _objectSpread$5(_objectSpread$5({}, style), {}, {
|
|
8719
8713
|
width: this.state.width + "px",
|
|
8720
8714
|
height: this.state.height + "px"
|
|
@@ -9130,7 +9124,7 @@ const Input$1 = forwardRef(
|
|
|
9130
9124
|
const handleFocus = (e2) => {
|
|
9131
9125
|
onFocus(e2);
|
|
9132
9126
|
if (selectOnFocus) {
|
|
9133
|
-
setTimeout(() => e2.target.select(),
|
|
9127
|
+
setTimeout(() => e2.target.select(), 50);
|
|
9134
9128
|
}
|
|
9135
9129
|
};
|
|
9136
9130
|
return /* @__PURE__ */ jsx("div", { style: { width: width2 }, className: order2, children: /* @__PURE__ */ jsx(
|
|
@@ -15706,15 +15700,6 @@ const useWindowWidth = () => {
|
|
|
15706
15700
|
}, []);
|
|
15707
15701
|
return width2;
|
|
15708
15702
|
};
|
|
15709
|
-
function _extends$1() {
|
|
15710
|
-
return _extends$1 = Object.assign ? Object.assign.bind() : function(n2) {
|
|
15711
|
-
for (var e2 = 1; e2 < arguments.length; e2++) {
|
|
15712
|
-
var t = arguments[e2];
|
|
15713
|
-
for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n2[r2] = t[r2]);
|
|
15714
|
-
}
|
|
15715
|
-
return n2;
|
|
15716
|
-
}, _extends$1.apply(null, arguments);
|
|
15717
|
-
}
|
|
15718
15703
|
function _assertThisInitialized(e2) {
|
|
15719
15704
|
if (void 0 === e2) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15720
15705
|
return e2;
|
|
@@ -16087,7 +16072,7 @@ function createListComponent(_ref) {
|
|
|
16087
16072
|
className,
|
|
16088
16073
|
onScroll,
|
|
16089
16074
|
ref: this._outerRefSetter,
|
|
16090
|
-
style: _extends$
|
|
16075
|
+
style: _extends$4({
|
|
16091
16076
|
position: "relative",
|
|
16092
16077
|
height: height2,
|
|
16093
16078
|
width: width2,
|
|
@@ -48175,6 +48160,7 @@ var interopRequireDefault = { exports: {} };
|
|
|
48175
48160
|
module.exports = _interopRequireDefault2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
48176
48161
|
})(interopRequireDefault);
|
|
48177
48162
|
var interopRequireDefaultExports = interopRequireDefault.exports;
|
|
48163
|
+
const require$$2 = /* @__PURE__ */ getAugmentedNamespace(_extends$5);
|
|
48178
48164
|
const richTextToolbar = "_richTextToolbar_1gbkk_1";
|
|
48179
48165
|
const richTextToolbarContainer = "_richTextToolbarContainer_1gbkk_5";
|
|
48180
48166
|
const styles$h = {
|
|
@@ -49475,7 +49461,7 @@ var Handle$2 = /* @__PURE__ */ React$4.forwardRef(function(props, ref) {
|
|
|
49475
49461
|
}
|
|
49476
49462
|
};
|
|
49477
49463
|
var positionStyle = getDirectionStyle(direction, value, min, max);
|
|
49478
|
-
var handleNode = /* @__PURE__ */ React$4.createElement("div", _extends$
|
|
49464
|
+
var handleNode = /* @__PURE__ */ React$4.createElement("div", _extends$4({
|
|
49479
49465
|
ref,
|
|
49480
49466
|
className: cx$2(handlePrefixCls, (_classNames = {}, _defineProperty$7(_classNames, "".concat(handlePrefixCls, "-").concat(valueIndex + 1), range2), _defineProperty$7(_classNames, "".concat(handlePrefixCls, "-dragging"), dragging), _classNames)),
|
|
49481
49467
|
style: _objectSpread2$1(_objectSpread2$1({}, positionStyle), style),
|
|
@@ -49519,7 +49505,7 @@ var Handles = /* @__PURE__ */ React$4.forwardRef(function(props, ref) {
|
|
|
49519
49505
|
};
|
|
49520
49506
|
});
|
|
49521
49507
|
return /* @__PURE__ */ React$4.createElement(React$4.Fragment, null, values2.map(function(value, index2) {
|
|
49522
|
-
return /* @__PURE__ */ React$4.createElement(Handle$2, _extends$
|
|
49508
|
+
return /* @__PURE__ */ React$4.createElement(Handle$2, _extends$4({
|
|
49523
49509
|
ref: function ref2(node2) {
|
|
49524
49510
|
if (!node2) {
|
|
49525
49511
|
delete handlesRef.current[index2];
|
|
@@ -50889,7 +50875,7 @@ Object.defineProperty(Handle$1, "__esModule", {
|
|
|
50889
50875
|
value: true
|
|
50890
50876
|
});
|
|
50891
50877
|
var default_1 = Handle$1.default = void 0;
|
|
50892
|
-
var _extends2 = _interopRequireDefault(
|
|
50878
|
+
var _extends2 = _interopRequireDefault(require$$2);
|
|
50893
50879
|
var _objectSpread2 = _interopRequireDefault(requireObjectSpread2());
|
|
50894
50880
|
var _defineProperty2 = _interopRequireDefault(requireDefineProperty());
|
|
50895
50881
|
var _objectWithoutProperties2 = _interopRequireDefault(requireObjectWithoutProperties());
|
|
@@ -66818,6 +66804,7 @@ const convertVisibleRows = ({
|
|
|
66818
66804
|
enableCosmeticRounding,
|
|
66819
66805
|
enableDisplayRounding,
|
|
66820
66806
|
roundDisplayValue,
|
|
66807
|
+
selectOnFocus: true,
|
|
66821
66808
|
onChange: (evt) => {
|
|
66822
66809
|
const { value: value2 } = evt.target;
|
|
66823
66810
|
const storageUnit2 = storageUnits[unitKey];
|