@bahmni/appointments-app 0.0.1-dev.216 → 0.0.1-dev.218

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,11 +1,11 @@
1
1
  import { jsx as n, jsxs as f } from "react/jsx-runtime";
2
- import { D as V, B as O, a as C, C as h, F as P, f as B, e as G, H as x, I as A, b as F, J as U, K as q, L as k, P as $, Q as H, S as K, W as Q, X as j } from "./index-B1RcPdJt.js";
2
+ import { R as V, t as O, a as C, B as h, D as P, f as B, e as G, F as x, G as L, b as U, H as q, I as F, W as $, K as k, O as H, P as K, Q, X as W } from "./index-BIUXeehZ.js";
3
3
  import { useState as I, useMemo as _ } from "react";
4
- const w = V(
4
+ const j = V(
5
5
  O,
6
6
  "useAppointmentsConfig",
7
7
  "AppointmentsConfigProvider"
8
- ), W = ({
8
+ ), w = ({
9
9
  serviceName: e,
10
10
  isDeleting: a,
11
11
  onConfirm: t,
@@ -35,9 +35,9 @@ const w = V(
35
35
  "speciality",
36
36
  "durationMins",
37
37
  "description"
38
- ], Y = "app:appointments:manageServices", J = "app:appointments:adminTab", X = "_page_10v94_1", z = "_noPrivilegeContainer_10v94_1", Z = "_table_10v94_18", d = {
38
+ ], Y = "app:appointments:manageServices", z = "app:appointments:adminTab", X = "_page_10v94_1", J = "_noPrivilegeContainer_10v94_1", Z = "_table_10v94_18", d = {
39
39
  page: X,
40
- noPrivilegeContainer: z,
40
+ noPrivilegeContainer: J,
41
41
  table: Z
42
42
  };
43
43
  function ee(e) {
@@ -74,24 +74,24 @@ function ae(e, a) {
74
74
  }));
75
75
  }
76
76
  const re = () => {
77
- const { t: e } = C(), a = B(), { addNotification: t } = G(), { userPrivileges: s } = x(), { appointmentsConfig: i } = w(), [E, c] = I(null), [v, S] = I(!1), l = i?.serviceTableFields ?? [
77
+ const { t: e } = C(), a = B(), { addNotification: t } = G(), { userPrivileges: s } = x(), { appointmentsConfig: i } = j(), [E, c] = I(null), [v, S] = I(!1), l = i?.serviceTableFields ?? [
78
78
  ...p
79
- ], u = A(s, J), M = A(
79
+ ], u = L(s, z), M = L(
80
80
  s,
81
81
  Y
82
82
  ), m = _(
83
83
  () => ee(l),
84
84
  [l]
85
- ), { data: L, isLoading: D, isError: b } = F({
85
+ ), { data: A, isLoading: R, isError: b } = U({
86
86
  queryKey: ["allAppointmentServices"],
87
- queryFn: j,
87
+ queryFn: W,
88
88
  enabled: u
89
- }), g = _(
89
+ }), D = _(
90
90
  () => te(l, e),
91
91
  [l]
92
- ), R = _(
93
- () => ae(L ?? [], m),
94
- [L, m]
92
+ ), g = _(
93
+ () => ae(A ?? [], m),
94
+ [A, m]
95
95
  ), N = async () => {
96
96
  S(!0);
97
97
  try {
@@ -123,13 +123,13 @@ const re = () => {
123
123
  children: /* @__PURE__ */ n(K, {})
124
124
  }
125
125
  ) : p.includes(o) ? r[o] ?? "-" : r.attributes[o] ?? "-", y = [
126
- { id: "home", label: e("BREADCRUMB_HOME"), href: U },
126
+ { id: "home", label: e("BREADCRUMB_HOME"), href: q },
127
127
  { id: "admin", label: e("BREADCRUMB_ADMIN"), isCurrentPage: !0 }
128
128
  ];
129
129
  return /* @__PURE__ */ n(
130
- q,
130
+ F,
131
131
  {
132
- header: /* @__PURE__ */ n($, { breadcrumbItems: y }),
132
+ header: /* @__PURE__ */ n(k, { breadcrumbItems: y }),
133
133
  main: u ? /* @__PURE__ */ f(
134
134
  "div",
135
135
  {
@@ -139,14 +139,14 @@ const re = () => {
139
139
  className: d.page,
140
140
  children: [
141
141
  /* @__PURE__ */ n(
142
- k,
142
+ $,
143
143
  {
144
144
  id: "all-services",
145
145
  title: e("ADMIN_ALL_SERVICES_TITLE"),
146
- headers: g,
147
- rows: R,
146
+ headers: D,
147
+ rows: g,
148
148
  ariaLabel: "all-services-table",
149
- loading: D,
149
+ loading: R,
150
150
  errorStateMessage: b ? e("ADMIN_ALL_SERVICES_ERROR_MESSAGE") : null,
151
151
  emptyStateMessage: e("ADMIN_ALL_SERVICES_EMPTY_MESSAGE"),
152
152
  renderCell: T,
@@ -154,7 +154,7 @@ const re = () => {
154
154
  }
155
155
  ),
156
156
  E && /* @__PURE__ */ n(
157
- W,
157
+ w,
158
158
  {
159
159
  serviceName: E.name,
160
160
  isDeleting: v,
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { aK as t } from "./index-B1RcPdJt.js";
1
+ import { aK as t } from "./index-BIUXeehZ.js";
2
2
  export {
3
3
  t as AppointmentsApp
4
4
  };
@@ -3,7 +3,7 @@ declare const _default: {
3
3
  "title": "Appointments App Configuration Schema",
4
4
  "description": "Schema for global appointments app configuration",
5
5
  "type": "object",
6
- "additionalProperties": false,
6
+ "additionalProperties": true,
7
7
  "properties": {
8
8
  "serviceTableFields": {
9
9
  "type": "array",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/appointments-app",
3
- "version": "0.0.1-dev.216",
3
+ "version": "0.0.1-dev.218",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",