Comparing version 0.0.4 to 0.0.5
@@ -364,3 +364,3 @@ import { diffPosition, dndEvent, dndState, getDocHeight, getDocScrollLeft, getDocScrollTop, getDocWidth, getPositionState, isOutside, isTouchDevice, siblings } from '/node_modules/azdom/utils.js'; | ||
me.dropTargets = [...document.querySelectorAll('.azDroppable')] | ||
me.dropTargets = [...document.querySelectorAll('[azdom-droppable]')] | ||
.filter(dt => dt !== node) | ||
@@ -370,3 +370,3 @@ .map(dt => { | ||
dt, | ||
dropId: dt.getAttribute('az-obj-id-droppable'), | ||
dropId: dt.getAttribute('azdom-droppable'), | ||
interestedDropEvents: dt.getAttribute('az-interested-drop-events') * 1 | ||
@@ -373,0 +373,0 @@ }; |
import { dndEvent, dndState } from '../node_modules/azdom/utils.js'; | ||
export class Droppable { | ||
azInit(options) { | ||
const settings = Object.assign( | ||
{ | ||
// key: '', | ||
// source_all_in: function (e) {}, | ||
// source_all_out: function (e) {}, | ||
// target_all_in: function (e) {}, | ||
// target_all_out: function (e) {}, | ||
// source_center_in: function (e) {}, | ||
// source_center_out: function (e) {}, | ||
// target_center_in: function (e) {}, | ||
// target_center_out: function (e) {}, | ||
// touch_in: function (e) {}, | ||
// touch_out: function (e) {}, | ||
// pointer_in: function (e) {}, | ||
// pointer_out: function (e) {}, | ||
// dragged: function (e) {}, | ||
// dropped: function (e) {}, | ||
interestedDropEvents: dndEvent.all | ||
}, | ||
options | ||
); | ||
const settings = { | ||
// source_all_in: function (e) {}, | ||
// source_all_out: function (e) {}, | ||
// target_all_in: function (e) {}, | ||
// target_all_out: function (e) {}, | ||
// source_center_in: function (e) {}, | ||
// source_center_out: function (e) {}, | ||
// target_center_in: function (e) {}, | ||
// target_center_out: function (e) {}, | ||
// touch_in: function (e) {}, | ||
// touch_out: function (e) {}, | ||
// pointer_in: function (e) {}, | ||
// pointer_out: function (e) {}, | ||
// dragged: function (e) {}, | ||
// dropped: function (e) {}, | ||
interestedDropEvents: dndEvent.all, | ||
...options | ||
}; | ||
const me = this; | ||
@@ -28,0 +27,0 @@ const node = me.node; |
{ | ||
"name": "azdnd", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "A drag and drop ui manager.", | ||
"scripts": { | ||
"test": "npx jasmine tests/*" | ||
}, | ||
"repository": { | ||
@@ -15,8 +18,9 @@ "type": "git", | ||
"dependencies": { | ||
"azdom": "*" | ||
"azdom": "*", | ||
"jsstrgen": "*" | ||
}, | ||
"devDependencies": { | ||
"jasmine": "^3.5.0", | ||
"puppeteer": "^1.20.0" | ||
"jasmine": "*", | ||
"puppeteer": "*" | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59786
1119
2
3
+ Addedjsstrgen@*