react-table-edit 1.2.15 → 1.2.17
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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -3
- package/dist/index.mjs +4 -3
- package/package.json +6 -9
- package/dist/css/_variables.scss +0 -28
- package/dist/css/styles.css +0 -12566
- package/dist/css/styles.css.map +0 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1077,7 +1077,7 @@ var SelectTable = (0, import_react6.forwardRef)((props, ref) => {
|
|
|
1077
1077
|
if (element) {
|
|
1078
1078
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { children: [
|
|
1079
1079
|
index === 0 ? "" : ", ",
|
|
1080
|
-
|
|
1080
|
+
formatOptionLabel ? formatOptionLabel(value) : value[fieldLabel ?? "label"]
|
|
1081
1081
|
] }, index);
|
|
1082
1082
|
}
|
|
1083
1083
|
}) }) }) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: (0, import_classnames4.default)("select-value", { "d-none": searchTerm }), children: [
|
|
@@ -2866,7 +2866,8 @@ var TableEdit = (0, import_react16.forwardRef)((props, ref) => {
|
|
|
2866
2866
|
formatSetting,
|
|
2867
2867
|
handleSelect,
|
|
2868
2868
|
haveSum,
|
|
2869
|
-
isMulti
|
|
2869
|
+
isMulti,
|
|
2870
|
+
disableAutoKey
|
|
2870
2871
|
} = props;
|
|
2871
2872
|
(0, import_react16.useImperativeHandle)(ref, () => {
|
|
2872
2873
|
return {
|
|
@@ -3759,7 +3760,7 @@ var TableEdit = (0, import_react16.forwardRef)((props, ref) => {
|
|
|
3759
3760
|
}
|
|
3760
3761
|
}
|
|
3761
3762
|
if (haveNew && !addDisable) {
|
|
3762
|
-
data.push(defaultValue ? { ...defaultValue, [fieldKey]: generateUUID() } : {});
|
|
3763
|
+
data.push(defaultValue ? { ...defaultValue, [fieldKey]: disableAutoKey ? void 0 : generateUUID() } : {});
|
|
3763
3764
|
setDataSource([...data]);
|
|
3764
3765
|
} else {
|
|
3765
3766
|
setDataSource([...data]);
|
package/dist/index.mjs
CHANGED
|
@@ -1040,7 +1040,7 @@ var SelectTable = forwardRef((props, ref) => {
|
|
|
1040
1040
|
if (element) {
|
|
1041
1041
|
return /* @__PURE__ */ jsxs5("span", { children: [
|
|
1042
1042
|
index === 0 ? "" : ", ",
|
|
1043
|
-
|
|
1043
|
+
formatOptionLabel ? formatOptionLabel(value) : value[fieldLabel ?? "label"]
|
|
1044
1044
|
] }, index);
|
|
1045
1045
|
}
|
|
1046
1046
|
}) }) }) : /* @__PURE__ */ jsx5(Fragment6, { children: /* @__PURE__ */ jsxs5("div", { className: classnames3("select-value", { "d-none": searchTerm }), children: [
|
|
@@ -2837,7 +2837,8 @@ var TableEdit = forwardRef4((props, ref) => {
|
|
|
2837
2837
|
formatSetting,
|
|
2838
2838
|
handleSelect,
|
|
2839
2839
|
haveSum,
|
|
2840
|
-
isMulti
|
|
2840
|
+
isMulti,
|
|
2841
|
+
disableAutoKey
|
|
2841
2842
|
} = props;
|
|
2842
2843
|
useImperativeHandle(ref, () => {
|
|
2843
2844
|
return {
|
|
@@ -3730,7 +3731,7 @@ var TableEdit = forwardRef4((props, ref) => {
|
|
|
3730
3731
|
}
|
|
3731
3732
|
}
|
|
3732
3733
|
if (haveNew && !addDisable) {
|
|
3733
|
-
data.push(defaultValue ? { ...defaultValue, [fieldKey]: generateUUID() } : {});
|
|
3734
|
+
data.push(defaultValue ? { ...defaultValue, [fieldKey]: disableAutoKey ? void 0 : generateUUID() } : {});
|
|
3734
3735
|
setDataSource([...data]);
|
|
3735
3736
|
} else {
|
|
3736
3737
|
setDataSource([...data]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-table-edit",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.17",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
],
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "tsup src/index.ts --format cjs,esm --dts",
|
|
12
|
-
"build-css": "sass src/scss/index.scss dist/css/styles.css",
|
|
13
12
|
"start": "node dist/index.js"
|
|
14
13
|
},
|
|
15
14
|
"keywords": [
|
|
@@ -26,21 +25,21 @@
|
|
|
26
25
|
"@hookform/resolvers": "^2.8.10",
|
|
27
26
|
"@types/react-resizable": "^3.0.7",
|
|
28
27
|
"becoxy-icons": "1.8.1",
|
|
29
|
-
"bootstrap": "
|
|
28
|
+
"bootstrap": "5.1.0",
|
|
30
29
|
"classnames": "2.3.1",
|
|
31
|
-
"i18next": "^21.8.2",
|
|
32
30
|
"moment": "^2.29.3",
|
|
33
|
-
"react": "
|
|
34
|
-
"react-dom": "
|
|
31
|
+
"react": "^18.1.0",
|
|
32
|
+
"react-dom": "^18.1.0",
|
|
35
33
|
"react-hook-form": "7.43.9",
|
|
36
34
|
"react-hot-toast": "2.2.0",
|
|
35
|
+
"i18next": "^21.8.2",
|
|
37
36
|
"react-i18next": "^11.16.9",
|
|
38
|
-
"react-number-format": "^5.3.3",
|
|
39
37
|
"react-resizable": "^3.0.5",
|
|
40
38
|
"react-router-dom": "^6.3.0",
|
|
41
39
|
"reactstrap": "9.0.1",
|
|
42
40
|
"sweetalert2": "^11.4.14",
|
|
43
41
|
"sweetalert2-react-content": "^5.0.0",
|
|
42
|
+
"react-number-format": "^5.3.3",
|
|
44
43
|
"yup": "^0.32.11"
|
|
45
44
|
},
|
|
46
45
|
"peerDependencies": {
|
|
@@ -48,8 +47,6 @@
|
|
|
48
47
|
"react-dom": ">=16.8.6"
|
|
49
48
|
},
|
|
50
49
|
"devDependencies": {
|
|
51
|
-
"node-sass": "^9.0.0",
|
|
52
|
-
"sass": "^1.80.6",
|
|
53
50
|
"tsup": "^8.0.2",
|
|
54
51
|
"typescript": "^5.6.3"
|
|
55
52
|
}
|
package/dist/css/_variables.scss
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
$white: #fff !default;
|
|
2
|
-
$gray-50: #f6f6f6 !default;
|
|
3
|
-
$gray-100: #babfc7 !default; // $gray-lightest
|
|
4
|
-
$gray-200: #ededed !default; // $gray-lighter
|
|
5
|
-
$gray-300: #dae1e7 !default; // $gray-light
|
|
6
|
-
$gray-400: #636363 !default;
|
|
7
|
-
$gray-500: #adb5bd !default;
|
|
8
|
-
$gray-600: #b8c2cc !default; // $gray
|
|
9
|
-
$gray-700: #4e5154 !default;
|
|
10
|
-
$gray-800: #1e1e1e !default; // $gray-dark
|
|
11
|
-
$gray-900: #2a2e30 !default;
|
|
12
|
-
$black: #22292f !default; // 231f48 22292f
|
|
13
|
-
|
|
14
|
-
$primary: #eb4619 !default;
|
|
15
|
-
$secondary: #82868b !default;
|
|
16
|
-
$success: #28c76f !default;
|
|
17
|
-
$danger: #ea5455 !default;
|
|
18
|
-
$info: #00cfe8 !default;
|
|
19
|
-
$warning: #ff9f43 !default;
|
|
20
|
-
$light: $gray-50 !default;
|
|
21
|
-
$dark: #4b4b4b !default;
|
|
22
|
-
$body-bg: #f8f8f8 !default;
|
|
23
|
-
|
|
24
|
-
//checkbox
|
|
25
|
-
$form-switch-height: 1.7rem !default; // (c)
|
|
26
|
-
$switch-bg-color: #e2e2e2 !default; // (c)
|
|
27
|
-
$input-disabled-bg: #efefef !default;
|
|
28
|
-
$form-check-input-checked-bg-image: url("data:image/svg+xml;charset=utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9.5 7.5'><polyline points='0.75 4.35 4.18 6.75 8.75 0.75' style='fill:none;stroke:%23fff;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px'/></svg>") !default;
|