@beda.software/web-item-controls 0.1.25-group-new-design.8 → 0.1.26

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 (134) hide show
  1. package/README.md +4 -0
  2. package/dist/components/ModalQuestionnaireGroupItem/hooks.js +7 -10
  3. package/dist/components/ModalQuestionnaireGroupItem/index.js +6 -4
  4. package/dist/components/SearchBar/SearchBarColumn/ReferenceColumn/index.js +2 -2
  5. package/dist/components/SearchBar/SearchBarMobile/styles.js +3 -3
  6. package/dist/components/Table/index.js +1 -1
  7. package/dist/controls/DateTimeSlotPicker/index.js +4 -4
  8. package/dist/controls/Display/index.js +5 -7
  9. package/dist/controls/Group/RepeatableGroups/RepeatableGroupCard/index.d.ts.map +1 -1
  10. package/dist/controls/Group/RepeatableGroups/RepeatableGroupCard/index.js +14 -15
  11. package/dist/controls/Group/RepeatableGroups/RepeatableGroupRow.d.ts.map +1 -1
  12. package/dist/controls/Group/RepeatableGroups/RepeatableGroupRow.js +11 -12
  13. package/dist/controls/Group/RepeatableGroups/index.d.ts.map +1 -1
  14. package/dist/controls/Group/RepeatableGroups/index.js +26 -27
  15. package/dist/controls/Group/group.module.scss.js +6 -10
  16. package/dist/controls/Group/index.d.ts.map +1 -1
  17. package/dist/controls/Group/index.js +45 -47
  18. package/dist/controls/GroupTable/RenderFormItemReadOnly/index.js +6 -7
  19. package/dist/controls/GroupTable/hooks.d.ts +0 -1
  20. package/dist/controls/GroupTable/hooks.d.ts.map +1 -1
  21. package/dist/controls/GroupTable/hooks.js +175 -177
  22. package/dist/controls/GroupTable/index.d.ts.map +1 -1
  23. package/dist/controls/GroupTable/index.js +38 -39
  24. package/dist/controls/GroupWizard/GroupWizard.stories.utils.d.ts +1 -1
  25. package/dist/controls/GroupWizard/GroupWizard.stories.utils.d.ts.map +1 -1
  26. package/dist/controls/GroupWizard/index.d.ts +1 -61
  27. package/dist/controls/GroupWizard/index.d.ts.map +1 -1
  28. package/dist/controls/ImageAnnotation/AnnotationImage.d.ts +16 -0
  29. package/dist/controls/ImageAnnotation/AnnotationImage.d.ts.map +1 -0
  30. package/dist/controls/ImageAnnotation/AnnotationImage.js +37 -0
  31. package/dist/controls/ImageAnnotation/index.d.ts +9 -0
  32. package/dist/controls/ImageAnnotation/index.d.ts.map +1 -0
  33. package/dist/controls/ImageAnnotation/index.js +121 -0
  34. package/dist/controls/ImageAnnotation/styles.d.ts +21 -0
  35. package/dist/controls/ImageAnnotation/styles.d.ts.map +1 -0
  36. package/dist/controls/ImageAnnotation/styles.js +66 -0
  37. package/dist/controls/ImageAnnotation/utils.d.ts +3 -0
  38. package/dist/controls/ImageAnnotation/utils.d.ts.map +1 -0
  39. package/dist/controls/ImageAnnotation/utils.js +9 -0
  40. package/dist/controls/MDEditorControl/MarkDownEditor/directives.js +3 -3
  41. package/dist/controls/MDEditorControl/MarkDownEditor/hooks.js +1 -1
  42. package/dist/controls/Reference/index.js +2 -2
  43. package/dist/controls/UploadFileControl/hooks.js +3 -4
  44. package/dist/controls/UploadFileControl/index.js +1 -1
  45. package/dist/controls/controls.d.ts.map +1 -1
  46. package/dist/controls/controls.js +51 -56
  47. package/dist/controls/index.d.ts +1 -1
  48. package/dist/controls/index.d.ts.map +1 -1
  49. package/dist/controls/index.js +44 -46
  50. package/dist/ext/d3-array/src/bisect.js +6 -7
  51. package/dist/ext/d3-array/src/bisector.js +2 -4
  52. package/dist/ext/d3-array/src/ticks.js +7 -18
  53. package/dist/ext/d3-color/src/color.js +3 -6
  54. package/dist/ext/d3-color/src/define.js +1 -2
  55. package/dist/ext/d3-format/src/defaultLocale.js +3 -4
  56. package/dist/ext/d3-format/src/formatDecimal.js +1 -2
  57. package/dist/ext/d3-format/src/formatPrefixAuto.js +1 -2
  58. package/dist/ext/d3-format/src/formatRounded.js +1 -2
  59. package/dist/ext/d3-format/src/formatSpecifier.js +1 -2
  60. package/dist/ext/d3-format/src/formatTrim.js +13 -15
  61. package/dist/ext/d3-interpolate/src/array.js +3 -6
  62. package/dist/ext/d3-interpolate/src/numberArray.js +1 -2
  63. package/dist/ext/d3-interpolate/src/object.js +1 -2
  64. package/dist/ext/d3-interpolate/src/string.js +1 -2
  65. package/dist/ext/d3-scale/src/continuous.js +4 -4
  66. package/dist/ext/unist-util-is/lib/index.js +2 -4
  67. package/dist/locale/de/messages.d.ts.map +1 -1
  68. package/dist/locale/de/messages.js +1 -4
  69. package/dist/locale/en/messages.d.ts.map +1 -1
  70. package/dist/locale/en/messages.js +1 -4
  71. package/dist/locale/es/messages.d.ts.map +1 -1
  72. package/dist/locale/es/messages.js +1 -4
  73. package/dist/locale/ru/messages.d.ts.map +1 -1
  74. package/dist/locale/ru/messages.js +1 -4
  75. package/dist/readonly-controls/Display/index.js +4 -4
  76. package/dist/readonly-controls/Group/index.d.ts.map +1 -1
  77. package/dist/readonly-controls/Group/index.js +25 -27
  78. package/dist/readonly-controls/ImageAnnotation/index.d.ts +4 -0
  79. package/dist/readonly-controls/ImageAnnotation/index.d.ts.map +1 -0
  80. package/dist/readonly-controls/ImageAnnotation/index.js +45 -0
  81. package/dist/readonly-controls/MarkdownRender/index.d.ts.map +1 -1
  82. package/dist/readonly-controls/MarkdownRender/index.js +51 -41
  83. package/dist/readonly-controls/index.d.ts +1 -1
  84. package/dist/readonly-controls/index.d.ts.map +1 -1
  85. package/dist/readonly-controls/index.js +17 -17
  86. package/dist/readonly-controls/readonly-controls.d.ts.map +1 -1
  87. package/dist/readonly-controls/readonly-controls.js +33 -42
  88. package/dist/services/fhir.js +73 -46
  89. package/dist/services/i18n.js +12 -33
  90. package/dist/style.css +1 -1
  91. package/dist/utils/constants.d.ts +0 -1
  92. package/dist/utils/constants.d.ts.map +1 -1
  93. package/dist/utils/date.js +1 -1
  94. package/dist/utils/fhirpath.d.ts +1 -0
  95. package/dist/utils/fhirpath.d.ts.map +1 -1
  96. package/dist/utils/fhirpath.js +3 -2
  97. package/dist/utils/questionnaire.d.ts +0 -1
  98. package/dist/utils/questionnaire.d.ts.map +1 -1
  99. package/dist/utils/questionnaire.js +17 -23
  100. package/package.json +18 -13
  101. package/src/locale/de/messages.po +39 -48
  102. package/src/locale/de/messages.ts +1 -1
  103. package/src/locale/en/messages.po +39 -48
  104. package/src/locale/en/messages.ts +1 -1
  105. package/src/locale/es/messages.po +39 -48
  106. package/src/locale/es/messages.ts +1 -1
  107. package/src/locale/ru/messages.po +39 -48
  108. package/src/locale/ru/messages.ts +1 -1
  109. package/dist/components/Table/table.scss.js +0 -4
  110. package/dist/containers/App/utils.d.ts +0 -6
  111. package/dist/containers/App/utils.d.ts.map +0 -1
  112. package/dist/controls/GroupWizard/GroupWizardSidebar/GroupWizardSidebar.stories.utils.d.ts +0 -10
  113. package/dist/controls/GroupWizard/GroupWizardSidebar/GroupWizardSidebar.stories.utils.d.ts.map +0 -1
  114. package/dist/controls/GroupWizard/GroupWizardSidebar/ParentPreviewFields.d.ts +0 -9
  115. package/dist/controls/GroupWizard/GroupWizardSidebar/ParentPreviewFields.d.ts.map +0 -1
  116. package/dist/controls/GroupWizard/GroupWizardSidebar/ParentPreviewFields.js +0 -29
  117. package/dist/controls/GroupWizard/GroupWizardSidebar/SidebarMenu.d.ts +0 -14
  118. package/dist/controls/GroupWizard/GroupWizardSidebar/SidebarMenu.d.ts.map +0 -1
  119. package/dist/controls/GroupWizard/GroupWizardSidebar/SidebarMenu.js +0 -94
  120. package/dist/controls/GroupWizard/GroupWizardSidebar/index.d.ts +0 -5
  121. package/dist/controls/GroupWizard/GroupWizardSidebar/index.d.ts.map +0 -1
  122. package/dist/controls/GroupWizard/GroupWizardSidebar/index.js +0 -152
  123. package/dist/controls/GroupWizard/GroupWizardSidebar/styles.d.ts +0 -35
  124. package/dist/controls/GroupWizard/GroupWizardSidebar/styles.d.ts.map +0 -1
  125. package/dist/controls/GroupWizard/GroupWizardSidebar/styles.js +0 -106
  126. package/dist/controls/GroupWizard/GroupWizardSidebar/types.d.ts +0 -21
  127. package/dist/controls/GroupWizard/GroupWizardSidebar/types.d.ts.map +0 -1
  128. package/dist/controls/GroupWizard/GroupWizardSidebar/utils.d.ts +0 -12
  129. package/dist/controls/GroupWizard/GroupWizardSidebar/utils.d.ts.map +0 -1
  130. package/dist/controls/GroupWizard/GroupWizardSidebar/utils.js +0 -99
  131. package/dist/readonly-controls/GroupWizardSidebar/index.d.ts +0 -3
  132. package/dist/readonly-controls/GroupWizardSidebar/index.d.ts.map +0 -1
  133. package/dist/readonly-controls/GroupWizardSidebar/index.js +0 -104
  134. package/dist/utils/constants.js +0 -4
