@imj_media/ui 1.2.66 → 1.2.67

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.esm.js CHANGED
@@ -23222,6 +23222,13 @@ const Mi = class Mi extends Pr {
23222
23222
  ] });
23223
23223
  }, this.getScrollElementRef = (f) => {
23224
23224
  this.props.scrollRef && this.props.scrollRef(f), this.scrollComponent = f;
23225
+ }, this.getEffectiveCanResize = () => {
23226
+ const { canResizeLeft: f, canResizeRight: p, canResize: g } = this.props;
23227
+ if (f != null || p != null) {
23228
+ const x = !!f;
23229
+ return x && !!p ? "both" : x ? "left" : "right";
23230
+ }
23231
+ return g;
23225
23232
  }, this.container = we.createRef(), this.getSelected = this.getSelected.bind(this), this.hasSelectedItem = this.hasSelectedItem.bind(this), this.isItemSelected = this.isItemSelected.bind(this);
23226
23233
  const i = (f) => typeof f == "number" ? f : f.getTime();
23227
23234
  let r = null, n = null;
@@ -23378,7 +23385,7 @@ const Mi = class Mi extends Pr {
23378
23385
  minResizeWidth: this.props.minResizeWidth,
23379
23386
  canChangeGroup: this.props.canChangeGroup,
23380
23387
  canMove: this.props.canMove,
23381
- canResize: this.props.canResize,
23388
+ canResize: this.getEffectiveCanResize(),
23382
23389
  useResizeHandle: this.props.useResizeHandle,
23383
23390
  canSelect: this.props.canSelect,
23384
23391
  moveResizeValidator: this.props.moveResizeValidator,
@@ -23503,7 +23510,10 @@ const Mi = class Mi extends Pr {
23503
23510
  children: /* @__PURE__ */ $(
23504
23511
  "div",
23505
23512
  {
23506
- style: this.props.style,
23513
+ style: {
23514
+ ...this.props.style,
23515
+ ...this.props.height != null && { height: typeof this.props.height == "number" ? `${this.props.height}px` : this.props.height }
23516
+ },
23507
23517
  ref: this.container,
23508
23518
  className: `react-calendar-timeline ${this.props.className}`,
23509
23519
  children: [
@@ -23595,6 +23605,9 @@ Mi.setDayjsLocale = Dt.locale, Mi.defaultProps = {
23595
23605
  dayBackground: null,
23596
23606
  itemsSorted: !1,
23597
23607
  showCursorLine: !1,
23608
+ height: void 0,
23609
+ canResizeLeft: void 0,
23610
+ canResizeRight: void 0,
23598
23611
  defaultTimeStart: null,
23599
23612
  defaultTimeEnd: null,
23600
23613
  itemTouchSendsClick: !1,