@banch0u/core-project-test-repository 1.8.4 → 1.9.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/dist/assets/css/antd.css +723 -0
- package/dist/assets/icons/index.js +182 -0
- package/dist/components/Button/index.module.scss +17 -5
- package/dist/components/ColSort/index.module.scss +22 -0
- package/dist/components/Delete/Delete.js +22 -0
- package/dist/components/Delete/Delete.module.scss +22 -0
- package/dist/components/DeleteModal/DeleteModal.js +31 -0
- package/dist/components/DeleteModal/DeleteModal.module.scss +11 -0
- package/dist/components/Filter/index.js +1 -1
- package/dist/components/Input/index.js +34 -6
- package/dist/components/Input/index.module.scss +55 -23
- package/dist/components/ProfileOptions/index.module.scss +3 -3
- package/dist/components/Select/index.js +47 -60
- package/dist/components/Select/index.module.scss +32 -0
- package/dist/components/Success/Success.js +19 -0
- package/dist/components/Success/Success.module.scss +26 -0
- package/dist/components/Table/index.js +4 -2
- package/dist/components/ViewModal/index.js +30 -0
- package/dist/helpers/paginationLength.js +3 -0
- package/dist/helpers/querySearch.js +22 -0
- package/dist/index.js +2 -0
- package/dist/layout/Header/AppSelect/index.js +28 -9
- package/dist/layout/Header/AppSelect/index.module.scss +6 -1
- package/dist/layout/Portal/index.js +23 -0
- package/dist/layout/QuestionnairesLayout/index.js +17 -0
- package/dist/layout/QuestionnairesLayout/index.module.scss +0 -0
- package/dist/layout/QuestionnairesSidebar/index.js +162 -0
- package/dist/layout/QuestionnairesSidebar/index.module.scss +76 -0
- package/dist/pages/Questionnnaires/Questionnaires.module.scss +194 -0
- package/dist/pages/Questionnnaires/QuestionnairesApplicationFormContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesApplicationFormContent/index.js +255 -0
- package/dist/pages/Questionnnaires/QuestionnairesBrandsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesBrandsContent/index.js +247 -0
- package/dist/pages/Questionnnaires/QuestionnairesChassisTypesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesChassisTypesContent/index.js +247 -0
- package/dist/pages/Questionnnaires/QuestionnairesColorsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesColorsContent/index.js +247 -0
- package/dist/pages/Questionnnaires/QuestionnairesCountriesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesCountriesContent/index.js +247 -0
- package/dist/pages/Questionnnaires/QuestionnairesDeliveryMethodContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesDeliveryMethodContent/index.js +247 -0
- package/dist/pages/Questionnnaires/QuestionnairesDocumentRecieveMethodsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesDocumentRecieveMethodsContent/index.js +258 -0
- package/dist/pages/Questionnnaires/QuestionnairesDocumentTypeContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesDocumentTypeContent/index.js +284 -0
- package/dist/pages/Questionnnaires/QuestionnairesDocumentWhomContent/constant.js +82 -0
- package/dist/pages/Questionnnaires/QuestionnairesDocumentWhomContent/index.js +331 -0
- package/dist/pages/Questionnnaires/QuestionnairesEngineTypesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesEngineTypesContent/index.js +247 -0
- package/dist/pages/Questionnnaires/QuestionnairesExecutionRulesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesExecutionRulesContent/index.js +258 -0
- package/dist/pages/Questionnnaires/QuestionnairesGearboxTypesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesGearboxTypesContent/index.js +247 -0
- package/dist/pages/Questionnnaires/QuestionnairesIssuedAuthoritiesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesIssuedAuthoritiesContent/index.js +247 -0
- package/dist/pages/Questionnnaires/QuestionnairesMarginNoteTextsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesMarginNoteTextsContent/index.js +249 -0
- package/dist/pages/Questionnnaires/QuestionnairesModelsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesModelsContent/index.js +290 -0
- package/dist/pages/Questionnnaires/QuestionnairesOrganizationsContent/constant.js +88 -0
- package/dist/pages/Questionnnaires/QuestionnairesOrganizationsContent/index.js +320 -0
- package/dist/pages/Questionnnaires/QuestionnairesOwnershipTypesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesOwnershipTypesContent/index.js +247 -0
- package/dist/pages/Questionnnaires/QuestionnairesStreetsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesStreetsContent/index.js +240 -0
- package/dist/pages/Questionnnaires/QuestionnairesStructuresContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesStructuresContent/index.js +247 -0
- package/dist/pages/Questionnnaires/QuestionnairesSubtopicContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesSubtopicContent/index.js +317 -0
- package/dist/pages/Questionnnaires/QuestionnairesTopicContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesTopicContent/index.js +271 -0
- package/dist/pages/Questionnnaires/QuestionnairesTransmitterTypesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesTransmitterTypesContent/index.js +247 -0
- package/dist/pages/Questionnnaires/QuestionnairesVehicleTypesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesVehicleTypesContent/index.js +247 -0
- package/dist/pages/Questionnnaires/index.js +5 -0
- package/dist/routes/QuestionnaireRoutes.js +178 -0
- package/dist/store/slices/global/index.js +174 -3
- package/dist/store/slices/questionnaire/index.js +5139 -0
- package/dist/store/slices/questionnaire/service.js +3030 -0
- package/dist/store/store.js +2 -1
- package/dist/utils/path.js +49 -1
- package/package.json +2 -1
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
+
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
4
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
5
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
6
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8
|
+
import Select from "../../../components/Select";
|
|
9
|
+
import React from "react";
|
|
10
|
+
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
11
|
+
import Cookies from "js-cookie";
|
|
12
|
+
import style from "../Questionnaires.module.scss";
|
|
13
|
+
import { Form, Input, Layout, Select as AntdSelect } from "antd";
|
|
14
|
+
import { PlusIcon } from "../../../assets/icons";
|
|
15
|
+
import FormModal from "../../../components/FormModal";
|
|
16
|
+
import { useDispatch, useSelector } from "react-redux";
|
|
17
|
+
import Delete from "../../../components/Delete/Delete";
|
|
18
|
+
import DeleteModal from "../../../components/DeleteModal/DeleteModal";
|
|
19
|
+
import Success from "../../../components/Success/Success";
|
|
20
|
+
import { setDeleteModalVisible, setViewModalVisible } from "../../../store/slices/global";
|
|
21
|
+
import ViewModal from "../../../components/ViewModal";
|
|
22
|
+
import { getStreetColumns } from "./constant";
|
|
23
|
+
import Pagination from "../../../components/Pagination";
|
|
24
|
+
import ColSort from "../../../components/ColSort";
|
|
25
|
+
import { setPaginationLength } from "../../../helpers/paginationLength";
|
|
26
|
+
import Button from "../../../components/Button";
|
|
27
|
+
import Loading from "../../../components/Loading";
|
|
28
|
+
import Table from "../../../components/Table";
|
|
29
|
+
import Filter from "../../../components/Filter";
|
|
30
|
+
import { addDocumentTypes, deleteDocumentTypes, documentTypesVisibility, editDocumentTypes, getDocumentTypes } from "../../../store/slices/questionnaire";
|
|
31
|
+
var Content = Layout.Content;
|
|
32
|
+
var Item = Form.Item;
|
|
33
|
+
var Option = AntdSelect.Option;
|
|
34
|
+
var QuestionnairesDocumentTypeContent = function QuestionnairesDocumentTypeContent() {
|
|
35
|
+
var _useState = useState(null),
|
|
36
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
37
|
+
innerW = _useState2[0],
|
|
38
|
+
setInnerW = _useState2[1];
|
|
39
|
+
var ref = useRef();
|
|
40
|
+
var dispatch = useDispatch();
|
|
41
|
+
var _useState3 = useState(0),
|
|
42
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
43
|
+
id = _useState4[0],
|
|
44
|
+
setId = _useState4[1];
|
|
45
|
+
var _useState5 = useState(1),
|
|
46
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
47
|
+
page = _useState6[0],
|
|
48
|
+
setPage = _useState6[1];
|
|
49
|
+
var _useState7 = useState(Cookies.get("pagination-size-questionnaire-document-type") ? JSON.parse(Cookies.get("pagination-size-questionnaire-document-type")) : 20),
|
|
50
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
51
|
+
size = _useState8[0],
|
|
52
|
+
setSize = _useState8[1];
|
|
53
|
+
var _useState9 = useState({
|
|
54
|
+
name: ""
|
|
55
|
+
}),
|
|
56
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
57
|
+
query = _useState10[0],
|
|
58
|
+
setQuery = _useState10[1];
|
|
59
|
+
var _useState11 = useState(1),
|
|
60
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
61
|
+
typeSelect = _useState12[0],
|
|
62
|
+
setTypeSelect = _useState12[1];
|
|
63
|
+
var _useSelector = useSelector(function (state) {
|
|
64
|
+
return state.global;
|
|
65
|
+
}),
|
|
66
|
+
loading = _useSelector.loading,
|
|
67
|
+
documentTypesRender = _useSelector.documentTypesRender;
|
|
68
|
+
var documentTypes = useSelector(function (state) {
|
|
69
|
+
return state.questionnaire.documentTypes;
|
|
70
|
+
});
|
|
71
|
+
var paginationLength = setPaginationLength(documentTypes === null || documentTypes === void 0 ? void 0 : documentTypes.count, documentTypes === null || documentTypes === void 0 ? void 0 : documentTypes.size);
|
|
72
|
+
var onSubmit = useCallback(/*#__PURE__*/function () {
|
|
73
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(data) {
|
|
74
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
75
|
+
while (1) switch (_context.prev = _context.next) {
|
|
76
|
+
case 0:
|
|
77
|
+
dispatch(addDocumentTypes(_objectSpread(_objectSpread({}, data), {}, {
|
|
78
|
+
category: typeSelect
|
|
79
|
+
})));
|
|
80
|
+
case 1:
|
|
81
|
+
case "end":
|
|
82
|
+
return _context.stop();
|
|
83
|
+
}
|
|
84
|
+
}, _callee);
|
|
85
|
+
}));
|
|
86
|
+
return function (_x) {
|
|
87
|
+
return _ref.apply(this, arguments);
|
|
88
|
+
};
|
|
89
|
+
}(), [dispatch, typeSelect]);
|
|
90
|
+
var onEdit = useCallback(function (id, record) {
|
|
91
|
+
var data = {
|
|
92
|
+
id: id,
|
|
93
|
+
name: record === null || record === void 0 ? void 0 : record.name,
|
|
94
|
+
category: typeSelect
|
|
95
|
+
};
|
|
96
|
+
dispatch(editDocumentTypes(data));
|
|
97
|
+
}, [dispatch, typeSelect]);
|
|
98
|
+
var onStatusChange = useCallback(function (data, checked) {
|
|
99
|
+
var data_ = {
|
|
100
|
+
id: data === null || data === void 0 ? void 0 : data.id,
|
|
101
|
+
checked: checked
|
|
102
|
+
};
|
|
103
|
+
dispatch(documentTypesVisibility(data_));
|
|
104
|
+
}, [dispatch]);
|
|
105
|
+
var closeOnViewModal = useCallback(function () {
|
|
106
|
+
dispatch(setViewModalVisible(false));
|
|
107
|
+
}, [dispatch]);
|
|
108
|
+
var onClickModal = function onClickModal() {
|
|
109
|
+
var _ref$current;
|
|
110
|
+
ref === null || ref === void 0 || (_ref$current = ref.current) === null || _ref$current === void 0 || _ref$current.open();
|
|
111
|
+
};
|
|
112
|
+
var onEditClick = useCallback(function (data) {
|
|
113
|
+
var _ref$current2;
|
|
114
|
+
ref === null || ref === void 0 || (_ref$current2 = ref.current) === null || _ref$current2 === void 0 || _ref$current2.setEdit(data);
|
|
115
|
+
}, []);
|
|
116
|
+
var onDelete = useCallback(function (id) {
|
|
117
|
+
setId(id);
|
|
118
|
+
}, []);
|
|
119
|
+
var handleSearch = function handleSearch(value) {
|
|
120
|
+
setQuery({
|
|
121
|
+
name: value
|
|
122
|
+
});
|
|
123
|
+
setPage(1);
|
|
124
|
+
};
|
|
125
|
+
var handleKeyDown = function handleKeyDown(e) {
|
|
126
|
+
if (e.key === "Enter") {
|
|
127
|
+
handleSearch(e.target.value);
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
var handleColumnToggle = function handleColumnToggle(checked, dataIndex) {
|
|
131
|
+
setSelectedColumns(function (prevSelected) {
|
|
132
|
+
if (checked) {
|
|
133
|
+
return [].concat(_toConsumableArray(prevSelected), [dataIndex]);
|
|
134
|
+
} else {
|
|
135
|
+
return prevSelected.filter(function (col) {
|
|
136
|
+
return col !== dataIndex;
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
};
|
|
141
|
+
var data = [];
|
|
142
|
+
if (documentTypes !== null && documentTypes !== void 0 && documentTypes.items) {
|
|
143
|
+
var _documentTypes$items;
|
|
144
|
+
data = documentTypes === null || documentTypes === void 0 || (_documentTypes$items = documentTypes.items) === null || _documentTypes$items === void 0 ? void 0 : _documentTypes$items.map(function (dataObj, i) {
|
|
145
|
+
return {
|
|
146
|
+
num: (documentTypes === null || documentTypes === void 0 ? void 0 : documentTypes.size) * (documentTypes === null || documentTypes === void 0 ? void 0 : documentTypes.page) + i + 1 - (documentTypes === null || documentTypes === void 0 ? void 0 : documentTypes.size),
|
|
147
|
+
id: dataObj === null || dataObj === void 0 ? void 0 : dataObj.id,
|
|
148
|
+
name: dataObj === null || dataObj === void 0 ? void 0 : dataObj.name,
|
|
149
|
+
isActive: dataObj === null || dataObj === void 0 ? void 0 : dataObj.isActive,
|
|
150
|
+
className: "rowClassName1"
|
|
151
|
+
};
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
var columns = useMemo(function () {
|
|
155
|
+
return getStreetColumns(onEditClick, onDelete, onStatusChange, dispatch);
|
|
156
|
+
}, [onEditClick, onDelete, onStatusChange, dispatch]);
|
|
157
|
+
var _useState13 = useState(columns.map(function (col) {
|
|
158
|
+
return col.dataIndex;
|
|
159
|
+
})),
|
|
160
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
161
|
+
selectedColumns = _useState14[0],
|
|
162
|
+
setSelectedColumns = _useState14[1];
|
|
163
|
+
useEffect(function () {
|
|
164
|
+
if (window.innerWidth >= 1900) {
|
|
165
|
+
setInnerW(210);
|
|
166
|
+
} else {
|
|
167
|
+
setInnerW(155);
|
|
168
|
+
}
|
|
169
|
+
var data = {
|
|
170
|
+
page: page,
|
|
171
|
+
size: size,
|
|
172
|
+
query: query,
|
|
173
|
+
visibility: "nondeleted",
|
|
174
|
+
category: typeSelect
|
|
175
|
+
};
|
|
176
|
+
dispatch(getDocumentTypes(data));
|
|
177
|
+
}, [dispatch, page, documentTypesRender, typeSelect, size, query]);
|
|
178
|
+
var updateSize = function updateSize(newSize) {
|
|
179
|
+
setSize(newSize); // Update state
|
|
180
|
+
Cookies.set("pagination-size-questionnaire-document-type", JSON.stringify(newSize), {
|
|
181
|
+
expires: 7
|
|
182
|
+
}); // Save to cookies
|
|
183
|
+
};
|
|
184
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, loading ? /*#__PURE__*/React.createElement(Loading, null) : null, /*#__PURE__*/React.createElement(Layout, {
|
|
185
|
+
className: style.layout
|
|
186
|
+
}, /*#__PURE__*/React.createElement(Content, {
|
|
187
|
+
className: style.content
|
|
188
|
+
}, /*#__PURE__*/React.createElement("header", {
|
|
189
|
+
className: style.header
|
|
190
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
191
|
+
onClick: onClickModal,
|
|
192
|
+
color: "green"
|
|
193
|
+
}, " ", /*#__PURE__*/React.createElement(PlusIcon, null), " Soraq\xE7a \u0259lav\u0259 et"), /*#__PURE__*/React.createElement(Filter, {
|
|
194
|
+
columns: columns,
|
|
195
|
+
selectedColumns: selectedColumns,
|
|
196
|
+
setQuery: setQuery,
|
|
197
|
+
disabledElementCount: 3,
|
|
198
|
+
setPage: setPage
|
|
199
|
+
}))), /*#__PURE__*/React.createElement(Layout, {
|
|
200
|
+
className: style.layout1
|
|
201
|
+
}, /*#__PURE__*/React.createElement(Content, {
|
|
202
|
+
className: style.content
|
|
203
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
204
|
+
className: style.table_header
|
|
205
|
+
}, /*#__PURE__*/React.createElement("h2", null, "S\u0259n\u0259d N\xF6vl\u0259ri"), /*#__PURE__*/React.createElement("div", {
|
|
206
|
+
className: style.buttons
|
|
207
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
208
|
+
size: "sm",
|
|
209
|
+
width: 200,
|
|
210
|
+
allowClear: false,
|
|
211
|
+
value: typeSelect,
|
|
212
|
+
defaultValue: "",
|
|
213
|
+
onChange: function onChange(value) {
|
|
214
|
+
setTypeSelect(value);
|
|
215
|
+
}
|
|
216
|
+
}, /*#__PURE__*/React.createElement(Option, {
|
|
217
|
+
value: 1
|
|
218
|
+
}, "Daxil olan s\u0259n\u0259dl\u0259r"), /*#__PURE__*/React.createElement(Option, {
|
|
219
|
+
value: 2
|
|
220
|
+
}, "Xaric olan s\u0259n\u0259dl\u0259r")), /*#__PURE__*/React.createElement(ColSort, {
|
|
221
|
+
columns: columns,
|
|
222
|
+
selectedColumns: selectedColumns,
|
|
223
|
+
handleColumnToggle: handleColumnToggle
|
|
224
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
225
|
+
className: "bigTable"
|
|
226
|
+
}, /*#__PURE__*/React.createElement(Table, {
|
|
227
|
+
selectedColumns: selectedColumns,
|
|
228
|
+
innerW: innerW,
|
|
229
|
+
dataSource: data,
|
|
230
|
+
columns: columns,
|
|
231
|
+
disableDrag: true
|
|
232
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
233
|
+
className: style.pagination
|
|
234
|
+
}, /*#__PURE__*/React.createElement(Pagination, {
|
|
235
|
+
size: size,
|
|
236
|
+
setSize: updateSize,
|
|
237
|
+
total: paginationLength,
|
|
238
|
+
page: page,
|
|
239
|
+
onChange: setPage
|
|
240
|
+
})), /*#__PURE__*/React.createElement(FormModal, {
|
|
241
|
+
ref: ref,
|
|
242
|
+
width: 454,
|
|
243
|
+
title: "Yeni soraqça yaratma",
|
|
244
|
+
titleEdit: "Soraqça redaktə etmə",
|
|
245
|
+
okText: "Yadda saxla",
|
|
246
|
+
cancelText: "Bağla",
|
|
247
|
+
onSubmit: onSubmit,
|
|
248
|
+
onEdit: onEdit,
|
|
249
|
+
className: "absolute",
|
|
250
|
+
centered: false
|
|
251
|
+
}, /*#__PURE__*/React.createElement(Item, {
|
|
252
|
+
rules: [{
|
|
253
|
+
required: true,
|
|
254
|
+
message: ""
|
|
255
|
+
}, {
|
|
256
|
+
min: 3,
|
|
257
|
+
message: "Ən azından 3 simvol olmalıdır"
|
|
258
|
+
}],
|
|
259
|
+
name: "name",
|
|
260
|
+
label: "Ad"
|
|
261
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
262
|
+
className: style.modal_input
|
|
263
|
+
}))), /*#__PURE__*/React.createElement(DeleteModal, {
|
|
264
|
+
onCancel: function onCancel() {
|
|
265
|
+
return dispatch(setDeleteModalVisible(false));
|
|
266
|
+
},
|
|
267
|
+
width: 280
|
|
268
|
+
}, /*#__PURE__*/React.createElement(Delete, {
|
|
269
|
+
onDelete: function onDelete() {
|
|
270
|
+
return dispatch(deleteDocumentTypes(id));
|
|
271
|
+
},
|
|
272
|
+
onCancel: function onCancel() {
|
|
273
|
+
return dispatch(setDeleteModalVisible(false));
|
|
274
|
+
},
|
|
275
|
+
value: "Soraqçanı"
|
|
276
|
+
})), /*#__PURE__*/React.createElement(ViewModal, {
|
|
277
|
+
onCancel: closeOnViewModal,
|
|
278
|
+
width: 695
|
|
279
|
+
}, /*#__PURE__*/React.createElement(Success, {
|
|
280
|
+
onClick: closeOnViewModal,
|
|
281
|
+
value: "Soraqça"
|
|
282
|
+
}))))));
|
|
283
|
+
};
|
|
284
|
+
export default QuestionnairesDocumentTypeContent;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Switch, Tooltip } from "antd";
|
|
3
|
+
import style from "../Questionnaires.module.scss";
|
|
4
|
+
import { setDeleteModalVisible } from "../../../store/slices/global";
|
|
5
|
+
import { DeleteIconQ, EditIcon } from "../../../assets/icons";
|
|
6
|
+
export var getStreetColumns = function getStreetColumns(onEditClick, onDelete, onStatusChange, dispatch, innerW) {
|
|
7
|
+
return [{
|
|
8
|
+
title: "№",
|
|
9
|
+
dataIndex: "num",
|
|
10
|
+
showCheckbox: false,
|
|
11
|
+
ellipsis: true,
|
|
12
|
+
width: 35
|
|
13
|
+
}, {
|
|
14
|
+
title: "Ad",
|
|
15
|
+
dataIndex: "name",
|
|
16
|
+
width: innerW,
|
|
17
|
+
disabled: true,
|
|
18
|
+
ellipsis: true
|
|
19
|
+
}, {
|
|
20
|
+
title: "Soyad",
|
|
21
|
+
dataIndex: "surname",
|
|
22
|
+
width: innerW,
|
|
23
|
+
disabled: true,
|
|
24
|
+
ellipsis: true
|
|
25
|
+
}, {
|
|
26
|
+
title: "Ata Adı",
|
|
27
|
+
dataIndex: "patronymic",
|
|
28
|
+
width: innerW,
|
|
29
|
+
disabled: true,
|
|
30
|
+
ellipsis: true
|
|
31
|
+
}, {
|
|
32
|
+
title: "Müəssə",
|
|
33
|
+
dataIndex: "organisationName",
|
|
34
|
+
width: innerW,
|
|
35
|
+
disabled: true,
|
|
36
|
+
ellipsis: true
|
|
37
|
+
}, {
|
|
38
|
+
title: "Şöbə",
|
|
39
|
+
dataIndex: "departmentName",
|
|
40
|
+
width: innerW,
|
|
41
|
+
disabled: true,
|
|
42
|
+
ellipsis: true
|
|
43
|
+
}, {
|
|
44
|
+
title: "Status",
|
|
45
|
+
key: "status",
|
|
46
|
+
disabled: true,
|
|
47
|
+
filter: false,
|
|
48
|
+
render: function render(data) {
|
|
49
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
50
|
+
placement: "top",
|
|
51
|
+
title: "Statusu d\u0259yi\u015F"
|
|
52
|
+
}, /*#__PURE__*/React.createElement(Switch, {
|
|
53
|
+
size: "medium",
|
|
54
|
+
checked: data === null || data === void 0 ? void 0 : data.isActive,
|
|
55
|
+
onChange: function onChange(checked) {
|
|
56
|
+
return onStatusChange(data, checked, dispatch);
|
|
57
|
+
}
|
|
58
|
+
}));
|
|
59
|
+
}
|
|
60
|
+
}, {
|
|
61
|
+
title: "",
|
|
62
|
+
key: "actions",
|
|
63
|
+
showCheckbox: false,
|
|
64
|
+
width: 80,
|
|
65
|
+
render: function render(data) {
|
|
66
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
67
|
+
className: style.number
|
|
68
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
69
|
+
className: style.actions
|
|
70
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
71
|
+
onClick: function onClick() {
|
|
72
|
+
return onEditClick(data);
|
|
73
|
+
}
|
|
74
|
+
}, /*#__PURE__*/React.createElement(EditIcon, null)), /*#__PURE__*/React.createElement("div", {
|
|
75
|
+
onClick: function onClick() {
|
|
76
|
+
onDelete(data === null || data === void 0 ? void 0 : data.id);
|
|
77
|
+
dispatch(setDeleteModalVisible(true));
|
|
78
|
+
}
|
|
79
|
+
}, /*#__PURE__*/React.createElement(DeleteIconQ, null)))));
|
|
80
|
+
}
|
|
81
|
+
}];
|
|
82
|
+
};
|
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
+
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
5
|
+
import Select from "../../../components/Select";
|
|
6
|
+
import React from "react";
|
|
7
|
+
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
8
|
+
import Cookies from "js-cookie";
|
|
9
|
+
import style from "../Questionnaires.module.scss";
|
|
10
|
+
import { Form, Input, Layout, Select as AntdSelect } from "antd";
|
|
11
|
+
import { PlusIcon } from "../../../assets/icons";
|
|
12
|
+
import FormModal from "../../../components/FormModal";
|
|
13
|
+
import { useDispatch, useSelector } from "react-redux";
|
|
14
|
+
import Delete from "../../../components/Delete/Delete";
|
|
15
|
+
import DeleteModal from "../../../components/DeleteModal/DeleteModal";
|
|
16
|
+
import Success from "../../../components/Success/Success";
|
|
17
|
+
import { setDeleteModalVisible, setViewModalVisible } from "../../../store/slices/global";
|
|
18
|
+
import ViewModal from "../../../components/ViewModal";
|
|
19
|
+
import { getStreetColumns } from "./constant";
|
|
20
|
+
import Pagination from "../../../components/Pagination";
|
|
21
|
+
import ColSort from "../../../components/ColSort";
|
|
22
|
+
import { setPaginationLength } from "../../../helpers/paginationLength";
|
|
23
|
+
import Button from "../../../components/Button";
|
|
24
|
+
import Loading from "../../../components/Loading";
|
|
25
|
+
import Table from "../../../components/Table";
|
|
26
|
+
import Filter from "../../../components/Filter";
|
|
27
|
+
import { addDocumentWhom, deleteTopic, documentWhomVisibility, editDocumentWhom, getDocumentWhom } from "../../../store/slices/questionnaire";
|
|
28
|
+
var Content = Layout.Content;
|
|
29
|
+
var Item = Form.Item;
|
|
30
|
+
var Option = AntdSelect.Option;
|
|
31
|
+
var QuestionnairesDocumentWhomContent = function QuestionnairesDocumentWhomContent() {
|
|
32
|
+
var _useState = useState(null),
|
|
33
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
34
|
+
innerW = _useState2[0],
|
|
35
|
+
setInnerW = _useState2[1];
|
|
36
|
+
var ref = useRef();
|
|
37
|
+
var dispatch = useDispatch();
|
|
38
|
+
var _useState3 = useState(0),
|
|
39
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
40
|
+
id = _useState4[0],
|
|
41
|
+
setId = _useState4[1];
|
|
42
|
+
var _useState5 = useState(1),
|
|
43
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
44
|
+
page = _useState6[0],
|
|
45
|
+
setPage = _useState6[1];
|
|
46
|
+
var _useState7 = useState(Cookies.get("pagination-size-questionnaire-document-whom") ? JSON.parse(Cookies.get("pagination-size-questionnaire-document-whom")) : 20),
|
|
47
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
48
|
+
size = _useState8[0],
|
|
49
|
+
setSize = _useState8[1];
|
|
50
|
+
var _useState9 = useState({
|
|
51
|
+
name: ""
|
|
52
|
+
}),
|
|
53
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
54
|
+
query = _useState10[0],
|
|
55
|
+
setQuery = _useState10[1];
|
|
56
|
+
var _useState11 = useState(1),
|
|
57
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
58
|
+
typeSelect = _useState12[0],
|
|
59
|
+
setTypeSelect = _useState12[1];
|
|
60
|
+
var _useSelector = useSelector(function (state) {
|
|
61
|
+
return state.global;
|
|
62
|
+
}),
|
|
63
|
+
loading = _useSelector.loading,
|
|
64
|
+
documentWhomRender = _useSelector.documentWhomRender;
|
|
65
|
+
var documentWhom = useSelector(function (state) {
|
|
66
|
+
return state.questionnaire.documentWhom;
|
|
67
|
+
});
|
|
68
|
+
var paginationLength = setPaginationLength(documentWhom === null || documentWhom === void 0 ? void 0 : documentWhom.count, documentWhom === null || documentWhom === void 0 ? void 0 : documentWhom.size);
|
|
69
|
+
var onSubmit = useCallback(/*#__PURE__*/function () {
|
|
70
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(data) {
|
|
71
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
72
|
+
while (1) switch (_context.prev = _context.next) {
|
|
73
|
+
case 0:
|
|
74
|
+
dispatch(addDocumentWhom({
|
|
75
|
+
name: data === null || data === void 0 ? void 0 : data.name,
|
|
76
|
+
surname: data === null || data === void 0 ? void 0 : data.surname,
|
|
77
|
+
patronymic: data === null || data === void 0 ? void 0 : data.patronymic,
|
|
78
|
+
departmentname: data === null || data === void 0 ? void 0 : data.departmentname,
|
|
79
|
+
organisationname: data === null || data === void 0 ? void 0 : data.organisationname,
|
|
80
|
+
AddressType: typeSelect
|
|
81
|
+
}));
|
|
82
|
+
case 1:
|
|
83
|
+
case "end":
|
|
84
|
+
return _context.stop();
|
|
85
|
+
}
|
|
86
|
+
}, _callee);
|
|
87
|
+
}));
|
|
88
|
+
return function (_x) {
|
|
89
|
+
return _ref.apply(this, arguments);
|
|
90
|
+
};
|
|
91
|
+
}(), [dispatch, typeSelect]);
|
|
92
|
+
var onEdit = useCallback(function (id, record) {
|
|
93
|
+
var data = {
|
|
94
|
+
id: id,
|
|
95
|
+
name: record === null || record === void 0 ? void 0 : record.name,
|
|
96
|
+
surname: record === null || record === void 0 ? void 0 : record.surname,
|
|
97
|
+
patronymic: record === null || record === void 0 ? void 0 : record.patronymic,
|
|
98
|
+
departmentname: record === null || record === void 0 ? void 0 : record.departmentname,
|
|
99
|
+
organisationname: record === null || record === void 0 ? void 0 : record.organisationname,
|
|
100
|
+
AddressType: typeSelect
|
|
101
|
+
};
|
|
102
|
+
dispatch(editDocumentWhom(data));
|
|
103
|
+
}, [dispatch, typeSelect]);
|
|
104
|
+
var onStatusChange = useCallback(function (data, checked) {
|
|
105
|
+
var data_ = {
|
|
106
|
+
id: data === null || data === void 0 ? void 0 : data.id,
|
|
107
|
+
checked: checked
|
|
108
|
+
};
|
|
109
|
+
dispatch(documentWhomVisibility(data_));
|
|
110
|
+
}, [dispatch]);
|
|
111
|
+
var closeOnViewModal = useCallback(function () {
|
|
112
|
+
dispatch(setViewModalVisible(false));
|
|
113
|
+
}, [dispatch]);
|
|
114
|
+
var onClickModal = function onClickModal() {
|
|
115
|
+
var _ref$current;
|
|
116
|
+
ref === null || ref === void 0 || (_ref$current = ref.current) === null || _ref$current === void 0 || _ref$current.open();
|
|
117
|
+
};
|
|
118
|
+
var onEditClick = useCallback(function (data) {
|
|
119
|
+
var _ref$current2;
|
|
120
|
+
ref === null || ref === void 0 || (_ref$current2 = ref.current) === null || _ref$current2 === void 0 || _ref$current2.setEdit(data);
|
|
121
|
+
}, []);
|
|
122
|
+
var onDelete = useCallback(function (id) {
|
|
123
|
+
setId(id);
|
|
124
|
+
}, []);
|
|
125
|
+
var handleColumnToggle = function handleColumnToggle(checked, dataIndex) {
|
|
126
|
+
setSelectedColumns(function (prevSelected) {
|
|
127
|
+
if (checked) {
|
|
128
|
+
return [].concat(_toConsumableArray(prevSelected), [dataIndex]);
|
|
129
|
+
} else {
|
|
130
|
+
return prevSelected.filter(function (col) {
|
|
131
|
+
return col !== dataIndex;
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
};
|
|
136
|
+
var data = [];
|
|
137
|
+
if (documentWhom !== null && documentWhom !== void 0 && documentWhom.items) {
|
|
138
|
+
var _documentWhom$items;
|
|
139
|
+
data = documentWhom === null || documentWhom === void 0 || (_documentWhom$items = documentWhom.items) === null || _documentWhom$items === void 0 ? void 0 : _documentWhom$items.map(function (dataObj, i) {
|
|
140
|
+
return {
|
|
141
|
+
num: (documentWhom === null || documentWhom === void 0 ? void 0 : documentWhom.size) * (documentWhom === null || documentWhom === void 0 ? void 0 : documentWhom.page) + i + 1 - (documentWhom === null || documentWhom === void 0 ? void 0 : documentWhom.size),
|
|
142
|
+
id: dataObj === null || dataObj === void 0 ? void 0 : dataObj.id,
|
|
143
|
+
name: dataObj === null || dataObj === void 0 ? void 0 : dataObj.name,
|
|
144
|
+
surname: dataObj === null || dataObj === void 0 ? void 0 : dataObj.surname,
|
|
145
|
+
patronymic: dataObj === null || dataObj === void 0 ? void 0 : dataObj.patronymic,
|
|
146
|
+
organisationName: dataObj === null || dataObj === void 0 ? void 0 : dataObj.organisationName,
|
|
147
|
+
departmentName: dataObj === null || dataObj === void 0 ? void 0 : dataObj.departmentName,
|
|
148
|
+
isActive: dataObj === null || dataObj === void 0 ? void 0 : dataObj.isActive,
|
|
149
|
+
className: "rowClassName1"
|
|
150
|
+
};
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
var columns = useMemo(function () {
|
|
154
|
+
return getStreetColumns(onEditClick, onDelete, onStatusChange, dispatch);
|
|
155
|
+
}, [onEditClick, onDelete, onStatusChange, dispatch]);
|
|
156
|
+
var _useState13 = useState(columns.map(function (col) {
|
|
157
|
+
return col.dataIndex;
|
|
158
|
+
})),
|
|
159
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
160
|
+
selectedColumns = _useState14[0],
|
|
161
|
+
setSelectedColumns = _useState14[1];
|
|
162
|
+
useEffect(function () {
|
|
163
|
+
if (window.innerWidth >= 1900) {
|
|
164
|
+
setInnerW(210);
|
|
165
|
+
} else {
|
|
166
|
+
setInnerW(155);
|
|
167
|
+
}
|
|
168
|
+
var data = {
|
|
169
|
+
page: page,
|
|
170
|
+
size: size,
|
|
171
|
+
query: query,
|
|
172
|
+
visibility: "nondeleted",
|
|
173
|
+
types: typeSelect
|
|
174
|
+
};
|
|
175
|
+
dispatch(getDocumentWhom(data));
|
|
176
|
+
}, [dispatch, page, documentWhomRender, size, query, typeSelect]);
|
|
177
|
+
var updateSize = function updateSize(newSize) {
|
|
178
|
+
setSize(newSize); // Update state
|
|
179
|
+
Cookies.set("pagination-size-questionnaire-document-whom", JSON.stringify(newSize), {
|
|
180
|
+
expires: 7
|
|
181
|
+
}); // Save to cookies
|
|
182
|
+
};
|
|
183
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, loading ? /*#__PURE__*/React.createElement(Loading, null) : null, /*#__PURE__*/React.createElement(Layout, {
|
|
184
|
+
className: style.layout
|
|
185
|
+
}, /*#__PURE__*/React.createElement(Content, {
|
|
186
|
+
className: style.content
|
|
187
|
+
}, /*#__PURE__*/React.createElement("header", {
|
|
188
|
+
className: style.header
|
|
189
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
190
|
+
onClick: onClickModal,
|
|
191
|
+
color: "green"
|
|
192
|
+
}, " ", /*#__PURE__*/React.createElement(PlusIcon, null), " Soraq\xE7a \u0259lav\u0259 et"), /*#__PURE__*/React.createElement(Filter, {
|
|
193
|
+
columns: columns,
|
|
194
|
+
selectedColumns: selectedColumns,
|
|
195
|
+
setQuery: setQuery,
|
|
196
|
+
disabledElementCount: 3,
|
|
197
|
+
setPage: setPage
|
|
198
|
+
}))), /*#__PURE__*/React.createElement(Layout, {
|
|
199
|
+
className: style.layout1
|
|
200
|
+
}, /*#__PURE__*/React.createElement(Content, {
|
|
201
|
+
className: style.content
|
|
202
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
203
|
+
className: style.table_header
|
|
204
|
+
}, /*#__PURE__*/React.createElement("h2", null, "\u015E\u0259xsl\u0259r"), /*#__PURE__*/React.createElement("div", {
|
|
205
|
+
className: style.buttons
|
|
206
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
207
|
+
size: "sm",
|
|
208
|
+
width: 200,
|
|
209
|
+
allowClear: false,
|
|
210
|
+
value: typeSelect,
|
|
211
|
+
defaultValue: "",
|
|
212
|
+
onChange: function onChange(value) {
|
|
213
|
+
setTypeSelect(value);
|
|
214
|
+
}
|
|
215
|
+
}, /*#__PURE__*/React.createElement(Option, {
|
|
216
|
+
value: 1
|
|
217
|
+
}, "\u015E\u0259xs"), /*#__PURE__*/React.createElement(Option, {
|
|
218
|
+
value: 2
|
|
219
|
+
}, "M\xFC\u0259ssis\u0259")), /*#__PURE__*/React.createElement(ColSort, {
|
|
220
|
+
columns: columns,
|
|
221
|
+
selectedColumns: selectedColumns,
|
|
222
|
+
handleColumnToggle: handleColumnToggle
|
|
223
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
224
|
+
className: "bigTable"
|
|
225
|
+
}, /*#__PURE__*/React.createElement(Table, {
|
|
226
|
+
selectedColumns: selectedColumns,
|
|
227
|
+
innerW: innerW,
|
|
228
|
+
dataSource: data,
|
|
229
|
+
columns: columns,
|
|
230
|
+
disableDrag: true
|
|
231
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
232
|
+
className: style.pagination
|
|
233
|
+
}, /*#__PURE__*/React.createElement(Pagination, {
|
|
234
|
+
size: size,
|
|
235
|
+
setSize: updateSize,
|
|
236
|
+
total: paginationLength,
|
|
237
|
+
page: page,
|
|
238
|
+
onChange: setPage
|
|
239
|
+
})), /*#__PURE__*/React.createElement(FormModal, {
|
|
240
|
+
ref: ref,
|
|
241
|
+
width: 454,
|
|
242
|
+
title: "Yeni soraqça yaratma",
|
|
243
|
+
titleEdit: "Soraqça redaktə etmə",
|
|
244
|
+
okText: "Yadda saxla",
|
|
245
|
+
cancelText: "Bağla",
|
|
246
|
+
onSubmit: onSubmit,
|
|
247
|
+
onEdit: onEdit,
|
|
248
|
+
className: "absolute",
|
|
249
|
+
centered: false
|
|
250
|
+
}, /*#__PURE__*/React.createElement(Item, {
|
|
251
|
+
rules: [{
|
|
252
|
+
required: false,
|
|
253
|
+
message: ""
|
|
254
|
+
}, {
|
|
255
|
+
min: 3,
|
|
256
|
+
message: "Ən azından 3 simvol olmalıdır"
|
|
257
|
+
}],
|
|
258
|
+
name: "name",
|
|
259
|
+
label: "Ad"
|
|
260
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
261
|
+
className: style.modal_input
|
|
262
|
+
})), /*#__PURE__*/React.createElement(Item, {
|
|
263
|
+
rules: [{
|
|
264
|
+
required: false,
|
|
265
|
+
message: ""
|
|
266
|
+
}, {
|
|
267
|
+
min: 3,
|
|
268
|
+
message: "Ən azından 3 simvol olmalıdır"
|
|
269
|
+
}],
|
|
270
|
+
name: "surname",
|
|
271
|
+
label: "Soyad"
|
|
272
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
273
|
+
className: style.modal_input
|
|
274
|
+
})), /*#__PURE__*/React.createElement(Item, {
|
|
275
|
+
rules: [{
|
|
276
|
+
required: false,
|
|
277
|
+
message: ""
|
|
278
|
+
}, {
|
|
279
|
+
min: 3,
|
|
280
|
+
message: "Ən azından 3 simvol olmalıdır"
|
|
281
|
+
}],
|
|
282
|
+
name: "patronymic",
|
|
283
|
+
label: "Ata Adı"
|
|
284
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
285
|
+
className: style.modal_input
|
|
286
|
+
})), /*#__PURE__*/React.createElement(Item, {
|
|
287
|
+
rules: [{
|
|
288
|
+
required: false,
|
|
289
|
+
message: ""
|
|
290
|
+
}, {
|
|
291
|
+
min: 3,
|
|
292
|
+
message: "Ən azından 3 simvol olmalıdır"
|
|
293
|
+
}],
|
|
294
|
+
name: "organisationName",
|
|
295
|
+
label: "Müəssə"
|
|
296
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
297
|
+
className: style.modal_input
|
|
298
|
+
})), /*#__PURE__*/React.createElement(Item, {
|
|
299
|
+
rules: [{
|
|
300
|
+
required: false,
|
|
301
|
+
message: ""
|
|
302
|
+
}, {
|
|
303
|
+
min: 3,
|
|
304
|
+
message: "Ən azından 3 simvol olmalıdır"
|
|
305
|
+
}],
|
|
306
|
+
name: "departmentName",
|
|
307
|
+
label: "Şöbə"
|
|
308
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
309
|
+
className: style.modal_input
|
|
310
|
+
}))), /*#__PURE__*/React.createElement(DeleteModal, {
|
|
311
|
+
onCancel: function onCancel() {
|
|
312
|
+
return dispatch(setDeleteModalVisible(false));
|
|
313
|
+
},
|
|
314
|
+
width: 280
|
|
315
|
+
}, /*#__PURE__*/React.createElement(Delete, {
|
|
316
|
+
onDelete: function onDelete() {
|
|
317
|
+
return dispatch(deleteTopic(id));
|
|
318
|
+
},
|
|
319
|
+
onCancel: function onCancel() {
|
|
320
|
+
return dispatch(setDeleteModalVisible(false));
|
|
321
|
+
},
|
|
322
|
+
value: "Soraqçanı"
|
|
323
|
+
})), /*#__PURE__*/React.createElement(ViewModal, {
|
|
324
|
+
onCancel: closeOnViewModal,
|
|
325
|
+
width: 695
|
|
326
|
+
}, /*#__PURE__*/React.createElement(Success, {
|
|
327
|
+
onClick: closeOnViewModal,
|
|
328
|
+
value: "Soraqça"
|
|
329
|
+
}))))));
|
|
330
|
+
};
|
|
331
|
+
export default QuestionnairesDocumentWhomContent;
|