@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,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 { qrTextBasicResponse, qTextBasic, qTextCalculation } 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/Text',
|
|
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 TextBasic: Story = {
|
|
36
|
-
args: {
|
|
37
|
-
questionnaire: qTextBasic
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
export const TextBasicResponse: Story = {
|
|
41
|
-
args: {
|
|
42
|
-
questionnaire: qTextBasic,
|
|
43
|
-
questionnaireResponse: qrTextBasicResponse
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export const TextCalculation: Story = {
|
|
48
|
-
args: {
|
|
49
|
-
questionnaire: qTextCalculation
|
|
50
|
-
}
|
|
51
|
-
};
|
|
@@ -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 { qTimeBasic } 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/Time',
|
|
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 TimeBasic: Story = {
|
|
36
|
-
args: {
|
|
37
|
-
questionnaire: qTimeBasic
|
|
38
|
-
}
|
|
39
|
-
};
|
|
@@ -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 { qUrlBasic } 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/Url',
|
|
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 UrlBasic: Story = {
|
|
36
|
-
args: {
|
|
37
|
-
questionnaire: qUrlBasic
|
|
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 { qEntryFormat, qQuestionnaireUnit, qShortText } 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: 'SDC/8.1.3 Advanced Additional Display Content',
|
|
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 EntryFormat: Story = {
|
|
36
|
-
args: {
|
|
37
|
-
questionnaire: qEntryFormat
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export const ShortText: Story = {
|
|
42
|
-
args: {
|
|
43
|
-
questionnaire: qShortText
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export const QuestionnaireUnit: Story = {
|
|
48
|
-
args: {
|
|
49
|
-
questionnaire: qQuestionnaireUnit
|
|
50
|
-
}
|
|
51
|
-
};
|
|
@@ -1,90 +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
|
-
qChoiceOrientation,
|
|
22
|
-
qCollapsibleGroupDefaultClosed,
|
|
23
|
-
qCollapsibleGroupDefaultOpen,
|
|
24
|
-
qCollapsibleGroupNested,
|
|
25
|
-
qCollapsibleSingleDefaultClosed,
|
|
26
|
-
qCollapsibleSingleDefaultOpen,
|
|
27
|
-
qItemControl,
|
|
28
|
-
qSliderStepValue
|
|
29
|
-
} from '../assets/questionnaires';
|
|
30
|
-
|
|
31
|
-
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
32
|
-
const meta = {
|
|
33
|
-
title: 'SDC/8.1.2 Advanced Control Appearance',
|
|
34
|
-
component: BuildFormWrapperForStorybook,
|
|
35
|
-
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
36
|
-
tags: []
|
|
37
|
-
} satisfies Meta<typeof BuildFormWrapperForStorybook>;
|
|
38
|
-
|
|
39
|
-
export default meta;
|
|
40
|
-
type Story = StoryObj<typeof meta>;
|
|
41
|
-
|
|
42
|
-
// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
|
|
43
|
-
|
|
44
|
-
export const ItemControl: Story = {
|
|
45
|
-
args: {
|
|
46
|
-
questionnaire: qItemControl
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export const ChoiceOrientation: Story = {
|
|
51
|
-
args: {
|
|
52
|
-
questionnaire: qChoiceOrientation
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
export const SliderStepValue: Story = {
|
|
57
|
-
args: {
|
|
58
|
-
questionnaire: qSliderStepValue
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
export const CollapsibleSingleDefaultOpen: Story = {
|
|
63
|
-
args: {
|
|
64
|
-
questionnaire: qCollapsibleSingleDefaultOpen
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
export const CollapsibleSingleDefaultClosed: Story = {
|
|
69
|
-
args: {
|
|
70
|
-
questionnaire: qCollapsibleSingleDefaultClosed
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
export const CollapsibleGroupDefaultOpen: Story = {
|
|
75
|
-
args: {
|
|
76
|
-
questionnaire: qCollapsibleGroupDefaultOpen
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
export const CollapsibleGroupDefaultClosed: Story = {
|
|
81
|
-
args: {
|
|
82
|
-
questionnaire: qCollapsibleGroupDefaultClosed
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
export const CollapsibleGroupNested: Story = {
|
|
87
|
-
args: {
|
|
88
|
-
questionnaire: qCollapsibleGroupNested
|
|
89
|
-
}
|
|
90
|
-
};
|
|
@@ -1,76 +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
|
-
qReadOnly,
|
|
22
|
-
qRepeatsAutocomplete,
|
|
23
|
-
qRepeatsCheckbox,
|
|
24
|
-
qRepeatsGroup,
|
|
25
|
-
qRepeatsGroupNested,
|
|
26
|
-
qRequired
|
|
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: 'SDC/8.1.4 Advanced Other',
|
|
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 Required: Story = {
|
|
43
|
-
args: {
|
|
44
|
-
questionnaire: qRequired
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export const RepeatsAutocomplete: Story = {
|
|
49
|
-
args: {
|
|
50
|
-
questionnaire: qRepeatsAutocomplete
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
export const RepeatsCheckbox: Story = {
|
|
55
|
-
args: {
|
|
56
|
-
questionnaire: qRepeatsCheckbox
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
export const RepeatsGroup: Story = {
|
|
61
|
-
args: {
|
|
62
|
-
questionnaire: qRepeatsGroup
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
export const RepeatsGroupNested: Story = {
|
|
67
|
-
args: {
|
|
68
|
-
questionnaire: qRepeatsGroupNested
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
export const ReadOnly: Story = {
|
|
73
|
-
args: {
|
|
74
|
-
questionnaire: qReadOnly
|
|
75
|
-
}
|
|
76
|
-
};
|
|
@@ -1,104 +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
|
-
qDisplayCategoryInstructions,
|
|
22
|
-
qHidden,
|
|
23
|
-
qOpenLabel,
|
|
24
|
-
qRenderingStyleBooleanItem,
|
|
25
|
-
qRenderingXhtmlBooleanItem,
|
|
26
|
-
qRenderingXhtmlDisplayBase64ImageItem,
|
|
27
|
-
qRenderingXhtmlDisplayListItem,
|
|
28
|
-
qRenderingXhtmlGroupPropagationClassStyles,
|
|
29
|
-
qRenderingXhtmlGroupPropagationInlineStyles,
|
|
30
|
-
qRenderingXhtmlGroupPropagationNested
|
|
31
|
-
} from '../assets/questionnaires';
|
|
32
|
-
|
|
33
|
-
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
34
|
-
const meta = {
|
|
35
|
-
title: 'SDC/8.1.1 Advanced Text Appearance',
|
|
36
|
-
component: BuildFormWrapperForStorybook,
|
|
37
|
-
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
38
|
-
tags: []
|
|
39
|
-
} satisfies Meta<typeof BuildFormWrapperForStorybook>;
|
|
40
|
-
|
|
41
|
-
export default meta;
|
|
42
|
-
type Story = StoryObj<typeof meta>;
|
|
43
|
-
|
|
44
|
-
// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
|
|
45
|
-
|
|
46
|
-
export const RenderingStyleBoolean: Story = {
|
|
47
|
-
args: {
|
|
48
|
-
questionnaire: qRenderingStyleBooleanItem
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export const RenderingXHTMLBoolean: Story = {
|
|
53
|
-
args: {
|
|
54
|
-
questionnaire: qRenderingXhtmlBooleanItem
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
export const RenderingXHTMLDisplayList: Story = {
|
|
59
|
-
args: {
|
|
60
|
-
questionnaire: qRenderingXhtmlDisplayListItem
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
export const RenderingXHTMLDisplayBase64Image: Story = {
|
|
65
|
-
args: {
|
|
66
|
-
questionnaire: qRenderingXhtmlDisplayBase64ImageItem
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
export const RenderingXHTMLGroupPropagationNested: Story = {
|
|
71
|
-
args: {
|
|
72
|
-
questionnaire: qRenderingXhtmlGroupPropagationNested
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
export const RenderingXHTMLGroupPropagationInlineStyles: Story = {
|
|
77
|
-
args: {
|
|
78
|
-
questionnaire: qRenderingXhtmlGroupPropagationInlineStyles
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
export const RenderingXHTMLGroupPropagationClassStyles: Story = {
|
|
83
|
-
args: {
|
|
84
|
-
questionnaire: qRenderingXhtmlGroupPropagationClassStyles
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
export const DisplayCategoryInstructions: Story = {
|
|
89
|
-
args: {
|
|
90
|
-
questionnaire: qDisplayCategoryInstructions
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
export const OpenLabel: Story = {
|
|
95
|
-
args: {
|
|
96
|
-
questionnaire: qOpenLabel
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
export const Hidden: Story = {
|
|
101
|
-
args: {
|
|
102
|
-
questionnaire: qHidden
|
|
103
|
-
}
|
|
104
|
-
};
|
|
@@ -1,69 +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
|
-
qCalculatedExpressionCvdRiskCalculator,
|
|
23
|
-
qInitialExpression,
|
|
24
|
-
qLaunchContext,
|
|
25
|
-
qVariable
|
|
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: 'SDC/9.1.3 Form Behavior Calculations',
|
|
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 LaunchContext: Story = {
|
|
42
|
-
args: {
|
|
43
|
-
questionnaire: qLaunchContext
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export const Variable: Story = {
|
|
48
|
-
args: {
|
|
49
|
-
questionnaire: qVariable
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
export const InitialExpression: Story = {
|
|
54
|
-
args: {
|
|
55
|
-
questionnaire: qInitialExpression
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export const CalculatedExpressionBMICalculator: Story = {
|
|
60
|
-
args: {
|
|
61
|
-
questionnaire: qCalculatedExpressionBMICalculator
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
export const CalculatedExpressionCvdRiskCalculator: Story = {
|
|
66
|
-
args: {
|
|
67
|
-
questionnaire: qCalculatedExpressionCvdRiskCalculator
|
|
68
|
-
}
|
|
69
|
-
};
|
|
@@ -1,76 +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
|
-
qAnswerExpression,
|
|
22
|
-
qAnswerOption,
|
|
23
|
-
qAnswerValueSet,
|
|
24
|
-
qReadOnlyDuplicate,
|
|
25
|
-
qRepeatsDuplicate,
|
|
26
|
-
qRequiredDuplicate
|
|
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: 'SDC/9.1.2 Form Behavior Choice Restriction',
|
|
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 AnswerOption: Story = {
|
|
43
|
-
args: {
|
|
44
|
-
questionnaire: qAnswerOption
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export const AnswerValueSet: Story = {
|
|
49
|
-
args: {
|
|
50
|
-
questionnaire: qAnswerValueSet
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
export const AnswerExpression: Story = {
|
|
55
|
-
args: {
|
|
56
|
-
questionnaire: qAnswerExpression
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
export const Required: Story = {
|
|
61
|
-
args: {
|
|
62
|
-
questionnaire: qRequiredDuplicate
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
export const Repeats: Story = {
|
|
67
|
-
args: {
|
|
68
|
-
questionnaire: qRepeatsDuplicate
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
export const ReadOnly: Story = {
|
|
73
|
-
args: {
|
|
74
|
-
questionnaire: qReadOnlyDuplicate
|
|
75
|
-
}
|
|
76
|
-
};
|
|
@@ -1,97 +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
|
-
qEnableBehaviorAll,
|
|
22
|
-
qEnableBehaviorAny,
|
|
23
|
-
qEnableWhen,
|
|
24
|
-
qEnableWhenExpressionSimple,
|
|
25
|
-
qEnableWhenExpressionTabs,
|
|
26
|
-
qEnableWhenMultiCheckbox,
|
|
27
|
-
qInitialRepeats,
|
|
28
|
-
qInitialSingle,
|
|
29
|
-
qText
|
|
30
|
-
} from '../assets/questionnaires'; // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
31
|
-
|
|
32
|
-
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
33
|
-
const meta = {
|
|
34
|
-
title: 'SDC/9.1.4 Form Behavior Other Control',
|
|
35
|
-
component: BuildFormWrapperForStorybook,
|
|
36
|
-
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
|
|
37
|
-
tags: []
|
|
38
|
-
} satisfies Meta<typeof BuildFormWrapperForStorybook>;
|
|
39
|
-
|
|
40
|
-
export default meta;
|
|
41
|
-
type Story = StoryObj<typeof meta>;
|
|
42
|
-
|
|
43
|
-
// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
|
|
44
|
-
|
|
45
|
-
export const InitialSingle: Story = {
|
|
46
|
-
args: {
|
|
47
|
-
questionnaire: qInitialSingle
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export const InitialRepeats: Story = {
|
|
52
|
-
args: {
|
|
53
|
-
questionnaire: qInitialRepeats
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
export const EnableWhen: Story = {
|
|
58
|
-
args: {
|
|
59
|
-
questionnaire: qEnableWhen
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
export const EnableWhenMultiCheckbox: Story = {
|
|
64
|
-
args: {
|
|
65
|
-
questionnaire: qEnableWhenMultiCheckbox
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
export const EnableBehaviorAll: Story = {
|
|
70
|
-
args: {
|
|
71
|
-
questionnaire: qEnableBehaviorAll
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
export const EnableBehaviorAny: Story = {
|
|
76
|
-
args: {
|
|
77
|
-
questionnaire: qEnableBehaviorAny
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
export const EnableWhenExpressionSimple: Story = {
|
|
82
|
-
args: {
|
|
83
|
-
questionnaire: qEnableWhenExpressionSimple
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
export const EnableWhenExpressionTabs: Story = {
|
|
88
|
-
args: {
|
|
89
|
-
questionnaire: qEnableWhenExpressionTabs
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
export const Text: Story = {
|
|
94
|
-
args: {
|
|
95
|
-
questionnaire: qText
|
|
96
|
-
}
|
|
97
|
-
};
|