(
dom: HTMLElement,
targetClassName = "layout-card-container",
actionClassName = "global-layout-card-dragover"
)
| 15 | if (div) div.classList.add(actionClassName); |
| 16 | }; |
| 17 | const removeDragClass = ( |
| 18 | dom: HTMLElement, |
| 19 | targetClassName = "layout-card-container", |
| 20 | actionClassName = "global-layout-card-dragover" |
| 21 | ) => { |
| 22 | if (!dom) return; |
| 23 | const div = findParentWithClass(dom, targetClassName); |
| 24 | if (div) div.classList.remove(actionClassName); |
| 25 | }; |
| 26 | |
| 27 | const moveCardItem = (sourceId: string, targetId: string, newArea = false) => { |
| 28 | if (sourceId === targetId) return; |
no test coverage detected