@apexcura/core 0.0.16-Beta28 → 0.0.16-Beta3
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 +0 -10
- package/dist/index.d.ts +0 -10
- package/dist/index.js +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -70,16 +70,6 @@ type FormExecutorProps = {
|
|
|
70
70
|
label: string;
|
|
71
71
|
value: string;
|
|
72
72
|
}[];
|
|
73
|
-
firstOptions?: {
|
|
74
|
-
key?: number;
|
|
75
|
-
label: string;
|
|
76
|
-
value: string;
|
|
77
|
-
}[];
|
|
78
|
-
secondOptions?: {
|
|
79
|
-
key?: number;
|
|
80
|
-
label: string;
|
|
81
|
-
value: string;
|
|
82
|
-
}[];
|
|
83
73
|
selectBefore?: {
|
|
84
74
|
label: string;
|
|
85
75
|
value: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -70,16 +70,6 @@ type FormExecutorProps = {
|
|
|
70
70
|
label: string;
|
|
71
71
|
value: string;
|
|
72
72
|
}[];
|
|
73
|
-
firstOptions?: {
|
|
74
|
-
key?: number;
|
|
75
|
-
label: string;
|
|
76
|
-
value: string;
|
|
77
|
-
}[];
|
|
78
|
-
secondOptions?: {
|
|
79
|
-
key?: number;
|
|
80
|
-
label: string;
|
|
81
|
-
value: string;
|
|
82
|
-
}[];
|
|
83
73
|
selectBefore?: {
|
|
84
74
|
label: string;
|
|
85
75
|
value: string;
|
package/dist/index.js
CHANGED
|
@@ -100,6 +100,8 @@ var ElementExecutor = (props) => {
|
|
|
100
100
|
const [data, setData] = (0, import_react.useState)([]);
|
|
101
101
|
const [schema, setSchema] = (0, import_react.useState)(props.data.schema);
|
|
102
102
|
const onHandleChange = (name, value) => {
|
|
103
|
+
console.log("name", name);
|
|
104
|
+
console.log("value", value);
|
|
103
105
|
const updateSchema = (schema2) => {
|
|
104
106
|
return schema2.map((field) => {
|
|
105
107
|
if (field.name === name) {
|
|
@@ -112,6 +114,7 @@ var ElementExecutor = (props) => {
|
|
|
112
114
|
return field;
|
|
113
115
|
});
|
|
114
116
|
};
|
|
117
|
+
console.log("schema--------------", schema);
|
|
115
118
|
const updatedSchema = updateSchema(schema);
|
|
116
119
|
setSchema(updatedSchema);
|
|
117
120
|
props.setData({ ...props.data, schema: updatedSchema });
|
package/dist/index.mjs
CHANGED
|
@@ -87,6 +87,8 @@ var ElementExecutor = (props) => {
|
|
|
87
87
|
const [data, setData] = useState([]);
|
|
88
88
|
const [schema, setSchema] = useState(props.data.schema);
|
|
89
89
|
const onHandleChange = (name, value) => {
|
|
90
|
+
console.log("name", name);
|
|
91
|
+
console.log("value", value);
|
|
90
92
|
const updateSchema = (schema2) => {
|
|
91
93
|
return schema2.map((field) => {
|
|
92
94
|
if (field.name === name) {
|
|
@@ -99,6 +101,7 @@ var ElementExecutor = (props) => {
|
|
|
99
101
|
return field;
|
|
100
102
|
});
|
|
101
103
|
};
|
|
104
|
+
console.log("schema--------------", schema);
|
|
102
105
|
const updatedSchema = updateSchema(schema);
|
|
103
106
|
setSchema(updatedSchema);
|
|
104
107
|
props.setData({ ...props.data, schema: updatedSchema });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apexcura/core",
|
|
3
|
-
"version": "0.0.16-
|
|
3
|
+
"version": "0.0.16-Beta3",
|
|
4
4
|
"description": "Apex cura React components library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"apex cura",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"build": "tsup"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@apexcura/ui-components": "^0.0.14-
|
|
31
|
+
"@apexcura/ui-components": "^0.0.14-Beta3",
|
|
32
32
|
"@testing-library/jest-dom": "^6.4.2",
|
|
33
33
|
"@testing-library/react": "^15.0.6",
|
|
34
34
|
"@types/react-global-configuration": "^1.3.3",
|