superdesk-ui-framework 3.0.69 → 3.0.70
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.
@@ -27,6 +27,7 @@ interface IProps {
|
|
27
27
|
maximizable?: boolean;
|
28
28
|
headerTemplate?: JSX.Element | string;
|
29
29
|
footerTemplate?: JSX.Element | string;
|
30
|
+
['data-test-id']?: string;
|
30
31
|
onShow?(): void;
|
31
32
|
onHide?(): void;
|
32
33
|
}
|
@@ -41,8 +42,11 @@ export class Modal extends React.Component<IProps, {}> {
|
|
41
42
|
[`p-dialog-content--padding-${this.props.contentPadding}`]: this.props.contentPadding,
|
42
43
|
}, this.props.className);
|
43
44
|
return (
|
44
|
-
<div
|
45
|
-
|
45
|
+
<div
|
46
|
+
style={{display: 'content'}}
|
47
|
+
data-theme={this.props.theme !== 'dark' ? null : 'dark-ui' }
|
48
|
+
data-test-id={this.props['data-test-id']}
|
49
|
+
>
|
46
50
|
<PrimeDialog
|
47
51
|
id={this.props.id}
|
48
52
|
visible={this.props.visible}
|
package/dist/examples.bundle.js
CHANGED
@@ -99479,7 +99479,7 @@ var Modal = /** @class */ (function (_super) {
|
|
99479
99479
|
_a['p-dialog-content--padding-small'] = this.props.contentPadding === undefined,
|
99480
99480
|
_a["p-dialog-content--padding-".concat(this.props.contentPadding)] = this.props.contentPadding,
|
99481
99481
|
_a), this.props.className);
|
99482
|
-
return (React.createElement("div", { style: { display: 'content' }, "data-theme": this.props.theme !== 'dark' ? null : 'dark-ui' },
|
99482
|
+
return (React.createElement("div", { style: { display: 'content' }, "data-theme": this.props.theme !== 'dark' ? null : 'dark-ui', "data-test-id": this.props['data-test-id'] },
|
99483
99483
|
React.createElement(dialog_1.Dialog, { id: this.props.id, visible: this.props.visible, header: this.props.headerTemplate, footer: this.props.footerTemplate, closeOnEscape: this.props.closeOnEscape, maximized: this.props.maximized, maximizable: this.props.maximizable, contentClassName: classes, onShow: this.props.onShow, onHide: (_b = this.props.onHide) !== null && _b !== void 0 ? _b : lodash_1.noop, zIndex: this.props.zIndex ? this.props.zIndex : 1000, position: this.props.position, closable: this.props.onHide != null ? true : false }, this.props.children)));
|
99484
99484
|
};
|
99485
99485
|
return Modal;
|
@@ -144238,7 +144238,7 @@ exports.ResizablePanelsDoc = ResizablePanelsDoc;
|
|
144238
144238
|
/* 693 */
|
144239
144239
|
/***/ (function(module, exports) {
|
144240
144240
|
|
144241
|
-
module.exports = {"name":"superdesk-ui-framework","version":"3.0.
|
144241
|
+
module.exports = {"name":"superdesk-ui-framework","version":"3.0.70","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","playground-lint":"tsc -p examples/pages/playgrounds/react-playgrounds --noEmit","lint":"eslint --parser=@typescript-eslint/parser app && tslint -c tslint.json 'app-typescript/**/*.{ts,tsx}' && npm run playground-lint","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-12","@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"}}
|
144242
144242
|
|
144243
144243
|
/***/ }),
|
144244
144244
|
/* 694 */
|
@@ -98740,7 +98740,7 @@ var Modal = /** @class */ (function (_super) {
|
|
98740
98740
|
_a['p-dialog-content--padding-small'] = this.props.contentPadding === undefined,
|
98741
98741
|
_a["p-dialog-content--padding-".concat(this.props.contentPadding)] = this.props.contentPadding,
|
98742
98742
|
_a), this.props.className);
|
98743
|
-
return (React.createElement("div", { style: { display: 'content' }, "data-theme": this.props.theme !== 'dark' ? null : 'dark-ui' },
|
98743
|
+
return (React.createElement("div", { style: { display: 'content' }, "data-theme": this.props.theme !== 'dark' ? null : 'dark-ui', "data-test-id": this.props['data-test-id'] },
|
98744
98744
|
React.createElement(dialog_1.Dialog, { id: this.props.id, visible: this.props.visible, header: this.props.headerTemplate, footer: this.props.footerTemplate, closeOnEscape: this.props.closeOnEscape, maximized: this.props.maximized, maximizable: this.props.maximizable, contentClassName: classes, onShow: this.props.onShow, onHide: (_b = this.props.onHide) !== null && _b !== void 0 ? _b : lodash_1.noop, zIndex: this.props.zIndex ? this.props.zIndex : 1000, position: this.props.position, closable: this.props.onHide != null ? true : false }, this.props.children)));
|
98745
98745
|
};
|
98746
98746
|
return Modal;
|
package/package.json
CHANGED
@@ -61,7 +61,7 @@ var Modal = /** @class */ (function (_super) {
|
|
61
61
|
_a['p-dialog-content--padding-small'] = this.props.contentPadding === undefined,
|
62
62
|
_a["p-dialog-content--padding-".concat(this.props.contentPadding)] = this.props.contentPadding,
|
63
63
|
_a), this.props.className);
|
64
|
-
return (React.createElement("div", { style: { display: 'content' }, "data-theme": this.props.theme !== 'dark' ? null : 'dark-ui' },
|
64
|
+
return (React.createElement("div", { style: { display: 'content' }, "data-theme": this.props.theme !== 'dark' ? null : 'dark-ui', "data-test-id": this.props['data-test-id'] },
|
65
65
|
React.createElement(dialog_1.Dialog, { id: this.props.id, visible: this.props.visible, header: this.props.headerTemplate, footer: this.props.footerTemplate, closeOnEscape: this.props.closeOnEscape, maximized: this.props.maximized, maximizable: this.props.maximizable, contentClassName: classes, onShow: this.props.onShow, onHide: (_b = this.props.onHide) !== null && _b !== void 0 ? _b : lodash_1.noop, zIndex: this.props.zIndex ? this.props.zIndex : 1000, position: this.props.position, closable: this.props.onHide != null ? true : false }, this.props.children)));
|
66
66
|
};
|
67
67
|
return Modal;
|