@bahmni/registration-app 0.0.1-dev.167 → 0.0.1-dev.169

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 s, jsxs as p, Fragment as H } from "react/jsx-runtime";
2
- import { u as ee, h as re, w as ae, J as te, Y as oe, G as ne, K as se, e as de, i as me, C as ie, z as U, a as le, b as ce, c as ue, M as be, V as q, d as pe, g as _e, f as R, F as fe, N as $e, j as ve, U as ge } from "./index-C2YDjK6f.js";
2
+ import { u as ee, h as re, w as ae, J as te, Y as oe, G as ne, K as se, e as de, i as me, C as ie, z as U, a as le, b as ce, c as ue, M as be, V as q, d as pe, g as _e, f as R, F as fe, N as $e, j as ve, U as ge } from "./index-C_ok2zy5.js";
3
3
  import { useQueryClient as he, useQuery as C } from "@tanstack/react-query";
4
4
  import { useState as K, useMemo as h, useCallback as L } from "react";
5
5
  const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce = "_formContent_1pd36_18", Le = "_formDetailsContainer_1pd36_25", Re = "_observation_1pd36_30", Ae = "_groupContainer_1pd36_39", Fe = "_rowContainer_1pd36_43", Me = "_groupLabel_1pd36_48", Ve = "_rowLabel_1pd36_58", Oe = "_rowValue_1pd36_67", Ie = "_groupMembers_1pd36_75", Te = "_memberRow_1pd36_81", Se = "_memberLabel_1pd36_86", we = "_memberValue_1pd36_94", De = "_abnormalValue_1pd36_102", Ge = "_commentSection_1pd36_110", Ee = "_commentText_1pd36_116", xe = "_nestedGroup_1pd36_125", Be = "_nestedGroupLabel_1pd36_132", Ue = "_nestedGroupMembers_1pd36_141", o = {
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-BMPqbdib.js";
2
- import { l as d, m as f, o as e } from "./index-C2YDjK6f.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-BOhjibE5.js";
2
+ import { l as d, m as f, o as e } from "./index-C_ok2zy5.js";
3
3
  var p = (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-BMPqbdib.js";
2
- import { l as v, m as C, o as e } from "./index-C2YDjK6f.js";
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-BOhjibE5.js";
2
+ import { l as v, m as C, o as e } from "./index-C_ok2zy5.js";
3
3
  var h = (t) => {
4
4
  const [r, o] = s({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,7 +1,7 @@
1
- import { jsxs as T, jsx as c } from "react/jsx-runtime";
2
- import { h as B, p as V, u as I, q as x, W as K, e as w, d as z, r as G, n as Q, A as j, z as H, k as M, x as S, t as W, F as P, D as X, N as Y, j as J } from "./index-C2YDjK6f.js";
1
+ import { jsxs as $, jsx as c } from "react/jsx-runtime";
2
+ import { h as B, p as V, u as I, q as x, W as K, e as z, d as G, r as Q, n as j, A as w, z as H, k as M, x as S, t as W, F as P, D as X, N as Y, j as J } from "./index-C_ok2zy5.js";
3
3
  import { useQueries as Z, useQuery as ee } from "@tanstack/react-query";
4
- import { useRef as te, useEffect as $, useMemo as h } from "react";
4
+ import { useRef as te, useEffect as N, useMemo as h } from "react";
5
5
  const A = (t, d, i, l, r) => {
6
6
  const a = W(t, d), s = a.value, o = P(s);
7
7
  let n = s;
@@ -38,7 +38,7 @@ const A = (t, d, i, l, r) => {
38
38
  }) => {
39
39
  const { t: i } = I(), l = (r, a, s) => {
40
40
  const o = M(r.encounterDetails, i);
41
- return /* @__PURE__ */ T(
41
+ return /* @__PURE__ */ $(
42
42
  S,
43
43
  {
44
44
  title: o,
@@ -74,7 +74,7 @@ const A = (t, d, i, l, r) => {
74
74
  )
75
75
  }
76
76
  );
77
- }, se = "_observations_kfbhq_1", oe = "_title_kfbhq_12", N = {
77
+ }, se = "_observations_kfbhq_1", oe = "_title_kfbhq_12", T = {
78
78
  observations: se,
79
79
  title: oe
80
80
  }, ie = (t) => ["conceptUuid", t], ne = (t, d) => ["observations", t, ...d], be = ({ config: t }) => {
@@ -85,7 +85,7 @@ const A = (t, d, i, l, r) => {
85
85
  enabled: !!e
86
86
  }))
87
87
  });
88
- $(() => {
88
+ N(() => {
89
89
  n.forEach((e, m) => {
90
90
  if (e.isError && !r.current.has(m)) {
91
91
  const C = i[m];
@@ -107,14 +107,14 @@ const A = (t, d, i, l, r) => {
107
107
  queryFn: () => K(a, p),
108
108
  enabled: !!a && p.length > 0 && v
109
109
  });
110
- w(
110
+ z(
111
111
  (e) => {
112
112
  e.patientUUID === a && e.updatedConcepts.size > 0 && [...e.updatedConcepts.keys()].some(
113
113
  (m) => p.includes(m)
114
114
  ) && g();
115
115
  },
116
116
  [a, g]
117
- ), $(() => {
117
+ ), N(() => {
118
118
  R && s({
119
119
  title: o("ERROR_DEFAULT_TITLE"),
120
120
  message: o("ERROR_FETCHING_OBSERVATIONS"),
@@ -123,40 +123,40 @@ const A = (t, d, i, l, r) => {
123
123
  }, [R]);
124
124
  const f = h(() => {
125
125
  if (!u) return [];
126
- const e = z(u), m = G(e);
127
- return Q(m);
126
+ const e = G(u), m = Q(e);
127
+ return j(m);
128
128
  }, [u]), F = [
129
129
  { key: "name", header: "name" },
130
130
  { key: "value", header: "value" },
131
131
  { key: "form", header: "form" }
132
- ], O = D || !v, _ = R && v, q = (!u || u.entry?.length === 0 || p.length === 0) && v, L = _ ? o("ERROR_FETCHING_OBSERVATIONS") : null, U = q ? o("NO_OBSERVATIONS_FOUND") : void 0, k = f.length > 0 && !O && !_, E = d.titleTranslationKey, y = E ? o(E) : "";
133
- return /* @__PURE__ */ T(
132
+ ], O = D || !v, _ = R && v, k = (!u || u.entry?.length === 0 || p.length === 0) && v, q = _ ? o("ERROR_FETCHING_OBSERVATIONS") : null, L = k ? o("NO_OBSERVATIONS_FOUND") : void 0, U = f.length > 0 && !O && !_, E = d.titleTranslationKey, y = E ? o(E) : "";
133
+ return /* @__PURE__ */ $(
134
134
  "div",
135
135
  {
136
136
  id: "observations",
137
137
  "data-testid": E ? `observations-${y}` : "observations",
138
138
  "aria-label": "observations-aria-label",
139
- className: N.observations,
139
+ className: T.observations,
140
140
  children: [
141
141
  /* @__PURE__ */ c(
142
- j,
142
+ w,
143
143
  {
144
144
  id: "observations-title",
145
145
  testId: E ? `observations-title-${y}` : "observations-title",
146
146
  title: y,
147
- className: N.title,
147
+ className: T.title,
148
148
  children: /* @__PURE__ */ c("p", { children: y })
149
149
  }
150
150
  ),
151
- k ? /* @__PURE__ */ c(re, { groupedData: f, title: y }) : /* @__PURE__ */ c(
151
+ U ? /* @__PURE__ */ c(re, { groupedData: f, title: y }) : /* @__PURE__ */ c(
152
152
  H,
153
153
  {
154
154
  headers: F,
155
155
  rows: [],
156
156
  ariaLabel: o("OBSERVATIONS"),
157
157
  loading: O,
158
- errorStateMessage: L,
159
- emptyStateMessage: U,
158
+ errorStateMessage: q,
159
+ emptyStateMessage: L,
160
160
  dataTestId: "observations-table"
161
161
  }
162
162
  )
@@ -1,4 +1,4 @@
1
- import { s as we, v as z, y as xt, B, m as q, o as y, P as Ro, E as ye, S as R, H as _, I as k, L as N, O as A, Q as bs, R as ir, T as $e, X as U, Z as Hn, _ as Vn, $ as dt, a0 as D, a1 as xs, a2 as cn, a3 as Be, a4 as ws, a5 as qt, a6 as zt, a7 as $s, a8 as Cs, a9 as $n, aa as Ss, ab as Nr, ac as Bt, ad as zo, ae as ks, af as Es, ag as j, ah as Ur, ai as Ms, aj as Ds, ak as sr, al as As, am as Ts, an as zn, ao as Fs, ap as Is, aq as Z, ar as Ps, as as Ls } from "./index-C2YDjK6f.js";
1
+ import { s as we, v as z, y as xt, B, m as q, o as y, P as Ro, E as ye, S as R, H as _, I as k, L as N, O as A, Q as bs, R as ir, T as $e, X as U, Z as Hn, _ as Vn, $ as dt, a0 as D, a1 as xs, a2 as cn, a3 as Be, a4 as ws, a5 as qt, a6 as zt, a7 as $s, a8 as Cs, a9 as $n, aa as Ss, ab as Nr, ac as Bt, ad as zo, ae as ks, af as Es, ag as j, ah as Ur, ai as Ms, aj as Ds, ak as sr, al as As, am as Ts, an as zn, ao as Fs, ap as Is, aq as Z, ar as Ps, as as Ls } from "./index-C_ok2zy5.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {
@@ -6,7 +6,7 @@ export interface ValidationConfig {
6
6
  export interface PersonAttributeInputProps {
7
7
  uuid: string;
8
8
  name: string;
9
- label: string;
9
+ label: string | React.ReactNode;
10
10
  format: string;
11
11
  value: string | number | boolean | undefined;
12
12
  answers?: AttributeAnswer[];
@@ -1 +1 @@
1
- {"version":3,"file":"PersonAttributeInput.d.ts","sourceRoot":"","sources":["../../../src/components/common/PersonAttributeInput.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAGvE,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;IAC7C,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,KAAK,IAAI,CAAC;CACtD;AAOD;;;GAGG;AACH,eAAO,MAAM,oBAAoB;+FAW9B,yBAAyB;;CAoJ3B,CAAC;AAIF,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"PersonAttributeInput.d.ts","sourceRoot":"","sources":["../../../src/components/common/PersonAttributeInput.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAGvE,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;IAC7C,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,KAAK,IAAI,CAAC;CACtD;AAOD;;;GAGG;AACH,eAAO,MAAM,oBAAoB;+FAW9B,yBAAyB;;CAoJ3B,CAAC;AAIF,eAAe,oBAAoB,CAAC"}
@@ -3,6 +3,7 @@ import { PersonAttributesData } from '../../models/patient';
3
3
  export interface ConfigAttribute {
4
4
  field: string;
5
5
  translationKey: string;
6
+ required?: boolean;
6
7
  }
7
8
  export declare const getFieldsToShow: (attributeFields: PersonAttributeField[], configAttributes: ConfigAttribute[]) => PersonAttributeField[];
8
9
  export declare const createFieldTranslationMap: (configAttributes: ConfigAttribute[]) => Record<string, string>;
@@ -1 +1 @@
1
- {"version":3,"file":"personAttributeHelpers.d.ts","sourceRoot":"","sources":["../../../src/components/common/personAttributeHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAEjE,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,eAAe,GAC1B,iBAAiB,oBAAoB,EAAE,EACvC,kBAAkB,eAAe,EAAE,KAClC,oBAAoB,EAStB,CAAC;AAEF,eAAO,MAAM,yBAAyB,GACpC,kBAAkB,eAAe,EAAE,KAClC,MAAM,CAAC,MAAM,EAAE,MAAM,CAMvB,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAC7B,cAAc,oBAAoB,EAAE,EACpC,cAAc,oBAAoB,KACjC,oBAMF,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,WAAW,MAAM,EACjB,qBAAqB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC3C,aAAa,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,KACnC,MAGF,CAAC"}
1
+ {"version":3,"file":"personAttributeHelpers.d.ts","sourceRoot":"","sources":["../../../src/components/common/personAttributeHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAEjE,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,eAAe,GAC1B,iBAAiB,oBAAoB,EAAE,EACvC,kBAAkB,eAAe,EAAE,KAClC,oBAAoB,EAkBtB,CAAC;AAEF,eAAO,MAAM,yBAAyB,GACpC,kBAAkB,eAAe,EAAE,KAClC,MAAM,CAAC,MAAM,EAAE,MAAM,CAMvB,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAC7B,cAAc,oBAAoB,EAAE,EACpC,cAAc,oBAAoB,KACjC,oBAMF,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,WAAW,MAAM,EACjB,qBAAqB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC3C,aAAa,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,KACnC,MAGF,CAAC"}
@@ -12,9 +12,9 @@ export interface FieldValidationConfig {
12
12
  [fieldName: string]: ValidationConfig;
13
13
  }
14
14
  export declare const getValidationConfig: (fieldName: string, fieldValidationConfig?: FieldValidationConfig) => ValidationConfig | undefined;
15
- export declare const validateField: (value: string | number | boolean | undefined, validationConfig: ValidationConfig, t: (key: string) => string) => {
15
+ export declare const validateField: (value: string | number | boolean | undefined, validationConfig: ValidationConfig, t: (key: string | string[], params?: Record<string, unknown>) => string) => {
16
16
  isValid: boolean;
17
17
  error: string;
18
18
  };
19
- export declare const validateAllFields: (fieldsToShow: PersonAttributeField[], formData: PersonAttributesData, fieldValidationConfig?: FieldValidationConfig, t?: (key: string) => string) => ValidationResult;
19
+ export declare const validateAllFields: (fieldsToShow: PersonAttributeField[], formData: PersonAttributesData, t: (key: string | string[], params?: Record<string, unknown>) => string, fieldValidationConfig?: FieldValidationConfig) => ValidationResult;
20
20
  //# sourceMappingURL=personAttributeValidation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"personAttributeValidation.d.ts","sourceRoot":"","sources":["../../../src/components/common/personAttributeValidation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAEjE,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,qBAAqB;IACpC,CAAC,SAAS,EAAE,MAAM,GAAG,gBAAgB,CAAC;CACvC;AAED,eAAO,MAAM,mBAAmB,GAC9B,WAAW,MAAM,EACjB,wBAAwB,qBAAqB,KAC5C,gBAAgB,GAAG,SAQrB,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,OAAO,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,EAC5C,kBAAkB,gBAAgB,EAClC,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,KACzB;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAYnC,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,cAAc,oBAAoB,EAAE,EACpC,UAAU,oBAAoB,EAC9B,wBAAwB,qBAAqB,EAC7C,IAAI,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,KAC1B,gBAsBF,CAAC"}
1
+ {"version":3,"file":"personAttributeValidation.d.ts","sourceRoot":"","sources":["../../../src/components/common/personAttributeValidation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAEjE,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,qBAAqB;IACpC,CAAC,SAAS,EAAE,MAAM,GAAG,gBAAgB,CAAC;CACvC;AAED,eAAO,MAAM,mBAAmB,GAC9B,WAAW,MAAM,EACjB,wBAAwB,qBAAqB,KAC5C,gBAAgB,GAAG,SAQrB,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,OAAO,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,EAC5C,kBAAkB,gBAAgB,EAClC,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,MAAM,KACtE;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAYnC,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,cAAc,oBAAoB,EAAE,EACpC,UAAU,oBAAoB,EAC9B,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,MAAM,EACvE,wBAAwB,qBAAqB,KAC5C,gBAuCF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ContactInfo.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/contactInfo/ContactInfo.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAcpE,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,OAAO,CAAC;IACxB,OAAO,EAAE,MAAM,oBAAoB,CAAC;CACrC;AAED,UAAU,gBAAgB;IACxB,WAAW,CAAC,EAAE,oBAAoB,CAAC;IACnC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;CACjC;AAED,eAAO,MAAM,WAAW;2BAA0B,gBAAgB;;CAmHjE,CAAC;AAIF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"ContactInfo.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/contactInfo/ContactInfo.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAcpE,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,OAAO,CAAC;IACxB,OAAO,EAAE,MAAM,oBAAoB,CAAC;CACrC;AAED,UAAU,gBAAgB;IACxB,WAAW,CAAC,EAAE,oBAAoB,CAAC;IACnC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;CACjC;AAED,eAAO,MAAM,WAAW;2BAA0B,gBAAgB;;CAkIjE,CAAC;AAIF,eAAe,WAAW,CAAC"}
@@ -15,6 +15,7 @@ export interface PersonAttributeField {
15
15
  sortWeight: number;
16
16
  description: string | null;
17
17
  answers?: AttributeAnswer[];
18
+ required?: boolean;
18
19
  }
19
20
  /**
20
21
  * Hook to get all person attribute fields sorted by weight
@@ -1 +1 @@
1
- {"version":3,"file":"usePersonAttributeFields.d.ts","sourceRoot":"","sources":["../../src/hooks/usePersonAttributeFields.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;CAC7B;AAED;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;CA+BpC,CAAC"}
1
+ {"version":3,"file":"usePersonAttributeFields.d.ts","sourceRoot":"","sources":["../../src/hooks/usePersonAttributeFields.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;CA+BpC,CAAC"}