@banch0u/core-project-test-repository 2.2.9 → 2.2.12

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.
@@ -1,17 +1,17 @@
1
- :root {
2
- --defaultColor: #302e38;
3
- --secondaryColor: #9d9d9d;
4
- --blueToneColor: #32aaff;
5
- --darkBlueColor: #016daf;
6
- --defaultFont: Inter;
7
- --secondaryFont: Lato;
8
- --transition: 250ms;
9
-
10
- --lightBlue: #DEEAF6;
11
- --blue: #035FB5;
12
- --grey: #828282;
13
- --black: #0C0C0C;
14
- --white: #FFFFFF;
15
- --green: #18B503;
16
-
1
+ :root {
2
+ --defaultColor: #302e38;
3
+ --secondaryColor: #9d9d9d;
4
+ --blueToneColor: #32aaff;
5
+ --darkBlueColor: #016daf;
6
+ --defaultFont: Inter;
7
+ --secondaryFont: Lato;
8
+ --transition: 250ms;
9
+
10
+ --lightBlue: #DEEAF6;
11
+ --blue: #035FB5;
12
+ --grey: #828282;
13
+ --black: #0C0C0C;
14
+ --white: #FFFFFF;
15
+ --green: #18B503;
16
+
17
17
  }
@@ -5,7 +5,7 @@ import style from "./index.module.scss";
5
5
  import { Layout, Menu, Input } from "antd";
6
6
  import { QUESTIONNAIRES_ACADEMIC_DEGREES, QUESTIONNAIRES_APPLICATION_FORMS, QUESTIONNAIRES_AREAS, QUESTIONNAIRES_BRANDS, QUESTIONNAIRES_CATEGORIES, QUESTIONNAIRES_CHASSIS_TYPES, QUESTIONNAIRES_CHEMICALS, QUESTIONNAIRES_COLORS, QUESTIONNAIRES_COMPANIES, QUESTIONNAIRES_CONTRACTCURRENCIES, QUESTIONNAIRES_CONTRACTTYPES, QUESTIONNAIRES_CONTRAGENTTYPES, QUESTIONNAIRES_COUNTRIES, QUESTIONNAIRES_CRUSH_REASONS, QUESTIONNAIRES_DETAIL_PARTS, QUESTIONNAIRES_DISABILITY_STATUSES, QUESTIONNAIRES_DOCUMENT_RECIEVE_METHODS, QUESTIONNAIRES_DOCUMENT_TYPES, QUESTIONNAIRES_DOCUMENT_WHOM, QUESTIONNAIRES_DRIVING_CATEGORIES, QUESTIONNAIRES_EDUCATION_INSTITUTIONS, QUESTIONNAIRES_EDUCATION_LEVELS, QUESTIONNAIRES_EDUCATION_PAYMENTS, QUESTIONNAIRES_EMPLOYEE_CONFIGURATIONS, QUESTIONNAIRES_ENGINE_TYPES, QUESTIONNAIRES_EXECUTION_RULES, QUESTIONNAIRES_EXTRA_SERVICES, QUESTIONNAIRES_FUEL_TYPES, QUESTIONNAIRES_GEARBOX_TYPES, QUESTIONNAIRES_GENERAL_STRUCTURE_STATUSES, QUESTIONNAIRES_GENERAL_STRUCTURE_TYPES, QUESTIONNAIRES_HALLS, QUESTIONNAIRES_HONORARY_TITLES, QUESTIONNAIRES_INSURANCE_TYPES, QUESTIONNAIRES_ISSUED_AUTHORITIES, QUESTIONNAIRES_MARGIN_NOTE_TEXTS, QUESTIONNAIRES_MEASUREMENT_TYPES, QUESTIONNAIRES_MILITARY_CATEGORIES, QUESTIONNAIRES_MILITARY_GROUPS, QUESTIONNAIRES_MILITARY_RANKS, QUESTIONNAIRES_MILITARY_STAFFS, QUESTIONNAIRES_MODELS, QUESTIONNAIRES_OIL_FIELDS, QUESTIONNAIRES_ORDERS, QUESTIONNAIRES_ORGANIZATIONS, QUESTIONNAIRES_OWNERSHIP_TYPES, QUESTIONNAIRES_PENALTY_TYPES, QUESTIONNAIRES_POSITIONS, QUESTIONNAIRES_REPAIR_TYPES, QUESTIONNAIRES_REPAIRMENT_WORK_TYPES,
7
7
  // QUESTIONNAIRES_REGIONS,
8
- QUESTIONNAIRES_REPRIMAND_TYPES, QUESTIONNAIRES_SPECIAL_DAYS, QUESTIONNAIRES_SPECIALIZATIONS, QUESTIONNAIRES_STRUCTURES, QUESTIONNAIRES_SUBTOPIC, QUESTIONNAIRES_TOPIC, QUESTIONNAIRES_TRANSMITTER_TYPES, QUESTIONNAIRES_VEHICLE_CATEGORIES, QUESTIONNAIRES_VEHICLE_GROUPS, QUESTIONNAIRES_VEHICLE_TYPES, QUESTIONNAIRES_WAR_PARTICIPANTS, QUESTIONNAIRES_WORK_MODES, QUESTIONNAIRES_WORK_SCHEDULES, QUESTIONNAIRES_OWNERS, QUESTIONNAIRES_CONTRACTTOPICS, QUESTIONNAIRES_CONTRACTTYPESSUBTYPES, QUESTIONNAIRES_DEFAULTAGREEMENTPLANS, QUESTIONNAIRES_ROUTELOCATIONS, QUESTIONNAIRES_INTERNALSTRUCTURE, QUESTIONNAIRES_FIELD, QUESTIONNAIRES_WELL, QUESTIONNAIRES_BARREL } from "../../utils/path";
8
+ QUESTIONNAIRES_REPRIMAND_TYPES, QUESTIONNAIRES_SPECIAL_DAYS, QUESTIONNAIRES_SPECIALIZATIONS, QUESTIONNAIRES_STRUCTURES, QUESTIONNAIRES_SUBTOPIC, QUESTIONNAIRES_TOPIC, QUESTIONNAIRES_TRANSMITTER_TYPES, QUESTIONNAIRES_VEHICLE_CATEGORIES, QUESTIONNAIRES_VEHICLE_GROUPS, QUESTIONNAIRES_VEHICLE_TYPES, QUESTIONNAIRES_WAR_PARTICIPANTS, QUESTIONNAIRES_WORK_MODES, QUESTIONNAIRES_WORK_SCHEDULES, QUESTIONNAIRES_OWNERS, QUESTIONNAIRES_CONTRACTTOPICS, QUESTIONNAIRES_CONTRACTTYPESSUBTYPES, QUESTIONNAIRES_DEFAULTAGREEMENTPLANS, QUESTIONNAIRES_ROUTELOCATIONS, QUESTIONNAIRES_INTERNALSTRUCTURE, QUESTIONNAIRES_FIELD, QUESTIONNAIRES_WELL, QUESTIONNAIRES_BARREL, QUESTIONNAIRES_BUDGETCOMPONENTS, QUESTIONNAIRES_DEPARTMENTS, QUESTIONNAIRES_PENTIONS } from "../../utils/path";
9
9
  import { SearchIcon } from "../../assets/icons";
