@banch0u/core-project-test-repository 2.2.3 → 2.2.8

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.
Files changed (134) hide show
  1. package/README.md +104 -104
  2. package/dist/assets/css/antd.css +842 -842
  3. package/dist/assets/css/variables.css +16 -16
  4. package/dist/assets/fonts/fonts.css +52 -52
  5. package/dist/components/Button/index.module.scss +154 -154
  6. package/dist/components/ColSort/index.module.scss +62 -62
  7. package/dist/components/Delete/Delete.module.scss +22 -22
  8. package/dist/components/DeleteModal/DeleteModal.module.scss +11 -11
  9. package/dist/components/Filter/index.module.scss +99 -99
  10. package/dist/components/FormModal/index.js +16 -16
  11. package/dist/components/FormModal/index.module.scss +14 -14
  12. package/dist/components/ImagePreviewModal/index.js +23 -23
  13. package/dist/components/ImagePreviewModal/index.module.scss +27 -27
  14. package/dist/components/Input/index.module.scss +111 -111
  15. package/dist/components/Loading/index.module.scss +18 -18
  16. package/dist/components/NotificationDropdown/index.js +8 -8
  17. package/dist/components/NotificationDropdown/index.module.scss +83 -83
  18. package/dist/components/NotificationSettingsContent/index.module.scss +70 -70
  19. package/dist/components/Pagination/Pagination.module.scss +8 -8
  20. package/dist/components/ProfileOptions/index.js +21 -21
  21. package/dist/components/ProfileOptions/index.module.scss +265 -265
  22. package/dist/components/Select/index.module.scss +72 -72
  23. package/dist/components/Success/Success.module.scss +26 -26
  24. package/dist/components/Table/index.module.scss +76 -76
  25. package/dist/helpers/enums.js +10 -0
  26. package/dist/index.css +32 -32
  27. package/dist/layout/Header/AppSelect/index.module.scss +72 -72
  28. package/dist/layout/Header/index.module.scss +12 -12
  29. package/dist/layout/QuestionnairesLayout/index.module.scss +3 -3
  30. package/dist/layout/QuestionnairesSidebar/index.js +26 -2
  31. package/dist/layout/QuestionnairesSidebar/index.module.scss +77 -77
  32. package/dist/layout/Sidebar/index.js +15 -15
  33. package/dist/layout/Sidebar/index.module.scss +67 -67
  34. package/dist/pages/Login/index.js +15 -15
  35. package/dist/pages/Login/index.module.scss +123 -123
  36. package/dist/pages/NotFound/index.module.scss +50 -50
  37. package/dist/pages/Platform/index.js +15 -15
  38. package/dist/pages/Platform/index.module.scss +125 -125
  39. package/dist/pages/Questionnnaires/Questionnaires.module.scss +211 -211
  40. package/dist/pages/Questionnnaires/QuestionnairesAcademicdegreesContent/index.js +12 -12
  41. package/dist/pages/Questionnnaires/QuestionnairesApplicationFormContent/index.js +8 -8
  42. package/dist/pages/Questionnnaires/QuestionnairesAreasContent/index.js +8 -8
  43. package/dist/pages/Questionnnaires/QuestionnairesBarrelContent/constant.js +64 -0
  44. package/dist/pages/Questionnnaires/QuestionnairesBarrelContent/index.js +292 -0
  45. package/dist/pages/Questionnnaires/QuestionnairesBrandsContent/index.js +8 -8
  46. package/dist/pages/Questionnnaires/QuestionnairesCategoriesContent/index.js +8 -8
  47. package/dist/pages/Questionnnaires/QuestionnairesChassisTypesContent/index.js +8 -8
  48. package/dist/pages/Questionnnaires/QuestionnairesChemicalsContent/index.js +12 -12
  49. package/dist/pages/Questionnnaires/QuestionnairesColorsContent/index.js +8 -8
  50. package/dist/pages/Questionnnaires/QuestionnairesCompaniesContent/index.js +8 -8
  51. package/dist/pages/Questionnnaires/QuestionnairesContractTopicsContent/index.js +8 -8
  52. package/dist/pages/Questionnnaires/QuestionnairesContractTypesSubtypesContent/index.js +12 -12
  53. package/dist/pages/Questionnnaires/QuestionnairesContractcurrenciesContent/index.js +8 -8
  54. package/dist/pages/Questionnnaires/QuestionnairesContracttypesContent/index.js +8 -8
  55. package/dist/pages/Questionnnaires/QuestionnairesContragenttypesContent/index.js +8 -8
  56. package/dist/pages/Questionnnaires/QuestionnairesCountriesContent/index.js +8 -8
  57. package/dist/pages/Questionnnaires/QuestionnairesCrushReasonsContent/index.js +8 -8
  58. package/dist/pages/Questionnnaires/QuestionnairesDefaultAgreementPlansContent/index.js +23 -23
  59. package/dist/pages/Questionnnaires/QuestionnairesDeliveryMethodContent/index.js +8 -8
  60. package/dist/pages/Questionnnaires/QuestionnairesDetailPartsContent/index.js +8 -8
  61. package/dist/pages/Questionnnaires/QuestionnairesDisabilitystatusesContent/index.js +12 -12
  62. package/dist/pages/Questionnnaires/QuestionnairesDocumentRecieveMethodsContent/index.js +8 -8
  63. package/dist/pages/Questionnnaires/QuestionnairesDocumentTypeContent/index.js +12 -12
  64. package/dist/pages/Questionnnaires/QuestionnairesDocumentWhomContent/index.js +12 -12
  65. package/dist/pages/Questionnnaires/QuestionnairesDrivingcategoriesContent/index.js +8 -8
  66. package/dist/pages/Questionnnaires/QuestionnairesEducationinstitutionsContent/index.js +12 -12
  67. package/dist/pages/Questionnnaires/QuestionnairesEducationlevelsContent/index.js +12 -12
  68. package/dist/pages/Questionnnaires/QuestionnairesEducationpaymentsContent/index.js +12 -12
  69. package/dist/pages/Questionnnaires/QuestionnairesEmployeeConfigurations/index.js +13 -13
  70. package/dist/pages/Questionnnaires/QuestionnairesEngineTypesContent/index.js +8 -8
  71. package/dist/pages/Questionnnaires/QuestionnairesExecutionRulesContent/index.js +8 -8
  72. package/dist/pages/Questionnnaires/QuestionnairesExtraServicesContent/index.js +8 -8
  73. package/dist/pages/Questionnnaires/QuestionnairesFieldContent/constant.js +64 -0
  74. package/dist/pages/Questionnnaires/QuestionnairesFieldContent/index.js +275 -0
  75. package/dist/pages/Questionnnaires/QuestionnairesFuelTypesContent/index.js +8 -8
  76. package/dist/pages/Questionnnaires/QuestionnairesGearboxTypesContent/index.js +8 -8
  77. package/dist/pages/Questionnnaires/QuestionnairesGeneralstructurestatusesContent/index.js +12 -12
  78. package/dist/pages/Questionnnaires/QuestionnairesGeneralstructuretypesContent/index.js +12 -12
  79. package/dist/pages/Questionnnaires/QuestionnairesHallsContent/index.js +8 -8
  80. package/dist/pages/Questionnnaires/QuestionnairesHonorarytitlesContent/index.js +12 -12
  81. package/dist/pages/Questionnnaires/QuestionnairesInsurancetypesContent/index.js +8 -8
  82. package/dist/pages/Questionnnaires/QuestionnairesInternalStructureContent/index.js +8 -8
  83. package/dist/pages/Questionnnaires/QuestionnairesIssuedAuthoritiesContent/index.js +8 -8
  84. package/dist/pages/Questionnnaires/QuestionnairesMarginNoteTextsContent/index.js +8 -8
  85. package/dist/pages/Questionnnaires/QuestionnairesMeasurementTypesContent/index.js +8 -8
  86. package/dist/pages/Questionnnaires/QuestionnairesMilitarycategoriesContent/index.js +12 -12
  87. package/dist/pages/Questionnnaires/QuestionnairesMilitarygroupsContent/index.js +12 -12
  88. package/dist/pages/Questionnnaires/QuestionnairesMilitaryranksContent/index.js +12 -12
  89. package/dist/pages/Questionnnaires/QuestionnairesMilitarystaffsContent/index.js +12 -12
  90. package/dist/pages/Questionnnaires/QuestionnairesModelsContent/index.js +13 -13
  91. package/dist/pages/Questionnnaires/QuestionnairesOilFieldsContent/index.js +8 -8
  92. package/dist/pages/Questionnnaires/QuestionnairesOrdersContent/index.js +8 -8
  93. package/dist/pages/Questionnnaires/QuestionnairesOrganizationsContent/index.js +8 -8
  94. package/dist/pages/Questionnnaires/QuestionnairesOwnersContent/index.js +8 -8
  95. package/dist/pages/Questionnnaires/QuestionnairesOwnershipTypesContent/index.js +8 -8
  96. package/dist/pages/Questionnnaires/QuestionnairesPenaltyTypesContent/index.js +8 -8
  97. package/dist/pages/Questionnnaires/QuestionnairesPositionsContent/index.js +12 -12
  98. package/dist/pages/Questionnnaires/QuestionnairesRegionsContent/index.js +8 -8
  99. package/dist/pages/Questionnnaires/QuestionnairesRepairTypesContent/index.js +8 -8
  100. package/dist/pages/Questionnnaires/QuestionnairesRepairmentWorkTypesContent/index.js +8 -8
  101. package/dist/pages/Questionnnaires/QuestionnairesReprimandtypesContent/index.js +12 -12
  102. package/dist/pages/Questionnnaires/QuestionnairesRouteLocationsContent/index.js +8 -8
  103. package/dist/pages/Questionnnaires/QuestionnairesSpecialdaysContent/index.js +12 -12
  104. package/dist/pages/Questionnnaires/QuestionnairesSpecializationsContent/index.js +12 -12
  105. package/dist/pages/Questionnnaires/QuestionnairesStructuresContent/index.js +8 -8
  106. package/dist/pages/Questionnnaires/QuestionnairesSubtopicContent/index.js +15 -15
  107. package/dist/pages/Questionnnaires/QuestionnairesTopicContent/index.js +12 -12
  108. package/dist/pages/Questionnnaires/QuestionnairesTransmitterTypesContent/index.js +8 -8
  109. package/dist/pages/Questionnnaires/QuestionnairesVehicleCategoriesContent/index.js +8 -8
  110. package/dist/pages/Questionnnaires/QuestionnairesVehicleGroupsContent/index.js +8 -8
  111. package/dist/pages/Questionnnaires/QuestionnairesVehicleTypesContent/index.js +8 -8
  112. package/dist/pages/Questionnnaires/QuestionnairesWarparticipantsContent/index.js +12 -12
  113. package/dist/pages/Questionnnaires/QuestionnairesWellContent/constant.js +64 -0
  114. package/dist/pages/Questionnnaires/QuestionnairesWellContent/index.js +280 -0
  115. package/dist/pages/Questionnnaires/QuestionnairesWorkModesContent/index.js +8 -8
  116. package/dist/pages/Questionnnaires/QuestionnairesWorkschedulesContent/index.js +12 -12
  117. package/dist/routes/QuestionnaireRoutes.js +19 -1
  118. package/dist/store/slices/auth/index.js +60 -60
  119. package/dist/store/slices/auth/service.js +20 -20
  120. package/dist/store/slices/companyInfo/index.js +10 -10
  121. package/dist/store/slices/companyInfo/service.js +4 -4
  122. package/dist/store/slices/employees/index.js +30 -30
  123. package/dist/store/slices/employees/service.js +12 -12
  124. package/dist/store/slices/global/index.js +170 -152
  125. package/dist/store/slices/notification/index.js +73 -73
  126. package/dist/store/slices/notification/service.js +24 -24
  127. package/dist/store/slices/questionnaire/index.js +9154 -8527
  128. package/dist/store/slices/questionnaire/service.js +3467 -3083
  129. package/dist/tools/questionnaireGenerator.js +12 -12
  130. package/dist/translations/index.json +364 -364
  131. package/dist/utils/axios.js +27 -141
  132. package/dist/utils/message.js +2 -2
  133. package/dist/utils/path.js +12 -0
  134. package/package.json +1 -1
