@oliasoft-open-source/react-ui-library 4.20.11-beta-1 → 4.20.11
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 +44 -58
- 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,
|
|
@@ -8286,8 +8280,8 @@ function _interopRequireWildcard$2(obj, nodeInterop) {
|
|
|
8286
8280
|
}
|
|
8287
8281
|
return newObj;
|
|
8288
8282
|
}
|
|
8289
|
-
function _extends$
|
|
8290
|
-
_extends$
|
|
8283
|
+
function _extends$2() {
|
|
8284
|
+
_extends$2 = Object.assign ? Object.assign.bind() : function(target) {
|
|
8291
8285
|
for (var i = 1; i < arguments.length; i++) {
|
|
8292
8286
|
var source = arguments[i];
|
|
8293
8287
|
for (var key2 in source) {
|
|
@@ -8298,7 +8292,7 @@ function _extends$3() {
|
|
|
8298
8292
|
}
|
|
8299
8293
|
return target;
|
|
8300
8294
|
};
|
|
8301
|
-
return _extends$
|
|
8295
|
+
return _extends$2.apply(this, arguments);
|
|
8302
8296
|
}
|
|
8303
8297
|
function _objectWithoutPropertiesLoose$3(source, excluded) {
|
|
8304
8298
|
if (source == null) return {};
|
|
@@ -8503,7 +8497,7 @@ var Resizable$1 = /* @__PURE__ */ function(_React$Component) {
|
|
|
8503
8497
|
children: [].concat(children.props.children, resizeHandles.map(function(handleAxis) {
|
|
8504
8498
|
var _this3$handleRefs$han;
|
|
8505
8499
|
var ref = (_this3$handleRefs$han = _this3.handleRefs[handleAxis]) != null ? _this3$handleRefs$han : _this3.handleRefs[handleAxis] = /* @__PURE__ */ React$2.createRef();
|
|
8506
|
-
return /* @__PURE__ */ React$2.createElement(_reactDraggable.DraggableCore, _extends$
|
|
8500
|
+
return /* @__PURE__ */ React$2.createElement(_reactDraggable.DraggableCore, _extends$2({}, draggableOpts, {
|
|
8507
8501
|
nodeRef: ref,
|
|
8508
8502
|
key: "resizableHandle-" + handleAxis,
|
|
8509
8503
|
onStop: _this3.resizeHandler("onResizeStop", handleAxis),
|
|
@@ -8574,8 +8568,8 @@ function _interopRequireWildcard$1(obj, nodeInterop) {
|
|
|
8574
8568
|
}
|
|
8575
8569
|
return newObj;
|
|
8576
8570
|
}
|
|
8577
|
-
function _extends$
|
|
8578
|
-
_extends$
|
|
8571
|
+
function _extends$1() {
|
|
8572
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function(target) {
|
|
8579
8573
|
for (var i = 1; i < arguments.length; i++) {
|
|
8580
8574
|
var source = arguments[i];
|
|
8581
8575
|
for (var key2 in source) {
|
|
@@ -8586,7 +8580,7 @@ function _extends$2() {
|
|
|
8586
8580
|
}
|
|
8587
8581
|
return target;
|
|
8588
8582
|
};
|
|
8589
|
-
return _extends$
|
|
8583
|
+
return _extends$1.apply(this, arguments);
|
|
8590
8584
|
}
|
|
8591
8585
|
function ownKeys$1(object2, enumerableOnly) {
|
|
8592
8586
|
var keys2 = Object.keys(object2);
|
|
@@ -8717,7 +8711,7 @@ var ResizableBox = /* @__PURE__ */ function(_React$Component) {
|
|
|
8717
8711
|
resizeHandles,
|
|
8718
8712
|
transformScale,
|
|
8719
8713
|
width: this.state.width
|
|
8720
|
-
}, /* @__PURE__ */ React$1.createElement("div", _extends$
|
|
8714
|
+
}, /* @__PURE__ */ React$1.createElement("div", _extends$1({}, props, {
|
|
8721
8715
|
style: _objectSpread$5(_objectSpread$5({}, style), {}, {
|
|
8722
8716
|
width: this.state.width + "px",
|
|
8723
8717
|
height: this.state.height + "px"
|
|
@@ -15549,15 +15543,6 @@ const useWindowWidth = () => {
|
|
|
15549
15543
|
}, []);
|
|
15550
15544
|
return width2;
|
|
15551
15545
|
};
|
|
15552
|
-
function _extends$1() {
|
|
15553
|
-
return _extends$1 = Object.assign ? Object.assign.bind() : function(n2) {
|
|
15554
|
-
for (var e2 = 1; e2 < arguments.length; e2++) {
|
|
15555
|
-
var t = arguments[e2];
|
|
15556
|
-
for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n2[r2] = t[r2]);
|
|
15557
|
-
}
|
|
15558
|
-
return n2;
|
|
15559
|
-
}, _extends$1.apply(null, arguments);
|
|
15560
|
-
}
|
|
15561
15546
|
function _assertThisInitialized(e2) {
|
|
15562
15547
|
if (void 0 === e2) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15563
15548
|
return e2;
|
|
@@ -15930,7 +15915,7 @@ function createListComponent(_ref) {
|
|
|
15930
15915
|
className,
|
|
15931
15916
|
onScroll,
|
|
15932
15917
|
ref: this._outerRefSetter,
|
|
15933
|
-
style: _extends$
|
|
15918
|
+
style: _extends$4({
|
|
15934
15919
|
position: "relative",
|
|
15935
15920
|
height: height2,
|
|
15936
15921
|
width: width2,
|
|
@@ -48024,6 +48009,7 @@ var interopRequireDefault = { exports: {} };
|
|
|
48024
48009
|
module.exports = _interopRequireDefault2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
48025
48010
|
})(interopRequireDefault);
|
|
48026
48011
|
var interopRequireDefaultExports = interopRequireDefault.exports;
|
|
48012
|
+
const require$$2 = /* @__PURE__ */ getAugmentedNamespace(_extends$5);
|
|
48027
48013
|
const richTextToolbar = "_richTextToolbar_1gbkk_1";
|
|
48028
48014
|
const richTextToolbarContainer = "_richTextToolbarContainer_1gbkk_5";
|
|
48029
48015
|
const styles$h = {
|
|
@@ -49324,7 +49310,7 @@ var Handle$2 = /* @__PURE__ */ React$4.forwardRef(function(props, ref) {
|
|
|
49324
49310
|
}
|
|
49325
49311
|
};
|
|
49326
49312
|
var positionStyle = getDirectionStyle(direction, value, min, max);
|
|
49327
|
-
var handleNode = /* @__PURE__ */ React$4.createElement("div", _extends$
|
|
49313
|
+
var handleNode = /* @__PURE__ */ React$4.createElement("div", _extends$4({
|
|
49328
49314
|
ref,
|
|
49329
49315
|
className: cx$2(handlePrefixCls, (_classNames = {}, _defineProperty$7(_classNames, "".concat(handlePrefixCls, "-").concat(valueIndex + 1), range2), _defineProperty$7(_classNames, "".concat(handlePrefixCls, "-dragging"), dragging), _classNames)),
|
|
49330
49316
|
style: _objectSpread2$1(_objectSpread2$1({}, positionStyle), style),
|
|
@@ -49368,7 +49354,7 @@ var Handles = /* @__PURE__ */ React$4.forwardRef(function(props, ref) {
|
|
|
49368
49354
|
};
|
|
49369
49355
|
});
|
|
49370
49356
|
return /* @__PURE__ */ React$4.createElement(React$4.Fragment, null, values2.map(function(value, index2) {
|
|
49371
|
-
return /* @__PURE__ */ React$4.createElement(Handle$2, _extends$
|
|
49357
|
+
return /* @__PURE__ */ React$4.createElement(Handle$2, _extends$4({
|
|
49372
49358
|
ref: function ref2(node2) {
|
|
49373
49359
|
if (!node2) {
|
|
49374
49360
|
delete handlesRef.current[index2];
|
|
@@ -50738,7 +50724,7 @@ Object.defineProperty(Handle$1, "__esModule", {
|
|
|
50738
50724
|
value: true
|
|
50739
50725
|
});
|
|
50740
50726
|
var default_1 = Handle$1.default = void 0;
|
|
50741
|
-
var _extends2 = _interopRequireDefault(
|
|
50727
|
+
var _extends2 = _interopRequireDefault(require$$2);
|
|
50742
50728
|
var _objectSpread2 = _interopRequireDefault(requireObjectSpread2());
|
|
50743
50729
|
var _defineProperty2 = _interopRequireDefault(requireDefineProperty());
|
|
50744
50730
|
var _objectWithoutProperties2 = _interopRequireDefault(requireObjectWithoutProperties());
|