@aehrc/smart-forms-renderer 0.34.0 → 0.34.2

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 (155) hide show
  1. package/lib/components/FormComponents/BooleanItem/BooleanField.d.ts +1 -2
  2. package/lib/components/FormComponents/BooleanItem/BooleanField.js +1 -1
  3. package/lib/components/FormComponents/BooleanItem/BooleanField.js.map +1 -1
  4. package/lib/components/FormComponents/BooleanItem/BooleanItem.js +3 -3
  5. package/lib/components/FormComponents/BooleanItem/BooleanItem.js.map +1 -1
  6. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerOptionItem.d.ts +2 -2
  7. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerOptionItem.js +1 -1
  8. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerOptionItem.js.map +1 -1
  9. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetItem.d.ts +2 -2
  10. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetItem.js +1 -1
  11. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetItem.js.map +1 -1
  12. package/lib/components/FormComponents/ChoiceItems/ChoiceItemSwitcher.js +3 -3
  13. package/lib/components/FormComponents/ChoiceItems/ChoiceItemSwitcher.js.map +1 -1
  14. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionFields.d.ts +1 -2
  15. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionFields.js +1 -1
  16. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionFields.js.map +1 -1
  17. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionItem.js +12 -5
  18. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionItem.js.map +1 -1
  19. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionView.d.ts +2 -2
  20. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionView.js +3 -3
  21. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionView.js.map +1 -1
  22. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetFields.d.ts +1 -2
  23. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetFields.js +1 -1
  24. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetFields.js.map +1 -1
  25. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetItem.d.ts +2 -2
  26. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetItem.js +3 -3
  27. package/lib/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetItem.js.map +1 -1
  28. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionFields.d.ts +2 -2
  29. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionFields.js +10 -19
  30. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionFields.js.map +1 -1
  31. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionItem.js +11 -8
  32. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionItem.js.map +1 -1
  33. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionView.d.ts +1 -2
  34. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionView.js +6 -4
  35. package/lib/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionView.js.map +1 -1
  36. package/lib/components/FormComponents/GroupItem/GroupItemSwitcher.js +1 -1
  37. package/lib/components/FormComponents/GroupItem/GroupItemSwitcher.js.map +1 -1
  38. package/lib/components/FormComponents/GroupItem/GroupItemView.d.ts +1 -1
  39. package/lib/utils/choice.d.ts +4 -4
  40. package/lib/utils/choice.js +21 -12
  41. package/lib/utils/choice.js.map +1 -1
  42. package/lib/utils/itemControl.js +5 -1
  43. package/lib/utils/itemControl.js.map +1 -1
  44. package/package.json +1 -1
  45. package/src/components/FormComponents/BooleanItem/BooleanField.tsx +2 -4
  46. package/src/components/FormComponents/BooleanItem/BooleanItem.tsx +0 -3
  47. package/src/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerOptionItem.tsx +0 -3
  48. package/src/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetItem.tsx +0 -3
  49. package/src/components/FormComponents/ChoiceItems/ChoiceItemSwitcher.tsx +0 -3
  50. package/src/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionFields.tsx +2 -12
  51. package/src/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionItem.tsx +19 -7
  52. package/src/components/FormComponents/ChoiceItems/ChoiceRadioAnswerOptionView.tsx +2 -10
  53. package/src/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetFields.tsx +1 -3
  54. package/src/components/FormComponents/ChoiceItems/ChoiceRadioAnswerValueSetItem.tsx +1 -5
  55. package/src/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionFields.tsx +37 -46
  56. package/src/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionItem.tsx +19 -11
  57. package/src/components/FormComponents/ChoiceItems/ChoiceSelectAnswerOptionView.tsx +11 -7
  58. package/src/components/FormComponents/GroupItem/GroupItemSwitcher.tsx +1 -1
  59. package/src/components/FormComponents/GroupItem/GroupItemView.tsx +1 -1
  60. package/src/stories/assets/questionnaires/QGroupTableTester.ts +461 -0
  61. package/src/stories/storybookWrappers/BuildFormButtonForStorybook.tsx +7 -1
  62. package/src/stories/storybookWrappers/BuildFormButtonTesterWrapperForStorybook.tsx +7 -1
  63. package/src/stories/storybookWrappers/BuildFormWrapperForStorybook.tsx +7 -1
  64. package/src/stories/storybookWrappers/FormValidationTesterWrapperForStorybook.tsx +7 -1
  65. package/src/stories/storybookWrappers/PrePopWrapperForStorybook.tsx +7 -1
  66. package/{lib/stories/index.js → src/stories/storybookWrappers/globals.ts} +2 -2
  67. package/src/stories/testing/GroupTableTester.stories.tsx +39 -0
  68. package/src/utils/choice.ts +28 -16
  69. package/src/utils/itemControl.ts +9 -1
  70. package/lib/components/FormComponents/ChoiceItems/CheckboxFields.d.ts +0 -11
  71. package/lib/components/FormComponents/ChoiceItems/CheckboxFields.js +0 -41
  72. package/lib/components/FormComponents/ChoiceItems/CheckboxFields.js.map +0 -1
  73. package/lib/components/FormComponents/ChoiceItems/CheckboxOptionFields.d.ts +0 -11
  74. package/lib/components/FormComponents/ChoiceItems/CheckboxOptionFields.js +0 -41
  75. package/lib/components/FormComponents/ChoiceItems/CheckboxOptionFields.js.map +0 -1
  76. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetView.d.ts +0 -13
  77. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetView.js +0 -46
  78. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetView.js.map +0 -1
  79. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxFields.d.ts +0 -11
  80. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxFields.js +0 -41
  81. package/lib/components/FormComponents/ChoiceItems/ChoiceCheckboxFields.js.map +0 -1
  82. package/lib/components/FormComponents/DateTimeItem/DateTimeField.d.ts +0 -12
  83. package/lib/components/FormComponents/DateTimeItem/DateTimeField.js +0 -34
  84. package/lib/components/FormComponents/DateTimeItem/DateTimeField.js.map +0 -1
  85. package/lib/components/FormComponents/DateTimeItem/DateTimeItem.d.ts +0 -9
  86. package/lib/components/FormComponents/DateTimeItem/DateTimeItem.js +0 -60
  87. package/lib/components/FormComponents/DateTimeItem/DateTimeItem.js.map +0 -1
  88. package/lib/components/FormComponents/GroupItem/NextTabButtonWrapper.d.ts +0 -8
  89. package/lib/components/FormComponents/GroupItem/NextTabButtonWrapper.js +0 -57
  90. package/lib/components/FormComponents/GroupItem/NextTabButtonWrapper.js.map +0 -1
  91. package/lib/components/FormComponents/ItemParts/RadioAnswerOptionButtons.d.ts +0 -8
  92. package/lib/components/FormComponents/ItemParts/RadioAnswerOptionButtons.js +0 -37
  93. package/lib/components/FormComponents/ItemParts/RadioAnswerOptionButtons.js.map +0 -1
  94. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxFields.d.ts +0 -18
  95. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxFields.js +0 -48
  96. package/lib/components/FormComponents/OpenChoiceItems/OpenChoiceCheckboxFields.js.map +0 -1
  97. package/lib/components/StoryWrappers/BuildFormWrapper.d.ts +0 -7
  98. package/lib/components/StoryWrappers/BuildFormWrapper.js +0 -57
  99. package/lib/components/StoryWrappers/BuildFormWrapper.js.map +0 -1
  100. package/lib/hooks/useDisplayCalculatedExpression.d.ts +0 -3
  101. package/lib/hooks/useDisplayCalculatedExpression.js +0 -40
  102. package/lib/hooks/useDisplayCalculatedExpression.js.map +0 -1
  103. package/lib/hooks/useInitaliseFhirClient.d.ts +0 -1
  104. package/lib/hooks/useInitaliseFhirClient.js +0 -55
  105. package/lib/hooks/useInitaliseFhirClient.js.map +0 -1
  106. package/lib/hooks/useInitialiseRenderer.d.ts +0 -4
  107. package/lib/hooks/useInitialiseRenderer.js +0 -62
  108. package/lib/hooks/useInitialiseRenderer.js.map +0 -1
  109. package/lib/hooks/useNextPreviousVisibleTabs.d.ts +0 -6
  110. package/lib/hooks/useNextPreviousVisibleTabs.js +0 -63
  111. package/lib/hooks/useNextPreviousVisibleTabs.js.map +0 -1
  112. package/lib/hooks/useQueryClient.d.ts +0 -3
  113. package/lib/hooks/useQueryClient.js +0 -29
  114. package/lib/hooks/useQueryClient.js.map +0 -1
  115. package/lib/hooks/useRepeatitemState.d.ts +0 -0
  116. package/lib/hooks/useRepeatitemState.js +0 -2
  117. package/lib/hooks/useRepeatitemState.js.map +0 -1
  118. package/lib/interfaces/repopulateItems.interface.d.ts +0 -0
  119. package/lib/interfaces/repopulateItems.interface.js +0 -2
  120. package/lib/interfaces/repopulateItems.interface.js.map +0 -1
  121. package/lib/setup-jest.js +0 -1
  122. package/lib/stories/InitialiseFormWrapperForStorybook.d.ts +0 -29
  123. package/lib/stories/InitialiseFormWrapperForStorybook.js +0 -65
  124. package/lib/stories/InitialiseFormWrapperForStorybook.js.map +0 -1
  125. package/lib/stories/MedicalHistoryTable.stories.js +0 -45
  126. package/lib/stories/SmartFormsRenderer.stories.js +0 -117
  127. package/lib/stories/StorybookWrappers/BuildFormButtonForStorybook.d.ts +0 -8
  128. package/lib/stories/StorybookWrappers/BuildFormButtonForStorybook.js +0 -44
  129. package/lib/stories/StorybookWrappers/BuildFormButtonForStorybook.js.map +0 -1
  130. package/lib/stories/StorybookWrappers/BuildFormButtonTesterWrapperForStorybook.d.ts +0 -18
  131. package/lib/stories/StorybookWrappers/BuildFormButtonTesterWrapperForStorybook.js +0 -48
  132. package/lib/stories/StorybookWrappers/BuildFormButtonTesterWrapperForStorybook.js.map +0 -1
  133. package/lib/stories/StorybookWrappers/PrePopButtonForStorybook.d.ts +0 -7
  134. package/lib/stories/StorybookWrappers/PrePopButtonForStorybook.js +0 -32
  135. package/lib/stories/StorybookWrappers/PrePopButtonForStorybook.js.map +0 -1
  136. package/lib/stories/StorybookWrappers/PrePopWrapperForStorybook.d.ts +0 -21
  137. package/lib/stories/StorybookWrappers/PrePopWrapperForStorybook.js +0 -83
  138. package/lib/stories/StorybookWrappers/PrePopWrapperForStorybook.js.map +0 -1
  139. package/lib/stories/StorybookWrappers/populateCallbackForStorybook.d.ts +0 -8
  140. package/lib/stories/StorybookWrappers/populateCallbackForStorybook.js +0 -46
  141. package/lib/stories/StorybookWrappers/populateCallbackForStorybook.js.map +0 -1
  142. package/lib/stories/index.d.ts +0 -1
  143. package/lib/stories/index.js.map +0 -1
  144. package/lib/utils/buildForm.d.ts +0 -8
  145. package/lib/utils/buildForm.js +0 -26
  146. package/lib/utils/buildForm.js.map +0 -1
  147. package/lib/utils/buildForms.d.ts +0 -0
  148. package/lib/utils/buildForms.js +0 -2
  149. package/lib/utils/buildForms.js.map +0 -1
  150. /package/lib/stories/{StorybookWrappers → storybookWrappers}/InitialiseFormWrapperForStorybook.d.ts +0 -0
  151. /package/lib/stories/{StorybookWrappers → storybookWrappers}/InitialiseFormWrapperForStorybook.js +0 -0
  152. /package/lib/stories/{StorybookWrappers → storybookWrappers}/InitialiseFormWrapperForStorybook.js.map +0 -0
  153. /package/lib/stories/{StorybookWrappers → storybookWrappers}/index.d.ts +0 -0
  154. /package/lib/stories/{StorybookWrappers → storybookWrappers}/index.js +0 -0
  155. /package/lib/stories/{StorybookWrappers → storybookWrappers}/index.js.map +0 -0
