react-table-edit 0.2.6 → 0.2.7

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/dist/index.d.mts CHANGED
@@ -47,6 +47,7 @@ type IColumnTable = {
47
47
  isPrimarykey?: boolean;
48
48
  isUnikey?: boolean;
49
49
  haveSum?: boolean;
50
+ haveToolTip?: boolean;
50
51
  validate?: any;
51
52
  disabledCondition?: any;
52
53
  callback?: any;
package/dist/index.d.ts CHANGED
@@ -47,6 +47,7 @@ type IColumnTable = {
47
47
  isPrimarykey?: boolean;
48
48
  isUnikey?: boolean;
49
49
  haveSum?: boolean;
50
+ haveToolTip?: boolean;
50
51
  validate?: any;
51
52
  disabledCondition?: any;
52
53
  callback?: any;
package/dist/index.js CHANGED
@@ -2509,11 +2509,10 @@ var TableEdit = (0, import_react12.forwardRef)((props, ref) => {
2509
2509
  id: indexFocus === indexRow && typeDis !== 1 ? `${idTable}-col${indexCol + 1}-row${indexRow + 1}` : "",
2510
2510
  className: (0, import_classnames9.default)("r-rowcell-content", { "r-is-invalid": errorMessage }),
2511
2511
  style: {
2512
- padding: typeDis === 1 ? 2 : !errorMessage ? "6px 10px" : 0,
2513
- width: typeDis === 1 ? "calc(100% - 4px)" : !errorMessage ? "calc(100% - 20px)" : "0"
2512
+ margin: typeDis === 1 ? 2 : !errorMessage ? "7px 9px" : 2
2514
2513
  },
2515
2514
  children: [
2516
- typeDis === 1 && !refreshRow ? renderEdit(row, col, indexRow, indexCol) : col.editType === "numeric" ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "r-cell-text", children: typeDis === 2 ? col.template(row, indexRow) : value }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2515
+ typeDis === 1 && !refreshRow ? renderEdit(row, col, indexRow, indexCol) : !col.haveToolTip ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "r-cell-text", children: typeDis === 2 ? col.template(row, indexRow) : value }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2517
2516
  import_ej2_react_popups.TooltipComponent,
2518
2517
  {
2519
2518
  content: typeDis === 2 ? col.template(row, indexRow)?.toString() : value,
@@ -2525,7 +2524,7 @@ var TableEdit = (0, import_react12.forwardRef)((props, ref) => {
2525
2524
  children: typeDis === 2 ? col.template(row, indexRow) : value
2526
2525
  }
2527
2526
  ),
2528
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "icon-table", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_ej2_react_popups.TooltipComponent, { className: (0, import_classnames9.default)("cursor-pointer text-primary", { "d-none": !errorMessage }), content: errorMessage?.toString() ?? "", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_becoxy_icons4.AlertCircle, { fontSize: 16.5 }) }) })
2527
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "icon-table", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_ej2_react_popups.TooltipComponent, { className: (0, import_classnames9.default)("cursor-pointer text-primary", { "d-none": !errorMessage }), content: errorMessage?.toString() ?? "", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_becoxy_icons4.AlertCircle, { fontSize: 15.5 }) }) })
2529
2528
  ]
2530
2529
  }
2531
2530
  )
package/dist/index.mjs CHANGED
@@ -2483,11 +2483,10 @@ var TableEdit = forwardRef2((props, ref) => {
2483
2483
  id: indexFocus === indexRow && typeDis !== 1 ? `${idTable}-col${indexCol + 1}-row${indexRow + 1}` : "",
2484
2484
  className: classnames5("r-rowcell-content", { "r-is-invalid": errorMessage }),
2485
2485
  style: {
2486
- padding: typeDis === 1 ? 2 : !errorMessage ? "6px 10px" : 0,
2487
- width: typeDis === 1 ? "calc(100% - 4px)" : !errorMessage ? "calc(100% - 20px)" : "0"
2486
+ margin: typeDis === 1 ? 2 : !errorMessage ? "7px 9px" : 2
2488
2487
  },
2489
2488
  children: [
2490
- typeDis === 1 && !refreshRow ? renderEdit(row, col, indexRow, indexCol) : col.editType === "numeric" ? /* @__PURE__ */ jsx12("div", { className: "r-cell-text", children: typeDis === 2 ? col.template(row, indexRow) : value }) : /* @__PURE__ */ jsx12(
2489
+ typeDis === 1 && !refreshRow ? renderEdit(row, col, indexRow, indexCol) : !col.haveToolTip ? /* @__PURE__ */ jsx12("div", { className: "r-cell-text", children: typeDis === 2 ? col.template(row, indexRow) : value }) : /* @__PURE__ */ jsx12(
2491
2490
  TooltipComponent,
2492
2491
  {
2493
2492
  content: typeDis === 2 ? col.template(row, indexRow)?.toString() : value,
@@ -2499,7 +2498,7 @@ var TableEdit = forwardRef2((props, ref) => {
2499
2498
  children: typeDis === 2 ? col.template(row, indexRow) : value
2500
2499
  }
2501
2500
  ),
2502
- /* @__PURE__ */ jsx12("span", { className: "icon-table", children: /* @__PURE__ */ jsx12(TooltipComponent, { className: classnames5("cursor-pointer text-primary", { "d-none": !errorMessage }), content: errorMessage?.toString() ?? "", children: /* @__PURE__ */ jsx12(AlertCircle, { fontSize: 16.5 }) }) })
2501
+ /* @__PURE__ */ jsx12("span", { className: "icon-table", children: /* @__PURE__ */ jsx12(TooltipComponent, { className: classnames5("cursor-pointer text-primary", { "d-none": !errorMessage }), content: errorMessage?.toString() ?? "", children: /* @__PURE__ */ jsx12(AlertCircle, { fontSize: 15.5 }) }) })
2503
2502
  ]
2504
2503
  }
2505
2504
  )
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-table-edit",
3
3
  "license": "MIT",
4
- "version": "0.2.6",
4
+ "version": "0.2.7",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",