@bahmni/widgets 0.0.1-dev.381 → 0.0.1-dev.382

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 r, jsxs as T, Fragment as Y } from "react/jsx-runtime";
2
- import { u as W, a as X, T as J, m as Z, k as x, b as ee, F as te } from "./index-ChGezZUf.js";
2
+ import { u as W, a as X, T as J, m as Z, k as x, b as ee, F as te } from "./index-BmN4GeeA.js";
3
3
  import { useQuery as ne } from "@tanstack/react-query";
4
4
  import { useState as l, useCallback as _, useEffect as I, useMemo as p } from "react";
5
5
  import { useTranslation as ae } from "react-i18next";
@@ -1,5 +1,5 @@
1
1
  import { jsx as i, jsxs as $, Fragment as ge } from "react/jsx-runtime";
2
- import { u as be, c as Oe, d as Ne, r as Ee, e as Te, Q as Fe, X as ve, L as Ie, f as _e, g as Ae, h as Re, Y as G, k as De, C as K, B as Q, m as Le, b as z, i as Me, j as Be, F as Ce, O as Se, l as ke } from "./index-ChGezZUf.js";
2
+ import { u as be, c as Oe, d as Ne, r as Ee, e as Te, Q as Fe, X as ve, L as Ie, f as _e, g as Ae, h as Re, Y as G, k as De, C as K, B as Q, m as Le, b as z, i as Me, j as Be, F as Ce, O as Se, l as ke } from "./index-BmN4GeeA.js";
3
3
  import { useQueryClient as Ue, useQuery as E } from "@tanstack/react-query";
4
4
  import { useState as Y, useMemo as d, useCallback as c } from "react";
5
5
  import { useTranslation as we } from "react-i18next";
@@ -1,5 +1,5 @@
1
1
  import { jsx as d, jsxs as S } from "react/jsx-runtime";
2
- import { n as M, z as C, t as V, D as Q, o as q, y as k, N as z, p as G, u as P, a as H, w as j, q as J, f as Y, s as W, v as X, x as Z, A as x, b as ee } from "./index-ChGezZUf.js";
2
+ import { n as M, z as C, t as V, D as Q, o as q, y as k, N as z, p as G, u as P, a as H, w as j, q as J, f as Y, s as W, v as X, x as Z, A as x, b as ee } from "./index-BmN4GeeA.js";
3
3
  import { useQueries as te, useQuery as se } from "@tanstack/react-query";
4
4
  import { useRef as oe, useEffect as D, useMemo as h } from "react";
5
5
  import { useTranslation as U } from "react-i18next";
@@ -113176,7 +113176,13 @@ const Ut1 = (t, e) => t.filter(
113176
113176
  operator: "AND",
113177
113177
  conditions: [
113178
113178
  ...t.map(Pt1),
113179
- { field: xt1, comparator: "eq", value: r }
113179
+ ...r ? [
113180
+ {
113181
+ field: xt1,
113182
+ comparator: "eq",
113183
+ value: r
113184
+ }
113185
+ ] : []
113180
113186
  ]
113181
113187
  }
