hplx-feature-library 1.0.213 → 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.
@@ -6956,55 +6956,31 @@ 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
- function findChangedProperties(N, W, M = "") {
6960
- if (console.log("444555223"), Object.is(N, W)) return {};
6961
- if (!(N !== null && typeof N == "object") || !(W !== null && typeof W == "object")) {
6962
- const D = M || "";
6963
- return D ? { [D]: { oldValue: N, newValue: W } } : { "": { oldValue: N, newValue: W } };
6964
- }
6965
- const I = {}, w = [{ a: N, b: W, path: M ? M.split(".").filter(Boolean) : [] }], x = /* @__PURE__ */ new WeakMap();
6966
- for (; w.length; ) {
6967
- const { a: D, b: R, path: C } = w.pop();
6968
- if (Object.is(D, R)) continue;
6969
- if (!(D !== null && typeof D == "object") || !(R !== null && typeof R == "object")) {
6970
- const ce = C.join(".");
6971
- I[ce] = { oldValue: D, newValue: R };
6972
- continue;
6973
- }
6974
- let H = x.get(D);
6975
- if (H || (H = /* @__PURE__ */ new WeakSet(), x.set(D, H)), H.has(R)) continue;
6976
- H.add(R);
6977
- const Q = Array.isArray(D), $ = Array.isArray(R);
6978
- if (Q || $) {
6979
- if (Q && $) {
6980
- const ce = Math.max(D.length, R.length);
6981
- for (let te = 0; te < ce; te++) {
6982
- const de = [...C, String(te)], ue = te in D ? D[te] : void 0, re = te in R ? R[te] : void 0;
6983
- Object.is(ue, re) || w.push({ a: ue, b: re, path: de });
6984
- }
6985
- } else {
6986
- const ce = C.join(".");
6987
- I[ce] = { oldValue: D, newValue: R };
6988
- }
6989
- continue;
6990
- }
6991
- const _ = Object.keys(D), ee = Object.keys(R), ae = Object.hasOwn.bind(Object), ne = Object.hasOwn.bind(Object);
6992
- for (let ce = 0; ce < _.length; ce++) {
6993
- const te = _[ce], de = D[te];
6994
- if (ae(R, te)) {
6995
- const ue = R[te];
6996
- Object.is(de, ue) || w.push({ a: de, b: ue, path: [...C, te] });
6997
- } else
6998
- I[[...C, te].join(".")] = { oldValue: de, newValue: void 0 };
6999
- }
7000
- for (let ce = 0; ce < ee.length; ce++) {
7001
- const te = ee[ce];
7002
- ne(D, te) || (I[[...C, te].join(".")] = { oldValue: void 0, newValue: R[te] });
7003
- }
6959
+ const findChangedProperties = (N, W, M = "") => {
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 };
7004
6977
  }
7005
- return I;
7006
- }
7007
- const convertDaysToWeeksAndDays = (N) => {
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
+ }
6982
+ return Y;
6983
+ }, convertDaysToWeeksAndDays = (N) => {
7008
6984
  if (!N) return { weeks: 0, days: 0 };
7009
6985
  const W = Math.floor(N / 7), M = N % 7;
7010
6986
  return { weeks: W, days: M };
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-XHWeQLiT.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-C83yfUUX.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-C83yfUUX.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.213",
4
+ "version": "1.0.214",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "npm i hplx-react-elements-dev@qa && vite",