@douyinfe/semi-ui 2.44.0-beta.0 → 2.44.0

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.
@@ -33059,7 +33059,11 @@ const filterEvents = (events, start, end) => {
33059
33059
  const item = events.get(day);
33060
33060
  const date = new Date(day);
33061
33061
  if (isDateInRange(date, start, end)) {
33062
- res.set(day, item);
33062
+ if (res.has(day)) {
33063
+ res.set(day, [...res.get(day), ...item]);
33064
+ } else {
33065
+ res.set(day, item);
33066
+ }
33063
33067
  } else if (isBefore(end, date)) {
33064
33068
  // do nothing
33065
33069
  } else {
@@ -33391,13 +33395,13 @@ class CalendarFoundation extends foundation {
33391
33395
  }
33392
33396
  convertMapToArray(weekMap, weekStart) {
33393
33397
  const eventArray = [];
33398
+ const map = new Map();
33394
33399
  for (const entry of weekMap.entries()) {
33395
33400
  const [key, value] = entry;
33396
- const map = new Map();
33397
33401
  map.set(key, value);
33398
- const weekEvents = this._parseWeeklyEvents(map, weekStart);
33399
- eventArray.push(...weekEvents);
33400
33402
  }
33403
+ const weekEvents = this._parseWeeklyEvents(map, weekStart);
33404
+ eventArray.push(...weekEvents);
33401
33405
  return eventArray;
33402
33406
  }
33403
33407
  getParseMonthlyEvents(itemLimit) {
@@ -34293,6 +34297,9 @@ class monthCalendar extends BaseComponent {
34293
34297
  }))));
34294
34298
  };
34295
34299
  this.renderEvents = events => {
34300
+ const {
34301
+ itemLimit
34302
+ } = this.state;
34296
34303
  if (!events) {
34297
34304
  return undefined;
34298
34305
  }
@@ -34309,11 +34316,12 @@ class monthCalendar extends BaseComponent {
34309
34316
  width: monthCalendar_toPercent(width),
34310
34317
  top: `${topInd}em`
34311
34318
  };
34312
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", {
34319
+ if (topInd < itemLimit) return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", {
34313
34320
  className: `${calendar_constants_cssClasses.PREFIX}-event-item ${calendar_constants_cssClasses.PREFIX}-event-month`,
34314
34321
  key: key || `${ind}-monthevent`,
34315
34322
  style: style
34316
34323
  }, children);
34324
+ return null;
34317
34325
  });
34318
34326
  return list;
34319
34327
  };
@@ -76843,6 +76851,7 @@ const BasicStep = props => {
76843
76851
  [`${prefixCls}-active`]: active,
76844
76852
  [`${prefixCls}-done`]: done,
76845
76853
  [`${prefixCls}-hover`]: onChange || props.onClick,
76854
+ [`${prefixCls}-clickable`]: onChange || onClick,
76846
76855
  [`${prefixCls}-${status}-hover`]: onChange || props.onClick
76847
76856
  }, className);
76848
76857
  const handleClick = e => {
@@ -76981,7 +76990,8 @@ const FillStep = props => {
76981
76990
  [prefixCls]: true,
76982
76991
  [`${prefixCls}-${status}`]: Boolean(status),
76983
76992
  [`${prefixCls}-${status}-hover`]: Boolean(status) && (onChange || onClick),
76984
- [`${prefixCls}-clickable`]: onClick
76993
+ [`${prefixCls}-${status}-active`]: Boolean(status) && (onChange || onClick),
76994
+ [`${prefixCls}-clickable`]: onChange || onClick
76985
76995
  }, className),
76986
76996
  style: style,
76987
76997
  onClick: e => {