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