@noah-libjs/components 0.0.9 → 0.0.23
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/package.json +4 -4
- package/dist/ArrayInput/DispalyInner.d.ts +0 -4
- package/dist/ArrayInput/Inner.d.ts +0 -4
- package/dist/ArrayInput/components.d.ts +0 -201
- package/dist/ArrayInput/index.d.ts +0 -4
- package/dist/ArrayInput/types.d.ts +0 -77
- package/dist/ArrayInput/utils.d.ts +0 -3
- package/dist/ArraySingle/DispalyInner.d.ts +0 -4
- package/dist/ArraySingle/Inner.d.ts +0 -4
- package/dist/ArraySingle/index.d.ts +0 -4
- package/dist/ArraySingle/types.d.ts +0 -16
- package/dist/ContainerDimensions/index.d.ts +0 -9
- package/dist/GlobalModal/index.d.ts +0 -8
- package/dist/GlobalModal/utils.d.ts +0 -65
- package/dist/LazyAntd/AutoComplete/Inner.d.ts +0 -3
- package/dist/LazyAntd/AutoComplete/index.d.ts +0 -9
- package/dist/LazyAntd/Checkbox/GroupInner.d.ts +0 -3
- package/dist/LazyAntd/Checkbox/Inner.d.ts +0 -2
- package/dist/LazyAntd/Checkbox/index.d.ts +0 -9
- package/dist/LazyAntd/ColorPicker/Inner.d.ts +0 -3
- package/dist/LazyAntd/ColorPicker/index.d.ts +0 -42
- package/dist/LazyAntd/DatePicker/Base/Calendar.d.ts +0 -3
- package/dist/LazyAntd/DatePicker/Base/DatePicker.d.ts +0 -37
- package/dist/LazyAntd/DatePicker/Base/index.d.ts +0 -62
- package/dist/LazyAntd/DatePicker/Calendar.d.ts +0 -5
- package/dist/LazyAntd/DatePicker/DatePicker.d.ts +0 -12
- package/dist/LazyAntd/DatePicker/MonthPicker.d.ts +0 -11
- package/dist/LazyAntd/DatePicker/RangePicker.d.ts +0 -19
- package/dist/LazyAntd/DatePicker/TimePicker.d.ts +0 -12
- package/dist/LazyAntd/DatePicker/index.d.ts +0 -5
- package/dist/LazyAntd/Dropdown/Button.d.ts +0 -2
- package/dist/LazyAntd/Dropdown/Inner.d.ts +0 -2
- package/dist/LazyAntd/Dropdown/index.d.ts +0 -10
- package/dist/LazyAntd/Form/FormItemInner.d.ts +0 -2
- package/dist/LazyAntd/Form/Inner.d.ts +0 -2
- package/dist/LazyAntd/Form/index.d.ts +0 -9
- package/dist/LazyAntd/Modal/Inner.d.ts +0 -3
- package/dist/LazyAntd/Modal/index.d.ts +0 -3
- package/dist/LazyAntd/Pagination/Inner.d.ts +0 -2
- package/dist/LazyAntd/Pagination/index.d.ts +0 -3
- package/dist/LazyAntd/QRCode/Inner.d.ts +0 -3
- package/dist/LazyAntd/QRCode/index.d.ts +0 -2
- package/dist/LazyAntd/Select/Inner.d.ts +0 -2
- package/dist/LazyAntd/Select/OptionInner.d.ts +0 -1
- package/dist/LazyAntd/Select/index.d.ts +0 -9
- package/dist/LazyAntd/Switch/index.d.ts +0 -1
- package/dist/LazyAntd/Table/Inner.d.ts +0 -2
- package/dist/LazyAntd/Table/index.d.ts +0 -3
- package/dist/LazyAntd/Tree/DirectoryTreeInner.d.ts +0 -2
- package/dist/LazyAntd/Tree/Inner.d.ts +0 -3
- package/dist/LazyAntd/Tree/TreeNodeInner.d.ts +0 -3
- package/dist/LazyAntd/Tree/index.d.ts +0 -14
- package/dist/LazyAntd/TreeSelect/Inner.d.ts +0 -2
- package/dist/LazyAntd/TreeSelect/index.d.ts +0 -3
- package/dist/LazyAntd/index.d.ts +0 -14
- package/dist/Monaco/Inner.d.ts +0 -4
- package/dist/Monaco/index.d.ts +0 -6
- package/dist/Monaco/types.d.ts +0 -9
- package/dist/MyAutoComplete/Inner.d.ts +0 -3
- package/dist/MyAutoComplete/index.d.ts +0 -5
- package/dist/MyAutoComplete/types.d.ts +0 -25
- package/dist/MyAutoComplete/useConfig.d.ts +0 -11
- package/dist/MyButton/index.d.ts +0 -10
- package/dist/MyCheckbox/Display.d.ts +0 -6
- package/dist/MyCheckbox/Inner.d.ts +0 -5
- package/dist/MyCheckbox/components.d.ts +0 -201
- package/dist/MyCheckbox/index.d.ts +0 -6
- package/dist/MyCheckbox/types.d.ts +0 -65
- package/dist/MyCheckbox/utils.d.ts +0 -3
- package/dist/MyColor/index.d.ts +0 -4
- package/dist/MyColor/types.d.ts +0 -6
- package/dist/MyDatePicker/Display.d.ts +0 -3
- package/dist/MyDatePicker/Inner.d.ts +0 -5
- package/dist/MyDatePicker/index.d.ts +0 -8
- package/dist/MyDatePicker/utils.d.ts +0 -26
- package/dist/MyIconSelect/MyIcon.d.ts +0 -2
- package/dist/MyIconSelect/MyIconSelect.d.ts +0 -5
- package/dist/MyIconSelect/index.d.ts +0 -6
- package/dist/MyIconSelect/types.d.ts +0 -16
- package/dist/MyIconSelect/utils.d.ts +0 -7
- package/dist/MyInput/index.d.ts +0 -5
- package/dist/MyInput/types.d.ts +0 -7
- package/dist/MyInputNumber/index.d.ts +0 -5
- package/dist/MyInputNumber/types.d.ts +0 -9
- package/dist/MyLazyComponent/index.d.ts +0 -6
- package/dist/MyRangeDate/Display.d.ts +0 -2
- package/dist/MyRangeDate/Inner.d.ts +0 -6
- package/dist/MyRangeDate/index.d.ts +0 -7
- package/dist/MyRangeDate/utils.d.ts +0 -40
- package/dist/MySelect/Display.d.ts +0 -3
- package/dist/MySelect/Inner.d.ts +0 -4
- package/dist/MySelect/components.d.ts +0 -201
- package/dist/MySelect/index.d.ts +0 -8
- package/dist/MySelect/types.d.ts +0 -29
- package/dist/MySelect/utils.d.ts +0 -1
- package/dist/MySwitch/index.d.ts +0 -4
- package/dist/MySwitch/types.d.ts +0 -10
- package/dist/a_chunks/components.js +0 -7
- package/dist/a_chunks/index.js +0 -1403
- package/dist/a_chunks/index.module.js +0 -10
- package/dist/a_chunks/root..js +0 -37
- package/dist/a_chunks/root.10.js +0 -9
- package/dist/a_chunks/root.11.js +0 -19
- package/dist/a_chunks/root.12.js +0 -9
- package/dist/a_chunks/root.13.js +0 -9
- package/dist/a_chunks/root.14.js +0 -9
- package/dist/a_chunks/root.15.js +0 -9
- package/dist/a_chunks/root.16.js +0 -9
- package/dist/a_chunks/root.17.js +0 -172
- package/dist/a_chunks/root.18.js +0 -237
- package/dist/a_chunks/root.19.js +0 -18
- package/dist/a_chunks/root.2.js +0 -9
- package/dist/a_chunks/root.20.js +0 -129
- package/dist/a_chunks/root.21.js +0 -78
- package/dist/a_chunks/root.22.js +0 -166
- package/dist/a_chunks/root.23.js +0 -15
- package/dist/a_chunks/root.24.js +0 -66
- package/dist/a_chunks/root.25.js +0 -8
- package/dist/a_chunks/root.26.js +0 -68
- package/dist/a_chunks/root.27.js +0 -212
- package/dist/a_chunks/root.28.js +0 -117
- package/dist/a_chunks/root.29.js +0 -5
- package/dist/a_chunks/root.3.js +0 -9
- package/dist/a_chunks/root.30.js +0 -4
- package/dist/a_chunks/root.4.js +0 -9
- package/dist/a_chunks/root.5.js +0 -9
- package/dist/a_chunks/root.6.js +0 -9
- package/dist/a_chunks/root.7.js +0 -9
- package/dist/a_chunks/root.8.js +0 -11
- package/dist/a_chunks/root.9.js +0 -9
- package/dist/a_chunks/utils.js +0 -59
- package/dist/index.d.ts +0 -8
- package/dist/index.js +0 -8
- package/dist/packs.d.ts +0 -215
- package/dist/util-types/comp.d.ts +0 -12
- package/dist/util-types/fd/FormItemLayout.d.ts +0 -5
- package/dist/util-types/fd/InputType.d.ts +0 -1
- package/dist/util-types/fd/Rules.d.ts +0 -4
- package/dist/util-types/fd/SpecialConfig.d.ts +0 -33
- package/dist/util-types/fd/TranferRules.d.ts +0 -9
- package/dist/util-types/fd/index.d.ts +0 -230
- package/dist/util-types/index.d.ts +0 -2
- package/dist/utils/getInputStyle.d.ts +0 -14
- package/dist/utils/index.d.ts +0 -4
- package/dist/utils/msmc.d.ts +0 -50
- package/dist/utils/new.d.ts +0 -18
- package/dist/utils/other.d.ts +0 -4
- package/dist/utils/use_array_marshal.d.ts +0 -5
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { s as styleInject } from './index.js';
|
|
2
|
-
var css_248z = ".index-module_wrapper__8xmrk input {\n padding: 0 !important;\n border-top: none !important;\n border-left: none !important;\n border-right: none !important;\n}\n.index-module_wrapper__8xmrk .ant-select-selector {\n padding: 0 !important;\n border-top: none !important;\n border-left: none !important;\n border-right: none !important;\n}\n.index-module_wrapper__8xmrk .ant-select-selection-search-input {\n padding: 0 !important;\n border-top: none !important;\n border-left: none !important;\n border-right: none !important;\n}\n.index-module_block-box__zbZ8F {\n display: block !important;\n}\n.index-module_block-box__zbZ8F > div {\n margin-bottom: 6px;\n}\n.index-module_flex-box__aGmld {\n display: flex;\n}\n.index-module_warning__Z3oMd .ant-checkbox-checked .ant-checkbox-inner {\n background: red !important;\n border-color: red !important;\n}\n.index-module_warning__Z3oMd .ant-input {\n color: red !important;\n border-color: red !important;\n border-radius: 0 !important;\n}\n.index-module_warning__Z3oMd .ant-select-selector {\n color: red !important;\n border-color: red !important;\n border-radius: 0 !important;\n}\n.index-module_warning__Z3oMd .ant-select-selection-search-input {\n border-color: red !important;\n border-radius: 0 !important;\n}\n";
|
|
3
|
-
var styles = {
|
|
4
|
-
"wrapper": "index-module_wrapper__8xmrk",
|
|
5
|
-
"block-box": "index-module_block-box__zbZ8F",
|
|
6
|
-
"flex-box": "index-module_flex-box__aGmld",
|
|
7
|
-
"warning": "index-module_warning__Z3oMd"
|
|
8
|
-
};
|
|
9
|
-
styleInject(css_248z);
|
|
10
|
-
export { styles as s };
|
package/dist/a_chunks/root..js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
import Editor from '@monaco-editor/react/dist/index';
|
|
3
|
-
import React__default, { useState, useRef, useEffect } from 'react';
|
|
4
|
-
|
|
5
|
-
// loader.config({ paths: { vs: getMonacoLoaderPath() } });
|
|
6
|
-
function MonacoInner(props) {
|
|
7
|
-
var value = props.value,
|
|
8
|
-
onChange = props.onChange,
|
|
9
|
-
language = props.language,
|
|
10
|
-
defaultValue = props.defaultValue,
|
|
11
|
-
_props$height = props.height,
|
|
12
|
-
height = _props$height === void 0 ? '400px' : _props$height,
|
|
13
|
-
_props$theme = props.theme,
|
|
14
|
-
theme = _props$theme === void 0 ? "vs-dark" : _props$theme;
|
|
15
|
-
var _useState = useState(value),
|
|
16
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
17
|
-
inner_value = _useState2[0],
|
|
18
|
-
set_inner_value = _useState2[1];
|
|
19
|
-
var inited = useRef(false);
|
|
20
|
-
useEffect(function () {
|
|
21
|
-
if (value) {
|
|
22
|
-
if (inited.current) return;
|
|
23
|
-
inited.current = true;
|
|
24
|
-
set_inner_value(value);
|
|
25
|
-
}
|
|
26
|
-
return function () {};
|
|
27
|
-
}, [value]);
|
|
28
|
-
return /*#__PURE__*/React__default.createElement(Editor, {
|
|
29
|
-
theme: theme,
|
|
30
|
-
onChange: onChange,
|
|
31
|
-
height: height,
|
|
32
|
-
defaultLanguage: language,
|
|
33
|
-
defaultValue: defaultValue,
|
|
34
|
-
value: inner_value
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
export { MonacoInner as default };
|
package/dist/a_chunks/root.10.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
import Modal from 'antd/es/modal';
|
|
5
|
-
import React__default from 'react';
|
|
6
|
-
function LazyInner(props) {
|
|
7
|
-
return /*#__PURE__*/React__default.createElement(Modal, _objectSpread({}, props));
|
|
8
|
-
}
|
|
9
|
-
export { LazyInner as default };
|
package/dist/a_chunks/root.11.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
-
import React__default, { useState, useEffect } from 'react';
|
|
6
|
-
function LazyInner(props) {
|
|
7
|
-
var _useState = useState(),
|
|
8
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
9
|
-
C = _useState2[0],
|
|
10
|
-
setC = _useState2[1];
|
|
11
|
-
useEffect(function () {
|
|
12
|
-
import('antd/es/pagination').then(function (res) {
|
|
13
|
-
setC(res["default"]);
|
|
14
|
-
});
|
|
15
|
-
return function () {};
|
|
16
|
-
}, []);
|
|
17
|
-
return C ? /*#__PURE__*/React__default.createElement(C, _objectSpread({}, props)) : 'loading Pagination ...';
|
|
18
|
-
}
|
|
19
|
-
export { LazyInner as default };
|
package/dist/a_chunks/root.12.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
import Select from 'antd/es/select';
|
|
5
|
-
import React__default from 'react';
|
|
6
|
-
function LazyInner(props) {
|
|
7
|
-
return /*#__PURE__*/React__default.createElement(Select, _objectSpread({}, props));
|
|
8
|
-
}
|
|
9
|
-
export { LazyInner as default };
|
package/dist/a_chunks/root.13.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
import Tree from 'antd/es/tree-select';
|
|
5
|
-
import React__default from 'react';
|
|
6
|
-
function LazyInner(props) {
|
|
7
|
-
return /*#__PURE__*/React__default.createElement(Tree, _objectSpread({}, props));
|
|
8
|
-
}
|
|
9
|
-
export { LazyInner as default };
|
package/dist/a_chunks/root.14.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
import Checkbox from 'antd/es/checkbox';
|
|
5
|
-
import React__default from 'react';
|
|
6
|
-
function CheckboxInner(props) {
|
|
7
|
-
return /*#__PURE__*/React__default.createElement(Checkbox, _objectSpread({}, props));
|
|
8
|
-
}
|
|
9
|
-
export { CheckboxInner as default };
|
package/dist/a_chunks/root.15.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
import Checkbox from 'antd/es/checkbox';
|
|
5
|
-
import React__default from 'react';
|
|
6
|
-
function GroupInner(props) {
|
|
7
|
-
return /*#__PURE__*/React__default.createElement(Checkbox.Group, _objectSpread({}, props));
|
|
8
|
-
}
|
|
9
|
-
export { GroupInner as default };
|
package/dist/a_chunks/root.16.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
import { QRCode } from 'antd';
|
|
5
|
-
import React__default from 'react';
|
|
6
|
-
function QRCodeInner(props) {
|
|
7
|
-
return /*#__PURE__*/React__default.createElement(QRCode, _objectSpread({}, props));
|
|
8
|
-
}
|
|
9
|
-
export { QRCodeInner as default };
|
package/dist/a_chunks/root.17.js
DELETED
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
2
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
-
var _excluded = ["onChange", "value", "marshal", "fetch_options", "uniqueKey", "popupMatchSelectWidth", "fetch_options_on_open"];
|
|
4
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
-
import { isNil, numberLikeCompare } from '@noah-libjs/utils';
|
|
7
|
-
import { Row, Col } from 'antd';
|
|
8
|
-
import React__default, { useMemo } from 'react';
|
|
9
|
-
import { p as packs, u as use_options, g as getInputStyle, a as getMarshal, b as get_mode, c as check_multiple, S as Select_L, d as parse_MC_value } from './index.js';
|
|
10
|
-
import { s as styles } from './index.module.js';
|
|
11
|
-
import 'dayjs';
|
|
12
|
-
import 'rc-select';
|
|
13
|
-
import 'rc-tree';
|
|
14
|
-
import '@noah-libjs/request';
|
|
15
|
-
var componentMap = packs;
|
|
16
|
-
function RenderComponent(p) {
|
|
17
|
-
var _target$props;
|
|
18
|
-
var target = p.target,
|
|
19
|
-
handleInputChange = p.handleInputChange;
|
|
20
|
-
if (!target) return null;
|
|
21
|
-
var inputType = target.inputType;
|
|
22
|
-
var props = (_target$props = target.props) !== null && _target$props !== void 0 ? _target$props : {};
|
|
23
|
-
var C = useMemo(function () {
|
|
24
|
-
return componentMap[inputType];
|
|
25
|
-
}, [inputType]);
|
|
26
|
-
return /*#__PURE__*/React__default.createElement("span", {
|
|
27
|
-
key: "aa",
|
|
28
|
-
style: {
|
|
29
|
-
display: 'flex',
|
|
30
|
-
alignItems: 'center'
|
|
31
|
-
}
|
|
32
|
-
}, target.prefix ? /*#__PURE__*/React__default.createElement("span", {
|
|
33
|
-
style: {
|
|
34
|
-
margin: '0 2px',
|
|
35
|
-
whiteSpace: 'nowrap'
|
|
36
|
-
}
|
|
37
|
-
}, target.prefix) : null, C ? /*#__PURE__*/React__default.createElement(C, _objectSpread(_objectSpread({}, props), {}, {
|
|
38
|
-
value: target.text,
|
|
39
|
-
onChange: function onChange(e) {
|
|
40
|
-
handleInputChange(e, target);
|
|
41
|
-
}
|
|
42
|
-
})) : '未知组件', target.suffix ? /*#__PURE__*/React__default.createElement("span", {
|
|
43
|
-
style: {
|
|
44
|
-
margin: '0 2px',
|
|
45
|
-
whiteSpace: 'nowrap'
|
|
46
|
-
}
|
|
47
|
-
}, target.suffix) : null);
|
|
48
|
-
}
|
|
49
|
-
var MySelect = function MySelect(props) {
|
|
50
|
-
var _data$;
|
|
51
|
-
var onChange = props.onChange,
|
|
52
|
-
value = props.value,
|
|
53
|
-
_marshal = props.marshal,
|
|
54
|
-
fetch_options = props.fetch_options,
|
|
55
|
-
uniqueKey = props.uniqueKey,
|
|
56
|
-
_props$popupMatchSele = props.popupMatchSelectWidth,
|
|
57
|
-
popupMatchSelectWidth = _props$popupMatchSele === void 0 ? 140 : _props$popupMatchSele,
|
|
58
|
-
fetch_options_on_open = props.fetch_options_on_open,
|
|
59
|
-
others = _objectWithoutProperties(props, _excluded);
|
|
60
|
-
var _use_options = use_options(props),
|
|
61
|
-
options = _use_options.options,
|
|
62
|
-
loading = _use_options.loading,
|
|
63
|
-
data = _use_options.data,
|
|
64
|
-
setData = _use_options.setData,
|
|
65
|
-
process_options = _use_options.process_options;
|
|
66
|
-
var _style = getInputStyle(props);
|
|
67
|
-
var marshal = getMarshal(props);
|
|
68
|
-
var needToRenderComponent = options.some(function (_) {
|
|
69
|
-
return _.inputType;
|
|
70
|
-
});
|
|
71
|
-
var type = get_mode(props);
|
|
72
|
-
var is_multiple = check_multiple(props);
|
|
73
|
-
function isChecked(value) {
|
|
74
|
-
// return __data.some(d => d.value === value)
|
|
75
|
-
return data.some(function (d) {
|
|
76
|
-
return numberLikeCompare(d.value, value);
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
function safe_onChange(changedValue) {
|
|
80
|
-
// if (!changedValue.length) {
|
|
81
|
-
// return onChange?.(undefined)
|
|
82
|
-
// }
|
|
83
|
-
// const v = marshal ? (Number(marshal) == 2 ? changedValue : JSON.stringify(changedValue,)) : (type === 'single' ? (changedValue[0]?.value ?? null) : changedValue.map(_ => _.value).join(','))
|
|
84
|
-
// console.log('abc', changedValue, marshal, v)
|
|
85
|
-
var v = parse_MC_value(props, changedValue);
|
|
86
|
-
// mchcLogger.log('safe_onChange', {v,changedValue})
|
|
87
|
-
onChange === null || onChange === void 0 || onChange(v);
|
|
88
|
-
}
|
|
89
|
-
function handleChange(rawValue) {
|
|
90
|
-
// mchcLogger.log('safe_onChange 00', {rawValue})
|
|
91
|
-
var checkedValues = Array.isArray(rawValue) ? rawValue : [rawValue];
|
|
92
|
-
var hasExclusiveItem = checkedValues.filter(function (v) {
|
|
93
|
-
return !isChecked(v);
|
|
94
|
-
}).find(function (v) {
|
|
95
|
-
var option = options.find(function (o) {
|
|
96
|
-
return o.value === v;
|
|
97
|
-
});
|
|
98
|
-
return option === null || option === void 0 ? void 0 : option.exclusive;
|
|
99
|
-
});
|
|
100
|
-
var values = !isNil(hasExclusiveItem) ? [hasExclusiveItem] : checkedValues.filter(function (v) {
|
|
101
|
-
var _options$find;
|
|
102
|
-
return !((_options$find = options.find(function (_) {
|
|
103
|
-
return _.value === v;
|
|
104
|
-
})) !== null && _options$find !== void 0 && _options$find.exclusive);
|
|
105
|
-
});
|
|
106
|
-
var changedData = values.filter(function (v) {
|
|
107
|
-
return is_multiple ? true : !isChecked(v);
|
|
108
|
-
}).map(function (v) {
|
|
109
|
-
var _options$find2, _old$text;
|
|
110
|
-
var option = (_options$find2 = options.find(function (o) {
|
|
111
|
-
return o.value === v;
|
|
112
|
-
})) !== null && _options$find2 !== void 0 ? _options$find2 : {
|
|
113
|
-
label: v,
|
|
114
|
-
value: v
|
|
115
|
-
};
|
|
116
|
-
var old = data.find(function (d) {
|
|
117
|
-
return d.value === v;
|
|
118
|
-
});
|
|
119
|
-
return {
|
|
120
|
-
value: option === null || option === void 0 ? void 0 : option.value,
|
|
121
|
-
label: option === null || option === void 0 ? void 0 : option.label,
|
|
122
|
-
text: (_old$text = old === null || old === void 0 ? void 0 : old.text) !== null && _old$text !== void 0 ? _old$text : undefined
|
|
123
|
-
};
|
|
124
|
-
});
|
|
125
|
-
setData(changedData);
|
|
126
|
-
safe_onChange(changedData);
|
|
127
|
-
}
|
|
128
|
-
function handleInputChange(e, target) {
|
|
129
|
-
target.text = e;
|
|
130
|
-
onChange === null || onChange === void 0 || onChange(JSON.stringify(data));
|
|
131
|
-
}
|
|
132
|
-
var _value = is_multiple ? data.map(function (_) {
|
|
133
|
-
return _.value;
|
|
134
|
-
}) : (_data$ = data[0]) === null || _data$ === void 0 ? void 0 : _data$.value;
|
|
135
|
-
var _warning = data.some(function (_) {
|
|
136
|
-
return _.warning;
|
|
137
|
-
});
|
|
138
|
-
var target = (Array.isArray(data) ? data : []).find(function (_) {
|
|
139
|
-
return _.inputType;
|
|
140
|
-
});
|
|
141
|
-
// 多选不支持 非 marshal 不支持
|
|
142
|
-
var isR = !is_multiple && marshal && target;
|
|
143
|
-
var select_node = loading && !fetch_options_on_open ? /*#__PURE__*/React__default.createElement("span", null, "'\u6570\u636E\u52A0\u8F7D\u4E2D...'") : /*#__PURE__*/React__default.createElement(Select_L, _objectSpread(_objectSpread({
|
|
144
|
-
onOpenChange: function onOpenChange(v) {
|
|
145
|
-
if (v && fetch_options_on_open) {
|
|
146
|
-
process_options();
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
loading: loading,
|
|
150
|
-
className: _warning ? styles['warning'] : undefined,
|
|
151
|
-
style: _style,
|
|
152
|
-
allowClear: true,
|
|
153
|
-
value: _value,
|
|
154
|
-
onChange: handleChange,
|
|
155
|
-
mode: type,
|
|
156
|
-
// dropdownStyle={{ minWidth: 120 }}
|
|
157
|
-
popupMatchSelectWidth: popupMatchSelectWidth
|
|
158
|
-
}, others), {}, {
|
|
159
|
-
options: options
|
|
160
|
-
}));
|
|
161
|
-
return isR ? /*#__PURE__*/React__default.createElement(Row, {
|
|
162
|
-
gutter: needToRenderComponent ? 6 : 0
|
|
163
|
-
}, /*#__PURE__*/React__default.createElement(Col, {
|
|
164
|
-
span: needToRenderComponent ? 12 : 24
|
|
165
|
-
}, select_node), /*#__PURE__*/React__default.createElement(Col, {
|
|
166
|
-
span: needToRenderComponent ? 12 : 0
|
|
167
|
-
}, isR && /*#__PURE__*/React__default.createElement(RenderComponent, {
|
|
168
|
-
target: target,
|
|
169
|
-
handleInputChange: handleInputChange
|
|
170
|
-
}))) : select_node;
|
|
171
|
-
};
|
|
172
|
-
export { MySelect as default };
|
package/dist/a_chunks/root.18.js
DELETED
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
import { isNil, numberLikeCompare, cloneDeep } from '@noah-libjs/utils';
|
|
5
|
-
import classnames from 'classnames';
|
|
6
|
-
import React__default, { useRef, useEffect } from 'react';
|
|
7
|
-
import { p as packs, a as getMarshal, u as use_options, C as Checkbox_L, d as parse_MC_value } from './index.js';
|
|
8
|
-
import MyCheckbox_DisplayFC from './root.19.js';
|
|
9
|
-
import { s as styles } from './index.module.js';
|
|
10
|
-
import 'antd';
|
|
11
|
-
import 'dayjs';
|
|
12
|
-
import 'rc-select';
|
|
13
|
-
import 'rc-tree';
|
|
14
|
-
import '@noah-libjs/request';
|
|
15
|
-
var components = packs;
|
|
16
|
-
var MyCheckbox = function MyCheckbox(props) {
|
|
17
|
-
var _props$type = props.type,
|
|
18
|
-
type = _props$type === void 0 ? 'single' : _props$type,
|
|
19
|
-
value = props.value,
|
|
20
|
-
onChange = props.onChange,
|
|
21
|
-
_props$disabled = props.disabled,
|
|
22
|
-
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
23
|
-
_onBlur = props.onBlur,
|
|
24
|
-
_props$inputWidth = props.inputWidth,
|
|
25
|
-
inputWidth = _props$inputWidth === void 0 ? 50 : _props$inputWidth,
|
|
26
|
-
_props$vertical = props.vertical,
|
|
27
|
-
vertical = _props$vertical === void 0 ? false : _props$vertical,
|
|
28
|
-
_props$style = props.style,
|
|
29
|
-
style = _props$style === void 0 ? {} : _props$style;
|
|
30
|
-
var marshal = getMarshal(props);
|
|
31
|
-
var _use_options = use_options(props),
|
|
32
|
-
options = _use_options.options,
|
|
33
|
-
loading = _use_options.loading,
|
|
34
|
-
__data = _use_options.data,
|
|
35
|
-
setData = _use_options.setData;
|
|
36
|
-
var longOptions = options.length > 2;
|
|
37
|
-
var forcusInfo = useRef({});
|
|
38
|
-
// mchcEnv.logger.log('MyCheckbox', { MyCheckboxProps, options, __data })
|
|
39
|
-
useEffect(function () {
|
|
40
|
-
// const _value = parseValue(value, marshal, type)
|
|
41
|
-
// setData(_value);
|
|
42
|
-
// if (isNil(value)) {
|
|
43
|
-
// setData([]);
|
|
44
|
-
// } else {
|
|
45
|
-
// const d = marshal ? safe_json_parse(value, []) : (type === 'single' ? [{ value }] : (value?.split?.(',')?.filter?.(_ => !isNil(_))?.map?.(value => ({ value })) ?? []))
|
|
46
|
-
// setData(Array.isArray(d) ? d : []);
|
|
47
|
-
// }
|
|
48
|
-
}, [value]);
|
|
49
|
-
function safe_onChange(changedValue) {
|
|
50
|
-
// if (!changedValue.length) {
|
|
51
|
-
// return onChange?.(undefined)
|
|
52
|
-
// }
|
|
53
|
-
// const v = marshal ? (Number(marshal) == 2 ? changedValue : JSON.stringify(changedValue,)) : (type === 'single' ? (changedValue[0]?.value ?? null) : changedValue.map(_ => _.value).join(','))
|
|
54
|
-
var v = parse_MC_value(props, changedValue);
|
|
55
|
-
onChange === null || onChange === void 0 || onChange(v);
|
|
56
|
-
}
|
|
57
|
-
var handleBoxGroupChange = function handleBoxGroupChange() {
|
|
58
|
-
var checkedValues = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
59
|
-
var hasExclusiveItem = checkedValues.filter(function (v) {
|
|
60
|
-
return !isChecked(v);
|
|
61
|
-
}).find(function (v) {
|
|
62
|
-
var option = options.find(function (o) {
|
|
63
|
-
return o.value === v;
|
|
64
|
-
});
|
|
65
|
-
return option === null || option === void 0 ? void 0 : option.exclusive;
|
|
66
|
-
});
|
|
67
|
-
var values = !isNil(hasExclusiveItem) ? [hasExclusiveItem] : checkedValues.filter(function (v) {
|
|
68
|
-
var _options$find;
|
|
69
|
-
return !((_options$find = options.find(function (_) {
|
|
70
|
-
return _.value === v;
|
|
71
|
-
})) !== null && _options$find !== void 0 && _options$find.exclusive);
|
|
72
|
-
});
|
|
73
|
-
var changedData = values.filter(function (v) {
|
|
74
|
-
return type === 'multiple' ? true : !isChecked(v);
|
|
75
|
-
}).map(function (v) {
|
|
76
|
-
var _old$text;
|
|
77
|
-
var option = options.find(function (o) {
|
|
78
|
-
return o.value === v;
|
|
79
|
-
});
|
|
80
|
-
var old = __data.find(function (d) {
|
|
81
|
-
return d.value === v;
|
|
82
|
-
});
|
|
83
|
-
return {
|
|
84
|
-
value: option === null || option === void 0 ? void 0 : option.value,
|
|
85
|
-
label: option === null || option === void 0 ? void 0 : option.label,
|
|
86
|
-
text: (_old$text = old === null || old === void 0 ? void 0 : old.text) !== null && _old$text !== void 0 ? _old$text : undefined
|
|
87
|
-
};
|
|
88
|
-
});
|
|
89
|
-
setData(changedData);
|
|
90
|
-
safe_onChange(changedData);
|
|
91
|
-
};
|
|
92
|
-
var handleInputChange = function handleInputChange(option) {
|
|
93
|
-
return function (inputValue) {
|
|
94
|
-
var tempData = cloneDeep(__data) || [];
|
|
95
|
-
var target = tempData.find(function (d) {
|
|
96
|
-
return d.value === option.value;
|
|
97
|
-
});
|
|
98
|
-
if (!target) return;
|
|
99
|
-
target.text = inputValue;
|
|
100
|
-
// setData(tempData);
|
|
101
|
-
safe_onChange(tempData);
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
var renderInput = function renderInput(option) {
|
|
105
|
-
var _option$props, _props$style2;
|
|
106
|
-
var inputType = option.inputType;
|
|
107
|
-
var targetData = __data.find(function (d) {
|
|
108
|
-
return d.value === option.value;
|
|
109
|
-
});
|
|
110
|
-
if (!targetData || !inputType) return null;
|
|
111
|
-
var C = components === null || components === void 0 ? void 0 : components[inputType];
|
|
112
|
-
var inputValue = targetData.text;
|
|
113
|
-
var props = (_option$props = option.props) !== null && _option$props !== void 0 ? _option$props : {};
|
|
114
|
-
var style = (_props$style2 = props.style) !== null && _props$style2 !== void 0 ? _props$style2 : {};
|
|
115
|
-
if (['MyInput', 'Input', 'input', 'MA', 'MyAutoComplete'].includes(inputType)) {
|
|
116
|
-
style = _objectSpread({
|
|
117
|
-
width: inputWidth * (longOptions ? 1 : 1.5)
|
|
118
|
-
}, style);
|
|
119
|
-
}
|
|
120
|
-
if (['Select', 'MS', 'MySelect'].includes(inputType)) {
|
|
121
|
-
style = _objectSpread({
|
|
122
|
-
minWidth: inputWidth * (longOptions ? 1 : 1.5)
|
|
123
|
-
}, style);
|
|
124
|
-
}
|
|
125
|
-
return C ? /*#__PURE__*/React__default.createElement(C, _objectSpread(_objectSpread({
|
|
126
|
-
size: "small",
|
|
127
|
-
disabled: disabled,
|
|
128
|
-
marshal: marshal,
|
|
129
|
-
inputWidth: inputWidth,
|
|
130
|
-
// onBlur={onBlur}
|
|
131
|
-
className: classnames({
|
|
132
|
-
// 'global-issue-input': option.warning,
|
|
133
|
-
}),
|
|
134
|
-
style: style
|
|
135
|
-
}, props), {}, {
|
|
136
|
-
onChange: handleInputChange(option),
|
|
137
|
-
value: inputValue
|
|
138
|
-
})) : null;
|
|
139
|
-
};
|
|
140
|
-
function isChecked(value) {
|
|
141
|
-
// return __data.some(d => d.value === value)
|
|
142
|
-
return __data.some(function (d) {
|
|
143
|
-
return numberLikeCompare(d.value, value);
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
if (options.length === 0) return null;
|
|
147
|
-
return /*#__PURE__*/React__default.createElement(Checkbox_L.Group, {
|
|
148
|
-
className: classnames([styles['wrapper'], vertical ? styles['block-box'] : styles['flex-box']]),
|
|
149
|
-
disabled: disabled,
|
|
150
|
-
value: __data.map(function (_) {
|
|
151
|
-
return _.value;
|
|
152
|
-
}),
|
|
153
|
-
onChange: handleBoxGroupChange,
|
|
154
|
-
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
155
|
-
// width: '100%',
|
|
156
|
-
flexWrap: 'wrap'
|
|
157
|
-
})
|
|
158
|
-
}, options.map(function (option, index) {
|
|
159
|
-
var _option$props2;
|
|
160
|
-
var prefix = option.prefix,
|
|
161
|
-
sufix = option.sufix,
|
|
162
|
-
suffix = option.suffix,
|
|
163
|
-
parentheses = option.parentheses;
|
|
164
|
-
var _parentheses = parentheses !== null && parentheses !== void 0 ? parentheses : ['MC', 'MArr'].includes(option.inputType) && !!(option !== null && option !== void 0 && (_option$props2 = option.props) !== null && _option$props2 !== void 0 && _option$props2.options);
|
|
165
|
-
var _suffix = sufix !== null && sufix !== void 0 ? sufix : suffix;
|
|
166
|
-
var checked = isChecked(option.value);
|
|
167
|
-
var node = checked ? renderInput(option) : null;
|
|
168
|
-
var surround_node = /*#__PURE__*/React__default.createElement(React__default.Fragment, null, _parentheses && checked ? /*#__PURE__*/React__default.createElement("span", {
|
|
169
|
-
style: {
|
|
170
|
-
margin: "0 2px"
|
|
171
|
-
}
|
|
172
|
-
}, "(") : null, prefix && checked ? /*#__PURE__*/React__default.createElement("span", {
|
|
173
|
-
style: {
|
|
174
|
-
margin: "0 2px",
|
|
175
|
-
whiteSpace: 'nowrap'
|
|
176
|
-
}
|
|
177
|
-
}, prefix) : null, node ? /*#__PURE__*/React__default.createElement("span", {
|
|
178
|
-
onFocus: function onFocus(e) {
|
|
179
|
-
forcusInfo.current = {
|
|
180
|
-
index: index,
|
|
181
|
-
type: 'child'
|
|
182
|
-
};
|
|
183
|
-
},
|
|
184
|
-
onBlur: function onBlur(e) {
|
|
185
|
-
forcusInfo.current = {
|
|
186
|
-
index: undefined,
|
|
187
|
-
type: undefined
|
|
188
|
-
};
|
|
189
|
-
_onBlur === null || _onBlur === void 0 || _onBlur(e);
|
|
190
|
-
},
|
|
191
|
-
style: {
|
|
192
|
-
// margin: "0 2px",
|
|
193
|
-
}
|
|
194
|
-
}, node) : null, _suffix && checked ? /*#__PURE__*/React__default.createElement("span", {
|
|
195
|
-
style: {
|
|
196
|
-
margin: "0 2px"
|
|
197
|
-
}
|
|
198
|
-
}, _suffix) : null, _parentheses && checked ? /*#__PURE__*/React__default.createElement("span", {
|
|
199
|
-
style: {
|
|
200
|
-
margin: "0 2px",
|
|
201
|
-
whiteSpace: 'nowrap'
|
|
202
|
-
}
|
|
203
|
-
}, ")") : null);
|
|
204
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
205
|
-
key: index,
|
|
206
|
-
style: {
|
|
207
|
-
display: 'flex',
|
|
208
|
-
alignItems: 'center',
|
|
209
|
-
marginRight: 2
|
|
210
|
-
},
|
|
211
|
-
className: option.warning && checked ? styles['warning'] : undefined
|
|
212
|
-
}, /*#__PURE__*/React__default.createElement("span", {
|
|
213
|
-
onFocus: function onFocus(e) {
|
|
214
|
-
setTimeout(function () {
|
|
215
|
-
forcusInfo.current = {
|
|
216
|
-
index: index,
|
|
217
|
-
type: 'parent'
|
|
218
|
-
};
|
|
219
|
-
}, 10);
|
|
220
|
-
},
|
|
221
|
-
onBlur: function onBlur(e) {
|
|
222
|
-
setTimeout(function () {
|
|
223
|
-
if (forcusInfo.current.index === index && forcusInfo.current.type === 'child') return;
|
|
224
|
-
forcusInfo.current = {
|
|
225
|
-
index: undefined,
|
|
226
|
-
type: undefined
|
|
227
|
-
};
|
|
228
|
-
_onBlur === null || _onBlur === void 0 || _onBlur(e);
|
|
229
|
-
}, 10);
|
|
230
|
-
}
|
|
231
|
-
}, /*#__PURE__*/React__default.createElement(Checkbox_L, {
|
|
232
|
-
value: option.value
|
|
233
|
-
}, option.label)), surround_node);
|
|
234
|
-
}));
|
|
235
|
-
};
|
|
236
|
-
MyCheckbox.DisplayFC = MyCheckbox_DisplayFC;
|
|
237
|
-
export { MyCheckbox as default };
|
package/dist/a_chunks/root.19.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { u as use_options } from './index.js';
|
|
2
|
-
import '@noah-libjs/utils';
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'antd';
|
|
5
|
-
import 'dayjs';
|
|
6
|
-
import 'rc-select';
|
|
7
|
-
import 'rc-tree';
|
|
8
|
-
import '@noah-libjs/request';
|
|
9
|
-
var MyCheckbox_DisplayFC = function MyCheckbox_DisplayFC(props) {
|
|
10
|
-
var _use_options = use_options(props),
|
|
11
|
-
options = _use_options.options,
|
|
12
|
-
loading = _use_options.loading,
|
|
13
|
-
data = _use_options.data,
|
|
14
|
-
setData = _use_options.setData,
|
|
15
|
-
display_node = _use_options.display_node;
|
|
16
|
-
return display_node;
|
|
17
|
-
};
|
|
18
|
-
export { MyCheckbox_DisplayFC as default };
|
package/dist/a_chunks/root.2.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
import Comp from 'antd/es/color-picker';
|
|
5
|
-
import React__default from 'react';
|
|
6
|
-
function LazyInner(props) {
|
|
7
|
-
return /*#__PURE__*/React__default.createElement(Comp, _objectSpread({}, props));
|
|
8
|
-
}
|
|
9
|
-
export { LazyInner as default };
|