@progress/kendo-react-dialogs 5.4.0-dev.202205200719 → 5.4.0-dev.202206061009

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 (37) hide show
  1. package/dist/cdn/js/kendo-react-dialogs.js +1 -1
  2. package/dist/es/Dialog.d.ts +8 -3
  3. package/dist/es/Dialog.js +9 -3
  4. package/dist/es/DialogProps.js +1 -0
  5. package/dist/es/DialogTitleBar.d.ts +1 -1
  6. package/dist/es/MiddleLayerOptimization.d.ts +1 -0
  7. package/dist/es/MiddleLayerOptimization.js +3 -1
  8. package/dist/es/Window.d.ts +12 -7
  9. package/dist/es/Window.js +15 -8
  10. package/dist/es/WindowProps.js +1 -0
  11. package/dist/es/WindowResizeHandlers.js +3 -1
  12. package/dist/es/WindowTitlebar.d.ts +1 -1
  13. package/dist/es/events.js +1 -0
  14. package/dist/es/models/actions-layout.js +1 -0
  15. package/dist/es/package-metadata.js +1 -1
  16. package/dist/es/utils.d.ts +1 -1
  17. package/dist/npm/Dialog.d.ts +8 -3
  18. package/dist/npm/Dialog.js +16 -9
  19. package/dist/npm/DialogActionsBar.js +4 -2
  20. package/dist/npm/DialogTitleBar.d.ts +1 -1
  21. package/dist/npm/DialogTitleBar.js +3 -1
  22. package/dist/npm/MiddleLayerOptimization.d.ts +1 -0
  23. package/dist/npm/MiddleLayerOptimization.js +4 -1
  24. package/dist/npm/StageEnum.js +1 -0
  25. package/dist/npm/Window.d.ts +12 -7
  26. package/dist/npm/Window.js +31 -23
  27. package/dist/npm/WindowActionsBar.js +4 -2
  28. package/dist/npm/WindowResizeHandlers.js +4 -1
  29. package/dist/npm/WindowTitlebar.d.ts +1 -1
  30. package/dist/npm/WindowTitlebar.js +1 -0
  31. package/dist/npm/constants.js +1 -0
  32. package/dist/npm/main.js +7 -6
  33. package/dist/npm/package-metadata.js +2 -1
  34. package/dist/npm/utils.d.ts +1 -1
  35. package/dist/npm/utils.js +3 -1
  36. package/dist/systemjs/kendo-react-dialogs.js +1 -1
  37. package/package.json +7 -7
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import * as PropTypes from 'prop-types';
3
+ import { ZIndexContext } from '@progress/kendo-react-common';
3
4
  import { DialogProps } from './DialogProps';
