slick-components 17.0.78 → 17.0.80
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.
|
@@ -23,7 +23,7 @@ class SlickInitParams {
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
class SlickInitService {
|
|
26
|
-
static { this.version = "17.0.
|
|
26
|
+
static { this.version = "17.0.80"; }
|
|
27
27
|
constructor() { }
|
|
28
28
|
static init(initParams) {
|
|
29
29
|
console.info(`Slick Components Version ${SlickInitService.version}`);
|
|
@@ -2920,6 +2920,13 @@ class SlickDraggableDirective {
|
|
|
2920
2920
|
onDragStart(event) {
|
|
2921
2921
|
if (!event.dataTransfer)
|
|
2922
2922
|
return;
|
|
2923
|
+
// Check if the click started on a drop-list grab handle
|
|
2924
|
+
const target = event.target;
|
|
2925
|
+
if (target.closest('[slick-drop-list-grab]')) {
|
|
2926
|
+
// Ignore dragging if the grab handle was clicked
|
|
2927
|
+
event.preventDefault();
|
|
2928
|
+
return;
|
|
2929
|
+
}
|
|
2923
2930
|
// Use a custom MIME type for slick-draggable items
|
|
2924
2931
|
event.dataTransfer.setData('application/x-slick-draggable', JSON.stringify(this.data));
|
|
2925
2932
|
this.el.nativeElement.style.opacity = '0.5';
|
|
@@ -3608,6 +3615,12 @@ class SlickDropListDirective {
|
|
|
3608
3615
|
}
|
|
3609
3616
|
}
|
|
3610
3617
|
async mouseDown(e, target = null) {
|
|
3618
|
+
const clickedElement = e.target;
|
|
3619
|
+
const formControl = SlickUtilsService.findParent(clickedElement, 'input') ||
|
|
3620
|
+
SlickUtilsService.findParent(clickedElement, 'textarea') ||
|
|
3621
|
+
SlickUtilsService.findParent(clickedElement, 'select');
|
|
3622
|
+
if (formControl)
|
|
3623
|
+
return;
|
|
3611
3624
|
this.isAdding = false;
|
|
3612
3625
|
this.isMoving = false;
|
|
3613
3626
|
if (e.button !== 0 || !e || !e.target)
|