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.cjs
CHANGED
@@ -4641,8 +4641,9 @@ var StringEditor = function StringEditor(_ref7) {
|
|
4641
4641
|
outlined = _ref7.outlined;
|
4642
4642
|
var id = field.id,
|
4643
4643
|
format = field.format,
|
4644
|
-
label = field.label,
|
4645
4644
|
options = field.options,
|
4645
|
+
_field$required = field.required,
|
4646
|
+
required = _field$required === void 0 ? false : _field$required,
|
4646
4647
|
_field$editable = field.editable,
|
4647
4648
|
editable = _field$editable === void 0 ? true : _field$editable,
|
4648
4649
|
_field$predictive = field.predictive,
|
@@ -4661,6 +4662,8 @@ var StringEditor = function StringEditor(_ref7) {
|
|
4661
4662
|
}
|
4662
4663
|
|
4663
4664
|
function renderFormat(format, options) {
|
4665
|
+
var label = required ? field.label + " *" : field.label;
|
4666
|
+
|
4664
4667
|
switch (format) {
|
4665
4668
|
case FORMATS.IMG:
|
4666
4669
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
@@ -5624,7 +5627,8 @@ var CollectionPage = function CollectionPage(props) {
|
|
5624
5627
|
label: "" + name,
|
5625
5628
|
type: schema,
|
5626
5629
|
onOK: onOK,
|
5627
|
-
validator: addValidator
|
5630
|
+
validator: addValidator,
|
5631
|
+
className: className
|
5628
5632
|
}));
|
5629
5633
|
}
|
5630
5634
|
|
@@ -8790,7 +8794,8 @@ var TableSelector = function TableSelector(props) {
|
|
8790
8794
|
var field = schema[key];
|
8791
8795
|
return {
|
8792
8796
|
id: field.id,
|
8793
|
-
label: field.label
|
8797
|
+
label: field.label,
|
8798
|
+
type: field.type
|
8794
8799
|
};
|
8795
8800
|
});
|
8796
8801
|
var rows = all.filter(function (item) {
|