@aiquants/drag-drop-panels 0.8.3 → 0.8.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.
- package/dist/DragDropLayout.d.ts +1 -17
- package/dist/drag-drop/ColumnControlPanel.d.ts +0 -24
- package/dist/drag-drop/ColumnInsertPanel.d.ts +0 -24
- package/dist/drag-drop/DebugComponents.d.ts +2 -61
- package/dist/drag-drop/DebugControlPanel.d.ts +1 -23
- package/dist/drag-drop/DebugOverlay.d.ts +2 -44
- package/dist/drag-drop/ResizeHandle.d.ts +2 -4
- package/dist/drag-drop/ResponsiveControl.d.ts +0 -1
- package/dist/drag-drop/hooks/useColumnLayout.d.ts +1 -3
- package/dist/drag-drop/hooks/useCustomDragHandlers.d.ts +2 -4
- package/dist/drag-drop/hooks/useDragDropColumns.d.ts +1 -7
- package/dist/drag-drop/hooks/useDragDropState.d.ts +1 -10
- package/dist/drag-drop/hooks/useFitScale.d.ts +1 -9
- package/dist/drag-drop/hooks/useMouseTracking.d.ts +1 -3
- package/dist/drag-drop/hooks/useNormalDragHandlers.d.ts +1 -20
- package/dist/drag-drop/hooks/usePanelManagement.d.ts +3 -14
- package/dist/drag-drop/hooks/useResponsiveColumns.d.ts +0 -27
- package/dist/drag-drop/types.d.ts +4 -34
- package/dist/drag-drop/utils/columnIdUtils.d.ts +0 -5
- package/dist/drag-drop/utils/edgeScrollUtils.d.ts +0 -8
- package/dist/drag-drop/utils/simple-logger.d.ts +0 -63
- package/dist/index.d.ts +27 -34
- package/package.json +2 -3
- package/dist/DragDropLayout.d.ts.map +0 -1
- package/dist/drag-drop/ColumnControlPanel.d.ts.map +0 -1
- package/dist/drag-drop/ColumnInsertPanel.d.ts.map +0 -1
- package/dist/drag-drop/DebugComponents.d.ts.map +0 -1
- package/dist/drag-drop/DebugControlPanel.d.ts.map +0 -1
- package/dist/drag-drop/DebugOverlay.d.ts.map +0 -1
- package/dist/drag-drop/ResizeHandle.d.ts.map +0 -1
- package/dist/drag-drop/ResponsiveControl.d.ts.map +0 -1
- package/dist/drag-drop/hooks/useColumnLayout.d.ts.map +0 -1
- package/dist/drag-drop/hooks/useCustomDragHandlers.d.ts.map +0 -1
- package/dist/drag-drop/hooks/useDragDropColumns.d.ts.map +0 -1
- package/dist/drag-drop/hooks/useDragDropState.d.ts.map +0 -1
- package/dist/drag-drop/hooks/useFitScale.d.ts.map +0 -1
- package/dist/drag-drop/hooks/useMouseTracking.d.ts.map +0 -1
- package/dist/drag-drop/hooks/useNormalDragHandlers.d.ts.map +0 -1
- package/dist/drag-drop/hooks/usePanelManagement.d.ts.map +0 -1
- package/dist/drag-drop/hooks/useResponsiveColumns.d.ts.map +0 -1
- package/dist/drag-drop/types.d.ts.map +0 -1
- package/dist/drag-drop/utils/columnIdUtils.d.ts.map +0 -1
- package/dist/drag-drop/utils/edgeScrollUtils.d.ts.map +0 -1
- package/dist/drag-drop/utils/simple-logger.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/src/DragDropLayout.spec.tsx +0 -68
- package/src/DragDropLayout.tsx +0 -766
- package/src/drag-drop/ColumnControlPanel.tsx +0 -126
- package/src/drag-drop/ColumnInsertPanel.tsx +0 -107
- package/src/drag-drop/DebugComponents.tsx +0 -222
- package/src/drag-drop/DebugControlPanel.tsx +0 -200
- package/src/drag-drop/DebugOverlay.tsx +0 -250
- package/src/drag-drop/DragDropLayout.css +0 -130
- package/src/drag-drop/ResizeHandle.tsx +0 -208
- package/src/drag-drop/ResponsiveControl.tsx +0 -34
- package/src/drag-drop/hooks/dragGhostScale.spec.tsx +0 -153
- package/src/drag-drop/hooks/useColumnLayout.ts +0 -457
- package/src/drag-drop/hooks/useCustomDragHandlers.tsx +0 -333
- package/src/drag-drop/hooks/useDragDropColumns.tsx +0 -446
- package/src/drag-drop/hooks/useDragDropState.tsx +0 -200
- package/src/drag-drop/hooks/useFitScale.ts +0 -48
- package/src/drag-drop/hooks/useMouseTracking.tsx +0 -102
- package/src/drag-drop/hooks/useNormalDragHandlers.tsx +0 -427
- package/src/drag-drop/hooks/usePanelManagement.tsx +0 -238
- package/src/drag-drop/hooks/useResponsiveColumns.ts +0 -210
- package/src/drag-drop/resize-handle.css +0 -71
- package/src/drag-drop/types.ts +0 -248
- package/src/drag-drop/utils/columnIdUtils.ts +0 -104
- package/src/drag-drop/utils/edgeScrollUtils.ts +0 -124
- package/src/drag-drop/utils/simple-logger.ts +0 -162
- package/src/index.ts +0 -60
- package/src/lucide-icons.d.ts +0 -6
- package/src/styles/standalone.entry.css +0 -27
package/dist/DragDropLayout.d.ts
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import { ColumnConfig, CustomDragState, DebugConfig, DragDropEventHandlers, DragDropStateUpdaters, DragOverPosition, DragState, OriginalPanelPosition, PanelConfig, PanelDragHandle, PanelSizeInfo, ResizeConfig } from
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Props for the DragDropLayout component.
|
|
5
|
-
*
|
|
6
|
-
* DragDropLayout コンポーネントのプロパティ。
|
|
7
|
-
*/
|
|
1
|
+
import { ColumnConfig, CustomDragState, DebugConfig, DragDropEventHandlers, DragDropStateUpdaters, DragOverPosition, DragState, OriginalPanelPosition, PanelConfig, PanelDragHandle, PanelSizeInfo, ResizeConfig } from "./drag-drop/types";
|
|
8
2
|
export interface DragDropLayoutProps extends DragDropEventHandlers, DragDropStateUpdaters, ResizeConfig {
|
|
9
3
|
columns: ColumnConfig[];
|
|
10
4
|
panels: PanelConfig[];
|
|
@@ -27,14 +21,4 @@ export interface DragDropLayoutProps extends DragDropEventHandlers, DragDropStat
|
|
|
27
21
|
};
|
|
28
22
|
onScaleChange?: (scale: number) => void;
|
|
29
23
|
}
|
|
30
|
-
/**
|
|
31
|
-
* The main component for rendering the drag and drop layout.
|
|
32
|
-
* It manages the arrangement of columns and panels, handles all drag and drop logic,
|
|
33
|
-
* and implements FLIP animations for smooth transitions.
|
|
34
|
-
*
|
|
35
|
-
* ドラッグ&ドロップレイアウトを描画するためのメインコンポーネント。
|
|
36
|
-
* カラムとパネルの配置を管理し、すべてのドラッグ&ドロップロジックを処理し、
|
|
37
|
-
* スムーズなトランジションのためのFLIPアニメーションを実装します。
|
|
38
|
-
*/
|
|
39
24
|
export declare const DragDropLayout: ({ columns, panels, columnPanels, panelVisibility, onPanelVisibilityChange, dragState, dragOverPosition, originalPanelPosition, dragModes, onDragStart, onDragEnd, onPlaceholderDragEnter, onPlaceholderDragLeave, onDragOverWithInsert, onDropWithInsert, onColumnDragLeave, onPanelClick, onPanelMouseDown, onTouchStart, onTouchMove, onTouchEnd, debugConfig, panelSizes, setPanelRef, enableResize, columnWidths, onResizeStart, onResize, onResizeEnd, isResizing, resizingColumn, onPanelSizeInfoClick, onToggleDragMode, onPanelClose, onPanelMaximizeChange, customDrag, dragHandle, maximizedPanel, panelClassName, scale: propScale, autoScale, onScaleChange, }: DragDropLayoutProps) => import("react").JSX.Element;
|
|
40
|
-
//# sourceMappingURL=DragDropLayout.d.ts.map
|
|
@@ -1,36 +1,12 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Props for the ColumnControlPanel component.
|
|
3
|
-
*
|
|
4
|
-
* ColumnControlPanel コンポーネントのプロパティ。
|
|
5
|
-
*/
|
|
6
1
|
export type ColumnControlPanelProps = {
|
|
7
|
-
/** The current number of columns. / 現在のカラム数。 */
|
|
8
2
|
columnCount: number;
|
|
9
|
-
/** Callback function when the column count changes. / カラム数が変更されたときのコールバック関数。 */
|
|
10
3
|
onColumnCountChange: (count: number) => void;
|
|
11
|
-
/** Callback function to auto-balance panels across columns. / パネルをカラム間で自動的にバランス調整するためのコールバック関数。 */
|
|
12
4
|
onAutoBalance: () => void;
|
|
13
|
-
/** Callback function to reset column widths to their initial state. / カラム幅を初期状態にリセットするためのコールバック関数。 */
|
|
14
5
|
onResetWidths: () => void;
|
|
15
|
-
/** The minimum number of columns allowed. Defaults to 2. / 許可される最小カラム数。デフォルトは2。 */
|
|
16
6
|
minColumns?: number;
|
|
17
|
-
/** The maximum number of columns allowed. Defaults to 6. / 許可される最大カラム数。デフォルトは6。 */
|
|
18
7
|
maxColumns?: number;
|
|
19
|
-
/** A flag indicating if a resize operation is in progress. / リサイズ操作が進行中かどうかを示すフラグ。 */
|
|
20
8
|
isResizing?: boolean;
|
|
21
|
-
/** A flag indicating if responsive mode is active (restricts manual column adjustments). / レスポンシブモードが有効かどうか(手動カラム調整を制限)。 */
|
|
22
9
|
isResponsiveMode?: boolean;
|
|
23
|
-
/** The responsive column count when responsive mode is active. / レスポンシブモード有効時のレスポンシブカラム数。 */
|
|
24
10
|
responsiveColumnCount?: number;
|
|
25
11
|
};
|
|
26
|
-
/**
|
|
27
|
-
* A UI component that provides controls for managing layout columns.
|
|
28
|
-
* It allows users to add or remove columns, balance panels, and reset widths.
|
|
29
|
-
*
|
|
30
|
-
* レイアウトカラムを管理するためのコントロールを提供するUIコンポーネント。
|
|
31
|
-
* ユーザーはカラムの追加・削除、パネルのバランス調整、幅のリセットができます。
|
|
32
|
-
* @param {ColumnControlPanelProps} props - The props for the component.
|
|
33
|
-
* @returns {JSX.Element} The rendered column control panel.
|
|
34
|
-
*/
|
|
35
12
|
export declare const ColumnControlPanel: ({ columnCount, onColumnCountChange, onAutoBalance, onResetWidths, minColumns, maxColumns, isResizing, isResponsiveMode, responsiveColumnCount }: ColumnControlPanelProps) => import("react").JSX.Element;
|
|
36
|
-
//# sourceMappingURL=ColumnControlPanel.d.ts.map
|
|
@@ -1,34 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Props for the ColumnInsertPanel component。
|
|
3
|
-
*
|
|
4
|
-
* ColumnInsertPanel コンポーネントのプロパティ。
|
|
5
|
-
*/
|
|
6
1
|
export type ColumnInsertPanelProps = {
|
|
7
|
-
/** The current number of columns. / 現在のカラム数。 */
|
|
8
2
|
columnCount: number;
|
|
9
|
-
/** Callback function to insert a column at a specific position. / 特定の位置にカラムを挿入するためのコールバック関数。 */
|
|
10
3
|
onInsertColumn: (position: number) => void;
|
|
11
|
-
/** Callback function to delete a column at a specific position. / 特定の位置のカラムを削除するためのコールバック関数。 */
|
|
12
4
|
onDeleteColumn: (position: number) => void;
|
|
13
|
-
/** The minimum number of columns allowed. Defaults to 1. / 許可される最小カラム数。デフォルトは1。 */
|
|
14
5
|
minColumns?: number;
|
|
15
|
-
/** The maximum number of columns allowed. Defaults to 6. / 許可される最大カラム数。デフォルトは6。 */
|
|
16
6
|
maxColumns?: number;
|
|
17
|
-
/** A flag indicating if a resize operation is in progress. / リサイズ操作が進行中かどうかを示すフラグ。 */
|
|
18
7
|
isResizing?: boolean;
|
|
19
|
-
/** A flag to disable the entire panel (e.g., during responsive mode). / パネル全体を無効化するフラグ(レスポンシブモード時など)。 */
|
|
20
8
|
disabled?: boolean;
|
|
21
9
|
};
|
|
22
|
-
/**
|
|
23
|
-
* A UI component that provides controls for inserting and deleting columns at specific positions.
|
|
24
|
-
* It shows visual indicators between columns where new columns can be inserted,
|
|
25
|
-
* and delete buttons on each column.
|
|
26
|
-
*
|
|
27
|
-
* 特定の位置でカラムの挿入・削除を行うためのコントロールを提供するUIコンポーネント。
|
|
28
|
-
* 新しいカラムを挿入できる位置にビジュアルインジケーターを表示し、
|
|
29
|
-
* 各カラムに削除ボタンを表示します。
|
|
30
|
-
* @param {ColumnInsertPanelProps} props - The props for the component.
|
|
31
|
-
* @returns {JSX.Element} The rendered column insert panel。
|
|
32
|
-
*/
|
|
33
10
|
export declare const ColumnInsertPanel: ({ columnCount, onInsertColumn, onDeleteColumn, minColumns, maxColumns, isResizing, disabled }: ColumnInsertPanelProps) => import("react").JSX.Element;
|
|
34
|
-
//# sourceMappingURL=ColumnInsertPanel.d.ts.map
|
|
@@ -1,66 +1,24 @@
|
|
|
1
|
-
import { MouseEvent } from
|
|
2
|
-
import { CustomDragState, DebugConfig, DragOverPosition, DragState, MousePosition, OriginalPanelPosition, TouchDragState } from
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Props for the DebugPanel component.
|
|
6
|
-
*
|
|
7
|
-
* DebugPanel コンポーネントのプロパティ。
|
|
8
|
-
*/
|
|
1
|
+
import { MouseEvent } from "react";
|
|
2
|
+
import { CustomDragState, DebugConfig, DragOverPosition, DragState, MousePosition, OriginalPanelPosition, TouchDragState } from "./types";
|
|
9
3
|
interface DebugPanelProps {
|
|
10
|
-
/** Debug configuration object. / デバッグ設定オブジェクト。 */
|
|
11
4
|
config: DebugConfig;
|
|
12
|
-
/** The current state of the drag operation. / ドラッグ操作の現在の状態。 */
|
|
13
5
|
dragState: DragState;
|
|
14
|
-
/** The position where the dragged panel is hovering over. / ドラッグ中のパネルがホバーしている位置。 */
|
|
15
6
|
dragOverPosition: DragOverPosition | null;
|
|
16
|
-
/** The original position of the panel being dragged. / ドラッグされているパネルの元の位置。 */
|
|
17
7
|
originalPanelPosition: OriginalPanelPosition | null;
|
|
18
|
-
/** The current mouse coordinates. / 現在のマウス座標。 */
|
|
19
8
|
mousePosition: MousePosition;
|
|
20
|
-
/** The state related to touch-based dragging. / タッチベースのドラッグに関連する状態。 */
|
|
21
9
|
touchDragState: TouchDragState;
|
|
22
|
-
/** The state for custom drag handling. / カスタムドラッグ処理の状態。 */
|
|
23
10
|
customDrag: CustomDragState;
|
|
24
11
|
}
|
|
25
|
-
/**
|
|
26
|
-
* A panel that displays various debug information related to the drag-and-drop state.
|
|
27
|
-
*
|
|
28
|
-
* ドラッグ&ドロップの状態に関連する様々なデバッグ情報を表示するパネル。
|
|
29
|
-
* @param {DebugPanelProps} props - The props for the component.
|
|
30
|
-
* @returns {JSX.Element | null} The rendered debug panel or null if not enabled.
|
|
31
|
-
*/
|
|
32
12
|
export declare const DebugPanel: ({ config, dragState, dragOverPosition, originalPanelPosition, mousePosition, touchDragState, customDrag }: DebugPanelProps) => import("react").JSX.Element | null;
|
|
33
|
-
/**
|
|
34
|
-
* Props for the MousePositionDisplay component.
|
|
35
|
-
*
|
|
36
|
-
* MousePositionDisplay コンポーネントのプロパティ。
|
|
37
|
-
*/
|
|
38
13
|
interface MousePositionDisplayProps {
|
|
39
|
-
/** Debug configuration object. / デバッグ設定オブジェクト。 */
|
|
40
14
|
config: DebugConfig;
|
|
41
|
-
/** The current mouse coordinates. / 現在のマウス座標。 */
|
|
42
15
|
mousePosition: MousePosition;
|
|
43
|
-
/** The current state of the drag operation. / ドラッグ操作の現在の状態。 */
|
|
44
16
|
dragState: DragState;
|
|
45
17
|
}
|
|
46
|
-
/**
|
|
47
|
-
* Displays the current mouse coordinates on the screen during a drag operation.
|
|
48
|
-
*
|
|
49
|
-
* ドラッグ操作中に画面上に現在のマウス座標を表示します。
|
|
50
|
-
* @param {MousePositionDisplayProps} props - The props for the component。
|
|
51
|
-
* @returns {JSX.Element | null} The rendered mouse position display or null if not enabled。
|
|
52
|
-
*/
|
|
53
18
|
export declare const MousePositionDisplay: ({ config, mousePosition, dragState }: MousePositionDisplayProps) => import("react").JSX.Element | null;
|
|
54
|
-
/**
|
|
55
|
-
* Props for the PanelSizeDisplay component。
|
|
56
|
-
*
|
|
57
|
-
* PanelSizeDisplay コンポーネントのプロパティ。
|
|
58
|
-
*/
|
|
59
19
|
interface PanelSizeDisplayProps {
|
|
60
|
-
/** Debug configuration object. / デバッグ設定オブジェクト。 */
|
|
61
20
|
config: DebugConfig;
|
|
62
21
|
panelId: string;
|
|
63
|
-
/** The size and position information of the panel. / パネルのサイズと位置情報。 */
|
|
64
22
|
sizeInfo: {
|
|
65
23
|
width: number;
|
|
66
24
|
height: number;
|
|
@@ -69,25 +27,8 @@ interface PanelSizeDisplayProps {
|
|
|
69
27
|
minHeight: string;
|
|
70
28
|
maxHeight: string;
|
|
71
29
|
} | undefined;
|
|
72
|
-
/** Callback function for click events on the size info display. / サイズ情報表示のクリックイベントのコールバック関数。 */
|
|
73
30
|
onSizeInfoClick: (e: MouseEvent | TouchEvent) => void;
|
|
74
31
|
}
|
|
75
|
-
/**
|
|
76
|
-
* Displays the size and position of a panel.
|
|
77
|
-
*
|
|
78
|
-
* パネルのサイズと位置を表示します。
|
|
79
|
-
* @param {PanelSizeDisplayProps} props - The props for the component。
|
|
80
|
-
* @returns {JSX.Element | null} The rendered panel size display or null if not enabled。
|
|
81
|
-
*/
|
|
82
32
|
export declare const PanelSizeDisplay: ({ config, panelId, sizeInfo, onSizeInfoClick }: PanelSizeDisplayProps) => import("react").JSX.Element | null;
|
|
83
|
-
/**
|
|
84
|
-
* A helper function for logging debug messages to the console based on the configured log level.
|
|
85
|
-
*
|
|
86
|
-
* 設定されたログレベルに基づいてデバッグメッセージをコンソールに出力するためのヘルパー関数。
|
|
87
|
-
* @param {DebugConfig} config - The debug configuration object。
|
|
88
|
-
* @param {1 | 2} level - The log level of the message (1 for basic, 2 for verbose)。
|
|
89
|
-
* @param {...any[]} args - The arguments to log to the console。
|
|
90
|
-
*/
|
|
91
33
|
export declare const debugLog: (config: DebugConfig, level: 1 | 2, ...args: unknown[]) => void;
|
|
92
34
|
export {};
|
|
93
|
-
//# sourceMappingURL=DebugComponents.d.ts.map
|
|
@@ -1,31 +1,9 @@
|
|
|
1
|
-
import { DebugConfig } from
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Props for the DebugControlPanel component.
|
|
5
|
-
*
|
|
6
|
-
* DebugControlPanel コンポーネントのプロパティ。
|
|
7
|
-
*/
|
|
1
|
+
import { DebugConfig } from "./types";
|
|
8
2
|
type DebugControlPanelProps = {
|
|
9
|
-
/** The current debug configuration object. / 現在のデバッグ設定オブジェクト。 */
|
|
10
3
|
config: DebugConfig;
|
|
11
|
-
/** Callback function to update the debug configuration. / デバッグ設定を更新するためのコールバック関数。 */
|
|
12
4
|
onConfigChange: (newConfig: DebugConfig) => void;
|
|
13
|
-
/** A flag indicating if the control panel is currently visible. / コントロールパネルが現在表示されているかどうかを示すフラグ。 */
|
|
14
5
|
isVisible: boolean;
|
|
15
|
-
/** Callback function to toggle the visibility of the control panel. / コントロールパネルの表示を切り替えるためのコールバック関数。 */
|
|
16
6
|
onToggleVisibility: () => void;
|
|
17
7
|
};
|
|
18
|
-
/**
|
|
19
|
-
* A floating panel with controls to manage debug settings.
|
|
20
|
-
* It can be toggled to show/hide and provides checkboxes and a slider
|
|
21
|
-
* to dynamically change the debug configuration.
|
|
22
|
-
*
|
|
23
|
-
* デバッグ設定を管理するためのコントロールを持つフローティングパネル。
|
|
24
|
-
* 表示・非表示を切り替えることができ、チェックボックスとスライダーで
|
|
25
|
-
* デバッグ設定を動的に変更できます。
|
|
26
|
-
* @param {DebugControlPanelProps} props - The props for the component.
|
|
27
|
-
* @returns {JSX.Element} The rendered debug control panel.
|
|
28
|
-
*/
|
|
29
8
|
export declare const DebugControlPanel: ({ config, onConfigChange, isVisible, onToggleVisibility }: DebugControlPanelProps) => import("react").JSX.Element;
|
|
30
9
|
export {};
|
|
31
|
-
//# sourceMappingURL=DebugControlPanel.d.ts.map
|
|
@@ -1,71 +1,29 @@
|
|
|
1
|
-
import { default as React } from
|
|
2
|
-
import { DebugConfig, DragOverPosition, OriginalPanelPosition } from
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Props for the InsertPlaceholder component.
|
|
6
|
-
*
|
|
7
|
-
* InsertPlaceholder コンポーネントのプロパティ。
|
|
8
|
-
*/
|
|
1
|
+
import { default as React } from "react";
|
|
2
|
+
import { DebugConfig, DragOverPosition, OriginalPanelPosition } from "./types";
|
|
9
3
|
interface InsertPlaceholderProps {
|
|
10
|
-
/** The index where the placeholder appears in the column. / カラム内でのプレースホルダーのインデックス。 */
|
|
11
4
|
index: number;
|
|
12
|
-
/** The index of the column containing the placeholder. / プレースホルダーが含まれるカラムのインデックス。 */
|
|
13
5
|
columnIndex: number;
|
|
14
|
-
/** A flag indicating if a drag operation is in progress. / ドラッグ操作が進行中かどうかを示すフラグ。 */
|
|
15
6
|
isDragging: boolean;
|
|
16
|
-
/** The position where the dragged panel is hovering over. / ドラッグ中のパネルがホバーしている位置。 */
|
|
17
7
|
dragOverPosition: DragOverPosition | null;
|
|
18
|
-
/** The original position of the panel being dragged. / ドラッグされているパネルの元の位置。 */
|
|
19
8
|
originalPosition: OriginalPanelPosition | null;
|
|
20
|
-
/** Callback when a dragged item enters the placeholder. / ドラッグアイテムがプレースホルダーに入ったときのコールバック。 */
|
|
21
9
|
onDragEnter: (columnIndex: number, insertIndex: number) => void;
|
|
22
|
-
/** Callback when a dragged item leaves the placeholder. / ドラッグアイテムがプレースホルダーから離れたときのコールバック。 */
|
|
23
10
|
onDragLeave: (e?: React.DragEvent, columnIndex?: number, insertIndex?: number) => void;
|
|
24
|
-
/** Debug configuration object. / デバッグ設定オブジェクト。 */
|
|
25
11
|
config: DebugConfig;
|
|
26
|
-
/** State for custom (non-HTML5) drag handling. / カスタム(非HTML5)ドラッグ処理の状態。 */
|
|
27
12
|
customDrag?: {
|
|
28
13
|
isActive: boolean;
|
|
29
14
|
panelId: string;
|
|
30
15
|
};
|
|
31
16
|
}
|
|
32
|
-
/**
|
|
33
|
-
* A component that renders a placeholder to indicate where a dragged panel can be dropped.
|
|
34
|
-
* It highlights when a panel is dragged over it and is hidden when no drag is active.
|
|
35
|
-
* Features smooth fade-in/fade-out animations for a polished user experience.
|
|
36
|
-
*
|
|
37
|
-
* ドラッグされたパネルをドロップできる場所を示すプレースホルダーをレンダリングするコンポーネント。
|
|
38
|
-
* パネルが上にドラッグされるとハイライトされ、ドラッグがアクティブでないときは非表示になります。
|
|
39
|
-
* 洗練されたユーザーエクスペリエンスのために、滑らかなフェードイン・フェードアウトアニメーションを特徴とします。
|
|
40
|
-
*/
|
|
41
17
|
export declare const InsertPlaceholder: React.NamedExoticComponent<InsertPlaceholderProps>;
|
|
42
|
-
/**
|
|
43
|
-
* Props for the DropZoneDebugOverlay component.
|
|
44
|
-
*
|
|
45
|
-
* DropZoneDebugOverlay コンポーネントのプロパティ。
|
|
46
|
-
*/
|
|
47
18
|
interface DropZoneDebugOverlayProps {
|
|
48
|
-
/** The index of the column this overlay is for. / このオーバーレイが対象とするカラムのインデックス。 */
|
|
49
19
|
columnIndex: number;
|
|
50
|
-
/** A flag indicating if a drag operation is in progress. / ドラッグ操作が進行中かどうかを示すフラグ。 */
|
|
51
20
|
isDragging: boolean;
|
|
52
|
-
/** The position where the dragged panel is hovering over. / ドラッグ中のパネルがホバーしている位置。 */
|
|
53
21
|
dragOverPosition: DragOverPosition | null;
|
|
54
|
-
/** The child elements to be rendered within the overlay. / オーバーレイ内にレンダリングされる子要素。 */
|
|
55
22
|
children: React.ReactNode;
|
|
56
|
-
/** Debug configuration object. / デバッグ設定オブジェクト。 */
|
|
57
23
|
config: DebugConfig;
|
|
58
24
|
}
|
|
59
|
-
/**
|
|
60
|
-
* A component that renders a debug overlay over a drop zone (a column).
|
|
61
|
-
* It shows the boundaries and state (active/idle) of the drop zone during a drag operation。
|
|
62
|
-
*
|
|
63
|
-
* ドロップゾーン(カラム)の上にデバッグオーバーレイをレンダリングするコンポーネント。
|
|
64
|
-
* ドラッグ操作中にドロップゾーンの境界と状態(アクティブ/アイドル)を表示します。
|
|
65
|
-
*/
|
|
66
25
|
export declare const DropZoneDebugOverlay: {
|
|
67
26
|
({ columnIndex, isDragging, dragOverPosition, children, config }: DropZoneDebugOverlayProps): React.JSX.Element;
|
|
68
27
|
displayName: string;
|
|
69
28
|
};
|
|
70
29
|
export {};
|
|
71
|
-
//# sourceMappingURL=DebugOverlay.d.ts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { DebugConfig } from
|
|
3
|
-
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { DebugConfig } from "./types";
|
|
4
3
|
export interface ResizeHandleProps {
|
|
5
4
|
columnId: string;
|
|
6
5
|
onResizeStart: (columnId: string, startX: number) => void;
|
|
@@ -27,4 +26,3 @@ export interface ResizableColumnProps {
|
|
|
27
26
|
children: ReactNode;
|
|
28
27
|
}
|
|
29
28
|
export declare const ResizableColumn: ({ columnId, width, minWidth, maxWidth, onResizeStart, onResize, onResizeEnd, isResizing, resizable, className, debug, children }: ResizableColumnProps) => import("react").JSX.Element;
|
|
30
|
-
//# sourceMappingURL=ResizeHandle.d.ts.map
|
|
@@ -6,4 +6,3 @@ export interface ResponsiveControlProps {
|
|
|
6
6
|
onToggleResponsive: () => void;
|
|
7
7
|
}
|
|
8
8
|
export declare const ResponsiveControl: ({ isResponsiveMode, responsiveColumnCount, currentColumnCount, screenWidth, onToggleResponsive }: ResponsiveControlProps) => import("react").JSX.Element;
|
|
9
|
-
//# sourceMappingURL=ResponsiveControl.d.ts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DebugConfig } from
|
|
2
|
-
|
|
1
|
+
import { DebugConfig } from "../types";
|
|
3
2
|
export interface ColumnConfig {
|
|
4
3
|
id: string;
|
|
5
4
|
title: string;
|
|
@@ -44,4 +43,3 @@ export interface UseColumnLayoutReturn {
|
|
|
44
43
|
setShowInsertPlaceholders: (show: boolean) => void;
|
|
45
44
|
}
|
|
46
45
|
export declare const useColumnLayout: ({ initialColumns, initialPanels, debug, onLayoutChange }: UseColumnLayoutProps) => UseColumnLayoutReturn;
|
|
47
|
-
//# sourceMappingURL=useColumnLayout.d.ts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { DragEvent, MouseEvent } from
|
|
2
|
-
import { ClickState, CustomDragState, DebugConfig, DragOverPosition, DragState, OriginalPanelPosition } from
|
|
3
|
-
|
|
1
|
+
import { DragEvent, MouseEvent } from "react";
|
|
2
|
+
import { ClickState, CustomDragState, DebugConfig, DragOverPosition, DragState, OriginalPanelPosition } from "../types";
|
|
4
3
|
interface UseCustomDragHandlersProps {
|
|
5
4
|
debugConfig: DebugConfig;
|
|
6
5
|
dragState: DragState;
|
|
@@ -39,4 +38,3 @@ export declare const useCustomDragHandlers: ({ debugConfig, dragState, customDra
|
|
|
39
38
|
handleMouseDown: (e: MouseEvent, panelId: string) => void;
|
|
40
39
|
};
|
|
41
40
|
export {};
|
|
42
|
-
//# sourceMappingURL=useCustomDragHandlers.d.ts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DebugConfig, UseDragDropColumnsReturn } from
|
|
2
|
-
|
|
1
|
+
import { DebugConfig, UseDragDropColumnsReturn } from "../types";
|
|
3
2
|
export interface UseDragDropColumnsProps {
|
|
4
3
|
initialColumnPanels: Record<string, string[]>;
|
|
5
4
|
initialPanelVisibility: Record<string, boolean>;
|
|
@@ -13,9 +12,4 @@ export interface UseDragDropColumnsProps {
|
|
|
13
12
|
onColumnPanelsChange?: (newColumnPanels: Record<string, string[]>) => void;
|
|
14
13
|
scale?: number;
|
|
15
14
|
}
|
|
16
|
-
/**
|
|
17
|
-
* Main drag and drop columns hook - integrates all sub-hooks.
|
|
18
|
-
* メインドラッグ&ドロップカラムフック - 全てのサブフックを統合。
|
|
19
|
-
*/
|
|
20
15
|
export declare const useDragDropColumns: ({ initialColumnPanels, initialPanelVisibility, initialDragModes, debugConfig, onPanelMove, onDragModeChange, onColumnPanelsChange, scale }: UseDragDropColumnsProps) => UseDragDropColumnsReturn;
|
|
21
|
-
//# sourceMappingURL=useDragDropColumns.d.ts.map
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import { ClickState, CustomDragState, DragOverPosition, DragState, OriginalPanelPosition, TouchDragState } from
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* A custom hook for managing all states related to drag-and-drop operations.
|
|
5
|
-
* It encapsulates the state logic, providing a clean interface for components to use.
|
|
6
|
-
*
|
|
7
|
-
* ドラッグ&ドロップ操作に関連するすべての状態を管理するためのカスタムフック。
|
|
8
|
-
* 状態ロジックをカプセル化し、コンポーネントが使用するためのクリーンなインターフェースを提供します。
|
|
9
|
-
*/
|
|
1
|
+
import { ClickState, CustomDragState, DragOverPosition, DragState, OriginalPanelPosition, TouchDragState } from "../types";
|
|
10
2
|
export declare const useDragDropState: () => {
|
|
11
3
|
dragState: DragState;
|
|
12
4
|
dragOverPosition: DragOverPosition | null;
|
|
@@ -25,4 +17,3 @@ export declare const useDragDropState: () => {
|
|
|
25
17
|
resetDragState: () => void;
|
|
26
18
|
resetClickState: () => void;
|
|
27
19
|
};
|
|
28
|
-
//# sourceMappingURL=useDragDropState.d.ts.map
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* コンテンツ領域の幅を ResizeObserver で監視し、requiredWidth に満たない場合に
|
|
3
|
-
* ワークスペース全体を視覚縮小するための scale (minScale 〜 1) を返すフック。
|
|
4
|
-
*
|
|
5
|
-
* @param {number} requiredWidth - 等倍表示に必要な最小幅
|
|
6
|
-
* @param {number} [minScale] - 縮小の下限値
|
|
7
|
-
*/
|
|
8
1
|
export declare const useFitScale: (requiredWidth: number, minScale?: number) => {
|
|
9
|
-
containerRef: import(
|
|
2
|
+
containerRef: import("react").RefObject<HTMLDivElement | null>;
|
|
10
3
|
scale: number;
|
|
11
4
|
};
|
|
12
|
-
//# sourceMappingURL=useFitScale.d.ts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { MousePosition } from
|
|
2
|
-
|
|
1
|
+
import { MousePosition } from "../types";
|
|
3
2
|
export declare const useMouseTracking: () => {
|
|
4
3
|
mousePosition: MousePosition;
|
|
5
4
|
lastClickPosition: {
|
|
@@ -20,4 +19,3 @@ export declare const useMouseTracking: () => {
|
|
|
20
19
|
calculateMoveDistance: (x: number, y: number) => number;
|
|
21
20
|
clearMouseTracking: () => void;
|
|
22
21
|
};
|
|
23
|
-
//# sourceMappingURL=useMouseTracking.d.ts.map
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import { CustomDragState, DebugConfig, DragOverPosition, DragState, OriginalPanelPosition } from
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* `useNormalDragHandlers` フックが受け取るプロパティの型定義。
|
|
5
|
-
* Defines the props structure for the `useNormalDragHandlers` hook.
|
|
6
|
-
*/
|
|
1
|
+
import { CustomDragState, DebugConfig, DragOverPosition, DragState, OriginalPanelPosition } from "../types";
|
|
7
2
|
interface UseNormalDragHandlersProps {
|
|
8
3
|
debugConfig: DebugConfig;
|
|
9
4
|
dragState: DragState;
|
|
@@ -23,19 +18,6 @@ interface UseNormalDragHandlersProps {
|
|
|
23
18
|
handlePlaceholderDragLeave: (e?: React.DragEvent<Element>, columnIndex?: number, insertIndex?: number) => void;
|
|
24
19
|
scale?: number;
|
|
25
20
|
}
|
|
26
|
-
/**
|
|
27
|
-
* 標準HTML5 D&Dイベントハンドラを提供するカスタムフック。
|
|
28
|
-
*
|
|
29
|
-
* `useCallback` でメモ化されたイベントハンドラ群を返す。
|
|
30
|
-
* パフォーマンス向上のため、頻繁に更新される値は `useRef` を介して参照し、
|
|
31
|
-
* コールバック関数の再生成を最小限に抑える。
|
|
32
|
-
*
|
|
33
|
-
* A custom hook that provides memoized event handlers for standard HTML5 drag-and-drop。
|
|
34
|
-
*
|
|
35
|
-
* It returns a set of event handlers memoized with `useCallback`。
|
|
36
|
-
* For performance optimization, frequently updated values are accessed via `useRef`
|
|
37
|
-
* to minimize the re-creation of callback functions。
|
|
38
|
-
*/
|
|
39
21
|
export declare const useNormalDragHandlers: ({ debugConfig, dragState, customDrag, dragModes, columnPanels, dragOverPosition, originalPanelPosition, setDragState, setDragOverPosition, setOriginalPanelPosition, performPanelMove, showMousePosition, updateMousePosition, resetDragState, handlePlaceholderDragEnter, handlePlaceholderDragLeave, scale, }: UseNormalDragHandlersProps) => {
|
|
40
22
|
handleDragStart: (e: React.DragEvent, panelId: string) => void;
|
|
41
23
|
handleDragEnd: () => void;
|
|
@@ -44,4 +26,3 @@ export declare const useNormalDragHandlers: ({ debugConfig, dragState, customDra
|
|
|
44
26
|
handleColumnDragLeave: (e: React.DragEvent) => void;
|
|
45
27
|
};
|
|
46
28
|
export {};
|
|
47
|
-
//# sourceMappingURL=useNormalDragHandlers.d.ts.map
|
|
@@ -1,19 +1,9 @@
|
|
|
1
|
-
import { PanelSizeInfo } from
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* A simplified custom hook for managing panel state such as size, visibility, and refs。
|
|
5
|
-
* It provides basic functionalities without the complexity of ResizeObserver for performance。
|
|
6
|
-
*
|
|
7
|
-
* パネルの状態(サイズ、可視性、refなど)を管理するための簡略化されたカスタムフック。
|
|
8
|
-
* パフォーマンスのためにResizeObserverの複雑さなしに、基本的な機能を提供します。
|
|
9
|
-
* @param {Record<string, boolean>} initialPanelVisibility - An object mapping panel IDs to their initial visibility state.
|
|
10
|
-
* @param {number} scale - Current layout scale.
|
|
11
|
-
*/
|
|
1
|
+
import { PanelSizeInfo } from "../types";
|
|
12
2
|
export declare const usePanelManagement: (initialPanelVisibility: Record<string, boolean>, scale?: number) => {
|
|
13
3
|
panelVisibility: Record<string, boolean>;
|
|
14
4
|
panelSizes: Record<string, PanelSizeInfo>;
|
|
15
|
-
setPanelVisibility: import(
|
|
16
|
-
setPanelSizes: import(
|
|
5
|
+
setPanelVisibility: import("react").Dispatch<import("react").SetStateAction<Record<string, boolean>>>;
|
|
6
|
+
setPanelSizes: import("react").Dispatch<import("react").SetStateAction<Record<string, PanelSizeInfo>>>;
|
|
17
7
|
setPanelRef: (panelId: string, el: HTMLDivElement | null) => void;
|
|
18
8
|
updatePanelSize: (panelId: string) => void;
|
|
19
9
|
togglePanelVisibility: (panelId: string) => void;
|
|
@@ -22,4 +12,3 @@ export declare const usePanelManagement: (initialPanelVisibility: Record<string,
|
|
|
22
12
|
updateDragImagePosition: (x: number, y: number) => void;
|
|
23
13
|
removeDragImage: () => void;
|
|
24
14
|
};
|
|
25
|
-
//# sourceMappingURL=usePanelManagement.d.ts.map
|
|
@@ -1,41 +1,14 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Props for the `useResponsiveColumns` hook.
|
|
3
|
-
* `useResponsiveColumns` フックのプロパティ。
|
|
4
|
-
*/
|
|
5
1
|
export interface UseResponsiveColumnsProps {
|
|
6
|
-
/** The minimum width for each column in pixels. / 各カラムの最小幅(ピクセル単位)。 */
|
|
7
2
|
minColumnWidth?: number;
|
|
8
|
-
/** The default number of columns to display when not in responsive mode. / レスポンシブモードでない場合に表示するデフォルトのカラム数。 */
|
|
9
3
|
defaultColumns?: number;
|
|
10
|
-
/** The maximum number of columns allowed. / 許容される最大カラム数。 */
|
|
11
4
|
maxColumns?: number;
|
|
12
|
-
/** The minimum number of columns allowed. / 許容される最小カラム数。 */
|
|
13
5
|
minColumns?: number;
|
|
14
|
-
/** The current column widths to consider for responsive calculation. / レスポンシブ計算で考慮する現在のカラム幅。 */
|
|
15
6
|
currentColumnWidths?: Record<string, number>;
|
|
16
7
|
}
|
|
17
|
-
/**
|
|
18
|
-
* The return value of the `useResponsiveColumns` hook.
|
|
19
|
-
* `useResponsiveColumns` フックの戻り値。
|
|
20
|
-
*/
|
|
21
8
|
export interface UseResponsiveColumnsReturn {
|
|
22
|
-
/** The calculated number of columns for the current screen width. / 現在の画面幅に対して計算されたカラム数。 */
|
|
23
9
|
responsiveColumnCount: number;
|
|
24
|
-
/** A boolean indicating if responsive mode is currently active. / レスポンシブモードが現在アクティブかどうかを示すブール値。 */
|
|
25
10
|
isResponsiveMode: boolean;
|
|
26
|
-
/** The current width of the screen in pixels. / 現在の画面幅(ピクセル単位)。 */
|
|
27
11
|
screenWidth: number;
|
|
28
|
-
/** A function to toggle responsive mode on and off. / レスポンシブモードのオン/オフを切り替える関数。 */
|
|
29
12
|
toggleResponsiveMode: () => void;
|
|
30
13
|
}
|
|
31
|
-
/**
|
|
32
|
-
* A custom hook that determines the number of columns for a responsive layout.
|
|
33
|
-
* It listens to screen resize events and calculates the column count based on the available width.
|
|
34
|
-
*
|
|
35
|
-
* レスポンシブレイアウトのカラム数を決定するカスタムフック。
|
|
36
|
-
* 画面のリサイズイベントをリッスンし、利用可能な幅に基づいてカラム数を計算します。
|
|
37
|
-
* @param {UseResponsiveColumnsProps} [props={}] - Configuration properties for the hook.
|
|
38
|
-
* @returns {UseResponsiveColumnsReturn} An object containing the calculated column count and related state.
|
|
39
|
-
*/
|
|
40
14
|
export declare const useResponsiveColumns: ({ minColumnWidth, defaultColumns, maxColumns, minColumns, currentColumnWidths }?: UseResponsiveColumnsProps) => UseResponsiveColumnsReturn;
|
|
41
|
-
//# sourceMappingURL=useResponsiveColumns.d.ts.map
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { ComponentType, DragEvent, MouseEvent, RefObject, TouchEvent } from
|
|
2
|
-
|
|
1
|
+
import { ComponentType, DragEvent, MouseEvent, RefObject, TouchEvent } from "react";
|
|
3
2
|
export interface ElementWithResizeObserver extends HTMLElement {
|
|
4
3
|
__resizeObserver?: ResizeObserver;
|
|
5
4
|
}
|
|
6
|
-
export type ReactMouseEvent = import(
|
|
7
|
-
export type ReactDragEvent = import(
|
|
8
|
-
export type ReactTouchEvent = import(
|
|
5
|
+
export type ReactMouseEvent = import("react").MouseEvent<Element>;
|
|
6
|
+
export type ReactDragEvent = import("react").DragEvent<Element>;
|
|
7
|
+
export type ReactTouchEvent = import("react").TouchEvent<Element>;
|
|
9
8
|
export type DOMMouseEvent = globalThis.MouseEvent;
|
|
10
9
|
export type DOMDragEvent = globalThis.DragEvent;
|
|
11
10
|
export type DOMTouchEvent = globalThis.TouchEvent;
|
|
@@ -123,37 +122,9 @@ export interface DragDropEventHandlers {
|
|
|
123
122
|
onTouchEnd?: (e: TouchEvent<Element>) => void;
|
|
124
123
|
onPanelSizeInfoClick?: (e: MouseEvent<Element> | TouchEvent<Element>, panelId: string) => void;
|
|
125
124
|
onToggleDragMode?: (panelId: string) => void;
|
|
126
|
-
/**
|
|
127
|
-
* Optional close handler. When provided, the panel header shows an X button that the
|
|
128
|
-
* consumer uses to REMOVE the panel (unlike the EyeOff button, which only hides the
|
|
129
|
-
* panel into the restore bar).
|
|
130
|
-
*
|
|
131
|
-
* 指定時のみパネルヘッダに ✕(完全クローズ)ボタンを表示する。
|
|
132
|
-
* EyeOff(非表示 + 復元バー)とは別の「パネルを取り除く」意味論。
|
|
133
|
-
*/
|
|
134
125
|
onPanelClose?: (panelId: string) => void;
|
|
135
|
-
/**
|
|
136
|
-
* Optional maximize handler (controlled). When provided, the panel header shows a
|
|
137
|
-
* maximize/restore button and the panel whose id equals `maximizedPanel` is rendered
|
|
138
|
-
* as a viewport-filling fixed overlay (OS-window-like maximize). Called with the
|
|
139
|
-
* panelId to maximize, or null to restore. Escape and header double-click also restore.
|
|
140
|
-
*
|
|
141
|
-
* 指定時のみパネルヘッダに最大化/復元ボタンを表示する (制御型)。`maximizedPanel` に
|
|
142
|
-
* 一致するパネルはビューポート全面の fixed オーバーレイとして描画される (OS ウインドウの
|
|
143
|
-
* 最大化と同様)。最大化するときは panelId、復元するときは null で呼ばれる。
|
|
144
|
-
* Escape キーとヘッダのダブルクリックでも復元/最大化をトグルする。
|
|
145
|
-
*/
|
|
146
126
|
onPanelMaximizeChange?: (panelId: string | null) => void;
|
|
147
127
|
}
|
|
148
|
-
/**
|
|
149
|
-
* Where the HTML5 drag can be initiated from (dragMode "normal" only).
|
|
150
|
-
* - "panel" (default): the whole panel is draggable — current behavior.
|
|
151
|
-
* - "header": only the panel header is draggable, so text inside the panel body
|
|
152
|
-
* can be selected/copied (essential for document-viewer panels).
|
|
153
|
-
*
|
|
154
|
-
* HTML5 ドラッグの開始領域。"header" 指定でパネル本文のテキスト選択が可能になる
|
|
155
|
-
* (ドキュメントビューア用途で必須)。既定は従来どおり "panel" 全体。
|
|
156
|
-
*/
|
|
157
128
|
export type PanelDragHandle = "panel" | "header";
|
|
158
129
|
export interface DragDropState {
|
|
159
130
|
columnPanels: Record<string, string[]>;
|
|
@@ -212,4 +183,3 @@ export interface ResizeConfig {
|
|
|
212
183
|
resizingColumn?: string | null;
|
|
213
184
|
}
|
|
214
185
|
export type DragMode = "normal" | "custom";
|
|
215
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview Column ID management utilities for consistent column identification across the application.
|
|
3
|
-
* カラムID管理ユーティリティ - アプリケーション全体でのカラム識別の一貫性を保つ。
|
|
4
|
-
*/
|
|
5
1
|
export interface ColumnIdConfig {
|
|
6
2
|
prefix: string;
|
|
7
3
|
startIndex: number;
|
|
@@ -16,4 +12,3 @@ export declare const getNextColumnId: (existingIds: string[], config?: ColumnIdC
|
|
|
16
12
|
export declare const sortColumnIds: (columnIds: string[], config?: ColumnIdConfig) => string[];
|
|
17
13
|
export declare const createColumnIdMapping: (oldIds: string[], config?: ColumnIdConfig) => Record<string, string>;
|
|
18
14
|
export declare const normalizeColumnPanels: (columnPanels: Record<string, string[]>, newColumnCount: number, config?: ColumnIdConfig) => Record<string, string[]>;
|
|
19
|
-
//# sourceMappingURL=columnIdUtils.d.ts.map
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview Utility functions for implementing edge scrolling during drag operations.
|
|
3
|
-
* This provides auto-scrolling functionality when the cursor reaches the edge of the viewport.
|
|
4
|
-
*
|
|
5
|
-
* ドラッグ操作中のエッジスクロール機能を実装するためのユーティリティ関数。
|
|
6
|
-
* カーソルがビューポートの端に到達した際の自動スクロール機能を提供します。
|
|
7
|
-
*/
|
|
8
1
|
export interface EdgeScrollConfig {
|
|
9
2
|
triggerDistance: number;
|
|
10
3
|
scrollSpeed: number;
|
|
@@ -30,4 +23,3 @@ export declare class EdgeScrollManager {
|
|
|
30
23
|
isScrolling(): boolean;
|
|
31
24
|
updateConfig(newConfig: EdgeScrollConfig): void;
|
|
32
25
|
}
|
|
33
|
-
//# sourceMappingURL=edgeScrollUtils.d.ts.map
|