case-editor-tools 1.0.0-beta.32 → 1.0.0-beta.33

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "case-editor-tools",
3
3
  "description": "Javascript tools to simplify survey and study coding for CASE.",
4
- "version": "1.0.0-beta.32",
4
+ "version": "1.0.0-beta.33",
5
5
  "main": "index.js",
6
6
  "license": "Apache-2.0",
7
7
  "repository": "github:case-framework/case-editor-tools",
@@ -163,6 +163,7 @@ const initResponsiveSingleChoiceArray = (rgKey, props, displayCondition) => {
163
163
  groupEdit.addItemComponent({
164
164
  key: row.key,
165
165
  role: 'row',
166
+ displayCondition: row.displayCondition,
166
167
  style: rowStyles.length > 0 ? rowStyles : undefined,
167
168
  content: !Array.isArray(row.content) ? surveys_utils_simpleGenerators.generateLocStrings(row.content) : undefined,
168
169
  items: Array.isArray(row.content) ? row.content.map((cont, index) => {
@@ -300,6 +301,7 @@ const initResponsiveBipolarLikertArray = (rgKey, props, displayCondition) => {
300
301
  groupEdit.addItemComponent({
301
302
  key: row.key,
302
303
  role: 'row',
304
+ displayCondition: row.displayCondition,
303
305
  style: rowStyles.length > 0 ? rowStyles : undefined,
304
306
  items: [
305
307
  startLabel, endLabel
@@ -1 +1 @@
1
- {"version":3,"file":"likertGroupComponents.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"likertGroupComponents.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -103,6 +103,7 @@ export interface ResponsiveSingleChoiceArrayProps {
103
103
  }>;
104
104
  rows: Array<{
105
105
  key: string;
106
+ displayCondition?: Expression;
106
107
  content: Map<string, string> | StyledTextComponentProp[];
107
108
  horizontalModeProps?: {
108
109
  labelPlacement?: 'none' | 'top' | 'bottom';
@@ -152,6 +153,7 @@ export interface ResponsiveBipolarLikertArrayProps {
152
153
  key: string;
153
154
  startLabel: Map<string, string> | StyledTextComponentProp[];
154
155
  endLabel: Map<string, string> | StyledTextComponentProp[];
156
+ displayCondition?: Expression;
155
157
  withLabelRowModeProps?: {
156
158
  className?: string;
157
159
  };