10
10
  var Sider = Layout.Sider;
11
11
  var SubMenu = Menu.SubMenu;
@@ -340,8 +340,32 @@ var QuestionnairesSidebar = function QuestionnairesSidebar(_ref) {
340
340
  //delete the "/" at the start of string
341
341
  label: "Çən",
342
342
  link: QUESTIONNAIRES_BARREL
343
- }
343
+ },
344
344
  // ---- generated sidebar item by questionnaireGenerator: Barrel ----
345
+
346
+ {
347
+ key: "budget-components",
348
+ //delete the "/" at the start of string
349
+ label: "Büdcə Komponentləri",
350
+ link: QUESTIONNAIRES_BUDGETCOMPONENTS
351
+ },
352
+ // ---- generated sidebar item by questionnaireGenerator: BudgetComponents ----
353
+
354
+ {
355
+ key: "departments",
356
+ //delete the "/" at the start of string
357
+ label: "Departamentlər",
358
+ link: QUESTIONNAIRES_DEPARTMENTS
359
+ },
360
+ // ---- generated sidebar item by questionnaireGenerator: Departments ----
361
+
362
+ {
363
+ key: "pentions",
364
+ //delete the "/" at the start of string
365
+ label: "Təqaüd növü",
366
+ link: QUESTIONNAIRES_PENTIONS
367
+ }
368
+ // ---- generated sidebar item by questionnaireGenerator: Pentions ----
345
369
  ];
