fluid-dnd 1.0.0-beta.0 → 1.0.1-beta.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/README.md +3 -3
- package/dist/HandlerPublisher-BbGTnlu0.js +20 -0
- package/dist/HandlerPublisher-Bd4_qrME.cjs +1 -0
- package/dist/index/index.cjs +1 -0
- package/dist/index/index.mjs +4 -0
- package/dist/{fluid-dnd.js → index-D1rUx9iZ.js} +274 -263
- package/dist/index-GRcZUS5t.cjs +1 -0
- package/dist/svelte/index.cjs +1 -0
- package/dist/svelte/index.mjs +45 -0
- package/dist/vue/index.cjs +1 -0
- package/dist/vue/index.mjs +49 -0
- package/package.json +11 -21
- package/dist/fluid-dnd.umd.cjs +0 -1
package/README.md
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|

|
9
9
|
[](https://github.com/carlosjorger/vue-fluid-dnd/blob/main/LICENSE)
|
10
|
-
[](https://www.npmjs.com/package/
|
10
|
+
[](https://www.npmjs.com/package/fluid-dnd)
|
11
11
|

|
12
12
|

|
13
13
|
[](https://twitter.com/carlosjorgerc)
|
@@ -15,8 +15,8 @@
|
|
15
15
|
|
16
16
|
</div>
|
17
17
|
|
18
|
-
|
19
|
-
library for lists
|
18
|
+
Fluid DnD is a [**fluid**, **agnostic** and **versatil** drag and drop
|
19
|
+
library for lists with support for Vue 3 and Svelte](https://vue-fluid-dnd.netlify.app/). It's a**lightweight** tool ~7 Kb (gzip) with no depenencies.
|
20
20
|
|
21
21
|
<img src="https://github.com/user-attachments/assets/b350f9a4-7dd7-40ca-ae3f-ecca166a9081" width="100%"/>
|
22
22
|
|
@@ -0,0 +1,20 @@
|
|
1
|
+
var d = Object.defineProperty;
|
2
|
+
var e = (a, s, l) => s in a ? d(a, s, { enumerable: !0, configurable: !0, writable: !0, value: l }) : a[s] = l;
|
3
|
+
var r = (a, s, l) => e(a, typeof s != "symbol" ? s + "" : s, l);
|
4
|
+
import { a as h, t as n, G as t } from "./index-D1rUx9iZ.js";
|
5
|
+
class c {
|
6
|
+
constructor() {
|
7
|
+
r(this, "handlers");
|
8
|
+
this.handlers = [];
|
9
|
+
}
|
10
|
+
addSubscriber(s) {
|
11
|
+
this.handlers.includes(s) || (this.handlers.push(s), h(s, t));
|
12
|
+
}
|
13
|
+
toggleGrabClass(s) {
|
14
|
+
for (const l of this.handlers)
|
15
|
+
n(l, t, s);
|
16
|
+
}
|
17
|
+
}
|
18
|
+
export {
|
19
|
+
c as H
|
20
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";var d=Object.defineProperty;var n=(e,s,l)=>s in e?d(e,s,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[s]=l;var a=(e,s,l)=>n(e,typeof s!="symbol"?s+"":s,l);const r=require("./index-GRcZUS5t.cjs");class h{constructor(){a(this,"handlers");this.handlers=[]}addSubscriber(s){this.handlers.includes(s)||(this.handlers.push(s),r.addClass(s,r.GRAB_CLASS))}toggleGrabClass(s){for(const l of this.handlers)r.toggleClass(l,r.GRAB_CLASS,s)}}exports.HandlerPublisher=h;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-GRcZUS5t.cjs");exports.dragAndDrop=e.dragAndDrop;
|