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.umd.js
CHANGED
@@ -2596,7 +2596,7 @@
|
|
2596
2596
|
setDragOver = _useState4[1];
|
2597
2597
|
|
2598
2598
|
function select() {
|
2599
|
-
if (onSelect) onSelect(lane, date);
|
2599
|
+
if (onSelect) onSelect(lane, date.moment.format("YYYY-MM-DD"));
|
2600
2600
|
}
|
2601
2601
|
|
2602
2602
|
function onDragOver(event) {
|
@@ -4140,7 +4140,8 @@
|
|
4140
4140
|
_props$delay = props.delay,
|
4141
4141
|
delay = _props$delay === void 0 ? 1000 : _props$delay,
|
4142
4142
|
actions = props.actions,
|
4143
|
-
levels = props.levels
|
4143
|
+
levels = props.levels,
|
4144
|
+
onSelect = props.onSelect;
|
4144
4145
|
|
4145
4146
|
var _useContext = React.useContext(PageContext),
|
4146
4147
|
pageContext = _useContext[0],
|
@@ -4204,9 +4205,11 @@
|
|
4204
4205
|
}, /*#__PURE__*/React__default["default"].createElement(Header, {
|
4205
4206
|
title: /*#__PURE__*/React__default["default"].createElement(Text$1, null, "Lista de ", name)
|
4206
4207
|
}), levels ? /*#__PURE__*/React__default["default"].createElement(CollectionTree, {
|
4207
|
-
levels: levels
|
4208
|
+
levels: levels,
|
4209
|
+
onSelect: onSelect
|
4208
4210
|
}) : /*#__PURE__*/React__default["default"].createElement(CollectionList, {
|
4209
|
-
groupBy: groupBy
|
4211
|
+
groupBy: groupBy,
|
4212
|
+
onSelect: onSelect
|
4210
4213
|
})), /*#__PURE__*/React__default["default"].createElement("main", {
|
4211
4214
|
key: id,
|
4212
4215
|
className: "collection-page"
|
@@ -4228,13 +4231,15 @@
|
|
4228
4231
|
clear();
|
4229
4232
|
return Promise.resolve(pageContext.select(id)).then(function () {
|
4230
4233
|
setPageContext(Object.assign({}, pageContext));
|
4234
|
+
if (onSelect) onSelect(id);
|
4231
4235
|
});
|
4232
4236
|
} catch (e) {
|
4233
4237
|
return Promise.reject(e);
|
4234
4238
|
}
|
4235
4239
|
};
|
4236
4240
|
|
4237
|
-
var groupBy = props.groupBy
|
4241
|
+
var groupBy = props.groupBy,
|
4242
|
+
onSelect = props.onSelect;
|
4238
4243
|
|
4239
4244
|
var _useContext2 = React.useContext(PageContext),
|
4240
4245
|
pageContext = _useContext2[0],
|
@@ -4273,13 +4278,15 @@
|
|
4273
4278
|
clear();
|
4274
4279
|
return Promise.resolve(pageContext.select(id)).then(function () {
|
4275
4280
|
setPageContext(Object.assign({}, pageContext));
|
4281
|
+
if (onSelect) onSelect(id);
|
4276
4282
|
});
|
4277
4283
|
} catch (e) {
|
4278
4284
|
return Promise.reject(e);
|
4279
4285
|
}
|
4280
4286
|
};
|
4281
4287
|
|
4282
|
-
var levels = props.levels
|
4288
|
+
var levels = props.levels,
|
4289
|
+
onSelect = props.onSelect;
|
4283
4290
|
|
4284
4291
|
var _useContext3 = React.useContext(PageContext),
|
4285
4292
|
pageContext = _useContext3[0],
|