@lemon-fe/components 1.4.1 → 1.4.2-alpha.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.
@@ -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;
@@ -1754,6 +1754,7 @@ var InternalDataGrid = /*#__PURE__*/function (_Component) {
1754
1754
  maintainColumnOrder: true,
1755
1755
  suppressCsvExport: true,
1756
1756
  suppressExcelExport: true,
1757
+ enableCellTextSelection: true,
1757
1758
  noRowsOverlayComponent: this.NoRowsOverlay,
1758
1759
  getMainMenuItems: this.getMainMenuItems,
1759
1760
  rowBuffer: 20,
@@ -149,9 +149,9 @@ function SelectView(originalProps, _ref4) {
149
149
  setData(newRows);
150
150
  onChange === null || onChange === void 0 || onChange(newRows, rowDoubleClicked);
151
151
  };
152
- var handleChangeParams = function handleChangeParams(mParams) {
152
+ var handleChangeParams = function handleChangeParams(mParams, actionType) {
153
153
  if (filter !== null && filter !== void 0 && filter.onChange) {
154
- filter.onChange(mParams, 'submit');
154
+ filter.onChange(mParams, actionType || 'submit');
155
155
  }
156
156
  if (checkSearchParams && !checkSearchParams(mParams)) {
157
157
  return;
@@ -169,8 +169,8 @@ function SelectView(originalProps, _ref4) {
169
169
  form: filterForm
170
170
  }, filter, {
171
171
  value: cParams,
172
- onChange: function onChange(val) {
173
- return handleChangeParams(_objectSpread(_objectSpread({}, cParams), val));
172
+ onChange: function onChange(val, actionType) {
173
+ return handleChangeParams(_objectSpread(_objectSpread({}, cParams), val), actionType);
174
174
  }
175
175
  })));
176
176
  } else if (headerProp) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemon-fe/components",
3
- "version": "1.4.1",
3
+ "version": "1.4.2-alpha.0",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "MIT",
@@ -58,5 +58,5 @@
58
58
  "publishConfig": {
59
59
  "registry": "https://registry.npmjs.org"
60
60
  },
61
- "gitHead": "4a0de8d6cf3909a13c3f7f1b8ff1e9354697275a"
61
+ "gitHead": "77aeb1eba6e3a13f34a6f2390d9991b9ff996652"
62
62
  }