hplx-feature-library 1.0.194 → 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,22 +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
- let Y = {};
6961
- for (const X in N)
6962
- 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] });
6967
- else
6968
- Y[`${M}.${X}`] = { oldValue: N[X], newValue: void 0 };
6969
- for (const X in W)
6970
- Object.prototype.hasOwnProperty.call(N, X) || (Y[`${M}.${X}`] = {
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(
6979
+ w,
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 };
6987
+ }
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] = {
6971
6992
  oldValue: void 0,
6972
- newValue: W[X]
6973
- });
6974
- return Y;
6993
+ newValue: W[I]
6994
+ };
6995
+ }
6996
+ return X;
6975
6997
  }, convertDaysToWeeksAndDays = (N) => {
6976
6998
  if (!N) return { weeks: 0, days: 0 };
6977
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-_1ZRT2iA.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-C_u3LGLk.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-C_u3LGLk.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.194",
4
+ "version": "1.0.196",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "npm i hplx-react-elements-dev@qa && vite",