@@ -27,6 +27,7 @@ import PrePopButtonForStorybook from './PrePopButtonForStorybook';
27
27
  import { populateQuestionnaire } from '@aehrc/sdc-populate';
28
28
  import { fetchResourceCallback } from './populateCallbackForStorybook';
29
29
  import { buildForm } from '../../utils';
30
+ import { STORYBOOK_TERMINOLOGY_SERVER_URL } from './globals';
30
31
 
31
32
  interface PrePopWrapperForStorybookProps {
32
33
  questionnaire: Questionnaire;
@@ -75,7 +76,12 @@ function PrePopWrapperForStorybook(props: PrePopWrapperForStorybookProps) {
75
76
  const { populatedResponse } = populateResult;
76
77
 
77
78
  // Call to buildForm to pre-populate the QR which repaints the entire BaseRenderer view
78
- await buildForm(questionnaire, populatedResponse);
79
+ await buildForm(
80
+ questionnaire,
81
+ populatedResponse,
82
+ undefined,
83
+ STORYBOOK_TERMINOLOGY_SERVER_URL
84
+ );
79
85
 
80
86
  setIsPopulating(false);
81
87
  });
@@ -14,5 +14,5 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- export { default as InitialiseFormWrapperForStorybook } from './InitialiseFormWrapperForStorybook';
18
- //# sourceMappingURL=index.js.map
17
+
18
+ export const STORYBOOK_TERMINOLOGY_SERVER_URL = 'https://r4.ontoserver.csiro.au/fhir';
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Copyright 2024 Commonwealth Scientific and Industrial Research
3
+ * Organisation (CSIRO) ABN 41 687 119 230.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+
18
+ import type { Meta, StoryObj } from '@storybook/react';
19
+ import BuildFormWrapperForStorybook from '../storybookWrappers/BuildFormWrapperForStorybook';
20
+ import { qGTableWithBoolean } from '../assets/questionnaires/QGroupTableTester';
21
+
22
+ // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
23
+ const meta = {
24
+ title: 'Component/Testing/Group Table Tester',
25
+ component: BuildFormWrapperForStorybook,
26
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
27
+ tags: []
28
+ } satisfies Meta<typeof BuildFormWrapperForStorybook>;
29
+
30
+ export default meta;
31
+ type Story = StoryObj<typeof meta>;
32
+
33
+ // More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
34
+
35
+ export const GroupTableWithBoolean: Story = {
36
+ args: {
37
+ questionnaire: qGTableWithBoolean
38
+ }
39
+ };
@@ -80,6 +80,34 @@ export function findInAnswerOptions(
80
80
  return;
81
81
  }
