@trackunit/custom-field-components 0.0.699 → 0.0.701
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 +1 -1
- package/index.esm.js +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -433,7 +433,7 @@ const useCustomFieldResolver = ({ field, definition, register, setValue, formSta
|
|
|
433
433
|
case "PhoneNumberFieldDefinition": {
|
|
434
434
|
const value = (field === null || field === void 0 ? void 0 : field.__typename) === "PhoneNumberFieldValueAndDefinition" ? field.stringValue : undefined;
|
|
435
435
|
const rules = getPhoneNumberValidationRules(!Boolean(def.uiEditable));
|
|
436
|
-
return (jsxRuntime.jsx(reactFormComponents.PhoneFieldWithController, { control: control, controllerProps: { rules }, dataTestId: `${key}`, errorMessage: errorMessage, helpText: description, id: uniqueIdentifier, label: title, name:
|
|
436
|
+
return (jsxRuntime.jsx(reactFormComponents.PhoneFieldWithController, { control: control, controllerProps: { rules }, dataTestId: `${key}`, errorMessage: errorMessage, helpText: description, id: uniqueIdentifier, label: title, name: uniqueIdentifier, placeholder: title !== null && title !== void 0 ? title : "", readOnly: !isEditableCombined, value: value !== null && value !== void 0 ? value : "" }));
|
|
437
437
|
}
|
|
438
438
|
case "StringFieldDefinition": {
|
|
439
439
|
const value = (field === null || field === void 0 ? void 0 : field.__typename) === "StringFieldValueAndDefinition" ? field.stringValue : undefined;
|
package/index.esm.js
CHANGED
|
@@ -410,7 +410,7 @@ const useCustomFieldResolver = ({ field, definition, register, setValue, formSta
|
|
|
410
410
|
case "PhoneNumberFieldDefinition": {
|
|
411
411
|
const value = (field === null || field === void 0 ? void 0 : field.__typename) === "PhoneNumberFieldValueAndDefinition" ? field.stringValue : undefined;
|
|
412
412
|
const rules = getPhoneNumberValidationRules(!Boolean(def.uiEditable));
|
|
413
|
-
return (jsx(PhoneFieldWithController, { control: control, controllerProps: { rules }, dataTestId: `${key}`, errorMessage: errorMessage, helpText: description, id: uniqueIdentifier, label: title, name:
|
|
413
|
+
return (jsx(PhoneFieldWithController, { control: control, controllerProps: { rules }, dataTestId: `${key}`, errorMessage: errorMessage, helpText: description, id: uniqueIdentifier, label: title, name: uniqueIdentifier, placeholder: title !== null && title !== void 0 ? title : "", readOnly: !isEditableCombined, value: value !== null && value !== void 0 ? value : "" }));
|
|
414
414
|
}
|
|
415
415
|
case "StringFieldDefinition": {
|
|
416
416
|
const value = (field === null || field === void 0 ? void 0 : field.__typename) === "StringFieldValueAndDefinition" ? field.stringValue : undefined;
|