hplx-feature-library 1.0.194 → 1.0.195

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,17 +6957,30 @@ 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
- let Y = {};
6961
- for (const X in N)
6960
+ const Y = {};
6961
+ for (const X in N) {
6962
+ if (!Object.prototype.hasOwnProperty.call(N, X)) continue;
6963
+ const I = N[X], w = W[X];
6962
6964
  if (Object.prototype.hasOwnProperty.call(W, X))
6963
- if (typeof N[X] == "object" && typeof W[X] == "object") {
6964
- const I = findChangedProperties(N[X], W[X], `${M}.${X}`);
6965
- Object.keys(I).length > 0 && (Y = { ...Y, ...I });
6966
- } else N[X] !== W[X] && (Y[`${M}.${X}`] = { oldValue: N[X], newValue: W[X] });
6965
+ if (typeof I == "object" && I !== null && typeof w == "object" && w !== null) {
6966
+ const D = findChangedProperties(
6967
+ I,
6968
+ w,
6969
+ M ? `${M}.${X}` : X
6970
+ );
6971
+ Object.assign(Y, D);
6972
+ } else I !== w && (Y[`${M ? `${M}.` : ""}${X}`] = {
6973
+ oldValue: I,
6974
+ newValue: w
6975
+ });
6967
6976
  else
6968
- Y[`${M}.${X}`] = { oldValue: N[X], newValue: void 0 };
6977
+ Y[`${M ? `${M}.` : ""}${X}`] = {
6978
+ oldValue: I,
6979
+ newValue: void 0
6980
+ };
6981
+ }
6969
6982
  for (const X in W)
6970
- Object.prototype.hasOwnProperty.call(N, X) || (Y[`${M}.${X}`] = {
6983
+ Object.prototype.hasOwnProperty.call(W, X) || (Y[`${M ? `${M}.` : ""}${X}`] = {
6971
6984
  oldValue: void 0,
6972
6985
  newValue: W[X]
6973
6986
  });
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-_1ZRT2iA.js";
3
+ import { P as i } from "./PatientPopupContainer-Dr_1ZyDM.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-C_u3LGLk.js";
9
+ import { P as u } from "./PrintModal-C18CHi_f.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-C_u3LGLk.js";
1
+ import { P as f } from "../PrintModal-C18CHi_f.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.194",
4
+ "version": "1.0.195",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "npm i hplx-react-elements-dev@qa && vite",