ywana-core8 0.0.357 → 0.0.360

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.umd.js CHANGED
@@ -1850,6 +1850,7 @@
1850
1850
  label = _ref.label,
1851
1851
  _ref$init = _ref.init,
1852
1852
  init = _ref$init === void 0 ? [] : _ref$init,
1853
+ readOnly = _ref.readOnly,
1853
1854
  onChange = _ref.onChange;
1854
1855
  var mounted = React.useRef(false);
1855
1856
 
@@ -1912,7 +1913,8 @@
1912
1913
  type: "text",
1913
1914
  value: value,
1914
1915
  onChange: change,
1915
- onKeyDown: onEnter
1916
+ onKeyDown: onEnter,
1917
+ readOnly: readOnly
1916
1918
  }));
1917
1919
  };
1918
1920
  /**
@@ -3425,11 +3427,16 @@
3425
3427
  target = _ref.target,
3426
3428
  accept = _ref.accept,
3427
3429
  onSuccess = _ref.onSuccess,
3430
+ onComplete = _ref.onComplete,
3428
3431
  onClose = _ref.onClose;
3429
3432
  var site = React.useContext(SiteContext);
3430
3433
 
3431
- function onComplete(uploads) {
3432
- if (onSuccess) onSuccess(uploads);
3434
+ function success(file, message) {
3435
+ if (onSuccess) onSuccess(file, message);
3436
+ }
3437
+
3438
+ function complete(uploads) {
3439
+ if (onComplete) onComplete(uploads);
3433
3440
  }
3434
3441
 
3435
3442
  function onAction(action) {
@@ -3458,7 +3465,8 @@
3458
3465
  label: label,
3459
3466
  accept: accept,
3460
3467
  target: target,
3461
- onComplete: onComplete
3468
+ onSuccess: success,
3469
+ onComplete: complete
3462
3470
  }));
3463
3471
  };
3464
3472
 
@@ -4029,6 +4037,8 @@
4029
4037
  editable = _field$editable === void 0 ? true : _field$editable,
4030
4038
  _field$predictive = field.predictive,
4031
4039
  predictive = _field$predictive === void 0 ? false : _field$predictive,
4040
+ _field$multivalue = field.multivalue,
4041
+ multivalue = _field$multivalue === void 0 ? false : _field$multivalue,
4032
4042
  Editor = field.Editor;
4033
4043
 
4034
4044
  function change(id, value) {
@@ -4071,6 +4081,11 @@
4071
4081
  options: buildOptions(),
4072
4082
  readOnly: !editable,
4073
4083
  predictive: predictive
4084
+ }) : multivalue ? /*#__PURE__*/React__default["default"].createElement(TokenField, {
4085
+ id: id,
4086
+ label: label,
4087
+ onChange: change,
4088
+ readOnly: !editable
4074
4089
  }) : /*#__PURE__*/React__default["default"].createElement(TextField, {
4075
4090
  outlined: outlined,
4076
4091
  id: id,
@@ -5130,8 +5145,10 @@
5130
5145
  var FieldViewer = function FieldViewer(props) {
5131
5146
  var field = props.field,
5132
5147
  value = props.value;
5133
- var type = field.type,
5148
+ var id = field.id,
5149
+ type = field.type,
5134
5150
  label = field.label;
5151
+ if (id === "id") return null;
5135
5152
 
5136
5153
  switch (type) {
5137
5154
  case TYPES.STRING:
@@ -5621,7 +5638,6 @@
5621
5638
  var TableFilters = function TableFilters(props) {
5622
5639
  var reload = function reload() {
5623
5640
  try {
5624
- console.log("TableFilters.reload()", form);
5625
5641
  return Promise.resolve(pageContext.load(form)).then(function () {
5626
5642
  setPageContext(Object.assign({}, pageContext));
5627
5643
  });
@@ -5632,7 +5648,6 @@
5632
5648
 
5633
5649
  var change = function change(next) {
5634
5650
  try {
5635
- console.log("TableFilters.change()", next);
5636
5651
  setForm(next);
5637
5652
  return Promise.resolve();
5638
5653
  } catch (e) {
@@ -5666,11 +5681,9 @@
5666
5681
  return filterSchema;
5667
5682
  }, [schema]);
5668
5683
  React.useEffect(function () {
5669
- console.log("TableFilters onFiltersChange", filters);
5670
5684
  if (filters) setForm(filters);
5671
5685
  }, [filters]);
5672
5686
  React.useEffect(function () {
5673
- console.log("TableFilters onFormChanged", filters);
5674
5687
  reload();
5675
5688
  }, [form]);
5676
5689