beeple-toolkit 1.0.44 → 1.0.46
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/beeple-toolkit.css +1 -1
- package/dist/beeple-toolkit.es.js +4224 -4154
- package/dist/beeple-toolkit.umd.js +1 -1
- package/dist/components/TeamCard/TeamCard.vue.d.ts +8 -3
- package/dist/components/TeamCard/TeamCardBody.vue.d.ts +7 -1
- package/dist/components/types.d.ts +23 -0
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { TeamCardProps, TeamCardColor, TeamCardUser } from '../types';
|
|
1
|
+
import type { TeamCardProps, TeamCardColor, TeamCardUser, TeamCardUserDragData, TeamCardUserDropPayload } from '../types';
|
|
2
2
|
import './teamCard.css';
|
|
3
|
-
declare var
|
|
3
|
+
declare var __VLS_24: {};
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
|
-
'progress-bar-tooltip'?: (props: typeof
|
|
5
|
+
'progress-bar-tooltip'?: (props: typeof __VLS_24) => any;
|
|
6
6
|
};
|
|
7
7
|
declare const __VLS_base: import("vue").DefineComponent<TeamCardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
8
|
click: (event: MouseEvent) => any;
|
|
@@ -18,6 +18,8 @@ declare const __VLS_base: import("vue").DefineComponent<TeamCardProps, {}, {}, {
|
|
|
18
18
|
index: number;
|
|
19
19
|
event: MouseEvent;
|
|
20
20
|
}) => any;
|
|
21
|
+
"user-drag-start": (payload: TeamCardUserDragData) => any;
|
|
22
|
+
"user-drop": (payload: TeamCardUserDropPayload) => any;
|
|
21
23
|
"menu-action": (action: "copy" | "move" | "delete" | "edit") => any;
|
|
22
24
|
"update:status": (status: "published" | "unpublished") => any;
|
|
23
25
|
}, string, import("vue").PublicProps, Readonly<TeamCardProps> & Readonly<{
|
|
@@ -34,10 +36,13 @@ declare const __VLS_base: import("vue").DefineComponent<TeamCardProps, {}, {}, {
|
|
|
34
36
|
index: number;
|
|
35
37
|
event: MouseEvent;
|
|
36
38
|
}) => any) | undefined;
|
|
39
|
+
"onUser-drag-start"?: ((payload: TeamCardUserDragData) => any) | undefined;
|
|
40
|
+
"onUser-drop"?: ((payload: TeamCardUserDropPayload) => any) | undefined;
|
|
37
41
|
"onMenu-action"?: ((action: "copy" | "move" | "delete" | "edit") => any) | undefined;
|
|
38
42
|
"onUpdate:status"?: ((status: "published" | "unpublished") => any) | undefined;
|
|
39
43
|
}>, {
|
|
40
44
|
color: TeamCardColor;
|
|
45
|
+
isDraggable: boolean;
|
|
41
46
|
showUsers: boolean;
|
|
42
47
|
showUserColor: boolean;
|
|
43
48
|
selected: boolean;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import type { TeamCardRights, TeamCardSummaryItem, TeamCardUser, TeamCardTranslations } from '../types';
|
|
1
|
+
import type { TeamCardRights, TeamCardSummaryItem, TeamCardUser, TeamCardUserDragData, TeamCardUserDropPayload, TeamCardTranslations } from '../types';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
+
cardId?: string | number;
|
|
4
|
+
isDraggable?: boolean;
|
|
3
5
|
teamSummary?: TeamCardSummaryItem[];
|
|
4
6
|
users?: TeamCardUser[];
|
|
5
7
|
showUsers?: boolean;
|
|
@@ -30,6 +32,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
30
32
|
index: number;
|
|
31
33
|
event: MouseEvent;
|
|
32
34
|
}) => any;
|
|
35
|
+
"user-drag-start": (payload: TeamCardUserDragData) => any;
|
|
36
|
+
"user-drop": (payload: TeamCardUserDropPayload) => any;
|
|
33
37
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
34
38
|
"onAdd-collaborator"?: (() => any) | undefined;
|
|
35
39
|
"onUpdate:needed"?: ((value: number) => any) | undefined;
|
|
@@ -43,6 +47,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
43
47
|
index: number;
|
|
44
48
|
event: MouseEvent;
|
|
45
49
|
}) => any) | undefined;
|
|
50
|
+
"onUser-drag-start"?: ((payload: TeamCardUserDragData) => any) | undefined;
|
|
51
|
+
"onUser-drop"?: ((payload: TeamCardUserDropPayload) => any) | undefined;
|
|
46
52
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
47
53
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
48
54
|
declare const _default: typeof __VLS_export;
|
|
@@ -410,7 +410,30 @@ export interface TeamCardRights {
|
|
|
410
410
|
update?: boolean;
|
|
411
411
|
delete?: boolean;
|
|
412
412
|
}
|
|
413
|
+
/** Data carried while dragging a user row (serialized through dataTransfer). */
|
|
414
|
+
export interface TeamCardUserDragData {
|
|
415
|
+
user: TeamCardUser;
|
|
416
|
+
index: number;
|
|
417
|
+
cardId?: string | number;
|
|
418
|
+
}
|
|
419
|
+
/** Payload emitted when a dragged user is dropped onto a card. */
|
|
420
|
+
export interface TeamCardUserDropPayload {
|
|
421
|
+
/** 'add' when dropped on empty space, 'replace' when dropped on an existing user row. */
|
|
422
|
+
type: 'add' | 'replace';
|
|
423
|
+
/** The user that was dragged (from the source card). */
|
|
424
|
+
dragged: TeamCardUserDragData;
|
|
425
|
+
/** Id of the card that received the drop. */
|
|
426
|
+
cardId?: string | number;
|
|
427
|
+
/** Target user (only for 'replace'). */
|
|
428
|
+
targetUser?: TeamCardUser;
|
|
429
|
+
/** Target user index within the receiving card (only for 'replace'). */
|
|
430
|
+
targetIndex?: number;
|
|
431
|
+
}
|
|
413
432
|
export interface TeamCardProps {
|
|
433
|
+
/** Optional identifier used to distinguish cards in drag & drop payloads. */
|
|
434
|
+
id?: string | number;
|
|
435
|
+
/** Enables dragging users (by the handle) out of, and dropping users onto, this card. */
|
|
436
|
+
isDraggable?: boolean;
|
|
414
437
|
color?: TeamCardColor;
|
|
415
438
|
labels?: TeamCardLabel[];
|
|
416
439
|
status?: TeamCardStatus;
|