hplx-feature-library 1.0.212 → 1.0.214

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.
@@ -6957,18 +6957,28 @@ var renderElement = function(N, W) {
6957
6957
  return W === Y.documentElement ? isTransparent(X) ? isTransparent(I) ? w : I : X : w;
6958
6958
  };
6959
6959
  const findChangedProperties = (N, W, M = "") => {
6960
- console.log("showPatientPopModal 444555");
6961
- let Y = {};
6962
- for (const X in N)
6963
- if (W.hasOwnProperty(X))
6964
- if (typeof N[X] == "object" && typeof W[X] == "object") {
6965
- const I = findChangedProperties(N[X], W[X], `${M}.${X}`);
6966
- Object.keys(I).length > 0 && (Y = { ...Y, ...I });
6967
- } else N[X] !== W[X] && (Y[`${M}.${X}`] = { oldValue: N[X], newValue: W[X] });
6968
- else
6969
- Y[`${M}.${X}`] = { oldValue: N[X], newValue: void 0 };
6970
- for (const X in W)
6971
- N.hasOwnProperty(X) || (Y[`${M}.${X}`] = { oldValue: void 0, newValue: W[X] });
6960
+ if (console.log("findChangedProperties 44449090:", M), Object.is(N, W)) return {};
6961
+ const Y = {}, X = M ? M + "." : "";
6962
+ if (!(N !== null && typeof N == "object") || !(W !== null && typeof W == "object"))
6963
+ return M && (Y[M] = { oldValue: N, newValue: W }), Y;
6964
+ const x = Object.keys(N), D = Object.keys(W);
6965
+ for (let R = 0; R < x.length; R++) {
6966
+ const C = x[R];
6967
+ if (Object.hasOwn(W, C)) {
6968
+ const J = N[C], B = W[C];
6969
+ if (J !== B)
6970
+ if (J !== null && B !== null && typeof J == "object" && typeof B == "object") {
6971
+ const H = findChangedProperties(J, B, X + C);
6972
+ Object.keys(H).length && Object.assign(Y, H);
6973
+ } else
6974
+ Y[X + C] = { oldValue: J, newValue: B };
6975
+ } else
6976
+ Y[X + C] = { oldValue: N[C], newValue: void 0 };
6977
+ }
6978
+ for (let R = 0; R < D.length; R++) {
6979
+ const C = D[R];
6980
+ Object.hasOwn(N, C) || (Y[X + C] = { oldValue: void 0, newValue: W[C] });
6981
+ }
6972
6982
  return Y;
6973
6983
  }, convertDaysToWeeksAndDays = (N) => {
6974
6984
  if (!N) return { weeks: 0, days: 0 };
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { P as r } from "./PediatricsCalculatorTable-G0ttbDpi.js";
2
2
  import { A as e } from "./AllInvestigationsTable-Dg-YXASz.js";
3
- import { P as i } from "./PatientPopupContainer-DWKXe6qo.js";
3
+ import { P as i } from "./PatientPopupContainer-BkgmTWBi.js";
4
4
  import { A as P } from "./Attachments-BzZHI8d3.js";
5
5
  import { P as m } from "./PatientAddEdit-CPjv2_ZF.js";
6
6
  import { S as n } from "./SearchPatients-BYGGaUoD.js";
7
7
  import { N as d } from "./NineDots-CCtE2t9I.js";
8
8
  import { U as c } from "./UserProfile-CcEbhDhd.js";
9
- import { P as u } from "./PrintModal-BSjOqy1o.js";
9
+ import { P as u } from "./PrintModal-DS9Sz6v4.js";
10
10
  export {
11
11
  e as AllInvestigations,
12
12
  P as Attachments,
@@ -1,4 +1,4 @@
1
- import { P as f } from "../PrintModal-BSjOqy1o.js";
1
+ import { P as f } from "../PrintModal-DS9Sz6v4.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hplx-feature-library",
3
3
  "private": false,
4
- "version": "1.0.212",
4
+ "version": "1.0.214",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "npm i hplx-react-elements-dev@qa && vite",