@@ -34,24 +34,48 @@ interface DragSortListSignature<Item extends object> {
3434
3535export default class DragSortList <Item extends object > extends Component <
3636 DragSortListSignature <Item >
37- > {<template >{{#let ( element ( if @ tagName @ tagName " div" ) ) as | Tag | }}
38- <Tag class =" dragSortList
39- {{if this . draggingEnabled " -draggingEnabled" }}
40- {{if this . isDragging " -isDragging" }}
41- {{if this . isDraggingOver " -isDraggingOver" }}
42- {{if this . isEmpty " -isEmpty" }}
43- {{if this . isExpanded " -isExpanded" }}
44- {{if @ isHorizontal " -horizontal" }}
45- {{if @ isRtl " -rtl" }}
46- {{if this . isVertical " -vertical" }}
47- {{if this . sourceOnly " -sourceOnlyList" }} " {{on " dragenter" this . dragEnter}} {{on " dragover" this . dragOver}} ...attributes >
48- {{#each @ items as | item index | }}
49- <DragSortItem @ additionalArgs ={{@ additionalArgs }} @ determineForeignPositionAction ={{@ determineForeignPositionAction }} @ draggingEnabled ={{this .draggingEnabled }} @ dragEndAction ={{@ dragEndAction }} @ dragStartAction ={{@ dragStartAction }} @ group ={{@ group }} @ handle ={{@ handle }} @ index ={{index }} @ isHorizontal ={{@ isHorizontal }} @ isRtl ={{@ isRtl }} @ item ={{item }} @ items ={{@ items }} @ sourceOnly ={{this .sourceOnly }} @ tagName ={{@ childTagName }} class ={{@ childClass }} >
50- {{yield item index }}
51- </DragSortItem >
52- {{/each }}
53- </Tag >
54- {{/let }} </template >
37+ > {
38+ <template >
39+ {{#let ( element ( if @ tagName @ tagName " div" ) ) as | Tag | }}
40+ <Tag
41+ class =" dragSortList
42+ {{if this . draggingEnabled ' -draggingEnabled' }}
43+ {{if this . isDragging ' -isDragging' }}
44+ {{if this . isDraggingOver ' -isDraggingOver' }}
45+ {{if this . isEmpty ' -isEmpty' }}
46+ {{if this . isExpanded ' -isExpanded' }}
47+ {{if @ isHorizontal ' -horizontal' }}
48+ {{if @ isRtl ' -rtl' }}
49+ {{if this . isVertical ' -vertical' }}
50+ {{if this . sourceOnly ' -sourceOnlyList' }} "
51+ {{on " dragenter" this . dragEnter}}
52+ {{on " dragover" this . dragOver}}
53+ ...attributes
54+ >
55+ {{#each @ items as | item index | }}
56+ <DragSortItem
57+ @ additionalArgs ={{@ additionalArgs }}
58+ @ determineForeignPositionAction ={{@ determineForeignPositionAction }}
59+ @ draggingEnabled ={{this .draggingEnabled }}
60+ @ dragEndAction ={{@ dragEndAction }}
61+ @ dragStartAction ={{@ dragStartAction }}
62+ @ group ={{@ group }}
63+ @ handle ={{@ handle }}
64+ @ index ={{index }}
65+ @ isHorizontal ={{@ isHorizontal }}
66+ @ isRtl ={{@ isRtl }}
67+ @ item ={{item }}
68+ @ items ={{@ items }}
69+ @ sourceOnly ={{this .sourceOnly }}
70+ @ tagName ={{@ childTagName }}
71+ class ={{@ childClass }}
72+ >
73+ {{yield item index }}
74+ </DragSortItem >
75+ {{/each }}
76+ </Tag >
77+ {{/let }}
78+ </template >
5579 @service declare dragSort: DragSort <Item >;
5680
5781 declare el: HTMLElement ;
0 commit comments