From 1e21bbe8f5ab6503ca2ddb320d6945381152ced4 Mon Sep 17 00:00:00 2001 From: Sean Fong Date: Wed, 5 Jun 2024 11:03:30 +0930 Subject: [PATCH] Add support for collapsible in repeat groups --- Conformance.md | 6 +- .../docs/devUsage/renderer-overview.mdx | 2 +- documentation/docs/sdc/advanced/question.mdx | 44 ++++ documentation/docs/sdc/index.mdx | 6 +- .../GroupItem/GroupItemView.tsx | 6 +- .../RepeatGroup/RepeatGroup.tsx | 93 +------- .../RepeatGroup/RepeatGroupView.tsx | 202 ++++++++++++++++++ .../QAdvancedControlAppearance.ts | 124 +++++++++++ .../assets/questionnaires/QMbs715Tester.ts | 8 +- .../sdc/AdvancedControlAppearance.stories.tsx | 7 + 10 files changed, 406 insertions(+), 92 deletions(-) create mode 100644 packages/smart-forms-renderer/src/components/FormComponents/RepeatGroup/RepeatGroupView.tsx diff --git a/Conformance.md b/Conformance.md index 06519d5cf..509e9a2dd 100644 --- a/Conformance.md +++ b/Conformance.md @@ -51,11 +51,11 @@ View the source here: http://hl7.org/fhir/uv/sdc/expressions.html View the source here: http://hl7.org/fhir/uv/sdc/rendering.html #### [Text Appearance](http://hl7.org/fhir/uv/sdc/rendering.html#extension-overview) -- [ ] rendering-style +- [x] rendering-style - [x] rendering-xhtml - [x] displayCategory - [x] openLabel -- [x] hidden +- [x] hidden - [ ] itemMedia - [ ] itemAnswerMedia @@ -64,7 +64,7 @@ View the source here: http://hl7.org/fhir/uv/sdc/rendering.html - [x] choiceOrientation - [x] sliderStepValue - [ ] width -- [ ] collapsible +- [x] collapsible **Questionnaire `itemControl` Checklist** diff --git a/documentation/docs/devUsage/renderer-overview.mdx b/documentation/docs/devUsage/renderer-overview.mdx index 68c1005a4..38e07d14f 100644 --- a/documentation/docs/devUsage/renderer-overview.mdx +++ b/documentation/docs/devUsage/renderer-overview.mdx @@ -312,7 +312,7 @@ The button will look different in the output, but it still functions the same wa