@kentico/xperience-admin-components 28.3.3 → 28.4.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/entry.d.ts
CHANGED
|
@@ -560,6 +560,17 @@ declare interface BaseTreeNodeProps {
|
|
|
560
560
|
readonly dataTestIdNodeChildren?: string;
|
|
561
561
|
}
|
|
562
562
|
|
|
563
|
+
declare interface BaseTreeViewProps extends UITestProps {
|
|
564
|
+
/**
|
|
565
|
+
* Children components of the tree.
|
|
566
|
+
*/
|
|
567
|
+
readonly children: React.ReactNode;
|
|
568
|
+
/**
|
|
569
|
+
* Name of the CSS class passed to the tree element.
|
|
570
|
+
*/
|
|
571
|
+
readonly className?: string;
|
|
572
|
+
}
|
|
573
|
+
|
|
563
574
|
export declare enum BorderRadius {
|
|
564
575
|
RadiusL = "16px",
|
|
565
576
|
RadiusM = "8px",
|
|
@@ -1123,6 +1134,11 @@ declare enum ContentItemTileType {
|
|
|
1123
1134
|
|
|
1124
1135
|
export declare function createSelectGroup<Group>(): React_2.FC<SelectGroupProps<Group>>;
|
|
1125
1136
|
|
|
1137
|
+
/**
|
|
1138
|
+
* ID of the creating placeholder node in the tree.
|
|
1139
|
+
*/
|
|
1140
|
+
export declare const CreatingPlaceholderID: number;
|
|
1141
|
+
|
|
1126
1142
|
export declare const DateTimePicker: React_2.ForwardRefExoticComponent<DateTimePickerProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1127
1143
|
|
|
1128
1144
|
export declare interface DateTimePickerProps {
|
|
@@ -2413,6 +2429,18 @@ export declare interface Message {
|
|
|
2413
2429
|
readonly messageAsHtml?: boolean;
|
|
2414
2430
|
}
|
|
2415
2431
|
|
|
2432
|
+
/**
|
|
2433
|
+
* Tree view component allowing to select multiple nodes.
|
|
2434
|
+
*/
|
|
2435
|
+
export declare const MultiselectTreeView: React_2.ForwardRefExoticComponent<MultiselectTreeViewProps & React_2.RefAttributes<HTMLUListElement>>;
|
|
2436
|
+
|
|
2437
|
+
export declare interface MultiselectTreeViewProps extends BaseTreeViewProps {
|
|
2438
|
+
/**
|
|
2439
|
+
* Identifiers of the selected nodes.
|
|
2440
|
+
*/
|
|
2441
|
+
readonly selectedIdentifiers?: string[];
|
|
2442
|
+
}
|
|
2443
|
+
|
|
2416
2444
|
declare interface NameButtonProps extends Pick<ToggleButtonBaseProps, 'onClick' | 'ariaLabel' | 'isSelected'> {
|
|
2417
2445
|
readonly label: string;
|
|
2418
2446
|
readonly dataTestId?: string;
|
|
@@ -3885,6 +3913,14 @@ export declare interface TreeNodeAction {
|
|
|
3885
3913
|
* Actions tooltip.
|
|
3886
3914
|
*/
|
|
3887
3915
|
readonly tooltip?: string;
|
|
3916
|
+
/**
|
|
3917
|
+
* Indicates if the action is destructive. Defaults to `false`.
|
|
3918
|
+
*/
|
|
3919
|
+
readonly isDestructive?: boolean;
|
|
3920
|
+
/**
|
|
3921
|
+
* Action icon.
|
|
3922
|
+
*/
|
|
3923
|
+
readonly icon?: IconName;
|
|
3888
3924
|
}
|
|
3889
3925
|
|
|
3890
3926
|
declare interface TreeNodeContentSharedProps extends UITestProps {
|
|
@@ -3994,6 +4030,14 @@ export declare interface TreeNodeMenuActionProps extends UITestProps {
|
|
|
3994
4030
|
* Tooltip of the action.
|
|
3995
4031
|
*/
|
|
3996
4032
|
readonly tooltip?: string;
|
|
4033
|
+
/**
|
|
4034
|
+
* Indicates if the action is destructive. Defaults to `false`.
|
|
4035
|
+
*/
|
|
4036
|
+
readonly isDestructive?: boolean;
|
|
4037
|
+
/**
|
|
4038
|
+
* Action icon.
|
|
4039
|
+
*/
|
|
4040
|
+
readonly icon?: IconName;
|
|
3997
4041
|
}
|
|
3998
4042
|
|
|
3999
4043
|
/**
|
|
@@ -4122,19 +4166,11 @@ declare type TreeViewContextType = {
|
|
|
4122
4166
|
setAnyNodeIsDragging: (isDragging: boolean) => void;
|
|
4123
4167
|
};
|
|
4124
4168
|
|
|
4125
|
-
export declare interface TreeViewProps extends
|
|
4169
|
+
export declare interface TreeViewProps extends BaseTreeViewProps {
|
|
4126
4170
|
/**
|
|
4127
4171
|
* Identifier of the selected node.
|
|
4128
4172
|
*/
|
|
4129
4173
|
readonly selectedIdentifier?: string;
|
|
4130
|
-
/**
|
|
4131
|
-
* Children components of the tree.
|
|
4132
|
-
*/
|
|
4133
|
-
readonly children: React.ReactNode;
|
|
4134
|
-
/**
|
|
4135
|
-
* Name of the CSS class passed to the tree element.
|
|
4136
|
-
*/
|
|
4137
|
-
readonly className?: string;
|
|
4138
4174
|
}
|
|
4139
4175
|
|
|
4140
4176
|
export declare interface UITestProps {
|