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.
@@ -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
- "for": id
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
- if (field) filters[key] = field;
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) {