@devexpress/dx-react-core
Advanced tools
Comparing version 1.11.0 to 1.11.1
// Dependencies for this module: | ||
// ../../../../react | ||
// ../../../../@devexpress/dx-core | ||
import * as React from 'react'; | ||
import { Mutable } from '@devexpress/dx-core'; | ||
@@ -37,10 +39,4 @@ export interface PluginProps { | ||
*/ | ||
computed?: (getters: Getters, actions: Actions) => any; | ||
computed?: ComputedFn; | ||
} | ||
export type Getters = { | ||
readonly [getterName: string]: any; | ||
}; | ||
export type Actions = { | ||
[actionName: string]: (payload?: any) => void; | ||
}; | ||
export const Getter: React.ComponentType<GetterProps>; | ||
@@ -89,2 +85,11 @@ | ||
export type WritableRefObject<T> = Mutable<React.RefObject<T>>; | ||
export type Getters = { | ||
readonly [getterName: string]: any; | ||
}; | ||
export type Actions = { | ||
[actionName: string]: (payload?: any) => void; | ||
}; | ||
export type ComputedFn = (getters: Getters, actions: Actions) => void; | ||
export interface IDependency { | ||
@@ -91,0 +96,0 @@ name: string; |
/** | ||
* Bundle of @devexpress/dx-react-core | ||
* Generated: 2019-05-17 | ||
* Version: 1.11.0 | ||
* Generated: 2019-06-14 | ||
* Version: 1.11.1 | ||
* License: https://js.devexpress.com/Licensing | ||
@@ -233,4 +233,4 @@ */ | ||
TemplatePlaceholderBase.prototype.render = function () { | ||
var _a; | ||
var _this = this; | ||
var _a; | ||
var _b = getRenderingData(this.props), params = _b.params, templates = _b.templates; | ||
@@ -606,2 +606,16 @@ this.params = params; | ||
/* globals document:true window:true */ | ||
/** @internal */ | ||
var clear = function () { | ||
var selection = window.getSelection && window.getSelection(); | ||
if (selection) { | ||
if (selection.empty) { | ||
selection.empty(); | ||
} | ||
else if (selection.removeAllRanges) { | ||
selection.removeAllRanges(); | ||
} | ||
} | ||
}; | ||
/* globals window:true document:true */ | ||
@@ -637,6 +651,3 @@ var BOUNDARY = 10; | ||
this.delegate.onStart(this.mouseInitialOffset); | ||
var selection = window.getSelection && window.getSelection(); | ||
if (selection && selection.removeAllRanges) { | ||
selection.removeAllRanges(); | ||
} | ||
clear(); | ||
dragStarted = true; | ||
@@ -679,16 +690,2 @@ this.dragging = true; | ||
/* globals document:true window:true */ | ||
/** @internal */ | ||
var clear = function () { | ||
var selection = window.getSelection && window.getSelection(); | ||
if (selection) { | ||
if (selection.empty) { | ||
selection.empty(); | ||
} | ||
else if (selection.removeAllRanges) { | ||
selection.removeAllRanges(); | ||
} | ||
} | ||
}; | ||
var draggingHandled = Symbol('draggingHandled'); | ||
@@ -1009,2 +1006,4 @@ /** @internal */ | ||
height: '200%', | ||
minHeight: '2px', | ||
minWidth: '2px', | ||
}, | ||
@@ -1193,3 +1192,3 @@ }; | ||
export { Action, DragDropProvider, DragSource, Draggable, DropTarget, Getter, Plugin, PluginHost, RefHolder, RefType, Sizer, Template, TemplateConnector, TemplatePlaceholder, connectProps, createStateHelper, withComponents }; | ||
export { Action, DragDropProvider, DragSource, Draggable, DropTarget, Getter, Plugin, PluginHost, RefHolder, RefType, Sizer, Template, TemplateConnector, TemplatePlaceholder, clear as clearSelection, connectProps, createStateHelper, withComponents }; | ||
//# sourceMappingURL=dx-react-core.es.js.map |
/** | ||
* Bundle of @devexpress/dx-react-core | ||
* Generated: 2019-05-17 | ||
* Version: 1.11.0 | ||
* Generated: 2019-06-14 | ||
* Version: 1.11.1 | ||
* License: https://js.devexpress.com/Licensing | ||
@@ -236,4 +236,4 @@ */ | ||
TemplatePlaceholderBase.prototype.render = function () { | ||
var _a; | ||
var _this = this; | ||
var _a; | ||
var _b = getRenderingData(this.props), params = _b.params, templates = _b.templates; | ||
@@ -609,2 +609,16 @@ this.params = params; | ||
/* globals document:true window:true */ | ||
/** @internal */ | ||
var clear = function () { | ||
var selection = window.getSelection && window.getSelection(); | ||
if (selection) { | ||
if (selection.empty) { | ||
selection.empty(); | ||
} | ||
else if (selection.removeAllRanges) { | ||
selection.removeAllRanges(); | ||
} | ||
} | ||
}; | ||
/* globals window:true document:true */ | ||
@@ -640,6 +654,3 @@ var BOUNDARY = 10; | ||
this.delegate.onStart(this.mouseInitialOffset); | ||
var selection = window.getSelection && window.getSelection(); | ||
if (selection && selection.removeAllRanges) { | ||
selection.removeAllRanges(); | ||
} | ||
clear(); | ||
dragStarted = true; | ||
@@ -682,16 +693,2 @@ this.dragging = true; | ||
/* globals document:true window:true */ | ||
/** @internal */ | ||
var clear = function () { | ||
var selection = window.getSelection && window.getSelection(); | ||
if (selection) { | ||
if (selection.empty) { | ||
selection.empty(); | ||
} | ||
else if (selection.removeAllRanges) { | ||
selection.removeAllRanges(); | ||
} | ||
} | ||
}; | ||
var draggingHandled = Symbol('draggingHandled'); | ||
@@ -1012,2 +1009,4 @@ /** @internal */ | ||
height: '200%', | ||
minHeight: '2px', | ||
minWidth: '2px', | ||
}, | ||
@@ -1210,2 +1209,3 @@ }; | ||
exports.TemplatePlaceholder = TemplatePlaceholder; | ||
exports.clearSelection = clear; | ||
exports.connectProps = connectProps; | ||
@@ -1212,0 +1212,0 @@ exports.createStateHelper = createStateHelper; |
{ | ||
"name": "@devexpress/dx-react-core", | ||
"version": "1.11.0", | ||
"version": "1.11.1", | ||
"description": "Core library for DevExtreme React Components", | ||
@@ -46,6 +46,6 @@ "author": { | ||
"devDependencies": { | ||
"@types/enzyme": "^3.9.2", | ||
"core-js": "^3.0.1", | ||
"enzyme": "3.9.0", | ||
"enzyme-adapter-react-16": "^1.13.0", | ||
"@types/enzyme": "^3.9.3", | ||
"core-js": "^3.1.3", | ||
"enzyme": "3.10.0", | ||
"enzyme-adapter-react-16": "^1.14.0", | ||
"jest": "^24.8.0", | ||
@@ -55,21 +55,21 @@ "react": "^16.8.3", | ||
"react-test-renderer": "^16.8.6", | ||
"rollup": "^1.11.3", | ||
"rollup-plugin-license": "^0.8.1", | ||
"rollup-plugin-node-resolve": "^4.2.4", | ||
"rollup": "^1.15.2", | ||
"rollup-plugin-license": "^0.9.0", | ||
"rollup-plugin-node-resolve": "^5.0.2", | ||
"rollup-plugin-replace": "^2.2.0", | ||
"rollup-plugin-typescript2": "^0.21.0", | ||
"rollup-plugin-typescript2": "^0.21.1", | ||
"ts-jest": "^24.0.2", | ||
"tslint": "^5.16.0", | ||
"tslint": "^5.17.0", | ||
"tslint-config-airbnb": "^5.11.1", | ||
"typescript": "^3.4.5" | ||
"typescript": "^3.5.1" | ||
}, | ||
"dependencies": { | ||
"@devexpress/dx-core": "1.11.0", | ||
"@devexpress/dx-core": "1.11.1", | ||
"prop-types": "^15.7.2" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=16.8.3", | ||
"react-dom": ">=16.8.3" | ||
"react": ">=16.8.6", | ||
"react-dom": ">=16.8.6" | ||
}, | ||
"gitHead": "2ee3c94fa5fd5fddf386d4561206715d784e64bc" | ||
"gitHead": "1e024a4be45e7b7141404f5a2fbf7b2f9c1d7afa" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2402
266234
+ Added@devexpress/dx-core@1.11.1(transitive)
- Removed@devexpress/dx-core@1.11.0(transitive)
Updated@devexpress/dx-core@1.11.1