@bahmni/widgets 0.0.1-dev.465 → 0.0.1-dev.466

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 a, jsxs as h, Fragment as pe } from "react/jsx-runtime";
2
- import { u as _e, a as Ae, b as Ee, s as ge, h as fe, n as Ce, c as Ie, d as S, p as De, S as Ne, e as Le, C as be, f as ye, y as Q, A as Se, g as ve, z as Oe, W as we, i as Me, j as J, k as ee } from "./index-DDpIAfSc.js";
2
+ import { u as _e, a as Ae, b as Ee, s as ge, h as fe, n as Ce, c as Ie, d as S, p as De, S as Ne, e as Le, C as be, f as ye, y as Q, A as Se, g as ve, z as Oe, W as we, i as Me, j as J, k as ee } from "./index-Bq3AX0i2.js";
3
3
  import { useQuery as Ue } from "@tanstack/react-query";
4
4
  import { useState as T, useRef as Re, useEffect as _, useMemo as A, useCallback as p } from "react";
5
5
  import { useTranslation as ke } from "react-i18next";
@@ -1,5 +1,5 @@
1
1
  import { jsx as n, jsxs as q, Fragment as ie } from "react/jsx-runtime";
2
- import { u as de, b as le, l as me, U as ce, m as ue, o as fe, E as ye, n as be, q as pe, r as he, Q as ge, e as Ne, s as Oe, y as x, t as V, S as Te, z, v as Ee, w as Ie, W as Fe, O as ve, x as Ae } from "./index-DDpIAfSc.js";
2
+ import { u as de, b as le, l as me, U as ce, m as ue, o as fe, E as ye, n as be, q as pe, r as he, Q as ge, e as Ne, s as Oe, y as x, t as V, S as Te, z, v as Ee, w as Ie, W as Fe, O as ve, x as Ae } from "./index-Bq3AX0i2.js";
3
3
  import { useQueryClient as Re, useQuery as F } from "@tanstack/react-query";
4
4
  import { useState as $, useMemo as i, useCallback as d } from "react";
5
5
  import { useTranslation as _e } from "react-i18next";
@@ -1,5 +1,5 @@
1
1
  import { jsx as i, jsxs as N } from "react/jsx-runtime";
2
- import { B as k, D as C, F as z, Z as H, e as P, G as j, H as x, K as J, I as Z, u as Y, a as W, J as X, U as ee, L as se, M as te, n as re, N as ae, P as oe, R as ne, T as ie, f as ce, z as le } from "./index-DDpIAfSc.js";
2
+ import { B as k, D as C, F as z, Z as H, e as P, G as j, H as x, K as J, I as Z, u as Y, a as W, J as X, U as ee, L as se, M as te, n as re, N as ae, P as oe, R as ne, T as ie, f as ce, z as le } from "./index-Bq3AX0i2.js";
3
3
  import { useQueries as de, useQuery as ue } from "@tanstack/react-query";
4
4
  import { useRef as pe, useEffect as U, useMemo as I } from "react";
5
5
  import { useTranslation as F } from "react-i18next";
@@ -107194,7 +107194,7 @@ const B$t = [
107194
107194
  },
107195
107195
  {
107196
107196
  type: "patientDocuments",
107197
- component: Qr(() => import("./DocumentsTable-DmOVb-Bi.js"))
107197
+ component: Qr(() => import("./DocumentsTable-CEht6QNt.js"))
107198
107198
  },
