@banch0u/core-project-test-repository 2.3.19 → 2.3.21
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/components/Delete/Delete.js +8 -3
- package/dist/components/Filter/index.js +7 -2
- package/dist/components/Success/Success.js +7 -2
- package/dist/hooks/useLang.js +31 -17
- package/dist/layout/QuestionnairesSidebar/index.js +94 -92
- package/dist/pages/Questionnnaires/QuestionnairesAcademicdegreesContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesAcademicdegreesContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesApplicationFormContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesApplicationFormContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesAreasContent/constant.js +7 -5
- package/dist/pages/Questionnnaires/QuestionnairesAreasContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesAttestationsContent/constant.js +8 -6
- package/dist/pages/Questionnnaires/QuestionnairesAttestationsContent/index.js +19 -14
- package/dist/pages/Questionnnaires/QuestionnairesBarrelContent/constant.js +8 -6
- package/dist/pages/Questionnnaires/QuestionnairesBarrelContent/index.js +20 -15
- package/dist/pages/Questionnnaires/QuestionnairesBrandsContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesBrandsContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesBudgetComponentsContent/constant.js +7 -5
- package/dist/pages/Questionnnaires/QuestionnairesBudgetComponentsContent/index.js +19 -14
- package/dist/pages/Questionnnaires/QuestionnairesCategoriesContent/constant.js +8 -6
- package/dist/pages/Questionnnaires/QuestionnairesCategoriesContent/index.js +18 -13
- package/dist/pages/Questionnnaires/QuestionnairesChassisTypesContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesChassisTypesContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesChemicalsContent/constant.js +9 -7
- package/dist/pages/Questionnnaires/QuestionnairesChemicalsContent/index.js +21 -16
- package/dist/pages/Questionnnaires/QuestionnairesColorsContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesColorsContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesCompaniesContent/constant.js +7 -5
- package/dist/pages/Questionnnaires/QuestionnairesCompaniesContent/index.js +18 -13
- package/dist/pages/Questionnnaires/QuestionnairesContractTopicsContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesContractTopicsContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesContractTypesSubtypesContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesContractTypesSubtypesContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesContractcurrenciesContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesContractcurrenciesContent/index.js +16 -11
- package/dist/pages/Questionnnaires/QuestionnairesContracttypesContent/constant.js +7 -5
- package/dist/pages/Questionnnaires/QuestionnairesContracttypesContent/index.js +16 -11
- package/dist/pages/Questionnnaires/QuestionnairesContragenttypesContent/constant.js +7 -5
- package/dist/pages/Questionnnaires/QuestionnairesContragenttypesContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesCountriesContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesCountriesContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesCrushReasonsContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesCrushReasonsContent/index.js +16 -11
- package/dist/pages/Questionnnaires/QuestionnairesCustomersContent/constant.js +8 -6
- package/dist/pages/Questionnnaires/QuestionnairesCustomersContent/index.js +20 -15
- package/dist/pages/Questionnnaires/QuestionnairesDefaultAgreementPlansContent/constant.js +4 -3
- package/dist/pages/Questionnnaires/QuestionnairesDefaultAgreementPlansContent/index.js +50 -43
- package/dist/pages/Questionnnaires/QuestionnairesDeliveryMethodContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesDeliveryMethodContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesDepartmentsContent/constant.js +7 -5
- package/dist/pages/Questionnnaires/QuestionnairesDepartmentsContent/index.js +19 -14
- package/dist/pages/Questionnnaires/QuestionnairesDetailPartsContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesDetailPartsContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesDisabilitystatusesContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesDisabilitystatusesContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesDocumentRecieveMethodsContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesDocumentRecieveMethodsContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesDocumentTypeContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesDocumentTypeContent/index.js +19 -14
- package/dist/pages/Questionnnaires/QuestionnairesDocumentWhomContent/constant.js +10 -8
- package/dist/pages/Questionnnaires/QuestionnairesDocumentWhomContent/index.js +26 -21
- package/dist/pages/Questionnnaires/QuestionnairesDrivingcategoriesContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesDrivingcategoriesContent/index.js +16 -11
- package/dist/pages/Questionnnaires/QuestionnairesEducationinstitutionsContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesEducationinstitutionsContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesEducationlevelsContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesEducationlevelsContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesEducationpaymentsContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesEducationpaymentsContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesEmployeeConfigurations/constant.js +10 -9
- package/dist/pages/Questionnnaires/QuestionnairesEmployeeConfigurations/index.js +23 -18
- package/dist/pages/Questionnnaires/QuestionnairesEngineTypesContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesEngineTypesContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesExecutionRulesContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesExecutionRulesContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesExtraServicesContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesExtraServicesContent/index.js +16 -11
- package/dist/pages/Questionnnaires/QuestionnairesFieldContent/constant.js +7 -5
- package/dist/pages/Questionnnaires/QuestionnairesFieldContent/index.js +19 -14
- package/dist/pages/Questionnnaires/QuestionnairesFuelTypesContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesFuelTypesContent/index.js +16 -11
- package/dist/pages/Questionnnaires/QuestionnairesGearboxTypesContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesGearboxTypesContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesGeneralstructurestatusesContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesGeneralstructurestatusesContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesGeneralstructuretypesContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesGeneralstructuretypesContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesHallsContent/constant.js +8 -6
- package/dist/pages/Questionnnaires/QuestionnairesHallsContent/index.js +20 -15
- package/dist/pages/Questionnnaires/QuestionnairesHonorarytitlesContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesHonorarytitlesContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesInsurancetypesContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesInsurancetypesContent/index.js +16 -11
- package/dist/pages/Questionnnaires/QuestionnairesInternalStructureContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesInternalStructureContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesInventoryBrandsContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesInventoryBrandsContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesInventoryCategoriesContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesInventoryCategoriesContent/index.js +18 -13
- package/dist/pages/Questionnnaires/QuestionnairesInventoryModelsContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesInventoryModelsContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesInventoryTechnicalDetailsContent/constant.js +6 -5
- package/dist/pages/Questionnnaires/QuestionnairesInventoryTechnicalDetailsContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesIssuedAuthoritiesContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesIssuedAuthoritiesContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesMarginNoteTextsContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesMarginNoteTextsContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesMeasurementTypesContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesMeasurementTypesContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesMilitarycategoriesContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesMilitarycategoriesContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesMilitarygroupsContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesMilitarygroupsContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesMilitaryranksContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesMilitaryranksContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesMilitarystaffsContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesMilitarystaffsContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesModelsContent/constant.js +8 -6
- package/dist/pages/Questionnnaires/QuestionnairesModelsContent/index.js +19 -14
- package/dist/pages/Questionnnaires/QuestionnairesOilFieldsContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesOilFieldsContent/index.js +16 -11
- package/dist/pages/Questionnnaires/QuestionnairesOrdersContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesOrdersContent/index.js +16 -11
- package/dist/pages/Questionnnaires/QuestionnairesOrganizationsContent/constant.js +11 -9
- package/dist/pages/Questionnnaires/QuestionnairesOrganizationsContent/index.js +26 -21
- package/dist/pages/Questionnnaires/QuestionnairesOwnersContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesOwnersContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesOwnershipTypesContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesOwnershipTypesContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesPenaltyTypesContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesPenaltyTypesContent/index.js +16 -11
- package/dist/pages/Questionnnaires/QuestionnairesPentionsContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesPentionsContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesPositionsContent/constant.js +9 -7
- package/dist/pages/Questionnnaires/QuestionnairesPositionsContent/index.js +18 -13
- package/dist/pages/Questionnnaires/QuestionnairesProjectsContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesProjectsContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesRegionsContent/constant.js +8 -6
- package/dist/pages/Questionnnaires/QuestionnairesRegionsContent/index.js +21 -16
- package/dist/pages/Questionnnaires/QuestionnairesRepairTypesContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesRepairTypesContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesRepairmentWorkTypesContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesRepairmentWorkTypesContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesReprimandtypesContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesReprimandtypesContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesRouteLocationsContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesRouteLocationsContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesSpecialdaysContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesSpecialdaysContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesSpecializationsContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesSpecializationsContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesStructuresContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesStructuresContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesSubtopicContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesSubtopicContent/index.js +19 -14
- package/dist/pages/Questionnnaires/QuestionnairesTopicContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesTopicContent/index.js +19 -14
- package/dist/pages/Questionnnaires/QuestionnairesTransmitterTypesContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesTransmitterTypesContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesVehicleCategoriesContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesVehicleCategoriesContent/index.js +16 -11
- package/dist/pages/Questionnnaires/QuestionnairesVehicleGroupsContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesVehicleGroupsContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesVehicleTypesContent/constant.js +9 -6
- package/dist/pages/Questionnnaires/QuestionnairesVehicleTypesContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesVendorCategoriesContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesVendorCategoriesContent/index.js +18 -13
- package/dist/pages/Questionnnaires/QuestionnairesWarparticipantsContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesWarparticipantsContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesWellContent/constant.js +7 -5
- package/dist/pages/Questionnnaires/QuestionnairesWellContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesWorkModesContent/constant.js +8 -6
- package/dist/pages/Questionnnaires/QuestionnairesWorkModesContent/index.js +18 -13
- package/dist/pages/Questionnnaires/QuestionnairesWorkschedulesContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesWorkschedulesContent/index.js +17 -12
- package/dist/pages/Questionnnaires/QuestionnairesinventoryPackageTypesContent/constant.js +6 -4
- package/dist/pages/Questionnnaires/QuestionnairesinventoryPackageTypesContent/index.js +17 -12
- package/dist/store/slices/questionnaire/index.js +380 -372
- package/dist/store/slices/questionnaire/service.js +7 -7
- package/dist/translations/index.json +1784 -367
- package/package.json +1 -1
|
@@ -27,9 +27,14 @@ import Loading from "../../../components/Loading";
|
|
|
27
27
|
import Table from "../../../components/Table";
|
|
28
28
|
import Filter from "../../../components/Filter";
|
|
29
29
|
import { addAcademicdegrees, deleteAcademicdegrees, academicdegreesVisibility, editAcademicdegrees, getAcademicdegrees } from "../../../store/slices/questionnaire";
|
|
30
|
+
import text from "../../../translations/index.json";
|
|
31
|
+
import { useLang } from "../../../hooks/useLang";
|
|
30
32
|
var Content = Layout.Content;
|
|
31
33
|
var Item = Form.Item;
|
|
32
34
|
var QuestionnairesDocumentTypeContent = function QuestionnairesDocumentTypeContent() {
|
|
35
|
+
var _text$lang, _t$common, _t$titles, _t$common2, _t$common3, _t$common4, _t$common5, _t$messages, _t$fields, _t$common6, _t$common7;
|
|
36
|
+
var lang = useLang();
|
|
37
|
+
var t = text === null || text === void 0 || (_text$lang = text[lang]) === null || _text$lang === void 0 || (_text$lang = _text$lang.pages) === null || _text$lang === void 0 ? void 0 : _text$lang.questionnaires;
|
|
33
38
|
var _useState = useState(null),
|
|
34
39
|
_useState2 = _slicedToArray(_useState, 2),
|
|
35
40
|
innerW = _useState2[0],
|
|
@@ -150,8 +155,8 @@ var QuestionnairesDocumentTypeContent = function QuestionnairesDocumentTypeConte
|
|
|
150
155
|
});
|
|
151
156
|
}
|
|
152
157
|
var columns = useMemo(function () {
|
|
153
|
-
return getStreetColumns(onEditClick, onDelete, onStatusChange, dispatch);
|
|
154
|
-
}, [onEditClick, onDelete, onStatusChange, dispatch]);
|
|
158
|
+
return getStreetColumns(t, onEditClick, onDelete, onStatusChange, dispatch);
|
|
159
|
+
}, [t, onEditClick, onDelete, onStatusChange, dispatch]);
|
|
155
160
|
var _useState11 = useState(columns.map(function (col) {
|
|
156
161
|
return col.dataIndex;
|
|
157
162
|
})),
|
|
@@ -188,7 +193,7 @@ var QuestionnairesDocumentTypeContent = function QuestionnairesDocumentTypeConte
|
|
|
188
193
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
189
194
|
onClick: onClickModal,
|
|
190
195
|
color: "green"
|
|
191
|
-
}, " ", /*#__PURE__*/React.createElement(PlusIcon, null), "
|
|
196
|
+
}, " ", /*#__PURE__*/React.createElement(PlusIcon, null), " ", t === null || t === void 0 || (_t$common = t.common) === null || _t$common === void 0 ? void 0 : _t$common.addQuestionnaire), /*#__PURE__*/React.createElement(Filter, {
|
|
192
197
|
columns: columns,
|
|
193
198
|
selectedColumns: selectedColumns,
|
|
194
199
|
setQuery: setQuery,
|
|
@@ -200,7 +205,7 @@ var QuestionnairesDocumentTypeContent = function QuestionnairesDocumentTypeConte
|
|
|
200
205
|
className: style.content
|
|
201
206
|
}, /*#__PURE__*/React.createElement("div", {
|
|
202
207
|
className: style.table_header
|
|
203
|
-
}, /*#__PURE__*/React.createElement("h2", null,
|
|
208
|
+
}, /*#__PURE__*/React.createElement("h2", null, t === null || t === void 0 || (_t$titles = t.titles) === null || _t$titles === void 0 ? void 0 : _t$titles.academicDegrees), /*#__PURE__*/React.createElement("div", {
|
|
204
209
|
className: style.buttons
|
|
205
210
|
}, /*#__PURE__*/React.createElement(ColSort, {
|
|
206
211
|
columns: columns,
|
|
@@ -225,10 +230,10 @@ var QuestionnairesDocumentTypeContent = function QuestionnairesDocumentTypeConte
|
|
|
225
230
|
})), /*#__PURE__*/React.createElement(FormModal, {
|
|
226
231
|
ref: ref,
|
|
227
232
|
width: 454,
|
|
228
|
-
title:
|
|
229
|
-
titleEdit:
|
|
230
|
-
okText:
|
|
231
|
-
cancelText:
|
|
233
|
+
title: t === null || t === void 0 || (_t$common2 = t.common) === null || _t$common2 === void 0 ? void 0 : _t$common2.createQuestionnaire,
|
|
234
|
+
titleEdit: t === null || t === void 0 || (_t$common3 = t.common) === null || _t$common3 === void 0 ? void 0 : _t$common3.editQuestionnaire,
|
|
235
|
+
okText: t === null || t === void 0 || (_t$common4 = t.common) === null || _t$common4 === void 0 ? void 0 : _t$common4.save,
|
|
236
|
+
cancelText: t === null || t === void 0 || (_t$common5 = t.common) === null || _t$common5 === void 0 ? void 0 : _t$common5.close,
|
|
232
237
|
onSubmit: onSubmit,
|
|
233
238
|
onEdit: onEdit,
|
|
234
239
|
className: "absolute",
|
|
@@ -239,10 +244,10 @@ var QuestionnairesDocumentTypeContent = function QuestionnairesDocumentTypeConte
|
|
|
239
244
|
message: ""
|
|
240
245
|
}, {
|
|
241
246
|
min: 3,
|
|
242
|
-
message:
|
|
247
|
+
message: t === null || t === void 0 || (_t$messages = t.messages) === null || _t$messages === void 0 ? void 0 : _t$messages.minChars3
|
|
243
248
|
}],
|
|
244
249
|
name: "name",
|
|
245
|
-
label:
|
|
250
|
+
label: t === null || t === void 0 || (_t$fields = t.fields) === null || _t$fields === void 0 ? void 0 : _t$fields.name
|
|
246
251
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
247
252
|
className: style.modal_input
|
|
248
253
|
}))), /*#__PURE__*/React.createElement(DeleteModal, {
|
|
@@ -257,13 +262,13 @@ var QuestionnairesDocumentTypeContent = function QuestionnairesDocumentTypeConte
|
|
|
257
262
|
onCancel: function onCancel() {
|
|
258
263
|
return dispatch(setDeleteModalVisible(false));
|
|
259
264
|
},
|
|
260
|
-
value:
|
|
265
|
+
value: t === null || t === void 0 || (_t$common6 = t.common) === null || _t$common6 === void 0 ? void 0 : _t$common6.questionnaireAcc
|
|
261
266
|
})), /*#__PURE__*/React.createElement(ViewModal, {
|
|
262
267
|
onCancel: closeOnViewModal,
|
|
263
268
|
width: 695
|
|
264
269
|
}, /*#__PURE__*/React.createElement(Success, {
|
|
265
270
|
onClick: closeOnViewModal,
|
|
266
|
-
value:
|
|
271
|
+
value: t === null || t === void 0 || (_t$common7 = t.common) === null || _t$common7 === void 0 ? void 0 : _t$common7.questionnaire
|
|
267
272
|
}))))));
|
|
268
273
|
};
|
|
269
274
|
export default QuestionnairesDocumentTypeContent;
|
|
@@ -3,7 +3,8 @@ import { Switch, Tooltip } from "antd";
|
|
|
3
3
|
import style from "../Questionnaires.module.scss";
|
|
4
4
|
import { setDeleteModalVisible } from "../../../store/slices/global";
|
|
5
5
|
import { DeleteIconQ, EditIcon } from "../../../assets/icons";
|
|
6
|
-
export var getStreetColumns = function getStreetColumns(onEditClick, onDelete, onStatusChange, dispatch, innerW) {
|
|
6
|
+
export var getStreetColumns = function getStreetColumns(t, onEditClick, onDelete, onStatusChange, dispatch, innerW) {
|
|
7
|
+
var _t$fields, _t$fields2;
|
|
7
8
|
return [{
|
|
8
9
|
title: "№",
|
|
9
10
|
dataIndex: "num",
|
|
@@ -11,20 +12,21 @@ export var getStreetColumns = function getStreetColumns(onEditClick, onDelete, o
|
|
|
11
12
|
ellipsis: true,
|
|
12
13
|
width: 35
|
|
13
14
|
}, {
|
|
14
|
-
title:
|
|
15
|
+
title: t === null || t === void 0 || (_t$fields = t.fields) === null || _t$fields === void 0 ? void 0 : _t$fields.topic,
|
|
15
16
|
dataIndex: "name",
|
|
16
17
|
width: innerW,
|
|
17
18
|
disabled: true,
|
|
18
19
|
ellipsis: true
|
|
19
20
|
}, {
|
|
20
|
-
title:
|
|
21
|
+
title: t === null || t === void 0 || (_t$fields2 = t.fields) === null || _t$fields2 === void 0 ? void 0 : _t$fields2.status,
|
|
21
22
|
key: "status",
|
|
22
23
|
disabled: true,
|
|
23
24
|
filter: false,
|
|
24
25
|
render: function render(data) {
|
|
26
|
+
var _t$common;
|
|
25
27
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
26
28
|
placement: "top",
|
|
27
|
-
title:
|
|
29
|
+
title: t === null || t === void 0 || (_t$common = t.common) === null || _t$common === void 0 ? void 0 : _t$common.changeStatus
|
|
28
30
|
}, /*#__PURE__*/React.createElement(Switch, {
|
|
29
31
|
size: "medium",
|
|
30
32
|
checked: data === null || data === void 0 ? void 0 : data.isActive,
|
|
@@ -24,9 +24,14 @@ import Loading from "../../../components/Loading";
|
|
|
24
24
|
import Table from "../../../components/Table";
|
|
25
25
|
import Filter from "../../../components/Filter";
|
|
26
26
|
import { addApplicationForm, applicationFormVisibility, deleteApplicationForm, editApplicationForm, getApplicationForms } from "../../../store/slices/questionnaire";
|
|
27
|
+
import text from "../../../translations/index.json";
|
|
28
|
+
import { useLang } from "../../../hooks/useLang";
|
|
27
29
|
var Content = Layout.Content;
|
|
28
30
|
var Item = Form.Item;
|
|
29
31
|
var QuestionnairesApplicationFormContent = function QuestionnairesApplicationFormContent() {
|
|
32
|
+
var _text$lang, _t$common, _t$titles, _t$common2, _t$common3, _t$common4, _t$common5, _t$messages, _t$fields, _t$common6, _t$common7;
|
|
33
|
+
var lang = useLang();
|
|
34
|
+
var t = text === null || text === void 0 || (_text$lang = text[lang]) === null || _text$lang === void 0 || (_text$lang = _text$lang.pages) === null || _text$lang === void 0 ? void 0 : _text$lang.questionnaires;
|
|
30
35
|
var _useState = useState(null),
|
|
31
36
|
_useState2 = _slicedToArray(_useState, 2),
|
|
32
37
|
innerW = _useState2[0],
|
|
@@ -137,8 +142,8 @@ var QuestionnairesApplicationFormContent = function QuestionnairesApplicationFor
|
|
|
137
142
|
});
|
|
138
143
|
}
|
|
139
144
|
var columns = useMemo(function () {
|
|
140
|
-
return getStreetColumns(onEditClick, onDelete, onStatusChange, dispatch);
|
|
141
|
-
}, [onEditClick, onDelete, onStatusChange, dispatch]);
|
|
145
|
+
return getStreetColumns(t, onEditClick, onDelete, onStatusChange, dispatch);
|
|
146
|
+
}, [t, onEditClick, onDelete, onStatusChange, dispatch]);
|
|
142
147
|
var _useState1 = useState(columns.map(function (col) {
|
|
143
148
|
return col.dataIndex;
|
|
144
149
|
})),
|
|
@@ -174,7 +179,7 @@ var QuestionnairesApplicationFormContent = function QuestionnairesApplicationFor
|
|
|
174
179
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
175
180
|
onClick: onClickModal,
|
|
176
181
|
color: "green"
|
|
177
|
-
}, " ", /*#__PURE__*/React.createElement(PlusIcon, null), "
|
|
182
|
+
}, " ", /*#__PURE__*/React.createElement(PlusIcon, null), " ", t === null || t === void 0 || (_t$common = t.common) === null || _t$common === void 0 ? void 0 : _t$common.addQuestionnaire), /*#__PURE__*/React.createElement(Filter, {
|
|
178
183
|
columns: columns,
|
|
179
184
|
selectedColumns: selectedColumns,
|
|
180
185
|
setQuery: setQuery,
|
|
@@ -186,7 +191,7 @@ var QuestionnairesApplicationFormContent = function QuestionnairesApplicationFor
|
|
|
186
191
|
className: style.content
|
|
187
192
|
}, /*#__PURE__*/React.createElement("div", {
|
|
188
193
|
className: style.table_header
|
|
189
|
-
}, /*#__PURE__*/React.createElement("h2", null,
|
|
194
|
+
}, /*#__PURE__*/React.createElement("h2", null, t === null || t === void 0 || (_t$titles = t.titles) === null || _t$titles === void 0 ? void 0 : _t$titles.appealForms), /*#__PURE__*/React.createElement("div", {
|
|
190
195
|
className: style.buttons
|
|
191
196
|
}, /*#__PURE__*/React.createElement(ColSort, {
|
|
192
197
|
columns: columns,
|
|
@@ -211,10 +216,10 @@ var QuestionnairesApplicationFormContent = function QuestionnairesApplicationFor
|
|
|
211
216
|
})), /*#__PURE__*/React.createElement(FormModal, {
|
|
212
217
|
ref: ref,
|
|
213
218
|
width: 454,
|
|
214
|
-
title:
|
|
215
|
-
titleEdit:
|
|
216
|
-
okText:
|
|
217
|
-
cancelText:
|
|
219
|
+
title: t === null || t === void 0 || (_t$common2 = t.common) === null || _t$common2 === void 0 ? void 0 : _t$common2.createQuestionnaire,
|
|
220
|
+
titleEdit: t === null || t === void 0 || (_t$common3 = t.common) === null || _t$common3 === void 0 ? void 0 : _t$common3.editQuestionnaire,
|
|
221
|
+
okText: t === null || t === void 0 || (_t$common4 = t.common) === null || _t$common4 === void 0 ? void 0 : _t$common4.save,
|
|
222
|
+
cancelText: t === null || t === void 0 || (_t$common5 = t.common) === null || _t$common5 === void 0 ? void 0 : _t$common5.close,
|
|
218
223
|
onSubmit: onSubmit,
|
|
219
224
|
onEdit: onEdit,
|
|
220
225
|
className: "absolute",
|
|
@@ -225,10 +230,10 @@ var QuestionnairesApplicationFormContent = function QuestionnairesApplicationFor
|
|
|
225
230
|
message: ""
|
|
226
231
|
}, {
|
|
227
232
|
min: 3,
|
|
228
|
-
message:
|
|
233
|
+
message: t === null || t === void 0 || (_t$messages = t.messages) === null || _t$messages === void 0 ? void 0 : _t$messages.minChars3
|
|
229
234
|
}],
|
|
230
235
|
name: "name",
|
|
231
|
-
label:
|
|
236
|
+
label: t === null || t === void 0 || (_t$fields = t.fields) === null || _t$fields === void 0 ? void 0 : _t$fields.name
|
|
232
237
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
233
238
|
className: style.modal_input
|
|
234
239
|
}))), /*#__PURE__*/React.createElement(DeleteModal, {
|
|
@@ -243,13 +248,13 @@ var QuestionnairesApplicationFormContent = function QuestionnairesApplicationFor
|
|
|
243
248
|
onCancel: function onCancel() {
|
|
244
249
|
return dispatch(setDeleteModalVisible(false));
|
|
245
250
|
},
|
|
246
|
-
value:
|
|
251
|
+
value: t === null || t === void 0 || (_t$common6 = t.common) === null || _t$common6 === void 0 ? void 0 : _t$common6.questionnaireAcc
|
|
247
252
|
})), /*#__PURE__*/React.createElement(ViewModal, {
|
|
248
253
|
onCancel: closeOnViewModal,
|
|
249
254
|
width: 695
|
|
250
255
|
}, /*#__PURE__*/React.createElement(Success, {
|
|
251
256
|
onClick: closeOnViewModal,
|
|
252
|
-
value:
|
|
257
|
+
value: t === null || t === void 0 || (_t$common7 = t.common) === null || _t$common7 === void 0 ? void 0 : _t$common7.questionnaire
|
|
253
258
|
}))))));
|
|
254
259
|
};
|
|
255
260
|
export default QuestionnairesApplicationFormContent;
|
|
@@ -3,7 +3,8 @@ import { Switch, Tooltip } from "antd";
|
|
|
3
3
|
import style from "../Questionnaires.module.scss";
|
|
4
4
|
import { setDeleteModalVisible } from "../../../store/slices/global";
|
|
5
5
|
import { DeleteIconQ, EditIcon } from "../../../assets/icons";
|
|
6
|
-
export var getStreetColumns = function getStreetColumns(onEditClick, onDelete, onStatusChange, dispatch, innerW) {
|
|
6
|
+
export var getStreetColumns = function getStreetColumns(t, onEditClick, onDelete, onStatusChange, dispatch, innerW) {
|
|
7
|
+
var _t$fields, _t$fields2, _t$fields3;
|
|
7
8
|
return [{
|
|
8
9
|
title: "№",
|
|
9
10
|
dataIndex: "num",
|
|
@@ -12,24 +13,25 @@ export var getStreetColumns = function getStreetColumns(onEditClick, onDelete, o
|
|
|
12
13
|
width: 35
|
|
13
14
|
}, {
|
|
14
15
|
key: "name",
|
|
15
|
-
title:
|
|
16
|
+
title: t === null || t === void 0 || (_t$fields = t.fields) === null || _t$fields === void 0 ? void 0 : _t$fields.areaName,
|
|
16
17
|
dataIndex: "name",
|
|
17
18
|
disabled: true,
|
|
18
19
|
ellipsis: true
|
|
19
20
|
}, {
|
|
20
21
|
key: "name",
|
|
21
|
-
title:
|
|
22
|
+
title: t === null || t === void 0 || (_t$fields2 = t.fields) === null || _t$fields2 === void 0 ? void 0 : _t$fields2.areaFullName,
|
|
22
23
|
dataIndex: "fullName",
|
|
23
24
|
ellipsis: true
|
|
24
25
|
}, {
|
|
25
|
-
title:
|
|
26
|
+
title: t === null || t === void 0 || (_t$fields3 = t.fields) === null || _t$fields3 === void 0 ? void 0 : _t$fields3.status,
|
|
26
27
|
key: "status",
|
|
27
28
|
disabled: true,
|
|
28
29
|
filter: false,
|
|
29
30
|
render: function render(data) {
|
|
31
|
+
var _t$common;
|
|
30
32
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
31
33
|
placement: "top",
|
|
32
|
-
title:
|
|
34
|
+
title: t === null || t === void 0 || (_t$common = t.common) === null || _t$common === void 0 ? void 0 : _t$common.changeStatus
|
|
33
35
|
}, /*#__PURE__*/React.createElement(Switch, {
|
|
34
36
|
size: "medium",
|
|
35
37
|
checked: data === null || data === void 0 ? void 0 : data.isActive,
|
|
@@ -27,9 +27,14 @@ import Loading from "../../../components/Loading";
|
|
|
27
27
|
import Table from "../../../components/Table";
|
|
28
28
|
import Filter from "../../../components/Filter";
|
|
29
29
|
import { addAreas, deleteAreas, areasVisibility, editAreas, getAreas } from "../../../store/slices/questionnaire";
|
|
30
|
+
import text from "../../../translations/index.json";
|
|
31
|
+
import { useLang } from "../../../hooks/useLang";
|
|
30
32
|
var Content = Layout.Content;
|
|
31
33
|
var Item = Form.Item;
|
|
32
34
|
var QuestionnairesDocumentTypeContent = function QuestionnairesDocumentTypeContent() {
|
|
35
|
+
var _text$lang, _t$common, _t$titles, _t$common2, _t$common3, _t$common4, _t$common5, _t$fields, _t$fields2, _t$common6, _t$common7;
|
|
36
|
+
var lang = useLang();
|
|
37
|
+
var t = text === null || text === void 0 || (_text$lang = text[lang]) === null || _text$lang === void 0 || (_text$lang = _text$lang.pages) === null || _text$lang === void 0 ? void 0 : _text$lang.questionnaires;
|
|
33
38
|
var _useState = useState(null),
|
|
34
39
|
_useState2 = _slicedToArray(_useState, 2),
|
|
35
40
|
innerW = _useState2[0],
|
|
@@ -143,8 +148,8 @@ var QuestionnairesDocumentTypeContent = function QuestionnairesDocumentTypeConte
|
|
|
143
148
|
});
|
|
144
149
|
}
|
|
145
150
|
var columns = useMemo(function () {
|
|
146
|
-
return getStreetColumns(onEditClick, onDelete, onStatusChange, dispatch);
|
|
147
|
-
}, [onEditClick, onDelete, onStatusChange, dispatch]);
|
|
151
|
+
return getStreetColumns(t, onEditClick, onDelete, onStatusChange, dispatch);
|
|
152
|
+
}, [t, onEditClick, onDelete, onStatusChange, dispatch]);
|
|
148
153
|
var _useState1 = useState(columns.map(function (col) {
|
|
149
154
|
return col.dataIndex;
|
|
150
155
|
})),
|
|
@@ -180,7 +185,7 @@ var QuestionnairesDocumentTypeContent = function QuestionnairesDocumentTypeConte
|
|
|
180
185
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
181
186
|
onClick: onClickModal,
|
|
182
187
|
color: "green"
|
|
183
|
-
}, " ", /*#__PURE__*/React.createElement(PlusIcon, null), "
|
|
188
|
+
}, " ", /*#__PURE__*/React.createElement(PlusIcon, null), " ", t === null || t === void 0 || (_t$common = t.common) === null || _t$common === void 0 ? void 0 : _t$common.addQuestionnaire), /*#__PURE__*/React.createElement(Filter, {
|
|
184
189
|
columns: columns,
|
|
185
190
|
selectedColumns: selectedColumns,
|
|
186
191
|
setQuery: setQuery,
|
|
@@ -192,7 +197,7 @@ var QuestionnairesDocumentTypeContent = function QuestionnairesDocumentTypeConte
|
|
|
192
197
|
className: style.content
|
|
193
198
|
}, /*#__PURE__*/React.createElement("div", {
|
|
194
199
|
className: style.table_header
|
|
195
|
-
}, /*#__PURE__*/React.createElement("h2", null,
|
|
200
|
+
}, /*#__PURE__*/React.createElement("h2", null, t === null || t === void 0 || (_t$titles = t.titles) === null || _t$titles === void 0 ? void 0 : _t$titles.areas), /*#__PURE__*/React.createElement("div", {
|
|
196
201
|
className: style.buttons
|
|
197
202
|
}, /*#__PURE__*/React.createElement(ColSort, {
|
|
198
203
|
columns: columns,
|
|
@@ -217,10 +222,10 @@ var QuestionnairesDocumentTypeContent = function QuestionnairesDocumentTypeConte
|
|
|
217
222
|
})), /*#__PURE__*/React.createElement(FormModal, {
|
|
218
223
|
ref: ref,
|
|
219
224
|
width: 454,
|
|
220
|
-
title:
|
|
221
|
-
titleEdit:
|
|
222
|
-
okText:
|
|
223
|
-
cancelText:
|
|
225
|
+
title: t === null || t === void 0 || (_t$common2 = t.common) === null || _t$common2 === void 0 ? void 0 : _t$common2.createQuestionnaire,
|
|
226
|
+
titleEdit: t === null || t === void 0 || (_t$common3 = t.common) === null || _t$common3 === void 0 ? void 0 : _t$common3.editQuestionnaire,
|
|
227
|
+
okText: t === null || t === void 0 || (_t$common4 = t.common) === null || _t$common4 === void 0 ? void 0 : _t$common4.save,
|
|
228
|
+
cancelText: t === null || t === void 0 || (_t$common5 = t.common) === null || _t$common5 === void 0 ? void 0 : _t$common5.close,
|
|
224
229
|
onSubmit: onSubmit,
|
|
225
230
|
onEdit: onEdit,
|
|
226
231
|
className: "absolute",
|
|
@@ -232,7 +237,7 @@ var QuestionnairesDocumentTypeContent = function QuestionnairesDocumentTypeConte
|
|
|
232
237
|
message: ""
|
|
233
238
|
}],
|
|
234
239
|
name: "name",
|
|
235
|
-
label:
|
|
240
|
+
label: t === null || t === void 0 || (_t$fields = t.fields) === null || _t$fields === void 0 ? void 0 : _t$fields.area
|
|
236
241
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
237
242
|
className: style.modal_input,
|
|
238
243
|
type: "text"
|
|
@@ -243,7 +248,7 @@ var QuestionnairesDocumentTypeContent = function QuestionnairesDocumentTypeConte
|
|
|
243
248
|
message: ""
|
|
244
249
|
}],
|
|
245
250
|
name: "fullName",
|
|
246
|
-
label:
|
|
251
|
+
label: t === null || t === void 0 || (_t$fields2 = t.fields) === null || _t$fields2 === void 0 ? void 0 : _t$fields2.fullName
|
|
247
252
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
248
253
|
className: style.modal_input,
|
|
249
254
|
type: "text"
|
|
@@ -259,13 +264,13 @@ var QuestionnairesDocumentTypeContent = function QuestionnairesDocumentTypeConte
|
|
|
259
264
|
onCancel: function onCancel() {
|
|
260
265
|
return dispatch(setDeleteModalVisible(false));
|
|
261
266
|
},
|
|
262
|
-
value:
|
|
267
|
+
value: t === null || t === void 0 || (_t$common6 = t.common) === null || _t$common6 === void 0 ? void 0 : _t$common6.questionnaireAcc
|
|
263
268
|
})), /*#__PURE__*/React.createElement(ViewModal, {
|
|
264
269
|
onCancel: closeOnViewModal,
|
|
265
270
|
width: 695
|
|
266
271
|
}, /*#__PURE__*/React.createElement(Success, {
|
|
267
272
|
onClick: closeOnViewModal,
|
|
268
|
-
value:
|
|
273
|
+
value: t === null || t === void 0 || (_t$common7 = t.common) === null || _t$common7 === void 0 ? void 0 : _t$common7.questionnaire
|
|
269
274
|
}))))));
|
|
270
275
|
};
|
|
271
276
|
export default QuestionnairesDocumentTypeContent;
|
|
@@ -3,7 +3,8 @@ import { Switch, Tooltip } from "antd";
|
|
|
3
3
|
import style from "../Questionnaires.module.scss";
|
|
4
4
|
import { setDeleteModalVisible } from "../../../store/slices/global";
|
|
5
5
|
import { DeleteIconQ, EditIcon } from "../../../assets/icons";
|
|
6
|
-
export var getStreetColumns = function getStreetColumns(onEditClick, onDelete, onStatusChange, dispatch, innerW) {
|
|
6
|
+
export var getStreetColumns = function getStreetColumns(t, onEditClick, onDelete, onStatusChange, dispatch, innerW) {
|
|
7
|
+
var _t$titles, _t$fields, _t$fields2, _t$fields3;
|
|
7
8
|
return [{
|
|
8
9
|
title: "№",
|
|
9
10
|
dataIndex: "num",
|
|
@@ -11,30 +12,31 @@ export var getStreetColumns = function getStreetColumns(onEditClick, onDelete, o
|
|
|
11
12
|
ellipsis: true,
|
|
12
13
|
width: 35
|
|
13
14
|
}, {
|
|
14
|
-
title:
|
|
15
|
+
title: t === null || t === void 0 || (_t$titles = t.titles) === null || _t$titles === void 0 ? void 0 : _t$titles.attestations,
|
|
15
16
|
dataIndex: "name",
|
|
16
17
|
width: innerW,
|
|
17
18
|
disabled: true,
|
|
18
19
|
ellipsis: true
|
|
19
20
|
}, {
|
|
20
|
-
title:
|
|
21
|
+
title: t === null || t === void 0 || (_t$fields = t.fields) === null || _t$fields === void 0 ? void 0 : _t$fields.fullName,
|
|
21
22
|
dataIndex: "fullName",
|
|
22
23
|
width: innerW,
|
|
23
24
|
ellipsis: true
|
|
24
25
|
}, {
|
|
25
|
-
title:
|
|
26
|
+
title: t === null || t === void 0 || (_t$fields2 = t.fields) === null || _t$fields2 === void 0 ? void 0 : _t$fields2.attestationType,
|
|
26
27
|
dataIndex: "attestationTypeText",
|
|
27
28
|
width: innerW,
|
|
28
29
|
ellipsis: true
|
|
29
30
|
}, {
|
|
30
|
-
title:
|
|
31
|
+
title: t === null || t === void 0 || (_t$fields3 = t.fields) === null || _t$fields3 === void 0 ? void 0 : _t$fields3.status,
|
|
31
32
|
key: "status",
|
|
32
33
|
disabled: true,
|
|
33
34
|
filter: false,
|
|
34
35
|
render: function render(data) {
|
|
36
|
+
var _t$common;
|
|
35
37
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
36
38
|
placement: "top",
|
|
37
|
-
title:
|
|
39
|
+
title: t === null || t === void 0 || (_t$common = t.common) === null || _t$common === void 0 ? void 0 : _t$common.changeStatus
|
|
38
40
|
}, /*#__PURE__*/React.createElement(Switch, {
|
|
39
41
|
size: "medium",
|
|
40
42
|
checked: data === null || data === void 0 ? void 0 : data.isActive,
|
|
@@ -26,10 +26,15 @@ import Filter from "../../../components/Filter";
|
|
|
26
26
|
import { addAttestations, deleteAttestations, editAttestations, getAttestations, attestationsVisibility } from "../../../store/slices/questionnaire";
|
|
27
27
|
import Select from "../../../components/Select";
|
|
28
28
|
import { AttestationType } from "../../../helpers/enums";
|
|
29
|
+
import text from "../../../translations/index.json";
|
|
30
|
+
import { useLang } from "../../../hooks/useLang";
|
|
29
31
|
var Content = Layout.Content;
|
|
30
32
|
var Item = Form.Item;
|
|
31
33
|
var Option = AntdSelect.Option;
|
|
32
34
|
var QuestionnairesAttestationsContent = function QuestionnairesAttestationsContent() {
|
|
35
|
+
var _text$lang, _t$common, _t$titles, _t$common2, _t$common3, _t$common4, _t$common5, _t$messages, _t$fields, _t$fields2, _t$fields3, _t$common6, _t$common7;
|
|
36
|
+
var lang = useLang();
|
|
37
|
+
var t = text === null || text === void 0 || (_text$lang = text[lang]) === null || _text$lang === void 0 || (_text$lang = _text$lang.pages) === null || _text$lang === void 0 ? void 0 : _text$lang.questionnaires;
|
|
33
38
|
var _useState = useState(null),
|
|
34
39
|
_useState2 = _slicedToArray(_useState, 2),
|
|
35
40
|
innerW = _useState2[0],
|
|
@@ -144,8 +149,8 @@ var QuestionnairesAttestationsContent = function QuestionnairesAttestationsConte
|
|
|
144
149
|
});
|
|
145
150
|
}
|
|
146
151
|
var columns = useMemo(function () {
|
|
147
|
-
return getStreetColumns(onEditClick, onDelete, onStatusChange, dispatch);
|
|
148
|
-
}, [onEditClick, onDelete, onStatusChange, dispatch]);
|
|
152
|
+
return getStreetColumns(t, onEditClick, onDelete, onStatusChange, dispatch);
|
|
153
|
+
}, [t, onEditClick, onDelete, onStatusChange, dispatch]);
|
|
149
154
|
var _useState1 = useState(columns.map(function (col) {
|
|
150
155
|
return col.dataIndex;
|
|
151
156
|
})),
|
|
@@ -181,7 +186,7 @@ var QuestionnairesAttestationsContent = function QuestionnairesAttestationsConte
|
|
|
181
186
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
182
187
|
onClick: onClickModal,
|
|
183
188
|
color: "green"
|
|
184
|
-
}, /*#__PURE__*/React.createElement(PlusIcon, null), "
|
|
189
|
+
}, /*#__PURE__*/React.createElement(PlusIcon, null), " ", t === null || t === void 0 || (_t$common = t.common) === null || _t$common === void 0 ? void 0 : _t$common.addQuestionnaire), /*#__PURE__*/React.createElement(Filter, {
|
|
185
190
|
columns: columns,
|
|
186
191
|
selectedColumns: selectedColumns,
|
|
187
192
|
setQuery: setQuery,
|
|
@@ -193,7 +198,7 @@ var QuestionnairesAttestationsContent = function QuestionnairesAttestationsConte
|
|
|
193
198
|
className: style.content
|
|
194
199
|
}, /*#__PURE__*/React.createElement("div", {
|
|
195
200
|
className: style.table_header
|
|
196
|
-
}, /*#__PURE__*/React.createElement("h2", null,
|
|
201
|
+
}, /*#__PURE__*/React.createElement("h2", null, t === null || t === void 0 || (_t$titles = t.titles) === null || _t$titles === void 0 ? void 0 : _t$titles.attestations), /*#__PURE__*/React.createElement("div", {
|
|
197
202
|
className: style.buttons
|
|
198
203
|
}, /*#__PURE__*/React.createElement(ColSort, {
|
|
199
204
|
columns: columns,
|
|
@@ -218,10 +223,10 @@ var QuestionnairesAttestationsContent = function QuestionnairesAttestationsConte
|
|
|
218
223
|
})), /*#__PURE__*/React.createElement(FormModal, {
|
|
219
224
|
ref: ref,
|
|
220
225
|
width: 454,
|
|
221
|
-
title:
|
|
222
|
-
titleEdit:
|
|
223
|
-
okText:
|
|
224
|
-
cancelText:
|
|
226
|
+
title: t === null || t === void 0 || (_t$common2 = t.common) === null || _t$common2 === void 0 ? void 0 : _t$common2.createQuestionnaire,
|
|
227
|
+
titleEdit: t === null || t === void 0 || (_t$common3 = t.common) === null || _t$common3 === void 0 ? void 0 : _t$common3.editQuestionnaire,
|
|
228
|
+
okText: t === null || t === void 0 || (_t$common4 = t.common) === null || _t$common4 === void 0 ? void 0 : _t$common4.save,
|
|
229
|
+
cancelText: t === null || t === void 0 || (_t$common5 = t.common) === null || _t$common5 === void 0 ? void 0 : _t$common5.close,
|
|
225
230
|
onSubmit: onSubmit,
|
|
226
231
|
onEdit: onEdit,
|
|
227
232
|
className: "absolute",
|
|
@@ -232,10 +237,10 @@ var QuestionnairesAttestationsContent = function QuestionnairesAttestationsConte
|
|
|
232
237
|
message: ""
|
|
233
238
|
}, {
|
|
234
239
|
min: 3,
|
|
235
|
-
message:
|
|
240
|
+
message: t === null || t === void 0 || (_t$messages = t.messages) === null || _t$messages === void 0 ? void 0 : _t$messages.minChars3
|
|
236
241
|
}],
|
|
237
242
|
name: "name",
|
|
238
|
-
label:
|
|
243
|
+
label: t === null || t === void 0 || (_t$fields = t.fields) === null || _t$fields === void 0 ? void 0 : _t$fields.name
|
|
239
244
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
240
245
|
className: style.modal_input
|
|
241
246
|
})), /*#__PURE__*/React.createElement(Item, {
|
|
@@ -244,7 +249,7 @@ var QuestionnairesAttestationsContent = function QuestionnairesAttestationsConte
|
|
|
244
249
|
message: ""
|
|
245
250
|
}],
|
|
246
251
|
name: "fullName",
|
|
247
|
-
label:
|
|
252
|
+
label: t === null || t === void 0 || (_t$fields2 = t.fields) === null || _t$fields2 === void 0 ? void 0 : _t$fields2.fullName
|
|
248
253
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
249
254
|
className: style.modal_input
|
|
250
255
|
})), /*#__PURE__*/React.createElement(Item, {
|
|
@@ -254,7 +259,7 @@ var QuestionnairesAttestationsContent = function QuestionnairesAttestationsConte
|
|
|
254
259
|
message: ""
|
|
255
260
|
}],
|
|
256
261
|
name: "attestationType",
|
|
257
|
-
label:
|
|
262
|
+
label: t === null || t === void 0 || (_t$fields3 = t.fields) === null || _t$fields3 === void 0 ? void 0 : _t$fields3.attestationType
|
|
258
263
|
}, /*#__PURE__*/React.createElement(Select, null, AttestationType.map(function (item) {
|
|
259
264
|
return /*#__PURE__*/React.createElement(Option, {
|
|
260
265
|
key: item.id,
|
|
@@ -272,13 +277,13 @@ var QuestionnairesAttestationsContent = function QuestionnairesAttestationsConte
|
|
|
272
277
|
onCancel: function onCancel() {
|
|
273
278
|
return dispatch(setDeleteModalVisible(false));
|
|
274
279
|
},
|
|
275
|
-
value:
|
|
280
|
+
value: t === null || t === void 0 || (_t$common6 = t.common) === null || _t$common6 === void 0 ? void 0 : _t$common6.questionnaireAcc
|
|
276
281
|
})), /*#__PURE__*/React.createElement(ViewModal, {
|
|
277
282
|
onCancel: closeOnViewModal,
|
|
278
283
|
width: 695
|
|
279
284
|
}, /*#__PURE__*/React.createElement(Success, {
|
|
280
285
|
onClick: closeOnViewModal,
|
|
281
|
-
value:
|
|
286
|
+
value: t === null || t === void 0 || (_t$common7 = t.common) === null || _t$common7 === void 0 ? void 0 : _t$common7.questionnaire
|
|
282
287
|
}))))));
|
|
283
288
|
};
|
|
284
289
|
export default QuestionnairesAttestationsContent;
|
|
@@ -3,7 +3,8 @@ import { Switch, Tooltip } from "antd";
|
|
|
3
3
|
import style from "../Questionnaires.module.scss";
|
|
4
4
|
import { setDeleteModalVisible } from "../../../store/slices/global";
|
|
5
5
|
import { DeleteIconQ, EditIcon } from "../../../assets/icons";
|
|
6
|
-
export var getStreetColumns = function getStreetColumns(onEditClick, onDelete, onStatusChange, dispatch, innerW) {
|
|
6
|
+
export var getStreetColumns = function getStreetColumns(t, onEditClick, onDelete, onStatusChange, dispatch, innerW) {
|
|
7
|
+
var _t$fields, _t$fields2, _t$fields3, _t$fields4;
|
|
7
8
|
return [{
|
|
8
9
|
title: "№",
|
|
9
10
|
dataIndex: "num",
|
|
@@ -11,32 +12,33 @@ export var getStreetColumns = function getStreetColumns(onEditClick, onDelete, o
|
|
|
11
12
|
ellipsis: true,
|
|
12
13
|
width: 35
|
|
13
14
|
}, {
|
|
14
|
-
title:
|
|
15
|
+
title: t === null || t === void 0 || (_t$fields = t.fields) === null || _t$fields === void 0 ? void 0 : _t$fields.name,
|
|
15
16
|
dataIndex: "name",
|
|
16
17
|
width: innerW,
|
|
17
18
|
disabled: true,
|
|
18
19
|
ellipsis: true
|
|
19
20
|
}, {
|
|
20
|
-
title:
|
|
21
|
+
title: t === null || t === void 0 || (_t$fields2 = t.fields) === null || _t$fields2 === void 0 ? void 0 : _t$fields2.type,
|
|
21
22
|
dataIndex: "typeText",
|
|
22
23
|
width: innerW,
|
|
23
24
|
disabled: false,
|
|
24
25
|
ellipsis: true
|
|
25
26
|
}, {
|
|
26
|
-
title:
|
|
27
|
+
title: t === null || t === void 0 || (_t$fields3 = t.fields) === null || _t$fields3 === void 0 ? void 0 : _t$fields3.area,
|
|
27
28
|
dataIndex: "fieldName",
|
|
28
29
|
width: innerW,
|
|
29
30
|
disabled: true,
|
|
30
31
|
ellipsis: true
|
|
31
32
|
}, {
|
|
32
|
-
title:
|
|
33
|
+
title: t === null || t === void 0 || (_t$fields4 = t.fields) === null || _t$fields4 === void 0 ? void 0 : _t$fields4.status,
|
|
33
34
|
key: "status",
|
|
34
35
|
disabled: true,
|
|
35
36
|
filter: false,
|
|
36
37
|
render: function render(data) {
|
|
38
|
+
var _t$common;
|
|
37
39
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
38
40
|
placement: "top",
|
|
39
|
-
title:
|
|
41
|
+
title: t === null || t === void 0 || (_t$common = t.common) === null || _t$common === void 0 ? void 0 : _t$common.changeStatus
|
|
40
42
|
}, /*#__PURE__*/React.createElement(Switch, {
|
|
41
43
|
size: "medium",
|
|
42
44
|
checked: data === null || data === void 0 ? void 0 : data.isActive,
|