@beda.software/web-item-controls 0.1.6 → 0.1.12-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.
Files changed (35) hide show
  1. package/dist/components/BaseQuestionnaireResponseForm/hooks.d.ts +4 -4
  2. package/dist/components/BaseQuestionnaireResponseForm/hooks.d.ts.map +1 -1
  3. package/dist/components/BaseQuestionnaireResponseForm/hooks.js +28 -56
  4. package/dist/components/BaseQuestionnaireResponseForm/utils.js +12 -3
  5. package/dist/components/FormWrapper/index.d.ts +4 -3
  6. package/dist/components/FormWrapper/index.d.ts.map +1 -1
  7. package/dist/controls/Boolean/index.js +10 -10
  8. package/dist/controls/Display/index.js +6 -5
  9. package/dist/controls/EditableGroup/hooks.js +5 -5
  10. package/dist/controls/GroupTable/RenderFormItemReadOnly/index.js +6 -5
  11. package/dist/controls/GroupTable/hooks.js +13 -13
  12. package/dist/controls/InsideText/index.js +10 -10
  13. package/dist/controls/Number/index.js +37 -37
  14. package/dist/controls/PasswordInput/index.d.ts.map +1 -1
  15. package/dist/controls/PasswordInput/index.js +12 -12
  16. package/dist/controls/Reference/index.d.ts +3 -3
  17. package/dist/controls/Reference/index.d.ts.map +1 -1
  18. package/dist/controls/String/index.d.ts.map +1 -1
  19. package/dist/controls/String/index.js +31 -31
  20. package/dist/controls/controls.d.ts +6 -0
  21. package/dist/controls/controls.d.ts.map +1 -0
  22. package/dist/controls/controls.js +137 -0
  23. package/dist/controls/index.d.ts +2 -0
  24. package/dist/controls/index.d.ts.map +1 -1
  25. package/dist/controls/index.js +69 -61
  26. package/dist/readonly-controls/Display/index.js +6 -5
  27. package/dist/readonly-controls/index.d.ts +1 -0
  28. package/dist/readonly-controls/index.d.ts.map +1 -1
  29. package/dist/readonly-controls/index.js +41 -36
  30. package/dist/readonly-controls/readonly-controls.d.ts +6 -0
  31. package/dist/readonly-controls/readonly-controls.d.ts.map +1 -0
  32. package/dist/readonly-controls/readonly-controls.js +57 -0
  33. package/package.json +28 -36
  34. package/dist/components/BaseQuestionnaireResponseForm/controls.d.ts +0 -6
  35. package/dist/components/BaseQuestionnaireResponseForm/controls.d.ts.map +0 -1
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beda.software/web-item-controls",
3
- "version": "0.1.6",
3
+ "version": "0.1.12-0",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,7 +37,7 @@
37
37
  "@mdxeditor/editor": "^3.11.0",
38
38
  "aidbox-react": "^1.11.2",
39
39
  "classnames": "^2.3.2",
40
- "fhir-tool": "^5.0.2",
40
+ "fhir": "^4.10.3",
41
41
  "fhirpath": "^3.18.0",
42
42
  "jose": "^4.14.4",
43
43
  "lodash": "^4.17.21",
@@ -54,34 +54,25 @@
54
54
  "remark-gfm": "^4.0.1",
55
55
  "yup": "^1.7.0"
56
56
  },
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
57
  "peerDependencies": {
67
- "@beda.software/fhir-questionnaire": "git+https://github.com/beda-software/fhir-questionnaire.git#76f7e715e744",
68
- "@beda.software/fhir-react": "^1.11.1",
69
- "@lingui/cli": "^4.3.0",
70
- "@lingui/core": "^4.3.0",
71
- "@lingui/macro": "^4.3.0",
72
- "@lingui/react": "^4.3.0",
73
- "antd": "5.24.7",
74
- "axios": "^1.8.4",
75
- "rc-picker": "^4.11.3",
76
- "react": "^18.2.0",
77
- "react-dom": "^18.2.0",
78
- "react-hook-form": "^7.53.2",
79
- "sdc-qrf": "^1.1.0-alpha.3",
80
- "styled-components": "^6.1.11"
58
+ "@beda.software/fhir-questionnaire": "*",
59
+ "@beda.software/fhir-react": "*",
60
+ "@lingui/cli": "*",
61
+ "@lingui/core": "*",
62
+ "@lingui/macro": "*",
63
+ "@lingui/react": "*",
64
+ "antd": "*",
65
+ "axios": "*",
66
+ "rc-picker": "*",
67
+ "react": "*",
68
+ "react-dom": "*",
69
+ "react-hook-form": "*",
70
+ "sdc-qrf": "*",
71
+ "styled-components": "*"
81
72
  },
