@para-ui/core 4.0.53 → 4.0.54
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/Button/index.js +2 -2
- package/Cascader/Cascader.d.ts +3 -0
- package/Cascader/index.js +11 -7
- package/ComboSelect/index.js +5 -4
- package/CycleSelector/index.js +4 -1
- package/DatePicker/index.js +4 -1
- package/DynamicMultiBox/index.js +7 -6
- package/DynamicMultiBox/interface.d.ts +1 -1
- package/FieldForm/ErrorList.d.ts +16 -0
- package/FieldForm/FieldFormItem/ItemHolder.d.ts +18 -0
- package/FieldForm/FieldFormItem/MemoInput.d.ts +14 -0
- package/FieldForm/FieldFormItem/StatusProvider.d.ts +20 -0
- package/FieldForm/FieldFormItem/index.d.ts +58 -0
- package/FieldForm/Form.d.ts +36 -0
- package/FieldForm/FormItemInput.d.ts +21 -0
- package/FieldForm/FormItemLabel.d.ts +21 -0
- package/FieldForm/FormList.d.ts +23 -0
- package/FieldForm/context.d.ts +33 -0
- package/FieldForm/hooks/useChildren.d.ts +2 -0
- package/FieldForm/hooks/useDebounce.d.ts +1 -0
- package/FieldForm/hooks/useForm.d.ts +6 -0
- package/FieldForm/hooks/useFormInstance.d.ts +2 -0
- package/FieldForm/hooks/useFormItemStatus.d.ts +9 -0
- package/FieldForm/hooks/useFrameState.d.ts +3 -0
- package/FieldForm/hooks/useItemRef.d.ts +3 -0
- package/FieldForm/index.d.ts +30 -0
- package/FieldForm/index.js +5326 -0
- package/FieldForm/interface.d.ts +2 -0
- package/FieldForm/lang/en_US.d.ts +51 -0
- package/FieldForm/lang/index.d.ts +105 -0
- package/FieldForm/lang/zh_CN.d.ts +51 -0
- package/FieldForm/util.d.ts +21 -0
- package/Form/index.js +6 -5
- package/FormItem/index.js +6 -5
- package/FunctionModal/index.js +2 -2
- package/Image/index.js +7 -56
- package/PopMenu/index.js +2 -2
- package/README.md +10 -0
- package/Result/index.js +2 -2
- package/Selector/index.js +1 -1
- package/SelectorPicker/index.js +1 -1
- package/Stepper/index.js +1 -1
- package/Switch/index.d.ts +4 -0
- package/Switch/index.js +3 -2
- package/Tabs/index.js +2 -2
- package/Tag/index.js +87 -55
- package/TextEditor/index.d.ts +2 -0
- package/TextEditor/index.js +27 -6
- package/TimePicker/index.js +4 -1
- package/Timeline/index.js +2 -1
- package/ToggleButton/index.js +2 -1
- package/Transfer/index.d.ts +1 -0
- package/Transfer/index.js +120 -119
- package/Tree/index.js +6 -5
- package/Upload/index.js +10 -7
- package/_verture/{Portal-42560ff0.js → Portal-502bb85e.js} +30 -481
- package/_verture/{defineProperty-f0e15205.js → defineProperty-6f62bb2a.js} +2 -10
- package/_verture/{index-063009f8.js → index-0a300edb.js} +388 -700
- package/_verture/index-1856bbeb.js +480 -0
- package/_verture/{index-d728b0ce.js → index-320d67c4.js} +4 -3
- package/_verture/{index-f30ae73e.js → index-43c653bb.js} +1 -1
- package/_verture/isEqual-30b6f859.js +56 -0
- package/_verture/{slicedToArray-75fa4188.js → slicedToArray-61604a6c.js} +1 -1
- package/_verture/{toConsumableArray-c7a8028f.js → toConsumableArray-599cd94a.js} +1 -1
- package/_verture/typeof-adeedc13.js +11 -0
- package/_verture/useState-f2419d68.js +353 -0
- package/index.d.ts +2 -0
- package/index.js +16 -11
- package/locale/en-US.d.ts +46 -0
- package/locale/index.d.ts +92 -0
- package/locale/index.js +92 -0
- package/locale/zh-CN.d.ts +46 -0
- package/package.json +3 -1
- package/umd/Anchor.js +5 -5
- package/umd/Argv.js +5 -5
- package/umd/AutoBox.js +5 -5
- package/umd/AutoButton.js +6 -6
- package/umd/AutoTips.js +5 -5
- package/umd/Breadcrumbs.js +4 -4
- package/umd/Button.js +5 -5
- package/umd/ButtonGroup.js +6 -6
- package/umd/Cascader.js +5 -5
- package/umd/Checkbox.js +4 -4
- package/umd/CheckboxGroup.js +4 -4
- package/umd/Collapse.js +1 -1
- package/umd/ComboSelect.js +4 -4
- package/umd/CopyText.js +5 -5
- package/umd/CycleSelector.js +5 -5
- package/umd/DatePicker.js +5 -5
- package/umd/Descriptions.js +6 -6
- package/umd/Desktop.js +5 -5
- package/umd/Drawer.js +5 -5
- package/umd/Dropdown.js +4 -4
- package/umd/DynamicMultiBox.js +4 -4
- package/umd/FieldForm.js +43 -0
- package/umd/Form.js +4 -4
- package/umd/FormItem.js +4 -4
- package/umd/FunctionModal.js +5 -5
- package/umd/Help.js +5 -5
- package/umd/Image.js +3 -3
- package/umd/InputCode.js +5 -5
- package/umd/InputLang.js +5 -5
- package/umd/InputNumber.js +4 -4
- package/umd/Label.js +4 -4
- package/umd/Menu.js +4 -4
- package/umd/Modal.js +5 -5
- package/umd/MultiBox.js +6 -6
- package/umd/Notification.js +3 -3
- package/umd/OperateBtn.js +5 -5
- package/umd/PageHeader.js +5 -5
- package/umd/Pagination.js +5 -5
- package/umd/PopConfirm.js +5 -5
- package/umd/PopMenu.js +5 -5
- package/umd/Popover.js +5 -5
- package/umd/QuickReply.js +5 -5
- package/umd/Radio.js +4 -4
- package/umd/RadioGroup.js +4 -4
- package/umd/RangeInput.js +5 -5
- package/umd/Result.js +4 -4
- package/umd/Search.js +5 -5
- package/umd/Select.js +5 -5
- package/umd/SelectInput.js +5 -5
- package/umd/Selector.js +5 -5
- package/umd/SelectorPicker.js +5 -5
- package/umd/SingleBox.js +5 -5
- package/umd/Slider.js +4 -4
- package/umd/Stepper.js +4 -4
- package/umd/Switch.js +4 -4
- package/umd/Table.js +5 -5
- package/umd/Tabs.js +4 -4
- package/umd/Tag.js +5 -5
- package/umd/TextEditor.js +6 -6
- package/umd/TextField.js +5 -5
- package/umd/TimePicker.js +5 -5
- package/umd/Title.js +3 -3
- package/umd/ToggleButton.js +5 -5
- package/umd/Tooltip.js +4 -4
- package/umd/Transfer.js +7 -7
- package/umd/Tree.js +3 -3
- package/umd/Upload.js +5 -5
- package/umd/locale.js +1 -1
- /package/_verture/{modalContext-8a48c400.js → modalContext-6ac2e323.js} +0 -0
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { r as reactIs } from './index-1856bbeb.js';
|
|
3
|
+
import { t as toPropertyKey } from './defineProperty-6f62bb2a.js';
|
|
4
|
+
import { _ as _typeof } from './typeof-adeedc13.js';
|
|
5
|
+
import { c as _arrayWithHoles, b as _unsupportedIterableToArray, d as _nonIterableRest } from './slicedToArray-61604a6c.js';
|
|
6
|
+
import { a as _iterableToArray } from './toConsumableArray-599cd94a.js';
|
|
7
|
+
import { _ as _typeof$1 } from './typeof-6ec38efd.js';
|
|
8
|
+
|
|
9
|
+
function toArray(children) {
|
|
10
|
+
var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
11
|
+
var ret = [];
|
|
12
|
+
React__default.Children.forEach(children, function (child) {
|
|
13
|
+
if ((child === undefined || child === null) && !option.keepEmpty) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
if (Array.isArray(child)) {
|
|
17
|
+
ret = ret.concat(toArray(child));
|
|
18
|
+
} else if (reactIs.exports.isFragment(child) && child.props) {
|
|
19
|
+
ret = ret.concat(toArray(child.props.children, option));
|
|
20
|
+
} else {
|
|
21
|
+
ret.push(child);
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
return ret;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function _classCallCheck(instance, Constructor) {
|
|
28
|
+
if (!(instance instanceof Constructor)) {
|
|
29
|
+
throw new TypeError("Cannot call a class as a function");
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function _defineProperties(target, props) {
|
|
34
|
+
for (var i = 0; i < props.length; i++) {
|
|
35
|
+
var descriptor = props[i];
|
|
36
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
37
|
+
descriptor.configurable = true;
|
|
38
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
39
|
+
Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
43
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
44
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
45
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
46
|
+
writable: false
|
|
47
|
+
});
|
|
48
|
+
return Constructor;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function _setPrototypeOf(o, p) {
|
|
52
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
53
|
+
o.__proto__ = p;
|
|
54
|
+
return o;
|
|
55
|
+
};
|
|
56
|
+
return _setPrototypeOf(o, p);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function _inherits(subClass, superClass) {
|
|
60
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
61
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
62
|
+
}
|
|
63
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
64
|
+
constructor: {
|
|
65
|
+
value: subClass,
|
|
66
|
+
writable: true,
|
|
67
|
+
configurable: true
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
Object.defineProperty(subClass, "prototype", {
|
|
71
|
+
writable: false
|
|
72
|
+
});
|
|
73
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
function _getPrototypeOf(o) {
|
|
77
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
78
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
79
|
+
};
|
|
80
|
+
return _getPrototypeOf(o);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function _isNativeReflectConstruct() {
|
|
84
|
+
try {
|
|
85
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
86
|
+
} catch (t) {}
|
|
87
|
+
return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
|
|
88
|
+
return !!t;
|
|
89
|
+
})();
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function _assertThisInitialized(self) {
|
|
93
|
+
if (self === void 0) {
|
|
94
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
95
|
+
}
|
|
96
|
+
return self;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
function _possibleConstructorReturn(self, call) {
|
|
100
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
101
|
+
return call;
|
|
102
|
+
} else if (call !== void 0) {
|
|
103
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
104
|
+
}
|
|
105
|
+
return _assertThisInitialized(self);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
function _createSuper(Derived) {
|
|
109
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
110
|
+
return function _createSuperInternal() {
|
|
111
|
+
var Super = _getPrototypeOf(Derived),
|
|
112
|
+
result;
|
|
113
|
+
if (hasNativeReflectConstruct) {
|
|
114
|
+
var NewTarget = _getPrototypeOf(this).constructor;
|
|
115
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
116
|
+
} else {
|
|
117
|
+
result = Super.apply(this, arguments);
|
|
118
|
+
}
|
|
119
|
+
return _possibleConstructorReturn(this, result);
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
function _toArray(arr) {
|
|
124
|
+
return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
var interopRequireDefault = {exports: {}};
|
|
128
|
+
|
|
129
|
+
(function (module) {
|
|
130
|
+
function _interopRequireDefault(obj) {
|
|
131
|
+
return obj && obj.__esModule ? obj : {
|
|
132
|
+
"default": obj
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
136
|
+
} (interopRequireDefault));
|
|
137
|
+
|
|
138
|
+
var slicedToArray = {exports: {}};
|
|
139
|
+
|
|
140
|
+
var arrayWithHoles = {exports: {}};
|
|
141
|
+
|
|
142
|
+
(function (module) {
|
|
143
|
+
function _arrayWithHoles(arr) {
|
|
144
|
+
if (Array.isArray(arr)) return arr;
|
|
145
|
+
}
|
|
146
|
+
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
147
|
+
} (arrayWithHoles));
|
|
148
|
+
|
|
149
|
+
var iterableToArrayLimit = {exports: {}};
|
|
150
|
+
|
|
151
|
+
(function (module) {
|
|
152
|
+
function _iterableToArrayLimit(r, l) {
|
|
153
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
154
|
+
if (null != t) {
|
|
155
|
+
var e,
|
|
156
|
+
n,
|
|
157
|
+
i,
|
|
158
|
+
u,
|
|
159
|
+
a = [],
|
|
160
|
+
f = !0,
|
|
161
|
+
o = !1;
|
|
162
|
+
try {
|
|
163
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
164
|
+
if (Object(t) !== t) return;
|
|
165
|
+
f = !1;
|
|
166
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
167
|
+
} catch (r) {
|
|
168
|
+
o = !0, n = r;
|
|
169
|
+
} finally {
|
|
170
|
+
try {
|
|
171
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
172
|
+
} finally {
|
|
173
|
+
if (o) throw n;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
return a;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
180
|
+
} (iterableToArrayLimit));
|
|
181
|
+
|
|
182
|
+
var unsupportedIterableToArray = {exports: {}};
|
|
183
|
+
|
|
184
|
+
var arrayLikeToArray = {exports: {}};
|
|
185
|
+
|
|
186
|
+
(function (module) {
|
|
187
|
+
function _arrayLikeToArray(arr, len) {
|
|
188
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
189
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
190
|
+
return arr2;
|
|
191
|
+
}
|
|
192
|
+
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
193
|
+
} (arrayLikeToArray));
|
|
194
|
+
|
|
195
|
+
(function (module) {
|
|
196
|
+
var arrayLikeToArray$1 = arrayLikeToArray.exports;
|
|
197
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
198
|
+
if (!o) return;
|
|
199
|
+
if (typeof o === "string") return arrayLikeToArray$1(o, minLen);
|
|
200
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
201
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
202
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
203
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray$1(o, minLen);
|
|
204
|
+
}
|
|
205
|
+
module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
206
|
+
} (unsupportedIterableToArray));
|
|
207
|
+
|
|
208
|
+
var nonIterableRest = {exports: {}};
|
|
209
|
+
|
|
210
|
+
(function (module) {
|
|
211
|
+
function _nonIterableRest() {
|
|
212
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
213
|
+
}
|
|
214
|
+
module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
215
|
+
} (nonIterableRest));
|
|
216
|
+
|
|
217
|
+
(function (module) {
|
|
218
|
+
var arrayWithHoles$1 = arrayWithHoles.exports;
|
|
219
|
+
var iterableToArrayLimit$1 = iterableToArrayLimit.exports;
|
|
220
|
+
var unsupportedIterableToArray$1 = unsupportedIterableToArray.exports;
|
|
221
|
+
var nonIterableRest$1 = nonIterableRest.exports;
|
|
222
|
+
function _slicedToArray(arr, i) {
|
|
223
|
+
return arrayWithHoles$1(arr) || iterableToArrayLimit$1(arr, i) || unsupportedIterableToArray$1(arr, i) || nonIterableRest$1();
|
|
224
|
+
}
|
|
225
|
+
module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
226
|
+
} (slicedToArray));
|
|
227
|
+
|
|
228
|
+
var canUseDom = {};
|
|
229
|
+
|
|
230
|
+
var hasRequiredCanUseDom;
|
|
231
|
+
|
|
232
|
+
function requireCanUseDom () {
|
|
233
|
+
if (hasRequiredCanUseDom) return canUseDom;
|
|
234
|
+
hasRequiredCanUseDom = 1;
|
|
235
|
+
|
|
236
|
+
Object.defineProperty(canUseDom, "__esModule", {
|
|
237
|
+
value: true
|
|
238
|
+
});
|
|
239
|
+
canUseDom.default = canUseDom$1;
|
|
240
|
+
function canUseDom$1() {
|
|
241
|
+
return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
242
|
+
}
|
|
243
|
+
return canUseDom;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
var interopRequireWildcard = {exports: {}};
|
|
247
|
+
|
|
248
|
+
(function (module) {
|
|
249
|
+
var _typeof = _typeof$1.exports["default"];
|
|
250
|
+
function _getRequireWildcardCache(e) {
|
|
251
|
+
if ("function" != typeof WeakMap) return null;
|
|
252
|
+
var r = new WeakMap(),
|
|
253
|
+
t = new WeakMap();
|
|
254
|
+
return (_getRequireWildcardCache = function _getRequireWildcardCache(e) {
|
|
255
|
+
return e ? t : r;
|
|
256
|
+
})(e);
|
|
257
|
+
}
|
|
258
|
+
function _interopRequireWildcard(e, r) {
|
|
259
|
+
if (!r && e && e.__esModule) return e;
|
|
260
|
+
if (null === e || "object" != _typeof(e) && "function" != typeof e) return {
|
|
261
|
+
"default": e
|
|
262
|
+
};
|
|
263
|
+
var t = _getRequireWildcardCache(r);
|
|
264
|
+
if (t && t.has(e)) return t.get(e);
|
|
265
|
+
var n = {
|
|
266
|
+
__proto__: null
|
|
267
|
+
},
|
|
268
|
+
a = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
269
|
+
for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
|
|
270
|
+
var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
|
|
271
|
+
i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
|
|
272
|
+
}
|
|
273
|
+
return n["default"] = e, t && t.set(e, n), n;
|
|
274
|
+
}
|
|
275
|
+
module.exports = _interopRequireWildcard, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
276
|
+
} (interopRequireWildcard));
|
|
277
|
+
|
|
278
|
+
var useLayoutEffect$1 = {};
|
|
279
|
+
|
|
280
|
+
var default_1;
|
|
281
|
+
|
|
282
|
+
var _interopRequireDefault$1 = interopRequireDefault.exports.default;
|
|
283
|
+
var _interopRequireWildcard$1 = interopRequireWildcard.exports.default;
|
|
284
|
+
Object.defineProperty(useLayoutEffect$1, "__esModule", {
|
|
285
|
+
value: true
|
|
286
|
+
});
|
|
287
|
+
useLayoutEffect$1.useLayoutUpdateEffect = default_1 = useLayoutEffect$1.default = void 0;
|
|
288
|
+
var React$1 = _interopRequireWildcard$1(React__default);
|
|
289
|
+
var _canUseDom = _interopRequireDefault$1(requireCanUseDom());
|
|
290
|
+
/**
|
|
291
|
+
* Wrap `React.useLayoutEffect` which will not throw warning message in test env
|
|
292
|
+
*/
|
|
293
|
+
var useInternalLayoutEffect = process.env.NODE_ENV !== 'test' && (0, _canUseDom.default)() ? React$1.useLayoutEffect : React$1.useEffect;
|
|
294
|
+
var useLayoutEffect = function useLayoutEffect(callback, deps) {
|
|
295
|
+
var firstMountRef = React$1.useRef(true);
|
|
296
|
+
useInternalLayoutEffect(function () {
|
|
297
|
+
return callback(firstMountRef.current);
|
|
298
|
+
}, deps);
|
|
299
|
+
|
|
300
|
+
// We tell react that first mount has passed
|
|
301
|
+
useInternalLayoutEffect(function () {
|
|
302
|
+
firstMountRef.current = false;
|
|
303
|
+
return function () {
|
|
304
|
+
firstMountRef.current = true;
|
|
305
|
+
};
|
|
306
|
+
}, []);
|
|
307
|
+
};
|
|
308
|
+
useLayoutEffect$1.useLayoutUpdateEffect = function useLayoutUpdateEffect(callback, deps) {
|
|
309
|
+
useLayoutEffect(function (firstMount) {
|
|
310
|
+
if (!firstMount) {
|
|
311
|
+
return callback();
|
|
312
|
+
}
|
|
313
|
+
}, deps);
|
|
314
|
+
};
|
|
315
|
+
default_1 = useLayoutEffect$1.default = useLayoutEffect;
|
|
316
|
+
|
|
317
|
+
var useState = {};
|
|
318
|
+
|
|
319
|
+
var _interopRequireWildcard = interopRequireWildcard.exports.default;
|
|
320
|
+
var _interopRequireDefault = interopRequireDefault.exports.default;
|
|
321
|
+
Object.defineProperty(useState, "__esModule", {
|
|
322
|
+
value: true
|
|
323
|
+
});
|
|
324
|
+
var _default = useState.default = useSafeState;
|
|
325
|
+
var _slicedToArray2 = _interopRequireDefault(slicedToArray.exports);
|
|
326
|
+
var React = _interopRequireWildcard(React__default);
|
|
327
|
+
/**
|
|
328
|
+
* Same as React.useState but `setState` accept `ignoreDestroy` param to not to setState after destroyed.
|
|
329
|
+
* We do not make this auto is to avoid real memory leak.
|
|
330
|
+
* Developer should confirm it's safe to ignore themselves.
|
|
331
|
+
*/
|
|
332
|
+
function useSafeState(defaultValue) {
|
|
333
|
+
var destroyRef = React.useRef(false);
|
|
334
|
+
var _React$useState = React.useState(defaultValue),
|
|
335
|
+
_React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2),
|
|
336
|
+
value = _React$useState2[0],
|
|
337
|
+
setValue = _React$useState2[1];
|
|
338
|
+
React.useEffect(function () {
|
|
339
|
+
destroyRef.current = false;
|
|
340
|
+
return function () {
|
|
341
|
+
destroyRef.current = true;
|
|
342
|
+
};
|
|
343
|
+
}, []);
|
|
344
|
+
function safeSetState(updater, ignoreDestroy) {
|
|
345
|
+
if (ignoreDestroy && destroyRef.current) {
|
|
346
|
+
return;
|
|
347
|
+
}
|
|
348
|
+
setValue(updater);
|
|
349
|
+
}
|
|
350
|
+
return [value, safeSetState];
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
export { _inherits as _, _createSuper as a, _classCallCheck as b, _createClass as c, _toArray as d, interopRequireWildcard as e, useLayoutEffect$1 as f, _isNativeReflectConstruct as g, _setPrototypeOf as h, interopRequireDefault as i, _getPrototypeOf as j, _assertThisInitialized as k, default_1 as l, _default as m, requireCanUseDom as r, slicedToArray as s, toArray as t, useState as u };
|
package/index.d.ts
CHANGED
|
@@ -64,6 +64,8 @@ export { default as DynamicMultiBox } from './DynamicMultiBox';
|
|
|
64
64
|
export * from './DynamicMultiBox';
|
|
65
65
|
export { default as Empty } from './Empty';
|
|
66
66
|
export * from './Empty';
|
|
67
|
+
export { default as FieldForm } from './FieldForm';
|
|
68
|
+
export * from './FieldForm';
|
|
67
69
|
export { default as Form } from './Form';
|
|
68
70
|
export * from './Form';
|
|
69
71
|
export { default as FormItem } from './FormItem';
|
package/index.js
CHANGED
|
@@ -10,7 +10,7 @@ export { Button } from './Button/index.js';
|
|
|
10
10
|
export { ButtonGroup } from './ButtonGroup/index.js';
|
|
11
11
|
export { Card } from './Card/index.js';
|
|
12
12
|
export { Carousel } from './Carousel/index.js';
|
|
13
|
-
export { C as Cascader } from './_verture/index-
|
|
13
|
+
export { C as Cascader } from './_verture/index-0a300edb.js';
|
|
14
14
|
export { Checkbox } from './Checkbox/index.js';
|
|
15
15
|
export { CheckboxGroup } from './CheckboxGroup/index.js';
|
|
16
16
|
export { default as CodeEditor, CompletionItemKind } from './CodeEditor/index.js';
|
|
@@ -31,9 +31,10 @@ export { Drawer } from './Drawer/index.js';
|
|
|
31
31
|
export { D as Dropdown } from './_verture/index-bde7aabe.js';
|
|
32
32
|
export { default as DynamicMultiBox } from './DynamicMultiBox/index.js';
|
|
33
33
|
export { default as Empty } from './Empty/index.js';
|
|
34
|
+
export { default as FieldForm } from './FieldForm/index.js';
|
|
34
35
|
export { default as Form } from './Form/index.js';
|
|
35
|
-
export { F as FormItem } from './_verture/index-
|
|
36
|
-
export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-
|
|
36
|
+
export { F as FormItem } from './_verture/index-43c653bb.js';
|
|
37
|
+
export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-6ac2e323.js';
|
|
37
38
|
export { G as GlobalContext, c as changeConfirmLocale, g as getConfirmLocale } from './_verture/index-ca413216.js';
|
|
38
39
|
export { default as Help } from './Help/index.js';
|
|
39
40
|
export { default as HelperText } from './HelperText/index.js';
|
|
@@ -87,7 +88,7 @@ export { Title } from './Title/index.js';
|
|
|
87
88
|
export { ToggleButton, ToggleButtonGroup } from './ToggleButton/index.js';
|
|
88
89
|
export { Tooltip } from './Tooltip/index.js';
|
|
89
90
|
export { SSortablejs, Transfer } from './Transfer/index.js';
|
|
90
|
-
export { T as Tree } from './_verture/index-
|
|
91
|
+
export { T as Tree } from './_verture/index-320d67c4.js';
|
|
91
92
|
export { default as Upload } from './Upload/index.js';
|
|
92
93
|
export { default as Utils, getDateYYYYMMddHHMM, isObject, pixelReplacement } from './Utils/index.js';
|
|
93
94
|
export { default as locale } from './locale/index.js';
|
|
@@ -114,12 +115,15 @@ import '@para-ui/icons/LoadingF';
|
|
|
114
115
|
import 'react-slick';
|
|
115
116
|
import '@para-ui/icons/RightCircleF';
|
|
116
117
|
import '@para-ui/icons/LeftCircleF';
|
|
117
|
-
import './_verture/
|
|
118
|
-
import './_verture/
|
|
119
|
-
import './_verture/
|
|
120
|
-
import './_verture/toConsumableArray-
|
|
121
|
-
import '
|
|
118
|
+
import './_verture/index-1856bbeb.js';
|
|
119
|
+
import './_verture/defineProperty-6f62bb2a.js';
|
|
120
|
+
import './_verture/typeof-adeedc13.js';
|
|
121
|
+
import './_verture/toConsumableArray-599cd94a.js';
|
|
122
|
+
import './_verture/slicedToArray-61604a6c.js';
|
|
123
|
+
import './_verture/Portal-502bb85e.js';
|
|
124
|
+
import './_verture/useState-f2419d68.js';
|
|
122
125
|
import './_verture/typeof-6ec38efd.js';
|
|
126
|
+
import 'rc-motion';
|
|
123
127
|
import 'rc-tree/lib/utils/conductUtil';
|
|
124
128
|
import '@para-ui/icons/Right';
|
|
125
129
|
import '@para-ui/icons/CloseCircleF';
|
|
@@ -157,6 +161,9 @@ import '@para-ui/icons/Panel';
|
|
|
157
161
|
import '@para-ui/icons/Drag';
|
|
158
162
|
import './_verture/index-0f5ee6f7.js';
|
|
159
163
|
import './_verture/sortable.esm-76fe46a4.js';
|
|
164
|
+
import './_verture/isEqual-30b6f859.js';
|
|
165
|
+
import '@para-ui/icons/Loading';
|
|
166
|
+
import '@para-ui/icons/CheckCircleF';
|
|
160
167
|
import '@para-ui/icons/LinkGroup';
|
|
161
168
|
import '@para-ui/icons/UploadFile';
|
|
162
169
|
import '@para-ui/icons/Help';
|
|
@@ -172,7 +179,6 @@ import 'rc-input-number';
|
|
|
172
179
|
import '@para-ui/icons/Up';
|
|
173
180
|
import '@para-ui/icons/IndentRightFill';
|
|
174
181
|
import '@para-ui/icons/IndentLeftFill';
|
|
175
|
-
import '@para-ui/icons/CheckCircleF';
|
|
176
182
|
import 'rc-notification';
|
|
177
183
|
import 'rc-pagination';
|
|
178
184
|
import '@para-ui/icons/DoubleLeft';
|
|
@@ -182,7 +188,6 @@ import '@para-ui/icons/Plus';
|
|
|
182
188
|
import '@para-ui/icons/EditOutline';
|
|
183
189
|
import '@para-ui/icons/Message';
|
|
184
190
|
import '@para-ui/icons/Set';
|
|
185
|
-
import '@para-ui/icons/Loading';
|
|
186
191
|
import './_verture/index-8ac46bd9.js';
|
|
187
192
|
import 'rc-slider';
|
|
188
193
|
import './_verture/tinycolor-ece3542d.js';
|
package/locale/en-US.d.ts
CHANGED
|
@@ -187,6 +187,52 @@ declare const _default: {
|
|
|
187
187
|
click: string;
|
|
188
188
|
refresh: string;
|
|
189
189
|
};
|
|
190
|
+
FieldForm: {
|
|
191
|
+
default: string;
|
|
192
|
+
required: string;
|
|
193
|
+
enum: string;
|
|
194
|
+
whitespace: string;
|
|
195
|
+
date: string;
|
|
196
|
+
types: {
|
|
197
|
+
string: string;
|
|
198
|
+
method: string;
|
|
199
|
+
array: string;
|
|
200
|
+
object: string;
|
|
201
|
+
number: string;
|
|
202
|
+
date: string;
|
|
203
|
+
boolean: string;
|
|
204
|
+
integer: string;
|
|
205
|
+
float: string;
|
|
206
|
+
regexp: string;
|
|
207
|
+
email: string;
|
|
208
|
+
url: string;
|
|
209
|
+
hex: string;
|
|
210
|
+
};
|
|
211
|
+
string: string;
|
|
212
|
+
number: string;
|
|
213
|
+
array: string;
|
|
214
|
+
pattern: {
|
|
215
|
+
mismatch: string;
|
|
216
|
+
};
|
|
217
|
+
format: string;
|
|
218
|
+
parse: string;
|
|
219
|
+
invalid: string;
|
|
220
|
+
method: string;
|
|
221
|
+
object: string;
|
|
222
|
+
boolean: string;
|
|
223
|
+
integer: string;
|
|
224
|
+
float: string;
|
|
225
|
+
regexp: string;
|
|
226
|
+
email: string;
|
|
227
|
+
url: string;
|
|
228
|
+
hex: string;
|
|
229
|
+
len: string;
|
|
230
|
+
min: string;
|
|
231
|
+
max: string;
|
|
232
|
+
range: string;
|
|
233
|
+
mismatch: string;
|
|
234
|
+
colon: string;
|
|
235
|
+
};
|
|
190
236
|
FormItem: {
|
|
191
237
|
choseFile: string;
|
|
192
238
|
unEmpty: string;
|
package/locale/index.d.ts
CHANGED
|
@@ -188,6 +188,52 @@ declare const _default: {
|
|
|
188
188
|
click: string;
|
|
189
189
|
refresh: string;
|
|
190
190
|
};
|
|
191
|
+
FieldForm: {
|
|
192
|
+
default: string;
|
|
193
|
+
required: string;
|
|
194
|
+
enum: string;
|
|
195
|
+
whitespace: string;
|
|
196
|
+
date: string;
|
|
197
|
+
types: {
|
|
198
|
+
string: string;
|
|
199
|
+
method: string;
|
|
200
|
+
array: string;
|
|
201
|
+
object: string;
|
|
202
|
+
number: string;
|
|
203
|
+
date: string;
|
|
204
|
+
boolean: string;
|
|
205
|
+
integer: string;
|
|
206
|
+
float: string;
|
|
207
|
+
regexp: string;
|
|
208
|
+
email: string;
|
|
209
|
+
url: string;
|
|
210
|
+
hex: string;
|
|
211
|
+
};
|
|
212
|
+
string: string;
|
|
213
|
+
number: string;
|
|
214
|
+
array: string;
|
|
215
|
+
pattern: {
|
|
216
|
+
mismatch: string;
|
|
217
|
+
};
|
|
218
|
+
format: string;
|
|
219
|
+
parse: string;
|
|
220
|
+
invalid: string;
|
|
221
|
+
method: string;
|
|
222
|
+
object: string;
|
|
223
|
+
boolean: string;
|
|
224
|
+
integer: string;
|
|
225
|
+
float: string;
|
|
226
|
+
regexp: string;
|
|
227
|
+
email: string;
|
|
228
|
+
url: string;
|
|
229
|
+
hex: string;
|
|
230
|
+
len: string;
|
|
231
|
+
min: string;
|
|
232
|
+
max: string;
|
|
233
|
+
range: string;
|
|
234
|
+
mismatch: string;
|
|
235
|
+
colon: string;
|
|
236
|
+
};
|
|
191
237
|
FormItem: {
|
|
192
238
|
choseFile: string;
|
|
193
239
|
unEmpty: string;
|
|
@@ -502,6 +548,52 @@ declare const _default: {
|
|
|
502
548
|
click: string;
|
|
503
549
|
refresh: string;
|
|
504
550
|
};
|
|
551
|
+
FieldForm: {
|
|
552
|
+
default: string;
|
|
553
|
+
required: string;
|
|
554
|
+
enum: string;
|
|
555
|
+
whitespace: string;
|
|
556
|
+
date: string;
|
|
557
|
+
types: {
|
|
558
|
+
string: string;
|
|
559
|
+
method: string;
|
|
560
|
+
array: string;
|
|
561
|
+
object: string;
|
|
562
|
+
number: string;
|
|
563
|
+
date: string;
|
|
564
|
+
boolean: string;
|
|
565
|
+
integer: string;
|
|
566
|
+
float: string;
|
|
567
|
+
regexp: string;
|
|
568
|
+
email: string;
|
|
569
|
+
url: string;
|
|
570
|
+
hex: string;
|
|
571
|
+
};
|
|
572
|
+
string: string;
|
|
573
|
+
number: string;
|
|
574
|
+
array: string;
|
|
575
|
+
pattern: {
|
|
576
|
+
mismatch: string;
|
|
577
|
+
};
|
|
578
|
+
format: string;
|
|
579
|
+
parse: string;
|
|
580
|
+
invalid: string;
|
|
581
|
+
method: string;
|
|
582
|
+
object: string;
|
|
583
|
+
boolean: string;
|
|
584
|
+
integer: string;
|
|
585
|
+
float: string;
|
|
586
|
+
regexp: string;
|
|
587
|
+
email: string;
|
|
588
|
+
url: string;
|
|
589
|
+
hex: string;
|
|
590
|
+
len: string;
|
|
591
|
+
min: string;
|
|
592
|
+
max: string;
|
|
593
|
+
range: string;
|
|
594
|
+
mismatch: string;
|
|
595
|
+
colon: string;
|
|
596
|
+
};
|
|
505
597
|
FormItem: {
|
|
506
598
|
choseFile: string;
|
|
507
599
|
unEmpty: string;
|