@douyinfe/semi-ui 2.43.0 → 2.43.1-alpha.1

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.
@@ -22267,7 +22267,7 @@ const popover_constants_cssClasses = {
22267
22267
  };
22268
22268
  const popover_constants_strings = {
22269
22269
  POSITION_SET: ['top', 'topLeft', 'topRight', 'left', 'leftTop', 'leftBottom', 'right', 'rightTop', 'rightBottom', 'bottom', 'bottomLeft', 'bottomRight', 'leftTopOver', 'rightTopOver'],
22270
- TRIGGER_SET: ['hover', 'focus', 'click', 'custom'],
22270
+ TRIGGER_SET: ['hover', 'focus', 'click', 'custom', 'contextMenu'],
22271
22271
  DEFAULT_ARROW_STYLE: {
22272
22272
  borderOpacity: '1',
22273
22273
  backgroundColor: 'var(--semi-color-bg-3)',
@@ -33061,7 +33061,11 @@ const filterEvents = (events, start, end) => {
33061
33061
  const item = events.get(day);
33062
33062
  const date = new Date(day);
33063
33063
  if (isDateInRange(date, start, end)) {
33064
- res.set(day, item);
33064
+ if (res.has(day)) {
33065
+ res.set(day, [...res.get(day), ...item]);
33066
+ } else {
33067
+ res.set(day, item);
33068
+ }
33065
33069
  } else if (isBefore(end, date)) {
33066
33070
  // do nothing
33067
33071
  } else {
@@ -33393,13 +33397,13 @@ class CalendarFoundation extends foundation {
33393
33397
  }
33394
33398
  convertMapToArray(weekMap, weekStart) {
33395
33399
  const eventArray = [];
33400
+ const map = new Map();
33396
33401
  for (const entry of weekMap.entries()) {
33397
33402
  const [key, value] = entry;
33398
- const map = new Map();
33399
33403
  map.set(key, value);
33400
- const weekEvents = this._parseWeeklyEvents(map, weekStart);
33401
- eventArray.push(...weekEvents);
33402
33404
  }
33405
+ const weekEvents = this._parseWeeklyEvents(map, weekStart);
33406
+ eventArray.push(...weekEvents);
33403
33407
  return eventArray;
33404
33408
  }
33405
33409
  getParseMonthlyEvents(itemLimit) {
@@ -34295,6 +34299,9 @@ class monthCalendar extends BaseComponent {
34295
34299
  }))));
34296
34300
  };
34297
34301
  this.renderEvents = events => {
34302
+ const {
34303
+ itemLimit
34304
+ } = this.state;
34298
34305
  if (!events) {
34299
34306
  return undefined;
34300
34307
  }
@@ -34311,11 +34318,12 @@ class monthCalendar extends BaseComponent {
34311
34318
  width: monthCalendar_toPercent(width),
34312
34319
  top: `${topInd}em`
34313
34320
  };
34314
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", {
34321
+ if (topInd < itemLimit) return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", {
34315
34322
  className: `${calendar_constants_cssClasses.PREFIX}-event-item ${calendar_constants_cssClasses.PREFIX}-event-month`,
34316
34323
  key: key || `${ind}-monthevent`,
34317
34324
  style: style
34318
34325
  }, children);
34326
+ return null;
34319
34327
  });
34320
34328
  return list;
34321
34329
  };
@@ -60273,7 +60281,7 @@ const dropdown_constants_cssClasses = {
60273
60281
  };
60274
60282
  const dropdown_constants_strings = {
60275
60283
  POSITION_SET: tooltip_constants_strings.POSITION_SET,
60276
- TRIGGER_SET: ['hover', 'focus', 'click', 'custom'],
60284
+ TRIGGER_SET: ['hover', 'focus', 'click', 'custom', 'contextMenu'],
60277
60285
  DEFAULT_LEAVE_DELAY: 100,
60278
60286
  ITEM_TYPE: ['primary', 'secondary', 'tertiary', 'warning', 'danger']
60279
60287
  };