@trackunit/custom-field-components 0.0.176 → 0.0.178
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/DateCustomField.d.ts +4 -0
- package/index.js +3 -2
- package/package.json +4 -4
package/DateCustomField.d.ts
CHANGED
|
@@ -40,5 +40,9 @@ export interface DateCustomFieldProps extends Omit<DateFieldProps, "label">, For
|
|
|
40
40
|
* @memberof DateCustomFieldProps
|
|
41
41
|
*/
|
|
42
42
|
isInvalid?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* The label for the Date.
|
|
45
|
+
*/
|
|
46
|
+
title?: string;
|
|
43
47
|
}
|
|
44
48
|
export declare const DateCustomField: (props: DateCustomFieldProps) => JSX.Element;
|
package/index.js
CHANGED
|
@@ -1902,7 +1902,7 @@ const DateCustomField = props => {
|
|
|
1902
1902
|
helpAddon: props.helpAddon || null,
|
|
1903
1903
|
helpText: props.errorMessage || props.helpText,
|
|
1904
1904
|
onChange: onChangeHandler,
|
|
1905
|
-
label:
|
|
1905
|
+
label: props.title,
|
|
1906
1906
|
defaultValue: defaultValue
|
|
1907
1907
|
}));
|
|
1908
1908
|
};
|
|
@@ -2677,7 +2677,8 @@ const useCustomFieldResolver = (field, validation, unitPreference = "SI", fieldI
|
|
|
2677
2677
|
validationRules: rules,
|
|
2678
2678
|
helpText: description,
|
|
2679
2679
|
errorMessage: errorMessage,
|
|
2680
|
-
setValue: validation.setValue
|
|
2680
|
+
setValue: validation.setValue,
|
|
2681
|
+
title: field.definition.title || ""
|
|
2681
2682
|
}, key);
|
|
2682
2683
|
}
|
|
2683
2684
|
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/custom-field-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.178",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@trackunit/react-core-contexts-test": "0.0.
|
|
7
|
+
"@trackunit/react-core-contexts-test": "0.0.51",
|
|
8
8
|
"@trackunit/react-components": "0.0.185",
|
|
9
9
|
"react": "17.0.2",
|
|
10
10
|
"react-hook-form": "^7.36.1",
|
|
11
|
-
"@trackunit/iris-app-runtime-core": "0.0.
|
|
12
|
-
"@trackunit/iris-app-runtime-core-api": "0.0.
|
|
11
|
+
"@trackunit/iris-app-runtime-core": "0.0.80",
|
|
12
|
+
"@trackunit/iris-app-runtime-core-api": "0.0.76",
|
|
13
13
|
"react-select": "^5.4.0",
|
|
14
14
|
"libphonenumber-js": "^1.10.13"
|
|
15
15
|
},
|