@douyinfe/semi-ui 2.43.1 → 2.43.2

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.
@@ -33058,7 +33058,11 @@ const filterEvents = (events, start, end) => {
33058
33058
  const item = events.get(day);
33059
33059
  const date = new Date(day);
33060
33060
  if (isDateInRange(date, start, end)) {
33061
- res.set(day, item);
33061
+ if (res.has(day)) {
33062
+ res.set(day, [...res.get(day), ...item]);
33063
+ } else {
33064
+ res.set(day, item);
33065
+ }
33062
33066
  } else if (isBefore(end, date)) {
33063
33067
  // do nothing
33064
33068
  } else {
@@ -33390,13 +33394,13 @@ class CalendarFoundation extends foundation {
33390
33394
  }
33391
33395
  convertMapToArray(weekMap, weekStart) {
33392
33396
  const eventArray = [];
33397
+ const map = new Map();
33393
33398
  for (const entry of weekMap.entries()) {
33394
33399
  const [key, value] = entry;
33395
- const map = new Map();
33396
33400
  map.set(key, value);
33397
- const weekEvents = this._parseWeeklyEvents(map, weekStart);
33398
- eventArray.push(...weekEvents);
33399
33401
  }
33402
+ const weekEvents = this._parseWeeklyEvents(map, weekStart);
33403
+ eventArray.push(...weekEvents);
33400
33404
  return eventArray;
33401
33405
  }
33402
33406
  getParseMonthlyEvents(itemLimit) {
@@ -34292,6 +34296,9 @@ class monthCalendar extends BaseComponent {
34292
34296
  }))));
34293
34297
  };
34294
34298
  this.renderEvents = events => {
34299
+ const {
34300
+ itemLimit
34301
+ } = this.state;
34295
34302
  if (!events) {
34296
34303
  return undefined;
34297
34304
  }
@@ -34308,11 +34315,12 @@ class monthCalendar extends BaseComponent {
34308
34315
  width: monthCalendar_toPercent(width),
34309
34316
  top: `${topInd}em`
34310
34317
  };
34311
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", {
34318
+ if (topInd < itemLimit) return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", {
34312
34319
  className: `${calendar_constants_cssClasses.PREFIX}-event-item ${calendar_constants_cssClasses.PREFIX}-event-month`,
34313
34320
  key: key || `${ind}-monthevent`,
34314
34321
  style: style
34315
34322
  }, children);
34323
+ return null;
34316
34324
  });
34317
34325
  return list;
34318
34326
  };
@@ -72365,6 +72373,11 @@ class Popconfirm extends BaseComponent {
72365
72373
  });
72366
72374
  const showTitle = title !== null && typeof title !== 'undefined';
72367
72375
  const showContent = !(content === null || typeof content === 'undefined');
72376
+ const hasIcon = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(icon);
72377
+ const bodyCls = classnames_default()({
72378
+ [`${prefixCls}-body`]: true,
72379
+ [`${prefixCls}-body-withIcon`]: hasIcon
72380
+ });
72368
72381
  return (
72369
72382
  /*#__PURE__*/
72370
72383
  /* eslint-disable-next-line jsx-a11y/no-static-element-interactions */
@@ -72376,10 +72389,10 @@ class Popconfirm extends BaseComponent {
72376
72389
  className: `${prefixCls}-inner`
72377
72390
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
72378
72391
  className: `${prefixCls}-header`
72379
- }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("i", {
72392
+ }, hasIcon ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("i", {
72380
72393
  className: `${prefixCls}-header-icon`,
72381
72394
  "x-semi-prop": "icon"
72382
- }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(icon) ? icon : null), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
72395
+ }, icon) : null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
72383
72396
  className: `${prefixCls}-header-body`
72384
72397
  }, showTitle ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
72385
72398
  className: `${prefixCls}-header-title`,
@@ -72392,7 +72405,7 @@ class Popconfirm extends BaseComponent {
72392
72405
  type: cancelType,
72393
72406
  onClick: this.handleCancel
72394
72407
  })), showContent ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
72395
- className: `${prefixCls}-body`,
72408
+ className: bodyCls,
72396
72409
  "x-semi-prop": "content"
72397
72410
  }, isFunction_default()(content) ? content({
72398
72411
  initialFocusRef
@@ -79622,7 +79635,8 @@ function renderDropdown() {
79622
79635
  dropdownProps.visible = filterDropdownVisible;
79623
79636
  }
79624
79637
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(dropdown_0, Object.assign({}, dropdownProps, {
79625
- key: `Dropdown_level_${level}`
79638
+ key: `Dropdown_level_${level}`,
79639
+ className: `${table_constants_cssClasses.PREFIX}-column-filter-dropdown`
79626
79640
  }), nestedElem);
79627
79641
  }
79628
79642
  function ColumnFilter() {