ecomlab-components-next 0.1.28 → 0.1.29
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/ConstructorComponents/HeaderMain/DropMenuItem/DropMenuItem.js +162 -0
- package/dist/components/ConstructorComponents/HeaderMain/DropMenuItem/DropMenuItem.scss +392 -0
- package/dist/components/ConstructorComponents/HeaderMain/DropMenuItem/img/cases.svg +3 -0
- package/dist/components/ConstructorComponents/HeaderMain/DropMenuItem/img/examples.svg +3 -0
- package/dist/components/ConstructorComponents/HeaderMain/DropMenuMobileVersion/DropMenuMobileVersion.js +139 -0
- package/dist/components/ConstructorComponents/HeaderMain/DropMenuMobileVersion/DropMenuMobileVersion.scss +149 -0
- package/dist/components/ConstructorComponents/HeaderMain/DropMenuMobileVersion/img/drop.svg +4 -0
- package/dist/components/ConstructorComponents/HeaderMain/Header.js +441 -0
- package/dist/components/ConstructorComponents/HeaderMain/Header.scss +551 -0
- package/dist/components/ConstructorComponents/HeaderMain/HeaderMain.stories.js +16 -0
- package/dist/components/ConstructorComponents/HeaderMain/Logo/Logo.js +26 -0
- package/dist/components/ConstructorComponents/HeaderMain/Logo/Logo.scss +15 -0
- package/dist/components/ConstructorComponents/HeaderMain/Logo/img/Header-img.svg +9 -0
- package/dist/components/ConstructorComponents/HeaderMain/Logo/img/Logo.svg +9 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/ArrowGreen.js +21 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/Banner.png +0 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/Burger.js +21 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/HeaderImg.svg +29 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/Services-and-Solutions/banner_yandex.svg +32 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/Services-and-Solutions//320/220/320/262/321/202/320/276/320/274/320/260/321/202/320/270/320/267/320/260/321/206/320/270/321/217 /320/274/320/260/321/200/320/272/320/265/321/202/320/277/320/273/320/265/320/271/321/201/320/276/320/262.svg" +12 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/Services-and-Solutions//320/220/320/262/321/202/320/276/320/274/320/260/321/202/320/270/321/207/320/265/321/201/320/272/320/276/320/265 /321/203/320/273/321/203/321/207/321/210/320/265/320/275/320/270/320/265 /320/272/320/260/321/200/321/202/320/276/321/207/320/265/320/272 /321/202/320/276/320/262/320/260/321/200/320/276/320/262.svg" +11 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/Services-and-Solutions//320/220/320/262/321/202/320/276/320/274/320/260/321/202/321/200/320/270/320/267/320/260/321/206/320/270/321/217_/320/272/320/276/320/275/321/202/320/265/320/275/321/202/320/260.svg +9 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/Services-and-Solutions//320/220/320/262/321/202/320/276/320/277/320/276/320/264/320/261/320/276/321/200 /320/272/320/273/321/216/321/207/320/265/320/262/321/213/321/205 /321/201/320/273/320/276/320/262.svg" +5 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/Services-and-Solutions//320/220/320/275/320/260/320/273/320/270/320/267 /320/272/320/276/320/275/320/272/321/203/321/200/320/265/320/275/321/202/320/276/320/262 /320/262 eCommerce.svg" +12 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/Services-and-Solutions//320/225/320/264/320/270/320/275/320/260/321/217 /321/201/320/270/321/201/321/202/320/265/320/274/320/260 /321/203/320/277/321/200/320/260/320/262/320/273/320/265/320/275/320/270/321/217 /320/272/320/276/320/275/321/202/320/265/320/275/321/202/320/276/320/274.svg" +4 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/Services-and-Solutions//320/230/320/267/320/276/320/261/321/200/320/260/320/266/320/265/320/275/320/270/320/265 /320/220/320/262/321/202/320/276/320/274/320/260/321/202/321/200/320/270/320/267/320/260/321/206/320/270/321/217 /320/272/320/276/320/275/321/202/320/265/320/275/321/202/320/260.svg" +9 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/Services-and-Solutions//320/230/320/267/320/276/320/261/321/200/320/260/320/266/320/265/320/275/320/270/320/265 /320/237/320/276/320/264/320/272/320/273/321/216/321/207/320/270/321/201/321/214 /320/272 /320/257/320/275/320/264/320/265/320/272/321/201 /320/234/320/260/321/200/320/272/320/265/321/202.svg" +9 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/Services-and-Solutions//320/234/320/260/321/200/320/272/320/265/321/202/320/277/320/273/320/265/320/271/321/201/321/213 /320/277/320/276/320/264 /320/272/320/273/321/216/321/207.svg" +11 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/Services-and-Solutions//320/237/320/260/321/200/321/201/320/270/320/275/320/263 /321/201/320/260/320/271/321/202/320/276/320/262.svg" +11 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/Services-and-Solutions//320/237/320/260/321/200/321/201/320/270/320/275/320/263_/320/272/320/276/320/275/320/272/321/203/321/200/320/265/320/275/321/202/320/276/320/262.svg +9 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/Services-and-Solutions//320/237/320/265/321/200/321/201/320/276/320/275/320/260/320/273/321/214/320/275/321/213/320/271 /320/274/320/265/320/275/320/265/320/264/320/266/320/265/321/200 /320/274/320/260/321/200/320/272/320/265/321/202/320/277/320/273/320/265/320/271/321/201/320/276/320/262.svg" +4 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/Services-and-Solutions//320/237/320/276/320/264/320/272/320/273/321/216/321/207/320/270/321/201/321/214 /320/272 /320/257/320/275/320/264/320/265/320/272/321/201 /320/234/320/260/321/200/320/272/320/265/321/202.svg" +9 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/Services-and-Solutions//320/240/320/260/320/261/320/276/321/202/320/260 /321/201 /320/272/320/276/320/275/321/202/320/265/320/275/321/202/320/276/320/274.svg" +6 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/Services-and-Solutions//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 /320/264/320/260/321/210/320/261/320/276/321/200/320/264/320/276/320/262.svg" +15 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/Services-and-Solutions//320/240/320/265/320/272/320/273/320/260/320/274/320/260, /320/277/321/200/320/276/320/264/320/262/320/270/320/266/320/265/320/275/320/270/320/265 /320/270 /320/274/320/260/321/200/320/272/320/265/321/202/320/270/320/275/320/263.svg" +11 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/Services-and-Solutions//320/243/320/277/321/200/320/260/320/262/320/273/320/265/320/275/320/270/320/265 /320/276/321/201/321/202/320/260/321/202/320/272/320/260/320/274/320/270.svg" +11 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/Services-and-Solutions//320/246/320/265/320/275/320/276/320/276/320/261/321/200/320/260/320/267/320/276/320/262/320/260/320/275/320/270/320/265.svg +13 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/Services-and-Solutions//320/260/320/262/321/202/320/276/320/274/320/260/321/202/320/270/321/207/320/265/321/201/320/272/320/270/320/271 /320/277/320/265/321/200/320/265/320/275/320/276/321/201.svg" +4 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/Telegram.js +21 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/UserCircle.js +23 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/Whatsapp.js +23 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/burger.svg +3 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/bx-briefcase.svg +5 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/bx-building.svg +6 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/bx-chat.svg +4 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/bx-detail.svg +6 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/bx-grid-alt.svg +5 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/bx-meteor.svg +6 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/bx-spreadsheet.svg +6 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/bx-user-circle.svg +13 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/bx-user-pin.svg +6 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/bxl-telegram.svg +5 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/bxl-whatsapp.svg +5 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/bxs-down-arrow.svg +5 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/cases.svg +3 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/close.svg +5 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/done.svg +9 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/drop.svg +9 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/en.svg +9 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/examples.svg +3 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/industries/FMCG.svg +10 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/industries//320/220/320/262/321/202/320/276/320/274/320/260/321/202/321/200/320/270/320/267/320/260/321/206/320/270/321/217 /320/272/320/276/320/275/321/202/320/265/320/275/321/202/320/260.svg" +3 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/industries//320/220/320/263/320/265/320/275/321/201/321/202/320/262/320/260/320/274.svg +3 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/industries//320/221/321/200/320/265/320/275/320/264/320/260/320/274.svg +6 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/industries//320/230/320/267/320/276/320/261/321/200/320/260/320/266/320/265/320/275/320/270/320/265 /320/220/320/262/321/202/320/276/320/274/320/260/321/202/321/200/320/270/320/267/320/260/321/206/320/270/321/217 /320/272/320/276/320/275/321/202/320/265/320/275/321/202/320/260.svg" +9 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/industries//320/230/320/267/320/276/320/261/321/200/320/260/320/266/320/265/320/275/320/270/320/265 /320/237/320/260/321/200/321/201/320/270/320/275/320/263 /320/272/320/276/320/275/320/272/321/203/321/200/320/265/320/275/321/202/320/276/320/262.svg" +9 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/industries//320/236/320/264/320/265/320/266/320/264/320/260.svg +3 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/industries//320/237/320/260/321/200/321/201/320/270/320/275/320/263 /320/272/320/276/320/275/320/272/321/203/321/200/320/265/320/275/321/202/320/276/320/262.svg" +3 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/industries//320/237/320/276/321/201/321/202/320/260/320/262/321/211/320/270/320/272/320/260/320/274.svg +5 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/industries//320/237/321/200/320/276/320/270/320/267/320/262/320/276/320/264/320/270/321/202/320/265/320/273/321/217/320/274.svg +11 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/industries//320/244/320/260/321/200/320/274/320/260/321/206/320/265/320/262/321/202/320/270/320/272/320/260.svg +3 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/industries//320/244/321/203/320/273/321/204/320/270/320/273/320/274/320/265/320/275/321/202 /320/246/320/265/320/275/321/202/321/200/320/260/320/274.svg" +11 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/industries//320/255/320/273/320/265/320/272/321/202/321/200/320/276/320/275/320/270/320/272/320/260.svg +10 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/lang.svg +10 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/profile.svg +3 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/search.svg +10 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/service/analytics.svg +6 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/service/calendar.svg +6 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/service/competitors.svg +7 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/service/crm.svg +5 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/service/feedback.svg +6 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/service/keyword.svg +6 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/service/marketing.svg +6 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/service/network.svg +5 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/service/product.svg +5 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/service/stocks.svg +3 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/service/task.svg +6 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/service/tools.svg +5 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/service/wiki.svg +5 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/service_icon.svg +5 -0
- package/dist/components/ConstructorComponents/HeaderMain/img/tur.svg +9 -0
- package/dist/components/ConstructorComponents/HeaderMain/img//321/203/320/277/321/200/320/260/320/262/320/273/320/265/320/275/320/270/320/265 /321/206/320/265/320/275/320/260/320/274/320/270.svg" +9 -0
- package/dist/components/Table/ButtonColumn/ButtonColumn.js +116 -0
- package/dist/components/Table/ButtonColumn/ButtonColumn.scss +117 -0
- package/dist/components/Table/ButtonColumn/img/column.svg +7 -0
- package/dist/components/Table/ButtonCopy/ButtonCopy.js +41 -0
- package/dist/components/Table/ButtonCopy/ButtonCopy.scss +43 -0
- package/dist/components/Table/ButtonCopy/img/copy.svg +3 -0
- package/dist/components/Table/ButtonExport/ButtonExport.js +87 -0
- package/dist/components/Table/ButtonExport/ButtonExport.scss +111 -0
- package/dist/components/Table/ButtonExport/img/export.svg +8 -0
- package/dist/components/Table/ButtonExport/img/pdf.svg +12 -0
- package/dist/components/Table/ButtonExport/img/xlc.svg +11 -0
- package/dist/components/Table/ButtonUpload/ButtonUpload.js +27 -0
- package/dist/components/Table/ButtonUpload/ButtonUpload.scss +45 -0
- package/dist/components/Table/ButtonUpload/img/upload_icon.svg +8 -0
- package/dist/components/Table/CheckboxToggle/CheckboxToggle.js +58 -0
- package/dist/components/Table/CheckboxToggle/CheckboxToggle.scss +117 -0
- package/dist/components/Table/Paginator/Paginator.js +260 -0
- package/dist/components/Table/Paginator/Paginator.scss +198 -0
- package/dist/components/Table/Paginator/img/arrow_blue.svg +3 -0
- package/dist/components/Table/Paginator/img/arrow_next.svg +3 -0
- package/dist/components/Table/Paginator/img/arrow_prev.svg +3 -0
- package/dist/components/Table/Table/Filters/OptionsDate.js +211 -0
- package/dist/components/Table/Table/Filters/OptionsImage.js +95 -0
- package/dist/components/Table/Table/Filters/OptionsImage.scss +10 -0
- package/dist/components/Table/Table/Filters/OptionsList.js +247 -0
- package/dist/components/Table/Table/Filters/OptionsNumber.js +226 -0
- package/dist/components/Table/Table/Filters/OptionsNumber.scss +100 -0
- package/dist/components/Table/Table/Filters/OptionsText.js +169 -0
- package/dist/components/Table/Table/Filters/OptionsText.scss +71 -0
- package/dist/components/Table/Table/Filters/img/FilterDefault.js +26 -0
- package/dist/components/Table/Table/Filters/img/FilterReset.js +41 -0
- package/dist/components/Table/Table/Filters/img/dropFilters.png +0 -0
- package/dist/components/Table/Table/Filters/img/filterDefault.svg +3 -0
- package/dist/components/Table/Table/Filters/img/filter_blue.svg +3 -0
- package/dist/components/Table/Table/Filters/img/filter_blue_background.svg +5 -0
- package/dist/components/Table/Table/Filters/img/filter_reset.svg +7 -0
- package/dist/components/Table/Table/InputWithState/InputWithState.js +40 -0
- package/dist/components/Table/Table/RenderFiltersTh/RenderFiltersTh.js +143 -0
- package/dist/components/Table/Table/RenderTd/RenderTd.js +23 -0
- package/dist/components/Table/Table/RenderTh/RenderTh.js +116 -0
- package/dist/components/Table/Table/Table.js +1569 -0
- package/dist/components/Table/Table/Table.scss +1524 -0
- package/dist/components/Table/Table/TableChartTd/TableChartTd.js +175 -0
- package/dist/components/Table/Table/TableChartTd/TableChartTd.scss +0 -0
- package/dist/components/Table/Table/TableInput/TableInput.js +107 -0
- package/dist/components/Table/Table/TableInput/TableInput.scss +35 -0
- package/dist/components/Table/Table/TableWithoutData/TableWithoutData.js +27 -0
- package/dist/components/Table/Table/TableWithoutData/TableWithoutData.scss +32 -0
- package/dist/components/Table/Table/TableWithoutData/img/doc_icon.png +0 -0
- package/dist/components/Table/Table/TdDate/TdDate.js +39 -0
- package/dist/components/Table/Table/TdDate/TdDate.scss +0 -0
- package/dist/components/Table/Table/TdDate.js +35 -0
- package/dist/components/Table/Table/TypeTdImage.js +90 -0
- package/dist/components/Table/Table/img/Search.png +0 -0
- package/dist/components/Table/Table/img/SortArrow.js +12 -0
- package/dist/components/Table/Table/img/SortArrowUp.js +12 -0
- package/dist/components/Table/Table/img/SortTable.js +14 -0
- package/dist/components/Table/Table/img/close_icon.svg +7 -0
- package/dist/components/Table/Table/img/close_white.svg +3 -0
- package/dist/components/Table/Table/img/context-menu.svg +6 -0
- package/dist/components/Table/Table/img/contextMenuBtn.png +0 -0
- package/dist/components/Table/Table/img/delete_icon.svg +8 -0
- package/dist/components/Table/Table/img/dropFilters.png +0 -0
- package/dist/components/Table/Table/img/filter.png +0 -0
- package/dist/components/Table/Table/img/filterDefault.png +0 -0
- package/dist/components/Table/Table/img/filter_blue.svg +3 -0
- package/dist/components/Table/Table/img/filter_blue_background.svg +5 -0
- package/dist/components/Table/Table/img/imageNotFound.svg +3 -0
- package/dist/components/Table/Table/img/location.svg +3 -0
- package/dist/components/Table/Table/img/sort_arrow_down.svg +6 -0
- package/dist/components/Table/Table/img/sort_arrow_up.svg +4 -0
- package/dist/components/Table/Table/img/sort_table.svg +8 -0
- package/dist/components/Table/Table/svg_img.js +8 -0
- package/dist/components/Table/TableBox/TableBox.js +310 -0
- package/dist/components/Table/TableBox/TableBox.scss +418 -0
- package/dist/components/Table/TableBox/TableBox.stories.js +339 -0
- package/dist/components/Table/TableBox/img/delete_icon.svg +9 -0
- package/dist/components/Table/TableBox/img/forward_icon.svg +9 -0
- package/dist/components/Table/TableBox/img/more_icon.svg +10 -0
- package/dist/components/Table/TableBox/img_stories/tag_icon.svg +5 -0
- package/dist/components/Table/TableInput/TableInput.js +107 -0
- package/dist/components/Table/TableInput/TableInput.scss +35 -0
- package/dist/components/Table/TableWithoutData/TableWithoutData.js +27 -0
- package/dist/components/Table/TableWithoutData/TableWithoutData.scss +32 -0
- package/dist/components/Table/TableWithoutData/img/doc_icon.png +0 -0
- package/dist/index.js +7 -0
- package/package.json +14 -9
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = exports.Default = void 0;
|
|
7
|
+
var _TableBox = _interopRequireDefault(require("./TableBox"));
|
|
8
|
+
var _addonActions = require("@storybook/addon-actions");
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
+
var parse = require('html-react-parser');
|
|
11
|
+
var stubColumnSize = ["150px", "150px", "20px", "150px", "150px", "150px"];
|
|
12
|
+
var stubSort = ["Дата", "DESC"];
|
|
13
|
+
var stubHeaders = {
|
|
14
|
+
header: ["Идентификатор", "Имя бота", "", "Автор", "Файлы", "Дата"],
|
|
15
|
+
type: ["stringLayers", "stringLayers", "contextMenu", "stringLayers", "stringLayers", "stringLayers"],
|
|
16
|
+
tooltips: ["Идентификатор бота", "Имя бота", "", "Автор", "Список файлов", "Дата создания"],
|
|
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
|
+
}]]]
|
|
242
|
+
};
|
|
243
|
+
var stubFetchedData = [[["83778e05-c9dd-4da8-aec9-48ddd1f27b63"], ["Anton"], "", [642, "Anton Gorbenko", "a.gorbenko@gtcom.io"], [], ["2024-12-27T13:04:28+03:00"]], [["ae01d93f-c754-46b9-ab82-21bbe9bf4ef9"], ["Test Name"], "", [563, "Andrey Dyakonov", "a.dyakonov@gtcom.io"], [["fastapi59.pdf", "processing"], [["fastapi58.pdf"], ["processing"]], [["fastapi58.pdf"], ["processing"]], [["fastapi58.pdf"], ["processing"]], [["fastapi60.pdf"], ["processing"]]], ["2024-12-26T12:42:07+03:00"]], [["7b73442b-5e89-4ad7-8f83-055aabefc1af"], ["No named"], "", [642, "Anton Gorbenko", "a.gorbenko@gtcom.io"], [[["896f51281d6a75266ad0c0193165542ad952c913.pdf"], ["ready"]]], ["2024-12-25T16:49:37+03:00"]], [["779c4b47-2ba9-40da-ac3b-4107fc70a2c0"], ["No named"], "", [642, "Anton Gorbenko", "a.gorbenko@gtcom.io"], [[["r_04.pdf"], ["ready"]]], ["2024-12-25T16:32:18+03:00"]], [["21808063-9118-42d1-9699-fa872ccef858"], ["No named"], "", [258, "Evgenii Shirokov", "e.shirokov@gtcom.io"], [], ["2024-12-25T14:58:33+03:00"]], [["db970733-622b-4aee-9918-8691acfd18dd"], ["No named"], "", [563, "Andrey Dyakonov", "a.dyakonov@gtcom.io"], [[["fastapi44.pdf"], ["ready"]]], ["2024-12-23T18:10:25+03:00"]], [["f3cdf697-e403-4670-b5b8-c196ff38ac01"], ["No named"], "", [563, "Andrey Dyakonov", "a.dyakonov@gtcom.io"], [[["fastapi53.pdf"], ["ready"]], [["fastapi61.pdf"], ["processing"]]], ["2024-12-18T15:57:56+03:00"]], [["0cc9dae1-56d7-4ee7-abe4-c15875c80956"], ["No named"], "", [563, "Andrey Dyakonov", "a.dyakonov@gtcom.io"], [], ["2024-12-17T15:51:50+03:00"]]];
|
|
244
|
+
var _default = exports["default"] = {
|
|
245
|
+
title: 'TableBox',
|
|
246
|
+
component: _TableBox["default"],
|
|
247
|
+
args: {
|
|
248
|
+
loading: false,
|
|
249
|
+
fetchedData: stubFetchedData,
|
|
250
|
+
headers: stubHeaders,
|
|
251
|
+
onDelete: (0, _addonActions.action)('onDelete'),
|
|
252
|
+
onEdit: (0, _addonActions.action)('onEdit'),
|
|
253
|
+
onCheck: (0, _addonActions.action)('onCheck'),
|
|
254
|
+
onInputHandler: (0, _addonActions.action)('onInputHandler'),
|
|
255
|
+
onAddAcc: (0, _addonActions.action)('onAddAcc'),
|
|
256
|
+
isSortable: true,
|
|
257
|
+
onBooleanCheckbox: false,
|
|
258
|
+
onAction: (0, _addonActions.action)('onAction'),
|
|
259
|
+
fetchCallback: (0, _addonActions.action)('fetchCallback'),
|
|
260
|
+
sort: stubSort,
|
|
261
|
+
isInsideTable: true,
|
|
262
|
+
fetchDataInsideFunc: (0, _addonActions.action)('fetchDataInsideFunc'),
|
|
263
|
+
nestedTable: false,
|
|
264
|
+
columnSize: stubColumnSize,
|
|
265
|
+
setParams: (0, _addonActions.action)('setParams'),
|
|
266
|
+
fileFilters: [],
|
|
267
|
+
setFileFilters: (0, _addonActions.action)('setFileFilters'),
|
|
268
|
+
date: new Date(),
|
|
269
|
+
basePath: 'main',
|
|
270
|
+
onRedirect: (0, _addonActions.action)('onRedirect'),
|
|
271
|
+
lang: 'en',
|
|
272
|
+
paginator: true,
|
|
273
|
+
hideColumn: false,
|
|
274
|
+
hideExport: false,
|
|
275
|
+
hideSorting: false,
|
|
276
|
+
onActionInfo: true,
|
|
277
|
+
// maxSelectedCount: 1,
|
|
278
|
+
contextMenuArr: [{
|
|
279
|
+
label: 'Удалить',
|
|
280
|
+
onClick: (0, _addonActions.action)('onDelete'),
|
|
281
|
+
type: 'delete'
|
|
282
|
+
}, {
|
|
283
|
+
label: 'Редактировать',
|
|
284
|
+
onClick: (0, _addonActions.action)('onEdit')
|
|
285
|
+
}, {
|
|
286
|
+
label: 'Кнопка',
|
|
287
|
+
onClick: (0, _addonActions.action)('onClick')
|
|
288
|
+
}],
|
|
289
|
+
statistic: [{
|
|
290
|
+
label: 'Товаров',
|
|
291
|
+
sum: 50
|
|
292
|
+
}, {
|
|
293
|
+
label: 'Заказов',
|
|
294
|
+
sum: 50
|
|
295
|
+
}, {
|
|
296
|
+
label: 'Товаров',
|
|
297
|
+
sum: 50
|
|
298
|
+
}, {
|
|
299
|
+
label: 'Заказов',
|
|
300
|
+
sum: 50
|
|
301
|
+
}, {
|
|
302
|
+
label: 'Товаров',
|
|
303
|
+
sum: 50
|
|
304
|
+
}, {
|
|
305
|
+
label: 'Заказов',
|
|
306
|
+
sum: 50
|
|
307
|
+
}],
|
|
308
|
+
metrics: [
|
|
309
|
+
// {
|
|
310
|
+
// label: 'Баланс на начало периода:',
|
|
311
|
+
// value: 12389.0,
|
|
312
|
+
// unit: '₽',
|
|
313
|
+
// color: 'red',
|
|
314
|
+
// },
|
|
315
|
+
// {
|
|
316
|
+
// label: 'Баланс на начало периода:',
|
|
317
|
+
// value: 12389.0,
|
|
318
|
+
// unit: '₽',
|
|
319
|
+
// color: 'blue',
|
|
320
|
+
// },
|
|
321
|
+
|
|
322
|
+
{
|
|
323
|
+
label: 'Отмены, руб.',
|
|
324
|
+
value: '4 742 227'
|
|
325
|
+
}, {
|
|
326
|
+
label: 'Процент отмен, %',
|
|
327
|
+
value: '6'
|
|
328
|
+
}, {
|
|
329
|
+
label: 'Возвраты, шт.',
|
|
330
|
+
value: '16'
|
|
331
|
+
}],
|
|
332
|
+
panelBtn: true
|
|
333
|
+
}
|
|
334
|
+
};
|
|
335
|
+
var Default = exports.Default = {
|
|
336
|
+
render: function render(args) {
|
|
337
|
+
return /*#__PURE__*/React.createElement(_TableBox["default"], args);
|
|
338
|
+
}
|
|
339
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="Icon">
|
|
3
|
+
<g id="Device">
|
|
4
|
+
<g id="barcode_fill">
|
|
5
|
+
<path id="形状" fill-rule="evenodd" clip-rule="evenodd" d="M20 5C21.0544 5 21.9182 5.81588 21.9945 6.85074L22 7V17C22 18.0544 21.1841 18.9182 20.1493 18.9945L20 19H4C2.94564 19 2.08183 18.1841 2.00549 17.1493L2 17V7C2 5.94564 2.81588 5.08183 3.85074 5.00549L4 5H20ZM6 8C5.44772 8 5 8.44772 5 9V15C5 15.5523 5.44772 16 6 16C6.55228 16 7 15.5523 7 15V9C7 8.44772 6.55228 8 6 8ZM12 8C11.4477 8 11 8.44772 11 9C11 8.44772 10.5523 8 10 8C9.48717 8 9.06449 8.38604 9.00673 8.88338L9 9V15C9 15.5523 9.44772 16 10 16C10.5523 16 11 15.5523 11 15C11 15.5523 11.4477 16 12 16C12.5128 16 12.9355 15.614 12.9933 15.1166L13 15V9C13 8.44772 12.5523 8 12 8ZM15 8C14.4872 8 14.0645 8.38604 14.0067 8.88338L14 9V15C14 15.5523 14.4477 16 15 16C15.5128 16 15.9355 15.614 15.9933 15.1166L16 15V9C16 8.44772 15.5523 8 15 8ZM18 8C17.4477 8 17 8.44772 17 9V15C17 15.5523 17.4477 16 18 16C18.5523 16 19 15.5523 19 15V9C19 8.44772 18.5523 8 18 8Z" fill="#15803D"/>
|
|
6
|
+
</g>
|
|
7
|
+
</g>
|
|
8
|
+
</g>
|
|
9
|
+
</svg>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="Icon">
|
|
3
|
+
<g id="File">
|
|
4
|
+
<g id="archive_fill">
|
|
5
|
+
<path id="形状" fill-rule="evenodd" clip-rule="evenodd" d="M7.41421 3C6.88378 3 6.37507 3.21071 6 3.58579L3.58579 6C3.30991 6.27588 3.12295 6.62406 3.04336 7H20.9566C20.8771 6.62406 20.6901 6.27588 20.4142 6L18 3.58579C17.6249 3.21071 17.1162 3 16.5858 3H7.41421ZM21 9H3V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V9ZM12 11C12.5523 11 13 11.4477 13 12V15.1858L13.4142 14.7715C13.8047 14.381 14.4379 14.381 14.8284 14.7715C15.219 15.1621 15.219 15.7952 14.8284 16.1858L12.7071 18.3071C12.3166 18.6976 11.6834 18.6976 11.2929 18.3071L9.17157 16.1858C8.78105 15.7952 8.78105 15.1621 9.17157 14.7715C9.5621 14.381 10.1953 14.381 10.5858 14.7715L11 15.1858V12C11 11.4477 11.4477 11 12 11Z" fill="#15803D"/>
|
|
6
|
+
</g>
|
|
7
|
+
</g>
|
|
8
|
+
</g>
|
|
9
|
+
</svg>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_14299_136797)">
|
|
3
|
+
<path d="M16 16C16.5128 16 16.9355 16.386 16.9933 16.8834L17 17V21C17 21.5128 16.614 21.9355 16.1166 21.9933L16 22H8C7.48717 22 7.06449 21.614 7.00673 21.1166L7 21V17C7 16.4872 7.38604 16.0645 7.88338 16.0067L8 16H16ZM19 7C20.6569 7 22 8.34315 22 10V17C22 18.1046 21.1046 19 20 19H19V16C19 14.8954 18.1046 14 17 14H7C5.89543 14 5 14.8954 5 16V19H4C2.89543 19 2 18.1046 2 17V10C2 8.34315 3.34315 7 5 7H19ZM17 9H15C14.4477 9 14 9.44772 14 10C14 10.5128 14.386 10.9355 14.8834 10.9933L15 11H17C17.5523 11 18 10.5523 18 10C18 9.48717 17.614 9.06449 17.1166 9.00673L17 9ZM17 2C17.5523 2 18 2.44772 18 3V5H6V3C6 2.44772 6.44772 2 7 2H17Z" fill="#15803D"/>
|
|
4
|
+
</g>
|
|
5
|
+
<defs>
|
|
6
|
+
<clipPath id="clip0_14299_136797">
|
|
7
|
+
<rect width="24" height="24" fill="white"/>
|
|
8
|
+
</clipPath>
|
|
9
|
+
</defs>
|
|
10
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="12" height="14" viewBox="0 0 12 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="tag">
|
|
3
|
+
<path id="Vector" fill-rule="evenodd" clip-rule="evenodd" d="M9.79497 7.24312L6.14322 10.9672C6.00336 11.1098 5.81392 11.1903 5.61615 11.1911C5.41838 11.192 5.22827 11.1132 5.08722 10.9718L1.74972 7.63006C1.60792 7.48788 1.52731 7.29409 1.52562 7.09131C1.52394 6.88854 1.60131 6.69338 1.74072 6.54877L5.39172 2.75582C5.49636 2.64698 5.62122 2.56049 5.759 2.50141C5.89679 2.44233 6.04475 2.41183 6.19422 2.41171H9.37497C9.57389 2.41171 9.76465 2.49227 9.9053 2.63568C10.046 2.77909 10.125 2.9736 10.125 3.17641V6.43177C10.1249 6.58248 10.0958 6.73171 10.0392 6.87092C9.98254 7.01014 9.89956 7.13661 9.79497 7.24312ZM4.58847 1.95135C4.79796 1.73386 5.04785 1.56111 5.32356 1.4432C5.59926 1.32529 5.89525 1.26459 6.19422 1.26465H9.37497C9.87226 1.26465 10.3492 1.46607 10.7008 1.82459C11.0524 2.18312 11.25 2.66938 11.25 3.17641V6.43177C11.25 6.73314 11.1918 7.03156 11.0787 7.30999C10.9656 7.58842 10.7998 7.8414 10.5907 8.05447L6.93822 11.7786C6.58859 12.1348 6.11517 12.3358 5.62091 12.338C5.12666 12.3401 4.65157 12.1432 4.29897 11.7901L0.961474 8.4483C0.606764 8.09304 0.404968 7.60868 0.400468 7.10174C0.395967 6.59481 0.58913 6.1068 0.937474 5.74506L4.58847 1.95288V1.95135ZM7.87497 5.47053C7.62633 5.47053 7.38788 5.36982 7.21206 5.19056C7.03625 5.0113 6.93747 4.76816 6.93747 4.51465C6.93747 4.26113 7.03625 4.018 7.21206 3.83874C7.38788 3.65947 7.62633 3.55877 7.87497 3.55877C8.12361 3.55877 8.36207 3.65947 8.53789 3.83874C8.7137 4.018 8.81247 4.26113 8.81247 4.51465C8.81247 4.76816 8.7137 5.0113 8.53789 5.19056C8.36207 5.36982 8.12361 5.47053 7.87497 5.47053Z" fill="#B4B8B4"/>
|
|
4
|
+
</g>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _ButtonBasic = _interopRequireDefault(require("../../Buttons/ButtonBasic/ButtonBasic"));
|
|
11
|
+
require("./TableInput.scss");
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
15
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
20
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
21
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
22
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
23
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
24
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
25
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
26
|
+
var TableInput = function TableInput(_ref) {
|
|
27
|
+
var props = _ref.props,
|
|
28
|
+
getId = _ref.getId,
|
|
29
|
+
staticTD = _ref.staticTD,
|
|
30
|
+
ind = _ref.ind,
|
|
31
|
+
tableId = _ref.tableId,
|
|
32
|
+
state = _ref.state,
|
|
33
|
+
setState = _ref.setState;
|
|
34
|
+
var _props = _slicedToArray(props, 3),
|
|
35
|
+
_value = _props[0],
|
|
36
|
+
curr = _props[1],
|
|
37
|
+
id = _props[2];
|
|
38
|
+
var _useState = (0, _react.useState)(''),
|
|
39
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
40
|
+
value = _useState2[0],
|
|
41
|
+
setValue = _useState2[1];
|
|
42
|
+
var _useState3 = (0, _react.useState)(false),
|
|
43
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
44
|
+
isSaved = _useState4[0],
|
|
45
|
+
setIsSaved = _useState4[1];
|
|
46
|
+
(0, _react.useEffect)(function () {
|
|
47
|
+
var stateValue = state === null || state === void 0 ? void 0 : state[id];
|
|
48
|
+
if (stateValue) {
|
|
49
|
+
if (stateValue === value) {
|
|
50
|
+
setIsSaved(true);
|
|
51
|
+
} else {
|
|
52
|
+
setIsSaved(false);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}, [state, value]);
|
|
56
|
+
return /*#__PURE__*/_react["default"].createElement("td", {
|
|
57
|
+
className: "type-td_input ".concat(staticTD && ind === 0 ? 'sticky_th' : ''),
|
|
58
|
+
key: getId([tableId, props, ind], 'input')
|
|
59
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
60
|
+
style: {
|
|
61
|
+
display: 'flex',
|
|
62
|
+
alignItems: 'center',
|
|
63
|
+
gap: '.5em',
|
|
64
|
+
width: '150px'
|
|
65
|
+
}
|
|
66
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
67
|
+
className: "input-container",
|
|
68
|
+
style: {
|
|
69
|
+
display: 'flex',
|
|
70
|
+
alignItems: 'center',
|
|
71
|
+
gap: '.5em'
|
|
72
|
+
}
|
|
73
|
+
}, /*#__PURE__*/_react["default"].createElement("input", {
|
|
74
|
+
className: "input",
|
|
75
|
+
value: value,
|
|
76
|
+
onChange: function onChange(e) {
|
|
77
|
+
return setValue(e.target.value);
|
|
78
|
+
},
|
|
79
|
+
style: value === '' ? {
|
|
80
|
+
outline: '1px solid #FF3F3F',
|
|
81
|
+
border: '1px solid #FF3F3F'
|
|
82
|
+
} : isSaved ? {} : {
|
|
83
|
+
outline: '1px solid #FDBA74',
|
|
84
|
+
border: '1px solid #FDBA74'
|
|
85
|
+
}
|
|
86
|
+
}), curr), /*#__PURE__*/_react["default"].createElement(_ButtonBasic["default"], {
|
|
87
|
+
blue: true,
|
|
88
|
+
disabled: isSaved || (value === null || value === void 0 ? void 0 : value.length) === 0,
|
|
89
|
+
text: 'V',
|
|
90
|
+
style: {
|
|
91
|
+
color: 'white',
|
|
92
|
+
width: 20,
|
|
93
|
+
height: 5,
|
|
94
|
+
minWidth: 20,
|
|
95
|
+
maxWidth: 20,
|
|
96
|
+
alignItems: 'center',
|
|
97
|
+
justifyContent: 'center',
|
|
98
|
+
display: 'flex'
|
|
99
|
+
},
|
|
100
|
+
onClick: function onClick(e) {
|
|
101
|
+
return setState(function (prev) {
|
|
102
|
+
return _objectSpread(_objectSpread({}, prev), {}, _defineProperty({}, id, value));
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
})));
|
|
106
|
+
};
|
|
107
|
+
var _default = exports["default"] = TableInput;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.type-td_input {
|
|
2
|
+
|
|
3
|
+
.input-container {
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
width: 100%;
|
|
7
|
+
max-width: 130px;
|
|
8
|
+
min-width: 130px;
|
|
9
|
+
|
|
10
|
+
.input {
|
|
11
|
+
margin-left: auto;
|
|
12
|
+
margin-right: auto;
|
|
13
|
+
max-width: 110px;
|
|
14
|
+
min-width: 85px;
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 24px;
|
|
17
|
+
padding-left: 8px;
|
|
18
|
+
padding-right: 8px;
|
|
19
|
+
border-radius: 4px;
|
|
20
|
+
border: 1px solid #0009E8;
|
|
21
|
+
background: #ffffff;
|
|
22
|
+
text-align: left;
|
|
23
|
+
color: #11195D;
|
|
24
|
+
font-family: PTRootUI;
|
|
25
|
+
font-size: 12px;
|
|
26
|
+
font-style: normal;
|
|
27
|
+
font-weight: 400;
|
|
28
|
+
line-height: 14px;
|
|
29
|
+
|
|
30
|
+
&:focus {
|
|
31
|
+
outline: 1px solid #0009E8;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.TableWithoutData = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _doc_icon = _interopRequireDefault(require("./img/doc_icon.png"));
|
|
10
|
+
require("./TableWithoutData.scss");
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
12
|
+
var TableWithoutData = exports.TableWithoutData = function TableWithoutData(_ref) {
|
|
13
|
+
var text = _ref.text,
|
|
14
|
+
maxHeight = _ref.maxHeight;
|
|
15
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
16
|
+
className: "table-without-data",
|
|
17
|
+
style: {
|
|
18
|
+
minHeight: maxHeight ? maxHeight : ''
|
|
19
|
+
}
|
|
20
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
21
|
+
className: "table-without-data__content"
|
|
22
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
23
|
+
src: _doc_icon["default"]
|
|
24
|
+
}), /*#__PURE__*/_react["default"].createElement("p", {
|
|
25
|
+
className: "text"
|
|
26
|
+
}, text)));
|
|
27
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.table-without-data {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
min-height: 700px;
|
|
8
|
+
|
|
9
|
+
&__content {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
gap: 16px;
|
|
13
|
+
align-items: center;
|
|
14
|
+
padding-left: 60px;
|
|
15
|
+
padding-right: 60px;
|
|
16
|
+
|
|
17
|
+
img {
|
|
18
|
+
width: 45px;
|
|
19
|
+
height: 45px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.text {
|
|
23
|
+
color: var(--all-text-teritary-text, #94A3B8);
|
|
24
|
+
text-align: center;
|
|
25
|
+
font-family: Inter;
|
|
26
|
+
font-size: 14px;
|
|
27
|
+
font-style: normal;
|
|
28
|
+
font-weight: 400;
|
|
29
|
+
line-height: 16px;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
Binary file
|
package/dist/index.js
CHANGED
|
@@ -117,6 +117,12 @@ Object.defineProperty(exports, "StepItems", {
|
|
|
117
117
|
return _StepItems["default"];
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
|
+
Object.defineProperty(exports, "TableBox", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function get() {
|
|
123
|
+
return _TableBox["default"];
|
|
124
|
+
}
|
|
125
|
+
});
|
|
120
126
|
Object.defineProperty(exports, "TariffPlan", {
|
|
121
127
|
enumerable: true,
|
|
122
128
|
get: function get() {
|
|
@@ -150,4 +156,5 @@ var _Carousel = _interopRequireDefault(require("./components/ConstructorComponen
|
|
|
150
156
|
var _PointsList = _interopRequireDefault(require("./components/ConstructorComponents/PointsList/PointsList"));
|
|
151
157
|
var _Footer = _interopRequireDefault(require("./components/ConstructorComponents/Footer/Footer"));
|
|
152
158
|
var _ButtonBasic = _interopRequireDefault(require("./components/Buttons/ButtonBasic/ButtonBasic"));
|
|
159
|
+
var _TableBox = _interopRequireDefault(require("./components/Table/TableBox/TableBox"));
|
|
153
160
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ecomlab-components-next",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.29",
|
|
4
4
|
"description": "A set of common and reusable React components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -20,9 +20,14 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@types/styled-components": "^5.1.34",
|
|
23
|
+
"chart.js": "^4.4.7",
|
|
24
|
+
"deep-equal": "^2.2.3",
|
|
23
25
|
"next": "15.1.5",
|
|
24
26
|
"react": "^19.0.0",
|
|
27
|
+
"react-chartjs-2": "^5.3.0",
|
|
28
|
+
"react-datepicker": "^8.0.0",
|
|
25
29
|
"react-dom": "^19.0.0",
|
|
30
|
+
"react-spinners": "^0.15.0",
|
|
26
31
|
"sass": "^1.55.0",
|
|
27
32
|
"styled-components": "^6.1.14"
|
|
28
33
|
},
|
|
@@ -31,7 +36,10 @@
|
|
|
31
36
|
"@babel/preset-env": "^7.26.8",
|
|
32
37
|
"@babel/preset-react": "^7.26.3",
|
|
33
38
|
"@chromatic-com/storybook": "^3.2.4",
|
|
39
|
+
"@emotion/react": "11.11.1",
|
|
40
|
+
"@emotion/styled": "11.11.0",
|
|
34
41
|
"@eslint/eslintrc": "^3",
|
|
42
|
+
"@mui/material": "6.4.4",
|
|
35
43
|
"@storybook/addon-essentials": "^8.5.0",
|
|
36
44
|
"@storybook/addon-interactions": "^8.5.0",
|
|
37
45
|
"@storybook/addon-onboarding": "^8.5.0",
|
|
@@ -39,23 +47,20 @@
|
|
|
39
47
|
"@storybook/nextjs": "^8.5.0",
|
|
40
48
|
"@storybook/react": "^8.5.0",
|
|
41
49
|
"@storybook/test": "^8.5.0",
|
|
42
|
-
"@mui/material": "6.4.4",
|
|
43
50
|
"eslint": "^9",
|
|
44
51
|
"eslint-config-next": "15.1.5",
|
|
45
52
|
"eslint-plugin-storybook": "^0.11.2",
|
|
46
53
|
"html-react-parser": "^5.2.2",
|
|
47
|
-
"sass": "^1.55.0",
|
|
48
|
-
"storybook": "^8.5.0",
|
|
49
|
-
"react-select": "^5.8.0",
|
|
50
54
|
"imask": "^7.6.1",
|
|
51
|
-
"@emotion/react": "11.11.1",
|
|
52
|
-
"@emotion/styled": "11.11.0",
|
|
53
55
|
"react-fast-marquee": "^1.6.5",
|
|
54
|
-
"react-multi-carousel": "^2.8.5"
|
|
56
|
+
"react-multi-carousel": "^2.8.5",
|
|
57
|
+
"react-select": "^5.8.0",
|
|
58
|
+
"sass": "^1.55.0",
|
|
59
|
+
"storybook": "^8.5.0"
|
|
55
60
|
},
|
|
56
61
|
"eslintConfig": {
|
|
57
62
|
"extends": [
|
|
58
63
|
"plugin:storybook/recommended"
|
|
59
64
|
]
|
|
60
65
|
}
|
|
61
|
-
}
|
|
66
|
+
}
|