ywana-core8 0.0.255 → 0.0.258
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 +13 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +13 -6
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +13 -6
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/CollectionPage.js +6 -4
- package/src/widgets/planner/Planner.js +1 -1
package/dist/index.cjs
CHANGED
@@ -2601,7 +2601,7 @@ var PlannerCell = function PlannerCell(_ref2) {
|
|
2601
2601
|
setDragOver = _useState4[1];
|
2602
2602
|
|
2603
2603
|
function select() {
|
2604
|
-
if (onSelect) onSelect(lane, date);
|
2604
|
+
if (onSelect) onSelect(lane, date.moment.format("YYYY-MM-DD"));
|
2605
2605
|
}
|
2606
2606
|
|
2607
2607
|
function onDragOver(event) {
|
@@ -4145,7 +4145,8 @@ var CollectionPage = function CollectionPage(props) {
|
|
4145
4145
|
_props$delay = props.delay,
|
4146
4146
|
delay = _props$delay === void 0 ? 1000 : _props$delay,
|
4147
4147
|
actions = props.actions,
|
4148
|
-
levels = props.levels
|
4148
|
+
levels = props.levels,
|
4149
|
+
onSelect = props.onSelect;
|
4149
4150
|
|
4150
4151
|
var _useContext = React.useContext(PageContext),
|
4151
4152
|
pageContext = _useContext[0],
|
@@ -4209,9 +4210,11 @@ var CollectionPage = function CollectionPage(props) {
|
|
4209
4210
|
}, /*#__PURE__*/React__default["default"].createElement(Header, {
|
4210
4211
|
title: /*#__PURE__*/React__default["default"].createElement(Text$1, null, "Lista de ", name)
|
4211
4212
|
}), levels ? /*#__PURE__*/React__default["default"].createElement(CollectionTree, {
|
4212
|
-
levels: levels
|
4213
|
+
levels: levels,
|
4214
|
+
onSelect: onSelect
|
4213
4215
|
}) : /*#__PURE__*/React__default["default"].createElement(CollectionList, {
|
4214
|
-
groupBy: groupBy
|
4216
|
+
groupBy: groupBy,
|
4217
|
+
onSelect: onSelect
|
4215
4218
|
})), /*#__PURE__*/React__default["default"].createElement("main", {
|
4216
4219
|
key: id,
|
4217
4220
|
className: "collection-page"
|
@@ -4233,13 +4236,15 @@ var CollectionList = function CollectionList(props) {
|
|
4233
4236
|
clear();
|
4234
4237
|
return Promise.resolve(pageContext.select(id)).then(function () {
|
4235
4238
|
setPageContext(Object.assign({}, pageContext));
|
4239
|
+
if (onSelect) onSelect(id);
|
4236
4240
|
});
|
4237
4241
|
} catch (e) {
|
4238
4242
|
return Promise.reject(e);
|
4239
4243
|
}
|
4240
4244
|
};
|
4241
4245
|
|
4242
|
-
var groupBy = props.groupBy
|
4246
|
+
var groupBy = props.groupBy,
|
4247
|
+
onSelect = props.onSelect;
|
4243
4248
|
|
4244
4249
|
var _useContext2 = React.useContext(PageContext),
|
4245
4250
|
pageContext = _useContext2[0],
|
@@ -4278,13 +4283,15 @@ var CollectionTree = function CollectionTree(props) {
|
|
4278
4283
|
clear();
|
4279
4284
|
return Promise.resolve(pageContext.select(id)).then(function () {
|
4280
4285
|
setPageContext(Object.assign({}, pageContext));
|
4286
|
+
if (onSelect) onSelect(id);
|
4281
4287
|
});
|
4282
4288
|
} catch (e) {
|
4283
4289
|
return Promise.reject(e);
|
4284
4290
|
}
|
4285
4291
|
};
|
4286
4292
|
|
4287
|
-
var levels = props.levels
|
4293
|
+
var levels = props.levels,
|
4294
|
+
onSelect = props.onSelect;
|
4288
4295
|
|
4289
4296
|
var _useContext3 = React.useContext(PageContext),
|
4290
4297
|
pageContext = _useContext3[0],
|