@kentico/xperience-admin-components 26.6.3 → 27.0.1

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
@@ -21,8 +21,17 @@ import { RefObject } from 'react';
21
21
  import { RegisterCommandParameters } from 'froala-editor';
22
22
 
23
23
  export declare interface ActionCell extends TableCell {
24
+ /**
25
+ * Actions that should be available in the action cell.
26
+ */
24
27
  actions: TableAction[];
28
+ /**
29
+ * Maximun number of visible actions.
30
+ */
25
31
  maxVisibleRowActions?: number;
32
+ /**
33
+ * Handler to execute the action.
34
+ */
26
35
  onInvokeAction: (action: TableAction) => Promise<void>;
27
36
  }
28
37
 
@@ -303,7 +312,7 @@ declare interface BaseButtonProps extends UITestProps {
303
312
  readonly disabled?: boolean;
304
313
  readonly borderless?: boolean;
305
314
  readonly tabIndex?: number;
306
- readonly dragHandleProps?: DraggableProvidedDragHandleProps;
315
+ readonly dragHandleProps?: DraggableProvidedDragHandleProps | null;
307
316
  readonly className?: string;
308
317
  }
309
318
 
@@ -452,6 +461,10 @@ declare interface BaseTileProps extends BaseTileBaseProps, UITestProps {
452
461
  * Tile icon in preview.
453
462
  */
454
463
  readonly previewIcon?: IconName;
464
+ /**
465
+ * Tooltip to display when tile is disabled.
466
+ */
467
+ readonly inactiveMessage?: string;
455
468
  }
456
469
 
