ecomlab-components-next 0.1.159 → 0.1.162
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/common/headers.js +2 -2
- package/dist/common/hooks/hooks.js +108 -0
- package/dist/common/hooks/useResetOnBaseURL.js +15 -0
- package/dist/common/img/icon-delete.svg +3 -0
- package/dist/common/img/icon-edit.svg +3 -0
- package/dist/common/img/noPhoto.png +0 -0
- package/dist/common/img/time_icon.svg +5 -0
- package/dist/common/img/view_icon.svg +5 -0
- package/dist/common/styles/svg_img.scss +290 -0
- package/dist/common/svg_img.js +238 -0
- package/dist/common/validationFunc.js +14 -0
- package/dist/components/ArticleComponent/Article.js +252 -0
- package/dist/components/ArticleComponent/Article.scss +289 -0
- package/dist/components/ArticleElements/ShortTileArticleBox/ShortTileArticleBox.stories.js +1 -1
- package/dist/components/ArticleMain/ArticleMain.js +451 -0
- package/dist/components/ArticleMain/ArticleMain.scss +220 -0
- package/dist/components/ArticleMain/img/table_icon.svg +3 -0
- package/dist/components/ArticleMain/img/tile-long_icon.svg +3 -0
- package/dist/components/ArticleMain/img/tile_icon.svg +3 -0
- package/dist/components/ButtonColumn/ButtonColumn.js +113 -0
- package/dist/components/ButtonColumn/ButtonColumn.scss +117 -0
- package/dist/components/ButtonColumn/img/column.svg +7 -0
- package/dist/components/ButtonCopy/ButtonCopy.js +37 -0
- package/dist/components/ButtonCopy/ButtonCopy.scss +43 -0
- package/dist/components/ButtonCopy/img/copy.svg +3 -0
- package/dist/components/ButtonExport/ButtonExport.js +83 -0
- package/dist/components/ButtonExport/ButtonExport.scss +111 -0
- package/dist/components/ButtonExport/img/export.svg +8 -0
- package/dist/components/ButtonExport/img/pdf.svg +12 -0
- package/dist/components/ButtonExport/img/xlc.svg +11 -0
- package/dist/components/ButtonUpload/ButtonUpload.js +24 -0
- package/dist/components/ButtonUpload/ButtonUpload.scss +45 -0
- package/dist/components/ButtonUpload/img/upload_icon.svg +8 -0
- package/dist/components/ConstructorComponents/Tariff/TariffPlan.js +8 -5
- package/dist/components/Page404/Page404.js +36 -0
- package/dist/components/Page404/Page404.scss +67 -0
- package/dist/components/Page404/img/banner-404.svg +16 -0
- package/dist/components/ShareComponent/ShareComponent.js +152 -0
- package/dist/components/ShareComponent/ShareComponent.scss +53 -0
- package/dist/components/ShareComponent/img/copy_icon.svg +5 -0
- package/dist/components/ShareComponent/img/facebook_icon.svg +5 -0
- package/dist/components/ShareComponent/img/linkedin_icon.svg +6 -0
- package/dist/components/ShareComponent/img/ok_icon.svg +5 -0
- package/dist/components/ShareComponent/img/share_icon.svg +5 -0
- package/dist/components/ShareComponent/img/tg_icon.svg +5 -0
- package/dist/components/ShareComponent/img/vk_icon.svg +5 -0
- package/dist/components/ShareComponent/img/whatsapp_icon.svg +5 -0
- package/dist/components/ShareComponent/img/x_icon.svg +5 -0
- package/dist/components/Table/TableBox/TableBox.stories.js +1 -1
- package/dist/components/TableInput/TableInput.js +103 -0
- package/dist/components/TableInput/TableInput.scss +35 -0
- package/dist/components/TableWithoutData/TableWithoutData.js +25 -0
- package/dist/components/TableWithoutData/TableWithoutData.scss +32 -0
- package/dist/components/TableWithoutData/img/doc_icon.png +0 -0
- package/dist/fonts/GolosText/GolosText-Black.ttf +0 -0
- package/dist/fonts/GolosText/GolosText-Bold.ttf +0 -0
- package/dist/fonts/GolosText/GolosText-ExtraBold.ttf +0 -0
- package/dist/fonts/GolosText/GolosText-Medium.ttf +0 -0
- package/dist/fonts/GolosText/GolosText-Regular.ttf +0 -0
- package/dist/fonts/GolosText/GolosText-SemiBold.ttf +0 -0
- package/dist/fonts/Inter/Inter-Bold.otf +0 -0
- package/dist/fonts/Inter/Inter-Light.otf +0 -0
- package/dist/fonts/Inter/Inter-Medium.otf +0 -0
- package/dist/fonts/Inter/Inter-Regular.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-Black.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-BlackItalic.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-BoldItalic.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-ExtraBold.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-ExtraBoldItalic.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-ExtraLight.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-ExtraLightItalic.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-Italic.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-Light.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-LightItalic.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-Medium.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-MediumItalic.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-SemiBold.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-SemiBoldItalic.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-Thin.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-ThinItalic.ttf +0 -0
- package/dist/fonts/Nunito_Sans/NunitoSans-Black.ttf +0 -0
- package/dist/fonts/Nunito_Sans/NunitoSans-BlackItalic.ttf +0 -0
- package/dist/fonts/Nunito_Sans/NunitoSans-Bold.ttf +0 -0
- package/dist/fonts/Nunito_Sans/NunitoSans-BoldItalic.ttf +0 -0
- package/dist/fonts/Nunito_Sans/NunitoSans-ExtraBold.ttf +0 -0
- package/dist/fonts/Nunito_Sans/NunitoSans-ExtraBoldItalic.ttf +0 -0
- package/dist/fonts/Nunito_Sans/NunitoSans-ExtraLight.ttf +0 -0
- package/dist/fonts/Nunito_Sans/NunitoSans-ExtraLightItalic.ttf +0 -0
- package/dist/fonts/Nunito_Sans/NunitoSans-Italic.ttf +0 -0
- package/dist/fonts/Nunito_Sans/NunitoSans-Light.ttf +0 -0
- package/dist/fonts/Nunito_Sans/NunitoSans-LightItalic.ttf +0 -0
- package/dist/fonts/Nunito_Sans/NunitoSans-Regular.ttf +0 -0
- package/dist/fonts/Nunito_Sans/NunitoSans-SemiBold.ttf +0 -0
- package/dist/fonts/Nunito_Sans/NunitoSans-SemiBoldItalic.ttf +0 -0
- package/dist/fonts/Rubik/Rubik-Black.ttf +0 -0
- package/dist/fonts/Rubik/Rubik-BlackItalic.ttf +0 -0
- package/dist/fonts/Rubik/Rubik-Bold.ttf +0 -0
- package/dist/fonts/Rubik/Rubik-BoldItalic.ttf +0 -0
- package/dist/fonts/Rubik/Rubik-ExtraBold.ttf +0 -0
- package/dist/fonts/Rubik/Rubik-ExtraBoldItalic.ttf +0 -0
- package/dist/fonts/Rubik/Rubik-Italic.ttf +0 -0
- package/dist/fonts/Rubik/Rubik-Light.ttf +0 -0
- package/dist/fonts/Rubik/Rubik-LightItalic.ttf +0 -0
- package/dist/fonts/Rubik/Rubik-Medium.ttf +0 -0
- package/dist/fonts/Rubik/Rubik-MediumItalic.ttf +0 -0
- package/dist/fonts/Rubik/Rubik-Regular.ttf +0 -0
- package/dist/fonts/Rubik/Rubik-SemiBold.ttf +0 -0
- package/dist/fonts/Rubik/Rubik-SemiBoldItalic.ttf +0 -0
- package/dist/index.js +7 -0
- package/dist/main.js +14 -0
- package/dist/pages/_app.js +12 -0
- package/dist/pages/_document.js +12 -0
- package/dist/pages/index.js +92 -0
- package/dist/stories/Article/Article.scss +471 -0
- package/dist/stories/Article/ArticleElement.js +108 -0
- package/dist/stories/Article/ArticleStorybook.scss +6 -0
- package/dist/stories/Article/ArticleView.js +440 -0
- package/dist/stories/Article/ArticleView.stories.js +263 -0
- package/dist/stories/Article/Feedback/Feedback.js +58 -0
- package/dist/stories/Article/Feedback/Feedback.scss +86 -0
- package/dist/stories/Article/FormBtn/FormBtn.js +170 -0
- package/dist/stories/Article/FormBtn/FormBtn.scss +446 -0
- package/dist/stories/Article/FormBtn/img/clos_icon.svg +6 -0
- package/dist/stories/Article/FormBtn/img/close-icon.svg +3 -0
- package/dist/stories/Article/ImgArticle/ImgArticle.js +204 -0
- package/dist/stories/Article/ImgArticle/ImgArticle.scss +140 -0
- package/dist/stories/Article/ListOfContent/ListOfContent.js +41 -0
- package/dist/stories/Article/ListOfContent/ListOfContent.scss +83 -0
- package/dist/stories/Article/ListOfContent/ListOfContent.stories.js +66 -0
- package/dist/stories/Article/ListOfContent/img/time_icon.svg +3 -0
- package/dist/stories/Article/ListOfContent/img/view_icon.svg +3 -0
- package/dist/stories/Article/RecommendationList/RecommendationList.js +31 -0
- package/dist/stories/Article/RecommendationList/RecommendationList.scss +41 -0
- package/dist/stories/Article/TextArticle/TextArticle.js +129 -0
- package/dist/stories/Article/TextArticle/TextArticle.scss +43 -0
- package/dist/stories/Article/TitleText/TitleText.js +30 -0
- package/dist/stories/Article/TitleText/TitleText.scss +33 -0
- package/dist/stories/Article/YellowInformationBox/YellowInformationBox.js +30 -0
- package/dist/stories/Article/YellowInformationBox/YellowInformationBox.scss +46 -0
- package/dist/stories/Article/YellowInformationBox/img/bell.svg +9 -0
- package/dist/stories/Article/img/bell.svg +9 -0
- package/dist/stories/Article/img/btn-add-round.svg +4 -0
- package/dist/stories/Article/img/calendar_icon.svg +6 -0
- package/dist/stories/Article/img/close-round.svg +3 -0
- package/dist/stories/Article/img/close.svg +9 -0
- package/dist/stories/Article/img/copy_icon.svg +5 -0
- package/dist/stories/Article/img/info.svg +9 -0
- package/dist/stories/Article/img/ok_icon.svg +5 -0
- package/dist/stories/Article/img/share_icon.svg +5 -0
- package/dist/stories/Article/img/tg_icon.svg +5 -0
- package/dist/stories/Article/img/time_icon.svg +6 -0
- package/dist/stories/Article/img/view_icon.svg +6 -0
- package/dist/stories/Article/img/vk_icon.svg +5 -0
- package/dist/stories/Article/img/whatsapp_icon.svg +5 -0
- package/dist/stories/ArticleMainContainer/ArticleMainContainer.js +540 -0
- package/dist/stories/ArticleMainContainer/ArticleMainContainer.scss +377 -0
- package/dist/stories/ArticleMainContainer/ArticleMainContainer.stories.js +75 -0
- package/dist/stories/ArticleMainContainer/main/page.js +1 -0
- package/dist/stories/ArticleMinBox/ArticleMinBox.js +172 -0
- package/dist/stories/ArticleMinBox/ArticleMinBox.scss +38 -0
- package/dist/stories/ArticleMinBox/ArticleMinBox.stories.js +56 -0
- package/dist/stories/BasicSelection/BasicSelection.js +143 -0
- package/dist/stories/BasicSelection/BasicSelection.scss +97 -0
- package/dist/stories/BasicSelection/BasicSelection.stories.js +32 -0
- package/dist/stories/Breadcrumb/Breadcrumb.js +113 -0
- package/dist/stories/Breadcrumb/Breadcrumb.scss +92 -0
- package/dist/stories/Breadcrumb/Breadcrums.stories.js +31 -0
- package/dist/stories/Breadcrumb/img/drop-right.svg +3 -0
- package/dist/stories/Breadcrumb/img/home_icon.svg +5 -0
- package/dist/stories/ButtonBasic/ButtonBasic.js +70 -0
- package/dist/stories/ButtonBasic/ButtonBasic.scss +242 -0
- package/dist/stories/ButtonBasic/ButtonBasic.stories.js +60 -0
- package/dist/stories/Checkbox/Checkbox.js +70 -0
- package/dist/stories/Checkbox/Checkbox.scss +128 -0
- package/dist/stories/Checkbox/Checkbox.stories.js +49 -0
- package/dist/stories/Checkbox/img/check.svg +3 -0
- package/dist/stories/CheckboxToggle/CheckboxToggle.js +54 -0
- package/dist/stories/CheckboxToggle/CheckboxToggle.scss +117 -0
- package/dist/stories/CheckboxToggle/CheckboxToggle.stories.js +26 -0
- package/dist/stories/DropDownSelector/DownSelector.js +352 -0
- package/dist/stories/DropDownSelector/DownSelector.stories.js +161 -0
- package/dist/stories/DropDownSelector/DropdownSelector.scss +272 -0
- package/dist/stories/DropDownSelector/img/close_icon.svg +6 -0
- package/dist/stories/DropDownSelector/img/close_icon_disabled.svg +6 -0
- package/dist/stories/InputDinamycPlaceholder/InputDinamycPlaceholder.js +162 -0
- package/dist/stories/InputDinamycPlaceholder/InputDinamycPlaceholder.scss +475 -0
- package/dist/stories/InputDinamycPlaceholder/InputDinamycPlaceholder.stories.js +50 -0
- package/dist/stories/InputDinamycPlaceholder/img/close_grey.svg +5 -0
- package/dist/stories/InputDinamycPlaceholder/img/close_red.svg +5 -0
- package/dist/stories/InputDinamycPlaceholder/img/hide.svg +12 -0
- package/dist/stories/InputDinamycPlaceholder/img/info_tooltip.svg +12 -0
- package/dist/stories/InputDinamycPlaceholder/img/show.svg +3 -0
- package/dist/stories/InputDynamicWidth/InputDynamicWidth.js +85 -0
- package/dist/stories/InputDynamicWidth/InputDynamicWidth.scss +98 -0
- package/dist/stories/InputDynamicWidth/InputDynamicWidth.stories.js +32 -0
- package/dist/stories/InputDynamicWidth/img/close_icon.svg +3 -0
- package/dist/stories/InputDynamicWidth/img/search_icon.svg +6 -0
- package/dist/stories/LongTileArticleBox/LongTileArticleBox.js +168 -0
- package/dist/stories/LongTileArticleBox/LongTileArticleBox.scss +360 -0
- package/dist/stories/LongTileArticleBox/LongTileArticleBox.stories.js +39 -0
- package/dist/stories/LongTileArticleBox/img/arrow_blue.svg +6 -0
- package/dist/stories/LongTileArticleBox/img/calendar_icon.svg +6 -0
- package/dist/stories/LongTileArticleBox/img/copy_icon.svg +5 -0
- package/dist/stories/LongTileArticleBox/img/ok_icon.svg +5 -0
- package/dist/stories/LongTileArticleBox/img/share_icon.svg +5 -0
- package/dist/stories/LongTileArticleBox/img/tag_icon.svg +5 -0
- package/dist/stories/LongTileArticleBox/img/tg_icon.svg +5 -0
- package/dist/stories/LongTileArticleBox/img/time_icon.svg +6 -0
- package/dist/stories/LongTileArticleBox/img/view_icon.svg +6 -0
- package/dist/stories/LongTileArticleBox/img/vk_icon.svg +5 -0
- package/dist/stories/LongTileArticleBox/img/whatsapp_icon.svg +5 -0
- package/dist/stories/ModalArticleAddElement/ModalArticleAddElement.js +128 -0
- package/dist/stories/ModalArticleAddElement/ModalArticleAddElement.scss +124 -0
- package/dist/stories/ModalArticleAddElement/ModalArticleAddElement.stories.js +19 -0
- package/dist/stories/ModalBitrixForm/ModalBitrixForm.js +236 -0
- package/dist/stories/ModalBitrixForm/ModalBitrixForm.scss +167 -0
- package/dist/stories/ModalBitrixForm/ModalBitrixForm.stories.js +101 -0
- package/dist/stories/ModalBitrixForm/img/close_icon.svg +3 -0
- package/dist/stories/ModalBitrixForm/img/done_icon.svg +3 -0
- package/dist/stories/ModalBitrixForm/img/ozon.svg +9 -0
- package/dist/stories/ModalBitrixForm/img/ozon_bkg.svg +9 -0
- package/dist/stories/MultilevelSidebar/MultilevelSidebar.js +472 -0
- package/dist/stories/MultilevelSidebar/MultilevelSidebar.scss +237 -0
- package/dist/stories/MultilevelSidebar/MultilevelSidebar.stories.js +80 -0
- package/dist/stories/MultilevelSidebar/MultilevelSidebarStorybook.scss +7 -0
- package/dist/stories/MultilevelSidebar/img/drop.svg +3 -0
- package/dist/stories/MultilevelSidebar/img/settings.svg +4 -0
- package/dist/stories/NoArticles/NoArticles.js +29 -0
- package/dist/stories/NoArticles/NoArticles.scss +26 -0
- package/dist/stories/NoArticles/NoArticles.stories.js +20 -0
- package/dist/stories/NoArticles/img/banner.svg +266 -0
- package/dist/stories/Paginator/Paginator.js +254 -0
- package/dist/stories/Paginator/Paginator.scss +168 -0
- package/dist/stories/Paginator/Paginator.stories.js +56 -0
- package/dist/stories/Paginator/img/arrow_blue.svg +3 -0
- package/dist/stories/Paginator/img/arrow_next.svg +3 -0
- package/dist/stories/Paginator/img/arrow_prev.svg +3 -0
- package/dist/stories/ResultsFound/ResultsFound.js +269 -0
- package/dist/stories/ResultsFound/ResultsFound.scss +139 -0
- package/dist/stories/ResultsFound/ResultsFound.stories.js +25 -0
- package/dist/stories/ResultsFound/img/arrow_icon.svg +5 -0
- package/dist/stories/ResultsFound/img/no-data_img.svg +13 -0
- package/dist/stories/ShortTileArticleBox/ShortTileArticleBox.js +160 -0
- package/dist/stories/ShortTileArticleBox/ShortTileArticleBox.scss +827 -0
- package/dist/stories/ShortTileArticleBox/ShortTileArticleBox.stories.js +42 -0
- package/dist/stories/ShortTileArticleBox/img/arrow_blue.svg +6 -0
- package/dist/stories/ShortTileArticleBox/img/calendar_icon.svg +6 -0
- package/dist/stories/ShortTileArticleBox/img/copy_icon.svg +5 -0
- package/dist/stories/ShortTileArticleBox/img/ok_icon.svg +5 -0
- package/dist/stories/ShortTileArticleBox/img/share_icon.svg +5 -0
- package/dist/stories/ShortTileArticleBox/img/tag_icon.svg +5 -0
- package/dist/stories/ShortTileArticleBox/img/tg_icon.svg +5 -0
- package/dist/stories/ShortTileArticleBox/img/time_icon.svg +6 -0
- package/dist/stories/ShortTileArticleBox/img/view_icon.svg +6 -0
- package/dist/stories/ShortTileArticleBox/img/vk_icon.svg +5 -0
- package/dist/stories/ShortTileArticleBox/img/whatsapp_icon.svg +5 -0
- package/dist/stories/SliderCarousel/SliderCarousel.js +77 -0
- package/dist/stories/SliderCarousel/SliderCarousel.scss +85 -0
- package/dist/stories/SliderCarousel/SliderCarousel.stories.js +29 -0
- package/dist/stories/SliderCarousel/img/no_image.svg +3 -0
- package/dist/stories/Table/Filters/OptionsDate.js +208 -0
- package/dist/stories/Table/Filters/OptionsImage.js +92 -0
- package/dist/stories/Table/Filters/OptionsImage.scss +10 -0
- package/dist/stories/Table/Filters/OptionsList.js +244 -0
- package/dist/stories/Table/Filters/OptionsNumber.js +220 -0
- package/dist/stories/Table/Filters/OptionsNumber.scss +100 -0
- package/dist/stories/Table/Filters/OptionsText.js +165 -0
- package/dist/stories/Table/Filters/OptionsText.scss +71 -0
- package/dist/stories/Table/Filters/img/FilterDefault.js +26 -0
- package/dist/stories/Table/Filters/img/FilterReset.js +41 -0
- package/dist/stories/Table/Filters/img/dropFilters.png +0 -0
- package/dist/stories/Table/Filters/img/filterDefault.svg +3 -0
- package/dist/stories/Table/Filters/img/filter_blue.svg +3 -0
- package/dist/stories/Table/Filters/img/filter_blue_background.svg +5 -0
- package/dist/stories/Table/Filters/img/filter_reset.svg +7 -0
- package/dist/stories/Table/InputWithState/InputWithState.js +36 -0
- package/dist/stories/Table/RenderFiltersTh/RenderFiltersTh.js +140 -0
- package/dist/stories/Table/RenderTd/RenderTd.js +19 -0
- package/dist/stories/Table/RenderTh/RenderTh.js +112 -0
- package/dist/stories/Table/Table.js +1568 -0
- package/dist/stories/Table/Table.scss +1524 -0
- package/dist/stories/Table/Table.stories.js +83 -0
- package/dist/stories/Table/TableChartTd/TableChartTd.js +172 -0
- package/dist/stories/Table/TableChartTd/TableChartTd.scss +0 -0
- package/dist/stories/Table/TdDate/TdDate.js +36 -0
- package/dist/stories/Table/TdDate/TdDate.scss +0 -0
- package/dist/stories/Table/TdDate.js +34 -0
- package/dist/stories/Table/TypeTdImage.js +85 -0
- package/dist/stories/Table/img/Search.png +0 -0
- package/dist/stories/Table/img/SortArrow.js +12 -0
- package/dist/stories/Table/img/SortArrowUp.js +12 -0
- package/dist/stories/Table/img/SortTable.js +14 -0
- package/dist/stories/Table/img/close_icon.svg +7 -0
- package/dist/stories/Table/img/close_white.svg +3 -0
- package/dist/stories/Table/img/context-menu.svg +6 -0
- package/dist/stories/Table/img/contextMenuBtn.png +0 -0
- package/dist/stories/Table/img/delete_icon.svg +8 -0
- package/dist/stories/Table/img/dropFilters.png +0 -0
- package/dist/stories/Table/img/filter.png +0 -0
- package/dist/stories/Table/img/filterDefault.png +0 -0
- package/dist/stories/Table/img/filter_blue.svg +3 -0
- package/dist/stories/Table/img/filter_blue_background.svg +5 -0
- package/dist/stories/Table/img/imageNotFound.svg +3 -0
- package/dist/stories/Table/img/location.svg +3 -0
- package/dist/stories/Table/img/sort_arrow_down.svg +6 -0
- package/dist/stories/Table/img/sort_arrow_up.svg +4 -0
- package/dist/stories/Table/img/sort_table.svg +8 -0
- package/dist/stories/Table/svg_img.js +8 -0
- package/dist/stories/TableBox/TableBox.js +304 -0
- package/dist/stories/TableBox/TableBox.scss +418 -0
- package/dist/stories/TableBox/TableBox.stories.js +124 -0
- package/dist/stories/TableBox/img/delete_icon.svg +9 -0
- package/dist/stories/TableBox/img/forward_icon.svg +9 -0
- package/dist/stories/TableBox/img/more_icon.svg +10 -0
- package/dist/stories/TableBox/img_stories/tag_icon.svg +5 -0
- package/dist/stories/TextareaDynamicPlaceholder/TextareaDynamicPlaceholder.js +91 -0
- package/dist/stories/TextareaDynamicPlaceholder/TextareaDynamicPlaceholder.scss +124 -0
- package/dist/stories/TextareaDynamicPlaceholder/TextareaDynamicPlaceholder.stories.js +29 -0
- package/dist/stories/TitleContentEditable/TitleContentEditable.js +71 -0
- package/dist/stories/TitleContentEditable/TitleContentEditable.scss +69 -0
- package/dist/stories/TitleContentEditable/TitleContentEditable.stories.js +37 -0
- package/dist/stories/ViewSwitch/ViewSwitch.js +48 -0
- package/dist/stories/ViewSwitch/ViewSwitch.scss +135 -0
- package/dist/stories/ViewSwitch/ViewSwitch.stories.js +48 -0
- package/dist/stories/ViewSwitch/img/Chat.js +24 -0
- package/dist/stories/ViewSwitch/img/Table.js +21 -0
- package/dist/stories/ViewSwitch/img/Tile.js +20 -0
- package/dist/stories/ViewSwitch/img/TileLong.js +20 -0
- package/dist/styles/font.scss +93 -0
- package/dist/styles/globals.scss +66 -0
- package/package.json +1 -1
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
@import 'src/common/styles/svg_img.scss';
|
|
2
|
+
|
|
3
|
+
.table-box-component,
|
|
4
|
+
.table-box-component_no-data {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
height: auto;
|
|
8
|
+
width: 100%;
|
|
9
|
+
max-width: fit-content;
|
|
10
|
+
border-radius: 16px;
|
|
11
|
+
// max-height: 100%;
|
|
12
|
+
align-items: flex-start;
|
|
13
|
+
margin-top: 0;
|
|
14
|
+
// height: 100%;
|
|
15
|
+
position: relative;
|
|
16
|
+
z-index: 0;
|
|
17
|
+
|
|
18
|
+
&_no-data {
|
|
19
|
+
max-width: 100%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.scrollbar {
|
|
23
|
+
padding: 4px;
|
|
24
|
+
height: 16px;
|
|
25
|
+
width: 100%;
|
|
26
|
+
background: #F4F6F4;
|
|
27
|
+
position: sticky;
|
|
28
|
+
bottom: 0;
|
|
29
|
+
z-index: 5;
|
|
30
|
+
left: 0;
|
|
31
|
+
right: 0;
|
|
32
|
+
|
|
33
|
+
.scroll-box {
|
|
34
|
+
width: 100%;
|
|
35
|
+
height: 16px;
|
|
36
|
+
background: #F4F6F4;
|
|
37
|
+
position: relative;
|
|
38
|
+
|
|
39
|
+
.scroll-point {
|
|
40
|
+
width: 100px;
|
|
41
|
+
height: 16px;
|
|
42
|
+
background-color: #B4B8B4;
|
|
43
|
+
border-radius: 16px;
|
|
44
|
+
position: absolute;
|
|
45
|
+
left: 0;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.child-box {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-wrap: wrap;
|
|
53
|
+
align-items: center;
|
|
54
|
+
justify-content: flex-start;
|
|
55
|
+
gap: 12px;
|
|
56
|
+
width: 100%;
|
|
57
|
+
min-height: 40px;
|
|
58
|
+
border: 1px solid #EDEFED;
|
|
59
|
+
border-radius: 8px;
|
|
60
|
+
background: #fff;
|
|
61
|
+
padding: 2px 20px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.panel-with-buttons-left {
|
|
65
|
+
display: flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
width: fit-content;
|
|
68
|
+
min-height: 40px;
|
|
69
|
+
height: 40px;
|
|
70
|
+
border: 1px solid #EDEFED;
|
|
71
|
+
background: #fff;
|
|
72
|
+
padding: 8px 20px;
|
|
73
|
+
border-radius: 8px;
|
|
74
|
+
gap: 16px;
|
|
75
|
+
|
|
76
|
+
.btn {
|
|
77
|
+
display: flex;
|
|
78
|
+
min-width: 24px;
|
|
79
|
+
width: 24px;
|
|
80
|
+
height: 24px;
|
|
81
|
+
justify-content: center;
|
|
82
|
+
align-items: center;
|
|
83
|
+
gap: 8px;
|
|
84
|
+
border-radius: 4px;
|
|
85
|
+
background: #DED;
|
|
86
|
+
border: none;
|
|
87
|
+
background-position: center;
|
|
88
|
+
background-repeat: no-repeat;
|
|
89
|
+
cursor: pointer;
|
|
90
|
+
position: relative;
|
|
91
|
+
|
|
92
|
+
&:hover {
|
|
93
|
+
transition: 0.3s;
|
|
94
|
+
// background-color: #3900B1;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&:disabled {
|
|
98
|
+
cursor: not-allowed;
|
|
99
|
+
|
|
100
|
+
&::before {
|
|
101
|
+
content: '';
|
|
102
|
+
position: absolute;
|
|
103
|
+
top: 0;
|
|
104
|
+
left: 0;
|
|
105
|
+
right: 0;
|
|
106
|
+
bottom: 0;
|
|
107
|
+
// background-color: rgba(255, 255, 255, 0.5);
|
|
108
|
+
z-index: 1;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&:hover {
|
|
112
|
+
transition: 0.3s;
|
|
113
|
+
background-color: #8278F0;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.btn-delete {
|
|
121
|
+
background-image: url('./img/delete_icon.svg');
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.btn-forward {
|
|
125
|
+
background-image: url('./img/forward_icon.svg');
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.btn-more {
|
|
129
|
+
background-image: url('./img/more_icon.svg');
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.panel-with-buttons-right {
|
|
134
|
+
display: flex;
|
|
135
|
+
align-items: center;
|
|
136
|
+
width: fit-content;
|
|
137
|
+
min-height: 40px;
|
|
138
|
+
height: 40px;
|
|
139
|
+
border: 1px solid #EDEFED;
|
|
140
|
+
border-radius: 8px;
|
|
141
|
+
background: #fff;
|
|
142
|
+
padding: 0px 12px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.loader-table-background {
|
|
146
|
+
position: absolute;
|
|
147
|
+
top: 0;
|
|
148
|
+
left: 0;
|
|
149
|
+
right: 0;
|
|
150
|
+
bottom: 0;
|
|
151
|
+
display: flex;
|
|
152
|
+
justify-content: center;
|
|
153
|
+
align-items: center;
|
|
154
|
+
width: 100%;
|
|
155
|
+
height: 100%;
|
|
156
|
+
border: none;
|
|
157
|
+
background-color: white;
|
|
158
|
+
opacity: 0.6;
|
|
159
|
+
z-index: 10;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&__header {
|
|
163
|
+
display: flex;
|
|
164
|
+
align-items: flex-start;
|
|
165
|
+
justify-content: flex-start;
|
|
166
|
+
width: 100%;
|
|
167
|
+
gap: 12px;
|
|
168
|
+
margin-bottom: 12px;
|
|
169
|
+
|
|
170
|
+
.name-box {
|
|
171
|
+
display: flex;
|
|
172
|
+
align-items: center;
|
|
173
|
+
min-width: 50px;
|
|
174
|
+
font-weight: 400;
|
|
175
|
+
width: auto;
|
|
176
|
+
background-color: #ffffff;
|
|
177
|
+
font-size: 14px;
|
|
178
|
+
height: 32px;
|
|
179
|
+
border-radius: 8px;
|
|
180
|
+
padding-left: 16px;
|
|
181
|
+
border: 1px solid var(--table-border, #E0E7F2);
|
|
182
|
+
|
|
183
|
+
p {
|
|
184
|
+
white-space: nowrap;
|
|
185
|
+
overflow: hidden;
|
|
186
|
+
text-overflow: ellipsis;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.statistic-items {
|
|
191
|
+
display: flex;
|
|
192
|
+
width: fit-content;
|
|
193
|
+
align-items: center;
|
|
194
|
+
height: 100%;
|
|
195
|
+
justify-content: flex-start;
|
|
196
|
+
column-gap: 24px;
|
|
197
|
+
row-gap: 16px;
|
|
198
|
+
flex-wrap: wrap;
|
|
199
|
+
padding: 8px;
|
|
200
|
+
|
|
201
|
+
.text_violet {
|
|
202
|
+
display: flex;
|
|
203
|
+
gap: 6px;
|
|
204
|
+
color: #636D65;
|
|
205
|
+
text-align: center;
|
|
206
|
+
font-family: NunitoSans;
|
|
207
|
+
font-size: 12px;
|
|
208
|
+
font-style: normal;
|
|
209
|
+
font-weight: 600;
|
|
210
|
+
line-height: 14px;
|
|
211
|
+
white-space: nowrap;
|
|
212
|
+
|
|
213
|
+
span {
|
|
214
|
+
color: #0B110B;
|
|
215
|
+
font-weight: 800;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.extra_wrapper {
|
|
222
|
+
display: flex;
|
|
223
|
+
justify-content: space-between;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
.table-paginator-box {
|
|
228
|
+
width: auto;
|
|
229
|
+
max-width: 100%;
|
|
230
|
+
display: flex;
|
|
231
|
+
flex-direction: column;
|
|
232
|
+
border-radius: 8px;
|
|
233
|
+
border: 2px solid rgba(170, 178, 246, 0.12);
|
|
234
|
+
overflow-x: auto;
|
|
235
|
+
overflow-y: hidden;
|
|
236
|
+
background-color: white;
|
|
237
|
+
// position: relative;
|
|
238
|
+
|
|
239
|
+
&::-webkit-scrollbar {
|
|
240
|
+
width: 0;
|
|
241
|
+
height: 0;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
// .toolbar-paginator {
|
|
245
|
+
// display: flex;
|
|
246
|
+
// align-items: center;
|
|
247
|
+
// width: 100%;
|
|
248
|
+
// transition: .3s;
|
|
249
|
+
// }
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
&__content {
|
|
253
|
+
width: calc(100% + 2px);
|
|
254
|
+
// overflow: auto;
|
|
255
|
+
clear: both;
|
|
256
|
+
min-height: 700px;
|
|
257
|
+
height: auto;
|
|
258
|
+
// tb
|
|
259
|
+
//max-height: 700px;
|
|
260
|
+
|
|
261
|
+
&::-webkit-scrollbar {
|
|
262
|
+
width: 16px;
|
|
263
|
+
height: 16px;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
&::-webkit-scrollbar-track-piece {
|
|
267
|
+
background-color: #F1F5F9;
|
|
268
|
+
border-radius: 10px;
|
|
269
|
+
width: 12px;
|
|
270
|
+
height: 12px;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
&::-webkit-scrollbar-thumb:vertical {
|
|
274
|
+
width: 12px;
|
|
275
|
+
height: 12px;
|
|
276
|
+
background-color: #94A3B8;
|
|
277
|
+
border-radius: 10px;
|
|
278
|
+
scrollbar-width: auto;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
&::-webkit-scrollbar-thumb:horizontal {
|
|
282
|
+
height: 12px;
|
|
283
|
+
background-color: #94A3B8;
|
|
284
|
+
border-radius: 10px;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.settings_connection_table {
|
|
289
|
+
height: auto;
|
|
290
|
+
max-height: 700px;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.paginator-and-btn {
|
|
294
|
+
display: flex;
|
|
295
|
+
width: 100%;
|
|
296
|
+
justify-content: flex-end;
|
|
297
|
+
padding-left: 16px;
|
|
298
|
+
padding-right: 16px;
|
|
299
|
+
padding-bottom: 8px;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.btn__green {
|
|
303
|
+
min-width: 200px;
|
|
304
|
+
width: auto;
|
|
305
|
+
padding-left: 20px;
|
|
306
|
+
padding-right: 20px;
|
|
307
|
+
max-width: 100%;
|
|
308
|
+
margin-top: 0;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.pop-up {
|
|
314
|
+
display: flex;
|
|
315
|
+
width: auto;
|
|
316
|
+
max-width: calc(100% - 156px);
|
|
317
|
+
border: 1px solid #D9D9D9;
|
|
318
|
+
height: auto;
|
|
319
|
+
white-space: normal;
|
|
320
|
+
box-shadow: .3em .6em 1.3em rgba(0, 0, 0, .25);
|
|
321
|
+
padding: 8px 16px;
|
|
322
|
+
border-radius: 16pxч;
|
|
323
|
+
text-overflow: clip;
|
|
324
|
+
z-index: 3000;
|
|
325
|
+
position: absolute;
|
|
326
|
+
top: 40px;
|
|
327
|
+
left: center;
|
|
328
|
+
opacity: 1;
|
|
329
|
+
background-color: white;
|
|
330
|
+
visibility: visible;
|
|
331
|
+
margin-left: -16px;
|
|
332
|
+
margin-right: 16px;
|
|
333
|
+
visibility: hidden;
|
|
334
|
+
opacity: 0;
|
|
335
|
+
transition: 0.5s;
|
|
336
|
+
|
|
337
|
+
.text_blue {
|
|
338
|
+
text-decoration: none;
|
|
339
|
+
white-space: normal;
|
|
340
|
+
text-overflow: clip;
|
|
341
|
+
overflow: visible;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.chars-box-component {
|
|
346
|
+
.name-box {
|
|
347
|
+
position: relative;
|
|
348
|
+
cursor: help;
|
|
349
|
+
|
|
350
|
+
&:hover {
|
|
351
|
+
.pop-up {
|
|
352
|
+
display: flex;
|
|
353
|
+
width: auto;
|
|
354
|
+
max-width: calc(100%);
|
|
355
|
+
border: 1px solid #D9D9D9;
|
|
356
|
+
height: auto;
|
|
357
|
+
white-space: normal;
|
|
358
|
+
box-shadow: .3em .6em 1.3em rgba(0, 0, 0, .25);
|
|
359
|
+
padding: 8px 16px;
|
|
360
|
+
border-radius: 16px;
|
|
361
|
+
text-overflow: clip;
|
|
362
|
+
z-index: 3000;
|
|
363
|
+
position: absolute;
|
|
364
|
+
top: 40px;
|
|
365
|
+
left: center;
|
|
366
|
+
opacity: 1;
|
|
367
|
+
background-color: white;
|
|
368
|
+
visibility: visible;
|
|
369
|
+
margin-left: -16px;
|
|
370
|
+
margin-right: 16px;
|
|
371
|
+
opacity: 1;
|
|
372
|
+
|
|
373
|
+
.text_violet {
|
|
374
|
+
white-space: normal;
|
|
375
|
+
text-overflow: clip;
|
|
376
|
+
overflow: visible;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
.toolbar-name-box {
|
|
386
|
+
cursor: help;
|
|
387
|
+
|
|
388
|
+
&:hover {
|
|
389
|
+
.pop-up {
|
|
390
|
+
display: flex;
|
|
391
|
+
width: auto;
|
|
392
|
+
max-width: calc(100% - 156px);
|
|
393
|
+
border: 1px solid #D9D9D9;
|
|
394
|
+
height: auto;
|
|
395
|
+
white-space: normal;
|
|
396
|
+
box-shadow: .3em .6em 1.3em rgba(0, 0, 0, .25);
|
|
397
|
+
padding: 8px 16px;
|
|
398
|
+
border-radius: 16px;
|
|
399
|
+
text-overflow: clip;
|
|
400
|
+
z-index: 3000;
|
|
401
|
+
position: absolute;
|
|
402
|
+
top: 40px;
|
|
403
|
+
left: center;
|
|
404
|
+
opacity: 1;
|
|
405
|
+
background-color: white;
|
|
406
|
+
visibility: visible;
|
|
407
|
+
margin-left: -16px;
|
|
408
|
+
margin-right: 16px;
|
|
409
|
+
opacity: 1;
|
|
410
|
+
|
|
411
|
+
.text_blue {
|
|
412
|
+
white-space: normal;
|
|
413
|
+
text-overflow: clip;
|
|
414
|
+
overflow: visible;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
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 stubColumnSize = ["65px", "", "90px", "184px", "", "123px", "123px", "123px", "98px", "303px", "303px", "", "", "", "", ""];
|
|
11
|
+
var stubSort = ['Дата', "DESC"];
|
|
12
|
+
var stubHeaders = {
|
|
13
|
+
"header": ["Фото", 'collectInfo', "Дата", ["Товар", 'Tur'], "", "Оценка", 'График', "Магазин", "Действие", "Отзыв", "Ответ", "photo_links", "category_name", "brand_name", "feedback_id", "api_id"],
|
|
14
|
+
"type": ["image", 'collectInfo', "fullDate", "textWithLink", "stringLayers", "input", 'chart', "text", "actionBtn", "actionBtn", "actionBtn", "hidden", "hidden", "hidden", "hidden", "hidden"],
|
|
15
|
+
"tooltips": ["", "", "", "", "Артикул товара", "Название товара", "", "Дата создания в системе ecomru.ru", "Выбранная категория", "Бренд товара", "", "", "", ""],
|
|
16
|
+
"filterTypes": ["", "", "date", "text", "", "list", "", "list", "", "text", "text", "", "", "", "", ""],
|
|
17
|
+
"filterList": ["", "", "", "", "", {
|
|
18
|
+
"1": true,
|
|
19
|
+
"2": true,
|
|
20
|
+
"3": true,
|
|
21
|
+
"4": true,
|
|
22
|
+
"5": true
|
|
23
|
+
}, "", {
|
|
24
|
+
"Элко ВБ": true,
|
|
25
|
+
"unek_content": true
|
|
26
|
+
}, "", "", "", "", "", "", "", ""],
|
|
27
|
+
styles: [[null, null, null, null, [{
|
|
28
|
+
color: 'blue'
|
|
29
|
+
}, {
|
|
30
|
+
color: 'green'
|
|
31
|
+
}], null, null, null, null, null, null], [null, null, null, null, [{
|
|
32
|
+
color: 'blue'
|
|
33
|
+
}, [{
|
|
34
|
+
color: 'green'
|
|
35
|
+
}, {
|
|
36
|
+
color: 'red',
|
|
37
|
+
fontSize: 15
|
|
38
|
+
}]], null, null, null, null, null, null]]
|
|
39
|
+
};
|
|
40
|
+
var stubFetchedData = [["https://basket-10.wbbasket.ru/vol1356/part135691/135691601/images/big/1.jpg", ["https://cdn1.ozone.ru/s3/multimedia-m/6820878154.jpg", ["Стиральная машина INDESIT IWUC 4105(CIS), фронтальная загрузка, белая", 'link'], "Стиральная машина", "Indesit", "1273407"], "2024-03-17T23:05:56+03:00", ["Умные часы GT 3 PRO ODIN-B19, серый", "135691601"], ['asd', 'dsa'], ['', 'usd', 123124], {
|
|
41
|
+
datasets: [[1, 2, 3], [2, 3, 1], [3, 1, 2]],
|
|
42
|
+
labels: ['05.04', '05.06', '05.07'],
|
|
43
|
+
label: ['revenue', 'sales', 'expenses']
|
|
44
|
+
}, "Элко ВБ", "https://apps1.ecomru.ru:9001/developerimages/eye-icon.svg", ["Часики хорошие.", ""], ["Добрый день! Благодарим за высокую оценку! Спасибо, что уделили время на написание отзыва. Желаем приятной эксплуатации.\n", ""], [], "Смарт-часы", "Huawei", "kZAeAe8WTR26S8OhfRk7", "wb1360"], [{
|
|
45
|
+
value: "https://basket-10.wbbasket.ru/vol1317/part131729/131729694/images/big/1.jpg",
|
|
46
|
+
alt: 'test'
|
|
47
|
+
}, ["https://cdn1.ozone.ru/s3/multimedia-m/6820878154.jpg", "Стиральная машина INDESIT IWUC 4105(CIS), фронтальная загрузка, белая", ["Стиральная машина", 'link'], "Indesit", "1273407"], "2024-03-17T23:02:46+03:00", ["УШМ ИНТЕРСКОЛ 125/700 529.1.0.00", "131729694"], ['asd', ['dsa', '%']], ['', 'usd', 12314324], {
|
|
48
|
+
datasets: [[1, 2, 3], [2, 3, 1], [3, 1, 2]],
|
|
49
|
+
labels: ['05.04', '05.06', '05.07'],
|
|
50
|
+
label: ['revenue', 'sales', 'expenses']
|
|
51
|
+
}, "Элко ВБ", "https://apps1.ecomru.ru:9001/developerimages/eye-icon.svg", ["", ""], ["Добрый день! Спасибо, за вашу оценку! Желаем приятной эксплуатации.", ""], [], "Шлифовальные машины", "ИНТЕРСКОЛ", "sCnINleBLkhU7ZIErE46", "wb1360"]];
|
|
52
|
+
var _default = exports["default"] = {
|
|
53
|
+
title: 'Components/TableBox',
|
|
54
|
+
component: _TableBox["default"],
|
|
55
|
+
parameters: {
|
|
56
|
+
laout: 'centered'
|
|
57
|
+
},
|
|
58
|
+
args: {
|
|
59
|
+
loading: false,
|
|
60
|
+
fetchedData: stubFetchedData,
|
|
61
|
+
headers: stubHeaders,
|
|
62
|
+
onDelete: (0, _addonActions.action)('onDelete'),
|
|
63
|
+
onEdit: (0, _addonActions.action)('onEdit'),
|
|
64
|
+
onCheck: (0, _addonActions.action)('onCheck'),
|
|
65
|
+
onInputHandler: (0, _addonActions.action)('onInputHandler'),
|
|
66
|
+
onAddAcc: (0, _addonActions.action)('onAddAcc'),
|
|
67
|
+
isSortable: true,
|
|
68
|
+
onBooleanCheckbox: false,
|
|
69
|
+
onAction: (0, _addonActions.action)('onAction'),
|
|
70
|
+
fetchCallback: (0, _addonActions.action)('fetchCallback'),
|
|
71
|
+
sort: stubSort,
|
|
72
|
+
isInsideTable: false,
|
|
73
|
+
fetchDataInsideFunc: (0, _addonActions.action)('fetchDataInsideFunc'),
|
|
74
|
+
nestedTable: false,
|
|
75
|
+
columnSize: stubColumnSize,
|
|
76
|
+
setParams: (0, _addonActions.action)('setParams'),
|
|
77
|
+
fileFilters: [],
|
|
78
|
+
setFileFilters: (0, _addonActions.action)('setFileFilters'),
|
|
79
|
+
date: new Date(),
|
|
80
|
+
basePath: 'main',
|
|
81
|
+
onRedirect: (0, _addonActions.action)('onRedirect'),
|
|
82
|
+
lang: 'eng',
|
|
83
|
+
paginator: true,
|
|
84
|
+
hideColumn: false,
|
|
85
|
+
hideExport: false,
|
|
86
|
+
hideSorting: false,
|
|
87
|
+
contextMenuArr: [{
|
|
88
|
+
label: 'Удалить',
|
|
89
|
+
onClick: (0, _addonActions.action)('onDelete'),
|
|
90
|
+
type: 'delete'
|
|
91
|
+
}, {
|
|
92
|
+
label: 'Редактировать',
|
|
93
|
+
onClick: (0, _addonActions.action)('onEdit')
|
|
94
|
+
}, {
|
|
95
|
+
label: 'Кнопка',
|
|
96
|
+
onClick: (0, _addonActions.action)('onClick')
|
|
97
|
+
}],
|
|
98
|
+
statistic: [{
|
|
99
|
+
label: 'Товаров',
|
|
100
|
+
sum: 50
|
|
101
|
+
}, {
|
|
102
|
+
label: 'Заказов',
|
|
103
|
+
sum: 50
|
|
104
|
+
}, {
|
|
105
|
+
label: 'Товаров',
|
|
106
|
+
sum: 50
|
|
107
|
+
}, {
|
|
108
|
+
label: 'Заказов',
|
|
109
|
+
sum: 50
|
|
110
|
+
}, {
|
|
111
|
+
label: 'Товаров',
|
|
112
|
+
sum: 50
|
|
113
|
+
}, {
|
|
114
|
+
label: 'Заказов',
|
|
115
|
+
sum: 50
|
|
116
|
+
}],
|
|
117
|
+
panelBtn: true
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
var Default = exports.Default = {
|
|
121
|
+
render: function render(args) {
|
|
122
|
+
return /*#__PURE__*/React.createElement(_TableBox["default"], args);
|
|
123
|
+
}
|
|
124
|
+
};
|
|
@@ -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,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _material = require("@mui/material");
|
|
9
|
+
require("./TextareaDynamicPlaceholder.scss");
|
|
10
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
11
|
+
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."); }
|
|
12
|
+
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; } }
|
|
13
|
+
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; }
|
|
14
|
+
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; } }
|
|
15
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
16
|
+
var TextareaDynamicPlaceholder = function TextareaDynamicPlaceholder(_ref) {
|
|
17
|
+
var _ref$placeholder = _ref.placeholder,
|
|
18
|
+
placeholder = _ref$placeholder === void 0 ? '' : _ref$placeholder,
|
|
19
|
+
_ref$width = _ref.width,
|
|
20
|
+
width = _ref$width === void 0 ? false : _ref$width,
|
|
21
|
+
_ref$height = _ref.height,
|
|
22
|
+
height = _ref$height === void 0 ? false : _ref$height,
|
|
23
|
+
disabled = _ref.disabled,
|
|
24
|
+
changeValue = _ref.changeValue,
|
|
25
|
+
_ref$onChange = _ref.onChange,
|
|
26
|
+
_onChange = _ref$onChange === void 0 ? false : _ref$onChange,
|
|
27
|
+
_ref$setChangeValue = _ref.setChangeValue,
|
|
28
|
+
setChangeValue = _ref$setChangeValue === void 0 ? false : _ref$setChangeValue,
|
|
29
|
+
_ref$tooltip = _ref.tooltip,
|
|
30
|
+
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip;
|
|
31
|
+
var _useState = (0, _react.useState)(false),
|
|
32
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
33
|
+
isFocus = _useState2[0],
|
|
34
|
+
setIsFocus = _useState2[1];
|
|
35
|
+
var _useState3 = (0, _react.useState)(changeValue ? changeValue : ''),
|
|
36
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
37
|
+
valueInside = _useState4[0],
|
|
38
|
+
setValueInside = _useState4[1];
|
|
39
|
+
var textAreaRef = (0, _react.useRef)();
|
|
40
|
+
(0, _react.useEffect)(function () {
|
|
41
|
+
if (_onChange) {
|
|
42
|
+
_onChange(valueInside);
|
|
43
|
+
}
|
|
44
|
+
}, [valueInside]);
|
|
45
|
+
(0, _react.useEffect)(function () {
|
|
46
|
+
if (changeValue || changeValue === 0 || changeValue === '') {
|
|
47
|
+
setValueInside(changeValue);
|
|
48
|
+
if (setChangeValue) {
|
|
49
|
+
setChangeValue(false);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}, [changeValue]);
|
|
53
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
54
|
+
className: "textarea-dynamic-placeholder",
|
|
55
|
+
style: {
|
|
56
|
+
width: width ? width : ''
|
|
57
|
+
}
|
|
58
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
59
|
+
className: "textarea-dynamic-placeholder__content",
|
|
60
|
+
style: {
|
|
61
|
+
border: isFocus ? '1px solid #57CC6A' : ''
|
|
62
|
+
},
|
|
63
|
+
onClick: function onClick(e) {
|
|
64
|
+
var _textAreaRef$current;
|
|
65
|
+
return textAreaRef === null || textAreaRef === void 0 || (_textAreaRef$current = textAreaRef.current) === null || _textAreaRef$current === void 0 ? void 0 : _textAreaRef$current.focus();
|
|
66
|
+
}
|
|
67
|
+
}, placeholder && /*#__PURE__*/React.createElement("div", {
|
|
68
|
+
className: (valueInside === null || valueInside === void 0 ? void 0 : valueInside.length) > 0 ? isFocus ? 'placeholder-dinamyc_min-blue' : 'placeholder-dinamyc_min' : 'placeholder-dinamyc'
|
|
69
|
+
}, /*#__PURE__*/React.createElement("label", null, placeholder)), /*#__PURE__*/React.createElement(_material.TextareaAutosize, {
|
|
70
|
+
ref: textAreaRef,
|
|
71
|
+
style: {
|
|
72
|
+
backgroundColor: disabled && !isEdit ? '#e0e0e0' : '',
|
|
73
|
+
overflow: 'auto'
|
|
74
|
+
},
|
|
75
|
+
onFocus: function onFocus(e) {
|
|
76
|
+
setIsFocus(true);
|
|
77
|
+
},
|
|
78
|
+
onBlur: function onBlur(e) {
|
|
79
|
+
setIsFocus(false);
|
|
80
|
+
},
|
|
81
|
+
value: valueInside,
|
|
82
|
+
disabled: disabled && !isEdit,
|
|
83
|
+
onChange: function onChange(e) {
|
|
84
|
+
setValueInside(e.target.value);
|
|
85
|
+
_onChange(e.target.value);
|
|
86
|
+
}
|
|
87
|
+
})), tooltip && /*#__PURE__*/React.createElement("p", {
|
|
88
|
+
className: "textarea-dynamic-placeholder__tooltip"
|
|
89
|
+
}, tooltip));
|
|
90
|
+
};
|
|
91
|
+
var _default = exports["default"] = TextareaDynamicPlaceholder;
|