4
5
  interface DialogState {
5
6
  zIndex: number;
@@ -30,7 +31,11 @@ declare class DialogWithoutContext extends React.Component<DialogProps, DialogSt
30
31
  /**
31
32
  * @hidden
32
33
  */
33
- static contextType: React.Context<number>;
34
+ static contextType: React.Context<import("@progress/kendo-react-common").ZIndexContextType>;
35
+ /**
36
+ * @hidden
37
+ */
38
+ context: React.ContextType<typeof ZIndexContext>;
34
39
  /**
35
40
  * @hidden
36
41
  */
@@ -45,7 +50,7 @@ declare class DialogWithoutContext extends React.Component<DialogProps, DialogSt
45
50
  /**
46
51
  * @hidden
47
52
  */
48
- onCloseDialog: (event: React.SyntheticEvent<any, Event>) => void;
53
+ onCloseDialog: (event: React.SyntheticEvent<any>) => void;
49
54
  /**
50
55
  * @hidden
51
56
  */
@@ -53,7 +58,7 @@ declare class DialogWithoutContext extends React.Component<DialogProps, DialogSt
53
58
  /**
54
59
  * @hidden
55
60
  */
56
- render(): JSX.Element;
61
+ render(): JSX.Element | null;
57
62
  private getActionBar;
58
63
  private getContent;
59
64
  private generateTitleId;
package/dist/es/Dialog.js CHANGED
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -38,6 +40,10 @@ var DialogWithoutContext = /** @class */ (function (_super) {
38
40
  __extends(DialogWithoutContext, _super);
39
41
  function DialogWithoutContext(props) {
40
42
  var _this = _super.call(this, props) || this;
43
+ /**
44
+ * @hidden
45
+ */
46
+ _this.context = 0;
41
47
  _this._id = guid();
42
48
  _this.titleId = _this.generateTitleId();
43
49
  /**
@@ -78,7 +84,7 @@ var DialogWithoutContext = /** @class */ (function (_super) {
78
84
  }
79
85
  };
80
86
  _this.getCurrentZIndex = function () {
81
- if (!_this.state) {
87
+ if (!_this.state || _this.context === undefined) {
82
88
  return _this.context ? _this.context : DEFAULT_DIALOGS_ZINDEX;
83
89
  }
84
90
  return _this.state.zIndex > (_this.context ? _this.context + ZINDEX_DIALOGS_STEP : 0) ? _this.state.zIndex : _this.context + ZINDEX_DIALOGS_STEP;
@@ -106,8 +112,8 @@ var DialogWithoutContext = /** @class */ (function (_super) {
106
112
  * @hidden
107
113
  */
108
114
  DialogWithoutContext.prototype.render = function () {
109
- var _this = this;
110
115
  var _a;
116
+ var _this = this;
111
117
  var id = this.props.id !== undefined ? this.props.id : this.titleId;
112
118
  var _b = this.props, title = _b.title, width = _b.width, height = _b.height, children = _b.children, minWidth = _b.minWidth, dir = _b.dir, style = _b.style, contentStyle = _b.contentStyle;
113
119
  var elementsArray = React.Children.toArray(children);
@@ -1,2 +1,3 @@
1
1
  /* eslint-disable max-len */
2
+ export {};
2
3
  // tslint:enable:max-line-length
@@ -23,4 +23,4 @@ export interface DialogTitleBarProps {
23
23
  /**
24
24
  * @hidden
25
25
  */
26
- export declare const DialogTitleBar: React.SFC<DialogTitleBarProps>;
26
+ export declare const DialogTitleBar: React.FunctionComponent<DialogTitleBarProps>;
@@ -5,6 +5,7 @@ import * as React from 'react';
5
5
  interface MiddleLayerOptimizationProps {
6
6
  shouldUpdateOnDrag?: boolean;
7
7
  isDragging?: boolean;
8
+ children?: React.ReactNode;
8
9
  }
9
10
  /**
10
11
  * @hidden
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import * as PropTypes from 'prop-types';
3
3
  import { WindowProps } from './WindowProps';
4
+ import { ZIndexContext } from '@progress/kendo-react-common';
4
5
  import { Draggable } from '@progress/kendo-react-common';
5
6
  import { windowStage } from './StageEnum';
6
7
  interface WindowState {
@@ -53,7 +54,11 @@ declare class WindowWithoutContext extends React.Component<WindowProps, WindowSt
53
54
  /**
54
55
  * @hidden
55
56
  */
56
- static contextType: React.Context<number>;
57
+ static contextType: React.Context<import("@progress/kendo-react-common").ZIndexContextType>;
58
+ /**
59
+ * @hidden
60
+ */
61
+ context: React.ContextType<typeof ZIndexContext>;
57
62
  /**
58
63
  * **Deprecated.** Use `element` instead.
59
64
  */
@@ -111,12 +116,12 @@ declare class WindowWithoutContext extends React.Component<WindowProps, WindowSt
111
116
  /**
112
117
  * @hidden
113
118
  */
114
- render(): JSX.Element;
115
- private readonly top;
116
- private readonly left;
117
- private readonly width;
118
- private readonly height;
119
- private readonly windowStage;
119
+ render(): JSX.Element | null;
120
+ private get top();
121
+ private get left();
122
+ private get width();
123
+ private get height();
124
+ private get windowStage();
120
125
  private getInitialTop;
121
126
  private getInitialLeft;
122
127
  private getInitialWidth;
package/dist/es/Window.js CHANGED
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -46,6 +48,11 @@ var WindowWithoutContext = /** @class */ (function (_super) {
46
48
  __extends(WindowWithoutContext, _super);
47
49
  function WindowWithoutContext(props) {
48
50
  var _this = _super.call(this, props) || this;
51
+ /**
52
+ * @hidden
53
+ */
54
+ _this.context = 0;
55
+ _this.draggable = null;
49
56
  _this.offSetCoordinates = { x: 0, y: 0 };
50
57
  _this._id = guid();
51
58
  /**
@@ -386,7 +393,7 @@ var WindowWithoutContext = /** @class */ (function (_super) {
386
393
  }
387
394
  };
388
395
  _this.getCurrentZIndex = function () {
389
- if (!_this.state) {
396
+ if (!_this.state || _this.context === undefined) {
390
397
  return _this.context ? _this.context : DEFAULT_DIALOGS_ZINDEX;
391
398
  }
392
399
  return _this.state.zIndex > (_this.context ? _this.context + ZINDEX_DIALOGS_STEP : 0) ? _this.state.zIndex : _this.context + ZINDEX_DIALOGS_STEP;
@@ -458,8 +465,8 @@ var WindowWithoutContext = /** @class */ (function (_super) {
458
465
  * @hidden
459
466
  */
460
467
  WindowWithoutContext.prototype.render = function () {
461
- var _this = this;
462
468
  var _a;
469
+ var _this = this;
463
470
  var elementsArray = React.Children.toArray(this.props.children);
464
471
  var content = this.getContent(elementsArray);
465
472
  var actions = this.getActionBar(elementsArray);
@@ -499,7 +506,7 @@ var WindowWithoutContext = /** @class */ (function (_super) {
499
506
  }
500
507
  return 0;
501
508
  },
502
- enumerable: true,
509
+ enumerable: false,
503
510
  configurable: true
504
511
  });
505
512
  Object.defineProperty(WindowWithoutContext.prototype, "left", {
@@ -509,7 +516,7 @@ var WindowWithoutContext = /** @class */ (function (_super) {
509
516
  }
510
517
  return 0;
511
518
  },
512
- enumerable: true,
519
+ enumerable: false,
513
520
  configurable: true
514
521
  });
515
522
  Object.defineProperty(WindowWithoutContext.prototype, "width", {
@@ -525,7 +532,7 @@ var WindowWithoutContext = /** @class */ (function (_super) {
525
532
  }
526
533
  return width;
527
534
  },
528
- enumerable: true,
535
+ enumerable: false,
529
536
  configurable: true
530
537
  });
531
538
  Object.defineProperty(WindowWithoutContext.prototype, "height", {
@@ -544,14 +551,14 @@ var WindowWithoutContext = /** @class */ (function (_super) {
544
551
  }
545
552
  return height;
546
553
  },
547
- enumerable: true,
554
+ enumerable: false,
548
555
  configurable: true
549
556
  });
550
557
  Object.defineProperty(WindowWithoutContext.prototype, "windowStage", {
551
558
  get: function () {
552
559
  return this.props.stage || this.state.stage;
553
560
  },
554
- enumerable: true,
561
+ enumerable: false,
555
562
  configurable: true
556
563
  });
557
564
  WindowWithoutContext.prototype.getActionBar = function (children) {
@@ -1 +1,2 @@
1
+ export {};
1
2
  // tslint:enable:max-line-length
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -60,4 +60,4 @@ export interface WindowTitleBarProps {
60
60
  /**
61
61
  * @hidden
62
62
  */
63
- export declare const WindowTitleBar: React.ForwardRefExoticComponent<WindowTitleBarProps & React.RefAttributes<{}>>;
63
+ export declare const WindowTitleBar: React.ForwardRefExoticComponent<WindowTitleBarProps & React.RefAttributes<unknown>>;
package/dist/es/events.js CHANGED
@@ -1 +1,2 @@
1
+ export {};
1
2
  // tslint:enable:max-line-length
@@ -0,0 +1 @@
1
+ export {};
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-react-dialogs',
6
6
  productName: 'KendoReact',
7
7
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
8
- publishDate: 1653030154,
8
+ publishDate: 1654509215,
9
9
  version: '',
10
10
  licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
11
11
  };
@@ -1,2 +1,2 @@
1
1
  /** @hidden */
2
- export declare const getMaxZIndex: (currentZIndex: number, currentDocument: Document, currentWindowId: string) => number;
2
+ export declare const getMaxZIndex: (currentZIndex: number, currentDocument: Document | null, currentWindowId: string) => number;
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import * as PropTypes from 'prop-types';
3
+ import { ZIndexContext } from '@progress/kendo-react-common';
3
4
  import { DialogProps } from './DialogProps';
4
5
  interface DialogState {
5
6
  zIndex: number;
@@ -30,7 +31,11 @@ declare class DialogWithoutContext extends React.Component<DialogProps, DialogSt
30
31
  /**
31
32
  * @hidden
32
33
  */
33
- static contextType: React.Context<number>;
34
+ static contextType: React.Context<import("@progress/kendo-react-common").ZIndexContextType>;
35
+ /**
36
+ * @hidden
37
+ */
38
+ context: React.ContextType<typeof ZIndexContext>;
34
39
  /**
35
40
  * @hidden
36
41
  */
@@ -45,7 +50,7 @@ declare class DialogWithoutContext extends React.Component<DialogProps, DialogSt
45
50
  /**
46
51
  * @hidden
47
52
  */
48
- onCloseDialog: (event: React.SyntheticEvent<any, Event>) => void;
53
+ onCloseDialog: (event: React.SyntheticEvent<any>) => void;
49
54
  /**
50
55
  * @hidden
51
56
  */
@@ -53,7 +58,7 @@ declare class DialogWithoutContext extends React.Component<DialogProps, DialogSt
53
58
  /**
54
59
  * @hidden
55
60
  */
56
- render(): JSX.Element;
61
+ render(): JSX.Element | null;
57
62
  private getActionBar;
58
63
  private getContent;
59
64
  private generateTitleId;
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -24,6 +26,7 @@ var __assign = (this && this.__assign) || function () {
24
26
  return __assign.apply(this, arguments);
25
27
  };
26
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Dialog = exports.DialogPropsContext = void 0;
27
30
  var React = require("react");
28
31
  var ReactDOM = require("react-dom");
29
32
  var PropTypes = require("prop-types");
@@ -40,14 +43,18 @@ var DialogWithoutContext = /** @class */ (function (_super) {
40
43
  __extends(DialogWithoutContext, _super);
41
44
  function DialogWithoutContext(props) {
42
45
  var _this = _super.call(this, props) || this;
43
- _this._id = kendo_react_common_1.guid();
46
+ /**
47
+ * @hidden
48
+ */
49
+ _this.context = 0;
50
+ _this._id = (0, kendo_react_common_1.guid)();
44
51
  _this.titleId = _this.generateTitleId();
45
52
  /**
46
53
  * @hidden
47
54
  */
48
55
  _this.onCloseDialog = function (event) {
49
56
  event.preventDefault();
50
- kendo_react_common_1.dispatchEvent(_this.props.onClose, event, _this, undefined);
57
+ (0, kendo_react_common_1.dispatchEvent)(_this.props.onClose, event, _this, undefined);
51
58
  };
52
59
  /**
53
60
  * @hidden
@@ -80,7 +87,7 @@ var DialogWithoutContext = /** @class */ (function (_super) {
80
87
  }
81
88
  };
82
89
  _this.getCurrentZIndex = function () {
83
- if (!_this.state) {
90
+ if (!_this.state || _this.context === undefined) {
84
91
  return _this.context ? _this.context : constants_1.DEFAULT_DIALOGS_ZINDEX;
85
92
  }
86
93
  return _this.state.zIndex > (_this.context ? _this.context + constants_1.ZINDEX_DIALOGS_STEP : 0) ? _this.state.zIndex : _this.context + constants_1.ZINDEX_DIALOGS_STEP;
@@ -88,9 +95,9 @@ var DialogWithoutContext = /** @class */ (function (_super) {
88
95
  _this.getDocument = function () {
89
96
  return _this.props.appendTo ? _this.props.appendTo.ownerDocument : document;
90
97
  };
91
- kendo_react_common_2.validatePackage(package_metadata_1.packageMetadata);
98
+ (0, kendo_react_common_2.validatePackage)(package_metadata_1.packageMetadata);
92
99
  _this.state = {
93
- zIndex: utils_1.getMaxZIndex(_this.getCurrentZIndex(), _this.getDocument(), _this._id)
100
+ zIndex: (0, utils_1.getMaxZIndex)(_this.getCurrentZIndex(), _this.getDocument(), _this._id)
94
101
  };
95
102
  return _this;
96
103
  }
@@ -108,8 +115,8 @@ var DialogWithoutContext = /** @class */ (function (_super) {
108
115
  * @hidden
109
116
  */
110
117
  DialogWithoutContext.prototype.render = function () {
111
- var _this = this;
112
118
  var _a;
119
+ var _this = this;
113
120
  var id = this.props.id !== undefined ? this.props.id : this.titleId;
114
121
  var _b = this.props, title = _b.title, width = _b.width, height = _b.height, children = _b.children, minWidth = _b.minWidth, dir = _b.dir, style = _b.style, contentStyle = _b.contentStyle;
115
122
  var elementsArray = React.Children.toArray(children);
@@ -177,7 +184,7 @@ var DialogWithoutContext = /** @class */ (function (_super) {
177
184
  * Represents the PropsContext of the `Dialog` component.
178
185
  * Used for global configuration of all `Dialog` instances.
179
186
  */
180
- exports.DialogPropsContext = kendo_react_common_1.createPropsContext();
187
+ exports.DialogPropsContext = (0, kendo_react_common_1.createPropsContext)();
181
188
  /* eslint-disable @typescript-eslint/no-redeclare -- intentionally naming the component the same as the type */
182
189
  /**
183
190
  * Represents the [KendoReact Dialog component]({% slug overview_dialog %}).
@@ -185,5 +192,5 @@ exports.DialogPropsContext = kendo_react_common_1.createPropsContext();
185
192
  * Accepts properties of type [DialogProps]({% slug api_dialogs_dialogprops %}).
186
193
  * Obtaining the `ref` returns an object of type [DialogHandle]({% slug api_dialogs_dialoghandle %}).
187
194
  */
188
- exports.Dialog = kendo_react_common_1.withPropsContext(exports.DialogPropsContext, DialogWithoutContext);
195
+ exports.Dialog = (0, kendo_react_common_1.withPropsContext)(exports.DialogPropsContext, DialogWithoutContext);
189
196
  exports.Dialog.displayName = 'KendoReactDialog';
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DialogActionsBar = void 0;
3
4
  var React = require("react");
4
5
  var PropTypes = require("prop-types");
5
6
  var kendo_react_common_1 = require("@progress/kendo-react-common");
@@ -8,9 +9,9 @@ var kendo_react_common_1 = require("@progress/kendo-react-common");
8
9
  *
9
10
  * @returns React.ReactElement
10
11
  */
11
- exports.DialogActionsBar = function (props) {
12
+ var DialogActionsBar = function (props) {
12
13
  var _a = props.layout, layout = _a === void 0 ? defaultProps.layout : _a, children = props.children;
13
- var wrapperClasses = kendo_react_common_1.classNames('k-dialog-buttongroup', 'k-actions', 'k-hstack', {
14
+ var wrapperClasses = (0, kendo_react_common_1.classNames)('k-dialog-buttongroup', 'k-actions', 'k-hstack', {
14
15
  'k-justify-content-start': layout === 'start',
15
16
  'k-justify-content-center': layout === 'center',
16
17
  'k-justify-content-end': layout === 'end',
@@ -18,6 +19,7 @@ exports.DialogActionsBar = function (props) {
18
19
  });
19
20
  return (React.createElement("div", { className: wrapperClasses }, children));
20
21
  };
22
+ exports.DialogActionsBar = DialogActionsBar;
21
23
  exports.DialogActionsBar.propTypes = {
22
24
  children: PropTypes.any,
23
25
  layout: PropTypes.oneOf(['start', 'center', 'end', 'stretched'])
@@ -23,4 +23,4 @@ export interface DialogTitleBarProps {
23
23
  /**
24
24
  * @hidden
25
25
  */
26
- export declare const DialogTitleBar: React.SFC<DialogTitleBarProps>;
26
+ export declare const DialogTitleBar: React.FunctionComponent<DialogTitleBarProps>;
@@ -1,14 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DialogTitleBar = void 0;
3
4
  var React = require("react");
4
5
  var kendo_react_buttons_1 = require("@progress/kendo-react-buttons");
5
6
  /**
6
7
  * @hidden
7
8
  */
8
- exports.DialogTitleBar = function (_a) {
9
+ var DialogTitleBar = function (_a) {
9
10
  var children = _a.children, onCloseButtonClick = _a.onCloseButtonClick, id = _a.id, closeIcon = _a.closeIcon;
10
11
  return (React.createElement("div", { className: "k-window-titlebar k-dialog-titlebar k-header", id: id },
11
12
  React.createElement("div", { className: "k-window-title k-dialog-title" }, children),
12
13
  React.createElement("div", { className: "k-window-actions k-dialog-actions" }, closeIcon &&
13
14
  React.createElement(kendo_react_buttons_1.Button, { role: "button", "aria-label": "Close", onClick: onCloseButtonClick, icon: "x", fillMode: "flat", className: "k-window-action k-dialog-action k-dialog-close" }))));
14
15
  };
16
+ exports.DialogTitleBar = DialogTitleBar;
@@ -5,6 +5,7 @@ import * as React from 'react';
5
5
  interface MiddleLayerOptimizationProps {
6
6
  shouldUpdateOnDrag?: boolean;
7
7
  isDragging?: boolean;
8
+ children?: React.ReactNode;
8
9
  }
9
10
  /**
10
11
  * @hidden
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
15
  };
14
16
  })();
15
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.MiddleLayerOptimization = void 0;
16
19
  var React = require("react");
17
20
  /**
18
21
  * @hidden
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.windowStage = void 0;
3
4
  var windowStage;
4
5
  (function (windowStage) {
5
6
  windowStage["DEFAULT"] = "DEFAULT";
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import * as PropTypes from 'prop-types';
3
3
  import { WindowProps } from './WindowProps';
4
+ import { ZIndexContext } from '@progress/kendo-react-common';
4
5
  import { Draggable } from '@progress/kendo-react-common';
5
6
  import { windowStage } from './StageEnum';
6
7
  interface WindowState {
@@ -53,7 +54,11 @@ declare class WindowWithoutContext extends React.Component<WindowProps, WindowSt
53
54
  /**
54
55
  * @hidden
55
56
  */
56
- static contextType: React.Context<number>;
57
+ static contextType: React.Context<import("@progress/kendo-react-common").ZIndexContextType>;
58
+ /**
59
+ * @hidden
60
+ */
61
+ context: React.ContextType<typeof ZIndexContext>;
57
62
  /**
58
63
  * **Deprecated.** Use `element` instead.
59
64
  */
@@ -111,12 +116,12 @@ declare class WindowWithoutContext extends React.Component<WindowProps, WindowSt
111
116
  /**
112
117
  * @hidden
113
118
  */
114
- render(): JSX.Element;
115
- private readonly top;
116
- private readonly left;
117
- private readonly width;
118
- private readonly height;
119
- private readonly windowStage;
119
+ render(): JSX.Element | null;
120
+ private get top();
121
+ private get left();
122
+ private get width();
123
+ private get height();
124
+ private get windowStage();
120
125
  private getInitialTop;
121
126
  private getInitialLeft;
122
127
  private getInitialWidth;