346
370
  var sortedItems = items.sort(function (a, b) {
347
371
  return a.label.localeCompare(b.label);
@@ -0,0 +1,64 @@
1
+ import * as React from "react";
2
+ import { Switch, Tooltip } from "antd";
3
+ import style from "../Questionnaires.module.scss";
4
+ import { setDeleteModalVisible } from "../../../store/slices/global";
5
+ import { DeleteIconQ, EditIcon } from "../../../assets/icons";
6
+ export var getStreetColumns = function getStreetColumns(onEditClick, onDelete, onStatusChange, dispatch, innerW) {
7
+ return [{
8
+ title: "№",
9
+ dataIndex: "num",
10
+ showCheckbox: false,
11
+ ellipsis: true,
12
+ width: 35
13
+ }, {
14
+ title: "Büdcə Komponentləri",
15
+ dataIndex: "name",
16
+ width: innerW,
17
+ disabled: true,
18
+ ellipsis: true
19
+ }, {
20
+ title: "Qısa ad",
21
+ dataIndex: "shortName",
22
+ width: innerW,
23
+ disabled: true,
24
+ ellipsis: true
25
+ }, {
26
+ title: "Status",
27
+ key: "status",
28
+ disabled: true,
29
+ filter: false,
30
+ render: function render(data) {
31
+ return /*#__PURE__*/React.createElement(Tooltip, {
32
+ placement: "top",
33
+ title: "Statusu d\u0259yi\u015F"
34
+ }, /*#__PURE__*/React.createElement(Switch, {
35
+ size: "medium",
36
+ checked: data === null || data === void 0 ? void 0 : data.isActive,
37
+ onChange: function onChange(checked) {
38
+ return onStatusChange(data, checked, dispatch);
39
+ }
40
+ }));
41
+ }
42
+ }, {
43
+ title: "",
44
+ key: "actions",
45
+ showCheckbox: false,
46
+ width: 80,
47
+ render: function render(data) {
48
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
49
+ className: style.number
50
+ }, /*#__PURE__*/React.createElement("div", {
51
+ className: style.actions
52
+ }, /*#__PURE__*/React.createElement("div", {
53
+ onClick: function onClick() {
54
+ return onEditClick(data);
55
+ }
56
+ }, /*#__PURE__*/React.createElement(EditIcon, null)), /*#__PURE__*/React.createElement("div", {
57
+ onClick: function onClick() {
58
+ onDelete(data === null || data === void 0 ? void 0 : data.id);
59
+ dispatch(setDeleteModalVisible(true));
60
+ }
61
+ }, /*#__PURE__*/React.createElement(DeleteIconQ, null)))));
62
+ }
63
+ }];
64
+ };
@@ -0,0 +1,261 @@
1
+ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
+ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
5
+ import React from "react";
6
+ import { useCallback, useEffect, useMemo, useRef, useState } from "react";
7
+ import Cookies from "js-cookie";
8
+ import style from "../Questionnaires.module.scss";
9
+ import { Form, Input, Layout } from "antd";
10
+ import { PlusIcon } from "../../../assets/icons";
11
+ import FormModal from "../../../components/FormModal";
12
+ import { useDispatch, useSelector } from "react-redux";
13
+ import Delete from "../../../components/Delete/Delete";
14
+ import DeleteModal from "../../../components/DeleteModal/DeleteModal";
15
+ import Success from "../../../components/Success/Success";
16
+ import { setDeleteModalVisible, setViewModalVisible } from "../../../store/slices/global";
17
+ import ViewModal from "../../../components/ViewModal";
18
+ import { getStreetColumns } from "./constant";
19
+ import Pagination from "../../../components/Pagination";
20
+ import ColSort from "../../../components/ColSort";
21
+ import { setPaginationLength } from "../../../helpers/paginationLength";
22
+ import Button from "../../../components/Button";
23
+ import Loading from "../../../components/Loading";
24
+ import Table from "../../../components/Table";
25
+ import Filter from "../../../components/Filter";
26
+ import { addBudgetComponents, deleteBudgetComponents, editBudgetComponents, getBudgetComponents, budgetComponentsVisibility } from "../../../store/slices/questionnaire";
27
+ var Content = Layout.Content;
28
+ var Item = Form.Item;
29
+ var QuestionnairesBudgetComponentsContent = function QuestionnairesBudgetComponentsContent() {
30
+ var _useState = useState(null),
31
+ _useState2 = _slicedToArray(_useState, 2),
32
+ innerW = _useState2[0],
33
+ setInnerW = _useState2[1];
34
+ var ref = useRef();
35
+ var dispatch = useDispatch();
36
+ var _useState3 = useState(0),
37
+ _useState4 = _slicedToArray(_useState3, 2),
38
+ id = _useState4[0],
39
+ setId = _useState4[1];
40
+ var _useState5 = useState(1),
41
+ _useState6 = _slicedToArray(_useState5, 2),
42
+ page = _useState6[0],
43
+ setPage = _useState6[1];
44
+ var _useState7 = useState(Cookies.get("pagination-size-questionnaire-budgetcomponents") ? JSON.parse(Cookies.get("pagination-size-questionnaire-budgetcomponents")) : 20),
45
+ _useState8 = _slicedToArray(_useState7, 2),
46
+ size = _useState8[0],
47
+ setSize = _useState8[1];
48
+ var _useState9 = useState({
49
+ name: ""
50
+ }),
51
+ _useState0 = _slicedToArray(_useState9, 2),
52
+ query = _useState0[0],
53
+ setQuery = _useState0[1];
54
+ var _useSelector = useSelector(function (state) {
55
+ return state.global;
56
+ }),
57
+ loading = _useSelector.loading,
58
+ BudgetComponentsRender = _useSelector.BudgetComponentsRender;
59
+ var BudgetComponents = useSelector(function (state) {
60
+ return state.questionnaire.budgetComponents;
61
+ });
62
+ var paginationLength = setPaginationLength(BudgetComponents === null || BudgetComponents === void 0 ? void 0 : BudgetComponents.count, BudgetComponents === null || BudgetComponents === void 0 ? void 0 : BudgetComponents.size);
63
+ var onSubmit = useCallback(/*#__PURE__*/function () {
64
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(data) {
65
+ return _regeneratorRuntime.wrap(function (_context) {
66
+ while (1) switch (_context.prev = _context.next) {
67
+ case 0:
68
+ dispatch(addBudgetComponents(data));
69
+ case 1:
70
+ case "end":
71
+ return _context.stop();
72
+ }
73
+ }, _callee);
74
+ }));
75
+ return function (_x) {
76
+ return _ref.apply(this, arguments);
77
+ };
78
+ }(), [dispatch]);
79
+ var onEdit = useCallback(function (id, record) {
80
+ var data = {
81
+ id: id,
82
+ name: record === null || record === void 0 ? void 0 : record.name,
83
+ shortName: record === null || record === void 0 ? void 0 : record.shortName
84
+ };
85
+ dispatch(editBudgetComponents(data));
86
+ }, [dispatch]);
87
+ var onStatusChange = useCallback(function (data, checked) {
88
+ var data_ = {
89
+ id: data === null || data === void 0 ? void 0 : data.id,
90
+ checked: checked
91
+ };
92
+ dispatch(budgetComponentsVisibility(data_));
93
+ }, [dispatch]);
94
+ var closeOnViewModal = useCallback(function () {
95
+ dispatch(setViewModalVisible(false));
96
+ }, [dispatch]);
97
+ var onClickModal = function onClickModal() {
98
+ var _ref$current;
99
+ ref === null || ref === void 0 || (_ref$current = ref.current) === null || _ref$current === void 0 || _ref$current.open();
100
+ };
101
+ var onEditClick = useCallback(function (data) {
102
+ var _ref$current2;
103
+ ref === null || ref === void 0 || (_ref$current2 = ref.current) === null || _ref$current2 === void 0 || _ref$current2.setEdit(data);
104
+ }, []);
105
+ var onDelete = useCallback(function (id) {
106
+ setId(id);
107
+ }, []);
108
+ var handleColumnToggle = function handleColumnToggle(checked, dataIndex) {
109
+ setSelectedColumns(function (prevSelected) {
110
+ if (checked) {
111
+ return [].concat(_toConsumableArray(prevSelected), [dataIndex]);
112
+ } else {
113
+ return prevSelected.filter(function (col) {
114
+ return col !== dataIndex;
115
+ });
116
+ }
117
+ });
118
+ };
119
+ var data = [];
120
+ if (BudgetComponents !== null && BudgetComponents !== void 0 && BudgetComponents.items) {
121
+ var _BudgetComponents$ite;
122
+ data = BudgetComponents === null || BudgetComponents === void 0 || (_BudgetComponents$ite = BudgetComponents.items) === null || _BudgetComponents$ite === void 0 ? void 0 : _BudgetComponents$ite.map(function (dataObj, i) {
123
+ return {
124
+ num: (BudgetComponents === null || BudgetComponents === void 0 ? void 0 : BudgetComponents.size) * (BudgetComponents === null || BudgetComponents === void 0 ? void 0 : BudgetComponents.page) + i + 1 - (BudgetComponents === null || BudgetComponents === void 0 ? void 0 : BudgetComponents.size),
125
+ id: dataObj === null || dataObj === void 0 ? void 0 : dataObj.id,
126
+ name: dataObj === null || dataObj === void 0 ? void 0 : dataObj.name,
127
+ shortName: dataObj.shortName,
128
+ isActive: dataObj === null || dataObj === void 0 ? void 0 : dataObj.isActive,
129
+ className: "rowClassName1"
130
+ };
131
+ });
132
+ }
133
+ var columns = useMemo(function () {
134
+ return getStreetColumns(onEditClick, onDelete, onStatusChange, dispatch);
135
+ }, [onEditClick, onDelete, onStatusChange, dispatch]);
136
+ var _useState1 = useState(columns.map(function (col) {
137
+ return col.dataIndex;
138
+ })),
139
+ _useState10 = _slicedToArray(_useState1, 2),
140
+ selectedColumns = _useState10[0],
141
+ setSelectedColumns = _useState10[1];
142
+ useEffect(function () {
143
+ if (window.innerWidth >= 1900) {
144
+ setInnerW(210);
145
+ } else {
146
+ setInnerW(155);
147
+ }
148
+ var data = {
149
+ page: page,
150
+ size: size,
151
+ query: query,
152
+ visibility: "nondeleted"
153
+ };
154
+ dispatch(getBudgetComponents(data));
155
+ }, [dispatch, page, BudgetComponentsRender, query, size]);
156
+ var updateSize = function updateSize(newSize) {
157
+ setSize(newSize);
158
+ Cookies.set("pagination-size-questionnaire-budgetcomponents", JSON.stringify(newSize), {
159
+ expires: 7
160
+ });
161
+ };
162
+ return /*#__PURE__*/React.createElement(React.Fragment, null, loading ? /*#__PURE__*/React.createElement(Loading, null) : null, /*#__PURE__*/React.createElement(Layout, {
163
+ className: style.layout
164
+ }, /*#__PURE__*/React.createElement(Content, {
165
+ className: style.content
166
+ }, /*#__PURE__*/React.createElement("header", {
167
+ className: style.header
168
+ }, /*#__PURE__*/React.createElement(Button, {
169
+ onClick: onClickModal,
170
+ color: "green"
171
+ }, /*#__PURE__*/React.createElement(PlusIcon, null), " Soraq\xE7a \u0259lav\u0259 et"), /*#__PURE__*/React.createElement(Filter, {
172
+ columns: columns,
173
+ selectedColumns: selectedColumns,
174
+ setQuery: setQuery,
175
+ disabledElementCount: 3,
176
+ setPage: setPage
177
+ }))), /*#__PURE__*/React.createElement(Layout, {
178
+ className: style.layout1
179
+ }, /*#__PURE__*/React.createElement(Content, {
180
+ className: style.content
181
+ }, /*#__PURE__*/React.createElement("div", {
182
+ className: style.table_header
183
+ }, /*#__PURE__*/React.createElement("h2", null, "B\xFCdc\u0259 Komponentl\u0259ri"), /*#__PURE__*/React.createElement("div", {
184
+ className: style.buttons
185
+ }, /*#__PURE__*/React.createElement(ColSort, {
186
+ columns: columns,
187
+ selectedColumns: selectedColumns,
188
+ handleColumnToggle: handleColumnToggle
189
+ }))), /*#__PURE__*/React.createElement("div", {
190
+ className: "bigTable"
191
+ }, /*#__PURE__*/React.createElement(Table, {
192
+ selectedColumns: selectedColumns,
193
+ innerW: innerW,
194
+ dataSource: data,
195
+ columns: columns,
196
+ disableDrag: true
197
+ })), /*#__PURE__*/React.createElement("div", {
198
+ className: style.pagination
199
+ }, /*#__PURE__*/React.createElement(Pagination, {
200
+ size: size,
201
+ setSize: updateSize,
202
+ total: paginationLength,
203
+ page: page,
204
+ onChange: setPage
205
+ })), /*#__PURE__*/React.createElement(FormModal, {
206
+ ref: ref,
207
+ width: 454,
208
+ title: "Yeni soraqça yaratma",
209
+ titleEdit: "Soraqça redaktə etmə",
210
+ okText: "Yadda saxla",
211
+ cancelText: "Bağla",
212
+ onSubmit: onSubmit,
213
+ onEdit: onEdit,
214
+ className: "absolute",
215
+ centered: false
216
+ }, /*#__PURE__*/React.createElement(Item, {
217
+ rules: [{
218
+ required: true,
219
+ message: ""
220
+ }, {
221
+ min: 3,
222
+ message: "Ən azından 3 simvol olmalıdır"
223
+ }],
224
+ name: "name",
225
+ label: "Ad"
226
+ }, /*#__PURE__*/React.createElement(Input, {
227
+ className: style.modal_input
228
+ })), /*#__PURE__*/React.createElement(Item, {
229
+ rules: [{
230
+ required: true,
231
+ message: ""
232
+ }, {
233
+ min: 3,
234
+ message: "Ən azından 3 simvol olmalıdır"
235
+ }],
236
+ name: "shortName",
237
+ label: "Qısa ad"
238
+ }, /*#__PURE__*/React.createElement(Input, {
239
+ className: style.modal_input
240
+ }))), /*#__PURE__*/React.createElement(DeleteModal, {
241
+ onCancel: function onCancel() {
242
+ return dispatch(setDeleteModalVisible(false));
243
+ },
244
+ width: 280
245
+ }, /*#__PURE__*/React.createElement(Delete, {
246
+ onDelete: function onDelete() {
247
+ return dispatch(deleteBudgetComponents(id));
248
+ },
249
+ onCancel: function onCancel() {
250
+ return dispatch(setDeleteModalVisible(false));
251
+ },
252
+ value: "Soraqçanı"
253
+ })), /*#__PURE__*/React.createElement(ViewModal, {
254
+ onCancel: closeOnViewModal,
255
+ width: 695
256
+ }, /*#__PURE__*/React.createElement(Success, {
257
+ onClick: closeOnViewModal,
258
+ value: "Soraqça"
259
+ }))))));
260
+ };
261
+ export default QuestionnairesBudgetComponentsContent;
@@ -0,0 +1,64 @@
1
+ import * as React from "react";
2
+ import { Switch, Tooltip } from "antd";
3
+ import style from "../Questionnaires.module.scss";
4
+ import { setDeleteModalVisible } from "../../../store/slices/global";
5
+ import { DeleteIconQ, EditIcon } from "../../../assets/icons";
6
+ export var getStreetColumns = function getStreetColumns(onEditClick, onDelete, onStatusChange, dispatch, innerW) {
7
+ return [{
8
+ title: "№",
9
+ dataIndex: "num",
10
+ showCheckbox: false,
11
+ ellipsis: true,
12
+ width: 35
13
+ }, {
14
+ title: "Departamentlər",
15
+ dataIndex: "name",
16
+ width: innerW,
17
+ disabled: true,
18
+ ellipsis: true
19
+ }, {
20
+ title: "Kod",
21
+ dataIndex: "code",
22
+ width: innerW,
23
+ disabled: true,
24
+ ellipsis: true
25
+ }, {
26
+ title: "Status",
27
+ key: "status",
28
+ disabled: true,
29
+ filter: false,
30
+ render: function render(data) {
31
+ return /*#__PURE__*/React.createElement(Tooltip, {
32
+ placement: "top",
33
+ title: "Statusu d\u0259yi\u015F"
34
+ }, /*#__PURE__*/React.createElement(Switch, {
35
+ size: "medium",
36
+ checked: data === null || data === void 0 ? void 0 : data.isActive,
37
+ onChange: function onChange(checked) {
38
+ return onStatusChange(data, checked, dispatch);
39
+ }
40
+ }));
41
+ }
42
+ }, {
43
+ title: "",
44
+ key: "actions",
45
+ showCheckbox: false,
46
+ width: 80,
47
+ render: function render(data) {
48
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
49
+ className: style.number
50
+ }, /*#__PURE__*/React.createElement("div", {
51
+ className: style.actions
52
+ }, /*#__PURE__*/React.createElement("div", {
53
+ onClick: function onClick() {
54
+ return onEditClick(data);
55
+ }
56
+ }, /*#__PURE__*/React.createElement(EditIcon, null)), /*#__PURE__*/React.createElement("div", {
57
+ onClick: function onClick() {
58
+ onDelete(data === null || data === void 0 ? void 0 : data.id);
59
+ dispatch(setDeleteModalVisible(true));
60
+ }
61
+ }, /*#__PURE__*/React.createElement(DeleteIconQ, null)))));
62
+ }
63
+ }];
64
+ };