ywana-core8 0.0.940 → 0.0.942

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
@@ -3229,12 +3229,14 @@
3229
3229
  var _props$events = props.events,
3230
3230
  events = _props$events === void 0 ? [] : _props$events,
3231
3231
  children = props.children,
3232
- onChange = props.onChange;
3232
+ onChange = props.onChange,
3233
+ onRange = props.onRange;
3233
3234
  var _useState = React.useState(props.range || "year"),
3234
3235
  range = _useState[0],
3235
3236
  setRange = _useState[1];
3236
3237
  function onChangeRange(range) {
3237
3238
  setRange(range);
3239
+ if (onRange) onRange(range);
3238
3240
  }
3239
3241
  return /*#__PURE__*/React__default["default"].createElement("div", {
3240
3242
  className: "calendar"
@@ -7459,6 +7461,9 @@
7459
7461
  onReload: reloadSelection,
7460
7462
  patch: patch,
7461
7463
  onChange: onChange,
7464
+ onClose: function onClose() {
7465
+ return onSelect(null);
7466
+ },
7462
7467
  actions: editorActions,
7463
7468
  title: editorTitle,
7464
7469
  validator: editValidator
@@ -7819,6 +7824,7 @@
7819
7824
  canDelete = props.canDelete,
7820
7825
  onReload = props.onReload,
7821
7826
  onChange = props.onChange,
7827
+ onClose = props.onClose,
7822
7828
  _props$patch2 = props.patch,
7823
7829
  patch = _props$patch2 === void 0 ? false : _props$patch2,
7824
7830
  actions = props.actions,
@@ -7841,6 +7847,7 @@
7841
7847
  function clear() {
7842
7848
  pageContext.clear();
7843
7849
  setPageContext(Object.assign({}, pageContext));
7850
+ if (onClose) onClose();
7844
7851
  }
7845
7852
  function change(next) {
7846
7853
  setForm(next);