ywana-core8 0.0.395 → 0.0.398
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 +24 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +24 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +24 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentEditor.js +1 -0
- package/src/domain/ContentEditor.test.js +7 -2
- package/src/domain/ContentType.js +2 -1
- package/src/domain/TablePage.js +15 -4
- package/src/html/color.js +1 -1
- package/src/site/site.test.js +14 -5
package/dist/index.modern.js
CHANGED
@@ -1202,7 +1202,8 @@ var FORMATS = {
|
|
1202
1202
|
HTML: 'HTML',
|
1203
1203
|
URL: 'URL',
|
1204
1204
|
IMG: 'IMG',
|
1205
|
-
COLOR: 'COLOR'
|
1205
|
+
COLOR: 'COLOR',
|
1206
|
+
TOKENS: 'TOKENS'
|
1206
1207
|
};
|
1207
1208
|
/**
|
1208
1209
|
* CHECK
|
@@ -3747,7 +3748,7 @@ var ColorField = function ColorField(props) {
|
|
3747
3748
|
return /*#__PURE__*/React.createElement("div", {
|
3748
3749
|
className: "color-field"
|
3749
3750
|
}, /*#__PURE__*/React.createElement("label", {
|
3750
|
-
|
3751
|
+
htmlFor: id
|
3751
3752
|
}, label), /*#__PURE__*/React.createElement("input", {
|
3752
3753
|
id: id,
|
3753
3754
|
type: "color",
|
@@ -4138,6 +4139,15 @@ var StringEditor = function StringEditor(_ref6) {
|
|
4138
4139
|
readOnly: !editable
|
4139
4140
|
});
|
4140
4141
|
|
4142
|
+
case FORMATS.TOKENS:
|
4143
|
+
return /*#__PURE__*/React.createElement(TokenField, {
|
4144
|
+
id: id,
|
4145
|
+
label: label,
|
4146
|
+
onChange: change,
|
4147
|
+
readOnly: !editable,
|
4148
|
+
options: options
|
4149
|
+
});
|
4150
|
+
|
4141
4151
|
default:
|
4142
4152
|
return options ? /*#__PURE__*/React.createElement(DropDown, {
|
4143
4153
|
outlined: outlined,
|
@@ -6029,7 +6039,18 @@ var TableContext = function TableContext(url, field, host, urlQuery) {
|
|
6029
6039
|
var _temp5 = _catch(function () {
|
6030
6040
|
var filters = filter ? Object.keys(filter).reduce(function (filters, key) {
|
6031
6041
|
var field = filter[key];
|
6032
|
-
|
6042
|
+
|
6043
|
+
if (field) {
|
6044
|
+
if (CHECK['isObject'](field)) {
|
6045
|
+
Object.keys(field).forEach(function (key2) {
|
6046
|
+
var subfield = field[key2];
|
6047
|
+
if (subfield) filters[key + "." + key2] = subfield;
|
6048
|
+
});
|
6049
|
+
} else {
|
6050
|
+
filters[key] = field;
|
6051
|
+
}
|
6052
|
+
}
|
6053
|
+
|
6033
6054
|
return filters;
|
6034
6055
|
}, {}) : [];
|
6035
6056
|
return Promise.resolve(API.all(filters)).then(function (data) {
|