fluid-dnd 2.5.0 → 2.6.0
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/{HandlerPublisher-1MmlNkG3.cjs → HandlerPublisher-BkHYlmpE.cjs} +1 -1
- package/dist/{HandlerPublisher-DBjPMiyO.js → HandlerPublisher-T9bs9vYh.js} +1 -1
- package/dist/core/dragAndDrop.js +4 -3
- package/dist/core/events/changeDraggableStyles.d.ts +1 -1
- package/dist/core/events/dragAndDrop/dragAndDrop.d.ts +1 -1
- package/dist/core/events/dragAndDrop/dragAndDrop.js +9 -6
- package/dist/core/events/insert.d.ts +1 -1
- package/dist/core/events/insert.js +1 -1
- package/dist/core/events/remove.d.ts +2 -2
- package/dist/core/events/remove.js +4 -5
- package/dist/core/index.d.ts +16 -6
- package/dist/core/index.js +0 -7
- package/dist/core/positioning/usePositioning.d.ts +2 -2
- package/dist/core/positioning/usePositioning.js +35 -24
- package/dist/core/tempChildren.d.ts +2 -2
- package/dist/core/tempChildren.js +0 -3
- package/dist/core/useDraggable.js +17 -10
- package/dist/core/useDroppable.js +1 -3
- package/dist/core/utils/GetStyles.d.ts +1 -0
- package/dist/core/utils/GetStyles.js +3 -0
- package/dist/core/utils/ParseStyles.d.ts +1 -1
- package/dist/core/utils/ParseStyles.js +1 -1
- package/dist/core/utils/SetStyles.d.ts +1 -6
- package/dist/core/utils/SetStyles.js +1 -29
- package/dist/core/utils/dom/classList.d.ts +2 -2
- package/dist/core/utils/dom/classList.js +2 -11
- package/dist/index-CJpYi4CM.js +1138 -0
- package/dist/index-CnlVdjmE.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +2 -2
- package/dist/{insert-Dd8savAS.js → insert-B5nCBAlv.js} +9 -9
- package/dist/insert-DB-x_f2H.cjs +1 -0
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.mjs +13 -13
- package/dist/remove-B4KK3YSe.js +48 -0
- package/dist/remove-df_KG6tF.cjs +1 -0
- package/dist/svelte/index.cjs +1 -1
- package/dist/svelte/index.mjs +3 -3
- package/dist/vue/index.cjs +1 -1
- package/dist/vue/index.mjs +3 -3
- package/package.json +1 -1
- package/dist/index-BdOAK6C7.cjs +0 -1
- package/dist/index-HczUoMBK.js +0 -1131
- package/dist/insert-T4Y6rI_j.cjs +0 -1
- package/dist/remove-BC4sUY1o.cjs +0 -1
- package/dist/remove-M01dmTvo.js +0 -48
package/dist/insert-T4Y6rI_j.cjs
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BdOAK6C7.cjs");function f(s,t,n,i){const{delayBeforeInsert:a}=s,[c,g,o]=e.useChangeDraggableStyles(s,n,i),v=(r,l,d,m,S)=>{const b=e.getTranslationByDraggingAndEvent(l,"insert",s.direction,d),{onInsertEvent:I}=s,h=e.getParentDraggableChildren(d);for(const[y,u]of h.entries())e.containClass(u,e.DRAGGABLE_CLASS)&&y>=r&&o(u,b);e.addTempChildOnInsert(l,!1,S),setTimeout(()=>{I(r,m),T(r,d,s),c(l),E(l,t),e.removeTempChild(t,0,!0)},a)},E=(r,l)=>{const[d]=e.getSiblings(r,l);for(const m of[...d,r])e.removeTranslateWhitoutTransition(m)};return[v]}const A=s=>s.addedNodes.values().filter(n=>!e.isTempElement(n)).toArray().length>0,T=(s,t,n)=>{const{insertingFromClass:i,animationDuration:a}=n,c=e.observeMutation(()=>{const o=e.getParentDraggableChildren(t)[s];e.addClass(o,i),e.addClass(o,e.DISABLE_TRANSITION),setTimeout(()=>{e.removeClass(o,e.DISABLE_TRANSITION),e.removeClass(o,i),c.disconnect()},a)},t,{childList:!0},A)},D=(s,t,n,i)=>{if(!t)return;const{onInsertEvent:a,delayBeforeInsert:c}=s;setTimeout(()=>{a(n,i),T(n,t,s)},c)};exports.default=f;exports.insertToListEmpty=D;
|
package/dist/remove-BC4sUY1o.cjs
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-BdOAK6C7.cjs");function d(a,l,g,u){const{animationDuration:m}=a,[S]=t.useChangeDraggableStyles(a,g,u),R=(s,o,e,i)=>{if(!e||!e.droppable||!e.config)return;const{droppable:n,config:v}=e;let[r]=t.getSiblings(o,n);r=[o,...r].toReversed();const c=t.getTranslationByDraggingAndEvent(o,"remove",v.direction,n);for(const[h,T]of r.entries())h>=s&&(t.moveTranslate(T,c),setTimeout(()=>{i(T)},m))},b=s=>{t.removeTempChild(l,m,!0),setTimeout(()=>{S(s),f(s,l)},m)},f=(s,o)=>{const[e]=t.getSiblings(s,o);for(const i of[...e,s])t.removeTranslateWhitoutTransition(i)},y=(s,o,e,i,n)=>{const{removingClass:v,delayBeforeRemove:r}=a;o==s&&(t.addClass(e,v),setTimeout(()=>{D(s,o,e,i,n)},r))},D=(s,o,e,i,n)=>{const{removingClass:v,onRemoveAtEvent:r}=a;t.removeClass(e,v),t.addTempChild(e,l,i==t.DraggingState.START_DRAGGING,n),R(o,e,n,c=>{A(c),b(e)}),r(s,!0)},A=s=>{t.setTranistion(s,m,t.draggableTargetTimingFunction),t.moveTranslate(s)};return[y]}exports.default=d;
|
package/dist/remove-M01dmTvo.js
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
import { u as G, a as B, r as C, b as d, D as N, g as l, c as W, m as g, s as _, d as j, e as k, f as p } from "./index-HczUoMBK.js";
|
2
|
-
function w(r, m, u, R) {
|
3
|
-
const { animationDuration: v } = r, [S] = G(
|
4
|
-
r,
|
5
|
-
u,
|
6
|
-
R
|
7
|
-
), f = (s, t, o, e) => {
|
8
|
-
if (!o || !o.droppable || !o.config)
|
9
|
-
return;
|
10
|
-
const { droppable: i, config: a } = o;
|
11
|
-
let [n] = l(t, i);
|
12
|
-
n = [t, ...n].toReversed();
|
13
|
-
const c = W(
|
14
|
-
t,
|
15
|
-
"remove",
|
16
|
-
a.direction,
|
17
|
-
i
|
18
|
-
);
|
19
|
-
for (const [F, T] of n.entries())
|
20
|
-
F >= s && (g(T, c), setTimeout(() => {
|
21
|
-
e(T);
|
22
|
-
}, v));
|
23
|
-
}, D = (s) => {
|
24
|
-
k(m, v, !0), setTimeout(() => {
|
25
|
-
S(s), b(s, m);
|
26
|
-
}, v);
|
27
|
-
}, b = (s, t) => {
|
28
|
-
const [o] = l(s, t);
|
29
|
-
for (const e of [...o, s])
|
30
|
-
p(e);
|
31
|
-
}, A = (s, t, o, e, i) => {
|
32
|
-
const { removingClass: a, delayBeforeRemove: n } = r;
|
33
|
-
t == s && (B(o, a), setTimeout(() => {
|
34
|
-
h(s, t, o, e, i);
|
35
|
-
}, n));
|
36
|
-
}, h = (s, t, o, e, i) => {
|
37
|
-
const { removingClass: a, onRemoveAtEvent: n } = r;
|
38
|
-
C(o, a), d(o, m, e == N.START_DRAGGING, i), f(t, o, i, (c) => {
|
39
|
-
y(c), D(o);
|
40
|
-
}), n(s, !0);
|
41
|
-
}, y = (s) => {
|
42
|
-
_(s, v, j), g(s);
|
43
|
-
};
|
44
|
-
return [A];
|
45
|
-
}
|
46
|
-
export {
|
47
|
-
w as default
|
48
|
-
};
|