@progress/kendo-react-dialogs 7.2.4-develop.3 → 7.3.0-develop.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.
Files changed (49) hide show
  1. package/Dialog.js +8 -0
  2. package/Dialog.mjs +122 -0
  3. package/DialogActionsBar.js +8 -0
  4. package/DialogActionsBar.mjs +32 -0
  5. package/DialogTitleBar.js +8 -0
  6. package/DialogTitleBar.mjs +26 -0
  7. package/MiddleLayerOptimization.js +8 -0
  8. package/MiddleLayerOptimization.mjs +20 -0
  9. package/StageEnum.js +8 -0
  10. package/StageEnum.mjs +12 -0
  11. package/Window.js +8 -0
  12. package/Window.mjs +407 -0
  13. package/WindowActionsBar.js +8 -0
  14. package/WindowActionsBar.mjs +36 -0
  15. package/WindowResizeHandlers.js +8 -0
  16. package/WindowResizeHandlers.mjs +39 -0
  17. package/WindowTitlebar.js +8 -0
  18. package/WindowTitlebar.mjs +87 -0
  19. package/constants.js +8 -0
  20. package/constants.mjs +15 -0
  21. package/dist/cdn/js/kendo-react-dialogs.js +8 -5
  22. package/index.d.mts +599 -5
  23. package/index.d.ts +599 -13
  24. package/index.js +8 -5
  25. package/index.mjs +17 -687
  26. package/messages/index.js +8 -0
  27. package/messages/index.mjs +21 -0
  28. package/package-metadata.js +8 -0
  29. package/package-metadata.mjs +19 -0
  30. package/package.json +3 -3
  31. package/utils.js +8 -0
  32. package/utils.mjs +26 -0
  33. package/Dialog.d.ts +0 -94
  34. package/DialogActionsBar.d.ts +0 -25
  35. package/DialogProps.d.ts +0 -77
  36. package/DialogTitleBar.d.ts +0 -30
  37. package/MiddleLayerOptimization.d.ts +0 -21
  38. package/StageEnum.d.ts +0 -9
  39. package/Window.d.ts +0 -179
  40. package/WindowActionsBar.d.ts +0 -25
  41. package/WindowProps.d.ts +0 -151
  42. package/WindowResizeHandlers.d.ts +0 -20
  43. package/WindowTitlebar.d.ts +0 -67
  44. package/constants.d.ts +0 -12
  45. package/events.d.ts +0 -49
  46. package/messages/index.d.ts +0 -29
  47. package/models/actions-layout.d.ts +0 -8
  48. package/package-metadata.d.ts +0 -9
  49. package/utils.d.ts +0 -6
