ywana-core8 0.0.598 → 0.0.601
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 +8 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +8 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +8 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/CollectionPage.js +1 -1
- package/src/domain/ContentEditor.js +4 -1
- package/src/domain/TabbedTablePage.js +1 -1
- package/src/http/token.test.js +14 -2
package/dist/index.modern.js
CHANGED
@@ -4633,8 +4633,9 @@ var StringEditor = function StringEditor(_ref7) {
|
|
4633
4633
|
outlined = _ref7.outlined;
|
4634
4634
|
var id = field.id,
|
4635
4635
|
format = field.format,
|
4636
|
-
label = field.label,
|
4637
4636
|
options = field.options,
|
4637
|
+
_field$required = field.required,
|
4638
|
+
required = _field$required === void 0 ? false : _field$required,
|
4638
4639
|
_field$editable = field.editable,
|
4639
4640
|
editable = _field$editable === void 0 ? true : _field$editable,
|
4640
4641
|
_field$predictive = field.predictive,
|
@@ -4653,6 +4654,8 @@ var StringEditor = function StringEditor(_ref7) {
|
|
4653
4654
|
}
|
4654
4655
|
|
4655
4656
|
function renderFormat(format, options) {
|
4657
|
+
var label = required ? field.label + " *" : field.label;
|
4658
|
+
|
4656
4659
|
switch (format) {
|
4657
4660
|
case FORMATS.IMG:
|
4658
4661
|
return /*#__PURE__*/React.createElement("div", {
|
@@ -5616,7 +5619,8 @@ var CollectionPage = function CollectionPage(props) {
|
|
5616
5619
|
label: "" + name,
|
5617
5620
|
type: schema,
|
5618
5621
|
onOK: onOK,
|
5619
|
-
validator: addValidator
|
5622
|
+
validator: addValidator,
|
5623
|
+
className: className
|
5620
5624
|
}));
|
5621
5625
|
}
|
5622
5626
|
|
@@ -8782,7 +8786,8 @@ var TableSelector = function TableSelector(props) {
|
|
8782
8786
|
var field = schema[key];
|
8783
8787
|
return {
|
8784
8788
|
id: field.id,
|
8785
|
-
label: field.label
|
8789
|
+
label: field.label,
|
8790
|
+
type: field.type
|
8786
8791
|
};
|
8787
8792
|
});
|
8788
8793
|
var rows = all.filter(function (item) {
|