uiw 4.15.1 → 4.16.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/cjs/index.d.ts +2 -0
- package/cjs/index.js +21 -0
- package/cjs/index.js.map +2 -2
- package/dist/uiw.css +191 -188
- package/dist/uiw.js +749 -626
- package/dist/uiw.min.css +1 -1
- package/dist/uiw.min.js +1 -1
- package/esm/index.d.ts +2 -0
- package/esm/index.js +2 -0
- package/esm/index.js.map +3 -2
- package/package.json +60 -59
- package/src/index.ts +2 -0
package/dist/uiw.js
CHANGED
|
@@ -322,6 +322,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
322
322
|
"Calendar": () => (/* reexport */ Calendar),
|
|
323
323
|
"Card": () => (/* reexport */ react_card_esm),
|
|
324
324
|
"Carousel": () => (/* reexport */ react_carousel_esm),
|
|
325
|
+
"Cascader": () => (/* reexport */ react_cascader_esm),
|
|
325
326
|
"Checkbox": () => (/* reexport */ react_checkbox_esm),
|
|
326
327
|
"CheckboxGroup": () => (/* reexport */ CheckboxGroup),
|
|
327
328
|
"Col": () => (/* reexport */ Col),
|
|
@@ -4187,228 +4188,690 @@ function Carousel(props, ref) {
|
|
|
4187
4188
|
|
|
4188
4189
|
/* harmony default export */ const react_carousel_esm = (/*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(Carousel));
|
|
4189
4190
|
|
|
4190
|
-
;// CONCATENATED MODULE: ../react-
|
|
4191
|
+
;// CONCATENATED MODULE: ../react-dropdown/esm/index.js
|
|
4191
4192
|
|
|
4192
4193
|
|
|
4193
|
-
var
|
|
4194
|
+
var react_dropdown_esm_excluded = ["prefixCls", "placement", "className", "menu", "children", "disabled"];
|
|
4194
4195
|
|
|
4195
4196
|
|
|
4196
4197
|
|
|
4197
|
-
|
|
4198
|
+
|
|
4199
|
+
function Dropdown(props) {
|
|
4198
4200
|
var {
|
|
4199
|
-
prefixCls = 'w-
|
|
4200
|
-
|
|
4201
|
-
disabled = false,
|
|
4202
|
-
value = '',
|
|
4201
|
+
prefixCls = 'w-dropdown',
|
|
4202
|
+
placement = 'bottomLeft',
|
|
4203
4203
|
className,
|
|
4204
|
-
|
|
4204
|
+
menu,
|
|
4205
4205
|
children,
|
|
4206
|
-
|
|
4207
|
-
checked: prChecked = false,
|
|
4208
|
-
onChange
|
|
4206
|
+
disabled
|
|
4209
4207
|
} = props,
|
|
4210
|
-
other = _objectWithoutPropertiesLoose(props,
|
|
4211
|
-
|
|
4212
|
-
var [checked, setChecked] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(prChecked);
|
|
4213
|
-
var [prevChecked, setPrevChecked] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)();
|
|
4214
|
-
|
|
4215
|
-
if (prChecked !== prevChecked) {
|
|
4216
|
-
setPrevChecked(prChecked);
|
|
4217
|
-
}
|
|
4218
|
-
|
|
4219
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => {
|
|
4220
|
-
if (prChecked !== prevChecked) {
|
|
4221
|
-
setChecked(prChecked);
|
|
4222
|
-
}
|
|
4223
|
-
}, [prevChecked]);
|
|
4224
|
-
var cls = [prefixCls, className, disabled ? 'disabled' : null, size ? prefixCls + "-" + size : null].filter(Boolean).join(' ').trim();
|
|
4225
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => {
|
|
4226
|
-
if (checked !== props.checked) {
|
|
4227
|
-
setChecked(!!props.checked);
|
|
4228
|
-
}
|
|
4229
|
-
}, [props.checked]);
|
|
4230
|
-
|
|
4231
|
-
function handleChange(e) {
|
|
4232
|
-
e.persist();
|
|
4233
|
-
setChecked(e.target.checked);
|
|
4234
|
-
onChange && onChange(e);
|
|
4235
|
-
}
|
|
4208
|
+
other = _objectWithoutPropertiesLoose(props, react_dropdown_esm_excluded);
|
|
4236
4209
|
|
|
4237
|
-
var
|
|
4238
|
-
return /*#__PURE__*/(0,jsx_runtime.
|
|
4210
|
+
var cls = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => [prefixCls, className].filter(Boolean).join(' ').trim(), [prefixCls, className]);
|
|
4211
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(react_overlay_trigger_esm, _extends({
|
|
4212
|
+
isOutside: true,
|
|
4213
|
+
autoAdjustOverflow: true,
|
|
4239
4214
|
className: cls,
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
onChange: handleChange,
|
|
4248
|
-
ref: ref
|
|
4249
|
-
})), label && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
4250
|
-
className: prefixCls + "-text",
|
|
4251
|
-
children: label
|
|
4252
|
-
})]
|
|
4253
|
-
});
|
|
4254
|
-
});
|
|
4215
|
+
disabled: disabled,
|
|
4216
|
+
placement: placement
|
|
4217
|
+
}, other, {
|
|
4218
|
+
overlay: menu,
|
|
4219
|
+
children: /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(children, Object.assign({}, children.props))
|
|
4220
|
+
}));
|
|
4221
|
+
}
|
|
4255
4222
|
|
|
4256
|
-
;// CONCATENATED MODULE: ../react-
|
|
4223
|
+
;// CONCATENATED MODULE: ../react-menu/esm/style/item.css
|
|
4257
4224
|
// extracted by mini-css-extract-plugin
|
|
4258
|
-
/* harmony default export */ const
|
|
4259
|
-
;// CONCATENATED MODULE: ../react-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4225
|
+
/* harmony default export */ const style_item = ({});
|
|
4226
|
+
;// CONCATENATED MODULE: ../react-menu/esm/MenuItem.js
|
|
4263
4227
|
|
|
4264
4228
|
|
|
4265
|
-
|
|
4266
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)(RadioAbstract, _extends({
|
|
4267
|
-
ref: ref
|
|
4268
|
-
}, props));
|
|
4269
|
-
}));
|
|
4229
|
+
var MenuItem_excluded = ["prefixCls", "className", "tagName", "children", "disabled", "multiline", "icon", "text", "active", "addonAfter", "isSubMenuItem"];
|
|
4270
4230
|
|
|
4271
|
-
;// CONCATENATED MODULE: ../react-radio/esm/style/group.css
|
|
4272
|
-
// extracted by mini-css-extract-plugin
|
|
4273
|
-
/* harmony default export */ const group = ({});
|
|
4274
|
-
;// CONCATENATED MODULE: ../react-radio/esm/RadioGroup.js
|
|
4275
4231
|
|
|
4276
4232
|
|
|
4277
|
-
var RadioGroup_excluded = ["prefixCls", "className", "name", "value", "onChange", "children"];
|
|
4278
4233
|
|
|
4279
4234
|
|
|
4235
|
+
var disabledProps = {
|
|
4236
|
+
href: undefined,
|
|
4237
|
+
onClick: undefined,
|
|
4238
|
+
onMouseDown: undefined,
|
|
4239
|
+
onMouseEnter: undefined,
|
|
4240
|
+
onMouseLeave: undefined,
|
|
4241
|
+
tabIndex: -1
|
|
4242
|
+
};
|
|
4280
4243
|
|
|
4281
|
-
|
|
4244
|
+
function Internal(props, ref) {
|
|
4282
4245
|
var {
|
|
4283
|
-
prefixCls = 'w-
|
|
4246
|
+
prefixCls = 'w-menu-item',
|
|
4284
4247
|
className,
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4248
|
+
tagName: TagName = 'a',
|
|
4249
|
+
disabled = false,
|
|
4250
|
+
multiline = false,
|
|
4251
|
+
icon,
|
|
4252
|
+
text,
|
|
4253
|
+
active = false,
|
|
4254
|
+
addonAfter,
|
|
4255
|
+
isSubMenuItem
|
|
4289
4256
|
} = props,
|
|
4290
|
-
|
|
4257
|
+
htmlProps = _objectWithoutPropertiesLoose(props, MenuItem_excluded);
|
|
4291
4258
|
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
className:
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
})
|
|
4259
|
+
var anchorCls = [prefixCls, active ? 'active' : null, disabled ? 'w-disabled' : null, className].filter(Boolean).join(' ').trim();
|
|
4260
|
+
var tagComp = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(TagName, _extends({}, htmlProps, disabled ? disabledProps : {}, {
|
|
4261
|
+
className: anchorCls,
|
|
4262
|
+
ref
|
|
4263
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(external_root_React_commonjs2_react_commonjs_react_amd_react_.Fragment, {
|
|
4264
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
|
|
4265
|
+
className: prefixCls + "-icon",
|
|
4266
|
+
type: icon
|
|
4267
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
4268
|
+
className: [prefixCls && prefixCls + "-text", !multiline && prefixCls + "-multiline"].filter(Boolean).join(' ').trim(),
|
|
4269
|
+
children: text
|
|
4270
|
+
}), addonAfter]
|
|
4304
4271
|
}));
|
|
4305
|
-
}));
|
|
4306
|
-
|
|
4307
|
-
;// CONCATENATED MODULE: ../react-radio/esm/index.js
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
4272
|
|
|
4273
|
+
if (isSubMenuItem) {
|
|
4274
|
+
return tagComp;
|
|
4275
|
+
}
|
|
4312
4276
|
|
|
4277
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
|
|
4278
|
+
children: [" ", tagComp, " "]
|
|
4279
|
+
});
|
|
4280
|
+
}
|
|
4313
4281
|
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
/* harmony default export */ const style_group = ({});
|
|
4317
|
-
;// CONCATENATED MODULE: ../react-checkbox/esm/Group.js
|
|
4282
|
+
var MenuItem = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(Internal);
|
|
4283
|
+
MenuItem.displayName = 'uiw.MenuItem';
|
|
4318
4284
|
|
|
4285
|
+
;// CONCATENATED MODULE: ../react-menu/esm/Divider.js
|
|
4319
4286
|
|
|
4320
|
-
var Group_excluded = ["prefixCls", "className", "name", "value", "onChange"];
|
|
4321
4287
|
|
|
4288
|
+
var Divider_excluded = ["prefixCls", "className", "title"];
|
|
4322
4289
|
|
|
4323
4290
|
|
|
4324
|
-
var
|
|
4291
|
+
var MenuDivider = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef((props, ref) => {
|
|
4325
4292
|
var {
|
|
4326
|
-
prefixCls = 'w-
|
|
4293
|
+
prefixCls = 'w-menu-divider',
|
|
4327
4294
|
className,
|
|
4328
|
-
|
|
4329
|
-
value,
|
|
4330
|
-
onChange: _onChange
|
|
4295
|
+
title
|
|
4331
4296
|
} = props,
|
|
4332
|
-
|
|
4297
|
+
htmlProps = _objectWithoutPropertiesLoose(props, Divider_excluded);
|
|
4333
4298
|
|
|
4334
|
-
var valueRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)([]);
|
|
4335
4299
|
var cls = [prefixCls, className].filter(Boolean).join(' ').trim();
|
|
4336
|
-
var childs = external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.toArray(props.children);
|
|
4337
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => valueRef.current = value || [], [value]);
|
|
4338
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", _extends({}, other, {
|
|
4339
|
-
className: cls,
|
|
4340
|
-
ref: ref,
|
|
4341
|
-
children: external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.map(childs, element => {
|
|
4342
|
-
if (! /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(element)) return;
|
|
4343
|
-
|
|
4344
|
-
if (Array.isArray(value) && element && element.props && element.props.value && value.includes(element.props.value)) {
|
|
4345
|
-
if (!valueRef.current.includes(element.props.value)) {
|
|
4346
|
-
valueRef.current.push(element.props.value);
|
|
4347
|
-
}
|
|
4348
|
-
}
|
|
4349
|
-
|
|
4350
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(element, Object.assign({}, element.props, {
|
|
4351
|
-
name,
|
|
4352
|
-
checked: valueRef.current.includes(element.props.value),
|
|
4353
|
-
onChange: e => {
|
|
4354
|
-
if (e.target.type && e.target.type !== 'checkbox') return;
|
|
4355
|
-
var checked = e.target.checked;
|
|
4356
|
-
var include = valueRef.current.includes(element.props.value);
|
|
4357
4300
|
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4301
|
+
if (!title) {
|
|
4302
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", _extends({}, htmlProps, {
|
|
4303
|
+
ref: ref,
|
|
4304
|
+
className: cls
|
|
4305
|
+
}));
|
|
4306
|
+
}
|
|
4363
4307
|
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4308
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", _extends({}, htmlProps, {
|
|
4309
|
+
ref: ref,
|
|
4310
|
+
className: cls,
|
|
4311
|
+
"data-menu": "divider",
|
|
4312
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
|
|
4313
|
+
children: title
|
|
4367
4314
|
})
|
|
4368
4315
|
}));
|
|
4369
4316
|
});
|
|
4317
|
+
MenuDivider.displayName = 'uiw.MenuDivider';
|
|
4370
4318
|
|
|
4371
|
-
;// CONCATENATED MODULE: ../react-
|
|
4319
|
+
;// CONCATENATED MODULE: ../react-menu/esm/style/submenu.css
|
|
4372
4320
|
// extracted by mini-css-extract-plugin
|
|
4373
|
-
/* harmony default export */ const
|
|
4374
|
-
;// CONCATENATED MODULE: ../react-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
var Checkbox_excluded = ["className", "prefixCls", "type", "indeterminate", "disabled", "value"];
|
|
4321
|
+
/* harmony default export */ const submenu = ({});
|
|
4322
|
+
;// CONCATENATED MODULE: ../react-menu/esm/SubMenu.js
|
|
4378
4323
|
|
|
4379
4324
|
|
|
4325
|
+
var SubMenu_excluded = ["prefixCls", "className", "disabled", "overlayProps", "children", "collapse", "inlineIndent", "inlineCollapsed"];
|
|
4380
4326
|
|
|
4381
4327
|
|
|
4382
4328
|
|
|
4383
4329
|
|
|
4384
|
-
function InternalCheckbox(props, ref) {
|
|
4385
|
-
var {
|
|
4386
|
-
className,
|
|
4387
|
-
prefixCls = 'w-checkbox',
|
|
4388
|
-
type = 'checkbox',
|
|
4389
|
-
indeterminate = false,
|
|
4390
|
-
disabled = false,
|
|
4391
|
-
value = ''
|
|
4392
|
-
} = props,
|
|
4393
|
-
other = _objectWithoutPropertiesLoose(props, Checkbox_excluded);
|
|
4394
4330
|
|
|
4395
|
-
var cls = [className, indeterminate && 'indeterminate'].filter(Boolean).join(' ').trim();
|
|
4396
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)(RadioAbstract, _extends({
|
|
4397
|
-
ref: ref
|
|
4398
|
-
}, other, {
|
|
4399
|
-
type: type,
|
|
4400
|
-
prefixCls: prefixCls,
|
|
4401
|
-
disabled: disabled,
|
|
4402
|
-
value: value,
|
|
4403
|
-
className: cls
|
|
4404
|
-
}));
|
|
4405
|
-
}
|
|
4406
4331
|
|
|
4407
|
-
var Checkbox = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(InternalCheckbox);
|
|
4408
|
-
Checkbox.Group = CheckboxGroup;
|
|
4409
|
-
/* harmony default export */ const esm_Checkbox = (Checkbox);
|
|
4410
4332
|
|
|
4411
|
-
|
|
4333
|
+
|
|
4334
|
+
function checkedMenuItem(node) {
|
|
4335
|
+
var isCheck = false;
|
|
4336
|
+
|
|
4337
|
+
if (node) {
|
|
4338
|
+
// eslint-disable-next-line
|
|
4339
|
+
do {
|
|
4340
|
+
if (!node.dataset.menu) {
|
|
4341
|
+
isCheck = true;
|
|
4342
|
+
}
|
|
4343
|
+
|
|
4344
|
+
if (node.dataset.menu && /^(subitem|divider)$/.test(node.dataset.menu)) {
|
|
4345
|
+
isCheck = false;
|
|
4346
|
+
}
|
|
4347
|
+
} while (!node.dataset.menu && (node = node.parentNode));
|
|
4348
|
+
}
|
|
4349
|
+
|
|
4350
|
+
return isCheck;
|
|
4351
|
+
}
|
|
4352
|
+
|
|
4353
|
+
function IconView(_ref) {
|
|
4354
|
+
var {
|
|
4355
|
+
prefixCls,
|
|
4356
|
+
collapse,
|
|
4357
|
+
isOpen
|
|
4358
|
+
} = _ref;
|
|
4359
|
+
return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
|
|
4360
|
+
type: "caret-right",
|
|
4361
|
+
className: [prefixCls ? prefixCls + "-collapse-icon" : null, !collapse && isOpen ? 'w-open' : null, !collapse && !isOpen ? 'w-close' : null].filter(Boolean).join(' ').trim()
|
|
4362
|
+
}), [prefixCls, collapse, isOpen]);
|
|
4363
|
+
}
|
|
4364
|
+
|
|
4365
|
+
var SubMenu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(function (props, ref) {
|
|
4366
|
+
var {
|
|
4367
|
+
prefixCls = 'w-menu-subitem',
|
|
4368
|
+
className,
|
|
4369
|
+
disabled,
|
|
4370
|
+
overlayProps = {},
|
|
4371
|
+
children,
|
|
4372
|
+
collapse = false,
|
|
4373
|
+
inlineIndent
|
|
4374
|
+
} = props,
|
|
4375
|
+
other = _objectWithoutPropertiesLoose(props, SubMenu_excluded);
|
|
4376
|
+
|
|
4377
|
+
var overlayTriggerProps = {};
|
|
4378
|
+
var menuProps = {
|
|
4379
|
+
bordered: true,
|
|
4380
|
+
children,
|
|
4381
|
+
inlineIndent,
|
|
4382
|
+
className: [prefixCls ? prefixCls + "-overlay" : null].filter(Boolean).join(' ').trim()
|
|
4383
|
+
};
|
|
4384
|
+
var popupRef = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useRef(null);
|
|
4385
|
+
var [isOpen, setIsOpen] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false);
|
|
4386
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => {
|
|
4387
|
+
setIsOpen(false);
|
|
4388
|
+
}, [collapse]);
|
|
4389
|
+
|
|
4390
|
+
function onClick(e) {
|
|
4391
|
+
var target = e.currentTarget;
|
|
4392
|
+
var related = e.relatedTarget || e.nativeEvent.target;
|
|
4393
|
+
if (target.children.length < 1) return;
|
|
4394
|
+
|
|
4395
|
+
if (checkedMenuItem(related)) {
|
|
4396
|
+
if (popupRef.current) {
|
|
4397
|
+
popupRef.current.hide();
|
|
4398
|
+
}
|
|
4399
|
+
}
|
|
4400
|
+
}
|
|
4401
|
+
|
|
4402
|
+
function onExit(node) {
|
|
4403
|
+
node.style.height = node.scrollHeight + "px";
|
|
4404
|
+
setIsOpen(false);
|
|
4405
|
+
}
|
|
4406
|
+
|
|
4407
|
+
function onExiting(node) {
|
|
4408
|
+
node.style.height = '0px';
|
|
4409
|
+
}
|
|
4410
|
+
|
|
4411
|
+
function onEnter(node) {
|
|
4412
|
+
node.style.height = '1px';
|
|
4413
|
+
setIsOpen(true);
|
|
4414
|
+
}
|
|
4415
|
+
|
|
4416
|
+
function onEntering(node) {
|
|
4417
|
+
node.style.height = node.scrollHeight + "px";
|
|
4418
|
+
}
|
|
4419
|
+
|
|
4420
|
+
function onEntered(node) {
|
|
4421
|
+
node.style.height = 'initial';
|
|
4422
|
+
}
|
|
4423
|
+
|
|
4424
|
+
if (!collapse) {
|
|
4425
|
+
delete menuProps.onClick;
|
|
4426
|
+
menuProps.bordered = false;
|
|
4427
|
+
overlayTriggerProps.className = prefixCls + "-collapse";
|
|
4428
|
+
overlayTriggerProps.appear = false;
|
|
4429
|
+
overlayTriggerProps.isOutside = true;
|
|
4430
|
+
overlayTriggerProps.isClickOutside = false;
|
|
4431
|
+
overlayTriggerProps.unmountOnExit = false;
|
|
4432
|
+
overlayTriggerProps.trigger = 'click';
|
|
4433
|
+
overlayTriggerProps.transitionName = "" + prefixCls;
|
|
4434
|
+
overlayTriggerProps.onExit = onExit;
|
|
4435
|
+
overlayTriggerProps.onExiting = onExiting;
|
|
4436
|
+
overlayTriggerProps.onEnter = onEnter;
|
|
4437
|
+
overlayTriggerProps.onEntered = onEntered;
|
|
4438
|
+
overlayTriggerProps.onEntering = onEntering;
|
|
4439
|
+
} else {
|
|
4440
|
+
overlayTriggerProps.className = prefixCls + "-popup";
|
|
4441
|
+
overlayTriggerProps.trigger = 'hover';
|
|
4442
|
+
overlayTriggerProps.usePortal = true;
|
|
4443
|
+
menuProps.onClick = onClick;
|
|
4444
|
+
}
|
|
4445
|
+
|
|
4446
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
|
|
4447
|
+
"data-menu": "subitem",
|
|
4448
|
+
ref: ref,
|
|
4449
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(react_overlay_trigger_esm, _extends({
|
|
4450
|
+
placement: "rightTop",
|
|
4451
|
+
autoAdjustOverflow: true,
|
|
4452
|
+
disabled: disabled,
|
|
4453
|
+
isOpen: isOpen,
|
|
4454
|
+
usePortal: false,
|
|
4455
|
+
isOutside: true
|
|
4456
|
+
}, overlayTriggerProps, overlayProps, {
|
|
4457
|
+
ref: popupRef,
|
|
4458
|
+
overlay: /*#__PURE__*/(0,jsx_runtime.jsx)(esm_Menu, _extends({}, menuProps, {
|
|
4459
|
+
style: !collapse ? {
|
|
4460
|
+
paddingLeft: inlineIndent
|
|
4461
|
+
} : {}
|
|
4462
|
+
})),
|
|
4463
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MenuItem, _extends({}, other, {
|
|
4464
|
+
ref: null,
|
|
4465
|
+
disabled: disabled,
|
|
4466
|
+
isSubMenuItem: true,
|
|
4467
|
+
addonAfter: /*#__PURE__*/(0,jsx_runtime.jsx)(IconView, {
|
|
4468
|
+
collapse: collapse,
|
|
4469
|
+
prefixCls: prefixCls,
|
|
4470
|
+
isOpen: isOpen
|
|
4471
|
+
}),
|
|
4472
|
+
className: [prefixCls ? prefixCls + "-title" : null, !collapse ? prefixCls + "-collapse-title" : null, className].filter(Boolean).join(' ').trim()
|
|
4473
|
+
}))
|
|
4474
|
+
}))
|
|
4475
|
+
});
|
|
4476
|
+
});
|
|
4477
|
+
SubMenu.displayName = 'uiw.SubMenu';
|
|
4478
|
+
|
|
4479
|
+
;// CONCATENATED MODULE: ../react-menu/esm/style/menu.css
|
|
4480
|
+
// extracted by mini-css-extract-plugin
|
|
4481
|
+
/* harmony default export */ const menu = ({});
|
|
4482
|
+
;// CONCATENATED MODULE: ../react-menu/esm/Menu.js
|
|
4483
|
+
|
|
4484
|
+
|
|
4485
|
+
var Menu_excluded = ["prefixCls", "className", "children", "bordered", "theme", "inlineIndent", "inlineCollapsed"];
|
|
4486
|
+
|
|
4487
|
+
|
|
4488
|
+
|
|
4489
|
+
|
|
4490
|
+
|
|
4491
|
+
|
|
4492
|
+
var Menu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef((props, ref) => {
|
|
4493
|
+
var {
|
|
4494
|
+
prefixCls = 'w-menu',
|
|
4495
|
+
className,
|
|
4496
|
+
children,
|
|
4497
|
+
bordered,
|
|
4498
|
+
theme = 'light',
|
|
4499
|
+
inlineIndent = 10,
|
|
4500
|
+
inlineCollapsed
|
|
4501
|
+
} = props,
|
|
4502
|
+
htmlProps = _objectWithoutPropertiesLoose(props, Menu_excluded);
|
|
4503
|
+
|
|
4504
|
+
var cls = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => [prefixCls, bordered ? 'w-bordered' : null, inlineCollapsed ? prefixCls + "-inline-collapsed" : null, theme ? prefixCls + "-" + theme : null, className].filter(Boolean).join(' ').trim(), [prefixCls, bordered, inlineCollapsed, theme, className]);
|
|
4505
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("ul", _extends({}, htmlProps, {
|
|
4506
|
+
ref: ref,
|
|
4507
|
+
className: cls,
|
|
4508
|
+
"data-menu": "menu",
|
|
4509
|
+
children: external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.map(children, (child, key) => {
|
|
4510
|
+
if (! /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) return child;
|
|
4511
|
+
var props = {}; // Sub Menu
|
|
4512
|
+
|
|
4513
|
+
if (child.props.children && child.type === SubMenu) {
|
|
4514
|
+
props.inlineIndent = inlineIndent;
|
|
4515
|
+
}
|
|
4516
|
+
|
|
4517
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(child, Object.assign(_extends({}, props), child.props, {
|
|
4518
|
+
key: "" + key
|
|
4519
|
+
}));
|
|
4520
|
+
})
|
|
4521
|
+
}));
|
|
4522
|
+
});
|
|
4523
|
+
Menu.displayName = 'uiw.Menu';
|
|
4524
|
+
Menu.Item = MenuItem;
|
|
4525
|
+
Menu.SubMenu = SubMenu;
|
|
4526
|
+
Menu.Divider = MenuDivider;
|
|
4527
|
+
/* harmony default export */ const esm_Menu = (Menu);
|
|
4528
|
+
|
|
4529
|
+
;// CONCATENATED MODULE: ../react-menu/esm/index.js
|
|
4530
|
+
|
|
4531
|
+
|
|
4532
|
+
|
|
4533
|
+
|
|
4534
|
+
|
|
4535
|
+
/* harmony default export */ const react_menu_esm = (esm_Menu);
|
|
4536
|
+
|
|
4537
|
+
;// CONCATENATED MODULE: ../react-cascader/esm/index.js
|
|
4538
|
+
|
|
4539
|
+
|
|
4540
|
+
|
|
4541
|
+
|
|
4542
|
+
|
|
4543
|
+
|
|
4544
|
+
|
|
4545
|
+
|
|
4546
|
+
function Cascader(props) {
|
|
4547
|
+
var {
|
|
4548
|
+
placeholder,
|
|
4549
|
+
prefixCls = 'w-search-select',
|
|
4550
|
+
className,
|
|
4551
|
+
style = {
|
|
4552
|
+
width: 200
|
|
4553
|
+
},
|
|
4554
|
+
option = [],
|
|
4555
|
+
others
|
|
4556
|
+
} = props;
|
|
4557
|
+
var cls = [prefixCls, className].filter(Boolean).join(' ').trim();
|
|
4558
|
+
var [innerIsOpen, setInnerIsOpen] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false);
|
|
4559
|
+
var [selectedValue, setSelectedValue] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)([]);
|
|
4560
|
+
|
|
4561
|
+
function onVisibleChange(isOpen) {
|
|
4562
|
+
setInnerIsOpen(isOpen);
|
|
4563
|
+
}
|
|
4564
|
+
|
|
4565
|
+
var handleItemClick = (optionsItem, level) => {
|
|
4566
|
+
selectedValue.splice(level, selectedValue.length - level, optionsItem);
|
|
4567
|
+
setSelectedValue([...selectedValue]);
|
|
4568
|
+
handelChange();
|
|
4569
|
+
};
|
|
4570
|
+
|
|
4571
|
+
var handelChange = () => {
|
|
4572
|
+
var value = selectedValue.map(item => item.value);
|
|
4573
|
+
props.onChange == null ? void 0 : props.onChange(value, selectedValue);
|
|
4574
|
+
};
|
|
4575
|
+
|
|
4576
|
+
var widths = (style == null ? void 0 : style.width) * 0.6 || undefined;
|
|
4577
|
+
|
|
4578
|
+
var OptionIter = function OptionIter(option, level) {
|
|
4579
|
+
if (level === void 0) {
|
|
4580
|
+
level = 0;
|
|
4581
|
+
}
|
|
4582
|
+
|
|
4583
|
+
if (!option) return;
|
|
4584
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(react_menu_esm, {
|
|
4585
|
+
bordered: true,
|
|
4586
|
+
style: {
|
|
4587
|
+
minHeight: 25,
|
|
4588
|
+
minWidth: widths,
|
|
4589
|
+
overflowY: 'scroll',
|
|
4590
|
+
width: widths
|
|
4591
|
+
},
|
|
4592
|
+
children: !option || option.length === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
4593
|
+
style: {
|
|
4594
|
+
color: '#c7c7c7',
|
|
4595
|
+
fontSize: 12
|
|
4596
|
+
},
|
|
4597
|
+
children: '没有数据'
|
|
4598
|
+
}) : option.map((item, index) => {
|
|
4599
|
+
var _selectedValue$level;
|
|
4600
|
+
|
|
4601
|
+
var active = ((_selectedValue$level = selectedValue[level]) == null ? void 0 : _selectedValue$level.value) === item.value;
|
|
4602
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(react_menu_esm.Item, {
|
|
4603
|
+
active: active,
|
|
4604
|
+
text: item.label,
|
|
4605
|
+
addonAfter: item.children ? /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
|
|
4606
|
+
type: "right"
|
|
4607
|
+
}) : undefined,
|
|
4608
|
+
onClick: () => handleItemClick(item, level)
|
|
4609
|
+
}, index);
|
|
4610
|
+
})
|
|
4611
|
+
}, level);
|
|
4612
|
+
};
|
|
4613
|
+
|
|
4614
|
+
var inputValue = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => {
|
|
4615
|
+
return selectedValue.map(item => item.label).join(' / ');
|
|
4616
|
+
}, [selectedValue.length]);
|
|
4617
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(Dropdown, _extends({
|
|
4618
|
+
className: cls,
|
|
4619
|
+
trigger: "click",
|
|
4620
|
+
style: _extends({
|
|
4621
|
+
marginTop: 5
|
|
4622
|
+
}, style),
|
|
4623
|
+
overlayStyl: {
|
|
4624
|
+
width: 100
|
|
4625
|
+
}
|
|
4626
|
+
}, others, {
|
|
4627
|
+
onVisibleChange: onVisibleChange,
|
|
4628
|
+
isOpen: innerIsOpen,
|
|
4629
|
+
menu: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
4630
|
+
style: {
|
|
4631
|
+
display: 'flex'
|
|
4632
|
+
},
|
|
4633
|
+
children: new Array(selectedValue.length + 1).fill(0).map((_, index) => {
|
|
4634
|
+
var _selectedValue;
|
|
4635
|
+
|
|
4636
|
+
var options = index ? (_selectedValue = selectedValue[index - 1]) == null ? void 0 : _selectedValue.children : option;
|
|
4637
|
+
return OptionIter(options, index);
|
|
4638
|
+
}).filter(m => !!m)
|
|
4639
|
+
}),
|
|
4640
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(react_input_esm, {
|
|
4641
|
+
value: inputValue,
|
|
4642
|
+
onChange: () => {},
|
|
4643
|
+
placeholder: placeholder,
|
|
4644
|
+
style: {
|
|
4645
|
+
width: style == null ? void 0 : style.width
|
|
4646
|
+
}
|
|
4647
|
+
})
|
|
4648
|
+
}));
|
|
4649
|
+
}
|
|
4650
|
+
|
|
4651
|
+
/* harmony default export */ const react_cascader_esm = (Cascader);
|
|
4652
|
+
|
|
4653
|
+
;// CONCATENATED MODULE: ../react-radio/esm/RadioAbstract.js
|
|
4654
|
+
|
|
4655
|
+
|
|
4656
|
+
var RadioAbstract_excluded = ["prefixCls", "type", "disabled", "value", "className", "style", "children", "size", "checked", "onChange"];
|
|
4657
|
+
|
|
4658
|
+
|
|
4659
|
+
|
|
4660
|
+
var RadioAbstract = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef((props, ref) => {
|
|
4661
|
+
var {
|
|
4662
|
+
prefixCls = 'w-radio',
|
|
4663
|
+
type = 'radio',
|
|
4664
|
+
disabled = false,
|
|
4665
|
+
value = '',
|
|
4666
|
+
className,
|
|
4667
|
+
style,
|
|
4668
|
+
children,
|
|
4669
|
+
size,
|
|
4670
|
+
checked: prChecked = false,
|
|
4671
|
+
onChange
|
|
4672
|
+
} = props,
|
|
4673
|
+
other = _objectWithoutPropertiesLoose(props, RadioAbstract_excluded);
|
|
4674
|
+
|
|
4675
|
+
var [checked, setChecked] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(prChecked);
|
|
4676
|
+
var [prevChecked, setPrevChecked] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)();
|
|
4677
|
+
|
|
4678
|
+
if (prChecked !== prevChecked) {
|
|
4679
|
+
setPrevChecked(prChecked);
|
|
4680
|
+
}
|
|
4681
|
+
|
|
4682
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => {
|
|
4683
|
+
if (prChecked !== prevChecked) {
|
|
4684
|
+
setChecked(prChecked);
|
|
4685
|
+
}
|
|
4686
|
+
}, [prevChecked]);
|
|
4687
|
+
var cls = [prefixCls, className, disabled ? 'disabled' : null, size ? prefixCls + "-" + size : null].filter(Boolean).join(' ').trim();
|
|
4688
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => {
|
|
4689
|
+
if (checked !== props.checked) {
|
|
4690
|
+
setChecked(!!props.checked);
|
|
4691
|
+
}
|
|
4692
|
+
}, [props.checked]);
|
|
4693
|
+
|
|
4694
|
+
function handleChange(e) {
|
|
4695
|
+
e.persist();
|
|
4696
|
+
setChecked(e.target.checked);
|
|
4697
|
+
onChange && onChange(e);
|
|
4698
|
+
}
|
|
4699
|
+
|
|
4700
|
+
var label = children || value;
|
|
4701
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("label", {
|
|
4702
|
+
className: cls,
|
|
4703
|
+
style,
|
|
4704
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("input", _extends({}, _extends({}, other, {
|
|
4705
|
+
type,
|
|
4706
|
+
disabled,
|
|
4707
|
+
value
|
|
4708
|
+
}), {
|
|
4709
|
+
checked: checked,
|
|
4710
|
+
onChange: handleChange,
|
|
4711
|
+
ref: ref
|
|
4712
|
+
})), label && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
4713
|
+
className: prefixCls + "-text",
|
|
4714
|
+
children: label
|
|
4715
|
+
})]
|
|
4716
|
+
});
|
|
4717
|
+
});
|
|
4718
|
+
|
|
4719
|
+
;// CONCATENATED MODULE: ../react-radio/esm/style/index.css
|
|
4720
|
+
// extracted by mini-css-extract-plugin
|
|
4721
|
+
/* harmony default export */ const react_radio_esm_style = ({});
|
|
4722
|
+
;// CONCATENATED MODULE: ../react-radio/esm/Radio.js
|
|
4723
|
+
|
|
4724
|
+
|
|
4725
|
+
|
|
4726
|
+
|
|
4727
|
+
|
|
4728
|
+
/* harmony default export */ const Radio = (/*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef((props, ref) => {
|
|
4729
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(RadioAbstract, _extends({
|
|
4730
|
+
ref: ref
|
|
4731
|
+
}, props));
|
|
4732
|
+
}));
|
|
4733
|
+
|
|
4734
|
+
;// CONCATENATED MODULE: ../react-radio/esm/style/group.css
|
|
4735
|
+
// extracted by mini-css-extract-plugin
|
|
4736
|
+
/* harmony default export */ const group = ({});
|
|
4737
|
+
;// CONCATENATED MODULE: ../react-radio/esm/RadioGroup.js
|
|
4738
|
+
|
|
4739
|
+
|
|
4740
|
+
var RadioGroup_excluded = ["prefixCls", "className", "name", "value", "onChange", "children"];
|
|
4741
|
+
|
|
4742
|
+
|
|
4743
|
+
|
|
4744
|
+
/* harmony default export */ const RadioGroup = (/*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef((props, ref) => {
|
|
4745
|
+
var {
|
|
4746
|
+
prefixCls = 'w-radio-group',
|
|
4747
|
+
className,
|
|
4748
|
+
name,
|
|
4749
|
+
value,
|
|
4750
|
+
onChange,
|
|
4751
|
+
children
|
|
4752
|
+
} = props,
|
|
4753
|
+
other = _objectWithoutPropertiesLoose(props, RadioGroup_excluded);
|
|
4754
|
+
|
|
4755
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", _extends({}, other, {
|
|
4756
|
+
ref: ref,
|
|
4757
|
+
className: [prefixCls, className].filter(Boolean).join(' ').trim(),
|
|
4758
|
+
children: external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.toArray(children).map(child => {
|
|
4759
|
+
if (!child) return;
|
|
4760
|
+
if (! /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) return child;
|
|
4761
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(child, _extends({}, child.props || {}, {
|
|
4762
|
+
checked: child.props.value === value,
|
|
4763
|
+
name,
|
|
4764
|
+
onChange
|
|
4765
|
+
}));
|
|
4766
|
+
})
|
|
4767
|
+
}));
|
|
4768
|
+
}));
|
|
4769
|
+
|
|
4770
|
+
;// CONCATENATED MODULE: ../react-radio/esm/index.js
|
|
4771
|
+
|
|
4772
|
+
|
|
4773
|
+
|
|
4774
|
+
|
|
4775
|
+
|
|
4776
|
+
|
|
4777
|
+
;// CONCATENATED MODULE: ../react-checkbox/esm/style/group.css
|
|
4778
|
+
// extracted by mini-css-extract-plugin
|
|
4779
|
+
/* harmony default export */ const style_group = ({});
|
|
4780
|
+
;// CONCATENATED MODULE: ../react-checkbox/esm/Group.js
|
|
4781
|
+
|
|
4782
|
+
|
|
4783
|
+
var Group_excluded = ["prefixCls", "className", "name", "value", "onChange"];
|
|
4784
|
+
|
|
4785
|
+
|
|
4786
|
+
|
|
4787
|
+
var CheckboxGroup = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef((props, ref) => {
|
|
4788
|
+
var {
|
|
4789
|
+
prefixCls = 'w-checkbox-group',
|
|
4790
|
+
className,
|
|
4791
|
+
name,
|
|
4792
|
+
value,
|
|
4793
|
+
onChange: _onChange
|
|
4794
|
+
} = props,
|
|
4795
|
+
other = _objectWithoutPropertiesLoose(props, Group_excluded);
|
|
4796
|
+
|
|
4797
|
+
var valueRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)([]);
|
|
4798
|
+
var cls = [prefixCls, className].filter(Boolean).join(' ').trim();
|
|
4799
|
+
var childs = external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.toArray(props.children);
|
|
4800
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => valueRef.current = value || [], [value]);
|
|
4801
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", _extends({}, other, {
|
|
4802
|
+
className: cls,
|
|
4803
|
+
ref: ref,
|
|
4804
|
+
children: external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.map(childs, element => {
|
|
4805
|
+
if (! /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(element)) return;
|
|
4806
|
+
|
|
4807
|
+
if (Array.isArray(value) && element && element.props && element.props.value && value.includes(element.props.value)) {
|
|
4808
|
+
if (!valueRef.current.includes(element.props.value)) {
|
|
4809
|
+
valueRef.current.push(element.props.value);
|
|
4810
|
+
}
|
|
4811
|
+
}
|
|
4812
|
+
|
|
4813
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(element, Object.assign({}, element.props, {
|
|
4814
|
+
name,
|
|
4815
|
+
checked: valueRef.current.includes(element.props.value),
|
|
4816
|
+
onChange: e => {
|
|
4817
|
+
if (e.target.type && e.target.type !== 'checkbox') return;
|
|
4818
|
+
var checked = e.target.checked;
|
|
4819
|
+
var include = valueRef.current.includes(element.props.value);
|
|
4820
|
+
|
|
4821
|
+
if (!include && checked) {
|
|
4822
|
+
valueRef.current.push(element.props.value);
|
|
4823
|
+
} else if (include && !checked) {
|
|
4824
|
+
valueRef.current = valueRef.current.filter(val => val !== element.props.value);
|
|
4825
|
+
}
|
|
4826
|
+
|
|
4827
|
+
_onChange && _onChange(e, valueRef.current);
|
|
4828
|
+
}
|
|
4829
|
+
}));
|
|
4830
|
+
})
|
|
4831
|
+
}));
|
|
4832
|
+
});
|
|
4833
|
+
|
|
4834
|
+
;// CONCATENATED MODULE: ../react-checkbox/esm/style/index.css
|
|
4835
|
+
// extracted by mini-css-extract-plugin
|
|
4836
|
+
/* harmony default export */ const react_checkbox_esm_style = ({});
|
|
4837
|
+
;// CONCATENATED MODULE: ../react-checkbox/esm/Checkbox.js
|
|
4838
|
+
|
|
4839
|
+
|
|
4840
|
+
var Checkbox_excluded = ["className", "prefixCls", "type", "indeterminate", "disabled", "value"];
|
|
4841
|
+
|
|
4842
|
+
|
|
4843
|
+
|
|
4844
|
+
|
|
4845
|
+
|
|
4846
|
+
|
|
4847
|
+
function InternalCheckbox(props, ref) {
|
|
4848
|
+
var {
|
|
4849
|
+
className,
|
|
4850
|
+
prefixCls = 'w-checkbox',
|
|
4851
|
+
type = 'checkbox',
|
|
4852
|
+
indeterminate = false,
|
|
4853
|
+
disabled = false,
|
|
4854
|
+
value = ''
|
|
4855
|
+
} = props,
|
|
4856
|
+
other = _objectWithoutPropertiesLoose(props, Checkbox_excluded);
|
|
4857
|
+
|
|
4858
|
+
var cls = [className, indeterminate && 'indeterminate'].filter(Boolean).join(' ').trim();
|
|
4859
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(RadioAbstract, _extends({
|
|
4860
|
+
ref: ref
|
|
4861
|
+
}, other, {
|
|
4862
|
+
type: type,
|
|
4863
|
+
prefixCls: prefixCls,
|
|
4864
|
+
disabled: disabled,
|
|
4865
|
+
value: value,
|
|
4866
|
+
className: cls
|
|
4867
|
+
}));
|
|
4868
|
+
}
|
|
4869
|
+
|
|
4870
|
+
var Checkbox = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(InternalCheckbox);
|
|
4871
|
+
Checkbox.Group = CheckboxGroup;
|
|
4872
|
+
/* harmony default export */ const esm_Checkbox = (Checkbox);
|
|
4873
|
+
|
|
4874
|
+
;// CONCATENATED MODULE: ../react-checkbox/esm/index.js
|
|
4412
4875
|
|
|
4413
4876
|
|
|
4414
4877
|
|
|
@@ -4767,7 +5230,7 @@ function DateInputRange(props) {
|
|
|
4767
5230
|
;// CONCATENATED MODULE: ../react-date-input/esm/index.js
|
|
4768
5231
|
|
|
4769
5232
|
|
|
4770
|
-
var react_date_input_esm_excluded = ["prefixCls", "className", "popoverProps", "datePickerProps", "allowClear", "format", "onChange"];
|
|
5233
|
+
var react_date_input_esm_excluded = ["prefixCls", "className", "popoverProps", "datePickerProps", "allowClear", "autoClose", "format", "onChange"];
|
|
4771
5234
|
|
|
4772
5235
|
|
|
4773
5236
|
|
|
@@ -4784,6 +5247,7 @@ function DateInput(props) {
|
|
|
4784
5247
|
popoverProps,
|
|
4785
5248
|
datePickerProps,
|
|
4786
5249
|
allowClear = true,
|
|
5250
|
+
autoClose = false,
|
|
4787
5251
|
format = 'YYYY/MM/DD',
|
|
4788
5252
|
onChange
|
|
4789
5253
|
} = props,
|
|
@@ -4799,6 +5263,7 @@ function DateInput(props) {
|
|
|
4799
5263
|
}, [props.value]);
|
|
4800
5264
|
|
|
4801
5265
|
function handleChange(cdate) {
|
|
5266
|
+
autoClose && setIsOpen(false);
|
|
4802
5267
|
setDate(cdate);
|
|
4803
5268
|
onChange && onChange(cdate);
|
|
4804
5269
|
}
|
|
@@ -4811,10 +5276,13 @@ function DateInput(props) {
|
|
|
4811
5276
|
});
|
|
4812
5277
|
}
|
|
4813
5278
|
|
|
5279
|
+
var [isOpen, setIsOpen] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false);
|
|
4814
5280
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(Popover, _extends({
|
|
4815
5281
|
trigger: "focus",
|
|
4816
5282
|
placement: "bottomLeft",
|
|
4817
|
-
autoAdjustOverflow: true
|
|
5283
|
+
autoAdjustOverflow: true,
|
|
5284
|
+
isOpen: isOpen,
|
|
5285
|
+
onVisibleChange: open => setIsOpen(open)
|
|
4818
5286
|
}, popoverProps, {
|
|
4819
5287
|
content: /*#__PURE__*/(0,jsx_runtime.jsx)(DatePicker, _extends({
|
|
4820
5288
|
date: value && new Date(value) || undefined,
|
|
@@ -5026,6 +5494,7 @@ function InternalDescriptions(props, ref) {
|
|
|
5026
5494
|
className: prefixCls + "-title",
|
|
5027
5495
|
children: title
|
|
5028
5496
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("tbody", {
|
|
5497
|
+
className: prefixCls + "-tbody",
|
|
5029
5498
|
children: childs.map((child, index) => /*#__PURE__*/(0,jsx_runtime.jsx)(Row, {
|
|
5030
5499
|
prefixCls: prefixCls,
|
|
5031
5500
|
bordered: bordered,
|
|
@@ -5132,62 +5601,30 @@ var react_drawer_esm_excluded = ["prefixCls", "className", "style", "placement",
|
|
|
5132
5601
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(Overlay, _extends({
|
|
5133
5602
|
className: cls,
|
|
5134
5603
|
timeout: timeout,
|
|
5135
|
-
isOpen: isOpen,
|
|
5136
|
-
maskClosable: maskClosable
|
|
5137
|
-
}, overlayProps, {
|
|
5138
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
5139
|
-
className: prefixCls + "-wrapper",
|
|
5140
|
-
style: styl,
|
|
5141
|
-
children: [(title || icon) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
5142
|
-
className: prefixCls + "-header",
|
|
5143
|
-
children: [iconView, titleView, title && isCloseButtonShown && /*#__PURE__*/(0,jsx_runtime.jsx)(esm, {
|
|
5144
|
-
basic: true,
|
|
5145
|
-
onClick: props.onClose,
|
|
5146
|
-
icon: "close",
|
|
5147
|
-
type: "light"
|
|
5148
|
-
})]
|
|
5149
|
-
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
5150
|
-
className: prefixCls + "-body",
|
|
5151
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", _extends({}, bodyProps, {
|
|
5152
|
-
className: bodyCls,
|
|
5153
|
-
children: props.children
|
|
5154
|
-
}))
|
|
5155
|
-
}), footerView]
|
|
5156
|
-
})
|
|
5157
|
-
}));
|
|
5158
|
-
});
|
|
5159
|
-
|
|
5160
|
-
;// CONCATENATED MODULE: ../react-dropdown/esm/index.js
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
var react_dropdown_esm_excluded = ["prefixCls", "placement", "className", "menu", "children", "disabled"];
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
function Dropdown(props) {
|
|
5169
|
-
var {
|
|
5170
|
-
prefixCls = 'w-dropdown',
|
|
5171
|
-
placement = 'bottomLeft',
|
|
5172
|
-
className,
|
|
5173
|
-
menu,
|
|
5174
|
-
children,
|
|
5175
|
-
disabled
|
|
5176
|
-
} = props,
|
|
5177
|
-
other = _objectWithoutPropertiesLoose(props, react_dropdown_esm_excluded);
|
|
5178
|
-
|
|
5179
|
-
var cls = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => [prefixCls, className].filter(Boolean).join(' ').trim(), [prefixCls, className]);
|
|
5180
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)(react_overlay_trigger_esm, _extends({
|
|
5181
|
-
isOutside: true,
|
|
5182
|
-
autoAdjustOverflow: true,
|
|
5183
|
-
className: cls,
|
|
5184
|
-
disabled: disabled,
|
|
5185
|
-
placement: placement
|
|
5186
|
-
}, other, {
|
|
5187
|
-
overlay: menu,
|
|
5188
|
-
children: /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(children, Object.assign({}, children.props))
|
|
5604
|
+
isOpen: isOpen,
|
|
5605
|
+
maskClosable: maskClosable
|
|
5606
|
+
}, overlayProps, {
|
|
5607
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
5608
|
+
className: prefixCls + "-wrapper",
|
|
5609
|
+
style: styl,
|
|
5610
|
+
children: [(title || icon) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
5611
|
+
className: prefixCls + "-header",
|
|
5612
|
+
children: [iconView, titleView, title && isCloseButtonShown && /*#__PURE__*/(0,jsx_runtime.jsx)(esm, {
|
|
5613
|
+
basic: true,
|
|
5614
|
+
onClick: props.onClose,
|
|
5615
|
+
icon: "close",
|
|
5616
|
+
type: "light"
|
|
5617
|
+
})]
|
|
5618
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
5619
|
+
className: prefixCls + "-body",
|
|
5620
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", _extends({}, bodyProps, {
|
|
5621
|
+
className: bodyCls,
|
|
5622
|
+
children: props.children
|
|
5623
|
+
}))
|
|
5624
|
+
}), footerView]
|
|
5625
|
+
})
|
|
5189
5626
|
}));
|
|
5190
|
-
}
|
|
5627
|
+
});
|
|
5191
5628
|
|
|
5192
5629
|
;// CONCATENATED MODULE: ../react-empty/esm/style/index.css
|
|
5193
5630
|
// extracted by mini-css-extract-plugin
|
|
@@ -6306,445 +6743,131 @@ function Sider(props) {
|
|
|
6306
6743
|
var divStyle = _extends({}, style, {
|
|
6307
6744
|
flex: "0 0 " + rawWidth,
|
|
6308
6745
|
maxWidth: rawWidth,
|
|
6309
|
-
minWidth: rawWidth,
|
|
6310
|
-
width: rawWidth
|
|
6311
|
-
});
|
|
6312
|
-
|
|
6313
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", _extends({
|
|
6314
|
-
className: [prefixCls, className].filter(Boolean).join(' ').trim(),
|
|
6315
|
-
style: divStyle
|
|
6316
|
-
}, other, {
|
|
6317
|
-
children: children
|
|
6318
|
-
}));
|
|
6319
|
-
}
|
|
6320
|
-
|
|
6321
|
-
function LayoutSider(props) {
|
|
6322
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)(LayoutContext.Consumer, {
|
|
6323
|
-
children: context => /*#__PURE__*/(0,jsx_runtime.jsx)(Sider, _extends({}, props, context))
|
|
6324
|
-
});
|
|
6325
|
-
}
|
|
6326
|
-
|
|
6327
|
-
;// CONCATENATED MODULE: ../../node_modules/@uiw/react-layout/esm/Content.js
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
var Content_excluded = ["prefixCls", "className", "children"];
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
function LayoutContent(props) {
|
|
6334
|
-
var {
|
|
6335
|
-
prefixCls = 'w-layout-content',
|
|
6336
|
-
className,
|
|
6337
|
-
children
|
|
6338
|
-
} = props,
|
|
6339
|
-
other = _objectWithoutPropertiesLoose(props, Content_excluded);
|
|
6340
|
-
|
|
6341
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)("main", _extends({
|
|
6342
|
-
className: [prefixCls, className].filter(Boolean).join(' ').trim()
|
|
6343
|
-
}, other, {
|
|
6344
|
-
children: children
|
|
6345
|
-
}));
|
|
6346
|
-
}
|
|
6347
|
-
|
|
6348
|
-
;// CONCATENATED MODULE: ../../node_modules/@uiw/react-layout/esm/style/index.css
|
|
6349
|
-
// extracted by mini-css-extract-plugin
|
|
6350
|
-
/* harmony default export */ const react_layout_esm_style = ({});
|
|
6351
|
-
;// CONCATENATED MODULE: ../../node_modules/@uiw/react-layout/esm/index.js
|
|
6352
|
-
|
|
6353
|
-
|
|
6354
|
-
|
|
6355
|
-
|
|
6356
|
-
|
|
6357
|
-
|
|
6358
|
-
Layout.Header = LayoutHeader;
|
|
6359
|
-
Layout.Footer = LayoutFooter;
|
|
6360
|
-
Layout.Sider = LayoutSider;
|
|
6361
|
-
Layout.Content = LayoutContent;
|
|
6362
|
-
|
|
6363
|
-
|
|
6364
|
-
|
|
6365
|
-
|
|
6366
|
-
|
|
6367
|
-
/* harmony default export */ const react_layout_esm = (Layout);
|
|
6368
|
-
|
|
6369
|
-
;// CONCATENATED MODULE: ../react-loader/esm/style/index.css
|
|
6370
|
-
// extracted by mini-css-extract-plugin
|
|
6371
|
-
/* harmony default export */ const react_loader_esm_style = ({});
|
|
6372
|
-
;// CONCATENATED MODULE: ../react-loader/esm/index.js
|
|
6373
|
-
|
|
6374
|
-
|
|
6375
|
-
var react_loader_esm_excluded = ["prefixCls", "className", "size", "loading", "tip", "vertical", "color", "bgColor", "children", "indicator", "fullscreen"];
|
|
6376
|
-
|
|
6377
|
-
|
|
6378
|
-
|
|
6379
|
-
|
|
6380
|
-
/* harmony default export */ const react_loader_esm = (function (props) {
|
|
6381
|
-
if (props === void 0) {
|
|
6382
|
-
props = {};
|
|
6383
|
-
}
|
|
6384
|
-
|
|
6385
|
-
var {
|
|
6386
|
-
prefixCls = 'w-loader',
|
|
6387
|
-
className,
|
|
6388
|
-
size = 'default',
|
|
6389
|
-
loading = true,
|
|
6390
|
-
tip,
|
|
6391
|
-
vertical,
|
|
6392
|
-
color,
|
|
6393
|
-
bgColor,
|
|
6394
|
-
children,
|
|
6395
|
-
indicator,
|
|
6396
|
-
fullscreen = false
|
|
6397
|
-
} = props,
|
|
6398
|
-
otherProps = _objectWithoutPropertiesLoose(props, react_loader_esm_excluded);
|
|
6399
|
-
|
|
6400
|
-
var cls = [prefixCls, className, size ? prefixCls + "-" + size : null].filter(Boolean).join(' ').trim();
|
|
6401
|
-
var indicatorView = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => /*#__PURE__*/(0,jsx_runtime.jsx)("svg", {
|
|
6402
|
-
viewBox: "25 25 50 50",
|
|
6403
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)("circle", {
|
|
6404
|
-
cx: "50",
|
|
6405
|
-
cy: "50",
|
|
6406
|
-
r: "20",
|
|
6407
|
-
fill: "none",
|
|
6408
|
-
strokeWidth: "5",
|
|
6409
|
-
strokeMiterlimit: "10"
|
|
6410
|
-
})
|
|
6411
|
-
}), []);
|
|
6412
|
-
var tipsView = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
6413
|
-
className: [prefixCls + "-tips", fullscreen ? prefixCls + "-fullscreen" : null].filter(Boolean).join(' ').trim(),
|
|
6414
|
-
style: {
|
|
6415
|
-
color,
|
|
6416
|
-
backgroundColor: bgColor
|
|
6417
|
-
},
|
|
6418
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
6419
|
-
className: prefixCls + "-tips-nested",
|
|
6420
|
-
children: [indicator || indicatorView, tip && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
6421
|
-
className: [prefixCls + "-text", vertical ? prefixCls + "-vertical" : null].filter(Boolean).join(' ').trim(),
|
|
6422
|
-
children: tip
|
|
6423
|
-
})]
|
|
6424
|
-
})
|
|
6425
|
-
}), [fullscreen, bgColor, prefixCls, vertical, tip]);
|
|
6426
|
-
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", _extends({
|
|
6427
|
-
className: cls
|
|
6428
|
-
}, otherProps, {
|
|
6429
|
-
children: [(loading || fullscreen) && tipsView, children && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(children, Object.assign({}, children.props, {
|
|
6430
|
-
className: [prefixCls + "-warp", loading ? prefixCls + "-blur" : null].filter(Boolean).join(' ').trim()
|
|
6431
|
-
}))]
|
|
6432
|
-
}));
|
|
6433
|
-
});
|
|
6434
|
-
|
|
6435
|
-
;// CONCATENATED MODULE: ../react-menu/esm/style/item.css
|
|
6436
|
-
// extracted by mini-css-extract-plugin
|
|
6437
|
-
/* harmony default export */ const style_item = ({});
|
|
6438
|
-
;// CONCATENATED MODULE: ../react-menu/esm/MenuItem.js
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
var MenuItem_excluded = ["prefixCls", "className", "tagName", "children", "disabled", "multiline", "icon", "text", "active", "addonAfter", "isSubMenuItem"];
|
|
6442
|
-
|
|
6443
|
-
|
|
6444
|
-
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
var disabledProps = {
|
|
6448
|
-
href: undefined,
|
|
6449
|
-
onClick: undefined,
|
|
6450
|
-
onMouseDown: undefined,
|
|
6451
|
-
onMouseEnter: undefined,
|
|
6452
|
-
onMouseLeave: undefined,
|
|
6453
|
-
tabIndex: -1
|
|
6454
|
-
};
|
|
6455
|
-
|
|
6456
|
-
function Internal(props, ref) {
|
|
6457
|
-
var {
|
|
6458
|
-
prefixCls = 'w-menu-item',
|
|
6459
|
-
className,
|
|
6460
|
-
tagName: TagName = 'a',
|
|
6461
|
-
disabled = false,
|
|
6462
|
-
multiline = false,
|
|
6463
|
-
icon,
|
|
6464
|
-
text,
|
|
6465
|
-
active = false,
|
|
6466
|
-
addonAfter,
|
|
6467
|
-
isSubMenuItem
|
|
6468
|
-
} = props,
|
|
6469
|
-
htmlProps = _objectWithoutPropertiesLoose(props, MenuItem_excluded);
|
|
6470
|
-
|
|
6471
|
-
var anchorCls = [prefixCls, active ? 'active' : null, disabled ? 'w-disabled' : null, className].filter(Boolean).join(' ').trim();
|
|
6472
|
-
var tagComp = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(TagName, _extends({}, htmlProps, disabled ? disabledProps : {}, {
|
|
6473
|
-
className: anchorCls,
|
|
6474
|
-
ref
|
|
6475
|
-
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(external_root_React_commonjs2_react_commonjs_react_amd_react_.Fragment, {
|
|
6476
|
-
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
|
|
6477
|
-
className: prefixCls + "-icon",
|
|
6478
|
-
type: icon
|
|
6479
|
-
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
6480
|
-
className: [prefixCls && prefixCls + "-text", !multiline && prefixCls + "-multiline"].filter(Boolean).join(' ').trim(),
|
|
6481
|
-
children: text
|
|
6482
|
-
}), addonAfter]
|
|
6483
|
-
}));
|
|
6484
|
-
|
|
6485
|
-
if (isSubMenuItem) {
|
|
6486
|
-
return tagComp;
|
|
6487
|
-
}
|
|
6488
|
-
|
|
6489
|
-
return /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
|
|
6490
|
-
children: [" ", tagComp, " "]
|
|
6491
|
-
});
|
|
6492
|
-
}
|
|
6493
|
-
|
|
6494
|
-
var MenuItem = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(Internal);
|
|
6495
|
-
MenuItem.displayName = 'uiw.MenuItem';
|
|
6496
|
-
|
|
6497
|
-
;// CONCATENATED MODULE: ../react-menu/esm/Divider.js
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
var Divider_excluded = ["prefixCls", "className", "title"];
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
var MenuDivider = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef((props, ref) => {
|
|
6504
|
-
var {
|
|
6505
|
-
prefixCls = 'w-menu-divider',
|
|
6506
|
-
className,
|
|
6507
|
-
title
|
|
6508
|
-
} = props,
|
|
6509
|
-
htmlProps = _objectWithoutPropertiesLoose(props, Divider_excluded);
|
|
6510
|
-
|
|
6511
|
-
var cls = [prefixCls, className].filter(Boolean).join(' ').trim();
|
|
6512
|
-
|
|
6513
|
-
if (!title) {
|
|
6514
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", _extends({}, htmlProps, {
|
|
6515
|
-
ref: ref,
|
|
6516
|
-
className: cls
|
|
6517
|
-
}));
|
|
6518
|
-
}
|
|
6519
|
-
|
|
6520
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", _extends({}, htmlProps, {
|
|
6521
|
-
ref: ref,
|
|
6522
|
-
className: cls,
|
|
6523
|
-
"data-menu": "divider",
|
|
6524
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
|
|
6525
|
-
children: title
|
|
6526
|
-
})
|
|
6527
|
-
}));
|
|
6528
|
-
});
|
|
6529
|
-
MenuDivider.displayName = 'uiw.MenuDivider';
|
|
6530
|
-
|
|
6531
|
-
;// CONCATENATED MODULE: ../react-menu/esm/style/submenu.css
|
|
6532
|
-
// extracted by mini-css-extract-plugin
|
|
6533
|
-
/* harmony default export */ const submenu = ({});
|
|
6534
|
-
;// CONCATENATED MODULE: ../react-menu/esm/SubMenu.js
|
|
6535
|
-
|
|
6536
|
-
|
|
6537
|
-
var SubMenu_excluded = ["prefixCls", "className", "disabled", "overlayProps", "children", "collapse", "inlineIndent", "inlineCollapsed"];
|
|
6538
|
-
|
|
6539
|
-
|
|
6540
|
-
|
|
6746
|
+
minWidth: rawWidth,
|
|
6747
|
+
width: rawWidth
|
|
6748
|
+
});
|
|
6541
6749
|
|
|
6750
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", _extends({
|
|
6751
|
+
className: [prefixCls, className].filter(Boolean).join(' ').trim(),
|
|
6752
|
+
style: divStyle
|
|
6753
|
+
}, other, {
|
|
6754
|
+
children: children
|
|
6755
|
+
}));
|
|
6756
|
+
}
|
|
6542
6757
|
|
|
6758
|
+
function LayoutSider(props) {
|
|
6759
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(LayoutContext.Consumer, {
|
|
6760
|
+
children: context => /*#__PURE__*/(0,jsx_runtime.jsx)(Sider, _extends({}, props, context))
|
|
6761
|
+
});
|
|
6762
|
+
}
|
|
6543
6763
|
|
|
6764
|
+
;// CONCATENATED MODULE: ../../node_modules/@uiw/react-layout/esm/Content.js
|
|
6544
6765
|
|
|
6545
6766
|
|
|
6546
|
-
|
|
6547
|
-
var isCheck = false;
|
|
6767
|
+
var Content_excluded = ["prefixCls", "className", "children"];
|
|
6548
6768
|
|
|
6549
|
-
if (node) {
|
|
6550
|
-
// eslint-disable-next-line
|
|
6551
|
-
do {
|
|
6552
|
-
if (!node.dataset.menu) {
|
|
6553
|
-
isCheck = true;
|
|
6554
|
-
}
|
|
6555
6769
|
|
|
6556
|
-
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
|
|
6770
|
+
function LayoutContent(props) {
|
|
6771
|
+
var {
|
|
6772
|
+
prefixCls = 'w-layout-content',
|
|
6773
|
+
className,
|
|
6774
|
+
children
|
|
6775
|
+
} = props,
|
|
6776
|
+
other = _objectWithoutPropertiesLoose(props, Content_excluded);
|
|
6561
6777
|
|
|
6562
|
-
return
|
|
6778
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("main", _extends({
|
|
6779
|
+
className: [prefixCls, className].filter(Boolean).join(' ').trim()
|
|
6780
|
+
}, other, {
|
|
6781
|
+
children: children
|
|
6782
|
+
}));
|
|
6563
6783
|
}
|
|
6564
6784
|
|
|
6565
|
-
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
isOpen
|
|
6570
|
-
} = _ref;
|
|
6571
|
-
return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
|
|
6572
|
-
type: "caret-right",
|
|
6573
|
-
className: [prefixCls ? prefixCls + "-collapse-icon" : null, !collapse && isOpen ? 'w-open' : null, !collapse && !isOpen ? 'w-close' : null].filter(Boolean).join(' ').trim()
|
|
6574
|
-
}), [prefixCls, collapse, isOpen]);
|
|
6575
|
-
}
|
|
6785
|
+
;// CONCATENATED MODULE: ../../node_modules/@uiw/react-layout/esm/style/index.css
|
|
6786
|
+
// extracted by mini-css-extract-plugin
|
|
6787
|
+
/* harmony default export */ const react_layout_esm_style = ({});
|
|
6788
|
+
;// CONCATENATED MODULE: ../../node_modules/@uiw/react-layout/esm/index.js
|
|
6576
6789
|
|
|
6577
|
-
var SubMenu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(function (props, ref) {
|
|
6578
|
-
var {
|
|
6579
|
-
prefixCls = 'w-menu-subitem',
|
|
6580
|
-
className,
|
|
6581
|
-
disabled,
|
|
6582
|
-
overlayProps = {},
|
|
6583
|
-
children,
|
|
6584
|
-
collapse = false,
|
|
6585
|
-
inlineIndent
|
|
6586
|
-
} = props,
|
|
6587
|
-
other = _objectWithoutPropertiesLoose(props, SubMenu_excluded);
|
|
6588
6790
|
|
|
6589
|
-
var overlayTriggerProps = {};
|
|
6590
|
-
var menuProps = {
|
|
6591
|
-
bordered: true,
|
|
6592
|
-
children,
|
|
6593
|
-
inlineIndent,
|
|
6594
|
-
className: [prefixCls ? prefixCls + "-overlay" : null].filter(Boolean).join(' ').trim()
|
|
6595
|
-
};
|
|
6596
|
-
var popupRef = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useRef(null);
|
|
6597
|
-
var [isOpen, setIsOpen] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false);
|
|
6598
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => {
|
|
6599
|
-
setIsOpen(false);
|
|
6600
|
-
}, [collapse]);
|
|
6601
6791
|
|
|
6602
|
-
function onClick(e) {
|
|
6603
|
-
var target = e.currentTarget;
|
|
6604
|
-
var related = e.relatedTarget || e.nativeEvent.target;
|
|
6605
|
-
if (target.children.length < 1) return;
|
|
6606
6792
|
|
|
6607
|
-
if (checkedMenuItem(related)) {
|
|
6608
|
-
if (popupRef.current) {
|
|
6609
|
-
popupRef.current.hide();
|
|
6610
|
-
}
|
|
6611
|
-
}
|
|
6612
|
-
}
|
|
6613
6793
|
|
|
6614
|
-
function onExit(node) {
|
|
6615
|
-
node.style.height = node.scrollHeight + "px";
|
|
6616
|
-
setIsOpen(false);
|
|
6617
|
-
}
|
|
6618
6794
|
|
|
6619
|
-
|
|
6620
|
-
|
|
6621
|
-
|
|
6795
|
+
Layout.Header = LayoutHeader;
|
|
6796
|
+
Layout.Footer = LayoutFooter;
|
|
6797
|
+
Layout.Sider = LayoutSider;
|
|
6798
|
+
Layout.Content = LayoutContent;
|
|
6622
6799
|
|
|
6623
|
-
function onEnter(node) {
|
|
6624
|
-
node.style.height = '1px';
|
|
6625
|
-
setIsOpen(true);
|
|
6626
|
-
}
|
|
6627
6800
|
|
|
6628
|
-
function onEntering(node) {
|
|
6629
|
-
node.style.height = node.scrollHeight + "px";
|
|
6630
|
-
}
|
|
6631
6801
|
|
|
6632
|
-
function onEntered(node) {
|
|
6633
|
-
node.style.height = 'initial';
|
|
6634
|
-
}
|
|
6635
6802
|
|
|
6636
|
-
if (!collapse) {
|
|
6637
|
-
delete menuProps.onClick;
|
|
6638
|
-
menuProps.bordered = false;
|
|
6639
|
-
overlayTriggerProps.className = prefixCls + "-collapse";
|
|
6640
|
-
overlayTriggerProps.appear = false;
|
|
6641
|
-
overlayTriggerProps.isOutside = true;
|
|
6642
|
-
overlayTriggerProps.isClickOutside = false;
|
|
6643
|
-
overlayTriggerProps.unmountOnExit = false;
|
|
6644
|
-
overlayTriggerProps.trigger = 'click';
|
|
6645
|
-
overlayTriggerProps.transitionName = "" + prefixCls;
|
|
6646
|
-
overlayTriggerProps.onExit = onExit;
|
|
6647
|
-
overlayTriggerProps.onExiting = onExiting;
|
|
6648
|
-
overlayTriggerProps.onEnter = onEnter;
|
|
6649
|
-
overlayTriggerProps.onEntered = onEntered;
|
|
6650
|
-
overlayTriggerProps.onEntering = onEntering;
|
|
6651
|
-
} else {
|
|
6652
|
-
overlayTriggerProps.className = prefixCls + "-popup";
|
|
6653
|
-
overlayTriggerProps.trigger = 'hover';
|
|
6654
|
-
overlayTriggerProps.usePortal = true;
|
|
6655
|
-
menuProps.onClick = onClick;
|
|
6656
|
-
}
|
|
6657
6803
|
|
|
6658
|
-
|
|
6659
|
-
"data-menu": "subitem",
|
|
6660
|
-
ref: ref,
|
|
6661
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)(react_overlay_trigger_esm, _extends({
|
|
6662
|
-
placement: "rightTop",
|
|
6663
|
-
autoAdjustOverflow: true,
|
|
6664
|
-
disabled: disabled,
|
|
6665
|
-
isOpen: isOpen,
|
|
6666
|
-
usePortal: false,
|
|
6667
|
-
isOutside: true
|
|
6668
|
-
}, overlayTriggerProps, overlayProps, {
|
|
6669
|
-
ref: popupRef,
|
|
6670
|
-
overlay: /*#__PURE__*/(0,jsx_runtime.jsx)(esm_Menu, _extends({}, menuProps, {
|
|
6671
|
-
style: !collapse ? {
|
|
6672
|
-
paddingLeft: inlineIndent
|
|
6673
|
-
} : {}
|
|
6674
|
-
})),
|
|
6675
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MenuItem, _extends({}, other, {
|
|
6676
|
-
ref: null,
|
|
6677
|
-
disabled: disabled,
|
|
6678
|
-
isSubMenuItem: true,
|
|
6679
|
-
addonAfter: /*#__PURE__*/(0,jsx_runtime.jsx)(IconView, {
|
|
6680
|
-
collapse: collapse,
|
|
6681
|
-
prefixCls: prefixCls,
|
|
6682
|
-
isOpen: isOpen
|
|
6683
|
-
}),
|
|
6684
|
-
className: [prefixCls ? prefixCls + "-title" : null, !collapse ? prefixCls + "-collapse-title" : null, className].filter(Boolean).join(' ').trim()
|
|
6685
|
-
}))
|
|
6686
|
-
}))
|
|
6687
|
-
});
|
|
6688
|
-
});
|
|
6689
|
-
SubMenu.displayName = 'uiw.SubMenu';
|
|
6804
|
+
/* harmony default export */ const react_layout_esm = (Layout);
|
|
6690
6805
|
|
|
6691
|
-
;// CONCATENATED MODULE: ../react-
|
|
6806
|
+
;// CONCATENATED MODULE: ../react-loader/esm/style/index.css
|
|
6692
6807
|
// extracted by mini-css-extract-plugin
|
|
6693
|
-
/* harmony default export */ const
|
|
6694
|
-
;// CONCATENATED MODULE: ../react-
|
|
6695
|
-
|
|
6808
|
+
/* harmony default export */ const react_loader_esm_style = ({});
|
|
6809
|
+
;// CONCATENATED MODULE: ../react-loader/esm/index.js
|
|
6696
6810
|
|
|
6697
|
-
var Menu_excluded = ["prefixCls", "className", "children", "bordered", "theme", "inlineIndent", "inlineCollapsed"];
|
|
6698
6811
|
|
|
6812
|
+
var react_loader_esm_excluded = ["prefixCls", "className", "size", "loading", "tip", "vertical", "color", "bgColor", "children", "indicator", "fullscreen"];
|
|
6699
6813
|
|
|
6700
6814
|
|
|
6701
6815
|
|
|
6702
6816
|
|
|
6817
|
+
/* harmony default export */ const react_loader_esm = (function (props) {
|
|
6818
|
+
if (props === void 0) {
|
|
6819
|
+
props = {};
|
|
6820
|
+
}
|
|
6703
6821
|
|
|
6704
|
-
var Menu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef((props, ref) => {
|
|
6705
6822
|
var {
|
|
6706
|
-
prefixCls = 'w-
|
|
6823
|
+
prefixCls = 'w-loader',
|
|
6707
6824
|
className,
|
|
6825
|
+
size = 'default',
|
|
6826
|
+
loading = true,
|
|
6827
|
+
tip,
|
|
6828
|
+
vertical,
|
|
6829
|
+
color,
|
|
6830
|
+
bgColor,
|
|
6708
6831
|
children,
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
inlineIndent = 10,
|
|
6712
|
-
inlineCollapsed
|
|
6832
|
+
indicator,
|
|
6833
|
+
fullscreen = false
|
|
6713
6834
|
} = props,
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
var cls = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => [prefixCls, bordered ? 'w-bordered' : null, inlineCollapsed ? prefixCls + "-inline-collapsed" : null, theme ? prefixCls + "-" + theme : null, className].filter(Boolean).join(' ').trim(), [prefixCls, bordered, inlineCollapsed, theme, className]);
|
|
6717
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)("ul", _extends({}, htmlProps, {
|
|
6718
|
-
ref: ref,
|
|
6719
|
-
className: cls,
|
|
6720
|
-
"data-menu": "menu",
|
|
6721
|
-
children: external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.map(children, (child, key) => {
|
|
6722
|
-
if (! /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) return child;
|
|
6723
|
-
var props = {}; // Sub Menu
|
|
6724
|
-
|
|
6725
|
-
if (child.props.children && child.type === SubMenu) {
|
|
6726
|
-
props.inlineIndent = inlineIndent;
|
|
6727
|
-
}
|
|
6835
|
+
otherProps = _objectWithoutPropertiesLoose(props, react_loader_esm_excluded);
|
|
6728
6836
|
|
|
6729
|
-
|
|
6730
|
-
|
|
6731
|
-
|
|
6837
|
+
var cls = [prefixCls, className, size ? prefixCls + "-" + size : null].filter(Boolean).join(' ').trim();
|
|
6838
|
+
var indicatorView = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => /*#__PURE__*/(0,jsx_runtime.jsx)("svg", {
|
|
6839
|
+
viewBox: "25 25 50 50",
|
|
6840
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("circle", {
|
|
6841
|
+
cx: "50",
|
|
6842
|
+
cy: "50",
|
|
6843
|
+
r: "20",
|
|
6844
|
+
fill: "none",
|
|
6845
|
+
strokeWidth: "5",
|
|
6846
|
+
strokeMiterlimit: "10"
|
|
6847
|
+
})
|
|
6848
|
+
}), []);
|
|
6849
|
+
var tipsView = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
6850
|
+
className: [prefixCls + "-tips", fullscreen ? prefixCls + "-fullscreen" : null].filter(Boolean).join(' ').trim(),
|
|
6851
|
+
style: {
|
|
6852
|
+
color,
|
|
6853
|
+
backgroundColor: bgColor
|
|
6854
|
+
},
|
|
6855
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
6856
|
+
className: prefixCls + "-tips-nested",
|
|
6857
|
+
children: [indicator || indicatorView, tip && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
6858
|
+
className: [prefixCls + "-text", vertical ? prefixCls + "-vertical" : null].filter(Boolean).join(' ').trim(),
|
|
6859
|
+
children: tip
|
|
6860
|
+
})]
|
|
6732
6861
|
})
|
|
6862
|
+
}), [fullscreen, bgColor, prefixCls, vertical, tip]);
|
|
6863
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", _extends({
|
|
6864
|
+
className: cls
|
|
6865
|
+
}, otherProps, {
|
|
6866
|
+
children: [(loading || fullscreen) && tipsView, children && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(children, Object.assign({}, children.props, {
|
|
6867
|
+
className: [prefixCls + "-warp", loading ? prefixCls + "-blur" : null].filter(Boolean).join(' ').trim()
|
|
6868
|
+
}))]
|
|
6733
6869
|
}));
|
|
6734
6870
|
});
|
|
6735
|
-
Menu.displayName = 'uiw.Menu';
|
|
6736
|
-
Menu.Item = MenuItem;
|
|
6737
|
-
Menu.SubMenu = SubMenu;
|
|
6738
|
-
Menu.Divider = MenuDivider;
|
|
6739
|
-
/* harmony default export */ const esm_Menu = (Menu);
|
|
6740
|
-
|
|
6741
|
-
;// CONCATENATED MODULE: ../react-menu/esm/index.js
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
/* harmony default export */ const react_menu_esm = (esm_Menu);
|
|
6748
6871
|
|
|
6749
6872
|
;// CONCATENATED MODULE: ../react-message/esm/style/index.css
|
|
6750
6873
|
// extracted by mini-css-extract-plugin
|
|
@@ -9722,7 +9845,7 @@ function Table(props) {
|
|
|
9722
9845
|
onCell: onCell,
|
|
9723
9846
|
hierarchy: 0,
|
|
9724
9847
|
isExpandedDom: isExpandedDom,
|
|
9725
|
-
indentSize: (expandable == null ? void 0 : expandable.indentSize)
|
|
9848
|
+
indentSize: typeof (expandable == null ? void 0 : expandable.indentSize) === 'number' ? expandable == null ? void 0 : expandable.indentSize : 16,
|
|
9726
9849
|
childrenColumnName: (expandable == null ? void 0 : expandable.childrenColumnName) || 'children'
|
|
9727
9850
|
})
|
|
9728
9851
|
}), data && data.length === 0 && empty && /*#__PURE__*/(0,jsx_runtime.jsx)("tbody", {
|