rez-table-listing-mui 1.3.54 → 1.3.55
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
CHANGED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var resolve = require('@rollup/plugin-node-resolve');
|
|
6
|
+
var commonjs = require('@rollup/plugin-commonjs');
|
|
7
|
+
var typescript = require('@rollup/plugin-typescript');
|
|
8
|
+
var terser = require('@rollup/plugin-terser');
|
|
9
|
+
var dts = require('rollup-plugin-dts');
|
|
10
|
+
var peerDepsExternal = require('rollup-plugin-peer-deps-external');
|
|
11
|
+
var postcss = require('rollup-plugin-postcss');
|
|
12
|
+
|
|
13
|
+
const packageJson = require("./package.json");
|
|
14
|
+
|
|
15
|
+
var rollup_config = [
|
|
16
|
+
{
|
|
17
|
+
input: "src/index.ts",
|
|
18
|
+
output: [
|
|
19
|
+
{
|
|
20
|
+
file: packageJson.main,
|
|
21
|
+
format: "cjs",
|
|
22
|
+
sourcemap: true,
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
file: packageJson.module,
|
|
26
|
+
format: "esm",
|
|
27
|
+
sourcemap: true,
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
plugins: [
|
|
31
|
+
peerDepsExternal(),
|
|
32
|
+
resolve(),
|
|
33
|
+
commonjs(),
|
|
34
|
+
typescript({ tsconfig: "./tsconfig.json" }),
|
|
35
|
+
terser(),
|
|
36
|
+
postcss(),
|
|
37
|
+
],
|
|
38
|
+
external: ["react", "react-dom"],
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
input: "src/index.ts",
|
|
42
|
+
output: [{ file: packageJson.types }],
|
|
43
|
+
plugins: [dts.default()],
|
|
44
|
+
external: [/\.scss/],
|
|
45
|
+
},
|
|
46
|
+
];
|
|
47
|
+
|
|
48
|
+
exports.default = rollup_config;
|
|
@@ -15,10 +15,7 @@ import {
|
|
|
15
15
|
horizontalListSortingStrategy,
|
|
16
16
|
SortableContext,
|
|
17
17
|
} from "@dnd-kit/sortable";
|
|
18
|
-
import {
|
|
19
|
-
getColumnPinningStylesBody,
|
|
20
|
-
getDepthBackground,
|
|
21
|
-
} from "../libs/utils/common";
|
|
18
|
+
import { getColumnPinningStylesBody } from "../libs/utils/common";
|
|
22
19
|
import Checkbox from "./inputs/checkbox";
|
|
23
20
|
|
|
24
21
|
interface TableBodyProps<T> {
|
|
@@ -50,7 +47,6 @@ function TableBody<T>({
|
|
|
50
47
|
position: "sticky",
|
|
51
48
|
left: 0,
|
|
52
49
|
width: "50px",
|
|
53
|
-
backgroundColor: getDepthBackground(row.depth),
|
|
54
50
|
}}
|
|
55
51
|
>
|
|
56
52
|
<Checkbox
|
|
@@ -74,7 +70,6 @@ function TableBody<T>({
|
|
|
74
70
|
}),
|
|
75
71
|
} as React.CSSProperties,
|
|
76
72
|
align: (cell.column.columnDef.meta as align)?.align || "left",
|
|
77
|
-
backgroundColor: getDepthBackground(row.depth),
|
|
78
73
|
};
|
|
79
74
|
|
|
80
75
|
return enableColumnReordering ? (
|
|
@@ -76,12 +76,6 @@ export function customDebounce<T extends (...args: any[]) => any>(
|
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
export const getDepthBackground = (depth: number) => {
|
|
80
|
-
if (depth === 0) return "white";
|
|
81
|
-
const shade = 255 - depth * 8; // reduce brightness per level
|
|
82
|
-
return `rgb(${shade}, ${shade}, ${shade})`;
|
|
83
|
-
};
|
|
84
|
-
|
|
85
79
|
//ENTITY TYPE
|
|
86
80
|
const ENVIRONMENT = "crm_dev";
|
|
87
81
|
export const ENTITY_TYPE = "LEAD";
|