package/WindowProps.d.ts DELETED
@@ -1,151 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { WindowActionsEvent, WindowMoveEvent } from './events';
6
- import { windowStage } from './StageEnum';
7
- /**
8
- * Represents the props of the [KendoReact Window component]({% slug overview_window %}).
9
- */
10
- export interface WindowProps {
11
- /**
12
- * Defines the container to which the Window will be appended. Defaults to its parent element.
13
- * * If set to `null` the Window will be rendered without React Portal.
14
- */
15
- appendTo?: HTMLElement | null;
16
- /**
17
- * @hidden
18
- */
19
- children?: React.ReactNode;
20
- /**
21
- * Specifies if the Window will render the close button.
22
- */
23
- closeButton?: React.ComponentType<any>;
24
- /**
25
- * Specifies if the Window stage will change on title double click. The this is on by default.
26
- */
27
- doubleClickStageChange?: boolean;
28
- /**
29
- * Specifies if the Window will be draggable ([see example]({% slug positioningdragging_window %}#toc-dragging)).
30
- */
31
- draggable?: boolean;
32
- /**
33
- * Specifies the height of the Window ([see example]({% slug dimensionsresizing_window %}#toc-dimensions)).
34
- */
35
- height?: number;
36
- /**
37
- * Specifies the initial `left` value ([see example]({% slug positioningdragging_window %}#toc-positioning)). The Window will be in an uncontrolled mode.
38
- */
39
- initialLeft?: number;
40
- /**
41
- * Specifies the initial `top` value ([see example]({% slug positioningdragging_window %}#toc-positioning)). The component will be in an uncontrolled mode.
42
- */
43
- initialTop?: number;
44
- /**
45
- * Specifies the initial width of the Window ([see example]({% slug dimensionsresizing_window %}#toc-dimensions)). The component will be in an uncontrolled mode.
46
- */
47
- initialWidth?: number;
48
- /**
49
- * Specifies the initial height of the Window ([see example]({% slug dimensionsresizing_window %}#toc-dimensions)). The component will be in an uncontrolled mode.
50
- */
51
- initialHeight?: number;
52
- /**
53
- * Specifies the left coordinates of the Window.
54
- */
55
- left?: number;
56
- /**
57
- * Specifies if the Window will render the maximize button.
58
- */
59
- maximizeButton?: React.ComponentType<any>;
60
- /**
61
- * Specifies the minimum height of the Window ([see example]({% slug dimensionsresizing_window %}#toc-resizing)).
62
- */
63
- minHeight?: number;
64
- /**
65
- * Specifies the minimum width of the Window ([see example]({% slug dimensionsresizing_window %}#toc-resizing)).
66
- */
67
- minWidth?: number;
68
- /**
69
- * Specifies if the Window will render the minimize button.
70
- */
71
- minimizeButton?: React.ComponentType<any>;
72
- /**
73
- * Specifies if the Window will be modal by rendering an overlay under the component.
74
- */
75
- modal?: boolean;
76
- /**
77
- * Specifies if the Window will be resizable ([see example]({% slug dimensionsresizing_window %}#toc-resizing)).
78
- */
79
- resizable?: boolean;
80
- /**
81
- * Specifies if the Window will render the restore button.
82
- */
83
- restoreButton?: React.ComponentType<any>;
84
- /**
85
- * Specifies if the Window content will update during resizing.
86
- */
87
- shouldUpdateOnDrag?: boolean;
88
- /**
89
- * Specifies the title of the Window ([see example]({% slug title_window %})).
90
- */
91
- title?: React.ReactNode | string;
92
- /**
93
- * Specifies the top coordinates of the Window.
94
- */
95
- top?: number;
96
- /**
97
- * Specifies the width of the Window.
98
- */
99
- width?: number;
100
- /**
101
- * Controls the state of the Window ([see example]({% slug windowstage_window %})).
102
- *
103
- * The supported values are:
104
- * * `DEFAULT`
105
- * * `MINIMIZED`
106
- * * `FULLSCREEN`
107
- */
108
- stage?: windowStage | string;
109
- /**
110
- * Set styles to the Window element.
111
- */
112
- style?: React.CSSProperties;
113
- /**
114
- * Set styles to the Window overlay element rendered when the `modal` prop is enabled.
115
- */
116
- overlayStyle?: React.CSSProperties;
117
- /**
118
- * Sets a class of the Window DOM element.
119
- */
120
- className?: string;
121
- /**
122
- * Configures the `themeColor` of the Window.
123
- *
124
- * The available options are:
125
- * - primary
126
- * - dark
127
- * - light
128
- *
129
- */
130
- themeColor?: 'primary' | 'dark' | 'light';
131
- /**
132
- * Fires when the **Close** button in the title is clicked or when the `Esc` button is pressed.
133
- */
134
- onClose?: (event: WindowActionsEvent) => void;
135
- /**
136
- * Fires when the Window is dragged.
137
- */
138
- onMove?: (event: WindowMoveEvent) => void;
139
- /**
140
- * Fires when the `DEFAULT`, `FULLSCREEN`, or `MINIMIZED` state of the Window is changed.
141
- */
142
- onStageChange?: (event: WindowActionsEvent) => void;
143
- /**
144
- * Fires when the Window resizes.
145
- */
146
- onResize?: (event: WindowMoveEvent) => void;
147
- /**
148
- * Sets the `id` attribute value of the wrapper element of the Window.
149
- */
150
- id?: string;
151
- }
@@ -1,20 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- /**
7
- * @hidden
8
- */
9
- export interface ResizeHandlersProps {
10
- onResize: (e: any, args: {
11
- end: boolean;
12
- direction: any;
13
- }) => void;
14
- }
15
- /**
16
- * @hidden
17
- */
18
- export declare class ResizeHandlers extends React.Component<ResizeHandlersProps, {}> {
19
- render(): import("react/jsx-runtime").JSX.Element;
20
- }
@@ -1,67 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { windowStage } from './StageEnum';
7
- /**
8
- * @hidden
9
- */
10
- export interface WindowTitleBarProps {
11
- /**
12
- * @hidden
13
- */
14
- onCloseButtonClick?: (event: React.SyntheticEvent<any>) => void;
15
- /**
16
- * @hidden
17
- */
18
- onDoubleClick?: (event: React.SyntheticEvent<any>) => void;
19
- /**
20
- * @hidden
21
- */
22
- onMinimizeButtonClick?: (event: React.SyntheticEvent<any>) => void;
23
- /**
24
- * @hidden
25
- */
26
- onFullScreenButtonClick?: (event: React.SyntheticEvent<any>) => void;
27
- /**
28
- * @hidden
29
- */
30
- onRestoreButtonClick?: (event: React.SyntheticEvent<any>) => void;
31
- /**
32
- * @hidden
33
- */
34
- id?: string;
35
- /**
36
- * @hidden
37
- */
38
- stage?: windowStage | string;
39
- /**
40
- * @hidden
41
- */
42
- children?: any;
43
- /**
44
- * @hidden
45
- */
46
- closeButton?: React.ComponentType<any>;
47
- /**
48
- * @hidden
49
- */
50
- minimizeButton?: React.ComponentType<any>;
51
- /**
52
- * @hidden
53
- */
54
- maximizeButton?: React.ComponentType<any>;
55
- /**
56
- * @hidden
57
- */
58
- restoreButton?: React.ComponentType<any>;
59
- /**
60
- * @hidden
61
- */
62
- forwardedRef?: any;
63
- }
64
- /**
65
- * @hidden
66
- */
67
- export declare const WindowTitleBar: React.ForwardRefExoticComponent<WindowTitleBarProps & React.RefAttributes<unknown>>;
package/constants.d.ts DELETED
@@ -1,12 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /** @hidden */
6
- export declare const DATA_DIALOGS_ID = "data-windowid";
7
- /** @hidden */
8
- export declare const DEFAULT_DIALOGS_ZINDEX = 10002;
9
- /** @hidden */
10
- export declare const ZINDEX_DIALOGS_STEP = 2;
11
- /** @hidden */
12
- export declare const DIALOGS_SELECTOR = ".k-window:not(.k-dialog), .k-dialog-wrapper";
package/events.d.ts DELETED
@@ -1,49 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Dialog } from './Dialog';
6
- import { BaseEvent } from '@progress/kendo-react-common';
7
- import { Window } from './Window';
8
- /**
9
- * @hidden
10
- */
11
- export interface DialogCloseEvent extends BaseEvent<Dialog> {
12
- }
13
- export interface WindowActionsEvent extends BaseEvent<Window> {
14
- state?: 'DEFAULT' | 'FULLSCREEN' | 'MINIMIZED';
15
- }
16
- export interface WindowMoveEvent {
17
- /**
18
- * An event target.
19
- */
20
- target: Window;
21
- /**
22
- * A native DOM event.
23
- */
24
- nativeEvent: any;
25
- /**
26
- * Indicates that dragging is completed and that the user dropped the resize handler.
27
- */
28
- end: boolean;
29
- /**
30
- * Indicates that the move operation was initialized through dragging. If the Window is moved through the keyboard, the value will be `false`.
31
- */
32
- drag: boolean;
33
- /**
34
- * The new top value of the Window.
35
- */
36
- top: number;
37
- /**
38
- * The new left value of the Window.
39
- */
40
- left: number;
41
- /**
42
- * The new width value of the Window.
43
- */
44
- width: number;
45
- /**
46
- * The new height value of the Window.
47
- */
48
- height: number;
49
- }
@@ -1,29 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export declare const dialogsWindowMaximizeButton = "dialogs.windowMaximizeButton";
9
- /**
10
- * @hidden
11
- */
12
- export declare const dialogsWindowMinimizeButton = "dialogs.windowMinimizeButton";
13
- /**
14
- * @hidden
15
- */
16
- export declare const dialogsWindowRestoreButton = "dialogs.windowRestoreButton";
17
- /**
18
- * @hidden
19
- */
20
- export declare const dialogsWindowCloseButton = "dialogs.windowCloseButton";
21
- /**
22
- * @hidden
23
- */
24
- export declare const messages: {
25
- "dialogs.windowMaximizeButton": string;
26
- "dialogs.windowMinimizeButton": string;
27
- "dialogs.windowRestoreButton": string;
28
- "dialogs.windowCloseButton": string;
29
- };
@@ -1,8 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * Lists the possible layout of the dialogs action buttons.
7
- */
8
- export type ActionsLayout = 'start' | 'center' | 'end' | 'stretched';
@@ -1,9 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { PackageMetadata } from '@progress/kendo-licensing';
6
- /**
7
- * @hidden
8
- */
9
- export declare const packageMetadata: PackageMetadata;
package/utils.d.ts DELETED
@@ -1,6 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /** @hidden */
6
- export declare const getMaxZIndex: (currentZIndex: number, currentDocument: Document | null, currentWindowId: string) => number;