@@ -13,7 +13,6 @@ import "@beda.software/fhir-react";
13
13
  import "@beda.software/remote-data";
14
14
  import "classnames";
15
15
  import "@beda.software/fhir-questionnaire";
16
- import "../components/BaseQuestionnaireResponseForm/BaseQuestionnaireResponseForm.module.scss.js";
17
16
  import "@ant-design/icons";
18
17
  import "../components/BaseQuestionnaireResponseForm/BaseQuestionnaireResponseForm.styles.js";
19
18
  import "./Group/context.js";
@@ -21,14 +20,12 @@ import "../components/DatePicker/index.js";
21
20
  import "../services/fhir.js";
22
21
  import { Display as s } from "./Display/index.js";
23
22
  import { EditableGroup as u } from "./EditableGroup/index.js";
24
- import { Group as l, Col as c, Row as f, Gtable as t, Grid as b, Section as g, SectionWithDivider as Q, MainCard as h, SubCard as C } from "./Group/index.js";
23
+ import { Group as l, SubCard as c, MainCard as f, SectionWithDivider as b, Section as g, Grid as Q, Gtable as t, Row as h, Col as C } from "./Group/index.js";
25
24
  import "@lingui/react";
26
25
  import "sdc-qrf";
27
26
  import "./Group/GridGroup/Grid.styles.js";
