@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.
- package/README.md +104 -104
- package/dist/assets/css/antd.css +842 -842
- package/dist/assets/css/variables.css +16 -16
- package/dist/assets/fonts/fonts.css +52 -52
- package/dist/components/Button/index.module.scss +154 -154
- package/dist/components/ColSort/index.module.scss +62 -62
- package/dist/components/Delete/Delete.module.scss +22 -22
- package/dist/components/DeleteModal/DeleteModal.module.scss +11 -11
- package/dist/components/Filter/index.module.scss +99 -99
- package/dist/components/FormModal/index.js +16 -16
- package/dist/components/FormModal/index.module.scss +14 -14
- package/dist/components/ImagePreviewModal/index.js +23 -23
- package/dist/components/ImagePreviewModal/index.module.scss +27 -27
- package/dist/components/Input/index.module.scss +111 -111
- package/dist/components/Loading/index.module.scss +18 -18
- package/dist/components/NotificationDropdown/index.js +8 -8
- package/dist/components/NotificationDropdown/index.module.scss +83 -83
- package/dist/components/NotificationSettingsContent/index.module.scss +70 -70
- package/dist/components/Pagination/Pagination.module.scss +8 -8
- package/dist/components/ProfileOptions/index.js +21 -21
- package/dist/components/ProfileOptions/index.module.scss +265 -265
- package/dist/components/Select/index.module.scss +72 -72
- package/dist/components/Success/Success.module.scss +26 -26
- package/dist/components/Table/index.module.scss +76 -76
- package/dist/helpers/enums.js +10 -0
- package/dist/index.css +32 -32
- package/dist/layout/Header/AppSelect/index.module.scss +72 -72
- package/dist/layout/Header/index.module.scss +12 -12
- package/dist/layout/QuestionnairesLayout/index.module.scss +3 -3
- package/dist/layout/QuestionnairesSidebar/index.js +26 -2
- package/dist/layout/QuestionnairesSidebar/index.module.scss +77 -77
- package/dist/layout/Sidebar/index.js +15 -15
- package/dist/layout/Sidebar/index.module.scss +67 -67
- package/dist/pages/Login/index.js +15 -15
- package/dist/pages/Login/index.module.scss +123 -123
- package/dist/pages/NotFound/index.module.scss +50 -50
- package/dist/pages/Platform/index.js +15 -15
- package/dist/pages/Platform/index.module.scss +125 -125
- package/dist/pages/Questionnnaires/Questionnaires.module.scss +211 -211
- package/dist/pages/Questionnnaires/QuestionnairesAcademicdegreesContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesApplicationFormContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesAreasContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesBarrelContent/constant.js +64 -0
- package/dist/pages/Questionnnaires/QuestionnairesBarrelContent/index.js +292 -0
- package/dist/pages/Questionnnaires/QuestionnairesBrandsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesCategoriesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesChassisTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesChemicalsContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesColorsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesCompaniesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesContractTopicsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesContractTypesSubtypesContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesContractcurrenciesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesContracttypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesContragenttypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesCountriesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesCrushReasonsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesDefaultAgreementPlansContent/index.js +23 -23
- package/dist/pages/Questionnnaires/QuestionnairesDeliveryMethodContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesDetailPartsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesDisabilitystatusesContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesDocumentRecieveMethodsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesDocumentTypeContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesDocumentWhomContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesDrivingcategoriesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesEducationinstitutionsContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesEducationlevelsContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesEducationpaymentsContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesEmployeeConfigurations/index.js +13 -13
- package/dist/pages/Questionnnaires/QuestionnairesEngineTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesExecutionRulesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesExtraServicesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesFieldContent/constant.js +64 -0
- package/dist/pages/Questionnnaires/QuestionnairesFieldContent/index.js +275 -0
- package/dist/pages/Questionnnaires/QuestionnairesFuelTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesGearboxTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesGeneralstructurestatusesContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesGeneralstructuretypesContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesHallsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesHonorarytitlesContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesInsurancetypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesInternalStructureContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesIssuedAuthoritiesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesMarginNoteTextsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesMeasurementTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesMilitarycategoriesContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesMilitarygroupsContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesMilitaryranksContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesMilitarystaffsContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesModelsContent/index.js +13 -13
- package/dist/pages/Questionnnaires/QuestionnairesOilFieldsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesOrdersContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesOrganizationsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesOwnersContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesOwnershipTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesPenaltyTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesPositionsContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesRegionsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesRepairTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesRepairmentWorkTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesReprimandtypesContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesRouteLocationsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesSpecialdaysContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesSpecializationsContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesStructuresContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesSubtopicContent/index.js +15 -15
- package/dist/pages/Questionnnaires/QuestionnairesTopicContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesTransmitterTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesVehicleCategoriesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesVehicleGroupsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesVehicleTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesWarparticipantsContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesWellContent/constant.js +64 -0
- package/dist/pages/Questionnnaires/QuestionnairesWellContent/index.js +280 -0
- package/dist/pages/Questionnnaires/QuestionnairesWorkModesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesWorkschedulesContent/index.js +12 -12
- package/dist/routes/QuestionnaireRoutes.js +19 -1
- package/dist/store/slices/auth/index.js +60 -60
- package/dist/store/slices/auth/service.js +20 -20
- package/dist/store/slices/companyInfo/index.js +10 -10
- package/dist/store/slices/companyInfo/service.js +4 -4
- package/dist/store/slices/employees/index.js +30 -30
- package/dist/store/slices/employees/service.js +12 -12
- package/dist/store/slices/global/index.js +170 -152
- package/dist/store/slices/notification/index.js +73 -73
- package/dist/store/slices/notification/service.js +24 -24
- package/dist/store/slices/questionnaire/index.js +9154 -8527
- package/dist/store/slices/questionnaire/service.js +3467 -3083
- package/dist/tools/questionnaireGenerator.js +12 -12
- package/dist/translations/index.json +364 -364
- package/dist/utils/axios.js +27 -141
- package/dist/utils/message.js +2 -2
- package/dist/utils/path.js +12 -0
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ import style from "./index.module.scss";
|
|
|
9
9
|
import NotificationSettingsContent from "../NotificationSettingsContent";
|
|
10
10
|
import FormModal from "../FormModal";
|
|
11
11
|
var NotificationDropdown = function NotificationDropdown(_ref) {
|
|
12
|
-
var _notifications$notifi, _text$lang, _text$lang2, _text$lang3, _text$lang4, _text$lang5, _text$lang6, _text$lang7, _text$
|
|
12
|
+
var _notifications$notifi, _text$lang, _text$lang2, _text$lang3, _text$lang4, _text$lang5, _text$lang6, _text$lang7, _text$lang1;
|
|
13
13
|
var size = _ref.size,
|
|
14
14
|
setSize = _ref.setSize,
|
|
15
15
|
setPage = _ref.setPage,
|
|
@@ -48,13 +48,13 @@ var NotificationDropdown = function NotificationDropdown(_ref) {
|
|
|
48
48
|
var handleNotificationClick = /*#__PURE__*/function () {
|
|
49
49
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(value, id) {
|
|
50
50
|
var parsed, redirectByProject, url;
|
|
51
|
-
return _regeneratorRuntime.wrap(function
|
|
51
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
52
52
|
while (1) switch (_context.prev = _context.next) {
|
|
53
53
|
case 0:
|
|
54
54
|
parsed = parseNotification(value);
|
|
55
|
-
_context.next =
|
|
55
|
+
_context.next = 1;
|
|
56
56
|
return handleRead(id);
|
|
57
|
-
case
|
|
57
|
+
case 1:
|
|
58
58
|
redirectByProject = {
|
|
59
59
|
1: "/docflow/document-circulation/unread-docs",
|
|
60
60
|
2: "/hr/hr",
|
|
@@ -65,7 +65,7 @@ var NotificationDropdown = function NotificationDropdown(_ref) {
|
|
|
65
65
|
if (url) {
|
|
66
66
|
window.location.href = "".concat(window.location.origin).concat(url);
|
|
67
67
|
}
|
|
68
|
-
case
|
|
68
|
+
case 2:
|
|
69
69
|
case "end":
|
|
70
70
|
return _context.stop();
|
|
71
71
|
}
|
|
@@ -113,7 +113,7 @@ var NotificationDropdown = function NotificationDropdown(_ref) {
|
|
|
113
113
|
emptyText: text === null || text === void 0 || (_text$lang7 = text[lang]) === null || _text$lang7 === void 0 || (_text$lang7 = _text$lang7.pages) === null || _text$lang7 === void 0 || (_text$lang7 = _text$lang7.header) === null || _text$lang7 === void 0 || (_text$lang7 = _text$lang7.notifications) === null || _text$lang7 === void 0 ? void 0 : _text$lang7.nonotification
|
|
114
114
|
},
|
|
115
115
|
renderItem: function renderItem(item) {
|
|
116
|
-
var _text$lang8, _text$lang9, _text$
|
|
116
|
+
var _text$lang8, _text$lang9, _text$lang0;
|
|
117
117
|
var parsed = parseNotification(item.text);
|
|
118
118
|
return /*#__PURE__*/React.createElement(List.Item, {
|
|
119
119
|
className: "".concat(style.notificationItem, " ").concat(item.isReaden ? style.read : style.unread),
|
|
@@ -144,7 +144,7 @@ var NotificationDropdown = function NotificationDropdown(_ref) {
|
|
|
144
144
|
style: {
|
|
145
145
|
cursor: "pointer"
|
|
146
146
|
}
|
|
147
|
-
}, parsed.Text || (text === null || text === void 0 || (_text$
|
|
147
|
+
}, parsed.Text || (text === null || text === void 0 || (_text$lang0 = text[lang]) === null || _text$lang0 === void 0 || (_text$lang0 = _text$lang0.pages) === null || _text$lang0 === void 0 || (_text$lang0 = _text$lang0.header) === null || _text$lang0 === void 0 || (_text$lang0 = _text$lang0.notifications) === null || _text$lang0 === void 0 ? void 0 : _text$lang0.title))
|
|
148
148
|
}));
|
|
149
149
|
}
|
|
150
150
|
}), hasMore && /*#__PURE__*/React.createElement("div", {
|
|
@@ -153,7 +153,7 @@ var NotificationDropdown = function NotificationDropdown(_ref) {
|
|
|
153
153
|
size: "small",
|
|
154
154
|
type: "text",
|
|
155
155
|
onClick: handleLoadMore
|
|
156
|
-
}, text === null || text === void 0 || (_text$
|
|
156
|
+
}, text === null || text === void 0 || (_text$lang1 = text[lang]) === null || _text$lang1 === void 0 || (_text$lang1 = _text$lang1.pages) === null || _text$lang1 === void 0 || (_text$lang1 = _text$lang1.header) === null || _text$lang1 === void 0 || (_text$lang1 = _text$lang1.notifications) === null || _text$lang1 === void 0 ? void 0 : _text$lang1.showMore))), /*#__PURE__*/React.createElement(FormModal, {
|
|
157
157
|
ref: modalRef,
|
|
158
158
|
width: 695,
|
|
159
159
|
showButtons: false
|
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
.dropdownWrapper {
|
|
2
|
-
width: 320px;
|
|
3
|
-
max-height: 420px;
|
|
4
|
-
overflow-y: auto;
|
|
5
|
-
overflow-x: hidden;
|
|
6
|
-
// padding: 10px;
|
|
7
|
-
background-color: #ffffff;
|
|
8
|
-
background-clip: padding-box;
|
|
9
|
-
border-radius: 8px;
|
|
10
|
-
outline: none;
|
|
11
|
-
scrollbar-gutter: stable;
|
|
12
|
-
box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
13
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
|
14
|
-
|
|
15
|
-
ul {
|
|
16
|
-
padding: 0 !important;
|
|
17
|
-
margin: 0 !important;
|
|
18
|
-
list-style: none;
|
|
19
|
-
li {
|
|
20
|
-
padding: 12px 10px !important;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&::-webkit-scrollbar {
|
|
25
|
-
width: 6px;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&::-webkit-scrollbar-thumb {
|
|
29
|
-
background-color: rgba(0, 0, 0, 0.2);
|
|
30
|
-
border-radius: 3px;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.header {
|
|
35
|
-
position: sticky;
|
|
36
|
-
top: 0;
|
|
37
|
-
z-index: 10;
|
|
38
|
-
background: #fff;
|
|
39
|
-
padding: 10px 12px;
|
|
40
|
-
display: flex;
|
|
41
|
-
justify-content: space-between;
|
|
42
|
-
align-items: center;
|
|
43
|
-
border-bottom: 1px solid #f0f0f0;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.notificationItem {
|
|
47
|
-
transition: background 0.3s;
|
|
48
|
-
|
|
49
|
-
&:hover {
|
|
50
|
-
background-color: #deeaf5;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
.read {
|
|
54
|
-
background-color: white;
|
|
55
|
-
font-weight: 500;
|
|
56
|
-
}
|
|
57
|
-
.unread {
|
|
58
|
-
background-color: #f6f6f6;
|
|
59
|
-
font-weight: 700;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.loadMore {
|
|
63
|
-
text-align: center;
|
|
64
|
-
margin: 10px 0;
|
|
65
|
-
button {
|
|
66
|
-
color: var(--darkBlueColor);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
.ellipsisText {
|
|
70
|
-
display: -webkit-box;
|
|
71
|
-
-webkit-line-clamp: 3; // max 3 lines
|
|
72
|
-
-webkit-box-orient: vertical;
|
|
73
|
-
overflow: hidden;
|
|
74
|
-
text-overflow: ellipsis;
|
|
75
|
-
word-break: break-word;
|
|
76
|
-
line-height: 1.5;
|
|
77
|
-
max-height: calc(1.5em * 3); // 3 lines
|
|
78
|
-
}
|
|
79
|
-
.headerActions {
|
|
80
|
-
display: flex;
|
|
81
|
-
align-items: center;
|
|
82
|
-
gap: 8px;
|
|
83
|
-
}
|
|
1
|
+
.dropdownWrapper {
|
|
2
|
+
width: 320px;
|
|
3
|
+
max-height: 420px;
|
|
4
|
+
overflow-y: auto;
|
|
5
|
+
overflow-x: hidden;
|
|
6
|
+
// padding: 10px;
|
|
7
|
+
background-color: #ffffff;
|
|
8
|
+
background-clip: padding-box;
|
|
9
|
+
border-radius: 8px;
|
|
10
|
+
outline: none;
|
|
11
|
+
scrollbar-gutter: stable;
|
|
12
|
+
box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
13
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
|
14
|
+
|
|
15
|
+
ul {
|
|
16
|
+
padding: 0 !important;
|
|
17
|
+
margin: 0 !important;
|
|
18
|
+
list-style: none;
|
|
19
|
+
li {
|
|
20
|
+
padding: 12px 10px !important;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&::-webkit-scrollbar {
|
|
25
|
+
width: 6px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&::-webkit-scrollbar-thumb {
|
|
29
|
+
background-color: rgba(0, 0, 0, 0.2);
|
|
30
|
+
border-radius: 3px;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.header {
|
|
35
|
+
position: sticky;
|
|
36
|
+
top: 0;
|
|
37
|
+
z-index: 10;
|
|
38
|
+
background: #fff;
|
|
39
|
+
padding: 10px 12px;
|
|
40
|
+
display: flex;
|
|
41
|
+
justify-content: space-between;
|
|
42
|
+
align-items: center;
|
|
43
|
+
border-bottom: 1px solid #f0f0f0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.notificationItem {
|
|
47
|
+
transition: background 0.3s;
|
|
48
|
+
|
|
49
|
+
&:hover {
|
|
50
|
+
background-color: #deeaf5;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
.read {
|
|
54
|
+
background-color: white;
|
|
55
|
+
font-weight: 500;
|
|
56
|
+
}
|
|
57
|
+
.unread {
|
|
58
|
+
background-color: #f6f6f6;
|
|
59
|
+
font-weight: 700;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.loadMore {
|
|
63
|
+
text-align: center;
|
|
64
|
+
margin: 10px 0;
|
|
65
|
+
button {
|
|
66
|
+
color: var(--darkBlueColor);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
.ellipsisText {
|
|
70
|
+
display: -webkit-box;
|
|
71
|
+
-webkit-line-clamp: 3; // max 3 lines
|
|
72
|
+
-webkit-box-orient: vertical;
|
|
73
|
+
overflow: hidden;
|
|
74
|
+
text-overflow: ellipsis;
|
|
75
|
+
word-break: break-word;
|
|
76
|
+
line-height: 1.5;
|
|
77
|
+
max-height: calc(1.5em * 3); // 3 lines
|
|
78
|
+
}
|
|
79
|
+
.headerActions {
|
|
80
|
+
display: flex;
|
|
81
|
+
align-items: center;
|
|
82
|
+
gap: 8px;
|
|
83
|
+
}
|
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
.settingsWrapper {
|
|
2
|
-
padding-right: 8px;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.sectionTitle {
|
|
6
|
-
margin-bottom: 16px;
|
|
7
|
-
font-weight: 600;
|
|
8
|
-
color: #1f1f1f;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.settingGroupTitle {
|
|
12
|
-
margin: 12px 0 8px;
|
|
13
|
-
font-size: 16px;
|
|
14
|
-
color: #888;
|
|
15
|
-
font-weight: 500;
|
|
16
|
-
display: block;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.formLabel {
|
|
20
|
-
font-weight: 500;
|
|
21
|
-
font-size: 14px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.inlineSwitch {
|
|
25
|
-
display: flex;
|
|
26
|
-
align-items: center;
|
|
27
|
-
justify-content: space-between;
|
|
28
|
-
margin-bottom: 12px;
|
|
29
|
-
|
|
30
|
-
.ant-form-item-label {
|
|
31
|
-
flex: 1;
|
|
32
|
-
margin: 0;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.ant-form-item-control {
|
|
36
|
-
flex-shrink: 0;
|
|
37
|
-
margin-left: 16px;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.ant-switch {
|
|
41
|
-
margin-left: auto;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
.modal_select > div {
|
|
45
|
-
padding: 5px 16px !important;
|
|
46
|
-
// border-color: #bdbdbd !important;
|
|
47
|
-
border-radius: 6px !important;
|
|
48
|
-
height: 48px;
|
|
49
|
-
}
|
|
50
|
-
.modal_select {
|
|
51
|
-
width: 100%;
|
|
52
|
-
height: auto;
|
|
53
|
-
height: 48px;
|
|
54
|
-
span {
|
|
55
|
-
font-size: 16px !important;
|
|
56
|
-
font-weight: 500 !important;
|
|
57
|
-
line-height: 24px !important;
|
|
58
|
-
text-align: left !important;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
.next_buttons_ {
|
|
62
|
-
display: flex;
|
|
63
|
-
justify-content: flex-end;
|
|
64
|
-
gap: 20px;
|
|
65
|
-
margin-top: 10px;
|
|
66
|
-
button {
|
|
67
|
-
border-radius: 6px;
|
|
68
|
-
padding: 9px 19px;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
1
|
+
.settingsWrapper {
|
|
2
|
+
padding-right: 8px;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.sectionTitle {
|
|
6
|
+
margin-bottom: 16px;
|
|
7
|
+
font-weight: 600;
|
|
8
|
+
color: #1f1f1f;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.settingGroupTitle {
|
|
12
|
+
margin: 12px 0 8px;
|
|
13
|
+
font-size: 16px;
|
|
14
|
+
color: #888;
|
|
15
|
+
font-weight: 500;
|
|
16
|
+
display: block;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.formLabel {
|
|
20
|
+
font-weight: 500;
|
|
21
|
+
font-size: 14px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.inlineSwitch {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: space-between;
|
|
28
|
+
margin-bottom: 12px;
|
|
29
|
+
|
|
30
|
+
.ant-form-item-label {
|
|
31
|
+
flex: 1;
|
|
32
|
+
margin: 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.ant-form-item-control {
|
|
36
|
+
flex-shrink: 0;
|
|
37
|
+
margin-left: 16px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.ant-switch {
|
|
41
|
+
margin-left: auto;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
.modal_select > div {
|
|
45
|
+
padding: 5px 16px !important;
|
|
46
|
+
// border-color: #bdbdbd !important;
|
|
47
|
+
border-radius: 6px !important;
|
|
48
|
+
height: 48px;
|
|
49
|
+
}
|
|
50
|
+
.modal_select {
|
|
51
|
+
width: 100%;
|
|
52
|
+
height: auto;
|
|
53
|
+
height: 48px;
|
|
54
|
+
span {
|
|
55
|
+
font-size: 16px !important;
|
|
56
|
+
font-weight: 500 !important;
|
|
57
|
+
line-height: 24px !important;
|
|
58
|
+
text-align: left !important;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
.next_buttons_ {
|
|
62
|
+
display: flex;
|
|
63
|
+
justify-content: flex-end;
|
|
64
|
+
gap: 20px;
|
|
65
|
+
margin-top: 10px;
|
|
66
|
+
button {
|
|
67
|
+
border-radius: 6px;
|
|
68
|
+
padding: 9px 19px;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
.pagination {
|
|
2
|
-
margin-top: 10px;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.container {
|
|
6
|
-
display: flex;
|
|
7
|
-
align-items: center;
|
|
8
|
-
}
|
|
1
|
+
.pagination {
|
|
2
|
+
margin-top: 10px;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.container {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
}
|
|
@@ -16,7 +16,7 @@ var Option = AntdSelect.Option;
|
|
|
16
16
|
import { useLang } from "../../hooks/useLang";
|
|
17
17
|
import text from "../../translations/index.json";
|
|
18
18
|
var ProfileOptions = function ProfileOptions() {
|
|
19
|
-
var _text$lang, _text$lang2, _text$lang3, _profileInfo$name, _text$lang4, _text$lang5, _text$lang6, _text$lang7, _text$lang8, _text$lang9, _text$
|
|
19
|
+
var _text$lang, _text$lang2, _text$lang3, _profileInfo$name, _text$lang4, _text$lang5, _text$lang6, _text$lang7, _text$lang8, _text$lang9, _text$lang14, _text$lang16, _text$lang17;
|
|
20
20
|
var dispatch = useDispatch();
|
|
21
21
|
var navigate = useNavigate();
|
|
22
22
|
var lang = useLang();
|
|
@@ -57,9 +57,9 @@ var ProfileOptions = function ProfileOptions() {
|
|
|
57
57
|
|
|
58
58
|
// 🔥 Password modal state
|
|
59
59
|
var _useState9 = useState(false),
|
|
60
|
-
|
|
61
|
-
isPasswordModalOpen =
|
|
62
|
-
setPasswordModalOpen =
|
|
60
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
61
|
+
isPasswordModalOpen = _useState0[0],
|
|
62
|
+
setPasswordModalOpen = _useState0[1];
|
|
63
63
|
var _Form$useForm = Form.useForm(),
|
|
64
64
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
65
65
|
form = _Form$useForm2[0];
|
|
@@ -265,28 +265,28 @@ var ProfileOptions = function ProfileOptions() {
|
|
|
265
265
|
if (!value) return Promise.resolve();
|
|
266
266
|
var errors = [];
|
|
267
267
|
if (value.length < 8) {
|
|
268
|
-
var _text$
|
|
269
|
-
errors.push(text === null || text === void 0 || (_text$
|
|
268
|
+
var _text$lang0;
|
|
269
|
+
errors.push(text === null || text === void 0 || (_text$lang0 = text[lang]) === null || _text$lang0 === void 0 || (_text$lang0 = _text$lang0.pages) === null || _text$lang0 === void 0 || (_text$lang0 = _text$lang0.header) === null || _text$lang0 === void 0 || (_text$lang0 = _text$lang0.changePassword) === null || _text$lang0 === void 0 || (_text$lang0 = _text$lang0.hints) === null || _text$lang0 === void 0 ? void 0 : _text$lang0.passwordLength);
|
|
270
270
|
}
|
|
271
271
|
if (!/[A-Z]/.test(value)) {
|
|
272
|
-
var _text$
|
|
273
|
-
errors.push(text === null || text === void 0 || (_text$
|
|
272
|
+
var _text$lang1;
|
|
273
|
+
errors.push(text === null || text === void 0 || (_text$lang1 = text[lang]) === null || _text$lang1 === void 0 || (_text$lang1 = _text$lang1.pages) === null || _text$lang1 === void 0 || (_text$lang1 = _text$lang1.header) === null || _text$lang1 === void 0 || (_text$lang1 = _text$lang1.changePassword) === null || _text$lang1 === void 0 || (_text$lang1 = _text$lang1.hints) === null || _text$lang1 === void 0 ? void 0 : _text$lang1.passwordUppercase);
|
|
274
274
|
}
|
|
275
275
|
if (!/[a-z]/.test(value)) {
|
|
276
|
-
var _text$
|
|
277
|
-
errors.push(text === null || text === void 0 || (_text$
|
|
276
|
+
var _text$lang10;
|
|
277
|
+
errors.push(text === null || text === void 0 || (_text$lang10 = text[lang]) === null || _text$lang10 === void 0 || (_text$lang10 = _text$lang10.pages) === null || _text$lang10 === void 0 || (_text$lang10 = _text$lang10.header) === null || _text$lang10 === void 0 || (_text$lang10 = _text$lang10.changePassword) === null || _text$lang10 === void 0 || (_text$lang10 = _text$lang10.hints) === null || _text$lang10 === void 0 ? void 0 : _text$lang10.passwordLowercase);
|
|
278
278
|
}
|
|
279
279
|
if (!/[0-9]/.test(value)) {
|
|
280
|
-
var _text$
|
|
281
|
-
errors.push(text === null || text === void 0 || (_text$
|
|
280
|
+
var _text$lang11;
|
|
281
|
+
errors.push(text === null || text === void 0 || (_text$lang11 = text[lang]) === null || _text$lang11 === void 0 || (_text$lang11 = _text$lang11.pages) === null || _text$lang11 === void 0 || (_text$lang11 = _text$lang11.header) === null || _text$lang11 === void 0 || (_text$lang11 = _text$lang11.changePassword) === null || _text$lang11 === void 0 || (_text$lang11 = _text$lang11.hints) === null || _text$lang11 === void 0 ? void 0 : _text$lang11.passwordDigit);
|
|
282
282
|
}
|
|
283
283
|
if (!/[!@#$%^&*]/.test(value)) {
|
|
284
|
-
var _text$
|
|
285
|
-
errors.push(text === null || text === void 0 || (_text$
|
|
284
|
+
var _text$lang12;
|
|
285
|
+
errors.push(text === null || text === void 0 || (_text$lang12 = text[lang]) === null || _text$lang12 === void 0 || (_text$lang12 = _text$lang12.pages) === null || _text$lang12 === void 0 || (_text$lang12 = _text$lang12.header) === null || _text$lang12 === void 0 || (_text$lang12 = _text$lang12.changePassword) === null || _text$lang12 === void 0 || (_text$lang12 = _text$lang12.hints) === null || _text$lang12 === void 0 ? void 0 : _text$lang12.passwordSpecialChar);
|
|
286
286
|
}
|
|
287
287
|
if (value && getFieldValue("currentPassword") === value) {
|
|
288
|
-
var _text$
|
|
289
|
-
errors.push(text === null || text === void 0 || (_text$
|
|
288
|
+
var _text$lang13;
|
|
289
|
+
errors.push(text === null || text === void 0 || (_text$lang13 = text[lang]) === null || _text$lang13 === void 0 || (_text$lang13 = _text$lang13.pages) === null || _text$lang13 === void 0 || (_text$lang13 = _text$lang13.header) === null || _text$lang13 === void 0 || (_text$lang13 = _text$lang13.changePassword) === null || _text$lang13 === void 0 || (_text$lang13 = _text$lang13.hints) === null || _text$lang13 === void 0 ? void 0 : _text$lang13.passwordDifferent);
|
|
290
290
|
}
|
|
291
291
|
|
|
292
292
|
// 🔥 Return each message as its own Error → AntD shows them line by line
|
|
@@ -301,7 +301,7 @@ var ProfileOptions = function ProfileOptions() {
|
|
|
301
301
|
height: "48px"
|
|
302
302
|
}
|
|
303
303
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
304
|
-
label: text === null || text === void 0 || (_text$
|
|
304
|
+
label: text === null || text === void 0 || (_text$lang14 = text[lang]) === null || _text$lang14 === void 0 || (_text$lang14 = _text$lang14.pages) === null || _text$lang14 === void 0 || (_text$lang14 = _text$lang14.header) === null || _text$lang14 === void 0 || (_text$lang14 = _text$lang14.changePassword) === null || _text$lang14 === void 0 ? void 0 : _text$lang14.newPasswordConfirmation,
|
|
305
305
|
name: "confirmPassword",
|
|
306
306
|
dependencies: ["newPassword"],
|
|
307
307
|
rules: [{
|
|
@@ -311,11 +311,11 @@ var ProfileOptions = function ProfileOptions() {
|
|
|
311
311
|
var getFieldValue = _ref2.getFieldValue;
|
|
312
312
|
return {
|
|
313
313
|
validator: function validator(_, value) {
|
|
314
|
-
var _text$
|
|
314
|
+
var _text$lang15;
|
|
315
315
|
if (!value || getFieldValue("newPassword") === value) {
|
|
316
316
|
return Promise.resolve();
|
|
317
317
|
}
|
|
318
|
-
return Promise.reject(text === null || text === void 0 || (_text$
|
|
318
|
+
return Promise.reject(text === null || text === void 0 || (_text$lang15 = text[lang]) === null || _text$lang15 === void 0 || (_text$lang15 = _text$lang15.pages) === null || _text$lang15 === void 0 || (_text$lang15 = _text$lang15.header) === null || _text$lang15 === void 0 || (_text$lang15 = _text$lang15.changePassword) === null || _text$lang15 === void 0 || (_text$lang15 = _text$lang15.hints) === null || _text$lang15 === void 0 ? void 0 : _text$lang15.passwordMismatch);
|
|
319
319
|
}
|
|
320
320
|
};
|
|
321
321
|
}]
|
|
@@ -334,10 +334,10 @@ var ProfileOptions = function ProfileOptions() {
|
|
|
334
334
|
className: style.cancelBtn,
|
|
335
335
|
onClick: closePasswordModal,
|
|
336
336
|
color: "white"
|
|
337
|
-
}, text === null || text === void 0 || (_text$
|
|
337
|
+
}, text === null || text === void 0 || (_text$lang16 = text[lang]) === null || _text$lang16 === void 0 || (_text$lang16 = _text$lang16.pages) === null || _text$lang16 === void 0 || (_text$lang16 = _text$lang16.common) === null || _text$lang16 === void 0 ? void 0 : _text$lang16.cancel), /*#__PURE__*/React.createElement(Button, {
|
|
338
338
|
className: style.confirmBtn,
|
|
339
339
|
onClick: handlePasswordSubmit,
|
|
340
340
|
color: "green"
|
|
341
|
-
}, text === null || text === void 0 || (_text$
|
|
341
|
+
}, text === null || text === void 0 || (_text$lang17 = text[lang]) === null || _text$lang17 === void 0 || (_text$lang17 = _text$lang17.pages) === null || _text$lang17 === void 0 || (_text$lang17 = _text$lang17.common) === null || _text$lang17 === void 0 ? void 0 : _text$lang17.confirm)))));
|
|
342
342
|
};
|
|
343
343
|
export default ProfileOptions;
|