@apexcura/core 0.0.16-Beta3 → 0.0.16-Beta30
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 +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +8 -3
- package/dist/index.mjs +10 -4
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -70,6 +70,16 @@ 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
|
+
}[];
|
|
73
83
|
selectBefore?: {
|
|
74
84
|
label: string;
|
|
75
85
|
value: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -70,6 +70,16 @@ 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
|
+
}[];
|
|
73
83
|
selectBefore?: {
|
|
74
84
|
label: string;
|
|
75
85
|
value: string;
|
package/dist/index.js
CHANGED
|
@@ -100,8 +100,6 @@ 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);
|
|
105
103
|
const updateSchema = (schema2) => {
|
|
106
104
|
return schema2.map((field) => {
|
|
107
105
|
if (field.name === name) {
|
|
@@ -114,7 +112,6 @@ var ElementExecutor = (props) => {
|
|
|
114
112
|
return field;
|
|
115
113
|
});
|
|
116
114
|
};
|
|
117
|
-
console.log("schema--------------", schema);
|
|
118
115
|
const updatedSchema = updateSchema(schema);
|
|
119
116
|
setSchema(updatedSchema);
|
|
120
117
|
props.setData({ ...props.data, schema: updatedSchema });
|
|
@@ -269,6 +266,14 @@ var ElementExecutor = (props) => {
|
|
|
269
266
|
onChange: (value) => onHandleChange(elementProps.name || "", value)
|
|
270
267
|
}
|
|
271
268
|
);
|
|
269
|
+
case "upload-manually":
|
|
270
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
271
|
+
import_ui_components.Upload,
|
|
272
|
+
{
|
|
273
|
+
...elementProps,
|
|
274
|
+
onChange: (value) => onHandleChange(elementProps.name || "", value)
|
|
275
|
+
}
|
|
276
|
+
);
|
|
272
277
|
case "image":
|
|
273
278
|
return /* @__PURE__ */ import_react.default.createElement(import_ui_components.Image, { ...elementProps });
|
|
274
279
|
case "input-password":
|
package/dist/index.mjs
CHANGED
|
@@ -22,7 +22,8 @@ import {
|
|
|
22
22
|
SingleCheckbox,
|
|
23
23
|
DropDownGroup,
|
|
24
24
|
FileUpload,
|
|
25
|
-
TabsElement
|
|
25
|
+
TabsElement,
|
|
26
|
+
Upload
|
|
26
27
|
} from "@apexcura/ui-components";
|
|
27
28
|
|
|
28
29
|
// src/services/http-service.tsx
|
|
@@ -87,8 +88,6 @@ var ElementExecutor = (props) => {
|
|
|
87
88
|
const [data, setData] = useState([]);
|
|
88
89
|
const [schema, setSchema] = useState(props.data.schema);
|
|
89
90
|
const onHandleChange = (name, value) => {
|
|
90
|
-
console.log("name", name);
|
|
91
|
-
console.log("value", value);
|
|
92
91
|
const updateSchema = (schema2) => {
|
|
93
92
|
return schema2.map((field) => {
|
|
94
93
|
if (field.name === name) {
|
|
@@ -101,7 +100,6 @@ var ElementExecutor = (props) => {
|
|
|
101
100
|
return field;
|
|
102
101
|
});
|
|
103
102
|
};
|
|
104
|
-
console.log("schema--------------", schema);
|
|
105
103
|
const updatedSchema = updateSchema(schema);
|
|
106
104
|
setSchema(updatedSchema);
|
|
107
105
|
props.setData({ ...props.data, schema: updatedSchema });
|
|
@@ -256,6 +254,14 @@ var ElementExecutor = (props) => {
|
|
|
256
254
|
onChange: (value) => onHandleChange(elementProps.name || "", value)
|
|
257
255
|
}
|
|
258
256
|
);
|
|
257
|
+
case "upload-manually":
|
|
258
|
+
return /* @__PURE__ */ React.createElement(
|
|
259
|
+
Upload,
|
|
260
|
+
{
|
|
261
|
+
...elementProps,
|
|
262
|
+
onChange: (value) => onHandleChange(elementProps.name || "", value)
|
|
263
|
+
}
|
|
264
|
+
);
|
|
259
265
|
case "image":
|
|
260
266
|
return /* @__PURE__ */ React.createElement(Image, { ...elementProps });
|
|
261
267
|
case "input-password":
|
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-Beta30",
|
|
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-Beta30",
|
|
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",
|