28
27
  import "@lingui/core";
29
- import "yup";
30
- import "fhirpath";
31
- import "../utils/yup-locale.js";
28
+ import "../components/Typography.js";
32
29
  import "./Group/GroupCard/styles.js";
33
30
  import "./Group/RepeatableGroups/styles.js";
34
31
  import "./Group/GTable/GTable.styles.js";
@@ -40,49 +37,46 @@ import "./GroupTable/utils.js";
40
37
  import "react-audio-voice-recorder";
41
38
  import "../components/AudioRecorder/styles.js";
42
39
  import "@beda.software/emr-config";
43
- import "../readonly-controls/ReadonlyWidgets.module.scss.js";
44
40
  import "../readonly-controls/ReadonlyWidgets.styles.js";
45
- import { GroupWizard as m, GroupWizardWithTooltips as G, GroupWizardVertical as I } from "./GroupWizard/index.js";
46
- import "./GroupWizard/GroupWizardSidebar/styles.js";
41
+ import "yup";
42
+ import "fhirpath";
43
+ import "../utils/yup-locale.js";
47
44
  import "antd/es/layout/layout";
48
45
  import "antd/es/layout/Sider";
49
46
  import "../components/Wizard/styles.js";
47
+ import { GroupWizardVertical as I, GroupWizard as e, GroupWizardWithTooltips as G } from "./GroupWizard/index.js";
50
48
  import "../readonly-controls/GroupWizard/styles.js";
51
- import "react-markdown";
52
- import "rehype-raw";
53
- import "remark-directive";
54
- import "remark-gfm";
55
- import "../components/RenderImage/cache.js";
56
- import "../components/RenderImage/styles.js";
57
- import "../readonly-controls/MarkdownRender/styles.js";
49
+ import "./ImageAnnotation/styles.js";
50
+ import "../readonly-controls/MarkdownRender/index.js";
58
51
  import { QuestionReference as T } from "./Reference/index.js";
59
52
  import "./GroupTable/RenderFormItemReadOnly/styles.js";
60
53
  import { GroupTabs as x } from "./GroupTabs/index.js";
54
+ import { ImageAnnotation as W } from "./ImageAnnotation/index.js";
61
55
  import { InlineChoice as o } from "./InlineChoice/index.js";
62
- import { InlineReference as e } from "./InlineReference/index.js";
63
- import { QuestionInputInsideText as W } from "./InsideText/index.js";
64
- import { MDEditorControl as z } from "./MDEditorControl/index.js";
56
+ import { InlineReference as m } from "./InlineReference/index.js";
57
+ import { QuestionInputInsideText as z } from "./InsideText/index.js";
58
+ import { MDEditorControl as R } from "./MDEditorControl/index.js";
65
59
  import "@mdxeditor/editor";
66
60
  import "@mdxeditor/editor/style.css";
67
61
  import "react-dom/server";
68
62
  import "./MDEditorControl/MarkDownEditor/context.js";
69
63
  import "./MDEditorControl/MarkDownEditor/ImageEdit/styles.js";
70
64
  import "./MDEditorControl/MarkDownEditor/styles.js";
71
- import { QuestionDecimal as R, QuestionInteger as S, QuestionQuantity as D } from "./Number/index.js";
72
- import { PasswordInput as k } from "./PasswordInput/index.js";
73
- import { QuestionPhone as v } from "./PhoneInput/index.js";
65
+ import { QuestionQuantity as S, QuestionInteger as D, QuestionDecimal as k } from "./Number/index.js";
66
+ import { PasswordInput as v } from "./PasswordInput/index.js";
67
+ import { QuestionPhone as y } from "./PhoneInput/index.js";
74
68
  import { QuestionDateTime as r } from "./QuestionDateTime/index.js";
75
- import { QuestionSolidRadio as y } from "./Radio/index.js";
76
- import { QuestionSlider as P } from "./Slider/index.js";
77
- import { QuestionText as B, QuestionString as E, QuestionEmail as M } from "./String/index.js";
78
- import { TextWithMacroFill as q } from "./TextWithMacroFill/index.js";
69
+ import { QuestionSolidRadio as P } from "./Radio/index.js";
70
+ import { QuestionSlider as B } from "./Slider/index.js";
71
+ import { QuestionEmail as E, QuestionString as M, QuestionText as q } from "./String/index.js";
72
+ import { TextWithMacroFill as A } from "./TextWithMacroFill/index.js";
79
73
  import { TimeRangePickerControl as F } from "./TimeRangePickerControl/index.js";
