@trackunit/custom-field-components 1.13.46 → 1.13.47
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/index.cjs.js +4 -2
- package/index.esm.js +4 -2
- package/package.json +9 -9
package/index.cjs.js
CHANGED
|
@@ -617,7 +617,8 @@ const useCustomFieldResolver = ({ field, definition, register, setValue, formSta
|
|
|
617
617
|
const rules = getStringListValidationRules(def);
|
|
618
618
|
return (jsxRuntime.jsx(StringListField, { control: control, "data-testid": key, defaultValue: value ?? undefined, description: description ?? "", disabled: !isEditableCombined, errorMessage: errorMessage, id: uniqueIdentifier, label: title || "", register: validation.register, setValue: validation.setValue, validationRules: rules }));
|
|
619
619
|
}
|
|
620
|
-
case "JsonFieldDefinition":
|
|
620
|
+
case "JsonFieldDefinition":
|
|
621
|
+
case "FileFieldDefinition": {
|
|
621
622
|
return null;
|
|
622
623
|
}
|
|
623
624
|
case "MonetaryFieldDefinition": {
|
|
@@ -669,7 +670,8 @@ const useValue = (uniqueIdentifier, numberValue, control, def, field) => {
|
|
|
669
670
|
const value = field?.__typename === "DateFieldValueAndDefinition" ? field.dateValue : null;
|
|
670
671
|
return value ?? undefined;
|
|
671
672
|
}
|
|
672
|
-
case "JsonFieldDefinition":
|
|
673
|
+
case "JsonFieldDefinition":
|
|
674
|
+
case "FileFieldDefinition": {
|
|
673
675
|
return null;
|
|
674
676
|
}
|
|
675
677
|
case "StringListFieldDefinition": {
|
package/index.esm.js
CHANGED
|
@@ -615,7 +615,8 @@ const useCustomFieldResolver = ({ field, definition, register, setValue, formSta
|
|
|
615
615
|
const rules = getStringListValidationRules(def);
|
|
616
616
|
return (jsx(StringListField, { control: control, "data-testid": key, defaultValue: value ?? undefined, description: description ?? "", disabled: !isEditableCombined, errorMessage: errorMessage, id: uniqueIdentifier, label: title || "", register: validation.register, setValue: validation.setValue, validationRules: rules }));
|
|
617
617
|
}
|
|
618
|
-
case "JsonFieldDefinition":
|
|
618
|
+
case "JsonFieldDefinition":
|
|
619
|
+
case "FileFieldDefinition": {
|
|
619
620
|
return null;
|
|
620
621
|
}
|
|
621
622
|
case "MonetaryFieldDefinition": {
|
|
@@ -667,7 +668,8 @@ const useValue = (uniqueIdentifier, numberValue, control, def, field) => {
|
|
|
667
668
|
const value = field?.__typename === "DateFieldValueAndDefinition" ? field.dateValue : null;
|
|
668
669
|
return value ?? undefined;
|
|
669
670
|
}
|
|
670
|
-
case "JsonFieldDefinition":
|
|
671
|
+
case "JsonFieldDefinition":
|
|
672
|
+
case "FileFieldDefinition": {
|
|
671
673
|
return null;
|
|
672
674
|
}
|
|
673
675
|
case "StringListFieldDefinition": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/custom-field-components",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.47",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -10,15 +10,15 @@
|
|
|
10
10
|
"react": "19.0.0",
|
|
11
11
|
"react-hook-form": "7.62.0",
|
|
12
12
|
"react-select": "^5.10.2",
|
|
13
|
-
"@trackunit/react-form-components": "1.14.
|
|
13
|
+
"@trackunit/react-form-components": "1.14.41",
|
|
14
14
|
"@trackunit/shared-utils": "1.13.51",
|
|
15
|
-
"@trackunit/custom-field-api": "1.13.
|
|
16
|
-
"@trackunit/iris-app-runtime-core": "1.13.
|
|
17
|
-
"@trackunit/react-components": "1.17.
|
|
18
|
-
"@trackunit/react-modal": "1.14.
|
|
19
|
-
"@trackunit/react-core-hooks": "1.12.
|
|
20
|
-
"@trackunit/i18n-library-translation": "1.12.
|
|
21
|
-
"@trackunit/iris-app-runtime-core-api": "1.12.
|
|
15
|
+
"@trackunit/custom-field-api": "1.13.43",
|
|
16
|
+
"@trackunit/iris-app-runtime-core": "1.13.35",
|
|
17
|
+
"@trackunit/react-components": "1.17.37",
|
|
18
|
+
"@trackunit/react-modal": "1.14.44",
|
|
19
|
+
"@trackunit/react-core-hooks": "1.12.37",
|
|
20
|
+
"@trackunit/i18n-library-translation": "1.12.38",
|
|
21
|
+
"@trackunit/iris-app-runtime-core-api": "1.12.33"
|
|
22
22
|
},
|
|
23
23
|
"module": "./index.esm.js",
|
|
24
24
|
"main": "./index.cjs.js",
|