@progress/kendo-react-dialogs 6.1.1-dev.202311151536 → 7.0.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 (88) hide show
  1. package/{dist/es/Dialog.d.ts → Dialog.d.ts} +6 -2
  2. package/{dist/npm/DialogActionsBar.d.ts → DialogActionsBar.d.ts} +4 -0
  3. package/{dist/es/DialogProps.d.ts → DialogProps.d.ts} +4 -1
  4. package/{dist/es/DialogTitleBar.d.ts → DialogTitleBar.d.ts} +4 -0
  5. package/LICENSE.md +1 -1
  6. package/{dist/es/MiddleLayerOptimization.d.ts → MiddleLayerOptimization.d.ts} +4 -0
  7. package/StageEnum.d.ts +9 -0
  8. package/{dist/es/Window.d.ts → Window.d.ts} +6 -2
  9. package/{dist/npm/WindowActionsBar.d.ts → WindowActionsBar.d.ts} +4 -0
  10. package/{dist/npm/WindowProps.d.ts → WindowProps.d.ts} +4 -1
  11. package/WindowResizeHandlers.d.ts +20 -0
  12. package/{dist/npm/WindowTitlebar.d.ts → WindowTitlebar.d.ts} +4 -0
  13. package/constants.d.ts +12 -0
  14. package/dist/cdn/js/kendo-react-dialogs.js +5 -1
  15. package/{dist/npm/events.d.ts → events.d.ts} +4 -0
  16. package/index.d.ts +13 -0
  17. package/index.js +5 -0
  18. package/index.mjs +677 -0
  19. package/{dist/npm/messages → messages}/index.d.ts +4 -0
  20. package/models/actions-layout.d.ts +8 -0
  21. package/package-metadata.d.ts +9 -0
  22. package/package.json +28 -36
  23. package/utils.d.ts +6 -0
  24. package/about.md +0 -3
  25. package/dist/es/Dialog.js +0 -203
  26. package/dist/es/DialogActionsBar.d.ts +0 -21
  27. package/dist/es/DialogActionsBar.js +0 -32
  28. package/dist/es/DialogProps.js +0 -3
  29. package/dist/es/DialogTitleBar.js +0 -13
  30. package/dist/es/MiddleLayerOptimization.js +0 -33
  31. package/dist/es/StageEnum.d.ts +0 -5
  32. package/dist/es/StageEnum.js +0 -6
  33. package/dist/es/Window.js +0 -643
  34. package/dist/es/WindowActionsBar.d.ts +0 -21
  35. package/dist/es/WindowActionsBar.js +0 -34
  36. package/dist/es/WindowProps.d.ts +0 -144
  37. package/dist/es/WindowProps.js +0 -2
  38. package/dist/es/WindowResizeHandlers.d.ts +0 -16
  39. package/dist/es/WindowResizeHandlers.js +0 -49
  40. package/dist/es/WindowTitlebar.d.ts +0 -63
  41. package/dist/es/WindowTitlebar.js +0 -47
  42. package/dist/es/constants.d.ts +0 -8
  43. package/dist/es/constants.js +0 -8
  44. package/dist/es/events.d.ts +0 -45
  45. package/dist/es/events.js +0 -2
  46. package/dist/es/main.d.ts +0 -9
  47. package/dist/es/main.js +0 -5
  48. package/dist/es/messages/index.d.ts +0 -25
  49. package/dist/es/messages/index.js +0 -26
  50. package/dist/es/models/actions-layout.d.ts +0 -4
  51. package/dist/es/models/actions-layout.js +0 -1
  52. package/dist/es/package-metadata.d.ts +0 -5
  53. package/dist/es/package-metadata.js +0 -11
  54. package/dist/es/utils.d.ts +0 -2
  55. package/dist/es/utils.js +0 -22
  56. package/dist/npm/Dialog.d.ts +0 -90
  57. package/dist/npm/Dialog.js +0 -206
  58. package/dist/npm/DialogActionsBar.js +0 -36
  59. package/dist/npm/DialogProps.d.ts +0 -74
  60. package/dist/npm/DialogProps.js +0 -4
  61. package/dist/npm/DialogTitleBar.d.ts +0 -26
  62. package/dist/npm/DialogTitleBar.js +0 -17
  63. package/dist/npm/MiddleLayerOptimization.d.ts +0 -17
  64. package/dist/npm/MiddleLayerOptimization.js +0 -36
  65. package/dist/npm/StageEnum.d.ts +0 -5
  66. package/dist/npm/StageEnum.js +0 -9
  67. package/dist/npm/Window.d.ts +0 -174
  68. package/dist/npm/Window.js +0 -646
  69. package/dist/npm/WindowActionsBar.js +0 -38
  70. package/dist/npm/WindowProps.js +0 -3
  71. package/dist/npm/WindowResizeHandlers.d.ts +0 -16
  72. package/dist/npm/WindowResizeHandlers.js +0 -52
  73. package/dist/npm/WindowTitlebar.js +0 -50
  74. package/dist/npm/constants.d.ts +0 -8
  75. package/dist/npm/constants.js +0 -11
  76. package/dist/npm/events.js +0 -3
  77. package/dist/npm/main.d.ts +0 -9
  78. package/dist/npm/main.js +0 -13
  79. package/dist/npm/messages/index.js +0 -29
  80. package/dist/npm/models/actions-layout.d.ts +0 -4
  81. package/dist/npm/models/actions-layout.js +0 -2
  82. package/dist/npm/package-metadata.d.ts +0 -5
  83. package/dist/npm/package-metadata.js +0 -14
  84. package/dist/npm/utils.d.ts +0 -2
  85. package/dist/npm/utils.js +0 -26
  86. package/dist/systemjs/kendo-react-dialogs.js +0 -1
  87. package/e2e-next/dialog.basic.tests.ts +0 -24
  88. package/e2e-next/window.basic.tests.ts +0 -24
