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.cjs +9 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +9 -5
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +9 -5
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/CollectionPage.js +5 -1
- package/src/domain/ContentViewer.js +0 -2
- package/src/widgets/planner/Planner.js +3 -3
package/dist/index.cjs
CHANGED
@@ -2534,15 +2534,15 @@ var Planner = function Planner(_ref) {
|
|
2534
2534
|
focusEvent = _ref.focusEvent,
|
2535
2535
|
onChange = _ref.onChange;
|
2536
2536
|
|
2537
|
-
var _useState = React.useState("
|
2537
|
+
var _useState = React.useState("year"),
|
2538
2538
|
dateRange = _useState[0],
|
2539
2539
|
setDateRange = _useState[1];
|
2540
2540
|
|
2541
|
-
var _useState2 = React.useState("
|
2541
|
+
var _useState2 = React.useState("2022-01-01"),
|
2542
2542
|
from = _useState2[0],
|
2543
2543
|
setFrom = _useState2[1];
|
2544
2544
|
|
2545
|
-
var _useState3 = React.useState("
|
2545
|
+
var _useState3 = React.useState("2022-12-30"),
|
2546
2546
|
to = _useState3[0],
|
2547
2547
|
setTo = _useState3[1];
|
2548
2548
|
|
@@ -4684,7 +4684,9 @@ var CollectionPage = function CollectionPage(props) {
|
|
4684
4684
|
};
|
4685
4685
|
|
4686
4686
|
var site = React.useContext(SiteContext);
|
4687
|
-
var _props$
|
4687
|
+
var _props$version = props.version,
|
4688
|
+
version = _props$version === void 0 ? 0 : _props$version,
|
4689
|
+
_props$id = props.id,
|
4688
4690
|
id = _props$id === void 0 ? "collection" : _props$id,
|
4689
4691
|
icon = props.icon,
|
4690
4692
|
title = props.title,
|
@@ -4720,6 +4722,9 @@ var CollectionPage = function CollectionPage(props) {
|
|
4720
4722
|
return Promise.reject(e);
|
4721
4723
|
}
|
4722
4724
|
}, []);
|
4725
|
+
React.useEffect(function () {
|
4726
|
+
if (version > 0) reload();
|
4727
|
+
}, [version]);
|
4723
4728
|
|
4724
4729
|
function add() {
|
4725
4730
|
var onOK = function onOK(form) {
|
@@ -5252,7 +5257,6 @@ var FieldViewer = function FieldViewer(props) {
|
|
5252
5257
|
visible = _field$visible === void 0 ? true : _field$visible,
|
5253
5258
|
optional = field.optional;
|
5254
5259
|
if (!visible) return null;
|
5255
|
-
console.log("FieldViewer Optional", field, value, optional && value === null);
|
5256
5260
|
if (optional && value === undefined) return null;
|
5257
5261
|
|
5258
5262
|
switch (type) {
|