@progress/kendo-react-dialogs 5.4.0-dev.202205250548 → 5.4.0-dev.202205271059

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.
@@ -45,7 +45,7 @@ declare class DialogWithoutContext extends React.Component<DialogProps, DialogSt
45
45
  /**
46
46
  * @hidden
47
47
  */
48
- onCloseDialog: (event: React.SyntheticEvent<any, Event>) => void;
48
+ onCloseDialog: (event: React.SyntheticEvent<any>) => void;
49
49
  /**
50
50
  * @hidden
51
51
  */
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 __());
@@ -106,8 +108,8 @@ var DialogWithoutContext = /** @class */ (function (_super) {
106
108
  * @hidden
107
109
  */
108
110
  DialogWithoutContext.prototype.render = function () {
109
- var _this = this;
110
111
  var _a;
112
+ var _this = this;
111
113
  var id = this.props.id !== undefined ? this.props.id : this.titleId;
112
114
  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
115
  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>;
@@ -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 __());
@@ -112,11 +112,11 @@ declare class WindowWithoutContext extends React.Component<WindowProps, WindowSt
112
112
  * @hidden
113
113
  */
114
114
  render(): JSX.Element;
115
- private readonly top;
116
- private readonly left;
117
- private readonly width;
118
- private readonly height;
119
- private readonly windowStage;
115
+ private get top();
116
+ private get left();
117
+ private get width();
118
+ private get height();
119
+ private get windowStage();
120
120
  private getInitialTop;
121
121
  private getInitialLeft;
122
122
  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 __());
@@ -458,8 +460,8 @@ var WindowWithoutContext = /** @class */ (function (_super) {
458
460
  * @hidden
459
461
  */
460
462
  WindowWithoutContext.prototype.render = function () {
461
- var _this = this;
462
463
  var _a;
464
+ var _this = this;
463
465
  var elementsArray = React.Children.toArray(this.props.children);
464
466
  var content = this.getContent(elementsArray);
465
467
  var actions = this.getActionBar(elementsArray);
@@ -499,7 +501,7 @@ var WindowWithoutContext = /** @class */ (function (_super) {
499
501
  }
500
502
  return 0;
501
503
  },
502
- enumerable: true,
504
+ enumerable: false,
503
505
  configurable: true
504
506
  });
505
507
  Object.defineProperty(WindowWithoutContext.prototype, "left", {
@@ -509,7 +511,7 @@ var WindowWithoutContext = /** @class */ (function (_super) {
509
511
  }
510
512
  return 0;
511
513
  },
512
- enumerable: true,
514
+ enumerable: false,
513
515
  configurable: true
514
516
  });
515
517
  Object.defineProperty(WindowWithoutContext.prototype, "width", {
@@ -525,7 +527,7 @@ var WindowWithoutContext = /** @class */ (function (_super) {
525
527
  }
526
528
  return width;
527
529
  },
528
- enumerable: true,
530
+ enumerable: false,
529
531
  configurable: true
530
532
  });
531
533
  Object.defineProperty(WindowWithoutContext.prototype, "height", {
@@ -544,14 +546,14 @@ var WindowWithoutContext = /** @class */ (function (_super) {
544
546
  }
545
547
  return height;
546
548
  },
547
- enumerable: true,
549
+ enumerable: false,
548
550
  configurable: true
549
551
  });
550
552
  Object.defineProperty(WindowWithoutContext.prototype, "windowStage", {
551
553
  get: function () {
552
554
  return this.props.stage || this.state.stage;
553
555
  },
554
- enumerable: true,
556
+ enumerable: false,
555
557
  configurable: true
556
558
  });
557
559
  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: 1653456868,
8
+ publishDate: 1653648291,
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;
@@ -45,7 +45,7 @@ declare class DialogWithoutContext extends React.Component<DialogProps, DialogSt
45
45
  /**
46
46
  * @hidden
47
47
  */
48
- onCloseDialog: (event: React.SyntheticEvent<any, Event>) => void;
48
+ onCloseDialog: (event: React.SyntheticEvent<any>) => void;
49
49
  /**
50
50
  * @hidden
51
51
  */
@@ -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");
@@ -108,8 +111,8 @@ var DialogWithoutContext = /** @class */ (function (_super) {
108
111
  * @hidden
109
112
  */
110
113
  DialogWithoutContext.prototype.render = function () {
111
- var _this = this;
112
114
  var _a;
115
+ var _this = this;
113
116
  var id = this.props.id !== undefined ? this.props.id : this.titleId;
114
117
  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
118
  var elementsArray = React.Children.toArray(children);
@@ -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,7 +9,7 @@ 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
14
  var wrapperClasses = kendo_react_common_1.classNames('k-dialog-buttongroup', 'k-actions', 'k-hstack', {
14
15
  'k-justify-content-start': layout === 'start',
@@ -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;
@@ -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";
@@ -112,11 +112,11 @@ declare class WindowWithoutContext extends React.Component<WindowProps, WindowSt
112
112
  * @hidden
113
113
  */
114
114
  render(): JSX.Element;
115
- private readonly top;
116
- private readonly left;
117
- private readonly width;
118
- private readonly height;
119
- private readonly windowStage;
115
+ private get top();
116
+ private get left();
117
+ private get width();
118
+ private get height();
119
+ private get windowStage();
120
120
  private getInitialTop;
121
121
  private getInitialLeft;
122
122
  private getInitialWidth;
@@ -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.Window = exports.WindowPropsContext = void 0;
27
30
  var React = require("react");
28
31
  var ReactDOM = require("react-dom");
29
32
  var PropTypes = require("prop-types");
@@ -460,8 +463,8 @@ var WindowWithoutContext = /** @class */ (function (_super) {
460
463
  * @hidden
461
464
  */
462
465
  WindowWithoutContext.prototype.render = function () {
463
- var _this = this;
464
466
  var _a;
467
+ var _this = this;
465
468
  var elementsArray = React.Children.toArray(this.props.children);
466
469
  var content = this.getContent(elementsArray);
467
470
  var actions = this.getActionBar(elementsArray);
@@ -501,7 +504,7 @@ var WindowWithoutContext = /** @class */ (function (_super) {
501
504
  }
502
505
  return 0;
503
506
  },
504
- enumerable: true,
507
+ enumerable: false,
505
508
  configurable: true
506
509
  });
507
510
  Object.defineProperty(WindowWithoutContext.prototype, "left", {
@@ -511,7 +514,7 @@ var WindowWithoutContext = /** @class */ (function (_super) {
511
514
  }
512
515
  return 0;
513
516
  },
514
- enumerable: true,
517
+ enumerable: false,
515
518
  configurable: true
516
519
  });
517
520
  Object.defineProperty(WindowWithoutContext.prototype, "width", {
@@ -527,7 +530,7 @@ var WindowWithoutContext = /** @class */ (function (_super) {
527
530
  }
528
531
  return width;
529
532
  },
530
- enumerable: true,
533
+ enumerable: false,
531
534
  configurable: true
532
535
  });
533
536
  Object.defineProperty(WindowWithoutContext.prototype, "height", {
@@ -546,14 +549,14 @@ var WindowWithoutContext = /** @class */ (function (_super) {
546
549
  }
547
550
  return height;
548
551
  },
549
- enumerable: true,
552
+ enumerable: false,
550
553
  configurable: true
551
554
  });
552
555
  Object.defineProperty(WindowWithoutContext.prototype, "windowStage", {
553
556
  get: function () {
554
557
  return this.props.stage || this.state.stage;
555
558
  },
556
- enumerable: true,
559
+ enumerable: false,
557
560
  configurable: true
558
561
  });
559
562
  WindowWithoutContext.prototype.getActionBar = function (children) {
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WindowActionsBar = 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,7 +9,7 @@ var kendo_react_common_1 = require("@progress/kendo-react-common");
8
9
  *
9
10
  * @returns React.ReactElement
10
11
  */
11
- exports.WindowActionsBar = function (props) {
12
+ var WindowActionsBar = function (props) {
12
13
  var _a = props.layout, layout = _a === void 0 ? defaultProps.layout : _a, children = props.children;
13
14
  var wrapperClasses = kendo_react_common_1.classNames('k-window-buttongroup', 'k-actions', 'k-hstack', {
14
15
  'k-justify-content-start': layout === 'start',
@@ -18,6 +19,7 @@ exports.WindowActionsBar = function (props) {
18
19
  });
19
20
  return (React.createElement("div", { className: wrapperClasses }, children));
20
21
  };
22
+ exports.WindowActionsBar = WindowActionsBar;
21
23
  exports.WindowActionsBar.propTypes = {
22
24
  children: PropTypes.any,
23
25
  layout: PropTypes.oneOf(['start', 'center', 'end', 'stretched'])
@@ -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.ResizeHandlers = void 0;
16
19
  var React = require("react");
17
20
  var kendo_react_common_1 = require("@progress/kendo-react-common");
18
21
  /**
@@ -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>>;
@@ -11,6 +11,7 @@ var __assign = (this && this.__assign) || function () {
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.WindowTitleBar = void 0;
14
15
  var React = require("react");
15
16
  var StageEnum_1 = require("./StageEnum");
16
17
  var kendo_react_buttons_1 = require("@progress/kendo-react-buttons");
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DIALOGS_SELECTOR = exports.ZINDEX_DIALOGS_STEP = exports.DEFAULT_DIALOGS_ZINDEX = exports.DATA_DIALOGS_ID = void 0;
3
4
  /** @hidden */
4
5
  exports.DATA_DIALOGS_ID = 'data-windowid';
5
6
  /** @hidden */
package/dist/npm/main.js CHANGED
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WindowPropsContext = exports.WindowActionsBar = exports.Window = exports.DialogPropsContext = exports.DialogActionsBar = exports.Dialog = void 0;
3
4
  var Dialog_1 = require("./Dialog");
4
- exports.Dialog = Dialog_1.Dialog;
5
- exports.DialogPropsContext = Dialog_1.DialogPropsContext;
5
+ Object.defineProperty(exports, "Dialog", { enumerable: true, get: function () { return Dialog_1.Dialog; } });
6
+ Object.defineProperty(exports, "DialogPropsContext", { enumerable: true, get: function () { return Dialog_1.DialogPropsContext; } });
6
7
  var DialogActionsBar_1 = require("./DialogActionsBar");
7
- exports.DialogActionsBar = DialogActionsBar_1.DialogActionsBar;
8
+ Object.defineProperty(exports, "DialogActionsBar", { enumerable: true, get: function () { return DialogActionsBar_1.DialogActionsBar; } });
8
9
  var Window_1 = require("./Window");
9
- exports.Window = Window_1.Window;
10
- exports.WindowPropsContext = Window_1.WindowPropsContext;
10
+ Object.defineProperty(exports, "Window", { enumerable: true, get: function () { return Window_1.Window; } });
11
+ Object.defineProperty(exports, "WindowPropsContext", { enumerable: true, get: function () { return Window_1.WindowPropsContext; } });
11
12
  var WindowActionsBar_1 = require("./WindowActionsBar");
12
- exports.WindowActionsBar = WindowActionsBar_1.WindowActionsBar;
13
+ Object.defineProperty(exports, "WindowActionsBar", { enumerable: true, get: function () { return WindowActionsBar_1.WindowActionsBar; } });
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.packageMetadata = void 0;
3
4
  /**
4
5
  * @hidden
5
6
  */
@@ -7,7 +8,7 @@ exports.packageMetadata = {
7
8
  name: '@progress/kendo-react-dialogs',
8
9
  productName: 'KendoReact',
9
10
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
10
- publishDate: 1653456868,
11
+ publishDate: 1653648291,
11
12
  version: '',
12
13
  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'
13
14
  };
@@ -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;
package/dist/npm/utils.js CHANGED
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getMaxZIndex = void 0;
3
4
  var constants_1 = require("./constants");
4
5
  /** @hidden */
5
- exports.getMaxZIndex = function (currentZIndex, currentDocument, currentWindowId) {
6
+ var getMaxZIndex = function (currentZIndex, currentDocument, currentWindowId) {
6
7
  var maxZindex = currentZIndex;
7
8
  if (currentDocument && currentDocument.defaultView) {
8
9
  var allWindows = currentDocument.querySelectorAll(constants_1.DIALOGS_SELECTOR);
@@ -22,3 +23,4 @@ exports.getMaxZIndex = function (currentZIndex, currentDocument, currentWindowId
22
23
  }
23
24
  return maxZindex;
24
25
  };
26
+ exports.getMaxZIndex = getMaxZIndex;