synos-helena 21.12.3-beta.0 → 21.12.3-beta.1
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/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -32994,7 +32994,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
32994
32994
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
32995
32995
|
|
|
32996
32996
|
"use strict";
|
|
32997
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! antd */ \"antd\");\n/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(antd__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _HLButton_HLButton__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../HLButton/HLButton */ \"./src/HLButton/HLButton.tsx\");\n/* harmony import */ var _HLCard_HLCard__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../HLCard/HLCard */ \"./src/HLCard/HLCard.tsx\");\n/* harmony import */ var _HLPowerSearch_HLPowerSearch__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../HLPowerSearch/HLPowerSearch */ \"./src/HLPowerSearch/HLPowerSearch.js\");\n/* harmony import */ var _HLTable_HLTable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../HLTable/HLTable */ \"./src/HLTable/HLTable.js\");\n/* harmony import */ var _HLAssociateDisassociate_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./HLAssociateDisassociate.css */ \"./src/HLAssociateDisassociate/HLAssociateDisassociate.css\");\nvar __extends = (undefined && undefined.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\n\n\n\n\n\n\n\n\nvar HLAssociateDisassociate = /** @class */ (function (_super) {\n __extends(HLAssociateDisassociate, _super);\n function HLAssociateDisassociate(props) {\n var _this = _super.call(this, props) || this;\n _this.state = {\n loadingAssociate: false,\n loadingDisassociate: false,\n selectedAssociateList: [],\n selectedDisassociateList: [],\n selectedAssociateKeysList: [],\n selectedDisassociateKeysList: [],\n currentAssociate: 1,\n currentDisassociate: 1,\n };\n _this.updateSelectedAssociateList = _this.updateSelectedAssociateList.bind(_this);\n _this.updateSelectedDisassociateList = _this.updateSelectedDisassociateList.bind(_this);\n _this.cleanSelectedRows = _this.cleanSelectedRows.bind(_this);\n _this.cleanLoadingState = _this.cleanLoadingState.bind(_this);\n _this.onClickAssociateDisassociate = _this.onClickAssociateDisassociate.bind(_this);\n return _this;\n }\n HLAssociateDisassociate.prototype.updateSelectedAssociateList = function (selectedAssociateKeysList, selectedAssociateList) {\n this.setState({ selectedAssociateKeysList: selectedAssociateKeysList, selectedAssociateList: selectedAssociateList });\n };\n HLAssociateDisassociate.prototype.updateSelectedDisassociateList = function (selectedDisassociateKeysList, selectedDisassociateList) {\n this.setState({ selectedDisassociateKeysList: selectedDisassociateKeysList, selectedDisassociateList: selectedDisassociateList });\n };\n HLAssociateDisassociate.prototype.cleanSelectedRows = function () {\n this.setState({\n selectedAssociateList: [],\n selectedDisassociateList: [],\n selectedAssociateKeysList: [],\n selectedDisassociateKeysList: [],\n currentAssociate: 1,\n currentDisassociate: 1,\n });\n };\n HLAssociateDisassociate.prototype.cleanLoadingState = function () {\n var loadingFalse = { loadingAssociate: false, loadingDisassociate: false };\n this.setState(loadingFalse);\n this.cleanSelectedRows();\n };\n HLAssociateDisassociate.prototype.onClickAssociateDisassociate = function (transferSide, list) {\n var _this = this;\n var loadingTrue = { loadingAssociate: true, loadingDisassociate: true };\n this.setState(loadingTrue, function () {\n _this.props[transferSide].transfer(_this.state[list], _this.cleanLoadingState);\n });\n };\n HLAssociateDisassociate.prototype.getKeyedList = function (list) {\n return list.map(function (item, idx) {\n if (!item.hasOwnProperty('key')) {\n item.key = \"item-list-\".concat(idx);\n }\n return item;\n });\n };\n HLAssociateDisassociate.prototype._onChangePage = function (page, from) {\n from === 'associate' ? this.setState({ currentAssociate: page }) : this.setState({ currentDisassociate: page });\n };\n /**\n * getSelectionOptions retorna um array de ações para o selection do `HLTable`.\n */\n HLAssociateDisassociate.prototype._getSelectionOptions = function (dataSource, selectedKeysList, selectedList) {\n var _this = this;\n return [\n {\n key: 'all',\n text: 'Selecionar tudo',\n onSelect: function () {\n var _a;\n var newSelectedRows = _this.getKeyedList(dataSource);\n var newSelectedRowKeys = newSelectedRows.map(function (item) { return item.key; });\n _this.setState((_a = {}, _a[selectedKeysList] = newSelectedRowKeys, _a[selectedList] = newSelectedRows, _a));\n },\n },\n {\n key: 'none',\n text: 'Limpar seleção',\n onSelect: function () {\n var _a;\n _this.setState((_a = {}, _a[selectedKeysList] = [], _a[selectedList] = [], _a));\n },\n },\n ];\n };\n HLAssociateDisassociate.prototype.render = function () {\n var _this = this;\n var state = this.state;\n var _a = this.props, associate = _a.associate, disassociate = _a.disassociate, permissions = _a.permissions;\n var isAssociateButtonDisabled = !permissions.authFunctions.fullAccess(permissions.resourceId) || state.selectedAssociateList.length === 0;\n var isDisassociateButtonDisabled = !permissions.authFunctions.fullAccess(permissions.resourceId) || state.selectedDisassociateList.length === 0;\n return (react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", { className: _HLAssociateDisassociate_css__WEBPACK_IMPORTED_MODULE_7__[\"default\"][\"hl-associate-disassociate\"] },\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(antd__WEBPACK_IMPORTED_MODULE_0__.Row, { type: \"flex\", justify: \"space-around\" },\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(antd__WEBPACK_IMPORTED_MODULE_0__.Col, { span: 11, align: \"top\" },\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_HLCard_HLCard__WEBPACK_IMPORTED_MODULE_4__[\"default\"], { title: disassociate.title ? disassociate.title : 'Desassociados', size: \"small\" },\n disassociate.powerSearch ? (react__WEBPACK_IMPORTED_MODULE_2___default().createElement(antd__WEBPACK_IMPORTED_MODULE_0__.Row, { style: { marginBottom: '10px' } },\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(antd__WEBPACK_IMPORTED_MODULE_0__.Col, { span: 24 },\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_HLPowerSearch_HLPowerSearch__WEBPACK_IMPORTED_MODULE_5__[\"default\"], { context: \"disassociate-\".concat(window.location.pathname), ref: function (HLPowerSearch) { return (_this._hlPowerSearch = HLPowerSearch); }, columns: disassociate.powerSearch.columns, doSearch: false, onSubmit: function (event, filterParameters) {\n disassociate.powerSearch.onSubmit(filterParameters);\n _this.cleanSelectedRows();\n } })))) : null,\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(antd__WEBPACK_IMPORTED_MODULE_0__.Row, null,\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_HLTable_HLTable__WEBPACK_IMPORTED_MODULE_6__[\"default\"], { rowSelection: {\n selectedRowKeys: state.selectedAssociateKeysList,\n onChange: this.updateSelectedAssociateList,\n selections: this._getSelectionOptions(disassociate.dataSource, 'selectedAssociateKeysList', 'selectedAssociateList'),\n }, columns: disassociate.columns, dataSource: this.getKeyedList(disassociate.dataSource), loading: state.loadingDisassociate, pagination: {\n pageSize: 5,\n current: this.state.currentDisassociate,\n onChange: function (page) { return _this._onChangePage(page, 'disassociate'); },\n }, destroyOnClose: true, footer: associate.footer })))),\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(antd__WEBPACK_IMPORTED_MODULE_0__.Col, { span: 2, style: { display: 'grid', alignContent: 'center', justifyContent: 'center' } },\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(antd__WEBPACK_IMPORTED_MODULE_0__.Row, { style: { marginBottom: '16px' } },\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_HLButton_HLButton__WEBPACK_IMPORTED_MODULE_3__[\"default\"], { type: \"primary\", icon: \"RightOutlined\", onClick: function () { return _this.onClickAssociateDisassociate('associate', 'selectedAssociateList'); }, disabled: isAssociateButtonDisabled })),\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(antd__WEBPACK_IMPORTED_MODULE_0__.Row, null,\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_HLButton_HLButton__WEBPACK_IMPORTED_MODULE_3__[\"default\"], { type: \"primary\", icon: \"LeftOutlined\", onClick: function () { return _this.onClickAssociateDisassociate('disassociate', 'selectedDisassociateList'); }, disabled: isDisassociateButtonDisabled }))),\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(antd__WEBPACK_IMPORTED_MODULE_0__.Col, { span: 11, align: \"top\" },\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_HLCard_HLCard__WEBPACK_IMPORTED_MODULE_4__[\"default\"], { title: associate.title ? associate.title : 'Associados', size: \"small\" },\n associate.powerSearch ? (react__WEBPACK_IMPORTED_MODULE_2___default().createElement(antd__WEBPACK_IMPORTED_MODULE_0__.Row, { style: { marginBottom: '10px' } },\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(antd__WEBPACK_IMPORTED_MODULE_0__.Col, { span: 24 },\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_HLPowerSearch_HLPowerSearch__WEBPACK_IMPORTED_MODULE_5__[\"default\"], { context: \"associate-\".concat(window.location.pathname), ref: function (HLPowerSearch) { return (_this._hlPowerSearch = HLPowerSearch); }, columns: associate.powerSearch.columns, doSearch: false, onSubmit: function (event, filterParameters) {\n associate.powerSearch.onSubmit(filterParameters);\n _this.cleanSelectedRows();\n } })))) : null,\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(antd__WEBPACK_IMPORTED_MODULE_0__.Row, null,\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_HLTable_HLTable__WEBPACK_IMPORTED_MODULE_6__[\"default\"], { rowSelection: {\n selectedRowKeys: state.selectedDisassociateKeysList,\n onChange: this.updateSelectedDisassociateList,\n selections: this._getSelectionOptions(associate.dataSource, 'selectedDisassociateKeysList', 'selectedDisassociateList'),\n }, columns: associate.columns, dataSource: this.getKeyedList(associate.dataSource), loading: state.loadingAssociate, pagination: {\n pageSize: 5,\n current: this.state.currentAssociate,\n onChange: function (page) { return _this._onChangePage(page, 'associate'); },\n }, destroyOnClose: true, footer: disassociate.footer })))))));\n };\n return HLAssociateDisassociate;\n}((react__WEBPACK_IMPORTED_MODULE_2___default().Component)));\nHLAssociateDisassociate.propTypes = {\n associate: prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape({\n title: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),\n columns: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().array.isRequired),\n dataSource: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().array.isRequired),\n transfer: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func.isRequired),\n powerSearch: prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape({\n columns: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().array.isRequired),\n onSubmit: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func.isRequired),\n }),\n footer: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),\n }).isRequired,\n disassociate: prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape({\n title: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),\n columns: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().array.isRequired),\n dataSource: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().array.isRequired),\n transfer: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func.isRequired),\n powerSearch: prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape({\n columns: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().array.isRequired),\n onSubmit: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func.isRequired),\n }),\n footer: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),\n }).isRequired,\n permissions: prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape({\n resourceId: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string.isRequired),\n components: prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape({\n readOnlyAccess: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().element.isRequired),\n fullAccess: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().element.isRequired),\n }),\n authFunctions: prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape({\n readOnlyAccess: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func.isRequired),\n fullAccess: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func.isRequired),\n }),\n }),\n};\nHLAssociateDisassociate.displayName = 'HLAssociateDisassociate';\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (HLAssociateDisassociate);\n\n\n//# sourceURL=webpack://synchro-helena/./src/HLAssociateDisassociate/HLAssociateDisassociate.js?");
|
|
32997
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! antd */ \"antd\");\n/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(antd__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ \"./node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _HLButton_HLButton__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../HLButton/HLButton */ \"./src/HLButton/HLButton.tsx\");\n/* harmony import */ var _HLCard_HLCard__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../HLCard/HLCard */ \"./src/HLCard/HLCard.tsx\");\n/* harmony import */ var _HLPowerSearch_HLPowerSearch__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../HLPowerSearch/HLPowerSearch */ \"./src/HLPowerSearch/HLPowerSearch.js\");\n/* harmony import */ var _HLTable_HLTable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../HLTable/HLTable */ \"./src/HLTable/HLTable.js\");\n/* harmony import */ var _HLAssociateDisassociate_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./HLAssociateDisassociate.css */ \"./src/HLAssociateDisassociate/HLAssociateDisassociate.css\");\nvar __extends = (undefined && undefined.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\n\n\n\n\n\n\n\n\nvar HLAssociateDisassociate = /** @class */ (function (_super) {\n __extends(HLAssociateDisassociate, _super);\n function HLAssociateDisassociate(props) {\n var _this = _super.call(this, props) || this;\n _this.state = {\n loadingAssociate: false,\n loadingDisassociate: false,\n selectedAssociateList: [],\n selectedDisassociateList: [],\n selectedAssociateKeysList: [],\n selectedDisassociateKeysList: [],\n currentAssociate: 1,\n currentDisassociate: 1,\n };\n _this.updateSelectedAssociateList = _this.updateSelectedAssociateList.bind(_this);\n _this.updateSelectedDisassociateList = _this.updateSelectedDisassociateList.bind(_this);\n _this.cleanSelectedRows = _this.cleanSelectedRows.bind(_this);\n _this.cleanLoadingState = _this.cleanLoadingState.bind(_this);\n _this.onClickAssociateDisassociate = _this.onClickAssociateDisassociate.bind(_this);\n return _this;\n }\n HLAssociateDisassociate.prototype.updateSelectedAssociateList = function (selectedAssociateKeysList, selectedAssociateList) {\n this.setState({ selectedAssociateKeysList: selectedAssociateKeysList, selectedAssociateList: selectedAssociateList });\n };\n HLAssociateDisassociate.prototype.updateSelectedDisassociateList = function (selectedDisassociateKeysList, selectedDisassociateList) {\n this.setState({ selectedDisassociateKeysList: selectedDisassociateKeysList, selectedDisassociateList: selectedDisassociateList });\n };\n HLAssociateDisassociate.prototype.cleanSelectedRows = function () {\n this.setState({\n selectedAssociateList: [],\n selectedDisassociateList: [],\n selectedAssociateKeysList: [],\n selectedDisassociateKeysList: [],\n currentAssociate: 1,\n currentDisassociate: 1,\n });\n };\n HLAssociateDisassociate.prototype.cleanLoadingState = function () {\n var loadingFalse = { loadingAssociate: false, loadingDisassociate: false };\n this.setState(loadingFalse);\n this.cleanSelectedRows();\n };\n HLAssociateDisassociate.prototype.onClickAssociateDisassociate = function (transferSide, list) {\n var _this = this;\n var loadingTrue = { loadingAssociate: true, loadingDisassociate: true };\n this.setState(loadingTrue, function () {\n _this.props[transferSide].transfer(_this.state[list], _this.cleanLoadingState);\n });\n };\n HLAssociateDisassociate.prototype.getKeyedList = function (list) {\n return list.map(function (item, idx) {\n if (!item.hasOwnProperty('key')) {\n item.key = \"item-list-\".concat(idx);\n }\n return item;\n });\n };\n HLAssociateDisassociate.prototype._onChangePage = function (page, from) {\n from === 'associate' ? this.setState({ currentAssociate: page }) : this.setState({ currentDisassociate: page });\n };\n /**\n * getSelectionOptions retorna um array de ações para o selection do `HLTable`.\n */\n HLAssociateDisassociate.prototype._getSelectionOptions = function (dataSource, selectedKeysList, selectedList) {\n var _this = this;\n return [\n {\n key: 'all',\n text: 'Selecionar tudo',\n onSelect: function () {\n var _a;\n var newSelectedRows = _this.getKeyedList(dataSource);\n var newSelectedRowKeys = newSelectedRows.map(function (item) { return item.key; });\n _this.setState((_a = {}, _a[selectedKeysList] = newSelectedRowKeys, _a[selectedList] = newSelectedRows, _a));\n },\n },\n {\n key: 'none',\n text: 'Limpar seleção',\n onSelect: function () {\n var _a;\n _this.setState((_a = {}, _a[selectedKeysList] = [], _a[selectedList] = [], _a));\n },\n },\n ];\n };\n HLAssociateDisassociate.prototype.render = function () {\n var _this = this;\n var state = this.state;\n var _a = this.props, associate = _a.associate, disassociate = _a.disassociate, permissions = _a.permissions;\n var isAssociateButtonDisabled = !(permissions === null || permissions === void 0 ? void 0 : permissions.authFunctions.fullAccess(permissions === null || permissions === void 0 ? void 0 : permissions.resourceId)) || state.selectedAssociateList.length === 0;\n var isDisassociateButtonDisabled = !(permissions === null || permissions === void 0 ? void 0 : permissions.authFunctions.fullAccess(permissions === null || permissions === void 0 ? void 0 : permissions.resourceId)) || state.selectedDisassociateList.length === 0;\n return (react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", { className: _HLAssociateDisassociate_css__WEBPACK_IMPORTED_MODULE_7__[\"default\"][\"hl-associate-disassociate\"] },\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(antd__WEBPACK_IMPORTED_MODULE_0__.Row, { type: \"flex\", justify: \"space-around\" },\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(antd__WEBPACK_IMPORTED_MODULE_0__.Col, { span: 11, align: \"top\" },\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_HLCard_HLCard__WEBPACK_IMPORTED_MODULE_4__[\"default\"], { title: disassociate.title ? disassociate.title : 'Desassociados', size: \"small\" },\n disassociate.powerSearch ? (react__WEBPACK_IMPORTED_MODULE_2___default().createElement(antd__WEBPACK_IMPORTED_MODULE_0__.Row, { style: { marginBottom: '10px' } },\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(antd__WEBPACK_IMPORTED_MODULE_0__.Col, { span: 24 },\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_HLPowerSearch_HLPowerSearch__WEBPACK_IMPORTED_MODULE_5__[\"default\"], { context: \"disassociate-\".concat(window.location.pathname), ref: function (HLPowerSearch) { return (_this._hlPowerSearch = HLPowerSearch); }, columns: disassociate.powerSearch.columns, doSearch: false, onSubmit: function (event, filterParameters) {\n disassociate.powerSearch.onSubmit(filterParameters);\n _this.cleanSelectedRows();\n } })))) : null,\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(antd__WEBPACK_IMPORTED_MODULE_0__.Row, null,\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_HLTable_HLTable__WEBPACK_IMPORTED_MODULE_6__[\"default\"], { rowSelection: {\n selectedRowKeys: state.selectedAssociateKeysList,\n onChange: this.updateSelectedAssociateList,\n selections: this._getSelectionOptions(disassociate.dataSource, 'selectedAssociateKeysList', 'selectedAssociateList'),\n }, columns: disassociate.columns, dataSource: this.getKeyedList(disassociate.dataSource), loading: state.loadingDisassociate, pagination: {\n pageSize: 5,\n current: this.state.currentDisassociate,\n onChange: function (page) { return _this._onChangePage(page, 'disassociate'); },\n }, destroyOnClose: true, footer: associate.footer })))),\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(antd__WEBPACK_IMPORTED_MODULE_0__.Col, { span: 2, style: { display: 'grid', alignContent: 'center', justifyContent: 'center' } },\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(antd__WEBPACK_IMPORTED_MODULE_0__.Row, { style: { marginBottom: '16px' } },\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_HLButton_HLButton__WEBPACK_IMPORTED_MODULE_3__[\"default\"], { type: \"primary\", icon: \"RightOutlined\", onClick: function () { return _this.onClickAssociateDisassociate('associate', 'selectedAssociateList'); }, disabled: isAssociateButtonDisabled })),\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(antd__WEBPACK_IMPORTED_MODULE_0__.Row, null,\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_HLButton_HLButton__WEBPACK_IMPORTED_MODULE_3__[\"default\"], { type: \"primary\", icon: \"LeftOutlined\", onClick: function () { return _this.onClickAssociateDisassociate('disassociate', 'selectedDisassociateList'); }, disabled: isDisassociateButtonDisabled }))),\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(antd__WEBPACK_IMPORTED_MODULE_0__.Col, { span: 11, align: \"top\" },\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_HLCard_HLCard__WEBPACK_IMPORTED_MODULE_4__[\"default\"], { title: associate.title ? associate.title : 'Associados', size: \"small\" },\n associate.powerSearch ? (react__WEBPACK_IMPORTED_MODULE_2___default().createElement(antd__WEBPACK_IMPORTED_MODULE_0__.Row, { style: { marginBottom: '10px' } },\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(antd__WEBPACK_IMPORTED_MODULE_0__.Col, { span: 24 },\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_HLPowerSearch_HLPowerSearch__WEBPACK_IMPORTED_MODULE_5__[\"default\"], { context: \"associate-\".concat(window.location.pathname), ref: function (HLPowerSearch) { return (_this._hlPowerSearch = HLPowerSearch); }, columns: associate.powerSearch.columns, doSearch: false, onSubmit: function (event, filterParameters) {\n associate.powerSearch.onSubmit(filterParameters);\n _this.cleanSelectedRows();\n } })))) : null,\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(antd__WEBPACK_IMPORTED_MODULE_0__.Row, null,\n react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_HLTable_HLTable__WEBPACK_IMPORTED_MODULE_6__[\"default\"], { rowSelection: {\n selectedRowKeys: state.selectedDisassociateKeysList,\n onChange: this.updateSelectedDisassociateList,\n selections: this._getSelectionOptions(associate.dataSource, 'selectedDisassociateKeysList', 'selectedDisassociateList'),\n }, columns: associate.columns, dataSource: this.getKeyedList(associate.dataSource), loading: state.loadingAssociate, pagination: {\n pageSize: 5,\n current: this.state.currentAssociate,\n onChange: function (page) { return _this._onChangePage(page, 'associate'); },\n }, destroyOnClose: true, footer: disassociate.footer })))))));\n };\n return HLAssociateDisassociate;\n}((react__WEBPACK_IMPORTED_MODULE_2___default().Component)));\nHLAssociateDisassociate.propTypes = {\n associate: prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape({\n title: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),\n columns: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().array.isRequired),\n dataSource: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().array.isRequired),\n transfer: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func.isRequired),\n powerSearch: prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape({\n columns: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().array.isRequired),\n onSubmit: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func.isRequired),\n }),\n footer: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),\n }).isRequired,\n disassociate: prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape({\n title: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),\n columns: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().array.isRequired),\n dataSource: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().array.isRequired),\n transfer: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func.isRequired),\n powerSearch: prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape({\n columns: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().array.isRequired),\n onSubmit: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func.isRequired),\n }),\n footer: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),\n }).isRequired,\n permissions: prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape({\n resourceId: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string.isRequired),\n components: prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape({\n readOnlyAccess: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().element.isRequired),\n fullAccess: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().element.isRequired),\n }),\n authFunctions: prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape({\n readOnlyAccess: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func.isRequired),\n fullAccess: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func.isRequired),\n }),\n }),\n};\nHLAssociateDisassociate.displayName = 'HLAssociateDisassociate';\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (HLAssociateDisassociate);\n\n\n//# sourceURL=webpack://synchro-helena/./src/HLAssociateDisassociate/HLAssociateDisassociate.js?");
|
|
32998
32998
|
|
|
32999
32999
|
/***/ }),
|
|
33000
33000
|
|