cht-conf 6.2.0 → 6.4.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [6.4.0](https://github.com/medic/cht-conf/compare/v6.3.0...v6.4.0) (2026-05-08)
2
+
3
+
4
+ ### Features
5
+
6
+ * **#771:** deprecate NO_LABEL usage in forms ([#813](https://github.com/medic/cht-conf/issues/813)) ([197202a](https://github.com/medic/cht-conf/commit/197202a11d0bb6003606efa1b5cf6b79e56bc44c)), closes [#771](https://github.com/medic/cht-conf/issues/771)
7
+
8
+ # [6.3.0](https://github.com/medic/cht-conf/compare/v6.2.0...v6.3.0) (2026-04-27)
9
+
10
+
11
+ ### Features
12
+
13
+ * **#10766:** support `collapsed` in contact summary card ([#812](https://github.com/medic/cht-conf/issues/812)) ([8b3f34a](https://github.com/medic/cht-conf/commit/8b3f34a3b58ffbd2c58c0e28f15dbc87e6d1e572)), closes [#10766](https://github.com/medic/cht-conf/issues/10766)
14
+
1
15
  # [6.2.0](https://github.com/medic/cht-conf/compare/v6.1.1...v6.2.0) (2026-04-18)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cht-conf",
3
- "version": "6.2.0",
3
+ "version": "6.4.0",
4
4
  "description": "Configure CHT deployments",
5
5
  "main": "./src/lib/main.js",
6
6
  "engines": {
@@ -122,10 +122,14 @@ function addCard(card, context, r) {
122
122
  card.modifyContext(context, r);
123
123
  }
124
124
 
125
- return {
125
+ const summary = {
126
126
  label: card.label,
127
127
  fields: fields,
128
128
  };
129
+ if (card.collapsed !== undefined) {
130
+ summary.collapsed = card.collapsed;
131
+ }
132
+ return summary;
129
133
  }
130
134
 
131
135
  module.exports = emitter;
@@ -1,4 +1,5 @@
1
1
  const { getNodes, removeNode, XPATH_MODEL, XPATH_BODY } = require('../forms-utils');
2
+ const log = require('../log');
2
3
 
3
4
  module.exports = {
4
5
  /**
@@ -17,7 +18,17 @@ module.exports = {
17
18
  noLabelItextNodes.forEach(removeNode);
18
19
 
19
20
  // Remove any additional NO_LABEL values from translation nodes that have other (multimedia) values
20
- getNodes(xmlDoc, `${XPATH_MODEL}/itext/translation//value[text()="NO_LABEL" or text()="DELETE_THIS_LINE"]`)
21
- .forEach(removeNode);
21
+ const noLabelValueNodes = getNodes(
22
+ xmlDoc,
23
+ `${XPATH_MODEL}/itext/translation//value[text()="NO_LABEL" or text()="DELETE_THIS_LINE"]`
24
+ );
25
+ noLabelValueNodes.forEach(removeNode);
26
+
27
+ if (noLabelItextNodes.length > 0 || noLabelValueNodes.length > 0) {
28
+ log.warn(
29
+ 'The "NO_LABEL/DELETE_THIS_LINE" value is deprecated and will be removed in a future version of cht-conf. ' +
30
+ 'For groups, a label is not required. If the field should not be visible, use the "hidden" or "calculate" type.'
31
+ );
32
+ }
22
33
  }
23
34
  };