ecomlab-components-next 0.1.102 → 0.1.104
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/AuthorAvatar/AuthorAvatar.js +36 -0
- package/dist/components/AuthorAvatar/AuthorAvatar.scss +53 -0
- package/dist/components/Loader/SceletonChart/SceletonChart.js +57 -0
- package/dist/components/Loader/SceletonChart/SceletonChart.scss +20 -0
- package/dist/components/Loader/SceletonTable/SceletonTable.js +55 -0
- package/dist/components/Loader/SceletonTable/SceletonTable.scss +27 -0
- package/dist/components/Table/Paginator/Paginator.scss +1 -1
- package/dist/components/Table/Table/Table.js +1433 -1004
- package/dist/components/Table/Table/Table.scss +1230 -1300
- package/dist/components/Table/TableBox/TableBox.js +118 -42
- package/dist/components/Table/TableBox/TableBox.scss +40 -7
- package/dist/components/Table/TableBox/TableBox.stories.js +4 -241
- package/package.json +1 -1
|
@@ -26,8 +26,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
26
26
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
27
27
|
var TableBox = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, paginatorRef) {
|
|
28
28
|
var _headers$header, _headers$header2;
|
|
29
|
-
var
|
|
30
|
-
noDataText = _ref.noDataText,
|
|
29
|
+
var noDataText = _ref.noDataText,
|
|
31
30
|
_ref$hideColumn = _ref.hideColumn,
|
|
32
31
|
hideColumn = _ref$hideColumn === void 0 ? false : _ref$hideColumn,
|
|
33
32
|
_ref$hideUpload = _ref.hideUpload,
|
|
@@ -43,6 +42,7 @@ var TableBox = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, paginatorRef)
|
|
|
43
42
|
paginatorDependencies = _ref.paginatorDependencies,
|
|
44
43
|
onCheck = _ref.onCheck,
|
|
45
44
|
onInputHandler = _ref.onInputHandler,
|
|
45
|
+
_onInputAction = _ref.onInputAction,
|
|
46
46
|
_ref$setCheckedStateE = _ref.setCheckedStateEmpty,
|
|
47
47
|
setCheckedStateEmpty = _ref$setCheckedStateE === void 0 ? false : _ref$setCheckedStateE,
|
|
48
48
|
sortableColumns = _ref.sortableColumns,
|
|
@@ -55,7 +55,8 @@ var TableBox = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, paginatorRef)
|
|
|
55
55
|
onAddAcc = _ref$onAddAcc === void 0 ? false : _ref$onAddAcc,
|
|
56
56
|
_ref$onBooleanCheckbo = _ref.onBooleanCheckbox,
|
|
57
57
|
onBooleanCheckbox = _ref$onBooleanCheckbo === void 0 ? false : _ref$onBooleanCheckbo,
|
|
58
|
-
sort = _ref.sort,
|
|
58
|
+
_ref$sort = _ref.sort,
|
|
59
|
+
sort = _ref$sort === void 0 ? false : _ref$sort,
|
|
59
60
|
isSortable = _ref.isSortable,
|
|
60
61
|
_onAction = _ref.onAction,
|
|
61
62
|
_ref$onActionInfo = _ref.onActionInfo,
|
|
@@ -74,6 +75,8 @@ var TableBox = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, paginatorRef)
|
|
|
74
75
|
date = _ref.date,
|
|
75
76
|
_ref$statistic = _ref.statistic,
|
|
76
77
|
statistic = _ref$statistic === void 0 ? false : _ref$statistic,
|
|
78
|
+
_ref$metrics = _ref.metrics,
|
|
79
|
+
metrics = _ref$metrics === void 0 ? false : _ref$metrics,
|
|
77
80
|
child = _ref.child,
|
|
78
81
|
_ref$hideExport = _ref.hideExport,
|
|
79
82
|
hideExport = _ref$hideExport === void 0 ? false : _ref$hideExport,
|
|
@@ -90,8 +93,15 @@ var TableBox = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, paginatorRef)
|
|
|
90
93
|
contextMenuArr = _ref.contextMenuArr,
|
|
91
94
|
tableBody = _ref.tableBody,
|
|
92
95
|
tableUrl = _ref.tableUrl,
|
|
93
|
-
|
|
94
|
-
|
|
96
|
+
tableQuery = _ref.tableQuery,
|
|
97
|
+
tableHeaders = _ref.tableHeaders,
|
|
98
|
+
onUncheckAllDependence = _ref.onUncheckAllDependence,
|
|
99
|
+
showFilter = _ref.showFilter,
|
|
100
|
+
maxSelectedCount = _ref.maxSelectedCount,
|
|
101
|
+
isEditing = _ref.isEditing,
|
|
102
|
+
tableIdCRM = _ref.tableIdCRM,
|
|
103
|
+
fetchHead = _ref.fetchHead;
|
|
104
|
+
var lang = localStorage.getItem('lang');
|
|
95
105
|
var _useState = (0, _react.useState)(headers === null || headers === void 0 ? void 0 : headers.filters),
|
|
96
106
|
_useState2 = _slicedToArray(_useState, 2),
|
|
97
107
|
fileFilters = _useState2[0],
|
|
@@ -108,6 +118,10 @@ var TableBox = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, paginatorRef)
|
|
|
108
118
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
109
119
|
checkedHeaders = _useState8[0],
|
|
110
120
|
_setCheckedHeaders = _useState8[1];
|
|
121
|
+
var _useState9 = (0, _react.useState)(0),
|
|
122
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
123
|
+
rowCount = _useState10[0],
|
|
124
|
+
_setRowCount = _useState10[1];
|
|
111
125
|
var _usePagination = (0, _Paginator.usePagination)(function (e) {
|
|
112
126
|
return fetchCallback(e);
|
|
113
127
|
}, paginatorDependencies, params, lang, _setParams),
|
|
@@ -127,47 +141,80 @@ var TableBox = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, paginatorRef)
|
|
|
127
141
|
reset: reset
|
|
128
142
|
};
|
|
129
143
|
});
|
|
130
|
-
var
|
|
131
|
-
|
|
132
|
-
width =
|
|
133
|
-
setWidth =
|
|
134
|
-
var
|
|
144
|
+
var _useState11 = (0, _react.useState)(),
|
|
145
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
146
|
+
width = _useState12[0],
|
|
147
|
+
setWidth = _useState12[1];
|
|
148
|
+
var _useState13 = (0, _react.useState)({
|
|
135
149
|
name: 'Обычные',
|
|
136
150
|
value: 1
|
|
137
151
|
}),
|
|
138
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
139
|
-
selectedColumnWidth = _useState12[0],
|
|
140
|
-
setSelectedColumnWidth = _useState12[1];
|
|
141
|
-
var _useState13 = (0, _react.useState)(null),
|
|
142
152
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
143
|
-
|
|
144
|
-
|
|
153
|
+
selectedColumnWidth = _useState14[0],
|
|
154
|
+
setSelectedColumnWidth = _useState14[1];
|
|
155
|
+
var _useState15 = (0, _react.useState)(null),
|
|
156
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
157
|
+
positionPaginator = _useState16[0],
|
|
158
|
+
setPositionPaginator = _useState16[1];
|
|
145
159
|
var refContainer = (0, _react.useRef)();
|
|
146
160
|
var paginatorBoxRef = (0, _react.useRef)();
|
|
147
161
|
var refDiv = (0, _react.useRef)();
|
|
148
162
|
(0, _react.useEffect)(function () {
|
|
149
|
-
|
|
150
|
-
var
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
};
|
|
160
|
-
}
|
|
163
|
+
var event = function event() {
|
|
164
|
+
var _document$querySelect;
|
|
165
|
+
var tableWidth = (_document$querySelect = document.querySelector('.table-box-component')) === null || _document$querySelect === void 0 ? void 0 : _document$querySelect.offsetWidth;
|
|
166
|
+
setWidth(tableWidth);
|
|
167
|
+
};
|
|
168
|
+
event();
|
|
169
|
+
window.addEventListener('resize', event);
|
|
170
|
+
return function () {
|
|
171
|
+
window.removeEventListener('resize', event);
|
|
172
|
+
};
|
|
161
173
|
}, []);
|
|
162
174
|
var scroll = function scroll() {
|
|
163
175
|
var _paginatorBoxRef$curr;
|
|
164
176
|
setPositionPaginator((_paginatorBoxRef$curr = paginatorBoxRef.current) === null || _paginatorBoxRef$curr === void 0 ? void 0 : _paginatorBoxRef$curr.scrollLeft);
|
|
165
177
|
};
|
|
178
|
+
var refHeader = (0, _react.useRef)();
|
|
179
|
+
var refTableContainer = (0, _react.useRef)();
|
|
180
|
+
var refBody = (0, _react.useRef)();
|
|
181
|
+
// const [rowCountHeader, setRowCountHeader] = useState(0)
|
|
182
|
+
|
|
183
|
+
// const scrollHeader = () => {
|
|
184
|
+
|
|
185
|
+
// const tbody = refTableContainer?.current?.getBoundingClientRect();
|
|
186
|
+
// const thead = refHeader?.current;
|
|
187
|
+
|
|
188
|
+
// const top = tbody?.top;
|
|
189
|
+
// const height = thead?.getBoundingClientRect().height;
|
|
190
|
+
// console.log((-top + height))
|
|
191
|
+
// if (true) {
|
|
192
|
+
// setRowCountHeader(-top + height);
|
|
193
|
+
// } else {
|
|
194
|
+
// setRowCountHeader(0);
|
|
195
|
+
// }
|
|
196
|
+
// };
|
|
197
|
+
|
|
198
|
+
// useEffect(() => {
|
|
199
|
+
// window.addEventListener('scroll', scrollHeader);
|
|
200
|
+
|
|
201
|
+
// return () => window.removeEventListener('scroll', scrollHeader);
|
|
202
|
+
// }, []);
|
|
203
|
+
|
|
166
204
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
167
205
|
className: "table-box-component ".concat((headers === null || headers === void 0 || (_headers$header = headers.header) === null || _headers$header === void 0 ? void 0 : _headers$header.length) > 0 ? '' : 'table-box-component_no-data'),
|
|
168
|
-
|
|
206
|
+
style: {
|
|
207
|
+
maxWidth: loading ? '100%' : ''
|
|
208
|
+
}
|
|
169
209
|
}, !hideHeader && /*#__PURE__*/_react["default"].createElement("div", {
|
|
170
|
-
className: "table-box-component__header"
|
|
210
|
+
className: "table-box-component__header",
|
|
211
|
+
ref: refHeader
|
|
212
|
+
// style={{
|
|
213
|
+
// backgroundColor: 'white',
|
|
214
|
+
// transform: `translateY(${rowCountHeader + (topHeader ? topHeader : 0)
|
|
215
|
+
// }px)`,
|
|
216
|
+
// transition: '.3s',
|
|
217
|
+
// }}
|
|
171
218
|
}, selectRange && /*#__PURE__*/_react["default"].createElement(_DownSelector["default"], {
|
|
172
219
|
options_prop: [],
|
|
173
220
|
setState: function setState(e) {
|
|
@@ -193,15 +240,31 @@ var TableBox = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, paginatorRef)
|
|
|
193
240
|
disabled: true
|
|
194
241
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
195
242
|
className: "child-box"
|
|
196
|
-
}, statistic && /*#__PURE__*/_react["default"].createElement("div", {
|
|
243
|
+
}, child, statistic && /*#__PURE__*/_react["default"].createElement("div", {
|
|
197
244
|
className: "statistic-items"
|
|
198
|
-
}, statistic.map(function (_ref2) {
|
|
245
|
+
}, statistic === null || statistic === void 0 ? void 0 : statistic.map(function (_ref2, ind) {
|
|
199
246
|
var label = _ref2.label,
|
|
200
247
|
sum = _ref2.sum;
|
|
201
248
|
return /*#__PURE__*/_react["default"].createElement("p", {
|
|
202
|
-
className: "text_violet"
|
|
249
|
+
className: "text_violet",
|
|
250
|
+
key: label + ind
|
|
203
251
|
}, label + ' ', " ", /*#__PURE__*/_react["default"].createElement("span", null, sum));
|
|
204
|
-
})),
|
|
252
|
+
})), metrics && /*#__PURE__*/_react["default"].createElement("div", {
|
|
253
|
+
className: "metrics-items"
|
|
254
|
+
}, metrics === null || metrics === void 0 ? void 0 : metrics.map(function (_ref3, ind) {
|
|
255
|
+
var label = _ref3.label,
|
|
256
|
+
value = _ref3.value,
|
|
257
|
+
unit = _ref3.unit,
|
|
258
|
+
color = _ref3.color;
|
|
259
|
+
return /*#__PURE__*/_react["default"].createElement("p", {
|
|
260
|
+
className: "metrics-items__text",
|
|
261
|
+
key: label + ind
|
|
262
|
+
}, label + ' ', ' ', /*#__PURE__*/_react["default"].createElement("span", {
|
|
263
|
+
style: {
|
|
264
|
+
color: color ? color : ''
|
|
265
|
+
}
|
|
266
|
+
}, value === null || value === void 0 ? void 0 : value.toLocaleString()), /*#__PURE__*/_react["default"].createElement("span", null, " ", unit ? ' ' + unit : ''));
|
|
267
|
+
}))), (!hideExport || !hideUpload || !hideColumn) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
205
268
|
className: "panel-with-buttons-right"
|
|
206
269
|
}, !hideColumn && /*#__PURE__*/_react["default"].createElement(_ButtonColumn.ButtonColumn, {
|
|
207
270
|
lang: lang,
|
|
@@ -216,7 +279,10 @@ var TableBox = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, paginatorRef)
|
|
|
216
279
|
}), !hideExport && /*#__PURE__*/_react["default"].createElement(_ButtonExport.ButtonExport, {
|
|
217
280
|
lang: lang,
|
|
218
281
|
tableBody: tableBody,
|
|
219
|
-
tableUrl: tableUrl
|
|
282
|
+
tableUrl: tableUrl,
|
|
283
|
+
tableQuery: tableQuery,
|
|
284
|
+
tableHeaders: tableHeaders,
|
|
285
|
+
showFilter: showFilter
|
|
220
286
|
}), !hideUpload && /*#__PURE__*/_react["default"].createElement(_ButtonUpload.ButtonUpload, {
|
|
221
287
|
lang: lang
|
|
222
288
|
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -233,14 +299,19 @@ var TableBox = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, paginatorRef)
|
|
|
233
299
|
minHeight: maxHeight ? maxHeight : ''
|
|
234
300
|
}
|
|
235
301
|
}, /*#__PURE__*/_react["default"].createElement(_Table["default"], {
|
|
302
|
+
maxSelectedCount: maxSelectedCount,
|
|
236
303
|
noDataText: noDataText,
|
|
237
304
|
selectedColumnWidth: selectedColumnWidth === null || selectedColumnWidth === void 0 ? void 0 : selectedColumnWidth.value,
|
|
305
|
+
onUncheckAllDependence: onUncheckAllDependence,
|
|
238
306
|
loading: loading,
|
|
239
307
|
fetchedData: fetchedData,
|
|
240
308
|
headers: headers,
|
|
241
309
|
selectedHeaders: selectedHeaders,
|
|
242
310
|
onCheck: onCheck,
|
|
243
311
|
onInputHandler: onInputHandler,
|
|
312
|
+
onInputAction: function onInputAction(e) {
|
|
313
|
+
return _onInputAction(e);
|
|
314
|
+
},
|
|
244
315
|
sortableColumns: sortableColumns,
|
|
245
316
|
setActiveSortColumn: setActiveSortColumn,
|
|
246
317
|
isSortable: isSortable,
|
|
@@ -300,12 +371,17 @@ var TableBox = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, paginatorRef)
|
|
|
300
371
|
hideFilters: hideFilters,
|
|
301
372
|
hideSorting: hideSorting,
|
|
302
373
|
contextMenuArr: contextMenuArr,
|
|
303
|
-
maxHeight: maxHeight
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
374
|
+
maxHeight: maxHeight,
|
|
375
|
+
tableBody: tableBody,
|
|
376
|
+
rowCount: rowCount,
|
|
377
|
+
setRowCount: function setRowCount(e) {
|
|
378
|
+
return _setRowCount(e);
|
|
379
|
+
},
|
|
380
|
+
refBody: refBody,
|
|
381
|
+
refHeader: refHeader,
|
|
382
|
+
isEditing: isEditing,
|
|
383
|
+
tableIdCRM: tableIdCRM,
|
|
384
|
+
fetchHead: fetchHead
|
|
385
|
+
}))), paginator && Paginator);
|
|
310
386
|
});
|
|
311
387
|
var _default = exports["default"] = TableBox;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
// @import 'src/common/styles/svg_img.scss';
|
|
2
|
-
|
|
3
1
|
.table-box-component,
|
|
4
2
|
.table-box-component_no-data {
|
|
5
3
|
display: flex;
|
|
@@ -155,7 +153,7 @@
|
|
|
155
153
|
height: 100%;
|
|
156
154
|
border: none;
|
|
157
155
|
background-color: white;
|
|
158
|
-
opacity: 0.6;
|
|
156
|
+
// opacity: 0.6;
|
|
159
157
|
z-index: 10;
|
|
160
158
|
}
|
|
161
159
|
|
|
@@ -166,6 +164,12 @@
|
|
|
166
164
|
width: 100%;
|
|
167
165
|
gap: 12px;
|
|
168
166
|
margin-bottom: 12px;
|
|
167
|
+
transition: 0.3s;
|
|
168
|
+
position: sticky;
|
|
169
|
+
background-color: #F6F7F6;
|
|
170
|
+
border-radius: 8px;
|
|
171
|
+
z-index: 5;
|
|
172
|
+
top: 0;
|
|
169
173
|
|
|
170
174
|
.name-box {
|
|
171
175
|
display: flex;
|
|
@@ -174,7 +178,7 @@
|
|
|
174
178
|
font-weight: 400;
|
|
175
179
|
width: auto;
|
|
176
180
|
background-color: #ffffff;
|
|
177
|
-
font-size:
|
|
181
|
+
font-size: 13px;
|
|
178
182
|
height: 32px;
|
|
179
183
|
border-radius: 8px;
|
|
180
184
|
padding-left: 16px;
|
|
@@ -204,7 +208,7 @@
|
|
|
204
208
|
color: #636D65;
|
|
205
209
|
text-align: center;
|
|
206
210
|
font-family: NunitoSans;
|
|
207
|
-
font-size:
|
|
211
|
+
font-size: 11px;
|
|
208
212
|
font-style: normal;
|
|
209
213
|
font-weight: 600;
|
|
210
214
|
line-height: 14px;
|
|
@@ -216,6 +220,35 @@
|
|
|
216
220
|
}
|
|
217
221
|
}
|
|
218
222
|
}
|
|
223
|
+
|
|
224
|
+
.metrics-items {
|
|
225
|
+
display: flex;
|
|
226
|
+
width: fit-content;
|
|
227
|
+
align-items: center;
|
|
228
|
+
height: 100%;
|
|
229
|
+
justify-content: flex-start;
|
|
230
|
+
column-gap: 24px;
|
|
231
|
+
row-gap: 16px;
|
|
232
|
+
flex-wrap: wrap;
|
|
233
|
+
padding: 8px;
|
|
234
|
+
|
|
235
|
+
&__text {
|
|
236
|
+
color: #0C2037;
|
|
237
|
+
font-family: "Golos Text";
|
|
238
|
+
font-size: 10px;
|
|
239
|
+
font-style: normal;
|
|
240
|
+
font-weight: 400;
|
|
241
|
+
line-height: 24px;
|
|
242
|
+
|
|
243
|
+
span {
|
|
244
|
+
color: #0C2037;
|
|
245
|
+
font-size: 12px;
|
|
246
|
+
font-weight: 500;
|
|
247
|
+
line-height: 24px;
|
|
248
|
+
/* 184.615% */
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
219
252
|
}
|
|
220
253
|
|
|
221
254
|
.extra_wrapper {
|
|
@@ -230,11 +263,11 @@
|
|
|
230
263
|
display: flex;
|
|
231
264
|
flex-direction: column;
|
|
232
265
|
border-radius: 8px;
|
|
233
|
-
border: 2px solid rgba(170, 178, 246, 0.12);
|
|
234
266
|
overflow-x: auto;
|
|
235
267
|
overflow-y: hidden;
|
|
236
268
|
background-color: white;
|
|
237
|
-
|
|
269
|
+
position: relative;
|
|
270
|
+
border: 1px solid #EDEFED;
|
|
238
271
|
|
|
239
272
|
&::-webkit-scrollbar {
|
|
240
273
|
width: 0;
|
|
@@ -11,236 +11,11 @@ var parse = require('html-react-parser');
|
|
|
11
11
|
var stubColumnSize = ["150px", "150px", "20px", "150px", "150px", "150px"];
|
|
12
12
|
var stubSort = ["Дата", "DESC"];
|
|
13
13
|
var stubHeaders = {
|
|
14
|
-
header: ["
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
filterTypes: ["text", "text", "", "text", "text", "date"],
|
|
18
|
-
filterList: ["", "", "", "", "", ""],
|
|
19
|
-
styles: [[[{
|
|
20
|
-
"color": "black",
|
|
21
|
-
"fontSize": 12
|
|
22
|
-
}], [{
|
|
23
|
-
"color": "black",
|
|
24
|
-
"fontSize": 12
|
|
25
|
-
}], [], [{
|
|
26
|
-
"color": "black",
|
|
27
|
-
"fontSize": 12
|
|
28
|
-
}, {
|
|
29
|
-
"color": "black",
|
|
30
|
-
"fontSize": 12
|
|
31
|
-
}, {
|
|
32
|
-
"color": "red",
|
|
33
|
-
"fontSize": 12
|
|
34
|
-
}], [[[{
|
|
35
|
-
"color": "blue",
|
|
36
|
-
"fontSize": 12
|
|
37
|
-
}], [{
|
|
38
|
-
"color": "black",
|
|
39
|
-
"fontSize": 12
|
|
40
|
-
}]]], [{
|
|
41
|
-
"color": "black",
|
|
42
|
-
"fontSize": 12
|
|
43
|
-
}]], [[{
|
|
44
|
-
"color": "black",
|
|
45
|
-
"fontSize": 12
|
|
46
|
-
}], [{
|
|
47
|
-
"color": "black",
|
|
48
|
-
"fontSize": 12
|
|
49
|
-
}], [], [{
|
|
50
|
-
"color": "black",
|
|
51
|
-
"fontSize": 12
|
|
52
|
-
}, {
|
|
53
|
-
"color": "black",
|
|
54
|
-
"fontSize": 12
|
|
55
|
-
}, {
|
|
56
|
-
"color": "red",
|
|
57
|
-
"fontSize": 12
|
|
58
|
-
}], [[{
|
|
59
|
-
"color": "blue",
|
|
60
|
-
"fontSize": 12
|
|
61
|
-
}, {
|
|
62
|
-
"color": "black",
|
|
63
|
-
"fontSize": 12
|
|
64
|
-
}], [[{
|
|
65
|
-
"color": "blue",
|
|
66
|
-
"fontSize": 12
|
|
67
|
-
}], [{
|
|
68
|
-
"color": "black",
|
|
69
|
-
"fontSize": 12
|
|
70
|
-
}]], [[{
|
|
71
|
-
"color": "blue",
|
|
72
|
-
"fontSize": 12
|
|
73
|
-
}], [{
|
|
74
|
-
"color": "black",
|
|
75
|
-
"fontSize": 12
|
|
76
|
-
}]], [[{
|
|
77
|
-
"color": "blue",
|
|
78
|
-
"fontSize": 12
|
|
79
|
-
}], [{
|
|
80
|
-
"color": "black",
|
|
81
|
-
"fontSize": 12
|
|
82
|
-
}]], [[{
|
|
83
|
-
"color": "blue",
|
|
84
|
-
"fontSize": 12
|
|
85
|
-
}], [{
|
|
86
|
-
"color": "black",
|
|
87
|
-
"fontSize": 12
|
|
88
|
-
}]]], [{
|
|
89
|
-
"color": "black",
|
|
90
|
-
"fontSize": 12
|
|
91
|
-
}]], [[{
|
|
92
|
-
"color": "black",
|
|
93
|
-
"fontSize": 12
|
|
94
|
-
}], [{
|
|
95
|
-
"color": "black",
|
|
96
|
-
"fontSize": 12
|
|
97
|
-
}], [], [{
|
|
98
|
-
"color": "black",
|
|
99
|
-
"fontSize": 12
|
|
100
|
-
}, {
|
|
101
|
-
"color": "black",
|
|
102
|
-
"fontSize": 12
|
|
103
|
-
}, {
|
|
104
|
-
"color": "red",
|
|
105
|
-
"fontSize": 12
|
|
106
|
-
}], [[[{
|
|
107
|
-
"color": "blue",
|
|
108
|
-
"fontSize": 12
|
|
109
|
-
}], [{
|
|
110
|
-
"color": "black",
|
|
111
|
-
"fontSize": 12
|
|
112
|
-
}]]], [{
|
|
113
|
-
"color": "black",
|
|
114
|
-
"fontSize": 12
|
|
115
|
-
}]], [[{
|
|
116
|
-
"color": "black",
|
|
117
|
-
"fontSize": 12
|
|
118
|
-
}], [{
|
|
119
|
-
"color": "black",
|
|
120
|
-
"fontSize": 12
|
|
121
|
-
}], [], [{
|
|
122
|
-
"color": "black",
|
|
123
|
-
"fontSize": 12
|
|
124
|
-
}, {
|
|
125
|
-
"color": "black",
|
|
126
|
-
"fontSize": 12
|
|
127
|
-
}, {
|
|
128
|
-
"color": "red",
|
|
129
|
-
"fontSize": 12
|
|
130
|
-
}], [[[{
|
|
131
|
-
"color": "blue",
|
|
132
|
-
"fontSize": 12
|
|
133
|
-
}], [{
|
|
134
|
-
"color": "black",
|
|
135
|
-
"fontSize": 12
|
|
136
|
-
}]]], [{
|
|
137
|
-
"color": "black",
|
|
138
|
-
"fontSize": 12
|
|
139
|
-
}]], [[{
|
|
140
|
-
"color": "black",
|
|
141
|
-
"fontSize": 12
|
|
142
|
-
}], [{
|
|
143
|
-
"color": "black",
|
|
144
|
-
"fontSize": 12
|
|
145
|
-
}], [], [{
|
|
146
|
-
"color": "black",
|
|
147
|
-
"fontSize": 12
|
|
148
|
-
}, {
|
|
149
|
-
"color": "black",
|
|
150
|
-
"fontSize": 12
|
|
151
|
-
}, {
|
|
152
|
-
"color": "red",
|
|
153
|
-
"fontSize": 12
|
|
154
|
-
}], [[[{
|
|
155
|
-
"color": "blue",
|
|
156
|
-
"fontSize": 12
|
|
157
|
-
}], [{
|
|
158
|
-
"color": "black",
|
|
159
|
-
"fontSize": 12
|
|
160
|
-
}]]], [{
|
|
161
|
-
"color": "black",
|
|
162
|
-
"fontSize": 12
|
|
163
|
-
}]], [[{
|
|
164
|
-
"color": "black",
|
|
165
|
-
"fontSize": 12
|
|
166
|
-
}], [{
|
|
167
|
-
"color": "black",
|
|
168
|
-
"fontSize": 12
|
|
169
|
-
}], [], [{
|
|
170
|
-
"color": "black",
|
|
171
|
-
"fontSize": 12
|
|
172
|
-
}, {
|
|
173
|
-
"color": "black",
|
|
174
|
-
"fontSize": 12
|
|
175
|
-
}, {
|
|
176
|
-
"color": "red",
|
|
177
|
-
"fontSize": 12
|
|
178
|
-
}], [[[{
|
|
179
|
-
"color": "blue",
|
|
180
|
-
"fontSize": 12
|
|
181
|
-
}], [{
|
|
182
|
-
"color": "black",
|
|
183
|
-
"fontSize": 12
|
|
184
|
-
}]]], [{
|
|
185
|
-
"color": "black",
|
|
186
|
-
"fontSize": 12
|
|
187
|
-
}]], [[{
|
|
188
|
-
"color": "black",
|
|
189
|
-
"fontSize": 12
|
|
190
|
-
}], [{
|
|
191
|
-
"color": "black",
|
|
192
|
-
"fontSize": 12
|
|
193
|
-
}], [], [{
|
|
194
|
-
"color": "black",
|
|
195
|
-
"fontSize": 12
|
|
196
|
-
}, {
|
|
197
|
-
"color": "black",
|
|
198
|
-
"fontSize": 12
|
|
199
|
-
}, {
|
|
200
|
-
"color": "red",
|
|
201
|
-
"fontSize": 12
|
|
202
|
-
}], [[[{
|
|
203
|
-
"color": "blue",
|
|
204
|
-
"fontSize": 12
|
|
205
|
-
}], [{
|
|
206
|
-
"color": "black",
|
|
207
|
-
"fontSize": 12
|
|
208
|
-
}]], [[{
|
|
209
|
-
"color": "blue",
|
|
210
|
-
"fontSize": 12
|
|
211
|
-
}], [{
|
|
212
|
-
"color": "black",
|
|
213
|
-
"fontSize": 12
|
|
214
|
-
}]]], [{
|
|
215
|
-
"color": "black",
|
|
216
|
-
"fontSize": 12
|
|
217
|
-
}]], [[{
|
|
218
|
-
"color": "black",
|
|
219
|
-
"fontSize": 12
|
|
220
|
-
}], [{
|
|
221
|
-
"color": "black",
|
|
222
|
-
"fontSize": 12
|
|
223
|
-
}], [], [{
|
|
224
|
-
"color": "black",
|
|
225
|
-
"fontSize": 12
|
|
226
|
-
}, {
|
|
227
|
-
"color": "black",
|
|
228
|
-
"fontSize": 12
|
|
229
|
-
}, {
|
|
230
|
-
"color": "red",
|
|
231
|
-
"fontSize": 12
|
|
232
|
-
}], [[[{
|
|
233
|
-
"color": "blue",
|
|
234
|
-
"fontSize": 12
|
|
235
|
-
}], [{
|
|
236
|
-
"color": "black",
|
|
237
|
-
"fontSize": 12
|
|
238
|
-
}]]], [{
|
|
239
|
-
"color": "black",
|
|
240
|
-
"fontSize": 12
|
|
241
|
-
}]]]
|
|
14
|
+
"header": ["id", "active", "Фото", "Название", "Аннотация", "Дата публикации", "Автор", "Время чтения", "Количество просмотров", "Статус", "total"],
|
|
15
|
+
"sort": "date",
|
|
16
|
+
"type": ["hidden", "hidden", "imgSlider", "textWithLink", "text", "text", "author", "num", "num", "imageWithText", "hidden"]
|
|
242
17
|
};
|
|
243
|
-
var stubFetchedData = [[["
|
|
18
|
+
var stubFetchedData = [[4640, true, ["https://dl.ecomru.ru/service-files/account_status_ok.png", "https://file.ecomru.ru:4453/api/v1/file/download/385b4276-7dea-4ae8-bca6-0ccf4cc296b4"], ["Automated Data Scraping from thailand-property.com", "/article/automated_data_scraping_from_thailand-propertycom/4640"], "<b>Track real estate prices, monitor listings, analyze agents, and stay ahead of the property market in Southeast Asia.</b><!-- notionvc: 4b1879b8-6433-4a07-b88d-43132f3b1560 -->", "25.04.2025", ["Ivan Asanov", "rgb(214, 90, 90)"], 4, 64, ["https://dl.ecomru.ru/service-files/account_status_ok.png", "Active"], 5], [4135, true, ["https://dl.ecomru.ru:9001/images/842/amazon-logo_842.png"], ["Amazon web scraping", "/article/amazon_web_scraping/4135"], "<p data-start=\"148\" data-end=\"426\" class=\"\" style=\"font-style: normal; white-space: normal; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);\">Need up-to-date info from Amazon? We’ve got you. Whether it’s tracking competitors, monitoring prices and product availability, keeping an eye on reviews, or digging into keyword data — we handle it all through regular automated scraping.</p><p data-start=\"428\" data-end=\"608\" class=\"\" style=\"font-style: normal; white-space: normal; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);\">You’ll get the data in the format that works best for you — whether that’s via API, Excel/CSV files, JSON, Google Drive or straight into a custom analytics dashboard.</p><p data-start=\"610\" data-end=\"759\" class=\"\" style=\"font-style: normal; white-space: normal; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);\">Just drop us a request on our website, and we’ll take care of the rest — pulling the data you need from one of the biggest marketplaces in the world.</p>", "07.04.2025", ["Ivan Asanov", "rgb(214, 90, 90)"], 4, 108, ["https://dl.ecomru.ru/service-files/account_status_ok.png", "Active"], 5], [4745, true, ["https://file.ecomru.ru:4453/api/v1/file/download/67392faf-a0e4-4697-8c5e-14816236ee54"], ["Getting Business Data from Google Maps — The Practical Way", "/article/getting_business_data_from_google_maps_—_the_practical_way/4745"], "If your work depends on knowing what businesses operate in a certain area — and how they’re performing — Google Maps is one of the most reliable places to start. We’ve built a custom scraping system that helps you collect that data at scale, automatically, and in a format you can work with right away.<!-- notionvc: 4d9f2c7b-d455-4b19-9d0c-266f8360f3b0 -->", "02.05.2025", ["Ivan Asanov", "rgb(214, 90, 90)"], 4, 15, ["https://dl.ecomru.ru/service-files/account_status_ok.png", "Active"], 5], [4082, true, ["https://file.ecomru.ru:4453/api/v1/file/download/b4f684b1-0ab7-4edb-8510-9bf22a53ca71"], ["Regular web scraping from One2Car", "/article/regular_web_scraping_from_one2car/4082"], "<b>Across-the-board Data Collection from One2Car</b>", "01.04.2025", ["Ivan Asanov", "rgb(214, 90, 90)"], 4, 198, ["https://dl.ecomru.ru/service-files/account_status_ok.png", "Active"], 5]];
|
|
244
19
|
var _default = exports["default"] = {
|
|
245
20
|
title: 'TableBox',
|
|
246
21
|
component: _TableBox["default"],
|
|
@@ -295,15 +70,6 @@ var _default = exports["default"] = {
|
|
|
295
70
|
}, {
|
|
296
71
|
label: 'Товаров',
|
|
297
72
|
sum: 50
|
|
298
|
-
}, {
|
|
299
|
-
label: 'Заказов',
|
|
300
|
-
sum: 50
|
|
301
|
-
}, {
|
|
302
|
-
label: 'Товаров',
|
|
303
|
-
sum: 50
|
|
304
|
-
}, {
|
|
305
|
-
label: 'Заказов',
|
|
306
|
-
sum: 50
|
|
307
73
|
}],
|
|
308
74
|
metrics: [
|
|
309
75
|
// {
|
|
@@ -325,9 +91,6 @@ var _default = exports["default"] = {
|
|
|
325
91
|
}, {
|
|
326
92
|
label: 'Процент отмен, %',
|
|
327
93
|
value: '6'
|
|
328
|
-
}, {
|
|
329
|
-
label: 'Возвраты, шт.',
|
|
330
|
-
value: '16'
|
|
331
94
|
}],
|
|
332
95
|
panelBtn: true
|
|
333
96
|
}
|