@apexcura/ui-components 0.0.15-Beta73 → 0.0.15-Beta75
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.js +6 -4
- package/dist/index.mjs +6 -4
- package/package.json +3 -1
package/dist/index.js
CHANGED
|
@@ -1094,7 +1094,9 @@ var import_antd18 = require("antd");
|
|
|
1094
1094
|
var import_icons5 = require("@ant-design/icons");
|
|
1095
1095
|
var FileUpload = (props) => {
|
|
1096
1096
|
const { Dragger } = import_antd18.Upload;
|
|
1097
|
-
const [files, setFiles] = (0, import_react26.useState)(
|
|
1097
|
+
const [files, setFiles] = (0, import_react26.useState)(
|
|
1098
|
+
props.value && props.value.length > 0 ? props.value : []
|
|
1099
|
+
);
|
|
1098
1100
|
const handleChange = ({ fileList }) => {
|
|
1099
1101
|
setFiles(fileList);
|
|
1100
1102
|
if (props.onChange) {
|
|
@@ -1109,14 +1111,14 @@ var FileUpload = (props) => {
|
|
|
1109
1111
|
onSuccess("ok");
|
|
1110
1112
|
}, 0);
|
|
1111
1113
|
};
|
|
1112
|
-
return /* @__PURE__ */ import_react26.default.createElement(
|
|
1114
|
+
return /* @__PURE__ */ import_react26.default.createElement(
|
|
1113
1115
|
Dragger,
|
|
1114
1116
|
{
|
|
1115
1117
|
action: "",
|
|
1116
1118
|
accept: props.accept,
|
|
1117
1119
|
listType: "picture",
|
|
1118
1120
|
maxCount: props.max_count,
|
|
1119
|
-
multiple:
|
|
1121
|
+
multiple: props.multiple,
|
|
1120
1122
|
fileList: files,
|
|
1121
1123
|
onChange: handleChange,
|
|
1122
1124
|
showUploadList: true,
|
|
@@ -1124,7 +1126,7 @@ var FileUpload = (props) => {
|
|
|
1124
1126
|
},
|
|
1125
1127
|
/* @__PURE__ */ import_react26.default.createElement("p", null, /* @__PURE__ */ import_react26.default.createElement(import_icons5.InboxOutlined, null)),
|
|
1126
1128
|
/* @__PURE__ */ import_react26.default.createElement("p", null, "Click or drag file to upload")
|
|
1127
|
-
)
|
|
1129
|
+
);
|
|
1128
1130
|
};
|
|
1129
1131
|
|
|
1130
1132
|
// src/Components/TabsElement.tsx
|
package/dist/index.mjs
CHANGED
|
@@ -1025,7 +1025,9 @@ import { Upload } from "antd";
|
|
|
1025
1025
|
import { InboxOutlined } from "@ant-design/icons";
|
|
1026
1026
|
var FileUpload = (props) => {
|
|
1027
1027
|
const { Dragger } = Upload;
|
|
1028
|
-
const [files, setFiles] = useState8(
|
|
1028
|
+
const [files, setFiles] = useState8(
|
|
1029
|
+
props.value && props.value.length > 0 ? props.value : []
|
|
1030
|
+
);
|
|
1029
1031
|
const handleChange = ({ fileList }) => {
|
|
1030
1032
|
setFiles(fileList);
|
|
1031
1033
|
if (props.onChange) {
|
|
@@ -1040,14 +1042,14 @@ var FileUpload = (props) => {
|
|
|
1040
1042
|
onSuccess("ok");
|
|
1041
1043
|
}, 0);
|
|
1042
1044
|
};
|
|
1043
|
-
return /* @__PURE__ */ React25.createElement(
|
|
1045
|
+
return /* @__PURE__ */ React25.createElement(
|
|
1044
1046
|
Dragger,
|
|
1045
1047
|
{
|
|
1046
1048
|
action: "",
|
|
1047
1049
|
accept: props.accept,
|
|
1048
1050
|
listType: "picture",
|
|
1049
1051
|
maxCount: props.max_count,
|
|
1050
|
-
multiple:
|
|
1052
|
+
multiple: props.multiple,
|
|
1051
1053
|
fileList: files,
|
|
1052
1054
|
onChange: handleChange,
|
|
1053
1055
|
showUploadList: true,
|
|
@@ -1055,7 +1057,7 @@ var FileUpload = (props) => {
|
|
|
1055
1057
|
},
|
|
1056
1058
|
/* @__PURE__ */ React25.createElement("p", null, /* @__PURE__ */ React25.createElement(InboxOutlined, null)),
|
|
1057
1059
|
/* @__PURE__ */ React25.createElement("p", null, "Click or drag file to upload")
|
|
1058
|
-
)
|
|
1060
|
+
);
|
|
1059
1061
|
};
|
|
1060
1062
|
|
|
1061
1063
|
// src/Components/TabsElement.tsx
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apexcura/ui-components",
|
|
3
|
-
"version": "0.0.15-
|
|
3
|
+
"version": "0.0.15-Beta75",
|
|
4
4
|
"description": "Apex cura React components library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"apex cura",
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@testing-library/jest-dom": "^6.4.2",
|
|
34
34
|
"@testing-library/react": "^15.0.6",
|
|
35
|
+
"@types/ckeditor4": "^4.20.7",
|
|
35
36
|
"@types/jest": "^29.5.12",
|
|
36
37
|
"@types/react": "^18.3.1",
|
|
37
38
|
"@types/react-dom": "18.2.18",
|
|
@@ -54,6 +55,7 @@
|
|
|
54
55
|
"dependencies": {
|
|
55
56
|
"@tinymce/tinymce-react": "^5.0.1",
|
|
56
57
|
"chart.js": "^4.4.3",
|
|
58
|
+
"ckeditor4": "^4.24.0",
|
|
57
59
|
"date-fns": "^3.6.0",
|
|
58
60
|
"devextreme": "^24.1.3",
|
|
59
61
|
"devextreme-react": "^24.1.3",
|