@banch0u/core-project-test-repository 1.9.0 → 1.9.2
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/components/Button/index.module.scss +5 -5
- package/dist/components/ColSort/index.module.scss +22 -0
- package/dist/components/Input/index.js +35 -6
- package/dist/components/Input/index.module.scss +45 -22
- package/dist/components/Select/index.js +47 -61
- package/dist/components/Select/index.module.scss +32 -0
- package/dist/components/ViewMoreModal/index.js +30 -0
- package/dist/layout/QuestionnairesLayout/index.module.scss +3 -0
- package/dist/layout/QuestionnairesSidebar/index.js +147 -19
- 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/QuestionnairesBrandsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/{QuestionnairesStreetsContent → QuestionnairesBrandsContent}/index.js +35 -28
- package/dist/pages/Questionnnaires/QuestionnairesCategoriesContent/constant.js +69 -0
- package/dist/pages/Questionnnaires/QuestionnairesCategoriesContent/index.js +304 -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/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/QuestionnairesDrivingcategoriesContent/index.js +250 -0
- 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/QuestionnairesEngineTypesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesEngineTypesContent/index.js +247 -0
- package/dist/pages/Questionnnaires/QuestionnairesGearboxTypesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesGearboxTypesContent/index.js +247 -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/QuestionnairesIssuedAuthoritiesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesIssuedAuthoritiesContent/index.js +247 -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/QuestionnairesModelsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesModelsContent/index.js +290 -0
- package/dist/pages/Questionnnaires/QuestionnairesOwnershipTypesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesOwnershipTypesContent/index.js +247 -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/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/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 +250 -19
- package/dist/store/slices/global/index.js +225 -3
- package/dist/store/slices/questionnaire/index.js +7592 -47
- package/dist/store/slices/questionnaire/service.js +3921 -2
- package/dist/utils/path.js +82 -15
- 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 {
|
|
@@ -70,13 +70,13 @@
|
|
|
70
70
|
|
|
71
71
|
.button_green {
|
|
72
72
|
border-radius: 6px;
|
|
73
|
-
background: #
|
|
73
|
+
background: #18b503;
|
|
74
74
|
padding: 5px 10px;
|
|
75
75
|
font-size: 16px;
|
|
76
76
|
font-weight: 400;
|
|
77
77
|
line-height: 24px;
|
|
78
78
|
letter-spacing: 0.5px;
|
|
79
|
-
border: 1px solid #
|
|
79
|
+
border: 1px solid #18b503;
|
|
80
80
|
color: #fff;
|
|
81
81
|
cursor: pointer;
|
|
82
82
|
transition: 250ms;
|
|
@@ -124,8 +124,8 @@
|
|
|
124
124
|
font-weight: 400;
|
|
125
125
|
line-height: 24px;
|
|
126
126
|
letter-spacing: 0.5px;
|
|
127
|
-
border: 1px solid #
|
|
128
|
-
color: #
|
|
127
|
+
border: 1px solid #18b503;
|
|
128
|
+
color: #18b503;
|
|
129
129
|
cursor: pointer;
|
|
130
130
|
transition: 250ms;
|
|
131
131
|
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
svg {
|
|
137
137
|
path {
|
|
138
138
|
transition: 250ms;
|
|
139
|
-
stroke: #
|
|
139
|
+
stroke: #18b503;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
}
|
|
@@ -5,7 +5,29 @@
|
|
|
5
5
|
box-shadow: 0px 4px 4px 0px #0000001a !important;
|
|
6
6
|
border: 1px solid #d1d1d1 !important;
|
|
7
7
|
background: #deeaf6 !important;
|
|
8
|
+
max-height: 518px;
|
|
9
|
+
overflow-y: auto;
|
|
10
|
+
/* Scrollbar styles for WebKit browsers */
|
|
11
|
+
&::-webkit-scrollbar {
|
|
12
|
+
width: 6px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&::-webkit-scrollbar-track {
|
|
16
|
+
background: transparent;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&::-webkit-scrollbar-thumb {
|
|
20
|
+
background-color: #fff !important; // 👈 your custom scrollbar color
|
|
21
|
+
border-radius: 3px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
25
|
+
background-color: #fff !important;
|
|
26
|
+
}
|
|
8
27
|
|
|
28
|
+
/* Scrollbar styles for Firefox */
|
|
29
|
+
scrollbar-width: thin;
|
|
30
|
+
scrollbar-color: #fff transparent !important;
|
|
9
31
|
.count {
|
|
10
32
|
margin-bottom: 24px;
|
|
11
33
|
display: flex;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["type", "size", "className", "disabledDate", "placeholder"];
|
|
3
|
+
var _excluded = ["type", "size", "className", "disabledDate", "placeholder", "allowDecimal"];
|
|
4
4
|
import React from "react";
|
|
5
5
|
import style from "./index.module.scss";
|
|
6
6
|
import { InputNumber, Input as AntdInput, DatePicker } from "antd";
|
|
@@ -13,13 +13,41 @@ var Input = function Input(_ref) {
|
|
|
13
13
|
disabledDate = _ref.disabledDate,
|
|
14
14
|
_ref$placeholder = _ref.placeholder,
|
|
15
15
|
placeholder = _ref$placeholder === void 0 ? "" : _ref$placeholder,
|
|
16
|
+
_ref$allowDecimal = _ref.allowDecimal,
|
|
17
|
+
allowDecimal = _ref$allowDecimal === void 0 ? false : _ref$allowDecimal,
|
|
16
18
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
19
|
+
var getClassName = function getClassName(baseType) {
|
|
20
|
+
if (className) return className;
|
|
21
|
+
switch (size) {
|
|
22
|
+
case "sm":
|
|
23
|
+
return style["".concat(baseType, "_sm")];
|
|
24
|
+
case "md":
|
|
25
|
+
return style["".concat(baseType, "_md")];
|
|
26
|
+
case "xs":
|
|
27
|
+
return style["".concat(baseType, "_xs")];
|
|
28
|
+
default:
|
|
29
|
+
return style[baseType];
|
|
30
|
+
}
|
|
31
|
+
};
|
|
17
32
|
return /*#__PURE__*/React.createElement(React.Fragment, null, type === "number" ? /*#__PURE__*/React.createElement(InputNumber, _extends({
|
|
18
|
-
className:
|
|
33
|
+
className: getClassName("input"),
|
|
19
34
|
min: 1,
|
|
20
|
-
placeholder: placeholder
|
|
35
|
+
placeholder: placeholder,
|
|
36
|
+
onKeyPress: function onKeyPress(event) {
|
|
37
|
+
var isDigit = /[0-9]/.test(event.key);
|
|
38
|
+
var isDot = event.key === ".";
|
|
39
|
+
var alreadyHasDot = event.currentTarget.value.includes(".");
|
|
40
|
+
if (!isDigit && (!allowDecimal || !isDot || alreadyHasDot)) {
|
|
41
|
+
event.preventDefault();
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
onKeyDown: function onKeyDown(e) {
|
|
45
|
+
if (["e", "E", "+", "-"].includes(e.key)) {
|
|
46
|
+
e.preventDefault();
|
|
47
|
+
}
|
|
48
|
+
}
|
|
21
49
|
}, rest)) : type === "textarea" ? /*#__PURE__*/React.createElement(TextArea, _extends({
|
|
22
|
-
className:
|
|
50
|
+
className: getClassName("textarea"),
|
|
23
51
|
autoSize: {
|
|
24
52
|
minRows: 2,
|
|
25
53
|
maxRows: 4
|
|
@@ -27,7 +55,7 @@ var Input = function Input(_ref) {
|
|
|
27
55
|
maxLength: 500,
|
|
28
56
|
placeholder: placeholder
|
|
29
57
|
}, rest)) : type === "date" ? /*#__PURE__*/React.createElement(DatePicker, _extends({
|
|
30
|
-
className:
|
|
58
|
+
className: getClassName("date"),
|
|
31
59
|
format: "DD.MM.YYYY",
|
|
32
60
|
disabledDate: disabledDate === "until" ? function (current) {
|
|
33
61
|
return current && current > dayjs().endOf("day");
|
|
@@ -36,7 +64,8 @@ var Input = function Input(_ref) {
|
|
|
36
64
|
} : false,
|
|
37
65
|
placeholder: placeholder
|
|
38
66
|
}, rest)) : /*#__PURE__*/React.createElement(AntdInput, _extends({
|
|
39
|
-
className:
|
|
67
|
+
className: getClassName("input"),
|
|
68
|
+
placeholder: placeholder
|
|
40
69
|
}, rest)));
|
|
41
70
|
};
|
|
42
71
|
export default Input;
|
|
@@ -7,6 +7,21 @@
|
|
|
7
7
|
text-align: left !important;
|
|
8
8
|
height: 48px;
|
|
9
9
|
width: 100%;
|
|
10
|
+
input {
|
|
11
|
+
padding: 0 !important;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
.input_xs {
|
|
15
|
+
border-radius: 6px !important;
|
|
16
|
+
font-size: 14px !important;
|
|
17
|
+
font-weight: 500 !important;
|
|
18
|
+
line-height: 24px !important;
|
|
19
|
+
text-align: left !important;
|
|
20
|
+
height: 26px;
|
|
21
|
+
width: 100%;
|
|
22
|
+
input {
|
|
23
|
+
padding: 0 !important;
|
|
24
|
+
}
|
|
10
25
|
}
|
|
11
26
|
.input_sm {
|
|
12
27
|
padding: 9px 16px !important;
|
|
@@ -17,7 +32,24 @@
|
|
|
17
32
|
text-align: left !important;
|
|
18
33
|
height: 34px;
|
|
19
34
|
width: 100%;
|
|
35
|
+
input {
|
|
36
|
+
padding: 0 !important;
|
|
37
|
+
}
|
|
20
38
|
}
|
|
39
|
+
.input_md {
|
|
40
|
+
padding: 9px 16px !important;
|
|
41
|
+
border-radius: 6px !important;
|
|
42
|
+
font-size: 16px !important;
|
|
43
|
+
font-weight: 500 !important;
|
|
44
|
+
line-height: 24px !important;
|
|
45
|
+
text-align: left !important;
|
|
46
|
+
height: 42px;
|
|
47
|
+
width: 100%;
|
|
48
|
+
input {
|
|
49
|
+
padding: 0 !important;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
21
53
|
.textarea {
|
|
22
54
|
padding: 9px 16px !important;
|
|
23
55
|
border-radius: 6px !important;
|
|
@@ -39,13 +71,12 @@
|
|
|
39
71
|
text-align: left !important;
|
|
40
72
|
}
|
|
41
73
|
}
|
|
42
|
-
|
|
43
|
-
.date_sm {
|
|
74
|
+
.date_xs {
|
|
44
75
|
padding: 8px 16px !important;
|
|
45
76
|
// border: 1px solid #bdbdbd !important;
|
|
46
77
|
border-radius: 6px !important;
|
|
47
78
|
width: 100%;
|
|
48
|
-
height:
|
|
79
|
+
height: 26px;
|
|
49
80
|
input {
|
|
50
81
|
font-size: 16px !important;
|
|
51
82
|
font-weight: 500 !important;
|
|
@@ -53,32 +84,24 @@
|
|
|
53
84
|
text-align: left !important;
|
|
54
85
|
}
|
|
55
86
|
}
|
|
56
|
-
.
|
|
87
|
+
.date_sm {
|
|
57
88
|
padding: 8px 16px !important;
|
|
89
|
+
// border: 1px solid #bdbdbd !important;
|
|
58
90
|
border-radius: 6px !important;
|
|
59
|
-
font-size: 16px !important;
|
|
60
|
-
font-weight: 500 !important;
|
|
61
|
-
line-height: 24px !important;
|
|
62
|
-
text-align: left !important;
|
|
63
|
-
height: 34px;
|
|
64
|
-
width: 100%;
|
|
65
|
-
}
|
|
66
|
-
.input_xs {
|
|
67
|
-
// padding: 9px 16px !important;
|
|
68
|
-
border-radius: 6px !important;
|
|
69
|
-
font-size: 14px !important;
|
|
70
|
-
font-weight: 500 !important;
|
|
71
|
-
line-height: 24px !important;
|
|
72
|
-
text-align: left !important;
|
|
73
|
-
height: 26px;
|
|
74
91
|
width: 100%;
|
|
92
|
+
height: 34px;
|
|
93
|
+
input {
|
|
94
|
+
font-size: 16px !important;
|
|
95
|
+
font-weight: 500 !important;
|
|
96
|
+
line-height: 24px !important;
|
|
97
|
+
text-align: left !important;
|
|
98
|
+
}
|
|
75
99
|
}
|
|
76
|
-
.
|
|
100
|
+
.date_md {
|
|
77
101
|
padding: 8px 16px !important;
|
|
78
|
-
// border: 1px solid #bdbdbd !important;
|
|
79
102
|
border-radius: 6px !important;
|
|
80
103
|
width: 100%;
|
|
81
|
-
height:
|
|
104
|
+
height: 42px;
|
|
82
105
|
input {
|
|
83
106
|
font-size: 16px !important;
|
|
84
107
|
font-weight: 500 !important;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
1
2
|
import React from "react";
|
|
2
3
|
import style from "./index.module.scss";
|
|
3
4
|
import { Select as AntdSelect, Divider } from "antd";
|
|
@@ -21,76 +22,61 @@ var Select = function Select(_ref) {
|
|
|
21
22
|
_ref$allowClear = _ref.allowClear,
|
|
22
23
|
allowClear = _ref$allowClear === void 0 ? true : _ref$allowClear,
|
|
23
24
|
width = _ref.width;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
onChange: onChange,
|
|
34
|
-
disabled: disabled,
|
|
35
|
-
value: value,
|
|
36
|
-
defaultValue: defaultValue,
|
|
37
|
-
mode: "multiple",
|
|
38
|
-
optionLabelProp: "label"
|
|
39
|
-
}, children) : mode === "divider" ? /*#__PURE__*/React.createElement(AntdSelect, {
|
|
40
|
-
className: className ? className : size === "sm" ? style.select_sm : style.select,
|
|
41
|
-
style: {
|
|
42
|
-
width: width ? width + "px" : "100%"
|
|
43
|
-
},
|
|
44
|
-
showSearch: true,
|
|
45
|
-
allowClear: true,
|
|
46
|
-
placeholder: placeholder,
|
|
47
|
-
optionFilterProp: "children",
|
|
48
|
-
filterOption: function filterOption(input, option) {
|
|
49
|
-
if (!(option !== null && option !== void 0 && option.children) || typeof option.children !== "string") return false;
|
|
50
|
-
var normalizeAz = function normalizeAz(str) {
|
|
51
|
-
return str.replace(/I/g, "i").toLocaleLowerCase("az").normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/ç/g, "c").replace(/ş/g, "s").replace(/ğ/g, "g").replace(/ü/g, "u").replace(/ö/g, "o").replace(/ə/g, "e");
|
|
52
|
-
};
|
|
53
|
-
var normalizedInput = normalizeAz(input);
|
|
54
|
-
var normalizedOption = normalizeAz(option.children);
|
|
55
|
-
return normalizedOption.includes(normalizedInput);
|
|
56
|
-
},
|
|
57
|
-
onChange: onChange,
|
|
58
|
-
disabled: disabled,
|
|
59
|
-
value: value,
|
|
60
|
-
defaultValue: defaultValue,
|
|
61
|
-
dropdownRender: function dropdownRender(menu) {
|
|
62
|
-
return /*#__PURE__*/React.createElement("div", null, menu, /*#__PURE__*/React.createElement(Divider, {
|
|
63
|
-
style: {
|
|
64
|
-
margin: "4px 0"
|
|
65
|
-
}
|
|
66
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
67
|
-
className: style.select_add_button
|
|
68
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
69
|
-
onClick: onOpen
|
|
70
|
-
}, text)));
|
|
25
|
+
var getClassName = function getClassName() {
|
|
26
|
+
if (className) return className;
|
|
27
|
+
switch (size) {
|
|
28
|
+
case "sm":
|
|
29
|
+
return style.select_sm;
|
|
30
|
+
case "md":
|
|
31
|
+
return style.select_md;
|
|
32
|
+
default:
|
|
33
|
+
return style.select;
|
|
71
34
|
}
|
|
72
|
-
}
|
|
73
|
-
|
|
35
|
+
};
|
|
36
|
+
var normalizeAz = function normalizeAz(str) {
|
|
37
|
+
return str.replace(/I/g, "i").toLocaleLowerCase("az").normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/ç/g, "c").replace(/ş/g, "s").replace(/ğ/g, "g").replace(/ü/g, "u").replace(/ö/g, "o").replace(/ə/g, "e");
|
|
38
|
+
};
|
|
39
|
+
var filterOption = function filterOption(input, option) {
|
|
40
|
+
var label = option === null || option === void 0 ? void 0 : option.title;
|
|
41
|
+
if (!label || typeof label !== "string") return false;
|
|
42
|
+
return normalizeAz(label).includes(normalizeAz(input));
|
|
43
|
+
};
|
|
44
|
+
var commonProps = {
|
|
45
|
+
className: getClassName(),
|
|
74
46
|
style: {
|
|
75
|
-
width: width ? width
|
|
47
|
+
width: width ? "".concat(width, "px") : "100%"
|
|
76
48
|
},
|
|
77
49
|
showSearch: true,
|
|
78
50
|
allowClear: allowClear,
|
|
79
51
|
placeholder: placeholder,
|
|
80
|
-
optionFilterProp: "
|
|
81
|
-
filterOption:
|
|
82
|
-
if (!(option !== null && option !== void 0 && option.children) || typeof option.children !== "string") return false;
|
|
83
|
-
var normalizeAz = function normalizeAz(str) {
|
|
84
|
-
return str.replace(/I/g, "i").toLocaleLowerCase("az").normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/ç/g, "c").replace(/ş/g, "s").replace(/ğ/g, "g").replace(/ü/g, "u").replace(/ö/g, "o").replace(/ə/g, "e");
|
|
85
|
-
};
|
|
86
|
-
var normalizedInput = normalizeAz(input);
|
|
87
|
-
var normalizedOption = normalizeAz(option.children);
|
|
88
|
-
return normalizedOption.includes(normalizedInput);
|
|
89
|
-
},
|
|
52
|
+
optionFilterProp: "title",
|
|
53
|
+
filterOption: filterOption,
|
|
90
54
|
onChange: onChange,
|
|
91
55
|
disabled: disabled,
|
|
92
56
|
value: value,
|
|
93
57
|
defaultValue: defaultValue
|
|
94
|
-
}
|
|
58
|
+
};
|
|
59
|
+
if (mode === "multiple") {
|
|
60
|
+
return /*#__PURE__*/React.createElement(AntdSelect, _extends({}, commonProps, {
|
|
61
|
+
mode: "multiple",
|
|
62
|
+
optionLabelProp: "label"
|
|
63
|
+
}), children);
|
|
64
|
+
}
|
|
65
|
+
if (mode === "divider") {
|
|
66
|
+
return /*#__PURE__*/React.createElement(AntdSelect, _extends({}, commonProps, {
|
|
67
|
+
dropdownRender: function dropdownRender(menu) {
|
|
68
|
+
return /*#__PURE__*/React.createElement("div", null, menu, /*#__PURE__*/React.createElement(Divider, {
|
|
69
|
+
style: {
|
|
70
|
+
margin: "4px 0"
|
|
71
|
+
}
|
|
72
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
73
|
+
className: style.select_add_button
|
|
74
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
75
|
+
onClick: onOpen
|
|
76
|
+
}, text)));
|
|
77
|
+
}
|
|
78
|
+
}), children);
|
|
79
|
+
}
|
|
80
|
+
return /*#__PURE__*/React.createElement(AntdSelect, commonProps, children);
|
|
95
81
|
};
|
|
96
82
|
export default Select;
|
|
@@ -14,6 +14,22 @@
|
|
|
14
14
|
text-align: left !important;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
+
.select_xs > div {
|
|
18
|
+
padding: 5px 16px !important;
|
|
19
|
+
border-radius: 6px !important;
|
|
20
|
+
height: 26px;
|
|
21
|
+
}
|
|
22
|
+
.select_xs {
|
|
23
|
+
width: 100%;
|
|
24
|
+
height: auto;
|
|
25
|
+
height: 26px;
|
|
26
|
+
span {
|
|
27
|
+
font-size: 16px !important;
|
|
28
|
+
font-weight: 500 !important;
|
|
29
|
+
line-height: 24px !important;
|
|
30
|
+
text-align: left !important;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
17
33
|
|
|
18
34
|
.select_sm > div {
|
|
19
35
|
padding: 5px 16px !important;
|
|
@@ -31,6 +47,22 @@
|
|
|
31
47
|
text-align: left !important;
|
|
32
48
|
}
|
|
33
49
|
}
|
|
50
|
+
.select_md > div {
|
|
51
|
+
padding: 5px 16px !important;
|
|
52
|
+
border-radius: 6px !important;
|
|
53
|
+
height: 42px;
|
|
54
|
+
}
|
|
55
|
+
.select_md {
|
|
56
|
+
width: 100%;
|
|
57
|
+
height: auto;
|
|
58
|
+
height: 42px;
|
|
59
|
+
span {
|
|
60
|
+
font-size: 16px !important;
|
|
61
|
+
font-weight: 500 !important;
|
|
62
|
+
line-height: 24px !important;
|
|
63
|
+
text-align: left !important;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
34
66
|
.select_add_button {
|
|
35
67
|
display: inline-flex;
|
|
36
68
|
flex-wrap: nowrap;
|
|
@@ -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;
|