@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/dist/rdforms.bmd.js +1 -1
- package/dist/rdforms.bootstrap.js +1 -1
- package/dist/rdforms.jquery.js +1 -1
- package/dist/rdforms.react.js +12 -12
- package/package.json +1 -1
- package/src/view/Editor.js +3 -0
- package/src/view/react/text.js +1 -1
package/package.json
CHANGED
package/src/view/Editor.js
CHANGED
|
@@ -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) {
|
package/src/view/react/text.js
CHANGED
|
@@ -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
|
});
|