@@ -0,0 +1,9 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 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/package.json CHANGED
@@ -1,20 +1,30 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-dialogs",
3
- "version": "6.1.1-dev.202311151536",
3
+ "version": "7.0.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
- "repository": {
6
- "type": "git",
7
- "url": "https://github.com/telerik/kendo-react.git"
5
+ "author": "Progress",
6
+ "license": "SEE LICENSE IN LICENSE.md",
7
+ "homepage": "https://www.telerik.com/kendo-react-ui",
8
+ "main": "./index.js",
9
+ "types": "./index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "import": "./index.mjs",
13
+ "require": "./index.js"
14
+ }
8
15
  },
9
- "main": "dist/npm/main.js",
10
- "types": "dist/npm/main.d.ts",
11
- "module": "dist/es/main.js",
12
- "jsnext:main": "dist/es/main.js",
13
- "scripts": {
14
- "test": "cd ../../ && npm run test -- --testPathPattern=/packages/dialogs/.*",
15
- "build-package": "gulp build-package"
16
+ "sideEffects": false,
17
+ "peerDependencies": {
18
+ "@progress/kendo-licensing": "^1.3.0",
19
+ "@progress/kendo-react-buttons": "7.0.0-develop.1",
20
+ "@progress/kendo-react-common": "7.0.0-develop.1",
21
+ "@progress/kendo-svg-icons": "^2.0.0",
22
+ "react": "^16.8.2 || ^17.0.0 || ^18.0.0",
23
+ "react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
24
+ },
25
+ "dependencies": {
26
+ "prop-types": "^15.6.0"
16
27
  },
17
- "homepage": "https://www.telerik.com/kendo-react-ui",
18
28
  "keywords": [
19
29
  "Kendo UI",
20
30
  "React",
@@ -27,33 +37,15 @@
27
37
  "React component",
28
38
  "Telerik"
29
39
  ],
30
- "peerDependencies": {
31
- "@progress/kendo-licensing": "^1.3.0",
32
- "@progress/kendo-react-buttons": "^6.0.0",
33
- "@progress/kendo-svg-icons": "^2.0.0",
34
- "react": "^16.8.2 || ^17.0.0 || ^18.0.0",
35
- "react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
36
- },
37
- "dependencies": {
38
- "@progress/kendo-react-common": "6.1.1-dev.202311151536",
39
- "prop-types": "^15.6.0"
40
- },
41
- "devDependencies": {
42
- "@progress/kendo-licensing": "^1.3.0",
43
- "@progress/kendo-react-buttons": "6.1.1-dev.202311151536",
44
- "@progress/kendo-react-dropdowns": "6.1.1-dev.202311151536",
45
- "@progress/kendo-react-intl": "6.1.1-dev.202311151536",
46
- "@progress/kendo-react-tooltip": "6.1.1-dev.202311151536",
47
- "@progress/kendo-svg-icons": "^2.0.0"
48
- },
49
40
  "@progress": {
50
41
  "friendlyName": "Dialogs",
51
42
  "framework": "KendoReact"
52
43
  },
53
- "author": "Progress",
54
- "license": "SEE LICENSE IN LICENSE.md",
44
+ "repository": {
45
+ "type": "git",
46
+ "url": "https://github.com/telerik/kendo-react.git"
47
+ },
55
48
  "publishConfig": {
56
49
  "access": "public"
57
- },
58
- "sideEffects": false
59
- }
50
+ }
51
+ }
package/utils.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 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;
package/about.md DELETED
@@ -1,3 +0,0 @@
1
- <a href="https://www.telerik.com/kendo-react-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-dialogs&utm_content=banner" target="_blank">
2
- <img src="https://www.telerik.com/kendo-react-ui/components/npm-banner.svg" alt="KendoReact NPM Banner">
3
- </a>
package/dist/es/Dialog.js DELETED
@@ -1,203 +0,0 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
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");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- var __assign = (this && this.__assign) || function () {
17
- __assign = Object.assign || function(t) {
18
- for (var s, i = 1, n = arguments.length; i < n; i++) {
19
- s = arguments[i];
20
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
21
- t[p] = s[p];
22
- }
23
- return t;
24
- };
25
- return __assign.apply(this, arguments);
26
- };
27
- import * as React from 'react';
28
- import * as ReactDOM from 'react-dom';
29
- import * as PropTypes from 'prop-types';
30
- import { DialogTitleBar } from './DialogTitleBar';
31
- import { DialogActionsBar } from './DialogActionsBar';
32
- import { guid, dispatchEvent, Keys, canUseDOM, ZIndexContext, createPropsContext, withPropsContext, classNames, getActiveElement } from '@progress/kendo-react-common';
33
- import { validatePackage, shouldShowValidationUI, WatermarkOverlay } from '@progress/kendo-react-common';
34
- import { packageMetadata } from './package-metadata';
35
- import { getMaxZIndex } from './utils';
36
- import { DATA_DIALOGS_ID, DEFAULT_DIALOGS_ZINDEX, ZINDEX_DIALOGS_STEP } from './constants';
37
- // tslint:enable:max-line-length
38
- /** @hidden */
39
- var DialogWithoutContext = /** @class */ (function (_super) {
40
- __extends(DialogWithoutContext, _super);
41
- function DialogWithoutContext(props) {
42
- var _this = _super.call(this, props) || this;
43
- /**
44
- * @hidden
45
- */
46
- _this.context = 0;
47
- _this._id = guid();
48
- _this.titleId = _this.generateTitleId();
49
- _this.contentId = _this.generateContentId();
50
- _this.showLicenseWatermark = false;
51
- /**
52
- * @hidden
53
- */
54
- _this.onCloseDialog = function (event) {
55
- event.preventDefault();
56
- dispatchEvent(_this.props.onClose, event, _this, undefined);
57
- };
58
- /**
59
- * @hidden
60
- */
61
- _this.onKeyDown = function (event) {
62
- if (event.keyCode === Keys.esc && _this.props.onClose) {
63
- event.preventDefault();
64
- _this.onCloseDialog(event);
65
- }
66
- var kDialog = _this.element;
67
- if (kDialog && (event.keyCode === Keys.tab)) {
68
- var focusableElements = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
69
- var focusableContent = kDialog.querySelectorAll(focusableElements);
70
- var firstFocusableElement = focusableContent[0];
71
- var lastFocusableElement = focusableContent[focusableContent.length - 1];
72
- var currentDocument = _this.getDocument();
73
- var activeElement = getActiveElement(currentDocument);
74
- if (event.shiftKey) {
75
- if ((currentDocument && activeElement === firstFocusableElement) ||
76
- currentDocument && activeElement === _this.element) {
77
- lastFocusableElement.focus();
78
- event.preventDefault();
79
- }
80
- }
81
- else {
82
- if (currentDocument && activeElement === lastFocusableElement) {
83
- firstFocusableElement.focus();
84
- event.preventDefault();
85
- }
86
- }
87
- }
88
- };
89
- _this.getCurrentZIndex = function () {
90
- if (!_this.state || _this.context === undefined) {
91
- return _this.context ? _this.context : DEFAULT_DIALOGS_ZINDEX;
92
- }
93
- return _this.state.zIndex > (_this.context ? _this.context + ZINDEX_DIALOGS_STEP : 0) ? _this.state.zIndex : _this.context + ZINDEX_DIALOGS_STEP;
94
- };
95
- _this.getDocument = function () {
96
- return _this.props.appendTo ? _this.props.appendTo.ownerDocument : document;
97
- };
98
- validatePackage(packageMetadata);
99
- _this.showLicenseWatermark = shouldShowValidationUI(packageMetadata);
100
- _this.state = {
101
- zIndex: getMaxZIndex(_this.getCurrentZIndex(), _this.getDocument(), _this._id)
102
- };
103
- return _this;
104
- }
105
- /**
106
- * @hidden
107
- */
108
- DialogWithoutContext.prototype.componentDidMount = function () {
109
- if (this.element) {
110
- if (this.props.autoFocus) {
111
- this.element.focus();
112
- }
113
- }
114
- };
115
- /**
116
- * @hidden
117
- */
118
- DialogWithoutContext.prototype.render = function () {
119
- var _a, _b;
120
- var _this = this;
121
- var id = this.props.id !== undefined ? this.props.id : this.titleId;
122
- var _c = this.props, title = _c.title, width = _c.width, height = _c.height, children = _c.children, minWidth = _c.minWidth, dir = _c.dir, style = _c.style, contentStyle = _c.contentStyle;
123
- var elementsArray = React.Children.toArray(children);
124
- var content = this.getContent(elementsArray);
125
- var actions = this.getActionBar(elementsArray);
126
- var aria = title ? {
127
- 'aria-labelledby': id
128
- } : null;
129
- var closeIcon = this.props.closeIcon !== undefined ? this.props.closeIcon : true;
130
- var currentZIndex = this.getCurrentZIndex();
131
- var dialogElement = (React.createElement(ZIndexContext.Provider, { value: currentZIndex },
132
- React.createElement("div", __assign({}, (_a = {}, _a[DATA_DIALOGS_ID] = this._id, _a), { className: 'k-dialog-wrapper' + (this.props.className ? ' ' + this.props.className : ''), onKeyDown: this.onKeyDown, tabIndex: 0, dir: dir, style: __assign({ zIndex: currentZIndex }, style), ref: (function (el) { return _this.element = el; }) }),
133
- React.createElement("div", { className: "k-overlay" }),
134
- React.createElement("div", __assign({}, aria, { className: classNames('k-window k-dialog', (_b = {},
135
- _b["k-window-".concat(this.props.themeColor)] = this.props.themeColor,
136
- _b)), role: "dialog", "aria-labelledby": id, "aria-modal": true, "aria-describedby": this.contentId, style: { width: width, height: height, minWidth: minWidth } }),
137
- this.props.title &&
138
- React.createElement(DialogTitleBar, { closeIcon: closeIcon, onCloseButtonClick: this.onCloseDialog, id: id }, title),
139
- React.createElement("div", { className: "k-window-content k-dialog-content", style: contentStyle, id: this.contentId }, content),
140
- actions,
141
- this.showLicenseWatermark && React.createElement(WatermarkOverlay, null)))));
142
- if (canUseDOM) {
143
- return this.props.appendTo !== null ?
144
- ReactDOM.createPortal(dialogElement, this.props.appendTo || document.body) :
145
- dialogElement;
146
- }
147
- return null;
148
- };
149
- DialogWithoutContext.prototype.getActionBar = function (children) {
150
- return children.filter(function (child) { return child && child.type === DialogActionsBar; });
151
- };
152
- DialogWithoutContext.prototype.getContent = function (children) {
153
- return children.filter(function (child) {
154
- return child && child.type !== DialogActionsBar;
155
- });
156
- };
157
- DialogWithoutContext.prototype.generateTitleId = function () {
158
- return 'dialog-title' + this._id;
159
- };
160
- DialogWithoutContext.prototype.generateContentId = function () {
161
- return 'dialog-content' + this._id;
162
- };
163
- DialogWithoutContext.displayName = 'Dialog';
164
- /**
165
- * @hidden
166
- */
167
- DialogWithoutContext.propTypes = {
168
- title: PropTypes.any,
169
- id: PropTypes.string,
170
- dir: PropTypes.string,
171
- style: PropTypes.object,
172
- closeIcon: PropTypes.bool,
173
- width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
174
- height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
175
- minWidth: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
176
- autoFocus: PropTypes.bool
177
- };
178
- /**
179
- * @hidden
180
- */
181
- DialogWithoutContext.defaultProps = {
182
- autoFocus: false
183
- };
184
- /**
185
- * @hidden
186
- */
187
- DialogWithoutContext.contextType = ZIndexContext;
188
- return DialogWithoutContext;
189
- }(React.Component));
190
- /**
191
- * Represents the PropsContext of the `Dialog` component.
192
- * Used for global configuration of all `Dialog` instances.
193
- */
194
- export var DialogPropsContext = createPropsContext();
195
- /* eslint-disable @typescript-eslint/no-redeclare -- intentionally naming the component the same as the type */
196
- /**
197
- * Represents the [KendoReact Dialog component]({% slug overview_dialog %}).
198
- *
199
- * Accepts properties of type [DialogProps]({% slug api_dialogs_dialogprops %}).
200
- * Obtaining the `ref` returns an object of type [DialogHandle]({% slug api_dialogs_dialoghandle %}).
201
- */
202
- export var Dialog = withPropsContext(DialogPropsContext, DialogWithoutContext);
203
- Dialog.displayName = 'KendoReactDialog';
@@ -1,21 +0,0 @@
1
- import * as React from 'react';
2
- import { ActionsLayout } from './models/actions-layout';
3
- /**
4
- * Represents the props of the [KendoReact DialogActionsBar component]({% slug overview_dialog %}).
5
- */
6
- export interface DialogActionsBarProps {
7
- /**
8
- * Specifies the possible layouts of the action buttons ([see example]({% slug actionbuttons_dialog %})). Defaults to `stretched`.
9
- */
10
- layout?: ActionsLayout;
11
- /**
12
- * @hidden
13
- */
14
- children?: any;
15
- }
16
- /**
17
- * Returns the action bar of the Dialog.
18
- *
19
- * @returns React.ReactElement
20
- */
21
- export declare const DialogActionsBar: React.FunctionComponent<DialogActionsBarProps>;
@@ -1,32 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import * as React from 'react';
13
- import * as PropTypes from 'prop-types';
14
- import { classNames } from '@progress/kendo-react-common';
15
- /**
16
- * Returns the action bar of the Dialog.
17
- *
18
- * @returns React.ReactElement
19
- */
20
- export var DialogActionsBar = function (props) {
21
- var _a;
22
- var combinedProps = __assign({ layout: 'stretched' }, props);
23
- var layout = combinedProps.layout, children = combinedProps.children;
24
- var wrapperClasses = classNames('k-actions', 'k-actions-horizontal', 'k-window-actions k-dialog-actions', (_a = {},
25
- _a["k-actions-".concat(layout)] = layout,
26
- _a));
27
- return (React.createElement("div", { className: wrapperClasses }, children));
28
- };
29
- DialogActionsBar.propTypes = {
30
- children: PropTypes.any,
31
- layout: PropTypes.oneOf(['start', 'center', 'end', 'stretched'])
32
- };
@@ -1,3 +0,0 @@
1
- /* eslint-disable max-len */
2
- export {};
3
- // tslint:enable:max-line-length
@@ -1,13 +0,0 @@
1
- import * as React from 'react';
2
- import { Button } from '@progress/kendo-react-buttons';
3
- import { xIcon } from '@progress/kendo-svg-icons';
4
- /**
5
- * @hidden
6
- */
7
- export var DialogTitleBar = function (_a) {
8
- var children = _a.children, onCloseButtonClick = _a.onCloseButtonClick, id = _a.id, closeIcon = _a.closeIcon;
9
- return (React.createElement("div", { className: "k-window-titlebar k-dialog-titlebar", id: id },
10
- React.createElement("span", { className: "k-window-title k-dialog-title" }, children),
11
- React.createElement("div", { className: "k-window-titlebar-actions k-dialog-titlebar-actions" }, closeIcon &&
12
- React.createElement(Button, { role: "button", "aria-label": "Close", onClick: onCloseButtonClick, icon: "x", svgIcon: xIcon, fillMode: "flat", className: "k-window-titlebar-action k-dialog-titlebar-action" }))));
13
- };
@@ -1,33 +0,0 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
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");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- import * as React from 'react';
17
- /**
18
- * @hidden
19
- */
20
- var MiddleLayerOptimization = /** @class */ (function (_super) {
21
- __extends(MiddleLayerOptimization, _super);
22
- function MiddleLayerOptimization() {
23
- return _super !== null && _super.apply(this, arguments) || this;
24
- }
25
- MiddleLayerOptimization.prototype.shouldComponentUpdate = function (nextProps) {
26
- return nextProps.shouldUpdateOnDrag || !nextProps.isDragging;
27
- };
28
- MiddleLayerOptimization.prototype.render = function () {
29
- return this.props.children;
30
- };
31
- return MiddleLayerOptimization;
32
- }(React.Component));
33
- export { MiddleLayerOptimization };
@@ -1,5 +0,0 @@
1
- export declare enum windowStage {
2
- DEFAULT = "DEFAULT",
3
- FULLSCREEN = "FULLSCREEN",
4
- MINIMIZED = "MINIMIZED"
5
- }
@@ -1,6 +0,0 @@
1
- export var windowStage;
2
- (function (windowStage) {
3
- windowStage["DEFAULT"] = "DEFAULT";
4
- windowStage["FULLSCREEN"] = "FULLSCREEN";
5
- windowStage["MINIMIZED"] = "MINIMIZED";
6
- })(windowStage || (windowStage = {}));