es-grid-template 1.9.31 → 1.9.32
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/es/group-component/hook/utils.d.ts +3 -3
- package/es/table-component/InternalTable.js +6 -0
- package/es/table-component/body/EditableCell.js +2 -2
- package/es/table-component/style.scss +8 -0
- package/lib/table-component/InternalTable.js +6 -0
- package/lib/table-component/body/EditableCell.js +1 -1
- package/lib/table-component/style.scss +8 -0
- package/package.json +1 -1
|
@@ -194,10 +194,10 @@ export declare const fixColumnsLeft: <RecordType>(columns: ColumnTable<RecordTyp
|
|
|
194
194
|
value: any;
|
|
195
195
|
rowData: RecordType;
|
|
196
196
|
}) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNode);
|
|
197
|
-
onCellStyles?: Omit<CSSProperties, "position" | "
|
|
198
|
-
onCellHeaderStyles?: Omit<CSSProperties, "position" | "
|
|
197
|
+
onCellStyles?: Omit<CSSProperties, "position" | "display" | "width" | "minWidth" | "left" | "right"> | ((cellValue: any, cell: import("@tanstack/react-table").Cell<RecordType, unknown>) => Omit<CSSProperties, "position" | "display" | "width" | "minWidth" | "left" | "right">);
|
|
198
|
+
onCellHeaderStyles?: Omit<CSSProperties, "position" | "display" | "width" | "minWidth" | "left" | "right"> | ((cell: import("@tanstack/react-table").Header<RecordType, unknown>) => Omit<CSSProperties, "position" | "display" | "width" | "minWidth" | "left" | "right">);
|
|
199
199
|
onCell?: (rowData: RecordType, index: number) => import("react").TdHTMLAttributes<HTMLTableCellElement>;
|
|
200
|
-
onCellFooterStyles?: Omit<CSSProperties, "position" | "
|
|
200
|
+
onCellFooterStyles?: Omit<CSSProperties, "position" | "display" | "width" | "minWidth" | "left" | "right"> | ((cellValue: any, cell: import("@tanstack/react-table").Header<RecordType, unknown>) => Omit<CSSProperties, "position" | "display" | "width" | "minWidth" | "left" | "right">);
|
|
201
201
|
getValue?: (row: any, rowIndex: number) => any;
|
|
202
202
|
getCellProps?: (value: any, row: any, rowIndex: number) => import("./../../grid-component/type").CellProps;
|
|
203
203
|
headerCellProps?: import("./../../grid-component/type").CellProps;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import React, { useContext } from "react";
|
|
3
|
-
import { DatePicker, TimePicker } from "rc-master-ui";
|
|
4
|
-
import { Divider, Row, Col, Input,
|
|
3
|
+
import { DatePicker, TimePicker, ColorPicker } from "rc-master-ui";
|
|
4
|
+
import { Divider, Row, Col, Input, Button } from "antd";
|
|
5
5
|
import { checkDecimalSeparator, checkThousandSeparator, checkFieldKey, convertArrayWithIndent, convertDateToDayjs, convertLabelToTitle, getDatepickerFormat, isDisable, isEmpty, isNullOrUndefined, customWeekStartEndFormat, convertDayjsToDate, parseBooleanToValue, isColor, genPresets, getFormat, removeVietnameseTones } from "../hook/utils";
|
|
6
6
|
import classNames from "classnames";
|
|
7
7
|
import { NumericFormat } from "react-numeric-component";
|
|
@@ -335,6 +335,14 @@ $cell-index-focus-bg-Dark: #E6EFFD !default;
|
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
337
|
|
|
338
|
+
.ui-rc-color-picker-trigger {
|
|
339
|
+
width: 100%;
|
|
340
|
+
border-radius: 0;
|
|
341
|
+
.ui-rc-color-picker-color-block {
|
|
342
|
+
width: 100%;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
338
346
|
textarea.ant-input {
|
|
339
347
|
line-height: 1.8;
|
|
340
348
|
}
|
|
@@ -956,7 +956,7 @@ const EditableCell = props => {
|
|
|
956
956
|
green: _colors.green,
|
|
957
957
|
cyan: _colors.cyan
|
|
958
958
|
});
|
|
959
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
959
|
+
return /*#__PURE__*/_react.default.createElement(_rcMasterUi.ColorPicker, {
|
|
960
960
|
value: color,
|
|
961
961
|
allowClear: column.isClearable ?? true,
|
|
962
962
|
onChangeComplete: valueColor => {
|
|
@@ -335,6 +335,14 @@ $cell-index-focus-bg-Dark: #E6EFFD !default;
|
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
337
|
|
|
338
|
+
.ui-rc-color-picker-trigger {
|
|
339
|
+
width: 100%;
|
|
340
|
+
border-radius: 0;
|
|
341
|
+
.ui-rc-color-picker-color-block {
|
|
342
|
+
width: 100%;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
338
346
|
textarea.ant-input {
|
|
339
347
|
line-height: 1.8;
|
|
340
348
|
}
|