80
74
  import { UploadFileControl as U } from "./UploadFileControl/index.js";
81
- const cr = {
82
- text: B,
83
- string: E,
84
- decimal: R,
85
- integer: S,
75
+ const ar = {
76
+ text: q,
77
+ string: M,
78
+ decimal: k,
79
+ integer: D,
86
80
  date: r,
87
81
  dateTime: r,
88
82
  time: r,
@@ -91,48 +85,49 @@ const cr = {
91
85
  boolean: d,
92
86
  display: s,
93
87
  reference: T,
94
- quantity: D,
88
+ quantity: S,
95
89
  attachment: U
96
- }, fr = l, br = {
97
- phoneWidget: v,
98
- email: M,
99
- passwordWidget: k,
100
- slider: P,
101
- "solid-radio-button": y,
90
+ }, dr = l, sr = {
91
+ phoneWidget: y,
92
+ email: E,
93
+ passwordWidget: v,
94
+ slider: B,
95
+ "solid-radio-button": P,
102
96
  "inline-choice": o,
103
- "inline-reference": e,
104
- "text-with-macro": q,
97
+ "inline-reference": m,
98
+ "text-with-macro": A,
105
99
  "radio-button": o,
106
100
  "check-box": o,
107
- "input-inside-text": W,
108
- "markdown-editor": z,
101
+ "input-inside-text": z,
102
+ "markdown-editor": R,
109
103
  "audio-recorder-uploader": p,
110
104
  barcode: n,
111
105
  // reference-radio-button is deprecated, use inline-reference instead
112
- "reference-radio-button": e
113
- }, gr = {
114
- col: c,
115
- row: f,
106
+ "reference-radio-button": m
107
+ }, ur = {
108
+ col: C,
109
+ row: h,
116
110
  gtable: t,
117
111
  table: t,
118
- grid: b,
112
+ grid: Q,
119
113
  section: g,
120
- "section-with-divider": Q,
121
- "main-card": h,
122
- "sub-card": C,
114
+ "section-with-divider": b,
115
+ "main-card": f,
116
+ "sub-card": c,
123
117
  "blood-pressure": a,
124
118
  "time-range-picker": F,
125
- wizard: m,
119
+ wizard: e,
126
120
  "wizard-with-tooltips": G,
127
- "wizard-navigation-group": m,
121
+ "wizard-navigation-group": e,
128
122
  "wizard-vertical": I,
129
123
  "group-tabs": x,
130
124
  "group-table": w,
131
- "editable-group": u
125
+ "editable-group": u,
126
+ "image-annotation": W
132
127
  };
133
128
  export {
134
- fr as groupItemComponent,
135
- gr as itemControlGroupItemComponents,
136
- br as itemControlQuestionItemComponents,
137
- cr as questionItemComponents
129
+ dr as groupItemComponent,
130
+ ur as itemControlGroupItemComponents,
131
+ sr as itemControlQuestionItemComponents,
132
+ ar as questionItemComponents
138
133
  };
@@ -20,7 +20,7 @@ export * from './GroupTable/GroupTableChart/Tooltip';
20
20
  export * from './GroupTable/RenderFormItemReadOnly';
21
21
  export * from './GroupTabs';
22
22
  export * from './GroupWizard';
23
- export * from './GroupWizard/GroupWizardSidebar';
23
+ export * from './ImageAnnotation';
24
24
  export * from './InlineChoice';
25
25
  export * from './InlineReference';
26
26
  export * from './InsideText';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/controls/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC;AAC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, QuestionChoice as s } from "./Choice/index.js";
7
7
  import { DateTimeSlotPicker as d, usePractitionerRoleId as G } from "./DateTimeSlotPicker/index.js";
8
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 R, Grid as T, Group as I, Gtable as S, MainCard as W, Row as D, Section as P, SectionWithDivider as w, SubCard as E } from "./Group/index.js";
9
+ import { EditableGroup as R } 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 w, SectionWithDivider as D, SubCard as E } from "./Group/index.js";
11
11
  import { GroupContext as M } from "./Group/context.js";
12
- import { GridGroup as A } from "./Group/GridGroup/index.js";
13
- import { GroupCard as y, GroupMainCard as B, GroupSubCard as V } from "./Group/GroupCard/index.js";
12
+ import { GridGroup as k } from "./Group/GridGroup/index.js";
13
+ import { GroupCard as B, GroupMainCard as V, GroupSubCard as y } from "./Group/GroupCard/index.js";
14
14
  import { GTable as H } from "./Group/GTable/index.js";
15
15
  import { RepeatableGroups as v } from "./Group/RepeatableGroups/index.js";
16
16
  import { RepeatableGroupCard as O } from "./Group/RepeatableGroups/RepeatableGroupCard/index.js";
@@ -22,18 +22,18 @@ import { Tooltip as oo } from "./GroupTable/GroupTableChart/Tooltip/index.js";
22
22
  import { RenderFormItemReadOnly as ro } from "./GroupTable/RenderFormItemReadOnly/index.js";
23
23
  import { GroupTabs as po } from "./GroupTabs/index.js";
