@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.
- package/Dialog.js +8 -0
- package/Dialog.mjs +122 -0
- package/DialogActionsBar.js +8 -0
- package/DialogActionsBar.mjs +32 -0
- package/DialogTitleBar.js +8 -0
- package/DialogTitleBar.mjs +26 -0
- package/MiddleLayerOptimization.js +8 -0
- package/MiddleLayerOptimization.mjs +20 -0
- package/StageEnum.js +8 -0
- package/StageEnum.mjs +12 -0
- package/Window.js +8 -0
- package/Window.mjs +407 -0
- package/WindowActionsBar.js +8 -0
- package/WindowActionsBar.mjs +36 -0
- package/WindowResizeHandlers.js +8 -0
- package/WindowResizeHandlers.mjs +39 -0
- package/WindowTitlebar.js +8 -0
- package/WindowTitlebar.mjs +87 -0
- package/constants.js +8 -0
- package/constants.mjs +15 -0
- package/dist/cdn/js/kendo-react-dialogs.js +8 -5
- package/index.d.mts +599 -5
- package/index.d.ts +599 -13
- package/index.js +8 -5
- package/index.mjs +17 -687
- package/messages/index.js +8 -0
- package/messages/index.mjs +21 -0
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +19 -0
- package/package.json +3 -3
- package/utils.js +8 -0
- package/utils.mjs +26 -0
- package/Dialog.d.ts +0 -94
- package/DialogActionsBar.d.ts +0 -25
- package/DialogProps.d.ts +0 -77
- package/DialogTitleBar.d.ts +0 -30
- package/MiddleLayerOptimization.d.ts +0 -21
- package/StageEnum.d.ts +0 -9
- package/Window.d.ts +0 -179
- package/WindowActionsBar.d.ts +0 -25
- package/WindowProps.d.ts +0 -151
- package/WindowResizeHandlers.d.ts +0 -20
- package/WindowTitlebar.d.ts +0 -67
- package/constants.d.ts +0 -12
- package/events.d.ts +0 -49
- package/messages/index.d.ts +0 -29
- package/models/actions-layout.d.ts +0 -8
- package/package-metadata.d.ts +0 -9
- package/utils.d.ts +0 -6
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o="dialogs.windowMaximizeButton",i="dialogs.windowMinimizeButton",t="dialogs.windowRestoreButton",n="dialogs.windowCloseButton",s={[o]:"maximize",[i]:"minimize",[t]:"restore",[n]:"close"};exports.dialogsWindowCloseButton=n;exports.dialogsWindowMaximizeButton=o;exports.dialogsWindowMinimizeButton=i;exports.dialogsWindowRestoreButton=t;exports.messages=s;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
const o = "dialogs.windowMaximizeButton", i = "dialogs.windowMinimizeButton", t = "dialogs.windowRestoreButton", n = "dialogs.windowCloseButton", s = {
|
|
10
|
+
[o]: "maximize",
|
|
11
|
+
[i]: "minimize",
|
|
12
|
+
[t]: "restore",
|
|
13
|
+
[n]: "close"
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
n as dialogsWindowCloseButton,
|
|
17
|
+
o as dialogsWindowMaximizeButton,
|
|
18
|
+
i as dialogsWindowMinimizeButton,
|
|
19
|
+
t as dialogsWindowRestoreButton,
|
|
20
|
+
s as messages
|
|
21
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-react-dialogs",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:0,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};exports.packageMetadata=e;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
const e = {
|
|
10
|
+
name: "@progress/kendo-react-dialogs",
|
|
11
|
+
productName: "KendoReact",
|
|
12
|
+
productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
|
|
13
|
+
publishDate: 1709715215,
|
|
14
|
+
version: "",
|
|
15
|
+
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
e as packageMetadata
|
|
19
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-dialogs",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0-develop.1",
|
|
4
4
|
"description": "React Dialogs provide modal and non-modal windows for showing additional information to the user. KendoReact Dialogs package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"sideEffects": false,
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@progress/kendo-licensing": "^1.3.4",
|
|
26
|
-
"@progress/kendo-react-buttons": "7.
|
|
27
|
-
"@progress/kendo-react-common": "7.
|
|
26
|
+
"@progress/kendo-react-buttons": "7.3.0-develop.1",
|
|
27
|
+
"@progress/kendo-react-common": "7.3.0-develop.1",
|
|
28
28
|
"@progress/kendo-svg-icons": "^2.1.0",
|
|
29
29
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0",
|
|
30
30
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
|
package/utils.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./constants.js"),r=(i,t,s)=>{let e=i;if(t&&t.defaultView){let u=t.querySelectorAll(l.DIALOGS_SELECTOR),a=!1;return u.forEach(d=>{let n=t.defaultView.getComputedStyle(d,null);if(d.getAttribute(l.DATA_DIALOGS_ID)!==s&&n.zIndex!==null){let I=parseInt(n.zIndex,10);I>=e&&(e=I,a=!0)}}),a?e+l.ZINDEX_DIALOGS_STEP:e}return e};exports.getMaxZIndex=r;
|
package/utils.mjs
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { DIALOGS_SELECTOR as f, DATA_DIALOGS_ID as S, ZINDEX_DIALOGS_STEP as r } from "./constants.mjs";
|
|
10
|
+
const o = (i, t, n) => {
|
|
11
|
+
let e = i;
|
|
12
|
+
if (t && t.defaultView) {
|
|
13
|
+
let x = t.querySelectorAll(f), l = !1;
|
|
14
|
+
return x.forEach((d) => {
|
|
15
|
+
let a = t.defaultView.getComputedStyle(d, null);
|
|
16
|
+
if (d.getAttribute(S) !== n && a.zIndex !== null) {
|
|
17
|
+
let I = parseInt(a.zIndex, 10);
|
|
18
|
+
I >= e && (e = I, l = !0);
|
|
19
|
+
}
|
|
20
|
+
}), l ? e + r : e;
|
|
21
|
+
}
|
|
22
|
+
return e;
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
o as getMaxZIndex
|
|
26
|
+
};
|
package/Dialog.d.ts
DELETED
|
@@ -1,94 +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 PropTypes from 'prop-types';
|
|
7
|
-
import { ZIndexContext } from '@progress/kendo-react-common';
|
|
8
|
-
import { DialogProps } from './DialogProps';
|
|
9
|
-
interface DialogState {
|
|
10
|
-
zIndex: number;
|
|
11
|
-
}
|
|
12
|
-
/** @hidden */
|
|
13
|
-
declare class DialogWithoutContext extends React.Component<DialogProps, DialogState> {
|
|
14
|
-
static displayName: string;
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
static propTypes: {
|
|
19
|
-
title: PropTypes.Requireable<any>;
|
|
20
|
-
id: PropTypes.Requireable<string>;
|
|
21
|
-
dir: PropTypes.Requireable<string>;
|
|
22
|
-
style: PropTypes.Requireable<object>;
|
|
23
|
-
closeIcon: PropTypes.Requireable<boolean>;
|
|
24
|
-
width: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
25
|
-
height: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
26
|
-
minWidth: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
27
|
-
autoFocus: PropTypes.Requireable<boolean>;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* @hidden
|
|
31
|
-
*/
|
|
32
|
-
static defaultProps: {
|
|
33
|
-
autoFocus: boolean;
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* @hidden
|
|
37
|
-
*/
|
|
38
|
-
static contextType: React.Context<import("@progress/kendo-react-common").ZIndexContextType>;
|
|
39
|
-
/**
|
|
40
|
-
* @hidden
|
|
41
|
-
*/
|
|
42
|
-
context: React.ContextType<typeof ZIndexContext>;
|
|
43
|
-
/**
|
|
44
|
-
* @hidden
|
|
45
|
-
*/
|
|
46
|
-
element?: HTMLDivElement | null;
|
|
47
|
-
private get _id();
|
|
48
|
-
private titleId;
|
|
49
|
-
private contentId;
|
|
50
|
-
private showLicenseWatermark;
|
|
51
|
-
constructor(props: DialogProps);
|
|
52
|
-
/**
|
|
53
|
-
* @hidden
|
|
54
|
-
*/
|
|
55
|
-
componentDidMount(): void;
|
|
56
|
-
/**
|
|
57
|
-
* @hidden
|
|
58
|
-
*/
|
|
59
|
-
onCloseDialog: (event: React.SyntheticEvent<any>) => void;
|
|
60
|
-
/**
|
|
61
|
-
* @hidden
|
|
62
|
-
*/
|
|
63
|
-
onKeyDown: React.KeyboardEventHandler<HTMLDivElement>;
|
|
64
|
-
/**
|
|
65
|
-
* @hidden
|
|
66
|
-
*/
|
|
67
|
-
render(): import("react/jsx-runtime").JSX.Element | null;
|
|
68
|
-
private getActionBar;
|
|
69
|
-
private getContent;
|
|
70
|
-
private generateTitleId;
|
|
71
|
-
private generateContentId;
|
|
72
|
-
private getCurrentZIndex;
|
|
73
|
-
private getDocument;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Represents the PropsContext of the `Dialog` component.
|
|
77
|
-
* Used for global configuration of all `Dialog` instances.
|
|
78
|
-
*/
|
|
79
|
-
export declare const DialogPropsContext: React.Context<(p: DialogProps) => DialogProps>;
|
|
80
|
-
/**
|
|
81
|
-
* Represent the `ref` of the Dialog component.
|
|
82
|
-
*/
|
|
83
|
-
export interface DialogHandle extends Pick<DialogWithoutContext, keyof DialogWithoutContext> {
|
|
84
|
-
}
|
|
85
|
-
/** @hidden */
|
|
86
|
-
export type Dialog = DialogHandle;
|
|
87
|
-
/**
|
|
88
|
-
* Represents the [KendoReact Dialog component]({% slug overview_dialog %}).
|
|
89
|
-
*
|
|
90
|
-
* Accepts properties of type [DialogProps]({% slug api_dialogs_dialogprops %}).
|
|
91
|
-
* Obtaining the `ref` returns an object of type [DialogHandle]({% slug api_dialogs_dialoghandle %}).
|
|
92
|
-
*/
|
|
93
|
-
export declare const Dialog: React.ForwardRefExoticComponent<DialogProps & React.RefAttributes<any>>;
|
|
94
|
-
export {};
|
package/DialogActionsBar.d.ts
DELETED
|
@@ -1,25 +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 { ActionsLayout } from './models/actions-layout';
|
|
7
|
-
/**
|
|
8
|
-
* Represents the props of the [KendoReact DialogActionsBar component]({% slug overview_dialog %}).
|
|
9
|
-
*/
|
|
10
|
-
export interface DialogActionsBarProps {
|
|
11
|
-
/**
|
|
12
|
-
* Specifies the possible layouts of the action buttons ([see example]({% slug actionbuttons_dialog %})). Defaults to `stretched`.
|
|
13
|
-
*/
|
|
14
|
-
layout?: ActionsLayout;
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
children?: any;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Returns the action bar of the Dialog.
|
|
22
|
-
*
|
|
23
|
-
* @returns React.ReactElement
|
|
24
|
-
*/
|
|
25
|
-
export declare const DialogActionsBar: React.FunctionComponent<DialogActionsBarProps>;
|
package/DialogProps.d.ts
DELETED
|
@@ -1,77 +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 { DialogCloseEvent } from './events';
|
|
6
|
-
/**
|
|
7
|
-
* Represents the props of the [KendoReact Dialog component]({% slug overview_dialog %}).
|
|
8
|
-
*/
|
|
9
|
-
export interface DialogProps {
|
|
10
|
-
/**
|
|
11
|
-
* Focus the Dialog container automatically when mounted. By default the autoFocus is false.
|
|
12
|
-
*/
|
|
13
|
-
autoFocus?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Sets the title of the Dialog ([see example]({% slug title_dialog %})). If `title` is not specified, the Dialog does not render a **Close** button.
|
|
16
|
-
*/
|
|
17
|
-
title?: string | React.ReactElement<any>;
|
|
18
|
-
/**
|
|
19
|
-
* Sets a class of the Dialog DOM element.
|
|
20
|
-
*/
|
|
21
|
-
className?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Specifies whether a close button should be rendered at the top corner of the dialog.
|
|
24
|
-
*/
|
|
25
|
-
closeIcon?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Specifies the width of the Dialog ([see example]({% slug dimensions_dialog %})).
|
|
28
|
-
*/
|
|
29
|
-
width?: number | string;
|
|
30
|
-
/**
|
|
31
|
-
* Specifies the height of the Dialog ([see example]({% slug dimensions_dialog %})).
|
|
32
|
-
*/
|
|
33
|
-
height?: number | string;
|
|
34
|
-
/**
|
|
35
|
-
* Specifies the minimum width of the Dialog.
|
|
36
|
-
*/
|
|
37
|
-
minWidth?: number | string;
|
|
38
|
-
/**
|
|
39
|
-
* Fires when the **Close** button in the title is clicked or when the `Esc` button is pressed.
|
|
40
|
-
*/
|
|
41
|
-
onClose?: (event: DialogCloseEvent) => void;
|
|
42
|
-
/**
|
|
43
|
-
* @hidden
|
|
44
|
-
*/
|
|
45
|
-
children?: React.ReactNode;
|
|
46
|
-
/**
|
|
47
|
-
* Sets the `aria-labelledby` value.
|
|
48
|
-
*/
|
|
49
|
-
id?: string;
|
|
50
|
-
/**
|
|
51
|
-
* Represents the `dir` HTML attribute.
|
|
52
|
-
*/
|
|
53
|
-
dir?: string;
|
|
54
|
-
/**
|
|
55
|
-
* The styles that are applied to the Dialog.
|
|
56
|
-
*/
|
|
57
|
-
style?: React.CSSProperties;
|
|
58
|
-
/**
|
|
59
|
-
* The styles that are applied to the content of the Dialog.
|
|
60
|
-
*/
|
|
61
|
-
contentStyle?: React.CSSProperties;
|
|
62
|
-
/**
|
|
63
|
-
* Defines the container to which the Dialog will be appended. Defaults to body.
|
|
64
|
-
* * If set to `null` the Dialog will be rendered without React Portal.
|
|
65
|
-
*/
|
|
66
|
-
appendTo?: any;
|
|
67
|
-
/**
|
|
68
|
-
* Configures the `themeColor` of the Dialog.
|
|
69
|
-
*
|
|
70
|
-
* The available options are:
|
|
71
|
-
* - primary
|
|
72
|
-
* - dark
|
|
73
|
-
* - light
|
|
74
|
-
*
|
|
75
|
-
*/
|
|
76
|
-
themeColor?: 'primary' | 'dark' | 'light';
|
|
77
|
-
}
|
package/DialogTitleBar.d.ts
DELETED
|
@@ -1,30 +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 DialogTitleBarProps {
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
onCloseButtonClick?: (event: React.SyntheticEvent<any>) => void;
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
id?: string;
|
|
18
|
-
/**
|
|
19
|
-
* @hidden
|
|
20
|
-
*/
|
|
21
|
-
children?: any;
|
|
22
|
-
/**
|
|
23
|
-
* @hidden
|
|
24
|
-
*/
|
|
25
|
-
closeIcon?: boolean;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* @hidden
|
|
29
|
-
*/
|
|
30
|
-
export declare const DialogTitleBar: React.FunctionComponent<DialogTitleBarProps>;
|
|
@@ -1,21 +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
|
-
interface MiddleLayerOptimizationProps {
|
|
10
|
-
shouldUpdateOnDrag?: boolean;
|
|
11
|
-
isDragging?: boolean;
|
|
12
|
-
children?: React.ReactNode;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
export declare class MiddleLayerOptimization extends React.Component<MiddleLayerOptimizationProps, {}> {
|
|
18
|
-
shouldComponentUpdate(nextProps: MiddleLayerOptimizationProps): boolean;
|
|
19
|
-
render(): React.ReactNode;
|
|
20
|
-
}
|
|
21
|
-
export {};
|
package/StageEnum.d.ts
DELETED
|
@@ -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
|
-
export declare enum windowStage {
|
|
6
|
-
DEFAULT = "DEFAULT",
|
|
7
|
-
FULLSCREEN = "FULLSCREEN",
|
|
8
|
-
MINIMIZED = "MINIMIZED"
|
|
9
|
-
}
|
package/Window.d.ts
DELETED
|
@@ -1,179 +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 PropTypes from 'prop-types';
|
|
7
|
-
import { WindowProps } from './WindowProps';
|
|
8
|
-
import { ZIndexContext } from '@progress/kendo-react-common';
|
|
9
|
-
import { Draggable } from '@progress/kendo-react-common';
|
|
10
|
-
import { windowStage } from './StageEnum';
|
|
11
|
-
interface WindowState {
|
|
12
|
-
stage: windowStage | string;
|
|
13
|
-
isDragging: boolean;
|
|
14
|
-
top: number;
|
|
15
|
-
left: number;
|
|
16
|
-
width: number;
|
|
17
|
-
height: number;
|
|
18
|
-
focused: boolean;
|
|
19
|
-
zIndex: number;
|
|
20
|
-
}
|
|
21
|
-
/** @hidden */
|
|
22
|
-
declare class WindowWithoutContext extends React.Component<WindowProps, WindowState> {
|
|
23
|
-
static displayName: string;
|
|
24
|
-
/**
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
|
-
static propTypes: {
|
|
28
|
-
width: PropTypes.Requireable<number>;
|
|
29
|
-
height: PropTypes.Requireable<number>;
|
|
30
|
-
left: PropTypes.Requireable<number>;
|
|
31
|
-
top: PropTypes.Requireable<number>;
|
|
32
|
-
initialWidth: PropTypes.Requireable<number>;
|
|
33
|
-
initialHeight: PropTypes.Requireable<number>;
|
|
34
|
-
initialLeft: PropTypes.Requireable<number>;
|
|
35
|
-
initialTop: PropTypes.Requireable<number>;
|
|
36
|
-
minWidth: PropTypes.Requireable<number>;
|
|
37
|
-
minHeight: PropTypes.Requireable<number>;
|
|
38
|
-
resizable: PropTypes.Requireable<boolean>;
|
|
39
|
-
draggable: PropTypes.Requireable<boolean>;
|
|
40
|
-
title: PropTypes.Requireable<any>;
|
|
41
|
-
shouldUpdateOnDrag: PropTypes.Requireable<boolean>;
|
|
42
|
-
stage: PropTypes.Requireable<string>;
|
|
43
|
-
className: PropTypes.Requireable<string>;
|
|
44
|
-
id: PropTypes.Requireable<string>;
|
|
45
|
-
style: PropTypes.Requireable<object>;
|
|
46
|
-
overlayStyle: PropTypes.Requireable<object>;
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* @hidden
|
|
50
|
-
*/
|
|
51
|
-
static defaultProps: {
|
|
52
|
-
minWidth: number;
|
|
53
|
-
minHeight: number;
|
|
54
|
-
resizable: boolean;
|
|
55
|
-
draggable: boolean;
|
|
56
|
-
modal: boolean;
|
|
57
|
-
doubleClickStageChange: boolean;
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* @hidden
|
|
61
|
-
*/
|
|
62
|
-
static contextType: React.Context<import("@progress/kendo-react-common").ZIndexContextType>;
|
|
63
|
-
/**
|
|
64
|
-
* @hidden
|
|
65
|
-
*/
|
|
66
|
-
context: React.ContextType<typeof ZIndexContext>;
|
|
67
|
-
/**
|
|
68
|
-
* **Deprecated.** Use `element` instead.
|
|
69
|
-
*/
|
|
70
|
-
windowElement?: HTMLDivElement | null;
|
|
71
|
-
/**
|
|
72
|
-
* The Window element.
|
|
73
|
-
*/
|
|
74
|
-
element?: HTMLDivElement | null;
|
|
75
|
-
/**
|
|
76
|
-
* @hidden
|
|
77
|
-
*/
|
|
78
|
-
windowTitle?: any;
|
|
79
|
-
draggable: Draggable | null;
|
|
80
|
-
private windowCoordinatesState?;
|
|
81
|
-
private offSetCoordinates?;
|
|
82
|
-
private get _id();
|
|
83
|
-
private titleId;
|
|
84
|
-
private _blurTimeout?;
|
|
85
|
-
private mounted;
|
|
86
|
-
private showLicenseWatermark;
|
|
87
|
-
constructor(props: WindowProps);
|
|
88
|
-
/**
|
|
89
|
-
* @hidden
|
|
90
|
-
*/
|
|
91
|
-
componentDidMount(): void;
|
|
92
|
-
/**
|
|
93
|
-
* @hidden
|
|
94
|
-
*/
|
|
95
|
-
componentWillUnmount(): void;
|
|
96
|
-
/**
|
|
97
|
-
* @hidden
|
|
98
|
-
*/
|
|
99
|
-
componentDidUpdate(): void;
|
|
100
|
-
/**
|
|
101
|
-
* @hidden
|
|
102
|
-
*/
|
|
103
|
-
onKeyDown: React.KeyboardEventHandler<HTMLDivElement>;
|
|
104
|
-
/**
|
|
105
|
-
* @hidden
|
|
106
|
-
*/
|
|
107
|
-
onPress: (data: any) => void;
|
|
108
|
-
/**
|
|
109
|
-
* @hidden
|
|
110
|
-
*/
|
|
111
|
-
onDrag: (data: any) => void;
|
|
112
|
-
/**
|
|
113
|
-
* @hidden
|
|
114
|
-
*/
|
|
115
|
-
onRelease: (data: any) => void;
|
|
116
|
-
/**
|
|
117
|
-
* @hidden
|
|
118
|
-
*/
|
|
119
|
-
onFocus: () => void;
|
|
120
|
-
/**
|
|
121
|
-
* @hidden
|
|
122
|
-
*/
|
|
123
|
-
onBlur: () => void;
|
|
124
|
-
/**
|
|
125
|
-
* @hidden
|
|
126
|
-
*/
|
|
127
|
-
render(): import("react/jsx-runtime").JSX.Element | null;
|
|
128
|
-
private get top();
|
|
129
|
-
private get left();
|
|
130
|
-
private get width();
|
|
131
|
-
private get height();
|
|
132
|
-
private get windowStage();
|
|
133
|
-
private getInitialTop;
|
|
134
|
-
private getInitialLeft;
|
|
135
|
-
private getInitialWidth;
|
|
136
|
-
private getInitialHeight;
|
|
137
|
-
private handleMinimize;
|
|
138
|
-
private handleFullscreen;
|
|
139
|
-
private handleRestore;
|
|
140
|
-
private handleCloseWindow;
|
|
141
|
-
private handleDoubleClick;
|
|
142
|
-
private handleResize;
|
|
143
|
-
private dispatchMoveEvent;
|
|
144
|
-
private handleBrowserWindowResize;
|
|
145
|
-
private getActionBar;
|
|
146
|
-
private getContent;
|
|
147
|
-
private getCurrentZIndex;
|
|
148
|
-
private getDocument;
|
|
149
|
-
private getWindow;
|
|
150
|
-
private generateTitleId;
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* Represents the PropsContext of the `Window` component.
|
|
154
|
-
* Used for global configuration of all `Window` instances.
|
|
155
|
-
*/
|
|
156
|
-
export declare const WindowPropsContext: React.Context<(p: WindowProps) => WindowProps>;
|
|
157
|
-
/**
|
|
158
|
-
* Represent the `ref` of the Window component.
|
|
159
|
-
*/
|
|
160
|
-
export interface WindowHandle extends Pick<WindowWithoutContext, keyof WindowWithoutContext> {
|
|
161
|
-
/**
|
|
162
|
-
* The Window element.
|
|
163
|
-
*/
|
|
164
|
-
element?: HTMLDivElement | null;
|
|
165
|
-
/**
|
|
166
|
-
* **Deprecated.** Use `element` instead.
|
|
167
|
-
*/
|
|
168
|
-
windowElement?: HTMLDivElement | null;
|
|
169
|
-
}
|
|
170
|
-
/** @hidden */
|
|
171
|
-
export type Window = WindowHandle;
|
|
172
|
-
/**
|
|
173
|
-
* Represents the [KendoReact Window component]({% slug overview_window %}).
|
|
174
|
-
*
|
|
175
|
-
* Accepts properties of type [WindowProps]({% slug api_dialogs_windowprops %}).
|
|
176
|
-
* Obtaining the `ref` returns an object of type [WindowHandle]({% slug api_dialogs_windowhandle %}).
|
|
177
|
-
*/
|
|
178
|
-
export declare const Window: React.ForwardRefExoticComponent<WindowProps & React.RefAttributes<any>>;
|
|
179
|
-
export {};
|
package/WindowActionsBar.d.ts
DELETED
|
@@ -1,25 +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 { ActionsLayout } from './models/actions-layout';
|
|
7
|
-
/**
|
|
8
|
-
* Represents the props of the [KendoReact WindowActionsBar component]({% slug overview_dialog %}).
|
|
9
|
-
*/
|
|
10
|
-
export interface WindowActionsBarProps {
|
|
11
|
-
/**
|
|
12
|
-
* Specifies the possible layouts of the action buttons ([see example]({% slug actionbuttons_window %})). Defaults to `end`.
|
|
13
|
-
*/
|
|
14
|
-
layout?: ActionsLayout;
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
children?: any;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Returns the action bar of the Window.
|
|
22
|
-
*
|
|
23
|
-
* @returns React.ReactElement
|
|
24
|
-
*/
|
|
25
|
-
export declare const WindowActionsBar: React.FunctionComponent<WindowActionsBarProps>;
|