82
73
  "devDependencies": {
83
74
  "@babel/preset-typescript": "^7.26.0",
84
- "@beda.software/fhir-questionnaire": "git+https://github.com/beda-software/fhir-questionnaire.git#76f7e715e744",
75
+ "@beda.software/fhir-questionnaire": "^0.1.0-alpha.3",
85
76
  "@beda.software/fhir-react": "^1.11.1",
86
77
  "@beda.software/vite-plugin-dts": "4.0.0-beta.1",
87
78
  "@chromatic-com/storybook": "^3.2.2",
@@ -90,15 +81,16 @@
90
81
  "@lingui/macro": "^4.3.0",
91
82
  "@lingui/react": "^4.3.0",
92
83
  "@lingui/vite-plugin": "^4.3.0",
93
- "@storybook/addon-essentials": "^8.4.1",
94
- "@storybook/addon-interactions": "^8.4.1",
95
- "@storybook/addon-links": "^8.4.1",
96
- "@storybook/addon-themes": "^10.3.6",
97
- "@storybook/blocks": "^8.4.1",
98
- "@storybook/react": "^8.4.1",
99
- "@storybook/react-vite": "^8.4.1",
100
- "@storybook/test": "^8.4.1",
101
- "@storybook/test-runner": "^0.19.1",
84
+ "@storybook/addon-essentials": "^8.6.18",
85
+ "@storybook/addon-interactions": "^8.6.18",
86
+ "@storybook/addon-links": "^8.6.18",
87
+ "@storybook/addon-themes": "^8.6.18",
88
+ "@storybook/blocks": "^8.6.18",
89
+ "@storybook/preview-api": "^8.6.18",
90
+ "@storybook/react": "^8.6.18",
91
+ "@storybook/react-vite": "^8.6.18",
92
+ "@storybook/test": "^8.6.18",
93
+ "@storybook/test-runner": "^0.21.0",
102
94
  "@testing-library/jest-dom": "^5.17.0",
103
95
  "@testing-library/react": "^14.0.0",
104
96
  "@types/classnames": "^2.3.1",
@@ -139,7 +131,7 @@
139
131
  "sass": "^1.63.6",
140
132
  "sass-loader": "^13.3.2",
141
133
  "sdc-qrf": "^1.1.0-alpha.3",
142
- "storybook": "^8.4.1",
134
+ "storybook": "^8.6.18",
143
135
  "style-loader": "^3.3.3",
144
136
  "styled-components": "^6.1.11",
145
137
  "typescript": "^5.1.6",
@@ -1,6 +0,0 @@
1
- import { GroupItemComponent, ItemControlGroupItemComponentMapping, ItemControlQuestionItemComponentMapping, QuestionItemComponentMapping } from 'sdc-qrf';
2
- export declare const itemComponents: QuestionItemComponentMapping;
3
- export declare const groupComponent: GroupItemComponent;
4
- export declare const itemControlComponents: ItemControlQuestionItemComponentMapping;
5
- export declare const groupControlComponents: ItemControlGroupItemComponentMapping;
6
- //# sourceMappingURL=controls.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../../../src/components/BaseQuestionnaireResponseForm/controls.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,kBAAkB,EAClB,oCAAoC,EACpC,uCAAuC,EACvC,4BAA4B,EAC/B,MAAM,SAAS,CAAC;AA8CjB,eAAO,MAAM,cAAc,EAAE,4BAe5B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,kBAA0B,CAAC;AAExD,eAAO,MAAM,qBAAqB,EAAE,uCAmBnC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,oCAmBpC,CAAC"}