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,226 @@
|
|
|
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.positionTable = exports.OptionsNumber = void 0;
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _FilterReset = require("./img/FilterReset");
|
|
11
|
+
var _FilterDefault = require("./img/FilterDefault");
|
|
12
|
+
var _ButtonBasic = _interopRequireDefault(require("../../../Buttons/ButtonBasic/ButtonBasic"));
|
|
13
|
+
require("./OptionsNumber.scss");
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
15
|
+
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); }
|
|
16
|
+
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; }
|
|
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
|
+
// Узнаем позицию таблицы и определяем с какой стороны будет позиционироваться выпадающее окно фильтра
|
|
27
|
+
var positionTable = exports.positionTable = function positionTable(ref, setState) {
|
|
28
|
+
if (typeof document !== 'undefined') {
|
|
29
|
+
var table = document.querySelector('.table-box-component');
|
|
30
|
+
if (table) {
|
|
31
|
+
var table_position_right = table.getBoundingClientRect().right;
|
|
32
|
+
var filer_position_left = ref.current.getBoundingClientRect().left;
|
|
33
|
+
if (filer_position_left + 170 < table_position_right) {
|
|
34
|
+
setState('left');
|
|
35
|
+
} else {
|
|
36
|
+
setState('right');
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
var OptionsNumber = exports.OptionsNumber = function OptionsNumber(_ref) {
|
|
42
|
+
var el = _ref.el,
|
|
43
|
+
activeItem = _ref.activeItem,
|
|
44
|
+
setParams = _ref.setParams,
|
|
45
|
+
filtersTable = _ref.filtersTable,
|
|
46
|
+
setActiveItem = _ref.setActiveItem,
|
|
47
|
+
showOption = _ref.showOption,
|
|
48
|
+
setShowOption = _ref.setShowOption,
|
|
49
|
+
filters = _ref.filters,
|
|
50
|
+
setFilters = _ref.setFilters,
|
|
51
|
+
sortParam = _ref.sortParam,
|
|
52
|
+
ind = _ref.ind,
|
|
53
|
+
type = _ref.type,
|
|
54
|
+
sortingFunc = _ref.sortingFunc,
|
|
55
|
+
setFiltersTable = _ref.setFiltersTable,
|
|
56
|
+
_ref$lang = _ref.lang,
|
|
57
|
+
lang = _ref$lang === void 0 ? 'ru' : _ref$lang;
|
|
58
|
+
var _useState = (0, _react.useState)(''),
|
|
59
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
60
|
+
value = _useState2[0],
|
|
61
|
+
setValue = _useState2[1];
|
|
62
|
+
var _useState3 = (0, _react.useState)(null),
|
|
63
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
64
|
+
fromValue = _useState4[0],
|
|
65
|
+
setFromValue = _useState4[1];
|
|
66
|
+
var _useState5 = (0, _react.useState)(null),
|
|
67
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
68
|
+
toValue = _useState6[0],
|
|
69
|
+
setToValue = _useState6[1];
|
|
70
|
+
var _useState7 = (0, _react.useState)(false),
|
|
71
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
72
|
+
error = _useState8[0],
|
|
73
|
+
setError = _useState8[1];
|
|
74
|
+
var refCol = (0, _react.useRef)();
|
|
75
|
+
var _useState9 = (0, _react.useState)('left'),
|
|
76
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
77
|
+
positionDropOption = _useState10[0],
|
|
78
|
+
setPositionDropOption = _useState10[1];
|
|
79
|
+
var options = [{
|
|
80
|
+
label: 'Больше',
|
|
81
|
+
value: '>'
|
|
82
|
+
}, {
|
|
83
|
+
label: 'Больше или равно',
|
|
84
|
+
value: '>='
|
|
85
|
+
}, {
|
|
86
|
+
label: 'Равно',
|
|
87
|
+
value: '='
|
|
88
|
+
}, {
|
|
89
|
+
label: 'Меньше',
|
|
90
|
+
value: '<'
|
|
91
|
+
}, {
|
|
92
|
+
label: 'Меньше или равно',
|
|
93
|
+
value: '<='
|
|
94
|
+
}];
|
|
95
|
+
var translateConfirm = function translateConfirm() {
|
|
96
|
+
if (lang == 'ru') return 'Применить';
|
|
97
|
+
if (lang == 'tur') return 'Başvur';
|
|
98
|
+
if (lang == 'eng') return 'Confirm';
|
|
99
|
+
return 'Применить';
|
|
100
|
+
};
|
|
101
|
+
var translateFrom = function translateFrom() {
|
|
102
|
+
if (lang == 'ru') return 'От';
|
|
103
|
+
if (lang == 'tur') return 'Kimden';
|
|
104
|
+
if (lang == 'eng') return 'from';
|
|
105
|
+
return 'От';
|
|
106
|
+
};
|
|
107
|
+
var translateTo = function translateTo() {
|
|
108
|
+
if (lang == 'ru') return 'до';
|
|
109
|
+
if (lang == 'tur') return 'Şuna';
|
|
110
|
+
if (lang == 'eng') return 'to';
|
|
111
|
+
return 'до';
|
|
112
|
+
};
|
|
113
|
+
var addFilter = function addFilter(value) {
|
|
114
|
+
var obj;
|
|
115
|
+
setFilters(function (prev) {
|
|
116
|
+
obj = prev;
|
|
117
|
+
if (prev[ind]) {
|
|
118
|
+
delete obj[ind];
|
|
119
|
+
obj[ind] = [el, type, '<>', value];
|
|
120
|
+
} else {
|
|
121
|
+
obj[ind] = [el, type, '<>', value];
|
|
122
|
+
}
|
|
123
|
+
var params = [sortParam, Object.values(obj)];
|
|
124
|
+
setParams(params);
|
|
125
|
+
sortingFunc(params);
|
|
126
|
+
return obj;
|
|
127
|
+
});
|
|
128
|
+
setValue("".concat(value[0], " - ").concat(value[1]));
|
|
129
|
+
setFiltersTable(Object.values(obj));
|
|
130
|
+
};
|
|
131
|
+
var dropFilter = function dropFilter() {
|
|
132
|
+
var obj;
|
|
133
|
+
setFilters(function (prev) {
|
|
134
|
+
obj = prev;
|
|
135
|
+
if (prev[ind]) {
|
|
136
|
+
delete obj[ind];
|
|
137
|
+
}
|
|
138
|
+
var params = [sortParam, Object.values(obj)];
|
|
139
|
+
setParams(params);
|
|
140
|
+
sortingFunc(params);
|
|
141
|
+
return obj;
|
|
142
|
+
});
|
|
143
|
+
setValue('');
|
|
144
|
+
setFiltersTable(Object.values(obj));
|
|
145
|
+
};
|
|
146
|
+
var hideModal = function hideModal() {
|
|
147
|
+
if (!fromValue || !toValue) return;
|
|
148
|
+
addFilter([fromValue, toValue]);
|
|
149
|
+
setActiveItem(null);
|
|
150
|
+
setShowOption(false);
|
|
151
|
+
setError(false);
|
|
152
|
+
};
|
|
153
|
+
var onKeyDown = function onKeyDown(e) {
|
|
154
|
+
if (e.key === 'Enter') hideModal();
|
|
155
|
+
};
|
|
156
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
157
|
+
"data-value": el,
|
|
158
|
+
className: "filter-table-drop-num",
|
|
159
|
+
ref: refCol
|
|
160
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
161
|
+
"data-value": el,
|
|
162
|
+
className: "filter-btn-box",
|
|
163
|
+
style: {
|
|
164
|
+
position: 'relative'
|
|
165
|
+
}
|
|
166
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
167
|
+
className: "filter-box"
|
|
168
|
+
}, /*#__PURE__*/_react["default"].createElement("input", {
|
|
169
|
+
type: "text",
|
|
170
|
+
onClick: function onClick(e) {
|
|
171
|
+
positionTable(refCol, setPositionDropOption);
|
|
172
|
+
setActiveItem(el);
|
|
173
|
+
setShowOption(true);
|
|
174
|
+
},
|
|
175
|
+
className: activeItem == el ? 'search_table2_active' : 'search_table2',
|
|
176
|
+
autoFocus: activeItem == el ? true : false,
|
|
177
|
+
value: value,
|
|
178
|
+
style: {
|
|
179
|
+
border: (value === null || value === void 0 ? void 0 : value.length) > 0 ? '1px solid #11195D' : ''
|
|
180
|
+
// border: error > 0 ? '1px solid red' : ''
|
|
181
|
+
},
|
|
182
|
+
readOnly: true
|
|
183
|
+
})), activeItem == el ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
184
|
+
className: "option-box-filter-table",
|
|
185
|
+
style: _defineProperty({
|
|
186
|
+
display: showOption ? 'block' : 'none'
|
|
187
|
+
}, positionDropOption, '0px')
|
|
188
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
189
|
+
className: "option-box-filter-table__content"
|
|
190
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
191
|
+
className: "from-to-box"
|
|
192
|
+
}, /*#__PURE__*/_react["default"].createElement("label", null, /*#__PURE__*/_react["default"].createElement("input", {
|
|
193
|
+
type: "number",
|
|
194
|
+
placeholder: translateFrom(),
|
|
195
|
+
value: fromValue,
|
|
196
|
+
onChange: function onChange(e) {
|
|
197
|
+
return setFromValue(e.target.value);
|
|
198
|
+
},
|
|
199
|
+
onKeyDown: onKeyDown
|
|
200
|
+
})), /*#__PURE__*/_react["default"].createElement("label", null, /*#__PURE__*/_react["default"].createElement("input", {
|
|
201
|
+
type: "number",
|
|
202
|
+
placeholder: translateTo(),
|
|
203
|
+
value: toValue,
|
|
204
|
+
onChange: function onChange(e) {
|
|
205
|
+
return setToValue(e.target.value);
|
|
206
|
+
},
|
|
207
|
+
onKeyDown: onKeyDown
|
|
208
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
209
|
+
className: "btn-group"
|
|
210
|
+
}, /*#__PURE__*/_react["default"].createElement(_ButtonBasic["default"], {
|
|
211
|
+
violet: true,
|
|
212
|
+
text: translateConfirm(),
|
|
213
|
+
width: "100px",
|
|
214
|
+
size: "32px",
|
|
215
|
+
onClick: function onClick(e) {
|
|
216
|
+
hideModal();
|
|
217
|
+
}
|
|
218
|
+
})))) : null, filters[ind] ? /*#__PURE__*/_react["default"].createElement(_FilterReset.FilterReset, {
|
|
219
|
+
className: "filter-icon-reset",
|
|
220
|
+
onClick: function onClick(e) {
|
|
221
|
+
return dropFilter();
|
|
222
|
+
}
|
|
223
|
+
}) : /*#__PURE__*/_react["default"].createElement(_FilterDefault.FilterDefault, {
|
|
224
|
+
className: "filter-icon-default"
|
|
225
|
+
})));
|
|
226
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
.filter-table-drop-num {
|
|
2
|
+
|
|
3
|
+
.option-box-filter-table,
|
|
4
|
+
.option-box-filter-table_hide {
|
|
5
|
+
display: none;
|
|
6
|
+
width: 170px;
|
|
7
|
+
position: absolute;
|
|
8
|
+
max-width: 170px;
|
|
9
|
+
border-radius: 8px;
|
|
10
|
+
background-color: white;
|
|
11
|
+
top: calc(100% + 4px);
|
|
12
|
+
// left: 0;
|
|
13
|
+
right: 0;
|
|
14
|
+
border: 2px solid var(--stroke-primary-primary, #EDEFFB);
|
|
15
|
+
z-index: 5;
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
max-height: 250px;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
padding: 8px 12px;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
visibility: visible;
|
|
22
|
+
opacity: 1;
|
|
23
|
+
|
|
24
|
+
&__content {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
gap: 8px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.checbox-box {
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
gap: 8px;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
|
|
36
|
+
.text {
|
|
37
|
+
padding: 0;
|
|
38
|
+
font-size: 12px;
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
white-space: nowrap;
|
|
41
|
+
text-overflow: ellipsis;
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.btn-group {
|
|
47
|
+
display: flex;
|
|
48
|
+
width: 100%;
|
|
49
|
+
align-items: center;
|
|
50
|
+
height: 32px;
|
|
51
|
+
gap: 8px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.from-to-box {
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
gap: 8px;
|
|
58
|
+
|
|
59
|
+
label {
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
gap: 4px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
input {
|
|
66
|
+
width: 100%;
|
|
67
|
+
max-width: 70px;
|
|
68
|
+
height: 24px;
|
|
69
|
+
border: 2px solid #EDEFFB;
|
|
70
|
+
padding-left: 4px;
|
|
71
|
+
padding-right: 4px;
|
|
72
|
+
border-radius: 4px;
|
|
73
|
+
font-family: Inter;
|
|
74
|
+
font-size: 12px;
|
|
75
|
+
font-style: normal;
|
|
76
|
+
font-weight: 500;
|
|
77
|
+
line-height: 14px;
|
|
78
|
+
color: #020617;
|
|
79
|
+
|
|
80
|
+
&::-webkit-inner-spin-button {
|
|
81
|
+
-webkit-appearance: none;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&:focus {
|
|
85
|
+
outline: none;
|
|
86
|
+
border: 2px solid #3900B1;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&::placeholder {
|
|
90
|
+
color: #64748B;
|
|
91
|
+
font-family: Inter;
|
|
92
|
+
font-size: 12px;
|
|
93
|
+
font-style: normal;
|
|
94
|
+
font-weight: 500;
|
|
95
|
+
line-height: 14px;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
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.OptionsText = void 0;
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _FilterReset = require("./img/FilterReset");
|
|
11
|
+
var _FilterDefault = require("./img/FilterDefault");
|
|
12
|
+
var _OptionsNumber = require("./OptionsNumber");
|
|
13
|
+
require("./OptionsText.scss");
|
|
14
|
+
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); }
|
|
15
|
+
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; }
|
|
16
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
17
|
+
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."); }
|
|
18
|
+
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; } }
|
|
19
|
+
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; }
|
|
20
|
+
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; } }
|
|
21
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
22
|
+
var OptionsText = exports.OptionsText = function OptionsText(_ref) {
|
|
23
|
+
var _filters$ind, _filters$ind2;
|
|
24
|
+
var setParams = _ref.setParams,
|
|
25
|
+
params = _ref.params,
|
|
26
|
+
fetchedData = _ref.fetchedData,
|
|
27
|
+
el = _ref.el,
|
|
28
|
+
activeItem = _ref.activeItem,
|
|
29
|
+
setActiveItem = _ref.setActiveItem,
|
|
30
|
+
showOption = _ref.showOption,
|
|
31
|
+
filtersTable = _ref.filtersTable,
|
|
32
|
+
setShowOption = _ref.setShowOption,
|
|
33
|
+
filters = _ref.filters,
|
|
34
|
+
setFilters = _ref.setFilters,
|
|
35
|
+
ind = _ref.ind,
|
|
36
|
+
type = _ref.type,
|
|
37
|
+
sortingFunc = _ref.sortingFunc,
|
|
38
|
+
sortParam = _ref.sortParam,
|
|
39
|
+
sort = _ref.sort,
|
|
40
|
+
setFiltersTable = _ref.setFiltersTable,
|
|
41
|
+
fileFilters = _ref.fileFilters,
|
|
42
|
+
setFileFilters = _ref.setFileFilters,
|
|
43
|
+
_ref$lang = _ref.lang,
|
|
44
|
+
lang = _ref$lang === void 0 ? 'ru' : _ref$lang;
|
|
45
|
+
var textListType = 'textList';
|
|
46
|
+
var _useState = (0, _react.useState)(((_filters$ind = filters[ind]) === null || _filters$ind === void 0 ? void 0 : _filters$ind.length) > 0 ? filters[ind][3] : ''),
|
|
47
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
48
|
+
query = _useState2[0],
|
|
49
|
+
setQuery = _useState2[1];
|
|
50
|
+
var _useState3 = (0, _react.useState)(((_filters$ind2 = filters[ind]) === null || _filters$ind2 === void 0 ? void 0 : _filters$ind2.length) > 0 ? filters[ind][2] : '='),
|
|
51
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
52
|
+
option = _useState4[0],
|
|
53
|
+
setOption = _useState4[1];
|
|
54
|
+
var _useState5 = (0, _react.useState)([]),
|
|
55
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
56
|
+
dataCol = _useState6[0],
|
|
57
|
+
setDataCol = _useState6[1];
|
|
58
|
+
var _useState7 = (0, _react.useState)([]),
|
|
59
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
60
|
+
dataColValue = _useState8[0],
|
|
61
|
+
setDataColValue = _useState8[1];
|
|
62
|
+
var refCol = (0, _react.useRef)();
|
|
63
|
+
var translateConfirm = function translateConfirm() {
|
|
64
|
+
if (lang == 'ru') return 'Применить';
|
|
65
|
+
if (lang == 'eng') return 'Confirm';
|
|
66
|
+
return 'Применить';
|
|
67
|
+
};
|
|
68
|
+
var translateReset = function translateReset() {
|
|
69
|
+
if (lang == 'ru') return 'Сбросить';
|
|
70
|
+
if (lang == 'eng') return 'Reset';
|
|
71
|
+
return 'Сбросить';
|
|
72
|
+
};
|
|
73
|
+
var addFilter = function addFilter(text) {
|
|
74
|
+
var query = text;
|
|
75
|
+
if (type === textListType) {
|
|
76
|
+
var _Object$entries;
|
|
77
|
+
var listOptions = (_Object$entries = Object.entries(dataColValue)) === null || _Object$entries === void 0 || (_Object$entries = _Object$entries.map(function (el) {
|
|
78
|
+
return el[1] !== false ? el[0] : -1;
|
|
79
|
+
})) === null || _Object$entries === void 0 || (_Object$entries = _Object$entries.filter(function (el) {
|
|
80
|
+
return el !== -1;
|
|
81
|
+
})) === null || _Object$entries === void 0 ? void 0 : _Object$entries.join(', ');
|
|
82
|
+
query = query.length ? query.concat(", ".concat(listOptions)) : listOptions;
|
|
83
|
+
}
|
|
84
|
+
var obj;
|
|
85
|
+
setFilters(function (prev) {
|
|
86
|
+
obj = prev;
|
|
87
|
+
if (prev[ind]) {
|
|
88
|
+
delete obj[ind];
|
|
89
|
+
obj[ind] = [el, type, option, query];
|
|
90
|
+
} else {
|
|
91
|
+
obj[ind] = [el, type, option, query];
|
|
92
|
+
}
|
|
93
|
+
var params = [sortParam, Object.values(obj)];
|
|
94
|
+
setParams(params);
|
|
95
|
+
sortingFunc(params);
|
|
96
|
+
return obj;
|
|
97
|
+
});
|
|
98
|
+
setFiltersTable(obj ? Object.values(obj) : {});
|
|
99
|
+
};
|
|
100
|
+
var dropFilter = function dropFilter() {
|
|
101
|
+
var obj;
|
|
102
|
+
setFilters(function (prev) {
|
|
103
|
+
obj = prev;
|
|
104
|
+
if (prev[ind]) {
|
|
105
|
+
delete obj[ind];
|
|
106
|
+
}
|
|
107
|
+
var params = [sortParam, Object.values(obj)];
|
|
108
|
+
setParams(params);
|
|
109
|
+
sortingFunc(params);
|
|
110
|
+
return obj;
|
|
111
|
+
});
|
|
112
|
+
setQuery('');
|
|
113
|
+
setFiltersTable(Object.values(obj));
|
|
114
|
+
setFileFilters([]);
|
|
115
|
+
};
|
|
116
|
+
var applyFilter = function applyFilter() {
|
|
117
|
+
addFilter(query);
|
|
118
|
+
setActiveItem(null);
|
|
119
|
+
setShowOption(false);
|
|
120
|
+
};
|
|
121
|
+
var onKeyDown = function onKeyDown(e) {
|
|
122
|
+
if (e.key === 'Enter') applyFilter();
|
|
123
|
+
};
|
|
124
|
+
(0, _react.useEffect)(function () {
|
|
125
|
+
if ((params === null || params === void 0 ? void 0 : params.length) === 0 && filters[ind]) {
|
|
126
|
+
dropFilter();
|
|
127
|
+
}
|
|
128
|
+
}, [params]);
|
|
129
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
130
|
+
"data-value": el,
|
|
131
|
+
className: "filter-table-drop-text",
|
|
132
|
+
ref: refCol
|
|
133
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
134
|
+
className: "filter-btn-box",
|
|
135
|
+
style: {
|
|
136
|
+
position: 'relative'
|
|
137
|
+
}
|
|
138
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
139
|
+
className: "filter-box"
|
|
140
|
+
}, /*#__PURE__*/_react["default"].createElement("input", {
|
|
141
|
+
type: "text",
|
|
142
|
+
onClick: function onClick(e) {
|
|
143
|
+
setActiveItem(el);
|
|
144
|
+
setShowOption(true);
|
|
145
|
+
},
|
|
146
|
+
onKeyDown: onKeyDown,
|
|
147
|
+
className: activeItem == el ? 'search_table2_active' : 'search_table2',
|
|
148
|
+
autoFocus: activeItem == el ? true : false,
|
|
149
|
+
style: {
|
|
150
|
+
display: 'inline-block',
|
|
151
|
+
border: (query === null || query === void 0 ? void 0 : query.length) > 0 ? '1px solid #11195D' : ''
|
|
152
|
+
// border: error > 0 ? '1px solid red' : ''
|
|
153
|
+
},
|
|
154
|
+
value: query,
|
|
155
|
+
onChange: function onChange(e) {
|
|
156
|
+
return setQuery(e.target.value);
|
|
157
|
+
}
|
|
158
|
+
})), filters[ind] ? /*#__PURE__*/_react["default"].createElement(_FilterReset.FilterReset, {
|
|
159
|
+
className: "filter-icon-reset",
|
|
160
|
+
onClick: function onClick(e) {
|
|
161
|
+
return dropFilter();
|
|
162
|
+
}
|
|
163
|
+
}) : /*#__PURE__*/_react["default"].createElement(_FilterDefault.FilterDefault, {
|
|
164
|
+
className: "filter-icon-default",
|
|
165
|
+
onClick: function onClick(e) {
|
|
166
|
+
return applyFilter();
|
|
167
|
+
}
|
|
168
|
+
})));
|
|
169
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
body {
|
|
2
|
+
.filter-table-drop-text {
|
|
3
|
+
|
|
4
|
+
.option-box-filter-table,
|
|
5
|
+
.option-box-filter-table_hide {
|
|
6
|
+
display: none;
|
|
7
|
+
width: 170px;
|
|
8
|
+
position: absolute;
|
|
9
|
+
max-width: 170px;
|
|
10
|
+
border-radius: 8px;
|
|
11
|
+
background-color: white;
|
|
12
|
+
top: calc(100% + 4px);
|
|
13
|
+
// left: 0;
|
|
14
|
+
right: 0;
|
|
15
|
+
border: 2px solid var(--stroke-primary-primary, #EDEFFB);
|
|
16
|
+
z-index: 5;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
padding: 8px 12px;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
visibility: visible;
|
|
22
|
+
opacity: 1;
|
|
23
|
+
gap: 12px;
|
|
24
|
+
|
|
25
|
+
&__content {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
width: 100%;
|
|
29
|
+
gap: 12px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
.checbox-box {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
gap: 8px;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
|
|
39
|
+
.text {
|
|
40
|
+
margin-right: 8px;
|
|
41
|
+
word-break: break-all;
|
|
42
|
+
padding: 0;
|
|
43
|
+
font-size: 12px;
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.checkbox-group {
|
|
49
|
+
align-items: flex-start;
|
|
50
|
+
overflow-y: auto;
|
|
51
|
+
width: 100%;
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: column;
|
|
54
|
+
gap: 12px;
|
|
55
|
+
height: auto;
|
|
56
|
+
max-height: 200px;
|
|
57
|
+
|
|
58
|
+
&::-webkit-scrollbar {
|
|
59
|
+
display: none;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.btn-group {
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
align-items: center;
|
|
67
|
+
gap: 4px;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.FilterDefault = void 0;
|
|
7
|
+
var FilterDefault = exports.FilterDefault = function FilterDefault(_ref) {
|
|
8
|
+
var className = _ref.className,
|
|
9
|
+
_onClick = _ref.onClick;
|
|
10
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
11
|
+
className: className,
|
|
12
|
+
onClick: function onClick(e) {
|
|
13
|
+
return _onClick(e);
|
|
14
|
+
},
|
|
15
|
+
width: "16",
|
|
16
|
+
height: "16",
|
|
17
|
+
viewBox: "0 0 16 16",
|
|
18
|
+
fill: "none",
|
|
19
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
20
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
21
|
+
d: "M14 3H2L6.8 8.78111V12.7778L9.2 14V8.78111L14 3Z",
|
|
22
|
+
stroke: "#C7CAEE",
|
|
23
|
+
"stroke-linecap": "round",
|
|
24
|
+
"stroke-linejoin": "round"
|
|
25
|
+
}));
|
|
26
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.FilterReset = void 0;
|
|
7
|
+
var FilterReset = exports.FilterReset = function FilterReset(_ref) {
|
|
8
|
+
var className = _ref.className,
|
|
9
|
+
_onClick = _ref.onClick;
|
|
10
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
11
|
+
className: className,
|
|
12
|
+
width: "16",
|
|
13
|
+
height: "16",
|
|
14
|
+
viewBox: "0 0 16 16",
|
|
15
|
+
fill: "none",
|
|
16
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
17
|
+
onClick: function onClick(e) {
|
|
18
|
+
return _onClick(e);
|
|
19
|
+
}
|
|
20
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
21
|
+
id: "25"
|
|
22
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
23
|
+
id: "Vector",
|
|
24
|
+
d: "M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z",
|
|
25
|
+
stroke: "#11195D",
|
|
26
|
+
"stroke-linecap": "round",
|
|
27
|
+
"stroke-linejoin": "round"
|
|
28
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
29
|
+
id: "Vector_2",
|
|
30
|
+
d: "M10 6L6 10",
|
|
31
|
+
stroke: "#11195D",
|
|
32
|
+
"stroke-linecap": "round",
|
|
33
|
+
"stroke-linejoin": "round"
|
|
34
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
35
|
+
id: "Vector_3",
|
|
36
|
+
d: "M6 6L10 10",
|
|
37
|
+
stroke: "#11195D",
|
|
38
|
+
"stroke-linecap": "round",
|
|
39
|
+
"stroke-linejoin": "round"
|
|
40
|
+
})));
|
|
41
|
+
};
|
|
Binary file
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z" stroke="#FF7374" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
<path d="M10 6L6 10" stroke="#FF7374" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
<path d="M6 6L10 10" stroke="#FF7374" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="25">
|
|
3
|
+
<path id="Vector" d="M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z" stroke="#11195D" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
<path id="Vector_2" d="M10 6L6 10" stroke="#11195D" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
<path id="Vector_3" d="M6 6L10 10" stroke="#11195D" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6
|
+
</g>
|
|
7
|
+
</svg>
|