@bahmni/widgets 0.0.1-dev.208 → 0.0.1-dev.210

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.
@@ -1,5 +1,5 @@
1
1
  import { jsx as s, jsxs as _, Fragment as K } from "react/jsx-runtime";
2
- import { u as Z, a as Q, T as W, X as J, Z as x, h as ee, b as te } from "./index-BkpQMBIh.js";
2
+ import { u as Z, a as Q, T as W, X as J, Z as x, h as ee, b as te } from "./index-BuDLotQZ.js";
3
3
  import { useQuery as ne } from "@tanstack/react-query";
4
4
  import { useState as l, useCallback as p, useEffect as N, useMemo as f } from "react";
5
5
  import { useTranslation as ae } from "react-i18next";
@@ -39,7 +39,7 @@ const _e = [
39
39
  null
40
40
  ), [P, A] = l(
41
41
  /* @__PURE__ */ new Set()
42
- ), E = Z(), { t: o } = ae(), { addNotification: w } = Q(), F = Number(n?.pageSize) || 10, [D, O] = l(1), [m, $] = l(F), [k, C] = l(void 0), b = p((e) => {
42
+ ), E = Z(), { t: o } = ae(), { addNotification: w } = Q(), F = Number(n?.pageSize) || 5, [D, O] = l(1), [m, $] = l(F), [k, C] = l(void 0), b = p((e) => {
43
43
  U(e), M(!0);
44
44
  }, []), V = p(() => {
45
45
  M(!1), U(null), A(/* @__PURE__ */ new Set());
@@ -1,5 +1,5 @@
1
1
  import { jsxs as b, jsx as o, Fragment as j } from "react/jsx-runtime";
2
- import { f as K, c as R, d as ae, e as oe, m as se, g as ne, i as de, E as ie, u as le, r as ce, l as me, j as ue, k as pe, t as be, R as fe, Z as _e, X as he, h as P, J as ye, n as $e, b as ge, F as ve, o as k } from "./index-BkpQMBIh.js";
2
+ import { f as K, c as R, d as ae, e as oe, m as se, g as ne, i as de, E as ie, u as le, r as ce, l as me, j as ue, k as pe, t as be, R as fe, Z as _e, X as he, h as P, J as ye, n as $e, b as ge, F as ve, o as k } from "./index-BuDLotQZ.js";
3
3
  import { useQueryClient as Ne, useQuery as O } from "@tanstack/react-query";
4
4
  import { useState as H, useMemo as g, useCallback as L } from "react";
5
5
  import { useTranslation as V } from "react-i18next";
@@ -1,5 +1,5 @@
1
1
  import { jsx as d, jsxs as S } from "react/jsx-runtime";
2
- import { p as M, q as C, s as V, d as k, v as w, e as K, m as Q, g as G, u as P, a as H, w as j, x as z, R as X, i as Y, y as J, z as W, L as Z, h as x } from "./index-BkpQMBIh.js";
2
+ import { p as M, q as C, s as V, d as k, v as w, e as K, m as Q, g as G, u as P, a as H, w as j, x as z, R as X, i as Y, y as J, z as W, L as Z, h as x } from "./index-BuDLotQZ.js";
3
3
  import { useQueries as ee, useQuery as te } from "@tanstack/react-query";
4
4
  import { useRef as se, useEffect as $, useMemo as E } from "react";
5
5
  import { useTranslation as D } from "react-i18next";
@@ -62270,7 +62270,7 @@ const hqe = "_bahmniIcon_1cg5e_1", pqe = "_paddingNone_1cg5e_1", fqe = "_padding
62270
62270
  children: s
62271
62271
  }
62272
62272
  );
62273
- const x = new Map(e.map((z) => [z.id, z])), M = f !== void 0 && (y !== void 0 ? y > f : e.length > f);
62273
+ const x = new Map(e.map((z) => [z.id, z])), M = f !== void 0;
62274
62274
  return /* @__PURE__ */ Re(
62275
62275
  "div",
62276
62276
  {
@@ -76079,7 +76079,7 @@ function Xet(t) {
76079
76079
  });
76080
76080
  }
76081
76081
  const ett = ({ config: t }) => {
76082
- const e = Number(t?.pageSize) || 10, r = c1(), { t: o } = tr(), { addNotification: a } = e1(), [i, s] = he(1), [l, d] = he(e), { data: p, isLoading: f, isError: w, error: E, refetch: y } = or({
76082
+ const e = Number(t?.pageSize) || 5, r = c1(), { t: o } = tr(), { addNotification: a } = e1(), [i, s] = he(1), [l, d] = he(e), { data: p, isLoading: f, isError: w, error: E, refetch: y } = or({
76083
76083
  queryKey: ["conditions", r, i, l],
76084
76084
  enabled: !!r,
76085
76085
  placeholderData: (H) => H,
@@ -76187,7 +76187,7 @@ const ett = ({ config: t }) => {
76187
76187
  confirmedCell: att,
76188
76188
  provisionalCell: itt
76189
76189
  }, stt = ({ config: t }) => {
76190
- const e = Number(t?.pageSize) || 10, { t: r } = tr(), o = c1(), { addNotification: a } = e1(), [i, s] = he(1), [l, d] = he(e), { data: p, isLoading: f, isError: w, error: E, refetch: y } = or({
76190
+ const e = Number(t?.pageSize) || 5, { t: r } = tr(), o = c1(), { addNotification: a } = e1(), [i, s] = he(1), [l, d] = he(e), { data: p, isLoading: f, isError: w, error: E, refetch: y } = or({
76191
76191
  queryKey: ["diagnoses", o, i, l],
76192
76192
  enabled: !!o,
76193
76193
  placeholderData: (m) => m,
@@ -78974,7 +78974,7 @@ function ant(t, e) {
78974
78974
  }));
78975
78975
  }
78976
78976
  const int = ({ config: t }) => {
78977
- const { t: e } = tr(), r = c1(), o = Number(t?.pageSize) || 15, [a, i] = he(1), [s, l] = he(o), d = Se(
78977
+ const { t: e } = tr(), r = c1(), o = Number(t?.pageSize) || 5, [a, i] = he(1), [s, l] = he(o), d = Se(
78978
78978
  () => nnt(t?.fields ?? []),
78979
78979
  [t?.fields]
78980
78980
  ), { data: p, isLoading: f, isError: w } = or({
@@ -79516,7 +79516,7 @@ const xnt = [
79516
79516
  },
79517
79517
  {
79518
79518
  type: "patientDocuments",
79519
- component: kr(() => import("./DocumentsTable-utC6I1yG.js"))
79519
+ component: kr(() => import("./DocumentsTable-BNl5LEfL.js"))
79520
79520
  },
79521
79521
  {
79522
79522
  type: "flowSheet",
@@ -79524,7 +79524,7 @@ const xnt = [
79524
79524
  },
79525
79525
  {
79526
79526
  type: "forms",
79527
- component: kr(() => import("./FormsTable-Dx7SyDA0.js"))
79527
+ component: kr(() => import("./FormsTable-BGyseGA8.js"))
79528
79528
  },
79529
79529
  {
79530
79530
  type: "labOrders",
@@ -79532,7 +79532,7 @@ const xnt = [
79532
79532
  },
79533
79533
  {
79534
79534
  type: "observations",
79535
- component: kr(() => import("./Observations-By99vmvd.js"))
79535
+ component: kr(() => import("./Observations-Dd1b2dbj.js"))
79536
79536
  },
79537
79537
  {
79538
79538
  type: "ordersControl",
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a3 as s, a1 as t, A as o, a0 as r, B as n, $ as g, C as l, D as P, K as c, I as d, M as v, Q as A, U as T, P as b, N as C, O as p, H as f, G as I, S as W, _ as u, V as S, a5 as m, a4 as D, ab as N, aa as R, a7 as U, a8 as y, a9 as h, a6 as x, ac as G, a2 as H, Y as L, a as O, u as V, W as _ } from "./index-BkpQMBIh.js";
1
+ import { a3 as s, a1 as t, A as o, a0 as r, B as n, $ as g, C as l, D as P, K as c, I as d, M as v, Q as A, U as T, P as b, N as C, O as p, H as f, G as I, S as W, _ as u, V as S, a5 as m, a4 as D, ab as N, aa as R, a7 as U, a8 as y, a9 as h, a6 as x, ac as G, a2 as H, Y as L, a as O, u as V, W as _ } from "./index-BuDLotQZ.js";
2
2
  import "react";
3
3
  export {
4
4
  s as ActivePractitionerContext,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/widgets",
3
- "version": "0.0.1-dev.208",
3
+ "version": "0.0.1-dev.210",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",