uiw 4.19.0 → 4.20.0

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/uiw.js CHANGED
@@ -1796,10 +1796,10 @@ function CallShow(props) {
1796
1796
  title: title,
1797
1797
  isOpen: true,
1798
1798
  onClosed: () => {
1799
- document.getElementById('uiw-modal-call-show-element').remove();
1799
+ dv.remove();
1800
1800
  },
1801
1801
  children: children
1802
- })), document.getElementById('uiw-modal-call-show-element'));
1802
+ })), dv);
1803
1803
  }
1804
1804
 
1805
1805
  ;// CONCATENATED MODULE: ../react-modal/esm/index.js
@@ -3078,6 +3078,88 @@ var normalizeDelay = delay => delay && typeof delay === 'object' ? delay : {
3078
3078
  ;// CONCATENATED MODULE: ../react-popover/esm/style/index.css
3079
3079
  // extracted by mini-css-extract-plugin
3080
3080
  /* harmony default export */ const react_popover_esm_style = ({});
3081
+ ;// CONCATENATED MODULE: ../react-popover/esm/Confirm.js
3082
+
3083
+
3084
+
3085
+
3086
+
3087
+
3088
+
3089
+ function Confirm(props) {
3090
+ var {
3091
+ trigger = 'click',
3092
+ placement = 'top',
3093
+ confirmText = 'Yes',
3094
+ title,
3095
+ cancelText = 'No',
3096
+ visibleArrow,
3097
+ children,
3098
+ onConfirm
3099
+ } = props;
3100
+ var [isOpen, setIsOpen] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false);
3101
+ return /*#__PURE__*/(0,jsx_runtime.jsx)(Popover, {
3102
+ isOpen: isOpen,
3103
+ visibleArrow: visibleArrow,
3104
+ content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
3105
+ style: {
3106
+ padding: '12px 16px',
3107
+ position: 'relative'
3108
+ },
3109
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
3110
+ type: "information",
3111
+ style: {
3112
+ position: 'absolute',
3113
+ top: 13.5,
3114
+ fontSize: 14,
3115
+ transform: 'rotate(180deg)',
3116
+ color: '#faad14'
3117
+ }
3118
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
3119
+ style: {
3120
+ paddingLeft: 20
3121
+ },
3122
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
3123
+ style: {
3124
+ fontSize: 14
3125
+ },
3126
+ children: title
3127
+ }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
3128
+ style: {
3129
+ position: 'relative',
3130
+ bottom: 0,
3131
+ marginTop: 12,
3132
+ display: 'flex',
3133
+ justifyContent: 'end'
3134
+ },
3135
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(esm, {
3136
+ size: "small",
3137
+ onClick: () => setIsOpen(false),
3138
+ children: cancelText
3139
+ }), /*#__PURE__*/(0,jsx_runtime.jsx)(esm, {
3140
+ size: "small",
3141
+ type: "primary",
3142
+ style: {
3143
+ marginLeft: 10
3144
+ },
3145
+ onClick: () => {
3146
+ onConfirm == null ? void 0 : onConfirm();
3147
+ setIsOpen(false);
3148
+ },
3149
+ children: confirmText
3150
+ })]
3151
+ })]
3152
+ })]
3153
+ }),
3154
+ trigger: trigger,
3155
+ placement: placement,
3156
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
3157
+ onClick: () => setIsOpen(true),
3158
+ children: children
3159
+ })
3160
+ });
3161
+ }
3162
+
3081
3163
  ;// CONCATENATED MODULE: ../react-popover/esm/index.js
3082
3164
 
3083
3165
 
@@ -3087,6 +3169,7 @@ var react_popover_esm_excluded = ["prefixCls", "className", "content", "visibleA
3087
3169
 
3088
3170
 
3089
3171
 
3172
+
3090
3173
  class Popover extends (external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Component {
3091
3174
  constructor() {
3092
3175
  super(...arguments);
@@ -3140,6 +3223,7 @@ class Popover extends (external_root_React_commonjs2_react_commonjs_react_amd_re
3140
3223
  }
3141
3224
 
3142
3225
  }
3226
+ Popover.Confirm = Confirm;
3143
3227
  Popover.defaultProps = {
3144
3228
  prefixCls: 'w-popover',
3145
3229
  placement: 'top',
@@ -9667,12 +9751,15 @@ var ThComponent_excluded = ["title", "key", "render", "children", "ellipsis", "f
9667
9751
 
9668
9752
 
9669
9753
 
9670
-
9671
9754
  class ThComponent extends external_root_React_commonjs2_react_commonjs_react_amd_react_.Component {
9755
+ constructor() {
9756
+ super(...arguments);
9757
+ this.wrapper = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createRef();
9758
+ }
9759
+
9672
9760
  componentDidMount() {
9673
- var rect = external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(this);
9674
9761
  this.props.updateLocation({
9675
- width: rect.getBoundingClientRect().width
9762
+ width: this.wrapper.current.getBoundingClientRect().width
9676
9763
  }, "" + this.props.rowNum + this.props.colNum, this.props.item.key, this.props.item.colSpan);
9677
9764
  }
9678
9765
 
@@ -9702,7 +9789,9 @@ class ThComponent extends external_root_React_commonjs2_react_commonjs_react_amd
9702
9789
  }
9703
9790
  }
9704
9791
 
9705
- return /*#__PURE__*/(0,jsx_runtime.jsx)("th", _extends({}, thProps, {
9792
+ return /*#__PURE__*/(0,jsx_runtime.jsx)("th", _extends({
9793
+ ref: this.wrapper
9794
+ }, thProps, {
9706
9795
  style: _extends({}, thProps.style, locationFixed(fixed, locationWidth, "" + rowNum + colNum)),
9707
9796
  className: prefixCls + "-tr-children-" + ((item == null ? void 0 : item.align) || 'left') + " " + (item.className || '') + " " + cls,
9708
9797
  onClick: evn => onCellHead == null ? void 0 : onCellHead(item, colNum, rowNum, evn),