107199
107199
  {
107200
107200
  type: "flowSheet",
@@ -107202,7 +107202,7 @@ const B$t = [
107202
107202
  },
107203
107203
  {
107204
107204
  type: "forms",
107205
- component: Qr(() => import("./FormsTable-ChauV29y.js"))
107205
+ component: Qr(() => import("./FormsTable-CMW9OS_w.js"))
107206
107206
  },
107207
107207
  {
107208
107208
  type: "labOrders",
@@ -107210,7 +107210,7 @@ const B$t = [
107210
107210
  },
107211
107211
  {
107212
107212
  type: "observations",
107213
- component: Qr(() => import("./Observations-LGL8mgoZ.js"))
107213
+ component: Qr(() => import("./Observations-CAulJ6G6.js"))
107214
107214
  },
107215
107215
  {
107216
107216
  type: "ordersControl",
@@ -107569,17 +107569,26 @@ const U_e = o.createContext(void 0), akt = () => {
107569
107569
  tile: dkt,
107570
107570
  label: ukt,
107571
107571
  bottom: hkt
107572
- }, pkt = ({ id: t, label: e, icon: r, url: n }) => {
107573
- const { t: a } = st(), i = a(e);
107572
+ }, pkt = ({
107573
+ id: t,
107574
+ label: e,
107575
+ icon: r,
107576
+ url: n,
107577
+ fallbackLabel: a
107578
+ }) => {
107579
+ const { t: i } = st(), s = i(
107580
+ e,
107581
+ a ? { defaultValue: a } : void 0
107582
+ );
107574
107583
  return /* @__PURE__ */ ye(
107575
107584
  YMe,
107576
107585
  {
107577
107586
  href: n,
107578
107587
  className: Xu.tile,
107579
- "aria-label": i,
107588
+ "aria-label": s,
107580
107589
  testId: `app-tile-${t}`,
107581
107590
  children: [
107582
- /* @__PURE__ */ R("h2", { className: Xu.label, "aria-hidden": "true", children: i }),
107591
+ /* @__PURE__ */ R("h2", { className: Xu.label, "aria-hidden": "true", children: s }),
107583
107592
  /* @__PURE__ */ ye("div", { className: Xu.bottom, children: [
107584
107593
  /* @__PURE__ */ R(J1, { name: r, id: t, size: L1.X2, "aria-hidden": "true" }),
107585
107594
  /* @__PURE__ */ R(Iye, { size: 20, "aria-hidden": "true" })
@@ -107668,6 +107677,7 @@ const U_e = o.createContext(void 0), akt = () => {
107668
107677
  {
107669
107678
  id: M.id,
107670
107679
  label: M.translationKey ?? M.label,
107680
+ fallbackLabel: M.label,
107671
107681
  icon: M.icon,
107672
107682
  url: M.url
107673
107683
  },
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ax as o, av as r, a5 as n, au as c, aS as g, a6 as l, aa as m, x as d, am as P, aD as u, a7 as v, V as T, a8 as C, a3 as D, X as p, Y as A, ag as S, aj as b, ad as L, aO as N, aQ as y, aR as E, aU as I, a9 as U, aT as f, ao as h, ap as O, O as R, a4 as W, ai as _, ak as x, ac as V, ab as F, ae as G, ah as M, aM as k, aL as w, at as H, al as K, af as q, aC as z, az as B, ay as Y, _ as j, aV as J, r as Q, aJ as X, aI as $, $ as Z, aB as aa, aF as ea, aG as sa, aH as ta, a0 as ia, aA as oa, aE as ra, a1 as na, aK as ca, a2 as ga, aw as la, an as ma, aq as da, as as Pa, b as ua, aP as va, a as Ta, ar as Ca, u as Da, aN as pa, l as Aa } from "./index-DDpIAfSc.js";
1
+ import { ax as o, av as r, a5 as n, au as c, aS as g, a6 as l, aa as m, x as d, am as P, aD as u, a7 as v, V as T, a8 as C, a3 as D, X as p, Y as A, ag as S, aj as b, ad as L, aO as N, aQ as y, aR as E, aU as I, a9 as U, aT as f, ao as h, ap as O, O as R, a4 as W, ai as _, ak as x, ac as V, ab as F, ae as G, ah as M, aM as k, aL as w, at as H, al as K, af as q, aC as z, az as B, ay as Y, _ as j, aV as J, r as Q, aJ as X, aI as $, $ as Z, aB as aa, aF as ea, aG as sa, aH as ta, a0 as ia, aA as oa, aE as ra, a1 as na, aK as ca, a2 as ga, aw as la, an as ma, aq as da, as as Pa, b as ua, aP as va, a as Ta, ar as Ca, u as Da, aN as pa, l as Aa } from "./index-Bq3AX0i2.js";
2
2
  import "react/jsx-runtime";
3
3
  import "@tanstack/react-query";
4
4
  import "react";
@@ -4,6 +4,8 @@ interface AppTileProps {
4
4
  label: string;
5
5
  icon: string;
6
6
  url: string;
7
+ /** Shown when `label` has no translation in any loaded locale. */
8
+ fallbackLabel?: string;
7
9
  }
8
10
  export declare const AppTile: React.FC<AppTileProps>;
9
11
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"AppTile.d.ts","sourceRoot":"","sources":["../../../src/moduleTiles/AppTile/AppTile.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,YAAY;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAoB1C,CAAC"}
1
+ {"version":3,"file":"AppTile.d.ts","sourceRoot":"","sources":["../../../src/moduleTiles/AppTile/AppTile.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,YAAY;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,kEAAkE;IAClE,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CA6B1C,CAAC"}
@@ -4,4 +4,11 @@ export declare const defaultProps: {
4
4
  icon: string;
5
5
  url: string;
6
6
  };
7
+ export declare const fallbackLabelProps: {
8
+ id: string;
9
+ label: string;
10
+ fallbackLabel: string;
11
+ icon: string;
12
+ url: string;
13
+ };
7
14
  //# sourceMappingURL=AppTileMocks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppTileMocks.d.ts","sourceRoot":"","sources":["../../../../../src/moduleTiles/AppTile/__tests__/__mocks__/AppTileMocks.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;CAKxB,CAAC"}
1
+ {"version":3,"file":"AppTileMocks.d.ts","sourceRoot":"","sources":["../../../../../src/moduleTiles/AppTile/__tests__/__mocks__/AppTileMocks.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;CAKxB,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;CAM9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ModuleTileGrid.d.ts","sourceRoot":"","sources":["../../../src/moduleTiles/ModuleTileGrid/ModuleTileGrid.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,mBAAmB;IAC3B,4EAA4E;IAC5E,gBAAgB,EAAE,MAAM,CAAC;IACzB,gEAAgE;IAChE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8EAA8E;IAC9E,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,4EAA4E;IAC5E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA2GxD,CAAC"}
1
+ {"version":3,"file":"ModuleTileGrid.d.ts","sourceRoot":"","sources":["../../../src/moduleTiles/ModuleTileGrid/ModuleTileGrid.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,mBAAmB;IAC3B,4EAA4E;IAC5E,gBAAgB,EAAE,MAAM,CAAC;IACzB,gEAAgE;IAChE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8EAA8E;IAC9E,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,4EAA4E;IAC5E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA4GxD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/widgets",
3
- "version": "0.0.1-dev.465",
3
+ "version": "0.0.1-dev.466",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",