@bahmni/widgets 0.0.1-dev.437 → 0.0.1-dev.438

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.
@@ -69828,7 +69828,7 @@ function YVt(t) {
69828
69828
  }
69829
69829
  })), r.current;
69830
69830
  }
69831
- const JVt = "_dataTableBody_145ic_1", XVt = "_skeleton_145ic_65", QVt = "_statePlaceholder_145ic_70", eHt = "_emptyStateCell_145ic_81", tHt = "_pagination_145ic_92", rHt = "_setPagination_145ic_97", nHt = "_setNavButton_145ic_107", oHt = "_setPaginationPages_145ic_119", aHt = "_setPaginationPage_145ic_119", iHt = "_setPaginationPageActive_145ic_149", sHt = "_filterRow_145ic_158", lHt = "_filterCell_145ic_162", cHt = "_filterPlaceholderCell_145ic_167", dHt = "_groupRow_145ic_172", uHt = "_groupCell_145ic_176", hHt = "_groupToggle_145ic_180", pHt = "_groupCount_145ic_194", fHt = "_groupByDropdown_145ic_199", mHt = "_actionButtons_145ic_204", wHt = "_visuallyHidden_145ic_209", gHt = "_selectFilter_145ic_221", vHt = "_dateRangeFilter_145ic_225", c1 = {
69831
+ const JVt = "_dataTableBody_11n0o_1", XVt = "_skeleton_11n0o_72", QVt = "_statePlaceholder_11n0o_77", eHt = "_emptyStateCell_11n0o_88", tHt = "_pagination_11n0o_99", rHt = "_setPagination_11n0o_104", nHt = "_setNavButton_11n0o_114", oHt = "_setPaginationPages_11n0o_126", aHt = "_setPaginationPage_11n0o_126", iHt = "_setPaginationPageActive_11n0o_156", sHt = "_filterRow_11n0o_165", lHt = "_filterCell_11n0o_169", cHt = "_filterPlaceholderCell_11n0o_174", dHt = "_groupRow_11n0o_179", uHt = "_groupCell_11n0o_183", hHt = "_groupToggle_11n0o_187", pHt = "_groupCount_11n0o_201", fHt = "_groupByDropdown_11n0o_206", mHt = "_actionButtons_11n0o_211", wHt = "_visuallyHidden_11n0o_216", gHt = "_selectFilter_11n0o_228", vHt = "_dateRangeFilter_11n0o_232", c1 = {
69832
69832
  dataTableBody: JVt,
69833
69833
  skeleton: XVt,
69834
69834
  statePlaceholder: QVt,
@@ -70318,12 +70318,13 @@ const ll = ({
70318
70318
  startPage: n = 1,
70319
70319
  hasNext: a,
70320
70320
  hasPrevious: i,
70321
- onSetChange: s,
70322
- previousLabel: l = "Previous set",
70323
- nextLabel: c = "Next set"
70324
- } = e, d = t.getPageCount();
70325
- if (d <= 1 && !i && !a) return null;
70326
- const u = n + t.getState().pagination.pageIndex;
70321
+ disabled: s = !1,
70322
+ onSetChange: l,
70323
+ previousLabel: c = "Previous set",
70324
+ nextLabel: d = "Next set"
70325
+ } = e, u = t.getPageCount();
70326
+ if (u <= 1 && !i && !a) return null;
70327
+ const m = n + t.getState().pagination.pageIndex;
70327
70328
  return /* @__PURE__ */ xe(
70328
70329
  "nav",
70329
70330
  {
@@ -70337,29 +70338,30 @@ const ll = ({
70337
70338
  kind: "ghost",
70338
70339
  size: "sm",
70339
70340
  className: c1.setNavButton,
70340
- onClick: () => s("prev", t),
70341
+ onClick: () => l("prev", t),
70342
+ disabled: s,
70341
70343
  testId: `${r}-previous-set`,
70342
70344
  children: [
70343
70345
  /* @__PURE__ */ R(Vc, {}),
70344
- l
70346
+ c
70345
70347
  ]
70346
70348
  }
70347
70349
  ),
70348
- /* @__PURE__ */ R("ul", { className: c1.setPaginationPages, children: Array.from({ length: d }, (m, w) => {
70349
- const g = n + w, H = g === u;
70350
+ /* @__PURE__ */ R("ul", { className: c1.setPaginationPages, children: Array.from({ length: u }, (w, g) => {
70351
+ const H = n + g, E = H === m;
70350
70352
  return /* @__PURE__ */ R("li", { children: /* @__PURE__ */ R(
70351
70353
  "button",
70352
70354
  {
70353
70355
  type: "button",
70354
70356
  className: ge(c1.setPaginationPage, {
70355
- [c1.setPaginationPageActive]: H
70357
+ [c1.setPaginationPageActive]: E
70356
70358
  }),
70357
- "aria-current": H ? "page" : void 0,
70358
- onClick: () => t.setPageIndex(w),
70359
- "data-testid": `${r}-page-${g}`,
70360
- children: g
70359
+ "aria-current": E ? "page" : void 0,
70360
+ onClick: () => t.setPageIndex(g),
70361
+ "data-testid": `${r}-page-${H}`,
70362
+ children: H
70361
70363
  }
70362
- ) }, g);
70364
+ ) }, H);
70363
70365
  }) }),
70364
70366
  a && /* @__PURE__ */ xe(
70365
70367
  x0,
@@ -70367,10 +70369,11 @@ const ll = ({
70367
70369
  kind: "ghost",
70368
70370
  size: "sm",
70369
70371
  className: c1.setNavButton,
70370
- onClick: () => s("next", t),
70372
+ onClick: () => l("next", t),
70373
+ disabled: s,
70371
70374
  testId: `${r}-next-set`,
70372
70375
  children: [
70373
- c,
70376
+ d,
70374
70377
  /* @__PURE__ */ R(Hc, {})
70375
70378
  ]
70376
70379
  }
@@ -115487,7 +115490,7 @@ const Nr1 = [
115487
115490
  },
115488
115491
  {
115489
115492
  type: "patientDocuments",
115490
- component: e0(() => import("./DocumentsTable-TdMkZVYF.js"))
115493
+ component: e0(() => import("./DocumentsTable-sn65Z6Fg.js"))
115491
115494
  },
115492
115495
  {
115493
115496
  type: "flowSheet",
@@ -115495,7 +115498,7 @@ const Nr1 = [
115495
115498
  },
115496
115499
  {
115497
115500
  type: "forms",
115498
- component: e0(() => import("./FormsTable-RNXvHVxa.js"))
115501
+ component: e0(() => import("./FormsTable-CeXGYLm0.js"))
115499
115502
  },
115500
115503
  {
115501
115504
  type: "labOrders",
@@ -115503,7 +115506,7 @@ const Nr1 = [
115503
115506
  },
115504
115507
  {
115505
115508
  type: "observations",
115506
- component: e0(() => import("./Observations-BhakBZ2a.js"))
115509
+ component: e0(() => import("./Observations-CWoM5sBe.js"))
115507
115510
  },
115508
115511
  {
115509
115512
  type: "ordersControl",
@@ -115971,32 +115974,32 @@ const _Pe = o.createContext(void 0), Fr1 = () => {
115971
115974
  };
115972
115975
  export {
115973
115976
  TJt as $,
115974
- IMt as A,
115975
- xc as B,
115977
+ fi as A,
115978
+ Rn1 as B,
115976
115979
  O2 as C,
115977
115980
  hn1 as D,
115978
- Sn1 as E,
115981
+ Ln1 as E,
115979
115982
  a0 as F,
115980
115983
  R1 as G,
115981
- Zn1 as H,
115982
- Qjt as I,
115983
- CUt as J,
115984
- rWt as K,
115985
- RWt as L,
115986
- Rn1 as M,
115987
- BWt as N,
115984
+ IMt as H,
115985
+ Sn1 as I,
115986
+ Zn1 as J,
115987
+ Qjt as K,
115988
+ CUt as L,
115989
+ rWt as M,
115990
+ RWt as N,
115988
115991
  Mp as O,
115989
115992
  kn1 as P,
115990
- UGt as Q,
115993
+ BWt as Q,
115991
115994
  FIe as R,
115992
115995
  PIe as S,
115993
115996
  BIe as T,
115994
- Hi as U,
115997
+ Tn1 as U,
115995
115998
  sr as V,
115996
- FWt as W,
115997
- sYt as X,
115998
- NBe as Y,
115999
- wr as Z,
115999
+ UGt as W,
116000
+ FWt as X,
116001
+ sYt as Y,
116002
+ NBe as Z,
116000
116003
  ZYt as _,
116001
116004
  z1 as a,
116002
116005
  UJt as a0,
@@ -116045,26 +116048,26 @@ export {
116045
116048
  $1 as b,
116046
116049
  gp as c,
116047
116050
  kr as d,
116048
- bBe as e,
116049
- cKt as f,
116050
- qo as g,
116051
- Jn1 as h,
116052
- Dn1 as i,
116053
- Bn1 as j,
116054
- Gyt as k,
116055
- Y9e as l,
116056
- Tn1 as m,
116057
- Ln1 as n,
116058
- Fn1 as o,
116059
- On1 as p,
116060
- Wn1 as q,
116051
+ Hi as e,
116052
+ _Tt as f,
116053
+ wr as g,
116054
+ Dn1 as h,
116055
+ bBe as i,
116056
+ lke as j,
116057
+ cKt as k,
116058
+ xc as l,
116059
+ qo as m,
116060
+ Jn1 as n,
116061
+ Bn1 as o,
116062
+ Y9e as p,
116063
+ Gyt as q,
116061
116064
  Wo as r,
116062
- jn1 as s,
116065
+ Fn1 as s,
116063
116066
  Pn1 as t,
116064
116067
  d0 as u,
116065
- Un1 as v,
116066
- ht as w,
116067
- lke as x,
116068
- _Tt as y,
116069
- fi as z
116068
+ ht as v,
116069
+ On1 as w,
116070
+ Wn1 as x,
116071
+ jn1 as y,
116072
+ Un1 as z
116070
116073
  };