@aehrc/smart-forms-renderer 1.0.0-alpha.42.dev2 → 1.0.0-alpha.42.dev4
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/package.json +1 -6
- package/.storybook/main.ts +0 -34
- package/.storybook/preview.tsx +0 -40
- package/src/stories/assets/fhirClient/mockFhirClient.ts +0 -52
- package/src/stories/assets/patients/PatSmartForm.ts +0 -281
- package/src/stories/assets/practitioners/PracPrimaryPeter.ts +0 -38
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreAllergyIntolerance.json +0 -209
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreCondition.json +0 -220
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreEncounter.json +0 -299
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreImmunization.json +0 -175
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreMedicationRequest.json +0 -229
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationBP.json +0 -359
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationBodyHeight.json +0 -195
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationBodyWeight.json +0 -195
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationHeartRate.json +0 -195
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreObservationSmokingStatus.json +0 -174
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCorePatient.json +0 -495
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCorePractitioner.json +0 -139
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCorePractitionerRole.json +0 -216
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreProcedure.json +0 -199
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreRespirationRate.json +0 -195
- package/src/stories/assets/questionnaires/AuCoreTestingJson/AuCoreWaistCircumference.json +0 -195
- package/src/stories/assets/questionnaires/QAdvancedAdditionalDisplayContent.ts +0 -113
- package/src/stories/assets/questionnaires/QAdvancedControlAppearance.ts +0 -865
- package/src/stories/assets/questionnaires/QAdvancedOther.ts +0 -494
- package/src/stories/assets/questionnaires/QAdvancedTextApperance.ts +0 -503
- package/src/stories/assets/questionnaires/QAttachment.ts +0 -38
- package/src/stories/assets/questionnaires/QAuCoreTesting.ts +0 -3796
- package/src/stories/assets/questionnaires/QBehaviorCalculations.ts +0 -643
- package/src/stories/assets/questionnaires/QBehaviorChoiceRestriction.ts +0 -281
- package/src/stories/assets/questionnaires/QBehaviorOther.ts +0 -1241
- package/src/stories/assets/questionnaires/QBehaviorValueConstraints.ts +0 -508
- package/src/stories/assets/questionnaires/QBoolean.ts +0 -180
- package/src/stories/assets/questionnaires/QButtonTester.ts +0 -497
- package/src/stories/assets/questionnaires/QChoice.ts +0 -493
- package/src/stories/assets/questionnaires/QDate.ts +0 -56
- package/src/stories/assets/questionnaires/QDateTime.ts +0 -56
- package/src/stories/assets/questionnaires/QDecimal.ts +0 -56
- package/src/stories/assets/questionnaires/QDisplay.ts +0 -197
- package/src/stories/assets/questionnaires/QFormPopulation.ts +0 -1349
- package/src/stories/assets/questionnaires/QGroup.ts +0 -52
- package/src/stories/assets/questionnaires/QGroupTableTester.ts +0 -461
- package/src/stories/assets/questionnaires/QIdRemoverDebugger.ts +0 -161
- package/src/stories/assets/questionnaires/QInteger.ts +0 -119
- package/src/stories/assets/questionnaires/QItemControlDisplay.ts +0 -558
- package/src/stories/assets/questionnaires/QItemControlGroup.ts +0 -1530
- package/src/stories/assets/questionnaires/QItemControlQuestion.ts +0 -1271
- package/src/stories/assets/questionnaires/QMbs715Tester.ts +0 -32888
- package/src/stories/assets/questionnaires/QOpenChoice.ts +0 -151
- package/src/stories/assets/questionnaires/QParameterisedValueSets.ts +0 -312
- package/src/stories/assets/questionnaires/QPrePopTester.ts +0 -543
- package/src/stories/assets/questionnaires/QQuantity.ts +0 -365
- package/src/stories/assets/questionnaires/QReference.ts +0 -38
- package/src/stories/assets/questionnaires/QSingleItems.ts +0 -251
- package/src/stories/assets/questionnaires/QString.ts +0 -131
- package/src/stories/assets/questionnaires/QTerminologyControl.ts +0 -59
- package/src/stories/assets/questionnaires/QText.ts +0 -169
- package/src/stories/assets/questionnaires/QTime.ts +0 -38
- package/src/stories/assets/questionnaires/QUrl.ts +0 -38
- package/src/stories/assets/questionnaires/QValidateTester.ts +0 -118
- package/src/stories/assets/questionnaires/index.ts +0 -43
- package/src/stories/itemTypes/Attachment.stories.tsx +0 -39
- package/src/stories/itemTypes/Boolean.stories.tsx +0 -65
- package/src/stories/itemTypes/Choice.stories.tsx +0 -78
- package/src/stories/itemTypes/Date.stories.tsx +0 -46
- package/src/stories/itemTypes/DateTime.stories.tsx +0 -45
- package/src/stories/itemTypes/Decimal.stories.tsx +0 -56
- package/src/stories/itemTypes/Display.stories.tsx +0 -55
- package/src/stories/itemTypes/Group.stories.tsx +0 -39
- package/src/stories/itemTypes/Integer.stories.tsx +0 -55
- package/src/stories/itemTypes/OpenChoice.stories.tsx +0 -64
- package/src/stories/itemTypes/Quantity.stories.tsx +0 -71
- package/src/stories/itemTypes/Reference.stories.tsx +0 -39
- package/src/stories/itemTypes/String.stories.tsx +0 -51
- package/src/stories/itemTypes/Text.stories.tsx +0 -51
- package/src/stories/itemTypes/Time.stories.tsx +0 -39
- package/src/stories/itemTypes/Url.stories.tsx +0 -39
- package/src/stories/sdc/AdvancedAdditionalDisplayContent.stories.tsx +0 -51
- package/src/stories/sdc/AdvancedControlAppearance.stories.tsx +0 -90
- package/src/stories/sdc/AdvancedOther.stories.tsx +0 -76
- package/src/stories/sdc/AdvancedTextAppearance.stories.tsx +0 -104
- package/src/stories/sdc/BehaviorCalculations.stories.tsx +0 -69
- package/src/stories/sdc/BehaviorChoiceRestriction.stories.tsx +0 -76
- package/src/stories/sdc/BehaviorOther.stories.tsx +0 -97
- package/src/stories/sdc/BehaviorValueConstraints.stories.tsx +0 -88
- package/src/stories/sdc/FormPopulation.stories.tsx +0 -97
- package/src/stories/sdc/ItemControlDisplay.stories.tsx +0 -69
- package/src/stories/sdc/ItemControlGroup.stories.tsx +0 -90
- package/src/stories/sdc/ItemControlQuestion.stories.tsx +0 -118
- package/src/stories/sdc/OtherExtensions.stories.tsx +0 -39
- package/src/stories/sdc/ParameterisedValueSets.stories.tsx +0 -48
- package/src/stories/storybookWrappers/BuildFormButtonForStorybook.tsx +0 -54
- package/src/stories/storybookWrappers/BuildFormButtonTesterWrapperForStorybook.tsx +0 -76
- package/src/stories/storybookWrappers/BuildFormWrapperForStorybook.tsx +0 -61
- package/src/stories/storybookWrappers/FormValidationTesterWrapperForStorybook.tsx +0 -70
- package/src/stories/storybookWrappers/FormValidationViewerForStorybook.tsx +0 -28
- package/src/stories/storybookWrappers/IdRemoverButtonForStorybook.tsx +0 -49
- package/src/stories/storybookWrappers/IdRemoverDebuggerWrapperForStorybook.tsx +0 -84
- package/src/stories/storybookWrappers/InitialiseFormWrapperForStorybook.tsx +0 -105
- package/src/stories/storybookWrappers/PrePopButtonForStorybook.tsx +0 -56
- package/src/stories/storybookWrappers/PrePopWrapperForStorybook.tsx +0 -114
- package/src/stories/storybookWrappers/TestCssSheet.css +0 -17
- package/src/stories/storybookWrappers/ValidateFormButtonForStorybook.tsx +0 -41
- package/src/stories/storybookWrappers/globals.ts +0 -18
- package/src/stories/storybookWrappers/iframeResizerChild.js +0 -1063
- package/src/stories/storybookWrappers/index.ts +0 -19
- package/src/stories/storybookWrappers/populateCallbackForStorybook.ts +0 -55
- package/src/stories/testing/AuCoreTester.stories.tsx +0 -196
- package/src/stories/testing/BuildFormButtonTesterWrapper.stories.tsx +0 -40
- package/src/stories/testing/GroupTableTester.stories.tsx +0 -39
- package/src/stories/testing/IdRemoverDebuggerWrapper.stories.tsx +0 -39
- package/src/stories/testing/Mbs715Tester.stories.tsx +0 -57
- package/src/stories/testing/PrePopButtonTesterWrapper.stories.tsx +0 -55
- package/src/stories/testing/ValidateFormTesterWrapper.stories.tsx +0 -39
|
@@ -1,65 +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
|
-
|
|
18
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
19
|
-
import {
|
|
20
|
-
qBooleanBasic,
|
|
21
|
-
qBooleanCalculation,
|
|
22
|
-
qBooleanCheckbox,
|
|
23
|
-
qrBooleanBasicResponse,
|
|
24
|
-
qrBooleanCheckboxResponse
|
|
25
|
-
} from '../assets/questionnaires';
|
|
26
|
-
import BuildFormWrapperForStorybook from '../storybookWrappers/BuildFormWrapperForStorybook'; // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
27
|
-
|
|
28
|
-
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
29
|
-
const meta = {
|
|
30
|
-
title: 'ItemType/Boolean',
|
|
31
|
-
component: BuildFormWrapperForStorybook,
|
|
32
|
-
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
33
|
-
tags: []
|
|
34
|
-
} satisfies Meta<typeof BuildFormWrapperForStorybook>;
|
|
35
|
-
|
|
36
|
-
export default meta;
|
|
37
|
-
type Story = StoryObj<typeof meta>;
|
|
38
|
-
|
|
39
|
-
// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
|
|
40
|
-
|
|
41
|
-
export const BooleanBasic: Story = {
|
|
42
|
-
args: {
|
|
43
|
-
questionnaire: qBooleanBasic
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export const BooleanBasicResponse: Story = {
|
|
48
|
-
args: {
|
|
49
|
-
questionnaire: qBooleanBasic,
|
|
50
|
-
questionnaireResponse: qrBooleanBasicResponse
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
export const BooleanCheckboxResponse: Story = {
|
|
55
|
-
args: {
|
|
56
|
-
questionnaire: qBooleanCheckbox,
|
|
57
|
-
questionnaireResponse: qrBooleanCheckboxResponse
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export const BooleanCalculation: Story = {
|
|
62
|
-
args: {
|
|
63
|
-
questionnaire: qBooleanCalculation
|
|
64
|
-
}
|
|
65
|
-
};
|
|
@@ -1,78 +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
|
-
|
|
18
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
19
|
-
import BuildFormWrapperForStorybook from '../storybookWrappers/BuildFormWrapperForStorybook';
|
|
20
|
-
import {
|
|
21
|
-
qChoiceAnswerOptionBasic,
|
|
22
|
-
qChoiceAnswerOptionCalculation,
|
|
23
|
-
qChoiceAnswerValueSetBasic,
|
|
24
|
-
qChoiceAnswerValueSetCalculation,
|
|
25
|
-
qrChoiceAnswerOptionBasicResponse,
|
|
26
|
-
qrChoiceAnswerValueSetBasicResponse
|
|
27
|
-
} from '../assets/questionnaires';
|
|
28
|
-
|
|
29
|
-
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
30
|
-
const meta = {
|
|
31
|
-
title: 'ItemType/Choice',
|
|
32
|
-
component: BuildFormWrapperForStorybook,
|
|
33
|
-
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
34
|
-
tags: []
|
|
35
|
-
} satisfies Meta<typeof BuildFormWrapperForStorybook>;
|
|
36
|
-
|
|
37
|
-
export default meta;
|
|
38
|
-
type Story = StoryObj<typeof meta>;
|
|
39
|
-
|
|
40
|
-
// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
|
|
41
|
-
|
|
42
|
-
export const ChoiceAnswerOptionBasic: Story = {
|
|
43
|
-
args: {
|
|
44
|
-
questionnaire: qChoiceAnswerOptionBasic
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export const ChoiceAnswerOptionBasicResponse: Story = {
|
|
49
|
-
args: {
|
|
50
|
-
questionnaire: qChoiceAnswerOptionBasic,
|
|
51
|
-
questionnaireResponse: qrChoiceAnswerOptionBasicResponse
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
export const ChoiceAnswerValueSetBasic: Story = {
|
|
56
|
-
args: {
|
|
57
|
-
questionnaire: qChoiceAnswerValueSetBasic
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export const ChoiceAnswerValueSetBasicResponse: Story = {
|
|
62
|
-
args: {
|
|
63
|
-
questionnaire: qChoiceAnswerValueSetBasic,
|
|
64
|
-
questionnaireResponse: qrChoiceAnswerValueSetBasicResponse
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
export const ChoiceAnswerOptionCalculation: Story = {
|
|
69
|
-
args: {
|
|
70
|
-
questionnaire: qChoiceAnswerOptionCalculation
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
export const ChoiceAnswerValueSetCalculation: Story = {
|
|
75
|
-
args: {
|
|
76
|
-
questionnaire: qChoiceAnswerValueSetCalculation
|
|
77
|
-
}
|
|
78
|
-
};
|
|
@@ -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
|
-
|
|
18
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
19
|
-
import BuildFormWrapperForStorybook from '../storybookWrappers/BuildFormWrapperForStorybook';
|
|
20
|
-
import { qDateBasic, qrDateBasicResponse } from '../assets/questionnaires';
|
|
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: 'ItemType/Date',
|
|
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 DateBasic: Story = {
|
|
36
|
-
args: {
|
|
37
|
-
questionnaire: qDateBasic
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export const DateBasicResponse: Story = {
|
|
42
|
-
args: {
|
|
43
|
-
questionnaire: qDateBasic,
|
|
44
|
-
questionnaireResponse: qrDateBasicResponse
|
|
45
|
-
}
|
|
46
|
-
};
|
|
@@ -1,45 +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
|
-
|
|
18
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
19
|
-
import BuildFormWrapperForStorybook from '../storybookWrappers/BuildFormWrapperForStorybook';
|
|
20
|
-
import { qDateTimeBasic, qrDateTimeBasicResponse } from '../assets/questionnaires';
|
|
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: 'ItemType/DateTime',
|
|
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 DateTimeBasic: Story = {
|
|
36
|
-
args: {
|
|
37
|
-
questionnaire: qDateTimeBasic
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
export const DateTimeBasicResponse: Story = {
|
|
41
|
-
args: {
|
|
42
|
-
questionnaire: qDateTimeBasic,
|
|
43
|
-
questionnaireResponse: qrDateTimeBasicResponse
|
|
44
|
-
}
|
|
45
|
-
};
|
|
@@ -1,56 +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
|
-
|
|
18
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
19
|
-
import BuildFormWrapperForStorybook from '../storybookWrappers/BuildFormWrapperForStorybook';
|
|
20
|
-
import {
|
|
21
|
-
qCalculatedExpressionBMICalculator,
|
|
22
|
-
qDecimalBasic,
|
|
23
|
-
qrDecimalBasicResponse
|
|
24
|
-
} from '../assets/questionnaires';
|
|
25
|
-
|
|
26
|
-
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
27
|
-
const meta = {
|
|
28
|
-
title: 'ItemType/Decimal',
|
|
29
|
-
component: BuildFormWrapperForStorybook,
|
|
30
|
-
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
31
|
-
tags: []
|
|
32
|
-
} satisfies Meta<typeof BuildFormWrapperForStorybook>;
|
|
33
|
-
|
|
34
|
-
export default meta;
|
|
35
|
-
type Story = StoryObj<typeof meta>;
|
|
36
|
-
|
|
37
|
-
// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
|
|
38
|
-
|
|
39
|
-
export const DecimalBasic: Story = {
|
|
40
|
-
args: {
|
|
41
|
-
questionnaire: qDecimalBasic
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export const DecimalBasicResponse: Story = {
|
|
46
|
-
args: {
|
|
47
|
-
questionnaire: qDecimalBasic,
|
|
48
|
-
questionnaireResponse: qrDecimalBasicResponse
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export const DecimalCalculation: Story = {
|
|
53
|
-
args: {
|
|
54
|
-
questionnaire: qCalculatedExpressionBMICalculator
|
|
55
|
-
}
|
|
56
|
-
};
|
|
@@ -1,55 +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
|
-
|
|
18
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
19
|
-
import BuildFormWrapperForStorybook from '../storybookWrappers/BuildFormWrapperForStorybook';
|
|
20
|
-
import {
|
|
21
|
-
qDisplayBasic,
|
|
22
|
-
qDisplayCalculation,
|
|
23
|
-
qDisplayCalculationStyled
|
|
24
|
-
} from '../assets/questionnaires/QDisplay';
|
|
25
|
-
|
|
26
|
-
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
27
|
-
const meta = {
|
|
28
|
-
title: 'ItemType/Display',
|
|
29
|
-
component: BuildFormWrapperForStorybook,
|
|
30
|
-
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
31
|
-
tags: []
|
|
32
|
-
} satisfies Meta<typeof BuildFormWrapperForStorybook>;
|
|
33
|
-
|
|
34
|
-
export default meta;
|
|
35
|
-
type Story = StoryObj<typeof meta>;
|
|
36
|
-
|
|
37
|
-
// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
|
|
38
|
-
|
|
39
|
-
export const DisplayBasic: Story = {
|
|
40
|
-
args: {
|
|
41
|
-
questionnaire: qDisplayBasic
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export const DisplayCalculation: Story = {
|
|
46
|
-
args: {
|
|
47
|
-
questionnaire: qDisplayCalculation
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export const DisplayCalculationStyled: Story = {
|
|
52
|
-
args: {
|
|
53
|
-
questionnaire: qDisplayCalculationStyled
|
|
54
|
-
}
|
|
55
|
-
};
|
|
@@ -1,39 +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
|
-
|
|
18
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
19
|
-
import BuildFormWrapperForStorybook from '../storybookWrappers/BuildFormWrapperForStorybook';
|
|
20
|
-
import { qGroupBasic } from '../assets/questionnaires/QGroup';
|
|
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: 'ItemType/Group',
|
|
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 GroupBasic: Story = {
|
|
36
|
-
args: {
|
|
37
|
-
questionnaire: qGroupBasic
|
|
38
|
-
}
|
|
39
|
-
};
|
|
@@ -1,55 +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
|
-
|
|
18
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
19
|
-
import BuildFormWrapperForStorybook from '../storybookWrappers/BuildFormWrapperForStorybook';
|
|
20
|
-
import {
|
|
21
|
-
qIntegerBasic,
|
|
22
|
-
qIntegerCalculation,
|
|
23
|
-
qrIntegerBasicResponse
|
|
24
|
-
} from '../assets/questionnaires';
|
|
25
|
-
|
|
26
|
-
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
27
|
-
const meta = {
|
|
28
|
-
title: 'ItemType/Integer',
|
|
29
|
-
component: BuildFormWrapperForStorybook,
|
|
30
|
-
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
31
|
-
tags: []
|
|
32
|
-
} satisfies Meta<typeof BuildFormWrapperForStorybook>;
|
|
33
|
-
|
|
34
|
-
export default meta;
|
|
35
|
-
type Story = StoryObj<typeof meta>;
|
|
36
|
-
|
|
37
|
-
// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
|
|
38
|
-
|
|
39
|
-
export const IntegerBasic: Story = {
|
|
40
|
-
args: {
|
|
41
|
-
questionnaire: qIntegerBasic
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
export const IntegerBasicResponse: Story = {
|
|
45
|
-
args: {
|
|
46
|
-
questionnaire: qIntegerBasic,
|
|
47
|
-
questionnaireResponse: qrIntegerBasicResponse
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export const IntegerCalculation: Story = {
|
|
52
|
-
args: {
|
|
53
|
-
questionnaire: qIntegerCalculation
|
|
54
|
-
}
|
|
55
|
-
};
|
|
@@ -1,64 +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
|
-
|
|
18
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
19
|
-
import BuildFormWrapperForStorybook from '../storybookWrappers/BuildFormWrapperForStorybook';
|
|
20
|
-
import {
|
|
21
|
-
qOpenChoiceAnswerOptionBasic,
|
|
22
|
-
qOpenChoiceAnswerValueSetBasic,
|
|
23
|
-
qrOpenChoiceAnswerOptionBasicResponse,
|
|
24
|
-
qrOpenChoiceAnswerValueSetBasicResponse
|
|
25
|
-
} from '../assets/questionnaires';
|
|
26
|
-
|
|
27
|
-
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
28
|
-
const meta = {
|
|
29
|
-
title: 'ItemType/OpenChoice',
|
|
30
|
-
component: BuildFormWrapperForStorybook,
|
|
31
|
-
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
32
|
-
tags: []
|
|
33
|
-
} satisfies Meta<typeof BuildFormWrapperForStorybook>;
|
|
34
|
-
|
|
35
|
-
export default meta;
|
|
36
|
-
type Story = StoryObj<typeof meta>;
|
|
37
|
-
|
|
38
|
-
// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
|
|
39
|
-
|
|
40
|
-
export const OpenChoiceAnswerOptionBasic: Story = {
|
|
41
|
-
args: {
|
|
42
|
-
questionnaire: qOpenChoiceAnswerOptionBasic
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
export const OpenChoiceAnswerOptionBasicResponse: Story = {
|
|
47
|
-
args: {
|
|
48
|
-
questionnaire: qOpenChoiceAnswerOptionBasic,
|
|
49
|
-
questionnaireResponse: qrOpenChoiceAnswerOptionBasicResponse
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
export const OpenChoiceAnswerValueSetBasic: Story = {
|
|
54
|
-
args: {
|
|
55
|
-
questionnaire: qOpenChoiceAnswerValueSetBasic
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export const OpenChoiceAnswerValueSetBasicResponse: Story = {
|
|
60
|
-
args: {
|
|
61
|
-
questionnaire: qOpenChoiceAnswerValueSetBasic,
|
|
62
|
-
questionnaireResponse: qrOpenChoiceAnswerValueSetBasicResponse
|
|
63
|
-
}
|
|
64
|
-
};
|
|
@@ -1,71 +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
|
-
|
|
18
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
19
|
-
import BuildFormWrapperForStorybook from '../storybookWrappers/BuildFormWrapperForStorybook';
|
|
20
|
-
import {
|
|
21
|
-
qQuantityBasic,
|
|
22
|
-
qQuantityCalculation,
|
|
23
|
-
qQuantityUnitOption,
|
|
24
|
-
qrQuantityBasicResponse,
|
|
25
|
-
qrQuantityUnitOptionResponse
|
|
26
|
-
} from '../assets/questionnaires';
|
|
27
|
-
|
|
28
|
-
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
29
|
-
const meta = {
|
|
30
|
-
title: 'ItemType/Quantity',
|
|
31
|
-
component: BuildFormWrapperForStorybook,
|
|
32
|
-
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
33
|
-
tags: []
|
|
34
|
-
} satisfies Meta<typeof BuildFormWrapperForStorybook>;
|
|
35
|
-
|
|
36
|
-
export default meta;
|
|
37
|
-
type Story = StoryObj<typeof meta>;
|
|
38
|
-
|
|
39
|
-
// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
|
|
40
|
-
|
|
41
|
-
export const QuantityBasic: Story = {
|
|
42
|
-
args: {
|
|
43
|
-
questionnaire: qQuantityBasic
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export const QuantityBasicResponse: Story = {
|
|
48
|
-
args: {
|
|
49
|
-
questionnaire: qQuantityBasic,
|
|
50
|
-
questionnaireResponse: qrQuantityBasicResponse
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
export const QuantityUnitOption: Story = {
|
|
55
|
-
args: {
|
|
56
|
-
questionnaire: qQuantityUnitOption
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
export const QuantityUnitOptionResponse: Story = {
|
|
61
|
-
args: {
|
|
62
|
-
questionnaire: qQuantityUnitOption,
|
|
63
|
-
questionnaireResponse: qrQuantityUnitOptionResponse
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
export const QuantityCalculation: Story = {
|
|
68
|
-
args: {
|
|
69
|
-
questionnaire: qQuantityCalculation
|
|
70
|
-
}
|
|
71
|
-
};
|
|
@@ -1,39 +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
|
-
|
|
18
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
19
|
-
import BuildFormWrapperForStorybook from '../storybookWrappers/BuildFormWrapperForStorybook';
|
|
20
|
-
import { qReferenceBasic } from '../assets/questionnaires';
|
|
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: 'ItemType/Reference',
|
|
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 ReferenceBasic: Story = {
|
|
36
|
-
args: {
|
|
37
|
-
questionnaire: qReferenceBasic
|
|
38
|
-
}
|
|
39
|
-
};
|
|
@@ -1,51 +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
|
-
|
|
18
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
19
|
-
import BuildFormWrapperForStorybook from '../storybookWrappers/BuildFormWrapperForStorybook';
|
|
20
|
-
import { qrStringBasicResponse, qStringBasic, qStringCalculation } from '../assets/questionnaires';
|
|
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: 'ItemType/String',
|
|
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 StringBasic: Story = {
|
|
36
|
-
args: {
|
|
37
|
-
questionnaire: qStringBasic
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
export const StringBasicResponse: Story = {
|
|
41
|
-
args: {
|
|
42
|
-
questionnaire: qStringBasic,
|
|
43
|
-
questionnaireResponse: qrStringBasicResponse
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export const StringCalculation: Story = {
|
|
48
|
-
args: {
|
|
49
|
-
questionnaire: qStringCalculation
|
|
50
|
-
}
|
|
51
|
-
};
|