113182
113188
  }), qt1 = (t, e, r, n, a, i) => t.map((s) => {
@@ -113332,7 +113338,7 @@ const Ut1 = (t, e) => t.filter(
113332
113338
  className: Wt.dataTable
113333
113339
  }
113334
113340
  );
113335
- }, Xt1 = "http://json-schema.org/draft-07/schema#", Qt1 = "Common Search Widget Config Schema", e11 = "Configuration for the common search widget, defining search criteria per context", t11 = "array", r11 = 1, n11 = { $ref: "#/definitions/searchContextConfig" }, o11 = { searchContextConfig: { type: "object", required: ["context", "translationKey", "requiredPrivileges", "locationAware", "url", "pageSize", "criteria", "resultFields"], additionalProperties: !1, properties: { context: { type: "string", enum: ["patient", "appointment", "patientProgram"], description: "The context this search configuration applies to" }, translationKey: { type: "string", minLength: 1, description: "i18n key for the tab/section label" }, requiredPrivileges: { type: "array", items: { type: "string" }, minItems: 1, uniqueItems: !0, description: "Privileges required to access this search context" }, locationAware: { type: "string", enum: ["loggedInLocation", "allowedLocation"], description: "Location scope applied when executing searches in this context" }, url: { type: "string", minLength: 1, description: "API endpoint URL for search results" }, pageSize: { type: "integer", minimum: 1, description: "Number of results per page" }, criteria: { type: "array", items: { $ref: "#/definitions/criterionConfig" }, minItems: 1, description: "Search criteria available in this context" }, resultFields: { type: "array", items: { $ref: "#/definitions/resultFieldConfig" }, minItems: 1, description: "Defines the columns shown in the results table after a successful search" }, actions: { type: "array", minItems: 1, items: { $ref: "#/definitions/actionConfig" }, description: "Actions available in this context. Optional at the context level, but required when any resultField references an action key. Each action key must be unique within the context." } } }, resultFieldConfig: { type: "object", required: ["translationKey", "expression"], additionalProperties: !1, properties: { translationKey: { type: "string", minLength: 1, description: "i18n key for the column header" }, expression: { type: "string", minLength: 1, description: "JSONata expression evaluated against each result item to extract the column value" }, enableSort: { type: "boolean", description: "When true, the column header is clickable to sort results client-side" }, sortOrder: { type: "string", enum: ["asc", "desc"], description: "Direction the results are sorted by this column before any user interaction" }, filterType: { type: "string", enum: ["text", "select", "dateRange", "numeric"], description: "When present, a filter control appears for this column" }, action: { type: "string", description: "Key of an action defined in the context's actions array. When the referenced action has type navigate, the cell renders as a link. If the user holds none of the action's required privileges, the cell renders as plain text. Referencing a key not present in the actions array is a config error and blocks the widget." }, transform: { type: "string", enum: ["formatDate", "formatTime", "formatDateTime", "formatAge", "formatGender", "formatCountry", "formatSearchResult"], description: "Name of a transform applied to the extracted value before display" } } }, criterionConfig: { type: "object", required: ["field", "translationKey", "input"], additionalProperties: !1, properties: { field: { $ref: "#/definitions/fieldConfig" }, default: { type: "boolean", description: "Whether this criterion is shown by default in the UI" }, translationKey: { type: "string", minLength: 1, description: "i18n key for the criterion label" }, input: { $ref: "#/definitions/inputConfig" } } }, fieldConfig: { type: "object", required: ["key"], additionalProperties: !1, properties: { key: { type: "string", minLength: 1, description: "Field identifier used when constructing the search query" }, keyType: { type: "string", minLength: 1, description: "UUID or type qualifier for polymorphic fields such as identifier or personAttribute" } } }, inputConfig: { oneOf: [{ $ref: "#/definitions/textInput" }, { $ref: "#/definitions/dateInput" }, { $ref: "#/definitions/numericInput" }, { $ref: "#/definitions/optionsInput" }, { $ref: "#/definitions/lookupInput" }] }, textInput: { type: "object", required: ["kind", "placeholderTranslationKey"], additionalProperties: !1, properties: { kind: { type: "string", const: "text" }, placeholderTranslationKey: { type: "string", minLength: 1 }, regex: { type: "string", minLength: 1, description: "Optional regular expression. When provided, the value is validated against this pattern on search submission." } } }, dateInput: { type: "object", required: ["kind", "placeholderTranslationKey"], additionalProperties: !1, properties: { kind: { type: "string", const: "date" }, placeholderTranslationKey: { type: "string", minLength: 1 }, rangeAllowed: { type: "boolean", description: "When true, UI renders two inputs (From and To), each with its own value and comparator" } } }, numericInput: { type: "object", required: ["kind", "placeholderTranslationKey"], additionalProperties: !1, properties: { kind: { type: "string", const: "numeric" }, placeholderTranslationKey: { type: "string", minLength: 1 }, rangeAllowed: { type: "boolean", description: "When true, UI renders two inputs (From and To), each with its own value and comparator" } } }, optionsInput: { type: "object", required: ["kind", "placeholderTranslationKey", "options"], additionalProperties: !1, properties: { kind: { type: "string", const: "options" }, placeholderTranslationKey: { type: "string", minLength: 1 }, options: { type: "array", minItems: 1, items: { $ref: "#/definitions/optionItem" }, description: "Static list of selectable options" } } }, optionItem: { type: "object", required: ["translationKey", "value"], additionalProperties: !1, properties: { translationKey: { type: "string", minLength: 1 }, value: { type: "string", minLength: 1 } } }, lookupInput: { type: "object", required: ["kind", "placeholderTranslationKey", "lookup"], additionalProperties: !1, properties: { kind: { type: "string", const: "lookup" }, placeholderTranslationKey: { type: "string", minLength: 1 }, lookup: { $ref: "#/definitions/lookupConfig" } } }, lookupConfig: { type: "object", required: ["source"], additionalProperties: !1, properties: { source: { type: "string", minLength: 1, description: "Identifies the lookup source (e.g. appointmentService, concept)" }, prefetch: { type: "boolean", description: "Whether to load all options upfront rather than on user input" }, valueSet: { type: "string", description: "UUID of the concept value set to restrict lookup results" } } }, actionConfig: { oneOf: [{ $ref: "#/definitions/navigateAction" }] }, navigateAction: { type: "object", required: ["key", "type", "navigationURL"], additionalProperties: !0, properties: { key: { type: "string", description: "Unique identifier for this action within the context. Referenced by resultField entries via their action field." }, type: { type: "string", const: "navigate", description: "Renders the column cell as a link navigating to navigationURL." }, navigationURL: { type: "string", description: "URL template for navigation. Placeholders use {expression} syntax where the content must be a valid JSONata expression evaluated against the result row. For example, {uuid} resolves the uuid field; {patient.uuid} resolves a nested field." }, requiredPrivileges: { type: "array", items: { type: "string" }, description: "Privileges required to activate this action. Any one suffices. An empty array makes the action available to all users." } } } }, a11 = {
113341
+ }, Xt1 = "http://json-schema.org/draft-07/schema#", Qt1 = "Common Search Widget Config Schema", e11 = "Configuration for the common search widget, defining search criteria per context", t11 = "array", r11 = 1, n11 = { $ref: "#/definitions/searchContextConfig" }, o11 = { searchContextConfig: { type: "object", required: ["context", "translationKey", "requiredPrivileges", "url", "pageSize", "criteria", "resultFields"], additionalProperties: !1, properties: { context: { type: "string", enum: ["patient", "appointment", "patientProgram"], description: "The context this search configuration applies to" }, translationKey: { type: "string", minLength: 1, description: "i18n key for the tab/section label" }, requiredPrivileges: { type: "array", items: { type: "string" }, minItems: 1, uniqueItems: !0, description: "Privileges required to access this search context" }, locationAware: { type: "string", enum: ["loggedInLocation", "allowedLocation"], description: "Location scope applied when executing searches in this context" }, url: { type: "string", minLength: 1, description: "API endpoint URL for search results" }, pageSize: { type: "integer", minimum: 1, description: "Number of results per page" }, criteria: { type: "array", items: { $ref: "#/definitions/criterionConfig" }, minItems: 1, description: "Search criteria available in this context" }, resultFields: { type: "array", items: { $ref: "#/definitions/resultFieldConfig" }, minItems: 1, description: "Defines the columns shown in the results table after a successful search" }, actions: { type: "array", minItems: 1, items: { $ref: "#/definitions/actionConfig" }, description: "Actions available in this context. Optional at the context level, but required when any resultField references an action key. Each action key must be unique within the context." } } }, resultFieldConfig: { type: "object", required: ["translationKey", "expression"], additionalProperties: !1, properties: { translationKey: { type: "string", minLength: 1, description: "i18n key for the column header" }, expression: { type: "string", minLength: 1, description: "JSONata expression evaluated against each result item to extract the column value" }, enableSort: { type: "boolean", description: "When true, the column header is clickable to sort results client-side" }, sortOrder: { type: "string", enum: ["asc", "desc"], description: "Direction the results are sorted by this column before any user interaction" }, filterType: { type: "string", enum: ["text", "select", "dateRange", "numeric"], description: "When present, a filter control appears for this column" }, action: { type: "string", description: "Key of an action defined in the context's actions array. When the referenced action has type navigate, the cell renders as a link. If the user holds none of the action's required privileges, the cell renders as plain text. Referencing a key not present in the actions array is a config error and blocks the widget." }, transform: { type: "string", enum: ["formatDate", "formatTime", "formatDateTime", "formatAge", "formatGender", "formatCountry", "formatSearchResult"], description: "Name of a transform applied to the extracted value before display" } } }, criterionConfig: { type: "object", required: ["field", "translationKey", "input"], additionalProperties: !1, properties: { field: { $ref: "#/definitions/fieldConfig" }, default: { type: "boolean", description: "Whether this criterion is shown by default in the UI" }, translationKey: { type: "string", minLength: 1, description: "i18n key for the criterion label" }, input: { $ref: "#/definitions/inputConfig" } } }, fieldConfig: { type: "object", required: ["key"], additionalProperties: !1, properties: { key: { type: "string", minLength: 1, description: "Field identifier used when constructing the search query" }, keyType: { type: "string", minLength: 1, description: "UUID or type qualifier for polymorphic fields such as identifier or personAttribute" } } }, inputConfig: { oneOf: [{ $ref: "#/definitions/textInput" }, { $ref: "#/definitions/dateInput" }, { $ref: "#/definitions/numericInput" }, { $ref: "#/definitions/optionsInput" }, { $ref: "#/definitions/lookupInput" }] }, textInput: { type: "object", required: ["kind", "placeholderTranslationKey"], additionalProperties: !1, properties: { kind: { type: "string", const: "text" }, placeholderTranslationKey: { type: "string", minLength: 1 }, regex: { type: "string", minLength: 1, description: "Optional regular expression. When provided, the value is validated against this pattern on search submission." } } }, dateInput: { type: "object", required: ["kind", "placeholderTranslationKey"], additionalProperties: !1, properties: { kind: { type: "string", const: "date" }, placeholderTranslationKey: { type: "string", minLength: 1 }, rangeAllowed: { type: "boolean", description: "When true, UI renders two inputs (From and To), each with its own value and comparator" } } }, numericInput: { type: "object", required: ["kind", "placeholderTranslationKey"], additionalProperties: !1, properties: { kind: { type: "string", const: "numeric" }, placeholderTranslationKey: { type: "string", minLength: 1 }, rangeAllowed: { type: "boolean", description: "When true, UI renders two inputs (From and To), each with its own value and comparator" } } }, optionsInput: { type: "object", required: ["kind", "placeholderTranslationKey", "options"], additionalProperties: !1, properties: { kind: { type: "string", const: "options" }, placeholderTranslationKey: { type: "string", minLength: 1 }, options: { type: "array", minItems: 1, items: { $ref: "#/definitions/optionItem" }, description: "Static list of selectable options" } } }, optionItem: { type: "object", required: ["translationKey", "value"], additionalProperties: !1, properties: { translationKey: { type: "string", minLength: 1 }, value: { type: "string", minLength: 1 } } }, lookupInput: { type: "object", required: ["kind", "placeholderTranslationKey", "lookup"], additionalProperties: !1, properties: { kind: { type: "string", const: "lookup" }, placeholderTranslationKey: { type: "string", minLength: 1 }, lookup: { $ref: "#/definitions/lookupConfig" } } }, lookupConfig: { type: "object", required: ["source"], additionalProperties: !1, properties: { source: { type: "string", minLength: 1, description: "Identifies the lookup source (e.g. appointmentService, concept)" }, prefetch: { type: "boolean", description: "Whether to load all options upfront rather than on user input" }, valueSet: { type: "string", description: "UUID of the concept value set to restrict lookup results" } } }, actionConfig: { oneOf: [{ $ref: "#/definitions/navigateAction" }] }, navigateAction: { type: "object", required: ["key", "type", "navigationURL"], additionalProperties: !0, properties: { key: { type: "string", description: "Unique identifier for this action within the context. Referenced by resultField entries via their action field." }, type: { type: "string", const: "navigate", description: "Renders the column cell as a link navigating to navigationURL." }, navigationURL: { type: "string", description: "URL template for navigation. Placeholders use {expression} syntax where the content must be a valid JSONata expression evaluated against the result row. For example, {uuid} resolves the uuid field; {patient.uuid} resolves a nested field." }, requiredPrivileges: { type: "array", items: { type: "string" }, description: "Privileges required to activate this action. Any one suffices. An empty array makes the action available to all users." } } } }, a11 = {
113336
113342
  $schema: Xt1,
113337
113343
  title: Qt1,
113338
113344
  description: e11,
@@ -113847,7 +113853,7 @@ const Ut1 = (t, e) => t.filter(
113847
113853
  onChange: m
113848
113854
  }
113849
113855
  ) }),