24
24
  import { GroupWizard as mo, GroupWizardBus as no, GroupWizardVertical as ao, GroupWizardWithTooltips as uo, getGroupStats as xo } from "./GroupWizard/index.js";
25
- import { GroupWizardSidebar as so } from "./GroupWizard/GroupWizardSidebar/index.js";
25
+ import { ImageAnnotation as so } from "./ImageAnnotation/index.js";
26
26
  import { InlineChoice as Go } from "./InlineChoice/index.js";
27
27
  import { InlineReference as co } from "./InlineReference/index.js";
28
- import { QuestionInputInsideText as bo } from "./InsideText/index.js";
29
- import { MDEditorControl as ho } from "./MDEditorControl/index.js";
30
- import { MarkDownEditor as To } from "./MDEditorControl/MarkDownEditor/index.js";
28
+ import { QuestionInputInsideText as go } from "./InsideText/index.js";
29
+ import { MDEditorControl as To } from "./MDEditorControl/index.js";
30
+ import { MarkDownEditor as Io } from "./MDEditorControl/MarkDownEditor/index.js";
31
31
  import { ImageEditModal as So } from "./MDEditorControl/MarkDownEditor/ImageEdit/index.js";
32
- import { QuestionDecimal as Do, QuestionInteger as Po, QuestionQuantity as wo } from "./Number/index.js";
32
+ import { QuestionDecimal as Po, QuestionInteger as wo, QuestionQuantity as Do } from "./Number/index.js";
33
33
  import { PasswordInput as Fo } from "./PasswordInput/index.js";
34
- import { QuestionPhone as zo } from "./PhoneInput/index.js";
35
- import { QuestionDateTime as ko } from "./QuestionDateTime/index.js";
36
- import { QuestionSolidRadio as Bo } from "./Radio/index.js";
34
+ import { QuestionPhone as Ao } from "./PhoneInput/index.js";
35
+ import { QuestionDateTime as zo } from "./QuestionDateTime/index.js";
36
+ import { QuestionSolidRadio as Vo } from "./Radio/index.js";
37
37
  import { QuestionReference as Uo, useAnswerReference as Ho, useFieldReference as qo } from "./Reference/index.js";
38
38
  import { QuestionSlider as Lo } from "./Slider/index.js";
39
39
  import { QuestionEmail as Yo, QuestionString as jo, QuestionText as Jo } from "./String/index.js";
@@ -44,68 +44,67 @@ import { UploadFileControl as ee } from "./UploadFileControl/index.js";
44
44
  import { useUploader as te } from "./UploadFileControl/hooks.js";
45
45
  import { groupItemComponent as ie, itemControlGroupItemComponents as me, itemControlQuestionItemComponents as ne, questionItemComponents as ae } from "./controls.js";
46
46
  import { getFieldErrorMessage as xe, isGroupWizard as fe } from "../components/BaseQuestionnaireResponseForm/utils.js";