@@ -0,0 +1,64 @@
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: "Sahə",
21
+ dataIndex: "fieldName",
22
+ width: innerW,
23
+ disabled: true,
24
+ ellipsis: true
25
+ }, {
26
+ title: "Status",
27
+ key: "status",
28
+ disabled: true,
29
+ filter: false,
30
+ render: function render(data) {
31
+ return /*#__PURE__*/React.createElement(Tooltip, {
32
+ placement: "top",
33
+ title: "Statusu d\u0259yi\u015F"
34
+ }, /*#__PURE__*/React.createElement(Switch, {
35
+ size: "medium",
36
+ checked: data === null || data === void 0 ? void 0 : data.isActive,
37
+ onChange: function onChange(checked) {
38
+ return onStatusChange(data, checked, dispatch);
39
+ }
40
+ }));
41
+ }
42
+ }, {
43
+ title: "",
44
+ key: "actions",
45
+ showCheckbox: false,
46
+ width: 80,
47
+ render: function render(data) {
48
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
49
+ className: style.number
50
+ }, /*#__PURE__*/React.createElement("div", {
51
+ className: style.actions
52
+ }, /*#__PURE__*/React.createElement("div", {
53
+ onClick: function onClick() {
54
+ return onEditClick(data);
55
+ }
56
+ }, /*#__PURE__*/React.createElement(EditIcon, null)), /*#__PURE__*/React.createElement("div", {
57
+ onClick: function onClick() {
58
+ onDelete(data === null || data === void 0 ? void 0 : data.id);
59
+ dispatch(setDeleteModalVisible(true));
60
+ }
61
+ }, /*#__PURE__*/React.createElement(DeleteIconQ, null)))));
62
+ }
63
+ }];
64
+ };
@@ -0,0 +1,280 @@
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 React from "react";
9
+ import { useCallback, useEffect, useMemo, useRef, useState } from "react";
10
+ import Cookies from "js-cookie";
11
+ import style from "../Questionnaires.module.scss";
12
+ import { Form, Input, Layout, Select as AntdSelect } from "antd";
13
+ import { PlusIcon } from "../../../assets/icons";
14
+ import FormModal from "../../../components/FormModal";
15
+ import { useDispatch, useSelector } from "react-redux";
16
+ import Delete from "../../../components/Delete/Delete";
17
+ import DeleteModal from "../../../components/DeleteModal/DeleteModal";
18
+ import Success from "../../../components/Success/Success";
19
+ import { setDeleteModalVisible, setViewModalVisible } from "../../../store/slices/global";
20
+ import ViewModal from "../../../components/ViewModal";
21
+ import { getStreetColumns } from "./constant";
22
+ import Pagination from "../../../components/Pagination";
23
+ import ColSort from "../../../components/ColSort";
24
+ import { setPaginationLength } from "../../../helpers/paginationLength";
25
+ import Button from "../../../components/Button";
26
+ import Loading from "../../../components/Loading";
27
+ import Table from "../../../components/Table";
28
+ import Filter from "../../../components/Filter";
29
+ import { addWell, deleteWell, editWell, getFieldAll, getWell, wellVisibility } from "../../../store/slices/questionnaire";
30
+ import { typeENUM } from "../../../helpers/enums";
31
+ import Select from "../../../components/Select";
32
+ var Option = AntdSelect.Option;
33
+ var Content = Layout.Content;
34
+ var Item = Form.Item;
35
+ var QuestionnairesWellContent = function QuestionnairesWellContent() {
36
+ var _useState = useState(null),
37
+ _useState2 = _slicedToArray(_useState, 2),
38
+ innerW = _useState2[0],
39
+ setInnerW = _useState2[1];
40
+ var ref = useRef();
41
+ var dispatch = useDispatch();
42
+ var _useState3 = useState(0),
43
+ _useState4 = _slicedToArray(_useState3, 2),
44
+ id = _useState4[0],
45
+ setId = _useState4[1];
46
+ var _useState5 = useState(1),
47
+ _useState6 = _slicedToArray(_useState5, 2),
48
+ page = _useState6[0],
49
+ setPage = _useState6[1];
50
+ var _useState7 = useState(Cookies.get("pagination-size-questionnaire-extra-services") ? JSON.parse(Cookies.get("pagination-size-questionnaire-extra-services")) : 20),
51
+ _useState8 = _slicedToArray(_useState7, 2),
52
+ size = _useState8[0],
53
+ setSize = _useState8[1];
54
+ var _useState9 = useState({
55
+ name: ""
56
+ }),
57
+ _useState0 = _slicedToArray(_useState9, 2),
58
+ query = _useState0[0],
59
+ setQuery = _useState0[1];
60
+ var _useSelector = useSelector(function (state) {
61
+ return state.global;
62
+ }),
63
+ loading = _useSelector.loading,
64
+ wellRender = _useSelector.wellRender;
65
+ var well = useSelector(function (state) {
66
+ return state.questionnaire.well;
67
+ });
68
+ var fieldsAll = useSelector(function (state) {
69
+ return state.questionnaire.fieldsAll;
70
+ });
71
+ console.log("well", well);
72
+ var paginationLength = setPaginationLength(well === null || well === void 0 ? void 0 : well.count, well === null || well === void 0 ? void 0 : well.size);
73
+ var onSubmit = useCallback(/*#__PURE__*/function () {
74
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(data) {
75
+ return _regeneratorRuntime.wrap(function (_context) {
76
+ while (1) switch (_context.prev = _context.next) {
77
+ case 0:
78
+ dispatch(addWell(_objectSpread({}, data)));
79
+ case 1:
80
+ case "end":
81
+ return _context.stop();
82
+ }
83
+ }, _callee);
84
+ }));
85
+ return function (_x) {
86
+ return _ref.apply(this, arguments);
87
+ };
88
+ }(), [dispatch]);
89
+ var onEdit = useCallback(function (id, record) {
90
+ console.log(record);
91
+ var data = {
92
+ id: id,
93
+ name: record === null || record === void 0 ? void 0 : record.name
94
+ };
95
+ dispatch(editWell(data));
96
+ }, [dispatch]);
97
+ var onStatusChange = useCallback(function (data, checked) {
98
+ var data_ = {
99
+ id: data === null || data === void 0 ? void 0 : data.id,
100
+ checked: checked
101
+ };
102
+ dispatch(wellVisibility(data_));
103
+ }, [dispatch]);
104
+ var closeOnViewModal = useCallback(function () {
105
+ dispatch(setViewModalVisible(false));
106
+ }, [dispatch]);
107
+ var onClickModal = function onClickModal() {
108
+ var _ref$current;
109
+ ref === null || ref === void 0 || (_ref$current = ref.current) === null || _ref$current === void 0 || _ref$current.open();
110
+ };
111
+ var onEditClick = useCallback(function (data) {
112
+ var _ref$current2;
113
+ ref === null || ref === void 0 || (_ref$current2 = ref.current) === null || _ref$current2 === void 0 || _ref$current2.setEdit(data);
114
+ }, []);
115
+ var onDelete = useCallback(function (id) {
116
+ setId(id);
117
+ }, []);
118
+ var handleColumnToggle = function handleColumnToggle(checked, dataIndex) {
119
+ setSelectedColumns(function (prevSelected) {
120
+ if (checked) {
121
+ return [].concat(_toConsumableArray(prevSelected), [dataIndex]);
122
+ } else {
123
+ return prevSelected.filter(function (col) {
124
+ return col !== dataIndex;
125
+ });
126
+ }
127
+ });
128
+ };
129
+ var idFinder = function idFinder(id) {
130
+ var _typeENUM$find;
131
+ return (_typeENUM$find = typeENUM.find(function (item) {
132
+ return item.id === id;
133
+ })) === null || _typeENUM$find === void 0 ? void 0 : _typeENUM$find.text;
134
+ };
135
+ var data = [];
136
+ if (well !== null && well !== void 0 && well.items) {
137
+ var _well$items;
138
+ data = well === null || well === void 0 || (_well$items = well.items) === null || _well$items === void 0 ? void 0 : _well$items.map(function (dataObj, i) {
139
+ return {
140
+ num: (well === null || well === void 0 ? void 0 : well.size) * (well === null || well === void 0 ? void 0 : well.page) + i + 1 - (well === null || well === void 0 ? void 0 : well.size),
141
+ id: dataObj === null || dataObj === void 0 ? void 0 : dataObj.id,
142
+ name: dataObj === null || dataObj === void 0 ? void 0 : dataObj.name,
143
+ isActive: dataObj === null || dataObj === void 0 ? void 0 : dataObj.isActive,
144
+ className: "rowClassName1",
145
+ fieldName: dataObj.fieldName
146
+ };
147
+ });
148
+ }
149
+ var columns = useMemo(function () {
150
+ return getStreetColumns(onEditClick, onDelete, onStatusChange, dispatch);
151
+ }, [onEditClick, onDelete, onStatusChange, dispatch]);
152
+ var _useState1 = useState(columns.map(function (col) {
153
+ return col.dataIndex;
154
+ })),
155
+ _useState10 = _slicedToArray(_useState1, 2),
156
+ selectedColumns = _useState10[0],
157
+ setSelectedColumns = _useState10[1];
158
+ useEffect(function () {
159
+ if (window.innerWidth >= 1900) {
160
+ setInnerW(210);
161
+ } else {
162
+ setInnerW(155);
163
+ }
164
+ var data = {
165
+ page: page,
166
+ size: size,
167
+ query: query,
168
+ visibility: "nondeleted"
169
+ };
170
+ dispatch(getWell(data));
171
+ }, [dispatch, page, wellRender, size, query]);
172
+ useEffect(function () {
173
+ dispatch(getFieldAll("onlyactive"));
174
+ }, [dispatch]);
175
+ var updateSize = function updateSize(newSize) {
176
+ setSize(newSize); // Update state
177
+ Cookies.set("pagination-size-questionnaire-extra-services", JSON.stringify(newSize), {
178
+ expires: 7
179
+ }); // Save to cookies
180
+ };
181
+ return /*#__PURE__*/React.createElement(React.Fragment, null, loading ? /*#__PURE__*/React.createElement(Loading, null) : null, /*#__PURE__*/React.createElement(Layout, {
182
+ className: style.layout
183
+ }, /*#__PURE__*/React.createElement(Content, {
184
+ className: style.content
185
+ }, /*#__PURE__*/React.createElement("header", {
186
+ className: style.header
187
+ }, /*#__PURE__*/React.createElement(Button, {
188
+ onClick: onClickModal,
189
+ color: "green"
190
+ }, " ", /*#__PURE__*/React.createElement(PlusIcon, null), " Soraq\xE7a \u0259lav\u0259 et"), /*#__PURE__*/React.createElement(Filter, {
191
+ columns: columns,
192
+ selectedColumns: selectedColumns,
193
+ setQuery: setQuery,
194
+ disabledElementCount: 3,
195
+ setPage: setPage
196
+ }))), /*#__PURE__*/React.createElement(Layout, {
197
+ className: style.layout1
198
+ }, /*#__PURE__*/React.createElement(Content, {
199
+ className: style.content
200
+ }, /*#__PURE__*/React.createElement("div", {
201
+ className: style.table_header
202
+ }, /*#__PURE__*/React.createElement("h2", null, "Quyu"), /*#__PURE__*/React.createElement("div", {
203
+ className: style.buttons
204
+ }, /*#__PURE__*/React.createElement(ColSort, {
205
+ columns: columns,
206
+ selectedColumns: selectedColumns,
207
+ handleColumnToggle: handleColumnToggle
208
+ }))), /*#__PURE__*/React.createElement("div", {
209
+ className: "bigTable"
210
+ }, /*#__PURE__*/React.createElement(Table, {
211
+ selectedColumns: selectedColumns,
212
+ innerW: innerW,
213
+ dataSource: data,
214
+ columns: columns,
215
+ disableDrag: true
216
+ })), /*#__PURE__*/React.createElement("div", {
217
+ className: style.pagination
218
+ }, /*#__PURE__*/React.createElement(Pagination, {
219
+ size: size,
220
+ setSize: updateSize,
221
+ total: paginationLength,
222
+ page: page,
223
+ onChange: setPage
224
+ })), /*#__PURE__*/React.createElement(FormModal, {
225
+ ref: ref,
226
+ width: 454,
227
+ title: "Yeni soraqça yaratma",
228
+ titleEdit: "Soraqça redaktə etmə",
229
+ okText: "Yadda saxla",
230
+ cancelText: "Bağla",
231
+ onSubmit: onSubmit,
232
+ onEdit: onEdit,
233
+ className: "absolute",
234
+ centered: false
235
+ }, /*#__PURE__*/React.createElement(Item, {
236
+ className: style.label,
237
+ rules: [{
238
+ required: true,
239
+ message: ""
240
+ }],
241
+ name: "name",
242
+ label: "Ad"
243
+ }, /*#__PURE__*/React.createElement(Input, {
244
+ className: style.modal_input,
245
+ type: "text"
246
+ })), /*#__PURE__*/React.createElement(Item, {
247
+ className: style.label,
248
+ rules: [{
249
+ required: true,
250
+ message: ""
251
+ }],
252
+ name: "fieldId",
253
+ label: "Sah\u0259"
254
+ }, /*#__PURE__*/React.createElement(Select, null, fieldsAll === null || fieldsAll === void 0 ? void 0 : fieldsAll.map(function (item) {
255
+ return /*#__PURE__*/React.createElement(Option, {
256
+ value: item.id,
257
+ key: item.id
258
+ }, item.name);
259
+ })))), /*#__PURE__*/React.createElement(DeleteModal, {
260
+ onCancel: function onCancel() {
261
+ return dispatch(setDeleteModalVisible(false));
262
+ },
263
+ width: 280
264
+ }, /*#__PURE__*/React.createElement(Delete, {
265
+ onDelete: function onDelete() {
266
+ return dispatch(deleteWell(id));
267
+ },
268
+ onCancel: function onCancel() {
269
+ return dispatch(setDeleteModalVisible(false));
270
+ },
271
+ value: "Soraqçanı"
272
+ })), /*#__PURE__*/React.createElement(ViewModal, {
273
+ onCancel: closeOnViewModal,
274
+ width: 695
275
+ }, /*#__PURE__*/React.createElement(Success, {
276
+ onClick: closeOnViewModal,
277
+ value: "Soraqça"
278
+ }))))));
279
+ };
280
+ export default QuestionnairesWellContent;
@@ -48,9 +48,9 @@ var QuestionnairesWorkModesContent = function QuestionnairesWorkModesContent() {
48
48
  var _useState9 = useState({
49
49
  name: ""
50
50
  }),
51
- _useState10 = _slicedToArray(_useState9, 2),
52
- query = _useState10[0],
53
- setQuery = _useState10[1];
51
+ _useState0 = _slicedToArray(_useState9, 2),
52
+ query = _useState0[0],
53
+ setQuery = _useState0[1];
54
54
  var _useSelector = useSelector(function (state) {
55
55
  return state.global;
56
56
  }),
@@ -62,7 +62,7 @@ var QuestionnairesWorkModesContent = function QuestionnairesWorkModesContent() {
62
62
  var paginationLength = setPaginationLength(workModes === null || workModes === void 0 ? void 0 : workModes.count, workModes === null || workModes === void 0 ? void 0 : workModes.size);
63
63
  var onSubmit = useCallback(/*#__PURE__*/function () {
64
64
  var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(data) {
65
- return _regeneratorRuntime.wrap(function _callee$(_context) {
65
+ return _regeneratorRuntime.wrap(function (_context) {
66
66
  while (1) switch (_context.prev = _context.next) {
67
67
  case 0:
68
68
  dispatch(addWorkModes(data));
@@ -133,12 +133,12 @@ var QuestionnairesWorkModesContent = function QuestionnairesWorkModesContent() {
133
133
  var columns = useMemo(function () {
134
134
  return getStreetColumns(onEditClick, onDelete, onStatusChange, dispatch);
135
135
  }, [onEditClick, onDelete, onStatusChange, dispatch]);
136
- var _useState11 = useState(columns.map(function (col) {
136
+ var _useState1 = useState(columns.map(function (col) {
137
137
  return col.dataIndex;
138
138
  })),
139
- _useState12 = _slicedToArray(_useState11, 2),
140
- selectedColumns = _useState12[0],
141
- setSelectedColumns = _useState12[1];
139
+ _useState10 = _slicedToArray(_useState1, 2),
140
+ selectedColumns = _useState10[0],
141
+ setSelectedColumns = _useState10[1];
142
142
  useEffect(function () {
143
143
  if (window.innerWidth >= 1900) {
144
144
  setInnerW(210);
@@ -51,13 +51,13 @@ var QuestionnairesDocumentTypeContent = function QuestionnairesDocumentTypeConte
51
51
  var _useState9 = useState({
52
52
  name: ""
53
53
  }),
54
- _useState10 = _slicedToArray(_useState9, 2),
55
- query = _useState10[0],
56
- setQuery = _useState10[1];
57
- var _useState11 = useState(1),
58
- _useState12 = _slicedToArray(_useState11, 2),
59
- typeSelect = _useState12[0],
60
- setTypeSelect = _useState12[1];
54
+ _useState0 = _slicedToArray(_useState9, 2),
55
+ query = _useState0[0],
56
+ setQuery = _useState0[1];
57
+ var _useState1 = useState(1),
58
+ _useState10 = _slicedToArray(_useState1, 2),
59
+ typeSelect = _useState10[0],
60
+ setTypeSelect = _useState10[1];
61
61
  var _useSelector = useSelector(function (state) {
62
62
  return state.global;
63
63
  }),
@@ -69,7 +69,7 @@ var QuestionnairesDocumentTypeContent = function QuestionnairesDocumentTypeConte
69
69
  var paginationLength = setPaginationLength(workschedules === null || workschedules === void 0 ? void 0 : workschedules.count, workschedules === null || workschedules === void 0 ? void 0 : workschedules.size);
70
70
  var onSubmit = useCallback(/*#__PURE__*/function () {
71
71
  var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(data) {
72
- return _regeneratorRuntime.wrap(function _callee$(_context) {
72
+ return _regeneratorRuntime.wrap(function (_context) {
73
73
  while (1) switch (_context.prev = _context.next) {
74
74
  case 0:
75
75
  dispatch(addWorkschedules(_objectSpread(_objectSpread({}, data), {}, {
@@ -152,12 +152,12 @@ var QuestionnairesDocumentTypeContent = function QuestionnairesDocumentTypeConte
152
152
  var columns = useMemo(function () {
153
153
  return getStreetColumns(onEditClick, onDelete, onStatusChange, dispatch);
154
154
  }, [onEditClick, onDelete, onStatusChange, dispatch]);
155
- var _useState13 = useState(columns.map(function (col) {
155
+ var _useState11 = useState(columns.map(function (col) {
156
156
  return col.dataIndex;
157
157
  })),
158
- _useState14 = _slicedToArray(_useState13, 2),
159
- selectedColumns = _useState14[0],
160
- setSelectedColumns = _useState14[1];
158
+ _useState12 = _slicedToArray(_useState11, 2),
159
+ selectedColumns = _useState12[0],
160
+ setSelectedColumns = _useState12[1];
161
161
  useEffect(function () {
162
162
  if (window.innerWidth >= 1900) {
163
163
  setInnerW(210);
@@ -33,7 +33,7 @@ import QuestionnairesMarginNoteTextsContent from "../pages/Questionnnaires/Quest
33
33
  import QuestionnairesBrandsContent from "../pages/Questionnnaires/QuestionnairesBrandsContent";
34
34
  import QuestionnairesChassisTypesContent from "../pages/Questionnnaires/QuestionnairesChassisTypesContent";
35
35
  import QuestionnairesColorsContent from "../pages/Questionnnaires/QuestionnairesColorsContent";
36
- import { QUESTIONNAIRES_TOPIC, QUESTIONNAIRES_SUBTOPIC, QUESTIONNAIRES_EXECUTION_RULES, QUESTIONNAIRES_DOCUMENT_RECIEVE_METHODS, QUESTIONNAIRES_DOCUMENT_TYPES, QUESTIONNAIRES_COUNTRIES, QUESTIONNAIRES_ORGANIZATIONS, QUESTIONNAIRES_STRUCTURES, QUESTIONNAIRES_APPLICATION_FORMS, QUESTIONNAIRES_DOCUMENT_WHOM, QUESTIONNAIRES_MARGIN_NOTE_TEXTS, QUESTIONNAIRES_BRANDS, QUESTIONNAIRES_CHASSIS_TYPES, QUESTIONNAIRES_COLORS, QUESTIONNAIRES_ENGINE_TYPES, QUESTIONNAIRES_GEARBOX_TYPES, QUESTIONNAIRES_ISSUED_AUTHORITIES, QUESTIONNAIRES_MODELS, QUESTIONNAIRES_OWNERSHIP_TYPES, QUESTIONNAIRES_TRANSMITTER_TYPES, QUESTIONNAIRES_VEHICLE_TYPES, QUESTIONNAIRES_ACADEMIC_DEGREES, QUESTIONNAIRES_DISABILITY_STATUSES, QUESTIONNAIRES_HONORARY_TITLES, QUESTIONNAIRES_MILITARY_STAFFS, QUESTIONNAIRES_MILITARY_CATEGORIES, QUESTIONNAIRES_MILITARY_RANKS, QUESTIONNAIRES_MILITARY_GROUPS, QUESTIONNAIRES_GENERAL_STRUCTURE_STATUSES, QUESTIONNAIRES_WORK_SCHEDULES, QUESTIONNAIRES_SPECIALIZATIONS, QUESTIONNAIRES_WAR_PARTICIPANTS, QUESTIONNAIRES_GENERAL_STRUCTURE_TYPES, QUESTIONNAIRES_EDUCATION_INSTITUTIONS, QUESTIONNAIRES_EDUCATION_PAYMENTS, QUESTIONNAIRES_EDUCATION_LEVELS, QUESTIONNAIRES_REPRIMAND_TYPES, QUESTIONNAIRES_SPECIAL_DAYS, QUESTIONNAIRES_CATEGORIES, QUESTIONNAIRES_REGIONS, QUESTIONNAIRES_AREAS, QUESTIONNAIRES_COMPANIES, QUESTIONNAIRES_POSITIONS, QUESTIONNAIRES_HALLS, QUESTIONNAIRES_DRIVING_CATEGORIES, QUESTIONNAIRES_EMPLOYEE_CONFIGURATIONS, QUESTIONNAIRES_CONTRAGENTTYPES, QUESTIONNAIRES_CONTRACTTYPES, QUESTIONNAIRES_CONTRACTCURRENCIES, QUESTIONNAIRES_ORDERS, QUESTIONNAIRES_WORK_MODES, QUESTIONNAIRES_VEHICLE_CATEGORIES, QUESTIONNAIRES_CHEMICALS, QUESTIONNAIRES_REPAIR_TYPES, QUESTIONNAIRES_DETAIL_PARTS, QUESTIONNAIRES_MEASUREMENT_TYPES, QUESTIONNAIRES_REPAIRMENT_WORK_TYPES, QUESTIONNAIRES_PENALTY_TYPES, QUESTIONNAIRES_CRUSH_REASONS, QUESTIONNAIRES_INSURANCE_TYPES, QUESTIONNAIRES_EXTRA_SERVICES, QUESTIONNAIRES_FUEL_TYPES, QUESTIONNAIRES_OIL_FIELDS, QUESTIONNAIRES_VEHICLE_GROUPS, QUESTIONNAIRES_OWNERS, QUESTIONNAIRES_CONTRACTTOPICS, QUESTIONNAIRES_CONTRACTTYPESSUBTYPES, QUESTIONNAIRES_DEFAULTAGREEMENTPLANS, QUESTIONNAIRES_ROUTELOCATIONS, QUESTIONNAIRES_INTERNALSTRUCTURE } from "../utils/path";
36
+ import { QUESTIONNAIRES_TOPIC, QUESTIONNAIRES_SUBTOPIC, QUESTIONNAIRES_EXECUTION_RULES, QUESTIONNAIRES_DOCUMENT_RECIEVE_METHODS, QUESTIONNAIRES_DOCUMENT_TYPES, QUESTIONNAIRES_COUNTRIES, QUESTIONNAIRES_ORGANIZATIONS, QUESTIONNAIRES_STRUCTURES, QUESTIONNAIRES_APPLICATION_FORMS, QUESTIONNAIRES_DOCUMENT_WHOM, QUESTIONNAIRES_MARGIN_NOTE_TEXTS, QUESTIONNAIRES_BRANDS, QUESTIONNAIRES_CHASSIS_TYPES, QUESTIONNAIRES_COLORS, QUESTIONNAIRES_ENGINE_TYPES, QUESTIONNAIRES_GEARBOX_TYPES, QUESTIONNAIRES_ISSUED_AUTHORITIES, QUESTIONNAIRES_MODELS, QUESTIONNAIRES_OWNERSHIP_TYPES, QUESTIONNAIRES_TRANSMITTER_TYPES, QUESTIONNAIRES_VEHICLE_TYPES, QUESTIONNAIRES_ACADEMIC_DEGREES, QUESTIONNAIRES_DISABILITY_STATUSES, QUESTIONNAIRES_HONORARY_TITLES, QUESTIONNAIRES_MILITARY_STAFFS, QUESTIONNAIRES_MILITARY_CATEGORIES, QUESTIONNAIRES_MILITARY_RANKS, QUESTIONNAIRES_MILITARY_GROUPS, QUESTIONNAIRES_GENERAL_STRUCTURE_STATUSES, QUESTIONNAIRES_WORK_SCHEDULES, QUESTIONNAIRES_SPECIALIZATIONS, QUESTIONNAIRES_WAR_PARTICIPANTS, QUESTIONNAIRES_GENERAL_STRUCTURE_TYPES, QUESTIONNAIRES_EDUCATION_INSTITUTIONS, QUESTIONNAIRES_EDUCATION_PAYMENTS, QUESTIONNAIRES_EDUCATION_LEVELS, QUESTIONNAIRES_REPRIMAND_TYPES, QUESTIONNAIRES_SPECIAL_DAYS, QUESTIONNAIRES_CATEGORIES, QUESTIONNAIRES_REGIONS, QUESTIONNAIRES_AREAS, QUESTIONNAIRES_COMPANIES, QUESTIONNAIRES_POSITIONS, QUESTIONNAIRES_HALLS, QUESTIONNAIRES_DRIVING_CATEGORIES, QUESTIONNAIRES_EMPLOYEE_CONFIGURATIONS, QUESTIONNAIRES_CONTRAGENTTYPES, QUESTIONNAIRES_CONTRACTTYPES, QUESTIONNAIRES_CONTRACTCURRENCIES, QUESTIONNAIRES_ORDERS, QUESTIONNAIRES_WORK_MODES, QUESTIONNAIRES_VEHICLE_CATEGORIES, QUESTIONNAIRES_CHEMICALS, QUESTIONNAIRES_REPAIR_TYPES, QUESTIONNAIRES_DETAIL_PARTS, QUESTIONNAIRES_MEASUREMENT_TYPES, QUESTIONNAIRES_REPAIRMENT_WORK_TYPES, QUESTIONNAIRES_PENALTY_TYPES, QUESTIONNAIRES_CRUSH_REASONS, QUESTIONNAIRES_INSURANCE_TYPES, QUESTIONNAIRES_EXTRA_SERVICES, QUESTIONNAIRES_FUEL_TYPES, QUESTIONNAIRES_OIL_FIELDS, QUESTIONNAIRES_VEHICLE_GROUPS, QUESTIONNAIRES_OWNERS, QUESTIONNAIRES_CONTRACTTOPICS, QUESTIONNAIRES_CONTRACTTYPESSUBTYPES, QUESTIONNAIRES_DEFAULTAGREEMENTPLANS, QUESTIONNAIRES_ROUTELOCATIONS, QUESTIONNAIRES_INTERNALSTRUCTURE, QUESTIONNAIRES_FIELD, QUESTIONNAIRES_WELL, QUESTIONNAIRES_BARREL } from "../utils/path";
37
37
  import QuestionnairesEngineTypesContent from "../pages/Questionnnaires/QuestionnairesEngineTypesContent";
38
38
  import QuestionnairesGearboxTypesContent from "../pages/Questionnnaires/QuestionnairesGearboxTypesContent";
39
39
  import QuestionnairesModelsContent from "../pages/Questionnnaires/QuestionnairesModelsContent";
@@ -84,6 +84,15 @@ import QuestionnairesExtraServicesContent from "../pages/Questionnnaires/Questio
84
84
  import QuestionnairesFuelTypesContent from "../pages/Questionnnaires/QuestionnairesFuelTypesContent";
85
85
  import QuestionnairesOilFieldsContent from "../pages/Questionnnaires/QuestionnairesOilFieldsContent";
86
86
  import QuestionnairesVehicleGroupsContent from "../pages/Questionnnaires/QuestionnairesVehicleGroupsContent";
87
+
88
+ // ---- generated import by questionnaireGenerator: Field ----
89
+ import QuestionnairesFieldContent from "../pages/Questionnnaires/QuestionnairesFieldContent";
90
+
91
+ // ---- generated import by questionnaireGenerator: Well ----
92
+ import QuestionnairesWellContent from "../pages/Questionnnaires/QuestionnairesWellContent";
93
+
94
+ // ---- generated import by questionnaireGenerator: Barrel ----
95
+ import QuestionnairesBarrelContent from "../pages/Questionnnaires/QuestionnairesBarrelContent";
87
96
  export var questionnairesRoutes = function questionnairesRoutes(allowed) {
88
97
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Route, {
89
98
  path: "questionnaires",
@@ -303,5 +312,14 @@ export var questionnairesRoutes = function questionnairesRoutes(allowed) {
303
312
  }), /*#__PURE__*/React.createElement(Route, {
304
313
  path: QUESTIONNAIRES_INTERNALSTRUCTURE,
305
314
  element: /*#__PURE__*/React.createElement(QuestionnairesInternalStructureContent, null)
315
+ }), /*#__PURE__*/React.createElement(Route, {
316
+ path: QUESTIONNAIRES_FIELD,
317
+ element: /*#__PURE__*/React.createElement(QuestionnairesFieldContent, null)
318
+ }), /*#__PURE__*/React.createElement(Route, {
319
+ path: QUESTIONNAIRES_WELL,
320
+ element: /*#__PURE__*/React.createElement(QuestionnairesWellContent, null)
321
+ }), /*#__PURE__*/React.createElement(Route, {
322
+ path: QUESTIONNAIRES_BARREL,
323
+ element: /*#__PURE__*/React.createElement(QuestionnairesBarrelContent, null)
306
324
  })));
307
325
  };