ywana-core8 0.0.538 → 0.0.541
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/index.cjs +11 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +11 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +11 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/CollectionPage.js +1 -2
- package/src/domain/ContentEditor.test.js +0 -1
- package/src/domain/ContentType.js +0 -3
- package/src/html/table.test.js +3 -3
- package/src/html/textfield.test.js +0 -1
- package/src/html/tokenfield.js +11 -2
- package/src/widgets/planner/Planner.test.js +2 -3
package/dist/index.umd.js
CHANGED
@@ -1091,7 +1091,6 @@
|
|
1091
1091
|
break;
|
1092
1092
|
|
1093
1093
|
case TYPES.ENTITY:
|
1094
|
-
if (optional === true) console.log('OPTIONAL', field, !entryData);
|
1095
1094
|
if (optional === true && !entryData) break;
|
1096
1095
|
var child1 = new ContentType(item);
|
1097
1096
|
next[name] = child1.value(entryData);
|
@@ -2060,8 +2059,17 @@
|
|
2060
2059
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
2061
2060
|
className: "tokenField"
|
2062
2061
|
}, /*#__PURE__*/React__default["default"].createElement("label", null, label), tks.map(function (text, index) {
|
2062
|
+
var text2 = text;
|
2063
|
+
|
2064
|
+
if (options) {
|
2065
|
+
var lbl = options.find(function (opt) {
|
2066
|
+
return opt.value == text;
|
2067
|
+
});
|
2068
|
+
if (lbl) text2 = lbl.label;
|
2069
|
+
}
|
2070
|
+
|
2063
2071
|
return /*#__PURE__*/React__default["default"].createElement(Token, {
|
2064
|
-
text:
|
2072
|
+
text: text2,
|
2065
2073
|
onDelete: function onDelete() {
|
2066
2074
|
return remove(index);
|
2067
2075
|
}
|
@@ -5435,7 +5443,6 @@
|
|
5435
5443
|
var CollectionEditor = function CollectionEditor(props) {
|
5436
5444
|
var save = function save() {
|
5437
5445
|
try {
|
5438
|
-
console.log('saving.....');
|
5439
5446
|
return Promise.resolve(pageContext.update(form)).then(function () {
|
5440
5447
|
setPageContext(Object.assign({}, pageContext));
|
5441
5448
|
});
|
@@ -5616,7 +5623,7 @@
|
|
5616
5623
|
return Promise.resolve(_this6.load()).then(function () {});
|
5617
5624
|
});
|
5618
5625
|
}, function (error) {
|
5619
|
-
console.log(
|
5626
|
+
console.log(error);
|
5620
5627
|
});
|
5621
5628
|
|
5622
5629
|
return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(function () {}) : void 0);
|