82
82
 
83
+ /**
84
+ * Compare answer option value with selected value via valueString, valueInteger, or valueCoding.code
85
+ *
86
+ * @author Sean Fong
87
+ */
88
+ export function compareAnswerOptionValue(
89
+ option: QuestionnaireItemAnswerOption,
90
+ value: QuestionnaireItemAnswerOption
91
+ ): boolean {
92
+ if (!value) {
93
+ return false;
94
+ }
95
+
96
+ if (value.valueString) {
97
+ return option.valueString === value.valueString;
98
+ }
99
+
100
+ if (value.valueInteger) {
101
+ return option.valueInteger === value.valueInteger;
102
+ }
103
+
104
+ if (value.valueCoding && value.valueCoding.code) {
105
+ return option.valueCoding?.code === value.valueCoding.code;
106
+ }
107
+
108
+ return false;
109
+ }
110
+
83
111
  /**
84
112
  * Get choice control type based on certain criteria in choice items
85
113
  *
@@ -105,22 +133,6 @@ export function getChoiceControlType(qItem: QuestionnaireItem) {
105
133
  return ChoiceItemControl.Select;
106
134
  }
107
135
 
108
- /**
109
- * Find and return corresponding coding from AnswerValueSet based on selected answer in form
110
- *
111
- * @author Sean Fong
112
- */
113
- export function findInAnswerValueSetCodings(
114
- codings: Coding[],
115
- selected: string
116
- ): QuestionnaireResponseItemAnswer | undefined {
117
- for (const coding of codings) {
118
- if (selected === coding.code) {
119
- return coding;
120
- }
121
- }
122
- }
123
-
124
136
  /**
125
137
  * Find and return string value from selected answer
126
138
  *
@@ -19,6 +19,13 @@ import type { Coding, Extension, QuestionnaireItem } from 'fhir/r4';
19
19
  import type { RegexValidation } from '../interfaces/regex.interface';
20
20
  import { structuredDataCapture } from 'fhir-sdc-helpers';
21
21
 
22
+ function hasDisplayCategory(qItem: QuestionnaireItem): boolean {
23
+ return !!qItem.extension?.some(
24
+ (extension: Extension) =>
25
+ extension.url === 'http://hl7.org/fhir/StructureDefinition/questionnaire-displayCategory'
26
+ );
27
+ }
28
+
22
29
  function hasItemControl(qItem: QuestionnaireItem): boolean {
23
30
  return !!qItem.extension?.some(
24
31
  (extension: Extension) =>
@@ -29,7 +36,8 @@ function hasItemControl(qItem: QuestionnaireItem): boolean {
29
36
  // If all nested items are of type display and have itemControl, then they should not be rendered
30
37
  export function shouldRenderNestedItems(qItem: QuestionnaireItem): boolean {
31
38
  return !qItem.item?.every(
32
- (childItem) => childItem.type === 'display' && hasItemControl(childItem)
39
+ (childItem) =>
40
+ childItem.type === 'display' && (hasDisplayCategory(childItem) || hasItemControl(childItem))
33
41
  );
34
42
  }
35
43
 
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import type { QuestionnaireItem, QuestionnaireItemAnswerOption, QuestionnaireResponseItemAnswer } from 'fhir/r4';
3
- interface ChoiceCheckboxFieldsProps {
4
- qItem: QuestionnaireItem;
5
- options: QuestionnaireItemAnswerOption[];
6
- answers: QuestionnaireResponseItemAnswer[];
7
- readOnly: boolean;
8
- onCheckedChange: (newValue: string) => void;
9
- }
10
- declare function ChoiceCheckboxFields(props: ChoiceCheckboxFieldsProps): React.JSX.Element;
11
- export default ChoiceCheckboxFields;
@@ -1,41 +0,0 @@
1
- /*
2
- * Copyright 2024 Commonwealth Scientific and Industrial Research
3
- * Organisation (CSIRO) ABN 41 687 119 230.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import React from 'react';
18
- import { ChoiceItemOrientation } from '../../../interfaces/choice.enum';
19
- import QItemChoiceCheckboxSingle from '../ItemParts/CheckboxSingle';
20
- import { StyledFormGroup } from '../Item.styles';
21
- import { getChoiceOrientation } from '../../../utils/choice';
22
- function ChoiceCheckboxFields(props) {
23
- var _a;
24
- const { qItem, options, answers, readOnly, onCheckedChange } = props;
25
- const orientation = (_a = getChoiceOrientation(qItem)) !== null && _a !== void 0 ? _a : ChoiceItemOrientation.Vertical;
26
- return (React.createElement(StyledFormGroup, { row: orientation === ChoiceItemOrientation.Horizontal }, options.map((option) => {
27
- var _a, _b, _c;
28
- if (option['valueCoding']) {
29
- return (React.createElement(QItemChoiceCheckboxSingle, { key: (_a = option.valueCoding.code) !== null && _a !== void 0 ? _a : '', value: (_b = option.valueCoding.code) !== null && _b !== void 0 ? _b : '', label: (_c = option.valueCoding.display) !== null && _c !== void 0 ? _c : `${option.valueCoding.code}`, readOnly: readOnly, isChecked: answers.some((answer) => JSON.stringify(answer) === JSON.stringify(option)), onCheckedChange: onCheckedChange }));
30
- }
31
- if (option['valueString']) {
32
- return (React.createElement(QItemChoiceCheckboxSingle, { key: option.valueString, value: option.valueString, label: option.valueString, readOnly: readOnly, isChecked: answers.some((answer) => answer.valueString === option.valueString), onCheckedChange: onCheckedChange }));
33
- }
34
- if (option['valueInteger']) {
35
- return (React.createElement(QItemChoiceCheckboxSingle, { key: option.valueInteger, value: option.valueInteger.toString(), label: option.valueInteger.toString(), readOnly: readOnly, isChecked: answers.some((answer) => answer.valueInteger === option.valueInteger), onCheckedChange: onCheckedChange }));
36
- }
37
- return null;
38
- })));
39
- }
40
- export default ChoiceCheckboxFields;
41
- //# sourceMappingURL=CheckboxFields.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CheckboxFields.js","sourceRoot":"","sources":["../../../../src/components/FormComponents/ChoiceItems/CheckboxFields.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAMxE,OAAO,yBAAyB,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAU7D,SAAS,oBAAoB,CAAC,KAAgC;;IAC5D,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,GAAG,KAAK,CAAC;IAErE,MAAM,WAAW,GAAG,MAAA,oBAAoB,CAAC,KAAK,CAAC,mCAAI,qBAAqB,CAAC,QAAQ,CAAC;IAElF,OAAO,CACL,oBAAC,eAAe,IAAC,GAAG,EAAE,WAAW,KAAK,qBAAqB,CAAC,UAAU,IACnE,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM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,EAAE,EAAE,CAAC,MAAM,CAAC,YAAY,KAAK,MAAM,CAAC,YAAY,CAAC,EAChF,eAAe,EAAE,eAAe,GAChC,CACH,CAAC;SACH;QAED,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CACc,CACnB,CAAC;AACJ,CAAC;AAED,eAAe,oBAAoB,CAAC"}
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import type { QuestionnaireItem, QuestionnaireItemAnswerOption, QuestionnaireResponseItemAnswer } from 'fhir/r4';
3
- interface CheckboxFieldsProps {
4
- qItem: QuestionnaireItem;
5
- options: QuestionnaireItemAnswerOption[];
6
- answers: QuestionnaireResponseItemAnswer[];
7
- readOnly: boolean;
8
- onCheckedChange: (newValue: string) => void;
9
- }
10
- declare function CheckboxOptionFields(props: CheckboxFieldsProps): React.JSX.Element;
11
- export default CheckboxOptionFields;
@@ -1,41 +0,0 @@
1
- /*
2
- * Copyright 2024 Commonwealth Scientific and Industrial Research
3
- * Organisation (CSIRO) ABN 41 687 119 230.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import React from 'react';
18
- import { ChoiceItemOrientation } from '../../../interfaces/choice.enum';
19
- import CheckboxSingle from '../ItemParts/CheckboxSingle';
20
- import { StyledFormGroup } from '../Item.styles';
21
- import { getChoiceOrientation } from '../../../utils/choice';
22
- function CheckboxOptionFields(props) {
23
- var _a;
24
- const { qItem, options, answers, readOnly, onCheckedChange } = props;
25
- const orientation = (_a = getChoiceOrientation(qItem)) !== null && _a !== void 0 ? _a : ChoiceItemOrientation.Vertical;
26
- return (React.createElement(StyledFormGroup, { row: orientation === ChoiceItemOrientation.Horizontal }, options.map((option) => {
27
- var _a, _b, _c;
28
- if (option['valueCoding']) {
29
- return (React.createElement(CheckboxSingle, { key: (_a = option.valueCoding.code) !== null && _a !== void 0 ? _a : '', value: (_b = option.valueCoding.code) !== null && _b !== void 0 ? _b : '', label: (_c = option.valueCoding.display) !== null && _c !== void 0 ? _c : `${option.valueCoding.code}`, readOnly: readOnly, isChecked: answers.some((answer) => JSON.stringify(answer) === JSON.stringify(option)), onCheckedChange: onCheckedChange }));
30
- }
31
- if (option['valueString']) {
32
- return (React.createElement(CheckboxSingle, { key: option.valueString, value: option.valueString, label: option.valueString, readOnly: readOnly, isChecked: answers.some((answer) => answer.valueString === option.valueString), onCheckedChange: onCheckedChange }));
33
- }
34
- if (option['valueInteger']) {
35
- return (React.createElement(CheckboxSingle, { key: option.valueInteger, value: option.valueInteger.toString(), label: option.valueInteger.toString(), readOnly: readOnly, isChecked: answers.some((answer) => answer.valueInteger === option.valueInteger), onCheckedChange: onCheckedChange }));
36
- }
37
- return null;
38
- })));
39
- }
40
- export default CheckboxOptionFields;
41
- //# sourceMappingURL=CheckboxOptionFields.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CheckboxOptionFields.js","sourceRoot":"","sources":["../../../../src/components/FormComponents/ChoiceItems/CheckboxOptionFields.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAMxE,OAAO,cAAc,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAU7D,SAAS,oBAAoB,CAAC,KAA0B;;IACtD,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,GAAG,KAAK,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MAAM,CAAC,YAAY,EACxB,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,EACrC,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,EACrC,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,YAAY,KAAK,MAAM,CAAC,YAAY,CAAC,EAChF,eAAe,EAAE,eAAe,GAChC,CACH,CAAC;SACH;QAED,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CACc,CACnB,CAAC;AACJ,CAAC;AAED,eAAe,oBAAoB,CAAC"}
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import type { QuestionnaireItem, QuestionnaireItemAnswerOption, QuestionnaireResponseItemAnswer } from 'fhir/r4';
3
- import type { TerminologyError } from '../../../hooks/useValueSetCodings';
4
- interface ChoiceCheckboxAnswerValueSetViewProps {
5
- qItem: QuestionnaireItem;
6
- options: QuestionnaireItemAnswerOption[];
7
- answers: QuestionnaireResponseItemAnswer[];
8
- readOnly: boolean;
9
- terminologyError: TerminologyError;
10
- onCheckedChange: (newValue: string) => void;
11
- }
12
- declare function ChoiceCheckboxAnswerValueSetView(props: ChoiceCheckboxAnswerValueSetViewProps): React.JSX.Element;
13
- export default ChoiceCheckboxAnswerValueSetView;
@@ -1,46 +0,0 @@
1
- /*
2
- * Copyright 2024 Commonwealth Scientific and Industrial Research
3
- * Organisation (CSIRO) ABN 41 687 119 230.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import React from 'react';
18
- import { StyledAlert } from '../../Alert.styles';
19
- import ErrorOutlineIcon from '@mui/icons-material/ErrorOutline';
20
- import Typography from '@mui/material/Typography';
21
- import { getChoiceOrientation } from '../../../utils/choice';
22
- import { ChoiceItemOrientation } from '../../../interfaces/choice.enum';
23
- import CheckboxOptionList from './CheckboxOptionList';
24
- import { StyledFormGroup } from '../Item.styles';
25
- function ChoiceCheckboxAnswerValueSetView(props) {
26
- var _a;
27
- const { qItem, options, answers, readOnly, terminologyError, onCheckedChange } = props;
28
- const orientation = (_a = getChoiceOrientation(qItem)) !== null && _a !== void 0 ? _a : ChoiceItemOrientation.Vertical;
29
- if (options.length > 0) {
30
- return (React.createElement(StyledFormGroup, { row: orientation === ChoiceItemOrientation.Horizontal },
31
- React.createElement(CheckboxOptionList, { options: options, answers: answers, readOnly: readOnly, onCheckedChange: onCheckedChange })));
32
- }
33
- if (terminologyError.error) {
34
- return (React.createElement(StyledAlert, { color: "error" },
35
- React.createElement(ErrorOutlineIcon, { color: "error", sx: { pr: 0.75 } }),
36
- React.createElement(Typography, { variant: "subtitle2" },
37
- "There was an error fetching options from the terminology server for",
38
- ' ',
39
- terminologyError.answerValueSet)));
40
- }
41
- return (React.createElement(StyledAlert, { color: "error" },
42
- React.createElement(ErrorOutlineIcon, { color: "error", sx: { pr: 0.75 } }),
43
- React.createElement(Typography, { variant: "subtitle2" }, "Unable to fetch options from the questionnaire or launch context")));
44
- }
45
- export default ChoiceCheckboxAnswerValueSetView;
46
- //# sourceMappingURL=ChoiceCheckboxAnswerValueSetView.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChoiceCheckboxAnswerValueSetView.js","sourceRoot":"","sources":["../../../../src/components/FormComponents/ChoiceItems/ChoiceCheckboxAnswerValueSetView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;A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,IAAI,EAAE,GAAI;QACpD,oBAAC,UAAU,IAAC,OAAO,EAAC,WAAW,uEAElB,CACD,CACf,CAAC;AACJ,CAAC;AAED,eAAe,gCAAgC,CAAC"}
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import type { QuestionnaireItem, QuestionnaireItemAnswerOption, QuestionnaireResponseItemAnswer } from 'fhir/r4';
3
- interface ChoiceCheckboxFieldsProps {
4
- qItem: QuestionnaireItem;
5
- options: QuestionnaireItemAnswerOption[];
6
- answers: QuestionnaireResponseItemAnswer[];
7
- readOnly: boolean;
8
- onCheckedChange: (newValue: string) => void;
9
- }
10
- declare function ChoiceCheckboxFields(props: ChoiceCheckboxFieldsProps): React.JSX.Element;
11
- export default ChoiceCheckboxFields;
@@ -1,41 +0,0 @@
1
- /*
2
- * Copyright 2024 Commonwealth Scientific and Industrial Research
3
- * Organisation (CSIRO) ABN 41 687 119 230.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import React from 'react';
18
- import { ChoiceItemOrientation } from '../../../interfaces/choice.enum';
19
- import CheckboxSingle from '../ItemParts/CheckboxSingle';
20
- import { StyledFormGroup } from '../Item.styles';
21
- import { getChoiceOrientation } from '../../../utils/choice';
22
- function ChoiceCheckboxFields(props) {
23
- var _a;
24
- const { qItem, options, answers, readOnly, onCheckedChange } = props;
25
- const orientation = (_a = getChoiceOrientation(qItem)) !== null && _a !== void 0 ? _a : ChoiceItemOrientation.Vertical;
26
- return (React.createElement(StyledFormGroup, { row: orientation === ChoiceItemOrientation.Horizontal }, options.map((option) => {
27
- var _a, _b, _c;
28
- if (option['valueCoding']) {
29
- return (React.createElement(CheckboxSingle, { key: (_a = option.valueCoding.code) !== null && _a !== void 0 ? _a : '', value: (_b = option.valueCoding.code) !== null && _b !== void 0 ? _b : '', label: (_c = option.valueCoding.display) !== null && _c !== void 0 ? _c : `${option.valueCoding.code}`, readOnly: readOnly, isChecked: answers.some((answer) => JSON.stringify(answer) === JSON.stringify(option)), onCheckedChange: onCheckedChange }));
30
- }
31
- if (option['valueString']) {
32
- return (React.createElement(CheckboxSingle, { key: option.valueString, value: option.valueString, label: option.valueString, readOnly: readOnly, isChecked: answers.some((answer) => answer.valueString === option.valueString), onCheckedChange: onCheckedChange }));
33
- }
34
- if (option['valueInteger']) {
35
- return (React.createElement(CheckboxSingle, { key: option.valueInteger, value: option.valueInteger.toString(), label: option.valueInteger.toString(), readOnly: readOnly, isChecked: answers.some((answer) => answer.valueInteger === option.valueInteger), onCheckedChange: onCheckedChange }));
36
- }
37
- return null;
38
- })));
39
- }
40
- export default ChoiceCheckboxFields;
41
- //# sourceMappingURL=ChoiceCheckboxFields.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChoiceCheckboxFields.js","sourceRoot":"","sources":["../../../../src/components/FormComponents/ChoiceItems/ChoiceCheckboxFields.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAMxE,OAAO,cAAc,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAU7D,SAAS,oBAAoB,CAAC,KAAgC;;IAC5D,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,GAAG,KAAK,CAAC;IAErE,MAAM,WAAW,GAAG,MAAA,oBAAoB,CAAC,KAA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CAAC,QAAQ,EAAE,EACrC,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,EACrC,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,YAAY,KAAK,MAAM,CAAC,YAAY,CAAC,EAChF,eAAe,EAAE,eAAe,GAChC,CACH,CAAC;SACH;QAED,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CACc,CACnB,CAAC;AACJ,CAAC;AAED,eAAe,oBAAoB,CAAC"}
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import type { PropsWithIsTabledAttribute } from '../../../interfaces/renderProps.interface';
3
- import type { Dayjs } from 'dayjs';
4
- interface DateTimeFieldProps extends PropsWithIsTabledAttribute {
5
- value: Dayjs | null;
6
- displayPrompt: string;
7
- entryFormat: string;
8
- readOnly: boolean;
9
- onDateTimeChange: (newValue: Dayjs | null) => unknown;
10
- }
11
- declare function DateTimeField(props: DateTimeFieldProps): React.JSX.Element;
12
- export default DateTimeField;
@@ -1,34 +0,0 @@
1
- /*
2
- * Copyright 2024 Commonwealth Scientific and Industrial Research
3
- * Organisation (CSIRO) ABN 41 687 119 230.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import React from 'react';
18
- import { DateTimePicker as MuiDateTimePicker, LocalizationProvider } from '@mui/x-date-pickers';
19
- import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';
20
- import Box from '@mui/material/Box';
21
- import { TEXT_FIELD_WIDTH } from '../Textfield.styles';
22
- function DateTimeField(props) {
23
- const { value, displayPrompt, entryFormat, readOnly, isTabled, onDateTimeChange } = props;
24
- return (React.createElement(LocalizationProvider, { dateAdapter: AdapterDayjs },
25
- React.createElement(Box, { "data-test": "q-item-date-time-field" },
26
- React.createElement(MuiDateTimePicker, { format: entryFormat !== '' ? entryFormat : 'DD/MM/YYYY hh:mm A', value: value, disabled: readOnly, label: displayPrompt, sx: { maxWidth: !isTabled ? TEXT_FIELD_WIDTH : 3000, minWidth: 160 }, onChange: onDateTimeChange, slotProps: {
27
- textField: {
28
- size: 'small',
29
- fullWidth: true
30
- }
31
- } }))));
32
- }
33
- export default DateTimeField;
34
- //# sourceMappingURL=DateTimeField.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DateTimeField.js","sourceRoot":"","sources":["../../../../src/components/FormComponents/DateTimeItem/DateTimeField.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAChG,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,GAAG,MAAM,mBAAmB,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAUvD,SAAS,aAAa,CAAC,KAAyB;IAC9C,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,gBAAgB,EAAE,GAAG,KAAK,CAAC;IAE1F,OAAO,CACL,oBAAC,oBAAoB,IAAC,WAAW,EAAE,YAAY;QAC7C,oBAAC,GAAG,iBAAW,wBAAwB;YACrC,oBAAC,iBAAiB,IAChB,MAAM,EAAE,WAAW,KAAK,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,oBAAoB,EAC/D,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,aAAa,EACpB,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,EACpE,QAAQ,EAAE,gBAAgB,EAC1B,SAAS,EAAE;oBACT,SAAS,EAAE;wBACT,IAAI,EAAE,OAAO;wBACb,SAAS,EAAE,IAAI;qBAChB;iBACF,GACD,CACE,CACe,CACxB,CAAC;AACJ,CAAC;AAED,eAAe,aAAa,CAAC"}
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import type { PropsWithIsRepeatedAttribute, PropsWithIsTabledAttribute, PropsWithParentIsReadOnlyAttribute, PropsWithQrItemChangeHandler } from '../../../interfaces/renderProps.interface';
3
- import type { QuestionnaireItem, QuestionnaireResponseItem } from 'fhir/r4';
4
- interface DateTimeItemProps extends PropsWithQrItemChangeHandler, PropsWithIsRepeatedAttribute, PropsWithIsTabledAttribute, PropsWithParentIsReadOnlyAttribute {
5
- qItem: QuestionnaireItem;
6
- qrItem: QuestionnaireResponseItem | null;
7
- }
8
- declare function DateTimeItem(props: DateTimeItemProps): React.JSX.Element;
9
- export default DateTimeItem;
@@ -1,60 +0,0 @@
1
- /*
2
- * Copyright 2024 Commonwealth Scientific and Industrial Research
3
- * Organisation (CSIRO) ABN 41 687 119 230.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import React from 'react';
18
- import useRenderingExtensions from '../../../hooks/useRenderingExtensions';
19
- import { createEmptyQrItem } from '../../../utils/qrItem';
20
- import { FullWidthFormComponentBox } from '../../Box.styles';
21
- import ItemFieldGrid from '../ItemParts/ItemFieldGrid';
22
- import DateTimeField from './DateTimeField';
23
- import dayjs from 'dayjs';
24
- import useReadOnly from '../../../hooks/useReadOnly';
25
- import { useQuestionnaireStore } from '../../../stores';
26
- function DateTimeItem(props) {
27
- const { qItem, qrItem, isRepeated, isTabled, parentIsReadOnly, onQrItemChange } = props;
28
- const onFocusLinkId = useQuestionnaireStore.use.onFocusLinkId();
29
- const readOnly = useReadOnly(qItem, parentIsReadOnly);
30
- const { displayPrompt, entryFormat } = useRenderingExtensions(qItem);
31
- // Init input value
32
- let dateTimeString = null;
33
- if (qrItem === null || qrItem === void 0 ? void 0 : qrItem.answer) {
34
- if (qrItem === null || qrItem === void 0 ? void 0 : qrItem.answer[0].valueDate) {
35
- dateTimeString = qrItem.answer[0].valueDate;
36
- }
37
- else if (qrItem === null || qrItem === void 0 ? void 0 : qrItem.answer[0].valueDateTime) {
38
- dateTimeString = qrItem.answer[0].valueDateTime;
39
- }
40
- }
41
- const dateTimeDayJs = dateTimeString ? dayjs(dateTimeString) : null;
42
- // Event handlers
43
- function handleDateTimeChange(newValue) {
44
- const emptyQrItem = createEmptyQrItem(qItem);
45
- if (newValue) {
46
- onQrItemChange(Object.assign(Object.assign({}, emptyQrItem), { answer: [{ valueDateTime: newValue.format() }] }));
47
- }
48
- else {
49
- onQrItemChange(emptyQrItem);
50
- }
51
- }
52
- if (isRepeated) {
53
- return (React.createElement(DateTimeField, { value: dateTimeDayJs, displayPrompt: displayPrompt, entryFormat: entryFormat, readOnly: readOnly, onDateTimeChange: handleDateTimeChange, isTabled: isTabled }));
54
- }
55
- return (React.createElement(FullWidthFormComponentBox, { "data-test": "q-item-date-time-box", "data-linkid": qItem.linkId, onClick: () => onFocusLinkId(qItem.linkId) },
56
- React.createElement(ItemFieldGrid, { qItem: qItem, readOnly: readOnly },
57
- React.createElement(DateTimeField, { value: dateTimeDayJs, displayPrompt: displayPrompt, entryFormat: entryFormat, readOnly: readOnly, onDateTimeChange: handleDateTimeChange, isTabled: isTabled }))));
58
- }
59
- export default DateTimeItem;
60
- //# sourceMappingURL=DateTimeItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DateTimeItem.js","sourceRoot":"","sources":["../../../../src/components/FormComponents/DateTimeItem/DateTimeItem.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,sBAAsB,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,aAAa,MAAM,4BAA4B,CAAC;AACvD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAWxD,SAAS,YAAY,CAAC,KAAwB;IAC5C,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,gBAAgB,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IAExF,MAAM,aAAa,GAAG,qBAAqB,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC;IAEhE,MAAM,QAAQ,GAAG,WAAW,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC;IACtD,MAAM,EAAE,aAAa,EAAE,WAAW,EAAE,GAAG,sBAAsB,CAAC,KAAK,CAAC,CAAC;IAErE,mBAAmB;IACnB,IAAI,cAAc,GAAkB,IAAI,CAAC;IACzC,IAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,EAAE;QAClB,IAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,CAAC,CAAC,EAAE,SAAS,EAAE;YAC/B,cAAc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AAE,oBAAoB,EACtC,QAAQ,EAAE,QAAQ,GAClB,CACY,CACU,CAC7B,CAAC;AACJ,CAAC;AAED,eAAe,YAAY,CAAC"}
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import type { Tabs } from '../../../interfaces/tab.interface';
3
- interface NextTabButtonWrapperProps {
4
- currentTabIndex?: number;
5
- tabs?: Tabs;
6
- }
7
- declare const NextTabButtonWrapper: React.NamedExoticComponent<NextTabButtonWrapperProps>;
8
- export default NextTabButtonWrapper;
@@ -1,57 +0,0 @@
1
- /*
2
- * Copyright 2024 Commonwealth Scientific and Industrial Research
3
- * Organisation (CSIRO) ABN 41 687 119 230.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import React, { memo } from 'react';
18
- import Box from '@mui/material/Box';
19
- import { findNumOfVisibleTabs, getNextVisibleTabIndex } from '../../../utils/tabs';
20
- import { useQuestionnaireStore } from '../../../stores';
21
- import NextTabButton from './NextTabButton';
22
- const NextTabButtonWrapper = memo(function NextTabWrapper(props) {
23
- const { currentTabIndex, tabs } = props;
24
- const enableWhenIsActivated = useQuestionnaireStore.use.enableWhenIsActivated();
25
- const enableWhenItems = useQuestionnaireStore.use.enableWhenItems();
26
- const enableWhenExpressions = useQuestionnaireStore.use.enableWhenExpressions();
27
- const switchTab = useQuestionnaireStore.use.switchTab();
28
- const tabsNotDefined = currentTabIndex === undefined || tabs === undefined;
29
- function handleNextTabClick() {
30
- if (tabsNotDefined) {
31
- return;
32
- }
33
- const nextVisibleTabIndex = getNextVisibleTabIndex({
34
- tabs,
35
- currentTabIndex,
36
- enableWhenIsActivated,
37
- enableWhenItems,
38
- enableWhenExpressions
39
- });
40
- switchTab(nextVisibleTabIndex);
41
- // Scroll to top of page
42
- window.scrollTo(0, 0);
43
- }
44
- if (tabsNotDefined) {
45
- return null;
46
- }
47
- if (currentTabIndex === Object.keys(tabs).length - 1) {
48
- return null;
49
- }
50
- const buttonIsDisabled = findNumOfVisibleTabs(tabs, enableWhenIsActivated, enableWhenItems, enableWhenExpressions) <= 1;
51
- return (React.createElement(Box, { display: "flex", mt: 3 },
52
- React.createElement(NextTabButton, { isDisabled: buttonIsDisabled, onNextTabClick: handleNextTabClick }),
53
- React.createElement(Box, { flexGrow: 1 }),
54
- React.createElement(NextTabButton, { isDisabled: buttonIsDisabled, onNextTabClick: handleNextTabClick })));
55
- });
56
- export default NextTabButtonWrapper;
57
- //# sourceMappingURL=NextTabButtonWrapper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NextTabButtonWrapper.js","sourceRoot":"","sources":["../../../../src/components/FormComponents/GroupItem/NextTabButtonWrapper.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,GAAG,MAAM,mBAAmB,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAEnF,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAO5C,MAAM,oBAAoB,GAAG,IAAI,CAAC,SAAS,cAAc,CAAC,KAAgC;IACxF,MAAM,EAAE,eAAe,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IAExC,MAAM,qBAAqB,GAAG,qBAAqB,CAAC,GAAG,CAAC,qBAAqB,EAAE,CAAC;IAChF,MAAM,eAAe,GAAG,qBAAqB,CAAC,GAAG,CAAC,eAAe,EAAE,CAAC;IACpE,MAAM,qBAAqB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{
4
- qItem: QuestionnaireItem;
5
- readOnly: boolean;
6
- }
7
- declare function RadioAnswerOptionButtons(props: RadioAnswerOptionButtonsProps): React.JSX.Element;
8
- export default RadioAnswerOptionButtons;