@lemon-fe/components 1.4.14-alpha.1 → 1.4.14

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.
@@ -16,7 +16,7 @@ export declare type SelectEditorParams = Pick<SelectProps<any, BaseOptionType>,
16
16
  */
17
17
  action?: 'next' | 'stop' | 'none';
18
18
  };
19
- declare const _default: React.ForwardRefExoticComponent<ICellEditorParams<any, any, any> & Pick<SelectProps<any, BaseOptionType>, "disabled" | "allowClear" | "mode" | "showSearch" | "optionFilterProp" | "options" | "virtual" | "listHeight"> & {
19
+ declare const _default: React.ForwardRefExoticComponent<ICellEditorParams<any, any, any> & Pick<SelectProps<any, BaseOptionType>, "disabled" | "allowClear" | "mode" | "showSearch" | "virtual" | "optionFilterProp" | "options" | "listHeight"> & {
20
20
  fieldNames?: {
21
21
  label: string;
22
22
  value: string;
@@ -17,7 +17,7 @@ declare const Editors: {
17
17
  Text: React.ForwardRefExoticComponent<import("ag-grid-community").ICellEditorParams<any, any, any> & import("./typings").TextEditorParams<any> & React.RefAttributes<import("ag-grid-react").ICellEditorReactComp>>;
18
18
  Date: React.ForwardRefExoticComponent<import("ag-grid-community").ICellEditorParams<any, any, any> & import("./typings").DateEditorParams<any> & React.RefAttributes<import("ag-grid-react").ICellEditorReactComp>>;
19
19
  Number: React.ForwardRefExoticComponent<import("ag-grid-community").ICellEditorParams<any, any, any> & import("./typings").NumberEditorParams<any> & React.RefAttributes<import("ag-grid-react").ICellEditorReactComp>>;
20
- Select: React.ForwardRefExoticComponent<import("ag-grid-community").ICellEditorParams<any, any, any> & Pick<import("antd").SelectProps<any, import("antd/lib/select").BaseOptionType>, "disabled" | "allowClear" | "mode" | "showSearch" | "optionFilterProp" | "options" | "virtual" | "listHeight"> & {
20
+ Select: React.ForwardRefExoticComponent<import("ag-grid-community").ICellEditorParams<any, any, any> & Pick<import("antd").SelectProps<any, import("antd/lib/select").BaseOptionType>, "disabled" | "mode" | "allowClear" | "showSearch" | "optionFilterProp" | "options" | "virtual" | "listHeight"> & {
21
21
  fieldNames?: {
22
22
  label: string;
23
23
  value: string;
@@ -12,5 +12,5 @@ declare const Modal: Pick<React.FC<AntdModalProps> & import("antd/lib/modal/conf
12
12
  useModal: typeof import("antd/lib/modal/useModal").default;
13
13
  destroyAll: () => void;
14
14
  config: typeof import("antd/lib/modal/confirm").modalGlobalConfig;
15
- }, "warning" | "error" | "success" | "info" | "warn" | "confirm" | "useModal" | "destroyAll" | "config"> & typeof LemonModal;
15
+ }, "warning" | "error" | "success" | "info" | "warn" | "confirm" | "useModal" | "config" | "destroyAll"> & typeof LemonModal;
16
16
  export default Modal;
package/es/popup/index.js CHANGED
@@ -62,7 +62,6 @@ function Popup(props) {
62
62
  open = _useState4[0],
63
63
  setOpen = _useState4[1];
64
64
  var inputRef = useRef(null);
65
- var wrapperRef = useRef(null);
66
65
  var closeAction = useRef();
67
66
  var shouldModalOpen = openProp !== null && openProp !== void 0 ? openProp : open;
68
67
  useEffect(function () {
@@ -76,14 +75,11 @@ function Popup(props) {
76
75
  var _useContext = useContext(ConfigProvider.ConfigContext),
77
76
  getPrefixCls = _useContext.getPrefixCls;
78
77
  var handleCancel = function handleCancel() {
78
+ var _inputRef$current;
79
79
  setOpen(false);
80
80
  onOpenChange === null || onOpenChange === void 0 || onOpenChange(false);
81
81
  onCancel === null || onCancel === void 0 || onCancel();
82
- if (inputRef.current !== null) {
83
- inputRef.current.focus();
84
- } else if (wrapperRef.current !== null) {
85
- wrapperRef.current.focus();
86
- }
82
+ (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.focus();
87
83
  };
88
84
  var handleOpen = /*#__PURE__*/function () {
89
85
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
@@ -261,9 +257,7 @@ function Popup(props) {
261
257
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
262
258
  className: prefix('wrapper'),
263
259
  onClick: handleOpen,
264
- role: "button",
265
- ref: wrapperRef,
266
- tabIndex: -1
260
+ role: "button"
267
261
  }, trigger), modalElm);
268
262
  }
269
263
  export default Popup;
@@ -115,7 +115,7 @@ export default function SiderTree(props) {
115
115
  if (addedNodes.has(node)) {
116
116
  return;
117
117
  }
118
- parent = node.parent ? map.get(node.parent) : undefined;
118
+ parent = node.parent !== undefined ? map.get(node.parent) : undefined;
119
119
  if (parent) {
120
120
  parent.children = parent.children || [];
121
121
  parent.children.push(node);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemon-fe/components",
3
- "version": "1.4.14-alpha.1",
3
+ "version": "1.4.14",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "MIT",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@dnd-kit/core": ">=6.0.0",
24
- "@lemon-fe/hooks": "^1.4.14-alpha.1",
24
+ "@lemon-fe/hooks": "^1.4.0",
25
25
  "@lemon-fe/utils": "^1.3.0",
26
26
  "ag-grid-community": "29.2.0",
27
27
  "ag-grid-enterprise": "29.2.0",
@@ -58,5 +58,5 @@
58
58
  "publishConfig": {
59
59
  "registry": "https://registry.npmjs.org"
60
60
  },
61
- "gitHead": "57033c6a96c4e184fb28b629aa7318525fd6bbd3"
61
+ "gitHead": "b2acd15b9728c17e93306c9f6c6ade2933b51dc7"
62
62
  }