ywana-core8 0.0.455 → 0.0.458

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
@@ -2529,15 +2529,15 @@
2529
2529
  focusEvent = _ref.focusEvent,
2530
2530
  onChange = _ref.onChange;
2531
2531
 
2532
- var _useState = React.useState("month"),
2532
+ var _useState = React.useState("year"),
2533
2533
  dateRange = _useState[0],
2534
2534
  setDateRange = _useState[1];
2535
2535
 
2536
- var _useState2 = React.useState("2021-02-26"),
2536
+ var _useState2 = React.useState("2022-01-01"),
2537
2537
  from = _useState2[0],
2538
2538
  setFrom = _useState2[1];
2539
2539
 
2540
- var _useState3 = React.useState("2021-04-01"),
2540
+ var _useState3 = React.useState("2022-12-30"),
2541
2541
  to = _useState3[0],
2542
2542
  setTo = _useState3[1];
2543
2543
 
@@ -4679,7 +4679,9 @@
4679
4679
  };
4680
4680
 
4681
4681
  var site = React.useContext(SiteContext);
4682
- var _props$id = props.id,
4682
+ var _props$version = props.version,
4683
+ version = _props$version === void 0 ? 0 : _props$version,
4684
+ _props$id = props.id,
4683
4685
  id = _props$id === void 0 ? "collection" : _props$id,
4684
4686
  icon = props.icon,
4685
4687
  title = props.title,
@@ -4715,6 +4717,9 @@
4715
4717
  return Promise.reject(e);
4716
4718
  }
4717
4719
  }, []);
4720
+ React.useEffect(function () {
4721
+ if (version > 0) reload();
4722
+ }, [version]);
4718
4723
 
4719
4724
  function add() {
4720
4725
  var onOK = function onOK(form) {
@@ -5247,7 +5252,6 @@
5247
5252
  visible = _field$visible === void 0 ? true : _field$visible,
5248
5253
  optional = field.optional;
5249
5254
  if (!visible) return null;
5250
- console.log("FieldViewer Optional", field, value, optional && value === null);
5251
5255
  if (optional && value === undefined) return null;
5252
5256
 
5253
5257
  switch (type) {