@acvl/frontend-components 0.0.29 → 0.0.30
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/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/components/v1/forms/utils.d.ts +2 -2
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/v1/forms/utils.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -25706,7 +25706,7 @@ const typeSwitch = ({ base_object, base_key, response, submitData, useLabel, dat
|
|
|
25706
25706
|
else if (object instanceof File) {
|
|
25707
25707
|
setValue(response, key, object);
|
|
25708
25708
|
}
|
|
25709
|
-
else if (object
|
|
25709
|
+
else if (dayjs.isDayjs(object)) {
|
|
25710
25710
|
setValue(response, key, object.format(get(props, `${key}.format`, "YYYY-MM-DD")));
|
|
25711
25711
|
}
|
|
25712
25712
|
else if ("label" in object && "value" in object) {
|
|
@@ -25782,7 +25782,7 @@ const typeSwitch = ({ base_object, base_key, response, submitData, useLabel, dat
|
|
|
25782
25782
|
break;
|
|
25783
25783
|
}
|
|
25784
25784
|
};
|
|
25785
|
-
const jsonForm = ({ submitData, data, useLabel, props
|
|
25785
|
+
const jsonForm = ({ submitData, data, useLabel, props }) => {
|
|
25786
25786
|
const response = {};
|
|
25787
25787
|
forEach(submitData, function (value, key) {
|
|
25788
25788
|
if (key != "id" && isEqual(get(data, key), value))
|
|
@@ -25800,7 +25800,7 @@ const jsonForm = ({ submitData, data, useLabel, props, }) => {
|
|
|
25800
25800
|
});
|
|
25801
25801
|
return response;
|
|
25802
25802
|
};
|
|
25803
|
-
const formDataForm = ({ submitData, data, useLabel, props
|
|
25803
|
+
const formDataForm = ({ submitData, data, useLabel, props }) => {
|
|
25804
25804
|
const formData = new FormData();
|
|
25805
25805
|
forEach(submitData, function (value, key) {
|
|
25806
25806
|
if (key != "id" && isEqual(get(data, key), value))
|