@ynput/ayon-react-components 1.6.4 → 1.7.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/dist/Dropdowns/AssigneeSelect/AssigneeDropdownTemplate.d.ts +4 -1
- package/dist/Dropdowns/AssigneeSelect/AssigneeField.d.ts +1 -1
- package/dist/Dropdowns/AssigneeSelect/AssigneeSelect.d.ts +1 -2
- package/dist/Dropdowns/Dropdown/Dropdown.d.ts +10 -7
- package/dist/EntityCard/EntityCard.d.ts +4 -4
- package/dist/ayon-react-components.es.js +8630 -8594
- package/dist/ayon-react-components.umd.js +239 -226
- package/package.json +1 -1
|
@@ -3,10 +3,13 @@ export interface AssigneeDropdownProps {
|
|
|
3
3
|
fullName?: string;
|
|
4
4
|
avatarUrl?: string;
|
|
5
5
|
isSelected?: boolean;
|
|
6
|
+
mixedSelected: string[];
|
|
7
|
+
multiSelect: boolean;
|
|
8
|
+
multipleOverride: boolean;
|
|
6
9
|
onClick?: () => void;
|
|
7
10
|
size?: number;
|
|
8
11
|
selectAll?: string | boolean;
|
|
9
12
|
allSelected?: boolean;
|
|
10
13
|
error?: string;
|
|
11
14
|
}
|
|
12
|
-
export declare const AssigneeDropdownTemplate: ({ name, avatarUrl, fullName, isSelected, onClick, size, selectAll, allSelected, error, }: AssigneeDropdownProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
15
|
+
export declare const AssigneeDropdownTemplate: ({ name, avatarUrl, fullName, isSelected, mixedSelected, multiSelect, multipleOverride, onClick, size, selectAll, allSelected, error, }: AssigneeDropdownProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -6,7 +6,7 @@ export interface AssigneeFieldProps extends React.HTMLAttributes<HTMLDivElement>
|
|
|
6
6
|
fullName?: string | null;
|
|
7
7
|
avatarUrl?: string;
|
|
8
8
|
}[];
|
|
9
|
-
value?:
|
|
9
|
+
value?: string[];
|
|
10
10
|
onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
11
11
|
disabled?: boolean;
|
|
12
12
|
isMultiple?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AssigneeFieldProps } from '.';
|
|
3
3
|
import { DropdownProps, DropdownRef } from '../Dropdown';
|
|
4
|
-
export interface AssigneeSelectProps extends Omit<DropdownProps, '
|
|
4
|
+
export interface AssigneeSelectProps extends Omit<DropdownProps, 'emptyMessage'> {
|
|
5
5
|
value: string[];
|
|
6
6
|
options: {
|
|
7
7
|
name: string;
|
|
@@ -9,7 +9,6 @@ export interface AssigneeSelectProps extends Omit<DropdownProps, 'onChange' | 'e
|
|
|
9
9
|
avatarUrl?: string;
|
|
10
10
|
}[];
|
|
11
11
|
readOnly?: boolean;
|
|
12
|
-
onChange?: (names: string[]) => void;
|
|
13
12
|
widthExpand?: boolean;
|
|
14
13
|
disabled?: boolean;
|
|
15
14
|
align?: 'left' | 'right';
|
|
@@ -12,12 +12,12 @@ export interface DropdownProps extends Omit<React.HTMLAttributes<HTMLDivElement>
|
|
|
12
12
|
buttonStyle?: CSSProperties;
|
|
13
13
|
onOpen?: () => void;
|
|
14
14
|
onClose?: () => void;
|
|
15
|
-
value: Array<string
|
|
16
|
-
valueTemplate?: ((value:
|
|
15
|
+
value: Array<string> | null;
|
|
16
|
+
valueTemplate?: ((value: string[], selected: string[], isOpen: boolean) => React.ReactNode) | 'tags';
|
|
17
17
|
dataKey?: string;
|
|
18
18
|
labelKey?: string;
|
|
19
19
|
options: Array<any>;
|
|
20
|
-
itemTemplate?: (option: any, isActive: boolean, isSelected: boolean, index: number) => React.ReactNode;
|
|
20
|
+
itemTemplate?: (option: any, isActive: boolean, isSelected: boolean, index: number, mixedSelected: string[]) => React.ReactNode;
|
|
21
21
|
align?: 'left' | 'right';
|
|
22
22
|
multiSelect?: boolean;
|
|
23
23
|
multiSelectClose?: boolean;
|
|
@@ -29,8 +29,11 @@ export interface DropdownProps extends Omit<React.HTMLAttributes<HTMLDivElement>
|
|
|
29
29
|
placeholder?: string;
|
|
30
30
|
isChanged?: boolean;
|
|
31
31
|
isMultiple?: boolean;
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
multipleOverride?: boolean;
|
|
33
|
+
onChange?: (added: string[], removed: string[]) => void;
|
|
34
|
+
onSelectionChange?: (added: string[], removed: string[]) => void;
|
|
35
|
+
onAddItem?: (v: string) => void;
|
|
36
|
+
onRemoveItem?: (v: string) => void;
|
|
34
37
|
maxOptionsShown?: number;
|
|
35
38
|
style?: CSSProperties;
|
|
36
39
|
className?: string;
|
|
@@ -50,7 +53,7 @@ export interface DropdownProps extends Omit<React.HTMLAttributes<HTMLDivElement>
|
|
|
50
53
|
nullPlaceholder?: string;
|
|
51
54
|
editable?: boolean;
|
|
52
55
|
maxHeight?: number;
|
|
53
|
-
disabledValues?:
|
|
56
|
+
disabledValues?: string[];
|
|
54
57
|
listInline?: boolean;
|
|
55
58
|
disableOpen?: boolean;
|
|
56
59
|
sortBySelected?: boolean;
|
|
@@ -58,7 +61,7 @@ export interface DropdownProps extends Omit<React.HTMLAttributes<HTMLDivElement>
|
|
|
58
61
|
selectAllKey?: string | null;
|
|
59
62
|
buttonProps?: Styled.ButtonType['defaultProps'];
|
|
60
63
|
activateKeys?: string[];
|
|
61
|
-
startContent?: (value:
|
|
64
|
+
startContent?: (value: string[], selected: string[], isOpen: boolean) => React.ReactNode;
|
|
62
65
|
editor?: boolean;
|
|
63
66
|
}
|
|
64
67
|
export interface DropdownRef {
|
|
@@ -44,16 +44,16 @@ export interface EntityCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
44
44
|
statusOptions?: Status[];
|
|
45
45
|
priorityOptions?: PriorityType[];
|
|
46
46
|
editOnHover?: boolean;
|
|
47
|
-
onAssigneeChange?: (
|
|
47
|
+
onAssigneeChange?: (added: string[], removed: string[]) => void;
|
|
48
48
|
onStatusChange?: (status: string[]) => void;
|
|
49
49
|
onPriorityChange?: (priority: string[]) => void;
|
|
50
50
|
onActivate?: () => void;
|
|
51
51
|
pt?: {
|
|
52
52
|
thumbnail?: HTMLAttributes<HTMLDivElement>;
|
|
53
53
|
image?: HTMLAttributes<HTMLImageElement>;
|
|
54
|
-
assigneeSelect?: AssigneeSelectProps
|
|
55
|
-
statusSelect?: StatusSelectProps
|
|
56
|
-
prioritySelect?: DropdownProps
|
|
54
|
+
assigneeSelect?: Partial<AssigneeSelectProps>;
|
|
55
|
+
statusSelect?: Partial<StatusSelectProps>;
|
|
56
|
+
prioritySelect?: Partial<DropdownProps>;
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
export declare const EntityCard: import("react").ForwardRefExoticComponent<EntityCardProps & import("react").RefAttributes<HTMLDivElement>>;
|