@djb25/digit-ui-module-commonpt 1.0.15 → 1.0.16

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.
@@ -17415,18 +17415,7 @@ const PTSearchFields = {
17415
17415
  placeHolder: "PT_PROPERTY_UNIQUE_ID_PLACEHOLDER",
17416
17416
  validation: {
17417
17417
  pattern: {
17418
- value: "[A-Za-z]{2}\-[A-Za-z]{2}\-[0-9]{4}\-[0-9]{4}\-[0-9]{2}\-[0-9]{2}\-[0-9]{6}|[A-Za-z]{2}\-[A-Za-z]{2}\-[0-9]{4}\-[0-9]{2}\-[0-9]{2}\-[0-9]{6}",
17419
- message: "ERR_INVALID_PROPERTY_ID"
17420
- }
17421
- }
17422
- },
17423
- oldPropertyId: {
17424
- type: "text",
17425
- label: "PT_EXISTING_PROPERTY_ID",
17426
- placeholder: "PT_EXISTING_PROPERTY_ID_PLACEHOLDER",
17427
- validation: {
17428
- pattern: {
17429
- value: "[A-Za-z]{2}\-[A-Za-z]{2}\-[0-9]{4}\-[0-9]{4}\-[0-9]{2}\-[0-9]{2}\-[0-9]{6}|[A-Za-z]{2}\-[A-Za-z]{2}\-[0-9]{4}\-[0-9]{2}\-[0-9]{2}\-[0-9]{6}",
17418
+ value: "[A-Za-z]{2}-[A-Za-z]{2}-[0-9]{4}-[0-9]{4}-[0-9]{2}-[0-9]{2}-[0-9]{6}|[A-Za-z]{2}-[A-Za-z]{2}-[0-9]{4}-[0-9]{2}-[0-9]{2}-[0-9]{6}",
17430
17419
  message: "ERR_INVALID_PROPERTY_ID"
17431
17420
  }
17432
17421
  }
@@ -17520,7 +17509,7 @@ const Search = ({
17520
17509
  const [searchBy, setSearchBy] = useState("searchId");
17521
17510
  const [showToast, setShowToast] = useState(null);
17522
17511
  const search = useLocation().search;
17523
- const redirectToUrl = new URLSearchParams(search).get('redirectToUrl');
17512
+ const redirectToUrl = new URLSearchParams(search).get("redirectToUrl");
17524
17513
  const SearchComponent = memo(Digit.ComponentRegistryService.getComponent("CPTPropertySearchForm"));
17525
17514
  const SearchResultComponent = memo(Digit.ComponentRegistryService.getComponent("CPTPropertySearchResults"));
17526
17515
  const {
@@ -17600,7 +17589,7 @@ const EmployeeApp = ({
17600
17589
  const urltenantId = new URLSearchParams(useLocation().search).get("tenantId");
17601
17590
  const getBreadcrumbLabel = () => {
17602
17591
  const pathname = location.pathname;
17603
- if (pathname.includes("/commonpt/search")) return "SEARCH_PROPERTY";else if (pathname.includes("/view-property")) return "PT_PROPERTY_INFORMATION";
17592
+ if (pathname.includes("/commonpt/new-application")) return "PT_CREATE_PROPERTY";else if (pathname.includes("/commonpt/search")) return "SEARCH_PROPERTY";else if (pathname.includes("/view-property")) return "PT_PROPERTY_INFORMATION";
17604
17593
  return "ES_COMMON_INBOX";
17605
17594
  };
17606
17595
  const breadcrumbs = [{
@@ -19031,14 +19020,16 @@ const SearchPTID = ({
19031
19020
  tenantId: tenantId,
19032
19021
  selected: formValue === null || formValue === void 0 ? void 0 : formValue[key]
19033
19022
  }, field.customCompProps))
19023
+ }) : field !== null && field !== void 0 && field.componentInFront ? /*#__PURE__*/React.createElement(MobileNumber, {
19024
+ name: key,
19025
+ inputRef: register({
19026
+ value: getValues(key),
19027
+ shouldUnregister: true,
19028
+ ...validation
19029
+ })
19034
19030
  }) : /*#__PURE__*/React.createElement("div", {
19035
19031
  className: "field-container"
19036
- }, field !== null && field !== void 0 && field.componentInFront ? /*#__PURE__*/React.createElement("span", {
19037
- className: "employee-card-input employee-card-input--front",
19038
- style: {
19039
- flex: "none"
19040
- }
19041
- }, field === null || field === void 0 ? void 0 : field.componentInFront) : null, /*#__PURE__*/React.createElement(TextInput, {
19032
+ }, /*#__PURE__*/React.createElement(TextInput, {
19042
19033
  name: key,
19043
19034
  type: field === null || field === void 0 ? void 0 : field.type,
19044
19035
  inputRef: register({
@@ -19052,9 +19043,10 @@ const SearchPTID = ({
19052
19043
  style: {
19053
19044
  marginTop: "16px",
19054
19045
  display: "flex",
19055
- justifyContent: "space-between",
19046
+ justifyContent: "flex-end",
19056
19047
  alignItems: "center",
19057
- width: "100%"
19048
+ width: "100%",
19049
+ gap: "16px"
19058
19050
  }
19059
19051
  }, /*#__PURE__*/React.createElement("div", {
19060
19052
  className: "pt-search-action-reset generic-button clear-search",