@beda.software/web-item-controls 0.1.6 → 0.1.14-0
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/README.md +0 -12
- package/dist/components/BaseQuestionnaireResponseForm/hooks.d.ts +4 -4
- package/dist/components/BaseQuestionnaireResponseForm/hooks.d.ts.map +1 -1
- package/dist/components/BaseQuestionnaireResponseForm/hooks.js +28 -56
- package/dist/components/BaseQuestionnaireResponseForm/utils.d.ts.map +1 -1
- package/dist/components/BaseQuestionnaireResponseForm/utils.js +12 -3
- package/dist/components/FormWrapper/index.d.ts +4 -3
- package/dist/components/FormWrapper/index.d.ts.map +1 -1
- package/dist/components/SearchBar/SearchBarMobile/index.js +36 -0
- package/dist/components/SearchBar/SearchBarMobile/styles.js +49 -37
- package/dist/components/SearchBar/hooks.js +70 -0
- package/dist/components/SearchBar/index.js +27 -0
- package/dist/components/SearchBar/styles.js +23 -16
- package/dist/components/SearchBar/utils.js +10 -0
- package/dist/components/SearchBar/validate.js +46 -0
- package/dist/components/Table/TableCards/index.js +60 -0
- package/dist/components/Table/TableCards/styles.js +43 -31
- package/dist/components/Table/index.js +17 -0
- package/dist/components/Table/styles.js +18 -12
- package/dist/components/index.d.ts +10 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +26 -0
- package/dist/controls/Boolean/index.js +10 -10
- package/dist/controls/Display/index.js +6 -5
- package/dist/controls/EditableGroup/hooks.js +5 -5
- package/dist/controls/GroupTable/RenderFormItemReadOnly/index.js +6 -5
- package/dist/controls/GroupTable/hooks.js +13 -13
- package/dist/controls/GroupTable/index.d.ts +3 -0
- package/dist/controls/GroupTable/index.d.ts.map +1 -1
- package/dist/controls/GroupTable/index.js +28 -25
- package/dist/controls/InsideText/index.js +10 -10
- package/dist/controls/Number/index.js +37 -37
- package/dist/controls/PasswordInput/index.d.ts.map +1 -1
- package/dist/controls/PasswordInput/index.js +12 -12
- package/dist/controls/Reference/index.d.ts +3 -3
- package/dist/controls/Reference/index.d.ts.map +1 -1
- package/dist/controls/String/index.d.ts.map +1 -1
- package/dist/controls/String/index.js +31 -31
- package/dist/controls/controls.d.ts +6 -0
- package/dist/controls/controls.d.ts.map +1 -0
- package/dist/controls/controls.js +137 -0
- package/dist/controls/index.d.ts +2 -1
- package/dist/controls/index.d.ts.map +1 -1
- package/dist/controls/index.js +83 -71
- package/dist/readonly-controls/Display/index.js +6 -5
- package/dist/readonly-controls/index.d.ts +1 -0
- package/dist/readonly-controls/index.d.ts.map +1 -1
- package/dist/readonly-controls/index.js +41 -36
- package/dist/readonly-controls/readonly-controls.d.ts +6 -0
- package/dist/readonly-controls/readonly-controls.d.ts.map +1 -0
- package/dist/readonly-controls/readonly-controls.js +57 -0
- package/dist/style.css +1 -1
- package/dist/theme/palette.d.ts +2 -2
- package/dist/utils/theme.d.ts +1 -1
- package/package.json +48 -38
- package/src/locale/de/messages.po +6 -6
- package/src/locale/en/messages.po +6 -6
- package/src/locale/es/messages.po +6 -6
- package/src/locale/ru/messages.po +6 -6
- package/dist/components/BaseQuestionnaireResponseForm/controls.d.ts +0 -6
- package/dist/components/BaseQuestionnaireResponseForm/controls.d.ts.map +0 -1
package/dist/controls/index.js
CHANGED
|
@@ -1,113 +1,125 @@
|
|
|
1
1
|
import "../style.css";
|
|
2
|
-
import { AudioRecorderUploader as
|
|
3
|
-
import { Barcode as
|
|
2
|
+
import { AudioRecorderUploader as r } from "./AudioRecorderUploader/index.js";
|
|
3
|
+
import { Barcode as p } from "./Barcode/index.js";
|
|
4
4
|
import { BloodPressure as m } from "./BloodPressure/index.js";
|
|
5
|
-
import { QuestionBoolean as
|
|
5
|
+
import { QuestionBoolean as a } from "./Boolean/index.js";
|
|
6
6
|
import { ChoiceQuestionSelect as x, ChoiceQuestionValueSet as f, QuestionChoice as l } from "./Choice/index.js";
|
|
7
|
-
import { DateTimeSlotPicker as
|
|
8
|
-
import { Display as
|
|
9
|
-
import { EditableGroup as
|
|
10
|
-
import { Col as
|
|
11
|
-
import { GroupContext as
|
|
12
|
-
import { GridGroup as
|
|
13
|
-
import { GroupCard as
|
|
14
|
-
import { GTable as
|
|
15
|
-
import { RepeatableGroups as
|
|
16
|
-
import { RepeatableGroupCard as
|
|
17
|
-
import { GroupTable as
|
|
7
|
+
import { DateTimeSlotPicker as d, usePractitionerRoleId as G } from "./DateTimeSlotPicker/index.js";
|
|
8
|
+
import { Display as c, TextWithLink as Q } from "./Display/index.js";
|
|
9
|
+
import { EditableGroup as g } from "./EditableGroup/index.js";
|
|
10
|
+
import { Col as h, Grid as I, Group as b, Gtable as S, MainCard as W, Row as P, Section as D, SectionWithDivider as M, SubCard as w } from "./Group/index.js";
|
|
11
|
+
import { GroupContext as F } from "./Group/context.js";
|
|
12
|
+
import { GridGroup as z } from "./Group/GridGroup/index.js";
|
|
13
|
+
import { GroupCard as B, GroupMainCard as V, GroupSubCard as y } from "./Group/GroupCard/index.js";
|
|
14
|
+
import { GTable as H } from "./Group/GTable/index.js";
|
|
15
|
+
import { RepeatableGroups as v } from "./Group/RepeatableGroups/index.js";
|
|
16
|
+
import { RepeatableGroupCard as O } from "./Group/RepeatableGroups/RepeatableGroupCard/index.js";
|
|
17
|
+
import { GroupTable as j } from "./GroupTable/index.js";
|
|
18
18
|
import { GroupTableChart as K } from "./GroupTable/GroupTableChart/index.js";
|
|
19
19
|
import { HighlightArea as X } from "./GroupTable/GroupTableChart/HighlightArea/component.js";
|
|
20
20
|
import { getHighlightYParams as _ } from "./GroupTable/GroupTableChart/HighlightArea/utils.js";
|
|
21
21
|
import { Tooltip as oo } from "./GroupTable/GroupTableChart/Tooltip/index.js";
|
|
22
|
-
import { RenderFormItemReadOnly as
|
|
23
|
-
import { GroupTabs as
|
|
24
|
-
import { GroupWizard as mo, GroupWizardBus as
|
|
22
|
+
import { RenderFormItemReadOnly as ro } from "./GroupTable/RenderFormItemReadOnly/index.js";
|
|
23
|
+
import { GroupTabs as po } from "./GroupTabs/index.js";
|
|
24
|
+
import { GroupWizard as mo, GroupWizardBus as no, GroupWizardVertical as ao, GroupWizardWithTooltips as uo, getGroupStats as xo } from "./GroupWizard/index.js";
|
|
25
25
|
import { InlineChoice as lo } from "./InlineChoice/index.js";
|
|
26
26
|
import { InlineReference as Go } from "./InlineReference/index.js";
|
|
27
|
-
import { QuestionInputInsideText as
|
|
27
|
+
import { QuestionInputInsideText as co } from "./InsideText/index.js";
|
|
28
28
|
import { MDEditorControl as Ro } from "./MDEditorControl/index.js";
|
|
29
29
|
import { MarkDownEditor as To } from "./MDEditorControl/MarkDownEditor/index.js";
|
|
30
|
-
import { ImageEditModal as
|
|
31
|
-
import { QuestionDecimal as
|
|
30
|
+
import { ImageEditModal as Io } from "./MDEditorControl/MarkDownEditor/ImageEdit/index.js";
|
|
31
|
+
import { QuestionDecimal as So, QuestionInteger as Wo, QuestionQuantity as Po } from "./Number/index.js";
|
|
32
32
|
import { PasswordInput as Mo } from "./PasswordInput/index.js";
|
|
33
|
-
import { QuestionPhone as
|
|
34
|
-
import { QuestionDateTime as
|
|
35
|
-
import { QuestionSolidRadio as
|
|
36
|
-
import { QuestionReference as
|
|
37
|
-
import { QuestionSlider as
|
|
38
|
-
import { QuestionEmail as
|
|
33
|
+
import { QuestionPhone as Eo } from "./PhoneInput/index.js";
|
|
34
|
+
import { QuestionDateTime as ko } from "./QuestionDateTime/index.js";
|
|
35
|
+
import { QuestionSolidRadio as Ao } from "./Radio/index.js";
|
|
36
|
+
import { QuestionReference as Vo, useAnswerReference as yo, useFieldReference as Uo } from "./Reference/index.js";
|
|
37
|
+
import { QuestionSlider as qo } from "./Slider/index.js";
|
|
38
|
+
import { QuestionEmail as Lo, QuestionString as Oo, QuestionText as Yo } from "./String/index.js";
|
|
39
39
|
import { TextWithMacroFill as Jo } from "./TextWithMacroFill/index.js";
|
|
40
40
|
import { TimeRangePickerControl as No } from "./TimeRangePickerControl/index.js";
|
|
41
41
|
import { useTimeRangePickerControl as Zo } from "./TimeRangePickerControl/hooks.js";
|
|
42
42
|
import { UploadFileControl as $o } from "./UploadFileControl/index.js";
|
|
43
|
-
import { useUploader as
|
|
44
|
-
import {
|
|
43
|
+
import { useUploader as ee } from "./UploadFileControl/hooks.js";
|
|
44
|
+
import { groupItemComponent as te, itemControlGroupItemComponents as pe, itemControlQuestionItemComponents as ie, questionItemComponents as me } from "./controls.js";
|
|
45
|
+
import { getFieldErrorMessage as ae, isGroupWizard as ue } from "../components/BaseQuestionnaireResponseForm/utils.js";
|
|
46
|
+
import { RepeatableGroupRow as fe } from "./Group/RepeatableGroups/RepeatableGroupRow.js";
|
|
47
|
+
import { getValueFromAnswerValue as se } from "./GroupTable/utils.js";
|
|
48
|
+
import { useGroupTable as Ge } from "./GroupTable/hooks.js";
|
|
45
49
|
export {
|
|
46
|
-
|
|
47
|
-
|
|
50
|
+
r as AudioRecorderUploader,
|
|
51
|
+
p as Barcode,
|
|
48
52
|
m as BloodPressure,
|
|
49
53
|
x as ChoiceQuestionSelect,
|
|
50
54
|
f as ChoiceQuestionValueSet,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
55
|
+
h as Col,
|
|
56
|
+
d as DateTimeSlotPicker,
|
|
57
|
+
c as Display,
|
|
58
|
+
g as EditableGroup,
|
|
59
|
+
H as GTable,
|
|
60
|
+
I as Grid,
|
|
61
|
+
z as GridGroup,
|
|
62
|
+
b as Group,
|
|
63
|
+
B as GroupCard,
|
|
64
|
+
F as GroupContext,
|
|
65
|
+
V as GroupMainCard,
|
|
66
|
+
y as GroupSubCard,
|
|
67
|
+
j as GroupTable,
|
|
64
68
|
K as GroupTableChart,
|
|
65
|
-
|
|
69
|
+
po as GroupTabs,
|
|
66
70
|
mo as GroupWizard,
|
|
67
|
-
|
|
68
|
-
|
|
71
|
+
no as GroupWizardBus,
|
|
72
|
+
ao as GroupWizardVertical,
|
|
69
73
|
uo as GroupWizardWithTooltips,
|
|
70
|
-
|
|
74
|
+
S as Gtable,
|
|
71
75
|
X as HighlightArea,
|
|
72
|
-
|
|
76
|
+
Io as ImageEditModal,
|
|
73
77
|
lo as InlineChoice,
|
|
74
78
|
Go as InlineReference,
|
|
75
79
|
Ro as MDEditorControl,
|
|
76
|
-
|
|
80
|
+
W as MainCard,
|
|
77
81
|
To as MarkDownEditor,
|
|
78
82
|
Mo as PasswordInput,
|
|
79
|
-
|
|
83
|
+
a as QuestionBoolean,
|
|
80
84
|
l as QuestionChoice,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
85
|
+
ko as QuestionDateTime,
|
|
86
|
+
So as QuestionDecimal,
|
|
87
|
+
Lo as QuestionEmail,
|
|
88
|
+
co as QuestionInputInsideText,
|
|
89
|
+
Wo as QuestionInteger,
|
|
90
|
+
Eo as QuestionPhone,
|
|
91
|
+
Po as QuestionQuantity,
|
|
92
|
+
Vo as QuestionReference,
|
|
93
|
+
qo as QuestionSlider,
|
|
94
|
+
Ao as QuestionSolidRadio,
|
|
95
|
+
Oo as QuestionString,
|
|
96
|
+
Yo as QuestionText,
|
|
97
|
+
ro as RenderFormItemReadOnly,
|
|
98
|
+
O as RepeatableGroupCard,
|
|
99
|
+
fe as RepeatableGroupRow,
|
|
100
|
+
v as RepeatableGroups,
|
|
101
|
+
P as Row,
|
|
98
102
|
D as Section,
|
|
99
103
|
M as SectionWithDivider,
|
|
100
|
-
|
|
104
|
+
w as SubCard,
|
|
101
105
|
Q as TextWithLink,
|
|
102
106
|
Jo as TextWithMacroFill,
|
|
103
107
|
No as TimeRangePickerControl,
|
|
104
108
|
oo as Tooltip,
|
|
105
109
|
$o as UploadFileControl,
|
|
110
|
+
ae as getFieldErrorMessage,
|
|
106
111
|
xo as getGroupStats,
|
|
107
112
|
_ as getHighlightYParams,
|
|
108
|
-
|
|
109
|
-
|
|
113
|
+
se as getValueFromAnswerValue,
|
|
114
|
+
te as groupItemComponent,
|
|
115
|
+
ue as isGroupWizard,
|
|
116
|
+
pe as itemControlGroupItemComponents,
|
|
117
|
+
ie as itemControlQuestionItemComponents,
|
|
118
|
+
me as questionItemComponents,
|
|
119
|
+
yo as useAnswerReference,
|
|
120
|
+
Uo as useFieldReference,
|
|
121
|
+
Ge as useGroupTable,
|
|
110
122
|
G as usePractitionerRoleId,
|
|
111
123
|
Zo as useTimeRangePickerControl,
|
|
112
|
-
|
|
124
|
+
ee as useUploader
|
|
113
125
|
};
|
|
@@ -9,9 +9,7 @@ import "@beda.software/fhir-react";
|
|
|
9
9
|
import "../../components/AudioRecorder/styles.js";
|
|
10
10
|
import "react";
|
|
11
11
|
import "@beda.software/remote-data";
|
|
12
|
-
import "
|
|
13
|
-
import "react-hook-form";
|
|
14
|
-
import "sdc-qrf";
|
|
12
|
+
import "@beda.software/fhir-questionnaire";
|
|
15
13
|
import "../../components/BaseQuestionnaireResponseForm/BaseQuestionnaireResponseForm.module.scss.js";
|
|
16
14
|
import "../../components/BaseQuestionnaireResponseForm/BaseQuestionnaireResponseForm.styles.js";
|
|
17
15
|
import "../../controls/Group/context.js";
|
|
@@ -20,12 +18,15 @@ import "../../services/fhir.js";
|
|
|
20
18
|
import t from "../ReadonlyWidgets.module.scss.js";
|
|
21
19
|
import { S as u } from "../ReadonlyWidgets.styles.js";
|
|
22
20
|
import "@lingui/core";
|
|
21
|
+
import "lodash";
|
|
23
22
|
import "yup";
|
|
23
|
+
import "sdc-qrf";
|
|
24
24
|
import "fhirpath";
|
|
25
25
|
import "../../utils/yup-locale.js";
|
|
26
26
|
import "antd/es/layout/layout";
|
|
27
27
|
import "styled-components";
|
|
28
28
|
import "antd/es/layout/Sider";
|
|
29
|
+
import "react-hook-form";
|
|
29
30
|
import "../../components/Wizard/styles.js";
|
|
30
31
|
import "../../controls/GroupWizard/index.js";
|
|
31
32
|
import "../GroupWizard/styles.js";
|
|
@@ -35,7 +36,7 @@ import "react-select/async";
|
|
|
35
36
|
import "../../components/Select/styles.js";
|
|
36
37
|
import "fhirpath/fhir-context/r4";
|
|
37
38
|
import "../../sharedState/index.js";
|
|
38
|
-
function
|
|
39
|
+
function Z({
|
|
39
40
|
questionItem: n
|
|
40
41
|
}) {
|
|
41
42
|
var m, p;
|
|
@@ -47,5 +48,5 @@ function Y({
|
|
|
47
48
|
return e || !o || o === "" ? null : /* @__PURE__ */ r(u.Question, { className: a(t.question, t.column, "form__question"), children: /* @__PURE__ */ r("span", { className: t.questionText, children: s ? /* @__PURE__ */ r(d, { text: o }) : /* @__PURE__ */ r(c, { text: o }) }) });
|
|
48
49
|
}
|
|
49
50
|
export {
|
|
50
|
-
|
|
51
|
+
Z as Display
|
|
51
52
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/readonly-controls/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/readonly-controls/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC"}
|
|
@@ -1,45 +1,50 @@
|
|
|
1
1
|
import "../style.css";
|
|
2
|
-
import { AudioAttachment as
|
|
3
|
-
import { QuestionBoolean as
|
|
2
|
+
import { AudioAttachment as r } from "./AudioAttachment/index.js";
|
|
3
|
+
import { QuestionBoolean as n } from "./Boolean/index.js";
|
|
4
4
|
import { QuestionChoice as p } from "./Choice/index.js";
|
|
5
|
-
import { QuestionDateTime as
|
|
6
|
-
import { Display as
|
|
7
|
-
import { Col as
|
|
8
|
-
import { GroupSidebarNavigation as
|
|
9
|
-
import { NavigationGroup as
|
|
10
|
-
import { GroupWizard as
|
|
11
|
-
import { MarkdownCard as
|
|
12
|
-
import { QuestionDecimal as
|
|
13
|
-
import { QuestionReference as
|
|
5
|
+
import { QuestionDateTime as a } from "./DateTime/index.js";
|
|
6
|
+
import { Display as x } from "./Display/index.js";
|
|
7
|
+
import { Col as s, Group as d, Row as l } from "./Group/index.js";
|
|
8
|
+
import { GroupSidebarNavigation as Q } from "./Group/GroupSidebarNavigation/index.js";
|
|
9
|
+
import { NavigationGroup as G } from "./Group/NavigationGroup/index.js";
|
|
10
|
+
import { GroupWizard as g, GroupWizardVertical as k } from "./GroupWizard/index.js";
|
|
11
|
+
import { MarkdownCard as D, MarkdownDisplay as R, MarkdownRender as y, MarkdownRenderControl as M } from "./MarkdownRender/index.js";
|
|
12
|
+
import { QuestionDecimal as h, QuestionInteger as A, QuestionQuantity as S } from "./Number/index.js";
|
|
13
|
+
import { QuestionReference as v } from "./Reference/index.js";
|
|
14
14
|
import { AnxietyScore as N, DepressionScore as b } from "./Score/index.js";
|
|
15
|
-
import { QuestionText as
|
|
16
|
-
import { TimeRangePickerControl as
|
|
17
|
-
import { UploadFile as
|
|
15
|
+
import { QuestionText as B, TextWithInput as F } from "./String/index.js";
|
|
16
|
+
import { TimeRangePickerControl as U } from "./TimeRangePickerControl/index.js";
|
|
17
|
+
import { UploadFile as j } from "./UploadFile/index.js";
|
|
18
|
+
import { groupItemComponent as H, itemControlGroupItemComponents as J, itemControlQuestionItemComponents as K, questionItemComponents as L } from "./readonly-controls.js";
|
|
18
19
|
export {
|
|
19
20
|
N as AnxietyScore,
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
r as AudioAttachment,
|
|
22
|
+
s as Col,
|
|
22
23
|
b as DepressionScore,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
24
|
+
x as Display,
|
|
25
|
+
d as Group,
|
|
26
|
+
Q as GroupSidebarNavigation,
|
|
27
|
+
g as GroupWizard,
|
|
28
|
+
k as GroupWizardVertical,
|
|
29
|
+
D as MarkdownCard,
|
|
30
|
+
R as MarkdownDisplay,
|
|
31
|
+
y as MarkdownRender,
|
|
32
|
+
M as MarkdownRenderControl,
|
|
33
|
+
G as NavigationGroup,
|
|
34
|
+
n as QuestionBoolean,
|
|
34
35
|
p as QuestionChoice,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
a as QuestionDateTime,
|
|
37
|
+
h as QuestionDecimal,
|
|
38
|
+
A as QuestionInteger,
|
|
39
|
+
S as QuestionQuantity,
|
|
40
|
+
v as QuestionReference,
|
|
41
|
+
B as QuestionText,
|
|
41
42
|
l as Row,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
F as TextWithInput,
|
|
44
|
+
U as TimeRangePickerControl,
|
|
45
|
+
j as UploadFile,
|
|
46
|
+
H as groupItemComponent,
|
|
47
|
+
J as itemControlGroupItemComponents,
|
|
48
|
+
K as itemControlQuestionItemComponents,
|
|
49
|
+
L as questionItemComponents
|
|
45
50
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GroupItemComponent, ItemControlGroupItemComponentMapping, ItemControlQuestionItemComponentMapping, QuestionItemComponentMapping } from 'sdc-qrf';
|
|
2
|
+
export declare const questionItemComponents: QuestionItemComponentMapping;
|
|
3
|
+
export declare const groupItemComponent: GroupItemComponent;
|
|
4
|
+
export declare const itemControlQuestionItemComponents: ItemControlQuestionItemComponentMapping;
|
|
5
|
+
export declare const itemControlGroupItemComponents: ItemControlGroupItemComponentMapping;
|
|
6
|
+
//# sourceMappingURL=readonly-controls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readonly-controls.d.ts","sourceRoot":"","sources":["../../src/readonly-controls/readonly-controls.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,kBAAkB,EAClB,oCAAoC,EACpC,uCAAuC,EACvC,4BAA4B,EAC/B,MAAM,SAAS,CAAC;AA4BjB,eAAO,MAAM,sBAAsB,EAAE,4BAcpC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,kBAA0B,CAAC;AAE5D,eAAO,MAAM,iCAAiC,EAAE,uCAS/C,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,oCAM5C,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { AudioAttachment as e } from "./AudioAttachment/index.js";
|
|
2
|
+
import { QuestionBoolean as i } from "./Boolean/index.js";
|
|
3
|
+
import { QuestionChoice as r } from "./Choice/index.js";
|
|
4
|
+
import { QuestionDateTime as o } from "./DateTime/index.js";
|
|
5
|
+
import { Display as m } from "./Display/index.js";
|
|
6
|
+
import { Group as n, Col as p, Row as a } from "./Group/index.js";
|
|
7
|
+
import "react/jsx-runtime";
|
|
8
|
+
import "antd";
|
|
9
|
+
import "antd/es/layout/layout";
|
|
10
|
+
import "sdc-qrf";
|
|
11
|
+
import "styled-components";
|
|
12
|
+
import "antd/es/layout/Sider";
|
|
13
|
+
import { NavigationGroup as s } from "./Group/NavigationGroup/index.js";
|
|
14
|
+
import { GroupWizardVertical as c } from "./GroupWizard/index.js";
|
|
15
|
+
import { MarkdownDisplay as d, MarkdownCard as u, MarkdownRenderControl as l } from "./MarkdownRender/index.js";
|
|
16
|
+
import { QuestionInteger as f, QuestionDecimal as C, QuestionQuantity as w } from "./Number/index.js";
|
|
17
|
+
import { QuestionReference as Q } from "./Reference/index.js";
|
|
18
|
+
import { AnxietyScore as g, DepressionScore as k } from "./Score/index.js";
|
|
19
|
+
import { QuestionText as t, TextWithInput as x } from "./String/index.js";
|
|
20
|
+
import { TimeRangePickerControl as y } from "./TimeRangePickerControl/index.js";
|
|
21
|
+
import { UploadFile as h } from "./UploadFile/index.js";
|
|
22
|
+
const H = {
|
|
23
|
+
text: t,
|
|
24
|
+
time: o,
|
|
25
|
+
string: t,
|
|
26
|
+
integer: f,
|
|
27
|
+
decimal: C,
|
|
28
|
+
quantity: w,
|
|
29
|
+
choice: r,
|
|
30
|
+
date: o,
|
|
31
|
+
dateTime: o,
|
|
32
|
+
reference: Q,
|
|
33
|
+
display: m,
|
|
34
|
+
boolean: i,
|
|
35
|
+
attachment: h
|
|
36
|
+
}, J = n, K = {
|
|
37
|
+
"inline-choice": r,
|
|
38
|
+
"anxiety-score": g,
|
|
39
|
+
"depression-score": k,
|
|
40
|
+
"input-inside-text": x,
|
|
41
|
+
"audio-recorder-uploader": e,
|
|
42
|
+
markdown: d,
|
|
43
|
+
"markdown-card": u,
|
|
44
|
+
"markdown-editor": l
|
|
45
|
+
}, L = {
|
|
46
|
+
col: p,
|
|
47
|
+
row: a,
|
|
48
|
+
"time-range-picker": y,
|
|
49
|
+
"wizard-navigation-group": s,
|
|
50
|
+
"wizard-vertical": c
|
|
51
|
+
};
|
|
52
|
+
export {
|
|
53
|
+
J as groupItemComponent,
|
|
54
|
+
L as itemControlGroupItemComponents,
|
|
55
|
+
K as itemControlQuestionItemComponents,
|
|
56
|
+
H as questionItemComponents
|
|
57
|
+
};
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._row_dy31e_1{display:flex}._inputWrapper_dy31e_5{flex:auto}._splitterWrapper_dy31e_9{display:flex;flex-direction:column;justify-content:flex-end}._splitter_dy31e_9{position:relative;bottom:22px;margin:0 8px;font-weight:400;font-size:20px;line-height:22px}._form_1v4sy_1 .ant-form-item-label{font-weight:700}._form_1v4sy_1 .ant-form-item-row{flex:1;flex-direction:column;justify-content:space-between;gap:12px}._form_1v4sy_1 .ant-form-item-label{text-align:start;white-space:normal}._form_1v4sy_1 .ant-form-item-label label{display:flex;height:auto}._form_1v4sy_1 .ant-form-item-label label:after{display:none}._form_1v4sy_1 .ant-form-item-control{flex-grow:0}._content_1v4sy_25{display:flex;flex-direction:column;gap:24px}._field_1v4sy_31{width:100%;margin-bottom:0;display:flex}._field_1v4sy_31.__hidden_1v4sy_36{display:none}._group_1ndd9_1{display:flex;flex-direction:column;gap:16px;width:100%}._groupTitle_1ndd9_8{font-weight:700;font-size:16px;line-height:24px}._row_1ndd9_14{display:flex;flex-direction:row;justify-content:space-between;gap:16px;width:100%}._col_1ndd9_22{display:flex;flex-direction:column;gap:16px}._inputContainer_gs0vq_1{display:flex;flex-direction:column}._inputHeader_gs0vq_6{display:flex;margin-bottom:12px;align-items:center;justify-content:space-between}._label_gs0vq_13{font-weight:700;font-size:14px;line-height:22px}._column_14bfg_1{display:flex;flex-direction:column}._row_14bfg_6{display:flex;flex-direction:row;justify-content:space-between;align-items:center}._questionText_14bfg_13{font-weight:700;margin:0}._answer_14bfg_18{display:block;min-width:40%;max-width:40%}.ant-dropdown .ant-table-filter-dropdown{border:0;background:none;box-shadow:none;position:relative;overflow:visible}
|
package/dist/theme/palette.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { DefaultTheme } from 'styled-components';
|
|
2
2
|
export declare const brandColors: Pick<DefaultTheme, 'primary' | 'secondary'>;
|
|
3
3
|
export declare const colors: {
|
|
4
|
+
warning: string;
|
|
4
5
|
error: string;
|
|
5
|
-
link: string;
|
|
6
6
|
success: string;
|
|
7
|
-
|
|
7
|
+
link: string;
|
|
8
8
|
primary: string;
|
|
9
9
|
secondary: string;
|
|
10
10
|
};
|
package/dist/utils/theme.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beda.software/web-item-controls",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14-0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,8 +12,6 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"start": "storybook dev -p 6006",
|
|
14
14
|
"build:lib": "vite build --config vite.lib.config.ts && node ./scripts/inject-style-imports.mjs",
|
|
15
|
-
"check:package": "node ./scripts/check-package-output.mjs",
|
|
16
|
-
"smoke:package": "node ./scripts/smoke-package-tarball.mjs",
|
|
17
15
|
"test": "vitest --no-threads",
|
|
18
16
|
"test-storybook": "test-storybook",
|
|
19
17
|
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
@@ -37,7 +35,7 @@
|
|
|
37
35
|
"@mdxeditor/editor": "^3.11.0",
|
|
38
36
|
"aidbox-react": "^1.11.2",
|
|
39
37
|
"classnames": "^2.3.2",
|
|
40
|
-
"fhir
|
|
38
|
+
"fhir": "^4.10.3",
|
|
41
39
|
"fhirpath": "^3.18.0",
|
|
42
40
|
"jose": "^4.14.4",
|
|
43
41
|
"lodash": "^4.17.21",
|
|
@@ -54,34 +52,25 @@
|
|
|
54
52
|
"remark-gfm": "^4.0.1",
|
|
55
53
|
"yup": "^1.7.0"
|
|
56
54
|
},
|
|
57
|
-
"resolutions": {
|
|
58
|
-
"@lingui/cli": "^4.3.0",
|
|
59
|
-
"@lingui/core": "^4.3.0",
|
|
60
|
-
"@lingui/macro": "^4.3.0",
|
|
61
|
-
"axios": "1.8.4",
|
|
62
|
-
"react-hook-form": "7.53.2",
|
|
63
|
-
"sdc-qrf": "^1.1.0-alpha.3",
|
|
64
|
-
"typescript": "^5.1.6"
|
|
65
|
-
},
|
|
66
55
|
"peerDependencies": {
|
|
67
|
-
"@beda.software/fhir-questionnaire": "
|
|
68
|
-
"@beda.software/fhir-react": "
|
|
69
|
-
"@lingui/cli": "
|
|
70
|
-
"@lingui/core": "
|
|
71
|
-
"@lingui/macro": "
|
|
72
|
-
"@lingui/react": "
|
|
73
|
-
"antd": "
|
|
74
|
-
"axios": "
|
|
75
|
-
"rc-picker": "
|
|
76
|
-
"react": "
|
|
77
|
-
"react-dom": "
|
|
78
|
-
"react-hook-form": "
|
|
79
|
-
"sdc-qrf": "
|
|
80
|
-
"styled-components": "
|
|
56
|
+
"@beda.software/fhir-questionnaire": "*",
|
|
57
|
+
"@beda.software/fhir-react": "*",
|
|
58
|
+
"@lingui/cli": "*",
|
|
59
|
+
"@lingui/core": "*",
|
|
60
|
+
"@lingui/macro": "*",
|
|
61
|
+
"@lingui/react": "*",
|
|
62
|
+
"antd": "*",
|
|
63
|
+
"axios": "*",
|
|
64
|
+
"rc-picker": "*",
|
|
65
|
+
"react": "*",
|
|
66
|
+
"react-dom": "*",
|
|
67
|
+
"react-hook-form": "*",
|
|
68
|
+
"sdc-qrf": "*",
|
|
69
|
+
"styled-components": "*"
|
|
81
70
|
},
|
|
82
71
|
"devDependencies": {
|
|
83
72
|
"@babel/preset-typescript": "^7.26.0",
|
|
84
|
-
"@beda.software/fhir-questionnaire": "
|
|
73
|
+
"@beda.software/fhir-questionnaire": "^0.1.0-alpha.3",
|
|
85
74
|
"@beda.software/fhir-react": "^1.11.1",
|
|
86
75
|
"@beda.software/vite-plugin-dts": "4.0.0-beta.1",
|
|
87
76
|
"@chromatic-com/storybook": "^3.2.2",
|
|
@@ -90,15 +79,16 @@
|
|
|
90
79
|
"@lingui/macro": "^4.3.0",
|
|
91
80
|
"@lingui/react": "^4.3.0",
|
|
92
81
|
"@lingui/vite-plugin": "^4.3.0",
|
|
93
|
-
"@storybook/addon-essentials": "^8.
|
|
94
|
-
"@storybook/addon-interactions": "^8.
|
|
95
|
-
"@storybook/addon-links": "^8.
|
|
96
|
-
"@storybook/addon-themes": "^
|
|
97
|
-
"@storybook/blocks": "^8.
|
|
98
|
-
"@storybook/
|
|
99
|
-
"@storybook/react
|
|
100
|
-
"@storybook/
|
|
101
|
-
"@storybook/test
|
|
82
|
+
"@storybook/addon-essentials": "^8.6.18",
|
|
83
|
+
"@storybook/addon-interactions": "^8.6.18",
|
|
84
|
+
"@storybook/addon-links": "^8.6.18",
|
|
85
|
+
"@storybook/addon-themes": "^8.6.18",
|
|
86
|
+
"@storybook/blocks": "^8.6.18",
|
|
87
|
+
"@storybook/preview-api": "^8.6.18",
|
|
88
|
+
"@storybook/react": "^8.6.18",
|
|
89
|
+
"@storybook/react-vite": "^8.6.18",
|
|
90
|
+
"@storybook/test": "^8.6.18",
|
|
91
|
+
"@storybook/test-runner": "^0.21.0",
|
|
102
92
|
"@testing-library/jest-dom": "^5.17.0",
|
|
103
93
|
"@testing-library/react": "^14.0.0",
|
|
104
94
|
"@types/classnames": "^2.3.1",
|
|
@@ -139,7 +129,7 @@
|
|
|
139
129
|
"sass": "^1.63.6",
|
|
140
130
|
"sass-loader": "^13.3.2",
|
|
141
131
|
"sdc-qrf": "^1.1.0-alpha.3",
|
|
142
|
-
"storybook": "^8.
|
|
132
|
+
"storybook": "^8.6.18",
|
|
143
133
|
"style-loader": "^3.3.3",
|
|
144
134
|
"styled-components": "^6.1.11",
|
|
145
135
|
"typescript": "^5.1.6",
|
|
@@ -159,13 +149,33 @@
|
|
|
159
149
|
"types": "./dist/controls/index.d.ts",
|
|
160
150
|
"import": "./dist/controls/index.js"
|
|
161
151
|
},
|
|
152
|
+
"./controls/*": {
|
|
153
|
+
"types": "./dist/controls/*/index.d.ts",
|
|
154
|
+
"import": "./dist/controls/*/index.js"
|
|
155
|
+
},
|
|
162
156
|
"./readonly-controls": {
|
|
163
157
|
"types": "./dist/readonly-controls/index.d.ts",
|
|
164
158
|
"import": "./dist/readonly-controls/index.js"
|
|
165
159
|
},
|
|
160
|
+
"./readonly-controls/*": {
|
|
161
|
+
"types": "./dist/readonly-controls/*/index.d.ts",
|
|
162
|
+
"import": "./dist/readonly-controls/*/index.js"
|
|
163
|
+
},
|
|
166
164
|
"./contexts": {
|
|
167
165
|
"types": "./dist/contexts/index.d.ts",
|
|
168
166
|
"import": "./dist/contexts/index.js"
|
|
167
|
+
},
|
|
168
|
+
"./contexts/*": {
|
|
169
|
+
"types": "./dist/contexts/*/index.d.ts",
|
|
170
|
+
"import": "./dist/contexts/*/index.js"
|
|
171
|
+
},
|
|
172
|
+
"./components": {
|
|
173
|
+
"types": "./dist/components/index.d.ts",
|
|
174
|
+
"import": "./dist/components/index.js"
|
|
175
|
+
},
|
|
176
|
+
"./components/*": {
|
|
177
|
+
"types": "./dist/components/*/index.d.ts",
|
|
178
|
+
"import": "./dist/components/*/index.js"
|
|
169
179
|
}
|
|
170
180
|
}
|
|
171
181
|
}
|
|
@@ -227,7 +227,7 @@ msgstr ""
|
|
|
227
227
|
#~ msgid "Add break"
|
|
228
228
|
#~ msgstr ""
|
|
229
229
|
|
|
230
|
-
#: src/controls/GroupTable/index.tsx:
|
|
230
|
+
#: src/controls/GroupTable/index.tsx:68
|
|
231
231
|
msgid "Add entry"
|
|
232
232
|
msgstr ""
|
|
233
233
|
|
|
@@ -450,7 +450,7 @@ msgstr ""
|
|
|
450
450
|
#~ msgid "Col (default)"
|
|
451
451
|
#~ msgstr ""
|
|
452
452
|
|
|
453
|
-
#: src/controls/GroupTable/index.tsx:
|
|
453
|
+
#: src/controls/GroupTable/index.tsx:65
|
|
454
454
|
msgid "Collapse all"
|
|
455
455
|
msgstr ""
|
|
456
456
|
|
|
@@ -739,7 +739,7 @@ msgstr ""
|
|
|
739
739
|
#~ msgid "Error while amending the document"
|
|
740
740
|
#~ msgstr ""
|
|
741
741
|
|
|
742
|
-
#: src/controls/GroupTable/index.tsx:
|
|
742
|
+
#: src/controls/GroupTable/index.tsx:65
|
|
743
743
|
msgid "Expand all"
|
|
744
744
|
msgstr ""
|
|
745
745
|
|
|
@@ -960,7 +960,7 @@ msgstr ""
|
|
|
960
960
|
#~ msgid "Last name"
|
|
961
961
|
#~ msgstr ""
|
|
962
962
|
|
|
963
|
-
#: src/controls/GroupTable/index.tsx:
|
|
963
|
+
#: src/controls/GroupTable/index.tsx:98
|
|
964
964
|
msgid "linkIdX or linkIdY not defined"
|
|
965
965
|
msgstr ""
|
|
966
966
|
|
|
@@ -1562,7 +1562,7 @@ msgstr ""
|
|
|
1562
1562
|
#~ msgid "System"
|
|
1563
1563
|
#~ msgstr ""
|
|
1564
1564
|
|
|
1565
|
-
#: src/controls/GroupTable/index.tsx:
|
|
1565
|
+
#: src/controls/GroupTable/index.tsx:56
|
|
1566
1566
|
msgid "Table View"
|
|
1567
1567
|
msgstr ""
|
|
1568
1568
|
|
|
@@ -1624,7 +1624,7 @@ msgstr ""
|
|
|
1624
1624
|
msgid "This itemControl is designed for non-repeatable groups"
|
|
1625
1625
|
msgstr ""
|
|
1626
1626
|
|
|
1627
|
-
#: src/controls/GroupTable/index.tsx:
|
|
1627
|
+
#: src/controls/GroupTable/index.tsx:103
|
|
1628
1628
|
msgid "This itemControl is designed for repeatable groups, but this group is not repeatable"
|
|
1629
1629
|
msgstr ""
|
|
1630
1630
|
|