47
- import { useEditableGroup as le } from "./EditableGroup/hooks.js";
48
- import { RepeatableGroupRow as Ge } from "./Group/RepeatableGroups/RepeatableGroupRow.js";
49
- import { getValueFromAnswerValue as ce, isFormAnswerItems as Qe } from "./GroupTable/utils.js";
50
- import { useGroupTable as ge } from "./GroupTable/hooks.js";
51
- import { useGroupTableChart as Re } from "./GroupTable/GroupTableChart/hooks.js";
52
- import { shouldApplySidebarDesign as Ie } from "./GroupWizard/GroupWizardSidebar/utils.js";
47
+ import { RepeatableGroupRow as le } from "./Group/RepeatableGroups/RepeatableGroupRow.js";
48
+ import { getValueFromAnswerValue as Ge, isFormAnswerItems as Ce } from "./GroupTable/utils.js";
49
+ import { useEditableGroup as Qe } from "./EditableGroup/hooks.js";
50
+ import { useGroupTable as Re } from "./GroupTable/hooks.js";
51
+ import { useGroupTableChart as he } from "./GroupTable/GroupTableChart/hooks.js";
53
52
  export {
54
53
  r as AudioRecorderUploader,
55
54
  p as Barcode,
56
55
  m as BloodPressure,
57
56
  x as ChoiceQuestionSelect,
58
57
  f as ChoiceQuestionValueSet,
59
- R as Col,
58
+ h as Col,
60
59
  d as DateTimeSlotPicker,
61
60
  c as Display,
62
- g as EditableGroup,
61
+ R as EditableGroup,
63
62
  H as GTable,
64
- T as Grid,
65
- A as GridGroup,
66
- I as Group,
67
- y as GroupCard,
63
+ I as Grid,
64
+ k as GridGroup,
65
+ b as Group,
66
+ B as GroupCard,
68
67
  M as GroupContext,
69
- B as GroupMainCard,
70
- V as GroupSubCard,
68
+ V as GroupMainCard,
69
+ y as GroupSubCard,
71
70
  j as GroupTable,
72
71
  K as GroupTableChart,
73
72
  po as GroupTabs,
74
73
  mo as GroupWizard,
75
74
  no as GroupWizardBus,
76
- so as GroupWizardSidebar,
77
75
  ao as GroupWizardVertical,
78
76
  uo as GroupWizardWithTooltips,
79
77
  S as Gtable,
80
78
  X as HighlightArea,
79
+ so as ImageAnnotation,
81
80
  So as ImageEditModal,
82
81
  Go as InlineChoice,
83
82
  co as InlineReference,
84
- ho as MDEditorControl,
83
+ To as MDEditorControl,
85
84
  W as MainCard,
86
- To as MarkDownEditor,
85
+ Io as MarkDownEditor,
87
86
  Fo as PasswordInput,
88
87
  a as QuestionBoolean,
89
88
  s as QuestionChoice,
90
- ko as QuestionDateTime,
91
- Do as QuestionDecimal,
89
+ zo as QuestionDateTime,
90
+ Po as QuestionDecimal,
92
91
  Yo as QuestionEmail,
93
- bo as QuestionInputInsideText,
94
- Po as QuestionInteger,
95
- zo as QuestionPhone,
96
- wo as QuestionQuantity,
92
+ go as QuestionInputInsideText,
93
+ wo as QuestionInteger,
94
+ Ao as QuestionPhone,
95
+ Do as QuestionQuantity,
97
96
  Uo as QuestionReference,
98
97
  Lo as QuestionSlider,
99
- Bo as QuestionSolidRadio,
98
+ Vo as QuestionSolidRadio,
100
99
  jo as QuestionString,
101
100
  Jo as QuestionText,
102
101
  ro as RenderFormItemReadOnly,
103
102
  O as RepeatableGroupCard,
104
- Ge as RepeatableGroupRow,
103
+ le as RepeatableGroupRow,
105
104
  v as RepeatableGroups,
106
- D as Row,
107
- P as Section,
108
- w as SectionWithDivider,
105
+ P as Row,
106
+ w as Section,
107
+ D as SectionWithDivider,
109
108
  E as SubCard,
110
109
  Q as TextWithLink,
111
110
  No as TextWithMacroFill,
@@ -115,19 +114,18 @@ export {
115
114
  xe as getFieldErrorMessage,
116
115
  xo as getGroupStats,
117
116
  _ as getHighlightYParams,
118
- ce as getValueFromAnswerValue,
117
+ Ge as getValueFromAnswerValue,
119
118
  ie as groupItemComponent,
120
- Qe as isFormAnswerItems,
119
+ Ce as isFormAnswerItems,
121
120
  fe as isGroupWizard,
122
121
  me as itemControlGroupItemComponents,
123
122
  ne as itemControlQuestionItemComponents,
124
123
  ae as questionItemComponents,
125
- Ie as shouldApplySidebarDesign,
126
124
  Ho as useAnswerReference,
127
- le as useEditableGroup,
125
+ Qe as useEditableGroup,
128
126
  qo as useFieldReference,
129
- ge as useGroupTable,
130
- Re as useGroupTableChart,
127
+ Re as useGroupTable,
128
+ he as useGroupTableChart,
131
129
  G as usePractitionerRoleId,
132
130
  $o as useTimeRangePickerControl,
133
131
  te as useUploader
@@ -1,10 +1,9 @@
1
- import e from "./ascending.js";
1
+ import r from "./ascending.js";
2
2
  import t from "./bisector.js";
3
- import i from "./number.js";
4
- const o = t(e), r = o.right;
5
- t(i).center;
6
- const m = r;
3
+ import e from "./number.js";
4
+ const i = t(r), s = i.right;
5
+ t(e).center;
7
6
  export {
8
- r as bisectRight,
9
- m as default
7
+ s as bisectRight,
8
+ s as default
10
9
  };
@@ -5,8 +5,7 @@ function b(c) {
5
5
  c.length !== 2 ? (u = d, o = (n, e) => d(c(n), e), s = (n, e) => c(n) - e) : (u = c === d || c === p ? c : l, o = c, s = c);
6
6
  function f(n, e, t = 0, r = n.length) {
7
7
  if (t < r) {
8
- if (u(e, e) !== 0)
9
- return r;
8
+ if (u(e, e) !== 0) return r;
10
9
  do {
11
10
  const i = t + r >>> 1;
12
11
  o(n[i], e) < 0 ? t = i + 1 : r = i;
@@ -16,8 +15,7 @@ function b(c) {
16
15
  }
17
16
  function m(n, e, t = 0, r = n.length) {
18
17
  if (t < r) {
19
- if (u(e, e) !== 0)
20
- return r;
18
+ if (u(e, e) !== 0) return r;
21
19
  do {
22
20
  const i = t + r >>> 1;
23
21
  o(n[i], e) <= 0 ? t = i + 1 : r = i;
@@ -5,27 +5,16 @@ function k(i, r, f) {
5
5
  return M < 0 ? (e = Math.pow(10, -M) / l, n = Math.round(i * e), h = Math.round(r * e), n / e < i && ++n, h / e > r && --h, e = -e) : (e = Math.pow(10, M) * l, n = Math.round(i / e), h = Math.round(r / e), n * e < i && ++n, h * e > r && --h), h < n && 0.5 <= f && f < 2 ? k(i, r, f * 2) : [n, h, e];
6
6
  }
7
7
  function v(i, r, f) {
8
- if (r = +r, i = +i, f = +f, !(f > 0))
9
- return [];
10
- if (i === r)
11
- return [i];
8
+ if (r = +r, i = +i, f = +f, !(f > 0)) return [];
9
+ if (i === r) return [i];
12
10
  const c = r < i, [M, d, l] = c ? k(r, i, f) : k(i, r, f);
13
- if (!(d >= M))
14
- return [];
11
+ if (!(d >= M)) return [];
15
12
  const n = d - M + 1, h = new Array(n);
16
13
  if (c)
17
- if (l < 0)
18
- for (let e = 0; e < n; ++e)
19
- h[e] = (d - e) / -l;
20
- else
21
- for (let e = 0; e < n; ++e)
22
- h[e] = (d - e) * l;
23
- else if (l < 0)
24
- for (let e = 0; e < n; ++e)
25
- h[e] = (M + e) / -l;
26
- else
27
- for (let e = 0; e < n; ++e)
28
- h[e] = (M + e) * l;
14
+ if (l < 0) for (let e = 0; e < n; ++e) h[e] = (d - e) / -l;
15
+ else for (let e = 0; e < n; ++e) h[e] = (d - e) * l;
16
+ else if (l < 0) for (let e = 0; e < n; ++e) h[e] = (M + e) / -l;
17
+ else for (let e = 0; e < n; ++e) h[e] = (M + e) * l;
29
18
  return h;
30
19
  }
31
20
  function u(i, r, f) {
@@ -243,12 +243,9 @@ function P(e, r, t, f) {
243
243
  return f <= 0 ? e = r = t = NaN : t <= 0 || t >= 1 ? e = r = NaN : r <= 0 && (e = NaN), new i(e, r, t, f);
244
244
  }
245
245
  function S(e) {
246
- if (e instanceof i)
247
- return new i(e.h, e.s, e.l, e.opacity);
248
- if (e instanceof u || (e = H(e)), !e)
249
- return new i();
250
- if (e instanceof i)
251
- return e;
246
+ if (e instanceof i) return new i(e.h, e.s, e.l, e.opacity);
247
+ if (e instanceof u || (e = H(e)), !e) return new i();
248
+ if (e instanceof i) return e;
252
249
  e = e.rgb();
253
250
  var r = e.r / 255, t = e.g / 255, f = e.b / 255, x = Math.min(r, t, f), d = Math.max(r, t, f), c = NaN, s = d - x, p = (d + x) / 2;
254
251
  return s ? (r === d ? c = (t - f) / s + (t < f) * 6 : t === d ? c = (f - r) / s + 2 : c = (r - t) / s + 4, s /= p < 0.5 ? d + x : 2 - d - x, c *= 60) : s = p > 0 && p < 1 ? 0 : c, new i(c, s, p, e.opacity);
@@ -3,8 +3,7 @@ function p(e, r, t) {
3
3
  }
4
4
  function n(e, r) {
5
5
  var t = Object.create(e.prototype);
6
- for (var o in r)
7
- t[o] = r[o];
6
+ for (var o in r) t[o] = r[o];
8
7
  return t;
9
8
  }
10
9
  export {
@@ -1,15 +1,14 @@
1
- import o from "./locale.js";
1
+ import a from "./locale.js";
2
2
  var r, t, f;
3
3
  e({
4
4
  thousands: ",",
5
5
  grouping: [3],
6
6
  currency: ["$", ""]
7
7
  });
8
- function e(a) {
9
- return r = o(a), t = r.format, f = r.formatPrefix, r;
8
+ function e(o) {
9
+ return r = a(o), t = r.format, f = r.formatPrefix, r;
10
10
  }
11
11
  export {
12
- e as default,
13
12
  t as format,
14
13
  f as formatPrefix
15
14
  };
@@ -2,8 +2,7 @@ function a(e) {
2
2
  return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
3
3
  }
4
4
  function r(e, n) {
5
- if (!isFinite(e) || e === 0)
6
- return null;
5
+ if (!isFinite(e) || e === 0) return null;
7
6
  var i = (e = n ? e.toExponential(n - 1) : e.toExponential()).indexOf("e"), t = e.slice(0, i);
8
7
  return [
9
8
  t.length > 1 ? t[0] + t.slice(2) : t,
@@ -2,8 +2,7 @@ import { formatDecimalParts as f } from "./formatDecimal.js";
2
2
  var m;
3
3
  function l(n, t) {
4
4
  var a = f(n, t);
5
- if (!a)
6
- return m = void 0, n.toPrecision(t);
5
+ if (!a) return m = void 0, n.toPrecision(t);
7
6
  var e = a[0], o = a[1], r = o - (m = Math.max(-8, Math.min(8, Math.floor(o / 3))) * 3) + 1, i = e.length;
8
7
  return r === i ? e : r > i ? e + new Array(r - i + 1).join("0") : r > 0 ? e.slice(0, r) + "." + e.slice(r) : "0." + new Array(1 - r).join("0") + f(n, Math.max(0, t + r - 1))[0];
9
8
  }
@@ -1,8 +1,7 @@
1
1
  import { formatDecimalParts as a } from "./formatDecimal.js";
2
2
  function f(t, o) {
3
3
  var n = a(t, o);
4
- if (!n)
5
- return t + "";
4
+ if (!n) return t + "";
6
5
  var e = n[0], r = n[1];
7
6
  return r < 0 ? "0." + new Array(-r).join("0") + e : e.length > r + 1 ? e.slice(0, r + 1) + "." + e.slice(r + 1) : e + new Array(r - e.length + 2).join("0");
8
7
  }
@@ -1,7 +1,6 @@
1
1
  var o = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
2
2
  function d(t) {
3
- if (!(n = o.exec(t)))
4
- throw new Error("invalid format: " + t);
3
+ if (!(n = o.exec(t))) throw new Error("invalid format: " + t);
5
4
  var n;
6
5
  return new i({
7
6
  fill: n[1],
@@ -1,19 +1,17 @@
1
1
  function c(r) {
2
- e:
3
- for (var t = r.length, e = 1, a = -1, f; e < t; ++e)
4
- switch (r[e]) {
5
- case ".":
6
- a = f = e;
7
- break;
8
- case "0":
9
- a === 0 && (a = e), f = e;
10
- break;
11
- default:
12
- if (!+r[e])
13
- break e;
14
- a > 0 && (a = 0);
15
- break;
16
- }
2
+ e: for (var t = r.length, e = 1, a = -1, f; e < t; ++e)
3
+ switch (r[e]) {
4
+ case ".":
5
+ a = f = e;
6
+ break;
7
+ case "0":
8
+ a === 0 && (a = e), f = e;
9
+ break;
10
+ default:
11
+ if (!+r[e]) break e;
12
+ a > 0 && (a = 0);
13
+ break;
14
+ }
17
15
  return a > 0 ? r.slice(0, a) + r.slice(f + 1) : r;
18
16
  }
19
17
  export {
@@ -1,13 +1,10 @@
1
1
  import c from "./value.js";
2
2
  function g(e, n) {
3
3
  var t = n ? n.length : 0, o = e ? Math.min(t, e.length) : 0, f = new Array(o), i = new Array(t), r;
4
- for (r = 0; r < o; ++r)
5
- f[r] = c(e[r], n[r]);
6
- for (; r < t; ++r)
7
- i[r] = n[r];
4
+ for (r = 0; r < o; ++r) f[r] = c(e[r], n[r]);
5
+ for (; r < t; ++r) i[r] = n[r];
8
6
  return function(a) {
9
- for (r = 0; r < o; ++r)
10
- i[r] = f[r](a);
7
+ for (r = 0; r < o; ++r) i[r] = f[r](a);
11
8
  return i;
12
9
  };
13
10
  }
@@ -2,8 +2,7 @@ function f(r, e) {
2
2
  e || (e = []);
3
3
  var u = r ? Math.min(e.length, r.length) : 0, i = e.slice(), n;
4
4
  return function(t) {
5
- for (n = 0; n < u; ++n)
6
- i[n] = r[n] * (1 - t) + e[n] * t;
5
+ for (n = 0; n < u; ++n) i[n] = r[n] * (1 - t) + e[n] * t;
7
6
  return i;
8
7
  };
9
8
  }
@@ -5,8 +5,7 @@ function u(o, e) {
5
5
  for (t in e)
6
6
  t in o ? n[t] = r(o[t], e[t]) : f[t] = e[t];
7
7
  return function(i) {
8
- for (t in n)
9
- f[t] = n[t](i);
8
+ for (t in n) f[t] = n[t](i);
10
9
  return f;
11
10
  };
12
11
  }
@@ -15,8 +15,7 @@ function v(i, n) {
15
15
  for (i = i + "", n = n + ""; (s = x.exec(i)) && (l = c.exec(n)); )
16
16
  (t = l.index) > u && (t = n.slice(u, t), e[r] ? e[r] += t : e[++r] = t), (s = s[0]) === (l = l[0]) ? e[r] ? e[r] += l : e[++r] = l : (e[++r] = null, f.push({ i: r, x: g(s, l) })), u = c.lastIndex;
17
17
  return u < n.length && (t = n.slice(u), e[r] ? e[r] += t : e[++r] = t), e.length < 2 ? f[0] ? m(f[0].x) : h(n) : (n = f.length, function(a) {
18
- for (var o = 0, d; o < n; ++o)
19
- e[(d = f[o]).i] = d.x(a);
18
+ for (var o = 0, d; o < n; ++o) e[(d = f[o]).i] = d.x(a);
20
19
  return e.join("");
21
20
  });
22
21
  }
@@ -2,8 +2,8 @@ import w from "./constant.js";
2
2
  import y from "./number.js";
3
3
  import N from "../../d3-interpolate/src/number.js";
4
4
  import A from "../../d3-interpolate/src/value.js";
5
- import k from "../../d3-interpolate/src/round.js";
6
- import M from "../../d3-array/src/bisect.js";
5
+ import { bisectRight as k } from "../../d3-array/src/bisect.js";
6
+ import M from "../../d3-interpolate/src/round.js";
7
7
  var h = [0, 1];
8
8
  function p(n) {
9
9
  return n;
@@ -30,7 +30,7 @@ function j(n, r, i) {
30
30
  for (n[e] < n[0] && (n = n.slice().reverse(), r = r.slice().reverse()); ++u < e; )
31
31
  a[u] = g(n[u], n[u + 1]), o[u] = i(r[u], r[u + 1]);
32
32
  return function(l) {
33
- var m = M(n, l, 1, e) - 1;
33
+ var m = k(n, l, 1, e) - 1;
34
34
  return o[m](a[m](l));
35
35
  };
36
36
  }
@@ -53,7 +53,7 @@ function z() {
53
53
  }, f.range = function(t) {
54
54
  return arguments.length ? (r = Array.from(t), c()) : r.slice();
55
55
  }, f.rangeRound = function(t) {
56
- return r = Array.from(t), i = k, c();
56
+ return r = Array.from(t), i = M, c();
57
57
  }, f.clamp = function(t) {
58
58
  return arguments.length ? (u = t ? !0 : p, c()) : u !== p;
59
59
  }, f.interpolate = function(t) {