formbuilder-lhcforms 9.7.4 → 9.7.5

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.
@@ -16,6 +16,7 @@
16
16
  { "field": "answerOption", "title": "Answer choices", "col": 12 },
17
17
  { "field": "__$itemControl", "col": 12 },
18
18
  { "field": "__$itemControlGroup", "col": 12 },
19
+ { "field": "__$itemControlDisplay", "col": 12 },
19
20
  { "field": "__$units", "col": 12 }
20
21
  ]
21
22
  },
@@ -1128,10 +1128,75 @@
1128
1128
  "id": "item-control",
1129
1129
  "labelPosition": "left",
1130
1130
  "labelClasses": "col-2 ps-0 pe-1",
1131
- "controlClasses": "col-9 btn-group btn-group-sm p-0",
1131
+ "controlClasses": "col-10 btn-group btn-group-sm p-0",
1132
1132
  "note": "(1) - not supported by LHC-Forms preview."
1133
1133
  }
1134
1134
  },
1135
+ "__$itemControlDisplay": {
1136
+ // Proxy for item control extension.
1137
+ "description": "Choose the type of control for the 'Display' data type. Some item controls are not supported by the LHC-Forms preview, as indicated by the asterisk (1) symbol.",
1138
+ "title": "Display Item Control",
1139
+ "oneOf": [
1140
+ {
1141
+ 'enum': ["inline"],
1142
+ 'display': 'In-line',
1143
+ 'description': 'The display item is rendered as a paragraph positioned sequentially among its sibling items (default behavior).',
1144
+ 'support': true
1145
+ },
1146
+ {
1147
+ 'enum': ["prompt"],
1148
+ 'display': 'Prompt',
1149
+ 'description': 'Text is shown directly below or within the answer-entry area of the containing question item, usually as a guide for what to enter.',
1150
+ 'support': false,
1151
+ 'deprecated': true
1152
+ },
1153
+ {
1154
+ 'enum': ["unit"],
1155
+ 'display': 'Unit',
1156
+ 'description': 'The display item is shown next to the answer area of the parent question, usually to indicate a unit of measure.',
1157
+ 'support': false,
1158
+ 'deprecated': true
1159
+ },
1160
+ {
1161
+ 'enum': ["lower"],
1162
+ 'display': 'Lower-bound',
1163
+ 'description': 'The display item is rendered to the left of the answer choices or a scaling control for the parent question, indicating the meaning of the \'lower\' bound, e.g., \'Strongly disagree\'.',
1164
+ 'support': false
1165
+ },
1166
+ {
1167
+ 'enum': ["upper"],
1168
+ 'display': 'Upper-bound',
1169
+ 'description': 'The display item is rendered to the right of the answer choices or a scaling control for the parent question item, indicating the meaning of the \'upper\' bound, e.g., \'Strongly agree\'.',
1170
+ 'support': false
1171
+ },
1172
+ {
1173
+ 'enum': ["flyover"],
1174
+ 'display': 'Fly-over',
1175
+ 'description': 'The display item appears temporarily when the mouse hovers over the text of the containing item.',
1176
+ 'support': false
1177
+ },
1178
+ {
1179
+ 'enum': ["legal"],
1180
+ 'display': 'Legal-Button',
1181
+ 'description': 'The display item is shown in a dialog box or similar control when a button or other UI element is used to request legal information for a question, group, or the entire questionnaire, depending on where the display item is nested.',
1182
+ 'support': false
1183
+ }
1184
+ ],
1185
+ "default": "inline",
1186
+ "type": "string",
1187
+ "visibleIf": {
1188
+ "type": ["$EXP$ target.value == 'display'"]
1189
+ },
1190
+ "widget": {
1191
+ "id": "item-control",
1192
+ "labelPosition": "left",
1193
+ "labelClasses": "col-2 ps-0 pe-1",
1194
+ "controlClasses": "col-10 btn-group btn-group-sm p-0",
1195
+ "note": "(1) - not supported by LHC-Forms preview.",
1196
+ "deprecatedNote": "* '${deprecatedItemControl}' item control is deprecated and is not presented in this list of item controls."
1197
+ }
1198
+ },
1199
+
1135
1200
  "__$terminologyServer": {
1136
1201
  "description": "Enter url for preferred terminology server.",
1137
1202
  "title": "Terminology server",
@@ -1816,6 +1881,17 @@
1816
1881
  }
1817
1882
  ]
1818
1883
  },
1884
+ {
1885
+ "fields": [
1886
+ "__$itemControlDisplay"
1887
+ ],
1888
+ "showFields": [
1889
+ {
1890
+ "field": "__$itemControlDisplay",
1891
+ "col": 12
1892
+ }
1893
+ ]
1894
+ },
1819
1895
  {
1820
1896
  "fields": [
1821
1897
  "__$terminologyServer"
@@ -1 +1 @@
1
- {"version": "9.7.4"}
1
+ {"version": "9.7.5"}
@@ -19,6 +19,6 @@
19
19
  <body class="bg-secondary">
20
20
  <lfb-root></lfb-root>
21
21
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
22
- <script src="runtime.451db9930bcccb8c.js" type="module"></script><script src="polyfills.ef59bbccd462f5ac.js" type="module"></script><script src="scripts.5c83cbb4dbb11a83.js" defer></script><script src="main.056d580c19f930b2.js" type="module"></script></body>
22
+ <script src="runtime.451db9930bcccb8c.js" type="module"></script><script src="polyfills.ef59bbccd462f5ac.js" type="module"></script><script src="scripts.5c83cbb4dbb11a83.js" defer></script><script src="main.82e5df166dcc08d1.js" type="module"></script></body>
23
23
  </html>
24
24