@progress/kendo-react-data-tools 4.12.0 → 4.13.0-dev.202111290654
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/dist/cdn/js/kendo-react-data-tools.js +1 -1
- package/dist/es/drag/DragClue.d.ts +2 -0
- package/dist/es/drag/DragClue.js +9 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/selection/TableSelection.js +2 -2
- package/dist/npm/drag/DragClue.d.ts +2 -0
- package/dist/npm/drag/DragClue.js +9 -1
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/selection/TableSelection.js +2 -2
- package/dist/systemjs/kendo-react-data-tools.js +1 -1
- package/package.json +10 -10
|
@@ -13,8 +13,10 @@ export interface DragClueState {
|
|
|
13
13
|
* @hidden
|
|
14
14
|
*/
|
|
15
15
|
export declare class DragClue extends React.PureComponent<{}, DragClueState> {
|
|
16
|
+
private elementRef;
|
|
16
17
|
readonly state: DragClueState;
|
|
17
18
|
hiddenElementRef: React.RefObject<HTMLDivElement>;
|
|
19
|
+
readonly element: HTMLDivElement | null;
|
|
18
20
|
constructor(props: any);
|
|
19
21
|
render(): JSX.Element;
|
|
20
22
|
}
|
package/dist/es/drag/DragClue.js
CHANGED
|
@@ -21,6 +21,7 @@ var DragClue = /** @class */ (function (_super) {
|
|
|
21
21
|
__extends(DragClue, _super);
|
|
22
22
|
function DragClue(props) {
|
|
23
23
|
var _this = _super.call(this, props) || this;
|
|
24
|
+
_this.elementRef = React.createRef();
|
|
24
25
|
_this.state = {
|
|
25
26
|
visible: false,
|
|
26
27
|
top: 0,
|
|
@@ -31,9 +32,16 @@ var DragClue = /** @class */ (function (_super) {
|
|
|
31
32
|
_this.hiddenElementRef = React.createRef();
|
|
32
33
|
return _this;
|
|
33
34
|
}
|
|
35
|
+
Object.defineProperty(DragClue.prototype, "element", {
|
|
36
|
+
get: function () {
|
|
37
|
+
return this.elementRef.current;
|
|
38
|
+
},
|
|
39
|
+
enumerable: true,
|
|
40
|
+
configurable: true
|
|
41
|
+
});
|
|
34
42
|
DragClue.prototype.render = function () {
|
|
35
43
|
var hiddenElement = this.hiddenElementRef.current;
|
|
36
|
-
var dragClue = this.state.visible && canUseDOM && createPortal((React.createElement("div", { className: "k-header k-drag-clue", style: {
|
|
44
|
+
var dragClue = this.state.visible && canUseDOM && createPortal((React.createElement("div", { ref: this.elementRef, className: "k-header k-drag-clue", style: {
|
|
37
45
|
display: 'block',
|
|
38
46
|
position: 'absolute',
|
|
39
47
|
zIndex: 20000,
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-react-data-tools',
|
|
6
6
|
productName: 'KendoReact',
|
|
7
7
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1638167864,
|
|
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
|
};
|
|
@@ -87,7 +87,7 @@ export var TableSelection = function (props) {
|
|
|
87
87
|
altKey: event.altKey,
|
|
88
88
|
shiftKey: event.shiftKey,
|
|
89
89
|
ctrlKey: event.ctrlKey,
|
|
90
|
-
metaKey: event.
|
|
90
|
+
metaKey: event.metaKey,
|
|
91
91
|
mode: selectionMode,
|
|
92
92
|
cell: selectionCell,
|
|
93
93
|
isDrag: false
|
|
@@ -131,7 +131,7 @@ export var TableSelection = function (props) {
|
|
|
131
131
|
altKey: event.altKey,
|
|
132
132
|
shiftKey: event.shiftKey,
|
|
133
133
|
ctrlKey: event.ctrlKey,
|
|
134
|
-
metaKey: event.
|
|
134
|
+
metaKey: event.metaKey,
|
|
135
135
|
mode: selectionMode,
|
|
136
136
|
cell: selectionCell,
|
|
137
137
|
isDrag: true
|
|
@@ -13,8 +13,10 @@ export interface DragClueState {
|
|
|
13
13
|
* @hidden
|
|
14
14
|
*/
|
|
15
15
|
export declare class DragClue extends React.PureComponent<{}, DragClueState> {
|
|
16
|
+
private elementRef;
|
|
16
17
|
readonly state: DragClueState;
|
|
17
18
|
hiddenElementRef: React.RefObject<HTMLDivElement>;
|
|
19
|
+
readonly element: HTMLDivElement | null;
|
|
18
20
|
constructor(props: any);
|
|
19
21
|
render(): JSX.Element;
|
|
20
22
|
}
|
|
@@ -23,6 +23,7 @@ var DragClue = /** @class */ (function (_super) {
|
|
|
23
23
|
__extends(DragClue, _super);
|
|
24
24
|
function DragClue(props) {
|
|
25
25
|
var _this = _super.call(this, props) || this;
|
|
26
|
+
_this.elementRef = React.createRef();
|
|
26
27
|
_this.state = {
|
|
27
28
|
visible: false,
|
|
28
29
|
top: 0,
|
|
@@ -33,9 +34,16 @@ var DragClue = /** @class */ (function (_super) {
|
|
|
33
34
|
_this.hiddenElementRef = React.createRef();
|
|
34
35
|
return _this;
|
|
35
36
|
}
|
|
37
|
+
Object.defineProperty(DragClue.prototype, "element", {
|
|
38
|
+
get: function () {
|
|
39
|
+
return this.elementRef.current;
|
|
40
|
+
},
|
|
41
|
+
enumerable: true,
|
|
42
|
+
configurable: true
|
|
43
|
+
});
|
|
36
44
|
DragClue.prototype.render = function () {
|
|
37
45
|
var hiddenElement = this.hiddenElementRef.current;
|
|
38
|
-
var dragClue = this.state.visible && kendo_react_common_1.canUseDOM && react_dom_1.createPortal((React.createElement("div", { className: "k-header k-drag-clue", style: {
|
|
46
|
+
var dragClue = this.state.visible && kendo_react_common_1.canUseDOM && react_dom_1.createPortal((React.createElement("div", { ref: this.elementRef, className: "k-header k-drag-clue", style: {
|
|
39
47
|
display: 'block',
|
|
40
48
|
position: 'absolute',
|
|
41
49
|
zIndex: 20000,
|
|
@@ -7,7 +7,7 @@ exports.packageMetadata = {
|
|
|
7
7
|
name: '@progress/kendo-react-data-tools',
|
|
8
8
|
productName: 'KendoReact',
|
|
9
9
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
10
|
-
publishDate:
|
|
10
|
+
publishDate: 1638167864,
|
|
11
11
|
version: '',
|
|
12
12
|
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
13
|
};
|
|
@@ -89,7 +89,7 @@ exports.TableSelection = function (props) {
|
|
|
89
89
|
altKey: event.altKey,
|
|
90
90
|
shiftKey: event.shiftKey,
|
|
91
91
|
ctrlKey: event.ctrlKey,
|
|
92
|
-
metaKey: event.
|
|
92
|
+
metaKey: event.metaKey,
|
|
93
93
|
mode: selectionMode,
|
|
94
94
|
cell: selectionCell,
|
|
95
95
|
isDrag: false
|
|
@@ -133,7 +133,7 @@ exports.TableSelection = function (props) {
|
|
|
133
133
|
altKey: event.altKey,
|
|
134
134
|
shiftKey: event.shiftKey,
|
|
135
135
|
ctrlKey: event.ctrlKey,
|
|
136
|
-
metaKey: event.
|
|
136
|
+
metaKey: event.metaKey,
|
|
137
137
|
mode: selectionMode,
|
|
138
138
|
cell: selectionCell,
|
|
139
139
|
isDrag: true
|