@entryscape/rdforms 10.9.2 → 10.9.4

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
@@ -8,7 +8,7 @@
8
8
  "application profile",
9
9
  "linked data"
10
10
  ],
11
- "version": "10.9.2",
11
+ "version": "10.9.4",
12
12
  "main": "dist/rdforms.node.js",
13
13
  "browser": "dist/rdforms.react.js",
14
14
  "module": "main.js",
@@ -174,6 +174,9 @@ export default class Editor extends Presenter {
174
174
  } else {
175
175
  target = 1;
176
176
  }
177
+ if (item.hasStyle('nonEditable') && !item.hasStyle('autoInitDate') && !item.hasStyle('autoUpdateDate') && !item.hasStyle('autoUUID') && !item.hasStyle('autoValue')) {
178
+ return _bindings;
179
+ }
177
180
  if (target > _bindings.length) {
178
181
  _bindings = _bindings.concat([]);
179
182
  while (target > _bindings.length) {
@@ -13,7 +13,7 @@ presenters.itemtype('text').datatype('xsd:duration').register((fieldDiv, binding
13
13
  const data = fromDuration(binding.getValue());
14
14
  const keys = ['years', 'months', 'days', 'hours', 'minutes'];
15
15
  fieldDiv.appendChild(<div key={binding.getHash()}>{keys.map(key => (
16
- data[key] && <React.Fragment key={key}><span className="durationLabel">{
16
+ data[key] !== 0 && <React.Fragment key={key}><span className="durationLabel">{
17
17
  context.view.messages[`duration_${key}`]}:</span><span className="durationValue">{data[key]}</span></React.Fragment>
18
18
  ))}</div>);
19
19
  });