@progress/kendo-base-component-react-wrapper
Advanced tools
Comparing version 2021.3.1109-dev.11120911 to 2021.3.1109-dev.11120947
@@ -6,3 +6,3 @@ /// <reference types="@progress/kendo-ui" /> | ||
} | ||
declare class KendoBaseComponent<P extends KendoWidgetProps, S = {}> extends React.Component<P, {}> { | ||
declare class KendoBaseComponent<P extends KendoWidgetProps, S = {}> extends React.PureComponent<P, {}> { | ||
destroyed: boolean; | ||
@@ -13,6 +13,5 @@ widgetInstance: kendo.ui.Widget; | ||
protected domNode: HTMLElement | null; | ||
constructor(props: P); | ||
componentDidMount(): void; | ||
componentWillUnmount(): void; | ||
protected elementRef(el: HTMLElement | null): void; | ||
protected elementRef: (el: HTMLElement) => void; | ||
private exposeWidget; | ||
@@ -19,0 +18,0 @@ private overrideDestroy; |
@@ -18,6 +18,8 @@ /// <reference types="@progress/kendo-ui" /> | ||
__extends(KendoBaseComponent, _super); | ||
function KendoBaseComponent(props) { | ||
var _this = _super.call(this, props) || this; | ||
function KendoBaseComponent() { | ||
var _this = _super !== null && _super.apply(this, arguments) || this; | ||
_this.didMount = false; | ||
_this.elementRef = _this.elementRef.bind(_this); | ||
_this.elementRef = function (el) { | ||
_this.domNode = el; | ||
}; | ||
return _this; | ||
@@ -36,5 +38,2 @@ } | ||
}; | ||
KendoBaseComponent.prototype.elementRef = function (el) { | ||
this.domNode = el; | ||
}; | ||
KendoBaseComponent.prototype.exposeWidget = function () { | ||
@@ -54,4 +53,4 @@ if (this.props.widgetRef && typeof this.props.widgetRef === 'function') { | ||
return KendoBaseComponent; | ||
}(React.Component)); | ||
}(React.PureComponent)); | ||
export default KendoBaseComponent; | ||
//# sourceMappingURL=index.js.map |
@@ -6,3 +6,3 @@ /// <reference types="@progress/kendo-ui" /> | ||
} | ||
declare class KendoBaseComponent<P extends KendoWidgetProps, S = {}> extends React.Component<P, {}> { | ||
declare class KendoBaseComponent<P extends KendoWidgetProps, S = {}> extends React.PureComponent<P, {}> { | ||
destroyed: boolean; | ||
@@ -13,6 +13,5 @@ widgetInstance: kendo.ui.Widget; | ||
protected domNode: HTMLElement | null; | ||
constructor(props: P); | ||
componentDidMount(): void; | ||
componentWillUnmount(): void; | ||
protected elementRef(el: HTMLElement | null): void; | ||
protected elementRef: (el: HTMLElement) => void; | ||
private exposeWidget; | ||
@@ -19,0 +18,0 @@ private overrideDestroy; |
@@ -20,6 +20,8 @@ "use strict"; | ||
__extends(KendoBaseComponent, _super); | ||
function KendoBaseComponent(props) { | ||
var _this = _super.call(this, props) || this; | ||
function KendoBaseComponent() { | ||
var _this = _super !== null && _super.apply(this, arguments) || this; | ||
_this.didMount = false; | ||
_this.elementRef = _this.elementRef.bind(_this); | ||
_this.elementRef = function (el) { | ||
_this.domNode = el; | ||
}; | ||
return _this; | ||
@@ -38,5 +40,2 @@ } | ||
}; | ||
KendoBaseComponent.prototype.elementRef = function (el) { | ||
this.domNode = el; | ||
}; | ||
KendoBaseComponent.prototype.exposeWidget = function () { | ||
@@ -56,4 +55,4 @@ if (this.props.widgetRef && typeof this.props.widgetRef === 'function') { | ||
return KendoBaseComponent; | ||
}(React.Component)); | ||
}(React.PureComponent)); | ||
exports.default = KendoBaseComponent; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@progress/kendo-base-component-react-wrapper", | ||
"version": "2021.3.1109-dev.11120911", | ||
"version": "2021.3.1109-dev.11120947", | ||
"description": "Kendo UI Base Component wrapper for React", | ||
@@ -5,0 +5,0 @@ "main": "./dist/npm/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11619
142