superdesk-ui-framework 3.0.19 → 3.0.20
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.
@@ -32,7 +32,10 @@ export class WithPopover extends React.PureComponent<IPropsWithPopover> {
|
|
32
32
|
this.props.component,
|
33
33
|
this.props.zIndex,
|
34
34
|
this.props.closeOnHoverEnd,
|
35
|
-
|
35
|
+
() => {
|
36
|
+
this.closePopup = undefined;
|
37
|
+
this.props.onClose?.();
|
38
|
+
},
|
36
39
|
).close;
|
37
40
|
}
|
38
41
|
}
|
package/dist/examples.bundle.js
CHANGED
@@ -119796,12 +119796,17 @@ var WithPopover = /** @class */ (function (_super) {
|
|
119796
119796
|
return _this;
|
119797
119797
|
}
|
119798
119798
|
WithPopover.prototype.togglePopup = function (referenceElement) {
|
119799
|
+
var _this = this;
|
119799
119800
|
if (this.closePopup != null) {
|
119800
119801
|
this.closePopup();
|
119801
119802
|
this.closePopup = undefined;
|
119802
119803
|
}
|
119803
119804
|
else {
|
119804
|
-
this.closePopup = (0, ShowPopup_1.showPopup)(referenceElement, this.props.placement, this.props.component, this.props.zIndex, this.props.closeOnHoverEnd,
|
119805
|
+
this.closePopup = (0, ShowPopup_1.showPopup)(referenceElement, this.props.placement, this.props.component, this.props.zIndex, this.props.closeOnHoverEnd, function () {
|
119806
|
+
var _a, _b;
|
119807
|
+
_this.closePopup = undefined;
|
119808
|
+
(_b = (_a = _this.props).onClose) === null || _b === void 0 ? void 0 : _b.call(_a);
|
119809
|
+
}).close;
|
119805
119810
|
}
|
119806
119811
|
};
|
119807
119812
|
WithPopover.prototype.render = function () {
|
@@ -142876,7 +142881,7 @@ exports.ResizablePanelsDoc = ResizablePanelsDoc;
|
|
142876
142881
|
/* 680 */
|
142877
142882
|
/***/ (function(module, exports) {
|
142878
142883
|
|
142879
|
-
module.exports = {"name":"superdesk-ui-framework","version":"3.0.
|
142884
|
+
module.exports = {"name":"superdesk-ui-framework","version":"3.0.20","license":"AGPL-3.0","repository":{"type":"git","url":"https://github.com/superdesk/superdesk-ui-framework.git"},"main":"dist/superdesk-ui.bundle.js","types":"react/index.d.ts","contributors":["Nemanja Pavlovic","Vladimir Stefanovic","Darko Tomic","Aleksandar Jelicic","Tomas Kikutis","Dragana Zivkovic"],"scripts":{"start":"webpack-dev-server --config tasks/webpack.dev.js","server":"webpack --watch --config tasks/webpack.prod.js && tsc-watch","build":"webpack --config tasks/webpack.prod.js && tsc","build-ui":"webpack && tsc && npm run lint","lint":"eslint --parser=@typescript-eslint/parser app && tslint -c tslint.json 'app-typescript/**/*.{ts,tsx}'","lint-fix":"tsc -p tsconfig.json --noEmit && tslint --fix -c tslint.json 'app-typescript/**/*.{ts,tsx}'","prepublishOnly":"npm run build","unit-test":"mocha","debug-unit-tests":"mocha --inspect-brk"},"devDependencies":{"@types/assert":"^1.5.6","@types/chart.js":"^2.9.24","@types/classnames":"^2.2.9","@types/enzyme":"^3.10.12","@types/lodash":"^4.14.161","@types/mocha":"^9.1.1","@types/react":"16.8.23","@types/react-beautiful-dnd":"^13.1.2","@types/react-dom":"16.8.0","@types/react-router-dom":"^5.1.2","@types/react-scrollspy":"^3.3.5","@typescript-eslint/parser":"^5.58.0","angular":"^1.7.9","angular-animate":"^1.7.9","angular-route":"^1.7.9","babel-core":"^6.26.0","babel-loader":"^7.1.2","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-es2015":"^6.24.1","babel-preset-react":"^6.24.1","classnames":"^2.2.5","clean-webpack-plugin":"^1.0.0","code-prettify":"^0.1.0","copy-webpack-plugin":"^4.6.0","css-loader":"^2.1.1","eslint":"^4.6.1","eslint-loader":"^1.9.0","eslint-plugin-angular":"^3.1.1","eslint-plugin-react":"^7.3.0","extract-text-webpack-plugin":"^3.0.2","file-loader":"^0.11.2","html-loader":"^0.5.1","html-webpack-plugin":"^2.30.1","jquery":"^3.1.1","jquery-ui":"^1.12.1","jsdom":"20.0.3","jsdom-global":"3.0.2","lodash":"4.17.21","mocha":"^8.4.0","node-sass":"6.0","prismjs":"^1.28.0","prop-types":"^15.6.0","react":"16.8.6","react-bootstrap":"^0.31.2","react-dom":"16.8.6","react-redux":"^5.0.6","react-router-dom":"^5.1.2","redux":"^3.7.2","redux-form":"^7.0.4","sass-loader":"^6.0.6","style-loader":"^0.18.2","superdesk-code-style":"^1.1.2","ts-loader":"^6.0.2","ts-node":"^10.9.1","tslint":"^5.18.0","typescript":"4.9.5","url-loader":"^1.1.2","webpack":"^3.5.5","webpack-cli":"3.3.10","webpack-dev-server":"2.11.1","webpack-merge":"^4.2.1"},"dependencies":{"@material-ui/lab":"^4.0.0-alpha.56","@popperjs/core":"^2.4.0","@superdesk/primereact":"^5.0.2-10","@superdesk/react-resizable-panels":"0.0.39","@types/enzyme-adapter-react-16":"^1.0.6","@types/node":"^14.10.2","chart.js":"^2.9.3","date-fns":"2.7.0","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.7","moment":"^2.29.3","popper-max-size-modifier":"^0.2.0","popper.js":"1.14.4","primeicons":"2.0.0","react-beautiful-dnd":"^13.0.0","react-id-generator":"^3.0.0","react-popper":"^2.2.3","react-scrollspy":"^3.4.3"}}
|
142880
142885
|
|
142881
142886
|
/***/ }),
|
142882
142887
|
/* 681 */
|
@@ -119057,12 +119057,17 @@ var WithPopover = /** @class */ (function (_super) {
|
|
119057
119057
|
return _this;
|
119058
119058
|
}
|
119059
119059
|
WithPopover.prototype.togglePopup = function (referenceElement) {
|
119060
|
+
var _this = this;
|
119060
119061
|
if (this.closePopup != null) {
|
119061
119062
|
this.closePopup();
|
119062
119063
|
this.closePopup = undefined;
|
119063
119064
|
}
|
119064
119065
|
else {
|
119065
|
-
this.closePopup = (0, ShowPopup_1.showPopup)(referenceElement, this.props.placement, this.props.component, this.props.zIndex, this.props.closeOnHoverEnd,
|
119066
|
+
this.closePopup = (0, ShowPopup_1.showPopup)(referenceElement, this.props.placement, this.props.component, this.props.zIndex, this.props.closeOnHoverEnd, function () {
|
119067
|
+
var _a, _b;
|
119068
|
+
_this.closePopup = undefined;
|
119069
|
+
(_b = (_a = _this.props).onClose) === null || _b === void 0 ? void 0 : _b.call(_a);
|
119070
|
+
}).close;
|
119066
119071
|
}
|
119067
119072
|
};
|
119068
119073
|
WithPopover.prototype.render = function () {
|
package/package.json
CHANGED
@@ -49,12 +49,17 @@ var WithPopover = /** @class */ (function (_super) {
|
|
49
49
|
return _this;
|
50
50
|
}
|
51
51
|
WithPopover.prototype.togglePopup = function (referenceElement) {
|
52
|
+
var _this = this;
|
52
53
|
if (this.closePopup != null) {
|
53
54
|
this.closePopup();
|
54
55
|
this.closePopup = undefined;
|
55
56
|
}
|
56
57
|
else {
|
57
|
-
this.closePopup = (0, ShowPopup_1.showPopup)(referenceElement, this.props.placement, this.props.component, this.props.zIndex, this.props.closeOnHoverEnd,
|
58
|
+
this.closePopup = (0, ShowPopup_1.showPopup)(referenceElement, this.props.placement, this.props.component, this.props.zIndex, this.props.closeOnHoverEnd, function () {
|
59
|
+
var _a, _b;
|
60
|
+
_this.closePopup = undefined;
|
61
|
+
(_b = (_a = _this.props).onClose) === null || _b === void 0 ? void 0 : _b.call(_a);
|
62
|
+
}).close;
|
58
63
|
}
|
59
64
|
};
|
60
65
|
WithPopover.prototype.render = function () {
|