AfterDragReason
typecomins-sortable/core
export type AfterDragReason = 'drop' | 'outside' | 'pointer-cancel' | 'escape' | 'blur' | 'disabled' | 'not-accepted' | 'nested-cycle' | 'unmounted' | 'state-not-committed' | 'destroyed' | 'error';
dist/core/model.d.ts:91
AfterDragResult
typecomins-sortable/core
export interface AfterDragResult {
status: 'dropped' | 'cancelled' | 'rejected';
reason: AfterDragReason;
change?: SortableChange;
}
dist/core/model.d.ts:92
buildCopyChange
valuecomins-sortable/core
export declare function buildCopyChange(sourceItemIds: readonly SortableId[], destinationItemIds: readonly SortableId[], source: SortableLocation, destination: SortableLocation, itemId: SortableId): SortableChange;
dist/core/operations.d.ts:9
CopyItem
typecomins-sortable/core
export type CopyItem<T> = (item: T, context: CopyItemContext) => T;
dist/core/model.d.ts:80
CopyItemContext
typecomins-sortable/core
export interface CopyItemContext extends DragContext {
destination: SortableLocation;
}
dist/core/model.d.ts:77
createSortable
valuecomins-sortable
export declare function createSortable(element: Element | string, options: VanillaSortableOptions): Sortable;
dist/vanilla/create-sortable.d.ts:2
createSortableScope
valuecomins-sortable/corecomins-sortable/svelte
export declare function createSortableScope(options?: SortableScopeOptions): SortableScope;
export declare function createSortableScope<T>(options?: SvelteSortableScopeOptions<T>): SvelteSortableScope<T>;
dist/core/scope.d.ts:3 · dist/svelte/scope.d.ts:20
createSortableTree
valuecomins-sortable/core
export declare function createSortableTree<T>(options: SortableTreeOptions<T>): SortableTree<T>;
dist/core/tree.d.ts:23
DragContext
typecomins-sortable/core
export interface DragContext {
itemId: SortableId;
source: SortableLocation;
destination: SortableLocation | null;
pointer: PointerSnapshot;
}
dist/core/model.d.ts:71
FrameworkSortableChange
typecomins-sortable/core
export type FrameworkSortableChange<T> = SortableChange & {
updates: readonly SortableAreaUpdate<T>[];
};
dist/core/model.d.ts:57
InsertDragAreaEvent
typecomins-sortable/core
export interface InsertDragAreaEvent extends DragContext {
previousDestination: SortableLocation | null;
destination: SortableLocation;
}
dist/core/model.d.ts:87
ItemKey
typecomins-sortable/core
export type ItemKey<T> = keyof T | ((item: T) => SortableId);
dist/core/model.d.ts:2
PointerSnapshot
typecomins-sortable/core
export interface PointerSnapshot {
type: 'mouse' | 'touch' | 'pen';
clientX: number;
clientY: number;
deltaX: number;
deltaY: number;
altKey: boolean;
ctrlKey: boolean;
metaKey: boolean;
shiftKey: boolean;
}
dist/core/model.d.ts:60
reorder
valuecomins-sortable/core
export declare function reorder<T>(items: readonly T[], fromIndex: number, toIndex: number): readonly T[];
dist/core/operations.d.ts:2
sortable
valuecomins-sortable/svelte
export declare function sortable<T>(node: HTMLElement, initialOptions: SvelteSortableOptions<T>): SvelteActionReturn<T>;
dist/svelte/sortable.d.ts:41
Sortable
typecomins-sortable
export interface Sortable {
registerArea(element: Element | string, options: VanillaSortableAreaOptions): () => void;
updateArea(areaId: string, patch: VanillaSortableAreaPatch): void;
refreshArea(areaId: string): void;
cancel(): void;
destroy(): void;
}
dist/vanilla/types.d.ts:9
SortableAnimation
typecomins-sortable/core
export type SortableAnimation = false | number | SortableAnimationOptions;
dist/core/model.d.ts:17
SortableAnimationOptions
typecomins-sortable/core
export interface SortableAnimationOptions {
duration: number;
easing?: string;
}
dist/core/model.d.ts:13
SortableArea
valuecomins-sortable/reactcomins-sortable/vue
export declare function SortableArea<T>(props: SortableAreaProps<T>): ReactElement;
SortableArea: VueSortableAreaComponent
dist/react/SortableArea.d.ts:32 · dist/vue/SortableArea.d.ts:153
SortableAreaOptions
typecomins-sortable/core
export interface SortableAreaOptions {
areaId: string;
group?: SortableGroup;
item: string;
getItemId?: (element: Element) => SortableId;
direction?: SortableDirection;
disabled?: boolean;
handle?: string;
ignore?: string;
activationDistance?: number;
emptyInsertThreshold?: number;
/** Fraction of a hovered item that activates insertion, from 0 through 1. */
swapThreshold?: number;
/** Move threshold activation from the item center toward its edges. */
invertSwap?: boolean;
/** Exchange the dragged and hovered items instead of insertion sorting. */
swap?: boolean;
/** Enable modifier selection and moving selected items as one ordered group. */
multiDrag?: boolean;
/** Class applied to selected items. */
selectedClass?: string;
autoScroll?: boolean;
animation?: SortableAnimation;
placeholder?: SortablePlaceholderOptions;
parent?: SortableParentLocation;
accept?: (context: DragContext) => boolean;
prepareCopy?: (context: CopyItemContext) => SortableId;
}
dist/core/model.d.ts:97
SortableAreaPatch
typecomins-sortable/core
export type SortableAreaPatch = Partial<Omit<SortableAreaOptions, 'areaId'>>;
dist/core/model.d.ts:125
SortableAreaProps
typecomins-sortable/react
export interface SortableAreaProps<T> {
areaId: string;
group?: SortableGroup;
items: readonly T[];
itemKey: ItemKey<T>;
onItemsChange(items: readonly T[]): void;
children(item: T, index: number): ReactElement;
direction?: SortableDirection;
disabled?: boolean;
handle?: string;
ignore?: string;
activationDistance?: number;
emptyInsertThreshold?: number;
swapThreshold?: number;
invertSwap?: boolean;
swap?: boolean;
multiDrag?: boolean;
selectedClass?: string;
autoScroll?: boolean;
accept?: (context: DragContext) => boolean;
copyItem?: CopyItem<T>;
animation?: SortableAnimation;
placeholder?: SortablePlaceholderOptions;
parent?: SortableParentLocation;
as?: ElementType;
areaProps?: HTMLAttributes<HTMLElement>;
header?: ReactNode;
footer?: ReactNode;
}
dist/react/SortableArea.d.ts:3
SortableAreaUpdate
typecomins-sortable/core
export interface SortableAreaUpdate<T> {
areaId: string;
items: readonly T[];
}
dist/core/model.d.ts:53
SortableChange
typecomins-sortable/core
export type SortableChange = SortableMoveChange | SortableCopyChange | SortableSwapChange;
dist/core/model.d.ts:52
SortableCopyChange
typecomins-sortable/core
export interface SortableCopyChange extends SortableChangeBase {
operation: 'copy';
sourceItemId: SortableId;
}
dist/core/model.d.ts:44
SortableDirection
typecomins-sortable/core
export type SortableDirection = 'vertical' | 'horizontal' | 'grid' | 'auto';
dist/core/model.d.ts:3
SortableError
valuecomins-sortable/core
export declare class SortableError extends Error {
readonly code: SortableErrorCode;
constructor(code: SortableErrorCode);
}
dist/core/errors.d.ts:2
SortableErrorCode
typecomins-sortable/core
export type SortableErrorCode = 'INVALID_ELEMENT' | 'DUPLICATE_AREA_ID' | 'DUPLICATE_ITEM_ID' | 'MISSING_ITEM_ID' | 'INVALID_OPTION';
dist/core/errors.d.ts:1
SortableGroup
typecomins-sortable/core
export type SortableGroup = string | SortableGroupOptions;
dist/core/model.d.ts:86
SortableGroupOptions
typecomins-sortable/core
export interface SortableGroupOptions {
name: string;
pull?: false | SortableTransferMode | ((context: DragContext) => false | SortableTransferMode);
put?: boolean | readonly string[] | ((context: DragContext) => boolean);
}
dist/core/model.d.ts:81
SortableId
typecomins-sortable/core
export type SortableId = string | number;
dist/core/model.d.ts:1
SortableLocation
typecomins-sortable/core
export interface SortableLocation {
areaId: string;
index: number;
}
dist/core/model.d.ts:5
SortableMoveChange
typecomins-sortable/core
export type SortableMoveChange = SortableReorderChange | SortableTransferChange;
dist/core/model.d.ts:43
SortableOrder
typecomins-sortable/core
export interface SortableOrder {
areaId: string;
itemIds: readonly SortableId[];
}
dist/core/model.d.ts:25
SortableParentLocation
typecomins-sortable/core
export interface SortableParentLocation {
areaId: string;
itemId: SortableId;
}
dist/core/model.d.ts:9
SortablePlaceholderOptions
typecomins-sortable/core
export interface SortablePlaceholderOptions {
/** Consumer classes added alongside the stable Comins placeholder class. */
className?: string;
/** Optional visual preset. Skeleton is drag feedback, not a loading state. */
preset?: SortablePlaceholderPreset;
}
dist/core/model.d.ts:19
SortablePlaceholderPreset
typecomins-sortable/core
export type SortablePlaceholderPreset = 'default' | 'skeleton';
dist/core/model.d.ts:18
SortableReorderChange
typecomins-sortable/core
export interface SortableReorderChange extends SortableChangeBase {
operation: 'reorder';
}
dist/core/model.d.ts:37
SortableRoot
valuecomins-sortable/reactcomins-sortable/vue
export declare function SortableRoot<T>(props: SortableRootProps<T>): ReactElement;
SortableRoot: VueSortableRootComponent
dist/react/SortableRoot.d.ts:7 · dist/vue/SortableRoot.d.ts:35
SortableRootProps
typecomins-sortable/react
export interface SortableRootProps<T> extends Omit<SortableScopeOptions, 'onChange'> {
children?: ReactNode;
onChange?: (change: FrameworkSortableChange<T>) => void;
}
dist/react/SortableRoot.d.ts:3
SortableScope
typecomins-sortable/core
export interface SortableScope {
registerArea(element: Element, options: SortableAreaOptions): () => void;
updateArea(areaId: string, patch: SortableAreaPatch): void;
refreshArea?(areaId: string): void;
cancel(): void;
destroy(): void;
}
dist/core/model.d.ts:135
SortableScopeOptions
typecomins-sortable/core
export interface SortableScopeOptions {
onBeforeDragStart?: (context: DragContext) => boolean | void;
onDragStart?: (context: DragContext) => void;
onDrag?: (context: DragContext) => void;
onInsertDragArea?: (event: InsertDragAreaEvent) => void;
onChange?: (change: SortableChange) => void;
onAfterDrag?: (result: AfterDragResult) => void;
onError?: (error: unknown) => void;
}
dist/core/model.d.ts:126
SortableSwapChange
typecomins-sortable/core
export interface SortableSwapChange extends SortableChangeBase {
operation: 'swap';
swapItemId: SortableId;
}
dist/core/model.d.ts:48
SortableTransferChange
typecomins-sortable/core
export interface SortableTransferChange extends SortableChangeBase {
operation: 'transfer';
}
dist/core/model.d.ts:40
SortableTransferMode
typecomins-sortable/core
export type SortableTransferMode = 'move' | 'copy';
dist/core/model.d.ts:4
SortableTree
typecomins-sortable/core
export interface SortableTree<T> {
getAreas(nodes: readonly T[]): readonly SortableTreeArea<T>[];
updateArea(nodes: readonly T[], areaId: string, items: readonly T[]): readonly T[];
applyChange(nodes: readonly T[], change: FrameworkSortableChange<T>): readonly T[];
}
dist/core/tree.d.ts:14
SortableTreeArea
typecomins-sortable/core
export interface SortableTreeArea<T> {
areaId: string;
items: readonly T[];
parent?: SortableParentLocation;
}
dist/core/tree.d.ts:9
SortableTreeOptions
typecomins-sortable/core
export interface SortableTreeOptions<T> {
rootAreaId: string;
getNodeId(node: T): SortableId;
getChildren(node: T): readonly T[];
withChildren(node: T, children: readonly T[]): T;
getChildrenAreaId(node: T): string;
}
dist/core/tree.d.ts:2
SvelteActionReturn
typecomins-sortable/svelte
export interface SvelteActionReturn<T> {
update(options: SvelteSortableOptions<T>): void;
destroy(): void;
}
dist/svelte/sortable.d.ts:30
SvelteSortableOptions
typecomins-sortable/svelte
export interface SvelteSortableOptions<T> {
scope?: SvelteSortableScope<T>;
areaId: string;
group?: SortableGroup;
items: readonly T[];
itemKey: ItemKey<T>;
onItemsChange(items: readonly T[]): void;
direction?: SortableDirection;
disabled?: boolean;
handle?: string;
ignore?: string;
activationDistance?: number;
emptyInsertThreshold?: number;
swapThreshold?: number;
invertSwap?: boolean;
swap?: boolean;
multiDrag?: boolean;
selectedClass?: string;
autoScroll?: boolean;
accept?: (context: DragContext) => boolean;
copyItem?: CopyItem<T>;
animation?: SortableAnimation;
placeholder?: SortablePlaceholderOptions;
parent?: SortableParentLocation;
item?: string;
}
dist/svelte/sortable.d.ts:4
SvelteSortableScope
typecomins-sortable/svelte
export interface SvelteSortableScope<T> {
readonly [svelteScopeBrand]: (item: T) => T;
cancel(): void;
destroy(): void;
}
dist/svelte/scope.d.ts:15
SvelteSortableScopeOptions
typecomins-sortable/svelte
export interface SvelteSortableScopeOptions<T> extends Omit<SortableScopeOptions, 'onChange'> {
onChange?: (change: FrameworkSortableChange<T>) => void;
}
dist/svelte/scope.d.ts:4
transfer
valuecomins-sortable/core
export declare function transfer<T>(sourceItems: readonly T[], destinationItems: readonly T[], sourceIndex: number, destinationIndex: number): {
sourceItems: readonly T[];
destinationItems: readonly T[];
};
dist/core/operations.d.ts:3
VanillaSortableAreaOptions
typecomins-sortable
export interface VanillaSortableAreaOptions extends Omit<SortableAreaOptions, 'getItemId' | 'prepareCopy'> {
getItemId?: (element: Element) => SortableId;
copyElement?: (source: Element, context: CopyItemContext) => Element;
}
dist/vanilla/types.d.ts:2
VanillaSortableAreaPatch
typecomins-sortable
export type VanillaSortableAreaPatch = Partial<Omit<VanillaSortableAreaOptions, 'areaId'>>;
dist/vanilla/types.d.ts:6
VanillaSortableOptions
typecomins-sortable
export interface VanillaSortableOptions extends VanillaSortableAreaOptions, SortableScopeOptions {
}
dist/vanilla/types.d.ts:7
VueSortableAreaComponent
typecomins-sortable/vue
export type VueSortableAreaComponent = Omit<typeof SortableAreaComponent, never> & {
new <T>(props: VueSortableAreaProps<T> & VNodeProps & AllowedComponentProps & ComponentCustomProps): Omit<InstanceType<typeof SortableAreaComponent>, '$props' | '$slots' | '$emit'> & {
$props: VueSortableAreaProps<T> & VNodeProps & AllowedComponentProps & ComponentCustomProps & {
'onUpdate:modelValue'?: (items: T[]) => void;
};
$slots: VueSortableAreaSlots<T>;
$emit(event: 'update:modelValue', items: T[]): void;
};
};
dist/vue/SortableArea.d.ts:144
VueSortableAreaProps
typecomins-sortable/vue
export interface VueSortableAreaProps<T> {
modelValue: readonly T[];
areaId: string;
group?: SortableGroup;
itemKey: ItemKey<T>;
direction?: SortableDirection;
disabled?: boolean;
handle?: string;
ignore?: string;
activationDistance?: number;
emptyInsertThreshold?: number;
swapThreshold?: number;
invertSwap?: boolean;
swap?: boolean;
multiDrag?: boolean;
selectedClass?: string;
autoScroll?: boolean;
accept?: (context: DragContext) => boolean;
copyItem?: CopyItem<T>;
animation?: SortableAnimation;
placeholder?: SortablePlaceholderOptions;
parent?: SortableParentLocation;
tag?: string | Component;
componentProps?: Readonly<Record<string, unknown>>;
}
dist/vue/SortableArea.d.ts:3
VueSortableAreaSlots
typecomins-sortable/vue
export interface VueSortableAreaSlots<T> {
item(props: {
item: T;
index: number;
}): VNodeChild;
header?(): VNodeChild;
footer?(): VNodeChild;
}
dist/vue/SortableArea.d.ts:28
VueSortableRootComponent
typecomins-sortable/vue
export type VueSortableRootComponent = typeof SortableRootComponent & {
new <T>(): {
$props: VueSortableRootProps<T>;
$slots: VueSortableRootSlots;
$emit(event: 'change', change: FrameworkSortableChange<T>): void;
};
};
dist/vue/SortableRoot.d.ts:28
VueSortableRootOptions
typecomins-sortable/vue
export interface VueSortableRootOptions<T> extends Omit<SortableScopeOptions, 'onChange'> {
onChange?: (change: FrameworkSortableChange<T>) => void;
}
dist/vue/context.d.ts:5
VueSortableRootProps
typecomins-sortable/vue
export interface VueSortableRootProps<T> extends Omit<SortableScopeOptions, 'onChange'> {
onChange?: (change: FrameworkSortableChange<T>) => void;
}
dist/vue/SortableRoot.d.ts:3
VueSortableRootSlots
typecomins-sortable/vue
export interface VueSortableRootSlots {
default?(): VNodeChild;
}
dist/vue/SortableRoot.d.ts:6
도달 가능한 공개 계약
공개 export의 시그니처에서 도달하는 패키지 자체 선언과 멤버입니다.
SortableErrorCode
TypeAliasDeclarationexport type SortableErrorCode = 'INVALID_ELEMENT' | 'DUPLICATE_AREA_ID' | 'DUPLICATE_ITEM_ID' | 'MISSING_ITEM_ID' | 'INVALID_OPTION';
dist/core/errors.d.ts:1
SortableError
ClassDeclarationexport declare class SortableError extends Error {
readonly code: SortableErrorCode;
constructor(code: SortableErrorCode);
}
dist/core/errors.d.ts:2
멤버
readonly code: SortableErrorCode;dist/core/errors.d.ts:3constructor(code: SortableErrorCode);dist/core/errors.d.ts:4
SortableId
TypeAliasDeclarationexport type SortableId = string | number;
dist/core/model.d.ts:1
SortableAreaPatch
TypeAliasDeclarationexport type SortableAreaPatch = Partial<Omit<SortableAreaOptions, 'areaId'>>;
dist/core/model.d.ts:125
SortableScopeOptions
InterfaceDeclarationexport interface SortableScopeOptions {
onBeforeDragStart?: (context: DragContext) => boolean | void;
onDragStart?: (context: DragContext) => void;
onDrag?: (context: DragContext) => void;
onInsertDragArea?: (event: InsertDragAreaEvent) => void;
onChange?: (change: SortableChange) => void;
onAfterDrag?: (result: AfterDragResult) => void;
onError?: (error: unknown) => void;
}
dist/core/model.d.ts:126
멤버
onBeforeDragStart?: (context: DragContext) => boolean | void;dist/core/model.d.ts:127onDragStart?: (context: DragContext) => void;dist/core/model.d.ts:128onDrag?: (context: DragContext) => void;dist/core/model.d.ts:129onInsertDragArea?: (event: InsertDragAreaEvent) => void;dist/core/model.d.ts:130onChange?: (change: SortableChange) => void;dist/core/model.d.ts:131onAfterDrag?: (result: AfterDragResult) => void;dist/core/model.d.ts:132onError?: (error: unknown) => void;dist/core/model.d.ts:133
SortableAnimationOptions
InterfaceDeclarationexport interface SortableAnimationOptions {
duration: number;
easing?: string;
}
dist/core/model.d.ts:13
멤버
duration: number;dist/core/model.d.ts:14easing?: string;dist/core/model.d.ts:15
SortableScope
InterfaceDeclarationexport interface SortableScope {
registerArea(element: Element, options: SortableAreaOptions): () => void;
updateArea(areaId: string, patch: SortableAreaPatch): void;
refreshArea?(areaId: string): void;
cancel(): void;
destroy(): void;
}
dist/core/model.d.ts:135
멤버
registerArea(element: Element, options: SortableAreaOptions): () => void;dist/core/model.d.ts:136updateArea(areaId: string, patch: SortableAreaPatch): void;dist/core/model.d.ts:137refreshArea?(areaId: string): void;dist/core/model.d.ts:138cancel(): void;dist/core/model.d.ts:139destroy(): void;dist/core/model.d.ts:140
SortableAnimation
TypeAliasDeclarationexport type SortableAnimation = false | number | SortableAnimationOptions;
dist/core/model.d.ts:17
SortablePlaceholderPreset
TypeAliasDeclarationexport type SortablePlaceholderPreset = 'default' | 'skeleton';
dist/core/model.d.ts:18
SortablePlaceholderOptions
InterfaceDeclarationexport interface SortablePlaceholderOptions {
/** Consumer classes added alongside the stable Comins placeholder class. */
className?: string;
/** Optional visual preset. Skeleton is drag feedback, not a loading state. */
preset?: SortablePlaceholderPreset;
}
dist/core/model.d.ts:19
멤버
className?: string;dist/core/model.d.ts:21preset?: SortablePlaceholderPreset;dist/core/model.d.ts:23
ItemKey
TypeAliasDeclarationexport type ItemKey<T> = keyof T | ((item: T) => SortableId);
dist/core/model.d.ts:2
SortableOrder
InterfaceDeclarationexport interface SortableOrder {
areaId: string;
itemIds: readonly SortableId[];
}
dist/core/model.d.ts:25
멤버
areaId: string;dist/core/model.d.ts:26itemIds: readonly SortableId[];dist/core/model.d.ts:27
SortableChangeBase
InterfaceDeclarationinterface SortableChangeBase {
itemId: SortableId;
/** All items moved by a multi-drag, in their original visual order. */
itemIds?: readonly SortableId[];
source: SortableLocation;
destination: SortableLocation;
orders: readonly SortableOrder[];
}
dist/core/model.d.ts:29
멤버
itemId: SortableId;dist/core/model.d.ts:30itemIds?: readonly SortableId[];dist/core/model.d.ts:32source: SortableLocation;dist/core/model.d.ts:33destination: SortableLocation;dist/core/model.d.ts:34orders: readonly SortableOrder[];dist/core/model.d.ts:35
SortableDirection
TypeAliasDeclarationexport type SortableDirection = 'vertical' | 'horizontal' | 'grid' | 'auto';
dist/core/model.d.ts:3
SortableReorderChange
InterfaceDeclarationexport interface SortableReorderChange extends SortableChangeBase {
operation: 'reorder';
}
dist/core/model.d.ts:37
멤버
operation: 'reorder';dist/core/model.d.ts:38
SortableTransferMode
TypeAliasDeclarationexport type SortableTransferMode = 'move' | 'copy';
dist/core/model.d.ts:4
SortableTransferChange
InterfaceDeclarationexport interface SortableTransferChange extends SortableChangeBase {
operation: 'transfer';
}
dist/core/model.d.ts:40
멤버
operation: 'transfer';dist/core/model.d.ts:41
SortableMoveChange
TypeAliasDeclarationexport type SortableMoveChange = SortableReorderChange | SortableTransferChange;
dist/core/model.d.ts:43
SortableCopyChange
InterfaceDeclarationexport interface SortableCopyChange extends SortableChangeBase {
operation: 'copy';
sourceItemId: SortableId;
}
dist/core/model.d.ts:44
멤버
operation: 'copy';dist/core/model.d.ts:45sourceItemId: SortableId;dist/core/model.d.ts:46
SortableSwapChange
InterfaceDeclarationexport interface SortableSwapChange extends SortableChangeBase {
operation: 'swap';
swapItemId: SortableId;
}
dist/core/model.d.ts:48
멤버
operation: 'swap';dist/core/model.d.ts:49swapItemId: SortableId;dist/core/model.d.ts:50
SortableLocation
InterfaceDeclarationexport interface SortableLocation {
areaId: string;
index: number;
}
dist/core/model.d.ts:5
멤버
areaId: string;dist/core/model.d.ts:6index: number;dist/core/model.d.ts:7
SortableChange
TypeAliasDeclarationexport type SortableChange = SortableMoveChange | SortableCopyChange | SortableSwapChange;
dist/core/model.d.ts:52
SortableAreaUpdate
InterfaceDeclarationexport interface SortableAreaUpdate<T> {
areaId: string;
items: readonly T[];
}
dist/core/model.d.ts:53
멤버
areaId: string;dist/core/model.d.ts:54items: readonly T[];dist/core/model.d.ts:55
FrameworkSortableChange
TypeAliasDeclarationexport type FrameworkSortableChange<T> = SortableChange & {
updates: readonly SortableAreaUpdate<T>[];
};
dist/core/model.d.ts:57
PointerSnapshot
InterfaceDeclarationexport interface PointerSnapshot {
type: 'mouse' | 'touch' | 'pen';
clientX: number;
clientY: number;
deltaX: number;
deltaY: number;
altKey: boolean;
ctrlKey: boolean;
metaKey: boolean;
shiftKey: boolean;
}
dist/core/model.d.ts:60
멤버
type: 'mouse' | 'touch' | 'pen';dist/core/model.d.ts:61clientX: number;dist/core/model.d.ts:62clientY: number;dist/core/model.d.ts:63deltaX: number;dist/core/model.d.ts:64deltaY: number;dist/core/model.d.ts:65altKey: boolean;dist/core/model.d.ts:66ctrlKey: boolean;dist/core/model.d.ts:67metaKey: boolean;dist/core/model.d.ts:68shiftKey: boolean;dist/core/model.d.ts:69
DragContext
InterfaceDeclarationexport interface DragContext {
itemId: SortableId;
source: SortableLocation;
destination: SortableLocation | null;
pointer: PointerSnapshot;
}
dist/core/model.d.ts:71
멤버
itemId: SortableId;dist/core/model.d.ts:72source: SortableLocation;dist/core/model.d.ts:73destination: SortableLocation | null;dist/core/model.d.ts:74pointer: PointerSnapshot;dist/core/model.d.ts:75
CopyItemContext
InterfaceDeclarationexport interface CopyItemContext extends DragContext {
destination: SortableLocation;
}
dist/core/model.d.ts:77
멤버
destination: SortableLocation;dist/core/model.d.ts:78
CopyItem
TypeAliasDeclarationexport type CopyItem<T> = (item: T, context: CopyItemContext) => T;
dist/core/model.d.ts:80
SortableGroupOptions
InterfaceDeclarationexport interface SortableGroupOptions {
name: string;
pull?: false | SortableTransferMode | ((context: DragContext) => false | SortableTransferMode);
put?: boolean | readonly string[] | ((context: DragContext) => boolean);
}
dist/core/model.d.ts:81
멤버
name: string;dist/core/model.d.ts:82pull?: false | SortableTransferMode | ((context: DragContext) => false | SortableTransferMode);dist/core/model.d.ts:83put?: boolean | readonly string[] | ((context: DragContext) => boolean);dist/core/model.d.ts:84
SortableGroup
TypeAliasDeclarationexport type SortableGroup = string | SortableGroupOptions;
dist/core/model.d.ts:86
InsertDragAreaEvent
InterfaceDeclarationexport interface InsertDragAreaEvent extends DragContext {
previousDestination: SortableLocation | null;
destination: SortableLocation;
}
dist/core/model.d.ts:87
멤버
previousDestination: SortableLocation | null;dist/core/model.d.ts:88destination: SortableLocation;dist/core/model.d.ts:89
SortableParentLocation
InterfaceDeclarationexport interface SortableParentLocation {
areaId: string;
itemId: SortableId;
}
dist/core/model.d.ts:9
멤버
areaId: string;dist/core/model.d.ts:10itemId: SortableId;dist/core/model.d.ts:11
AfterDragReason
TypeAliasDeclarationexport type AfterDragReason = 'drop' | 'outside' | 'pointer-cancel' | 'escape' | 'blur' | 'disabled' | 'not-accepted' | 'nested-cycle' | 'unmounted' | 'state-not-committed' | 'destroyed' | 'error';
dist/core/model.d.ts:91
AfterDragResult
InterfaceDeclarationexport interface AfterDragResult {
status: 'dropped' | 'cancelled' | 'rejected';
reason: AfterDragReason;
change?: SortableChange;
}
dist/core/model.d.ts:92
멤버
status: 'dropped' | 'cancelled' | 'rejected';dist/core/model.d.ts:93reason: AfterDragReason;dist/core/model.d.ts:94change?: SortableChange;dist/core/model.d.ts:95
SortableAreaOptions
InterfaceDeclarationexport interface SortableAreaOptions {
areaId: string;
group?: SortableGroup;
item: string;
getItemId?: (element: Element) => SortableId;
direction?: SortableDirection;
disabled?: boolean;
handle?: string;
ignore?: string;
activationDistance?: number;
emptyInsertThreshold?: number;
/** Fraction of a hovered item that activates insertion, from 0 through 1. */
swapThreshold?: number;
/** Move threshold activation from the item center toward its edges. */
invertSwap?: boolean;
/** Exchange the dragged and hovered items instead of insertion sorting. */
swap?: boolean;
/** Enable modifier selection and moving selected items as one ordered group. */
multiDrag?: boolean;
/** Class applied to selected items. */
selectedClass?: string;
autoScroll?: boolean;
animation?: SortableAnimation;
placeholder?: SortablePlaceholderOptions;
parent?: SortableParentLocation;
accept?: (context: DragContext) => boolean;
prepareCopy?: (context: CopyItemContext) => SortableId;
}
dist/core/model.d.ts:97
멤버
areaId: string;dist/core/model.d.ts:98group?: SortableGroup;dist/core/model.d.ts:99item: string;dist/core/model.d.ts:100getItemId?: (element: Element) => SortableId;dist/core/model.d.ts:101direction?: SortableDirection;dist/core/model.d.ts:102disabled?: boolean;dist/core/model.d.ts:103handle?: string;dist/core/model.d.ts:104ignore?: string;dist/core/model.d.ts:105activationDistance?: number;dist/core/model.d.ts:106emptyInsertThreshold?: number;dist/core/model.d.ts:107swapThreshold?: number;dist/core/model.d.ts:109invertSwap?: boolean;dist/core/model.d.ts:111swap?: boolean;dist/core/model.d.ts:113multiDrag?: boolean;dist/core/model.d.ts:115selectedClass?: string;dist/core/model.d.ts:117autoScroll?: boolean;dist/core/model.d.ts:118animation?: SortableAnimation;dist/core/model.d.ts:119placeholder?: SortablePlaceholderOptions;dist/core/model.d.ts:120parent?: SortableParentLocation;dist/core/model.d.ts:121accept?: (context: DragContext) => boolean;dist/core/model.d.ts:122prepareCopy?: (context: CopyItemContext) => SortableId;dist/core/model.d.ts:123
reorder
FunctionDeclarationexport declare function reorder<T>(items: readonly T[], fromIndex: number, toIndex: number): readonly T[];
dist/core/operations.d.ts:2
transfer
FunctionDeclarationexport declare function transfer<T>(sourceItems: readonly T[], destinationItems: readonly T[], sourceIndex: number, destinationIndex: number): {
sourceItems: readonly T[];
destinationItems: readonly T[];
};
dist/core/operations.d.ts:3
buildCopyChange
FunctionDeclarationexport declare function buildCopyChange(sourceItemIds: readonly SortableId[], destinationItemIds: readonly SortableId[], source: SortableLocation, destination: SortableLocation, itemId: SortableId): SortableChange;
dist/core/operations.d.ts:9
createSortableScope
FunctionDeclarationexport declare function createSortableScope(options?: SortableScopeOptions): SortableScope;
dist/core/scope.d.ts:3
SortableTree
InterfaceDeclarationexport interface SortableTree<T> {
getAreas(nodes: readonly T[]): readonly SortableTreeArea<T>[];
updateArea(nodes: readonly T[], areaId: string, items: readonly T[]): readonly T[];
applyChange(nodes: readonly T[], change: FrameworkSortableChange<T>): readonly T[];
}
dist/core/tree.d.ts:14
멤버
getAreas(nodes: readonly T[]): readonly SortableTreeArea<T>[];dist/core/tree.d.ts:15updateArea(nodes: readonly T[], areaId: string, items: readonly T[]): readonly T[];dist/core/tree.d.ts:16applyChange(nodes: readonly T[], change: FrameworkSortableChange<T>): readonly T[];dist/core/tree.d.ts:17
SortableTreeOptions
InterfaceDeclarationexport interface SortableTreeOptions<T> {
rootAreaId: string;
getNodeId(node: T): SortableId;
getChildren(node: T): readonly T[];
withChildren(node: T, children: readonly T[]): T;
getChildrenAreaId(node: T): string;
}
dist/core/tree.d.ts:2
멤버
rootAreaId: string;dist/core/tree.d.ts:3getNodeId(node: T): SortableId;dist/core/tree.d.ts:4getChildren(node: T): readonly T[];dist/core/tree.d.ts:5withChildren(node: T, children: readonly T[]): T;dist/core/tree.d.ts:6getChildrenAreaId(node: T): string;dist/core/tree.d.ts:7
createSortableTree
FunctionDeclarationexport declare function createSortableTree<T>(options: SortableTreeOptions<T>): SortableTree<T>;
dist/core/tree.d.ts:23
SortableTreeArea
InterfaceDeclarationexport interface SortableTreeArea<T> {
areaId: string;
items: readonly T[];
parent?: SortableParentLocation;
}
dist/core/tree.d.ts:9
멤버
areaId: string;dist/core/tree.d.ts:10items: readonly T[];dist/core/tree.d.ts:11parent?: SortableParentLocation;dist/core/tree.d.ts:12
SortableAreaProps
InterfaceDeclarationexport interface SortableAreaProps<T> {
areaId: string;
group?: SortableGroup;
items: readonly T[];
itemKey: ItemKey<T>;
onItemsChange(items: readonly T[]): void;
children(item: T, index: number): ReactElement;
direction?: SortableDirection;
disabled?: boolean;
handle?: string;
ignore?: string;
activationDistance?: number;
emptyInsertThreshold?: number;
swapThreshold?: number;
invertSwap?: boolean;
swap?: boolean;
multiDrag?: boolean;
selectedClass?: string;
autoScroll?: boolean;
accept?: (context: DragContext) => boolean;
copyItem?: CopyItem<T>;
animation?: SortableAnimation;
placeholder?: SortablePlaceholderOptions;
parent?: SortableParentLocation;
as?: ElementType;
areaProps?: HTMLAttributes<HTMLElement>;
header?: ReactNode;
footer?: ReactNode;
}
dist/react/SortableArea.d.ts:3
멤버
areaId: string;dist/react/SortableArea.d.ts:4group?: SortableGroup;dist/react/SortableArea.d.ts:5items: readonly T[];dist/react/SortableArea.d.ts:6itemKey: ItemKey<T>;dist/react/SortableArea.d.ts:7onItemsChange(items: readonly T[]): void;dist/react/SortableArea.d.ts:8children(item: T, index: number): ReactElement;dist/react/SortableArea.d.ts:9direction?: SortableDirection;dist/react/SortableArea.d.ts:10disabled?: boolean;dist/react/SortableArea.d.ts:11handle?: string;dist/react/SortableArea.d.ts:12ignore?: string;dist/react/SortableArea.d.ts:13activationDistance?: number;dist/react/SortableArea.d.ts:14emptyInsertThreshold?: number;dist/react/SortableArea.d.ts:15swapThreshold?: number;dist/react/SortableArea.d.ts:16invertSwap?: boolean;dist/react/SortableArea.d.ts:17swap?: boolean;dist/react/SortableArea.d.ts:18multiDrag?: boolean;dist/react/SortableArea.d.ts:19selectedClass?: string;dist/react/SortableArea.d.ts:20autoScroll?: boolean;dist/react/SortableArea.d.ts:21accept?: (context: DragContext) => boolean;dist/react/SortableArea.d.ts:22copyItem?: CopyItem<T>;dist/react/SortableArea.d.ts:23animation?: SortableAnimation;dist/react/SortableArea.d.ts:24placeholder?: SortablePlaceholderOptions;dist/react/SortableArea.d.ts:25parent?: SortableParentLocation;dist/react/SortableArea.d.ts:26as?: ElementType;dist/react/SortableArea.d.ts:27areaProps?: HTMLAttributes<HTMLElement>;dist/react/SortableArea.d.ts:28header?: ReactNode;dist/react/SortableArea.d.ts:29footer?: ReactNode;dist/react/SortableArea.d.ts:30
SortableArea
FunctionDeclarationexport declare function SortableArea<T>(props: SortableAreaProps<T>): ReactElement;
dist/react/SortableArea.d.ts:32
SortableRootProps
InterfaceDeclarationexport interface SortableRootProps<T> extends Omit<SortableScopeOptions, 'onChange'> {
children?: ReactNode;
onChange?: (change: FrameworkSortableChange<T>) => void;
}
dist/react/SortableRoot.d.ts:3
멤버
children?: ReactNode;dist/react/SortableRoot.d.ts:4onChange?: (change: FrameworkSortableChange<T>) => void;dist/react/SortableRoot.d.ts:5
SortableRoot
FunctionDeclarationexport declare function SortableRoot<T>(props: SortableRootProps<T>): ReactElement;
dist/react/SortableRoot.d.ts:7
svelteScopeBrand
VariableDeclarationsvelteScopeBrand: unique symbol
dist/svelte/scope.d.ts:14
SvelteSortableScope
InterfaceDeclarationexport interface SvelteSortableScope<T> {
readonly [svelteScopeBrand]: (item: T) => T;
cancel(): void;
destroy(): void;
}
dist/svelte/scope.d.ts:15
멤버
readonly [svelteScopeBrand]: (item: T) => T;dist/svelte/scope.d.ts:16cancel(): void;dist/svelte/scope.d.ts:17destroy(): void;dist/svelte/scope.d.ts:18
createSortableScope
FunctionDeclarationexport declare function createSortableScope<T>(options?: SvelteSortableScopeOptions<T>): SvelteSortableScope<T>;
dist/svelte/scope.d.ts:20
SvelteSortableScopeOptions
InterfaceDeclarationexport interface SvelteSortableScopeOptions<T> extends Omit<SortableScopeOptions, 'onChange'> {
onChange?: (change: FrameworkSortableChange<T>) => void;
}
dist/svelte/scope.d.ts:4
멤버
onChange?: (change: FrameworkSortableChange<T>) => void;dist/svelte/scope.d.ts:5
SvelteActionReturn
InterfaceDeclarationexport interface SvelteActionReturn<T> {
update(options: SvelteSortableOptions<T>): void;
destroy(): void;
}
dist/svelte/sortable.d.ts:30
멤버
update(options: SvelteSortableOptions<T>): void;dist/svelte/sortable.d.ts:31destroy(): void;dist/svelte/sortable.d.ts:32
SvelteSortableOptions
InterfaceDeclarationexport interface SvelteSortableOptions<T> {
scope?: SvelteSortableScope<T>;
areaId: string;
group?: SortableGroup;
items: readonly T[];
itemKey: ItemKey<T>;
onItemsChange(items: readonly T[]): void;
direction?: SortableDirection;
disabled?: boolean;
handle?: string;
ignore?: string;
activationDistance?: number;
emptyInsertThreshold?: number;
swapThreshold?: number;
invertSwap?: boolean;
swap?: boolean;
multiDrag?: boolean;
selectedClass?: string;
autoScroll?: boolean;
accept?: (context: DragContext) => boolean;
copyItem?: CopyItem<T>;
animation?: SortableAnimation;
placeholder?: SortablePlaceholderOptions;
parent?: SortableParentLocation;
item?: string;
}
dist/svelte/sortable.d.ts:4
멤버
scope?: SvelteSortableScope<T>;dist/svelte/sortable.d.ts:5areaId: string;dist/svelte/sortable.d.ts:6group?: SortableGroup;dist/svelte/sortable.d.ts:7items: readonly T[];dist/svelte/sortable.d.ts:8itemKey: ItemKey<T>;dist/svelte/sortable.d.ts:9onItemsChange(items: readonly T[]): void;dist/svelte/sortable.d.ts:10direction?: SortableDirection;dist/svelte/sortable.d.ts:11disabled?: boolean;dist/svelte/sortable.d.ts:12handle?: string;dist/svelte/sortable.d.ts:13ignore?: string;dist/svelte/sortable.d.ts:14activationDistance?: number;dist/svelte/sortable.d.ts:15emptyInsertThreshold?: number;dist/svelte/sortable.d.ts:16swapThreshold?: number;dist/svelte/sortable.d.ts:17invertSwap?: boolean;dist/svelte/sortable.d.ts:18swap?: boolean;dist/svelte/sortable.d.ts:19multiDrag?: boolean;dist/svelte/sortable.d.ts:20selectedClass?: string;dist/svelte/sortable.d.ts:21autoScroll?: boolean;dist/svelte/sortable.d.ts:22accept?: (context: DragContext) => boolean;dist/svelte/sortable.d.ts:23copyItem?: CopyItem<T>;dist/svelte/sortable.d.ts:24animation?: SortableAnimation;dist/svelte/sortable.d.ts:25placeholder?: SortablePlaceholderOptions;dist/svelte/sortable.d.ts:26parent?: SortableParentLocation;dist/svelte/sortable.d.ts:27item?: string;dist/svelte/sortable.d.ts:28
sortable
FunctionDeclarationexport declare function sortable<T>(node: HTMLElement, initialOptions: SvelteSortableOptions<T>): SvelteActionReturn<T>;
dist/svelte/sortable.d.ts:41
createSortable
FunctionDeclarationexport declare function createSortable(element: Element | string, options: VanillaSortableOptions): Sortable;
dist/vanilla/create-sortable.d.ts:2
VanillaSortableAreaOptions
InterfaceDeclarationexport interface VanillaSortableAreaOptions extends Omit<SortableAreaOptions, 'getItemId' | 'prepareCopy'> {
getItemId?: (element: Element) => SortableId;
copyElement?: (source: Element, context: CopyItemContext) => Element;
}
dist/vanilla/types.d.ts:2
멤버
getItemId?: (element: Element) => SortableId;dist/vanilla/types.d.ts:3copyElement?: (source: Element, context: CopyItemContext) => Element;dist/vanilla/types.d.ts:4
VanillaSortableAreaPatch
TypeAliasDeclarationexport type VanillaSortableAreaPatch = Partial<Omit<VanillaSortableAreaOptions, 'areaId'>>;
dist/vanilla/types.d.ts:6
VanillaSortableOptions
InterfaceDeclarationexport interface VanillaSortableOptions extends VanillaSortableAreaOptions, SortableScopeOptions {
}
dist/vanilla/types.d.ts:7
Sortable
InterfaceDeclarationexport interface Sortable {
registerArea(element: Element | string, options: VanillaSortableAreaOptions): () => void;
updateArea(areaId: string, patch: VanillaSortableAreaPatch): void;
refreshArea(areaId: string): void;
cancel(): void;
destroy(): void;
}
dist/vanilla/types.d.ts:9
멤버
registerArea(element: Element | string, options: VanillaSortableAreaOptions): () => void;dist/vanilla/types.d.ts:10updateArea(areaId: string, patch: VanillaSortableAreaPatch): void;dist/vanilla/types.d.ts:11refreshArea(areaId: string): void;dist/vanilla/types.d.ts:12cancel(): void;dist/vanilla/types.d.ts:13destroy(): void;dist/vanilla/types.d.ts:14
VueSortableRootOptions
InterfaceDeclarationexport interface VueSortableRootOptions<T> extends Omit<SortableScopeOptions, 'onChange'> {
onChange?: (change: FrameworkSortableChange<T>) => void;
}
dist/vue/context.d.ts:5
멤버
onChange?: (change: FrameworkSortableChange<T>) => void;dist/vue/context.d.ts:6
VueSortableAreaComponent
TypeAliasDeclarationexport type VueSortableAreaComponent = Omit<typeof SortableAreaComponent, never> & {
new <T>(props: VueSortableAreaProps<T> & VNodeProps & AllowedComponentProps & ComponentCustomProps): Omit<InstanceType<typeof SortableAreaComponent>, '$props' | '$slots' | '$emit'> & {
$props: VueSortableAreaProps<T> & VNodeProps & AllowedComponentProps & ComponentCustomProps & {
'onUpdate:modelValue'?: (items: T[]) => void;
};
$slots: VueSortableAreaSlots<T>;
$emit(event: 'update:modelValue', items: T[]): void;
};
};
dist/vue/SortableArea.d.ts:144
SortableArea
VariableDeclarationSortableArea: VueSortableAreaComponent
dist/vue/SortableArea.d.ts:153
VueSortableAreaSlots
InterfaceDeclarationexport interface VueSortableAreaSlots<T> {
item(props: {
item: T;
index: number;
}): VNodeChild;
header?(): VNodeChild;
footer?(): VNodeChild;
}
dist/vue/SortableArea.d.ts:28
멤버
item(props: {
item: T;
index: number;
}): VNodeChild;dist/vue/SortableArea.d.ts:29header?(): VNodeChild;dist/vue/SortableArea.d.ts:33footer?(): VNodeChild;dist/vue/SortableArea.d.ts:34
VueSortableAreaProps
InterfaceDeclarationexport interface VueSortableAreaProps<T> {
modelValue: readonly T[];
areaId: string;
group?: SortableGroup;
itemKey: ItemKey<T>;
direction?: SortableDirection;
disabled?: boolean;
handle?: string;
ignore?: string;
activationDistance?: number;
emptyInsertThreshold?: number;
swapThreshold?: number;
invertSwap?: boolean;
swap?: boolean;
multiDrag?: boolean;
selectedClass?: string;
autoScroll?: boolean;
accept?: (context: DragContext) => boolean;
copyItem?: CopyItem<T>;
animation?: SortableAnimation;
placeholder?: SortablePlaceholderOptions;
parent?: SortableParentLocation;
tag?: string | Component;
componentProps?: Readonly<Record<string, unknown>>;
}
dist/vue/SortableArea.d.ts:3
멤버
modelValue: readonly T[];dist/vue/SortableArea.d.ts:4areaId: string;dist/vue/SortableArea.d.ts:5group?: SortableGroup;dist/vue/SortableArea.d.ts:6itemKey: ItemKey<T>;dist/vue/SortableArea.d.ts:7direction?: SortableDirection;dist/vue/SortableArea.d.ts:8disabled?: boolean;dist/vue/SortableArea.d.ts:9handle?: string;dist/vue/SortableArea.d.ts:10ignore?: string;dist/vue/SortableArea.d.ts:11activationDistance?: number;dist/vue/SortableArea.d.ts:12emptyInsertThreshold?: number;dist/vue/SortableArea.d.ts:13swapThreshold?: number;dist/vue/SortableArea.d.ts:14invertSwap?: boolean;dist/vue/SortableArea.d.ts:15swap?: boolean;dist/vue/SortableArea.d.ts:16multiDrag?: boolean;dist/vue/SortableArea.d.ts:17selectedClass?: string;dist/vue/SortableArea.d.ts:18autoScroll?: boolean;dist/vue/SortableArea.d.ts:19accept?: (context: DragContext) => boolean;dist/vue/SortableArea.d.ts:20copyItem?: CopyItem<T>;dist/vue/SortableArea.d.ts:21animation?: SortableAnimation;dist/vue/SortableArea.d.ts:22placeholder?: SortablePlaceholderOptions;dist/vue/SortableArea.d.ts:23parent?: SortableParentLocation;dist/vue/SortableArea.d.ts:24tag?: string | Component;dist/vue/SortableArea.d.ts:25componentProps?: Readonly<Record<string, unknown>>;dist/vue/SortableArea.d.ts:26
SortableAreaComponent
VariableDeclarationSortableAreaComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
modelValue: {
type: PropType<readonly unknown[]>;
required: true;
};
areaId: {
type: StringConstructor;
required: true;
};
group: PropType<SortableGroup>;
itemKey: {
type: PropType<ItemKey<unknown>>;
required: true;
};
direction: PropType<SortableDirection>;
disabled: BooleanConstructor;
handle: StringConstructor;
ignore: StringConstructor;
activationDistance: NumberConstructor;
emptyInsertThreshold: NumberConstructor;
swapThreshold: NumberConstructor;
invertSwap: {
type: BooleanConstructor;
default: undefined;
};
swap: {
type: BooleanConstructor;
default: undefined;
};
multiDrag: {
type: BooleanConstructor;
default: undefined;
};
selectedClass: StringConstructor;
autoScroll: {
type: BooleanConstructor;
default: undefined;
};
accept: PropType<(context: DragContext) => boolean>;
copyItem: PropType<(item: unknown, context: CopyItemContext) => unknown>;
animation: PropType<SortableAnimation>;
placeholder: PropType<SortablePlaceholderOptions>;
parent: PropType<SortableParentLocation>;
tag: {
type: PropType<string | Component>;
default: string;
};
componentProps: PropType<Readonly<Record<string, unknown>>>;
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
modelValue: {
type: PropType<readonly unknown[]>;
required: true;
};
areaId: {
type: StringConstructor;
required: true;
};
group: PropType<SortableGroup>;
itemKey: {
type: PropType<ItemKey<unknown>>;
required: true;
};
direction: PropType<SortableDirection>;
disabled: BooleanConstructor;
handle: StringConstructor;
ignore: StringConstructor;
activationDistance: NumberConstructor;
emptyInsertThreshold: NumberConstructor;
swapThreshold: NumberConstructor;
invertSwap: {
type: BooleanConstructor;
default: undefined;
};
swap: {
type: BooleanConstructor;
default: undefined;
};
multiDrag: {
type: BooleanConstructor;
default: undefined;
};
selectedClass: StringConstructor;
autoScroll: {
type: BooleanConstructor;
default: undefined;
};
accept: PropType<(context: DragContext) => boolean>;
copyItem: PropType<(item: unknown, context: CopyItemContext) => unknown>;
animation: PropType<SortableAnimation>;
placeholder: PropType<SortablePlaceholderOptions>;
parent: PropType<SortableParentLocation>;
tag: {
type: PropType<string | Component>;
default: string;
};
componentProps: PropType<Readonly<Record<string, unknown>>>;
}>> & Readonly<{
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
}>, {
disabled: boolean;
invertSwap: boolean;
swap: boolean;
multiDrag: boolean;
autoScroll: boolean;
tag: string | Component;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>
dist/vue/SortableArea.d.ts:36
VueSortableRootComponent
TypeAliasDeclarationexport type VueSortableRootComponent = typeof SortableRootComponent & {
new <T>(): {
$props: VueSortableRootProps<T>;
$slots: VueSortableRootSlots;
$emit(event: 'change', change: FrameworkSortableChange<T>): void;
};
};
dist/vue/SortableRoot.d.ts:28
VueSortableRootProps
InterfaceDeclarationexport interface VueSortableRootProps<T> extends Omit<SortableScopeOptions, 'onChange'> {
onChange?: (change: FrameworkSortableChange<T>) => void;
}
dist/vue/SortableRoot.d.ts:3
멤버
onChange?: (change: FrameworkSortableChange<T>) => void;dist/vue/SortableRoot.d.ts:4
SortableRoot
VariableDeclarationSortableRoot: VueSortableRootComponent
dist/vue/SortableRoot.d.ts:35
VueSortableRootSlots
InterfaceDeclarationexport interface VueSortableRootSlots {
default?(): VNodeChild;
}
dist/vue/SortableRoot.d.ts:6
멤버
default?(): VNodeChild;dist/vue/SortableRoot.d.ts:7
SortableRootComponent
VariableDeclarationSortableRootComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
onBeforeDragStart: PropType<(context: DragContext) => boolean | void>;
onDragStart: PropType<(context: DragContext) => void>;
onDrag: PropType<(context: DragContext) => void>;
onInsertDragArea: PropType<(event: InsertDragAreaEvent) => void>;
onAfterDrag: PropType<SortableScopeOptions['onAfterDrag']>;
onError: PropType<(error: unknown) => void>;
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>[] | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
onBeforeDragStart: PropType<(context: DragContext) => boolean | void>;
onDragStart: PropType<(context: DragContext) => void>;
onDrag: PropType<(context: DragContext) => void>;
onInsertDragArea: PropType<(event: InsertDragAreaEvent) => void>;
onAfterDrag: PropType<SortableScopeOptions['onAfterDrag']>;
onError: PropType<(error: unknown) => void>;
}>> & Readonly<{
onChange?: ((...args: any[]) => any) | undefined;
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>
dist/vue/SortableRoot.d.ts:9
스타일 계약
패키지가 공개한 스타일시트의 CSS 사용자 정의 변수입니다.
--comins-sortable-placeholder-background
CSScomins-sortable/styles.css
--comins-sortable-placeholder-border
CSScomins-sortable/styles.css
--comins-sortable-placeholder-border-radius
CSScomins-sortable/styles.css
--comins-sortable-placeholder-opacity
CSScomins-sortable/styles.css
--comins-sortable-placeholder-skeleton-base
CSScomins-sortable/styles.css
--comins-sortable-placeholder-skeleton-duration
CSScomins-sortable/styles.css
--comins-sortable-placeholder-skeleton-highlight
CSScomins-sortable/styles.css
--comins-sortable-rejection-outline
CSScomins-sortable/styles.css
--comins-sortable-rejection-outline-offset
CSScomins-sortable/styles.css
--comins-sortable-selected-outline
CSScomins-sortable/styles.css
--comins-sortable-selected-outline-offset
CSScomins-sortable/styles.css
--comins-sortable-swap-outline
CSScomins-sortable/styles.css
--comins-sortable-swap-outline-offset
CSScomins-sortable/styles.css
일치하는 항목이 없습니다.