@bahmni/appointments-app 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.
- package/dist/{DocumentsTable-D61lXj3C-CukR90nx.js → DocumentsTable-CRgjrXxQ-BoXcPvMz.js} +1 -1
- package/dist/{FormsTable-DSdtlBnm-D27EtXow.js → FormsTable-D5ubXLMz-CtYn9v-w.js} +1 -1
- package/dist/{LNWAZHJI-Bq2CSLnY.js → LNWAZHJI-B3dxxxC1.js} +2 -2
- package/dist/{MWZ6AO7Z-Bfuv1DHQ.js → MWZ6AO7Z-CaJvjPZj.js} +2 -2
- package/dist/{Observations-BiXeD58c-Cx4jjuVT.js → Observations-Dv63uw5H-2xqgqbf9.js} +1 -1
- package/dist/{YPM2AS64-BZFOlfke.js → YPM2AS64-DfQ5OM73.js} +1 -1
- package/dist/{index-pw8iuFPK.js → index-BGaKZUhM.js} +1 -1
- package/dist/{index-CUs8rGzj.js → index-BKTQBym1.js} +1 -1
- package/dist/{index-BzzcvxBx.js → index-Djz7NxTJ.js} +15 -9
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as p, Fragment as x } from "react/jsx-runtime";
|
|
2
|
-
import { g as G, u as W, Z as Y, E as Z, m as J, a as X, K as ee, p as te } from "./index-
|
|
2
|
+
import { g as G, u as W, Z as Y, E as Z, m as J, a as X, K as ee, p as te } from "./index-Djz7NxTJ.js";
|
|
3
3
|
import { useQuery as ae } from "@tanstack/react-query";
|
|
4
4
|
import { useState as l, useCallback as h, useEffect as I, useMemo as _ } from "react";
|
|
5
5
|
const ne = "DocumentsTable-module_documentsTableBody__6iR3w", oe = "DocumentsTable-module_viewAttachmentsLink__aQ1on", re = "DocumentsTable-module_documentViewerContainer__F5m8D", de = "DocumentsTable-module_attachmentItem__17KA7", se = "DocumentsTable-module_attachmentCounter__WFiI3", me = "DocumentsTable-module_attachmentError__RI4U2", ce = "DocumentsTable-module_documentIframe__ptq5I", le = "DocumentsTable-module_documentImage__KQVgS", d = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as i, jsxs as z, Fragment as ge } from "react/jsx-runtime";
|
|
2
|
-
import { u as ye, g as be, b as Oe, J as Ne, c as Te, v as Ie, G as Ee, d as ve, L as Ae, f as _e, e as Fe, x as Se, s as G, a as Be, h as $, i as P, m as Le, K as Q, k as Me, B as Re, p as Ce, j as Ue, S as ke } from "./index-
|
|
2
|
+
import { u as ye, g as be, b as Oe, J as Ne, c as Te, v as Ie, G as Ee, d as ve, L as Ae, f as _e, e as Fe, x as Se, s as G, a as Be, h as $, i as P, m as Le, K as Q, k as Me, B as Re, p as Ce, j as Ue, S as ke } from "./index-Djz7NxTJ.js";
|
|
3
3
|
import { useQueryClient as De, useQuery as N } from "@tanstack/react-query";
|
|
4
4
|
import { useState as J, useMemo as d, useCallback as c } from "react";
|
|
5
5
|
const qe = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_modalHeading__wnTmA", He = "FormsTable-module_customAccordianItem__isszs", T = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-
|
|
2
|
-
import { an as p, ao as d, ap as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-DfQ5OM73.js";
|
|
2
|
+
import { an as p, ao as d, ap as e } from "./index-Djz7NxTJ.js";
|
|
3
3
|
var f = (a) => {
|
|
4
4
|
const [r, o] = c({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-
|
|
2
|
-
import { an as v, ao as C, ap as e } from "./index-
|
|
1
|
+
import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-DfQ5OM73.js";
|
|
2
|
+
import { an as v, ao as C, ap as e } from "./index-Djz7NxTJ.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as N, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { g as q, Z as w, u as S, l as H, w as k, f as z, _ as Q, C as x, z as G, n as M, K as Y, N as j, Y as A, A as P, o as Z, q as J, y as W, H as X, V as ee } from "./index-
|
|
2
|
+
import { g as q, Z as w, u as S, l as H, w as k, f as z, _ as Q, C as x, z as G, n as M, K as Y, N as j, Y as A, A as P, o as Z, q as J, y as W, H as X, V as ee } from "./index-Djz7NxTJ.js";
|
|
3
3
|
import { useQueries as ae, useQuery as te } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as se, useEffect as I, useMemo as g } from "react";
|
|
5
5
|
const C = (a, n, d, l, b, r) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aq as we, ar as z, as as xt, at as B, ao as q, ap as y, au as Ro, av as ye, aw as R, ax as _, ay as k, az as N, aA as A, aB as bs, aC as ir, aD as $e, aE as U, aF as Hn, aG as Vn, aH as dt, aI as D, aJ as xs, aK as cn, aL as Be, aM as ws, aN as qt, aO as zt, aP as $s, aQ as Cs, aR as $n, aS as Ss, aT as Nr, aU as Bt, aV as zo, aW as ks, aX as Es, aY as j, aZ as Ur, a_ as Ms, a$ as Ds, b0 as sr, b1 as As, b2 as Ts, b3 as zn, b4 as Fs, b5 as Is, b6 as Z, b7 as Ps, b8 as Ls } from "./index-
|
|
1
|
+
import { aq as we, ar as z, as as xt, at as B, ao as q, ap as y, au as Ro, av as ye, aw as R, ax as _, ay as k, az as N, aA as A, aB as bs, aC as ir, aD as $e, aE as U, aF as Hn, aG as Vn, aH as dt, aI as D, aJ as xs, aK as cn, aL as Be, aM as ws, aN as qt, aO as zt, aP as $s, aQ as Cs, aR as $n, aS as Ss, aT as Nr, aU as Bt, aV as zo, aW as ks, aX as Es, aY as j, aZ as Ur, a_ as Ms, a$ as Ds, b0 as sr, b1 as As, b2 as Ts, b3 as zn, b4 as Fs, b5 as Is, b6 as Z, b7 as Ps, b8 as Ls } from "./index-Djz7NxTJ.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as i, jsxs as y } from "react/jsx-runtime";
|
|
2
|
-
import { I as V, r as O, u as C, F as P, t as h, Z as B, J as G, D as L, M as x, O as U, P as F, Q as q, R as k, T as Q, U as W, W as $, X as j } from "./index-
|
|
2
|
+
import { I as V, r as O, u as C, F as P, t as h, Z as B, J as G, D as L, M as x, O as U, P as F, Q as q, R as k, T as Q, U as W, W as $, X as j } from "./index-Djz7NxTJ.js";
|
|
3
3
|
import { useState as I, useMemo as _ } from "react";
|
|
4
4
|
import { useQueryClient as w, useQuery as H } from "@tanstack/react-query";
|
|
5
5
|
const K = V(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as p } from "react/jsx-runtime";
|
|
2
|
-
import { $ as f, a0 as O, a1 as P, a2 as V, a3 as X, a4 as ee, a5 as te, a6 as ie, M as ae, a7 as ne, u as Q, a8 as R, a9 as le, aa as re, ab as se, ac as U, ad as C, ae as F, af as Y, ag as k, ah as x, ai as $, J as oe, Z as de, D as q, aj as ce, O as me, ak as Ae, al as Ie, am as ue, Q as _e, R as Te, T as Le } from "./index-
|
|
2
|
+
import { $ as f, a0 as O, a1 as P, a2 as V, a3 as X, a4 as ee, a5 as te, a6 as ie, M as ae, a7 as ne, u as Q, a8 as R, a9 as le, aa as re, ab as se, ac as U, ad as C, ae as F, af as Y, ag as k, ah as x, ai as $, J as oe, Z as de, D as q, aj as ce, O as me, ak as Ae, al as Ie, am as ue, Q as _e, R as Te, T as Le } from "./index-Djz7NxTJ.js";
|
|
3
3
|
import { useState as g, useMemo as N, useEffect as h, useRef as ve, useCallback as E } from "react";
|
|
4
4
|
import { useQuery as y, useQueryClient as Ne } from "@tanstack/react-query";
|
|
5
5
|
const be = "Available for appointments", w = "Get Appointment Unavailability", pe = "Add Appointment Unavailability", G = "Appointment Location", Me = () => {
|
|
@@ -112230,7 +112230,13 @@ const TH0 = (t, e) => t.filter(
|
|
|
112230
112230
|
operator: "AND",
|
|
112231
112231
|
conditions: [
|
|
112232
112232
|
...t.map(LH0),
|
|
112233
|
-
|
|
112233
|
+
...r ? [
|
|
112234
|
+
{
|
|
112235
|
+
field: hH0,
|
|
112236
|
+
comparator: "eq",
|
|
112237
|
+
value: r
|
|
112238
|
+
}
|
|
112239
|
+
] : []
|
|
112234
112240
|
]
|
|
112235
112241
|
}
|
|
112236
112242
|
}), $H0 = (t, e, r, o, a, c) => t.map((l) => {
|
|
@@ -112386,7 +112392,7 @@ const TH0 = (t, e) => t.filter(
|
|
|
112386
112392
|
className: L2.dataTable
|
|
112387
112393
|
}
|
|
112388
112394
|
);
|
|
112389
|
-
}, kH0 = "http://json-schema.org/draft-07/schema#", IH0 = "Common Search Widget Config Schema", BH0 = "Configuration for the common search widget, defining search criteria per context", PH0 = "array", jH0 = 1, FH0 = { $ref: "#/definitions/searchContextConfig" }, qH0 = { searchContextConfig: { type: "object", required: ["context", "translationKey", "requiredPrivileges", "
|
|
112395
|
+
}, kH0 = "http://json-schema.org/draft-07/schema#", IH0 = "Common Search Widget Config Schema", BH0 = "Configuration for the common search widget, defining search criteria per context", PH0 = "array", jH0 = 1, FH0 = { $ref: "#/definitions/searchContextConfig" }, qH0 = { 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." } } } }, UH0 = {
|
|
112390
112396
|
$schema: kH0,
|
|
112391
112397
|
title: IH0,
|
|
112392
112398
|
description: BH0,
|
|
@@ -112901,7 +112907,7 @@ const TH0 = (t, e) => t.filter(
|
|
|
112901
112907
|
onChange: h
|
|
112902
112908
|
}
|
|
112903
112909
|
) }),
|
|
112904
|
-
/* @__PURE__ */ n1("div", { className: L2.dropdownCol, children: /* @__PURE__ */ n1(
|
|
112910
|
+
s.locationAware && /* @__PURE__ */ n1("div", { className: L2.dropdownCol, children: /* @__PURE__ */ n1(
|
|
112905
112911
|
Li,
|
|
112906
112912
|
{
|
|
112907
112913
|
id: "location-selector",
|
|
@@ -113067,7 +113073,7 @@ const TH0 = (t, e) => t.filter(
|
|
|
113067
113073
|
OH0(
|
|
113068
113074
|
TH0(P, _.criteria),
|
|
113069
113075
|
_.context,
|
|
113070
|
-
l
|
|
113076
|
+
_.locationAware ? l?.uuid : void 0
|
|
113071
113077
|
)
|
|
113072
113078
|
).then((R) => {
|
|
113073
113079
|
const k = R.results;
|
|
@@ -113197,7 +113203,7 @@ Rr2({
|
|
|
113197
113203
|
key: "commonSearch",
|
|
113198
113204
|
component: lz0
|
|
113199
113205
|
});
|
|
113200
|
-
k0(() => Promise.resolve().then(() => ah0)), k0(() => Promise.resolve().then(() => Th0)), k0(() => Promise.resolve().then(() => up0)), k0(() => Promise.resolve().then(() => vp0)), k0(() => import("./DocumentsTable-
|
|
113206
|
+
k0(() => Promise.resolve().then(() => ah0)), k0(() => Promise.resolve().then(() => Th0)), k0(() => Promise.resolve().then(() => up0)), k0(() => Promise.resolve().then(() => vp0)), k0(() => import("./DocumentsTable-CRgjrXxQ-BoXcPvMz.js")), k0(() => Promise.resolve().then(() => mv0)), k0(() => import("./FormsTable-D5ubXLMz-CtYn9v-w.js")), k0(() => Promise.resolve().then(() => ig0)), k0(() => import("./Observations-Dv63uw5H-2xqgqbf9.js")), k0(
|
|
113201
113207
|
() => Promise.resolve().then(() => Qv0)
|
|
113202
113208
|
), k0(
|
|
113203
113209
|
() => Promise.resolve().then(() => Aw0)
|
|
@@ -204201,7 +204207,7 @@ var eFt = (t, e = !1) => {
|
|
|
204201
204207
|
const e = md2(() => {
|
|
204202
204208
|
const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [l] = this.#c, [i] = this.#p, [s] = this.#e;
|
|
204203
204209
|
let d;
|
|
204204
|
-
return this.#l ? d = this.#l : (d = pd2(() => import("./LNWAZHJI-
|
|
204210
|
+
return this.#l ? d = this.#l : (d = pd2(() => import("./LNWAZHJI-B3dxxxC1.js")), this.#l = d), $d2(this.#h, this.#r), ud2(d, hd2({
|
|
204205
204211
|
get queryFlavor() {
|
|
204206
204212
|
return r.#d;
|
|
204207
204213
|
},
|
|
@@ -204299,7 +204305,7 @@ var eFt = (t, e = !1) => {
|
|
|
204299
204305
|
const e = md2(() => {
|
|
204300
204306
|
const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [l] = this.#c, [i] = this.#p, [s] = this.#e, [d] = this.#l;
|
|
204301
204307
|
let u;
|
|
204302
|
-
return this.#i ? u = this.#i : (u = pd2(() => import("./MWZ6AO7Z-
|
|
204308
|
+
return this.#i ? u = this.#i : (u = pd2(() => import("./MWZ6AO7Z-CaJvjPZj.js")), this.#i = u), $d2(this.#h, this.#r), ud2(u, hd2({
|
|
204303
204309
|
get queryFlavor() {
|
|
204304
204310
|
return r.#d;
|
|
204305
204311
|
},
|
|
@@ -204459,11 +204465,11 @@ const TIt = {
|
|
|
204459
204465
|
}), qIt = k0(
|
|
204460
204466
|
() => import("./index-CFigb5vF.js").then((t) => ({ default: t.IndexPage }))
|
|
204461
204467
|
), UIt = k0(
|
|
204462
|
-
() => import("./index-
|
|
204468
|
+
() => import("./index-BGaKZUhM.js").then((t) => ({
|
|
204463
204469
|
default: t.default
|
|
204464
204470
|
}))
|
|
204465
204471
|
), WIt = k0(
|
|
204466
|
-
() => import("./index-
|
|
204472
|
+
() => import("./index-BKTQBym1.js").then((t) => ({
|
|
204467
204473
|
default: t.default
|
|
204468
204474
|
}))
|
|
204469
204475
|
), KIt = [
|
package/dist/index.js
CHANGED