457
470
  declare enum BaseTileType {
@@ -822,6 +835,7 @@ export declare enum Colors {
822
835
  BorderDefault = "var(--color-border-default)",
823
836
  BorderDisabled = "var(--color-border-disabled)",
824
837
  BorderHover = "var(--color-border-hover)",
838
+ BorderWarning = "var(--color-border-warning)",
825
839
  CommentBackgroundSelected = "var(--color-comment-background-selected)",
826
840
  DividerDefault = "var(--color-divider-default)",
827
841
  Focus = "var(--color-focus)",
@@ -929,6 +943,9 @@ export declare interface ColumnProps extends LayoutComponentProps, UITestProps {
929
943
  }
930
944
 
931
945
  export declare interface ComponentCell extends TableCell {
946
+ /**
947
+ * Component to be displayed in the cell.
948
+ */
932
949
  component: any;
933
950
  }
934
951
 
@@ -1054,7 +1071,7 @@ export declare const ContentItemTilePreview: React_2.ForwardRefExoticComponent<C
1054
1071
  declare interface ContentItemTilePreviewProps extends ContentItemTileExtendedProps, BaseTileBaseProps, Pick<ContentItemTileProps, 'onClick' | 'isSelected' | 'onChange' | 'isCheckboxVisible' | 'actions' | 'dataTestId'> {
1055
1072
  }
1056
1073
 
1057
- declare interface ContentItemTileProps extends ContentItemTileExtendedProps, Pick<BaseTileProps, 'errorState' | 'url' | 'uploadState' | 'name' | 'disabled' | 'isCheckboxVisible' | 'isSelected' | 'isDragging' | 'onChange' | 'onClick' | 'dataTestId' | 'actions'> {
1074
+ declare interface ContentItemTileProps extends ContentItemTileExtendedProps, Pick<BaseTileProps, 'errorState' | 'url' | 'uploadState' | 'name' | 'disabled' | 'isCheckboxVisible' | 'isSelected' | 'isDragging' | 'onChange' | 'onClick' | 'dataTestId' | 'actions' | 'inactiveMessage'> {
1058
1075
  /**
1059
1076
  * Type of content item.
1060
1077
  */
@@ -1069,7 +1086,7 @@ export declare const ContentItemTileSelectable: React_2.ForwardRefExoticComponen
1069
1086
  /**
1070
1087
  * Selected props from ContentItemTileProps for Selectable tile.
1071
1088
  */
1072
- declare interface ContentItemTileSelectableProps extends ContentItemTileExtendedProps, BaseTileBaseProps, Pick<ContentItemTileProps, 'onClick' | 'isSelected' | 'onChange' | 'isDragging' | 'dataTestId'> {
1089
+ declare interface ContentItemTileSelectableProps extends ContentItemTileExtendedProps, BaseTileBaseProps, Pick<ContentItemTileProps, 'onClick' | 'isSelected' | 'onChange' | 'isDragging' | 'dataTestId' | 'inactiveMessage'> {
1073
1090
  }
1074
1091
 
1075
1092
  /**
@@ -1471,7 +1488,7 @@ export declare interface FormItemWrapperProps extends UITestProps {
1471
1488
  }
1472
1489
 
1473
1490
  /** Configurator enables custom Froala Typescript plugins to use global Froala configuration methods, which would be unavailable due to different module context. */
1474
- declare interface FroalaEditorConfigurator {
1491
+ export declare interface FroalaEditorConfigurator {
1475
1492
  readonly defineIcon: (iconName: string, parameters: Partial<DefineIconParameters>) => void;
1476
1493
  readonly registerCommand: (buttonName: string, parameters: Partial<RegisterCommandParameters>) => void;
1477
1494
  readonly disableButton: (buttonName: string, buttonTitle?: string) => void;
@@ -1591,27 +1608,6 @@ export declare enum HeadlineSize {
1591
1608
  L = "L"
1592
1609
  }
1593
1610
 
1594
- export declare const HorizontalActionMenu: React_2.ForwardRefExoticComponent<HorizontalActionMenuProps & React_2.RefAttributes<HTMLDivElement>>;
1595
-
1596
- export declare interface HorizontalActionMenuItemProps {
1597
- readonly label: string;
1598
- readonly destructive?: boolean;
1599
- readonly disabled?: boolean;
1600
- readonly leadingIcon?: IconName;
1601
- readonly trailingIcon?: IconName;
1602
- readonly onClick: (e: (MouseEvent_2<HTMLElement> | KeyboardEvent_2<HTMLElement>)) => void;
1603
- }
1604
-
1605
- declare interface HorizontalActionMenuLabelProps {
1606
- readonly text?: string;
1607
- readonly counter?: number;
1608
- }
1609
-
1610
- export declare interface HorizontalActionMenuProps {
1611
- readonly actions: HorizontalActionMenuItemProps[];
1612
- readonly label?: HorizontalActionMenuLabelProps;
1613
- }
1614
-
1615
1611
  declare type HTMLButtonProps = Pick<React.ButtonHTMLAttributes<HTMLButtonElement>, 'title' | 'onClick'>;
1616
1612
 
1617
1613
  export declare const Icon: React_2.ForwardRefExoticComponent<IconProps & React_2.RefAttributes<SVGSVGElement>>;
@@ -1695,6 +1691,12 @@ export declare interface InlineProps extends LayoutComponentProps, UITestProps {
1695
1691
  readonly spacing?: Spacing;
1696
1692
  readonly spacingX?: Spacing;
1697
1693
  readonly spacingY?: Spacing;
1694
+ readonly spacingXDirection?: InlineSpacingXDirection;
1695
+ }
1696
+
1697
+ export declare enum InlineSpacingXDirection {
1698
+ Left = "Left",
1699
+ Right = "Right"
1698
1700
  }
1699
1701
 
1700
1702
  export declare const Input: React_2.ForwardRefExoticComponent<InputProps & React_2.RefAttributes<HTMLDivElement>>;
@@ -2085,6 +2087,7 @@ export declare const KXIcons: {
2085
2087
  'xp-monitor-smartphone': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
2086
2088
  'xp-monitor': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
2087
2089
  'xp-mug': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
2090
+ 'xp-multi-channel': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
2088
2091
  'xp-newspaper': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
2089
2092
  'xp-note': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
2090
2093
  'xp-notebook': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
@@ -2333,7 +2336,13 @@ declare interface NameButtonProps extends Pick<ToggleButtonBaseProps, 'onClick'
2333
2336
  }
2334
2337
 
2335
2338
  export declare interface NamedComponentCell extends TableCell {
2339
+ /**
2340
+ * Name of the component to display in the cell.
2341
+ */
2336
2342
  name: string;
2343
+ /**
2344
+ * Properties of the component.
2345
+ */
2337
2346
  componentProps: Record<string, any>;
2338
2347
  }
2339
2348
 
@@ -2400,6 +2409,10 @@ export declare interface OptionTileProps extends Pick<React.ButtonHTMLAttributes
2400
2409
  readonly shouldExpand?: boolean;
2401
2410
  }
2402
2411
 
2412
+ /**
2413
+ * @deprecated Component is deprecated and will be removed in the next version.
2414
+ * Use SelectorItemInfoTableCellComponent instead.
2415
+ */
2403
2416
  export declare const PageInfoTableCellComponent: ({ iconName, name, disabled }: PageInfoTableCellComponentProps) => JSX.Element;
2404
2417
 
2405
2418
  export declare interface PageInfoTableCellComponentProps {
@@ -2540,6 +2553,12 @@ export declare enum RadioGroupSize {
2540
2553
  */
2541
2554
  export declare const RichTextEditor: React_2.ForwardRefExoticComponent<RichTextEditorProps & React_2.RefAttributes<HTMLDivElement>>;
2542
2555
 
2556
+ /**
2557
+ * Describes options and configuration of a custom plugin added to Rich text editor.
2558
+ */
2559
+ export declare interface RichTextEditorPluginOptionsBase {
2560
+ }
2561
+
2543
2562
  export declare interface RichTextEditorPluginProps {
2544
2563
  readonly componentName: string;
2545
2564
  /** Reference to RichTextEditor providing higher-scope functions (i.e. inserting link/image or executing a command). */
@@ -2548,6 +2567,8 @@ export declare interface RichTextEditorPluginProps {
2548
2567
  readonly froalaEditorRef?: MutableRefObject<any>;
2549
2568
  /** Configurator is used to access Froala configuration methods usually available in global JS scope and unavailable for a plugin in different JS module. */
2550
2569
  readonly froalaEditorConfigurator: FroalaEditorConfigurator;
2570
+ /** Options and configuration of RTE plugins. */
2571
+ readonly pluginOptions?: RichTextEditorPluginOptionsBase;
2551
2572
  }
2552
2573
 
2553
2574
  export declare interface RichTextEditorProps extends UITestProps {
@@ -2715,6 +2736,7 @@ declare interface SelectGroupCellProps {
2715
2736
  readonly icon?: IconName;
2716
2737
  readonly ellipsis?: boolean;
2717
2738
  readonly onClick?: MouseEventHandler<HTMLElement>;
2739
+ readonly selectionDisabled?: boolean;
2718
2740
  }
2719
2741
 
2720
2742
  export declare interface SelectGroupProps<SelectShape> {
@@ -2729,6 +2751,14 @@ export declare const SelectMenu: React_2.ForwardRefExoticComponent<SelectMenuPro
2729
2751
  export declare interface SelectMenuProps extends Omit<VerticalMenuProps, 'menuType'> {
2730
2752
  }
2731
2753
 
2754
+ export declare const SelectorItemInfoTableCellComponent: ({ iconName, name, disabled }: SelectorItemInfoTableCellComponentProps) => JSX.Element;
2755
+
2756
+ export declare interface SelectorItemInfoTableCellComponentProps {
2757
+ readonly iconName?: IconName;
2758
+ readonly name: string;
2759
+ readonly disabled: boolean;
2760
+ }
2761
+
2732
2762
  export declare interface SelectProps extends Omit<InputProps, 'type' | 'actionElement' | 'onChange'>, Pick<DropDownActionMenuProps, 'maxContentHeight'> {
2733
2763
  readonly onChange: (value?: string) => void;
2734
2764
  readonly children: React.ReactNode;
@@ -2817,7 +2847,68 @@ export declare interface SideMenuProps extends UITestProps {
2817
2847
 
2818
2848
  export declare const SidePanel: React_2.ForwardRefExoticComponent<SidePanelProps & React_2.RefAttributes<HTMLDivElement>>;
2819
2849
 
2820
- declare interface SidePanelContextType {
2850
+ /**
2851
+ * Emitted when the side panel has been request to close
2852
+ */
2853
+ export declare interface SidePanelCloseEvent {
2854
+ /**
2855
+ * Source of the closing event
2856
+ */
2857
+ readonly source: SidePanelCloseSource;
2858
+ }
2859
+
2860
+ export declare enum SidePanelCloseSource {
2861
+ /**
2862
+ * Clicking on the close button.
2863
+ */
2864
+ UserClosed = "user_closed",
2865
+ /**
2866
+ * When the user clicks outside the {@link SidePanel}`s content.
2867
+ */
2868
+ ClickedOutside = "clicked_outside",
2869
+ /**
2870
+ * Foreign panel wants to be open, so it request all other panels to close.
2871
+ */
2872
+ ForeignPanelOpen = "foreign_panel_open",
2873
+ /**
2874
+ * The request for panel side opening has been blocked.
2875
+ */
2876
+ BlockedByForeignPanel = "blocked_by_foreign_panel",
2877
+ /**
2878
+ *
2879
+ */
2880
+ ParentPanelClosed = "parent_panel_closed"
2881
+ }
2882
+
2883
+ export declare interface SidePanelConfig {
2884
+ ref: RefObject<HTMLDivElement>;
2885
+ /**
2886
+ * Requests the panel to close. This usually happens if user wants to open new panel from outside of current panel.
2887
+ * @param event Information about what triggered the panel closing.
2888
+ * @returns If void is returned, it is assumed the panel closed right away. If promise is returned, then it will wait with.
2889
+ * @throws Throws if the closing has been blocked by to panel.
2890
+ * opening/closing of other panels until it is resolved. Rejecting the close will keep the panel open as is.
2891
+ * This is useful if you want add prompt asking if user wants to discard unsaved changes or not.
2892
+ */
2893
+ close: (event: SidePanelCloseEvent) => Promise<void> | void;
2894
+ /**
2895
+ * Called when panel becomes on top of panel stack.
2896
+ */
2897
+ onRevealed?: () => void;
2898
+ /**
2899
+ * Called when panel becomes overlaid by another panel.
2900
+ * @param isUserInteractable Specifies if user can interact with the panel even through, the panel is covered by another panel.
2901
+ */
2902
+ onCovered?: (isUserInteractable: boolean) => void;
2903
+ /**
2904
+ * Specifies if the panel will close when user click outside of the panel
2905
+ */
2906
+ isOutsideClickCloseable: boolean;
2907
+ }
2908
+
2909
+ export declare const SidePanelManager: ({ children }: SidePanelManagerProps) => JSX.Element;
2910
+
2911
+ declare interface SidePanelManagerContextType {
2821
2912
  /**
2822
2913
  * Gets the current side panel id.
2823
2914
  */
@@ -2825,19 +2916,11 @@ declare interface SidePanelContextType {
2825
2916
  /**
2826
2917
  * Adds the side panel under the sidePanelId.
2827
2918
  */
2828
- readonly addSidePanel: (sidePanelId: string, ref: RefObject<HTMLDivElement>) => void;
2919
+ readonly addSidePanel: (id: string, parentSidePanelId: string | undefined, config: SidePanelConfig) => Promise<void>;
2829
2920
  /**
2830
2921
  * Removes the side panel from the provider.
2831
2922
  */
2832
2923
  readonly removeSidePanel: (sidePanelId: string) => void;
2833
- /**
2834
- * Gets the level of nesting of the sidePanelId panel.
2835
- */
2836
- readonly getSidePanelLevel: (sidePanelId: string) => number;
2837
- /**
2838
- * Gets the current side panel level of nesting.
2839
- */
2840
- readonly getOpenedSidePanelLevel: () => number;
2841
2924
  /**
2842
2925
  * Gets the side panel offset of the sidePanelId.
2843
2926
  */
@@ -2846,17 +2929,21 @@ declare interface SidePanelContextType {
2846
2929
  * Gets the current side panel ref.
2847
2930
  */
2848
2931
  readonly getCurrentSidePanelRef: () => RefObject<HTMLDivElement> | null;
2932
+ /**
2933
+ * Container holding all side panels.
2934
+ */
2935
+ readonly sidePanelContainer?: HTMLDivElement;
2936
+ }
2937
+
2938
+ declare interface SidePanelManagerProps {
2939
+ readonly children: React_2.ReactNode;
2849
2940
  }
2850
2941
 
2851
2942
  export declare interface SidePanelProps extends UITestProps {
2852
2943
  /**
2853
2944
  * Headline of the SidePanel.
2854
2945
  */
2855
- readonly headline: string;
2856
- /**
2857
- * Function called when clicking on the close and if onOutsideCloseClick not specified, too.
2858
- */
2859
- readonly onCloseClick: () => void;
2946
+ readonly headline: ReactNode;
2860
2947
  /**
2861
2948
  * Children of the SidePanel.
2862
2949
  */
@@ -2864,7 +2951,7 @@ export declare interface SidePanelProps extends UITestProps {
2864
2951
  /**
2865
2952
  * Footer of the SidePanel.
2866
2953
  */
2867
- readonly footer: React_2.ReactNode;
2954
+ readonly footer?: React_2.ReactNode;
2868
2955
  /**
2869
2956
  * Notification bar.
2870
2957
  */
@@ -2887,16 +2974,42 @@ export declare interface SidePanelProps extends UITestProps {
2887
2974
  */
2888
2975
  readonly className?: string;
2889
2976
  /**
2890
- * If specified, when the user clicks outside the SidePanel, this function will be called.
2891
- * Otherwise the SidePanel will use the default onCloseClick action.
2977
+ * Called when the panel should close due to some action specified in {@link event}
2978
+ * @param event Specifying close information
2979
+ * @returns May return a promise if the closing is not instantaneous or closing can be rejected. This is useful if you want show prompt before side panel close.
2892
2980
  */
2893
- readonly onOutsideCloseClick?: () => void;
2894
- }
2895
-
2896
- export declare const SidePanelProvider: ({ children }: SidePanelProviderProps) => JSX.Element;
2897
-
2898
- declare interface SidePanelProviderProps {
2899
- readonly children: React_2.ReactNode;
2981
+ readonly onClose: (event: SidePanelCloseEvent) => Promise<void> | void;
2982
+ /**
2983
+ * Can the side panel maximize and cover whole content? This will add minimize/maximize button to panels`s header.
2984
+ * By default false.
2985
+ */
2986
+ readonly isMaximizable?: boolean;
2987
+ /**
2988
+ * Indicated if the side-panel can be close by clicking outside.
2989
+ * By default true.
2990
+ */
2991
+ readonly isOutsideClickCloseable?: boolean;
2992
+ /**
2993
+ * Add tooltip text to header buttons.
2994
+ */
2995
+ readonly tooltips?: {
2996
+ /**
2997
+ * Close button tooltip.
2998
+ */
2999
+ readonly close?: string;
3000
+ /**
3001
+ * Minimize button tooltip.
3002
+ */
3003
+ readonly minimize?: string;
3004
+ /**
3005
+ * Maximize button tooltip.
3006
+ */
3007
+ readonly maximize?: string;
3008
+ };
3009
+ /**
3010
+ * Class name of the content holding inner component.
3011
+ */
3012
+ readonly contentClassName?: string;
2900
3013
  }
2901
3014
 
2902
3015
  export declare enum SidePanelSize {
@@ -3005,7 +3118,13 @@ export declare enum SnackbarSpacing {
3005
3118
  }
3006
3119
 
3007
3120
  export declare interface SortModel {
3121
+ /**
3122
+ * Column name to sort by.
3123
+ */
3008
3124
  sortBy: string;
3125
+ /**
3126
+ * Type of the sorting (ascending/descending).
3127
+ */
3009
3128
  sortType: SortType;
3010
3129
  }
3011
3130
 
@@ -3035,6 +3154,21 @@ export declare interface SpinnerProps extends Omit<IconProps, 'name'> {
3035
3154
  className?: string;
3036
3155
  }
3037
3156
 
3157
+ export declare const SplitButton: {
3158
+ ({ size, color, disabled, inProgress, icon, open, onToggle, children, onClick, title, ...props }: SplitButtonProps): JSX.Element;
3159
+ displayName: string;
3160
+ };
3161
+
3162
+ export declare interface SplitButtonProps extends Omit<BaseButtonProps, 'renderComponent' | 'trailingIcon' | 'active' | 'badge' | 'fillContainer' | 'destructive' | 'borderless' | 'className'> {
3163
+ readonly color: ButtonColor.Primary | ButtonColor.Secondary;
3164
+ readonly size: ButtonSize.S | ButtonSize.M | ButtonSize.L;
3165
+ readonly onToggle?: (isOpen: boolean) => void;
3166
+ readonly open?: boolean;
3167
+ readonly onClick: () => void;
3168
+ readonly children: React.ReactNode;
3169
+ readonly title?: string;
3170
+ }
3171
+
3038
3172
  export declare const Stack: React_2.ForwardRefExoticComponent<StackProps & React_2.RefAttributes<HTMLDivElement>>;
3039
3173
 
3040
3174
  export declare interface StackProps extends LayoutComponentProps {
@@ -3073,13 +3207,23 @@ export declare interface StatusComponentProps {
3073
3207
  readonly labelColor: keyof typeof Colors;
3074
3208
  }
3075
3209
 
3076
- export declare const StickyHeader: ({ children }: StickyHeaderProps) => JSX.Element;
3210
+ export declare const StickyHeader: ({ children, className }: StickyHeaderProps) => JSX.Element;
3077
3211
 
3078
3212
  export declare interface StickyHeaderProps {
3213
+ /**
3214
+ * Children elements.
3215
+ */
3079
3216
  readonly children: React_2.ReactNode;
3217
+ /**
3218
+ * CSS class name of the sticky header.
3219
+ */
3220
+ readonly className?: string;
3080
3221
  }
3081
3222
 
3082
3223
  export declare interface StringCell extends TableCell {
3224
+ /**
3225
+ * Value of the cell.
3226
+ */
3083
3227
  value: string;
3084
3228
  }
3085
3229
 
@@ -3154,26 +3298,75 @@ export declare enum SystemTheme {
3154
3298
  export declare const Table: React_2.ForwardRefExoticComponent<TableProps & React_2.RefAttributes<HTMLDivElement>>;
3155
3299
 
3156
3300
  export declare interface TableAction {
3301
+ /**
3302
+ * Identifier of the action.
3303
+ */
3304
+ readonly identifier?: string;
3305
+ /**
3306
+ * Label of the action.
3307
+ */
3157
3308
  label: string;
3309
+ /**
3310
+ * Tooltip of the action button.
3311
+ */
3158
3312
  title?: string;
3313
+ /**
3314
+ * Icon of the action.
3315
+ */
3159
3316
  icon: IconName;
3317
+ /**
3318
+ * Indicates if the action is disabled.
3319
+ */
3160
3320
  disabled: boolean;
3321
+ /**
3322
+ * Indicates if the action is destructive.
3323
+ */
3161
3324
  destructive: boolean;
3162
3325
  }
3163
3326
 
3164
3327
  export declare interface TableCell {
3328
+ /**
3329
+ * Type of the cell.
3330
+ */
3165
3331
  type: CellType;
3332
+ /**
3333
+ * Indicates if the cell is disabled.
3334
+ */
3166
3335
  disabled?: boolean;
3167
3336
  }
3168
3337
 
3169
3338
  export declare interface TableColumn {
3339
+ /**
3340
+ * Name of the column.
3341
+ */
3170
3342
  name: string;
3343
+ /**
3344
+ * Caption of the column.
3345
+ */
3171
3346
  caption: string;
3347
+ /**
3348
+ * Indicates if the column is visible.
3349
+ */
3172
3350
  visible: boolean;
3351
+ /**
3352
+ * Minimun width of the column.
3353
+ */
3173
3354
  minWidth: number;
3355
+ /**
3356
+ * Maximum width of the column.
3357
+ */
3174
3358
  maxWidth: number;
3359
+ /**
3360
+ * Content type of the columns.
3361
+ */
3175
3362
  contentType: ColumnContentType;
3363
+ /**
3364
+ * Indicates if the columns is sortable.
3365
+ */
3176
3366
  sortable: boolean;
3367
+ /**
3368
+ * Indicates if the column is searchable via search input.
3369
+ */
3177
3370
  searchable: boolean;
3178
3371
  }
3179
3372
 
@@ -3190,23 +3383,84 @@ export declare interface TableHeaderProps extends UITestProps {
3190
3383
  }
3191
3384
 
3192
3385
  export declare interface TableProps extends UITestProps {
3386
+ /**
3387
+ * Columns of the table.
3388
+ */
3193
3389
  readonly columns: TableColumn[];
3390
+ /**
3391
+ * Rows of the table.
3392
+ */
3194
3393
  readonly rows: TableRow[] | undefined;
3394
+ /**
3395
+ * Indicates if the table should have selectable rows.
3396
+ */
3195
3397
  readonly selectable?: boolean;
3398
+ /**
3399
+ * Sort model of the table.
3400
+ */
3196
3401
  readonly sortModel?: SortModel;
3402
+ /**
3403
+ * Label for select row checkbox.
3404
+ */
3197
3405
  readonly selectRowLabel?: string;
3406
+ /**
3407
+ * Label for the select all rows checkbox.
3408
+ */
3198
3409
  readonly selectAllRowsLabel?: string;
3410
+ /**
3411
+ * Indicates if the header of the table should be visible.
3412
+ */
3199
3413
  readonly isHeaderVisible?: boolean;
3414
+ /**
3415
+ * Maximum number of visible actions in a table row.
3416
+ */
3200
3417
  readonly maxVisibleRowActions?: number;
3418
+ /**
3419
+ * Identifiers of the rows that should be preselected in the table.
3420
+ */
3421
+ readonly preselectedRows?: unknown[];
3422
+ /**
3423
+ * Header class name.
3424
+ */
3425
+ readonly headerClassName?: string;
3426
+ /**
3427
+ * Function to render table pre-header.
3428
+ */
3201
3429
  readonly renderPreheader?: () => ReactNode;
3202
- readonly onSelectedItemsChange?: (selectedItems: Number[]) => void;
3430
+ /**
3431
+ * Handler that is called when selection of the rows changes.
3432
+ * @param selectedItems Identifiers of selected rows.
3433
+ */
3434
+ readonly onSelectedItemsChange?: (selectedItems: unknown[]) => void;
3435
+ /**
3436
+ * Handler that fires when the sort is changed.
3437
+ * @param sortModel Sort model.
3438
+ */
3203
3439
  readonly onSortChange?: (sortModel: SortModel) => void;
3204
- readonly onRowClick?: (index: number) => void;
3440
+ /**
3441
+ * Handler that fires when the row is clicked.
3442
+ * @param identifier Identifier of the clicked row.
3443
+ */
3444
+ readonly onRowClick?: (identifier: unknown) => void;
3445
+ /**
3446
+ * Indicates if the row selection should be toggled when the row is clicked on and table is in selectable mode (property {@link TableProps.selectable} is set to true).
3447
+ * Callback {@link TableProps.onRowClick} is invoked if defined.
3448
+ */
3449
+ readonly toggleSelectionOnRowClick?: boolean;
3205
3450
  }
3206
3451
 
3207
3452
  export declare interface TableRow {
3453
+ /**
3454
+ * Identifier of the row.
3455
+ */
3208
3456
  identifier: any;
3457
+ /**
3458
+ * Table row cells.
3459
+ */
3209
3460
  cells: TableCell[];
3461
+ /**
3462
+ * Indicates if the row is disabled.
3463
+ */
3210
3464
  disabled: boolean;
3211
3465
  }
3212
3466
 
@@ -3719,13 +3973,17 @@ export declare type TreeNodeProps<TIsDraggable = boolean> = TIsDraggable extends
3719
3973
  /**
3720
3974
  * Tree node title component.
3721
3975
  */
3722
- export declare const TreeNodeTitle: ({ isSelected, disabled, children, dataTestId, ...props }: TreeNodeTitleProps) => JSX.Element;
3976
+ export declare const TreeNodeTitle: ({ isSelected, disabled, children, dataTestId, tooltipText, ...props }: TreeNodeTitleProps) => JSX.Element;
3723
3977
 
3724
3978
  export declare interface TreeNodeTitleProps extends TreeNodeContentSharedProps {
3725
3979
  /**
3726
3980
  * Tree node title string.
3727
3981
  */
3728
3982
  readonly children: string;
3983
+ /**
3984
+ * Text of the tooltip.
3985
+ */
3986
+ readonly tooltipText?: string;
3729
3987
  }
3730
3988
 
3731
3989
  /**
@@ -3846,7 +4104,7 @@ export declare const useMobileKeyboard: (minKeyboardHeight?: number) => boolean;
3846
4104
 
3847
4105
  export declare const useScrollDown: (throttleInterval?: number) => boolean;
3848
4106
 
3849
- export declare const useSidePanel: () => SidePanelContextType;
4107
+ export declare const useSidePanel: () => SidePanelManagerContextType;
3850
4108
 
3851
4109
  export declare const useSnackbar: () => SnackbarContextType;
3852
4110