schedulant 2.0.7-fixed.3 → 2.0.7-fixed.4

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.
@@ -1,7 +1,7 @@
1
1
  import { SchedulantApi, SchedulantProps } from './schedulant';
2
2
  import { TimelineView } from './timeline-view.tsx';
3
- import { default as React, RefObject, ReactNode } from 'react';
4
- import { ResourceApi } from './resource.ts';
3
+ import { RefObject, ReactNode } from 'react';
4
+ import { DragDropState } from '../hooks/use-move-resource.tsx';
5
5
  import { ResizerMouseDownFunc, ResizerMouseUp } from '../hooks/use-resource-area-resizer.ts';
6
6
  export type SchedulantViewType = "Day" | "Week" | "Month" | "Quarter" | "Year";
7
7
  export declare class SchedulantView {
@@ -17,16 +17,7 @@ export declare class SchedulantView {
17
17
  renderResourceLabel(cellResizerMouseUp: ResizerMouseUp, cellResizerMouseDownFunc: ResizerMouseDownFunc): ReactNode;
18
18
  renderResourceLane(collapseIds: Array<string>, cellResizerMouseUp: ResizerMouseUp, cellResizerMouseDownFunc: ResizerMouseDownFunc, dragDropHandlers?: {
19
19
  isDraggable: boolean;
20
- dragState: {
21
- draggedResource: ResourceApi | null;
22
- dragOverResource: ResourceApi | null;
23
- dropPosition: 'before' | 'after' | 'child' | null;
24
- };
25
- handleDragStart: (resourceApi: ResourceApi) => (e: React.DragEvent) => void;
26
- handleDragOver: (resourceApi: ResourceApi) => (e: React.DragEvent) => void;
27
- handleDragLeave: (e: React.DragEvent) => void;
28
- handleDrop: (resourceApi: ResourceApi) => (e: React.DragEvent) => void;
29
- handleDragEnd: () => void;
20
+ dragState: DragDropState;
30
21
  }): ReactNode;
31
22
  getTimelineView(): TimelineView;
32
23
  getScheduleApi(): SchedulantApi;
@@ -1 +1,4 @@
1
1
  export declare function selectResourceRow(resourceId: string): void;
2
+ export declare function getSelectedResourceId(): string | null;
3
+ export declare function clearResourceSelection(): void;
4
+ export declare function handleSelectionClick(event: MouseEvent): void;
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  ],
8
8
  "license": "MIT",
9
9
  "author": "mengen.dai@outlook.com",
10
- "version": "2.0.7-fixed.3",
10
+ "version": "2.0.7-fixed.4",
11
11
  "main": "dist/schedulant.js",
12
12
  "typings": "dist/schedulant.d.ts",
13
13
  "keywords": [
@@ -38,6 +38,10 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@ant-design/icons": "^6.1.0",
41
+ "@dnd-kit/core": "^6.3.1",
42
+ "@dnd-kit/modifiers": "^9.0.0",
43
+ "@dnd-kit/sortable": "^10.0.0",
44
+ "@dnd-kit/utilities": "^3.2.2",
41
45
  "@eslint/js": "^9.39.2",
42
46
  "@types/lodash": "^4.17.21",
43
47
  "@types/node": "^22.19.3",