@hkdigital/lib-core 0.4.66 → 0.4.67

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.
@@ -6,7 +6,8 @@
6
6
  * zone?: string,
7
7
  * group?: string,
8
8
  * disabled?: boolean,
9
- * accepts?: (item: any) => boolean,
9
+ * accepts?: (dragData: import('./typedef.js').DragData, target: { zone: string, group: string }) => boolean,
10
+ * enableDebug?: boolean,
10
11
  * fillContainer?: boolean,
11
12
  * aspectRatio?: string,
12
13
  * overflow?: 'auto' | 'hidden' | 'visible' | 'scroll',
@@ -51,6 +52,7 @@
51
52
  group = 'default',
52
53
  disabled = false,
53
54
  accepts = () => true,
55
+ enableDebug = false,
54
56
  fillContainer = true,
55
57
  aspectRatio = '',
56
58
  overflow = 'hidden',
@@ -98,6 +100,7 @@
98
100
  {group}
99
101
  {disabled}
100
102
  {accepts}
103
+ {enableDebug}
101
104
  heightMode={fillContainer ? 'fill' : 'fixed'}
102
105
  {base}
103
106
  classes={combinedClasses}
@@ -6,7 +6,11 @@ type DropZoneArea = {
6
6
  zone?: string | undefined;
7
7
  group?: string | undefined;
8
8
  disabled?: boolean | undefined;
9
- accepts?: ((item: any) => boolean) | undefined;
9
+ accepts?: ((dragData: DragData, target: {
10
+ zone: string;
11
+ group: string;
12
+ }) => boolean) | undefined;
13
+ enableDebug?: boolean | undefined;
10
14
  fillContainer?: boolean | undefined;
11
15
  aspectRatio?: string | undefined;
12
16
  overflow?: "scroll" | "auto" | "hidden" | "visible" | undefined;
@@ -50,7 +54,11 @@ declare const DropZoneArea: import("svelte").Component<{
50
54
  zone?: string;
51
55
  group?: string;
52
56
  disabled?: boolean;
53
- accepts?: (item: any) => boolean;
57
+ accepts?: (dragData: import("./typedef.js").DragData, target: {
58
+ zone: string;
59
+ group: string;
60
+ }) => boolean;
61
+ enableDebug?: boolean;
54
62
  fillContainer?: boolean;
55
63
  aspectRatio?: string;
56
64
  overflow?: "auto" | "hidden" | "visible" | "scroll";
@@ -6,7 +6,8 @@
6
6
  * zone?: string,
7
7
  * group?: string,
8
8
  * disabled?: boolean,
9
- * accepts?: (item: any) => boolean,
9
+ * accepts?: (dragData: import('./typedef.js').DragData, target: { zone: string, group: string }) => boolean,
10
+ * enableDebug?: boolean,
10
11
  * minHeight?: string,
11
12
  * maxHeight?: string,
12
13
  * gap?: string,
@@ -52,6 +53,7 @@
52
53
  group = 'default',
53
54
  disabled = false,
54
55
  accepts = () => true,
56
+ enableDebug = false,
55
57
  minHeight = 'min-h-[200px]',
56
58
  maxHeight = '',
57
59
  gap = 'gap-2',
@@ -102,6 +104,7 @@
102
104
  {group}
103
105
  {disabled}
104
106
  {accepts}
107
+ {enableDebug}
105
108
  {minHeight}
106
109
  {maxHeight}
107
110
  heightMode="flexible"
@@ -6,7 +6,11 @@ type DropZoneList = {
6
6
  zone?: string | undefined;
7
7
  group?: string | undefined;
8
8
  disabled?: boolean | undefined;
9
- accepts?: ((item: any) => boolean) | undefined;
9
+ accepts?: ((dragData: DragData, target: {
10
+ zone: string;
11
+ group: string;
12
+ }) => boolean) | undefined;
13
+ enableDebug?: boolean | undefined;
10
14
  minHeight?: string | undefined;
11
15
  maxHeight?: string | undefined;
12
16
  gap?: string | undefined;
@@ -51,7 +55,11 @@ declare const DropZoneList: import("svelte").Component<{
51
55
  zone?: string;
52
56
  group?: string;
53
57
  disabled?: boolean;
54
- accepts?: (item: any) => boolean;
58
+ accepts?: (dragData: import("./typedef.js").DragData, target: {
59
+ zone: string;
60
+ group: string;
61
+ }) => boolean;
62
+ enableDebug?: boolean;
55
63
  minHeight?: string;
56
64
  maxHeight?: string;
57
65
  gap?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hkdigital/lib-core",
3
- "version": "0.4.66",
3
+ "version": "0.4.67",
4
4
  "author": {
5
5
  "name": "HKdigital",
6
6
  "url": "https://hkdigital.nl"