@banch0u/core-project-test-repository 1.9.1 → 1.9.3
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 +3 -3
- package/dist/assets/css/variables.css +2 -0
- package/dist/assets/icons/index.js +33 -0
- package/dist/components/ImagePreviewModal/index.js +129 -0
- package/dist/components/ImagePreviewModal/index.module.scss +27 -0
- package/dist/components/ViewMoreModal/index.js +30 -0
- package/dist/index.js +1 -0
- package/dist/layout/QuestionnairesLayout/index.module.scss +3 -0
- package/dist/layout/QuestionnairesSidebar/index.js +97 -5
- package/dist/layout/QuestionnairesSidebar/index.module.scss +4 -3
- package/dist/pages/Questionnnaires/Questionnaires.module.scss +4 -3
- package/dist/pages/Questionnnaires/{QuestionnairesStreetsContent → QuestionnairesAcademicdegreesContent}/constant.js +1 -1
- package/dist/pages/Questionnnaires/QuestionnairesAcademicdegreesContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesAreasContent/constant.js +63 -0
- package/dist/pages/Questionnnaires/QuestionnairesAreasContent/index.js +271 -0
- package/dist/pages/Questionnnaires/QuestionnairesCategoriesContent/constant.js +69 -0
- package/dist/pages/Questionnnaires/QuestionnairesCategoriesContent/index.js +304 -0
- package/dist/pages/Questionnnaires/QuestionnairesCompaniesContent/constant.js +62 -0
- package/dist/pages/Questionnnaires/QuestionnairesCompaniesContent/index.js +278 -0
- package/dist/pages/Questionnnaires/QuestionnairesDisabilitystatusesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesDisabilitystatusesContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesDocumentTypeContent/constant.js +1 -1
- package/dist/pages/Questionnnaires/QuestionnairesDrivingcategoriesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/{QuestionnairesStreetsContent → QuestionnairesDrivingcategoriesContent}/index.js +41 -31
- package/dist/pages/Questionnnaires/QuestionnairesEducationinstitutionsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesEducationinstitutionsContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesEducationlevelsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesEducationlevelsContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesEducationpaymentsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesEducationpaymentsContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesGeneralstructurestatusesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesGeneralstructurestatusesContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesGeneralstructuretypesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesGeneralstructuretypesContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesHallsContent/constant.js +67 -0
- package/dist/pages/Questionnnaires/QuestionnairesHallsContent/index.js +294 -0
- package/dist/pages/Questionnnaires/QuestionnairesHonorarytitlesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesHonorarytitlesContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesMilitarycategoriesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesMilitarycategoriesContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesMilitarygroupsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesMilitarygroupsContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesMilitaryranksContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesMilitaryranksContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesMilitarystaffsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesMilitarystaffsContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesPositionsContent/constant.js +72 -0
- package/dist/pages/Questionnnaires/QuestionnairesPositionsContent/index.js +428 -0
- package/dist/pages/Questionnnaires/QuestionnairesRegionsContent/constant.js +68 -0
- package/dist/pages/Questionnnaires/QuestionnairesRegionsContent/index.js +320 -0
- package/dist/pages/Questionnnaires/QuestionnairesReprimandtypesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesReprimandtypesContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesSpecialdaysContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesSpecialdaysContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesSpecializationsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesSpecializationsContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesWarparticipantsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesWarparticipantsContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesWorkschedulesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesWorkschedulesContent/index.js +269 -0
- package/dist/routes/QuestionnaireRoutes.js +169 -8
- package/dist/store/slices/global/index.js +147 -3
- package/dist/store/slices/questionnaire/index.js +5005 -99
- package/dist/store/slices/questionnaire/service.js +2446 -0
- package/dist/utils/path.js +49 -1
- package/package.json +1 -1
package/dist/assets/css/antd.css
CHANGED
|
@@ -271,11 +271,11 @@
|
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
.rowClassName1 td:nth-child(2) {
|
|
274
|
-
border-top: 1px solid #bdc4d250 !important;
|
|
274
|
+
/* border-top: 1px solid #bdc4d250 !important;
|
|
275
275
|
border-bottom: 1px solid #bdc4d250 !important;
|
|
276
276
|
border-right: 1px solid #bdc4d250 !important;
|
|
277
277
|
border-top-right-radius: 4px;
|
|
278
|
-
border-bottom-right-radius: 4px;
|
|
278
|
+
border-bottom-right-radius: 4px; */
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
.bigTable .rowClassName1 td:nth-child(2) {
|
|
@@ -826,7 +826,7 @@
|
|
|
826
826
|
}
|
|
827
827
|
|
|
828
828
|
body {
|
|
829
|
-
overflow: hidden !important;
|
|
829
|
+
/* overflow: hidden !important; */
|
|
830
830
|
}
|
|
831
831
|
|
|
832
832
|
.ant-tooltip-inner {
|
|
@@ -638,4 +638,37 @@ export var DeleteIconQ = function DeleteIconQ() {
|
|
|
638
638
|
strokeWidth: "1.5",
|
|
639
639
|
strokeLinecap: "round"
|
|
640
640
|
}));
|
|
641
|
+
};
|
|
642
|
+
export var ThreeDotsIcon = function ThreeDotsIcon() {
|
|
643
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
644
|
+
width: "24",
|
|
645
|
+
height: "24",
|
|
646
|
+
viewBox: "0 0 24 24",
|
|
647
|
+
fill: "none",
|
|
648
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
649
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
650
|
+
d: "M9 22H15C20 22 22 20 22 15V9C22 4 20 2 15 2H9C4 2 2 4 2 9V15C2 20 4 22 9 22Z",
|
|
651
|
+
stroke: "#016DAF",
|
|
652
|
+
strokeWidth: "1.5",
|
|
653
|
+
strokeLinecap: "round",
|
|
654
|
+
strokeLinejoin: "round"
|
|
655
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
656
|
+
d: "M15.9965 12H16.0054",
|
|
657
|
+
stroke: "#016DAF",
|
|
658
|
+
strokeWidth: "2",
|
|
659
|
+
strokeLinecap: "round",
|
|
660
|
+
strokeLinejoin: "round"
|
|
661
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
662
|
+
d: "M11.9955 12H12.0045",
|
|
663
|
+
stroke: "#016DAF",
|
|
664
|
+
strokeWidth: "2",
|
|
665
|
+
strokeLinecap: "round",
|
|
666
|
+
strokeLinejoin: "round"
|
|
667
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
668
|
+
d: "M7.99451 12H8.00349",
|
|
669
|
+
stroke: "#016DAF",
|
|
670
|
+
strokeWidth: "2",
|
|
671
|
+
strokeLinecap: "round",
|
|
672
|
+
strokeLinejoin: "round"
|
|
673
|
+
}));
|
|
641
674
|
};
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
|
+
import React, { forwardRef, useImperativeHandle, useState } from "react";
|
|
5
|
+
import { Modal, Spin, Row, Col } from "antd";
|
|
6
|
+
import api from "../../utils/axios";
|
|
7
|
+
import style from "./index.module.scss";
|
|
8
|
+
var ImagePreviewModal = /*#__PURE__*/forwardRef(function (_, ref) {
|
|
9
|
+
var _useState = useState(false),
|
|
10
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
11
|
+
visible = _useState2[0],
|
|
12
|
+
setVisible = _useState2[1];
|
|
13
|
+
var _useState3 = useState([]),
|
|
14
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
15
|
+
images = _useState4[0],
|
|
16
|
+
setImages = _useState4[1];
|
|
17
|
+
var _useState5 = useState(false),
|
|
18
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
19
|
+
loading = _useState6[0],
|
|
20
|
+
setLoading = _useState6[1];
|
|
21
|
+
var fetchImages = /*#__PURE__*/function () {
|
|
22
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(urls) {
|
|
23
|
+
var base64List;
|
|
24
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
25
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
26
|
+
case 0:
|
|
27
|
+
_context2.prev = 0;
|
|
28
|
+
setLoading(true);
|
|
29
|
+
_context2.next = 4;
|
|
30
|
+
return Promise.all(urls.map(/*#__PURE__*/function () {
|
|
31
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(url) {
|
|
32
|
+
var res;
|
|
33
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
34
|
+
while (1) switch (_context.prev = _context.next) {
|
|
35
|
+
case 0:
|
|
36
|
+
_context.prev = 0;
|
|
37
|
+
_context.next = 3;
|
|
38
|
+
return api.get(url, {
|
|
39
|
+
responseType: "text"
|
|
40
|
+
});
|
|
41
|
+
case 3:
|
|
42
|
+
res = _context.sent;
|
|
43
|
+
return _context.abrupt("return", res.data);
|
|
44
|
+
case 7:
|
|
45
|
+
_context.prev = 7;
|
|
46
|
+
_context.t0 = _context["catch"](0);
|
|
47
|
+
console.error("Failed to load image:", url);
|
|
48
|
+
return _context.abrupt("return", null);
|
|
49
|
+
case 11:
|
|
50
|
+
case "end":
|
|
51
|
+
return _context.stop();
|
|
52
|
+
}
|
|
53
|
+
}, _callee, null, [[0, 7]]);
|
|
54
|
+
}));
|
|
55
|
+
return function (_x2) {
|
|
56
|
+
return _ref2.apply(this, arguments);
|
|
57
|
+
};
|
|
58
|
+
}()));
|
|
59
|
+
case 4:
|
|
60
|
+
base64List = _context2.sent;
|
|
61
|
+
setImages(base64List.filter(Boolean));
|
|
62
|
+
_context2.next = 11;
|
|
63
|
+
break;
|
|
64
|
+
case 8:
|
|
65
|
+
_context2.prev = 8;
|
|
66
|
+
_context2.t0 = _context2["catch"](0);
|
|
67
|
+
console.error("Image load failed", _context2.t0);
|
|
68
|
+
case 11:
|
|
69
|
+
_context2.prev = 11;
|
|
70
|
+
setLoading(false);
|
|
71
|
+
return _context2.finish(11);
|
|
72
|
+
case 14:
|
|
73
|
+
case "end":
|
|
74
|
+
return _context2.stop();
|
|
75
|
+
}
|
|
76
|
+
}, _callee2, null, [[0, 8, 11, 14]]);
|
|
77
|
+
}));
|
|
78
|
+
return function fetchImages(_x) {
|
|
79
|
+
return _ref.apply(this, arguments);
|
|
80
|
+
};
|
|
81
|
+
}();
|
|
82
|
+
useImperativeHandle(ref, function () {
|
|
83
|
+
return {
|
|
84
|
+
open: function open() {
|
|
85
|
+
var imageUrls = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
86
|
+
fetchImages(imageUrls);
|
|
87
|
+
setVisible(true);
|
|
88
|
+
},
|
|
89
|
+
close: function close() {
|
|
90
|
+
setVisible(false);
|
|
91
|
+
setImages([]);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
});
|
|
95
|
+
return /*#__PURE__*/React.createElement(Modal, {
|
|
96
|
+
open: visible,
|
|
97
|
+
onCancel: function onCancel() {
|
|
98
|
+
return setVisible(false);
|
|
99
|
+
},
|
|
100
|
+
footer: null,
|
|
101
|
+
title: "\u015E\u0259kil \xF6nizl\u0259m\u0259si",
|
|
102
|
+
width: 900,
|
|
103
|
+
className: style.modal
|
|
104
|
+
}, loading ? /*#__PURE__*/React.createElement(Spin, null) : /*#__PURE__*/React.createElement(Row, {
|
|
105
|
+
gutter: [16, 16]
|
|
106
|
+
}, images.map(function (img, idx) {
|
|
107
|
+
return /*#__PURE__*/React.createElement(Col, {
|
|
108
|
+
span: 12,
|
|
109
|
+
key: idx
|
|
110
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
111
|
+
style: {
|
|
112
|
+
padding: 10,
|
|
113
|
+
display: "flex",
|
|
114
|
+
flexDirection: "column"
|
|
115
|
+
}
|
|
116
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
117
|
+
src: img,
|
|
118
|
+
alt: "Preview ".concat(idx),
|
|
119
|
+
style: {
|
|
120
|
+
width: "100%",
|
|
121
|
+
maxHeight: "400px",
|
|
122
|
+
objectFit: "contain",
|
|
123
|
+
borderRadius: 8,
|
|
124
|
+
boxShadow: "0 0 6px rgba(0,0,0,0.2)"
|
|
125
|
+
}
|
|
126
|
+
})));
|
|
127
|
+
})));
|
|
128
|
+
});
|
|
129
|
+
export default ImagePreviewModal;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// .imageContainer {
|
|
2
|
+
// display: flex;
|
|
3
|
+
// flex-direction: column;
|
|
4
|
+
// justify-content: center;
|
|
5
|
+
// align-items: center;
|
|
6
|
+
// gap: 16px;
|
|
7
|
+
// justify-content: center;
|
|
8
|
+
// flex-wrap: wrap;
|
|
9
|
+
// img {
|
|
10
|
+
// height: 300px;
|
|
11
|
+
// width: auto;
|
|
12
|
+
// border: 1px solid grey;
|
|
13
|
+
// border-radius: 8px;
|
|
14
|
+
// }
|
|
15
|
+
// }
|
|
16
|
+
|
|
17
|
+
// .image {
|
|
18
|
+
// max-width: 250px;
|
|
19
|
+
// max-height: 250px;
|
|
20
|
+
// border-radius: 8px;
|
|
21
|
+
// object-fit: contain;
|
|
22
|
+
// }
|
|
23
|
+
|
|
24
|
+
// .modal {
|
|
25
|
+
// padding: 20px !important;
|
|
26
|
+
// background: #fff !important;
|
|
27
|
+
// }
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Modal } from "antd";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { useSelector } from "react-redux";
|
|
4
|
+
var ViewMoreModal = function ViewMoreModal(_ref) {
|
|
5
|
+
var children = _ref.children,
|
|
6
|
+
width = _ref.width,
|
|
7
|
+
onCancel = _ref.onCancel,
|
|
8
|
+
isEditing = _ref.isEditing;
|
|
9
|
+
var _useSelector = useSelector(function (state) {
|
|
10
|
+
return state.global;
|
|
11
|
+
}),
|
|
12
|
+
viewMoreModalVisible = _useSelector.viewMoreModalVisible;
|
|
13
|
+
return /*#__PURE__*/React.createElement(Modal, {
|
|
14
|
+
centered: true,
|
|
15
|
+
okButtonProps: {
|
|
16
|
+
style: {
|
|
17
|
+
display: "none"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
cancelButtonProps: {
|
|
21
|
+
style: {
|
|
22
|
+
display: "none"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
width: width,
|
|
26
|
+
open: viewMoreModalVisible,
|
|
27
|
+
onCancel: onCancel
|
|
28
|
+
}, children);
|
|
29
|
+
};
|
|
30
|
+
export default ViewMoreModal;
|
package/dist/index.js
CHANGED
|
@@ -15,6 +15,7 @@ export { default as Select } from "./components/Select";
|
|
|
15
15
|
export { default as Input } from "./components/Input";
|
|
16
16
|
export { default as api } from "./utils/axios";
|
|
17
17
|
export { default as NotFound } from "./pages/NotFound";
|
|
18
|
+
export { default as ImagePreviewModal } from "./components/ImagePreviewModal";
|
|
18
19
|
export { questionnairesRoutes } from "./routes/QuestionnaireRoutes";
|
|
19
20
|
export { CoreProvider } from "./store/coreProvider";
|
|
20
21
|
import LoginPage from "./pages/Login";
|
|
@@ -3,7 +3,11 @@ import React, { useState } from "react";
|
|
|
3
3
|
import { Link, useLocation } from "react-router-dom";
|
|
4
4
|
import style from "./index.module.scss";
|
|
5
5
|
import { Layout, Menu, Input } from "antd";
|
|
6
|
-
import {
|
|
6
|
+
import { QUESTIONNAIRES_ACADEMIC_DEGREES, QUESTIONNAIRES_APPLICATION_FORMS, QUESTIONNAIRES_AREAS, QUESTIONNAIRES_BRANDS, QUESTIONNAIRES_CATEGORIES, QUESTIONNAIRES_CHASSIS_TYPES, QUESTIONNAIRES_COLORS, QUESTIONNAIRES_COMPANIES, QUESTIONNAIRES_COUNTRIES, QUESTIONNAIRES_DISABILITY_STATUSES, QUESTIONNAIRES_DOCUMENT_RECIEVE_METHODS, QUESTIONNAIRES_DOCUMENT_TYPES, QUESTIONNAIRES_DOCUMENT_WHOM, QUESTIONNAIRES_DRIVING_CATEGORIES, QUESTIONNAIRES_EDUCATION_INSTITUTIONS, QUESTIONNAIRES_EDUCATION_LEVELS, QUESTIONNAIRES_EDUCATION_PAYMENTS, QUESTIONNAIRES_ENGINE_TYPES, QUESTIONNAIRES_EXECUTION_RULES, QUESTIONNAIRES_GEARBOX_TYPES, QUESTIONNAIRES_GENERAL_STRUCTURE_STATUSES, QUESTIONNAIRES_GENERAL_STRUCTURE_TYPES, QUESTIONNAIRES_HALLS, QUESTIONNAIRES_HONORARY_TITLES, QUESTIONNAIRES_ISSUED_AUTHORITIES, QUESTIONNAIRES_MARGIN_NOTE_TEXTS, QUESTIONNAIRES_MILITARY_CATEGORIES, QUESTIONNAIRES_MILITARY_GROUPS, QUESTIONNAIRES_MILITARY_RANKS, QUESTIONNAIRES_MILITARY_STAFFS, QUESTIONNAIRES_MODELS, QUESTIONNAIRES_ORGANIZATIONS, QUESTIONNAIRES_OWNERSHIP_TYPES, QUESTIONNAIRES_POSITIONS,
|
|
7
|
+
// QUESTIONNAIRES_REGIONS,
|
|
8
|
+
QUESTIONNAIRES_REPRIMAND_TYPES, QUESTIONNAIRES_SPECIAL_DAYS, QUESTIONNAIRES_SPECIALIZATIONS, QUESTIONNAIRES_STRUCTURES, QUESTIONNAIRES_SUBTOPIC, QUESTIONNAIRES_TOPIC, QUESTIONNAIRES_TRANSMITTER_TYPES, QUESTIONNAIRES_VEHICLE_TYPES, QUESTIONNAIRES_WAR_PARTICIPANTS, QUESTIONNAIRES_WORK_SCHEDULES, SETTINGS_QUESTIONNAIRES_ACADEMIC_DEGREES, SETTINGS_QUESTIONNAIRES_APPLICATION_FORMS, SETTINGS_QUESTIONNAIRES_AREAS, SETTINGS_QUESTIONNAIRES_BRANDS, SETTINGS_QUESTIONNAIRES_CATEGORIES, SETTINGS_QUESTIONNAIRES_CHASSISTYPES, SETTINGS_QUESTIONNAIRES_COLORS, SETTINGS_QUESTIONNAIRES_COMPANIES, SETTINGS_QUESTIONNAIRES_COUNTRIES, SETTINGS_QUESTIONNAIRES_DISABILITY_STATUSES, SETTINGS_QUESTIONNAIRES_DOCUMENT_RECIEVE_METHODS, SETTINGS_QUESTIONNAIRES_DOCUMENT_TYPES, SETTINGS_QUESTIONNAIRES_DOCUMENT_WHOM, SETTINGS_QUESTIONNAIRES_DRIVING_CATEGORIES, SETTINGS_QUESTIONNAIRES_EDUCATION_INSTITUTIONS, SETTINGS_QUESTIONNAIRES_EDUCATION_LEVELS, SETTINGS_QUESTIONNAIRES_EDUCATION_PAYMENTS, SETTINGS_QUESTIONNAIRES_ENGINETYPES, SETTINGS_QUESTIONNAIRES_EXECUTION_RULES, SETTINGS_QUESTIONNAIRES_GEARBOXTYPES, SETTINGS_QUESTIONNAIRES_GENERAL_STRUCTURE_STATUSES, SETTINGS_QUESTIONNAIRES_GENERAL_STRUCTURE_TYPES, SETTINGS_QUESTIONNAIRES_HALLS, SETTINGS_QUESTIONNAIRES_HONORARY_TITLES, SETTINGS_QUESTIONNAIRES_ISSUEDAUTHORITIES, SETTINGS_QUESTIONNAIRES_MARGIN_NOTE_TEXTS, SETTINGS_QUESTIONNAIRES_MILITARY_CATEGORIES, SETTINGS_QUESTIONNAIRES_MILITARY_GROUPS, SETTINGS_QUESTIONNAIRES_MILITARY_RANKS, SETTINGS_QUESTIONNAIRES_MILITARY_STAFFS, SETTINGS_QUESTIONNAIRES_MODELS, SETTINGS_QUESTIONNAIRES_ORGANIZATIONS, SETTINGS_QUESTIONNAIRES_OWNERSHIPTYPES, SETTINGS_QUESTIONNAIRES_POSITIONS,
|
|
9
|
+
// SETTINGS_QUESTIONNAIRES_REGIONS,
|
|
10
|
+
SETTINGS_QUESTIONNAIRES_REPRIMAND_TYPES, SETTINGS_QUESTIONNAIRES_SPECIAL_DAYS, SETTINGS_QUESTIONNAIRES_SPECIALIZATIONS, SETTINGS_QUESTIONNAIRES_STRUCTURES, SETTINGS_QUESTIONNAIRES_SUBTOPIC, SETTINGS_QUESTIONNAIRES_TOPIC, SETTINGS_QUESTIONNAIRES_TRANSMITTERTYPES, SETTINGS_QUESTIONNAIRES_VEHICLETYPES, SETTINGS_QUESTIONNAIRES_WAR_PARTICIPANTS, SETTINGS_QUESTIONNAIRES_WORK_SCHEDULES } from "../../utils/path";
|
|
7
11
|
import { SearchIcon } from "../../assets/icons";
|
|
8
12
|
var Sider = Layout.Sider;
|
|
9
13
|
var SubMenu = Menu.SubMenu;
|
|
@@ -41,10 +45,6 @@ var QuestionnairesSidebar = function QuestionnairesSidebar(_ref) {
|
|
|
41
45
|
key: "country",
|
|
42
46
|
label: "Ölkələr",
|
|
43
47
|
link: mainPath === "/settings" ? SETTINGS_QUESTIONNAIRES_COUNTRIES : QUESTIONNAIRES_COUNTRIES
|
|
44
|
-
}, {
|
|
45
|
-
key: "street",
|
|
46
|
-
label: "Küçələr",
|
|
47
|
-
link: mainPath === "/settings" ? SETTINGS_QUESTIONNAIRES_STREETS : QUESTIONNAIRES_STREETS
|
|
48
48
|
}, {
|
|
49
49
|
key: "organization",
|
|
50
50
|
label: "Təşkilatlar",
|
|
@@ -105,6 +105,98 @@ var QuestionnairesSidebar = function QuestionnairesSidebar(_ref) {
|
|
|
105
105
|
key: "colors",
|
|
106
106
|
label: "Rənglər",
|
|
107
107
|
link: mainPath === "/settings" ? SETTINGS_QUESTIONNAIRES_COLORS : QUESTIONNAIRES_COLORS
|
|
108
|
+
}, {
|
|
109
|
+
key: "academic-degrees",
|
|
110
|
+
label: "Akademik dərəcələr",
|
|
111
|
+
link: mainPath === "/settings" ? SETTINGS_QUESTIONNAIRES_ACADEMIC_DEGREES : QUESTIONNAIRES_ACADEMIC_DEGREES
|
|
112
|
+
}, {
|
|
113
|
+
key: "disability-statuses",
|
|
114
|
+
label: "Əlillik statusları",
|
|
115
|
+
link: mainPath === "/settings" ? SETTINGS_QUESTIONNAIRES_DISABILITY_STATUSES : QUESTIONNAIRES_DISABILITY_STATUSES
|
|
116
|
+
}, {
|
|
117
|
+
key: "honorary-titles",
|
|
118
|
+
label: "Fəxri adlar",
|
|
119
|
+
link: mainPath === "/settings" ? SETTINGS_QUESTIONNAIRES_HONORARY_TITLES : QUESTIONNAIRES_HONORARY_TITLES
|
|
120
|
+
}, {
|
|
121
|
+
key: "military-staffs",
|
|
122
|
+
label: "Hərbi qulluqçular",
|
|
123
|
+
link: mainPath === "/settings" ? SETTINGS_QUESTIONNAIRES_MILITARY_STAFFS : QUESTIONNAIRES_MILITARY_STAFFS
|
|
124
|
+
}, {
|
|
125
|
+
key: "military-categories",
|
|
126
|
+
label: "Hərbi kateqoriyalar",
|
|
127
|
+
link: mainPath === "/settings" ? SETTINGS_QUESTIONNAIRES_MILITARY_CATEGORIES : QUESTIONNAIRES_MILITARY_CATEGORIES
|
|
128
|
+
}, {
|
|
129
|
+
key: "military-ranks",
|
|
130
|
+
label: "Hərbi rütbələr",
|
|
131
|
+
link: mainPath === "/settings" ? SETTINGS_QUESTIONNAIRES_MILITARY_RANKS : QUESTIONNAIRES_MILITARY_RANKS
|
|
132
|
+
}, {
|
|
133
|
+
key: "military-groups",
|
|
134
|
+
label: "Hərbi qruplar",
|
|
135
|
+
link: mainPath === "/settings" ? SETTINGS_QUESTIONNAIRES_MILITARY_GROUPS : QUESTIONNAIRES_MILITARY_GROUPS
|
|
136
|
+
}, {
|
|
137
|
+
key: "general-structure-statuses",
|
|
138
|
+
label: "Ümumi struktur statusları",
|
|
139
|
+
link: mainPath === "/settings" ? SETTINGS_QUESTIONNAIRES_GENERAL_STRUCTURE_STATUSES : QUESTIONNAIRES_GENERAL_STRUCTURE_STATUSES
|
|
140
|
+
}, {
|
|
141
|
+
key: "work-schedules",
|
|
142
|
+
label: "İş qrafikləri",
|
|
143
|
+
link: mainPath === "/settings" ? SETTINGS_QUESTIONNAIRES_WORK_SCHEDULES : QUESTIONNAIRES_WORK_SCHEDULES
|
|
144
|
+
}, {
|
|
145
|
+
key: "specializations",
|
|
146
|
+
label: "İxtisaslar",
|
|
147
|
+
link: mainPath === "/settings" ? SETTINGS_QUESTIONNAIRES_SPECIALIZATIONS : QUESTIONNAIRES_SPECIALIZATIONS
|
|
148
|
+
}, {
|
|
149
|
+
key: "war-participants",
|
|
150
|
+
label: "Müharibə iştirakçıları",
|
|
151
|
+
link: mainPath === "/settings" ? SETTINGS_QUESTIONNAIRES_WAR_PARTICIPANTS : QUESTIONNAIRES_WAR_PARTICIPANTS
|
|
152
|
+
}, {
|
|
153
|
+
key: "general-structure-types",
|
|
154
|
+
label: "Ümumi struktur növləri",
|
|
155
|
+
link: mainPath === "/settings" ? SETTINGS_QUESTIONNAIRES_GENERAL_STRUCTURE_TYPES : QUESTIONNAIRES_GENERAL_STRUCTURE_TYPES
|
|
156
|
+
}, {
|
|
157
|
+
key: "education-institutions",
|
|
158
|
+
label: "Təhsil müəssisələri",
|
|
159
|
+
link: mainPath === "/settings" ? SETTINGS_QUESTIONNAIRES_EDUCATION_INSTITUTIONS : QUESTIONNAIRES_EDUCATION_INSTITUTIONS
|
|
160
|
+
}, {
|
|
161
|
+
key: "education-payments",
|
|
162
|
+
label: "Təhsil ödənişləri",
|
|
163
|
+
link: mainPath === "/settings" ? SETTINGS_QUESTIONNAIRES_EDUCATION_PAYMENTS : QUESTIONNAIRES_EDUCATION_PAYMENTS
|
|
164
|
+
}, {
|
|
165
|
+
key: "education-levels",
|
|
166
|
+
label: "Təhsil səviyyələri",
|
|
167
|
+
link: mainPath === "/settings" ? SETTINGS_QUESTIONNAIRES_EDUCATION_LEVELS : QUESTIONNAIRES_EDUCATION_LEVELS
|
|
168
|
+
}, {
|
|
169
|
+
key: "reprimand-types",
|
|
170
|
+
label: "Töhmət növləri",
|
|
171
|
+
link: mainPath === "/settings" ? SETTINGS_QUESTIONNAIRES_REPRIMAND_TYPES : QUESTIONNAIRES_REPRIMAND_TYPES
|
|
172
|
+
}, {
|
|
173
|
+
key: "special-days",
|
|
174
|
+
label: "Xüsusi günlər",
|
|
175
|
+
link: mainPath === "/settings" ? SETTINGS_QUESTIONNAIRES_SPECIAL_DAYS : QUESTIONNAIRES_SPECIAL_DAYS
|
|
176
|
+
}, {
|
|
177
|
+
key: "areas",
|
|
178
|
+
label: "Sahələr",
|
|
179
|
+
link: mainPath === "/settings" ? SETTINGS_QUESTIONNAIRES_AREAS : QUESTIONNAIRES_AREAS
|
|
180
|
+
}, {
|
|
181
|
+
key: "categories",
|
|
182
|
+
label: "Kateqoriyalar",
|
|
183
|
+
link: mainPath === "/settings" ? SETTINGS_QUESTIONNAIRES_CATEGORIES : QUESTIONNAIRES_CATEGORIES
|
|
184
|
+
}, {
|
|
185
|
+
key: "companies",
|
|
186
|
+
label: "Şirkətlər",
|
|
187
|
+
link: mainPath === "/settings" ? SETTINGS_QUESTIONNAIRES_COMPANIES : QUESTIONNAIRES_COMPANIES
|
|
188
|
+
}, {
|
|
189
|
+
key: "halls",
|
|
190
|
+
label: "Zallar",
|
|
191
|
+
link: mainPath === "/settings" ? SETTINGS_QUESTIONNAIRES_HALLS : QUESTIONNAIRES_HALLS
|
|
192
|
+
}, {
|
|
193
|
+
key: "positions",
|
|
194
|
+
label: "Vəzifələr",
|
|
195
|
+
link: mainPath === "/settings" ? SETTINGS_QUESTIONNAIRES_POSITIONS : QUESTIONNAIRES_POSITIONS
|
|
196
|
+
}, {
|
|
197
|
+
key: "driving-categories",
|
|
198
|
+
label: "Sürücülük kateqoriyaları",
|
|
199
|
+
link: mainPath === "/settings" ? SETTINGS_QUESTIONNAIRES_DRIVING_CATEGORIES : QUESTIONNAIRES_DRIVING_CATEGORIES
|
|
108
200
|
}];
|
|
109
201
|
var sortedItems = items.sort(function (a, b) {
|
|
110
202
|
return a.label.localeCompare(b.label);
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
position: relative;
|
|
6
6
|
margin: 20px;
|
|
7
7
|
margin-right: 0;
|
|
8
|
+
border: 1px solid var(--blue);
|
|
8
9
|
.logo {
|
|
9
10
|
margin-top: 20px;
|
|
10
11
|
margin-bottom: 18px;
|
|
@@ -15,7 +16,7 @@
|
|
|
15
16
|
font-weight: 600;
|
|
16
17
|
line-height: 20px;
|
|
17
18
|
text-align: center;
|
|
18
|
-
color: var(--
|
|
19
|
+
color: var(--blue);
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
.search {
|
|
@@ -44,7 +45,7 @@
|
|
|
44
45
|
}
|
|
45
46
|
svg:hover {
|
|
46
47
|
path {
|
|
47
|
-
stroke: var(--
|
|
48
|
+
stroke: var(--blue);
|
|
48
49
|
transition: 250ms;
|
|
49
50
|
}
|
|
50
51
|
}
|
|
@@ -55,7 +56,7 @@
|
|
|
55
56
|
background: #fff;
|
|
56
57
|
border: none;
|
|
57
58
|
border-right: 0;
|
|
58
|
-
border-radius: 12px
|
|
59
|
+
border-radius: 12px;
|
|
59
60
|
margin-top: 0px;
|
|
60
61
|
li {
|
|
61
62
|
margin-inline: 14px;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
height: auto;
|
|
5
5
|
background: unset;
|
|
6
6
|
.content {
|
|
7
|
-
margin-bottom:
|
|
7
|
+
margin-bottom: 20px;
|
|
8
8
|
background: #fff;
|
|
9
9
|
border-radius: 12px;
|
|
10
10
|
max-height: calc(100vh - 85px) !important;
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
display: block;
|
|
73
73
|
border: 1px solid var(--blue);
|
|
74
74
|
padding: 0 !important;
|
|
75
|
-
padding-bottom:
|
|
75
|
+
padding-bottom: 25px !important;
|
|
76
76
|
|
|
77
77
|
table {
|
|
78
78
|
// th {
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
padding: 0;
|
|
105
105
|
flex: unset;
|
|
106
106
|
padding: 15px;
|
|
107
|
-
margin-bottom: 20px;
|
|
107
|
+
// margin-bottom: 20px;
|
|
108
108
|
background: var(--lightBlue);
|
|
109
109
|
|
|
110
110
|
.header {
|
|
@@ -112,6 +112,7 @@
|
|
|
112
112
|
width: 100%;
|
|
113
113
|
justify-content: space-between;
|
|
114
114
|
align-items: center;
|
|
115
|
+
position: unset;
|
|
115
116
|
button {
|
|
116
117
|
width: unset;
|
|
117
118
|
}
|