@kentico/xperience-admin-components 26.5.2 → 26.6.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
|
@@ -15,6 +15,7 @@ import { default as React_2 } from 'react';
|
|
|
15
15
|
import { ReactCodeMirrorProps } from '@uiw/react-codemirror';
|
|
16
16
|
import { ReactCodeMirrorRef } from '@uiw/react-codemirror';
|
|
17
17
|
import { ReactNode } from 'react';
|
|
18
|
+
import { ReactPortal } from 'react';
|
|
18
19
|
import { RefAttributes } from 'react';
|
|
19
20
|
import { RefObject } from 'react';
|
|
20
21
|
import { RegisterCommandParameters } from 'froala-editor';
|
|
@@ -726,6 +727,10 @@ export declare interface CheckboxProps extends CheckboxBaseProps {
|
|
|
726
727
|
* Dangerously sets tooltip as inner HTML.
|
|
727
728
|
*/
|
|
728
729
|
readonly tooltipAsHtml?: boolean;
|
|
730
|
+
/**
|
|
731
|
+
* Label actions element.
|
|
732
|
+
*/
|
|
733
|
+
readonly labelActionsElement?: React.ReactNode;
|
|
729
734
|
}
|
|
730
735
|
|
|
731
736
|
export declare enum CheckboxSize {
|
|
@@ -777,6 +782,10 @@ export declare interface CodeEditorProps extends Omit<ReactCodeMirrorProps, 'ext
|
|
|
777
782
|
* Dangerously sets tooltip as inner HTML.
|
|
778
783
|
*/
|
|
779
784
|
readonly tooltipAsHtml?: boolean;
|
|
785
|
+
/**
|
|
786
|
+
* Label actions element.
|
|
787
|
+
*/
|
|
788
|
+
readonly labelActionsElement?: React.ReactNode;
|
|
780
789
|
}
|
|
781
790
|
|
|
782
791
|
export declare enum Colors {
|
|
@@ -1430,7 +1439,7 @@ export declare function forceClickOutside(e?: MouseEvent): void;
|
|
|
1430
1439
|
|
|
1431
1440
|
export declare const FormItemWrapper: React_2.ForwardRefExoticComponent<FormItemWrapperProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1432
1441
|
|
|
1433
|
-
declare interface FormItemWrapperProps extends UITestProps {
|
|
1442
|
+
export declare interface FormItemWrapperProps extends UITestProps {
|
|
1434
1443
|
readonly id?: string;
|
|
1435
1444
|
readonly inline?: boolean;
|
|
1436
1445
|
readonly label?: string;
|
|
@@ -1454,10 +1463,11 @@ declare interface FormItemWrapperProps extends UITestProps {
|
|
|
1454
1463
|
*/
|
|
1455
1464
|
readonly explanationTextAsHtml?: boolean;
|
|
1456
1465
|
/**
|
|
1457
|
-
* Dangerously tooltip as inner HTML.
|
|
1466
|
+
* Dangerously sets tooltip as inner HTML.
|
|
1458
1467
|
*/
|
|
1459
1468
|
readonly tooltipAsHtml?: boolean;
|
|
1460
1469
|
readonly onInlineWrapperClick?: (e: React_2.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
1470
|
+
readonly labelActionsElement?: React_2.ReactNode;
|
|
1461
1471
|
}
|
|
1462
1472
|
|
|
1463
1473
|
/** Configurator enables custom Froala Typescript plugins to use global Froala configuration methods, which would be unavailable due to different module context. */
|
|
@@ -1687,15 +1697,11 @@ export declare interface InlineProps extends LayoutComponentProps, UITestProps {
|
|
|
1687
1697
|
readonly spacingY?: Spacing;
|
|
1688
1698
|
}
|
|
1689
1699
|
|
|
1690
|
-
export declare const Input: React_2.ForwardRefExoticComponent<
|
|
1700
|
+
export declare const Input: React_2.ForwardRefExoticComponent<InputProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1691
1701
|
|
|
1692
1702
|
export declare const InputBase: React_2.ForwardRefExoticComponent<InputBaseProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1693
1703
|
|
|
1694
1704
|
export declare interface InputBaseProps extends NativeInputProps, UITestProps {
|
|
1695
|
-
/**
|
|
1696
|
-
* Label used as description to input.
|
|
1697
|
-
*/
|
|
1698
|
-
readonly label?: string;
|
|
1699
1705
|
/**
|
|
1700
1706
|
* Specifies if input has valid value.
|
|
1701
1707
|
*/
|
|
@@ -1708,10 +1714,6 @@ export declare interface InputBaseProps extends NativeInputProps, UITestProps {
|
|
|
1708
1714
|
* Specifies input type.
|
|
1709
1715
|
*/
|
|
1710
1716
|
readonly type?: 'text' | 'password' | 'email' | 'number';
|
|
1711
|
-
/**
|
|
1712
|
-
* Explanatory message for invalid input.
|
|
1713
|
-
*/
|
|
1714
|
-
readonly validationMessage?: string;
|
|
1715
1717
|
/**
|
|
1716
1718
|
* Button or icon in input field.
|
|
1717
1719
|
*/
|
|
@@ -1721,45 +1723,60 @@ export declare interface InputBaseProps extends NativeInputProps, UITestProps {
|
|
|
1721
1723
|
*/
|
|
1722
1724
|
readonly clearButton?: React.ReactElement<HTMLButtonElement>;
|
|
1723
1725
|
/**
|
|
1724
|
-
*
|
|
1726
|
+
* Input ref.
|
|
1725
1727
|
*/
|
|
1726
|
-
readonly
|
|
1728
|
+
readonly inputRef?: RefObject<HTMLInputElement>;
|
|
1727
1729
|
/**
|
|
1728
|
-
*
|
|
1730
|
+
* Specifies if input is used as Select component.
|
|
1729
1731
|
*/
|
|
1730
|
-
readonly
|
|
1732
|
+
readonly isSelect?: boolean;
|
|
1731
1733
|
/**
|
|
1732
|
-
*
|
|
1734
|
+
* Tooltip text displayed on input.
|
|
1733
1735
|
*/
|
|
1734
|
-
readonly
|
|
1736
|
+
readonly tooltipText?: string;
|
|
1735
1737
|
/**
|
|
1736
|
-
*
|
|
1738
|
+
* Dangerously sets explanation text as inner HTML.
|
|
1737
1739
|
*/
|
|
1738
|
-
readonly
|
|
1740
|
+
readonly explanationTextAsHtml?: boolean;
|
|
1741
|
+
/**
|
|
1742
|
+
* Dangerously sets tooltip as inner HTML.
|
|
1743
|
+
*/
|
|
1744
|
+
readonly tooltipAsHtml?: boolean;
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
export declare interface InputProps extends InputBaseProps {
|
|
1748
|
+
/**
|
|
1749
|
+
* Label used as description to input.
|
|
1750
|
+
*/
|
|
1751
|
+
readonly label?: string;
|
|
1739
1752
|
/**
|
|
1740
1753
|
* Specifies if input is required.
|
|
1741
1754
|
*/
|
|
1742
1755
|
readonly markAsRequired?: boolean;
|
|
1743
1756
|
/**
|
|
1744
|
-
*
|
|
1757
|
+
* Explanatory text in tooltip for disabled input.
|
|
1745
1758
|
*/
|
|
1746
|
-
readonly
|
|
1759
|
+
readonly inactiveMessage?: string;
|
|
1747
1760
|
/**
|
|
1748
|
-
*
|
|
1761
|
+
* Icon in label.
|
|
1749
1762
|
*/
|
|
1750
|
-
readonly
|
|
1763
|
+
readonly labelIcon?: IconName;
|
|
1751
1764
|
/**
|
|
1752
|
-
*
|
|
1765
|
+
* Text for icon in label.
|
|
1753
1766
|
*/
|
|
1754
|
-
readonly
|
|
1767
|
+
readonly labelIconTooltip?: string;
|
|
1755
1768
|
/**
|
|
1756
|
-
*
|
|
1769
|
+
* Explanatory message for invalid input.
|
|
1757
1770
|
*/
|
|
1758
|
-
readonly
|
|
1771
|
+
readonly validationMessage?: string;
|
|
1759
1772
|
/**
|
|
1760
|
-
*
|
|
1773
|
+
* Explanatory message for input.
|
|
1761
1774
|
*/
|
|
1762
|
-
readonly
|
|
1775
|
+
readonly explanationText?: string;
|
|
1776
|
+
/**
|
|
1777
|
+
* Label actions element.
|
|
1778
|
+
*/
|
|
1779
|
+
readonly labelActionsElement?: React.ReactNode;
|
|
1763
1780
|
}
|
|
1764
1781
|
|
|
1765
1782
|
declare type ItemId = string;
|
|
@@ -1788,6 +1805,7 @@ export declare const KXIcons: {
|
|
|
1788
1805
|
'xp-arrow-right-rect': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
|
|
1789
1806
|
'xp-arrow-right-top-square': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
|
|
1790
1807
|
'xp-arrow-right': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
|
|
1808
|
+
'xp-arrow-send': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
|
|
1791
1809
|
'xp-arrow-u-left': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
|
|
1792
1810
|
'xp-arrow-u-right': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
|
|
1793
1811
|
'xp-arrow-up-circle': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
|
|
@@ -2120,6 +2138,7 @@ export declare const KXIcons: {
|
|
|
2120
2138
|
'xp-rectangle-h': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
|
|
2121
2139
|
'xp-rectangle-paragraph': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
|
|
2122
2140
|
'xp-rectangle-v': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
|
|
2141
|
+
'xp-resize': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
|
|
2123
2142
|
'xp-restriction-list': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
|
|
2124
2143
|
'xp-ribbon': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
|
|
2125
2144
|
'xp-right-double-quotation-mark': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
|
|
@@ -2150,6 +2169,7 @@ export declare const KXIcons: {
|
|
|
2150
2169
|
'xp-star-empty': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
|
|
2151
2170
|
'xp-star-full': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
|
|
2152
2171
|
'xp-star-semi': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
|
|
2172
|
+
'xp-stop': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
|
|
2153
2173
|
'xp-subscript': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
|
|
2154
2174
|
'xp-superscript': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
|
|
2155
2175
|
'xp-t-f': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
|
|
@@ -2377,6 +2397,7 @@ export declare interface OptionTileProps extends Pick<React.ButtonHTMLAttributes
|
|
|
2377
2397
|
readonly block?: boolean;
|
|
2378
2398
|
readonly maxWidth?: string | number;
|
|
2379
2399
|
readonly dataTestId?: string;
|
|
2400
|
+
readonly shouldExpand?: boolean;
|
|
2380
2401
|
}
|
|
2381
2402
|
|
|
2382
2403
|
export declare const PageInfoTableCellComponent: ({ iconName, name, disabled }: PageInfoTableCellComponentProps) => JSX.Element;
|
|
@@ -2607,6 +2628,10 @@ export declare interface RichTextEditorProps extends UITestProps {
|
|
|
2607
2628
|
* Dangerously sets explanation as inner HTML.
|
|
2608
2629
|
*/
|
|
2609
2630
|
readonly explanationTextAsHtml?: boolean;
|
|
2631
|
+
/**
|
|
2632
|
+
* Label actions element.
|
|
2633
|
+
*/
|
|
2634
|
+
readonly labelActionsElement?: React.ReactNode;
|
|
2610
2635
|
}
|
|
2611
2636
|
|
|
2612
2637
|
/**
|
|
@@ -2704,7 +2729,7 @@ export declare const SelectMenu: React_2.ForwardRefExoticComponent<SelectMenuPro
|
|
|
2704
2729
|
export declare interface SelectMenuProps extends Omit<VerticalMenuProps, 'menuType'> {
|
|
2705
2730
|
}
|
|
2706
2731
|
|
|
2707
|
-
export declare interface SelectProps extends Omit<
|
|
2732
|
+
export declare interface SelectProps extends Omit<InputProps, 'type' | 'actionElement' | 'onChange'>, Pick<DropDownActionMenuProps, 'maxContentHeight'> {
|
|
2708
2733
|
readonly onChange: (value?: string) => void;
|
|
2709
2734
|
readonly children: React.ReactNode;
|
|
2710
2735
|
readonly clearable?: boolean;
|
|
@@ -3107,6 +3132,10 @@ export declare interface SwitchProps extends UITestProps {
|
|
|
3107
3132
|
* Allows consumer to switch the switch (required).
|
|
3108
3133
|
*/
|
|
3109
3134
|
readonly onChange: (value: boolean) => void;
|
|
3135
|
+
/**
|
|
3136
|
+
* Label actions element.
|
|
3137
|
+
*/
|
|
3138
|
+
readonly labelActionsElement?: React.ReactNode;
|
|
3110
3139
|
}
|
|
3111
3140
|
|
|
3112
3141
|
/**
|
|
@@ -3291,7 +3320,7 @@ export declare interface TagTableCellComponentProps {
|
|
|
3291
3320
|
|
|
3292
3321
|
export declare const TextArea: React_2.ForwardRefExoticComponent<TextAreaProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
3293
3322
|
|
|
3294
|
-
export declare interface TextAreaProps extends Pick<React_2.TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange' | 'disabled' | 'name' | 'onClick' | 'onKeyPress' | 'id' | 'placeholder'>, UITestProps {
|
|
3323
|
+
export declare interface TextAreaProps extends Pick<React_2.TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange' | 'disabled' | 'name' | 'onClick' | 'onKeyPress' | 'id' | 'placeholder' | 'maxLength'>, UITestProps {
|
|
3295
3324
|
readonly label?: string;
|
|
3296
3325
|
readonly validationMessage?: string;
|
|
3297
3326
|
readonly invalid?: boolean;
|
|
@@ -3313,6 +3342,10 @@ export declare interface TextAreaProps extends Pick<React_2.TextareaHTMLAttribut
|
|
|
3313
3342
|
* Dangerously tooltip as inner HTML.
|
|
3314
3343
|
*/
|
|
3315
3344
|
readonly tooltipAsHtml?: boolean;
|
|
3345
|
+
/**
|
|
3346
|
+
* Label actions element.
|
|
3347
|
+
*/
|
|
3348
|
+
readonly labelActionsElement?: React_2.ReactNode;
|
|
3316
3349
|
}
|
|
3317
3350
|
|
|
3318
3351
|
export declare const TextWithLabel: React_2.ForwardRefExoticComponent<TextWithLabelProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -3416,6 +3449,7 @@ declare interface ToggleButtonsProps<ItemsType> {
|
|
|
3416
3449
|
readonly selectedItemId: ItemId;
|
|
3417
3450
|
readonly items: ItemsType[];
|
|
3418
3451
|
readonly onChange: (id: ItemId) => void;
|
|
3452
|
+
readonly orientation?: 'vertical' | 'horizontal';
|
|
3419
3453
|
}
|
|
3420
3454
|
|
|
3421
3455
|
export declare const Tooltip: {
|
|
@@ -3866,6 +3900,129 @@ export declare const ViewMenu: React_2.ForwardRefExoticComponent<ViewMenuProps &
|
|
|
3866
3900
|
export declare interface ViewMenuProps extends Omit<ShelfProps, 'fullHeight'> {
|
|
3867
3901
|
}
|
|
3868
3902
|
|
|
3903
|
+
declare const Window_2: ForwardRefExoticComponent<WindowProps & RefAttributes<WindowFunctions>>;
|
|
3904
|
+
export { Window_2 as Window }
|
|
3905
|
+
|
|
3906
|
+
/**
|
|
3907
|
+
* Functions which you can call through {@link Window} reference.
|
|
3908
|
+
*/
|
|
3909
|
+
export declare interface WindowFunctions {
|
|
3910
|
+
/**
|
|
3911
|
+
* @returns Bounding rect of the window
|
|
3912
|
+
*/
|
|
3913
|
+
readonly boundingRect: () => DOMRect;
|
|
3914
|
+
/**
|
|
3915
|
+
* Set window position
|
|
3916
|
+
* @param x X position in pixels from left edge of document
|
|
3917
|
+
* @param y Y position in pixels from top edge of document
|
|
3918
|
+
*/
|
|
3919
|
+
readonly setPosition: (x: number, y: number) => void;
|
|
3920
|
+
/**
|
|
3921
|
+
* Set size of the Window
|
|
3922
|
+
* @param width Width in px
|
|
3923
|
+
* @param height Height in px
|
|
3924
|
+
*/
|
|
3925
|
+
readonly setSize: (width: number, height: number) => void;
|
|
3926
|
+
}
|
|
3927
|
+
|
|
3928
|
+
export declare const WindowManager: (props: WindowManagerProps) => JSX.Element;
|
|
3929
|
+
|
|
3930
|
+
declare interface WindowManagerProps {
|
|
3931
|
+
/**
|
|
3932
|
+
* Any component which may use {@link WindowPortal}
|
|
3933
|
+
*/
|
|
3934
|
+
readonly children: ReactNode;
|
|
3935
|
+
}
|
|
3936
|
+
|
|
3937
|
+
/**
|
|
3938
|
+
* Places the window within a dedicate place in the DOM document, close to the document`s root. You should wrap every window/modal/panel with this.
|
|
3939
|
+
* @param props {@link WindowPortalProps}
|
|
3940
|
+
*/
|
|
3941
|
+
export declare const WindowPortal: (props: WindowPortalProps) => ReactPortal | null;
|
|
3942
|
+
|
|
3943
|
+
declare interface WindowPortalProps {
|
|
3944
|
+
/**
|
|
3945
|
+
* Whole content of Window, including headers/footers/everything
|
|
3946
|
+
*/
|
|
3947
|
+
readonly children: ReactNode;
|
|
3948
|
+
}
|
|
3949
|
+
|
|
3950
|
+
declare interface WindowProps extends UITestProps {
|
|
3951
|
+
/**
|
|
3952
|
+
* Headline element. Close/Maximize/Minimize buttons will stay.
|
|
3953
|
+
*/
|
|
3954
|
+
readonly headline: ReactNode;
|
|
3955
|
+
/**
|
|
3956
|
+
* Window footer
|
|
3957
|
+
*/
|
|
3958
|
+
readonly footer: ReactNode;
|
|
3959
|
+
/**
|
|
3960
|
+
* Content of the window
|
|
3961
|
+
*/
|
|
3962
|
+
readonly children: ReactNode;
|
|
3963
|
+
/**
|
|
3964
|
+
* Called when user request to close the window
|
|
3965
|
+
*/
|
|
3966
|
+
readonly onClose?: () => void;
|
|
3967
|
+
/**
|
|
3968
|
+
* Called when window stage changes, usually after some user interaction
|
|
3969
|
+
* @param stege Current window stage
|
|
3970
|
+
*/
|
|
3971
|
+
readonly onStageChange?: (stege: WindowStage) => void;
|
|
3972
|
+
/**
|
|
3973
|
+
* Can the window can be resized with mouse
|
|
3974
|
+
*/
|
|
3975
|
+
readonly resizable?: boolean;
|
|
3976
|
+
/**
|
|
3977
|
+
* Can the window can be dragged with mouse
|
|
3978
|
+
*/
|
|
3979
|
+
readonly draggable?: boolean;
|
|
3980
|
+
/**
|
|
3981
|
+
* Can the window be minimized
|
|
3982
|
+
*/
|
|
3983
|
+
readonly minimizable?: boolean;
|
|
3984
|
+
/**
|
|
3985
|
+
* Can the window be maximized
|
|
3986
|
+
*/
|
|
3987
|
+
readonly maximizable?: boolean;
|
|
3988
|
+
/**
|
|
3989
|
+
* Initial window position during first render
|
|
3990
|
+
*/
|
|
3991
|
+
readonly initialPosition?: {
|
|
3992
|
+
x: number;
|
|
3993
|
+
y: number;
|
|
3994
|
+
};
|
|
3995
|
+
/**
|
|
3996
|
+
* Initial window size during first render
|
|
3997
|
+
*/
|
|
3998
|
+
readonly initialSize?: {
|
|
3999
|
+
width: number;
|
|
4000
|
+
height: number;
|
|
4001
|
+
};
|
|
4002
|
+
/**
|
|
4003
|
+
* Should ESC key press close the window
|
|
4004
|
+
*/
|
|
4005
|
+
readonly closeOnEsc?: boolean;
|
|
4006
|
+
/**
|
|
4007
|
+
* Tooltip string for window buttons
|
|
4008
|
+
*/
|
|
4009
|
+
readonly tooltips?: {
|
|
4010
|
+
close: string;
|
|
4011
|
+
maximize: string;
|
|
4012
|
+
minimize: string;
|
|
4013
|
+
normalize: string;
|
|
4014
|
+
};
|
|
4015
|
+
}
|
|
4016
|
+
|
|
4017
|
+
/**
|
|
4018
|
+
* List of window stages
|
|
4019
|
+
*/
|
|
4020
|
+
export declare enum WindowStage {
|
|
4021
|
+
Maximized = 1,
|
|
4022
|
+
Minimized = 2,
|
|
4023
|
+
Normal = 3
|
|
4024
|
+
}
|
|
4025
|
+
|
|
3869
4026
|
export declare enum Zindex {
|
|
3870
4027
|
Hidden = "-1",
|
|
3871
4028
|
Visible = "0",
|