hplx-feature-library 1.0.195 → 1.0.196

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.
@@ -6956,35 +6956,44 @@ var renderElement = function(N, W) {
6956
6956
  var Y = W.ownerDocument, X = Y.documentElement ? parseColor$1(N, getComputedStyle(Y.documentElement).backgroundColor) : COLORS.TRANSPARENT, I = Y.body ? parseColor$1(N, getComputedStyle(Y.body).backgroundColor) : COLORS.TRANSPARENT, w = typeof M == "string" ? parseColor$1(N, M) : M === null ? COLORS.TRANSPARENT : 4294967295;
6957
6957
  return W === Y.documentElement ? isTransparent(X) ? isTransparent(I) ? w : I : X : w;
6958
6958
  };
6959
- const findChangedProperties = (N, W, M = "") => {
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];
6964
- if (Object.prototype.hasOwnProperty.call(W, X))
6965
- if (typeof I == "object" && I !== null && typeof w == "object" && w !== null) {
6966
- const D = findChangedProperties(
6967
- I,
6959
+ const isPlainObject = (N) => {
6960
+ if (Object.prototype.toString.call(N) !== "[object Object]") return !1;
6961
+ const W = Object.getPrototypeOf(N);
6962
+ return W === Object.prototype || W === null;
6963
+ }, isDiffable = (N) => Array.isArray(N) || isPlainObject(N), findChangedProperties = (N, W, M = "", Y = /* @__PURE__ */ new WeakMap()) => {
6964
+ const X = {};
6965
+ if (N === W) return X;
6966
+ if (typeof N == "object" && N !== null && typeof W == "object" && W !== null) {
6967
+ let I = Y.get(N);
6968
+ if (I || (I = /* @__PURE__ */ new WeakSet(), Y.set(N, I)), I.has(W)) return X;
6969
+ I.add(W);
6970
+ }
6971
+ for (const I in N) {
6972
+ if (!Object.prototype.hasOwnProperty.call(N, I)) continue;
6973
+ const w = N[I], x = W[I], D = M ? `${M}.${I}` : I;
6974
+ if (Object.prototype.hasOwnProperty.call(W, I)) {
6975
+ if (w === x) continue;
6976
+ isDiffable(w) && isDiffable(x) ? Object.assign(
6977
+ X,
6978
+ findChangedProperties(
6968
6979
  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
- });
6976
- else
6977
- Y[`${M ? `${M}.` : ""}${X}`] = {
6978
- oldValue: I,
6979
- newValue: void 0
6980
- };
6980
+ x,
6981
+ D,
6982
+ Y
6983
+ )
6984
+ ) : Object.is(w, x) || (X[D] = { oldValue: w, newValue: x });
6985
+ } else
6986
+ X[D] = { oldValue: w, newValue: void 0 };
6981
6987
  }
6982
- for (const X in W)
6983
- Object.prototype.hasOwnProperty.call(W, X) || (Y[`${M ? `${M}.` : ""}${X}`] = {
6988
+ for (const I in W) {
6989
+ if (!Object.prototype.hasOwnProperty.call(W, I) || Object.prototype.hasOwnProperty.call(N, I)) continue;
6990
+ const w = M ? `${M}.${I}` : I;
6991
+ X[w] = {
6984
6992
  oldValue: void 0,
6985
- newValue: W[X]
6986
- });
6987
- return Y;
6993
+ newValue: W[I]
6994
+ };
6995
+ }
6996
+ return X;
6988
6997
  }, convertDaysToWeeksAndDays = (N) => {
6989
6998
  if (!N) return { weeks: 0, days: 0 };
6990
6999
  const W = Math.floor(N / 7), M = N % 7;
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-Dr_1ZyDM.js";
3
+ import { P as i } from "./PatientPopupContainer-Ca8A989n.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-C18CHi_f.js";
9
+ import { P as u } from "./PrintModal-CIs2pEEz.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-C18CHi_f.js";
1
+ import { P as f } from "../PrintModal-CIs2pEEz.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.195",
4
+ "version": "1.0.196",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "npm i hplx-react-elements-dev@qa && vite",