113850
- /* @__PURE__ */ L("div", { className: Wt.dropdownCol, children: /* @__PURE__ */ L(
113856
+ c.locationAware && /* @__PURE__ */ L("div", { className: Wt.dropdownCol, children: /* @__PURE__ */ L(
113851
113857
  mn,
113852
113858
  {
113853
113859
  id: "location-selector",
@@ -114013,7 +114019,7 @@ const Ut1 = (t, e) => t.filter(
114013
114019
  Wt1(
114014
114020
  Ut1(P, C.criteria),
114015
114021
  C.context,
114016
- s.uuid
114022
+ C.locationAware ? s?.uuid : void 0
114017
114023
  )
114018
114024
  ).then((S) => {
114019
114025
  const j = S.results;
@@ -114162,7 +114168,7 @@ const V11 = [
114162
114168
  },
114163
114169
  {
114164
114170
  type: "patientDocuments",
114165
- component: l0(() => import("./DocumentsTable-CjCaDfcK.js"))
114171
+ component: l0(() => import("./DocumentsTable-l6uIf4GI.js"))
114166
114172
  },
114167
114173
  {
114168
114174
  type: "flowSheet",
@@ -114170,7 +114176,7 @@ const V11 = [
114170
114176
  },
114171
114177
  {
114172
114178
  type: "forms",
114173
- component: l0(() => import("./FormsTable-QzXAZhsn.js"))
114179
+ component: l0(() => import("./FormsTable-D4txdWfP.js"))
114174
114180
  },
114175
114181
  {
114176
114182
  type: "labOrders",
@@ -114178,7 +114184,7 @@ const V11 = [
114178
114184
  },
114179
114185
  {
114180
114186
  type: "observations",
114181
- component: l0(() => import("./Observations-DV91M9KL.js"))
114187
+ component: l0(() => import("./Observations-8vZ2rUbv.js"))
114182
114188
  },
114183
114189
  {
114184
114190
  type: "ordersControl",
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ae as o, ac as r, J as n, ab as g, K as c, l, a4 as d, ak as P, M as m, E as v, R as u, G as T, H as A, aa as C, $ as b, a2 as p, W as I, av as S, ax as W, ay as R, S as f, a6 as U, a7 as h, O as D, P as L, a1 as y, a3 as E, V as N, U as x, Z as G, a0 as O, at as _, as as H, a9 as V, _ as k, aj as M, ag as q, af as w, h as F, aq as j, ap as z, ai as B, am as J, an as K, ao as Z, ah as $, al as Q, I as X, ar as Y, ad as aa, a5 as ea, a8 as sa, c as ta, aw as ia, a as oa, u as ra, au as na, d as ga } from "./index-ChGezZUf.js";
1
+ import { ae as o, ac as r, J as n, ab as g, K as c, l, a4 as d, ak as P, M as m, E as v, R as u, G as T, H as A, aa as C, $ as b, a2 as p, W as I, av as S, ax as W, ay as R, S as f, a6 as U, a7 as h, O as D, P as L, a1 as y, a3 as E, V as N, U as x, Z as G, a0 as O, at as _, as as H, a9 as V, _ as k, aj as M, ag as q, af as w, h as F, aq as j, ap as z, ai as B, am as J, an as K, ao as Z, ah as $, al as Q, I as X, ar as Y, ad as aa, a5 as ea, a8 as sa, c as ta, aw as ia, a as oa, u as ra, au as na, d as ga } from "./index-BmN4GeeA.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "@tanstack/react-query";
@@ -1 +1 @@
1
- {"version":3,"file":"SearchForm.d.ts","sourceRoot":"","sources":["../../../src/search/commonSearch/SearchForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAkB,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGhE,OAAO,EAAE,YAAY,EAAkB,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAU7E,UAAU,eAAe;IACvB,MAAM,EAAE,mBAAmB,EAAE,CAAC;IAC9B,QAAQ,EAAE,YAAY,CAAC;IACvB,QAAQ,EAAE,CACR,IAAI,EAAE,YAAY,EAAE,EACpB,OAAO,EAAE,mBAAmB,KACzB,YAAY,EAAE,CAAC;IACpB,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAC3B,eAAe,CAAC,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAC;CAClD;AAED,QAAA,MAAM,UAAU,GAAI,6DAMjB,eAAe,4CA0JjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"SearchForm.d.ts","sourceRoot":"","sources":["../../../src/search/commonSearch/SearchForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAkB,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGhE,OAAO,EAAE,YAAY,EAAkB,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAU7E,UAAU,eAAe;IACvB,MAAM,EAAE,mBAAmB,EAAE,CAAC;IAC9B,QAAQ,EAAE,YAAY,CAAC;IACvB,QAAQ,EAAE,CACR,IAAI,EAAE,YAAY,EAAE,EACpB,OAAO,EAAE,mBAAmB,KACzB,YAAY,EAAE,CAAC;IACpB,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAC3B,eAAe,CAAC,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAC;CAClD;AAED,QAAA,MAAM,UAAU,GAAI,6DAMjB,eAAe,4CA4JjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -2,6 +2,7 @@ import { UserLocation, UserPrivilege } from '@bahmni/services';
2
2
  import { CommonSearchWidgetConfig, CriterionConfig, CriterionRow } from '../../models';
3
3
  export declare const mockCommonSearchWidgetConfig: CommonSearchWidgetConfig;
4
4
  export declare const mockMultiContextConfig: CommonSearchWidgetConfig;
5
+ export declare const mockCommonSearchWidgetConfigWithoutLocationAware: CommonSearchWidgetConfig;
5
6
  export declare const mockPrivilegeViewPatients: UserPrivilege[];
6
7
  export declare const mockPrivilegeViewAppointments: UserPrivilege[];
7
8
  export declare const mockWidgetLocation: UserLocation;
@@ -1 +1 @@
1
- {"version":3,"file":"commonSearchWidgetMocks.d.ts","sourceRoot":"","sources":["../../../../../src/search/commonSearch/__tests__/__mocks__/commonSearchWidgetMocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EACL,wBAAwB,EACxB,eAAe,EACf,YAAY,EAEb,MAAM,cAAc,CAAC;AAUtB,eAAO,MAAM,4BAA4B,EAAE,wBAsB1C,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,wBA2CpC,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,aAAa,EAEpD,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,aAAa,EAExD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,YAIhC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,eASrC,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,eAU7C,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,YAMnC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,YAMnC,CAAC;AAEF,eAAO,MAAM,qCAAqC,EAAE,wBAWnD,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,YASxC,CAAC"}
1
+ {"version":3,"file":"commonSearchWidgetMocks.d.ts","sourceRoot":"","sources":["../../../../../src/search/commonSearch/__tests__/__mocks__/commonSearchWidgetMocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EACL,wBAAwB,EACxB,eAAe,EACf,YAAY,EAEb,MAAM,cAAc,CAAC;AAUtB,eAAO,MAAM,4BAA4B,EAAE,wBAsB1C,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,wBA2CpC,CAAC;AAEF,eAAO,MAAM,gDAAgD,EAAE,wBAsB5D,CAAC;AAEJ,eAAO,MAAM,yBAAyB,EAAE,aAAa,EAEpD,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,aAAa,EAExD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,YAIhC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,eASrC,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,eAU7C,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,YAMnC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,YAMnC,CAAC;AAEF,eAAO,MAAM,qCAAqC,EAAE,wBAWnD,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,YASxC,CAAC"}
@@ -9,6 +9,7 @@ export declare const mockContextNoDefaults: SearchContextConfig;
9
9
  export declare const mockPatientContextWithRangeNumeric: SearchContextConfig;
10
10
  export declare const mockContextMultipleDefaults: SearchContextConfig;
11
11
  export declare const mockPatientContextWithRegex: SearchContextConfig;
12
+ export declare const mockPatientContextWithoutLocationAware: SearchContextConfig;
12
13
  export declare const mockConfig: SearchContextConfig[];
13
14
  export declare const mockSavedRows: CriterionRow[];
14
15
  //# sourceMappingURL=searchFormMocks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"searchFormMocks.d.ts","sourceRoot":"","sources":["../../../../../src/search/commonSearch/__tests__/__mocks__/searchFormMocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,cAAc,CAAC;AAEtB,eAAO,MAAM,gBAAgB,EAAE,iBAAiB,EAM/C,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,YAI1B,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,YAGnC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,mBA0ChC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,mBA8BpC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,mBA6BnC,CAAC;AAEF,eAAO,MAAM,kCAAkC,EAAE,mBAqBhD,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,mBAkCzC,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,mBAqBzC,CAAC;AAEF,eAAO,MAAM,UAAU,uBAA+C,CAAC;AAEvE,eAAO,MAAM,aAAa,EAAE,YAAY,EAevC,CAAC"}
1
+ {"version":3,"file":"searchFormMocks.d.ts","sourceRoot":"","sources":["../../../../../src/search/commonSearch/__tests__/__mocks__/searchFormMocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,cAAc,CAAC;AAEtB,eAAO,MAAM,gBAAgB,EAAE,iBAAiB,EAM/C,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,YAI1B,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,YAGnC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,mBA0ChC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,mBA8BpC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,mBA6BnC,CAAC;AAEF,eAAO,MAAM,kCAAkC,EAAE,mBAqBhD,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,mBAkCzC,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,mBAqBzC,CAAC;AAEF,eAAO,MAAM,sCAAsC,EAAE,mBAmBpD,CAAC;AAEF,eAAO,MAAM,UAAU,uBAA+C,CAAC;AAEvE,eAAO,MAAM,aAAa,EAAE,YAAY,EAevC,CAAC"}
@@ -88,7 +88,7 @@ export interface SearchContextConfig {
88
88
  context: 'patient' | 'appointment' | 'patientProgram';
89
89
  translationKey: string;
90
90
  requiredPrivileges: string[];
91
- locationAware: 'loggedInLocation' | 'allowedLocation';
91
+ locationAware?: 'loggedInLocation' | 'allowedLocation';
92
92
  url: string;
93
93
  pageSize: number;
94
94
  criteria: CriterionConfig[];
@@ -1 +1 @@
1
- {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/search/commonSearch/models.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEjE,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,UAAU;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;CAC/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EAAE,CAAC;IAC5B,YAAY,EAAE,iBAAiB,EAAE,CAAC;IAClC,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;CAC1B;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,mBAAmB;IACnB,GAAG,mBAAmB,EAAE;CACzB,CAAC;AAEF,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;IAC7B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,mBAAmB,CAAC;IAC7B,IAAI,EAAE,YAAY,EAAE,CAAC;IACrB,YAAY,EAAE,iBAAiB,EAAE,CAAC;IAClC,OAAO,EAAE,OAAO,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,EAAE,cAAc,CAAC;CACvB;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,UAAU,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,KAAK,GAAG,IAAI,CAAC;IACvB,UAAU,EAAE,eAAe,EAAE,CAAC;CAC/B;AAED,MAAM,MAAM,eAAe,GAAG,mBAAmB,GAAG,oBAAoB,CAAC;AAEzE,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,oBAAoB,CAAC;CAChC"}
@@ -14,7 +14,6 @@ declare const _default: {
14
14
  "context",
15
15
  "translationKey",
16
16
  "requiredPrivileges",
17
- "locationAware",
18
17
  "url",
19
18
  "pageSize",
20
19
  "criteria",
@@ -23,7 +23,7 @@ export declare function getLookupComboBoxItems(inputValue: string | null, option
23
23
  disabled?: boolean;
24
24
  })[];
25
25
  export declare const resolveRows: (rows: CriterionRow[], criteria: CriterionConfig[]) => ResolvedRow[];
26
- export declare const buildPayload: (resolvedRows: ResolvedRow[], entity: string, locationUuid: string) => SearchPayload;
26
+ export declare const buildPayload: (resolvedRows: ResolvedRow[], entity: string, locationUuid?: string | undefined) => SearchPayload;
27
27
  export declare const validateRows: (rows: CriterionRow[], criteria: CriterionConfig[], criterionError: string, valueError: string, rangeOrderMessage: string, t: (key: string, options?: {
28
28
  defaultValue?: string;
29
29
  }) => string) => CriterionRow[];
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/search/commonSearch/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EASd,KAAK,aAAa,EACnB,MAAM,kBAAkB,CAAC;AAU1B,OAAO,EACL,eAAe,EACf,YAAY,EACZ,cAAc,EAEd,WAAW,EACX,YAAY,EACZ,WAAW,EAGX,aAAa,EACb,mBAAmB,EACnB,SAAS,EACV,MAAM,UAAU,CAAC;AAElB,MAAM,MAAM,eAAe,GAAG,CAC5B,KAAK,EAAE,MAAM,EACb,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,KACvB,MAAM,GAAG,IAAI,CAAC;AAEnB,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,IAAI,GAAG,MAAM,CAAC;AAEnD,eAAO,MAAM,kBAAkB,GAC7B,OAAO,MAAM,EACb,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,KACzB,MAAM,GAAG,IAIX,CAAC;AAYF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAe5D,CAAC;AASF,eAAO,MAAM,eAAe,GAAI,YAAY,MAAM,KAAG,OACM,CAAC;AAE5D,eAAO,MAAM,sBAAsB,GACjC,SAAS,mBAAmB,CAAC,SAAS,CAAC,KACtC,cACiE,CAAC;AAOrE,eAAO,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"name": "@bahmni/widgets",
3
- "version": "0.0.1-dev.381",
3
+ "version": "0.0.1-dev.382",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",